@idmui/extend 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(mt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(mt=typeof globalThis<"u"?globalThis:mt||self,t(mt["idmui-extend"]={},mt.Vue,mt["@wangeditor/editor-for-vue"],mt["@idmui/basic"],mt.moment,mt.echarts,mt["@idm-plugin/geo"],mt.axios,mt.MdEditorV3))})(this,function(mt,t,hi,za,Dt,ks,et,bi,Yi){"use strict";function Us(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Oi=Us(ks),k3="",pe=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},Ss={name:"IdmEditor",components:{Editor:hi.Editor,Toolbar:hi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cs={class:"editor-box"};function Os(o,e,l,N,n,d){const m=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cs,[t.withDirectives(t.createVNode(m,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=pe(Ss,[["render",Os],["__scopeId","data-v-80104052"]]),bs={install(o){o.component("IdmEditor",cl)}},U3="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,fs=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qs=fs;const S3="",ws={name:"PlanReport",components:{Editor:cl,IdmBrand:za.IdmBrand,IdmLoading:za.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=et.LngLatHelper.guessTimeZoneOffset(e,l)),`${Dt(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,d,m;if(e===0)return"-";{const r=Dt((n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.eta).diff(Dt((m=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:m.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,d,m,r,c;if(e===0)return"-";{const y=Number((d=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((c=(r=(m=o==null?void 0:o.speeds)==null?void 0:m[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(y/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const l=[];for(let N=0;N<(e==null?void 0:e.length);N++){const n=e[N],d=e[N-1];d&&(n.avgBearing=d.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,m,r,c;const l=(c=(r=(m=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:m.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(Dt(n==null?void 0:n.eta).diff(Dt(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,N;let e=0;return(N=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||N.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":et.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>et.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>et.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,d,m,r,c,y,a,g,j,p,E,T,k,I,V,z;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((r=(m=this.weatherPrinciple)==null?void 0:m.dangerous)==null?void 0:r.wind)?e="bg-danger":(y=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&y.wind&&((g=(a=o.meteo)==null?void 0:a.wind)==null?void 0:g.scale)>((p=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:p.wind)?e="bg-severe":(T=(E=this.weatherPrinciple)==null?void 0:E.heavy)!=null&&T.wind&&((I=(k=o.meteo)==null?void 0:k.wind)==null?void 0:I.scale)===((z=(V=this.weatherPrinciple)==null?void 0:V.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,d,m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((m=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:m.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(y=this.weatherPrinciple)==null?void 0:y.severe)!=null&&a.sigWv&&((p=(j=(g=o.meteo)==null?void 0:g.wave)==null?void 0:j.sig)==null?void 0:p.height)>=((T=(E=this.weatherPrinciple)==null?void 0:E.severe)==null?void 0:T.sigWv)?e="bg-severe":(I=(k=this.weatherPrinciple)==null?void 0:k.heavy)!=null&&I.sigWv&&((U=(z=(V=o.meteo)==null?void 0:V.wave)==null?void 0:z.sig)==null?void 0:U.height)>=((R=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:R.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Oi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var I,V,z,U,D,R,F;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(R=(D=(U=(z=(V=(I=this.plan)==null?void 0:I.speeds)==null?void 0:V[this.speedIndex])==null?void 0:z.speed)==null?void 0:U.sample)==null?void 0:D.hours)==null||R.forEach(S=>{var W,L,Z,$,u,v,tt,lt,G,rt;const Q=S.meteo;if(Q){const Nt=Dt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(Nt),N=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>N?($=(Z=Q.wave)==null?void 0:Z.sig)==null?void 0:$.height:N),e.push([Nt,(u=Q.wind)==null?void 0:u.kts,(tt=(v=Q.wave)==null?void 0:v.sig)==null?void 0:tt.height,(lt=Q.wind)==null?void 0:lt.direction,(G=Q.wind)==null?void 0:G.degree,(rt=Q.wind)==null?void 0:rt.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),d=Math.max(...e.map(S=>S[l.windSpeed])),m=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,y=Math.ceil(d/5/5)*5,a=Math.ceil(N/5/.5)*.5,g=Math.ceil((r-m)/5/.5)*.5,j=5*c,p=5*y,E=5*a,T=m+5*g,k={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:p,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:E,splitNumber:5,interval:a,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:m,max:T,splitNumber:5,interval:g,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,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:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(F=this.echart)==null||F.setOption(k)}}},Rs={class:"orm-plan-report"},Bs={key:0,class:"loading-block"},Fs={class:"info-block"},Gs={class:"col"},Ps={class:"label-block"},Ws={class:"text"},Ls={class:"label-block"},Zs={class:"text"},_s={key:0},Js={class:"label-block"},Hs={class:"text"},Xs={class:"col"},Ks={class:"label-block"},qs={key:0},$s={key:1},us={style:{"margin-left":"16px"}},vs={class:"label-block"},tr={key:0},er={key:1},ar={style:{"margin-left":"16px"}},lr={class:"label-block"},or={class:"text"},nr={class:"section chart-section"},ir={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dr={style:{"margin-right":"8px"}},sr=["src"],rr={class:"legends text-tips"},Nr={class:"legend"},cr={key:0,class:"legend"},Mr={key:1,class:"legend"},mr={key:1,class:"empty"},Dr={class:"section comparison-section"},gr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ir={key:0},Er=["rowspan"],yr={key:0},Ar={key:1},Tr={rowspan:"2"},Vr={rowspan:"2"},xr={key:0},pr={key:1},zr={rowspan:"1"},jr={key:0},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={rowspan:"2"},Cr={key:0},Or={key:0},br=["rowspan"],hr={key:0},Yr={rowspan:"1"},fr={key:0},Qr={key:0},wr={key:1},Rr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Br={key:0},Fr={class:"section waypoint-section"},Gr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Pr={class:"bg-block"},Wr={class:"block-title"},Lr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Zr=["onClick"],_r={class:"advisory bg-blue-light-2"},Jr=["innerHTML"],Hr={class:"major-waypoint"},Xr={class:"major-header bg-blue-light-2"},Kr={key:0,class:"cell-item flex"},qr={key:1,class:"cell-item flex"},$r={class:"major-body"},ur={class:"cell-item flex",style:{flex:"2.5"}},vr={key:0,class:"flex-center"},tN={key:1,class:"flex-center"},eN={key:0,style:{"margin-left":"3px"}},aN={class:"cell-item flex",style:{flex:"1.5"}},lN={key:0,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},dN={key:3,class:"cell-item flex nbsp"},sN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},MN={key:6,class:"cell-item flex offset"},mN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN=["colspan"],kN={key:0},UN={class:"flex-center"},SN={class:"degree-box"},CN={key:0},ON={key:2},bN={key:0},hN={class:"degree-box"},YN={key:0},fN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2},BN={class:"degree-box"},FN={key:0},GN={key:2};function PN(o,e,l,N,n,d){var a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft,w,_t,Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt,Jt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,dt,at,de,Ne,ce,Me,me,De,ge,st,Te,ze,je,ke,Ue,Se,Ce,Oe,be,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,ja,ka,Ua,Sa,Ca,Oa,ba,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl;const m=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),y=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Rs,[t.createVNode(m,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Bs,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=M=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Fs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ws,t.toDisplayString((p=(j=(g=l.plan)==null?void 0:g.voyage)==null?void 0:j.company)==null?void 0:p.name),1)]),t.createElementVNode("div",Ls,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Zs,[t.createTextVNode(t.toDisplayString((k=(T=(E=l.plan)==null?void 0:E.voyage)==null?void 0:T.vessel)==null?void 0:k.name)+" ",1),(U=(z=(V=(I=l.plan)==null?void 0:I.voyage)==null?void 0:V.vessel)==null?void 0:z.vesselType)!=null&&U.name?(t.openBlock(),t.createElementBlock("span",_s,"("+t.toDisplayString((S=(F=(R=(D=l.plan)==null?void 0:D.voyage)==null?void 0:R.vessel)==null?void 0:F.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Js,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Xs,[t.createElementVNode("div",Ks,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(v=(u=($=l.plan)==null?void 0:$.leg)==null?void 0:u.departure)!=null&&v.name?(t.openBlock(),t.createElementBlock("span",qs,t.toDisplayString((G=(lt=(tt=l.plan)==null?void 0:tt.leg)==null?void 0:lt.departure)==null?void 0:G.name),1)):(t.openBlock(),t.createElementBlock("span",$s,t.toDisplayString(d.computePosition((Nt=(rt=l.plan)==null?void 0:rt.leg)==null?void 0:Nt.departure)),1)),t.createElementVNode("span",us,t.toDisplayString(d.computeUTCTime(((Et=(It=(gt=l.plan)==null?void 0:gt.leg)==null?void 0:It.departure)==null?void 0:Et.atd)||((Tt=(At=(yt=l.plan)==null?void 0:yt.leg)==null?void 0:At.departure)==null?void 0:Tt.etd)||((Mt=(ct=(A=(Vt=l.plan)==null?void 0:Vt.speeds)==null?void 0:A[n.speedIndex])==null?void 0:ct.speed)==null?void 0:Mt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",vs,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(bt=(Ot=(_=l.plan)==null?void 0:_.leg)==null?void 0:Ot.destination)!=null&&bt.name?(t.openBlock(),t.createElementBlock("span",tr,t.toDisplayString((ft=(Yt=(ht=l.plan)==null?void 0:ht.leg)==null?void 0:Yt.destination)==null?void 0:ft.name),1)):(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString(d.computePosition((_t=(w=l.plan)==null?void 0:w.leg)==null?void 0:_t.destination)),1)),t.createElementVNode("span",ar,t.toDisplayString(d.computeUTCTime(((Qt=(x=(Zt=(Lt=l.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[n.speedIndex])==null?void 0:x.speed)==null?void 0:Qt.ata)||((Ft=(Bt=(Rt=(wt=l.plan)==null?void 0:wt.speeds)==null?void 0:Rt[n.speedIndex])==null?void 0:Bt.speed)==null?void 0:Ft.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",lr,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",or,t.toDisplayString((Wt=(Gt=l.plan)==null?void 0:Gt.voyage)==null?void 0:Wt.loadCondition),1)])])]),t.createElementVNode("div",nr,[t.createElementVNode("div",ir,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dr," FCST fr Pos. "+t.toDisplayString(d.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Jt=l.plan)==null?void 0:Jt.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,sr)]),t.createElementVNode("div",rr,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-c1569d5f><span class="dangerous" data-v-c1569d5f></span><span data-v-c1569d5f>Danger</span></div><div class="legend" data-v-c1569d5f><span class="severe" data-v-c1569d5f></span><span data-v-c1569d5f>Severe</span></div><div class="legend" data-v-c1569d5f><span class="heavy" data-v-c1569d5f></span><span data-v-c1569d5f>Heavy</span></div>',3)),t.createElementVNode("div",Nr,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=M=>{n.speedIndex=0,d.renderEchart()})},t.toDisplayString((oe=(le=(ae=(ee=(te=l.plan)==null?void 0:te.speeds)==null?void 0:ee[0])==null?void 0:ae.speed)==null?void 0:le.lane)==null?void 0:oe.name),1)]),((ie=(ne=l.plan)==null?void 0:ne.speeds)==null?void 0:ie.length)>1?(t.openBlock(),t.createElementBlock("div",cr,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=M=>{n.speedIndex=1,d.renderEchart()})},t.toDisplayString((Ne=(de=(at=(dt=(i=l.plan)==null?void 0:i.speeds)==null?void 0:dt[1])==null?void 0:at.speed)==null?void 0:de.lane)==null?void 0:Ne.name),1)])):t.createCommentVNode("",!0),((Me=(ce=l.plan)==null?void 0:ce.speeds)==null?void 0:Me.length)>2?(t.openBlock(),t.createElementBlock("div",Mr,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=M=>{n.speedIndex=2,d.renderEchart()})},t.toDisplayString((Te=(st=(ge=(De=(me=l.plan)==null?void 0:me.speeds)==null?void 0:De[2])==null?void 0:ge.speed)==null?void 0:st.lane)==null?void 0:Te.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...M)=>d.handleRefresh&&d.handleRefresh(...M))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Dr,[(je=(ze=l.plan)==null?void 0:ze.speeds)!=null&&je.length?(t.openBlock(),t.createElementBlock("table",gr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:d.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Er),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("th",Ar,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(d.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ke=l.plan)==null?void 0:ke.speeds,(M,Ct)=>{var se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt,Pt,Ie,Ee,xe;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ct},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tr,t.toDisplayString(Ct+1),1),t.createElementVNode("td",Vr,t.toDisplayString((re=(se=M.speed)==null?void 0:se.lane)==null?void 0:re.name),1),t.createElementVNode("td",null,[M.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",xr,t.toDisplayString(`CP ${((Ve=(ye=M.speed)==null?void 0:ye.cpCopy)==null?void 0:Ve.speed)??((Pe=M.speed)==null?void 0:Pe.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",pr,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Ze=(Le=(We=M.speed)==null?void 0:We.extend)==null?void 0:Le.cps[0])==null?void 0:Ze.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((He=(Je=(_e=M.speed)==null?void 0:_e.extend)==null?void 0:Je.cps[1])==null?void 0:He.speed),1)]))]),t.createElementVNode("td",zr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Xe=M.speed)==null?void 0:Xe.distance,0)),1),(qe=(Ke=M.speed)==null?void 0:Ke.extend)!=null&&qe.distanceInECA?(t.openBlock(),t.createElementBlock("span",jr," ("+t.toDisplayString(d.roundPrecision(M.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime(($e=M.speed)==null?void 0:$e.eta,(ta=(ve=(ue=l.plan)==null?void 0:ue.leg)==null?void 0:ve.destination)==null?void 0:ta.lng,(la=(aa=(ea=l.plan)==null?void 0:ea.leg)==null?void 0:aa.destination)==null?void 0:la.lat,(sa=(da=(ia=(na=(oa=l.plan)==null?void 0:oa.leg)==null?void 0:na.destination)==null?void 0:ia.port)==null?void 0:da.timezone)==null?void 0:sa.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((ra=M.speed)==null?void 0:ra.eta)),1)]),t.createElementVNode("td",kr,t.toDisplayString(d.computeSuspend(M.speed)),1),t.createElementVNode("td",Ur,t.toDisplayString(d.roundPrecision((Na=M.speed)==null?void 0:Na.totalFoCons,3)),1),t.createElementVNode("td",Sr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ca=M.speed)==null?void 0:ca.totalDgoCons,3)),1),(ma=(Ma=M.speed)==null?void 0:Ma.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Cr," + "+t.toDisplayString(d.roundPrecision((Da=M.speed.extend)==null?void 0:Da.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",Or,t.toDisplayString((Ea=d.roundPrecision(((Ia=(ga=M==null?void 0:M.speed)==null?void 0:ga.cost)==null?void 0:Ia.total)/1e3,2))==null?void 0:Ea.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,Ct)),9,br),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Aa=(ya=l.weatherPrinciple)==null?void 0:ya.dangerous)==null?void 0:Aa.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Va=(Ta=l.weatherPrinciple)==null?void 0:Ta.severe)==null?void 0:Va.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(pa=(xa=l.weatherPrinciple)==null?void 0:xa.heavy)==null?void 0:pa.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((s=M.speed)==null?void 0:s.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",hr,"FO: "+t.toDisplayString((O=(C=M.speed)==null?void 0:C.cpCopy)==null?void 0:O.fo)+" / DO: "+t.toDisplayString((h=(b=M.speed)==null?void 0:b.cpCopy)==null?void 0:h.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((f=(Y=M.speed)==null?void 0:Y.extend)==null?void 0:f.cps[0].fo)+" / "+t.toDisplayString((P=(B=M.speed)==null?void 0:B.extend)==null?void 0:P.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((H=(J=M.speed)==null?void 0:J.extend)==null?void 0:H.cps[0].dgo)+" / "+t.toDisplayString((K=(X=M.speed)==null?void 0:X.extend)==null?void 0:K.cps[1].dgo),1)],64))]),t.createElementVNode("td",Yr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((q=M.speed)==null?void 0:q.totalHrs,1)),1),(nt=(ot=M.speed)==null?void 0:ot.extend)!=null&&nt.hoursInECA?(t.openBlock(),t.createElementBlock("span",fr," ("+t.toDisplayString(d.roundPrecision(M.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((it=M.speed)==null?void 0:it.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((xt=M.speed)==null?void 0:xt.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((pt=M.speed)==null?void 0:pt.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(d.roundPrecision(((jt=(zt=M==null?void 0:M.speed)==null?void 0:zt.cost)==null?void 0:jt.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(d.roundPrecision(((Pt=(kt=M==null?void 0:M.speed)==null?void 0:kt.cost)==null?void 0:Pt.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",wr,t.toDisplayString(d.computeCostDiff(l.plan,Ct)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((Ie=M.speed)==null?void 0:Ie.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((Ee=M.speed)==null?void 0:Ee.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((xe=M.speed)==null?void 0:xe.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Rr,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),d.showCost?(t.openBlock(),t.createElementBlock("span",Br,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Ce=d.roundPrecision((Se=(Ue=l.plan)==null?void 0:Ue.voyage)==null?void 0:Se.dailyHire,0))==null?void 0:Ce.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((he=d.roundPrecision((be=(Oe=l.plan)==null?void 0:Oe.voyage)==null?void 0:be.priceFO,0))==null?void 0:he.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Qe=d.roundPrecision((fe=(Ye=l.plan)==null?void 0:Ye.voyage)==null?void 0:fe.priceDGO,0))==null?void 0:Qe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[t.createElementVNode("div",Pr,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Wr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Fe=(Be=(Re=(we=l.plan.speeds)==null?void 0:we[n.speedIndex])==null?void 0:Re.speed)==null?void 0:Be.lane)==null?void 0:Fe.name),1)]),((ja=(Ge=l.plan)==null?void 0:Ge.speeds)==null?void 0:ja.length)>1?(t.openBlock(),t.createElementBlock("div",Lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ka=l.plan)==null?void 0:ka.speeds,(M,Ct)=>{var se,re;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:t.normalizeClass(["route-item",n.speedIndex===Ct?"active":""]),onClick:ye=>{n.speedIndex=Ct,d.renderEchart()}},t.toDisplayString((re=(se=M.speed)==null?void 0:se.lane)==null?void 0:re.name),11,Zr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_r,[n.editable?(t.openBlock(),t.createBlock(y,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[5]||(e[5]=M=>n.advisory=M),class:"editor",height:"120px",onBlur:e[6]||(e[6]=M=>d.handleCommit(M))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...M)=>d.handleEdit&&d.handleEdit(...M)),innerHTML:n.advisory},null,40,Jr))]),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-c1569d5f>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-c1569d5f>Time</div><div class="cell-item flex" data-v-c1569d5f>Nav</div><div class="cell-item flex" data-v-c1569d5f>Dist <span class="text-units" data-v-c1569d5f>(nm)</span></div>',4)),(Sa=(Ua=l.plan)==null?void 0:Ua.voyage)!=null&&Sa.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Oa=(Ca=l.plan)==null?void 0:Ca.voyage)!=null&&Oa.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",qr,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",$r,[(ha=(ba=l.plan)==null?void 0:ba.speeds)!=null&&ha.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((wa=(Qa=(fa=(Ya=l.plan)==null?void 0:Ya.speeds)==null?void 0:fa[n.speedIndex])==null?void 0:Qa.speed)==null?void 0:wa.argv,(Pa=(Ga=(Fa=(Ba=(Ra=l.plan)==null?void 0:Ra.speeds)==null?void 0:Ba[n.speedIndex])==null?void 0:Fa.speed)==null?void 0:Ga.sample)==null?void 0:Pa.wps),(M,Ct)=>{var se,re,ye,Ve;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"cell-row"},[t.createElementVNode("div",ur,[M.isResume?(t.openBlock(),t.createElementBlock("div",vr,"Resume")):(t.openBlock(),t.createElementBlock("div",tN,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(M)),1),M.pilot?(t.openBlock(),t.createElementBlock("span",eN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",aN,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(M.eta))+" ",1),M.cp?(t.openBlock(),t.createElementBlock("span",lN,"[cp: "+t.toDisplayString(M.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),Ct?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(d.computeNav(M)),1)):(t.openBlock(),t.createElementBlock("div",nN)),Ct?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(d.roundPrecision(M.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",dN)),(re=(se=l.plan)==null?void 0:se.voyage)!=null&&re.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ct?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(d.roundPrecision(M.avgSpd??M.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Ve=(ye=l.plan)==null?void 0:ye.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ct?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(d.computeCog(M.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),Ct?(t.openBlock(),t.createElementBlock("div",MN,t.toDisplayString(d.computeMemo(M)),1)):(t.openBlock(),t.createElementBlock("div",mN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",DN,[(La=(Wa=l.plan)==null?void 0:Wa.speeds)!=null&&La.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Ha=(Ja=(_a=(Za=l.plan)==null?void 0:Za.speeds)==null?void 0:_a[n.speedIndex])==null?void 0:Ja.speed)==null?void 0:Ha.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(M,Ct)=>{var se,re;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ct?"active":""]),onClick:ye=>{n.speedIndex=Ct,d.renderEchart()}},t.toDisplayString((re=(se=M==null?void 0:M.speed)==null?void 0:se.lane)==null?void 0:re.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN,"* "+t.toDisplayString(d.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",pN,[e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,jN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(ol=(ll=l.plan)==null?void 0:ll.voyage)!=null&&ol.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((rl=(sl=(dl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:dl.speed)==null?void 0:sl.sample)==null?void 0:rl.hours,(M,Ct)=>{var se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt;return t.openBlock(),t.createElementBlock("tr",{key:Ct},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(M.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",UN,t.toDisplayString(d.computeLat(M.lat))+", "+t.toDisplayString(d.computeLng(M.lng)),1)]),t.createElementVNode("td",SN,[(re=(se=M.meteo)==null?void 0:se.wind)!=null&&re.kts?(t.openBlock(),t.createElementBlock("span",CN,t.toDisplayString((Ve=(ye=M.meteo)==null?void 0:ye.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(We=(Pe=M.meteo)==null?void 0:Pe.wind)!=null&&We.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Ze=(Le=M.meteo)==null?void 0:Le.wind)==null?void 0:Ze.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",ON,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(M))},t.toDisplayString(d.roundPrecision((Je=(_e=M.meteo)==null?void 0:_e.wind)==null?void 0:Je.kts,1)),3),(Xe=(He=l.plan)==null?void 0:He.voyage)!=null&&Xe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bN,t.toDisplayString((qe=(Ke=M.meteo)==null?void 0:Ke.wind)==null?void 0:qe.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ve=(ue=($e=M.meteo)==null?void 0:$e.wave)==null?void 0:ue.wd)==null?void 0:ve.height,1)),1),t.createElementVNode("td",hN,[(aa=(ea=(ta=M.meteo)==null?void 0:ta.wave)==null?void 0:ea.swell)!=null&&aa.height?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((na=(oa=(la=M.meteo)==null?void 0:la.wave)==null?void 0:oa.swell)==null?void 0:na.direction),1)):t.createCommentVNode("",!0),(sa=(da=(ia=M.meteo)==null?void 0:ia.wave)==null?void 0:da.swell)!=null&&sa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(ca=(Na=(ra=M.meteo)==null?void 0:ra.wave)==null?void 0:Na.swell)==null?void 0:ca.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Da=(ma=(Ma=M.meteo)==null?void 0:Ma.wave)==null?void 0:ma.swell)==null?void 0:Da.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ea=(Ia=(ga=M.meteo)==null?void 0:ga.wave)==null?void 0:Ia.swell)==null?void 0:Ea.period,1)),1),t.createElementVNode("td",QN,[(Ta=(Aa=(ya=M.meteo)==null?void 0:ya.wave)==null?void 0:Aa.sig)!=null&&Ta.height?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((pa=(xa=(Va=M.meteo)==null?void 0:Va.wave)==null?void 0:xa.sig)==null?void 0:pa.direction),1)):t.createCommentVNode("",!0),(O=(C=(s=M.meteo)==null?void 0:s.wave)==null?void 0:C.sig)!=null&&O.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(Y=(h=(b=M.meteo)==null?void 0:b.wave)==null?void 0:h.sig)==null?void 0:Y.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(M))},t.toDisplayString(d.roundPrecision((P=(B=(f=M.meteo)==null?void 0:f.wave)==null?void 0:B.sig)==null?void 0:P.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((X=(H=(J=M.meteo)==null?void 0:J.wave)==null?void 0:H.sig)==null?void 0:X.period,1)),1),t.createElementVNode("td",BN,[(q=(K=M.meteo)==null?void 0:K.current)!=null&&q.kts?(t.openBlock(),t.createElementBlock("span",FN,t.toDisplayString((nt=(ot=M.meteo)==null?void 0:ot.current)==null?void 0:nt.direction),1)):t.createCommentVNode("",!0),(xt=(it=M.meteo)==null?void 0:it.current)!=null&&xt.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(zt=(pt=M.meteo)==null?void 0:pt.current)==null?void 0:zt.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((kt=(jt=M.meteo)==null?void 0:jt.current)==null?void 0:kt.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(M.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const fi=pe(ws,[["render",PN],["__scopeId","data-v-c1569d5f"]]),WN={install(o){o.component("PlanReport",fi)}},C3="",LN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},ZN={class:"cover-box"},_N={class:"cover-content"},JN={class:"cover-title"},HN={class:"cover-info"},XN={class:"info-item"},KN={class:"info-item"},qN={class:"info-item"},$N={style:{"font-weight":"600"}},uN={class:"info-item"},vN={style:{"font-weight":"600"}},tc={class:"info-item"},ec={key:0},ac={key:1},lc={class:"info-item"},oc={class:"info-item"},nc={key:0},ic={key:1},dc={class:"info-item"},sc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,d){var m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q;return t.openBlock(),t.createElementBlock("div",ZN,[t.createElementVNode("div",_N,[t.createElementVNode("div",JN,t.toDisplayString(l.name),1),t.createElementVNode("div",HN,[t.createElementVNode("div",XN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(m=l.report)==null?void 0:m.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",KN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",qN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",$N,t.toDisplayString((y=(c=l.report)==null?void 0:c.vessel)==null?void 0:y.name),1)]),t.createElementVNode("div",uN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(g=(a=l.report)==null?void 0:a.departure)!=null&&g.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((p=(j=l.report)==null?void 0:j.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(d.computePosition((E=l.report)==null?void 0:E.departure)),1))]),t.createElementVNode("div",lc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((k=(T=l.report)==null?void 0:T.departure)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(V=(I=l.report)==null?void 0:I.arrival)!=null&&V.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((U=(z=l.report)==null?void 0:z.arrival)==null?void 0:U.portName),1)):(t.openBlock(),t.createElementBlock("span",ic,t.toDisplayString(d.computePosition((D=l.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",dc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((F=(R=l.report)==null?void 0:R.arrival)==null?void 0:F.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((Q=(S=l.report)==null?void 0:S.voyage)==null?void 0:Q.loadCondition),1)])])])])}const cc=pe(LN,[["render",Nc],["__scopeId","data-v-55ff66d4"]]),O3="",Mc={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return Dt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=Dt(o).diff(Dt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return et.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return et.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return et.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,N)=>{var m,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(c=>{const y={time:Dt(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Dt(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(y)});const d=(r=(m=l==null?void 0:l.inventory)==null?void 0:m.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-position"},zc={key:0},jc={key:1},kc={class:"phase-cp"},Uc={class:"orm-report-table"},Sc={class:"phase-conclusion"},Cc={class:"item-conclusion bg-blue-light-2"},Oc={class:"value align-left"},bc={key:0,class:"text-secondary align-right"},hc={key:0},Yc={key:1},fc={key:2},Qc={key:1,class:"text-secondary"},wc={key:2,class:"value"},Rc={key:0},Bc={class:"gain"},Fc={key:1},Gc={class:"lost"},Pc={key:2},Wc={class:"item-conclusion bg-blue-light-2"},Lc={class:"value align-left"},Zc={key:0,class:"text-secondary"},_c={key:0},Jc={key:1},Hc={key:2},Xc={key:1,class:"text-secondary"},Kc={key:2,class:"value"},qc={key:0},$c={class:"gain"},uc={key:1},vc={class:"lost"},tM={key:2},eM={class:"item-conclusion bg-blue-light-2"},aM={class:"value align-left"},lM={key:0,class:"text-secondary"},oM={key:0},nM={key:1},iM={key:2},dM={key:1,class:"text-secondary"},sM={key:2,class:"value"},rM={key:0},NM={class:"gain"},cM={key:1},MM={class:"lost"},mM={key:2},DM={key:0,class:"exclusion-block"},gM={style:{margin:"8px 0"}},IM={class:"orm-report-table"},EM={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},yM={class:"sub-title"},AM=["innerHTML"],TM={class:"section segment-section"},VM={class:"segment-summary"},xM={class:"segment-index text-left"},pM={class:"segment-position"},zM={key:0},jM={key:1},kM={class:"segment-position"},UM={key:0},SM={key:1},CM={class:"orm-report-table"},OM={class:"good-wx"},bM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},fM={class:"good-wx"},QM={class:"good-wx"},wM={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={class:"good-wx"},GM={class:"good-wx"},PM={class:"good-wx"},WM={class:"good-wx"},LM={class:"good-wx"},ZM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},_M={key:0},JM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},HM={key:2,class:"segment-speed"},XM={class:"row"},KM={class:"speed-right row"},qM={class:"speed"},$M={key:1,class:"speed"},uM={key:0,class:"speed"},vM={class:"speed"},tm={class:"speed"},em={class:"speed"},am={key:0,class:"under"},lm={key:1,class:"over"},om={class:"row"},nm={class:"speed-right formula flex-space"},im={key:0},dm={key:3,class:"segment-speed"},sm={class:"row"},rm={class:"speed-right row"},Nm={class:"speed"},cm={class:"speed"},Mm={key:0,class:"under"},mm={key:1,class:"over"},Dm={class:"row"},gm={class:"speed-right formula row"},Im={class:"segment-formula"},Em={class:"sub-title"},ym={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Am={class:"formula-block"},Tm={class:"formula-item flex-evenly bg-blue-light"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"240px"}},Um={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},Cm={class:"formula-right flex-evenly"},Om={class:"fraction",style:{width:"240px"}},bm={class:"formula-desc"},hm={class:"flex-end"},Ym={class:"flex-end"},fm={class:"flex-end"},Qm={key:0,class:"formula-block"},wm={class:"formula-item flex-evenly bg-blue-light"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item flex-center bg-blue-light"},Zm={class:"formula-left flex-space"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"200px"}},Hm={class:"formula-item formula-conclusion bg-blue-light"},Xm={key:0,class:"flex-evenly",style:{width:"500px"}},Km={key:1,class:"flex-evenly",style:{width:"500px"}},qm={class:"flex-center"},$m={key:1,class:"formula-conclusion bg-blue-light"},um={class:"segment-formula"},vm={class:"sub-title"},tD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},eD={class:"formula-block"},aD={class:"formula-item flex-evenly bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"240px"}},nD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},iD={key:0,class:"flex-end text-tips"},dD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"200px"}},mD={class:"formula-item flex-center bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"300px"}},ID={class:"formula-item flex-center bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"300px"}},AD={class:"sub-title"},TD={key:0,class:"formula-block"},VD={key:0,class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"60px"}},zD={class:"fraction",style:{width:"60px"}},jD={class:"formula-item flex-evenly bg-blue-light"},kD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},CD={key:0},OD={class:"formula-item flex-evenly bg-blue-light"},bD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item flex-evenly bg-blue-light"},QD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"150px"}},RD={class:"fraction",style:{width:"150px"}},BD={class:"formula-item formula-conclusion bg-blue-light"},FD={class:"flex-evenly",style:{width:"500px"}},GD={key:0,class:"flex-evenly"},PD={class:"fraction"},WD={class:"flex-evenly",style:{width:"700px"}},LD={key:0,class:"flex-evenly",style:{width:"500px"}},ZD={class:"fraction",style:{width:"140px"}},_D={key:1,class:"formula-item formula-conclusion bg-blue-light"},JD={class:"header-block"},HD={class:"bg-block"},XD={class:"block-title"},KD={key:0,class:"formula-block"},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={key:0},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ig={class:"formula-right flex-evenly"},dg={class:"fraction",style:{width:"150px"}},sg={class:"fraction",style:{width:"150px"}},rg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Ng={key:0,class:"flex-evenly",style:{width:"500px"}},cg={key:1,class:"flex-evenly",style:{width:"700px"}},Mg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function mg(o,e,l,N,n,d){var r,c,y;const m=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",mc,[t.createElementVNode("div",Dc,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",gc,[t.createElementVNode("div",Ic,t.toDisplayString(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,g)=>{var j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft;return t.openBlock(),t.createElementBlock("div",{key:"summary"+g,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(g+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(w,_t)=>{var Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt;return t.openBlock(),t.createElementBlock("div",{key:_t,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[(Lt=w==null?void 0:w.departure)!=null&&Lt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((Zt=w==null?void 0:w.departure)==null?void 0:Zt.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(d.computeLat((x=w==null?void 0:w.departure)==null?void 0:x.lat).pretty)+", "+t.toDisplayString(d.computeLng((Qt=w==null?void 0:w.departure)==null?void 0:Qt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((wt=w==null?void 0:w.departure)==null?void 0:wt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",pc,[(Rt=w==null?void 0:w.arrival)!=null&&Rt.portName?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((Bt=w==null?void 0:w.arrival)==null?void 0:Bt.portName),1)):(t.openBlock(),t.createElementBlock("span",jc,t.toDisplayString(d.computeLat((Ft=w==null?void 0:w.arrival)==null?void 0:Ft.lat).pretty)+", "+t.toDisplayString(d.computeLng((Gt=w==null?void 0:w.arrival)==null?void 0:Gt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Wt=w==null?void 0:w.arrival)==null?void 0:Wt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",kc,[t.createElementVNode("table",Uc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((E=(p=a==null?void 0:a.extend)==null?void 0:p.cp)==null?void 0:E.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(k=(T=a==null?void 0:a.extend)==null?void 0:T.cp)==null?void 0:k.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(V=(I=a==null?void 0:a.extend)==null?void 0:I.cp)==null?void 0:V.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((U=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:U.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((R=(D=a==null?void 0:a.extend)==null?void 0:D.cp)==null?void 0:R.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Sc,[t.createElementVNode("div",Cc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Oc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",bc,[((F=a==null?void 0:a.timeConclusion)==null?void 0:F.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",hc,"Time Gained")):((S=a==null?void 0:a.timeConclusion)==null?void 0:S.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",wc,[((Q=a==null?void 0:a.timeConclusion)==null?void 0:Q.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Rc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Fc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Gc,t.toDisplayString((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Pc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Lc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Zc,[((u=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:u.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",_c,"FO Saving")):((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Hc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Kc,[((G=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.fo)==null?void 0:G.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",qc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",$c,t.toDisplayString((Nt=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:Nt.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",uc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",vc,t.toDisplayString((yt=(Et=a==null?void 0:a.fuelConclusion)==null?void 0:Et.fo)==null?void 0:yt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",tM,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",eM,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",aM,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",lM,[((Tt=(At=a==null?void 0:a.fuelConclusion)==null?void 0:At.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",oM,"DO/GO Saving")):((A=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:A.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",nM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",iM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",dM,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",sM,[((Mt=(ct=a==null?void 0:a.fuelConclusion)==null?void 0:ct.dgo)==null?void 0:Mt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",rM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",NM,t.toDisplayString((Ot=(_=a==null?void 0:a.fuelConclusion)==null?void 0:_.dgo)==null?void 0:Ot.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((ht=(bt=a==null?void 0:a.fuelConclusion)==null?void 0:bt.dgo)==null?void 0:ht.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",cM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",MM,t.toDisplayString((ft=(Yt=a==null?void 0:a.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:ft.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",mM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",DM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",gM,[t.createElementVNode("table",IM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,g)=>(t.openBlock(),t.createElementBlock("tr",{key:g},[t.createElementVNode("td",null,t.toDisplayString(g+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",EM,[t.createElementVNode("div",yM," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((y=l.report)==null?void 0:y.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(m,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,AM))],2)],2),t.createElementVNode("div",TM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,g)=>{var j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft,w,_t,Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt,Jt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,dt,at,de,Ne,ce,Me,me,De,ge,st,Te,ze,je,ke,Ue,Se,Ce,Oe,be,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,ja,ka,Ua,Sa,Ca,Oa,ba,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl,M,Ct,se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt,Pt,Ie,Ee,xe,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,jl,kl,Ul,Sl,Cl,Ol,bl,hl,Yl,fl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,ro,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,So,Co,Oo,bo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,dn,sn,rn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,Cn,On,bn,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,di,si,ri,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:g,class:"segment-block"},[t.createElementVNode("div",VM,[t.createElementVNode("div",xM,"Voyage Analysis Seg. "+t.toDisplayString(g+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(Ut,zl)=>{var Nl,pl,Ai,Ti,Vi,xi,pi,zi,ji,ki;return t.openBlock(),t.createElementBlock("div",{key:zl,class:"segment-row text-secondary"},[t.createElementVNode("div",pM,[(Nl=Ut==null?void 0:Ut.departure)!=null&&Nl.portName?(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString((pl=Ut==null?void 0:Ut.departure)==null?void 0:pl.portName),1)):(t.openBlock(),t.createElementBlock("span",jM,t.toDisplayString(d.computeLat((Ai=Ut==null?void 0:Ut.departure)==null?void 0:Ai.lat).pretty)+", "+t.toDisplayString(d.computeLng((Ti=Ut==null?void 0:Ut.departure)==null?void 0:Ti.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Vi=Ut==null?void 0:Ut.departure)==null?void 0:Vi.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",kM,[(xi=Ut==null?void 0:Ut.arrival)!=null&&xi.portName?(t.openBlock(),t.createElementBlock("span",UM,t.toDisplayString((pi=Ut==null?void 0:Ut.arrival)==null?void 0:pi.portName),1)):(t.openBlock(),t.createElementBlock("span",SM,t.toDisplayString(d.computeLat((zi=Ut==null?void 0:Ut.arrival)==null?void 0:zi.lat).pretty)+", "+t.toDisplayString(d.computeLng((ji=Ut==null?void 0:Ut.arrival)==null?void 0:ji.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ki=Ut==null?void 0:Ut.arrival)==null?void 0:ki.utcTime))+")",1)])])}),128)),t.createElementVNode("table",CM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",OM,t.toDisplayString((E=(p=a==null?void 0:a.goodWx)==null?void 0:p.outEca)==null?void 0:E.distance),1),t.createElementVNode("td",bM,t.toDisplayString((k=(T=a==null?void 0:a.goodWx)==null?void 0:T.inEca)==null?void 0:k.distance),1),t.createElementVNode("td",null,t.toDisplayString((V=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:V.distance),1),t.createElementVNode("td",null,t.toDisplayString((U=(z=a==null?void 0:a.allWx)==null?void 0:z.inEca)==null?void 0:U.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((R=(D=a==null?void 0:a.goodWx)==null?void 0:D.outEca)==null?void 0:R.time),1),t.createElementVNode("td",YM,t.toDisplayString((S=(F=a==null?void 0:a.goodWx)==null?void 0:F.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((Z=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:Z.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((u=($=a==null?void 0:a.goodWx)==null?void 0:$.outEca)==null?void 0:u.avgSpd)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.inEca)==null?void 0:tt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((G=(lt=a==null?void 0:a.allWx)==null?void 0:lt.outEca)==null?void 0:G.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(rt=a==null?void 0:a.allWx)==null?void 0:rt.inEca)==null?void 0:Nt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.outEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((yt=(Et=a==null?void 0:a.goodWx)==null?void 0:Et.inEca)==null?void 0:yt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(At=a==null?void 0:a.allWx)==null?void 0:At.outEca)==null?void 0:Tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(Vt=a==null?void 0:a.allWx)==null?void 0:Vt.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((Mt=(ct=a==null?void 0:a.goodWx)==null?void 0:ct.outEca)==null?void 0:Mt.avgFoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((Ot=(_=a==null?void 0:a.goodWx)==null?void 0:_.inEca)==null?void 0:Ot.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=a==null?void 0:a.allWx)==null?void 0:bt.outEca)==null?void 0:ht.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ft=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.inEca)==null?void 0:ft.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",GM,t.toDisplayString(((_t=(w=a==null?void 0:a.goodWx)==null?void 0:w.outEca)==null?void 0:_t.sumDgoCons)||"--"),1),t.createElementVNode("td",PM,t.toDisplayString(((Zt=(Lt=a==null?void 0:a.goodWx)==null?void 0:Lt.inEca)==null?void 0:Zt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(x=a==null?void 0:a.allWx)==null?void 0:x.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Rt=(wt=a==null?void 0:a.allWx)==null?void 0:wt.inEca)==null?void 0:Rt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",WM,t.toDisplayString(((Ft=(Bt=a==null?void 0:a.goodWx)==null?void 0:Bt.outEca)==null?void 0:Ft.avgDgoCons)||"--"),1),t.createElementVNode("td",LM,t.toDisplayString(((Wt=(Gt=a==null?void 0:a.goodWx)==null?void 0:Gt.inEca)==null?void 0:Wt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Jt=a==null?void 0:a.allWx)==null?void 0:Jt.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",ZM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[g],(Ut,zl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:zl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ut,(Nl,pl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:pl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",_M,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Nl.utc,d.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[g])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",JM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",HM,[t.createElementVNode("div",XM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KM,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ne=(de=l.report)==null?void 0:de.weather)!=null&&Ne.disableWxFactor&&((Me=(ce=l.report)==null?void 0:ce.weather)!=null&&Me.disableCFactor)?(t.openBlock(),t.createElementBlock("span",uM,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((st=a==null?void 0:a.goodWx)==null?void 0:st.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Te=a==null?void 0:a.goodWx)==null?void 0:Te.avgCf)>0?(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf:`(${(je=a==null?void 0:a.goodWx)==null?void 0:je.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((ke=a==null?void 0:a.goodWx)==null?void 0:ke.pfmSpd)+" (kts)",1)],64)):(Se=(Ue=l.report)==null?void 0:Ue.weather)!=null&&Se.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.avgWf)>0?(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf:`(${(he=a==null?void 0:a.goodWx)==null?void 0:he.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),(Fe=(Be=l.report)==null?void 0:Be.weather)!=null&&Fe.favorableCur&&((Ge=a==null?void 0:a.goodWx)==null?void 0:Ge.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ja=a==null?void 0:a.goodWx)==null?void 0:ja.avgCf)>0?(ka=a==null?void 0:a.goodWx)==null?void 0:ka.avgCf:`(${(Ua=a==null?void 0:a.goodWx)==null?void 0:Ua.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",em,t.toDisplayString((Sa=a==null?void 0:a.goodWx)==null?void 0:Sa.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",$M,t.toDisplayString((at=a==null?void 0:a.goodWx)==null?void 0:at.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",qM,t.toDisplayString((dt=a==null?void 0:a.goodWx)==null?void 0:dt.pfmSpd)+" (kts)",1)],64))],64)),(Oa=(Ca=l.report)==null?void 0:Ca.voyage)!=null&&Oa.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ba=a==null?void 0:a.goodWx)==null?void 0:ba.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",am,"(Under-performance)")):t.createCommentVNode("",!0),((ha=a==null?void 0:a.goodWx)==null?void 0:ha.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",om,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nm,[(fa=(Ya=l.report)==null?void 0:Ya.weather)!=null&&fa.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Fa=(Ba=l.report)==null?void 0:Ba.weather)!=null&&Fa.disableWxFactor&&((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.disableCFactor)?(t.openBlock(),t.createElementBlock("label",im,"GW Average Speed")):(La=(Wa=l.report)==null?void 0:Wa.weather)!=null&&La.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(_a=(Za=l.report)==null?void 0:Za.weather)!=null&&_a.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ha=(Ja=l.report)==null?void 0:Ja.weather)!=null&&Ha.favorableCur&&((Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(wa=(Qa=l.report)==null?void 0:Qa.weather)!=null&&wa.favorableCur&&((Ra=a==null?void 0:a.goodWx)==null?void 0:Ra.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",sm,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rm,[(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.allWx)==null?void 0:$a.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((il=a==null?void 0:a.allWx)==null?void 0:il.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((dl=a==null?void 0:a.allWx)==null?void 0:dl.avgWf)>0?(sl=a==null?void 0:a.allWx)==null?void 0:sl.avgWf:`(${(rl=a==null?void 0:a.allWx)==null?void 0:rl.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",cm,t.toDisplayString((M=a==null?void 0:a.allWx)==null?void 0:M.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((ua=a==null?void 0:a.allWx)==null?void 0:ua.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((va=a==null?void 0:a.allWx)==null?void 0:va.avgCf)>0?(tl=a==null?void 0:a.allWx)==null?void 0:tl.avgCf:`(${(el=a==null?void 0:a.allWx)==null?void 0:el.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((al=a==null?void 0:a.allWx)==null?void 0:al.avgWf)>0?(ll=a==null?void 0:a.allWx)==null?void 0:ll.avgWf:`(${(ol=a==null?void 0:a.allWx)==null?void 0:ol.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Nm,t.toDisplayString((nl=a==null?void 0:a.allWx)==null?void 0:nl.pfmSpd)+" (kts)",1)],64)),(se=(Ct=l.report)==null?void 0:Ct.voyage)!=null&&se.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((re=a==null?void 0:a.allWx)==null?void 0:re.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Mm,"(Under-performance)")):t.createCommentVNode("",!0),((ye=a==null?void 0:a.allWx)==null?void 0:ye.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",mm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Dm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gm,[(Pe=(Ve=l.report)==null?void 0:Ve.weather)!=null&&Pe.favorableCur&&((We=a==null?void 0:a.allWx)==null?void 0:We.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(g+1)+" Time Analysis",1),(Ze=(Le=l.report)==null?void 0:Le.weather)!=null&&Ze.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ym,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Je=(_e=l.report)==null?void 0:_e.weather)!=null&&Je.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Xe=(He=a==null?void 0:a.extend)==null?void 0:He.cp)==null?void 0:Xe.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((qe=(Ke=l.report)==null?void 0:Ke.weather)!=null&&qe.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ue=($e=a==null?void 0:a.extend)==null?void 0:$e.cp)==null?void 0:ue.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Um,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ta=(ve=a==null?void 0:a.extend)==null?void 0:ve.cp)==null?void 0:ta.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Cm,[t.createElementVNode("div",Om,[t.createElementVNode("div",null,t.toDisplayString((aa=(ea=l.report)==null?void 0:ea.weather)!=null&&aa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(oa=(la=a==null?void 0:a.extend)==null?void 0:la.cp)==null?void 0:oa.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:300px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Lost</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(a)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Gained</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(c)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(a)</div></div></div>',1))]),t.createElementVNode("div",bm,[t.createElementVNode("div",hm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ia=(na=a==null?void 0:a.extend)==null?void 0:na.cp)==null?void 0:ia.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Ym,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(sa=(da=a==null?void 0:a.extend)==null?void 0:da.cp)==null?void 0:sa.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",fm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Na=(ra=a==null?void 0:a.extend)==null?void 0:ra.cp)==null?void 0:Na.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ma=(ca=a==null?void 0:a.extend)==null?void 0:ca.cp)==null?void 0:Ma.speed,"Under"))+" kts) ",1)])]),(ma=a==null?void 0:a.goodWx)!=null&&ma.distance?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",wm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((ga=(Da=l.report)==null?void 0:Da.weather)!=null&&ga.noExtrapolation?(Ia=a==null?void 0:a.goodWx)==null?void 0:Ia.distance:(Ea=a==null?void 0:a.allWx)==null?void 0:Ea.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ya=a==null?void 0:a.goodWx)==null?void 0:ya.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Aa=a==null?void 0:a.timeConclusion)==null?void 0:Aa.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Va=(Ta=a==null?void 0:a.extend)==null?void 0:Ta.cp)==null?void 0:Va.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=l.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?(s=a==null?void 0:a.goodWx)==null?void 0:s.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Lm,[t.createElementVNode("div",Zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((B=(f=l.report)==null?void 0:f.weather)!=null&&B.noExtrapolation?(P=a==null?void 0:a.goodWx)==null?void 0:P.distance:(J=a==null?void 0:a.allWx)==null?void 0:J.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((H=a==null?void 0:a.timeConclusion)==null?void 0:H.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Hm,[((K=a==null?void 0:a.timeConclusion)==null?void 0:K.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Xm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ot=a==null?void 0:a.timeConclusion)==null?void 0:ot.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nt=a==null?void 0:a.timeConclusion)==null?void 0:nt.timeLost)+" (hrs)",1)])):((it=a==null?void 0:a.timeConclusion)==null?void 0:it.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Km,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((xt=a==null?void 0:a.timeConclusion)==null?void 0:xt.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((pt=a==null?void 0:a.timeConclusion)==null?void 0:pt.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((zt=a==null?void 0:a.timeConclusion)==null?void 0:zt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",qm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.conclusionStatus)==="Lost"?"lost":((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",$m,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",um,[t.createElementVNode("div",vm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(g+1)+" Consumption Analysis",1),(Ee=(Ie=l.report)==null?void 0:Ie.weather)!=null&&Ee.noExtrapolation?(t.openBlock(),t.createElementBlock("span",tD,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((Ml=(xe=l.report)==null?void 0:xe.weather)!=null&&Ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",nD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(ml=a.extend)==null?void 0:ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",iD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",ND,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:240px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Over-consumption</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(d)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(e)</div></div><div class="flex-space" style="width:200px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Saving</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(f)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(d)</div></div></div>',1)),((kl=(jl=a.extend)==null?void 0:jl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",mD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",gD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Sl=(Ul=l.report)==null?void 0:Ul.weather)!=null&&Sl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ID,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",yD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=(Cl=l.report)==null?void 0:Cl.weather)!=null&&Ol.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",AD,"Seg. "+t.toDisplayString(g+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",TD,[((Yl=(hl=a==null?void 0:a.goodWx)==null?void 0:hl.inEca)==null?void 0:Yl.distance)>0?(t.openBlock(),t.createElementBlock("div",VD,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(fl=a==null?void 0:a.goodWx)==null?void 0:fl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",jD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",CD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",OD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((No=(ro=a.fuelConclusion)==null?void 0:ro.fo)==null?void 0:No.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l.report)==null?void 0:co.weather)!=null&&Mo.noExtrapolation?(mo=a==null?void 0:a.goodWx)==null?void 0:mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",BD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",FD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(Co=(So=a==null?void 0:a.goodWx)==null?void 0:So.inEca)!=null&&Co.distance?(t.openBlock(),t.createElementBlock("div",GD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Oo=a==null?void 0:a.goodWx)==null?void 0:Oo.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l.report)==null?void 0:fo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",WD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",LD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(dn=a==null?void 0:a.goodWx)==null?void 0:dn.distance:(sn=a==null?void 0:a.allWx)==null?void 0:sn.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Mn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:Mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(mn=a==null?void 0:a.fuelConclusion)==null?void 0:mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",_D,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",XD,"Seg. "+t.toDisplayString(g+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",KD,[t.createElementVNode("div",qD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",tg,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Cn=(Sn=a==null?void 0:a.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:Cn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((On=a==null?void 0:a.goodWx)==null?void 0:On.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((hn=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:hn.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",eg,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((fn=(Yn=l.report)==null?void 0:Yn.weather)!=null&&fn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",ng,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ig,[t.createElementVNode("div",dg,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",sg,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",rg,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",cg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:Mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(mi=a==null?void 0:a.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",Mg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const Dg=pe(Mc,[["render",mg],["__scopeId","data-v-c0778c3d"]]),b3="",gg={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLng(){return function(o){return et.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return et.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?et.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,d,m,r,c,y,a,g;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((r=(m=this.report)==null?void 0:m.weather)==null?void 0:r.showSwell)??!0,this.showWave=((y=(c=this.report)==null?void 0:c.weather)==null?void 0:y.showWave)??!0,this.showWaterTemp=((g=(a=this.report)==null?void 0:a.weather)==null?void 0:g.waterTempSwitch)||!1}}},Ig={class:"report-inventory"},Eg={class:"section summary-section"},yg={class:"summary-block"},Ag={class:"orm-report-table inventory-table"},Tg={class:"label",rowspan:"4"},Vg={class:"section inventory-section"},xg={class:"orm-report-table inventory-table detail"},pg=["colspan"],zg={key:0,class:"label",colspan:"2"},jg={key:0,class:"label",rowspan:"2"},kg={key:1,class:"label",rowspan:"2"},Ug={key:2,class:"label",rowspan:"2"},Sg={key:3,class:"label",colspan:"2"},Cg={key:4,class:"label",rowspan:"2"},Og={key:5,class:"label",colspan:"2"},bg={key:6,class:"label",rowspan:"2"},hg={key:7,class:"label",rowspan:"2"},Yg={key:8,class:"label",rowspan:"2"},fg={key:0,class:"label"},Qg={key:1,class:"label"},wg={key:2,class:"label"},Rg={key:3,class:"label"},Bg={class:"summary-tbody"};function Fg(o,e,l,N,n,d){var m;return t.openBlock(),t.createElementBlock("div",Ig,[t.createElementVNode("div",Eg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",yg,[t.createElementVNode("table",Ag,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((m=l.report)==null?void 0:m.segments,(r,c)=>{var y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tg,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=r==null?void 0:r.allWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=r==null?void 0:r.allWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=r==null?void 0:r.goodWx)==null?void 0:T.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=r==null?void 0:r.goodWx)==null?void 0:k.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((I=r==null?void 0:r.goodWx)==null?void 0:I.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=r==null?void 0:r.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((U=r==null?void 0:r.badWx)==null?void 0:U.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((R=r==null?void 0:r.badWx)==null?void 0:R.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((F=r==null?void 0:r.badWx)==null?void 0:F.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((S=r==null?void 0:r.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=r==null?void 0:r.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Vg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",xg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,pg),l.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",jg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",kg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",Ug,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",Cg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Og,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(t.openBlock(),t.createElementBlock("th",bg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",hg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Yg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",fg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Qg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",wg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Rg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",Bg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,c)=>{var y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((y=r.noon)!=null&&y.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=r.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(g=r.meteo)==null?void 0:g.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(p=r.meteo)==null?void 0:p.wind)==null?void 0:E.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((I=(k=(T=r.meteo)==null?void 0:T.wave)==null?void 0:k.wd)==null?void 0:I.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((U=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.swell)==null?void 0:U.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((F=(R=(D=r.meteo)==null?void 0:D.wave)==null?void 0:R.swell)==null?void 0:F.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((W=(Q=(S=r.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Z=(L=r.meteo)==null?void 0:L.current)==null?void 0:Z.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":(($=r.meteo)==null?void 0:$.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((u=r.meteo)==null?void 0:u.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((v=r.meteo)==null?void 0:v.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((tt=r.meteo)==null?void 0:tt.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Gg=pe(gg,[["render",Fg],["__scopeId","data-v-2182dbc0"]]),h3="",Pg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Oi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Oi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Oi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var g,j,p,E,T,k;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const m=this.inventory.filter(I=>I.noon)||[],r=[];this.inventory.forEach((I,V)=>{var z,U;V===0&&r.push(I.utc),I.type==="EOSP"&&((z=this.inventory[V+1])==null?void 0:z.type)==="BOSP"&&(r.push(I.utc),r.push((U=this.inventory[V+1])==null?void 0:U.utc)),V===this.inventory.length-1&&r.push(I.utc)}),r.forEach((I,V)=>{if(V%2===0){const z=Dt(r[V+1]).diff(Dt(r[V]),"minute",!0);for(let U=0;U<=z+1;U++)e.push(this.computeUTCTime(Dt(r[V]).clone().utc().add(U,"m").format(),"MM-DD/HHmm[Z]"))}}),m.forEach((I,V)=>{var U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt;const z=this.computeUTCTime(I.utc,"MM-DD/HHmm[Z]");if(I.noon&&!o.some(G=>G.slice(0,5)===I.utc.slice(5,10))&&o.push(z),V===m.length-1&&(o=o.filter(G=>G.slice(0,5)!==I.utc.slice(5,10)),o.push(z)),n=Math.ceil(((U=I.noon)==null?void 0:U.foCons)>n?(D=I.noon)==null?void 0:D.foCons:n),n=Math.ceil(((R=I.cp)==null?void 0:R.fo)>n?(F=I.cp)==null?void 0:F.fo:n),d=Math.ceil(((S=I.noon)==null?void 0:S.dgoCons)>d?(Q=I.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=I.cp)==null?void 0:W.dgo)>d?(L=I.cp)==null?void 0:L.dgo:d),l.push([z,(Z=I.noon)==null?void 0:Z.avgSpd,($=I.noon)==null?void 0:$.foCons,(u=I.noon)==null?void 0:u.dgoCons,I.avgSpdCalc,I.cp.speed,I.goodWx&&!I.excluded?100:0,I.cp.dgo,I.cp.fo,I.excluded?100:0]),V<m.length-1){const G=m[V+1];l.push([z,(v=G.noon)==null?void 0:v.avgSpd,(tt=G.noon)==null?void 0:tt.foCons,(lt=G.noon)==null?void 0:lt.dgoCons,G.avgSpdCalc,G.cp.speed,G.goodWx&&!G.excluded?100:0,G.cp.dgo,G.cp.fo,G.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((I,V)=>V===0||V===o.length-1||V%c===0);const y={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:N.dateTime,y:N.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:N.dateTime,y:N.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(j=(g=this.report)==null?void 0:g.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.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:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.spdFoConsChart)==null||p.setOption(y);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(T=(E=this.report)==null?void 0:E.weather)!=null&&T.believeRptDistance?N.noonAvgSpd:N.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:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(k=this.spdDgoConsChart)==null||k.setOption(a)},renderWxCurrChart(){var p;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],m=[];d.forEach((E,T)=>{var k,I;T===0&&m.push(E.utc),E.type==="EOSP"&&((k=d[T+1])==null?void 0:k.type)==="BOSP"&&(m.push(E.utc),m.push((I=d[T+1])==null?void 0:I.utc)),T===d.length-1&&m.push(E.utc)}),m.forEach((E,T)=>{if(T%2===0){const k=Dt(m[T+1]).diff(Dt(m[T]),"minute",!0);for(let I=0;I<=k+1;I++)e.push(this.computeUTCTime(Dt(m[T]).clone().utc().add(I,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((E,T)=>{var I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt;const k=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(_=>_.slice(0,5)===E.utc.slice(5,10))&&o.push(k),T===d.length-1&&(o=o.filter(_=>_.slice(0,5)!==E.utc.slice(5,10)),o.push(k)),n=Math.ceil(((z=(V=(I=E.meteo)==null?void 0:I.wave)==null?void 0:V.sig)==null?void 0:z.height)>n?(R=(D=(U=E.meteo)==null?void 0:U.wave)==null?void 0:D.sig)==null?void 0:R.height:n),l.push([k,((F=E.noon)==null?void 0:F.windBF)||((Q=(S=E.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(L=(W=E.meteo)==null?void 0:W.wind)==null?void 0:L.scale,($=(Z=E.meteo)==null?void 0:Z.wind)==null?void 0:$.direction,(u=E.noon)==null?void 0:u.seasHt,(lt=(tt=(v=E.meteo)==null?void 0:v.wave)==null?void 0:tt.sig)==null?void 0:lt.height,E.dailyAvgCf??((G=l[l.length-1])==null?void 0:G[N.anlyCurFct]),E.goodWx&&!E.excluded?20:0,E.excluded?20:0]),T<d.length-1){const _=d[T+1];l.push([k,((rt=E.noon)==null?void 0:rt.windBF)||((gt=(Nt=E.meteo)==null?void 0:Nt.wind)==null?void 0:gt.scale),(Et=(It=_.meteo)==null?void 0:It.wind)==null?void 0:Et.scale,(At=(yt=_.meteo)==null?void 0:yt.wind)==null?void 0:At.direction,(Tt=_.noon)==null?void 0:Tt.seasHt,(ct=(A=(Vt=E.meteo)==null?void 0:Vt.wave)==null?void 0:A.sig)==null?void 0:ct.height,_.dailyAvgCf??((Mt=l[l.length-1])==null?void 0:Mt[N.anlyCurFct]),_.goodWx&&!_.excluded?20:0,_.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((E,T)=>T===0||T===o.length-1||T%r===0);let c=-2.5,y=2.5,a=1,g=5;c<-2.5||y>2.5?(c=Math.floor(this.findMinValue(l,6)/5)*5,y=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(c),Math.abs(y)])/5),g=Math.ceil(Math.abs(c)/a)+Math.ceil(Math.abs(y)/a)):(a=.5,c=Math.floor(this.findMinValue(l,6)/.5)*a,y=2.5,g=Math.abs(c)/a+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:y,interval:a,splitNumber:g,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(g-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:g,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(E,T)=>{if(E>=0)return E}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(g-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:g,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(E,T)=>{if(E>=0)return E},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.currChart)==null||p.setOption(j)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Wg={class:"report-summary"},Lg={class:"section chart-section"},Zg={class:"chart-block"},_g={ref:"spdFoConsChart",class:"chart"},Jg={ref:"spdDgoConsChart",class:"chart"},Hg={ref:"currChart",class:"chart"},Xg={class:"section map-section"},Kg={class:"map-block"},qg={class:"flex-space"},$g={class:"voyage-block bg-blue-light"},ug={class:"flex-space label-block",style:{width:"100%"}},vg={style:{"text-transform":"uppercase"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},lI={class:"flex-space label-block",style:{width:"100%"}},oI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nI={class:"flex-space label-block",style:{width:"100%"}},iI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},sI={class:"flex-end",style:{width:"160px"}},rI={class:"flex-space label-block",style:{width:"100%"}},NI={key:0,class:"flex-end",style:{flex:"1"}},cI={key:1,class:"flex-end",style:{flex:"1"}},MI={class:"flex-end",style:{width:"160px"}},mI={class:"flex-space label-block",style:{width:"100%"}},DI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},gI=["src"];function II(o,e,l,N,n,d){var m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L;return t.openBlock(),t.createElementBlock("div",Wg,[t.createElementVNode("div",Lg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Zg,[t.createElementVNode("div",_g,null,512),t.createElementVNode("div",Jg,null,512),t.createElementVNode("div",Hg,null,512)])]),t.createElementVNode("div",Xg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Kg,[t.createElementVNode("div",qg,[t.createElementVNode("div",$g,[t.createElementVNode("div",ug,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",vg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tI,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",eI,t.toDisplayString((r=(m=l.report)==null?void 0:m.vessel)==null?void 0:r.name),1),t.createElementVNode("span",aI,"("+t.toDisplayString((y=(c=l.report)==null?void 0:c.vessel)==null?void 0:y.type)+")",1)]),t.createElementVNode("div",lI,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",oI,t.toDisplayString((g=(a=l.report)==null?void 0:a.voyage)==null?void 0:g.number),1)]),t.createElementVNode("div",nI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(p=(j=l.report)==null?void 0:j.departure)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",iI,t.toDisplayString((T=(E=l.report)==null?void 0:E.departure)==null?void 0:T.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(d.computePosition((k=l.report)==null?void 0:k.departure)),1)),t.createElementVNode("span",sI,t.toDisplayString(d.computeUTCTime((I=l.report.departure)==null?void 0:I.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",rI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(V=l.report)==null?void 0:V.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",NI,t.toDisplayString((D=(U=l.report)==null?void 0:U.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",cI,t.toDisplayString(d.computePosition((R=l.report)==null?void 0:R.arrival)),1)),t.createElementVNode("span",MI,t.toDisplayString(d.computeUTCTime((S=(F=l.report)==null?void 0:F.arrival)==null?void 0:S.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",mI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",DI,t.toDisplayString((W=(Q=l.report)==null?void 0:Q.voyage)==null?void 0:W.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-a2260a56><div data-v-a2260a56>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>08/12</div><div data-v-a2260a56><div data-v-a2260a56>08 - Day of the month</div><div data-v-a2260a56>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-a2260a56></i></div><div data-v-a2260a56><div data-v-a2260a56>Wind from N (000)</div><div data-v-a2260a56>Each bard = 10 kts</div><div data-v-a2260a56>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>W 4</div><div data-v-a2260a56>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div class="good-wx" data-v-a2260a56>Date</div><div data-v-a2260a56>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(L=l.report)==null?void 0:L.chartUrl,alt:""},null,8,gI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-a2260a56><div class="header-block" data-v-a2260a56><div class="bg-block" data-v-a2260a56><i class="iconfont icon-baobiao" data-v-a2260a56></i><div class="block-title" data-v-a2260a56>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>1. Good Weather Method</div><div class="method-body" data-v-a2260a56> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-a2260a56> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-a2260a56> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-a2260a56> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>4. “About”</div><div class="method-body" data-v-a2260a56> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-a2260a56> 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-a2260a56> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>6. Further reference materials</div><div class="method-body" data-v-a2260a56>Please send mail to <a href="mailto:op@ormwx.com" data-v-a2260a56>op@ormwx.com</a>.</div></div></div></div>',1))])}const EI=pe(Pg,[["render",II],["__scopeId","data-v-a2260a56"]]),Y3="",f3="",yI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var c,y;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((y=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:y.split("\\n")).forEach(g=>{const j=`<p>${g}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),m=(n==null?void 0:n.offsetHeight)||0,r=(d==null?void 0:d.offsetHeight)||0;if(m<=r){let g=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
1
+ (function(mt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(mt=typeof globalThis<"u"?globalThis:mt||self,t(mt["idmui-extend"]={},mt.Vue,mt["@wangeditor/editor-for-vue"],mt["@idmui/basic"],mt.moment,mt.echarts,mt["@idm-plugin/geo"],mt.axios,mt.MdEditorV3))})(this,function(mt,t,hi,za,Dt,ks,et,bi,Yi){"use strict";function Us(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Oi=Us(ks),k3="",pe=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},Ss={name:"IdmEditor",components:{Editor:hi.Editor,Toolbar:hi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cs={class:"editor-box"};function Os(o,e,l,N,n,d){const m=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cs,[t.withDirectives(t.createVNode(m,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=pe(Ss,[["render",Os],["__scopeId","data-v-80104052"]]),bs={install(o){o.component("IdmEditor",cl)}},U3="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,fs=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qs=fs;const S3="",ws={name:"PlanReport",components:{Editor:cl,IdmBrand:za.IdmBrand,IdmLoading:za.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=et.LngLatHelper.guessTimeZoneOffset(e,l)),`${Dt(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,d,m;if(e===0)return"-";{const r=Dt((n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.eta).diff(Dt((m=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:m.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,d,m,r,c;if(e===0)return"-";{const y=Number((d=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((c=(r=(m=o==null?void 0:o.speeds)==null?void 0:m[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(y/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const l=[];for(let N=0;N<(e==null?void 0:e.length);N++){const n=e[N],d=e[N-1];d&&(n.avgBearing=d.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,m,r,c;const l=(c=(r=(m=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:m.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(Dt(n==null?void 0:n.eta).diff(Dt(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,N;let e=0;return(N=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||N.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":et.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>et.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>et.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,d,m,r,c,y,a,g,j,p,E,T,k,I,V,z;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((r=(m=this.weatherPrinciple)==null?void 0:m.dangerous)==null?void 0:r.wind)?e="bg-danger":(y=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&y.wind&&((g=(a=o.meteo)==null?void 0:a.wind)==null?void 0:g.scale)>((p=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:p.wind)?e="bg-severe":(T=(E=this.weatherPrinciple)==null?void 0:E.heavy)!=null&&T.wind&&((I=(k=o.meteo)==null?void 0:k.wind)==null?void 0:I.scale)===((z=(V=this.weatherPrinciple)==null?void 0:V.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,d,m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((m=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:m.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(y=this.weatherPrinciple)==null?void 0:y.severe)!=null&&a.sigWv&&((p=(j=(g=o.meteo)==null?void 0:g.wave)==null?void 0:j.sig)==null?void 0:p.height)>=((T=(E=this.weatherPrinciple)==null?void 0:E.severe)==null?void 0:T.sigWv)?e="bg-severe":(I=(k=this.weatherPrinciple)==null?void 0:k.heavy)!=null&&I.sigWv&&((U=(z=(V=o.meteo)==null?void 0:V.wave)==null?void 0:z.sig)==null?void 0:U.height)>=((R=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:R.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Oi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var I,V,z,U,D,R,F;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(R=(D=(U=(z=(V=(I=this.plan)==null?void 0:I.speeds)==null?void 0:V[this.speedIndex])==null?void 0:z.speed)==null?void 0:U.sample)==null?void 0:D.hours)==null||R.forEach(S=>{var W,L,Z,$,u,v,tt,lt,G,rt;const Q=S.meteo;if(Q){const Nt=Dt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(Nt),N=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>N?($=(Z=Q.wave)==null?void 0:Z.sig)==null?void 0:$.height:N),e.push([Nt,(u=Q.wind)==null?void 0:u.kts,(tt=(v=Q.wave)==null?void 0:v.sig)==null?void 0:tt.height,(lt=Q.wind)==null?void 0:lt.direction,(G=Q.wind)==null?void 0:G.degree,(rt=Q.wind)==null?void 0:rt.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),d=Math.max(...e.map(S=>S[l.windSpeed])),m=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,y=Math.ceil(d/5/5)*5,a=Math.ceil(N/5/.5)*.5,g=Math.ceil((r-m)/5/.5)*.5,j=5*c,p=5*y,E=5*a,T=m+5*g,k={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:p,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:E,splitNumber:5,interval:a,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:m,max:T,splitNumber:5,interval:g,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,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:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(F=this.echart)==null||F.setOption(k)}}},Rs={class:"orm-plan-report"},Bs={key:0,class:"loading-block"},Fs={class:"info-block"},Gs={class:"col"},Ps={class:"label-block"},Ws={class:"text"},Ls={class:"label-block"},Zs={class:"text"},_s={key:0},Js={class:"label-block"},Hs={class:"text"},Xs={class:"col"},Ks={class:"label-block"},qs={key:0},$s={key:1},us={style:{"margin-left":"16px"}},vs={class:"label-block"},tr={key:0},er={key:1},ar={style:{"margin-left":"16px"}},lr={class:"label-block"},or={class:"text"},nr={class:"section chart-section"},ir={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dr={style:{"margin-right":"8px"}},sr=["src"],rr={class:"legends text-tips"},Nr={class:"legend"},cr={key:0,class:"legend"},Mr={key:1,class:"legend"},mr={key:1,class:"empty"},Dr={class:"section comparison-section"},gr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ir={key:0},Er=["rowspan"],yr={key:0},Ar={key:1},Tr={rowspan:"2"},Vr={rowspan:"2"},xr={key:0},pr={key:1},zr={rowspan:"1"},jr={key:0},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={rowspan:"2"},Cr={key:0},Or={key:0},br=["rowspan"],hr={key:0},Yr={rowspan:"1"},fr={key:0},Qr={key:0},wr={key:1},Rr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Br={key:0},Fr={class:"section waypoint-section"},Gr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Pr={class:"bg-block"},Wr={class:"block-title"},Lr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Zr=["onClick"],_r={class:"advisory bg-blue-light-2"},Jr=["innerHTML"],Hr={class:"major-waypoint"},Xr={class:"major-header bg-blue-light-2"},Kr={key:0,class:"cell-item flex"},qr={key:1,class:"cell-item flex"},$r={class:"major-body"},ur={class:"cell-item flex",style:{flex:"2.5"}},vr={key:0,class:"flex-center"},tN={key:1,class:"flex-center"},eN={key:0,style:{"margin-left":"3px"}},aN={class:"cell-item flex",style:{flex:"1.5"}},lN={key:0,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},dN={key:3,class:"cell-item flex nbsp"},sN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},MN={key:6,class:"cell-item flex offset"},mN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN=["colspan"],kN={key:0},UN={class:"flex-center"},SN={class:"degree-box"},CN={key:0},ON={key:2},bN={key:0},hN={class:"degree-box"},YN={key:0},fN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2},BN={class:"degree-box"},FN={key:0},GN={key:2};function PN(o,e,l,N,n,d){var a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft,w,_t,Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt,Jt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,dt,at,de,Ne,ce,Me,me,De,ge,st,Te,ze,je,ke,Ue,Se,Ce,Oe,be,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,ja,ka,Ua,Sa,Ca,Oa,ba,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl;const m=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),y=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Rs,[t.createVNode(m,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Bs,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=M=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Fs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ws,t.toDisplayString((p=(j=(g=l.plan)==null?void 0:g.voyage)==null?void 0:j.company)==null?void 0:p.name),1)]),t.createElementVNode("div",Ls,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Zs,[t.createTextVNode(t.toDisplayString((k=(T=(E=l.plan)==null?void 0:E.voyage)==null?void 0:T.vessel)==null?void 0:k.name)+" ",1),(U=(z=(V=(I=l.plan)==null?void 0:I.voyage)==null?void 0:V.vessel)==null?void 0:z.vesselType)!=null&&U.name?(t.openBlock(),t.createElementBlock("span",_s,"("+t.toDisplayString((S=(F=(R=(D=l.plan)==null?void 0:D.voyage)==null?void 0:R.vessel)==null?void 0:F.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Js,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Xs,[t.createElementVNode("div",Ks,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(v=(u=($=l.plan)==null?void 0:$.leg)==null?void 0:u.departure)!=null&&v.name?(t.openBlock(),t.createElementBlock("span",qs,t.toDisplayString((G=(lt=(tt=l.plan)==null?void 0:tt.leg)==null?void 0:lt.departure)==null?void 0:G.name),1)):(t.openBlock(),t.createElementBlock("span",$s,t.toDisplayString(d.computePosition((Nt=(rt=l.plan)==null?void 0:rt.leg)==null?void 0:Nt.departure)),1)),t.createElementVNode("span",us,t.toDisplayString(d.computeUTCTime(((Et=(It=(gt=l.plan)==null?void 0:gt.leg)==null?void 0:It.departure)==null?void 0:Et.atd)||((Tt=(At=(yt=l.plan)==null?void 0:yt.leg)==null?void 0:At.departure)==null?void 0:Tt.etd)||((Mt=(ct=(A=(Vt=l.plan)==null?void 0:Vt.speeds)==null?void 0:A[n.speedIndex])==null?void 0:ct.speed)==null?void 0:Mt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",vs,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(bt=(Ot=(_=l.plan)==null?void 0:_.leg)==null?void 0:Ot.destination)!=null&&bt.name?(t.openBlock(),t.createElementBlock("span",tr,t.toDisplayString((ft=(Yt=(ht=l.plan)==null?void 0:ht.leg)==null?void 0:Yt.destination)==null?void 0:ft.name),1)):(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString(d.computePosition((_t=(w=l.plan)==null?void 0:w.leg)==null?void 0:_t.destination)),1)),t.createElementVNode("span",ar,t.toDisplayString(d.computeUTCTime(((Qt=(x=(Zt=(Lt=l.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[n.speedIndex])==null?void 0:x.speed)==null?void 0:Qt.ata)||((Ft=(Bt=(Rt=(wt=l.plan)==null?void 0:wt.speeds)==null?void 0:Rt[n.speedIndex])==null?void 0:Bt.speed)==null?void 0:Ft.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",lr,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",or,t.toDisplayString((Wt=(Gt=l.plan)==null?void 0:Gt.voyage)==null?void 0:Wt.loadCondition),1)])])]),t.createElementVNode("div",nr,[t.createElementVNode("div",ir,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dr," FCST fr Pos. "+t.toDisplayString(d.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Jt=l.plan)==null?void 0:Jt.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,sr)]),t.createElementVNode("div",rr,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-c1569d5f><span class="dangerous" data-v-c1569d5f></span><span data-v-c1569d5f>Danger</span></div><div class="legend" data-v-c1569d5f><span class="severe" data-v-c1569d5f></span><span data-v-c1569d5f>Severe</span></div><div class="legend" data-v-c1569d5f><span class="heavy" data-v-c1569d5f></span><span data-v-c1569d5f>Heavy</span></div>',3)),t.createElementVNode("div",Nr,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=M=>{n.speedIndex=0,d.renderEchart()})},t.toDisplayString((oe=(le=(ae=(ee=(te=l.plan)==null?void 0:te.speeds)==null?void 0:ee[0])==null?void 0:ae.speed)==null?void 0:le.lane)==null?void 0:oe.name),1)]),((ie=(ne=l.plan)==null?void 0:ne.speeds)==null?void 0:ie.length)>1?(t.openBlock(),t.createElementBlock("div",cr,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=M=>{n.speedIndex=1,d.renderEchart()})},t.toDisplayString((Ne=(de=(at=(dt=(i=l.plan)==null?void 0:i.speeds)==null?void 0:dt[1])==null?void 0:at.speed)==null?void 0:de.lane)==null?void 0:Ne.name),1)])):t.createCommentVNode("",!0),((Me=(ce=l.plan)==null?void 0:ce.speeds)==null?void 0:Me.length)>2?(t.openBlock(),t.createElementBlock("div",Mr,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=M=>{n.speedIndex=2,d.renderEchart()})},t.toDisplayString((Te=(st=(ge=(De=(me=l.plan)==null?void 0:me.speeds)==null?void 0:De[2])==null?void 0:ge.speed)==null?void 0:st.lane)==null?void 0:Te.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...M)=>d.handleRefresh&&d.handleRefresh(...M))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Dr,[(je=(ze=l.plan)==null?void 0:ze.speeds)!=null&&je.length?(t.openBlock(),t.createElementBlock("table",gr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:d.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Er),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("th",Ar,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(d.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ke=l.plan)==null?void 0:ke.speeds,(M,Ct)=>{var se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt,Pt,Ie,Ee,xe;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ct},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tr,t.toDisplayString(Ct+1),1),t.createElementVNode("td",Vr,t.toDisplayString((re=(se=M.speed)==null?void 0:se.lane)==null?void 0:re.name),1),t.createElementVNode("td",null,[M.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",xr,t.toDisplayString(`CP ${((Ve=(ye=M.speed)==null?void 0:ye.cpCopy)==null?void 0:Ve.speed)??((Pe=M.speed)==null?void 0:Pe.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",pr,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Ze=(Le=(We=M.speed)==null?void 0:We.extend)==null?void 0:Le.cps[0])==null?void 0:Ze.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((He=(Je=(_e=M.speed)==null?void 0:_e.extend)==null?void 0:Je.cps[1])==null?void 0:He.speed),1)]))]),t.createElementVNode("td",zr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Xe=M.speed)==null?void 0:Xe.distance,0)),1),(qe=(Ke=M.speed)==null?void 0:Ke.extend)!=null&&qe.distanceInECA?(t.openBlock(),t.createElementBlock("span",jr," ("+t.toDisplayString(d.roundPrecision(M.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime(($e=M.speed)==null?void 0:$e.eta,(ta=(ve=(ue=l.plan)==null?void 0:ue.leg)==null?void 0:ve.destination)==null?void 0:ta.lng,(la=(aa=(ea=l.plan)==null?void 0:ea.leg)==null?void 0:aa.destination)==null?void 0:la.lat,(sa=(da=(ia=(na=(oa=l.plan)==null?void 0:oa.leg)==null?void 0:na.destination)==null?void 0:ia.port)==null?void 0:da.timezone)==null?void 0:sa.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((ra=M.speed)==null?void 0:ra.eta)),1)]),t.createElementVNode("td",kr,t.toDisplayString(d.computeSuspend(M.speed)),1),t.createElementVNode("td",Ur,t.toDisplayString(d.roundPrecision((Na=M.speed)==null?void 0:Na.totalFoCons,3)),1),t.createElementVNode("td",Sr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ca=M.speed)==null?void 0:ca.totalDgoCons,3)),1),(ma=(Ma=M.speed)==null?void 0:Ma.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Cr," + "+t.toDisplayString(d.roundPrecision((Da=M.speed.extend)==null?void 0:Da.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",Or,t.toDisplayString((Ea=d.roundPrecision(((Ia=(ga=M==null?void 0:M.speed)==null?void 0:ga.cost)==null?void 0:Ia.total)/1e3,2))==null?void 0:Ea.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,Ct)),9,br),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Aa=(ya=l.weatherPrinciple)==null?void 0:ya.dangerous)==null?void 0:Aa.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Va=(Ta=l.weatherPrinciple)==null?void 0:Ta.severe)==null?void 0:Va.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(pa=(xa=l.weatherPrinciple)==null?void 0:xa.heavy)==null?void 0:pa.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((s=M.speed)==null?void 0:s.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",hr,"FO: "+t.toDisplayString((O=(C=M.speed)==null?void 0:C.cpCopy)==null?void 0:O.fo)+" / DO: "+t.toDisplayString((h=(b=M.speed)==null?void 0:b.cpCopy)==null?void 0:h.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((f=(Y=M.speed)==null?void 0:Y.extend)==null?void 0:f.cps[0].fo)+" / "+t.toDisplayString((P=(B=M.speed)==null?void 0:B.extend)==null?void 0:P.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((H=(J=M.speed)==null?void 0:J.extend)==null?void 0:H.cps[0].dgo)+" / "+t.toDisplayString((K=(X=M.speed)==null?void 0:X.extend)==null?void 0:K.cps[1].dgo),1)],64))]),t.createElementVNode("td",Yr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((q=M.speed)==null?void 0:q.totalHrs,1)),1),(nt=(ot=M.speed)==null?void 0:ot.extend)!=null&&nt.hoursInECA?(t.openBlock(),t.createElementBlock("span",fr," ("+t.toDisplayString(d.roundPrecision(M.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((it=M.speed)==null?void 0:it.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((xt=M.speed)==null?void 0:xt.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((pt=M.speed)==null?void 0:pt.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(d.roundPrecision(((jt=(zt=M==null?void 0:M.speed)==null?void 0:zt.cost)==null?void 0:jt.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(d.roundPrecision(((Pt=(kt=M==null?void 0:M.speed)==null?void 0:kt.cost)==null?void 0:Pt.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",wr,t.toDisplayString(d.computeCostDiff(l.plan,Ct)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((Ie=M.speed)==null?void 0:Ie.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((Ee=M.speed)==null?void 0:Ee.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((xe=M.speed)==null?void 0:xe.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Rr,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),d.showCost?(t.openBlock(),t.createElementBlock("span",Br,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Ce=d.roundPrecision((Se=(Ue=l.plan)==null?void 0:Ue.voyage)==null?void 0:Se.dailyHire,0))==null?void 0:Ce.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((he=d.roundPrecision((be=(Oe=l.plan)==null?void 0:Oe.voyage)==null?void 0:be.priceFO,0))==null?void 0:he.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Qe=d.roundPrecision((fe=(Ye=l.plan)==null?void 0:Ye.voyage)==null?void 0:fe.priceDGO,0))==null?void 0:Qe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[t.createElementVNode("div",Pr,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Wr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Fe=(Be=(Re=(we=l.plan.speeds)==null?void 0:we[n.speedIndex])==null?void 0:Re.speed)==null?void 0:Be.lane)==null?void 0:Fe.name),1)]),((ja=(Ge=l.plan)==null?void 0:Ge.speeds)==null?void 0:ja.length)>1?(t.openBlock(),t.createElementBlock("div",Lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ka=l.plan)==null?void 0:ka.speeds,(M,Ct)=>{var se,re;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:t.normalizeClass(["route-item",n.speedIndex===Ct?"active":""]),onClick:ye=>{n.speedIndex=Ct,d.renderEchart()}},t.toDisplayString((re=(se=M.speed)==null?void 0:se.lane)==null?void 0:re.name),11,Zr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_r,[n.editable?(t.openBlock(),t.createBlock(y,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[5]||(e[5]=M=>n.advisory=M),class:"editor",height:"120px",onBlur:e[6]||(e[6]=M=>d.handleCommit(M))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...M)=>d.handleEdit&&d.handleEdit(...M)),innerHTML:n.advisory},null,40,Jr))]),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-c1569d5f>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-c1569d5f>Time</div><div class="cell-item flex" data-v-c1569d5f>Nav</div><div class="cell-item flex" data-v-c1569d5f>Dist <span class="text-units" data-v-c1569d5f>(nm)</span></div>',4)),(Sa=(Ua=l.plan)==null?void 0:Ua.voyage)!=null&&Sa.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Oa=(Ca=l.plan)==null?void 0:Ca.voyage)!=null&&Oa.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",qr,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",$r,[(ha=(ba=l.plan)==null?void 0:ba.speeds)!=null&&ha.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((wa=(Qa=(fa=(Ya=l.plan)==null?void 0:Ya.speeds)==null?void 0:fa[n.speedIndex])==null?void 0:Qa.speed)==null?void 0:wa.argv,(Pa=(Ga=(Fa=(Ba=(Ra=l.plan)==null?void 0:Ra.speeds)==null?void 0:Ba[n.speedIndex])==null?void 0:Fa.speed)==null?void 0:Ga.sample)==null?void 0:Pa.wps),(M,Ct)=>{var se,re,ye,Ve;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"cell-row"},[t.createElementVNode("div",ur,[M.isResume?(t.openBlock(),t.createElementBlock("div",vr,"Resume")):(t.openBlock(),t.createElementBlock("div",tN,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(M)),1),M.pilot?(t.openBlock(),t.createElementBlock("span",eN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",aN,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(M.eta))+" ",1),M.cp?(t.openBlock(),t.createElementBlock("span",lN,"[cp: "+t.toDisplayString(M.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),Ct?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(d.computeNav(M)),1)):(t.openBlock(),t.createElementBlock("div",nN)),Ct?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(d.roundPrecision(M.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",dN)),(re=(se=l.plan)==null?void 0:se.voyage)!=null&&re.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ct?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(d.roundPrecision(M.avgSpd??M.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Ve=(ye=l.plan)==null?void 0:ye.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ct?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(d.computeCog(M.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),Ct?(t.openBlock(),t.createElementBlock("div",MN,t.toDisplayString(d.computeMemo(M)),1)):(t.openBlock(),t.createElementBlock("div",mN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",DN,[(La=(Wa=l.plan)==null?void 0:Wa.speeds)!=null&&La.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Ha=(Ja=(_a=(Za=l.plan)==null?void 0:Za.speeds)==null?void 0:_a[n.speedIndex])==null?void 0:Ja.speed)==null?void 0:Ha.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(M,Ct)=>{var se,re;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ct?"active":""]),onClick:ye=>{n.speedIndex=Ct,d.renderEchart()}},t.toDisplayString((re=(se=M==null?void 0:M.speed)==null?void 0:se.lane)==null?void 0:re.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN,"* "+t.toDisplayString(d.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",pN,[e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,jN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(ol=(ll=l.plan)==null?void 0:ll.voyage)!=null&&ol.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((rl=(sl=(dl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:dl.speed)==null?void 0:sl.sample)==null?void 0:rl.hours,(M,Ct)=>{var se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt;return t.openBlock(),t.createElementBlock("tr",{key:Ct},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(M.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",UN,t.toDisplayString(d.computeLat(M.lat))+", "+t.toDisplayString(d.computeLng(M.lng)),1)]),t.createElementVNode("td",SN,[(re=(se=M.meteo)==null?void 0:se.wind)!=null&&re.kts?(t.openBlock(),t.createElementBlock("span",CN,t.toDisplayString((Ve=(ye=M.meteo)==null?void 0:ye.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(We=(Pe=M.meteo)==null?void 0:Pe.wind)!=null&&We.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Ze=(Le=M.meteo)==null?void 0:Le.wind)==null?void 0:Ze.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",ON,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(M))},t.toDisplayString(d.roundPrecision((Je=(_e=M.meteo)==null?void 0:_e.wind)==null?void 0:Je.kts,1)),3),(Xe=(He=l.plan)==null?void 0:He.voyage)!=null&&Xe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",bN,t.toDisplayString((qe=(Ke=M.meteo)==null?void 0:Ke.wind)==null?void 0:qe.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ve=(ue=($e=M.meteo)==null?void 0:$e.wave)==null?void 0:ue.wd)==null?void 0:ve.height,1)),1),t.createElementVNode("td",hN,[(aa=(ea=(ta=M.meteo)==null?void 0:ta.wave)==null?void 0:ea.swell)!=null&&aa.height?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((na=(oa=(la=M.meteo)==null?void 0:la.wave)==null?void 0:oa.swell)==null?void 0:na.direction),1)):t.createCommentVNode("",!0),(sa=(da=(ia=M.meteo)==null?void 0:ia.wave)==null?void 0:da.swell)!=null&&sa.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(ca=(Na=(ra=M.meteo)==null?void 0:ra.wave)==null?void 0:Na.swell)==null?void 0:ca.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Da=(ma=(Ma=M.meteo)==null?void 0:Ma.wave)==null?void 0:ma.swell)==null?void 0:Da.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ea=(Ia=(ga=M.meteo)==null?void 0:ga.wave)==null?void 0:Ia.swell)==null?void 0:Ea.period,1)),1),t.createElementVNode("td",QN,[(Ta=(Aa=(ya=M.meteo)==null?void 0:ya.wave)==null?void 0:Aa.sig)!=null&&Ta.height?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((pa=(xa=(Va=M.meteo)==null?void 0:Va.wave)==null?void 0:xa.sig)==null?void 0:pa.direction),1)):t.createCommentVNode("",!0),(O=(C=(s=M.meteo)==null?void 0:s.wave)==null?void 0:C.sig)!=null&&O.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(Y=(h=(b=M.meteo)==null?void 0:b.wave)==null?void 0:h.sig)==null?void 0:Y.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(M))},t.toDisplayString(d.roundPrecision((P=(B=(f=M.meteo)==null?void 0:f.wave)==null?void 0:B.sig)==null?void 0:P.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((X=(H=(J=M.meteo)==null?void 0:J.wave)==null?void 0:H.sig)==null?void 0:X.period,1)),1),t.createElementVNode("td",BN,[(q=(K=M.meteo)==null?void 0:K.current)!=null&&q.kts?(t.openBlock(),t.createElementBlock("span",FN,t.toDisplayString((nt=(ot=M.meteo)==null?void 0:ot.current)==null?void 0:nt.direction),1)):t.createCommentVNode("",!0),(xt=(it=M.meteo)==null?void 0:it.current)!=null&&xt.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(zt=(pt=M.meteo)==null?void 0:pt.current)==null?void 0:zt.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((kt=(jt=M.meteo)==null?void 0:jt.current)==null?void 0:kt.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(M.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const fi=pe(ws,[["render",PN],["__scopeId","data-v-c1569d5f"]]),WN={install(o){o.component("PlanReport",fi)}},C3="",LN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},ZN={class:"cover-box"},_N={class:"cover-content"},JN={class:"cover-title"},HN={class:"cover-info"},XN={class:"info-item"},KN={class:"info-item"},qN={class:"info-item"},$N={style:{"font-weight":"600"}},uN={class:"info-item"},vN={style:{"font-weight":"600"}},tc={class:"info-item"},ec={key:0},ac={key:1},lc={class:"info-item"},oc={class:"info-item"},nc={key:0},ic={key:1},dc={class:"info-item"},sc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,d){var m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q;return t.openBlock(),t.createElementBlock("div",ZN,[t.createElementVNode("div",_N,[t.createElementVNode("div",JN,t.toDisplayString(l.name),1),t.createElementVNode("div",HN,[t.createElementVNode("div",XN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(m=l.report)==null?void 0:m.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",KN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",qN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",$N,t.toDisplayString((y=(c=l.report)==null?void 0:c.vessel)==null?void 0:y.name),1)]),t.createElementVNode("div",uN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(g=(a=l.report)==null?void 0:a.departure)!=null&&g.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((p=(j=l.report)==null?void 0:j.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(d.computePosition((E=l.report)==null?void 0:E.departure)),1))]),t.createElementVNode("div",lc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((k=(T=l.report)==null?void 0:T.departure)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(V=(I=l.report)==null?void 0:I.arrival)!=null&&V.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((U=(z=l.report)==null?void 0:z.arrival)==null?void 0:U.portName),1)):(t.openBlock(),t.createElementBlock("span",ic,t.toDisplayString(d.computePosition((D=l.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",dc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((F=(R=l.report)==null?void 0:R.arrival)==null?void 0:F.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((Q=(S=l.report)==null?void 0:S.voyage)==null?void 0:Q.loadCondition),1)])])])])}const cc=pe(LN,[["render",Nc],["__scopeId","data-v-293846e4"]]),O3="",Mc={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return Dt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=Dt(o).diff(Dt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return et.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return et.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return et.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,N)=>{var m,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(c=>{const y={time:Dt(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Dt(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(y)});const d=(r=(m=l==null?void 0:l.inventory)==null?void 0:m.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-position"},zc={key:0},jc={key:1},kc={class:"phase-cp"},Uc={class:"orm-report-table"},Sc={class:"phase-conclusion"},Cc={class:"item-conclusion bg-blue-light-2"},Oc={class:"value align-left"},bc={key:0,class:"text-secondary align-right"},hc={key:0},Yc={key:1},fc={key:2},Qc={key:1,class:"text-secondary"},wc={key:2,class:"value"},Rc={key:0},Bc={class:"gain"},Fc={key:1},Gc={class:"lost"},Pc={key:2},Wc={class:"item-conclusion bg-blue-light-2"},Lc={class:"value align-left"},Zc={key:0,class:"text-secondary"},_c={key:0},Jc={key:1},Hc={key:2},Xc={key:1,class:"text-secondary"},Kc={key:2,class:"value"},qc={key:0},$c={class:"gain"},uc={key:1},vc={class:"lost"},tM={key:2},eM={class:"item-conclusion bg-blue-light-2"},aM={class:"value align-left"},lM={key:0,class:"text-secondary"},oM={key:0},nM={key:1},iM={key:2},dM={key:1,class:"text-secondary"},sM={key:2,class:"value"},rM={key:0},NM={class:"gain"},cM={key:1},MM={class:"lost"},mM={key:2},DM={key:0,class:"exclusion-block"},gM={style:{margin:"8px 0"}},IM={class:"orm-report-table"},EM={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},yM={class:"sub-title"},AM=["innerHTML"],TM={class:"section segment-section"},VM={class:"segment-summary"},xM={class:"segment-index text-left"},pM={class:"segment-position"},zM={key:0},jM={key:1},kM={class:"segment-position"},UM={key:0},SM={key:1},CM={class:"orm-report-table"},OM={class:"good-wx"},bM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},fM={class:"good-wx"},QM={class:"good-wx"},wM={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={class:"good-wx"},GM={class:"good-wx"},PM={class:"good-wx"},WM={class:"good-wx"},LM={class:"good-wx"},ZM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},_M={key:0},JM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},HM={key:2,class:"segment-speed"},XM={class:"row"},KM={class:"speed-right row"},qM={class:"speed"},$M={key:1,class:"speed"},uM={key:0,class:"speed"},vM={class:"speed"},tm={class:"speed"},em={class:"speed"},am={key:0,class:"under"},lm={key:1,class:"over"},om={class:"row"},nm={class:"speed-right formula flex-space"},im={key:0},dm={key:3,class:"segment-speed"},sm={class:"row"},rm={class:"speed-right row"},Nm={class:"speed"},cm={class:"speed"},Mm={key:0,class:"under"},mm={key:1,class:"over"},Dm={class:"row"},gm={class:"speed-right formula row"},Im={class:"segment-formula"},Em={class:"sub-title"},ym={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Am={class:"formula-block"},Tm={class:"formula-item flex-evenly bg-blue-light"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"240px"}},Um={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},Cm={class:"formula-right flex-evenly"},Om={class:"fraction",style:{width:"240px"}},bm={class:"formula-desc"},hm={class:"flex-end"},Ym={class:"flex-end"},fm={class:"flex-end"},Qm={key:0,class:"formula-block"},wm={class:"formula-item flex-evenly bg-blue-light"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item flex-center bg-blue-light"},Zm={class:"formula-left flex-space"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"200px"}},Hm={class:"formula-item formula-conclusion bg-blue-light"},Xm={key:0,class:"flex-evenly",style:{width:"500px"}},Km={key:1,class:"flex-evenly",style:{width:"500px"}},qm={class:"flex-center"},$m={key:1,class:"formula-conclusion bg-blue-light"},um={class:"segment-formula"},vm={class:"sub-title"},tD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},eD={class:"formula-block"},aD={class:"formula-item flex-evenly bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"240px"}},nD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},iD={key:0,class:"flex-end text-tips"},dD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"200px"}},mD={class:"formula-item flex-center bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"300px"}},ID={class:"formula-item flex-center bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"300px"}},AD={class:"sub-title"},TD={key:0,class:"formula-block"},VD={key:0,class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"60px"}},zD={class:"fraction",style:{width:"60px"}},jD={class:"formula-item flex-evenly bg-blue-light"},kD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},CD={key:0},OD={class:"formula-item flex-evenly bg-blue-light"},bD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item flex-evenly bg-blue-light"},QD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"150px"}},RD={class:"fraction",style:{width:"150px"}},BD={class:"formula-item formula-conclusion bg-blue-light"},FD={class:"flex-evenly",style:{width:"500px"}},GD={key:0,class:"flex-evenly"},PD={class:"fraction"},WD={class:"flex-evenly",style:{width:"700px"}},LD={key:0,class:"flex-evenly",style:{width:"500px"}},ZD={class:"fraction",style:{width:"140px"}},_D={key:1,class:"formula-item formula-conclusion bg-blue-light"},JD={class:"header-block"},HD={class:"bg-block"},XD={class:"block-title"},KD={key:0,class:"formula-block"},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={key:0},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ig={class:"formula-right flex-evenly"},dg={class:"fraction",style:{width:"150px"}},sg={class:"fraction",style:{width:"150px"}},rg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Ng={key:0,class:"flex-evenly",style:{width:"500px"}},cg={key:1,class:"flex-evenly",style:{width:"700px"}},Mg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function mg(o,e,l,N,n,d){var r,c,y;const m=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",mc,[t.createElementVNode("div",Dc,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",gc,[t.createElementVNode("div",Ic,t.toDisplayString(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,g)=>{var j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft;return t.openBlock(),t.createElementBlock("div",{key:"summary"+g,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(g+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(w,_t)=>{var Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt;return t.openBlock(),t.createElementBlock("div",{key:_t,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[(Lt=w==null?void 0:w.departure)!=null&&Lt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((Zt=w==null?void 0:w.departure)==null?void 0:Zt.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(d.computeLat((x=w==null?void 0:w.departure)==null?void 0:x.lat).pretty)+", "+t.toDisplayString(d.computeLng((Qt=w==null?void 0:w.departure)==null?void 0:Qt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((wt=w==null?void 0:w.departure)==null?void 0:wt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",pc,[(Rt=w==null?void 0:w.arrival)!=null&&Rt.portName?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((Bt=w==null?void 0:w.arrival)==null?void 0:Bt.portName),1)):(t.openBlock(),t.createElementBlock("span",jc,t.toDisplayString(d.computeLat((Ft=w==null?void 0:w.arrival)==null?void 0:Ft.lat).pretty)+", "+t.toDisplayString(d.computeLng((Gt=w==null?void 0:w.arrival)==null?void 0:Gt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Wt=w==null?void 0:w.arrival)==null?void 0:Wt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",kc,[t.createElementVNode("table",Uc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((E=(p=a==null?void 0:a.extend)==null?void 0:p.cp)==null?void 0:E.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(k=(T=a==null?void 0:a.extend)==null?void 0:T.cp)==null?void 0:k.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(V=(I=a==null?void 0:a.extend)==null?void 0:I.cp)==null?void 0:V.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((U=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:U.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((R=(D=a==null?void 0:a.extend)==null?void 0:D.cp)==null?void 0:R.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Sc,[t.createElementVNode("div",Cc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Oc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",bc,[((F=a==null?void 0:a.timeConclusion)==null?void 0:F.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",hc,"Time Gained")):((S=a==null?void 0:a.timeConclusion)==null?void 0:S.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",wc,[((Q=a==null?void 0:a.timeConclusion)==null?void 0:Q.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Rc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Fc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Gc,t.toDisplayString((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Pc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Lc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Zc,[((u=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:u.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",_c,"FO Saving")):((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Hc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Kc,[((G=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.fo)==null?void 0:G.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",qc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",$c,t.toDisplayString((Nt=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:Nt.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",uc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",vc,t.toDisplayString((yt=(Et=a==null?void 0:a.fuelConclusion)==null?void 0:Et.fo)==null?void 0:yt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",tM,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",eM,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",aM,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",lM,[((Tt=(At=a==null?void 0:a.fuelConclusion)==null?void 0:At.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",oM,"DO/GO Saving")):((A=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:A.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",nM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",iM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",dM,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",sM,[((Mt=(ct=a==null?void 0:a.fuelConclusion)==null?void 0:ct.dgo)==null?void 0:Mt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",rM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",NM,t.toDisplayString((Ot=(_=a==null?void 0:a.fuelConclusion)==null?void 0:_.dgo)==null?void 0:Ot.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((ht=(bt=a==null?void 0:a.fuelConclusion)==null?void 0:bt.dgo)==null?void 0:ht.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",cM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",MM,t.toDisplayString((ft=(Yt=a==null?void 0:a.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:ft.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",mM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",DM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",gM,[t.createElementVNode("table",IM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,g)=>(t.openBlock(),t.createElementBlock("tr",{key:g},[t.createElementVNode("td",null,t.toDisplayString(g+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",EM,[t.createElementVNode("div",yM," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((y=l.report)==null?void 0:y.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(m,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,AM))],2)],2),t.createElementVNode("div",TM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,g)=>{var j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt,_,Ot,bt,ht,Yt,ft,w,_t,Lt,Zt,x,Qt,wt,Rt,Bt,Ft,Gt,Wt,Jt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,dt,at,de,Ne,ce,Me,me,De,ge,st,Te,ze,je,ke,Ue,Se,Ce,Oe,be,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,ja,ka,Ua,Sa,Ca,Oa,ba,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl,M,Ct,se,re,ye,Ve,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,s,C,O,b,h,Y,f,B,P,J,H,X,K,q,ot,nt,it,xt,pt,zt,jt,kt,Pt,Ie,Ee,xe,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,jl,kl,Ul,Sl,Cl,Ol,bl,hl,Yl,fl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,ro,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,So,Co,Oo,bo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,dn,sn,rn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,Cn,On,bn,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,di,si,ri,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:g,class:"segment-block"},[t.createElementVNode("div",VM,[t.createElementVNode("div",xM,"Voyage Analysis Seg. "+t.toDisplayString(g+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(Ut,zl)=>{var Nl,pl,Ai,Ti,Vi,xi,pi,zi,ji,ki;return t.openBlock(),t.createElementBlock("div",{key:zl,class:"segment-row text-secondary"},[t.createElementVNode("div",pM,[(Nl=Ut==null?void 0:Ut.departure)!=null&&Nl.portName?(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString((pl=Ut==null?void 0:Ut.departure)==null?void 0:pl.portName),1)):(t.openBlock(),t.createElementBlock("span",jM,t.toDisplayString(d.computeLat((Ai=Ut==null?void 0:Ut.departure)==null?void 0:Ai.lat).pretty)+", "+t.toDisplayString(d.computeLng((Ti=Ut==null?void 0:Ut.departure)==null?void 0:Ti.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Vi=Ut==null?void 0:Ut.departure)==null?void 0:Vi.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",kM,[(xi=Ut==null?void 0:Ut.arrival)!=null&&xi.portName?(t.openBlock(),t.createElementBlock("span",UM,t.toDisplayString((pi=Ut==null?void 0:Ut.arrival)==null?void 0:pi.portName),1)):(t.openBlock(),t.createElementBlock("span",SM,t.toDisplayString(d.computeLat((zi=Ut==null?void 0:Ut.arrival)==null?void 0:zi.lat).pretty)+", "+t.toDisplayString(d.computeLng((ji=Ut==null?void 0:Ut.arrival)==null?void 0:ji.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ki=Ut==null?void 0:Ut.arrival)==null?void 0:ki.utcTime))+")",1)])])}),128)),t.createElementVNode("table",CM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",OM,t.toDisplayString((E=(p=a==null?void 0:a.goodWx)==null?void 0:p.outEca)==null?void 0:E.distance),1),t.createElementVNode("td",bM,t.toDisplayString((k=(T=a==null?void 0:a.goodWx)==null?void 0:T.inEca)==null?void 0:k.distance),1),t.createElementVNode("td",null,t.toDisplayString((V=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:V.distance),1),t.createElementVNode("td",null,t.toDisplayString((U=(z=a==null?void 0:a.allWx)==null?void 0:z.inEca)==null?void 0:U.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((R=(D=a==null?void 0:a.goodWx)==null?void 0:D.outEca)==null?void 0:R.time),1),t.createElementVNode("td",YM,t.toDisplayString((S=(F=a==null?void 0:a.goodWx)==null?void 0:F.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((Z=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:Z.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((u=($=a==null?void 0:a.goodWx)==null?void 0:$.outEca)==null?void 0:u.avgSpd)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.inEca)==null?void 0:tt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((G=(lt=a==null?void 0:a.allWx)==null?void 0:lt.outEca)==null?void 0:G.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(rt=a==null?void 0:a.allWx)==null?void 0:rt.inEca)==null?void 0:Nt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.outEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((yt=(Et=a==null?void 0:a.goodWx)==null?void 0:Et.inEca)==null?void 0:yt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(At=a==null?void 0:a.allWx)==null?void 0:At.outEca)==null?void 0:Tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(Vt=a==null?void 0:a.allWx)==null?void 0:Vt.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((Mt=(ct=a==null?void 0:a.goodWx)==null?void 0:ct.outEca)==null?void 0:Mt.avgFoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((Ot=(_=a==null?void 0:a.goodWx)==null?void 0:_.inEca)==null?void 0:Ot.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=a==null?void 0:a.allWx)==null?void 0:bt.outEca)==null?void 0:ht.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ft=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.inEca)==null?void 0:ft.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",GM,t.toDisplayString(((_t=(w=a==null?void 0:a.goodWx)==null?void 0:w.outEca)==null?void 0:_t.sumDgoCons)||"--"),1),t.createElementVNode("td",PM,t.toDisplayString(((Zt=(Lt=a==null?void 0:a.goodWx)==null?void 0:Lt.inEca)==null?void 0:Zt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(x=a==null?void 0:a.allWx)==null?void 0:x.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Rt=(wt=a==null?void 0:a.allWx)==null?void 0:wt.inEca)==null?void 0:Rt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",WM,t.toDisplayString(((Ft=(Bt=a==null?void 0:a.goodWx)==null?void 0:Bt.outEca)==null?void 0:Ft.avgDgoCons)||"--"),1),t.createElementVNode("td",LM,t.toDisplayString(((Wt=(Gt=a==null?void 0:a.goodWx)==null?void 0:Gt.inEca)==null?void 0:Wt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Jt=a==null?void 0:a.allWx)==null?void 0:Jt.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",ZM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[g],(Ut,zl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:zl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ut,(Nl,pl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:pl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",_M,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Nl.utc,d.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[g])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",JM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",HM,[t.createElementVNode("div",XM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KM,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ne=(de=l.report)==null?void 0:de.weather)!=null&&Ne.disableWxFactor&&((Me=(ce=l.report)==null?void 0:ce.weather)!=null&&Me.disableCFactor)?(t.openBlock(),t.createElementBlock("span",uM,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((st=a==null?void 0:a.goodWx)==null?void 0:st.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Te=a==null?void 0:a.goodWx)==null?void 0:Te.avgCf)>0?(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf:`(${(je=a==null?void 0:a.goodWx)==null?void 0:je.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((ke=a==null?void 0:a.goodWx)==null?void 0:ke.pfmSpd)+" (kts)",1)],64)):(Se=(Ue=l.report)==null?void 0:Ue.weather)!=null&&Se.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.avgWf)>0?(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf:`(${(he=a==null?void 0:a.goodWx)==null?void 0:he.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),(Fe=(Be=l.report)==null?void 0:Be.weather)!=null&&Fe.favorableCur&&((Ge=a==null?void 0:a.goodWx)==null?void 0:Ge.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ja=a==null?void 0:a.goodWx)==null?void 0:ja.avgCf)>0?(ka=a==null?void 0:a.goodWx)==null?void 0:ka.avgCf:`(${(Ua=a==null?void 0:a.goodWx)==null?void 0:Ua.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",em,t.toDisplayString((Sa=a==null?void 0:a.goodWx)==null?void 0:Sa.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",$M,t.toDisplayString((at=a==null?void 0:a.goodWx)==null?void 0:at.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",qM,t.toDisplayString((dt=a==null?void 0:a.goodWx)==null?void 0:dt.pfmSpd)+" (kts)",1)],64))],64)),(Oa=(Ca=l.report)==null?void 0:Ca.voyage)!=null&&Oa.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ba=a==null?void 0:a.goodWx)==null?void 0:ba.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",am,"(Under-performance)")):t.createCommentVNode("",!0),((ha=a==null?void 0:a.goodWx)==null?void 0:ha.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",om,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nm,[(fa=(Ya=l.report)==null?void 0:Ya.weather)!=null&&fa.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Fa=(Ba=l.report)==null?void 0:Ba.weather)!=null&&Fa.disableWxFactor&&((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.disableCFactor)?(t.openBlock(),t.createElementBlock("label",im,"GW Average Speed")):(La=(Wa=l.report)==null?void 0:Wa.weather)!=null&&La.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(_a=(Za=l.report)==null?void 0:Za.weather)!=null&&_a.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ha=(Ja=l.report)==null?void 0:Ja.weather)!=null&&Ha.favorableCur&&((Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(wa=(Qa=l.report)==null?void 0:Qa.weather)!=null&&wa.favorableCur&&((Ra=a==null?void 0:a.goodWx)==null?void 0:Ra.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",sm,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rm,[(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.allWx)==null?void 0:$a.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((il=a==null?void 0:a.allWx)==null?void 0:il.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((dl=a==null?void 0:a.allWx)==null?void 0:dl.avgWf)>0?(sl=a==null?void 0:a.allWx)==null?void 0:sl.avgWf:`(${(rl=a==null?void 0:a.allWx)==null?void 0:rl.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",cm,t.toDisplayString((M=a==null?void 0:a.allWx)==null?void 0:M.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((ua=a==null?void 0:a.allWx)==null?void 0:ua.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((va=a==null?void 0:a.allWx)==null?void 0:va.avgCf)>0?(tl=a==null?void 0:a.allWx)==null?void 0:tl.avgCf:`(${(el=a==null?void 0:a.allWx)==null?void 0:el.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((al=a==null?void 0:a.allWx)==null?void 0:al.avgWf)>0?(ll=a==null?void 0:a.allWx)==null?void 0:ll.avgWf:`(${(ol=a==null?void 0:a.allWx)==null?void 0:ol.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Nm,t.toDisplayString((nl=a==null?void 0:a.allWx)==null?void 0:nl.pfmSpd)+" (kts)",1)],64)),(se=(Ct=l.report)==null?void 0:Ct.voyage)!=null&&se.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((re=a==null?void 0:a.allWx)==null?void 0:re.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Mm,"(Under-performance)")):t.createCommentVNode("",!0),((ye=a==null?void 0:a.allWx)==null?void 0:ye.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",mm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Dm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gm,[(Pe=(Ve=l.report)==null?void 0:Ve.weather)!=null&&Pe.favorableCur&&((We=a==null?void 0:a.allWx)==null?void 0:We.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(g+1)+" Time Analysis",1),(Ze=(Le=l.report)==null?void 0:Le.weather)!=null&&Ze.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ym,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Je=(_e=l.report)==null?void 0:_e.weather)!=null&&Je.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Xe=(He=a==null?void 0:a.extend)==null?void 0:He.cp)==null?void 0:Xe.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((qe=(Ke=l.report)==null?void 0:Ke.weather)!=null&&qe.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ue=($e=a==null?void 0:a.extend)==null?void 0:$e.cp)==null?void 0:ue.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Um,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ta=(ve=a==null?void 0:a.extend)==null?void 0:ve.cp)==null?void 0:ta.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Cm,[t.createElementVNode("div",Om,[t.createElementVNode("div",null,t.toDisplayString((aa=(ea=l.report)==null?void 0:ea.weather)!=null&&aa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(oa=(la=a==null?void 0:a.extend)==null?void 0:la.cp)==null?void 0:oa.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:300px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Lost</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(a)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Gained</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(c)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(a)</div></div></div>',1))]),t.createElementVNode("div",bm,[t.createElementVNode("div",hm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ia=(na=a==null?void 0:a.extend)==null?void 0:na.cp)==null?void 0:ia.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Ym,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(sa=(da=a==null?void 0:a.extend)==null?void 0:da.cp)==null?void 0:sa.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",fm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Na=(ra=a==null?void 0:a.extend)==null?void 0:ra.cp)==null?void 0:Na.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ma=(ca=a==null?void 0:a.extend)==null?void 0:ca.cp)==null?void 0:Ma.speed,"Under"))+" kts) ",1)])]),(ma=a==null?void 0:a.goodWx)!=null&&ma.distance?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",wm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((ga=(Da=l.report)==null?void 0:Da.weather)!=null&&ga.noExtrapolation?(Ia=a==null?void 0:a.goodWx)==null?void 0:Ia.distance:(Ea=a==null?void 0:a.allWx)==null?void 0:Ea.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ya=a==null?void 0:a.goodWx)==null?void 0:ya.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Aa=a==null?void 0:a.timeConclusion)==null?void 0:Aa.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Va=(Ta=a==null?void 0:a.extend)==null?void 0:Ta.cp)==null?void 0:Va.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=l.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?(s=a==null?void 0:a.goodWx)==null?void 0:s.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Lm,[t.createElementVNode("div",Zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((B=(f=l.report)==null?void 0:f.weather)!=null&&B.noExtrapolation?(P=a==null?void 0:a.goodWx)==null?void 0:P.distance:(J=a==null?void 0:a.allWx)==null?void 0:J.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((H=a==null?void 0:a.timeConclusion)==null?void 0:H.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Hm,[((K=a==null?void 0:a.timeConclusion)==null?void 0:K.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Xm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ot=a==null?void 0:a.timeConclusion)==null?void 0:ot.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nt=a==null?void 0:a.timeConclusion)==null?void 0:nt.timeLost)+" (hrs)",1)])):((it=a==null?void 0:a.timeConclusion)==null?void 0:it.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Km,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((xt=a==null?void 0:a.timeConclusion)==null?void 0:xt.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((pt=a==null?void 0:a.timeConclusion)==null?void 0:pt.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((zt=a==null?void 0:a.timeConclusion)==null?void 0:zt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",qm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.conclusionStatus)==="Lost"?"lost":((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",$m,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",um,[t.createElementVNode("div",vm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(g+1)+" Consumption Analysis",1),(Ee=(Ie=l.report)==null?void 0:Ie.weather)!=null&&Ee.noExtrapolation?(t.openBlock(),t.createElementBlock("span",tD,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((Ml=(xe=l.report)==null?void 0:xe.weather)!=null&&Ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",nD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(ml=a.extend)==null?void 0:ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",iD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",ND,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:240px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Over-consumption</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(d)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(e)</div></div><div class="flex-space" style="width:200px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Saving</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(f)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(d)</div></div></div>',1)),((kl=(jl=a.extend)==null?void 0:jl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",mD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",gD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Sl=(Ul=l.report)==null?void 0:Ul.weather)!=null&&Sl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ID,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",yD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=(Cl=l.report)==null?void 0:Cl.weather)!=null&&Ol.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",AD,"Seg. "+t.toDisplayString(g+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",TD,[((Yl=(hl=a==null?void 0:a.goodWx)==null?void 0:hl.inEca)==null?void 0:Yl.distance)>0?(t.openBlock(),t.createElementBlock("div",VD,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(fl=a==null?void 0:a.goodWx)==null?void 0:fl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",jD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",CD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",OD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((No=(ro=a.fuelConclusion)==null?void 0:ro.fo)==null?void 0:No.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l.report)==null?void 0:co.weather)!=null&&Mo.noExtrapolation?(mo=a==null?void 0:a.goodWx)==null?void 0:mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",BD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",FD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(Co=(So=a==null?void 0:a.goodWx)==null?void 0:So.inEca)!=null&&Co.distance?(t.openBlock(),t.createElementBlock("div",GD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Oo=a==null?void 0:a.goodWx)==null?void 0:Oo.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l.report)==null?void 0:fo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",WD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",LD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(dn=a==null?void 0:a.goodWx)==null?void 0:dn.distance:(sn=a==null?void 0:a.allWx)==null?void 0:sn.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Mn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:Mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(mn=a==null?void 0:a.fuelConclusion)==null?void 0:mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",_D,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",XD,"Seg. "+t.toDisplayString(g+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",KD,[t.createElementVNode("div",qD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",tg,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Cn=(Sn=a==null?void 0:a.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:Cn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((On=a==null?void 0:a.goodWx)==null?void 0:On.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((hn=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:hn.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",eg,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((fn=(Yn=l.report)==null?void 0:Yn.weather)!=null&&fn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",ng,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ig,[t.createElementVNode("div",dg,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",sg,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",rg,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",cg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:Mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(mi=a==null?void 0:a.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",Mg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const Dg=pe(Mc,[["render",mg],["__scopeId","data-v-c0778c3d"]]),b3="",gg={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLng(){return function(o){return et.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return et.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?et.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,d,m,r,c,y,a,g;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((r=(m=this.report)==null?void 0:m.weather)==null?void 0:r.showSwell)??!0,this.showWave=((y=(c=this.report)==null?void 0:c.weather)==null?void 0:y.showWave)??!0,this.showWaterTemp=((g=(a=this.report)==null?void 0:a.weather)==null?void 0:g.waterTempSwitch)||!1}}},Ig={class:"report-inventory"},Eg={class:"section summary-section"},yg={class:"summary-block"},Ag={class:"orm-report-table inventory-table"},Tg={class:"label",rowspan:"4"},Vg={class:"section inventory-section"},xg={class:"orm-report-table inventory-table detail"},pg=["colspan"],zg={key:0,class:"label",colspan:"2"},jg={key:0,class:"label",rowspan:"2"},kg={key:1,class:"label",rowspan:"2"},Ug={key:2,class:"label",rowspan:"2"},Sg={key:3,class:"label",colspan:"2"},Cg={key:4,class:"label",rowspan:"2"},Og={key:5,class:"label",colspan:"2"},bg={key:6,class:"label",rowspan:"2"},hg={key:7,class:"label",rowspan:"2"},Yg={key:8,class:"label",rowspan:"2"},fg={key:0,class:"label"},Qg={key:1,class:"label"},wg={key:2,class:"label"},Rg={key:3,class:"label"},Bg={class:"summary-tbody"};function Fg(o,e,l,N,n,d){var m;return t.openBlock(),t.createElementBlock("div",Ig,[t.createElementVNode("div",Eg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",yg,[t.createElementVNode("table",Ag,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((m=l.report)==null?void 0:m.segments,(r,c)=>{var y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tg,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=r==null?void 0:r.allWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=r==null?void 0:r.allWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=r==null?void 0:r.goodWx)==null?void 0:T.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=r==null?void 0:r.goodWx)==null?void 0:k.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((I=r==null?void 0:r.goodWx)==null?void 0:I.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=r==null?void 0:r.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((U=r==null?void 0:r.badWx)==null?void 0:U.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((R=r==null?void 0:r.badWx)==null?void 0:R.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((F=r==null?void 0:r.badWx)==null?void 0:F.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((S=r==null?void 0:r.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=r==null?void 0:r.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Vg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",xg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,pg),l.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",jg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",kg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",Ug,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",Cg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Og,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(t.openBlock(),t.createElementBlock("th",bg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",hg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Yg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",fg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Qg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",wg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Rg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",Bg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,c)=>{var y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((y=r.noon)!=null&&y.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=r.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(g=r.meteo)==null?void 0:g.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(p=r.meteo)==null?void 0:p.wind)==null?void 0:E.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((I=(k=(T=r.meteo)==null?void 0:T.wave)==null?void 0:k.wd)==null?void 0:I.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((U=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.swell)==null?void 0:U.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((F=(R=(D=r.meteo)==null?void 0:D.wave)==null?void 0:R.swell)==null?void 0:F.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((W=(Q=(S=r.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Z=(L=r.meteo)==null?void 0:L.current)==null?void 0:Z.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":(($=r.meteo)==null?void 0:$.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((u=r.meteo)==null?void 0:u.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((v=r.meteo)==null?void 0:v.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((tt=r.meteo)==null?void 0:tt.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Gg=pe(gg,[["render",Fg],["__scopeId","data-v-2182dbc0"]]),h3="",Pg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":et.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+et.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Oi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Oi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Oi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var g,j,p,E,T,k;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const m=this.inventory.filter(I=>I.noon)||[],r=[];this.inventory.forEach((I,V)=>{var z,U;V===0&&r.push(I.utc),I.type==="EOSP"&&((z=this.inventory[V+1])==null?void 0:z.type)==="BOSP"&&(r.push(I.utc),r.push((U=this.inventory[V+1])==null?void 0:U.utc)),V===this.inventory.length-1&&r.push(I.utc)}),r.forEach((I,V)=>{if(V%2===0){const z=Dt(r[V+1]).diff(Dt(r[V]),"minute",!0);for(let U=0;U<=z+1;U++)e.push(this.computeUTCTime(Dt(r[V]).clone().utc().add(U,"m").format(),"MM-DD/HHmm[Z]"))}}),m.forEach((I,V)=>{var U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt;const z=this.computeUTCTime(I.utc,"MM-DD/HHmm[Z]");if(I.noon&&!o.some(G=>G.slice(0,5)===I.utc.slice(5,10))&&o.push(z),V===m.length-1&&(o=o.filter(G=>G.slice(0,5)!==I.utc.slice(5,10)),o.push(z)),n=Math.ceil(((U=I.noon)==null?void 0:U.foCons)>n?(D=I.noon)==null?void 0:D.foCons:n),n=Math.ceil(((R=I.cp)==null?void 0:R.fo)>n?(F=I.cp)==null?void 0:F.fo:n),d=Math.ceil(((S=I.noon)==null?void 0:S.dgoCons)>d?(Q=I.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=I.cp)==null?void 0:W.dgo)>d?(L=I.cp)==null?void 0:L.dgo:d),l.push([z,(Z=I.noon)==null?void 0:Z.avgSpd,($=I.noon)==null?void 0:$.foCons,(u=I.noon)==null?void 0:u.dgoCons,I.avgSpdCalc,I.cp.speed,I.goodWx&&!I.excluded?100:0,I.cp.dgo,I.cp.fo,I.excluded?100:0]),V<m.length-1){const G=m[V+1];l.push([z,(v=G.noon)==null?void 0:v.avgSpd,(tt=G.noon)==null?void 0:tt.foCons,(lt=G.noon)==null?void 0:lt.dgoCons,G.avgSpdCalc,G.cp.speed,G.goodWx&&!G.excluded?100:0,G.cp.dgo,G.cp.fo,G.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((I,V)=>V===0||V===o.length-1||V%c===0);const y={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:N.dateTime,y:N.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:N.dateTime,y:N.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(j=(g=this.report)==null?void 0:g.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.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:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.spdFoConsChart)==null||p.setOption(y);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(T=(E=this.report)==null?void 0:E.weather)!=null&&T.believeRptDistance?N.noonAvgSpd:N.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:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(k=this.spdDgoConsChart)==null||k.setOption(a)},renderWxCurrChart(){var p;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],m=[];d.forEach((E,T)=>{var k,I;T===0&&m.push(E.utc),E.type==="EOSP"&&((k=d[T+1])==null?void 0:k.type)==="BOSP"&&(m.push(E.utc),m.push((I=d[T+1])==null?void 0:I.utc)),T===d.length-1&&m.push(E.utc)}),m.forEach((E,T)=>{if(T%2===0){const k=Dt(m[T+1]).diff(Dt(m[T]),"minute",!0);for(let I=0;I<=k+1;I++)e.push(this.computeUTCTime(Dt(m[T]).clone().utc().add(I,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((E,T)=>{var I,V,z,U,D,R,F,S,Q,W,L,Z,$,u,v,tt,lt,G,rt,Nt,gt,It,Et,yt,At,Tt,Vt,A,ct,Mt;const k=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(_=>_.slice(0,5)===E.utc.slice(5,10))&&o.push(k),T===d.length-1&&(o=o.filter(_=>_.slice(0,5)!==E.utc.slice(5,10)),o.push(k)),n=Math.ceil(((z=(V=(I=E.meteo)==null?void 0:I.wave)==null?void 0:V.sig)==null?void 0:z.height)>n?(R=(D=(U=E.meteo)==null?void 0:U.wave)==null?void 0:D.sig)==null?void 0:R.height:n),l.push([k,((F=E.noon)==null?void 0:F.windBF)||((Q=(S=E.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(L=(W=E.meteo)==null?void 0:W.wind)==null?void 0:L.scale,($=(Z=E.meteo)==null?void 0:Z.wind)==null?void 0:$.direction,(u=E.noon)==null?void 0:u.seasHt,(lt=(tt=(v=E.meteo)==null?void 0:v.wave)==null?void 0:tt.sig)==null?void 0:lt.height,E.dailyAvgCf??((G=l[l.length-1])==null?void 0:G[N.anlyCurFct]),E.goodWx&&!E.excluded?20:0,E.excluded?20:0]),T<d.length-1){const _=d[T+1];l.push([k,((rt=E.noon)==null?void 0:rt.windBF)||((gt=(Nt=E.meteo)==null?void 0:Nt.wind)==null?void 0:gt.scale),(Et=(It=_.meteo)==null?void 0:It.wind)==null?void 0:Et.scale,(At=(yt=_.meteo)==null?void 0:yt.wind)==null?void 0:At.direction,(Tt=_.noon)==null?void 0:Tt.seasHt,(ct=(A=(Vt=E.meteo)==null?void 0:Vt.wave)==null?void 0:A.sig)==null?void 0:ct.height,_.dailyAvgCf??((Mt=l[l.length-1])==null?void 0:Mt[N.anlyCurFct]),_.goodWx&&!_.excluded?20:0,_.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((E,T)=>T===0||T===o.length-1||T%r===0);let c=-2.5,y=2.5,a=1,g=5;c<-2.5||y>2.5?(c=Math.floor(this.findMinValue(l,6)/5)*5,y=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(c),Math.abs(y)])/5),g=Math.ceil(Math.abs(c)/a)+Math.ceil(Math.abs(y)/a)):(a=.5,c=Math.floor(this.findMinValue(l,6)/.5)*a,y=2.5,g=Math.abs(c)/a+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:y,interval:a,splitNumber:g,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(g-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:g,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(E,T)=>{if(E>=0)return E}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(g-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:g,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(E,T)=>{if(E>=0)return E},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.currChart)==null||p.setOption(j)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Wg={class:"report-summary"},Lg={class:"section chart-section"},Zg={class:"chart-block"},_g={ref:"spdFoConsChart",class:"chart"},Jg={ref:"spdDgoConsChart",class:"chart"},Hg={ref:"currChart",class:"chart"},Xg={class:"section map-section"},Kg={class:"map-block"},qg={class:"flex-space"},$g={class:"voyage-block bg-blue-light"},ug={class:"flex-space label-block",style:{width:"100%"}},vg={style:{"text-transform":"uppercase"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},lI={class:"flex-space label-block",style:{width:"100%"}},oI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nI={class:"flex-space label-block",style:{width:"100%"}},iI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},sI={class:"flex-end",style:{width:"160px"}},rI={class:"flex-space label-block",style:{width:"100%"}},NI={key:0,class:"flex-end",style:{flex:"1"}},cI={key:1,class:"flex-end",style:{flex:"1"}},MI={class:"flex-end",style:{width:"160px"}},mI={class:"flex-space label-block",style:{width:"100%"}},DI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},gI=["src"];function II(o,e,l,N,n,d){var m,r,c,y,a,g,j,p,E,T,k,I,V,z,U,D,R,F,S,Q,W,L;return t.openBlock(),t.createElementBlock("div",Wg,[t.createElementVNode("div",Lg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Zg,[t.createElementVNode("div",_g,null,512),t.createElementVNode("div",Jg,null,512),t.createElementVNode("div",Hg,null,512)])]),t.createElementVNode("div",Xg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Kg,[t.createElementVNode("div",qg,[t.createElementVNode("div",$g,[t.createElementVNode("div",ug,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",vg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tI,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",eI,t.toDisplayString((r=(m=l.report)==null?void 0:m.vessel)==null?void 0:r.name),1),t.createElementVNode("span",aI,"("+t.toDisplayString((y=(c=l.report)==null?void 0:c.vessel)==null?void 0:y.type)+")",1)]),t.createElementVNode("div",lI,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",oI,t.toDisplayString((g=(a=l.report)==null?void 0:a.voyage)==null?void 0:g.number),1)]),t.createElementVNode("div",nI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(p=(j=l.report)==null?void 0:j.departure)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",iI,t.toDisplayString((T=(E=l.report)==null?void 0:E.departure)==null?void 0:T.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(d.computePosition((k=l.report)==null?void 0:k.departure)),1)),t.createElementVNode("span",sI,t.toDisplayString(d.computeUTCTime((I=l.report.departure)==null?void 0:I.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",rI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(V=l.report)==null?void 0:V.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",NI,t.toDisplayString((D=(U=l.report)==null?void 0:U.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",cI,t.toDisplayString(d.computePosition((R=l.report)==null?void 0:R.arrival)),1)),t.createElementVNode("span",MI,t.toDisplayString(d.computeUTCTime((S=(F=l.report)==null?void 0:F.arrival)==null?void 0:S.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",mI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",DI,t.toDisplayString((W=(Q=l.report)==null?void 0:Q.voyage)==null?void 0:W.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-a2260a56><div data-v-a2260a56>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>08/12</div><div data-v-a2260a56><div data-v-a2260a56>08 - Day of the month</div><div data-v-a2260a56>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-a2260a56></i></div><div data-v-a2260a56><div data-v-a2260a56>Wind from N (000)</div><div data-v-a2260a56>Each bard = 10 kts</div><div data-v-a2260a56>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>W 4</div><div data-v-a2260a56>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div class="good-wx" data-v-a2260a56>Date</div><div data-v-a2260a56>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(L=l.report)==null?void 0:L.chartUrl,alt:""},null,8,gI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-a2260a56><div class="header-block" data-v-a2260a56><div class="bg-block" data-v-a2260a56><i class="iconfont icon-baobiao" data-v-a2260a56></i><div class="block-title" data-v-a2260a56>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>1. Good Weather Method</div><div class="method-body" data-v-a2260a56> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-a2260a56> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-a2260a56> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-a2260a56> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>4. “About”</div><div class="method-body" data-v-a2260a56> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-a2260a56> 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-a2260a56> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-a2260a56> 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-a2260a56><div class="method-title" data-v-a2260a56>6. Further reference materials</div><div class="method-body" data-v-a2260a56>Please send mail to <a href="mailto:op@ormwx.com" data-v-a2260a56>op@ormwx.com</a>.</div></div></div></div>',1))])}const EI=pe(Pg,[["render",II],["__scopeId","data-v-a2260a56"]]),Y3="",f3="",yI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var c,y;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((y=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:y.split("\\n")).forEach(g=>{const j=`<p>${g}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),m=(n==null?void 0:n.offsetHeight)||0,r=(d==null?void 0:d.offsetHeight)||0;if(m<=r){let g=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
2
2
  <div class="vrpt-date">Date: ${e.date}</div>
3
3
  <div class="vrpt-from">From: ${e.from}</div>
4
4
  <div class="vrpt-to">To: ${e.to}</div>