@idmui/extend 0.0.3 → 0.0.4
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.
- package/dist/index.js +220 -220
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ie,bl){typeof exports=="object"&&typeof module<"u"?bl(exports,require("@idmui/basic"),require("vue"),require("@wangeditor/editor-for-vue"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios")):typeof define=="function"&&define.amd?define(["exports","@idmui/basic","vue","@wangeditor/editor-for-vue","moment","echarts","@idm-plugin/geo","axios"],bl):(ie=typeof globalThis<"u"?globalThis:ie||self,bl(ie["idmui-extend"]={},ie["@idmui/basic"],ie.Vue,ie["@wangeditor/editor-for-vue"],ie.moment,ie.echarts,ie["@idm-plugin/geo"],ie.axios))})(this,function(ie,bl,e,ui,Ne,xs,Q,$i){"use strict";function js(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(t,l,r.get?r:{enumerable:!0,get:()=>n[l]})}}return t.default=n,Object.freeze(t)}const qi=js(xs),Tj="",Ql=(n,t)=>{const l=n.__vccOpts||n;for(const[r,N]of t)l[r]=N;return l},Us={name:"IdmEditor",components:{Editor:ui.Editor,Toolbar:ui.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(n){var t,l;n?(t=this.editor)==null||t.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var n;this.valueHtml=this.modelValue,(n=this.editor)==null||n.setHtml(this.valueHtml)}}},methods:{handleCreated(n){var t;this.editorRef=e.shallowRef(),this.editor=Object.seal(n),this.valueHtml=this.modelValue,(t=this.editor)==null||t.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(n){this.$emit("update:modelValue",this.valueHtml)},handleBlur(n){this.$emit("blur",this.valueHtml)},beforeDestroy(){var n;(n=this.editor)==null||n.destroy()}}},ks={class:"editor-box"};function Ss(n,t,l,r,N,i){const I=e.resolveComponent("Toolbar"),s=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",ks,[e.withDirectives(e.createVNode(I,{editor:N.editor,"default-config":N.toolbarConfig,mode:N.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!l.disabled]]),e.createVNode(s,{modelValue:N.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=d=>N.valueHtml=d),"default-config":N.editorConfig,mode:N.mode,class:"editor",style:e.normalizeStyle({height:l.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const ql=Ql(Us,[["render",Ss],["__scopeId","data-v-9854b172"]]),Vj="",zj="",pj="",Cs={name:"PlanReport",components:{Editor:ql,IdmBrand:bl.IdmBrand,IdmLoading:bl.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 n,t;return this.print?!1:(t=(n=this.plan)==null?void 0:n.voyage)==null?void 0:t.showCost},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeLTime(){return function(n,t,l,r){let N=0;return l&&t&&(N=Q.LngLatHelper.guessTimeZoneOffset(t,l)),`${Ne(n).utcOffset(r??N).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(n,t){var l,r,N,i,I;if(t===0)return"-";{const s=Ne((N=(r=(l=n==null?void 0:n.speeds)==null?void 0:l[t])==null?void 0:r.speed)==null?void 0:N.eta).diff(Ne((I=(i=n==null?void 0:n.speeds)==null?void 0:i[0])==null?void 0:I.speed.eta),"h",!0);return Math.round(s*100)/100}}},computeCostDiff(){return function(n,t){var l,r,N,i,I,s,d;if(t===0)return"-";{const V=Number((i=(N=(r=(l=n==null?void 0:n.speeds)==null?void 0:l[t])==null?void 0:r.speed)==null?void 0:N.cost)==null?void 0:i.total)-Number((d=(s=(I=n==null?void 0:n.speeds)==null?void 0:I[0])==null?void 0:s.speed)==null?void 0:d.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(n){return n.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(n,t=4){if(typeof n=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(n*l)/l}else return"-"}},computeMemo(){return function(n){return(n==null?void 0:n.memo)??"-"}},computeMajorPoints(){return function(n,t){const l=[];for(let r=0;r<t.length;r++){const N=t[r],i=t[r-1];i&&(N.avgBearing=i.bearing),l.push(N),N.suspend&&(n!=null&&n.useRouteParam)&&l.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`})}return l}},computeDegree(){return function(n,t,l){t=t%360;for(let r=0;r<17;r++)if(r*22.5+t+11.25>=360){let N=(16-r)*22.5;l||(N=N+180);let i="";return n==="wind"?i="var(--orm-wind)":n==="wave"?i="var(--orm-wave)":n==="swell"?i="var(--orm-swell)":n==="current"&&(i="var(--orm-current)"),`transform:rotate(${N}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(n,t=0){var i,I,s,d;const l=(d=(s=(I=(i=n==null?void 0:n.speeds)==null?void 0:i[t])==null?void 0:I.speed)==null?void 0:s.sample)==null?void 0:d.hours,r=l==null?void 0:l[0],N=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(Ne(N==null?void 0:N.eta).diff(Ne(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(n){var l,r;let t=0;return(r=(l=n==null?void 0:n.sample)==null?void 0:l.wps)==null||r.forEach(N=>{t+=N.suspend||0}),t?Math.round(t*100)/100:"-"}},computeModel(){return function(n){const t=n==null?void 0:n.source;return["ec","cmems"].includes(t==null?void 0:t.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${t}`}},computeCog(){return function(n){return isNaN(n)?"-":Q.LngLatHelper.padNumber(n,3,0)}},computeLat(){return(n,t=4)=>Q.LngLatHelper.lat2pretty(n,t).pretty},computeLng(){return(n,t=4)=>Q.LngLatHelper.lng2pretty(n,t).pretty},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}}},watch:{plan:{handler(){var n,t;(n=this.plan)!=null&&n.id&&(this.loading=!1,this.advisory=((t=this.plan)==null?void 0:t.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(n){this.editable=!1,this.$emit("commit",n)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=qi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var i,I,s,d,V,m,T;const n=[],t=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(m=(V=(d=(s=(I=(i=this.plan)==null?void 0:i.speeds)==null?void 0:I[this.speedIndex])==null?void 0:s.speed)==null?void 0:d.sample)==null?void 0:V.hours)==null||m.forEach(k=>{var y,z,C,E,p,S,O,D,Y,f;const j=k.meteo;if(j){const b=Ne(j.utc).utc().format("MMM-DD/HHmm[Z]");n.push(b),r=Math.ceil(((z=(y=j.wave)==null?void 0:y.sig)==null?void 0:z.height)>r?(E=(C=j.wave)==null?void 0:C.sig)==null?void 0:E.height:r),t.push([b,(p=j.wind)==null?void 0:p.kts,(O=(S=j.wave)==null?void 0:S.sig)==null?void 0:O.height,(D=j.wind)==null?void 0:D.direction,(Y=j.wind)==null?void 0:Y.degree,(f=j.wind)==null?void 0:f.scale,k.cFactor,k.wFactor,k.speed])}});const N={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:n,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}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,minInterval:5,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,max:r,min:0,minInterval:1,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,minInterval:.5,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:t,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(1, 189, 211, 1)"},{offset:.5,color:"rgba(1, 189, 211, 0.3)"},{offset:1,color:"rgba(1, 189, 211, 0)"}]}},lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:t,z:4}]};(T=this.echart)==null||T.setOption(N)}}},Os={class:"plan-report"},Ys={key:0,class:"loading-block"},fs={class:"info-block"},bs={class:"col"},Qs={class:"label-block"},Rs={class:"text"},hs={class:"label-block"},ws={class:"text"},Bs={class:"label-block"},Fs={class:"text"},Gs={class:"col"},Ps={class:"label-block"},Ws={key:0},Ls={key:1},Zs={style:{"margin-left":"16px"}},_s={class:"label-block"},Js={key:0},Hs={key:1},Xs={style:{"margin-left":"16px"}},Ks={class:"label-block"},qs={class:"text"},$s={class:"section chart-section"},us=["src"],vs={class:"legends text-tips"},ed={class:"legend"},td={key:0,class:"legend"},ld={key:1,class:"legend"},od={key:1,class:"empty"},nd={class:"section comparison-section"},ad={key:0,style:{"font-size":"12px"}},id={key:0},Nd=["rowspan"],sd={key:0},dd={key:1},rd={rowspan:"2"},cd={rowspan:"2"},Md={key:0},Dd={key:1},gd={rowspan:"1"},Id={key:0},Ed={rowspan:"2"},yd={rowspan:"2"},Ad={rowspan:"2"},md={key:0},Td={key:0},Vd=["rowspan"],zd={key:0},pd={rowspan:"1"},xd={key:0},jd={key:0},Ud={key:1},kd={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Sd={key:0},Cd={class:"section waypoint-section"},Od={class:"header-block"},Yd={class:"bg-block"},fd={class:"title"},bd={key:0,class:"flex-end",style:{flex:"1"}},Qd=["onClick"],Rd={class:"advisory bg-blue-light-2"},hd=["innerHTML"],wd={class:"major-waypoint"},Bd={class:"major-body"},Fd={class:"cell-item flex",style:{flex:"2.5"}},Gd={key:0,class:"flex-center"},Pd={key:1,class:"flex-center"},Wd={key:0,style:{"margin-left":"3px"}},Ld={class:"cell-item flex",style:{flex:"1.5"}},Zd={key:0,style:{"margin-left":"4px","font-weight":"600"}},_d={key:0,class:"cell-item flex offset"},Jd={key:1,class:"cell-item flex nbsp"},Hd={key:2,class:"cell-item flex offset"},Xd={key:3,class:"cell-item flex nbsp"},Kd={key:4,class:"cell-item flex offset"},qd={key:5,class:"cell-item flex nbsp"},$d={key:6,class:"cell-item flex offset"},ud={key:7,class:"cell-item flex nbsp"},vd={key:8,class:"cell-item flex offset"},er={key:9,class:"cell-item flex nbsp"},tr={class:"section forecast-section"},lr={style:{"page-break-inside":"avoid"}},or={class:"header-block"},nr={class:"bg-block"},ar={class:"title"},ir={key:0,class:"flex-end",style:{flex:"1"}},Nr=["onClick"],sr={class:"echart-block"},dr={ref:"echart",class:"echart"},rr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},cr={style:{"font-size":"12px"}},Mr=["colspan"],Dr={key:0},gr={class:"flex-center"},Ir={class:"degree-box"},Er={key:0},yr={key:2},Ar={key:0},mr={class:"degree-box"},Tr={key:0},Vr={key:2},zr={class:"degree-box"},pr={key:0},xr={key:2},jr={class:"degree-box"},Ur={key:0},kr={key:2};function Sr(n,t,l,r,N,i){var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J,o,F,H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be,x,_e,A,a,U,se,Fe,Ge,Pe,We,Le,Ze,Je,R,He,ue,ve,et,tt,lt,ot,nt,at,it,Nt,st,dt,rt,ct,Mt,Dt,It,Et,yt,At,mt,Tt,g,Vt,zt,pt,xt,jt,Ut,kt,St,qe,Rl,hl,wl,Bl,Fl,Gl,Pl,Wl;const I=e.resolveComponent("IdmBrand"),s=e.resolveComponent("IdmLoading"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",Os,[e.createVNode(I,{name:"Voyage Planning",issued:(V=l.plan)==null?void 0:V.updatedAt},null,8,["issued"]),N.loading?(e.openBlock(),e.createElementBlock("div",Ys,[e.createVNode(s,{loading:N.loading,onTimeout:t[0]||(t[0]=c=>N.loading=!1)},null,8,["loading"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",fs,[e.createElementVNode("div",bs,[e.createElementVNode("div",Qs,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",Rs,e.toDisplayString((k=(T=(m=l.plan)==null?void 0:m.voyage)==null?void 0:T.company)==null?void 0:k.name),1)]),e.createElementVNode("div",hs,[t[9]||(t[9]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",ws,e.toDisplayString((z=(y=(j=l.plan)==null?void 0:j.voyage)==null?void 0:y.vessel)==null?void 0:z.name)+" ("+e.toDisplayString((S=(p=(E=(C=l.plan)==null?void 0:C.voyage)==null?void 0:E.vessel)==null?void 0:p.vesselType)==null?void 0:S.name)+")",1)]),e.createElementVNode("div",Bs,[t[10]||(t[10]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",Fs,e.toDisplayString(((D=(O=l.plan)==null?void 0:O.voyage)==null?void 0:D.voyNum)||((f=(Y=l.plan)==null?void 0:Y.voyage)==null?void 0:f.number)),1)])]),e.createElementVNode("div",Gs,[e.createElementVNode("div",Ps,[t[11]||(t[11]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(w=(h=(b=l.plan)==null?void 0:b.leg)==null?void 0:h.departure)!=null&&w.name?(e.openBlock(),e.createElementBlock("span",Ws,e.toDisplayString((W=(P=(B=l.plan)==null?void 0:B.leg)==null?void 0:P.departure)==null?void 0:W.name),1)):(e.openBlock(),e.createElementBlock("span",Ls,e.toDisplayString(i.computePosition((Z=(L=l.plan)==null?void 0:L.leg)==null?void 0:Z.departure)),1)),e.createElementVNode("span",Zs,e.toDisplayString(i.computeUTCTime(((o=(J=(_=l.plan)==null?void 0:_.leg)==null?void 0:J.departure)==null?void 0:o.atd)||((X=(H=(F=l.plan)==null?void 0:F.leg)==null?void 0:H.departure)==null?void 0:X.etd)||((u=($=(q=(K=l.plan)==null?void 0:K.speeds)==null?void 0:q[N.speedIndex])==null?void 0:$.speed)==null?void 0:u.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),e.createElementVNode("div",_s,[t[12]||(t[12]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(te=(ee=(v=l.plan)==null?void 0:v.leg)==null?void 0:ee.destination)!=null&&te.name?(e.openBlock(),e.createElementBlock("span",Js,e.toDisplayString((G=(oe=(le=l.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:G.name),1)):(e.openBlock(),e.createElementBlock("span",Hs,e.toDisplayString(i.computePosition((ce=(re=l.plan)==null?void 0:re.leg)==null?void 0:ce.destination)),1)),e.createElementVNode("span",Xs,e.toDisplayString(i.computeUTCTime(((Ie=(ge=(De=(Me=l.plan)==null?void 0:Me.speeds)==null?void 0:De[N.speedIndex])==null?void 0:ge.speed)==null?void 0:Ie.ata)||((me=(Ae=(ye=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:ye[N.speedIndex])==null?void 0:Ae.speed)==null?void 0:me.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),e.createElementVNode("div",Ks,[t[13]||(t[13]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",qs,e.toDisplayString((Ve=(Te=l.plan)==null?void 0:Te.voyage)==null?void 0:Ve.loadCondition),1)])])]),e.createElementVNode("div",$s,[t[20]||(t[20]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(ze=l.plan)!=null&&ze.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.createElementVNode("img",{src:l.plan.chartUrl},null,8,us)]),e.createElementVNode("div",vs,[t[17]||(t[17]=e.createStaticVNode('<div class="legend" data-v-a1867e09><span class="dangerous" data-v-a1867e09></span><span data-v-a1867e09>Danger</span></div><div class="legend" data-v-a1867e09><span class="severe" data-v-a1867e09></span><span data-v-a1867e09>Severe</span></div><div class="legend" data-v-a1867e09><span class="heavy" data-v-a1867e09></span><span data-v-a1867e09>Heavy</span></div>',3)),e.createElementVNode("div",ed,[t[14]||(t[14]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=c=>{N.speedIndex=0,i.renderEchart()})},e.toDisplayString((ke=(Ue=(je=(xe=(pe=l.plan)==null?void 0:pe.speeds)==null?void 0:xe[0])==null?void 0:je.speed)==null?void 0:Ue.lane)==null?void 0:ke.name),1)]),((Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce.length)>1?(e.openBlock(),e.createElementBlock("div",td,[t[15]||(t[15]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=c=>{N.speedIndex=1,i.renderEchart()})},e.toDisplayString((Qe=(be=(fe=(Ye=(Oe=l.plan)==null?void 0:Oe.speeds)==null?void 0:Ye[1])==null?void 0:fe.speed)==null?void 0:be.lane)==null?void 0:Qe.name),1)])):e.createCommentVNode("",!0),((he=(Re=l.plan)==null?void 0:Re.speeds)==null?void 0:he.length)>2?(e.openBlock(),e.createElementBlock("div",ld,[t[16]||(t[16]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=c=>{N.speedIndex=2,i.renderEchart()})},e.toDisplayString((A=(_e=(x=(Be=(we=l.plan)==null?void 0:we.speeds)==null?void 0:Be[2])==null?void 0:x.speed)==null?void 0:_e.lane)==null?void 0:A.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",od,[e.createElementVNode("span",null,[t[18]||(t[18]=e.createTextVNode("Weather chart in cooking ",-1)),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...c)=>i.handleRefresh&&i.handleRefresh(...c))},"Refresh"),t[19]||(t[19]=e.createTextVNode(" later please",-1))])]))]),e.createElementVNode("div",nd,[(U=(a=l.plan)==null?void 0:a.speeds)!=null&&U.length?(e.openBlock(),e.createElementBlock("table",ad,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[23]||(t[23]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[24]||(t[24]=e.createElementVNode("th",null,[e.createTextVNode("SPD "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{clospan:"2"},[e.createTextVNode("DTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[26]||(t[26]=e.createElementVNode("th",null,[e.createTextVNode("ETA "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Stop "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{colspan:"2"},[e.createTextVNode("Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(e.openBlock(),e.createElementBlock("th",id,[...t[21]||(t[21]=[e.createTextVNode("TTL Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",{rowspan:i.showCost?1:2},[...t[22]||(t[22]=[e.createTextVNode("Diff Time ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Nd),t[29]||(t[29]=e.createElementVNode("th",null,"Weather en route",-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",null,[e.createTextVNode("*Daily Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[33]||(t[33]=e.createElementVNode("th",null,[e.createTextVNode("TTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[34]||(t[34]=e.createElementVNode("th",null,[e.createTextVNode("Avg.Spd/Wx.F/Cur.F "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[35]||(t[35]=e.createElementVNode("th",null,"*FO",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(e.openBlock(),e.createElementBlock("th",sd,[...t[30]||(t[30]=[e.createTextVNode("*Hire / Bunker ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),i.showCost?(e.openBlock(),e.createElementBlock("th",dd,[...t[31]||(t[31]=[e.createTextVNode("Diff Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",null,"*in the next "+e.toDisplayString(i.computeDay(l.plan,0))+" days",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=l.plan)==null?void 0:se.speeds,(c,de)=>{var Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl;return e.openBlock(),e.createElementBlock(e.Fragment,{key:de},[e.createElementVNode("tr",null,[e.createElementVNode("td",rd,e.toDisplayString(de+1),1),e.createElementVNode("td",cd,e.toDisplayString((Ke=(Xe=c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),1),e.createElementVNode("td",null,[c.speed.label!=="Combined"?(e.openBlock(),e.createElementBlock("span",Md,e.toDisplayString(`CP ${((Ct=(gt=c.speed)==null?void 0:gt.cpCopy)==null?void 0:Ct.speed)??((Ot=c.speed)==null?void 0:Ot.v0)}`),1)):(e.openBlock(),e.createElementBlock("div",Dd,[t[37]||(t[37]=e.createTextVNode("CP",-1)),t[38]||(t[38]=e.createElementVNode("sub",null,"1",-1)),e.createTextVNode(" "+e.toDisplayString((bt=(ft=(Yt=c.speed)==null?void 0:Yt.extend)==null?void 0:ft.cps[0])==null?void 0:bt.speed)+", CP",1),t[39]||(t[39]=e.createElementVNode("sub",null,"2",-1)),e.createTextVNode(" "+e.toDisplayString((ht=(Rt=(Qt=c.speed)==null?void 0:Qt.extend)==null?void 0:Rt.cps[1])==null?void 0:ht.speed),1)]))]),e.createElementVNode("td",gd,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((wt=c.speed)==null?void 0:wt.distance,0)),1),(Ft=(Bt=c.speed)==null?void 0:Bt.extend)!=null&&Ft.distanceInECA?(e.openBlock(),e.createElementBlock("span",Id," ("+e.toDisplayString(i.roundPrecision(c.speed.extend.distanceInECA,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(i.computeLTime((Gt=c.speed)==null?void 0:Gt.eta,(Lt=(Wt=(Pt=l.plan)==null?void 0:Pt.leg)==null?void 0:Wt.destination)==null?void 0:Lt.lng,(Jt=(_t=(Zt=l.plan)==null?void 0:Zt.leg)==null?void 0:_t.destination)==null?void 0:Jt.lat,($t=(qt=(Kt=(Xt=(Ht=l.plan)==null?void 0:Ht.leg)==null?void 0:Xt.destination)==null?void 0:Kt.port)==null?void 0:qt.timezone)==null?void 0:$t.RawOffset)),1),t[40]||(t[40]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(i.computeUTCTime((ut=c.speed)==null?void 0:ut.eta)),1)]),e.createElementVNode("td",Ed,e.toDisplayString(i.computeSuspend(c.speed)),1),e.createElementVNode("td",yd,e.toDisplayString(i.roundPrecision((vt=c.speed)==null?void 0:vt.totalFoCons,3)),1),e.createElementVNode("td",Ad,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((el=c.speed)==null?void 0:el.totalDgoCons,3)),1),(ll=(tl=c.speed)==null?void 0:tl.extend)!=null&&ll.totalDgoConsInECA?(e.openBlock(),e.createElementBlock("span",md," + "+e.toDisplayString(i.roundPrecision((ol=c.speed.extend)==null?void 0:ol.totalDgoConsInECA,3))+"*",1)):e.createCommentVNode("",!0)]),i.showCost?(e.openBlock(),e.createElementBlock("td",Td,e.toDisplayString((il=i.roundPrecision(((al=(nl=c==null?void 0:c.speed)==null?void 0:nl.cost)==null?void 0:al.total)/1e3,2))==null?void 0:il.toLocaleString("en-US"))+"k",1)):e.createCommentVNode("",!0),e.createElementVNode("td",{rowspan:i.showCost?1:2},e.toDisplayString(i.computeTimeDiff(l.plan,de)),9,Vd),t[41]||(t[41]=e.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,[((Nl=c.speed)==null?void 0:Nl.label)!=="Combined"?(e.openBlock(),e.createElementBlock("div",zd,"FO: "+e.toDisplayString((dl=(sl=c.speed)==null?void 0:sl.cpCopy)==null?void 0:dl.fo)+" / DO: "+e.toDisplayString((cl=(rl=c.speed)==null?void 0:rl.cpCopy)==null?void 0:cl.dgo),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,"FO: "+e.toDisplayString((Dl=(Ml=c.speed)==null?void 0:Ml.extend)==null?void 0:Dl.cps[0].fo)+" / "+e.toDisplayString((Il=(gl=c.speed)==null?void 0:gl.extend)==null?void 0:Il.cps[1].fo),1),e.createElementVNode("div",null,"DO: "+e.toDisplayString((yl=(El=c.speed)==null?void 0:El.extend)==null?void 0:yl.cps[0].dgo)+" / "+e.toDisplayString((ml=(Al=c.speed)==null?void 0:Al.extend)==null?void 0:ml.cps[1].dgo),1)],64))]),e.createElementVNode("td",pd,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((Tl=c.speed)==null?void 0:Tl.totalHrs,1)),1),(zl=(Vl=c.speed)==null?void 0:Vl.extend)!=null&&zl.hoursInECA?(e.openBlock(),e.createElementBlock("span",xd," ("+e.toDisplayString(i.roundPrecision(c.speed.extend.hoursInECA,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((pl=c.speed)==null?void 0:pl.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((xl=c.speed)==null?void 0:xl.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((jl=c.speed)==null?void 0:jl.cFactor,2)),1),i.showCost?(e.openBlock(),e.createElementBlock("td",jd,e.toDisplayString(i.roundPrecision(((kl=(Ul=c==null?void 0:c.speed)==null?void 0:Ul.cost)==null?void 0:kl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+e.toDisplayString(i.roundPrecision(((Cl=(Sl=c==null?void 0:c.speed)==null?void 0:Sl.cost)==null?void 0:Cl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):e.createCommentVNode("",!0),i.showCost?(e.openBlock(),e.createElementBlock("td",Ud,e.toDisplayString(i.computeCostDiff(l.plan,de)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(((Ol=c.speed)==null?void 0:Ol.dangerous)/24,2))+" / "+e.toDisplayString(i.roundPrecision(((Yl=c.speed)==null?void 0:Yl.severe)/24,2))+" / "+e.toDisplayString(i.roundPrecision(((fl=c.speed)==null?void 0:fl.heavy)/24,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",kd,[t[43]||(t[43]=e.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),i.showCost?(e.openBlock(),e.createElementBlock("span",Sd,[e.createTextVNode("* Hire cost was calculated at "+e.toDisplayString((Pe=i.roundPrecision((Ge=(Fe=l.plan)==null?void 0:Fe.voyage)==null?void 0:Ge.dailyHire,0))==null?void 0:Pe.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+e.toDisplayString((Ze=i.roundPrecision((Le=(We=l.plan)==null?void 0:We.voyage)==null?void 0:Le.priceFO,0))==null?void 0:Ze.toLocaleString("en-US"))+" USD/mt for FO and "+e.toDisplayString((He=i.roundPrecision((R=(Je=l.plan)==null?void 0:Je.voyage)==null?void 0:R.priceDGO,0))==null?void 0:He.toLocaleString("en-US"))+" USD/mt for MGO.",1),t[42]||(t[42]=e.createElementVNode("br",null,null,-1))])):e.createCommentVNode("",!0),t[45]||(t[45]=e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),t[47]||(t[47]=e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),e.createElementVNode("div",Cd,[e.createElementVNode("div",Od,[e.createElementVNode("div",Yd,[t[48]||(t[48]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",fd,"Advisory & Major Waypoint of Route "+e.toDisplayString((tt=(et=(ve=(ue=l.plan.speeds)==null?void 0:ue[N.speedIndex])==null?void 0:ve.speed)==null?void 0:et.lane)==null?void 0:tt.name),1),((ot=(lt=l.plan)==null?void 0:lt.speeds)==null?void 0:ot.length)>1?(e.openBlock(),e.createElementBlock("div",bd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((nt=l.plan)==null?void 0:nt.speeds,(c,de)=>{var Xe,Ke;return e.openBlock(),e.createElementBlock("div",{key:de,class:e.normalizeClass(["route-item print-hidden",N.speedIndex===de?"active":""]),onClick:gt=>{N.speedIndex=de,i.renderEchart()}},e.toDisplayString((Ke=(Xe=c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),11,Qd)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Rd,[N.editable?(e.openBlock(),e.createBlock(d,{key:0,modelValue:N.advisory,"onUpdate:modelValue":t[5]||(t[5]=c=>N.advisory=c),class:"editor",height:"120px",onBlur:t[6]||(t[6]=c=>i.handleCommit(c))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:t[7]||(t[7]=(...c)=>i.handleEdit&&i.handleEdit(...c)),innerHTML:N.advisory},null,40,hd))]),e.createElementVNode("div",wd,[t[49]||(t[49]=e.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-a1867e09><div class="cell-item flex" style="flex:2.5;" data-v-a1867e09>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-a1867e09>Time</div><div class="cell-item flex" data-v-a1867e09>Nav</div><div class="cell-item flex" data-v-a1867e09>Dist <span class="text-units" data-v-a1867e09>(nm)</span></div><div class="cell-item flex" data-v-a1867e09>SOG <span class="text-units" data-v-a1867e09>(kts)</span></div><div class="cell-item flex" data-v-a1867e09>COG <span class="text-units" data-v-a1867e09>(°)</span></div><div class="cell-item flex" data-v-a1867e09>Memo</div></div>',1)),e.createElementVNode("div",Bd,[(it=(at=l.plan)==null?void 0:at.speeds)!=null&&it.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.computeMajorPoints((rt=(dt=(st=(Nt=l.plan)==null?void 0:Nt.speeds)==null?void 0:st[N.speedIndex])==null?void 0:dt.speed)==null?void 0:rt.argv,(Et=(It=(Dt=(Mt=(ct=l.plan)==null?void 0:ct.speeds)==null?void 0:Mt[N.speedIndex])==null?void 0:Dt.speed)==null?void 0:It.sample)==null?void 0:Et.wps),(c,de)=>(e.openBlock(),e.createElementBlock("div",{key:de,class:"cell-row"},[e.createElementVNode("div",Fd,[c.isResume?(e.openBlock(),e.createElementBlock("div",Gd,"Resume")):(e.openBlock(),e.createElementBlock("div",Pd,[e.createElementVNode("span",null,e.toDisplayString(i.computePosition(c)),1),c.pilot?(e.openBlock(),e.createElementBlock("span",Wd,"[P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",Ld,[e.createTextVNode(e.toDisplayString(i.computeUTCTime(c.eta))+" ",1),c.cp?(e.openBlock(),e.createElementBlock("span",Zd,"[cp: "+e.toDisplayString(c.cp.speed)+"]",1)):e.createCommentVNode("",!0)]),de?(e.openBlock(),e.createElementBlock("div",_d,e.toDisplayString(i.computeNav(c)),1)):(e.openBlock(),e.createElementBlock("div",Jd)),de?(e.openBlock(),e.createElementBlock("div",Hd,e.toDisplayString(i.roundPrecision(c.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",Xd)),de?(e.openBlock(),e.createElementBlock("div",Kd,e.toDisplayString(i.roundPrecision(c.avgSpd??c.speed,2)),1)):(e.openBlock(),e.createElementBlock("div",qd)),de?(e.openBlock(),e.createElementBlock("div",$d,e.toDisplayString(i.computeCog(c.avgBearing)),1)):(e.openBlock(),e.createElementBlock("div",ud)),de?(e.openBlock(),e.createElementBlock("div",vd,e.toDisplayString(i.computeMemo(c)),1)):(e.openBlock(),e.createElementBlock("div",er))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",tr,[(At=(yt=l.plan)==null?void 0:yt.speeds)!=null&&At.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",lr,[e.createElementVNode("div",or,[e.createElementVNode("div",nr,[t[50]||(t[50]=e.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),e.createElementVNode("div",ar," Weather Forecast for the Next "+e.toDisplayString(i.computeDay(l.plan,N.speedIndex))+" Days of Route "+e.toDisplayString((zt=(Vt=(g=(Tt=(mt=l.plan)==null?void 0:mt.speeds)==null?void 0:Tt[N.speedIndex])==null?void 0:g.speed)==null?void 0:Vt.lane)==null?void 0:zt.name),1),((xt=(pt=l.plan)==null?void 0:pt.speeds)==null?void 0:xt.length)>1?(e.openBlock(),e.createElementBlock("div",ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((jt=l.plan)==null?void 0:jt.speeds,(c,de)=>{var Xe,Ke;return e.openBlock(),e.createElementBlock("div",{key:de,class:e.normalizeClass(["route-item print-hidden",N.speedIndex===de?"active":""]),onClick:gt=>{N.speedIndex=de,i.renderEchart()}},e.toDisplayString((Ke=(Xe=c==null?void 0:c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),11,Nr)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",sr,[e.createElementVNode("div",dr,null,512)]),e.createElementVNode("div",rr,"* "+e.toDisplayString(i.computeModel((St=(kt=(Ut=l.plan)==null?void 0:Ut.speeds)==null?void 0:kt[N.speedIndex])==null?void 0:St.speed)),1)]),t[68]||(t[68]=e.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)),e.createElementVNode("table",cr,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[51]||(t[51]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),t[52]||(t[52]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Rl=(qe=l.plan)==null?void 0:qe.voyage)!=null&&Rl.sendRptWithBF?3:2},"Wind",8,Mr),t[53]||(t[53]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[54]||(t[54]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[55]||(t[55]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[56]||(t[56]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(wl=(hl=l.plan)==null?void 0:hl.voyage)!=null&&wl.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",Dr,"BF")):e.createCommentVNode("",!0),t[59]||(t[59]=e.createElementVNode("th",null,"Dir",-1)),t[60]||(t[60]=e.createElementVNode("th",null,[e.createTextVNode("Ht "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[61]||(t[61]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[62]||(t[62]=e.createElementVNode("th",null,"Dir",-1)),t[63]||(t[63]=e.createElementVNode("th",null,[e.createTextVNode("Hgt "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[64]||(t[64]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[65]||(t[65]=e.createElementVNode("th",null,"Dir",-1)),t[66]||(t[66]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[67]||(t[67]=e.createElementVNode("th",null,[e.createTextVNode("Factor "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Wl=(Pl=(Gl=(Fl=(Bl=l.plan)==null?void 0:Bl.speeds)==null?void 0:Fl[N.speedIndex])==null?void 0:Gl.speed)==null?void 0:Pl.sample)==null?void 0:Wl.hours,(c,de)=>{var Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl,Ll,Zl,_l,Jl,Hl,$l,ul,vl,eo,to;return e.openBlock(),e.createElementBlock("tr",{key:de,class:e.normalizeClass(c.isDangerous?"dangerous":c.isSevere?"severe":c.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(c.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",gr,e.toDisplayString(i.computeLat(c.lat))+", "+e.toDisplayString(i.computeLng(c.lng)),1)]),e.createElementVNode("td",Ir,[(Ke=(Xe=c.meteo)==null?void 0:Xe.wind)!=null&&Ke.kts?(e.openBlock(),e.createElementBlock("span",Er,e.toDisplayString((Ct=(gt=c.meteo)==null?void 0:gt.wind)==null?void 0:Ct.direction),1)):e.createCommentVNode("",!0),(Yt=(Ot=c.meteo)==null?void 0:Ot.wind)!=null&&Yt.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("wind",(bt=(ft=c.meteo)==null?void 0:ft.wind)==null?void 0:bt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",yr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Rt=(Qt=c==null?void 0:c.meteo)==null?void 0:Qt.wind)==null?void 0:Rt.scale)>=4?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((wt=(ht=c.meteo)==null?void 0:ht.wind)==null?void 0:wt.kts,1)),3),(Ft=(Bt=l.plan)==null?void 0:Bt.voyage)!=null&&Ft.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",Ar,e.toDisplayString((Pt=(Gt=c.meteo)==null?void 0:Gt.wind)==null?void 0:Pt.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Zt=(Lt=(Wt=c.meteo)==null?void 0:Wt.wave)==null?void 0:Lt.wd)==null?void 0:Zt.height,1)),1),e.createElementVNode("td",mr,[(Ht=(Jt=(_t=c.meteo)==null?void 0:_t.wave)==null?void 0:Jt.swell)!=null&&Ht.height?(e.openBlock(),e.createElementBlock("span",Tr,e.toDisplayString((qt=(Kt=(Xt=c.meteo)==null?void 0:Xt.wave)==null?void 0:Kt.swell)==null?void 0:qt.direction),1)):e.createCommentVNode("",!0),(vt=(ut=($t=c.meteo)==null?void 0:$t.wave)==null?void 0:ut.swell)!=null&&vt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("swell",(ll=(tl=(el=c.meteo)==null?void 0:el.wave)==null?void 0:tl.swell)==null?void 0:ll.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Vr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((al=(nl=(ol=c==null?void 0:c.meteo)==null?void 0:ol.wave)==null?void 0:nl.swell)==null?void 0:al.height)>=1.5?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((sl=(Nl=(il=c.meteo)==null?void 0:il.wave)==null?void 0:Nl.swell)==null?void 0:sl.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((cl=(rl=(dl=c.meteo)==null?void 0:dl.wave)==null?void 0:rl.swell)==null?void 0:cl.period,1)),1),e.createElementVNode("td",zr,[(gl=(Dl=(Ml=c.meteo)==null?void 0:Ml.wave)==null?void 0:Dl.sig)!=null&&gl.height?(e.openBlock(),e.createElementBlock("span",pr,e.toDisplayString((yl=(El=(Il=c.meteo)==null?void 0:Il.wave)==null?void 0:El.sig)==null?void 0:yl.direction),1)):e.createCommentVNode("",!0),(Tl=(ml=(Al=c.meteo)==null?void 0:Al.wave)==null?void 0:ml.sig)!=null&&Tl.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("wave",(pl=(zl=(Vl=c.meteo)==null?void 0:Vl.wave)==null?void 0:zl.sig)==null?void 0:pl.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",xr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Ul=(jl=(xl=c==null?void 0:c.meteo)==null?void 0:xl.wave)==null?void 0:jl.sig)==null?void 0:Ul.height)>=1.5?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((Cl=(Sl=(kl=c.meteo)==null?void 0:kl.wave)==null?void 0:Sl.sig)==null?void 0:Cl.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((fl=(Yl=(Ol=c.meteo)==null?void 0:Ol.wave)==null?void 0:Yl.sig)==null?void 0:fl.period,1)),1),e.createElementVNode("td",jr,[(Zl=(Ll=c.meteo)==null?void 0:Ll.current)!=null&&Zl.kts?(e.openBlock(),e.createElementBlock("span",Ur,e.toDisplayString((Jl=(_l=c.meteo)==null?void 0:_l.current)==null?void 0:Jl.direction),1)):e.createCommentVNode("",!0),($l=(Hl=c.meteo)==null?void 0:Hl.current)!=null&&$l.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("current",(vl=(ul=c.meteo)==null?void 0:ul.current)==null?void 0:vl.degree,!0))},null,4)):(e.openBlock(),e.createElementBlock("span",kr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((to=(eo=c.meteo)==null?void 0:eo.current)==null?void 0:to.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(c.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[69]||(t[69]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[e.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),e.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),e.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 vi=Ql(Cs,[["render",Sr],["__scopeId","data-v-a1867e09"]]),Cr={install(n){n.component("PlanReport",vi)}},Or={install(n){n.component("IdmEditor",ql)}},xj="",Yr={name:"OrmVoyageSummary",components:{Editor:ql},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(n){return Ne(n.utc).subtract(n.timeCalc,"hour").format()}},computeDuration(){return function(n,t){const l=Ne(n).diff(Ne(t),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeWeatherDef(){return function(n){let t;if(n!=null&&n.overallAsGoodWx)t="No specific thresholds for wind/wave/currents are defined in the Charter Party",n.disableWxFactor&&n.disableCFactor?t+=", Both Wx Factor and Current Factor are ignored":n.disableWxFactor?t+=", Wx Factor is ignored":n.disableCFactor&&(t+=", Current Factor is ignored"),t+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";n!=null&&n.waveSwitch?l+=`Wind wave height is ${n==null?void 0:n.waveHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`:n!=null&&n.swellSwitch?l+=`Swell height is ${n==null?void 0:n.swellHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`:n!=null&&n.sigSwitch&&(l+=`Significant wave height is ${n==null?void 0:n.sigHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`),t=`Winds are BF/${n==null?void 0:n.windScale} or less, ${l}`,n!=null&&n.noAdverseCur&&(t+=", No Adverse Current"),n!=null&&n.waterTempSwitch&&(t+=`, water temperature is ${n==null?void 0:n.waterTemp} °C or less`),n!=null&&n.noExtrapolation&&(t+=", No Extrapolation"),(n==null?void 0:n.time)===100&&(n!=null&&n.timePercentage)&&(n==null?void 0:n.consecutiveTime)===1?t+=", All parts of the period.":(n==null?void 0:n.consecutiveTime)>1&!(n!=null&&n.consecTimePercentage)?t+=`, At least ${n==null?void 0:n.consecutiveTime} consecutive hours.`:t+="."}return t}},computeLng(){return function(n){return Q.LngLatHelper.lng2pretty(n)}},computeLat(){return function(n){return Q.LngLatHelper.lat2pretty(n)}},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}},computeAbtSpeed(){return function(n,t,l){return l==="Over"?n.abt4SpdOver:n.abt4SpdUnder}},computeAbtCons(){return function(n,t,l){if(n.consPercentage){if(t==="fo")return l==="Over"?`${n.consOfOver}%`:`${n.consOfUnder}%`;if(t==="dgo")return l==="Over"?`${n.consDgoOfOver??n.consOfOver}%`:`${n.consDgoOfUnder??n.consOfUnder}%`}else{if(t==="fo")return l==="Over"?`${n.consOfOver}`:`${n.consOfUnder}`;if(t==="dgo")return l==="Over"?`${n.consDgoOfOver??n.consOfOver}`:`${n.consDgoOfUnder??n.consOfUnder}`}}},computeBlankHtml(){return function(n){return!(n!=null&&n.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(n,t){n!=null&&n.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var n,t;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(t=(n=this.report)==null?void 0:n.segments)==null||t.forEach((l,r)=>{var I,s;l.excluded.detail.forEach(d=>{const V={time:Ne(d.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Ne(d.end).utc().format("MMM-DD/HHmm[Z]"),duration:d.duration,distance:d.distance,fo:d.foCons,dgo:d.dgoCons};this.exclusion.push(V)});const i=(s=(I=l==null?void 0:l.inventory)==null?void 0:I.sample)==null?void 0:s.hours.filter(d=>d.noon);this.noons.push([i])})},handleCommit(n){this.editable=!1,this.$emit("commit",n)},handleEdit(){this.editable=!0}}},fr={class:"report-summary"},br={class:"info-block"},Qr={class:"col"},Rr={class:"label-block"},hr={class:"text"},wr={class:"label-block"},Br={class:"text"},Fr={class:"label-block"},Gr={class:"text"},Pr={class:"col"},Wr={class:"label-block"},Lr={key:0},Zr={key:1},_r={style:{"margin-left":"16px"}},Jr={class:"label-block"},Hr={key:0},Xr={key:1},Kr={style:{"margin-left":"16px"}},qr={class:"label-block"},$r={class:"text"},ur={class:"section weather-section"},vr={class:"definition bg-blue-light-2"},ec={style:{"line-height":"1.5"}},tc={class:"section summary-section"},lc={class:"phase-box"},oc={class:"phase-index"},nc={class:"phase-position"},ac={key:0},ic={key:1},Nc={class:"phase-position"},sc={key:0},dc={key:1},rc={class:"phase-cp"},cc={class:"phase-conclusion"},Mc={class:"item-conclusion bg-blue-light-2"},Dc={class:"value align-left"},gc={key:0,class:"text-secondary align-right"},Ic={key:0},Ec={key:1},yc={key:2},Ac={key:1,class:"text-secondary"},mc={key:2,class:"value"},Tc={key:0},Vc={class:"gain"},zc={key:1},pc={class:"lost"},xc={key:2},jc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},kc={key:0,class:"text-secondary"},Sc={key:0},Cc={key:1},Oc={key:2},Yc={key:1,class:"text-secondary"},fc={key:2,class:"value"},bc={key:0},Qc={class:"gain"},Rc={key:1},hc={class:"lost"},wc={key:2},Bc={class:"item-conclusion bg-blue-light-2"},Fc={class:"value align-left"},Gc={key:0,class:"text-secondary"},Pc={key:0},Wc={key:1},Lc={key:2},Zc={key:1,class:"text-secondary"},_c={key:2,class:"value"},Jc={key:0},Hc={class:"gain"},Xc={key:1},Kc={class:"lost"},qc={key:2},$c={key:0,class:"exclusion-block"},uc={style:{margin:"8px 0"}},vc=["innerHTML"],eM={class:"section segment-section"},tM={class:"segment-summary"},lM={class:"segment-index text-left"},oM={class:"segment-position"},nM={key:0},aM={key:1},iM={class:"segment-position"},NM={key:0},sM={key:1},dM={class:"good-wx"},rM={class:"good-wx"},cM={class:"good-wx"},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"},mM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},zM={class:"good-wx"},pM={key:0,style:{"margin-top":"12px"}},xM={key:0},jM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},UM={key:2,class:"segment-speed"},kM={class:"row"},SM={class:"speed-right row"},CM={class:"speed"},OM={key:1,class:"speed"},YM={key:0,class:"speed"},fM={class:"speed"},bM={class:"speed"},QM={class:"speed"},RM={key:2,class:"under"},hM={key:3,class:"over"},wM={class:"row"},BM={class:"speed-right formula flex-space"},FM={key:0},GM={key:3,class:"segment-speed"},PM={class:"row"},WM={class:"speed-right row"},LM={class:"speed"},ZM={class:"speed"},_M={key:2,class:"under"},JM={key:3,class:"over"},HM={class:"row"},XM={class:"speed-right formula row"},KM={class:"segment-formula"},qM={class:"sub-title"},$M={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},uM={class:"formula-block"},vM={class:"formula-item flex-evenly bg-blue-light"},eD={class:"formula-right flex-evenly"},tD={class:"fraction",style:{width:"240px"}},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-left flex-space"},nD={class:"formula-right flex-evenly"},aD={class:"fraction",style:{width:"240px"}},iD={class:"formula-item flex-center bg-blue-light"},ND={class:"formula-left flex-space"},sD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"240px"}},rD={class:"formula-desc"},cD={class:"flex-end"},MD={class:"flex-end"},DD={class:"flex-end"},gD={key:0,class:"formula-block"},ID={class:"formula-item flex-evenly bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"200px"}},AD={class:"formula-item flex-center bg-blue-light"},mD={class:"formula-left flex-space"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"200px"}},zD={class:"formula-item flex-center bg-blue-light"},pD={class:"formula-left flex-space"},xD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"200px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},kD={key:0,class:"flex-evenly",style:{width:"500px"}},SD={key:1,class:"flex-evenly",style:{width:"500px"}},CD={class:"flex-center"},OD={key:1,class:"formula-conclusion bg-blue-light"},YD={class:"segment-formula"},fD={class:"sub-title"},bD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},QD={class:"formula-block"},RD={class:"formula-item flex-evenly bg-blue-light"},hD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"240px"}},BD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},FD={key:0,class:"flex-end text-tips"},GD={class:"formula-item flex-center bg-blue-light"},PD={class:"formula-right flex-evenly"},WD={class:"fraction",style:{width:"200px"}},LD={class:"formula-item flex-center bg-blue-light"},ZD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"200px"}},JD={class:"formula-item flex-center bg-blue-light"},HD={class:"formula-right flex-evenly"},XD={class:"fraction",style:{width:"300px"}},KD={class:"formula-item flex-center bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"300px"}},uD={class:"sub-title"},vD={key:0,class:"formula-block"},eg={key:0,class:"formula-item flex-evenly bg-blue-light"},tg={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"60px"}},og={class:"fraction",style:{width:"60px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},ig={class:"fraction",style:{width:"150px"}},Ng={class:"fraction",style:{width:"150px"}},sg={key:0},dg={class:"formula-item flex-evenly bg-blue-light"},rg={class:"formula-right flex-evenly"},cg={class:"fraction",style:{width:"150px"}},Mg={class:"fraction",style:{width:"150px"}},Dg={class:"formula-item flex-evenly bg-blue-light"},gg={class:"formula-right flex-evenly"},Ig={class:"fraction",style:{width:"150px"}},Eg={class:"fraction",style:{width:"150px"}},yg={class:"formula-item formula-conclusion bg-blue-light"},Ag={class:"flex-evenly",style:{width:"500px"}},mg={key:0,class:"flex-evenly"},Tg={class:"fraction"},Vg={class:"flex-evenly",style:{width:"700px"}},zg={key:0,class:"flex-evenly",style:{width:"500px"}},pg={class:"fraction",style:{width:"140px"}},xg={key:1,class:"formula-item formula-conclusion bg-blue-light"},jg={class:"header-block"},Ug={class:"bg-block"},kg={class:"title"},Sg={key:0,class:"formula-block"},Cg={class:"formula-item flex-evenly bg-blue-light"},Og={class:"formula-right flex-evenly"},Yg={class:"fraction",style:{width:"150px"}},fg={class:"fraction",style:{width:"150px"}},bg={key:0},Qg={class:"formula-item flex-evenly bg-blue-light"},Rg={class:"formula-right flex-evenly"},hg={class:"fraction",style:{width:"150px"}},wg={class:"fraction",style:{width:"150px"}},Bg={class:"formula-item flex-evenly bg-blue-light"},Fg={class:"formula-right flex-evenly"},Gg={class:"fraction",style:{width:"150px"}},Pg={class:"fraction",style:{width:"150px"}},Wg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Lg={key:0,class:"flex-evenly",style:{width:"500px"}},Zg={key:1,class:"flex-evenly",style:{width:"700px"}},_g={key:1,class:"formula-item formula-conclusion bg-blue-light"};function Jg(n,t,l,r,N,i){var s,d,V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J;const I=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",fr,[e.createElementVNode("div",br,[e.createElementVNode("div",Qr,[e.createElementVNode("div",Rr,[t[3]||(t[3]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",hr,e.toDisplayString(l.report.preparedFor),1)]),e.createElementVNode("div",wr,[t[4]||(t[4]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",Br,e.toDisplayString((d=(s=l.report)==null?void 0:s.vessel)==null?void 0:d.name)+" ("+e.toDisplayString((m=(V=l.report)==null?void 0:V.vessel)==null?void 0:m.type)+")",1)]),e.createElementVNode("div",Fr,[t[5]||(t[5]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",Gr,e.toDisplayString(((k=(T=l.report)==null?void 0:T.voyage)==null?void 0:k.voyNum)||((y=(j=l.report)==null?void 0:j.voyage)==null?void 0:y.number)),1)])]),e.createElementVNode("div",Pr,[e.createElementVNode("div",Wr,[t[6]||(t[6]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(C=(z=l.report)==null?void 0:z.departure)!=null&&C.name?(e.openBlock(),e.createElementBlock("span",Lr,e.toDisplayString((p=(E=l.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(e.openBlock(),e.createElementBlock("span",Zr,e.toDisplayString(i.computePosition((S=l.report)==null?void 0:S.departure)),1)),e.createElementVNode("span",_r,e.toDisplayString(i.computeUTCTime((D=(O=l.report)==null?void 0:O.departure)==null?void 0:D.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Jr,[t[7]||(t[7]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(f=(Y=l.report)==null?void 0:Y.arrival)!=null&&f.portName?(e.openBlock(),e.createElementBlock("span",Hr,e.toDisplayString((h=(b=l.report)==null?void 0:b.arrival)==null?void 0:h.portName),1)):(e.openBlock(),e.createElementBlock("span",Xr,e.toDisplayString(i.computePosition((w=l.report)==null?void 0:w.arrival)),1)),e.createElementVNode("span",Kr,e.toDisplayString(i.computeUTCTime((P=(B=l.report)==null?void 0:B.arrival)==null?void 0:P.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",qr,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",$r,e.toDisplayString((L=(W=l.report)==null?void 0:W.voyage)==null?void 0:L.loadCondition),1)])])]),e.createElementVNode("div",ur,[t[9]||(t[9]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),e.createElementVNode("div",vr,[e.createElementVNode("div",ec,e.toDisplayString(i.computeWeatherDef(l.report.weather)),1)])]),e.createElementVNode("div",tc,[t[37]||(t[37]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=l.report)==null?void 0:Z.segments,(o,F)=>{var H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be;return e.openBlock(),e.createElementBlock("div",{key:"summary"+F,class:"segment-box"},[e.createElementVNode("div",lc,[e.createElementVNode("div",oc,"Seg."+e.toDisplayString(F+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=o==null?void 0:o.extend)==null?void 0:H.segTimes,(x,_e)=>{var A,a,U,se,Fe,Ge,Pe,We,Le,Ze;return e.openBlock(),e.createElementBlock("div",{key:_e,class:"phase-row text-secondary"},[e.createElementVNode("div",nc,[(A=x==null?void 0:x.departure)!=null&&A.portName?(e.openBlock(),e.createElementBlock("span",ac,e.toDisplayString((a=x==null?void 0:x.departure)==null?void 0:a.portName),1)):(e.openBlock(),e.createElementBlock("span",ic,e.toDisplayString(i.computeLat((U=x==null?void 0:x.departure)==null?void 0:U.lat).pretty)+", "+e.toDisplayString(i.computeLng((se=x==null?void 0:x.departure)==null?void 0:se.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Fe=x==null?void 0:x.departure)==null?void 0:Fe.utcTime))+")",1)]),t[10]||(t[10]=e.createElementVNode("div",{class:"phase-split"},"~",-1)),e.createElementVNode("div",Nc,[(Ge=x==null?void 0:x.arrival)!=null&&Ge.portName?(e.openBlock(),e.createElementBlock("span",sc,e.toDisplayString((Pe=x==null?void 0:x.arrival)==null?void 0:Pe.portName),1)):(e.openBlock(),e.createElementBlock("span",dc,e.toDisplayString(i.computeLat((We=x==null?void 0:x.arrival)==null?void 0:We.lat).pretty)+", "+e.toDisplayString(i.computeLng((Le=x==null?void 0:x.arrival)==null?void 0:Le.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Ze=x==null?void 0:x.arrival)==null?void 0:Ze.utcTime))+")",1)])])}),128)),e.createElementVNode("div",rc,[e.createElementVNode("table",null,[t[18]||(t[18]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,"CP")]),e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily FO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily DO/GO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[17]||(t[17]=e.createElementVNode("td",null,null,-1)),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((K=(X=o==null?void 0:o.extend)==null?void 0:X.cp)==null?void 0:K.speed)+" |",1),t[11]||(t[11]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,($=(q=o==null?void 0:o.extend)==null?void 0:q.cp)==null?void 0:$.speed,"Over"))+",",1),t[12]||(t[12]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(v=(u=o==null?void 0:o.extend)==null?void 0:u.cp)==null?void 0:v.speed,"Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((te=(ee=o==null?void 0:o.extend)==null?void 0:ee.cp)==null?void 0:te.fo)+" |",1),t[13]||(t[13]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"fo","Over"))+",",1),t[14]||(t[14]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"fo","Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((oe=(le=o==null?void 0:o.extend)==null?void 0:le.cp)==null?void 0:oe.dgo)+" |",1),t[15]||(t[15]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"dgo","Over"))+",",1),t[16]||(t[16]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"dgo","Under")),1)])])])])]),e.createElementVNode("div",cc,[e.createElementVNode("div",Mc,[t[24]||(t[24]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),e.createElementVNode("div",Dc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.time),1),t[19]||(t[19]=e.createElementVNode("span",{class:"unit"},"hrs",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",gc,[((G=o==null?void 0:o.timeConclusion)==null?void 0:G.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("span",Ic,"Time Gained")):((re=o==null?void 0:o.timeConclusion)==null?void 0:re.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("span",Ec,"Time Lost")):(e.openBlock(),e.createElementBlock("span",yc,"No Time Lost/Gained"))])):(e.openBlock(),e.createElementBlock("div",Ac,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",mc,[((ce=o==null?void 0:o.timeConclusion)==null?void 0:ce.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",Tc,[t[20]||(t[20]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Vc,e.toDisplayString((Me=o==null?void 0:o.timeConclusion)==null?void 0:Me.timeGain),1),t[21]||(t[21]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):((De=o==null?void 0:o.timeConclusion)==null?void 0:De.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",zc,[t[22]||(t[22]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",pc,e.toDisplayString((ge=o==null?void 0:o.timeConclusion)==null?void 0:ge.timeLost),1),t[23]||(t[23]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):(e.openBlock(),e.createElementBlock("div",xc,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jc,[t[30]||(t[30]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),e.createElementVNode("div",Uc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.sumFoCons),1),t[25]||(t[25]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",kc,[((Ee=(Ie=o==null?void 0:o.fuelConclusion)==null?void 0:Ie.fo)==null?void 0:Ee.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Sc,"FO Saving")):((Ae=(ye=o==null?void 0:o.fuelConclusion)==null?void 0:ye.fo)==null?void 0:Ae.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",Cc,"FO Over-consumption")):(e.openBlock(),e.createElementBlock("span",Oc,"No FO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Yc,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",fc,[((Te=(me=o==null?void 0:o.fuelConclusion)==null?void 0:me.fo)==null?void 0:Te.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",bc,[t[26]||(t[26]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Qc,e.toDisplayString((ze=(Ve=o==null?void 0:o.fuelConclusion)==null?void 0:Ve.fo)==null?void 0:ze.saving),1),t[27]||(t[27]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((xe=(pe=o==null?void 0:o.fuelConclusion)==null?void 0:pe.fo)==null?void 0:xe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Rc,[t[28]||(t[28]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",hc,e.toDisplayString((Ue=(je=o==null?void 0:o.fuelConclusion)==null?void 0:je.fo)==null?void 0:Ue.overCons),1),t[29]||(t[29]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",wc,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Bc,[t[36]||(t[36]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),e.createElementVNode("div",Fc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.sumDgoCons),1),t[31]||(t[31]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",Gc,[((Se=(ke=o==null?void 0:o.fuelConclusion)==null?void 0:ke.dgo)==null?void 0:Se.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Pc,"DO/GO Saving")):((Oe=(Ce=o==null?void 0:o.fuelConclusion)==null?void 0:Ce.dgo)==null?void 0:Oe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",Wc,"DO/GO Over-consumption")):(e.openBlock(),e.createElementBlock("span",Lc,"No DO/GO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Zc,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",_c,[((fe=(Ye=o==null?void 0:o.fuelConclusion)==null?void 0:Ye.dgo)==null?void 0:fe.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",Jc,[t[32]||(t[32]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Hc,e.toDisplayString((Qe=(be=o==null?void 0:o.fuelConclusion)==null?void 0:be.dgo)==null?void 0:Qe.saving),1),t[33]||(t[33]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((he=(Re=o==null?void 0:o.fuelConclusion)==null?void 0:Re.dgo)==null?void 0:he.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Xc,[t[34]||(t[34]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",Kc,e.toDisplayString((Be=(we=o==null?void 0:o.fuelConclusion)==null?void 0:we.dgo)==null?void 0:Be.overCons),1),t[35]||(t[35]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",qc,"N/A"))])):e.createCommentVNode("",!0)])])])])}),128)),t[38]||(t[38]=e.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),e.createElementVNode("div",{class:e.normalizeClass(i.computeBlankHtml((_=l.report)==null?void 0:_.remarks)&&!N.exclusion.length?"section remark-section print-hidden":"section remark-section")},[t[42]||(t[42]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-biaodan"}),e.createElementVNode("div",{class:"title"},"Remarks")])],-1)),N.exclusion.length?(e.openBlock(),e.createElementBlock("div",$c,[t[40]||(t[40]=e.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),t[41]||(t[41]=e.createElementVNode("div",{class:"text-secondary"},[e.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),e.createElementVNode("div",uc,[e.createElementVNode("table",null,[t[39]||(t[39]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",{style:{width:"40%"}},"Time"),e.createElementVNode("th",null,[e.createTextVNode("Duration "),e.createElementVNode("span",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",null,[e.createTextVNode("Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")]),e.createElementVNode("th",null,[e.createTextVNode("FO "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("DO/GO "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.exclusion,(o,F)=>(e.openBlock(),e.createElementBlock("tr",{key:F},[e.createElementVNode("td",null,e.toDisplayString(F+1),1),e.createElementVNode("td",null,e.toDisplayString(o.time),1),e.createElementVNode("td",null,e.toDisplayString(o.duration),1),e.createElementVNode("td",null,e.toDisplayString(o.distance),1),e.createElementVNode("td",null,e.toDisplayString(o.fo),1),e.createElementVNode("td",null,e.toDisplayString(o.dgo),1)]))),128))])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(i.computeBlankHtml((J=l.report)==null?void 0:J.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[N.editable?(e.openBlock(),e.createBlock(I,{key:0,modelValue:N.remarks,"onUpdate:modelValue":t[0]||(t[0]=o=>N.remarks=o),class:"editor",height:"120px",onBlur:t[1]||(t[1]=o=>i.handleCommit(o))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,onDblclick:t[2]||(t[2]=(...o)=>i.handleEdit&&i.handleEdit(...o)),innerHTML:N.remarks},null,40,vc))],2)],2),e.createElementVNode("div",eM,[t[244]||(t[244]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-baobiao"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.report.segments,(o,F)=>{var H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be,x,_e,A,a,U,se,Fe,Ge,Pe,We,Le,Ze,Je,R,He,ue,ve,et,tt,lt,ot,nt,at,it,Nt,st,dt,rt,ct,Mt,Dt,It,Et,yt,At,mt,Tt,g,Vt,zt,pt,xt,jt,Ut,kt,St,qe,Rl,hl,wl,Bl,Fl,Gl,Pl,Wl,c,de,Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl,Ll,Zl,_l,Jl,Hl,$l,ul,vl,eo,to,lo,oo,no,ao,io,No,so,ro,co,Mo,Do,go,Io,Eo,yo,Ao,mo,To,Vo,zo,po,xo,jo,Uo,ko,So,Co,Oo,Yo,M,fo,bo,Qo,Ro,ho,wo,Bo,Fo,Xl,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,en,tn,ln,on,nn,an,Nn,sn,dn,rn,cn,Mn,Dn,gn,In,En,yn,An,mn,Tn,Vn,zn,pn,xn,jn,Un,kn,Sn,Cn,On,Yn,fn,bn,Qn,Rn,hn,wn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ea,ta,la,oa,na,aa,ia,Na,sa,da,ra,ca,Ma,Da,ga,Ia,Ea,ya,Aa,ma,Ta,Va,za,pa,xa,ja,Ua,ka,Sa,Ca,Oa,Ya,fa,ba,Qa,Ra,ha,wa,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,ei,ti,li,oi,ni,ai,ii,Ni,si,di,ri,ci,Mi,Di,gi,Ii,Ei,yi,Ai,mi,Ti,Vi,zi,pi,xi,ji,Ui,ki,Si,Ci,Oi,Yi,fi,bi,Qi,Ri,hi,wi,Bi;return e.openBlock(),e.createElementBlock("div",{key:F,class:"segment-block"},[e.createElementVNode("div",tM,[e.createElementVNode("div",lM,"Voyage Analysis Seg. "+e.toDisplayString(F+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=o==null?void 0:o.extend)==null?void 0:H.segTimes,(ne,Po)=>{var Kl,Go,Fi,Gi,Pi,Wi,Li,Zi,_i,Ji;return e.openBlock(),e.createElementBlock("div",{key:Po,class:"segment-row text-secondary"},[e.createElementVNode("div",oM,[(Kl=ne==null?void 0:ne.departure)!=null&&Kl.portName?(e.openBlock(),e.createElementBlock("span",nM,e.toDisplayString((Go=ne==null?void 0:ne.departure)==null?void 0:Go.portName),1)):(e.openBlock(),e.createElementBlock("span",aM,e.toDisplayString(i.computeLat((Fi=ne==null?void 0:ne.departure)==null?void 0:Fi.lat).pretty)+", "+e.toDisplayString(i.computeLng((Gi=ne==null?void 0:ne.departure)==null?void 0:Gi.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Pi=ne==null?void 0:ne.departure)==null?void 0:Pi.utcTime))+")",1)]),t[43]||(t[43]=e.createElementVNode("div",{class:"segment-split"},"~",-1)),e.createElementVNode("div",iM,[(Wi=ne==null?void 0:ne.arrival)!=null&&Wi.portName?(e.openBlock(),e.createElementBlock("span",NM,e.toDisplayString((Li=ne==null?void 0:ne.arrival)==null?void 0:Li.portName),1)):(e.openBlock(),e.createElementBlock("span",sM,e.toDisplayString(i.computeLat((Zi=ne==null?void 0:ne.arrival)==null?void 0:Zi.lat).pretty)+", "+e.toDisplayString(i.computeLng((_i=ne==null?void 0:ne.arrival)==null?void 0:_i.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Ji=ne==null?void 0:ne.arrival)==null?void 0:Ji.utcTime))+")",1)])])}),128)),e.createElementVNode("table",null,[t[51]||(t[51]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{style:{width:"35%"}}),e.createElementVNode("th",{colspan:"2"},"Good Weather"),e.createElementVNode("th",{colspan:"2"},"All Weather")]),e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA")])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[44]||(t[44]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e.createElementVNode("td",dM,e.toDisplayString((K=(X=o==null?void 0:o.goodWx)==null?void 0:X.outEca)==null?void 0:K.distance),1),e.createElementVNode("td",rM,e.toDisplayString(($=(q=o==null?void 0:o.goodWx)==null?void 0:q.inEca)==null?void 0:$.distance),1),e.createElementVNode("td",null,e.toDisplayString((v=(u=o==null?void 0:o.allWx)==null?void 0:u.outEca)==null?void 0:v.distance),1),e.createElementVNode("td",null,e.toDisplayString((te=(ee=o==null?void 0:o.allWx)==null?void 0:ee.inEca)==null?void 0:te.distance),1)]),e.createElementVNode("tr",null,[t[45]||(t[45]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Time "),e.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),e.createElementVNode("td",cM,e.toDisplayString((oe=(le=o==null?void 0:o.goodWx)==null?void 0:le.outEca)==null?void 0:oe.time),1),e.createElementVNode("td",MM,e.toDisplayString((re=(G=o==null?void 0:o.goodWx)==null?void 0:G.inEca)==null?void 0:re.time),1),e.createElementVNode("td",null,e.toDisplayString((Me=(ce=o==null?void 0:o.allWx)==null?void 0:ce.outEca)==null?void 0:Me.time),1),e.createElementVNode("td",null,e.toDisplayString((ge=(De=o==null?void 0:o.allWx)==null?void 0:De.inEca)==null?void 0:ge.time),1)]),e.createElementVNode("tr",null,[t[46]||(t[46]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Average Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e.createElementVNode("td",DM,e.toDisplayString(((Ee=(Ie=o==null?void 0:o.goodWx)==null?void 0:Ie.outEca)==null?void 0:Ee.avgSpd)||"--"),1),e.createElementVNode("td",gM,e.toDisplayString(((Ae=(ye=o==null?void 0:o.goodWx)==null?void 0:ye.inEca)==null?void 0:Ae.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Te=(me=o==null?void 0:o.allWx)==null?void 0:me.outEca)==null?void 0:Te.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ze=(Ve=o==null?void 0:o.allWx)==null?void 0:Ve.inEca)==null?void 0:ze.avgSpd)||"--"),1)]),e.createElementVNode("tr",null,[t[47]||(t[47]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",IM,e.toDisplayString(((xe=(pe=o==null?void 0:o.goodWx)==null?void 0:pe.outEca)==null?void 0:xe.sumFoCons)||"--"),1),e.createElementVNode("td",EM,e.toDisplayString(((Ue=(je=o==null?void 0:o.goodWx)==null?void 0:je.inEca)==null?void 0:Ue.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Se=(ke=o==null?void 0:o.allWx)==null?void 0:ke.outEca)==null?void 0:Se.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Oe=(Ce=o==null?void 0:o.allWx)==null?void 0:Ce.inEca)==null?void 0:Oe.sumFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[48]||(t[48]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",yM,e.toDisplayString(((fe=(Ye=o==null?void 0:o.goodWx)==null?void 0:Ye.outEca)==null?void 0:fe.avgFoCons)||"--"),1),e.createElementVNode("td",AM,e.toDisplayString(((Qe=(be=o==null?void 0:o.goodWx)==null?void 0:be.inEca)==null?void 0:Qe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((he=(Re=o==null?void 0:o.allWx)==null?void 0:Re.outEca)==null?void 0:he.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Be=(we=o==null?void 0:o.allWx)==null?void 0:we.inEca)==null?void 0:Be.avgFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",mM,e.toDisplayString(((_e=(x=o==null?void 0:o.goodWx)==null?void 0:x.outEca)==null?void 0:_e.sumDgoCons)||"--"),1),e.createElementVNode("td",TM,e.toDisplayString(((a=(A=o==null?void 0:o.goodWx)==null?void 0:A.inEca)==null?void 0:a.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((se=(U=o==null?void 0:o.allWx)==null?void 0:U.outEca)==null?void 0:se.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Ge=(Fe=o==null?void 0:o.allWx)==null?void 0:Fe.inEca)==null?void 0:Ge.sumDgoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[50]||(t[50]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",VM,e.toDisplayString(((We=(Pe=o==null?void 0:o.goodWx)==null?void 0:Pe.outEca)==null?void 0:We.avgDgoCons)||"--"),1),e.createElementVNode("td",zM,e.toDisplayString(((Ze=(Le=o==null?void 0:o.goodWx)==null?void 0:Le.inEca)==null?void 0:Ze.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((R=(Je=o==null?void 0:o.allWx)==null?void 0:Je.outEca)==null?void 0:R.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ue=(He=o==null?void 0:o.allWx)==null?void 0:He.inEca)==null?void 0:ue.avgDgoCons)||"--"),1)])])]),(ve=o==null?void 0:o.goodWx)!=null&&ve.distance?(e.openBlock(),e.createElementBlock("table",pM,[t[53]||(t[53]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Date"),e.createElementVNode("th",null,"Time range"),e.createElementVNode("th",null,"Duration (hrs)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.noons[F],(ne,Po)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:Po},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne,(Kl,Go)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:Go},[Kl.goodWx?(e.openBlock(),e.createElementBlock("tr",xM,[e.createElementVNode("td",null,e.toDisplayString(Kl.type)+" "+e.toDisplayString(i.computeUTCTime(Kl.utc,"MMM-DD")),1),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(i.computeUTCTime(i.computePrevTime(Kl),"MMM-DD/HHmm[Z],YYYY")),1),t[52]||(t[52]=e.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeUTCTime(Kl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(i.computeDuration(Kl.utc,i.computePrevTime(Kl))),1)])])):e.createCommentVNode("",!0)],64))),128))],64))),128))])])):e.createCommentVNode("",!0),(et=N.exclusion[F])!=null&&et.time?(e.openBlock(),e.createElementBlock("div",jM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):e.createCommentVNode("",!0),(tt=o==null?void 0:o.goodWx)!=null&&tt.distance?(e.openBlock(),e.createElementBlock("div",UM,[e.createElementVNode("div",kM,[t[63]||(t[63]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",SM,[(ot=(lt=l.report)==null?void 0:lt.weather)!=null&&ot.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(It=(Dt=l.report)==null?void 0:Dt.weather)!=null&&It.disableWxFactor&&((yt=(Et=l.report)==null?void 0:Et.weather)!=null&&yt.disableCFactor)?(e.openBlock(),e.createElementBlock("span",YM,e.toDisplayString((At=o==null?void 0:o.goodWx)==null?void 0:At.pfmSpd)+" (kts)",1)):(Tt=(mt=l.report)==null?void 0:mt.weather)!=null&&Tt.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((g=o==null?void 0:o.goodWx)==null?void 0:g.avgSpd),1),t[56]||(t[56]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Vt=o==null?void 0:o.goodWx)==null?void 0:Vt.avgCf)>0?(zt=o==null?void 0:o.goodWx)==null?void 0:zt.avgCf:`(${(pt=o==null?void 0:o.goodWx)==null?void 0:pt.avgCf})`),1),t[57]||(t[57]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",fM,e.toDisplayString((xt=o==null?void 0:o.goodWx)==null?void 0:xt.pfmSpd)+" (kts)",1)],64)):(Ut=(jt=l.report)==null?void 0:jt.weather)!=null&&Ut.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString((kt=o==null?void 0:o.goodWx)==null?void 0:kt.avgSpd),1),t[58]||(t[58]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((St=o==null?void 0:o.goodWx)==null?void 0:St.avgWf)>0?(qe=o==null?void 0:o.goodWx)==null?void 0:qe.avgWf:`(${(Rl=o==null?void 0:o.goodWx)==null?void 0:Rl.avgWf})`),1),t[59]||(t[59]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",bM,e.toDisplayString((hl=o==null?void 0:o.goodWx)==null?void 0:hl.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString((wl=o==null?void 0:o.goodWx)==null?void 0:wl.avgSpd),1),t[61]||(t[61]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Bl=o==null?void 0:o.goodWx)==null?void 0:Bl.avgWf)>0?(Fl=o==null?void 0:o.goodWx)==null?void 0:Fl.avgWf:`(${(Gl=o==null?void 0:o.goodWx)==null?void 0:Gl.avgWf})`),1),(Wl=(Pl=l.report)==null?void 0:Pl.weather)!=null&&Wl.favorableCur&&((c=o==null?void 0:o.goodWx)==null?void 0:c.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[60]||(t[60]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((de=o==null?void 0:o.goodWx)==null?void 0:de.avgCf)>0?(Xe=o==null?void 0:o.goodWx)==null?void 0:Xe.avgCf:`(${(Ke=o==null?void 0:o.goodWx)==null?void 0:Ke.avgCf})`),1)],64)),t[62]||(t[62]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",QM,e.toDisplayString((gt=o==null?void 0:o.goodWx)==null?void 0:gt.pfmSpd)+" (kts)",1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(at=(nt=l.report)==null?void 0:nt.weather)!=null&&at.favorableCur&&((it=o==null?void 0:o.goodWx)==null?void 0:it.avgCf)>0?(e.openBlock(),e.createElementBlock("span",OM,e.toDisplayString((Mt=o==null?void 0:o.goodWx)==null?void 0:Mt.pfmSpd)+" (kts)",1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((Nt=o==null?void 0:o.goodWx)==null?void 0:Nt.avgSpd),1),t[54]||(t[54]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((st=o==null?void 0:o.goodWx)==null?void 0:st.avgCf)>0?(dt=o==null?void 0:o.goodWx)==null?void 0:dt.avgCf:`(${(rt=o==null?void 0:o.goodWx)==null?void 0:rt.avgCf})`),1),t[55]||(t[55]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",CM,e.toDisplayString((ct=o==null?void 0:o.goodWx)==null?void 0:ct.pfmSpd)+" (kts)",1)],64))],64)),((Ct=o==null?void 0:o.goodWx)==null?void 0:Ct.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",RM,"(Under-performance)")):e.createCommentVNode("",!0),((Ot=o==null?void 0:o.goodWx)==null?void 0:Ot.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",hM,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wM,[t[80]||(t[80]=e.createElementVNode("div",{class:"speed-left formula flex-space"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",BM,[(ft=(Yt=l.report)==null?void 0:Yt.weather)!=null&&ft.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(wt=(ht=l.report)==null?void 0:ht.weather)!=null&&wt.disableWxFactor&&((Ft=(Bt=l.report)==null?void 0:Bt.weather)!=null&&Ft.disableCFactor)?(e.openBlock(),e.createElementBlock("label",FM,"GW Average Speed")):(Pt=(Gt=l.report)==null?void 0:Gt.weather)!=null&&Pt.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[69]||(t[69]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[70]||(t[70]=e.createElementVNode("label",null,"-",-1)),t[71]||(t[71]=e.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Lt=(Wt=l.report)==null?void 0:Wt.weather)!=null&&Lt.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t[72]||(t[72]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[73]||(t[73]=e.createElementVNode("label",null,"-",-1)),t[74]||(t[74]=e.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t[77]||(t[77]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[78]||(t[78]=e.createElementVNode("label",null,"-",-1)),t[79]||(t[79]=e.createElementVNode("label",null,"GW Weather Factor",-1)),(_t=(Zt=l.report)==null?void 0:Zt.weather)!=null&&_t.favorableCur&&((Jt=o==null?void 0:o.goodWx)==null?void 0:Jt.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[75]||(t[75]=e.createElementVNode("label",null,"-",-1)),t[76]||(t[76]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(Qt=(bt=l.report)==null?void 0:bt.weather)!=null&&Qt.favorableCur&&((Rt=o==null?void 0:o.goodWx)==null?void 0:Rt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[67]||(t[67]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[68]||(t[68]=e.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[64]||(t[64]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[65]||(t[65]=e.createElementVNode("label",null,"-",-1)),t[66]||(t[66]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(e.openBlock(),e.createElementBlock("div",GM,[e.createElementVNode("div",PM,[t[86]||(t[86]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",WM,[(Xt=(Ht=l.report)==null?void 0:Ht.weather)!=null&&Xt.favorableCur&&((Kt=o==null?void 0:o.allWx)==null?void 0:Kt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((nl=o==null?void 0:o.allWx)==null?void 0:nl.avgSpd),1),t[84]||(t[84]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((al=o==null?void 0:o.allWx)==null?void 0:al.avgWf)>0?(il=o==null?void 0:o.allWx)==null?void 0:il.avgWf:`(${(Nl=o==null?void 0:o.allWx)==null?void 0:Nl.avgWf})`),1),t[85]||(t[85]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ZM,e.toDisplayString((sl=o==null?void 0:o.allWx)==null?void 0:sl.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((qt=o==null?void 0:o.allWx)==null?void 0:qt.avgSpd),1),t[81]||(t[81]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString((($t=o==null?void 0:o.allWx)==null?void 0:$t.avgCf)>0?(ut=o==null?void 0:o.allWx)==null?void 0:ut.avgCf:`(${(vt=o==null?void 0:o.allWx)==null?void 0:vt.avgCf})`),1),t[82]||(t[82]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((el=o==null?void 0:o.allWx)==null?void 0:el.avgWf)>0?(tl=o==null?void 0:o.allWx)==null?void 0:tl.avgWf:`(${(ll=o==null?void 0:o.allWx)==null?void 0:ll.avgWf})`),1),t[83]||(t[83]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",LM,e.toDisplayString((ol=o==null?void 0:o.allWx)==null?void 0:ol.pfmSpd)+" (kts)",1)],64)),((dl=o==null?void 0:o.allWx)==null?void 0:dl.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",_M,"(Under-performance)")):e.createCommentVNode("",!0),((rl=o==null?void 0:o.allWx)==null?void 0:rl.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",JM,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HM,[t[96]||(t[96]=e.createElementVNode("div",{class:"speed-left formula row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",XM,[(Ml=(cl=l.report)==null?void 0:cl.weather)!=null&&Ml.favorableCur&&((Dl=o==null?void 0:o.allWx)==null?void 0:Dl.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[92]||(t[92]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[93]||(t[93]=e.createElementVNode("label",null,"-",-1)),t[94]||(t[94]=e.createElementVNode("label",null,"Weather Factor ",-1)),t[95]||(t[95]=e.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[87]||(t[87]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[88]||(t[88]=e.createElementVNode("label",null,"-",-1)),t[89]||(t[89]=e.createElementVNode("label",null,"Current Factor",-1)),t[90]||(t[90]=e.createElementVNode("label",null,"-",-1)),t[91]||(t[91]=e.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),e.createElementVNode("div",KM,[e.createElementVNode("div",qM,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(F+1)+" Time Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(e.openBlock(),e.createElementBlock("span",$M,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",uM,[e.createElementVNode("div",vM,[t[100]||(t[100]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",null,e.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[97]||(t[97]=e.createElementVNode("div",{class:"line"},null,-1)),t[98]||(t[98]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[99]||(t[99]=e.createElementVNode("div",null,"(a)",-1))])]),e.createElementVNode("div",lD,[e.createElementVNode("div",oD,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(ml=(Al=o==null?void 0:o.extend)==null?void 0:Al.cp)==null?void 0:ml.speed,"Under"))+"kts)",1),t[101]||(t[101]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",nD,[e.createElementVNode("div",aD,[e.createElementVNode("div",null,e.toDisplayString((Vl=(Tl=l.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[102]||(t[102]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(pl=(zl=o==null?void 0:o.extend)==null?void 0:zl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),t[103]||(t[103]=e.createElementVNode("div",null,"(b)",-1))])]),e.createElementVNode("div",iD,[e.createElementVNode("div",ND,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(jl=(xl=o==null?void 0:o.extend)==null?void 0:xl.cp)==null?void 0:jl.speed,"Over"))+"kts)",1),t[104]||(t[104]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",sD,[e.createElementVNode("div",dD,[e.createElementVNode("div",null,e.toDisplayString((kl=(Ul=l.report)==null?void 0:Ul.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[105]||(t[105]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Cl=(Sl=o==null?void 0:o.extend)==null?void 0:Sl.cp)==null?void 0:Cl.speed,"Over"))+"kts",1)]),t[106]||(t[106]=e.createElementVNode("div",null,"(c)",-1))])]),t[107]||(t[107]=e.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-9f3f41e0><div class="flex-space" style="width:300px;font-weight:400;" data-v-9f3f41e0><label data-v-9f3f41e0>Time Lost</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(a)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-9f3f41e0><label data-v-9f3f41e0>Time Gained</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(c)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(a)</div></div></div>',1))]),e.createElementVNode("div",rD,[e.createElementVNode("div",cD,[t[108]||(t[108]=e.createElementVNode("label",null,"Time Lost",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Yl=(Ol=o==null?void 0:o.extend)==null?void 0:Ol.cp)==null?void 0:Yl.speed,"Under"))+" kts) ",1)]),e.createElementVNode("div",MD,[t[109]||(t[109]=e.createElementVNode("label",null,"Time Gained",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Ll=(fl=o==null?void 0:o.extend)==null?void 0:fl.cp)==null?void 0:Ll.speed,"Over"))+" kts) ",1)]),e.createElementVNode("div",DD,[t[110]||(t[110]=e.createElementVNode("label",null,"No Time Lost and Gained",-1)),e.createElementVNode("div",null," Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(_l=(Zl=o==null?void 0:o.extend)==null?void 0:Zl.cp)==null?void 0:_l.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Hl=(Jl=o==null?void 0:o.extend)==null?void 0:Jl.cp)==null?void 0:Hl.speed,"Under"))+" kts) ",1)])]),($l=o==null?void 0:o.goodWx)!=null&&$l.distance?(e.openBlock(),e.createElementBlock("div",gD,[e.createElementVNode("div",ID,[t[114]||(t[114]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ED,[e.createElementVNode("div",yD,[e.createElementVNode("div",null,e.toDisplayString((vl=(ul=l.report)==null?void 0:ul.weather)!=null&&vl.noExtrapolation?(eo=o==null?void 0:o.goodWx)==null?void 0:eo.distance:(to=o==null?void 0:o.allWx)==null?void 0:to.distance),1),t[111]||(t[111]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((lo=o==null?void 0:o.goodWx)==null?void 0:lo.pfmSpd),1)]),t[112]||(t[112]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((oo=o==null?void 0:o.timeConclusion)==null?void 0:oo.timeAtPfmSpd)+" (hrs)",1),t[113]||(t[113]=e.createElementVNode("div",null,"(a')",-1))])]),e.createElementVNode("div",AD,[e.createElementVNode("div",mD,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(ao=(no=o==null?void 0:o.extend)==null?void 0:no.cp)==null?void 0:ao.speed,"Under"))+"kts)",1),t[115]||(t[115]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",TD,[e.createElementVNode("div",VD,[e.createElementVNode("div",null,e.toDisplayString((No=(io=l.report)==null?void 0:io.weather)!=null&&No.noExtrapolation?(so=o==null?void 0:o.goodWx)==null?void 0:so.distance:(ro=o==null?void 0:o.allWx)==null?void 0:ro.distance),1),t[116]||(t[116]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((co=o==null?void 0:o.timeConclusion)==null?void 0:co.minusAbtSpd),1)]),t[117]||(t[117]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Mo=o==null?void 0:o.timeConclusion)==null?void 0:Mo.timeAtMinusAbtSpd)+" (hrs)",1),t[118]||(t[118]=e.createElementVNode("div",null,"(b')",-1))])]),e.createElementVNode("div",zD,[e.createElementVNode("div",pD,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(go=(Do=o==null?void 0:o.extend)==null?void 0:Do.cp)==null?void 0:go.speed,"Over"))+"kts)",1),t[119]||(t[119]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",xD,[e.createElementVNode("div",jD,[e.createElementVNode("div",null,e.toDisplayString((Eo=(Io=l.report)==null?void 0:Io.weather)!=null&&Eo.noExtrapolation?(yo=o==null?void 0:o.goodWx)==null?void 0:yo.distance:(Ao=o==null?void 0:o.allWx)==null?void 0:Ao.distance),1),t[120]||(t[120]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((mo=o==null?void 0:o.timeConclusion)==null?void 0:mo.plusAbtSpd),1)]),t[121]||(t[121]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((To=o==null?void 0:o.timeConclusion)==null?void 0:To.timeAtPlusAbtSpd)+" (hrs)",1),t[122]||(t[122]=e.createElementVNode("div",null,"(c')",-1))])]),e.createElementVNode("div",UD,[((Vo=o==null?void 0:o.timeConclusion)==null?void 0:Vo.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",kD,[t[123]||(t[123]=e.createElementVNode("div",null,"Time Lost",-1)),t[124]||(t[124]=e.createElementVNode("div",null,"=",-1)),t[125]||(t[125]=e.createElementVNode("div",null,"(a') - (b')",-1)),t[126]||(t[126]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((zo=o==null?void 0:o.timeConclusion)==null?void 0:zo.timeAtPfmSpd),1),t[127]||(t[127]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((po=o==null?void 0:o.timeConclusion)==null?void 0:po.timeAtMinusAbtSpd),1),t[128]||(t[128]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xo=o==null?void 0:o.timeConclusion)==null?void 0:xo.timeLost)+" (hrs)",1)])):((jo=o==null?void 0:o.timeConclusion)==null?void 0:jo.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",SD,[t[129]||(t[129]=e.createElementVNode("div",null,"Time Lost",-1)),t[130]||(t[130]=e.createElementVNode("div",null,"=",-1)),t[131]||(t[131]=e.createElementVNode("div",null,"(c') - (a')",-1)),t[132]||(t[132]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Uo=o==null?void 0:o.timeConclusion)==null?void 0:Uo.timeAtPlusAbtSpd),1),t[133]||(t[133]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((ko=o==null?void 0:o.timeConclusion)==null?void 0:ko.timeAtPfmSpd),1),t[134]||(t[134]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((So=o==null?void 0:o.timeConclusion)==null?void 0:So.timeGain)+" (hrs)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",CD,[t[135]||(t[135]=e.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),e.createElementVNode("div",{class:e.normalizeClass(((Co=o==null?void 0:o.timeConclusion)==null?void 0:Co.conclusionStatus)==="Lost"?"lost":((Oo=o==null?void 0:o.timeConclusion)==null?void 0:Oo.conclusionStatus)==="Gain"?"gain":"")},e.toDisplayString(((Yo=o==null?void 0:o.timeConclusion)==null?void 0:Yo.conclusion)||""),3)])])])):(e.openBlock(),e.createElementBlock("div",OD,e.toDisplayString(N.noGoodWxDay),1))]),e.createElementVNode("div",YD,[e.createElementVNode("div",fD,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(F+1)+" Consumption Analysis",1),(fo=(M=l.report)==null?void 0:M.weather)!=null&&fo.noExtrapolation?(e.openBlock(),e.createElementBlock("span",bD,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",QD,[e.createElementVNode("div",RD,[t[141]||(t[141]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",hD,[e.createElementVNode("div",wD,[e.createElementVNode("div",null,e.toDisplayString((Qo=(bo=l.report)==null?void 0:bo.weather)!=null&&Qo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[136]||(t[136]=e.createElementVNode("div",{class:"line"},null,-1)),t[137]||(t[137]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[138]||(t[138]=e.createElementVNode("div",null,"x",-1)),t[139]||(t[139]=e.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[e.createElementVNode("div",null,"Good Weather Consumption*"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"Good Weather Time")],-1)),t[140]||(t[140]=e.createElementVNode("div",null,"(d)",-1))])]),e.createElementVNode("div",BD,[t[142]||(t[142]=e.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((ho=(Ro=o.extend)==null?void 0:Ro.cp)==null?void 0:ho.dgo)>0?(e.openBlock(),e.createElementBlock("div",FD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):e.createCommentVNode("",!0)]),e.createElementVNode("div",GD,[t[147]||(t[147]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",PD,[e.createElementVNode("div",WD,[e.createElementVNode("div",null,e.toDisplayString((Bo=(wo=l.report)==null?void 0:wo.weather)!=null&&Bo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[143]||(t[143]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Xl=(Fo=o==null?void 0:o.extend)==null?void 0:Fo.cp)==null?void 0:Xl.speed,"Under"))+"kts",1)]),t[144]||(t[144]=e.createElementVNode("div",null,"x",-1)),t[145]||(t[145]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[146]||(t[146]=e.createElementVNode("div",null,"(e)",-1))])]),e.createElementVNode("div",LD,[t[152]||(t[152]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ZD,[e.createElementVNode("div",_D,[e.createElementVNode("div",null,e.toDisplayString((Lo=(Wo=l.report)==null?void 0:Wo.weather)!=null&&Lo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[148]||(t[148]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(_o=(Zo=o==null?void 0:o.extend)==null?void 0:Zo.cp)==null?void 0:_o.speed,"Over"))+"kts",1)]),t[149]||(t[149]=e.createElementVNode("div",null,"x",-1)),t[150]||(t[150]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[151]||(t[151]=e.createElementVNode("div",null,"(f)",-1))])]),t[159]||(t[159]=e.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-9f3f41e0><div class="flex-space" style="width:240px;" data-v-9f3f41e0><label data-v-9f3f41e0>Fuel Over-consumption</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(d)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(e)</div></div><div class="flex-space" style="width:200px;" data-v-9f3f41e0><label data-v-9f3f41e0>Fuel Saving</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(f)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(d)</div></div></div>',1)),((Ho=(Jo=o.extend)==null?void 0:Jo.cp)==null?void 0:Ho.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",JD,[t[155]||(t[155]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Over-consumption in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",HD,[e.createElementVNode("div",XD,[t[153]||(t[153]=e.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),t[154]||(t[154]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ko=(Xo=l.report)==null?void 0:Xo.weather)!=null&&Ko.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),e.createElementVNode("div",KD,[t[158]||(t[158]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Saving in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",qD,[e.createElementVNode("div",$D,[t[156]||(t[156]=e.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),t[157]||(t[157]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):e.createCommentVNode("",!0)]),t[243]||(t[243]=e.createElementVNode("div",{class:"formula-desc"},[e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Over-consumption"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Saving"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),e.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP")])],-1)),e.createElementVNode("div",uD,"Seg. "+e.toDisplayString(F+1)+" Fuel Oil",1),(uo=o==null?void 0:o.goodWx)!=null&&uo.distance?(e.openBlock(),e.createElementBlock("div",vD,[((en=(vo=o==null?void 0:o.goodWx)==null?void 0:vo.inEca)==null?void 0:en.distance)>0?(e.openBlock(),e.createElementBlock("div",eg,[t[165]||(t[165]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",tg,[e.createElementVNode("div",lg,[e.createElementVNode("div",null,e.toDisplayString((ln=(tn=o==null?void 0:o.goodWx)==null?void 0:tn.inEca)==null?void 0:ln.sumDgoCons),1)]),t[162]||(t[162]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",og,[e.createElementVNode("div",null,e.toDisplayString((nn=(on=o==null?void 0:o.extend)==null?void 0:on.cp)==null?void 0:nn.dgo),1),t[160]||(t[160]=e.createElementVNode("div",{class:"line"},null,-1)),t[161]||(t[161]=e.createElementVNode("div",null,"24",-1))]),t[163]||(t[163]=e.createElementVNode("div",null,"*",-1)),e.createElementVNode("div",null,e.toDisplayString((Nn=(an=o==null?void 0:o.goodWx)==null?void 0:an.inEca)==null?void 0:Nn.time),1),t[164]||(t[164]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((dn=(sn=o==null?void 0:o.fuelConclusion)==null?void 0:sn.fo)==null?void 0:dn.dgoAsFoCons)+" (mt)",1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ng,[t[172]||(t[172]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ag,[e.createElementVNode("div",ig,[e.createElementVNode("div",null,e.toDisplayString((cn=(rn=l.report)==null?void 0:rn.weather)!=null&&cn.noExtrapolation?(Mn=o==null?void 0:o.goodWx)==null?void 0:Mn.distance:(Dn=o==null?void 0:o.allWx)==null?void 0:Dn.distance),1),t[166]||(t[166]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((gn=o==null?void 0:o.goodWx)==null?void 0:gn.pfmSpd),1)]),t[169]||(t[169]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Ng,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((In=o==null?void 0:o.goodWx)==null?void 0:In.sumFoCons),1),((yn=(En=o==null?void 0:o.goodWx)==null?void 0:En.inEca)==null?void 0:yn.distance)>0?(e.openBlock(),e.createElementBlock("span",sg,[t[167]||(t[167]=e.createElementVNode("span",null," + ",-1)),e.createElementVNode("span",null,e.toDisplayString((mn=(An=o==null?void 0:o.fuelConclusion)==null?void 0:An.fo)==null?void 0:mn.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[168]||(t[168]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Tn=o==null?void 0:o.goodWx)==null?void 0:Tn.time),1)]),t[170]||(t[170]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((zn=(Vn=o.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:zn.entireCons)+" (mt)",1),t[171]||(t[171]=e.createElementVNode("div",null,"(d')",-1))])]),e.createElementVNode("div",dg,[t[179]||(t[179]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",rg,[e.createElementVNode("div",cg,[e.createElementVNode("div",null,e.toDisplayString((xn=(pn=l.report)==null?void 0:pn.weather)!=null&&xn.noExtrapolation?(jn=o==null?void 0:o.goodWx)==null?void 0:jn.distance:(Un=o==null?void 0:o.allWx)==null?void 0:Un.distance),1),t[173]||(t[173]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((kn=o==null?void 0:o.timeConclusion)==null?void 0:kn.minusAbtSpd),1)]),t[176]||(t[176]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Mg,[e.createElementVNode("div",null,e.toDisplayString((Cn=(Sn=o==null?void 0:o.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:Cn.overTolerance),1),t[174]||(t[174]=e.createElementVNode("div",{class:"line"},null,-1)),t[175]||(t[175]=e.createElementVNode("div",null,"24",-1))]),t[177]||(t[177]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Yn=(On=o.fuelConclusion)==null?void 0:On.fo)==null?void 0:Yn.maxCons)+" (mt)",1),t[178]||(t[178]=e.createElementVNode("div",null,"(e')",-1))])]),e.createElementVNode("div",Dg,[t[186]||(t[186]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",gg,[e.createElementVNode("div",Ig,[e.createElementVNode("div",null,e.toDisplayString((bn=(fn=l.report)==null?void 0:fn.weather)!=null&&bn.noExtrapolation?(Qn=o==null?void 0:o.goodWx)==null?void 0:Qn.distance:(Rn=o==null?void 0:o.allWx)==null?void 0:Rn.distance),1),t[180]||(t[180]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((hn=o==null?void 0:o.timeConclusion)==null?void 0:hn.plusAbtSpd),1)]),t[183]||(t[183]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Eg,[e.createElementVNode("div",null,e.toDisplayString((Bn=(wn=o==null?void 0:o.fuelConclusion)==null?void 0:wn.fo)==null?void 0:Bn.underTolerance),1),t[181]||(t[181]=e.createElementVNode("div",{class:"line"},null,-1)),t[182]||(t[182]=e.createElementVNode("div",null,"24",-1))]),t[184]||(t[184]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Gn=(Fn=o.fuelConclusion)==null?void 0:Fn.fo)==null?void 0:Gn.minCons)+" (mt)",1),t[185]||(t[185]=e.createElementVNode("div",null,"(f')",-1))])]),e.createElementVNode("div",yg,[((Wn=(Pn=o==null?void 0:o.fuelConclusion)==null?void 0:Pn.fo)==null?void 0:Wn.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Ag,[t[187]||(t[187]=e.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),t[188]||(t[188]=e.createElementVNode("div",null,"=",-1)),t[189]||(t[189]=e.createElementVNode("div",null,"(d') - (e')",-1)),t[190]||(t[190]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Zn=(Ln=o==null?void 0:o.fuelConclusion)==null?void 0:Ln.fo)==null?void 0:Zn.entireCons),1),t[191]||(t[191]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Jn=(_n=o==null?void 0:o.fuelConclusion)==null?void 0:_n.fo)==null?void 0:Jn.maxCons),1),t[192]||(t[192]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Xn=(Hn=o==null?void 0:o.fuelConclusion)==null?void 0:Hn.fo)==null?void 0:Xn.overCons),1)]),(qn=(Kn=o==null?void 0:o.goodWx)==null?void 0:Kn.inEca)!=null&&qn.distance?(e.openBlock(),e.createElementBlock("div",mg,[t[194]||(t[194]=e.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),t[195]||(t[195]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",Tg,[e.createElementVNode("div",null,e.toDisplayString((un=($n=o==null?void 0:o.goodWx)==null?void 0:$n.inEca)==null?void 0:un.distance)+" * "+e.toDisplayString((ea=(vn=o==null?void 0:o.fuelConclusion)==null?void 0:vn.fo)==null?void 0:ea.overCons),1),t[193]||(t[193]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((la=(ta=l.report)==null?void 0:ta.weather)!=null&&la.noExtrapolation?(oa=o==null?void 0:o.goodWx)==null?void 0:oa.distance:(na=o==null?void 0:o.allWx)==null?void 0:na.distance),1)]),t[196]||(t[196]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ia=(aa=o==null?void 0:o.fuelConclusion)==null?void 0:aa.fo)==null?void 0:ia.foOverConsInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):((sa=(Na=o==null?void 0:o.fuelConclusion)==null?void 0:Na.fo)==null?void 0:sa.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Vg,[t[197]||(t[197]=e.createElementVNode("div",null,"Fuel Oil Saving",-1)),t[198]||(t[198]=e.createElementVNode("div",null,"=",-1)),t[199]||(t[199]=e.createElementVNode("div",null,"(f') - (d')",-1)),t[200]||(t[200]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ra=(da=o==null?void 0:o.fuelConclusion)==null?void 0:da.fo)==null?void 0:ra.minCons),1),t[201]||(t[201]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Ma=(ca=o==null?void 0:o.fuelConclusion)==null?void 0:ca.fo)==null?void 0:Ma.entireCons),1),t[202]||(t[202]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ga=(Da=o==null?void 0:o.fuelConclusion)==null?void 0:Da.fo)==null?void 0:ga.saving)+" (mt)",1)]),(Ea=(Ia=o==null?void 0:o.goodWx)==null?void 0:Ia.inEca)!=null&&Ea.distance?(e.openBlock(),e.createElementBlock("div",zg,[t[204]||(t[204]=e.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),t[205]||(t[205]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",pg,[e.createElementVNode("div",null,e.toDisplayString((Aa=(ya=l.report)==null?void 0:ya.weather)!=null&&Aa.noExtrapolation?(Ta=(ma=o==null?void 0:o.goodWx)==null?void 0:ma.inEca)==null?void 0:Ta.distance:(za=(Va=o==null?void 0:o.allWx)==null?void 0:Va.inEca)==null?void 0:za.distance)+" * "+e.toDisplayString((xa=(pa=o==null?void 0:o.fuelConclusion)==null?void 0:pa.fo)==null?void 0:xa.saving),1),t[203]||(t[203]=e.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ua=(ja=l.report)==null?void 0:ja.weather)!=null&&Ua.noExtrapolation?(ka=o==null?void 0:o.goodWx)==null?void 0:ka.distance:(Sa=o==null?void 0:o.allWx)==null?void 0:Sa.distance),1)]),t[206]||(t[206]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Oa=(Ca=o==null?void 0:o.fuelConclusion)==null?void 0:Ca.fo)==null?void 0:Oa.foSavingInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((fa=(Ya=o==null?void 0:o.fuelConclusion)==null?void 0:Ya.fo)==null?void 0:fa.conclusionStatus)==="Over"?"flex-center lost":((Qa=(ba=o==null?void 0:o.fuelConclusion)==null?void 0:ba.fo)==null?void 0:Qa.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[207]||(t[207]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((ha=(Ra=o==null?void 0:o.fuelConclusion)==null?void 0:Ra.fo)==null?void 0:ha.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",xg,e.toDisplayString(N.noGoodWxDay),1)),((Ba=(wa=o==null?void 0:o.extend)==null?void 0:wa.cp)==null?void 0:Ba.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",jg,[e.createElementVNode("div",Ug,[t[208]||(t[208]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",kg,"Seg. "+e.toDisplayString(F+1)+" Diesel/Gas Oil",1)])]),(Fa=o==null?void 0:o.goodWx)!=null&&Fa.distance?(e.openBlock(),e.createElementBlock("div",Sg,[e.createElementVNode("div",Cg,[t[215]||(t[215]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Og,[e.createElementVNode("div",Yg,[e.createElementVNode("div",null,e.toDisplayString((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?(Wa=o==null?void 0:o.goodWx)==null?void 0:Wa.distance:(La=o==null?void 0:o.allWx)==null?void 0:La.distance),1),t[209]||(t[209]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Za=o==null?void 0:o.goodWx)==null?void 0:Za.pfmSpd),1)]),t[212]||(t[212]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",fg,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((_a=o==null?void 0:o.goodWx)==null?void 0:_a.sumDgoCons),1),((Ha=(Ja=o==null?void 0:o.goodWx)==null?void 0:Ja.inEca)==null?void 0:Ha.distance)>0?(e.openBlock(),e.createElementBlock("span",bg,[t[210]||(t[210]=e.createElementVNode("span",null," - ",-1)),e.createElementVNode("span",null,e.toDisplayString((Ka=(Xa=o==null?void 0:o.fuelConclusion)==null?void 0:Xa.fo)==null?void 0:Ka.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[211]||(t[211]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((qa=o==null?void 0:o.goodWx)==null?void 0:qa.time),1)]),t[213]||(t[213]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ua=($a=o.fuelConclusion)==null?void 0:$a.dgo)==null?void 0:ua.entireCons)+" (mt)",1),t[214]||(t[214]=e.createElementVNode("div",null,"(d'')",-1))])]),e.createElementVNode("div",Qg,[t[222]||(t[222]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Rg,[e.createElementVNode("div",hg,[e.createElementVNode("div",null,e.toDisplayString((ei=(va=l.report)==null?void 0:va.weather)!=null&&ei.noExtrapolation?(ti=o==null?void 0:o.goodWx)==null?void 0:ti.distance:(li=o==null?void 0:o.allWx)==null?void 0:li.distance),1),t[216]||(t[216]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((oi=o==null?void 0:o.timeConclusion)==null?void 0:oi.minusAbtSpd),1)]),t[219]||(t[219]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",wg,[e.createElementVNode("div",null,e.toDisplayString((ai=(ni=o==null?void 0:o.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ai.overTolerance),1),t[217]||(t[217]=e.createElementVNode("div",{class:"line"},null,-1)),t[218]||(t[218]=e.createElementVNode("div",null,"24",-1))]),t[220]||(t[220]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ni=(ii=o.fuelConclusion)==null?void 0:ii.dgo)==null?void 0:Ni.maxCons)+" (mt)",1),t[221]||(t[221]=e.createElementVNode("div",null,"(e'')",-1))])]),e.createElementVNode("div",Bg,[t[229]||(t[229]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Fg,[e.createElementVNode("div",Gg,[e.createElementVNode("div",null,e.toDisplayString((di=(si=l.report)==null?void 0:si.weather)!=null&&di.noExtrapolation?(ri=o==null?void 0:o.goodWx)==null?void 0:ri.distance:(ci=o==null?void 0:o.allWx)==null?void 0:ci.distance),1),t[223]||(t[223]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Mi=o==null?void 0:o.timeConclusion)==null?void 0:Mi.plusAbtSpd),1)]),t[226]||(t[226]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Pg,[e.createElementVNode("div",null,e.toDisplayString((gi=(Di=o==null?void 0:o.fuelConclusion)==null?void 0:Di.dgo)==null?void 0:gi.underTolerance),1),t[224]||(t[224]=e.createElementVNode("div",{class:"line"},null,-1)),t[225]||(t[225]=e.createElementVNode("div",null,"24",-1))]),t[227]||(t[227]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ei=(Ii=o.fuelConclusion)==null?void 0:Ii.dgo)==null?void 0:Ei.minCons)+" (mt)",1),t[228]||(t[228]=e.createElementVNode("div",null,"(f'')",-1))])]),e.createElementVNode("div",Wg,[((Ai=(yi=o==null?void 0:o.fuelConclusion)==null?void 0:yi.dgo)==null?void 0:Ai.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Lg,[t[230]||(t[230]=e.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),t[231]||(t[231]=e.createElementVNode("div",null,"=",-1)),t[232]||(t[232]=e.createElementVNode("div",null,"(d'') - (e'')",-1)),t[233]||(t[233]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ti=(mi=o==null?void 0:o.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Ti.entireCons),1),t[234]||(t[234]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((zi=(Vi=o==null?void 0:o.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:zi.maxCons),1),t[235]||(t[235]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xi=(pi=o==null?void 0:o.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:xi.overCons),1)])):((Ui=(ji=o==null?void 0:o.fuelConclusion)==null?void 0:ji.dgo)==null?void 0:Ui.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",Zg,[t[236]||(t[236]=e.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),t[237]||(t[237]=e.createElementVNode("div",null,"=",-1)),t[238]||(t[238]=e.createElementVNode("div",null,"(f'') - (d'')",-1)),t[239]||(t[239]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Si=(ki=o==null?void 0:o.fuelConclusion)==null?void 0:ki.dgo)==null?void 0:Si.minCons),1),t[240]||(t[240]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Oi=(Ci=o==null?void 0:o.fuelConclusion)==null?void 0:Ci.dgo)==null?void 0:Oi.entireCons),1),t[241]||(t[241]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((fi=(Yi=o==null?void 0:o.fuelConclusion)==null?void 0:Yi.dgo)==null?void 0:fi.saving)+" (mt)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Qi=(bi=o==null?void 0:o.fuelConclusion)==null?void 0:bi.dgo)==null?void 0:Qi.conclusionStatus)==="Over"?"flex-center lost":((hi=(Ri=o==null?void 0:o.fuelConclusion)==null?void 0:Ri.dgo)==null?void 0:hi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[242]||(t[242]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((Bi=(wi=o==null?void 0:o.fuelConclusion)==null?void 0:wi.dgo)==null?void 0:Bi.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",_g,e.toDisplayString(N.noGoodWxDay),1))],64)):e.createCommentVNode("",!0)])])}),128))])])}const Hg=Ql(Yr,[["render",Jg],["__scopeId","data-v-9f3f41e0"]]),jj="",Xg={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(n){if(n.type==="BOSP")return"";{const t=[];return t.push(n.noonLength?"no-border-bottom":"no-border"),t.push(n.excluded?"excluded":n.goodWx?"good-wx":""),t.join(" ")}}},computeWxColspan(){let n=12;return this.showCF||(n-=2),this.showAisDistance||(n-=2),this.showWave||(n-=1),this.showSwell||(n-=1),this.showSig||(n-=1),this.showWaterTemp||(n-=1),n},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeLng(){return function(n){return Q.LngLatHelper.lng2pretty(n)}},computeLat(){return function(n){return Q.LngLatHelper.lat2pretty(n)}},computePrecision(){return function(n,t=2,l="0.0"){return n?Q.LngLatHelper.roundPrecision(n,t):l}}},watch:{report:{handler(n,t){n!=null&&n.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var n,t,l,r,N,i,I,s,d,V,m,T;this.showCF=((t=(n=this.report)==null?void 0:n.weather)==null?void 0:t.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((i=(N=this.report)==null?void 0:N.weather)==null?void 0:i.showSig)??!0,this.showSwell=((s=(I=this.report)==null?void 0:I.weather)==null?void 0:s.showSwell)??!0,this.showWave=((V=(d=this.report)==null?void 0:d.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((T=(m=this.report)==null?void 0:m.weather)==null?void 0:T.waterTempSwitch)||!1}}},Kg={class:"report-inventory"},qg={class:"section summary-section"},$g={class:"summary-block"},ug={class:"label",rowspan:"4"},vg={class:"section inventory-section"},eI={class:"inventory-block flex-center"},tI=["colspan"],lI={key:0,class:"label",colspan:"2"},oI={key:0,class:"label",rowspan:"2"},nI={key:1,class:"label",rowspan:"2"},aI={key:2,class:"label",rowspan:"2"},iI={key:3,class:"label",colspan:"2"},NI={key:4,class:"label",rowspan:"2"},sI={key:5,class:"label",colspan:"2"},dI={key:6,class:"label",rowspan:"2"},rI={key:7,class:"label",rowspan:"2"},cI={key:8,class:"label",rowspan:"2"},MI={key:0,class:"label"},DI={key:1,class:"label"},gI={key:2,class:"label"},II={key:3,class:"label"},EI={class:"summary-tbody"};function yI(n,t,l,r,N,i){var I;return e.openBlock(),e.createElementBlock("div",Kg,[e.createElementVNode("div",qg,[t[5]||(t[5]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Speed and Weather Analysis")])],-1)),e.createElementVNode("div",$g,[e.createElementVNode("table",null,[t[4]||(t[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),e.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Distance"),e.createElementVNode("div",{class:"text-units"},"(nm)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Time"),e.createElementVNode("div",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Average Speed"),e.createElementVNode("div",{class:"text-units"},"(kts)")]),e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Total Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")])]),e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label"},"FO"),e.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((I=l.report)==null?void 0:I.segments,(s,d)=>{var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P;return e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createElementVNode("tr",null,[e.createElementVNode("td",ug,e.toDisplayString(d+1),1),t[0]||(t[0]=e.createElementVNode("td",{class:"label"},"Entire Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((V=s==null?void 0:s.allWx)==null?void 0:V.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((m=s==null?void 0:s.allWx)==null?void 0:m.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((T=s==null?void 0:s.allWx)==null?void 0:T.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((k=s==null?void 0:s.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((j=s==null?void 0:s.allWx)==null?void 0:j.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[1]||(t[1]=e.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((y=s==null?void 0:s.goodWx)==null?void 0:y.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((z=s==null?void 0:s.goodWx)==null?void 0:z.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((C=s==null?void 0:s.goodWx)==null?void 0:C.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((E=s==null?void 0:s.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((p=s==null?void 0:s.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[2]||(t[2]=e.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((S=s==null?void 0:s.badWx)==null?void 0:S.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((O=s==null?void 0:s.badWx)==null?void 0:O.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((D=s==null?void 0:s.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((Y=s==null?void 0:s.badWx)==null?void 0:Y.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((f=s==null?void 0:s.badWx)==null?void 0:f.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("td",{class:"label"},"Excluded Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((b=s==null?void 0:s.excluded)==null?void 0:b.sumDistance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((h=s==null?void 0:s.excluded)==null?void 0:h.sumDuration,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((w=s==null?void 0:s.excluded)==null?void 0:w.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((B=s==null?void 0:s.excluded)==null?void 0:B.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((P=s==null?void 0:s.excluded)==null?void 0:P.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),e.createElementVNode("div",vg,[t[44]||(t[44]=e.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-272ebecb><div class="flex-start" data-v-272ebecb><div class="legend good-wx" data-v-272ebecb></div><div class="label flex-end" data-v-272ebecb>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-272ebecb><div class="legend adverse-wx" data-v-272ebecb></div><div class="label" data-v-272ebecb>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-272ebecb><div class="legend excluded" data-v-272ebecb></div><div class="label" data-v-272ebecb>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-272ebecb><label data-v-272ebecb>B</label><div data-v-272ebecb>BOSP</div><label data-v-272ebecb>N</label><div data-v-272ebecb>NOON</div><label data-v-272ebecb>E</label><div data-v-272ebecb>EOSP</div><label data-v-272ebecb>*</label><div data-v-272ebecb>Ship Reported Position</div></div></div><div class="text-tips text-right" style="font-size:12px;padding-bottom:8px;" data-v-272ebecb> The 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),e.createElementVNode("div",eI,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[6]||(t[6]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),t[7]||(t[7]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),t[9]||(t[9]=e.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),e.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,tI),l.showFactor?(e.openBlock(),e.createElementBlock("th",lI,"Factor")):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),t[11]||(t[11]=e.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),e.createElementVNode("tr",null,[t[16]||(t[16]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),t[17]||(t[17]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),t[18]||(t[18]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[19]||(t[19]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Daily Cons. "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),N.showAisDistance?(e.openBlock(),e.createElementBlock("th",oI,[...t[12]||(t[12]=[e.createTextVNode("Spd",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),N.showAisDistance?(e.openBlock(),e.createElementBlock("th",nI,[...t[13]||(t[13]=[e.createTextVNode("Dis",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):e.createCommentVNode("",!0),t[20]||(t[20]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),N.showWave?(e.openBlock(),e.createElementBlock("th",aI,[...t[14]||(t[14]=[e.createTextVNode("Sea HT",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("th",iI,"Swell")):e.createCommentVNode("",!0),N.showSig?(e.openBlock(),e.createElementBlock("th",NI,[...t[15]||(t[15]=[e.createTextVNode("Sig Wave",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",sI,"Current")):e.createCommentVNode("",!0),t[21]||(t[21]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Avg. CF"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(e.openBlock(),e.createElementBlock("th",dI,"cFactor")):e.createCommentVNode("",!0),l.showFactor?(e.openBlock(),e.createElementBlock("th",rI,"wxFactor")):e.createCommentVNode("",!0),N.showWaterTemp?(e.openBlock(),e.createElementBlock("th",cI,"Water Temp.")):e.createCommentVNode("",!0),t[22]||(t[22]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[23]||(t[23]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Time"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[24]||(t[24]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Dis"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),t[26]||(t[26]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("BROB "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("DailyCons "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),t[29]||(t[29]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode(" Sea HT"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[33]||(t[33]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[34]||(t[34]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[35]||(t[35]=e.createElementVNode("th",{class:"label"},"BF",-1)),N.showSwell?(e.openBlock(),e.createElementBlock("th",MI,"Dir")):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("th",DI,[...t[30]||(t[30]=[e.createTextVNode("HT ",-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",gI,"Dir")):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",II,[...t[31]||(t[31]=[e.createTextVNode("CF ",-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),t[36]||(t[36]=e.createElementVNode("th",{class:"label"},"RPM",-1)),t[37]||(t[37]=e.createElementVNode("th",{class:"label"},[e.createTextVNode("Slip "),e.createElementVNode("span",{class:"text-units"},"(%)")],-1)),t[38]||(t[38]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[39]||(t[39]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[40]||(t[40]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[41]||(t[41]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[42]||(t[42]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[43]||(t[43]=e.createElementVNode("th",{class:"label"},"BF",-1))])]),e.createElementVNode("tbody",EI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventory,(s,d)=>{var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_;return e.openBlock(),e.createElementBlock("tr",{key:d},[e.createElementVNode("td",{class:e.normalizeClass(s.segLength?"no-border-bottom":"no-border")},e.toDisplayString(s.segLength?s.seg:""),3),e.createElementVNode("td",{class:e.normalizeClass(["text-right",s.excluded?"excluded":s.goodWx?"good-wx":""])},e.toDisplayString(s.time),3),["B","E"].includes(s.abbrev)&&((V=s.noon)!=null&&V.port)?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},e.toDisplayString((m=s.noon)==null?void 0:m.port),3)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s._lat.pretty),3),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s._lng.pretty),3)],64)),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.speed:""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.fo:""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.dgo:""),3),N.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.avgSpdCalc:""),3)):e.createCommentVNode("",!0),N.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:3,class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.distanceCalc:""),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((k=(T=s.meteo)==null?void 0:T.wind)==null?void 0:k.direction)??"-"),3),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((y=(j=s.meteo)==null?void 0:j.wind)==null?void 0:y.scale)??"-"),3),N.showWave?(e.openBlock(),e.createElementBlock("td",{key:4,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((E=(C=(z=s.meteo)==null?void 0:z.wave)==null?void 0:C.wd)==null?void 0:E.height)??"-"),3)):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("td",{key:5,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((O=(S=(p=s.meteo)==null?void 0:p.wave)==null?void 0:S.swell)==null?void 0:O.direction)??"-"),3)):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("td",{key:6,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((f=(Y=(D=s.meteo)==null?void 0:D.wave)==null?void 0:Y.swell)==null?void 0:f.height)??"-"),3)):e.createCommentVNode("",!0),N.showSig?(e.openBlock(),e.createElementBlock("td",{key:7,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((w=(h=(b=s.meteo)==null?void 0:b.wave)==null?void 0:h.sig)==null?void 0:w.height)??"-"),3)):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("td",{key:8,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((P=(B=s.meteo)==null?void 0:B.current)==null?void 0:P.direction)??"-"),3)):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("td",{key:9,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((W=s.meteo)==null?void 0:W.cFactor)??"-"),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.dailyAvgCf:""),3),l.showFactor?(e.openBlock(),e.createElementBlock("td",{key:10,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(((L=s.meteo)==null?void 0:L.cFactor)??"--"),3)):e.createCommentVNode("",!0),l.showFactor?(e.openBlock(),e.createElementBlock("td",{key:11,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(((Z=s.meteo)==null?void 0:Z.wxFactor)??"--"),3)):e.createCommentVNode("",!0),N.showWaterTemp?(e.openBlock(),e.createElementBlock("td",{key:12,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(i.computePrecision((_=s.meteo)==null?void 0:_.sst,2,"--")),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.avgSpd||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.timeSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.distanceSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.rpm||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.slip||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.foBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.dgoBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.foCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.dgoCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.windDir||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.windBF||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.seasHt||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])])}const AI=Ql(Xg,[["render",yI],["__scopeId","data-v-272ebecb"]]),Uj="",mI={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(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}}},watch:{inventory:{handler(n,t){n!=null&&n.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=e.markRaw(qi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=e.markRaw(qi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=e.markRaw(qi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var T,k,j,y,z,C;let n=[];const t=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let N=0,i=0;const I=this.inventory.filter(E=>E.noon)||[],s=[];this.inventory.forEach((E,p)=>{var S,O;p===0&&s.push(E.utc),E.type==="EOSP"&&((S=this.inventory[p+1])==null?void 0:S.type)==="BOSP"&&(s.push(E.utc),s.push((O=this.inventory[p+1])==null?void 0:O.utc)),p===this.inventory.length-1&&s.push(E.utc)}),s.forEach((E,p)=>{if(p%2===0){const S=Ne(s[p+1]).diff(Ne(s[p]),"minute",!0);for(let O=0;O<=S+1;O++)t.push(this.computeUTCTime(Ne(s[p]).clone().utc().add(O,"m").format(),"MM-DD/HHmm[Z]"))}}),I.forEach((E,p)=>{var O,D,Y,f,b,h,w,B,P,W,L,Z,_,J;const S=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!n.some(o=>o.slice(0,5)===E.utc.slice(5,10))&&n.push(S),p===I.length-1&&(n=n.filter(o=>o.slice(0,5)!==E.utc.slice(5,10)),n.push(S)),N=Math.ceil(((O=E.noon)==null?void 0:O.foCons)>N?(D=E.noon)==null?void 0:D.foCons:N),N=Math.ceil(((Y=E.cp)==null?void 0:Y.fo)>N?(f=E.cp)==null?void 0:f.fo:N),i=Math.ceil(((b=E.noon)==null?void 0:b.dgoCons)>i?(h=E.noon)==null?void 0:h.dgoCons:i),i=Math.ceil(((w=E.cp)==null?void 0:w.dgo)>i?(B=E.cp)==null?void 0:B.dgo:i),l.push([S,(P=E.noon)==null?void 0:P.avgSpd,(W=E.noon)==null?void 0:W.foCons,(L=E.noon)==null?void 0:L.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<I.length-1){const o=I[p+1];l.push([S,(Z=o.noon)==null?void 0:Z.avgSpd,(_=o.noon)==null?void 0:_.foCons,(J=o.noon)==null?void 0:J.dgoCons,o.avgSpdCalc,o.cp.speed,o.goodWx&&!o.excluded?100:0,o.cp.dgo,o.cp.fo,o.excluded?100:0])}});const d=Math.ceil(n.length/10);n=n.filter((E,p)=>p===0||p===n.length-1||p%d===0);const V={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:t,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,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:N+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:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(T=this.report)==null?void 0:T.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(j=this.spdFoConsChart)==null||j.setOption(V);const m={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:t,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,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:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(z=(y=this.report)==null?void 0:y.weather)!=null&&z.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(C=this.spdDgoConsChart)==null||C.setOption(m)},renderWxCurrChart(){var j;let n=[];const t=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let N=4;const i=this.inventory||[],I=[];i.forEach((y,z)=>{var C,E;z===0&&I.push(y.utc),y.type==="EOSP"&&((C=i[z+1])==null?void 0:C.type)==="BOSP"&&(I.push(y.utc),I.push((E=i[z+1])==null?void 0:E.utc)),z===i.length-1&&I.push(y.utc)}),I.forEach((y,z)=>{if(z%2===0){const C=Ne(I[z+1]).diff(Ne(I[z]),"minute",!0);for(let E=0;E<=C+1;E++)t.push(this.computeUTCTime(Ne(I[z]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,z)=>{var E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J,o,F,H,X,K,q,$,u,v,ee,te,le,oe;const C=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!n.some(G=>G.slice(0,5)===y.utc.slice(5,10))&&n.push(C),z===i.length-1&&(n=n.filter(G=>G.slice(0,5)!==y.utc.slice(5,10)),n.push(C)),N=Math.ceil(((S=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:S.height)>N?(Y=(D=(O=y.meteo)==null?void 0:O.wave)==null?void 0:D.sig)==null?void 0:Y.height:N),l.push([C,((f=y.noon)==null?void 0:f.windBF)||((h=(b=y.meteo)==null?void 0:b.wind)==null?void 0:h.scale),(B=(w=y.meteo)==null?void 0:w.wind)==null?void 0:B.scale,(W=(P=y.meteo)==null?void 0:P.wind)==null?void 0:W.direction,(L=y.noon)==null?void 0:L.seasHt,(J=(_=(Z=y.meteo)==null?void 0:Z.wave)==null?void 0:_.sig)==null?void 0:J.height,y.dailyAvgCf??((o=l[l.length-1])==null?void 0:o[r.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),z<i.length-1){const G=i[z+1];l.push([C,((F=y.noon)==null?void 0:F.windBF)||((X=(H=y.meteo)==null?void 0:H.wind)==null?void 0:X.scale),(q=(K=G.meteo)==null?void 0:K.wind)==null?void 0:q.scale,(u=($=G.meteo)==null?void 0:$.wind)==null?void 0:u.direction,(v=G.noon)==null?void 0:v.seasHt,(le=(te=(ee=y.meteo)==null?void 0:ee.wave)==null?void 0:te.sig)==null?void 0:le.height,G.dailyAvgCf??((oe=l[l.length-1])==null?void 0:oe[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const s=Math.ceil(n.length/10);n=n.filter((y,z)=>z===0||z===n.length-1||z%s===0);let d=-2.5,V=2.5,m=1,T=5;d<-2.5||V>2.5?(d=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,m=Math.ceil(Math.max([Math.abs(d),Math.abs(V)])/5),T=Math.ceil(Math.abs(d)/m)+Math.ceil(Math.abs(V)/m)):(m=.5,d=Math.floor(this.findMinValue(l,6)/.5)*m,V=2.5,T=Math.abs(d)/m+5);const k={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:t,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:d,max:V,interval:m,splitNumber:T,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(T-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:T,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,z)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(T-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:T,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,z)=>{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:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(j=this.currChart)==null||j.setOption(k)},findMaxValue(n,t){let l=-1/0;for(let r=0;r<n.length;r++){const N=n[r];if(N.length>=t+1){const i=N[t];typeof i=="number"&&!isNaN(i)&&Number(i)>l&&(l=i)}}return l},findMinValue(n,t){let l=1/0;for(let r=0;r<n.length;r++){const N=n[r];if(N.length>=t+1){const i=N[t];i<l&&(l=i)}}return l}}},TI={class:"report-summary"},VI={class:"section chart-section"},zI={class:"chart-block"},pI={ref:"spdFoConsChart",class:"chart"},xI={ref:"spdDgoConsChart",class:"chart"},jI={ref:"currChart",class:"chart"},UI={class:"section map-section"},kI={class:"map-block"},SI={class:"flex-space"},CI={class:"voyage-block bg-blue-light"},OI={class:"flex-space label-block",style:{width:"100%"}},YI={style:{"text-transform":"uppercase"}},fI={class:"flex-space label-block",style:{width:"100%"}},bI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},QI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},RI={class:"flex-space label-block",style:{width:"100%"}},hI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},wI={class:"flex-space label-block",style:{width:"100%"}},BI={key:0,class:"flex-end",style:{flex:"1"}},FI={key:1,class:"flex-end",style:{flex:"1"}},GI={class:"flex-end",style:{width:"160px"}},PI={class:"flex-space label-block",style:{width:"100%"}},WI={key:0,class:"flex-end",style:{flex:"1"}},LI={key:1,class:"flex-end",style:{flex:"1"}},ZI={class:"flex-end",style:{width:"160px"}},_I={class:"flex-space label-block",style:{width:"100%"}},JI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},HI=["src"];function XI(n,t,l,r,N,i){var I,s,d,V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B;return e.openBlock(),e.createElementBlock("div",TI,[e.createElementVNode("div",VI,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-shuju"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),e.createElementVNode("div",zI,[e.createElementVNode("div",pI,null,512),e.createElementVNode("div",xI,null,512),e.createElementVNode("div",jI,null,512)])]),e.createElementVNode("div",UI,[t[8]||(t[8]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-line-light"}),e.createElementVNode("div",{class:"title"},"Voyage Map")])],-1)),e.createElementVNode("div",kI,[e.createElementVNode("div",SI,[e.createElementVNode("div",CI,[e.createElementVNode("div",OI,[t[1]||(t[1]=e.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),e.createElementVNode("span",YI,e.toDisplayString(l.report.preparedFor),1)]),e.createElementVNode("div",fI,[t[2]||(t[2]=e.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),e.createElementVNode("span",bI,e.toDisplayString((s=(I=l.report)==null?void 0:I.vessel)==null?void 0:s.name),1),e.createElementVNode("span",QI,"("+e.toDisplayString((V=(d=l.report)==null?void 0:d.vessel)==null?void 0:V.type)+")",1)]),e.createElementVNode("div",RI,[t[3]||(t[3]=e.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),e.createElementVNode("span",hI,e.toDisplayString((T=(m=l.report)==null?void 0:m.voyage)==null?void 0:T.number),1)]),e.createElementVNode("div",wI,[t[4]||(t[4]=e.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(j=(k=l.report)==null?void 0:k.departure)!=null&&j.portName?(e.openBlock(),e.createElementBlock("span",BI,e.toDisplayString((z=(y=l.report)==null?void 0:y.departure)==null?void 0:z.portName),1)):(e.openBlock(),e.createElementBlock("div",FI,e.toDisplayString(i.computePosition((C=l.report)==null?void 0:C.departure)),1)),e.createElementVNode("span",GI,e.toDisplayString(i.computeUTCTime((E=l.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",PI,[t[5]||(t[5]=e.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(S=(p=l.report)==null?void 0:p.arrival)!=null&&S.portName?(e.openBlock(),e.createElementBlock("span",WI,e.toDisplayString((D=(O=l.report)==null?void 0:O.arrival)==null?void 0:D.portName),1)):(e.openBlock(),e.createElementBlock("div",LI,e.toDisplayString(i.computePosition((Y=l.report)==null?void 0:Y.arrival)),1)),e.createElementVNode("span",ZI,e.toDisplayString(i.computeUTCTime((b=(f=l.report)==null?void 0:f.arrival)==null?void 0:b.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",_I,[t[6]||(t[6]=e.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),e.createElementVNode("span",JI,e.toDisplayString((w=(h=l.report)==null?void 0:h.voyage)==null?void 0:w.loadCondition),1)])]),t[7]||(t[7]=e.createStaticVNode('<div class="legend-block" data-v-f6e8f936><div data-v-f6e8f936>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>0812</div><div data-v-f6e8f936><div data-v-f6e8f936>08 - Day of the month</div><div data-v-f6e8f936>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-f6e8f936></i></div><div data-v-f6e8f936><div data-v-f6e8f936>Wind from N (000)</div><div data-v-f6e8f936>Each bard = 10 kts</div><div data-v-f6e8f936>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>W 4</div><div data-v-f6e8f936>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div class="good-wx" data-v-f6e8f936>Date</div><div data-v-f6e8f936>Good weather days</div></div></div>',1))]),e.createElementVNode("img",{src:(B=l.report)==null?void 0:B.chartUrl,alt:""},null,8,HI)])]),t[9]||(t[9]=e.createStaticVNode('<div class="section method-section" data-v-f6e8f936><div class="header-block" data-v-f6e8f936><div class="bg-block" data-v-f6e8f936><i class="iconfont icon-baobiao" data-v-f6e8f936></i><div class="title" data-v-f6e8f936>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>1. Good Weather Method</div><div class="method-body" data-v-f6e8f936> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-f6e8f936> The vessel'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-f6e8f936> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>4. “About”</div><div class="method-body" data-v-f6e8f936> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>6. Further reference materials</div><div class="method-body" data-v-f6e8f936>Please send mail to <a href="mailto:op@ormwx.com" data-v-f6e8f936>op@ormwx.com</a>.</div></div></div></div>',1))])}const KI=Ql(mI,[["render",XI],["__scopeId","data-v-f6e8f936"]]),kj="",Sj="",qI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeBlankHtml(){return function(n){return!(n!=null&&n.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(n,t){n.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const n=this.voyageEmails.sort((t,l)=>t.date<l.date);n==null||n.forEach((t,l)=>{var d,V;let r="<div>";t.to.includes("op@ormwx.com")||t.source==="VRT"?(((V=(d=t.body)==null?void 0:d.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(T=>{const k=`<p>${T}</p>`;r=r+k}),r=r+"</div>"):r=t.body;const N=document.getElementById("col1"),i=document.getElementById("col2"),I=(N==null?void 0:N.offsetHeight)||0,s=(i==null?void 0:i.offsetHeight)||0;if(I<=s){let T=`<div class="${t.to.includes("op@ormwx.com")||t.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
|
|
1
|
+
(function(ie,bl){typeof exports=="object"&&typeof module<"u"?bl(exports,require("@idmui/basic"),require("vue"),require("@wangeditor/editor-for-vue"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios")):typeof define=="function"&&define.amd?define(["exports","@idmui/basic","vue","@wangeditor/editor-for-vue","moment","echarts","@idm-plugin/geo","axios"],bl):(ie=typeof globalThis<"u"?globalThis:ie||self,bl(ie["idmui-extend"]={},ie["@idmui/basic"],ie.Vue,ie["@wangeditor/editor-for-vue"],ie.moment,ie.echarts,ie["@idm-plugin/geo"],ie.axios))})(this,function(ie,bl,e,ui,Ne,xs,Q,$i){"use strict";function js(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(t,l,r.get?r:{enumerable:!0,get:()=>n[l]})}}return t.default=n,Object.freeze(t)}const qi=js(xs),Tj="",Ql=(n,t)=>{const l=n.__vccOpts||n;for(const[r,N]of t)l[r]=N;return l},Us={name:"IdmEditor",components:{Editor:ui.Editor,Toolbar:ui.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(n){var t,l;n?(t=this.editor)==null||t.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var n;this.valueHtml=this.modelValue,(n=this.editor)==null||n.setHtml(this.valueHtml)}}},methods:{handleCreated(n){var t;this.editorRef=e.shallowRef(),this.editor=Object.seal(n),this.valueHtml=this.modelValue,(t=this.editor)==null||t.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(n){this.$emit("update:modelValue",this.valueHtml)},handleBlur(n){this.$emit("blur",this.valueHtml)},beforeDestroy(){var n;(n=this.editor)==null||n.destroy()}}},ks={class:"editor-box"};function Ss(n,t,l,r,N,i){const I=e.resolveComponent("Toolbar"),s=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",ks,[e.withDirectives(e.createVNode(I,{editor:N.editor,"default-config":N.toolbarConfig,mode:N.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!l.disabled]]),e.createVNode(s,{modelValue:N.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=d=>N.valueHtml=d),"default-config":N.editorConfig,mode:N.mode,class:"editor",style:e.normalizeStyle({height:l.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const ql=Ql(Us,[["render",Ss],["__scopeId","data-v-9854b172"]]),Vj="",zj="",pj="",Cs={name:"PlanReport",components:{Editor:ql,IdmBrand:bl.IdmBrand,IdmLoading:bl.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 n,t;return this.print?!1:(t=(n=this.plan)==null?void 0:n.voyage)==null?void 0:t.showCost},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeLTime(){return function(n,t,l,r){let N=0;return l&&t&&(N=Q.LngLatHelper.guessTimeZoneOffset(t,l)),`${Ne(n).utcOffset(r??N).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(n,t){var l,r,N,i,I;if(t===0)return"-";{const s=Ne((N=(r=(l=n==null?void 0:n.speeds)==null?void 0:l[t])==null?void 0:r.speed)==null?void 0:N.eta).diff(Ne((I=(i=n==null?void 0:n.speeds)==null?void 0:i[0])==null?void 0:I.speed.eta),"h",!0);return Math.round(s*100)/100}}},computeCostDiff(){return function(n,t){var l,r,N,i,I,s,d;if(t===0)return"-";{const V=Number((i=(N=(r=(l=n==null?void 0:n.speeds)==null?void 0:l[t])==null?void 0:r.speed)==null?void 0:N.cost)==null?void 0:i.total)-Number((d=(s=(I=n==null?void 0:n.speeds)==null?void 0:I[0])==null?void 0:s.speed)==null?void 0:d.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(n){return n.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(n,t=4){if(typeof n=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(n*l)/l}else return"-"}},computeMemo(){return function(n){return(n==null?void 0:n.memo)??"-"}},computeMajorPoints(){return function(n,t){const l=[];for(let r=0;r<t.length;r++){const N=t[r],i=t[r-1];i&&(N.avgBearing=i.bearing),l.push(N),N.suspend&&(n!=null&&n.useRouteParam)&&l.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`})}return l}},computeDegree(){return function(n,t,l){t=t%360;for(let r=0;r<17;r++)if(r*22.5+t+11.25>=360){let N=(16-r)*22.5;l||(N=N+180);let i="";return n==="wind"?i="var(--orm-wind)":n==="wave"?i="var(--orm-wave)":n==="swell"?i="var(--orm-swell)":n==="current"&&(i="var(--orm-current)"),`transform:rotate(${N}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(n,t=0){var i,I,s,d;const l=(d=(s=(I=(i=n==null?void 0:n.speeds)==null?void 0:i[t])==null?void 0:I.speed)==null?void 0:s.sample)==null?void 0:d.hours,r=l==null?void 0:l[0],N=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(Ne(N==null?void 0:N.eta).diff(Ne(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(n){var l,r;let t=0;return(r=(l=n==null?void 0:n.sample)==null?void 0:l.wps)==null||r.forEach(N=>{t+=N.suspend||0}),t?Math.round(t*100)/100:"-"}},computeModel(){return function(n){const t=n==null?void 0:n.source;return["ec","cmems"].includes(t==null?void 0:t.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${t}`}},computeCog(){return function(n){return isNaN(n)?"-":Q.LngLatHelper.padNumber(n,3,0)}},computeLat(){return(n,t=4)=>Q.LngLatHelper.lat2pretty(n,t).pretty},computeLng(){return(n,t=4)=>Q.LngLatHelper.lng2pretty(n,t).pretty},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}}},watch:{plan:{handler(){var n,t;(n=this.plan)!=null&&n.id&&(this.loading=!1,this.advisory=((t=this.plan)==null?void 0:t.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(n){this.editable=!1,this.$emit("commit",n)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=qi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var i,I,s,d,V,m,T;const n=[],t=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(m=(V=(d=(s=(I=(i=this.plan)==null?void 0:i.speeds)==null?void 0:I[this.speedIndex])==null?void 0:s.speed)==null?void 0:d.sample)==null?void 0:V.hours)==null||m.forEach(k=>{var y,z,C,E,p,S,O,D,Y,f;const j=k.meteo;if(j){const b=Ne(j.utc).utc().format("MMM-DD/HHmm[Z]");n.push(b),r=Math.ceil(((z=(y=j.wave)==null?void 0:y.sig)==null?void 0:z.height)>r?(E=(C=j.wave)==null?void 0:C.sig)==null?void 0:E.height:r),t.push([b,(p=j.wind)==null?void 0:p.kts,(O=(S=j.wave)==null?void 0:S.sig)==null?void 0:O.height,(D=j.wind)==null?void 0:D.direction,(Y=j.wind)==null?void 0:Y.degree,(f=j.wind)==null?void 0:f.scale,k.cFactor,k.wFactor,k.speed])}});const N={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:n,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}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,minInterval:5,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,max:r,min:0,minInterval:1,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,minInterval:.5,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:t,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(1, 189, 211, 1)"},{offset:.5,color:"rgba(1, 189, 211, 0.3)"},{offset:1,color:"rgba(1, 189, 211, 0)"}]}},lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:t,z:4}]};(T=this.echart)==null||T.setOption(N)}}},Os={class:"plan-report"},Ys={key:0,class:"loading-block"},fs={class:"info-block"},bs={class:"col"},Qs={class:"label-block"},Rs={class:"text"},hs={class:"label-block"},ws={class:"text"},Bs={class:"label-block"},Fs={class:"text"},Gs={class:"col"},Ps={class:"label-block"},Ws={key:0},Ls={key:1},Zs={style:{"margin-left":"16px"}},_s={class:"label-block"},Js={key:0},Hs={key:1},Xs={style:{"margin-left":"16px"}},Ks={class:"label-block"},qs={class:"text"},$s={class:"section chart-section"},us=["src"],vs={class:"legends text-tips"},ed={class:"legend"},td={key:0,class:"legend"},ld={key:1,class:"legend"},od={key:1,class:"empty"},nd={class:"section comparison-section"},ad={key:0,style:{"font-size":"12px"}},id={key:0},Nd=["rowspan"],sd={key:0},dd={key:1},rd={rowspan:"2"},cd={rowspan:"2"},Md={key:0},Dd={key:1},gd={rowspan:"1"},Id={key:0},Ed={rowspan:"2"},yd={rowspan:"2"},Ad={rowspan:"2"},md={key:0},Td={key:0},Vd=["rowspan"],zd={key:0},pd={rowspan:"1"},xd={key:0},jd={key:0},Ud={key:1},kd={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Sd={key:0},Cd={class:"section waypoint-section"},Od={class:"header-block"},Yd={class:"bg-block"},fd={class:"title"},bd={key:0,class:"flex-end",style:{flex:"1"}},Qd=["onClick"],Rd={class:"advisory bg-blue-light-2"},hd=["innerHTML"],wd={class:"major-waypoint"},Bd={class:"major-body"},Fd={class:"cell-item flex",style:{flex:"2.5"}},Gd={key:0,class:"flex-center"},Pd={key:1,class:"flex-center"},Wd={key:0,style:{"margin-left":"3px"}},Ld={class:"cell-item flex",style:{flex:"1.5"}},Zd={key:0,style:{"margin-left":"4px","font-weight":"600"}},_d={key:0,class:"cell-item flex offset"},Jd={key:1,class:"cell-item flex nbsp"},Hd={key:2,class:"cell-item flex offset"},Xd={key:3,class:"cell-item flex nbsp"},Kd={key:4,class:"cell-item flex offset"},qd={key:5,class:"cell-item flex nbsp"},$d={key:6,class:"cell-item flex offset"},ud={key:7,class:"cell-item flex nbsp"},vd={key:8,class:"cell-item flex offset"},er={key:9,class:"cell-item flex nbsp"},tr={class:"section forecast-section"},lr={style:{"page-break-inside":"avoid"}},or={class:"header-block"},nr={class:"bg-block"},ar={class:"title"},ir={key:0,class:"flex-end",style:{flex:"1"}},Nr=["onClick"],sr={class:"echart-block"},dr={ref:"echart",class:"echart"},rr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},cr={style:{"font-size":"12px"}},Mr=["colspan"],Dr={key:0},gr={class:"flex-center"},Ir={class:"degree-box"},Er={key:0},yr={key:2},Ar={key:0},mr={class:"degree-box"},Tr={key:0},Vr={key:2},zr={class:"degree-box"},pr={key:0},xr={key:2},jr={class:"degree-box"},Ur={key:0},kr={key:2};function Sr(n,t,l,r,N,i){var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J,o,F,H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be,x,_e,A,a,U,se,Fe,Ge,Pe,We,Le,Ze,Je,R,He,ue,ve,et,tt,lt,ot,nt,at,it,Nt,st,dt,rt,ct,Mt,Dt,It,Et,yt,At,mt,Tt,g,Vt,zt,pt,xt,jt,Ut,kt,St,qe,Rl,hl,wl,Bl,Fl,Gl,Pl,Wl;const I=e.resolveComponent("IdmBrand"),s=e.resolveComponent("IdmLoading"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",Os,[e.createVNode(I,{name:"Voyage Planning",issued:(V=l.plan)==null?void 0:V.updatedAt},null,8,["issued"]),N.loading?(e.openBlock(),e.createElementBlock("div",Ys,[e.createVNode(s,{loading:N.loading,onTimeout:t[0]||(t[0]=c=>N.loading=!1)},null,8,["loading"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",fs,[e.createElementVNode("div",bs,[e.createElementVNode("div",Qs,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",Rs,e.toDisplayString((k=(T=(m=l.plan)==null?void 0:m.voyage)==null?void 0:T.company)==null?void 0:k.name),1)]),e.createElementVNode("div",hs,[t[9]||(t[9]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",ws,e.toDisplayString((z=(y=(j=l.plan)==null?void 0:j.voyage)==null?void 0:y.vessel)==null?void 0:z.name)+" ("+e.toDisplayString((S=(p=(E=(C=l.plan)==null?void 0:C.voyage)==null?void 0:E.vessel)==null?void 0:p.vesselType)==null?void 0:S.name)+")",1)]),e.createElementVNode("div",Bs,[t[10]||(t[10]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",Fs,e.toDisplayString(((D=(O=l.plan)==null?void 0:O.voyage)==null?void 0:D.voyNum)||((f=(Y=l.plan)==null?void 0:Y.voyage)==null?void 0:f.number)),1)])]),e.createElementVNode("div",Gs,[e.createElementVNode("div",Ps,[t[11]||(t[11]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(w=(h=(b=l.plan)==null?void 0:b.leg)==null?void 0:h.departure)!=null&&w.name?(e.openBlock(),e.createElementBlock("span",Ws,e.toDisplayString((W=(P=(B=l.plan)==null?void 0:B.leg)==null?void 0:P.departure)==null?void 0:W.name),1)):(e.openBlock(),e.createElementBlock("span",Ls,e.toDisplayString(i.computePosition((Z=(L=l.plan)==null?void 0:L.leg)==null?void 0:Z.departure)),1)),e.createElementVNode("span",Zs,e.toDisplayString(i.computeUTCTime(((o=(J=(_=l.plan)==null?void 0:_.leg)==null?void 0:J.departure)==null?void 0:o.atd)||((X=(H=(F=l.plan)==null?void 0:F.leg)==null?void 0:H.departure)==null?void 0:X.etd)||((u=($=(q=(K=l.plan)==null?void 0:K.speeds)==null?void 0:q[N.speedIndex])==null?void 0:$.speed)==null?void 0:u.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),e.createElementVNode("div",_s,[t[12]||(t[12]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(te=(ee=(v=l.plan)==null?void 0:v.leg)==null?void 0:ee.destination)!=null&&te.name?(e.openBlock(),e.createElementBlock("span",Js,e.toDisplayString((G=(oe=(le=l.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:G.name),1)):(e.openBlock(),e.createElementBlock("span",Hs,e.toDisplayString(i.computePosition((ce=(re=l.plan)==null?void 0:re.leg)==null?void 0:ce.destination)),1)),e.createElementVNode("span",Xs,e.toDisplayString(i.computeUTCTime(((Ie=(ge=(De=(Me=l.plan)==null?void 0:Me.speeds)==null?void 0:De[N.speedIndex])==null?void 0:ge.speed)==null?void 0:Ie.ata)||((me=(Ae=(ye=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:ye[N.speedIndex])==null?void 0:Ae.speed)==null?void 0:me.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),e.createElementVNode("div",Ks,[t[13]||(t[13]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",qs,e.toDisplayString((Ve=(Te=l.plan)==null?void 0:Te.voyage)==null?void 0:Ve.loadCondition),1)])])]),e.createElementVNode("div",$s,[t[20]||(t[20]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(ze=l.plan)!=null&&ze.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.createElementVNode("img",{src:l.plan.chartUrl},null,8,us)]),e.createElementVNode("div",vs,[t[17]||(t[17]=e.createStaticVNode('<div class="legend" data-v-23c86e7f><span class="dangerous" data-v-23c86e7f></span><span data-v-23c86e7f>Danger</span></div><div class="legend" data-v-23c86e7f><span class="severe" data-v-23c86e7f></span><span data-v-23c86e7f>Severe</span></div><div class="legend" data-v-23c86e7f><span class="heavy" data-v-23c86e7f></span><span data-v-23c86e7f>Heavy</span></div>',3)),e.createElementVNode("div",ed,[t[14]||(t[14]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=c=>{N.speedIndex=0,i.renderEchart()})},e.toDisplayString((ke=(Ue=(je=(xe=(pe=l.plan)==null?void 0:pe.speeds)==null?void 0:xe[0])==null?void 0:je.speed)==null?void 0:Ue.lane)==null?void 0:ke.name),1)]),((Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce.length)>1?(e.openBlock(),e.createElementBlock("div",td,[t[15]||(t[15]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=c=>{N.speedIndex=1,i.renderEchart()})},e.toDisplayString((Qe=(be=(fe=(Ye=(Oe=l.plan)==null?void 0:Oe.speeds)==null?void 0:Ye[1])==null?void 0:fe.speed)==null?void 0:be.lane)==null?void 0:Qe.name),1)])):e.createCommentVNode("",!0),((he=(Re=l.plan)==null?void 0:Re.speeds)==null?void 0:he.length)>2?(e.openBlock(),e.createElementBlock("div",ld,[t[16]||(t[16]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=c=>{N.speedIndex=2,i.renderEchart()})},e.toDisplayString((A=(_e=(x=(Be=(we=l.plan)==null?void 0:we.speeds)==null?void 0:Be[2])==null?void 0:x.speed)==null?void 0:_e.lane)==null?void 0:A.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",od,[e.createElementVNode("span",null,[t[18]||(t[18]=e.createTextVNode("Weather chart in cooking ",-1)),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...c)=>i.handleRefresh&&i.handleRefresh(...c))},"Refresh"),t[19]||(t[19]=e.createTextVNode(" later please",-1))])]))]),e.createElementVNode("div",nd,[(U=(a=l.plan)==null?void 0:a.speeds)!=null&&U.length?(e.openBlock(),e.createElementBlock("table",ad,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[23]||(t[23]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[24]||(t[24]=e.createElementVNode("th",null,[e.createTextVNode("SPD "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{clospan:"2"},[e.createTextVNode("DTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[26]||(t[26]=e.createElementVNode("th",null,[e.createTextVNode("ETA "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Stop "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{colspan:"2"},[e.createTextVNode("Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(e.openBlock(),e.createElementBlock("th",id,[...t[21]||(t[21]=[e.createTextVNode("TTL Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",{rowspan:i.showCost?1:2},[...t[22]||(t[22]=[e.createTextVNode("Diff Time ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Nd),t[29]||(t[29]=e.createElementVNode("th",null,"Weather en route",-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",null,[e.createTextVNode("*Daily Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[33]||(t[33]=e.createElementVNode("th",null,[e.createTextVNode("TTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[34]||(t[34]=e.createElementVNode("th",null,[e.createTextVNode("Avg.Spd/Wx.F/Cur.F "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[35]||(t[35]=e.createElementVNode("th",null,"*FO",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(e.openBlock(),e.createElementBlock("th",sd,[...t[30]||(t[30]=[e.createTextVNode("*Hire / Bunker ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),i.showCost?(e.openBlock(),e.createElementBlock("th",dd,[...t[31]||(t[31]=[e.createTextVNode("Diff Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",null,"*in the next "+e.toDisplayString(i.computeDay(l.plan,0))+" days",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((se=l.plan)==null?void 0:se.speeds,(c,de)=>{var Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl;return e.openBlock(),e.createElementBlock(e.Fragment,{key:de},[e.createElementVNode("tr",null,[e.createElementVNode("td",rd,e.toDisplayString(de+1),1),e.createElementVNode("td",cd,e.toDisplayString((Ke=(Xe=c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),1),e.createElementVNode("td",null,[c.speed.label!=="Combined"?(e.openBlock(),e.createElementBlock("span",Md,e.toDisplayString(`CP ${((Ct=(gt=c.speed)==null?void 0:gt.cpCopy)==null?void 0:Ct.speed)??((Ot=c.speed)==null?void 0:Ot.v0)}`),1)):(e.openBlock(),e.createElementBlock("div",Dd,[t[37]||(t[37]=e.createTextVNode("CP",-1)),t[38]||(t[38]=e.createElementVNode("sub",null,"1",-1)),e.createTextVNode(" "+e.toDisplayString((bt=(ft=(Yt=c.speed)==null?void 0:Yt.extend)==null?void 0:ft.cps[0])==null?void 0:bt.speed)+", CP",1),t[39]||(t[39]=e.createElementVNode("sub",null,"2",-1)),e.createTextVNode(" "+e.toDisplayString((ht=(Rt=(Qt=c.speed)==null?void 0:Qt.extend)==null?void 0:Rt.cps[1])==null?void 0:ht.speed),1)]))]),e.createElementVNode("td",gd,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((wt=c.speed)==null?void 0:wt.distance,0)),1),(Ft=(Bt=c.speed)==null?void 0:Bt.extend)!=null&&Ft.distanceInECA?(e.openBlock(),e.createElementBlock("span",Id," ("+e.toDisplayString(i.roundPrecision(c.speed.extend.distanceInECA,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(i.computeLTime((Gt=c.speed)==null?void 0:Gt.eta,(Lt=(Wt=(Pt=l.plan)==null?void 0:Pt.leg)==null?void 0:Wt.destination)==null?void 0:Lt.lng,(Jt=(_t=(Zt=l.plan)==null?void 0:Zt.leg)==null?void 0:_t.destination)==null?void 0:Jt.lat,($t=(qt=(Kt=(Xt=(Ht=l.plan)==null?void 0:Ht.leg)==null?void 0:Xt.destination)==null?void 0:Kt.port)==null?void 0:qt.timezone)==null?void 0:$t.RawOffset)),1),t[40]||(t[40]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(i.computeUTCTime((ut=c.speed)==null?void 0:ut.eta)),1)]),e.createElementVNode("td",Ed,e.toDisplayString(i.computeSuspend(c.speed)),1),e.createElementVNode("td",yd,e.toDisplayString(i.roundPrecision((vt=c.speed)==null?void 0:vt.totalFoCons,3)),1),e.createElementVNode("td",Ad,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((el=c.speed)==null?void 0:el.totalDgoCons,3)),1),(ll=(tl=c.speed)==null?void 0:tl.extend)!=null&&ll.totalDgoConsInECA?(e.openBlock(),e.createElementBlock("span",md," + "+e.toDisplayString(i.roundPrecision((ol=c.speed.extend)==null?void 0:ol.totalDgoConsInECA,3))+"*",1)):e.createCommentVNode("",!0)]),i.showCost?(e.openBlock(),e.createElementBlock("td",Td,e.toDisplayString((il=i.roundPrecision(((al=(nl=c==null?void 0:c.speed)==null?void 0:nl.cost)==null?void 0:al.total)/1e3,2))==null?void 0:il.toLocaleString("en-US"))+"k",1)):e.createCommentVNode("",!0),e.createElementVNode("td",{rowspan:i.showCost?1:2},e.toDisplayString(i.computeTimeDiff(l.plan,de)),9,Vd),t[41]||(t[41]=e.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,[((Nl=c.speed)==null?void 0:Nl.label)!=="Combined"?(e.openBlock(),e.createElementBlock("div",zd,"FO: "+e.toDisplayString((dl=(sl=c.speed)==null?void 0:sl.cpCopy)==null?void 0:dl.fo)+" / DO: "+e.toDisplayString((cl=(rl=c.speed)==null?void 0:rl.cpCopy)==null?void 0:cl.dgo),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,"FO: "+e.toDisplayString((Dl=(Ml=c.speed)==null?void 0:Ml.extend)==null?void 0:Dl.cps[0].fo)+" / "+e.toDisplayString((Il=(gl=c.speed)==null?void 0:gl.extend)==null?void 0:Il.cps[1].fo),1),e.createElementVNode("div",null,"DO: "+e.toDisplayString((yl=(El=c.speed)==null?void 0:El.extend)==null?void 0:yl.cps[0].dgo)+" / "+e.toDisplayString((ml=(Al=c.speed)==null?void 0:Al.extend)==null?void 0:ml.cps[1].dgo),1)],64))]),e.createElementVNode("td",pd,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((Tl=c.speed)==null?void 0:Tl.totalHrs,1)),1),(zl=(Vl=c.speed)==null?void 0:Vl.extend)!=null&&zl.hoursInECA?(e.openBlock(),e.createElementBlock("span",xd," ("+e.toDisplayString(i.roundPrecision(c.speed.extend.hoursInECA,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((pl=c.speed)==null?void 0:pl.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((xl=c.speed)==null?void 0:xl.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((jl=c.speed)==null?void 0:jl.cFactor,2)),1),i.showCost?(e.openBlock(),e.createElementBlock("td",jd,e.toDisplayString(i.roundPrecision(((kl=(Ul=c==null?void 0:c.speed)==null?void 0:Ul.cost)==null?void 0:kl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+e.toDisplayString(i.roundPrecision(((Cl=(Sl=c==null?void 0:c.speed)==null?void 0:Sl.cost)==null?void 0:Cl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):e.createCommentVNode("",!0),i.showCost?(e.openBlock(),e.createElementBlock("td",Ud,e.toDisplayString(i.computeCostDiff(l.plan,de)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(((Ol=c.speed)==null?void 0:Ol.dangerous)/24,2))+" / "+e.toDisplayString(i.roundPrecision(((Yl=c.speed)==null?void 0:Yl.severe)/24,2))+" / "+e.toDisplayString(i.roundPrecision(((fl=c.speed)==null?void 0:fl.heavy)/24,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",kd,[t[43]||(t[43]=e.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),i.showCost?(e.openBlock(),e.createElementBlock("span",Sd,[e.createTextVNode("* Hire cost was calculated at "+e.toDisplayString((Pe=i.roundPrecision((Ge=(Fe=l.plan)==null?void 0:Fe.voyage)==null?void 0:Ge.dailyHire,0))==null?void 0:Pe.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+e.toDisplayString((Ze=i.roundPrecision((Le=(We=l.plan)==null?void 0:We.voyage)==null?void 0:Le.priceFO,0))==null?void 0:Ze.toLocaleString("en-US"))+" USD/mt for FO and "+e.toDisplayString((He=i.roundPrecision((R=(Je=l.plan)==null?void 0:Je.voyage)==null?void 0:R.priceDGO,0))==null?void 0:He.toLocaleString("en-US"))+" USD/mt for MGO.",1),t[42]||(t[42]=e.createElementVNode("br",null,null,-1))])):e.createCommentVNode("",!0),t[45]||(t[45]=e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),t[47]||(t[47]=e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),e.createElementVNode("div",Cd,[e.createElementVNode("div",Od,[e.createElementVNode("div",Yd,[t[48]||(t[48]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",fd,"Advisory & Major Waypoint of Route "+e.toDisplayString((tt=(et=(ve=(ue=l.plan.speeds)==null?void 0:ue[N.speedIndex])==null?void 0:ve.speed)==null?void 0:et.lane)==null?void 0:tt.name),1),((ot=(lt=l.plan)==null?void 0:lt.speeds)==null?void 0:ot.length)>1?(e.openBlock(),e.createElementBlock("div",bd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((nt=l.plan)==null?void 0:nt.speeds,(c,de)=>{var Xe,Ke;return e.openBlock(),e.createElementBlock("div",{key:de,class:e.normalizeClass(["route-item print-hidden",N.speedIndex===de?"active":""]),onClick:gt=>{N.speedIndex=de,i.renderEchart()}},e.toDisplayString((Ke=(Xe=c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),11,Qd)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Rd,[N.editable?(e.openBlock(),e.createBlock(d,{key:0,modelValue:N.advisory,"onUpdate:modelValue":t[5]||(t[5]=c=>N.advisory=c),class:"editor",height:"120px",onBlur:t[6]||(t[6]=c=>i.handleCommit(c))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:t[7]||(t[7]=(...c)=>i.handleEdit&&i.handleEdit(...c)),innerHTML:N.advisory},null,40,hd))]),e.createElementVNode("div",wd,[t[49]||(t[49]=e.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-23c86e7f><div class="cell-item flex" style="flex:2.5;" data-v-23c86e7f>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-23c86e7f>Time</div><div class="cell-item flex" data-v-23c86e7f>Nav</div><div class="cell-item flex" data-v-23c86e7f>Dist <span class="text-units" data-v-23c86e7f>(nm)</span></div><div class="cell-item flex" data-v-23c86e7f>SOG <span class="text-units" data-v-23c86e7f>(kts)</span></div><div class="cell-item flex" data-v-23c86e7f>COG <span class="text-units" data-v-23c86e7f>(°)</span></div><div class="cell-item flex" data-v-23c86e7f>Memo</div></div>',1)),e.createElementVNode("div",Bd,[(it=(at=l.plan)==null?void 0:at.speeds)!=null&&it.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.computeMajorPoints((rt=(dt=(st=(Nt=l.plan)==null?void 0:Nt.speeds)==null?void 0:st[N.speedIndex])==null?void 0:dt.speed)==null?void 0:rt.argv,(Et=(It=(Dt=(Mt=(ct=l.plan)==null?void 0:ct.speeds)==null?void 0:Mt[N.speedIndex])==null?void 0:Dt.speed)==null?void 0:It.sample)==null?void 0:Et.wps),(c,de)=>(e.openBlock(),e.createElementBlock("div",{key:de,class:"cell-row"},[e.createElementVNode("div",Fd,[c.isResume?(e.openBlock(),e.createElementBlock("div",Gd,"Resume")):(e.openBlock(),e.createElementBlock("div",Pd,[e.createElementVNode("span",null,e.toDisplayString(i.computePosition(c)),1),c.pilot?(e.openBlock(),e.createElementBlock("span",Wd,"[P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",Ld,[e.createTextVNode(e.toDisplayString(i.computeUTCTime(c.eta))+" ",1),c.cp?(e.openBlock(),e.createElementBlock("span",Zd,"[cp: "+e.toDisplayString(c.cp.speed)+"]",1)):e.createCommentVNode("",!0)]),de?(e.openBlock(),e.createElementBlock("div",_d,e.toDisplayString(i.computeNav(c)),1)):(e.openBlock(),e.createElementBlock("div",Jd)),de?(e.openBlock(),e.createElementBlock("div",Hd,e.toDisplayString(i.roundPrecision(c.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",Xd)),de?(e.openBlock(),e.createElementBlock("div",Kd,e.toDisplayString(i.roundPrecision(c.avgSpd??c.speed,2)),1)):(e.openBlock(),e.createElementBlock("div",qd)),de?(e.openBlock(),e.createElementBlock("div",$d,e.toDisplayString(i.computeCog(c.avgBearing)),1)):(e.openBlock(),e.createElementBlock("div",ud)),de?(e.openBlock(),e.createElementBlock("div",vd,e.toDisplayString(i.computeMemo(c)),1)):(e.openBlock(),e.createElementBlock("div",er))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",tr,[(At=(yt=l.plan)==null?void 0:yt.speeds)!=null&&At.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",lr,[e.createElementVNode("div",or,[e.createElementVNode("div",nr,[t[50]||(t[50]=e.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),e.createElementVNode("div",ar," Weather Forecast for the Next "+e.toDisplayString(i.computeDay(l.plan,N.speedIndex))+" Days of Route "+e.toDisplayString((zt=(Vt=(g=(Tt=(mt=l.plan)==null?void 0:mt.speeds)==null?void 0:Tt[N.speedIndex])==null?void 0:g.speed)==null?void 0:Vt.lane)==null?void 0:zt.name),1),((xt=(pt=l.plan)==null?void 0:pt.speeds)==null?void 0:xt.length)>1?(e.openBlock(),e.createElementBlock("div",ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((jt=l.plan)==null?void 0:jt.speeds,(c,de)=>{var Xe,Ke;return e.openBlock(),e.createElementBlock("div",{key:de,class:e.normalizeClass(["route-item print-hidden",N.speedIndex===de?"active":""]),onClick:gt=>{N.speedIndex=de,i.renderEchart()}},e.toDisplayString((Ke=(Xe=c==null?void 0:c.speed)==null?void 0:Xe.lane)==null?void 0:Ke.name),11,Nr)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",sr,[e.createElementVNode("div",dr,null,512)]),e.createElementVNode("div",rr,"* "+e.toDisplayString(i.computeModel((St=(kt=(Ut=l.plan)==null?void 0:Ut.speeds)==null?void 0:kt[N.speedIndex])==null?void 0:St.speed)),1)]),t[68]||(t[68]=e.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)),e.createElementVNode("table",cr,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[51]||(t[51]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),t[52]||(t[52]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Rl=(qe=l.plan)==null?void 0:qe.voyage)!=null&&Rl.sendRptWithBF?3:2},"Wind",8,Mr),t[53]||(t[53]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[54]||(t[54]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[55]||(t[55]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[56]||(t[56]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(wl=(hl=l.plan)==null?void 0:hl.voyage)!=null&&wl.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",Dr,"BF")):e.createCommentVNode("",!0),t[59]||(t[59]=e.createElementVNode("th",null,"Dir",-1)),t[60]||(t[60]=e.createElementVNode("th",null,[e.createTextVNode("Ht "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[61]||(t[61]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[62]||(t[62]=e.createElementVNode("th",null,"Dir",-1)),t[63]||(t[63]=e.createElementVNode("th",null,[e.createTextVNode("Hgt "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[64]||(t[64]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[65]||(t[65]=e.createElementVNode("th",null,"Dir",-1)),t[66]||(t[66]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[67]||(t[67]=e.createElementVNode("th",null,[e.createTextVNode("Factor "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Wl=(Pl=(Gl=(Fl=(Bl=l.plan)==null?void 0:Bl.speeds)==null?void 0:Fl[N.speedIndex])==null?void 0:Gl.speed)==null?void 0:Pl.sample)==null?void 0:Wl.hours,(c,de)=>{var Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl,Ll,Zl,_l,Jl,Hl,$l,ul,vl,eo,to;return e.openBlock(),e.createElementBlock("tr",{key:de,class:e.normalizeClass(c.isDangerous?"dangerous":c.isSevere?"severe":c.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(c.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",gr,e.toDisplayString(i.computeLat(c.lat))+", "+e.toDisplayString(i.computeLng(c.lng)),1)]),e.createElementVNode("td",Ir,[(Ke=(Xe=c.meteo)==null?void 0:Xe.wind)!=null&&Ke.kts?(e.openBlock(),e.createElementBlock("span",Er,e.toDisplayString((Ct=(gt=c.meteo)==null?void 0:gt.wind)==null?void 0:Ct.direction),1)):e.createCommentVNode("",!0),(Yt=(Ot=c.meteo)==null?void 0:Ot.wind)!=null&&Yt.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("wind",(bt=(ft=c.meteo)==null?void 0:ft.wind)==null?void 0:bt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",yr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Rt=(Qt=c==null?void 0:c.meteo)==null?void 0:Qt.wind)==null?void 0:Rt.scale)>=4?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((wt=(ht=c.meteo)==null?void 0:ht.wind)==null?void 0:wt.kts,1)),3),(Ft=(Bt=l.plan)==null?void 0:Bt.voyage)!=null&&Ft.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",Ar,e.toDisplayString((Pt=(Gt=c.meteo)==null?void 0:Gt.wind)==null?void 0:Pt.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Zt=(Lt=(Wt=c.meteo)==null?void 0:Wt.wave)==null?void 0:Lt.wd)==null?void 0:Zt.height,1)),1),e.createElementVNode("td",mr,[(Ht=(Jt=(_t=c.meteo)==null?void 0:_t.wave)==null?void 0:Jt.swell)!=null&&Ht.height?(e.openBlock(),e.createElementBlock("span",Tr,e.toDisplayString((qt=(Kt=(Xt=c.meteo)==null?void 0:Xt.wave)==null?void 0:Kt.swell)==null?void 0:qt.direction),1)):e.createCommentVNode("",!0),(vt=(ut=($t=c.meteo)==null?void 0:$t.wave)==null?void 0:ut.swell)!=null&&vt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("swell",(ll=(tl=(el=c.meteo)==null?void 0:el.wave)==null?void 0:tl.swell)==null?void 0:ll.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Vr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((al=(nl=(ol=c==null?void 0:c.meteo)==null?void 0:ol.wave)==null?void 0:nl.swell)==null?void 0:al.height)>=1.5?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((sl=(Nl=(il=c.meteo)==null?void 0:il.wave)==null?void 0:Nl.swell)==null?void 0:sl.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((cl=(rl=(dl=c.meteo)==null?void 0:dl.wave)==null?void 0:rl.swell)==null?void 0:cl.period,1)),1),e.createElementVNode("td",zr,[(gl=(Dl=(Ml=c.meteo)==null?void 0:Ml.wave)==null?void 0:Dl.sig)!=null&&gl.height?(e.openBlock(),e.createElementBlock("span",pr,e.toDisplayString((yl=(El=(Il=c.meteo)==null?void 0:Il.wave)==null?void 0:El.sig)==null?void 0:yl.direction),1)):e.createCommentVNode("",!0),(Tl=(ml=(Al=c.meteo)==null?void 0:Al.wave)==null?void 0:ml.sig)!=null&&Tl.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("wave",(pl=(zl=(Vl=c.meteo)==null?void 0:Vl.wave)==null?void 0:zl.sig)==null?void 0:pl.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",xr,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Ul=(jl=(xl=c==null?void 0:c.meteo)==null?void 0:xl.wave)==null?void 0:jl.sig)==null?void 0:Ul.height)>=1.5?"bg-heavy":"")},e.toDisplayString(i.roundPrecision((Cl=(Sl=(kl=c.meteo)==null?void 0:kl.wave)==null?void 0:Sl.sig)==null?void 0:Cl.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((fl=(Yl=(Ol=c.meteo)==null?void 0:Ol.wave)==null?void 0:Yl.sig)==null?void 0:fl.period,1)),1),e.createElementVNode("td",jr,[(Zl=(Ll=c.meteo)==null?void 0:Ll.current)!=null&&Zl.kts?(e.openBlock(),e.createElementBlock("span",Ur,e.toDisplayString((Jl=(_l=c.meteo)==null?void 0:_l.current)==null?void 0:Jl.direction),1)):e.createCommentVNode("",!0),($l=(Hl=c.meteo)==null?void 0:Hl.current)!=null&&$l.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(i.computeDegree("current",(vl=(ul=c.meteo)==null?void 0:ul.current)==null?void 0:vl.degree,!0))},null,4)):(e.openBlock(),e.createElementBlock("span",kr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((to=(eo=c.meteo)==null?void 0:eo.current)==null?void 0:to.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(c.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[69]||(t[69]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[e.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),e.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),e.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 vi=Ql(Cs,[["render",Sr],["__scopeId","data-v-23c86e7f"]]),Cr={install(n){n.component("PlanReport",vi)}},Or={install(n){n.component("IdmEditor",ql)}},xj="",Yr={name:"OrmVoyageSummary",components:{Editor:ql},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(n){return Ne(n.utc).subtract(n.timeCalc,"hour").format()}},computeDuration(){return function(n,t){const l=Ne(n).diff(Ne(t),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeWeatherDef(){return function(n){let t;if(n!=null&&n.overallAsGoodWx)t="No specific thresholds for wind/wave/currents are defined in the Charter Party",n.disableWxFactor&&n.disableCFactor?t+=", Both Wx Factor and Current Factor are ignored":n.disableWxFactor?t+=", Wx Factor is ignored":n.disableCFactor&&(t+=", Current Factor is ignored"),t+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";n!=null&&n.waveSwitch?l+=`Wind wave height is ${n==null?void 0:n.waveHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`:n!=null&&n.swellSwitch?l+=`Swell height is ${n==null?void 0:n.swellHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`:n!=null&&n.sigSwitch&&(l+=`Significant wave height is ${n==null?void 0:n.sigHeight} meters or less (Douglas Sea State ${n==null?void 0:n.seaScale})`),t=`Winds are BF/${n==null?void 0:n.windScale} or less, ${l}`,n!=null&&n.noAdverseCur&&(t+=", No Adverse Current"),n!=null&&n.waterTempSwitch&&(t+=`, water temperature is ${n==null?void 0:n.waterTemp} °C or less`),n!=null&&n.noExtrapolation&&(t+=", No Extrapolation"),(n==null?void 0:n.time)===100&&(n!=null&&n.timePercentage)&&(n==null?void 0:n.consecutiveTime)===1?t+=", All parts of the period.":(n==null?void 0:n.consecutiveTime)>1&!(n!=null&&n.consecTimePercentage)?t+=`, At least ${n==null?void 0:n.consecutiveTime} consecutive hours.`:t+="."}return t}},computeLng(){return function(n){return Q.LngLatHelper.lng2pretty(n)}},computeLat(){return function(n){return Q.LngLatHelper.lat2pretty(n)}},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}},computeAbtSpeed(){return function(n,t,l){return l==="Over"?n.abt4SpdOver:n.abt4SpdUnder}},computeAbtCons(){return function(n,t,l){if(n.consPercentage){if(t==="fo")return l==="Over"?`${n.consOfOver}%`:`${n.consOfUnder}%`;if(t==="dgo")return l==="Over"?`${n.consDgoOfOver??n.consOfOver}%`:`${n.consDgoOfUnder??n.consOfUnder}%`}else{if(t==="fo")return l==="Over"?`${n.consOfOver}`:`${n.consOfUnder}`;if(t==="dgo")return l==="Over"?`${n.consDgoOfOver??n.consOfOver}`:`${n.consDgoOfUnder??n.consOfUnder}`}}},computeBlankHtml(){return function(n){return!(n!=null&&n.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(n,t){n!=null&&n.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var n,t;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(t=(n=this.report)==null?void 0:n.segments)==null||t.forEach((l,r)=>{var I,s;l.excluded.detail.forEach(d=>{const V={time:Ne(d.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Ne(d.end).utc().format("MMM-DD/HHmm[Z]"),duration:d.duration,distance:d.distance,fo:d.foCons,dgo:d.dgoCons};this.exclusion.push(V)});const i=(s=(I=l==null?void 0:l.inventory)==null?void 0:I.sample)==null?void 0:s.hours.filter(d=>d.noon);this.noons.push([i])})},handleCommit(n){this.editable=!1,this.$emit("commit",n)},handleEdit(){this.editable=!0}}},fr={class:"report-summary"},br={class:"info-block"},Qr={class:"col"},Rr={class:"label-block"},hr={class:"text"},wr={class:"label-block"},Br={class:"text"},Fr={class:"label-block"},Gr={class:"text"},Pr={class:"col"},Wr={class:"label-block"},Lr={key:0},Zr={key:1},_r={style:{"margin-left":"16px"}},Jr={class:"label-block"},Hr={key:0},Xr={key:1},Kr={style:{"margin-left":"16px"}},qr={class:"label-block"},$r={class:"text"},ur={class:"section weather-section"},vr={class:"definition bg-blue-light-2"},ec={style:{"line-height":"1.5"}},tc={class:"section summary-section"},lc={class:"phase-box"},oc={class:"phase-index"},nc={class:"phase-position"},ac={key:0},ic={key:1},Nc={class:"phase-position"},sc={key:0},dc={key:1},rc={class:"phase-cp"},cc={class:"phase-conclusion"},Mc={class:"item-conclusion bg-blue-light-2"},Dc={class:"value align-left"},gc={key:0,class:"text-secondary align-right"},Ic={key:0},Ec={key:1},yc={key:2},Ac={key:1,class:"text-secondary"},mc={key:2,class:"value"},Tc={key:0},Vc={class:"gain"},zc={key:1},pc={class:"lost"},xc={key:2},jc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},kc={key:0,class:"text-secondary"},Sc={key:0},Cc={key:1},Oc={key:2},Yc={key:1,class:"text-secondary"},fc={key:2,class:"value"},bc={key:0},Qc={class:"gain"},Rc={key:1},hc={class:"lost"},wc={key:2},Bc={class:"item-conclusion bg-blue-light-2"},Fc={class:"value align-left"},Gc={key:0,class:"text-secondary"},Pc={key:0},Wc={key:1},Lc={key:2},Zc={key:1,class:"text-secondary"},_c={key:2,class:"value"},Jc={key:0},Hc={class:"gain"},Xc={key:1},Kc={class:"lost"},qc={key:2},$c={key:0,class:"exclusion-block"},uc={style:{margin:"8px 0"}},vc=["innerHTML"],eM={class:"section segment-section"},tM={class:"segment-summary"},lM={class:"segment-index text-left"},oM={class:"segment-position"},nM={key:0},aM={key:1},iM={class:"segment-position"},NM={key:0},sM={key:1},dM={class:"good-wx"},rM={class:"good-wx"},cM={class:"good-wx"},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"},mM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},zM={class:"good-wx"},pM={key:0,style:{"margin-top":"12px"}},xM={key:0},jM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},UM={key:2,class:"segment-speed"},kM={class:"row"},SM={class:"speed-right row"},CM={class:"speed"},OM={key:1,class:"speed"},YM={key:0,class:"speed"},fM={class:"speed"},bM={class:"speed"},QM={class:"speed"},RM={key:2,class:"under"},hM={key:3,class:"over"},wM={class:"row"},BM={class:"speed-right formula flex-space"},FM={key:0},GM={key:3,class:"segment-speed"},PM={class:"row"},WM={class:"speed-right row"},LM={class:"speed"},ZM={class:"speed"},_M={key:2,class:"under"},JM={key:3,class:"over"},HM={class:"row"},XM={class:"speed-right formula row"},KM={class:"segment-formula"},qM={class:"sub-title"},$M={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},uM={class:"formula-block"},vM={class:"formula-item flex-evenly bg-blue-light"},eD={class:"formula-right flex-evenly"},tD={class:"fraction",style:{width:"240px"}},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-left flex-space"},nD={class:"formula-right flex-evenly"},aD={class:"fraction",style:{width:"240px"}},iD={class:"formula-item flex-center bg-blue-light"},ND={class:"formula-left flex-space"},sD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"240px"}},rD={class:"formula-desc"},cD={class:"flex-end"},MD={class:"flex-end"},DD={class:"flex-end"},gD={key:0,class:"formula-block"},ID={class:"formula-item flex-evenly bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"200px"}},AD={class:"formula-item flex-center bg-blue-light"},mD={class:"formula-left flex-space"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"200px"}},zD={class:"formula-item flex-center bg-blue-light"},pD={class:"formula-left flex-space"},xD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"200px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},kD={key:0,class:"flex-evenly",style:{width:"500px"}},SD={key:1,class:"flex-evenly",style:{width:"500px"}},CD={class:"flex-center"},OD={key:1,class:"formula-conclusion bg-blue-light"},YD={class:"segment-formula"},fD={class:"sub-title"},bD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},QD={class:"formula-block"},RD={class:"formula-item flex-evenly bg-blue-light"},hD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"240px"}},BD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},FD={key:0,class:"flex-end text-tips"},GD={class:"formula-item flex-center bg-blue-light"},PD={class:"formula-right flex-evenly"},WD={class:"fraction",style:{width:"200px"}},LD={class:"formula-item flex-center bg-blue-light"},ZD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"200px"}},JD={class:"formula-item flex-center bg-blue-light"},HD={class:"formula-right flex-evenly"},XD={class:"fraction",style:{width:"300px"}},KD={class:"formula-item flex-center bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"300px"}},uD={class:"sub-title"},vD={key:0,class:"formula-block"},eg={key:0,class:"formula-item flex-evenly bg-blue-light"},tg={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"60px"}},og={class:"fraction",style:{width:"60px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},ig={class:"fraction",style:{width:"150px"}},Ng={class:"fraction",style:{width:"150px"}},sg={key:0},dg={class:"formula-item flex-evenly bg-blue-light"},rg={class:"formula-right flex-evenly"},cg={class:"fraction",style:{width:"150px"}},Mg={class:"fraction",style:{width:"150px"}},Dg={class:"formula-item flex-evenly bg-blue-light"},gg={class:"formula-right flex-evenly"},Ig={class:"fraction",style:{width:"150px"}},Eg={class:"fraction",style:{width:"150px"}},yg={class:"formula-item formula-conclusion bg-blue-light"},Ag={class:"flex-evenly",style:{width:"500px"}},mg={key:0,class:"flex-evenly"},Tg={class:"fraction"},Vg={class:"flex-evenly",style:{width:"700px"}},zg={key:0,class:"flex-evenly",style:{width:"500px"}},pg={class:"fraction",style:{width:"140px"}},xg={key:1,class:"formula-item formula-conclusion bg-blue-light"},jg={class:"header-block"},Ug={class:"bg-block"},kg={class:"title"},Sg={key:0,class:"formula-block"},Cg={class:"formula-item flex-evenly bg-blue-light"},Og={class:"formula-right flex-evenly"},Yg={class:"fraction",style:{width:"150px"}},fg={class:"fraction",style:{width:"150px"}},bg={key:0},Qg={class:"formula-item flex-evenly bg-blue-light"},Rg={class:"formula-right flex-evenly"},hg={class:"fraction",style:{width:"150px"}},wg={class:"fraction",style:{width:"150px"}},Bg={class:"formula-item flex-evenly bg-blue-light"},Fg={class:"formula-right flex-evenly"},Gg={class:"fraction",style:{width:"150px"}},Pg={class:"fraction",style:{width:"150px"}},Wg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Lg={key:0,class:"flex-evenly",style:{width:"500px"}},Zg={key:1,class:"flex-evenly",style:{width:"700px"}},_g={key:1,class:"formula-item formula-conclusion bg-blue-light"};function Jg(n,t,l,r,N,i){var s,d,V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J;const I=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",fr,[e.createElementVNode("div",br,[e.createElementVNode("div",Qr,[e.createElementVNode("div",Rr,[t[3]||(t[3]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",hr,e.toDisplayString(l.report.preparedFor),1)]),e.createElementVNode("div",wr,[t[4]||(t[4]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",Br,e.toDisplayString((d=(s=l.report)==null?void 0:s.vessel)==null?void 0:d.name)+" ("+e.toDisplayString((m=(V=l.report)==null?void 0:V.vessel)==null?void 0:m.type)+")",1)]),e.createElementVNode("div",Fr,[t[5]||(t[5]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",Gr,e.toDisplayString(((k=(T=l.report)==null?void 0:T.voyage)==null?void 0:k.voyNum)||((y=(j=l.report)==null?void 0:j.voyage)==null?void 0:y.number)),1)])]),e.createElementVNode("div",Pr,[e.createElementVNode("div",Wr,[t[6]||(t[6]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(C=(z=l.report)==null?void 0:z.departure)!=null&&C.name?(e.openBlock(),e.createElementBlock("span",Lr,e.toDisplayString((p=(E=l.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(e.openBlock(),e.createElementBlock("span",Zr,e.toDisplayString(i.computePosition((S=l.report)==null?void 0:S.departure)),1)),e.createElementVNode("span",_r,e.toDisplayString(i.computeUTCTime((D=(O=l.report)==null?void 0:O.departure)==null?void 0:D.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Jr,[t[7]||(t[7]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(f=(Y=l.report)==null?void 0:Y.arrival)!=null&&f.portName?(e.openBlock(),e.createElementBlock("span",Hr,e.toDisplayString((h=(b=l.report)==null?void 0:b.arrival)==null?void 0:h.portName),1)):(e.openBlock(),e.createElementBlock("span",Xr,e.toDisplayString(i.computePosition((w=l.report)==null?void 0:w.arrival)),1)),e.createElementVNode("span",Kr,e.toDisplayString(i.computeUTCTime((P=(B=l.report)==null?void 0:B.arrival)==null?void 0:P.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",qr,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",$r,e.toDisplayString((L=(W=l.report)==null?void 0:W.voyage)==null?void 0:L.loadCondition),1)])])]),e.createElementVNode("div",ur,[t[9]||(t[9]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),e.createElementVNode("div",vr,[e.createElementVNode("div",ec,e.toDisplayString(i.computeWeatherDef(l.report.weather)),1)])]),e.createElementVNode("div",tc,[t[37]||(t[37]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Z=l.report)==null?void 0:Z.segments,(o,F)=>{var H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be;return e.openBlock(),e.createElementBlock("div",{key:"summary"+F,class:"segment-box"},[e.createElementVNode("div",lc,[e.createElementVNode("div",oc,"Seg."+e.toDisplayString(F+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=o==null?void 0:o.extend)==null?void 0:H.segTimes,(x,_e)=>{var A,a,U,se,Fe,Ge,Pe,We,Le,Ze;return e.openBlock(),e.createElementBlock("div",{key:_e,class:"phase-row text-secondary"},[e.createElementVNode("div",nc,[(A=x==null?void 0:x.departure)!=null&&A.portName?(e.openBlock(),e.createElementBlock("span",ac,e.toDisplayString((a=x==null?void 0:x.departure)==null?void 0:a.portName),1)):(e.openBlock(),e.createElementBlock("span",ic,e.toDisplayString(i.computeLat((U=x==null?void 0:x.departure)==null?void 0:U.lat).pretty)+", "+e.toDisplayString(i.computeLng((se=x==null?void 0:x.departure)==null?void 0:se.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Fe=x==null?void 0:x.departure)==null?void 0:Fe.utcTime))+")",1)]),t[10]||(t[10]=e.createElementVNode("div",{class:"phase-split"},"~",-1)),e.createElementVNode("div",Nc,[(Ge=x==null?void 0:x.arrival)!=null&&Ge.portName?(e.openBlock(),e.createElementBlock("span",sc,e.toDisplayString((Pe=x==null?void 0:x.arrival)==null?void 0:Pe.portName),1)):(e.openBlock(),e.createElementBlock("span",dc,e.toDisplayString(i.computeLat((We=x==null?void 0:x.arrival)==null?void 0:We.lat).pretty)+", "+e.toDisplayString(i.computeLng((Le=x==null?void 0:x.arrival)==null?void 0:Le.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Ze=x==null?void 0:x.arrival)==null?void 0:Ze.utcTime))+")",1)])])}),128)),e.createElementVNode("div",rc,[e.createElementVNode("table",null,[t[18]||(t[18]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,"CP")]),e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily FO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily DO/GO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[17]||(t[17]=e.createElementVNode("td",null,null,-1)),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((K=(X=o==null?void 0:o.extend)==null?void 0:X.cp)==null?void 0:K.speed)+" |",1),t[11]||(t[11]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,($=(q=o==null?void 0:o.extend)==null?void 0:q.cp)==null?void 0:$.speed,"Over"))+",",1),t[12]||(t[12]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(v=(u=o==null?void 0:o.extend)==null?void 0:u.cp)==null?void 0:v.speed,"Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((te=(ee=o==null?void 0:o.extend)==null?void 0:ee.cp)==null?void 0:te.fo)+" |",1),t[13]||(t[13]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"fo","Over"))+",",1),t[14]||(t[14]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"fo","Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((oe=(le=o==null?void 0:o.extend)==null?void 0:le.cp)==null?void 0:oe.dgo)+" |",1),t[15]||(t[15]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"dgo","Over"))+",",1),t[16]||(t[16]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeAbtCons(o==null?void 0:o.fuelConclusion,"dgo","Under")),1)])])])])]),e.createElementVNode("div",cc,[e.createElementVNode("div",Mc,[t[24]||(t[24]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),e.createElementVNode("div",Dc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.time),1),t[19]||(t[19]=e.createElementVNode("span",{class:"unit"},"hrs",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",gc,[((G=o==null?void 0:o.timeConclusion)==null?void 0:G.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("span",Ic,"Time Gained")):((re=o==null?void 0:o.timeConclusion)==null?void 0:re.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("span",Ec,"Time Lost")):(e.openBlock(),e.createElementBlock("span",yc,"No Time Lost/Gained"))])):(e.openBlock(),e.createElementBlock("div",Ac,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",mc,[((ce=o==null?void 0:o.timeConclusion)==null?void 0:ce.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",Tc,[t[20]||(t[20]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Vc,e.toDisplayString((Me=o==null?void 0:o.timeConclusion)==null?void 0:Me.timeGain),1),t[21]||(t[21]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):((De=o==null?void 0:o.timeConclusion)==null?void 0:De.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",zc,[t[22]||(t[22]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",pc,e.toDisplayString((ge=o==null?void 0:o.timeConclusion)==null?void 0:ge.timeLost),1),t[23]||(t[23]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):(e.openBlock(),e.createElementBlock("div",xc,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jc,[t[30]||(t[30]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),e.createElementVNode("div",Uc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.sumFoCons),1),t[25]||(t[25]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",kc,[((Ee=(Ie=o==null?void 0:o.fuelConclusion)==null?void 0:Ie.fo)==null?void 0:Ee.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Sc,"FO Saving")):((Ae=(ye=o==null?void 0:o.fuelConclusion)==null?void 0:ye.fo)==null?void 0:Ae.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",Cc,"FO Over-consumption")):(e.openBlock(),e.createElementBlock("span",Oc,"No FO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Yc,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",fc,[((Te=(me=o==null?void 0:o.fuelConclusion)==null?void 0:me.fo)==null?void 0:Te.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",bc,[t[26]||(t[26]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Qc,e.toDisplayString((ze=(Ve=o==null?void 0:o.fuelConclusion)==null?void 0:Ve.fo)==null?void 0:ze.saving),1),t[27]||(t[27]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((xe=(pe=o==null?void 0:o.fuelConclusion)==null?void 0:pe.fo)==null?void 0:xe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Rc,[t[28]||(t[28]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",hc,e.toDisplayString((Ue=(je=o==null?void 0:o.fuelConclusion)==null?void 0:je.fo)==null?void 0:Ue.overCons),1),t[29]||(t[29]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",wc,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Bc,[t[36]||(t[36]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),e.createElementVNode("div",Fc,[e.createElementVNode("span",null,e.toDisplayString(o.allWx.sumDgoCons),1),t[31]||(t[31]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",Gc,[((Se=(ke=o==null?void 0:o.fuelConclusion)==null?void 0:ke.dgo)==null?void 0:Se.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Pc,"DO/GO Saving")):((Oe=(Ce=o==null?void 0:o.fuelConclusion)==null?void 0:Ce.dgo)==null?void 0:Oe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",Wc,"DO/GO Over-consumption")):(e.openBlock(),e.createElementBlock("span",Lc,"No DO/GO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Zc,e.toDisplayString(N.noGoodWxDay),1)),o.goodWx.distance?(e.openBlock(),e.createElementBlock("div",_c,[((fe=(Ye=o==null?void 0:o.fuelConclusion)==null?void 0:Ye.dgo)==null?void 0:fe.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",Jc,[t[32]||(t[32]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Hc,e.toDisplayString((Qe=(be=o==null?void 0:o.fuelConclusion)==null?void 0:be.dgo)==null?void 0:Qe.saving),1),t[33]||(t[33]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((he=(Re=o==null?void 0:o.fuelConclusion)==null?void 0:Re.dgo)==null?void 0:he.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Xc,[t[34]||(t[34]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",Kc,e.toDisplayString((Be=(we=o==null?void 0:o.fuelConclusion)==null?void 0:we.dgo)==null?void 0:Be.overCons),1),t[35]||(t[35]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",qc,"N/A"))])):e.createCommentVNode("",!0)])])])])}),128)),t[38]||(t[38]=e.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),e.createElementVNode("div",{class:e.normalizeClass(i.computeBlankHtml((_=l.report)==null?void 0:_.remarks)&&!N.exclusion.length?"section remark-section print-hidden":"section remark-section")},[t[42]||(t[42]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-biaodan"}),e.createElementVNode("div",{class:"title"},"Remarks")])],-1)),N.exclusion.length?(e.openBlock(),e.createElementBlock("div",$c,[t[40]||(t[40]=e.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),t[41]||(t[41]=e.createElementVNode("div",{class:"text-secondary"},[e.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),e.createElementVNode("div",uc,[e.createElementVNode("table",null,[t[39]||(t[39]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",{style:{width:"40%"}},"Time"),e.createElementVNode("th",null,[e.createTextVNode("Duration "),e.createElementVNode("span",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",null,[e.createTextVNode("Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")]),e.createElementVNode("th",null,[e.createTextVNode("FO "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("DO/GO "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.exclusion,(o,F)=>(e.openBlock(),e.createElementBlock("tr",{key:F},[e.createElementVNode("td",null,e.toDisplayString(F+1),1),e.createElementVNode("td",null,e.toDisplayString(o.time),1),e.createElementVNode("td",null,e.toDisplayString(o.duration),1),e.createElementVNode("td",null,e.toDisplayString(o.distance),1),e.createElementVNode("td",null,e.toDisplayString(o.fo),1),e.createElementVNode("td",null,e.toDisplayString(o.dgo),1)]))),128))])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(i.computeBlankHtml((J=l.report)==null?void 0:J.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[N.editable?(e.openBlock(),e.createBlock(I,{key:0,modelValue:N.remarks,"onUpdate:modelValue":t[0]||(t[0]=o=>N.remarks=o),class:"editor",height:"120px",onBlur:t[1]||(t[1]=o=>i.handleCommit(o))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,onDblclick:t[2]||(t[2]=(...o)=>i.handleEdit&&i.handleEdit(...o)),innerHTML:N.remarks},null,40,vc))],2)],2),e.createElementVNode("div",eM,[t[244]||(t[244]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-baobiao"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.report.segments,(o,F)=>{var H,X,K,q,$,u,v,ee,te,le,oe,G,re,ce,Me,De,ge,Ie,Ee,ye,Ae,me,Te,Ve,ze,pe,xe,je,Ue,ke,Se,Ce,Oe,Ye,fe,be,Qe,Re,he,we,Be,x,_e,A,a,U,se,Fe,Ge,Pe,We,Le,Ze,Je,R,He,ue,ve,et,tt,lt,ot,nt,at,it,Nt,st,dt,rt,ct,Mt,Dt,It,Et,yt,At,mt,Tt,g,Vt,zt,pt,xt,jt,Ut,kt,St,qe,Rl,hl,wl,Bl,Fl,Gl,Pl,Wl,c,de,Xe,Ke,gt,Ct,Ot,Yt,ft,bt,Qt,Rt,ht,wt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Ht,Xt,Kt,qt,$t,ut,vt,el,tl,ll,ol,nl,al,il,Nl,sl,dl,rl,cl,Ml,Dl,gl,Il,El,yl,Al,ml,Tl,Vl,zl,pl,xl,jl,Ul,kl,Sl,Cl,Ol,Yl,fl,Ll,Zl,_l,Jl,Hl,$l,ul,vl,eo,to,lo,oo,no,ao,io,No,so,ro,co,Mo,Do,go,Io,Eo,yo,Ao,mo,To,Vo,zo,po,xo,jo,Uo,ko,So,Co,Oo,Yo,M,fo,bo,Qo,Ro,ho,wo,Bo,Fo,Xl,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,en,tn,ln,on,nn,an,Nn,sn,dn,rn,cn,Mn,Dn,gn,In,En,yn,An,mn,Tn,Vn,zn,pn,xn,jn,Un,kn,Sn,Cn,On,Yn,fn,bn,Qn,Rn,hn,wn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ea,ta,la,oa,na,aa,ia,Na,sa,da,ra,ca,Ma,Da,ga,Ia,Ea,ya,Aa,ma,Ta,Va,za,pa,xa,ja,Ua,ka,Sa,Ca,Oa,Ya,fa,ba,Qa,Ra,ha,wa,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,ei,ti,li,oi,ni,ai,ii,Ni,si,di,ri,ci,Mi,Di,gi,Ii,Ei,yi,Ai,mi,Ti,Vi,zi,pi,xi,ji,Ui,ki,Si,Ci,Oi,Yi,fi,bi,Qi,Ri,hi,wi,Bi;return e.openBlock(),e.createElementBlock("div",{key:F,class:"segment-block"},[e.createElementVNode("div",tM,[e.createElementVNode("div",lM,"Voyage Analysis Seg. "+e.toDisplayString(F+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((H=o==null?void 0:o.extend)==null?void 0:H.segTimes,(ne,Po)=>{var Kl,Go,Fi,Gi,Pi,Wi,Li,Zi,_i,Ji;return e.openBlock(),e.createElementBlock("div",{key:Po,class:"segment-row text-secondary"},[e.createElementVNode("div",oM,[(Kl=ne==null?void 0:ne.departure)!=null&&Kl.portName?(e.openBlock(),e.createElementBlock("span",nM,e.toDisplayString((Go=ne==null?void 0:ne.departure)==null?void 0:Go.portName),1)):(e.openBlock(),e.createElementBlock("span",aM,e.toDisplayString(i.computeLat((Fi=ne==null?void 0:ne.departure)==null?void 0:Fi.lat).pretty)+", "+e.toDisplayString(i.computeLng((Gi=ne==null?void 0:ne.departure)==null?void 0:Gi.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Pi=ne==null?void 0:ne.departure)==null?void 0:Pi.utcTime))+")",1)]),t[43]||(t[43]=e.createElementVNode("div",{class:"segment-split"},"~",-1)),e.createElementVNode("div",iM,[(Wi=ne==null?void 0:ne.arrival)!=null&&Wi.portName?(e.openBlock(),e.createElementBlock("span",NM,e.toDisplayString((Li=ne==null?void 0:ne.arrival)==null?void 0:Li.portName),1)):(e.openBlock(),e.createElementBlock("span",sM,e.toDisplayString(i.computeLat((Zi=ne==null?void 0:ne.arrival)==null?void 0:Zi.lat).pretty)+", "+e.toDisplayString(i.computeLng((_i=ne==null?void 0:ne.arrival)==null?void 0:_i.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(i.computeUTCTime((Ji=ne==null?void 0:ne.arrival)==null?void 0:Ji.utcTime))+")",1)])])}),128)),e.createElementVNode("table",null,[t[51]||(t[51]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{style:{width:"35%"}}),e.createElementVNode("th",{colspan:"2"},"Good Weather"),e.createElementVNode("th",{colspan:"2"},"All Weather")]),e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA")])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[44]||(t[44]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e.createElementVNode("td",dM,e.toDisplayString((K=(X=o==null?void 0:o.goodWx)==null?void 0:X.outEca)==null?void 0:K.distance),1),e.createElementVNode("td",rM,e.toDisplayString(($=(q=o==null?void 0:o.goodWx)==null?void 0:q.inEca)==null?void 0:$.distance),1),e.createElementVNode("td",null,e.toDisplayString((v=(u=o==null?void 0:o.allWx)==null?void 0:u.outEca)==null?void 0:v.distance),1),e.createElementVNode("td",null,e.toDisplayString((te=(ee=o==null?void 0:o.allWx)==null?void 0:ee.inEca)==null?void 0:te.distance),1)]),e.createElementVNode("tr",null,[t[45]||(t[45]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Time "),e.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),e.createElementVNode("td",cM,e.toDisplayString((oe=(le=o==null?void 0:o.goodWx)==null?void 0:le.outEca)==null?void 0:oe.time),1),e.createElementVNode("td",MM,e.toDisplayString((re=(G=o==null?void 0:o.goodWx)==null?void 0:G.inEca)==null?void 0:re.time),1),e.createElementVNode("td",null,e.toDisplayString((Me=(ce=o==null?void 0:o.allWx)==null?void 0:ce.outEca)==null?void 0:Me.time),1),e.createElementVNode("td",null,e.toDisplayString((ge=(De=o==null?void 0:o.allWx)==null?void 0:De.inEca)==null?void 0:ge.time),1)]),e.createElementVNode("tr",null,[t[46]||(t[46]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Average Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e.createElementVNode("td",DM,e.toDisplayString(((Ee=(Ie=o==null?void 0:o.goodWx)==null?void 0:Ie.outEca)==null?void 0:Ee.avgSpd)||"--"),1),e.createElementVNode("td",gM,e.toDisplayString(((Ae=(ye=o==null?void 0:o.goodWx)==null?void 0:ye.inEca)==null?void 0:Ae.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Te=(me=o==null?void 0:o.allWx)==null?void 0:me.outEca)==null?void 0:Te.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ze=(Ve=o==null?void 0:o.allWx)==null?void 0:Ve.inEca)==null?void 0:ze.avgSpd)||"--"),1)]),e.createElementVNode("tr",null,[t[47]||(t[47]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",IM,e.toDisplayString(((xe=(pe=o==null?void 0:o.goodWx)==null?void 0:pe.outEca)==null?void 0:xe.sumFoCons)||"--"),1),e.createElementVNode("td",EM,e.toDisplayString(((Ue=(je=o==null?void 0:o.goodWx)==null?void 0:je.inEca)==null?void 0:Ue.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Se=(ke=o==null?void 0:o.allWx)==null?void 0:ke.outEca)==null?void 0:Se.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Oe=(Ce=o==null?void 0:o.allWx)==null?void 0:Ce.inEca)==null?void 0:Oe.sumFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[48]||(t[48]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",yM,e.toDisplayString(((fe=(Ye=o==null?void 0:o.goodWx)==null?void 0:Ye.outEca)==null?void 0:fe.avgFoCons)||"--"),1),e.createElementVNode("td",AM,e.toDisplayString(((Qe=(be=o==null?void 0:o.goodWx)==null?void 0:be.inEca)==null?void 0:Qe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((he=(Re=o==null?void 0:o.allWx)==null?void 0:Re.outEca)==null?void 0:he.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Be=(we=o==null?void 0:o.allWx)==null?void 0:we.inEca)==null?void 0:Be.avgFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",mM,e.toDisplayString(((_e=(x=o==null?void 0:o.goodWx)==null?void 0:x.outEca)==null?void 0:_e.sumDgoCons)||"--"),1),e.createElementVNode("td",TM,e.toDisplayString(((a=(A=o==null?void 0:o.goodWx)==null?void 0:A.inEca)==null?void 0:a.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((se=(U=o==null?void 0:o.allWx)==null?void 0:U.outEca)==null?void 0:se.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Ge=(Fe=o==null?void 0:o.allWx)==null?void 0:Fe.inEca)==null?void 0:Ge.sumDgoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[50]||(t[50]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",VM,e.toDisplayString(((We=(Pe=o==null?void 0:o.goodWx)==null?void 0:Pe.outEca)==null?void 0:We.avgDgoCons)||"--"),1),e.createElementVNode("td",zM,e.toDisplayString(((Ze=(Le=o==null?void 0:o.goodWx)==null?void 0:Le.inEca)==null?void 0:Ze.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((R=(Je=o==null?void 0:o.allWx)==null?void 0:Je.outEca)==null?void 0:R.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ue=(He=o==null?void 0:o.allWx)==null?void 0:He.inEca)==null?void 0:ue.avgDgoCons)||"--"),1)])])]),(ve=o==null?void 0:o.goodWx)!=null&&ve.distance?(e.openBlock(),e.createElementBlock("table",pM,[t[53]||(t[53]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Date"),e.createElementVNode("th",null,"Time range"),e.createElementVNode("th",null,"Duration (hrs)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.noons[F],(ne,Po)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:Po},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne,(Kl,Go)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:Go},[Kl.goodWx?(e.openBlock(),e.createElementBlock("tr",xM,[e.createElementVNode("td",null,e.toDisplayString(Kl.type)+" "+e.toDisplayString(i.computeUTCTime(Kl.utc,"MMM-DD")),1),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(i.computeUTCTime(i.computePrevTime(Kl),"MMM-DD/HHmm[Z],YYYY")),1),t[52]||(t[52]=e.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeUTCTime(Kl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(i.computeDuration(Kl.utc,i.computePrevTime(Kl))),1)])])):e.createCommentVNode("",!0)],64))),128))],64))),128))])])):e.createCommentVNode("",!0),(et=N.exclusion[F])!=null&&et.time?(e.openBlock(),e.createElementBlock("div",jM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):e.createCommentVNode("",!0),(tt=o==null?void 0:o.goodWx)!=null&&tt.distance?(e.openBlock(),e.createElementBlock("div",UM,[e.createElementVNode("div",kM,[t[63]||(t[63]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",SM,[(ot=(lt=l.report)==null?void 0:lt.weather)!=null&&ot.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(It=(Dt=l.report)==null?void 0:Dt.weather)!=null&&It.disableWxFactor&&((yt=(Et=l.report)==null?void 0:Et.weather)!=null&&yt.disableCFactor)?(e.openBlock(),e.createElementBlock("span",YM,e.toDisplayString((At=o==null?void 0:o.goodWx)==null?void 0:At.pfmSpd)+" (kts)",1)):(Tt=(mt=l.report)==null?void 0:mt.weather)!=null&&Tt.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((g=o==null?void 0:o.goodWx)==null?void 0:g.avgSpd),1),t[56]||(t[56]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Vt=o==null?void 0:o.goodWx)==null?void 0:Vt.avgCf)>0?(zt=o==null?void 0:o.goodWx)==null?void 0:zt.avgCf:`(${(pt=o==null?void 0:o.goodWx)==null?void 0:pt.avgCf})`),1),t[57]||(t[57]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",fM,e.toDisplayString((xt=o==null?void 0:o.goodWx)==null?void 0:xt.pfmSpd)+" (kts)",1)],64)):(Ut=(jt=l.report)==null?void 0:jt.weather)!=null&&Ut.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString((kt=o==null?void 0:o.goodWx)==null?void 0:kt.avgSpd),1),t[58]||(t[58]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((St=o==null?void 0:o.goodWx)==null?void 0:St.avgWf)>0?(qe=o==null?void 0:o.goodWx)==null?void 0:qe.avgWf:`(${(Rl=o==null?void 0:o.goodWx)==null?void 0:Rl.avgWf})`),1),t[59]||(t[59]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",bM,e.toDisplayString((hl=o==null?void 0:o.goodWx)==null?void 0:hl.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString((wl=o==null?void 0:o.goodWx)==null?void 0:wl.avgSpd),1),t[61]||(t[61]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Bl=o==null?void 0:o.goodWx)==null?void 0:Bl.avgWf)>0?(Fl=o==null?void 0:o.goodWx)==null?void 0:Fl.avgWf:`(${(Gl=o==null?void 0:o.goodWx)==null?void 0:Gl.avgWf})`),1),(Wl=(Pl=l.report)==null?void 0:Pl.weather)!=null&&Wl.favorableCur&&((c=o==null?void 0:o.goodWx)==null?void 0:c.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[60]||(t[60]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((de=o==null?void 0:o.goodWx)==null?void 0:de.avgCf)>0?(Xe=o==null?void 0:o.goodWx)==null?void 0:Xe.avgCf:`(${(Ke=o==null?void 0:o.goodWx)==null?void 0:Ke.avgCf})`),1)],64)),t[62]||(t[62]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",QM,e.toDisplayString((gt=o==null?void 0:o.goodWx)==null?void 0:gt.pfmSpd)+" (kts)",1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(at=(nt=l.report)==null?void 0:nt.weather)!=null&&at.favorableCur&&((it=o==null?void 0:o.goodWx)==null?void 0:it.avgCf)>0?(e.openBlock(),e.createElementBlock("span",OM,e.toDisplayString((Mt=o==null?void 0:o.goodWx)==null?void 0:Mt.pfmSpd)+" (kts)",1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((Nt=o==null?void 0:o.goodWx)==null?void 0:Nt.avgSpd),1),t[54]||(t[54]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((st=o==null?void 0:o.goodWx)==null?void 0:st.avgCf)>0?(dt=o==null?void 0:o.goodWx)==null?void 0:dt.avgCf:`(${(rt=o==null?void 0:o.goodWx)==null?void 0:rt.avgCf})`),1),t[55]||(t[55]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",CM,e.toDisplayString((ct=o==null?void 0:o.goodWx)==null?void 0:ct.pfmSpd)+" (kts)",1)],64))],64)),((Ct=o==null?void 0:o.goodWx)==null?void 0:Ct.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",RM,"(Under-performance)")):e.createCommentVNode("",!0),((Ot=o==null?void 0:o.goodWx)==null?void 0:Ot.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",hM,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wM,[t[80]||(t[80]=e.createElementVNode("div",{class:"speed-left formula flex-space"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",BM,[(ft=(Yt=l.report)==null?void 0:Yt.weather)!=null&&ft.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(wt=(ht=l.report)==null?void 0:ht.weather)!=null&&wt.disableWxFactor&&((Ft=(Bt=l.report)==null?void 0:Bt.weather)!=null&&Ft.disableCFactor)?(e.openBlock(),e.createElementBlock("label",FM,"GW Average Speed")):(Pt=(Gt=l.report)==null?void 0:Gt.weather)!=null&&Pt.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[69]||(t[69]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[70]||(t[70]=e.createElementVNode("label",null,"-",-1)),t[71]||(t[71]=e.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Lt=(Wt=l.report)==null?void 0:Wt.weather)!=null&&Lt.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t[72]||(t[72]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[73]||(t[73]=e.createElementVNode("label",null,"-",-1)),t[74]||(t[74]=e.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t[77]||(t[77]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[78]||(t[78]=e.createElementVNode("label",null,"-",-1)),t[79]||(t[79]=e.createElementVNode("label",null,"GW Weather Factor",-1)),(_t=(Zt=l.report)==null?void 0:Zt.weather)!=null&&_t.favorableCur&&((Jt=o==null?void 0:o.goodWx)==null?void 0:Jt.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[75]||(t[75]=e.createElementVNode("label",null,"-",-1)),t[76]||(t[76]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(Qt=(bt=l.report)==null?void 0:bt.weather)!=null&&Qt.favorableCur&&((Rt=o==null?void 0:o.goodWx)==null?void 0:Rt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[67]||(t[67]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[68]||(t[68]=e.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[64]||(t[64]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[65]||(t[65]=e.createElementVNode("label",null,"-",-1)),t[66]||(t[66]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(e.openBlock(),e.createElementBlock("div",GM,[e.createElementVNode("div",PM,[t[86]||(t[86]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",WM,[(Xt=(Ht=l.report)==null?void 0:Ht.weather)!=null&&Xt.favorableCur&&((Kt=o==null?void 0:o.allWx)==null?void 0:Kt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((nl=o==null?void 0:o.allWx)==null?void 0:nl.avgSpd),1),t[84]||(t[84]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((al=o==null?void 0:o.allWx)==null?void 0:al.avgWf)>0?(il=o==null?void 0:o.allWx)==null?void 0:il.avgWf:`(${(Nl=o==null?void 0:o.allWx)==null?void 0:Nl.avgWf})`),1),t[85]||(t[85]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ZM,e.toDisplayString((sl=o==null?void 0:o.allWx)==null?void 0:sl.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((qt=o==null?void 0:o.allWx)==null?void 0:qt.avgSpd),1),t[81]||(t[81]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString((($t=o==null?void 0:o.allWx)==null?void 0:$t.avgCf)>0?(ut=o==null?void 0:o.allWx)==null?void 0:ut.avgCf:`(${(vt=o==null?void 0:o.allWx)==null?void 0:vt.avgCf})`),1),t[82]||(t[82]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((el=o==null?void 0:o.allWx)==null?void 0:el.avgWf)>0?(tl=o==null?void 0:o.allWx)==null?void 0:tl.avgWf:`(${(ll=o==null?void 0:o.allWx)==null?void 0:ll.avgWf})`),1),t[83]||(t[83]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",LM,e.toDisplayString((ol=o==null?void 0:o.allWx)==null?void 0:ol.pfmSpd)+" (kts)",1)],64)),((dl=o==null?void 0:o.allWx)==null?void 0:dl.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",_M,"(Under-performance)")):e.createCommentVNode("",!0),((rl=o==null?void 0:o.allWx)==null?void 0:rl.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",JM,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HM,[t[96]||(t[96]=e.createElementVNode("div",{class:"speed-left formula row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",XM,[(Ml=(cl=l.report)==null?void 0:cl.weather)!=null&&Ml.favorableCur&&((Dl=o==null?void 0:o.allWx)==null?void 0:Dl.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[92]||(t[92]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[93]||(t[93]=e.createElementVNode("label",null,"-",-1)),t[94]||(t[94]=e.createElementVNode("label",null,"Weather Factor ",-1)),t[95]||(t[95]=e.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[87]||(t[87]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[88]||(t[88]=e.createElementVNode("label",null,"-",-1)),t[89]||(t[89]=e.createElementVNode("label",null,"Current Factor",-1)),t[90]||(t[90]=e.createElementVNode("label",null,"-",-1)),t[91]||(t[91]=e.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),e.createElementVNode("div",KM,[e.createElementVNode("div",qM,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(F+1)+" Time Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(e.openBlock(),e.createElementBlock("span",$M,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",uM,[e.createElementVNode("div",vM,[t[100]||(t[100]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",null,e.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[97]||(t[97]=e.createElementVNode("div",{class:"line"},null,-1)),t[98]||(t[98]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[99]||(t[99]=e.createElementVNode("div",null,"(a)",-1))])]),e.createElementVNode("div",lD,[e.createElementVNode("div",oD,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(ml=(Al=o==null?void 0:o.extend)==null?void 0:Al.cp)==null?void 0:ml.speed,"Under"))+"kts)",1),t[101]||(t[101]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",nD,[e.createElementVNode("div",aD,[e.createElementVNode("div",null,e.toDisplayString((Vl=(Tl=l.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[102]||(t[102]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(pl=(zl=o==null?void 0:o.extend)==null?void 0:zl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),t[103]||(t[103]=e.createElementVNode("div",null,"(b)",-1))])]),e.createElementVNode("div",iD,[e.createElementVNode("div",ND,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(jl=(xl=o==null?void 0:o.extend)==null?void 0:xl.cp)==null?void 0:jl.speed,"Over"))+"kts)",1),t[104]||(t[104]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",sD,[e.createElementVNode("div",dD,[e.createElementVNode("div",null,e.toDisplayString((kl=(Ul=l.report)==null?void 0:Ul.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[105]||(t[105]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Cl=(Sl=o==null?void 0:o.extend)==null?void 0:Sl.cp)==null?void 0:Cl.speed,"Over"))+"kts",1)]),t[106]||(t[106]=e.createElementVNode("div",null,"(c)",-1))])]),t[107]||(t[107]=e.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-9f3f41e0><div class="flex-space" style="width:300px;font-weight:400;" data-v-9f3f41e0><label data-v-9f3f41e0>Time Lost</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(a)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-9f3f41e0><label data-v-9f3f41e0>Time Gained</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(c)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(a)</div></div></div>',1))]),e.createElementVNode("div",rD,[e.createElementVNode("div",cD,[t[108]||(t[108]=e.createElementVNode("label",null,"Time Lost",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Yl=(Ol=o==null?void 0:o.extend)==null?void 0:Ol.cp)==null?void 0:Yl.speed,"Under"))+" kts) ",1)]),e.createElementVNode("div",MD,[t[109]||(t[109]=e.createElementVNode("label",null,"Time Gained",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Ll=(fl=o==null?void 0:o.extend)==null?void 0:fl.cp)==null?void 0:Ll.speed,"Over"))+" kts) ",1)]),e.createElementVNode("div",DD,[t[110]||(t[110]=e.createElementVNode("label",null,"No Time Lost and Gained",-1)),e.createElementVNode("div",null," Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(_l=(Zl=o==null?void 0:o.extend)==null?void 0:Zl.cp)==null?void 0:_l.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Hl=(Jl=o==null?void 0:o.extend)==null?void 0:Jl.cp)==null?void 0:Hl.speed,"Under"))+" kts) ",1)])]),($l=o==null?void 0:o.goodWx)!=null&&$l.distance?(e.openBlock(),e.createElementBlock("div",gD,[e.createElementVNode("div",ID,[t[114]||(t[114]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ED,[e.createElementVNode("div",yD,[e.createElementVNode("div",null,e.toDisplayString((vl=(ul=l.report)==null?void 0:ul.weather)!=null&&vl.noExtrapolation?(eo=o==null?void 0:o.goodWx)==null?void 0:eo.distance:(to=o==null?void 0:o.allWx)==null?void 0:to.distance),1),t[111]||(t[111]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((lo=o==null?void 0:o.goodWx)==null?void 0:lo.pfmSpd),1)]),t[112]||(t[112]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((oo=o==null?void 0:o.timeConclusion)==null?void 0:oo.timeAtPfmSpd)+" (hrs)",1),t[113]||(t[113]=e.createElementVNode("div",null,"(a')",-1))])]),e.createElementVNode("div",AD,[e.createElementVNode("div",mD,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(ao=(no=o==null?void 0:o.extend)==null?void 0:no.cp)==null?void 0:ao.speed,"Under"))+"kts)",1),t[115]||(t[115]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",TD,[e.createElementVNode("div",VD,[e.createElementVNode("div",null,e.toDisplayString((No=(io=l.report)==null?void 0:io.weather)!=null&&No.noExtrapolation?(so=o==null?void 0:o.goodWx)==null?void 0:so.distance:(ro=o==null?void 0:o.allWx)==null?void 0:ro.distance),1),t[116]||(t[116]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((co=o==null?void 0:o.timeConclusion)==null?void 0:co.minusAbtSpd),1)]),t[117]||(t[117]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Mo=o==null?void 0:o.timeConclusion)==null?void 0:Mo.timeAtMinusAbtSpd)+" (hrs)",1),t[118]||(t[118]=e.createElementVNode("div",null,"(b')",-1))])]),e.createElementVNode("div",zD,[e.createElementVNode("div",pD,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(go=(Do=o==null?void 0:o.extend)==null?void 0:Do.cp)==null?void 0:go.speed,"Over"))+"kts)",1),t[119]||(t[119]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",xD,[e.createElementVNode("div",jD,[e.createElementVNode("div",null,e.toDisplayString((Eo=(Io=l.report)==null?void 0:Io.weather)!=null&&Eo.noExtrapolation?(yo=o==null?void 0:o.goodWx)==null?void 0:yo.distance:(Ao=o==null?void 0:o.allWx)==null?void 0:Ao.distance),1),t[120]||(t[120]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((mo=o==null?void 0:o.timeConclusion)==null?void 0:mo.plusAbtSpd),1)]),t[121]||(t[121]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((To=o==null?void 0:o.timeConclusion)==null?void 0:To.timeAtPlusAbtSpd)+" (hrs)",1),t[122]||(t[122]=e.createElementVNode("div",null,"(c')",-1))])]),e.createElementVNode("div",UD,[((Vo=o==null?void 0:o.timeConclusion)==null?void 0:Vo.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",kD,[t[123]||(t[123]=e.createElementVNode("div",null,"Time Lost",-1)),t[124]||(t[124]=e.createElementVNode("div",null,"=",-1)),t[125]||(t[125]=e.createElementVNode("div",null,"(a') - (b')",-1)),t[126]||(t[126]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((zo=o==null?void 0:o.timeConclusion)==null?void 0:zo.timeAtPfmSpd),1),t[127]||(t[127]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((po=o==null?void 0:o.timeConclusion)==null?void 0:po.timeAtMinusAbtSpd),1),t[128]||(t[128]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xo=o==null?void 0:o.timeConclusion)==null?void 0:xo.timeLost)+" (hrs)",1)])):((jo=o==null?void 0:o.timeConclusion)==null?void 0:jo.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",SD,[t[129]||(t[129]=e.createElementVNode("div",null,"Time Lost",-1)),t[130]||(t[130]=e.createElementVNode("div",null,"=",-1)),t[131]||(t[131]=e.createElementVNode("div",null,"(c') - (a')",-1)),t[132]||(t[132]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Uo=o==null?void 0:o.timeConclusion)==null?void 0:Uo.timeAtPlusAbtSpd),1),t[133]||(t[133]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((ko=o==null?void 0:o.timeConclusion)==null?void 0:ko.timeAtPfmSpd),1),t[134]||(t[134]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((So=o==null?void 0:o.timeConclusion)==null?void 0:So.timeGain)+" (hrs)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",CD,[t[135]||(t[135]=e.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),e.createElementVNode("div",{class:e.normalizeClass(((Co=o==null?void 0:o.timeConclusion)==null?void 0:Co.conclusionStatus)==="Lost"?"lost":((Oo=o==null?void 0:o.timeConclusion)==null?void 0:Oo.conclusionStatus)==="Gain"?"gain":"")},e.toDisplayString(((Yo=o==null?void 0:o.timeConclusion)==null?void 0:Yo.conclusion)||""),3)])])])):(e.openBlock(),e.createElementBlock("div",OD,e.toDisplayString(N.noGoodWxDay),1))]),e.createElementVNode("div",YD,[e.createElementVNode("div",fD,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(F+1)+" Consumption Analysis",1),(fo=(M=l.report)==null?void 0:M.weather)!=null&&fo.noExtrapolation?(e.openBlock(),e.createElementBlock("span",bD,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",QD,[e.createElementVNode("div",RD,[t[141]||(t[141]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",hD,[e.createElementVNode("div",wD,[e.createElementVNode("div",null,e.toDisplayString((Qo=(bo=l.report)==null?void 0:bo.weather)!=null&&Qo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[136]||(t[136]=e.createElementVNode("div",{class:"line"},null,-1)),t[137]||(t[137]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[138]||(t[138]=e.createElementVNode("div",null,"x",-1)),t[139]||(t[139]=e.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[e.createElementVNode("div",null,"Good Weather Consumption*"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"Good Weather Time")],-1)),t[140]||(t[140]=e.createElementVNode("div",null,"(d)",-1))])]),e.createElementVNode("div",BD,[t[142]||(t[142]=e.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((ho=(Ro=o.extend)==null?void 0:Ro.cp)==null?void 0:ho.dgo)>0?(e.openBlock(),e.createElementBlock("div",FD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):e.createCommentVNode("",!0)]),e.createElementVNode("div",GD,[t[147]||(t[147]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",PD,[e.createElementVNode("div",WD,[e.createElementVNode("div",null,e.toDisplayString((Bo=(wo=l.report)==null?void 0:wo.weather)!=null&&Bo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[143]||(t[143]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(Xl=(Fo=o==null?void 0:o.extend)==null?void 0:Fo.cp)==null?void 0:Xl.speed,"Under"))+"kts",1)]),t[144]||(t[144]=e.createElementVNode("div",null,"x",-1)),t[145]||(t[145]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[146]||(t[146]=e.createElementVNode("div",null,"(e)",-1))])]),e.createElementVNode("div",LD,[t[152]||(t[152]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ZD,[e.createElementVNode("div",_D,[e.createElementVNode("div",null,e.toDisplayString((Lo=(Wo=l.report)==null?void 0:Wo.weather)!=null&&Lo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[148]||(t[148]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(i.computeAbtSpeed(o==null?void 0:o.timeConclusion,(_o=(Zo=o==null?void 0:o.extend)==null?void 0:Zo.cp)==null?void 0:_o.speed,"Over"))+"kts",1)]),t[149]||(t[149]=e.createElementVNode("div",null,"x",-1)),t[150]||(t[150]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[151]||(t[151]=e.createElementVNode("div",null,"(f)",-1))])]),t[159]||(t[159]=e.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-9f3f41e0><div class="flex-space" style="width:240px;" data-v-9f3f41e0><label data-v-9f3f41e0>Fuel Over-consumption</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(d)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(e)</div></div><div class="flex-space" style="width:200px;" data-v-9f3f41e0><label data-v-9f3f41e0>Fuel Saving</label><div data-v-9f3f41e0>=</div><div data-v-9f3f41e0>(f)</div><div data-v-9f3f41e0>-</div><div data-v-9f3f41e0>(d)</div></div></div>',1)),((Ho=(Jo=o.extend)==null?void 0:Jo.cp)==null?void 0:Ho.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",JD,[t[155]||(t[155]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Over-consumption in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",HD,[e.createElementVNode("div",XD,[t[153]||(t[153]=e.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),t[154]||(t[154]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ko=(Xo=l.report)==null?void 0:Xo.weather)!=null&&Ko.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),e.createElementVNode("div",KD,[t[158]||(t[158]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Saving in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",qD,[e.createElementVNode("div",$D,[t[156]||(t[156]=e.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),t[157]||(t[157]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):e.createCommentVNode("",!0)]),t[243]||(t[243]=e.createElementVNode("div",{class:"formula-desc"},[e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Over-consumption"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Saving"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),e.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP")])],-1)),e.createElementVNode("div",uD,"Seg. "+e.toDisplayString(F+1)+" Fuel Oil",1),(uo=o==null?void 0:o.goodWx)!=null&&uo.distance?(e.openBlock(),e.createElementBlock("div",vD,[((en=(vo=o==null?void 0:o.goodWx)==null?void 0:vo.inEca)==null?void 0:en.distance)>0?(e.openBlock(),e.createElementBlock("div",eg,[t[165]||(t[165]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",tg,[e.createElementVNode("div",lg,[e.createElementVNode("div",null,e.toDisplayString((ln=(tn=o==null?void 0:o.goodWx)==null?void 0:tn.inEca)==null?void 0:ln.sumDgoCons),1)]),t[162]||(t[162]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",og,[e.createElementVNode("div",null,e.toDisplayString((nn=(on=o==null?void 0:o.extend)==null?void 0:on.cp)==null?void 0:nn.dgo),1),t[160]||(t[160]=e.createElementVNode("div",{class:"line"},null,-1)),t[161]||(t[161]=e.createElementVNode("div",null,"24",-1))]),t[163]||(t[163]=e.createElementVNode("div",null,"*",-1)),e.createElementVNode("div",null,e.toDisplayString((Nn=(an=o==null?void 0:o.goodWx)==null?void 0:an.inEca)==null?void 0:Nn.time),1),t[164]||(t[164]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((dn=(sn=o==null?void 0:o.fuelConclusion)==null?void 0:sn.fo)==null?void 0:dn.dgoAsFoCons)+" (mt)",1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",ng,[t[172]||(t[172]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",ag,[e.createElementVNode("div",ig,[e.createElementVNode("div",null,e.toDisplayString((cn=(rn=l.report)==null?void 0:rn.weather)!=null&&cn.noExtrapolation?(Mn=o==null?void 0:o.goodWx)==null?void 0:Mn.distance:(Dn=o==null?void 0:o.allWx)==null?void 0:Dn.distance),1),t[166]||(t[166]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((gn=o==null?void 0:o.goodWx)==null?void 0:gn.pfmSpd),1)]),t[169]||(t[169]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Ng,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((In=o==null?void 0:o.goodWx)==null?void 0:In.sumFoCons),1),((yn=(En=o==null?void 0:o.goodWx)==null?void 0:En.inEca)==null?void 0:yn.distance)>0?(e.openBlock(),e.createElementBlock("span",sg,[t[167]||(t[167]=e.createElementVNode("span",null," + ",-1)),e.createElementVNode("span",null,e.toDisplayString((mn=(An=o==null?void 0:o.fuelConclusion)==null?void 0:An.fo)==null?void 0:mn.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[168]||(t[168]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Tn=o==null?void 0:o.goodWx)==null?void 0:Tn.time),1)]),t[170]||(t[170]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((zn=(Vn=o.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:zn.entireCons)+" (mt)",1),t[171]||(t[171]=e.createElementVNode("div",null,"(d')",-1))])]),e.createElementVNode("div",dg,[t[179]||(t[179]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",rg,[e.createElementVNode("div",cg,[e.createElementVNode("div",null,e.toDisplayString((xn=(pn=l.report)==null?void 0:pn.weather)!=null&&xn.noExtrapolation?(jn=o==null?void 0:o.goodWx)==null?void 0:jn.distance:(Un=o==null?void 0:o.allWx)==null?void 0:Un.distance),1),t[173]||(t[173]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((kn=o==null?void 0:o.timeConclusion)==null?void 0:kn.minusAbtSpd),1)]),t[176]||(t[176]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Mg,[e.createElementVNode("div",null,e.toDisplayString((Cn=(Sn=o==null?void 0:o.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:Cn.overTolerance),1),t[174]||(t[174]=e.createElementVNode("div",{class:"line"},null,-1)),t[175]||(t[175]=e.createElementVNode("div",null,"24",-1))]),t[177]||(t[177]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Yn=(On=o.fuelConclusion)==null?void 0:On.fo)==null?void 0:Yn.maxCons)+" (mt)",1),t[178]||(t[178]=e.createElementVNode("div",null,"(e')",-1))])]),e.createElementVNode("div",Dg,[t[186]||(t[186]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",gg,[e.createElementVNode("div",Ig,[e.createElementVNode("div",null,e.toDisplayString((bn=(fn=l.report)==null?void 0:fn.weather)!=null&&bn.noExtrapolation?(Qn=o==null?void 0:o.goodWx)==null?void 0:Qn.distance:(Rn=o==null?void 0:o.allWx)==null?void 0:Rn.distance),1),t[180]||(t[180]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((hn=o==null?void 0:o.timeConclusion)==null?void 0:hn.plusAbtSpd),1)]),t[183]||(t[183]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Eg,[e.createElementVNode("div",null,e.toDisplayString((Bn=(wn=o==null?void 0:o.fuelConclusion)==null?void 0:wn.fo)==null?void 0:Bn.underTolerance),1),t[181]||(t[181]=e.createElementVNode("div",{class:"line"},null,-1)),t[182]||(t[182]=e.createElementVNode("div",null,"24",-1))]),t[184]||(t[184]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Gn=(Fn=o.fuelConclusion)==null?void 0:Fn.fo)==null?void 0:Gn.minCons)+" (mt)",1),t[185]||(t[185]=e.createElementVNode("div",null,"(f')",-1))])]),e.createElementVNode("div",yg,[((Wn=(Pn=o==null?void 0:o.fuelConclusion)==null?void 0:Pn.fo)==null?void 0:Wn.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Ag,[t[187]||(t[187]=e.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),t[188]||(t[188]=e.createElementVNode("div",null,"=",-1)),t[189]||(t[189]=e.createElementVNode("div",null,"(d') - (e')",-1)),t[190]||(t[190]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Zn=(Ln=o==null?void 0:o.fuelConclusion)==null?void 0:Ln.fo)==null?void 0:Zn.entireCons),1),t[191]||(t[191]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Jn=(_n=o==null?void 0:o.fuelConclusion)==null?void 0:_n.fo)==null?void 0:Jn.maxCons),1),t[192]||(t[192]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Xn=(Hn=o==null?void 0:o.fuelConclusion)==null?void 0:Hn.fo)==null?void 0:Xn.overCons),1)]),(qn=(Kn=o==null?void 0:o.goodWx)==null?void 0:Kn.inEca)!=null&&qn.distance?(e.openBlock(),e.createElementBlock("div",mg,[t[194]||(t[194]=e.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),t[195]||(t[195]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",Tg,[e.createElementVNode("div",null,e.toDisplayString((un=($n=o==null?void 0:o.goodWx)==null?void 0:$n.inEca)==null?void 0:un.distance)+" * "+e.toDisplayString((ea=(vn=o==null?void 0:o.fuelConclusion)==null?void 0:vn.fo)==null?void 0:ea.overCons),1),t[193]||(t[193]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((la=(ta=l.report)==null?void 0:ta.weather)!=null&&la.noExtrapolation?(oa=o==null?void 0:o.goodWx)==null?void 0:oa.distance:(na=o==null?void 0:o.allWx)==null?void 0:na.distance),1)]),t[196]||(t[196]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ia=(aa=o==null?void 0:o.fuelConclusion)==null?void 0:aa.fo)==null?void 0:ia.foOverConsInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):((sa=(Na=o==null?void 0:o.fuelConclusion)==null?void 0:Na.fo)==null?void 0:sa.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Vg,[t[197]||(t[197]=e.createElementVNode("div",null,"Fuel Oil Saving",-1)),t[198]||(t[198]=e.createElementVNode("div",null,"=",-1)),t[199]||(t[199]=e.createElementVNode("div",null,"(f') - (d')",-1)),t[200]||(t[200]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ra=(da=o==null?void 0:o.fuelConclusion)==null?void 0:da.fo)==null?void 0:ra.minCons),1),t[201]||(t[201]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Ma=(ca=o==null?void 0:o.fuelConclusion)==null?void 0:ca.fo)==null?void 0:Ma.entireCons),1),t[202]||(t[202]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ga=(Da=o==null?void 0:o.fuelConclusion)==null?void 0:Da.fo)==null?void 0:ga.saving)+" (mt)",1)]),(Ea=(Ia=o==null?void 0:o.goodWx)==null?void 0:Ia.inEca)!=null&&Ea.distance?(e.openBlock(),e.createElementBlock("div",zg,[t[204]||(t[204]=e.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),t[205]||(t[205]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",pg,[e.createElementVNode("div",null,e.toDisplayString((Aa=(ya=l.report)==null?void 0:ya.weather)!=null&&Aa.noExtrapolation?(Ta=(ma=o==null?void 0:o.goodWx)==null?void 0:ma.inEca)==null?void 0:Ta.distance:(za=(Va=o==null?void 0:o.allWx)==null?void 0:Va.inEca)==null?void 0:za.distance)+" * "+e.toDisplayString((xa=(pa=o==null?void 0:o.fuelConclusion)==null?void 0:pa.fo)==null?void 0:xa.saving),1),t[203]||(t[203]=e.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ua=(ja=l.report)==null?void 0:ja.weather)!=null&&Ua.noExtrapolation?(ka=o==null?void 0:o.goodWx)==null?void 0:ka.distance:(Sa=o==null?void 0:o.allWx)==null?void 0:Sa.distance),1)]),t[206]||(t[206]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Oa=(Ca=o==null?void 0:o.fuelConclusion)==null?void 0:Ca.fo)==null?void 0:Oa.foSavingInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((fa=(Ya=o==null?void 0:o.fuelConclusion)==null?void 0:Ya.fo)==null?void 0:fa.conclusionStatus)==="Over"?"flex-center lost":((Qa=(ba=o==null?void 0:o.fuelConclusion)==null?void 0:ba.fo)==null?void 0:Qa.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[207]||(t[207]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((ha=(Ra=o==null?void 0:o.fuelConclusion)==null?void 0:Ra.fo)==null?void 0:ha.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",xg,e.toDisplayString(N.noGoodWxDay),1)),((Ba=(wa=o==null?void 0:o.extend)==null?void 0:wa.cp)==null?void 0:Ba.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",jg,[e.createElementVNode("div",Ug,[t[208]||(t[208]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",kg,"Seg. "+e.toDisplayString(F+1)+" Diesel/Gas Oil",1)])]),(Fa=o==null?void 0:o.goodWx)!=null&&Fa.distance?(e.openBlock(),e.createElementBlock("div",Sg,[e.createElementVNode("div",Cg,[t[215]||(t[215]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Og,[e.createElementVNode("div",Yg,[e.createElementVNode("div",null,e.toDisplayString((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?(Wa=o==null?void 0:o.goodWx)==null?void 0:Wa.distance:(La=o==null?void 0:o.allWx)==null?void 0:La.distance),1),t[209]||(t[209]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Za=o==null?void 0:o.goodWx)==null?void 0:Za.pfmSpd),1)]),t[212]||(t[212]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",fg,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((_a=o==null?void 0:o.goodWx)==null?void 0:_a.sumDgoCons),1),((Ha=(Ja=o==null?void 0:o.goodWx)==null?void 0:Ja.inEca)==null?void 0:Ha.distance)>0?(e.openBlock(),e.createElementBlock("span",bg,[t[210]||(t[210]=e.createElementVNode("span",null," - ",-1)),e.createElementVNode("span",null,e.toDisplayString((Ka=(Xa=o==null?void 0:o.fuelConclusion)==null?void 0:Xa.fo)==null?void 0:Ka.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[211]||(t[211]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((qa=o==null?void 0:o.goodWx)==null?void 0:qa.time),1)]),t[213]||(t[213]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ua=($a=o.fuelConclusion)==null?void 0:$a.dgo)==null?void 0:ua.entireCons)+" (mt)",1),t[214]||(t[214]=e.createElementVNode("div",null,"(d'')",-1))])]),e.createElementVNode("div",Qg,[t[222]||(t[222]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Rg,[e.createElementVNode("div",hg,[e.createElementVNode("div",null,e.toDisplayString((ei=(va=l.report)==null?void 0:va.weather)!=null&&ei.noExtrapolation?(ti=o==null?void 0:o.goodWx)==null?void 0:ti.distance:(li=o==null?void 0:o.allWx)==null?void 0:li.distance),1),t[216]||(t[216]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((oi=o==null?void 0:o.timeConclusion)==null?void 0:oi.minusAbtSpd),1)]),t[219]||(t[219]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",wg,[e.createElementVNode("div",null,e.toDisplayString((ai=(ni=o==null?void 0:o.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ai.overTolerance),1),t[217]||(t[217]=e.createElementVNode("div",{class:"line"},null,-1)),t[218]||(t[218]=e.createElementVNode("div",null,"24",-1))]),t[220]||(t[220]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ni=(ii=o.fuelConclusion)==null?void 0:ii.dgo)==null?void 0:Ni.maxCons)+" (mt)",1),t[221]||(t[221]=e.createElementVNode("div",null,"(e'')",-1))])]),e.createElementVNode("div",Bg,[t[229]||(t[229]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Fg,[e.createElementVNode("div",Gg,[e.createElementVNode("div",null,e.toDisplayString((di=(si=l.report)==null?void 0:si.weather)!=null&&di.noExtrapolation?(ri=o==null?void 0:o.goodWx)==null?void 0:ri.distance:(ci=o==null?void 0:o.allWx)==null?void 0:ci.distance),1),t[223]||(t[223]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Mi=o==null?void 0:o.timeConclusion)==null?void 0:Mi.plusAbtSpd),1)]),t[226]||(t[226]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",Pg,[e.createElementVNode("div",null,e.toDisplayString((gi=(Di=o==null?void 0:o.fuelConclusion)==null?void 0:Di.dgo)==null?void 0:gi.underTolerance),1),t[224]||(t[224]=e.createElementVNode("div",{class:"line"},null,-1)),t[225]||(t[225]=e.createElementVNode("div",null,"24",-1))]),t[227]||(t[227]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ei=(Ii=o.fuelConclusion)==null?void 0:Ii.dgo)==null?void 0:Ei.minCons)+" (mt)",1),t[228]||(t[228]=e.createElementVNode("div",null,"(f'')",-1))])]),e.createElementVNode("div",Wg,[((Ai=(yi=o==null?void 0:o.fuelConclusion)==null?void 0:yi.dgo)==null?void 0:Ai.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",Lg,[t[230]||(t[230]=e.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),t[231]||(t[231]=e.createElementVNode("div",null,"=",-1)),t[232]||(t[232]=e.createElementVNode("div",null,"(d'') - (e'')",-1)),t[233]||(t[233]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ti=(mi=o==null?void 0:o.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Ti.entireCons),1),t[234]||(t[234]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((zi=(Vi=o==null?void 0:o.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:zi.maxCons),1),t[235]||(t[235]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xi=(pi=o==null?void 0:o.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:xi.overCons),1)])):((Ui=(ji=o==null?void 0:o.fuelConclusion)==null?void 0:ji.dgo)==null?void 0:Ui.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",Zg,[t[236]||(t[236]=e.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),t[237]||(t[237]=e.createElementVNode("div",null,"=",-1)),t[238]||(t[238]=e.createElementVNode("div",null,"(f'') - (d'')",-1)),t[239]||(t[239]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Si=(ki=o==null?void 0:o.fuelConclusion)==null?void 0:ki.dgo)==null?void 0:Si.minCons),1),t[240]||(t[240]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Oi=(Ci=o==null?void 0:o.fuelConclusion)==null?void 0:Ci.dgo)==null?void 0:Oi.entireCons),1),t[241]||(t[241]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((fi=(Yi=o==null?void 0:o.fuelConclusion)==null?void 0:Yi.dgo)==null?void 0:fi.saving)+" (mt)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Qi=(bi=o==null?void 0:o.fuelConclusion)==null?void 0:bi.dgo)==null?void 0:Qi.conclusionStatus)==="Over"?"flex-center lost":((hi=(Ri=o==null?void 0:o.fuelConclusion)==null?void 0:Ri.dgo)==null?void 0:hi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[242]||(t[242]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((Bi=(wi=o==null?void 0:o.fuelConclusion)==null?void 0:wi.dgo)==null?void 0:Bi.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",_g,e.toDisplayString(N.noGoodWxDay),1))],64)):e.createCommentVNode("",!0)])])}),128))])])}const Hg=Ql(Yr,[["render",Jg],["__scopeId","data-v-9f3f41e0"]]),jj="",Xg={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(n){if(n.type==="BOSP")return"";{const t=[];return t.push(n.noonLength?"no-border-bottom":"no-border"),t.push(n.excluded?"excluded":n.goodWx?"good-wx":""),t.join(" ")}}},computeWxColspan(){let n=12;return this.showCF||(n-=2),this.showAisDistance||(n-=2),this.showWave||(n-=1),this.showSwell||(n-=1),this.showSig||(n-=1),this.showWaterTemp||(n-=1),n},computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeLng(){return function(n){return Q.LngLatHelper.lng2pretty(n)}},computeLat(){return function(n){return Q.LngLatHelper.lat2pretty(n)}},computePrecision(){return function(n,t=2,l="0.0"){return n?Q.LngLatHelper.roundPrecision(n,t):l}}},watch:{report:{handler(n,t){n!=null&&n.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var n,t,l,r,N,i,I,s,d,V,m,T;this.showCF=((t=(n=this.report)==null?void 0:n.weather)==null?void 0:t.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((i=(N=this.report)==null?void 0:N.weather)==null?void 0:i.showSig)??!0,this.showSwell=((s=(I=this.report)==null?void 0:I.weather)==null?void 0:s.showSwell)??!0,this.showWave=((V=(d=this.report)==null?void 0:d.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((T=(m=this.report)==null?void 0:m.weather)==null?void 0:T.waterTempSwitch)||!1}}},Kg={class:"report-inventory"},qg={class:"section summary-section"},$g={class:"summary-block"},ug={class:"label",rowspan:"4"},vg={class:"section inventory-section"},eI={class:"inventory-block flex-center"},tI=["colspan"],lI={key:0,class:"label",colspan:"2"},oI={key:0,class:"label",rowspan:"2"},nI={key:1,class:"label",rowspan:"2"},aI={key:2,class:"label",rowspan:"2"},iI={key:3,class:"label",colspan:"2"},NI={key:4,class:"label",rowspan:"2"},sI={key:5,class:"label",colspan:"2"},dI={key:6,class:"label",rowspan:"2"},rI={key:7,class:"label",rowspan:"2"},cI={key:8,class:"label",rowspan:"2"},MI={key:0,class:"label"},DI={key:1,class:"label"},gI={key:2,class:"label"},II={key:3,class:"label"},EI={class:"summary-tbody"};function yI(n,t,l,r,N,i){var I;return e.openBlock(),e.createElementBlock("div",Kg,[e.createElementVNode("div",qg,[t[5]||(t[5]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Speed and Weather Analysis")])],-1)),e.createElementVNode("div",$g,[e.createElementVNode("table",null,[t[4]||(t[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),e.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Distance"),e.createElementVNode("div",{class:"text-units"},"(nm)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Time"),e.createElementVNode("div",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Average Speed"),e.createElementVNode("div",{class:"text-units"},"(kts)")]),e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Total Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")])]),e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label"},"FO"),e.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((I=l.report)==null?void 0:I.segments,(s,d)=>{var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P;return e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createElementVNode("tr",null,[e.createElementVNode("td",ug,e.toDisplayString(d+1),1),t[0]||(t[0]=e.createElementVNode("td",{class:"label"},"Entire Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((V=s==null?void 0:s.allWx)==null?void 0:V.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((m=s==null?void 0:s.allWx)==null?void 0:m.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((T=s==null?void 0:s.allWx)==null?void 0:T.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((k=s==null?void 0:s.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((j=s==null?void 0:s.allWx)==null?void 0:j.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[1]||(t[1]=e.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((y=s==null?void 0:s.goodWx)==null?void 0:y.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((z=s==null?void 0:s.goodWx)==null?void 0:z.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((C=s==null?void 0:s.goodWx)==null?void 0:C.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((E=s==null?void 0:s.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((p=s==null?void 0:s.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[2]||(t[2]=e.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((S=s==null?void 0:s.badWx)==null?void 0:S.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((O=s==null?void 0:s.badWx)==null?void 0:O.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((D=s==null?void 0:s.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((Y=s==null?void 0:s.badWx)==null?void 0:Y.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((f=s==null?void 0:s.badWx)==null?void 0:f.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("td",{class:"label"},"Excluded Period",-1)),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((b=s==null?void 0:s.excluded)==null?void 0:b.sumDistance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((h=s==null?void 0:s.excluded)==null?void 0:h.sumDuration,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((w=s==null?void 0:s.excluded)==null?void 0:w.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((B=s==null?void 0:s.excluded)==null?void 0:B.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(i.computePrecision((P=s==null?void 0:s.excluded)==null?void 0:P.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),e.createElementVNode("div",vg,[t[44]||(t[44]=e.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-272ebecb><div class="flex-start" data-v-272ebecb><div class="legend good-wx" data-v-272ebecb></div><div class="label flex-end" data-v-272ebecb>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-272ebecb><div class="legend adverse-wx" data-v-272ebecb></div><div class="label" data-v-272ebecb>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-272ebecb><div class="legend excluded" data-v-272ebecb></div><div class="label" data-v-272ebecb>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-272ebecb><label data-v-272ebecb>B</label><div data-v-272ebecb>BOSP</div><label data-v-272ebecb>N</label><div data-v-272ebecb>NOON</div><label data-v-272ebecb>E</label><div data-v-272ebecb>EOSP</div><label data-v-272ebecb>*</label><div data-v-272ebecb>Ship Reported Position</div></div></div><div class="text-tips text-right" style="font-size:12px;padding-bottom:8px;" data-v-272ebecb> The 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),e.createElementVNode("div",eI,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[6]||(t[6]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),t[7]||(t[7]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),t[9]||(t[9]=e.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),e.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,tI),l.showFactor?(e.openBlock(),e.createElementBlock("th",lI,"Factor")):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),t[11]||(t[11]=e.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),e.createElementVNode("tr",null,[t[16]||(t[16]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),t[17]||(t[17]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),t[18]||(t[18]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[19]||(t[19]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Daily Cons. "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),N.showAisDistance?(e.openBlock(),e.createElementBlock("th",oI,[...t[12]||(t[12]=[e.createTextVNode("Spd",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),N.showAisDistance?(e.openBlock(),e.createElementBlock("th",nI,[...t[13]||(t[13]=[e.createTextVNode("Dis",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):e.createCommentVNode("",!0),t[20]||(t[20]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),N.showWave?(e.openBlock(),e.createElementBlock("th",aI,[...t[14]||(t[14]=[e.createTextVNode("Sea HT",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("th",iI,"Swell")):e.createCommentVNode("",!0),N.showSig?(e.openBlock(),e.createElementBlock("th",NI,[...t[15]||(t[15]=[e.createTextVNode("Sig Wave",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",sI,"Current")):e.createCommentVNode("",!0),t[21]||(t[21]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Avg. CF"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(e.openBlock(),e.createElementBlock("th",dI,"cFactor")):e.createCommentVNode("",!0),l.showFactor?(e.openBlock(),e.createElementBlock("th",rI,"wxFactor")):e.createCommentVNode("",!0),N.showWaterTemp?(e.openBlock(),e.createElementBlock("th",cI,"Water Temp.")):e.createCommentVNode("",!0),t[22]||(t[22]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[23]||(t[23]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Time"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[24]||(t[24]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Dis"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),t[26]||(t[26]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("BROB "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("DailyCons "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),t[29]||(t[29]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode(" Sea HT"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[33]||(t[33]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[34]||(t[34]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[35]||(t[35]=e.createElementVNode("th",{class:"label"},"BF",-1)),N.showSwell?(e.openBlock(),e.createElementBlock("th",MI,"Dir")):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("th",DI,[...t[30]||(t[30]=[e.createTextVNode("HT ",-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",gI,"Dir")):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("th",II,[...t[31]||(t[31]=[e.createTextVNode("CF ",-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),t[36]||(t[36]=e.createElementVNode("th",{class:"label"},"RPM",-1)),t[37]||(t[37]=e.createElementVNode("th",{class:"label"},[e.createTextVNode("Slip "),e.createElementVNode("span",{class:"text-units"},"(%)")],-1)),t[38]||(t[38]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[39]||(t[39]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[40]||(t[40]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[41]||(t[41]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[42]||(t[42]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[43]||(t[43]=e.createElementVNode("th",{class:"label"},"BF",-1))])]),e.createElementVNode("tbody",EI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.inventory,(s,d)=>{var V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_;return e.openBlock(),e.createElementBlock("tr",{key:d},[e.createElementVNode("td",{class:e.normalizeClass(s.segLength?"no-border-bottom":"no-border")},e.toDisplayString(s.segLength?s.seg:""),3),e.createElementVNode("td",{class:e.normalizeClass(["text-right",s.excluded?"excluded":s.goodWx?"good-wx":""])},e.toDisplayString(s.time),3),["B","E"].includes(s.abbrev)&&((V=s.noon)!=null&&V.port)?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},e.toDisplayString((m=s.noon)==null?void 0:m.port),3)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s._lat.pretty),3),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s._lng.pretty),3)],64)),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.speed:""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.fo:""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.cp.dgo:""),3),N.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.avgSpdCalc:""),3)):e.createCommentVNode("",!0),N.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:3,class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.distanceCalc:""),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((k=(T=s.meteo)==null?void 0:T.wind)==null?void 0:k.direction)??"-"),3),e.createElementVNode("td",{class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((y=(j=s.meteo)==null?void 0:j.wind)==null?void 0:y.scale)??"-"),3),N.showWave?(e.openBlock(),e.createElementBlock("td",{key:4,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((E=(C=(z=s.meteo)==null?void 0:z.wave)==null?void 0:C.wd)==null?void 0:E.height)??"-"),3)):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("td",{key:5,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((O=(S=(p=s.meteo)==null?void 0:p.wave)==null?void 0:S.swell)==null?void 0:O.direction)??"-"),3)):e.createCommentVNode("",!0),N.showSwell?(e.openBlock(),e.createElementBlock("td",{key:6,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((f=(Y=(D=s.meteo)==null?void 0:D.wave)==null?void 0:Y.swell)==null?void 0:f.height)??"-"),3)):e.createCommentVNode("",!0),N.showSig?(e.openBlock(),e.createElementBlock("td",{key:7,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((w=(h=(b=s.meteo)==null?void 0:b.wave)==null?void 0:h.sig)==null?void 0:w.height)??"-"),3)):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("td",{key:8,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((P=(B=s.meteo)==null?void 0:B.current)==null?void 0:P.direction)??"-"),3)):e.createCommentVNode("",!0),N.showCF?(e.openBlock(),e.createElementBlock("td",{key:9,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(s.type==="BOSP"?"-":((W=s.meteo)==null?void 0:W.cFactor)??"-"),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.dailyAvgCf:""),3),l.showFactor?(e.openBlock(),e.createElementBlock("td",{key:10,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(((L=s.meteo)==null?void 0:L.cFactor)??"--"),3)):e.createCommentVNode("",!0),l.showFactor?(e.openBlock(),e.createElementBlock("td",{key:11,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(((Z=s.meteo)==null?void 0:Z.wxFactor)??"--"),3)):e.createCommentVNode("",!0),N.showWaterTemp?(e.openBlock(),e.createElementBlock("td",{key:12,class:e.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},e.toDisplayString(i.computePrecision((_=s.meteo)==null?void 0:_.sst,2,"--")),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.avgSpd||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.timeSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.distanceSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.rpm||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.slip||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.foBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.dgoBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.foCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.dgoCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.windDir||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.windBF||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.noon.seasHt||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(i.computeTDClass(s))},e.toDisplayString(!["A","B"].includes(s.abbrev)&&d?s.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])])}const AI=Ql(Xg,[["render",yI],["__scopeId","data-v-272ebecb"]]),Uj="",mI={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(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computePosition(){return function(n){return!n||n.lng===null||n.lng===void 0||isNaN(n.lng)||n.lat===null||n.lat===void 0||isNaN(n.lat)?"-":Q.LngLatHelper.lat2pretty(n==null?void 0:n.lat,2).pretty+", "+Q.LngLatHelper.lng2pretty(n==null?void 0:n.lng,2).pretty}}},watch:{inventory:{handler(n,t){n!=null&&n.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=e.markRaw(qi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=e.markRaw(qi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=e.markRaw(qi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var T,k,j,y,z,C;let n=[];const t=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let N=0,i=0;const I=this.inventory.filter(E=>E.noon)||[],s=[];this.inventory.forEach((E,p)=>{var S,O;p===0&&s.push(E.utc),E.type==="EOSP"&&((S=this.inventory[p+1])==null?void 0:S.type)==="BOSP"&&(s.push(E.utc),s.push((O=this.inventory[p+1])==null?void 0:O.utc)),p===this.inventory.length-1&&s.push(E.utc)}),s.forEach((E,p)=>{if(p%2===0){const S=Ne(s[p+1]).diff(Ne(s[p]),"minute",!0);for(let O=0;O<=S+1;O++)t.push(this.computeUTCTime(Ne(s[p]).clone().utc().add(O,"m").format(),"MM-DD/HHmm[Z]"))}}),I.forEach((E,p)=>{var O,D,Y,f,b,h,w,B,P,W,L,Z,_,J;const S=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!n.some(o=>o.slice(0,5)===E.utc.slice(5,10))&&n.push(S),p===I.length-1&&(n=n.filter(o=>o.slice(0,5)!==E.utc.slice(5,10)),n.push(S)),N=Math.ceil(((O=E.noon)==null?void 0:O.foCons)>N?(D=E.noon)==null?void 0:D.foCons:N),N=Math.ceil(((Y=E.cp)==null?void 0:Y.fo)>N?(f=E.cp)==null?void 0:f.fo:N),i=Math.ceil(((b=E.noon)==null?void 0:b.dgoCons)>i?(h=E.noon)==null?void 0:h.dgoCons:i),i=Math.ceil(((w=E.cp)==null?void 0:w.dgo)>i?(B=E.cp)==null?void 0:B.dgo:i),l.push([S,(P=E.noon)==null?void 0:P.avgSpd,(W=E.noon)==null?void 0:W.foCons,(L=E.noon)==null?void 0:L.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<I.length-1){const o=I[p+1];l.push([S,(Z=o.noon)==null?void 0:Z.avgSpd,(_=o.noon)==null?void 0:_.foCons,(J=o.noon)==null?void 0:J.dgoCons,o.avgSpdCalc,o.cp.speed,o.goodWx&&!o.excluded?100:0,o.cp.dgo,o.cp.fo,o.excluded?100:0])}});const d=Math.ceil(n.length/10);n=n.filter((E,p)=>p===0||p===n.length-1||p%d===0);const V={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:t,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,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:N+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:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(T=this.report)==null?void 0:T.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(j=this.spdFoConsChart)==null||j.setOption(V);const m={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:t,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,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:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(z=(y=this.report)==null?void 0:y.weather)!=null&&z.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(C=this.spdDgoConsChart)==null||C.setOption(m)},renderWxCurrChart(){var j;let n=[];const t=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let N=4;const i=this.inventory||[],I=[];i.forEach((y,z)=>{var C,E;z===0&&I.push(y.utc),y.type==="EOSP"&&((C=i[z+1])==null?void 0:C.type)==="BOSP"&&(I.push(y.utc),I.push((E=i[z+1])==null?void 0:E.utc)),z===i.length-1&&I.push(y.utc)}),I.forEach((y,z)=>{if(z%2===0){const C=Ne(I[z+1]).diff(Ne(I[z]),"minute",!0);for(let E=0;E<=C+1;E++)t.push(this.computeUTCTime(Ne(I[z]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,z)=>{var E,p,S,O,D,Y,f,b,h,w,B,P,W,L,Z,_,J,o,F,H,X,K,q,$,u,v,ee,te,le,oe;const C=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!n.some(G=>G.slice(0,5)===y.utc.slice(5,10))&&n.push(C),z===i.length-1&&(n=n.filter(G=>G.slice(0,5)!==y.utc.slice(5,10)),n.push(C)),N=Math.ceil(((S=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:S.height)>N?(Y=(D=(O=y.meteo)==null?void 0:O.wave)==null?void 0:D.sig)==null?void 0:Y.height:N),l.push([C,((f=y.noon)==null?void 0:f.windBF)||((h=(b=y.meteo)==null?void 0:b.wind)==null?void 0:h.scale),(B=(w=y.meteo)==null?void 0:w.wind)==null?void 0:B.scale,(W=(P=y.meteo)==null?void 0:P.wind)==null?void 0:W.direction,(L=y.noon)==null?void 0:L.seasHt,(J=(_=(Z=y.meteo)==null?void 0:Z.wave)==null?void 0:_.sig)==null?void 0:J.height,y.dailyAvgCf??((o=l[l.length-1])==null?void 0:o[r.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),z<i.length-1){const G=i[z+1];l.push([C,((F=y.noon)==null?void 0:F.windBF)||((X=(H=y.meteo)==null?void 0:H.wind)==null?void 0:X.scale),(q=(K=G.meteo)==null?void 0:K.wind)==null?void 0:q.scale,(u=($=G.meteo)==null?void 0:$.wind)==null?void 0:u.direction,(v=G.noon)==null?void 0:v.seasHt,(le=(te=(ee=y.meteo)==null?void 0:ee.wave)==null?void 0:te.sig)==null?void 0:le.height,G.dailyAvgCf??((oe=l[l.length-1])==null?void 0:oe[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const s=Math.ceil(n.length/10);n=n.filter((y,z)=>z===0||z===n.length-1||z%s===0);let d=-2.5,V=2.5,m=1,T=5;d<-2.5||V>2.5?(d=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,m=Math.ceil(Math.max([Math.abs(d),Math.abs(V)])/5),T=Math.ceil(Math.abs(d)/m)+Math.ceil(Math.abs(V)/m)):(m=.5,d=Math.floor(this.findMinValue(l,6)/.5)*m,V=2.5,T=Math.abs(d)/m+5);const k={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:t,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:n},axisLabel:{interval:"auto",customValues:n,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:d,max:V,interval:m,splitNumber:T,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(T-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:T,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,z)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(T-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:T,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,z)=>{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:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(j=this.currChart)==null||j.setOption(k)},findMaxValue(n,t){let l=-1/0;for(let r=0;r<n.length;r++){const N=n[r];if(N.length>=t+1){const i=N[t];typeof i=="number"&&!isNaN(i)&&Number(i)>l&&(l=i)}}return l},findMinValue(n,t){let l=1/0;for(let r=0;r<n.length;r++){const N=n[r];if(N.length>=t+1){const i=N[t];i<l&&(l=i)}}return l}}},TI={class:"report-summary"},VI={class:"section chart-section"},zI={class:"chart-block"},pI={ref:"spdFoConsChart",class:"chart"},xI={ref:"spdDgoConsChart",class:"chart"},jI={ref:"currChart",class:"chart"},UI={class:"section map-section"},kI={class:"map-block"},SI={class:"flex-space"},CI={class:"voyage-block bg-blue-light"},OI={class:"flex-space label-block",style:{width:"100%"}},YI={style:{"text-transform":"uppercase"}},fI={class:"flex-space label-block",style:{width:"100%"}},bI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},QI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},RI={class:"flex-space label-block",style:{width:"100%"}},hI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},wI={class:"flex-space label-block",style:{width:"100%"}},BI={key:0,class:"flex-end",style:{flex:"1"}},FI={key:1,class:"flex-end",style:{flex:"1"}},GI={class:"flex-end",style:{width:"160px"}},PI={class:"flex-space label-block",style:{width:"100%"}},WI={key:0,class:"flex-end",style:{flex:"1"}},LI={key:1,class:"flex-end",style:{flex:"1"}},ZI={class:"flex-end",style:{width:"160px"}},_I={class:"flex-space label-block",style:{width:"100%"}},JI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},HI=["src"];function XI(n,t,l,r,N,i){var I,s,d,V,m,T,k,j,y,z,C,E,p,S,O,D,Y,f,b,h,w,B;return e.openBlock(),e.createElementBlock("div",TI,[e.createElementVNode("div",VI,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-shuju"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),e.createElementVNode("div",zI,[e.createElementVNode("div",pI,null,512),e.createElementVNode("div",xI,null,512),e.createElementVNode("div",jI,null,512)])]),e.createElementVNode("div",UI,[t[8]||(t[8]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-line-light"}),e.createElementVNode("div",{class:"title"},"Voyage Map")])],-1)),e.createElementVNode("div",kI,[e.createElementVNode("div",SI,[e.createElementVNode("div",CI,[e.createElementVNode("div",OI,[t[1]||(t[1]=e.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),e.createElementVNode("span",YI,e.toDisplayString(l.report.preparedFor),1)]),e.createElementVNode("div",fI,[t[2]||(t[2]=e.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),e.createElementVNode("span",bI,e.toDisplayString((s=(I=l.report)==null?void 0:I.vessel)==null?void 0:s.name),1),e.createElementVNode("span",QI,"("+e.toDisplayString((V=(d=l.report)==null?void 0:d.vessel)==null?void 0:V.type)+")",1)]),e.createElementVNode("div",RI,[t[3]||(t[3]=e.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),e.createElementVNode("span",hI,e.toDisplayString((T=(m=l.report)==null?void 0:m.voyage)==null?void 0:T.number),1)]),e.createElementVNode("div",wI,[t[4]||(t[4]=e.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(j=(k=l.report)==null?void 0:k.departure)!=null&&j.portName?(e.openBlock(),e.createElementBlock("span",BI,e.toDisplayString((z=(y=l.report)==null?void 0:y.departure)==null?void 0:z.portName),1)):(e.openBlock(),e.createElementBlock("div",FI,e.toDisplayString(i.computePosition((C=l.report)==null?void 0:C.departure)),1)),e.createElementVNode("span",GI,e.toDisplayString(i.computeUTCTime((E=l.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",PI,[t[5]||(t[5]=e.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(S=(p=l.report)==null?void 0:p.arrival)!=null&&S.portName?(e.openBlock(),e.createElementBlock("span",WI,e.toDisplayString((D=(O=l.report)==null?void 0:O.arrival)==null?void 0:D.portName),1)):(e.openBlock(),e.createElementBlock("div",LI,e.toDisplayString(i.computePosition((Y=l.report)==null?void 0:Y.arrival)),1)),e.createElementVNode("span",ZI,e.toDisplayString(i.computeUTCTime((b=(f=l.report)==null?void 0:f.arrival)==null?void 0:b.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",_I,[t[6]||(t[6]=e.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),e.createElementVNode("span",JI,e.toDisplayString((w=(h=l.report)==null?void 0:h.voyage)==null?void 0:w.loadCondition),1)])]),t[7]||(t[7]=e.createStaticVNode('<div class="legend-block" data-v-f6e8f936><div data-v-f6e8f936>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>0812</div><div data-v-f6e8f936><div data-v-f6e8f936>08 - Day of the month</div><div data-v-f6e8f936>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-f6e8f936></i></div><div data-v-f6e8f936><div data-v-f6e8f936>Wind from N (000)</div><div data-v-f6e8f936>Each bard = 10 kts</div><div data-v-f6e8f936>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>W 4</div><div data-v-f6e8f936>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div class="good-wx" data-v-f6e8f936>Date</div><div data-v-f6e8f936>Good weather days</div></div></div>',1))]),e.createElementVNode("img",{src:(B=l.report)==null?void 0:B.chartUrl,alt:""},null,8,HI)])]),t[9]||(t[9]=e.createStaticVNode('<div class="section method-section" data-v-f6e8f936><div class="header-block" data-v-f6e8f936><div class="bg-block" data-v-f6e8f936><i class="iconfont icon-baobiao" data-v-f6e8f936></i><div class="title" data-v-f6e8f936>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>1. Good Weather Method</div><div class="method-body" data-v-f6e8f936> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-f6e8f936> The vessel'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-f6e8f936> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>4. “About”</div><div class="method-body" data-v-f6e8f936> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>6. Further reference materials</div><div class="method-body" data-v-f6e8f936>Please send mail to <a href="mailto:op@ormwx.com" data-v-f6e8f936>op@ormwx.com</a>.</div></div></div></div>',1))])}const KI=Ql(mI,[["render",XI],["__scopeId","data-v-f6e8f936"]]),kj="",Sj="",qI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(n,t="MMM-DD/HHmm[Z]"){return`${Ne(n).utc().format(t)}`}},computeBlankHtml(){return function(n){return!(n!=null&&n.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(n,t){n.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const n=this.voyageEmails.sort((t,l)=>t.date<l.date);n==null||n.forEach((t,l)=>{var d,V;let r="<div>";t.to.includes("op@ormwx.com")||t.source==="VRT"?(((V=(d=t.body)==null?void 0:d.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(T=>{const k=`<p>${T}</p>`;r=r+k}),r=r+"</div>"):r=t.body;const N=document.getElementById("col1"),i=document.getElementById("col2"),I=(N==null?void 0:N.offsetHeight)||0,s=(i==null?void 0:i.offsetHeight)||0;if(I<=s){let T=`<div class="${t.to.includes("op@ormwx.com")||t.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: ${t.date}</div>
|
|
3
3
|
<div class="vrpt-from">From: ${t.from}</div>
|
|
4
4
|
<div class="vrpt-to">To: ${t.to}</div>
|