@idmui/extend 0.3.7 → 0.3.8

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")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios"],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))})(this,function(mt,t,kn,rl,Dt,zr,R,Un){"use strict";function jr(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,c.get?c:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const Sn=jr(zr),I4="",$a=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:kn.Editor,Toolbar:kn.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function kr(o,e,a,c,d,i){const g=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Ur,[t.withDirectives(t.createVNode(g,{editor:d.editor,"default-config":d.toolbarConfig,mode:d.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!a.disabled]]),t.createVNode(r,{modelValue:d.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>d.valueHtml=N),"default-config":d.editorConfig,mode:d.mode,class:"editor",style:t.normalizeStyle({height:a.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const sl=$a(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),fr={install(o){o.component("IdmEditor",sl)}},E4="";/*! Element Plus Icons Vue v2.3.2 */var Or=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Cr=Or,br=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),hr=br;const y4="",Yr={name:"PlanReport",components:{Editor:sl,IdmBrand:rl.IdmBrand,IdmLoading:rl.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,a,c){let d=0;return a&&e&&(d=R.LngLatHelper.guessTimeZoneOffset(e,a)),`${Dt(o).utcOffset(c??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,c,d,i,g;if(e===0)return"-";{const r=Dt((d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.eta).diff(Dt((g=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:g.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var a,c,d,i,g,r,N;if(e===0)return"-";{const T=Number((i=(d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((N=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:N.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const a=Number("1".padEnd(e+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const a=[];for(let c=0;c<(e==null?void 0:e.length);c++){const d=e[c],i=e[c-1];i&&(d.avgBearing=i.bearing),a.push(d),d.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:d.etd,eta:d.etd,isResume:!0,memo:`Stoppage: ${d.suspend}hrs`})}return a}},computeDegree(){return function(o,e,a){e=e%360;for(let c=0;c<17;c++)if(c*22.5+e+11.25>=360){let d=(16-c)*22.5;a||(d=d+180);let i="";return o==="wind"?i="var(--orm-wind)":o==="wave"?i="var(--orm-wave)":o==="swell"?i="var(--orm-swell)":o==="current"&&(i="var(--orm-current)"),`transform:rotate(${d}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(o,e=0){var i,g,r,N;const a=(N=(r=(g=(i=o==null?void 0:o.speeds)==null?void 0:i[e])==null?void 0:g.speed)==null?void 0:r.sample)==null?void 0:N.hours,c=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(Dt(d==null?void 0:d.eta).diff(Dt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,c;let e=0;return(c=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||c.forEach(d=>{e+=d.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":R.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>R.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>R.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,c,d,i,g,r,N,T,l,y,j,k,A,V,z,E,x,p;let e="";return(c=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&c.wind&&((i=(d=o.meteo)==null?void 0:d.wind)==null?void 0:i.scale)>=((r=(g=this.weatherPrinciple)==null?void 0:g.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&T.wind&&((y=(l=o.meteo)==null?void 0:l.wind)==null?void 0:y.scale)>((k=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:k.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((E=(z=o.meteo)==null?void 0:z.wind)==null?void 0:E.scale)===((p=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:p.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,c,d,i,g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C;let e="";return(c=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&c.sigWv&&((g=(i=(d=o.meteo)==null?void 0:d.wave)==null?void 0:i.sig)==null?void 0:g.height)>=((N=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(l=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&l.sigWv&&((k=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:k.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(E=(z=this.weatherPrinciple)==null?void 0:z.heavy)!=null&&E.sigWv&&((S=(p=(x=o.meteo)==null?void 0:x.wave)==null?void 0:p.sig)==null?void 0:S.height)>=((C=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:C.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Sn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,x,p,S,D,C,b;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(C=(D=(S=(p=(x=(E=this.plan)==null?void 0:E.speeds)==null?void 0:x[this.speedIndex])==null?void 0:p.speed)==null?void 0:S.sample)==null?void 0:D.hours)==null||C.forEach(U=>{var Y,Q,w,G,P,W,L,_,h,J;const f=U.meteo;if(f){const X=Dt(f.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((Q=(Y=f.wave)==null?void 0:Y.sig)==null?void 0:Q.height)>c?(G=(w=f.wave)==null?void 0:w.sig)==null?void 0:G.height:c),e.push([X,(P=f.wind)==null?void 0:P.kts,(L=(W=f.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=f.wind)==null?void 0:_.direction,(h=f.wind)==null?void 0:h.degree,(J=f.wind)==null?void 0:J.scale,U.cFactor,U.wFactor,U.speed])}});const d=Math.max(...e.map(U=>U[a.speed])),i=Math.max(...e.map(U=>U[a.windSpeed])),g=Math.min(...e.map(U=>U[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(U=>U[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(U=>U[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,l=Math.ceil(c/5/.5)*.5,y=Math.ceil((r-g)/5/.5)*.5,j=5*N,k=5*T,A=5*l,V=g+5*y,z={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:k,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval:l,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:V,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(b=this.echart)==null||b.setOption(z)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Fr={class:"col"},Br={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={class:"label-block"},Zr={class:"text"},Hr={class:"col"},_r={class:"label-block"},Jr={key:0},Xr={key:1},ur={style:{"margin-left":"16px"}},Kr={class:"label-block"},qr={key:0},$r={key:1},vr={style:{"margin-left":"16px"}},ts={class:"label-block"},es={class:"text"},as={class:"section chart-section"},ls=["src"],os={class:"legends text-tips"},is={class:"legend"},ns={key:0,class:"legend"},ds={key:1,class:"legend"},rs={key:1,class:"empty"},ss={class:"section comparison-section"},Ns={key:0,class:"orm-report-table",style:{"font-size":"12px"}},cs={key:0},Ms=["rowspan"],ms={key:0},Ds={key:1},gs={rowspan:"2"},Is={rowspan:"2"},Es={key:0},ys={key:1},As={rowspan:"1"},Ts={key:0},Vs={rowspan:"2"},xs={rowspan:"2"},ps={rowspan:"2"},zs={key:0},js={key:0},Ss=["rowspan"],Us={key:0},ks={rowspan:"1"},fs={key:0},Os={key:0},Cs={key:1},bs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},hs={key:0},Ys={class:"section waypoint-section"},Qs={class:"header-block"},ws={class:"bg-block"},Rs={class:"block-title"},Fs={key:0,class:"flex-end",style:{flex:"1"}},Bs=["onClick"],Gs={class:"advisory bg-blue-light-2"},Ps=["innerHTML"],Ws={class:"major-waypoint"},Ls={class:"major-header bg-blue-light-2"},Zs={key:0,class:"cell-item flex"},Hs={key:1,class:"cell-item flex"},_s={class:"major-body"},Js={class:"cell-item flex",style:{flex:"2.5"}},Xs={key:0,class:"flex-center"},us={key:1,class:"flex-center"},Ks={key:0,style:{"margin-left":"3px"}},qs={class:"cell-item flex",style:{flex:"1.5"}},$s={key:0,style:{"margin-left":"4px","font-weight":"600"}},vs={key:0,class:"cell-item flex offset"},tN={key:1,class:"cell-item flex nbsp"},eN={key:2,class:"cell-item flex offset"},aN={key:3,class:"cell-item flex nbsp"},lN={key:0,class:"cell-item flex offset"},oN={key:1,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:6,class:"cell-item flex offset"},rN={key:7,class:"cell-item flex nbsp"},sN={class:"section forecast-section"},NN={style:{"page-break-inside":"avoid"}},cN={class:"header-block"},MN={class:"bg-block"},mN={class:"block-title"},DN={key:0,class:"flex-end",style:{flex:"1"}},gN=["onClick"],IN={class:"echart-block"},EN={ref:"echart",class:"echart"},yN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},AN={class:"orm-report-table",style:{"font-size":"12px"}},TN=["colspan"],VN={key:0},xN={class:"flex-center"},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={key:0},UN={class:"degree-box"},kN={key:0},fN={key:2},ON={class:"degree-box"},CN={key:0},bN={key:2},hN={class:"degree-box"},YN={key:0},QN={key:2};function wN(o,e,a,c,d,i){var l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,F,H,Ot,Jt,Xt,ut,Kt,qt,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,fe,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,va;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(l=a.plan)==null?void 0:l.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Br,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((k=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:k.name),1)]),t.createElementVNode("div",Pr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Wr,t.toDisplayString((z=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:z.name)+" ("+t.toDisplayString((S=(p=(x=(E=a.plan)==null?void 0:E.voyage)==null?void 0:x.vessel)==null?void 0:p.vesselType)==null?void 0:S.name)+")",1)]),t.createElementVNode("div",Lr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Zr,t.toDisplayString(((C=(D=a.plan)==null?void 0:D.voyage)==null?void 0:C.voyNum)||((U=(b=a.plan)==null?void 0:b.voyage)==null?void 0:U.number)),1)])]),t.createElementVNode("div",Hr,[t.createElementVNode("div",_r,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(Q=(Y=(f=a.plan)==null?void 0:f.leg)==null?void 0:Y.departure)!=null&&Q.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((P=(G=(w=a.plan)==null?void 0:w.leg)==null?void 0:G.departure)==null?void 0:P.name),1)):(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString(i.computePosition((L=(W=a.plan)==null?void 0:W.leg)==null?void 0:L.departure)),1)),t.createElementVNode("span",ur,t.toDisplayString(i.computeUTCTime(((J=(h=(_=a.plan)==null?void 0:_.leg)==null?void 0:h.departure)==null?void 0:J.atd)||((q=(K=(X=a.plan)==null?void 0:X.leg)==null?void 0:K.departure)==null?void 0:q.etd)||((et=(tt=(v=($=a.plan)==null?void 0:$.speeds)==null?void 0:v[d.speedIndex])==null?void 0:tt.speed)==null?void 0:et.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",Kr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(ot=(lt=(at=a.plan)==null?void 0:at.leg)==null?void 0:lt.destination)!=null&&ot.name?(t.openBlock(),t.createElementBlock("span",qr,t.toDisplayString((gt=(Z=(it=a.plan)==null?void 0:it.leg)==null?void 0:Z.destination)==null?void 0:gt.name),1)):(t.openBlock(),t.createElementBlock("span",$r,t.toDisplayString(i.computePosition((Et=(It=a.plan)==null?void 0:It.leg)==null?void 0:Et.destination)),1)),t.createElementVNode("span",vr,t.toDisplayString(i.computeUTCTime(((Ct=(O=(At=(yt=a.plan)==null?void 0:yt.speeds)==null?void 0:At[d.speedIndex])==null?void 0:O.speed)==null?void 0:Ct.ata)||((pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[d.speedIndex])==null?void 0:xt.speed)==null?void 0:pt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",ts,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",es,t.toDisplayString((jt=(zt=a.plan)==null?void 0:zt.voyage)==null?void 0:jt.loadCondition),1)])])]),t.createElementVNode("div",as,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")])],-1)),(St=a.plan)!=null&&St.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ls)]),t.createElementVNode("div",os,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-a8548dde><span class="dangerous" data-v-a8548dde></span><span data-v-a8548dde>Danger</span></div><div class="legend" data-v-a8548dde><span class="severe" data-v-a8548dde></span><span data-v-a8548dde>Severe</span></div><div class="legend" data-v-a8548dde><span class="heavy" data-v-a8548dde></span><span data-v-a8548dde>Heavy</span></div>',3)),t.createElementVNode("div",is,[e[14]||(e[14]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((ht=(bt=(ft=(kt=(Ut=a.plan)==null?void 0:Ut.speeds)==null?void 0:kt[0])==null?void 0:ft.speed)==null?void 0:bt.lane)==null?void 0:ht.name),1)]),((Qt=(Yt=a.plan)==null?void 0:Yt.speeds)==null?void 0:Qt.length)>1?(t.openBlock(),t.createElementBlock("div",ns,[e[15]||(e[15]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Gt=(Bt=(Ft=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[1])==null?void 0:Ft.speed)==null?void 0:Bt.lane)==null?void 0:Gt.name),1)])):t.createCommentVNode("",!0),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>2?(t.openBlock(),t.createElementBlock("div",ds,[e[16]||(e[16]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((n=(_t=(Ht=(Zt=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[2])==null?void 0:Ht.speed)==null?void 0:_t.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",rs,[t.createElementVNode("span",null,[e[18]||(e[18]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ss,[(H=(F=a.plan)==null?void 0:F.speeds)!=null&&H.length?(t.openBlock(),t.createElementBlock("table",Ns,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",cs,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ms),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ot=a.plan)==null?void 0:Ot.speeds,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el,ll,ol,il,nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createElementVNode("tr",null,[t.createElementVNode("td",gs,t.toDisplayString(u+1),1),t.createElementVNode("td",Is,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Es,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((ue=m.speed)==null?void 0:ue.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",ys,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(Ke=m.speed)==null?void 0:Ke.extend)==null?void 0:qe.cps[0])==null?void 0:$e.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((ea=(ta=(ve=m.speed)==null?void 0:ve.extend)==null?void 0:ta.cps[1])==null?void 0:ea.speed),1)]))]),t.createElementVNode("td",As,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",Ts," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(ca=(Na=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:Na.destination)==null?void 0:ca.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",Vs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",xs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",ps,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",zs," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",js,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,u)),9,Ss),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(fa=(ka=a.weatherPrinciple)==null?void 0:ka.severe)==null?void 0:fa.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(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ca=(Oa=a.weatherPrinciple)==null?void 0:Oa.heavy)==null?void 0:Ca.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((ba=m.speed)==null?void 0:ba.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Us,"FO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.cpCopy)==null?void 0:Ya.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Fa=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Fa.cps[0].fo)+" / "+t.toDisplayString((Ga=(Ba=m.speed)==null?void 0:Ba.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Wa=(Pa=m.speed)==null?void 0:Pa.extend)==null?void 0:Wa.cps[0].dgo)+" / "+t.toDisplayString((Za=(La=m.speed)==null?void 0:La.extend)==null?void 0:Za.cps[1].dgo),1)],64))]),t.createElementVNode("td",ks,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ha=m.speed)==null?void 0:Ha.totalHrs,1)),1),(Ja=(_a=m.speed)==null?void 0:_a.extend)!=null&&Ja.hoursInECA?(t.openBlock(),t.createElementBlock("span",fs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Xa=m.speed)==null?void 0:Xa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((ua=m.speed)==null?void 0:ua.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((Ka=m.speed)==null?void 0:Ka.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Os,t.toDisplayString(i.roundPrecision(((tl=(qa=m==null?void 0:m.speed)==null?void 0:qa.cost)==null?void 0:tl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((ll=(el=m==null?void 0:m.speed)==null?void 0:el.cost)==null?void 0:ll.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Cs,t.toDisplayString(i.computeCostDiff(a.plan,u)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((ol=m.speed)==null?void 0:ol.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((il=m.speed)==null?void 0:il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((nl=m.speed)==null?void 0:nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",bs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",hs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ut=i.roundPrecision((Xt=(Jt=a.plan)==null?void 0:Jt.voyage)==null?void 0:Xt.dailyHire,0))==null?void 0:ut.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString(($t=i.roundPrecision((qt=(Kt=a.plan)==null?void 0:Kt.voyage)==null?void 0:qt.priceFO,0))==null?void 0:$t.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((oe=i.roundPrecision((ee=(B=a.plan)==null?void 0:B.voyage)==null?void 0:ee.priceDGO,0))==null?void 0:oe.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",Ys,[t.createElementVNode("div",Qs,[t.createElementVNode("div",ws,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Rs,"Advisory & Major Waypoint of Route "+t.toDisplayString((re=(de=(ne=(ie=a.plan.speeds)==null?void 0:ie[d.speedIndex])==null?void 0:ne.speed)==null?void 0:de.lane)==null?void 0:re.name),1),((Ne=(se=a.plan)==null?void 0:se.speeds)==null?void 0:Ne.length)>1?(t.openBlock(),t.createElementBlock("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ce=a.plan)==null?void 0:ce.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Bs)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Gs,[d.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Ps))]),t.createElementVNode("div",Ws,[t.createElementVNode("div",Ls,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-a8548dde>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-a8548dde>Time</div><div class="cell-item flex" data-v-a8548dde>Nav</div><div class="cell-item flex" data-v-a8548dde>Dist <span class="text-units" data-v-a8548dde>(nm)</span></div>',4)),(me=(Me=a.plan)==null?void 0:Me.voyage)!=null&&me.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Zs,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ge=(De=a.plan)==null?void 0:De.voyage)!=null&&ge.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hs,[...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",_s,[(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)!=null&&Ee.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ze=(Te=(Ae=(ye=a.plan)==null?void 0:ye.speeds)==null?void 0:Ae[d.speedIndex])==null?void 0:Te.speed)==null?void 0:ze.argv,(fe=(ke=(Ue=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:Ue.speed)==null?void 0:ke.sample)==null?void 0:fe.wps),(m,u)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:u,class:"cell-row"},[t.createElementVNode("div",Js,[m.isResume?(t.openBlock(),t.createElementBlock("div",Xs,"Resume")):(t.openBlock(),t.createElementBlock("div",us,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",Ks,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",qs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",$s,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),u?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",tN)),u?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",aN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[u?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",oN))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[u?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),u?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",rN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",sN,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",NN,[t.createElementVNode("div",cN,[t.createElementVNode("div",MN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",mN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((we=(Qe=(Ye=(he=(be=a.plan)==null?void 0:be.speeds)==null?void 0:he[d.speedIndex])==null?void 0:Ye.speed)==null?void 0:Qe.lane)==null?void 0:we.name),1),((Fe=(Re=a.plan)==null?void 0:Re.speeds)==null?void 0:Fe.length)>1?(t.openBlock(),t.createElementBlock("div",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Be=a.plan)==null?void 0:Be.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,gN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IN,[t.createElementVNode("div",EN,null,512)]),t.createElementVNode("div",yN,"* "+t.toDisplayString(i.computeModel((Pe=(I=(Ge=a.plan)==null?void 0:Ge.speeds)==null?void 0:I[d.speedIndex])==null?void 0:Pe.speed)),1)]),t.createElementVNode("table",AN,[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:(Le=(We=a.plan)==null?void 0:We.voyage)!=null&&Le.sendRptWithBF?3:2},"Wind",8,TN),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)),(He=(Ze=a.plan)==null?void 0:Ze.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",VN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=(ae=(Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)==null?void 0:ae.sample)==null?void 0:va.hours,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el;return t.openBlock(),t.createElementBlock("tr",{key:u},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",xN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",pN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(Ke=(ue=m.meteo)==null?void 0:ue.wind)!=null&&Ke.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",($e=(qe=m.meteo)==null?void 0:qe.wind)==null?void 0:$e.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",SN,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",UN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",kN,t.toDisplayString((ma=(Ma=(ca=m.meteo)==null?void 0:ca.wave)==null?void 0:Ma.swell)==null?void 0:ma.direction),1)):t.createCommentVNode("",!0),(Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)!=null&&Ia.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",ON,[(ka=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",CN,t.toDisplayString((Ca=(Oa=(fa=m.meteo)==null?void 0:fa.wave)==null?void 0:Oa.sig)==null?void 0:Ca.direction),1)):t.createCommentVNode("",!0),(Ya=(ha=(ba=m.meteo)==null?void 0:ba.wave)==null?void 0:ha.sig)!=null&&Ya.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",bN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Ba=(Fa=m.meteo)==null?void 0:Fa.wave)==null?void 0:Ba.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((La=(Wa=(Pa=m.meteo)==null?void 0:Pa.wave)==null?void 0:Wa.sig)==null?void 0:La.period,1)),1),t.createElementVNode("td",hN,[(Ha=(Za=m.meteo)==null?void 0:Za.current)!=null&&Ha.kts?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((Ja=(_a=m.meteo)==null?void 0:_a.current)==null?void 0:Ja.direction),1)):t.createCommentVNode("",!0),(ua=(Xa=m.meteo)==null?void 0:Xa.current)!=null&&ua.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(qa=(Ka=m.meteo)==null?void 0:Ka.current)==null?void 0:qa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",QN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((el=(tl=m.meteo)==null?void 0:tl.current)==null?void 0:el.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const fn=$a(Yr,[["render",wN],["__scopeId","data-v-a8548dde"]]),RN={install(o){o.component("PlanReport",fn)}},A4="",FN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).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)?"-":LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},BN={class:"cover-box"},GN={class:"cover-content"},PN={class:"cover-title"},WN={class:"cover-info"},LN={class:"info-item"},ZN={class:"info-item"},HN={style:{"font-weight":"600"}},_N={class:"info-item"},JN={style:{"font-weight":"600"}},XN={class:"info-item"},uN={key:0},KN={key:1},qN={class:"info-item"},$N={class:"info-item"},vN={key:0},tc={key:1},ec={class:"info-item"},ac={class:"info-item"},lc={class:"text"};function oc(o,e,a,c,d,i){var g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f;return t.openBlock(),t.createElementBlock("div",BN,[t.createElementVNode("div",GN,[t.createElementVNode("div",PN,t.toDisplayString(a.name),1),t.createElementVNode("div",WN,[e[8]||(e[8]=t.createElementVNode("div",{class:"info-item"},[t.createElementVNode("span",{class:"text-label"},"Reference No : "),t.createTextVNode("202202281130 ")],-1)),t.createElementVNode("div",LN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(a.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",ZN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",HN,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name)+" ("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",_N,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",JN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",XN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(y=(l=a.report)==null?void 0:l.departure)!=null&&y.name?(t.openBlock(),t.createElementBlock("span",uN,t.toDisplayString((k=(j=a.report)==null?void 0:j.departure)==null?void 0:k.portName),1)):(t.openBlock(),t.createElementBlock("span",KN,t.toDisplayString(i.computePosition((A=a.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",qN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((z=(V=a.report)==null?void 0:V.departure)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$N,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(E=a.report)==null?void 0:E.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",vN,t.toDisplayString((S=(p=a.report)==null?void 0:p.arrival)==null?void 0:S.portName),1)):(t.openBlock(),t.createElementBlock("span",tc,t.toDisplayString(i.computePosition((D=a.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",ec,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((b=(C=a.report)==null?void 0:C.arrival)==null?void 0:b.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ac,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",lc,t.toDisplayString((f=(U=a.report)==null?void 0:U.voyage)==null?void 0:f.loadCondition),1)])])])])}const ic=$a(FN,[["render",oc],["__scopeId","data-v-128bb092"]]),T4="",nc={name:"OrmVoyageSummary",components:{Editor:sl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return Dt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=Dt(o).diff(Dt(e),"hours",!0);return Math.round(a*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 a="";o!=null&&o.waveSwitch?a+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?a+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,e,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,a){if(o.consPercentage){if(e==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((a,c)=>{var g,r;a.excluded.detail.forEach(N=>{const T={time:Dt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Dt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(T)});const i=(r=(g=a==null?void 0:a.inventory)==null?void 0:g.sample)==null?void 0:r.hours.filter(N=>N.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},dc={class:"report-summary"},rc={class:"section weather-section"},sc={class:"definition bg-blue-light-2"},Nc={style:{"line-height":"1.5"}},cc={class:"section summary-section"},Mc={class:"phase-box"},mc={class:"phase-index"},Dc={class:"phase-position"},gc={key:0},Ic={key:1},Ec={class:"phase-position"},yc={key:0},Ac={key:1},Tc={class:"phase-cp"},Vc={class:"orm-report-table"},xc={class:"phase-conclusion"},pc={class:"item-conclusion bg-blue-light-2"},zc={class:"value align-left"},jc={key:0,class:"text-secondary align-right"},Sc={key:0},Uc={key:1},kc={key:2},fc={key:1,class:"text-secondary"},Oc={key:2,class:"value"},Cc={key:0},bc={class:"gain"},hc={key:1},Yc={class:"lost"},Qc={key:2},wc={class:"item-conclusion bg-blue-light-2"},Rc={class:"value align-left"},Fc={key:0,class:"text-secondary"},Bc={key:0},Gc={key:1},Pc={key:2},Wc={key:1,class:"text-secondary"},Lc={key:2,class:"value"},Zc={key:0},Hc={class:"gain"},_c={key:1},Jc={class:"lost"},Xc={key:2},uc={class:"item-conclusion bg-blue-light-2"},Kc={class:"value align-left"},qc={key:0,class:"text-secondary"},$c={key:0},vc={key:1},tM={key:2},eM={key:1,class:"text-secondary"},aM={key:2,class:"value"},lM={key:0},oM={class:"gain"},iM={key:1},nM={class:"lost"},dM={key:2},rM={key:0,class:"exclusion-block"},sM={style:{margin:"8px 0"}},NM={class:"orm-report-table"},cM=["innerHTML"],MM={class:"section segment-section"},mM={class:"segment-summary"},DM={class:"segment-index text-left"},gM={class:"segment-position"},IM={key:0},EM={key:1},yM={class:"segment-position"},AM={key:0},TM={key:1},VM={class:"orm-report-table"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={class:"good-wx"},UM={class:"good-wx"},kM={class:"good-wx"},fM={class:"good-wx"},OM={class:"good-wx"},CM={class:"good-wx"},bM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},QM={class:"good-wx"},wM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},RM={key:0},FM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},BM={key:2,class:"segment-speed"},GM={class:"row"},PM={class:"speed-right row"},WM={class:"speed"},LM={key:1,class:"speed"},ZM={key:0,class:"speed"},HM={class:"speed"},_M={class:"speed"},JM={class:"speed"},XM={key:2,class:"under"},uM={key:3,class:"over"},KM={class:"row"},qM={class:"speed-right formula flex-space"},$M={key:0},vM={key:3,class:"segment-speed"},tm={class:"row"},em={class:"speed-right row"},am={class:"speed"},lm={class:"speed"},om={key:2,class:"under"},im={key:3,class:"over"},nm={class:"row"},dm={class:"speed-right formula row"},rm={class:"segment-formula"},sm={class:"sub-title"},Nm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},cm={class:"formula-block"},Mm={class:"formula-item flex-evenly bg-blue-light"},mm={class:"formula-right flex-evenly"},Dm={class:"fraction",style:{width:"240px"}},gm={class:"formula-item flex-center bg-blue-light"},Im={class:"formula-left flex-space"},Em={class:"formula-right flex-evenly"},ym={class:"fraction",style:{width:"240px"}},Am={class:"formula-item flex-center bg-blue-light"},Tm={class:"formula-left flex-space"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-desc"},zm={class:"flex-end"},jm={class:"flex-end"},Sm={class:"flex-end"},Um={key:0,class:"formula-block"},km={class:"formula-item flex-evenly bg-blue-light"},fm={class:"formula-right flex-evenly"},Om={class:"fraction",style:{width:"200px"}},Cm={class:"formula-item flex-center bg-blue-light"},bm={class:"formula-left flex-space"},hm={class:"formula-right flex-evenly"},Ym={class:"fraction",style:{width:"200px"}},Qm={class:"formula-item flex-center bg-blue-light"},wm={class:"formula-left flex-space"},Rm={class:"formula-right flex-evenly"},Fm={class:"fraction",style:{width:"200px"}},Bm={class:"formula-item formula-conclusion bg-blue-light"},Gm={key:0,class:"flex-evenly",style:{width:"500px"}},Pm={key:1,class:"flex-evenly",style:{width:"500px"}},Wm={class:"flex-center"},Lm={key:1,class:"formula-conclusion bg-blue-light"},Zm={class:"segment-formula"},Hm={class:"sub-title"},_m={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Jm={class:"formula-block"},Xm={class:"formula-item flex-evenly bg-blue-light"},um={class:"formula-right flex-evenly"},Km={class:"fraction",style:{width:"240px"}},qm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},$m={key:0,class:"flex-end text-tips"},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"200px"}},iD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},rD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},cD={class:"sub-title"},MD={key:0,class:"formula-block"},mD={key:0,class:"formula-item flex-evenly bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"60px"}},ID={class:"fraction",style:{width:"60px"}},ED={class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"150px"}},TD={class:"fraction",style:{width:"150px"}},VD={key:0},xD={class:"formula-item flex-evenly bg-blue-light"},pD={class:"formula-right flex-evenly"},zD={class:"fraction",style:{width:"150px"}},jD={class:"fraction",style:{width:"150px"}},SD={class:"formula-item flex-evenly bg-blue-light"},UD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},fD={class:"fraction",style:{width:"150px"}},OD={class:"formula-item formula-conclusion bg-blue-light"},CD={class:"flex-evenly",style:{width:"500px"}},bD={key:0,class:"flex-evenly"},hD={class:"fraction"},YD={class:"flex-evenly",style:{width:"700px"}},QD={key:0,class:"flex-evenly",style:{width:"500px"}},wD={class:"fraction",style:{width:"140px"}},RD={key:1,class:"formula-item formula-conclusion bg-blue-light"},FD={class:"header-block"},BD={class:"bg-block"},GD={class:"block-title"},PD={key:0,class:"formula-block"},WD={class:"formula-item flex-evenly bg-blue-light"},LD={class:"formula-right flex-evenly"},ZD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},_D={key:0},JD={class:"formula-item flex-evenly bg-blue-light"},XD={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},KD={class:"fraction",style:{width:"150px"}},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},vD={class:"fraction",style:{width:"150px"}},tg={class:"fraction",style:{width:"150px"}},eg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ag={key:0,class:"flex-evenly",style:{width:"500px"}},lg={key:1,class:"flex-evenly",style:{width:"700px"}},og={key:1,class:"formula-item formula-conclusion bg-blue-light"};function ig(o,e,a,c,d,i){var r,N,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",dc,[t.createElementVNode("div",rc,[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",sc,[t.createElementVNode("div",Nc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",cc,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=a.report)==null?void 0:r.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At;return t.openBlock(),t.createElementBlock("div",{key:"summary"+y,class:"segment-box"},[t.createElementVNode("div",Mc,[t.createElementVNode("div",mc,"Seg."+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(O,Ct)=>{var Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",Dc,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",gc,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ic,t.toDisplayString(i.computeLat((xt=O==null?void 0:O.departure)==null?void 0:xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((pt=O==null?void 0:O.departure)==null?void 0:pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((zt=O==null?void 0:O.departure)==null?void 0:zt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Ec,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",yc,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",Ac,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((kt=O==null?void 0:O.arrival)==null?void 0:kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((ft=O==null?void 0:O.arrival)==null?void 0:ft.utcTime))+")",1)])])}),128)),t.createElementVNode("div",Tc,[t.createElementVNode("table",Vc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(k=l==null?void 0:l.extend)==null?void 0:k.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(z=(V=l==null?void 0:l.extend)==null?void 0:V.cp)==null?void 0:z.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(x=(E=l==null?void 0:l.extend)==null?void 0:E.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(p=l==null?void 0:l.extend)==null?void 0:p.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((C=(D=l==null?void 0:l.extend)==null?void 0:D.cp)==null?void 0:C.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",xc,[t.createElementVNode("div",pc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",zc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",jc,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Sc,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Uc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",kc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",fc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Oc,[((f=l==null?void 0:l.timeConclusion)==null?void 0:f.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Cc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",bc,t.toDisplayString((Y=l==null?void 0:l.timeConclusion)==null?void 0:Y.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Q=l==null?void 0:l.timeConclusion)==null?void 0:Q.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",hc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Yc,t.toDisplayString((w=l==null?void 0:l.timeConclusion)==null?void 0:w.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Qc,"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",Rc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Fc,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Bc,"FO Saving")):((L=(W=l==null?void 0:l.fuelConclusion)==null?void 0:W.fo)==null?void 0:L.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Gc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Pc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Wc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Lc,[((h=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:h.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Zc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Hc,t.toDisplayString((X=(J=l==null?void 0:l.fuelConclusion)==null?void 0:J.fo)==null?void 0:X.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((q=(K=l==null?void 0:l.fuelConclusion)==null?void 0:K.fo)==null?void 0:q.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",_c,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Jc,t.toDisplayString((v=($=l==null?void 0:l.fuelConclusion)==null?void 0:$.fo)==null?void 0:v.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Xc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Kc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",qc,[((et=(tt=l==null?void 0:l.fuelConclusion)==null?void 0:tt.dgo)==null?void 0:et.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",$c,"DO/GO Saving")):((lt=(at=l==null?void 0:l.fuelConclusion)==null?void 0:at.dgo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",tM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",eM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",aM,[((it=(ot=l==null?void 0:l.fuelConclusion)==null?void 0:ot.dgo)==null?void 0:it.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",oM,t.toDisplayString((gt=(Z=l==null?void 0:l.fuelConclusion)==null?void 0:Z.dgo)==null?void 0:gt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Et=(It=l==null?void 0:l.fuelConclusion)==null?void 0:It.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",iM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",nM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",dM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((N=a.report)==null?void 0:N.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",rM,[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",sM,[t.createElementVNode("table",NM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,y)=>(t.openBlock(),t.createElementBlock("tr",{key:y},[t.createElementVNode("td",null,t.toDisplayString(y+1),1),t.createElementVNode("td",null,t.toDisplayString(l.time),1),t.createElementVNode("td",null,t.toDisplayString(l.duration),1),t.createElementVNode("td",null,t.toDisplayString(l.distance),1),t.createElementVNode("td",null,t.toDisplayString(l.fo),1),t.createElementVNode("td",null,t.toDisplayString(l.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((T=a.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[d.editable?(t.openBlock(),t.createBlock(g,{key:0,modelValue:d.remarks,"onUpdate:modelValue":e[0]||(e[0]=l=>d.remarks=l),class:"editor",height:"120px",onBlur:e[1]||(e[1]=l=>i.handleCommit(l))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...l)=>i.handleEdit&&i.handleEdit(...l)),innerHTML:d.remarks},null,40,cM))],2)],2),t.createElementVNode("div",MM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,F,H,Ot,Jt,Xt,ut,Kt,qt,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,fe,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,va,m,u,vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el,ll,ol,il,nl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,kl,fl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Fl,Bl,Gl,Pl,Wl,Ll,Zl,Hl,al,ul,Kl,ql,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,So,Uo,ko,fo,Oo,Co,bo,ho,Yo,Qo,wo,Ro,Fo,Bo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,uo,Ko,qo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,fi,Oi,Ci,bi,hi,Yi,Qi,wi,Ri,Fi,Bi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,ui,s,nt,dt,rt,st,Nt,_l,Jl,Xl,xe,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn;return t.openBlock(),t.createElementBlock("div",{key:y,class:"segment-block"},[t.createElementVNode("div",mM,[t.createElementVNode("div",DM,"Voyage Analysis Seg. "+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(ct,qi)=>{var dl,Ki,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",gM,[(dl=ct==null?void 0:ct.departure)!=null&&dl.portName?(t.openBlock(),t.createElementBlock("span",IM,t.toDisplayString((Ki=ct==null?void 0:ct.departure)==null?void 0:Ki.portName),1)):(t.openBlock(),t.createElementBlock("span",EM,t.toDisplayString(i.computeLat((gn=ct==null?void 0:ct.departure)==null?void 0:gn.lat).pretty)+", "+t.toDisplayString(i.computeLng((In=ct==null?void 0:ct.departure)==null?void 0:In.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((En=ct==null?void 0:ct.departure)==null?void 0:En.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",yM,[(yn=ct==null?void 0:ct.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",AM,t.toDisplayString((An=ct==null?void 0:ct.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",TM,t.toDisplayString(i.computeLat((Tn=ct==null?void 0:ct.arrival)==null?void 0:Tn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Vn=ct==null?void 0:ct.arrival)==null?void 0:Vn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((xn=ct==null?void 0:ct.arrival)==null?void 0:xn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",VM,[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",xM,t.toDisplayString((A=(k=l==null?void 0:l.goodWx)==null?void 0:k.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",pM,t.toDisplayString((z=(V=l==null?void 0:l.goodWx)==null?void 0:V.inEca)==null?void 0:z.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(E=l==null?void 0:l.allWx)==null?void 0:E.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(p=l==null?void 0:l.allWx)==null?void 0:p.inEca)==null?void 0:S.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",zM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",jM,t.toDisplayString((U=(b=l==null?void 0:l.goodWx)==null?void 0:b.inEca)==null?void 0:U.time),1),t.createElementVNode("td",null,t.toDisplayString((Y=(f=l==null?void 0:l.allWx)==null?void 0:f.outEca)==null?void 0:Y.time),1),t.createElementVNode("td",null,t.toDisplayString((w=(Q=l==null?void 0:l.allWx)==null?void 0:Q.inEca)==null?void 0:w.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",SM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",UM,t.toDisplayString(((L=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:L.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((h=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:h.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((X=(J=l==null?void 0:l.allWx)==null?void 0:J.inEca)==null?void 0:X.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",kM,t.toDisplayString(((q=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:q.sumFoCons)||"--"),1),t.createElementVNode("td",fM,t.toDisplayString(((v=($=l==null?void 0:l.goodWx)==null?void 0:$.inEca)==null?void 0:v.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((et=(tt=l==null?void 0:l.allWx)==null?void 0:tt.outEca)==null?void 0:et.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(at=l==null?void 0:l.allWx)==null?void 0:at.inEca)==null?void 0:lt.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",OM,t.toDisplayString(((it=(ot=l==null?void 0:l.goodWx)==null?void 0:ot.outEca)==null?void 0:it.avgFoCons)||"--"),1),t.createElementVNode("td",CM,t.toDisplayString(((gt=(Z=l==null?void 0:l.goodWx)==null?void 0:Z.inEca)==null?void 0:gt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",hM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.inEca)==null?void 0:Vt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((pt=(xt=l==null?void 0:l.allWx)==null?void 0:xt.outEca)==null?void 0:pt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",YM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((ft=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.inEca)==null?void 0:ft.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=l==null?void 0:l.allWx)==null?void 0:bt.outEca)==null?void 0:ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=l==null?void 0:l.allWx)==null?void 0:Yt.inEca)==null?void 0:Qt.avgDgoCons)||"--"),1)])])]),(wt=l==null?void 0:l.goodWx)!=null&&wt.distance?(t.openBlock(),t.createElementBlock("table",wM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[y],(ct,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ct,(dl,Ki)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ki},[dl.goodWx?(t.openBlock(),t.createElementBlock("tr",RM,[t.createElementVNode("td",null,t.toDisplayString(dl.type)+" "+t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(dl),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(dl.utc,i.computePrevTime(dl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",FM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Ft=l==null?void 0:l.goodWx)!=null&&Ft.distance?(t.openBlock(),t.createElementBlock("div",BM,[t.createElementVNode("div",GM,[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",PM,[(Gt=(Bt=a.report)==null?void 0:Bt.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((ut=(Xt=a.report)==null?void 0:Xt.weather)!=null&&ut.disableCFactor)?(t.openBlock(),t.createElementBlock("span",ZM,t.toDisplayString((Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((B=l==null?void 0:l.goodWx)==null?void 0:B.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",HM,t.toDisplayString((ne=l==null?void 0:l.goodWx)==null?void 0:ne.pfmSpd)+" (kts)",1)],64)):(re=(de=a.report)==null?void 0:de.weather)!=null&&re.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((se=l==null?void 0:l.goodWx)==null?void 0:se.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ne=l==null?void 0:l.goodWx)==null?void 0:Ne.avgWf)>0?(ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgWf:`(${(Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_M,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",JM,t.toDisplayString((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Wt=(Pt=a.report)==null?void 0:Pt.weather)!=null&&Wt.favorableCur&&((Lt=l==null?void 0:l.goodWx)==null?void 0:Lt.avgCf)>0?(t.openBlock(),t.createElementBlock("span",LM,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",WM,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.pfmSpd)+" (kts)",1)],64))],64)),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",XM,"(Under-performance)")):t.createCommentVNode("",!0),((fe=l==null?void 0:l.goodWx)==null?void 0:fe.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",uM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KM,[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",qM,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Fe=(Re=a.report)==null?void 0:Re.weather)!=null&&Fe.disableCFactor)?(t.openBlock(),t.createElementBlock("label",$M,"GW Average Speed")):(Ge=(Be=a.report)==null?void 0:Be.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(he=(be=a.report)==null?void 0:be.weather)!=null&&he.favorableCur&&((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.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",vM,[t.createElementVNode("div",tm,[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",em,[(_e=(He=a.report)==null?void 0:He.weather)!=null&&_e.favorableCur&&((Je=l==null?void 0:l.allWx)==null?void 0:Je.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ve=l==null?void 0:l.allWx)==null?void 0:Ve.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ue=l==null?void 0:l.allWx)==null?void 0:ue.avgWf)>0?(Ke=l==null?void 0:l.allWx)==null?void 0:Ke.avgWf:`(${(qe=l==null?void 0:l.allWx)==null?void 0:qe.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",lm,t.toDisplayString(($e=l==null?void 0:l.allWx)==null?void 0:$e.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=l==null?void 0:l.allWx)==null?void 0:Xe.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ae=l==null?void 0:l.allWx)==null?void 0:ae.avgCf)>0?(va=l==null?void 0:l.allWx)==null?void 0:va.avgCf:`(${(m=l==null?void 0:l.allWx)==null?void 0:m.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((u=l==null?void 0:l.allWx)==null?void 0:u.avgWf)>0?(vt=l==null?void 0:l.allWx)==null?void 0:vt.avgWf:`(${(te=l==null?void 0:l.allWx)==null?void 0:te.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",am,t.toDisplayString((le=l==null?void 0:l.allWx)==null?void 0:le.pfmSpd)+" (kts)",1)],64)),((ve=l==null?void 0:l.allWx)==null?void 0:ve.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",om,"(Under-performance)")):t.createCommentVNode("",!0),((ta=l==null?void 0:l.allWx)==null?void 0:ta.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",im,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",nm,[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",dm,[(aa=(ea=a.report)==null?void 0:ea.weather)!=null&&aa.favorableCur&&((la=l==null?void 0:l.allWx)==null?void 0:la.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",rm,[t.createElementVNode("div",sm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),(ia=(oa=a.report)==null?void 0:oa.weather)!=null&&ia.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Nm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",cm,[t.createElementVNode("div",Mm,[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",mm,[t.createElementVNode("div",Dm,[t.createElementVNode("div",null,t.toDisplayString((da=(na=a.report)==null?void 0:na.weather)!=null&&da.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",gm,[t.createElementVNode("div",Im,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(sa=(ra=l==null?void 0:l.extend)==null?void 0:ra.cp)==null?void 0:sa.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",null,t.toDisplayString((ca=(Na=a.report)==null?void 0:Na.weather)!=null&&ca.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ma=(Ma=l==null?void 0:l.extend)==null?void 0:Ma.cp)==null?void 0:ma.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ga=(Da=l==null?void 0:l.extend)==null?void 0:Da.cp)==null?void 0:ga.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Ea=(Ia=a.report)==null?void 0:Ia.weather)!=null&&Ea.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Aa=(ya=l==null?void 0:l.extend)==null?void 0:ya.cp)==null?void 0:Aa.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-9ba7a95a><div class="flex-space" style="width:300px;font-weight:400;" data-v-9ba7a95a><label data-v-9ba7a95a>Time Lost</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(a)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-9ba7a95a><label data-v-9ba7a95a>Time Gained</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(c)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(a)</div></div></div>',1))]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Va=(Ta=l==null?void 0:l.extend)==null?void 0:Ta.cp)==null?void 0:Va.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",jm,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pa=(xa=l==null?void 0:l.extend)==null?void 0:xa.cp)==null?void 0:pa.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Sm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ja=(za=l==null?void 0:l.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ua=(Sa=l==null?void 0:l.extend)==null?void 0:Sa.cp)==null?void 0:Ua.speed,"Under"))+" kts) ",1)])]),(ka=l==null?void 0:l.goodWx)!=null&&ka.distance?(t.openBlock(),t.createElementBlock("div",Um,[t.createElementVNode("div",km,[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",fm,[t.createElementVNode("div",Om,[t.createElementVNode("div",null,t.toDisplayString((Oa=(fa=a.report)==null?void 0:fa.weather)!=null&&Oa.noExtrapolation?(Ca=l==null?void 0:l.goodWx)==null?void 0:Ca.distance:(ba=l==null?void 0:l.allWx)==null?void 0:ba.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ha=l==null?void 0:l.goodWx)==null?void 0:ha.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ya=l==null?void 0:l.timeConclusion)==null?void 0:Ya.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Cm,[t.createElementVNode("div",bm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(wa=(Qa=l==null?void 0:l.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",hm,[t.createElementVNode("div",Ym,[t.createElementVNode("div",null,t.toDisplayString((Fa=(Ra=a.report)==null?void 0:Ra.weather)!=null&&Fa.noExtrapolation?(Ba=l==null?void 0:l.goodWx)==null?void 0:Ba.distance:(Ga=l==null?void 0:l.allWx)==null?void 0:Ga.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=l==null?void 0:l.timeConclusion)==null?void 0:Pa.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Wa=l==null?void 0:l.timeConclusion)==null?void 0:Wa.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Za=(La=l==null?void 0:l.extend)==null?void 0:La.cp)==null?void 0:Za.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Fm,[t.createElementVNode("div",null,t.toDisplayString((_a=(Ha=a.report)==null?void 0:Ha.weather)!=null&&_a.noExtrapolation?(Ja=l==null?void 0:l.goodWx)==null?void 0:Ja.distance:(Xa=l==null?void 0:l.allWx)==null?void 0:Xa.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ua=l==null?void 0:l.timeConclusion)==null?void 0:ua.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ka=l==null?void 0:l.timeConclusion)==null?void 0:Ka.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Bm,[((qa=l==null?void 0:l.timeConclusion)==null?void 0:qa.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Gm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.timeLost)+" (hrs)",1)])):((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Pm,[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((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Wm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((cl=l==null?void 0:l.timeConclusion)==null?void 0:cl.conclusionStatus)==="Lost"?"lost":((Ml=l==null?void 0:l.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((ml=l==null?void 0:l.timeConclusion)==null?void 0:ml.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Lm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Zm,[t.createElementVNode("div",Hm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(gl=(Dl=a.report)==null?void 0:Dl.weather)!=null&&gl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",_m,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Jm,[t.createElementVNode("div",Xm,[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",um,[t.createElementVNode("div",Km,[t.createElementVNode("div",null,t.toDisplayString((El=(Il=a.report)==null?void 0:Il.weather)!=null&&El.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",qm,[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)),((Al=(yl=l.extend)==null?void 0:yl.cp)==null?void 0:Al.dgo)>0?(t.openBlock(),t.createElementBlock("div",$m," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",vm,[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",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((Vl=(Tl=a.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pl=(xl=l==null?void 0:l.extend)==null?void 0:xl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",aD,[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",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((jl=(zl=a.report)==null?void 0:zl.weather)!=null&&jl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Sl=l==null?void 0:l.extend)==null?void 0:Sl.cp)==null?void 0:Ul.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-9ba7a95a><div class="flex-space" style="width:240px;" data-v-9ba7a95a><label data-v-9ba7a95a>Fuel Over-consumption</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(d)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(e)</div></div><div class="flex-space" style="width:200px;" data-v-9ba7a95a><label data-v-9ba7a95a>Fuel Saving</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(f)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(d)</div></div></div>',1)),((fl=(kl=l.extend)==null?void 0:kl.cp)==null?void 0:fl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",iD,[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",nD,[t.createElementVNode("div",dD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",rD,[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",sD,[t.createElementVNode("div",ND,[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((hl=(bl=a.report)==null?void 0:bl.weather)!=null&&hl.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",cD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(t.openBlock(),t.createElementBlock("div",MD,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",mD,[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",DD,[t.createElementVNode("div",gD,[t.createElementVNode("div",null,t.toDisplayString((M=(Rl=l==null?void 0:l.goodWx)==null?void 0:Rl.inEca)==null?void 0:M.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Bl=(Fl=l==null?void 0:l.extend)==null?void 0:Fl.cp)==null?void 0:Bl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",ED,[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",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(al=l==null?void 0:l.goodWx)==null?void 0:al.distance:(ul=l==null?void 0:l.allWx)==null?void 0:ul.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ql=l==null?void 0:l.goodWx)==null?void 0:ql.sumFoCons),1),((vl=($l=l==null?void 0:l.goodWx)==null?void 0:$l.inEca)==null?void 0:vl.distance)>0?(t.openBlock(),t.createElementBlock("span",VD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((eo=(to=l==null?void 0:l.fuelConclusion)==null?void 0:to.fo)==null?void 0:eo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=l.fuelConclusion)==null?void 0:lo.fo)==null?void 0:oo.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",xD,[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",pD,[t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((no=(io=a.report)==null?void 0:io.weather)!=null&&no.noExtrapolation?(ro=l==null?void 0:l.goodWx)==null?void 0:ro.distance:(so=l==null?void 0:l.allWx)==null?void 0:so.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((No=l==null?void 0:l.timeConclusion)==null?void 0:No.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.fuelConclusion)==null?void 0:co.fo)==null?void 0:Mo.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l.fuelConclusion)==null?void 0:mo.fo)==null?void 0:Do.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",SD,[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",UD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.report)==null?void 0:go.weather)!=null&&Io.noExtrapolation?(Eo=l==null?void 0:l.goodWx)==null?void 0:Eo.distance:(yo=l==null?void 0:l.allWx)==null?void 0:yo.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",fD,[t.createElementVNode("div",null,t.toDisplayString((Vo=(To=l==null?void 0:l.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=l.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",OD,[((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",CD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(So=l==null?void 0:l.fuelConclusion)==null?void 0:So.fo)==null?void 0:Uo.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((fo=(ko=l==null?void 0:l.fuelConclusion)==null?void 0:ko.fo)==null?void 0:fo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=l==null?void 0:l.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:Co.overCons),1)]),(ho=(bo=l==null?void 0:l.goodWx)==null?void 0:bo.inEca)!=null&&ho.distance?(t.openBlock(),t.createElementBlock("div",bD,[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",hD,[t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l==null?void 0:l.goodWx)==null?void 0:Yo.inEca)==null?void 0:Qo.distance)+" * "+t.toDisplayString((Ro=(wo=l==null?void 0:l.fuelConclusion)==null?void 0:wo.fo)==null?void 0:Ro.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Bo=(Fo=a.report)==null?void 0:Fo.weather)!=null&&Bo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",YD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l==null?void 0:l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:uo.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(Ko=l==null?void 0:l.fuelConclusion)==null?void 0:Ko.fo)==null?void 0:qo.saving)+" (mt)",1)]),(vo=($o=l==null?void 0:l.goodWx)==null?void 0:$o.inEca)!=null&&vo.distance?(t.openBlock(),t.createElementBlock("div",QD,[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",wD,[t.createElementVNode("div",null,t.toDisplayString((ei=(ti=a.report)==null?void 0:ti.weather)!=null&&ei.noExtrapolation?(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)==null?void 0:li.distance:(ii=(oi=l==null?void 0:l.allWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Over"?"flex-center lost":((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",RD,t.toDisplayString(d.noGoodWxDay),1)),((Vi=(Ti=l==null?void 0:l.extend)==null?void 0:Ti.cp)==null?void 0:Vi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",FD,[t.createElementVNode("div",BD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",GD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",PD,[t.createElementVNode("div",WD,[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",LD,[t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(ji=l==null?void 0:l.goodWx)==null?void 0:ji.distance:(Si=l==null?void 0:l.allWx)==null?void 0:Si.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ui=l==null?void 0:l.goodWx)==null?void 0:Ui.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ki=l==null?void 0:l.goodWx)==null?void 0:ki.sumDgoCons),1),((Oi=(fi=l==null?void 0:l.goodWx)==null?void 0:fi.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",_D,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((bi=(Ci=l==null?void 0:l.fuelConclusion)==null?void 0:Ci.fo)==null?void 0:bi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=l==null?void 0:l.goodWx)==null?void 0:hi.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qi=(Yi=l.fuelConclusion)==null?void 0:Yi.dgo)==null?void 0:Qi.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",JD,[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",XD,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Fi=l==null?void 0:l.goodWx)==null?void 0:Fi.distance:(Bi=l==null?void 0:l.allWx)==null?void 0:Bi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",null,t.toDisplayString((Wi=(Pi=l==null?void 0:l.fuelConclusion)==null?void 0:Pi.dgo)==null?void 0:Wi.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zi=(Li=l.fuelConclusion)==null?void 0:Li.dgo)==null?void 0:Zi.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",qD,[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",$D,[t.createElementVNode("div",vD,[t.createElementVNode("div",null,t.toDisplayString((_i=(Hi=a.report)==null?void 0:Hi.weather)!=null&&_i.noExtrapolation?(Ji=l==null?void 0:l.goodWx)==null?void 0:Ji.distance:(Xi=l==null?void 0:l.allWx)==null?void 0:Xi.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ui=l==null?void 0:l.timeConclusion)==null?void 0:ui.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",tg,[t.createElementVNode("div",null,t.toDisplayString((nt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.dgo)==null?void 0:nt.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((rt=(dt=l.fuelConclusion)==null?void 0:dt.dgo)==null?void 0:rt.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",eg,[((Nt=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ag,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=(_l=l==null?void 0:l.fuelConclusion)==null?void 0:_l.dgo)==null?void 0:Jl.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xe=(Xl=l==null?void 0:l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:xe.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vi=($i=l==null?void 0:l.fuelConclusion)==null?void 0:$i.dgo)==null?void 0:vi.overCons),1)])):((en=(tn=l==null?void 0:l.fuelConclusion)==null?void 0:tn.dgo)==null?void 0:en.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ln=(an=l==null?void 0:l.fuelConclusion)==null?void 0:an.dgo)==null?void 0:ln.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l==null?void 0:l.fuelConclusion)==null?void 0:on.dgo)==null?void 0:nn.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.dgo)==null?void 0:rn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Nn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.dgo)==null?void 0:Nn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(cn=l==null?void 0:l.fuelConclusion)==null?void 0:cn.dgo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",og,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const ng=$a(nc,[["render",ig],["__scopeId","data-v-9ba7a95a"]]),V4="",dg={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 R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?R.LngLatHelper.roundPrecision(o,e):a}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,a,c,d,i,g,r,N,T,l,y;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(a=this.report)==null?void 0:a.weather)==null?void 0:c.showAisDistance)??!0,this.showSig=((i=(d=this.report)==null?void 0:d.weather)==null?void 0:i.showSig)??!0,this.showSwell=((r=(g=this.report)==null?void 0:g.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(N=this.report)==null?void 0:N.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((y=(l=this.report)==null?void 0:l.weather)==null?void 0:y.waterTempSwitch)||!1}}},rg={class:"report-inventory"},sg={class:"section summary-section"},Ng={class:"summary-block"},cg={class:"orm-report-table inventory-table"},Mg={class:"label",rowspan:"4"},mg={class:"section inventory-section"},Dg={class:"orm-report-table inventory-table detail"},gg=["colspan"],Ig={key:0,class:"label",colspan:"2"},Eg={key:0,class:"label",rowspan:"2"},yg={key:1,class:"label",rowspan:"2"},Ag={key:2,class:"label",rowspan:"2"},Tg={key:3,class:"label",colspan:"2"},Vg={key:4,class:"label",rowspan:"2"},xg={key:5,class:"label",colspan:"2"},pg={key:6,class:"label",rowspan:"2"},zg={key:7,class:"label",rowspan:"2"},jg={key:8,class:"label",rowspan:"2"},Sg={key:0,class:"label"},Ug={key:1,class:"label"},kg={key:2,class:"label"},fg={key:3,class:"label"},Og={class:"summary-tbody"};function Cg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",rg,[t.createElementVNode("div",sg,[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",Ng,[t.createElementVNode("table",cg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((g=a.report)==null?void 0:g.segments,(r,N)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",Mg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((l=r==null?void 0:r.allWx)==null?void 0:l.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.goodWx)==null?void 0:z.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.badWx)==null?void 0:p.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.badWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.badWx)==null?void 0:b.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((U=r==null?void 0:r.excluded)==null?void 0:U.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.excluded)==null?void 0:Y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.excluded)==null?void 0:w.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",mg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-9c4b43ab><div class="flex-start" data-v-9c4b43ab><div class="legend good-wx" data-v-9c4b43ab></div><div class="label flex-end" data-v-9c4b43ab>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-9c4b43ab><div class="legend adverse-wx" data-v-9c4b43ab></div><div class="label" data-v-9c4b43ab>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-9c4b43ab><div class="legend excluded" data-v-9c4b43ab></div><div class="label" data-v-9c4b43ab>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-9c4b43ab><label data-v-9c4b43ab>B</label><div data-v-9c4b43ab>BOSP</div><label data-v-9c4b43ab>N</label><div data-v-9c4b43ab>NOON</div><label data-v-9c4b43ab>E</label><div data-v-9c4b43ab>EOSP</div><label data-v-9c4b43ab>*</label><div data-v-9c4b43ab>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-9c4b43ab> 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",Dg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,gg),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ig,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",Eg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",yg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),d.showWave?(t.openBlock(),t.createElementBlock("th",Ag,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Tg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",Vg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",xg,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(t.openBlock(),t.createElementBlock("th",pg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",jg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),d.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Ug,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",kg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",fg,[...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",Og,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((l=r.noon)==null?void 0:l.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(y=r.meteo)==null?void 0:y.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(k=r.meteo)==null?void 0:k.wind)==null?void 0:A.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(p=(x=r.meteo)==null?void 0:x.wave)==null?void 0:p.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((b=(C=(D=r.meteo)==null?void 0:D.wave)==null?void 0:C.swell)==null?void 0:b.height)??"-"),3)):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Y=(f=(U=r.meteo)==null?void 0:U.wave)==null?void 0:f.sig)==null?void 0:Y.height)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((w=(Q=r.meteo)==null?void 0:Q.current)==null?void 0:w.direction)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((G=r.meteo)==null?void 0:G.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((P=r.meteo)==null?void 0:P.cFactor)??"--"),3)):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((W=r.meteo)==null?void 0:W.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((L=r.meteo)==null?void 0:L.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const bg=$a(dg,[["render",Cg],["__scopeId","data-v-9c4b43ab"]]),x4="",hg={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)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Sn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Sn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Sn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var y,j,k,A,V,z;let o=[];const e=[],a=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,x)=>{var p,S;x===0&&r.push(E.utc),E.type==="EOSP"&&((p=this.inventory[x+1])==null?void 0:p.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[x+1])==null?void 0:S.utc)),x===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,x)=>{if(x%2===0){const p=Dt(r[x+1]).diff(Dt(r[x]),"minute",!0);for(let S=0;S<=p+1;S++)e.push(this.computeUTCTime(Dt(r[x]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,x)=>{var S,D,C,b,U,f,Y,Q,w,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(h=>h.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(h=>h.slice(0,5)!==E.utc.slice(5,10)),o.push(p)),d=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((C=E.cp)==null?void 0:C.fo)>d?(b=E.cp)==null?void 0:b.fo:d),i=Math.ceil(((U=E.noon)==null?void 0:U.dgoCons)>i?(f=E.noon)==null?void 0:f.dgoCons:i),i=Math.ceil(((Y=E.cp)==null?void 0:Y.dgo)>i?(Q=E.cp)==null?void 0:Q.dgo:i),a.push([p,(w=E.noon)==null?void 0:w.avgSpd,(G=E.noon)==null?void 0:G.foCons,(P=E.noon)==null?void 0:P.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),x<g.length-1){const h=g[x+1];a.push([p,(W=h.noon)==null?void 0:W.avgSpd,(L=h.noon)==null?void 0:L.foCons,(_=h.noon)==null?void 0:_.dgoCons,h.avgSpdCalc,h.cp.speed,h.goodWx&&!h.excluded?100:0,h.cp.dgo,h.cp.fo,h.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,x)=>x===0||x===o.length-1||x%N===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:d+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(j=(y=this.report)==null?void 0:y.weather)!=null&&j.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(T);const l={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(z=this.spdDgoConsChart)==null||z.setOption(l)},renderWxCurrChart(){var k;let o=[];const e=[],a=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((A,V)=>{var z,E;V===0&&g.push(A.utc),A.type==="EOSP"&&((z=i[V+1])==null?void 0:z.type)==="BOSP"&&(g.push(A.utc),g.push((E=i[V+1])==null?void 0:E.utc)),V===i.length-1&&g.push(A.utc)}),g.forEach((A,V)=>{if(V%2===0){const z=Dt(g[V+1]).diff(Dt(g[V]),"minute",!0);for(let E=0;E<=z+1;E++)e.push(this.computeUTCTime(Dt(g[V]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((A,V)=>{var E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it;const z=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(Z=>Z.slice(0,5)===A.utc.slice(5,10))&&o.push(z),V===i.length-1&&(o=o.filter(Z=>Z.slice(0,5)!==A.utc.slice(5,10)),o.push(z)),d=Math.ceil(((p=(x=(E=A.meteo)==null?void 0:E.wave)==null?void 0:x.sig)==null?void 0:p.height)>d?(C=(D=(S=A.meteo)==null?void 0:S.wave)==null?void 0:D.sig)==null?void 0:C.height:d),a.push([z,((b=A.noon)==null?void 0:b.windBF)||((f=(U=A.meteo)==null?void 0:U.wind)==null?void 0:f.scale),(Q=(Y=A.meteo)==null?void 0:Y.wind)==null?void 0:Q.scale,(G=(w=A.meteo)==null?void 0:w.wind)==null?void 0:G.direction,(P=A.noon)==null?void 0:P.seasHt,(_=(L=(W=A.meteo)==null?void 0:W.wave)==null?void 0:L.sig)==null?void 0:_.height,A.dailyAvgCf??((h=a[a.length-1])==null?void 0:h[c.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<i.length-1){const Z=i[V+1];a.push([z,((J=A.noon)==null?void 0:J.windBF)||((K=(X=A.meteo)==null?void 0:X.wind)==null?void 0:K.scale),($=(q=Z.meteo)==null?void 0:q.wind)==null?void 0:$.scale,(tt=(v=Z.meteo)==null?void 0:v.wind)==null?void 0:tt.direction,(et=Z.noon)==null?void 0:et.seasHt,(ot=(lt=(at=A.meteo)==null?void 0:at.wave)==null?void 0:lt.sig)==null?void 0:ot.height,Z.dailyAvgCf??((it=a[a.length-1])==null?void 0:it[c.anlyCurFct]),Z.goodWx&&!Z.excluded?20:0,Z.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%r===0);let N=-2.5,T=2.5,l=1,y=5;N<-2.5||T>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,l=Math.ceil(Math.max([Math.abs(N),Math.abs(T)])/5),y=Math.ceil(Math.abs(N)/l)+Math.ceil(Math.abs(T)/l)):(l=.5,N=Math.floor(this.findMinValue(a,6)/.5)*l,T=2.5,y=Math.abs(N)/l+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:T,interval:l,splitNumber:y,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:y,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:y,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(j)},findMaxValue(o,e){let a=-1/0;for(let c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];typeof i=="number"&&!isNaN(i)&&Number(i)>a&&(a=i)}}return a},findMinValue(o,e){let a=1/0;for(let c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},Yg={class:"report-summary"},Qg={class:"section chart-section"},wg={class:"chart-block"},Rg={ref:"spdFoConsChart",class:"chart"},Fg={ref:"spdDgoConsChart",class:"chart"},Bg={ref:"currChart",class:"chart"},Gg={class:"section map-section"},Pg={class:"map-block"},Wg={class:"flex-space"},Lg={class:"voyage-block bg-blue-light"},Zg={class:"flex-space label-block",style:{width:"100%"}},Hg={style:{"text-transform":"uppercase"}},_g={class:"flex-space label-block",style:{width:"100%"}},Jg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Xg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},ug={class:"flex-space label-block",style:{width:"100%"}},Kg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},qg={class:"flex-space label-block",style:{width:"100%"}},$g={key:0,class:"flex-end",style:{flex:"1"}},vg={key:1,class:"flex-end",style:{flex:"1"}},t1={class:"flex-end",style:{width:"160px"}},e1={class:"flex-space label-block",style:{width:"100%"}},a1={key:0,class:"flex-end",style:{flex:"1"}},l1={key:1,class:"flex-end",style:{flex:"1"}},o1={class:"flex-end",style:{width:"160px"}},i1={class:"flex-space label-block",style:{width:"100%"}},n1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},d1=["src"];function r1(o,e,a,c,d,i){var g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q;return t.openBlock(),t.createElementBlock("div",Yg,[t.createElementVNode("div",Qg,[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",wg,[t.createElementVNode("div",Rg,null,512),t.createElementVNode("div",Fg,null,512),t.createElementVNode("div",Bg,null,512)])]),t.createElementVNode("div",Gg,[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",Pg,[t.createElementVNode("div",Wg,[t.createElementVNode("div",Lg,[t.createElementVNode("div",Zg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Hg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",_g,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Jg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",Xg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",ug,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Kg,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",qg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(j=a.report)==null?void 0:j.departure)!=null&&k.portName?(t.openBlock(),t.createElementBlock("span",$g,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",vg,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",t1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",e1,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(p=(x=a.report)==null?void 0:x.arrival)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",a1,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",l1,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",o1,t.toDisplayString(i.computeUTCTime((U=(b=a.report)==null?void 0:b.arrival)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",i1,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",n1,t.toDisplayString((Y=(f=a.report)==null?void 0:f.voyage)==null?void 0:Y.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-d28981e9><div data-v-d28981e9>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>0812</div><div data-v-d28981e9><div data-v-d28981e9>08 - Day of the month</div><div data-v-d28981e9>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-d28981e9></i></div><div data-v-d28981e9><div data-v-d28981e9>Wind from N (000)</div><div data-v-d28981e9>Each bard = 10 kts</div><div data-v-d28981e9>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>W 4</div><div data-v-d28981e9>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div class="good-wx" data-v-d28981e9>Date</div><div data-v-d28981e9>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=a.report)==null?void 0:Q.chartUrl,alt:""},null,8,d1)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-d28981e9><div class="header-block" data-v-d28981e9><div class="bg-block" data-v-d28981e9><i class="iconfont icon-baobiao" data-v-d28981e9></i><div class="block-title" data-v-d28981e9>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>1. Good Weather Method</div><div class="method-body" data-v-d28981e9> 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-d28981e9> 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-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-d28981e9> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>4. “About”</div><div class="method-body" data-v-d28981e9> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-d28981e9> 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-d28981e9> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>6. Further reference materials</div><div class="method-body" data-v-d28981e9>Please send mail to <a href="mailto:op@ormwx.com" data-v-d28981e9>op@ormwx.com</a>.</div></div></div></div>',1))])}const s1=$a(hg,[["render",r1],["__scopeId","data-v-d28981e9"]]),p4="",z4="",N1={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,a)=>e.date<a.date);o==null||o.forEach((e,a)=>{var N,T;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(y=>{const j=`<p>${y}</p>`;c=c+j}),c=c+"</div>"):c=e.body;const d=document.getElementById("col1"),i=document.getElementById("col2"),g=(d==null?void 0:d.offsetHeight)||0,r=(i==null?void 0:i.offsetHeight)||0;if(g<=r){let y=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
1
+ (function(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")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios"],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))})(this,function(mt,t,kn,rl,Dt,zr,R,Un){"use strict";function jr(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(e,a,c.get?c:{enumerable:!0,get:()=>o[a]})}}return e.default=o,Object.freeze(e)}const Sn=jr(zr),I4="",$a=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:kn.Editor,Toolbar:kn.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function kr(o,e,a,c,d,i){const g=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Ur,[t.withDirectives(t.createVNode(g,{editor:d.editor,"default-config":d.toolbarConfig,mode:d.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!a.disabled]]),t.createVNode(r,{modelValue:d.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>d.valueHtml=N),"default-config":d.editorConfig,mode:d.mode,class:"editor",style:t.normalizeStyle({height:a.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const sl=$a(Sr,[["render",kr],["__scopeId","data-v-9854b172"]]),fr={install(o){o.component("IdmEditor",sl)}},E4="";/*! Element Plus Icons Vue v2.3.2 */var Or=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Cr=Or,br=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,a)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),hr=br;const y4="",Yr={name:"PlanReport",components:{Editor:sl,IdmBrand:rl.IdmBrand,IdmLoading:rl.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,a,c){let d=0;return a&&e&&(d=R.LngLatHelper.guessTimeZoneOffset(e,a)),`${Dt(o).utcOffset(c??d).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var a,c,d,i,g;if(e===0)return"-";{const r=Dt((d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.eta).diff(Dt((g=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:g.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var a,c,d,i,g,r,N;if(e===0)return"-";{const T=Number((i=(d=(c=(a=o==null?void 0:o.speeds)==null?void 0:a[e])==null?void 0:c.speed)==null?void 0:d.cost)==null?void 0:i.total)-Number((N=(r=(g=o==null?void 0:o.speeds)==null?void 0:g[0])==null?void 0:r.speed)==null?void 0:N.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const a=Number("1".padEnd(e+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const a=[];for(let c=0;c<(e==null?void 0:e.length);c++){const d=e[c],i=e[c-1];i&&(d.avgBearing=i.bearing),a.push(d),d.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:d.etd,eta:d.etd,isResume:!0,memo:`Stoppage: ${d.suspend}hrs`})}return a}},computeDegree(){return function(o,e,a){e=e%360;for(let c=0;c<17;c++)if(c*22.5+e+11.25>=360){let d=(16-c)*22.5;a||(d=d+180);let i="";return o==="wind"?i="var(--orm-wind)":o==="wave"?i="var(--orm-wave)":o==="swell"?i="var(--orm-swell)":o==="current"&&(i="var(--orm-current)"),`transform:rotate(${d}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(o,e=0){var i,g,r,N;const a=(N=(r=(g=(i=o==null?void 0:o.speeds)==null?void 0:i[e])==null?void 0:g.speed)==null?void 0:r.sample)==null?void 0:N.hours,c=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(Dt(d==null?void 0:d.eta).diff(Dt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,c;let e=0;return(c=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||c.forEach(d=>{e+=d.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":R.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>R.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>R.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,c,d,i,g,r,N,T,l,y,j,k,A,V,z,E,x,p;let e="";return(c=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&c.wind&&((i=(d=o.meteo)==null?void 0:d.wind)==null?void 0:i.scale)>=((r=(g=this.weatherPrinciple)==null?void 0:g.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&T.wind&&((y=(l=o.meteo)==null?void 0:l.wind)==null?void 0:y.scale)>((k=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:k.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((E=(z=o.meteo)==null?void 0:z.wind)==null?void 0:E.scale)===((p=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:p.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,c,d,i,g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C;let e="";return(c=(a=this.weatherPrinciple)==null?void 0:a.dangerous)!=null&&c.sigWv&&((g=(i=(d=o.meteo)==null?void 0:d.wave)==null?void 0:i.sig)==null?void 0:g.height)>=((N=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(l=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&l.sigWv&&((k=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:k.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(E=(z=this.weatherPrinciple)==null?void 0:z.heavy)!=null&&E.sigWv&&((S=(p=(x=o.meteo)==null?void 0:x.wave)==null?void 0:p.sig)==null?void 0:S.height)>=((C=(D=this.weatherPrinciple)==null?void 0:D.heavy)==null?void 0:C.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Sn.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,x,p,S,D,C,b;const o=[],e=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(C=(D=(S=(p=(x=(E=this.plan)==null?void 0:E.speeds)==null?void 0:x[this.speedIndex])==null?void 0:p.speed)==null?void 0:S.sample)==null?void 0:D.hours)==null||C.forEach(U=>{var Y,Q,w,G,P,W,L,_,h,J;const f=U.meteo;if(f){const X=Dt(f.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((Q=(Y=f.wave)==null?void 0:Y.sig)==null?void 0:Q.height)>c?(G=(w=f.wave)==null?void 0:w.sig)==null?void 0:G.height:c),e.push([X,(P=f.wind)==null?void 0:P.kts,(L=(W=f.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=f.wind)==null?void 0:_.direction,(h=f.wind)==null?void 0:h.degree,(J=f.wind)==null?void 0:J.scale,U.cFactor,U.wFactor,U.speed])}});const d=Math.max(...e.map(U=>U[a.speed])),i=Math.max(...e.map(U=>U[a.windSpeed])),g=Math.min(...e.map(U=>U[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(U=>U[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(U=>U[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,T=Math.ceil(i/5/5)*5,l=Math.ceil(c/5/.5)*.5,y=Math.ceil((r-g)/5/.5)*.5,j=5*N,k=5*T,A=5*l,V=g+5*y,z={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:k,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval:l,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:V,splitNumber:5,interval:y,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(b=this.echart)==null||b.setOption(z)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Fr={class:"col"},Br={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={class:"label-block"},Zr={class:"text"},Hr={class:"col"},_r={class:"label-block"},Jr={key:0},Xr={key:1},ur={style:{"margin-left":"16px"}},Kr={class:"label-block"},qr={key:0},$r={key:1},vr={style:{"margin-left":"16px"}},ts={class:"label-block"},es={class:"text"},as={class:"section chart-section"},ls=["src"],os={class:"legends text-tips"},is={class:"legend"},ns={key:0,class:"legend"},ds={key:1,class:"legend"},rs={key:1,class:"empty"},ss={class:"section comparison-section"},Ns={key:0,class:"orm-report-table",style:{"font-size":"12px"}},cs={key:0},Ms=["rowspan"],ms={key:0},Ds={key:1},gs={rowspan:"2"},Is={rowspan:"2"},Es={key:0},ys={key:1},As={rowspan:"1"},Ts={key:0},Vs={rowspan:"2"},xs={rowspan:"2"},ps={rowspan:"2"},zs={key:0},js={key:0},Ss=["rowspan"],Us={key:0},ks={rowspan:"1"},fs={key:0},Os={key:0},Cs={key:1},bs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},hs={key:0},Ys={class:"section waypoint-section"},Qs={class:"header-block"},ws={class:"bg-block"},Rs={class:"block-title"},Fs={key:0,class:"flex-end",style:{flex:"1"}},Bs=["onClick"],Gs={class:"advisory bg-blue-light-2"},Ps=["innerHTML"],Ws={class:"major-waypoint"},Ls={class:"major-header bg-blue-light-2"},Zs={key:0,class:"cell-item flex"},Hs={key:1,class:"cell-item flex"},_s={class:"major-body"},Js={class:"cell-item flex",style:{flex:"2.5"}},Xs={key:0,class:"flex-center"},us={key:1,class:"flex-center"},Ks={key:0,style:{"margin-left":"3px"}},qs={class:"cell-item flex",style:{flex:"1.5"}},$s={key:0,style:{"margin-left":"4px","font-weight":"600"}},vs={key:0,class:"cell-item flex offset"},tN={key:1,class:"cell-item flex nbsp"},eN={key:2,class:"cell-item flex offset"},aN={key:3,class:"cell-item flex nbsp"},lN={key:0,class:"cell-item flex offset"},oN={key:1,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:6,class:"cell-item flex offset"},rN={key:7,class:"cell-item flex nbsp"},sN={class:"section forecast-section"},NN={style:{"page-break-inside":"avoid"}},cN={class:"header-block"},MN={class:"bg-block"},mN={class:"block-title"},DN={key:0,class:"flex-end",style:{flex:"1"}},gN=["onClick"],IN={class:"echart-block"},EN={ref:"echart",class:"echart"},yN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},AN={class:"orm-report-table",style:{"font-size":"12px"}},TN=["colspan"],VN={key:0},xN={class:"flex-center"},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={key:0},UN={class:"degree-box"},kN={key:0},fN={key:2},ON={class:"degree-box"},CN={key:0},bN={key:2},hN={class:"degree-box"},YN={key:0},QN={key:2};function wN(o,e,a,c,d,i){var l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,F,H,Ot,Jt,Xt,ut,Kt,qt,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,fe,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,va;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(l=a.plan)==null?void 0:l.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Br,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((k=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:k.name),1)]),t.createElementVNode("div",Pr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Wr,t.toDisplayString((z=(V=(A=a.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:z.name)+" ("+t.toDisplayString((S=(p=(x=(E=a.plan)==null?void 0:E.voyage)==null?void 0:x.vessel)==null?void 0:p.vesselType)==null?void 0:S.name)+")",1)]),t.createElementVNode("div",Lr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Zr,t.toDisplayString(((C=(D=a.plan)==null?void 0:D.voyage)==null?void 0:C.voyNum)||((U=(b=a.plan)==null?void 0:b.voyage)==null?void 0:U.number)),1)])]),t.createElementVNode("div",Hr,[t.createElementVNode("div",_r,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(Q=(Y=(f=a.plan)==null?void 0:f.leg)==null?void 0:Y.departure)!=null&&Q.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((P=(G=(w=a.plan)==null?void 0:w.leg)==null?void 0:G.departure)==null?void 0:P.name),1)):(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString(i.computePosition((L=(W=a.plan)==null?void 0:W.leg)==null?void 0:L.departure)),1)),t.createElementVNode("span",ur,t.toDisplayString(i.computeUTCTime(((J=(h=(_=a.plan)==null?void 0:_.leg)==null?void 0:h.departure)==null?void 0:J.atd)||((q=(K=(X=a.plan)==null?void 0:X.leg)==null?void 0:K.departure)==null?void 0:q.etd)||((et=(tt=(v=($=a.plan)==null?void 0:$.speeds)==null?void 0:v[d.speedIndex])==null?void 0:tt.speed)==null?void 0:et.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",Kr,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(ot=(lt=(at=a.plan)==null?void 0:at.leg)==null?void 0:lt.destination)!=null&&ot.name?(t.openBlock(),t.createElementBlock("span",qr,t.toDisplayString((gt=(Z=(it=a.plan)==null?void 0:it.leg)==null?void 0:Z.destination)==null?void 0:gt.name),1)):(t.openBlock(),t.createElementBlock("span",$r,t.toDisplayString(i.computePosition((Et=(It=a.plan)==null?void 0:It.leg)==null?void 0:Et.destination)),1)),t.createElementVNode("span",vr,t.toDisplayString(i.computeUTCTime(((Ct=(O=(At=(yt=a.plan)==null?void 0:yt.speeds)==null?void 0:At[d.speedIndex])==null?void 0:O.speed)==null?void 0:Ct.ata)||((pt=(xt=(Vt=(Tt=a.plan)==null?void 0:Tt.speeds)==null?void 0:Vt[d.speedIndex])==null?void 0:xt.speed)==null?void 0:pt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",ts,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",es,t.toDisplayString((jt=(zt=a.plan)==null?void 0:zt.voyage)==null?void 0:jt.loadCondition),1)])])]),t.createElementVNode("div",as,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")])],-1)),(St=a.plan)!=null&&St.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ls)]),t.createElementVNode("div",os,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-a8548dde><span class="dangerous" data-v-a8548dde></span><span data-v-a8548dde>Danger</span></div><div class="legend" data-v-a8548dde><span class="severe" data-v-a8548dde></span><span data-v-a8548dde>Severe</span></div><div class="legend" data-v-a8548dde><span class="heavy" data-v-a8548dde></span><span data-v-a8548dde>Heavy</span></div>',3)),t.createElementVNode("div",is,[e[14]||(e[14]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((ht=(bt=(ft=(kt=(Ut=a.plan)==null?void 0:Ut.speeds)==null?void 0:kt[0])==null?void 0:ft.speed)==null?void 0:bt.lane)==null?void 0:ht.name),1)]),((Qt=(Yt=a.plan)==null?void 0:Yt.speeds)==null?void 0:Qt.length)>1?(t.openBlock(),t.createElementBlock("div",ns,[e[15]||(e[15]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Gt=(Bt=(Ft=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[1])==null?void 0:Ft.speed)==null?void 0:Bt.lane)==null?void 0:Gt.name),1)])):t.createCommentVNode("",!0),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>2?(t.openBlock(),t.createElementBlock("div",ds,[e[16]||(e[16]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((n=(_t=(Ht=(Zt=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[2])==null?void 0:Ht.speed)==null?void 0:_t.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",rs,[t.createElementVNode("span",null,[e[18]||(e[18]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ss,[(H=(F=a.plan)==null?void 0:F.speeds)!=null&&H.length?(t.openBlock(),t.createElementBlock("table",Ns,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",cs,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ms),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ot=a.plan)==null?void 0:Ot.speeds,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el,ll,ol,il,nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createElementVNode("tr",null,[t.createElementVNode("td",gs,t.toDisplayString(u+1),1),t.createElementVNode("td",Is,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Es,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((ue=m.speed)==null?void 0:ue.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",ys,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(Ke=m.speed)==null?void 0:Ke.extend)==null?void 0:qe.cps[0])==null?void 0:$e.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((ea=(ta=(ve=m.speed)==null?void 0:ve.extend)==null?void 0:ta.cps[1])==null?void 0:ea.speed),1)]))]),t.createElementVNode("td",As,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",Ts," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(ca=(Na=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:Na.destination)==null?void 0:ca.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",Vs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",xs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",ps,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",zs," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",js,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,u)),9,Ss),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(fa=(ka=a.weatherPrinciple)==null?void 0:ka.severe)==null?void 0:fa.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(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ca=(Oa=a.weatherPrinciple)==null?void 0:Oa.heavy)==null?void 0:Ca.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((ba=m.speed)==null?void 0:ba.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Us,"FO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.cpCopy)==null?void 0:Ya.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Fa=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Fa.cps[0].fo)+" / "+t.toDisplayString((Ga=(Ba=m.speed)==null?void 0:Ba.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Wa=(Pa=m.speed)==null?void 0:Pa.extend)==null?void 0:Wa.cps[0].dgo)+" / "+t.toDisplayString((Za=(La=m.speed)==null?void 0:La.extend)==null?void 0:Za.cps[1].dgo),1)],64))]),t.createElementVNode("td",ks,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ha=m.speed)==null?void 0:Ha.totalHrs,1)),1),(Ja=(_a=m.speed)==null?void 0:_a.extend)!=null&&Ja.hoursInECA?(t.openBlock(),t.createElementBlock("span",fs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Xa=m.speed)==null?void 0:Xa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((ua=m.speed)==null?void 0:ua.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((Ka=m.speed)==null?void 0:Ka.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Os,t.toDisplayString(i.roundPrecision(((tl=(qa=m==null?void 0:m.speed)==null?void 0:qa.cost)==null?void 0:tl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((ll=(el=m==null?void 0:m.speed)==null?void 0:el.cost)==null?void 0:ll.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Cs,t.toDisplayString(i.computeCostDiff(a.plan,u)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((ol=m.speed)==null?void 0:ol.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((il=m.speed)==null?void 0:il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((nl=m.speed)==null?void 0:nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",bs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",hs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ut=i.roundPrecision((Xt=(Jt=a.plan)==null?void 0:Jt.voyage)==null?void 0:Xt.dailyHire,0))==null?void 0:ut.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString(($t=i.roundPrecision((qt=(Kt=a.plan)==null?void 0:Kt.voyage)==null?void 0:qt.priceFO,0))==null?void 0:$t.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((oe=i.roundPrecision((ee=(B=a.plan)==null?void 0:B.voyage)==null?void 0:ee.priceDGO,0))==null?void 0:oe.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",Ys,[t.createElementVNode("div",Qs,[t.createElementVNode("div",ws,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Rs,"Advisory & Major Waypoint of Route "+t.toDisplayString((re=(de=(ne=(ie=a.plan.speeds)==null?void 0:ie[d.speedIndex])==null?void 0:ne.speed)==null?void 0:de.lane)==null?void 0:re.name),1),((Ne=(se=a.plan)==null?void 0:se.speeds)==null?void 0:Ne.length)>1?(t.openBlock(),t.createElementBlock("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ce=a.plan)==null?void 0:ce.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Bs)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Gs,[d.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Ps))]),t.createElementVNode("div",Ws,[t.createElementVNode("div",Ls,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-a8548dde>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-a8548dde>Time</div><div class="cell-item flex" data-v-a8548dde>Nav</div><div class="cell-item flex" data-v-a8548dde>Dist <span class="text-units" data-v-a8548dde>(nm)</span></div>',4)),(me=(Me=a.plan)==null?void 0:Me.voyage)!=null&&me.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Zs,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ge=(De=a.plan)==null?void 0:De.voyage)!=null&&ge.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hs,[...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",_s,[(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)!=null&&Ee.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ze=(Te=(Ae=(ye=a.plan)==null?void 0:ye.speeds)==null?void 0:Ae[d.speedIndex])==null?void 0:Te.speed)==null?void 0:ze.argv,(fe=(ke=(Ue=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:Ue.speed)==null?void 0:ke.sample)==null?void 0:fe.wps),(m,u)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:u,class:"cell-row"},[t.createElementVNode("div",Js,[m.isResume?(t.openBlock(),t.createElementBlock("div",Xs,"Resume")):(t.openBlock(),t.createElementBlock("div",us,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",Ks,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",qs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",$s,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),u?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",tN)),u?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",aN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[u?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",oN))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[u?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),u?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",rN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",sN,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",NN,[t.createElementVNode("div",cN,[t.createElementVNode("div",MN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",mN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((we=(Qe=(Ye=(he=(be=a.plan)==null?void 0:be.speeds)==null?void 0:he[d.speedIndex])==null?void 0:Ye.speed)==null?void 0:Qe.lane)==null?void 0:we.name),1),((Fe=(Re=a.plan)==null?void 0:Re.speeds)==null?void 0:Fe.length)>1?(t.openBlock(),t.createElementBlock("div",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Be=a.plan)==null?void 0:Be.speeds,(m,u)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:u,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===u?"active":""]),onClick:le=>{d.speedIndex=u,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,gN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IN,[t.createElementVNode("div",EN,null,512)]),t.createElementVNode("div",yN,"* "+t.toDisplayString(i.computeModel((Pe=(I=(Ge=a.plan)==null?void 0:Ge.speeds)==null?void 0:I[d.speedIndex])==null?void 0:Pe.speed)),1)]),t.createElementVNode("table",AN,[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:(Le=(We=a.plan)==null?void 0:We.voyage)!=null&&Le.sendRptWithBF?3:2},"Wind",8,TN),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)),(He=(Ze=a.plan)==null?void 0:Ze.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",VN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=(ae=(Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)==null?void 0:ae.sample)==null?void 0:va.hours,(m,u)=>{var vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el;return t.openBlock(),t.createElementBlock("tr",{key:u},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",xN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",pN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(Ke=(ue=m.meteo)==null?void 0:ue.wind)!=null&&Ke.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wind",($e=(qe=m.meteo)==null?void 0:qe.wind)==null?void 0:$e.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",SN,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",UN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",kN,t.toDisplayString((ma=(Ma=(ca=m.meteo)==null?void 0:ca.wave)==null?void 0:Ma.swell)==null?void 0:ma.direction),1)):t.createCommentVNode("",!0),(Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)!=null&&Ia.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("swell",(Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",ON,[(ka=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",CN,t.toDisplayString((Ca=(Oa=(fa=m.meteo)==null?void 0:fa.wave)==null?void 0:Oa.sig)==null?void 0:Ca.direction),1)):t.createCommentVNode("",!0),(Ya=(ha=(ba=m.meteo)==null?void 0:ba.wave)==null?void 0:ha.sig)!=null&&Ya.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("wave",(Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",bN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Ba=(Fa=m.meteo)==null?void 0:Fa.wave)==null?void 0:Ba.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((La=(Wa=(Pa=m.meteo)==null?void 0:Pa.wave)==null?void 0:Wa.sig)==null?void 0:La.period,1)),1),t.createElementVNode("td",hN,[(Ha=(Za=m.meteo)==null?void 0:Za.current)!=null&&Ha.kts?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((Ja=(_a=m.meteo)==null?void 0:_a.current)==null?void 0:Ja.direction),1)):t.createCommentVNode("",!0),(ua=(Xa=m.meteo)==null?void 0:Xa.current)!=null&&ua.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(qa=(Ka=m.meteo)==null?void 0:Ka.current)==null?void 0:qa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",QN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((el=(tl=m.meteo)==null?void 0:tl.current)==null?void 0:el.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const fn=$a(Yr,[["render",wN],["__scopeId","data-v-a8548dde"]]),RN={install(o){o.component("PlanReport",fn)}},A4="",FN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${Dt(o).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)?"-":LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},BN={class:"cover-box"},GN={class:"cover-content"},PN={class:"cover-title"},WN={class:"cover-info"},LN={class:"info-item"},ZN={class:"info-item"},HN={style:{"font-weight":"600"}},_N={class:"info-item"},JN={style:{"font-weight":"600"}},XN={class:"info-item"},uN={key:0},KN={key:1},qN={class:"info-item"},$N={class:"info-item"},vN={key:0},tc={key:1},ec={class:"info-item"},ac={class:"info-item"},lc={class:"text"};function oc(o,e,a,c,d,i){var g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f;return t.openBlock(),t.createElementBlock("div",BN,[t.createElementVNode("div",GN,[t.createElementVNode("div",PN,t.toDisplayString(a.name),1),t.createElementVNode("div",WN,[e[8]||(e[8]=t.createElementVNode("div",{class:"info-item"},[t.createElementVNode("span",{class:"text-label"},"Reference No : "),t.createTextVNode("202202281130 ")],-1)),t.createElementVNode("div",LN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(a.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",ZN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",HN,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name)+" ("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",_N,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",JN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",XN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(y=(l=a.report)==null?void 0:l.departure)!=null&&y.name?(t.openBlock(),t.createElementBlock("span",uN,t.toDisplayString((k=(j=a.report)==null?void 0:j.departure)==null?void 0:k.portName),1)):(t.openBlock(),t.createElementBlock("span",KN,t.toDisplayString(i.computePosition((A=a.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",qN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((z=(V=a.report)==null?void 0:V.departure)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$N,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(E=a.report)==null?void 0:E.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",vN,t.toDisplayString((S=(p=a.report)==null?void 0:p.arrival)==null?void 0:S.portName),1)):(t.openBlock(),t.createElementBlock("span",tc,t.toDisplayString(i.computePosition((D=a.report)==null?void 0:D.arrival)),1))]),t.createElementVNode("div",ec,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((b=(C=a.report)==null?void 0:C.arrival)==null?void 0:b.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ac,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",lc,t.toDisplayString((f=(U=a.report)==null?void 0:U.voyage)==null?void 0:f.loadCondition),1)])])])])}const ic=$a(FN,[["render",oc],["__scopeId","data-v-dbf523fa"]]),T4="",nc={name:"OrmVoyageSummary",components:{Editor:sl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return Dt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=Dt(o).diff(Dt(e),"hours",!0);return Math.round(a*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 a="";o!=null&&o.waveSwitch?a+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?a+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,e,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,a){if(o.consPercentage){if(e==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((a,c)=>{var g,r;a.excluded.detail.forEach(N=>{const T={time:Dt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+Dt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(T)});const i=(r=(g=a==null?void 0:a.inventory)==null?void 0:g.sample)==null?void 0:r.hours.filter(N=>N.noon);this.noons.push([i])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},dc={class:"report-summary"},rc={class:"section weather-section"},sc={class:"definition bg-blue-light-2"},Nc={style:{"line-height":"1.5"}},cc={class:"section summary-section"},Mc={class:"phase-box"},mc={class:"phase-index"},Dc={class:"phase-position"},gc={key:0},Ic={key:1},Ec={class:"phase-position"},yc={key:0},Ac={key:1},Tc={class:"phase-cp"},Vc={class:"orm-report-table"},xc={class:"phase-conclusion"},pc={class:"item-conclusion bg-blue-light-2"},zc={class:"value align-left"},jc={key:0,class:"text-secondary align-right"},Sc={key:0},Uc={key:1},kc={key:2},fc={key:1,class:"text-secondary"},Oc={key:2,class:"value"},Cc={key:0},bc={class:"gain"},hc={key:1},Yc={class:"lost"},Qc={key:2},wc={class:"item-conclusion bg-blue-light-2"},Rc={class:"value align-left"},Fc={key:0,class:"text-secondary"},Bc={key:0},Gc={key:1},Pc={key:2},Wc={key:1,class:"text-secondary"},Lc={key:2,class:"value"},Zc={key:0},Hc={class:"gain"},_c={key:1},Jc={class:"lost"},Xc={key:2},uc={class:"item-conclusion bg-blue-light-2"},Kc={class:"value align-left"},qc={key:0,class:"text-secondary"},$c={key:0},vc={key:1},tM={key:2},eM={key:1,class:"text-secondary"},aM={key:2,class:"value"},lM={key:0},oM={class:"gain"},iM={key:1},nM={class:"lost"},dM={key:2},rM={key:0,class:"exclusion-block"},sM={style:{margin:"8px 0"}},NM={class:"orm-report-table"},cM=["innerHTML"],MM={class:"section segment-section"},mM={class:"segment-summary"},DM={class:"segment-index text-left"},gM={class:"segment-position"},IM={key:0},EM={key:1},yM={class:"segment-position"},AM={key:0},TM={key:1},VM={class:"orm-report-table"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={class:"good-wx"},UM={class:"good-wx"},kM={class:"good-wx"},fM={class:"good-wx"},OM={class:"good-wx"},CM={class:"good-wx"},bM={class:"good-wx"},hM={class:"good-wx"},YM={class:"good-wx"},QM={class:"good-wx"},wM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},RM={key:0},FM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},BM={key:2,class:"segment-speed"},GM={class:"row"},PM={class:"speed-right row"},WM={class:"speed"},LM={key:1,class:"speed"},ZM={key:0,class:"speed"},HM={class:"speed"},_M={class:"speed"},JM={class:"speed"},XM={key:2,class:"under"},uM={key:3,class:"over"},KM={class:"row"},qM={class:"speed-right formula flex-space"},$M={key:0},vM={key:3,class:"segment-speed"},tm={class:"row"},em={class:"speed-right row"},am={class:"speed"},lm={class:"speed"},om={key:2,class:"under"},im={key:3,class:"over"},nm={class:"row"},dm={class:"speed-right formula row"},rm={class:"segment-formula"},sm={class:"sub-title"},Nm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},cm={class:"formula-block"},Mm={class:"formula-item flex-evenly bg-blue-light"},mm={class:"formula-right flex-evenly"},Dm={class:"fraction",style:{width:"240px"}},gm={class:"formula-item flex-center bg-blue-light"},Im={class:"formula-left flex-space"},Em={class:"formula-right flex-evenly"},ym={class:"fraction",style:{width:"240px"}},Am={class:"formula-item flex-center bg-blue-light"},Tm={class:"formula-left flex-space"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-desc"},zm={class:"flex-end"},jm={class:"flex-end"},Sm={class:"flex-end"},Um={key:0,class:"formula-block"},km={class:"formula-item flex-evenly bg-blue-light"},fm={class:"formula-right flex-evenly"},Om={class:"fraction",style:{width:"200px"}},Cm={class:"formula-item flex-center bg-blue-light"},bm={class:"formula-left flex-space"},hm={class:"formula-right flex-evenly"},Ym={class:"fraction",style:{width:"200px"}},Qm={class:"formula-item flex-center bg-blue-light"},wm={class:"formula-left flex-space"},Rm={class:"formula-right flex-evenly"},Fm={class:"fraction",style:{width:"200px"}},Bm={class:"formula-item formula-conclusion bg-blue-light"},Gm={key:0,class:"flex-evenly",style:{width:"500px"}},Pm={key:1,class:"flex-evenly",style:{width:"500px"}},Wm={class:"flex-center"},Lm={key:1,class:"formula-conclusion bg-blue-light"},Zm={class:"segment-formula"},Hm={class:"sub-title"},_m={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Jm={class:"formula-block"},Xm={class:"formula-item flex-evenly bg-blue-light"},um={class:"formula-right flex-evenly"},Km={class:"fraction",style:{width:"240px"}},qm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},$m={key:0,class:"flex-end text-tips"},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"200px"}},iD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},rD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},cD={class:"sub-title"},MD={key:0,class:"formula-block"},mD={key:0,class:"formula-item flex-evenly bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"60px"}},ID={class:"fraction",style:{width:"60px"}},ED={class:"formula-item flex-evenly bg-blue-light"},yD={class:"formula-right flex-evenly"},AD={class:"fraction",style:{width:"150px"}},TD={class:"fraction",style:{width:"150px"}},VD={key:0},xD={class:"formula-item flex-evenly bg-blue-light"},pD={class:"formula-right flex-evenly"},zD={class:"fraction",style:{width:"150px"}},jD={class:"fraction",style:{width:"150px"}},SD={class:"formula-item flex-evenly bg-blue-light"},UD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},fD={class:"fraction",style:{width:"150px"}},OD={class:"formula-item formula-conclusion bg-blue-light"},CD={class:"flex-evenly",style:{width:"500px"}},bD={key:0,class:"flex-evenly"},hD={class:"fraction"},YD={class:"flex-evenly",style:{width:"700px"}},QD={key:0,class:"flex-evenly",style:{width:"500px"}},wD={class:"fraction",style:{width:"140px"}},RD={key:1,class:"formula-item formula-conclusion bg-blue-light"},FD={class:"header-block"},BD={class:"bg-block"},GD={class:"block-title"},PD={key:0,class:"formula-block"},WD={class:"formula-item flex-evenly bg-blue-light"},LD={class:"formula-right flex-evenly"},ZD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},_D={key:0},JD={class:"formula-item flex-evenly bg-blue-light"},XD={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},KD={class:"fraction",style:{width:"150px"}},qD={class:"formula-item flex-evenly bg-blue-light"},$D={class:"formula-right flex-evenly"},vD={class:"fraction",style:{width:"150px"}},tg={class:"fraction",style:{width:"150px"}},eg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ag={key:0,class:"flex-evenly",style:{width:"500px"}},lg={key:1,class:"flex-evenly",style:{width:"700px"}},og={key:1,class:"formula-item formula-conclusion bg-blue-light"};function ig(o,e,a,c,d,i){var r,N,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",dc,[t.createElementVNode("div",rc,[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",sc,[t.createElementVNode("div",Nc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",cc,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=a.report)==null?void 0:r.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At;return t.openBlock(),t.createElementBlock("div",{key:"summary"+y,class:"segment-box"},[t.createElementVNode("div",Mc,[t.createElementVNode("div",mc,"Seg."+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(O,Ct)=>{var Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",Dc,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",gc,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ic,t.toDisplayString(i.computeLat((xt=O==null?void 0:O.departure)==null?void 0:xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((pt=O==null?void 0:O.departure)==null?void 0:pt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((zt=O==null?void 0:O.departure)==null?void 0:zt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Ec,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",yc,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",Ac,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((kt=O==null?void 0:O.arrival)==null?void 0:kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((ft=O==null?void 0:O.arrival)==null?void 0:ft.utcTime))+")",1)])])}),128)),t.createElementVNode("div",Tc,[t.createElementVNode("table",Vc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(k=l==null?void 0:l.extend)==null?void 0:k.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(z=(V=l==null?void 0:l.extend)==null?void 0:V.cp)==null?void 0:z.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(x=(E=l==null?void 0:l.extend)==null?void 0:E.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(p=l==null?void 0:l.extend)==null?void 0:p.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((C=(D=l==null?void 0:l.extend)==null?void 0:D.cp)==null?void 0:C.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",xc,[t.createElementVNode("div",pc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",zc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",jc,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Sc,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Uc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",kc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",fc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Oc,[((f=l==null?void 0:l.timeConclusion)==null?void 0:f.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Cc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",bc,t.toDisplayString((Y=l==null?void 0:l.timeConclusion)==null?void 0:Y.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Q=l==null?void 0:l.timeConclusion)==null?void 0:Q.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",hc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Yc,t.toDisplayString((w=l==null?void 0:l.timeConclusion)==null?void 0:w.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Qc,"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",Rc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Fc,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Bc,"FO Saving")):((L=(W=l==null?void 0:l.fuelConclusion)==null?void 0:W.fo)==null?void 0:L.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Gc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Pc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Wc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Lc,[((h=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:h.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Zc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Hc,t.toDisplayString((X=(J=l==null?void 0:l.fuelConclusion)==null?void 0:J.fo)==null?void 0:X.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((q=(K=l==null?void 0:l.fuelConclusion)==null?void 0:K.fo)==null?void 0:q.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",_c,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Jc,t.toDisplayString((v=($=l==null?void 0:l.fuelConclusion)==null?void 0:$.fo)==null?void 0:v.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Xc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Kc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",qc,[((et=(tt=l==null?void 0:l.fuelConclusion)==null?void 0:tt.dgo)==null?void 0:et.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",$c,"DO/GO Saving")):((lt=(at=l==null?void 0:l.fuelConclusion)==null?void 0:at.dgo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",tM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",eM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",aM,[((it=(ot=l==null?void 0:l.fuelConclusion)==null?void 0:ot.dgo)==null?void 0:it.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",oM,t.toDisplayString((gt=(Z=l==null?void 0:l.fuelConclusion)==null?void 0:Z.dgo)==null?void 0:gt.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Et=(It=l==null?void 0:l.fuelConclusion)==null?void 0:It.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",iM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",nM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",dM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((N=a.report)==null?void 0:N.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",rM,[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",sM,[t.createElementVNode("table",NM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,y)=>(t.openBlock(),t.createElementBlock("tr",{key:y},[t.createElementVNode("td",null,t.toDisplayString(y+1),1),t.createElementVNode("td",null,t.toDisplayString(l.time),1),t.createElementVNode("td",null,t.toDisplayString(l.duration),1),t.createElementVNode("td",null,t.toDisplayString(l.distance),1),t.createElementVNode("td",null,t.toDisplayString(l.fo),1),t.createElementVNode("td",null,t.toDisplayString(l.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((T=a.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[d.editable?(t.openBlock(),t.createBlock(g,{key:0,modelValue:d.remarks,"onUpdate:modelValue":e[0]||(e[0]=l=>d.remarks=l),class:"editor",height:"120px",onBlur:e[1]||(e[1]=l=>i.handleCommit(l))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...l)=>i.handleEdit&&i.handleEdit(...l)),innerHTML:d.remarks},null,40,cM))],2)],2),t.createElementVNode("div",MM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,y)=>{var j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,kt,ft,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,F,H,Ot,Jt,Xt,ut,Kt,qt,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,ke,fe,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,va,m,u,vt,te,le,Ve,ue,Ke,qe,$e,ve,ta,ea,aa,la,oa,ia,na,da,ra,sa,Na,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,Sa,Ua,ka,fa,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,ua,Ka,qa,tl,el,ll,ol,il,nl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,kl,fl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Fl,Bl,Gl,Pl,Wl,Ll,Zl,Hl,al,ul,Kl,ql,$l,vl,to,eo,ao,lo,oo,io,no,ro,so,No,co,Mo,mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,So,Uo,ko,fo,Oo,Co,bo,ho,Yo,Qo,wo,Ro,Fo,Bo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,uo,Ko,qo,$o,vo,ti,ei,ai,li,oi,ii,ni,di,ri,si,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi,ji,Si,Ui,ki,fi,Oi,Ci,bi,hi,Yi,Qi,wi,Ri,Fi,Bi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,ui,s,nt,dt,rt,st,Nt,_l,Jl,Xl,xe,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn;return t.openBlock(),t.createElementBlock("div",{key:y,class:"segment-block"},[t.createElementVNode("div",mM,[t.createElementVNode("div",DM,"Voyage Analysis Seg. "+t.toDisplayString(y+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=l==null?void 0:l.extend)==null?void 0:j.segTimes,(ct,qi)=>{var dl,Ki,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",gM,[(dl=ct==null?void 0:ct.departure)!=null&&dl.portName?(t.openBlock(),t.createElementBlock("span",IM,t.toDisplayString((Ki=ct==null?void 0:ct.departure)==null?void 0:Ki.portName),1)):(t.openBlock(),t.createElementBlock("span",EM,t.toDisplayString(i.computeLat((gn=ct==null?void 0:ct.departure)==null?void 0:gn.lat).pretty)+", "+t.toDisplayString(i.computeLng((In=ct==null?void 0:ct.departure)==null?void 0:In.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((En=ct==null?void 0:ct.departure)==null?void 0:En.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",yM,[(yn=ct==null?void 0:ct.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",AM,t.toDisplayString((An=ct==null?void 0:ct.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",TM,t.toDisplayString(i.computeLat((Tn=ct==null?void 0:ct.arrival)==null?void 0:Tn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Vn=ct==null?void 0:ct.arrival)==null?void 0:Vn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((xn=ct==null?void 0:ct.arrival)==null?void 0:xn.utcTime))+")",1)])])}),128)),t.createElementVNode("table",VM,[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",xM,t.toDisplayString((A=(k=l==null?void 0:l.goodWx)==null?void 0:k.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",pM,t.toDisplayString((z=(V=l==null?void 0:l.goodWx)==null?void 0:V.inEca)==null?void 0:z.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(E=l==null?void 0:l.allWx)==null?void 0:E.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(p=l==null?void 0:l.allWx)==null?void 0:p.inEca)==null?void 0:S.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",zM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",jM,t.toDisplayString((U=(b=l==null?void 0:l.goodWx)==null?void 0:b.inEca)==null?void 0:U.time),1),t.createElementVNode("td",null,t.toDisplayString((Y=(f=l==null?void 0:l.allWx)==null?void 0:f.outEca)==null?void 0:Y.time),1),t.createElementVNode("td",null,t.toDisplayString((w=(Q=l==null?void 0:l.allWx)==null?void 0:Q.inEca)==null?void 0:w.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",SM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",UM,t.toDisplayString(((L=(W=l==null?void 0:l.goodWx)==null?void 0:W.inEca)==null?void 0:L.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((h=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:h.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((X=(J=l==null?void 0:l.allWx)==null?void 0:J.inEca)==null?void 0:X.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",kM,t.toDisplayString(((q=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:q.sumFoCons)||"--"),1),t.createElementVNode("td",fM,t.toDisplayString(((v=($=l==null?void 0:l.goodWx)==null?void 0:$.inEca)==null?void 0:v.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((et=(tt=l==null?void 0:l.allWx)==null?void 0:tt.outEca)==null?void 0:et.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(at=l==null?void 0:l.allWx)==null?void 0:at.inEca)==null?void 0:lt.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",OM,t.toDisplayString(((it=(ot=l==null?void 0:l.goodWx)==null?void 0:ot.outEca)==null?void 0:it.avgFoCons)||"--"),1),t.createElementVNode("td",CM,t.toDisplayString(((gt=(Z=l==null?void 0:l.goodWx)==null?void 0:Z.inEca)==null?void 0:gt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",hM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.inEca)==null?void 0:Vt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((pt=(xt=l==null?void 0:l.allWx)==null?void 0:xt.outEca)==null?void 0:pt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",YM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((ft=(kt=l==null?void 0:l.goodWx)==null?void 0:kt.inEca)==null?void 0:ft.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=l==null?void 0:l.allWx)==null?void 0:bt.outEca)==null?void 0:ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=l==null?void 0:l.allWx)==null?void 0:Yt.inEca)==null?void 0:Qt.avgDgoCons)||"--"),1)])])]),(wt=l==null?void 0:l.goodWx)!=null&&wt.distance?(t.openBlock(),t.createElementBlock("table",wM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[y],(ct,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ct,(dl,Ki)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ki},[dl.goodWx?(t.openBlock(),t.createElementBlock("tr",RM,[t.createElementVNode("td",null,t.toDisplayString(dl.type)+" "+t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(dl),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(dl.utc,i.computePrevTime(dl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",FM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Ft=l==null?void 0:l.goodWx)!=null&&Ft.distance?(t.openBlock(),t.createElementBlock("div",BM,[t.createElementVNode("div",GM,[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",PM,[(Gt=(Bt=a.report)==null?void 0:Bt.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((ut=(Xt=a.report)==null?void 0:Xt.weather)!=null&&ut.disableCFactor)?(t.openBlock(),t.createElementBlock("span",ZM,t.toDisplayString((Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((B=l==null?void 0:l.goodWx)==null?void 0:B.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",HM,t.toDisplayString((ne=l==null?void 0:l.goodWx)==null?void 0:ne.pfmSpd)+" (kts)",1)],64)):(re=(de=a.report)==null?void 0:de.weather)!=null&&re.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((se=l==null?void 0:l.goodWx)==null?void 0:se.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ne=l==null?void 0:l.goodWx)==null?void 0:Ne.avgWf)>0?(ce=l==null?void 0:l.goodWx)==null?void 0:ce.avgWf:`(${(Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_M,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",JM,t.toDisplayString((Ue=l==null?void 0:l.goodWx)==null?void 0:Ue.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Wt=(Pt=a.report)==null?void 0:Pt.weather)!=null&&Wt.favorableCur&&((Lt=l==null?void 0:l.goodWx)==null?void 0:Lt.avgCf)>0?(t.openBlock(),t.createElementBlock("span",LM,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",WM,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.pfmSpd)+" (kts)",1)],64))],64)),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",XM,"(Under-performance)")):t.createCommentVNode("",!0),((fe=l==null?void 0:l.goodWx)==null?void 0:fe.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",uM,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KM,[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",qM,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Fe=(Re=a.report)==null?void 0:Re.weather)!=null&&Fe.disableCFactor)?(t.openBlock(),t.createElementBlock("label",$M,"GW Average Speed")):(Ge=(Be=a.report)==null?void 0:Be.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(he=(be=a.report)==null?void 0:be.weather)!=null&&he.favorableCur&&((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.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",vM,[t.createElementVNode("div",tm,[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",em,[(_e=(He=a.report)==null?void 0:He.weather)!=null&&_e.favorableCur&&((Je=l==null?void 0:l.allWx)==null?void 0:Je.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ve=l==null?void 0:l.allWx)==null?void 0:Ve.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ue=l==null?void 0:l.allWx)==null?void 0:ue.avgWf)>0?(Ke=l==null?void 0:l.allWx)==null?void 0:Ke.avgWf:`(${(qe=l==null?void 0:l.allWx)==null?void 0:qe.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",lm,t.toDisplayString(($e=l==null?void 0:l.allWx)==null?void 0:$e.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=l==null?void 0:l.allWx)==null?void 0:Xe.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ae=l==null?void 0:l.allWx)==null?void 0:ae.avgCf)>0?(va=l==null?void 0:l.allWx)==null?void 0:va.avgCf:`(${(m=l==null?void 0:l.allWx)==null?void 0:m.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((u=l==null?void 0:l.allWx)==null?void 0:u.avgWf)>0?(vt=l==null?void 0:l.allWx)==null?void 0:vt.avgWf:`(${(te=l==null?void 0:l.allWx)==null?void 0:te.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",am,t.toDisplayString((le=l==null?void 0:l.allWx)==null?void 0:le.pfmSpd)+" (kts)",1)],64)),((ve=l==null?void 0:l.allWx)==null?void 0:ve.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",om,"(Under-performance)")):t.createCommentVNode("",!0),((ta=l==null?void 0:l.allWx)==null?void 0:ta.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",im,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",nm,[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",dm,[(aa=(ea=a.report)==null?void 0:ea.weather)!=null&&aa.favorableCur&&((la=l==null?void 0:l.allWx)==null?void 0:la.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",rm,[t.createElementVNode("div",sm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),(ia=(oa=a.report)==null?void 0:oa.weather)!=null&&ia.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Nm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",cm,[t.createElementVNode("div",Mm,[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",mm,[t.createElementVNode("div",Dm,[t.createElementVNode("div",null,t.toDisplayString((da=(na=a.report)==null?void 0:na.weather)!=null&&da.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",gm,[t.createElementVNode("div",Im,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(sa=(ra=l==null?void 0:l.extend)==null?void 0:ra.cp)==null?void 0:sa.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",null,t.toDisplayString((ca=(Na=a.report)==null?void 0:Na.weather)!=null&&ca.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ma=(Ma=l==null?void 0:l.extend)==null?void 0:Ma.cp)==null?void 0:ma.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ga=(Da=l==null?void 0:l.extend)==null?void 0:Da.cp)==null?void 0:ga.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Ea=(Ia=a.report)==null?void 0:Ia.weather)!=null&&Ea.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Aa=(ya=l==null?void 0:l.extend)==null?void 0:ya.cp)==null?void 0:Aa.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-9ba7a95a><div class="flex-space" style="width:300px;font-weight:400;" data-v-9ba7a95a><label data-v-9ba7a95a>Time Lost</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(a)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-9ba7a95a><label data-v-9ba7a95a>Time Gained</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(c)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(a)</div></div></div>',1))]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Va=(Ta=l==null?void 0:l.extend)==null?void 0:Ta.cp)==null?void 0:Va.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",jm,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pa=(xa=l==null?void 0:l.extend)==null?void 0:xa.cp)==null?void 0:pa.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",Sm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ja=(za=l==null?void 0:l.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ua=(Sa=l==null?void 0:l.extend)==null?void 0:Sa.cp)==null?void 0:Ua.speed,"Under"))+" kts) ",1)])]),(ka=l==null?void 0:l.goodWx)!=null&&ka.distance?(t.openBlock(),t.createElementBlock("div",Um,[t.createElementVNode("div",km,[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",fm,[t.createElementVNode("div",Om,[t.createElementVNode("div",null,t.toDisplayString((Oa=(fa=a.report)==null?void 0:fa.weather)!=null&&Oa.noExtrapolation?(Ca=l==null?void 0:l.goodWx)==null?void 0:Ca.distance:(ba=l==null?void 0:l.allWx)==null?void 0:ba.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ha=l==null?void 0:l.goodWx)==null?void 0:ha.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ya=l==null?void 0:l.timeConclusion)==null?void 0:Ya.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Cm,[t.createElementVNode("div",bm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(wa=(Qa=l==null?void 0:l.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",hm,[t.createElementVNode("div",Ym,[t.createElementVNode("div",null,t.toDisplayString((Fa=(Ra=a.report)==null?void 0:Ra.weather)!=null&&Fa.noExtrapolation?(Ba=l==null?void 0:l.goodWx)==null?void 0:Ba.distance:(Ga=l==null?void 0:l.allWx)==null?void 0:Ga.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=l==null?void 0:l.timeConclusion)==null?void 0:Pa.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Wa=l==null?void 0:l.timeConclusion)==null?void 0:Wa.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Qm,[t.createElementVNode("div",wm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Za=(La=l==null?void 0:l.extend)==null?void 0:La.cp)==null?void 0:Za.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Fm,[t.createElementVNode("div",null,t.toDisplayString((_a=(Ha=a.report)==null?void 0:Ha.weather)!=null&&_a.noExtrapolation?(Ja=l==null?void 0:l.goodWx)==null?void 0:Ja.distance:(Xa=l==null?void 0:l.allWx)==null?void 0:Xa.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ua=l==null?void 0:l.timeConclusion)==null?void 0:ua.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ka=l==null?void 0:l.timeConclusion)==null?void 0:Ka.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Bm,[((qa=l==null?void 0:l.timeConclusion)==null?void 0:qa.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Gm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.timeLost)+" (hrs)",1)])):((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Pm,[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((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Wm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((cl=l==null?void 0:l.timeConclusion)==null?void 0:cl.conclusionStatus)==="Lost"?"lost":((Ml=l==null?void 0:l.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((ml=l==null?void 0:l.timeConclusion)==null?void 0:ml.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Lm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Zm,[t.createElementVNode("div",Hm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(gl=(Dl=a.report)==null?void 0:Dl.weather)!=null&&gl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",_m,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Jm,[t.createElementVNode("div",Xm,[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",um,[t.createElementVNode("div",Km,[t.createElementVNode("div",null,t.toDisplayString((El=(Il=a.report)==null?void 0:Il.weather)!=null&&El.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",qm,[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)),((Al=(yl=l.extend)==null?void 0:yl.cp)==null?void 0:Al.dgo)>0?(t.openBlock(),t.createElementBlock("div",$m," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",vm,[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",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((Vl=(Tl=a.report)==null?void 0:Tl.weather)!=null&&Vl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(pl=(xl=l==null?void 0:l.extend)==null?void 0:xl.cp)==null?void 0:pl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",aD,[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",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((jl=(zl=a.report)==null?void 0:zl.weather)!=null&&jl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Sl=l==null?void 0:l.extend)==null?void 0:Sl.cp)==null?void 0:Ul.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-9ba7a95a><div class="flex-space" style="width:240px;" data-v-9ba7a95a><label data-v-9ba7a95a>Fuel Over-consumption</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(d)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(e)</div></div><div class="flex-space" style="width:200px;" data-v-9ba7a95a><label data-v-9ba7a95a>Fuel Saving</label><div data-v-9ba7a95a>=</div><div data-v-9ba7a95a>(f)</div><div data-v-9ba7a95a>-</div><div data-v-9ba7a95a>(d)</div></div></div>',1)),((fl=(kl=l.extend)==null?void 0:kl.cp)==null?void 0:fl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",iD,[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",nD,[t.createElementVNode("div",dD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",rD,[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",sD,[t.createElementVNode("div",ND,[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((hl=(bl=a.report)==null?void 0:bl.weather)!=null&&hl.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",cD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(t.openBlock(),t.createElementBlock("div",MD,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",mD,[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",DD,[t.createElementVNode("div",gD,[t.createElementVNode("div",null,t.toDisplayString((M=(Rl=l==null?void 0:l.goodWx)==null?void 0:Rl.inEca)==null?void 0:M.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Bl=(Fl=l==null?void 0:l.extend)==null?void 0:Fl.cp)==null?void 0:Bl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",ED,[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",yD,[t.createElementVNode("div",AD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(al=l==null?void 0:l.goodWx)==null?void 0:al.distance:(ul=l==null?void 0:l.allWx)==null?void 0:ul.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ql=l==null?void 0:l.goodWx)==null?void 0:ql.sumFoCons),1),((vl=($l=l==null?void 0:l.goodWx)==null?void 0:$l.inEca)==null?void 0:vl.distance)>0?(t.openBlock(),t.createElementBlock("span",VD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((eo=(to=l==null?void 0:l.fuelConclusion)==null?void 0:to.fo)==null?void 0:eo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=l.fuelConclusion)==null?void 0:lo.fo)==null?void 0:oo.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",xD,[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",pD,[t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((no=(io=a.report)==null?void 0:io.weather)!=null&&no.noExtrapolation?(ro=l==null?void 0:l.goodWx)==null?void 0:ro.distance:(so=l==null?void 0:l.allWx)==null?void 0:so.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((No=l==null?void 0:l.timeConclusion)==null?void 0:No.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.fuelConclusion)==null?void 0:co.fo)==null?void 0:Mo.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l.fuelConclusion)==null?void 0:mo.fo)==null?void 0:Do.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",SD,[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",UD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.report)==null?void 0:go.weather)!=null&&Io.noExtrapolation?(Eo=l==null?void 0:l.goodWx)==null?void 0:Eo.distance:(yo=l==null?void 0:l.allWx)==null?void 0:yo.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",fD,[t.createElementVNode("div",null,t.toDisplayString((Vo=(To=l==null?void 0:l.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=l.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",OD,[((jo=(zo=l==null?void 0:l.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",CD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(So=l==null?void 0:l.fuelConclusion)==null?void 0:So.fo)==null?void 0:Uo.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((fo=(ko=l==null?void 0:l.fuelConclusion)==null?void 0:ko.fo)==null?void 0:fo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=l==null?void 0:l.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:Co.overCons),1)]),(ho=(bo=l==null?void 0:l.goodWx)==null?void 0:bo.inEca)!=null&&ho.distance?(t.openBlock(),t.createElementBlock("div",bD,[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",hD,[t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l==null?void 0:l.goodWx)==null?void 0:Yo.inEca)==null?void 0:Qo.distance)+" * "+t.toDisplayString((Ro=(wo=l==null?void 0:l.fuelConclusion)==null?void 0:wo.fo)==null?void 0:Ro.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Bo=(Fo=a.report)==null?void 0:Fo.weather)!=null&&Bo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",YD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l==null?void 0:l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((uo=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:uo.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(Ko=l==null?void 0:l.fuelConclusion)==null?void 0:Ko.fo)==null?void 0:qo.saving)+" (mt)",1)]),(vo=($o=l==null?void 0:l.goodWx)==null?void 0:$o.inEca)!=null&&vo.distance?(t.openBlock(),t.createElementBlock("div",QD,[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",wD,[t.createElementVNode("div",null,t.toDisplayString((ei=(ti=a.report)==null?void 0:ti.weather)!=null&&ei.noExtrapolation?(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)==null?void 0:li.distance:(ii=(oi=l==null?void 0:l.allWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Over"?"flex-center lost":((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",RD,t.toDisplayString(d.noGoodWxDay),1)),((Vi=(Ti=l==null?void 0:l.extend)==null?void 0:Ti.cp)==null?void 0:Vi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",FD,[t.createElementVNode("div",BD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",GD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",PD,[t.createElementVNode("div",WD,[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",LD,[t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((zi=(pi=a.report)==null?void 0:pi.weather)!=null&&zi.noExtrapolation?(ji=l==null?void 0:l.goodWx)==null?void 0:ji.distance:(Si=l==null?void 0:l.allWx)==null?void 0:Si.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ui=l==null?void 0:l.goodWx)==null?void 0:Ui.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((ki=l==null?void 0:l.goodWx)==null?void 0:ki.sumDgoCons),1),((Oi=(fi=l==null?void 0:l.goodWx)==null?void 0:fi.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",_D,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((bi=(Ci=l==null?void 0:l.fuelConclusion)==null?void 0:Ci.fo)==null?void 0:bi.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=l==null?void 0:l.goodWx)==null?void 0:hi.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qi=(Yi=l.fuelConclusion)==null?void 0:Yi.dgo)==null?void 0:Qi.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",JD,[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",XD,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Fi=l==null?void 0:l.goodWx)==null?void 0:Fi.distance:(Bi=l==null?void 0:l.allWx)==null?void 0:Bi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",null,t.toDisplayString((Wi=(Pi=l==null?void 0:l.fuelConclusion)==null?void 0:Pi.dgo)==null?void 0:Wi.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zi=(Li=l.fuelConclusion)==null?void 0:Li.dgo)==null?void 0:Zi.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",qD,[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",$D,[t.createElementVNode("div",vD,[t.createElementVNode("div",null,t.toDisplayString((_i=(Hi=a.report)==null?void 0:Hi.weather)!=null&&_i.noExtrapolation?(Ji=l==null?void 0:l.goodWx)==null?void 0:Ji.distance:(Xi=l==null?void 0:l.allWx)==null?void 0:Xi.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ui=l==null?void 0:l.timeConclusion)==null?void 0:ui.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",tg,[t.createElementVNode("div",null,t.toDisplayString((nt=(s=l==null?void 0:l.fuelConclusion)==null?void 0:s.dgo)==null?void 0:nt.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((rt=(dt=l.fuelConclusion)==null?void 0:dt.dgo)==null?void 0:rt.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",eg,[((Nt=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ag,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=(_l=l==null?void 0:l.fuelConclusion)==null?void 0:_l.dgo)==null?void 0:Jl.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xe=(Xl=l==null?void 0:l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:xe.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vi=($i=l==null?void 0:l.fuelConclusion)==null?void 0:$i.dgo)==null?void 0:vi.overCons),1)])):((en=(tn=l==null?void 0:l.fuelConclusion)==null?void 0:tn.dgo)==null?void 0:en.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ln=(an=l==null?void 0:l.fuelConclusion)==null?void 0:an.dgo)==null?void 0:ln.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l==null?void 0:l.fuelConclusion)==null?void 0:on.dgo)==null?void 0:nn.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.dgo)==null?void 0:rn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Nn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.dgo)==null?void 0:Nn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(cn=l==null?void 0:l.fuelConclusion)==null?void 0:cn.dgo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",og,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const ng=$a(nc,[["render",ig],["__scopeId","data-v-9ba7a95a"]]),V4="",dg={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 R.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return R.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?R.LngLatHelper.roundPrecision(o,e):a}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,a,c,d,i,g,r,N,T,l,y;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(a=this.report)==null?void 0:a.weather)==null?void 0:c.showAisDistance)??!0,this.showSig=((i=(d=this.report)==null?void 0:d.weather)==null?void 0:i.showSig)??!0,this.showSwell=((r=(g=this.report)==null?void 0:g.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(N=this.report)==null?void 0:N.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((y=(l=this.report)==null?void 0:l.weather)==null?void 0:y.waterTempSwitch)||!1}}},rg={class:"report-inventory"},sg={class:"section summary-section"},Ng={class:"summary-block"},cg={class:"orm-report-table inventory-table"},Mg={class:"label",rowspan:"4"},mg={class:"section inventory-section"},Dg={class:"orm-report-table inventory-table detail"},gg=["colspan"],Ig={key:0,class:"label",colspan:"2"},Eg={key:0,class:"label",rowspan:"2"},yg={key:1,class:"label",rowspan:"2"},Ag={key:2,class:"label",rowspan:"2"},Tg={key:3,class:"label",colspan:"2"},Vg={key:4,class:"label",rowspan:"2"},xg={key:5,class:"label",colspan:"2"},pg={key:6,class:"label",rowspan:"2"},zg={key:7,class:"label",rowspan:"2"},jg={key:8,class:"label",rowspan:"2"},Sg={key:0,class:"label"},Ug={key:1,class:"label"},kg={key:2,class:"label"},fg={key:3,class:"label"},Og={class:"summary-tbody"};function Cg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",rg,[t.createElementVNode("div",sg,[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",Ng,[t.createElementVNode("table",cg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((g=a.report)==null?void 0:g.segments,(r,N)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",Mg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((l=r==null?void 0:r.allWx)==null?void 0:l.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.allWx)==null?void 0:y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((V=r==null?void 0:r.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.goodWx)==null?void 0:z.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.badWx)==null?void 0:p.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((D=r==null?void 0:r.badWx)==null?void 0:D.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.badWx)==null?void 0:C.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.badWx)==null?void 0:b.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((U=r==null?void 0:r.excluded)==null?void 0:U.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.excluded)==null?void 0:f.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.excluded)==null?void 0:Y.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.excluded)==null?void 0:w.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",mg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-9c4b43ab><div class="flex-start" data-v-9c4b43ab><div class="legend good-wx" data-v-9c4b43ab></div><div class="label flex-end" data-v-9c4b43ab>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-9c4b43ab><div class="legend adverse-wx" data-v-9c4b43ab></div><div class="label" data-v-9c4b43ab>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-9c4b43ab><div class="legend excluded" data-v-9c4b43ab></div><div class="label" data-v-9c4b43ab>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-9c4b43ab><label data-v-9c4b43ab>B</label><div data-v-9c4b43ab>BOSP</div><label data-v-9c4b43ab>N</label><div data-v-9c4b43ab>NOON</div><label data-v-9c4b43ab>E</label><div data-v-9c4b43ab>EOSP</div><label data-v-9c4b43ab>*</label><div data-v-9c4b43ab>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-9c4b43ab> 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",Dg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:i.computeWxColspan},"ORM Weather Analysis",8,gg),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ig,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",Eg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("th",yg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),d.showWave?(t.openBlock(),t.createElementBlock("th",Ag,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Tg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",Vg,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",xg,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(t.openBlock(),t.createElementBlock("th",pg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",jg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),d.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Ug,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",kg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",fg,[...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",Og,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((l=r.noon)==null?void 0:l.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((j=(y=r.meteo)==null?void 0:y.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(k=r.meteo)==null?void 0:k.wind)==null?void 0:A.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(z=(V=r.meteo)==null?void 0:V.wave)==null?void 0:z.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(p=(x=r.meteo)==null?void 0:x.wave)==null?void 0:p.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((b=(C=(D=r.meteo)==null?void 0:D.wave)==null?void 0:C.swell)==null?void 0:b.height)??"-"),3)):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Y=(f=(U=r.meteo)==null?void 0:U.wave)==null?void 0:f.sig)==null?void 0:Y.height)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((w=(Q=r.meteo)==null?void 0:Q.current)==null?void 0:w.direction)??"-"),3)):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((G=r.meteo)==null?void 0:G.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((P=r.meteo)==null?void 0:P.cFactor)??"--"),3)):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((W=r.meteo)==null?void 0:W.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((L=r.meteo)==null?void 0:L.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const bg=$a(dg,[["render",Cg],["__scopeId","data-v-9c4b43ab"]]),x4="",hg={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)?"-":R.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+R.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(Sn.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Sn.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Sn.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var y,j,k,A,V,z;let o=[];const e=[],a=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,x)=>{var p,S;x===0&&r.push(E.utc),E.type==="EOSP"&&((p=this.inventory[x+1])==null?void 0:p.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[x+1])==null?void 0:S.utc)),x===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,x)=>{if(x%2===0){const p=Dt(r[x+1]).diff(Dt(r[x]),"minute",!0);for(let S=0;S<=p+1;S++)e.push(this.computeUTCTime(Dt(r[x]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,x)=>{var S,D,C,b,U,f,Y,Q,w,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(h=>h.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(h=>h.slice(0,5)!==E.utc.slice(5,10)),o.push(p)),d=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>d?(D=E.noon)==null?void 0:D.foCons:d),d=Math.ceil(((C=E.cp)==null?void 0:C.fo)>d?(b=E.cp)==null?void 0:b.fo:d),i=Math.ceil(((U=E.noon)==null?void 0:U.dgoCons)>i?(f=E.noon)==null?void 0:f.dgoCons:i),i=Math.ceil(((Y=E.cp)==null?void 0:Y.dgo)>i?(Q=E.cp)==null?void 0:Q.dgo:i),a.push([p,(w=E.noon)==null?void 0:w.avgSpd,(G=E.noon)==null?void 0:G.foCons,(P=E.noon)==null?void 0:P.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),x<g.length-1){const h=g[x+1];a.push([p,(W=h.noon)==null?void 0:W.avgSpd,(L=h.noon)==null?void 0:L.foCons,(_=h.noon)==null?void 0:_.dgoCons,h.avgSpdCalc,h.cp.speed,h.goodWx&&!h.excluded?100:0,h.cp.dgo,h.cp.fo,h.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,x)=>x===0||x===o.length-1||x%N===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:d+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(j=(y=this.report)==null?void 0:y.weather)!=null&&j.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(T);const l={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(z=this.spdDgoConsChart)==null||z.setOption(l)},renderWxCurrChart(){var k;let o=[];const e=[],a=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((A,V)=>{var z,E;V===0&&g.push(A.utc),A.type==="EOSP"&&((z=i[V+1])==null?void 0:z.type)==="BOSP"&&(g.push(A.utc),g.push((E=i[V+1])==null?void 0:E.utc)),V===i.length-1&&g.push(A.utc)}),g.forEach((A,V)=>{if(V%2===0){const z=Dt(g[V+1]).diff(Dt(g[V]),"minute",!0);for(let E=0;E<=z+1;E++)e.push(this.computeUTCTime(Dt(g[V]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((A,V)=>{var E,x,p,S,D,C,b,U,f,Y,Q,w,G,P,W,L,_,h,J,X,K,q,$,v,tt,et,at,lt,ot,it;const z=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(Z=>Z.slice(0,5)===A.utc.slice(5,10))&&o.push(z),V===i.length-1&&(o=o.filter(Z=>Z.slice(0,5)!==A.utc.slice(5,10)),o.push(z)),d=Math.ceil(((p=(x=(E=A.meteo)==null?void 0:E.wave)==null?void 0:x.sig)==null?void 0:p.height)>d?(C=(D=(S=A.meteo)==null?void 0:S.wave)==null?void 0:D.sig)==null?void 0:C.height:d),a.push([z,((b=A.noon)==null?void 0:b.windBF)||((f=(U=A.meteo)==null?void 0:U.wind)==null?void 0:f.scale),(Q=(Y=A.meteo)==null?void 0:Y.wind)==null?void 0:Q.scale,(G=(w=A.meteo)==null?void 0:w.wind)==null?void 0:G.direction,(P=A.noon)==null?void 0:P.seasHt,(_=(L=(W=A.meteo)==null?void 0:W.wave)==null?void 0:L.sig)==null?void 0:_.height,A.dailyAvgCf??((h=a[a.length-1])==null?void 0:h[c.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<i.length-1){const Z=i[V+1];a.push([z,((J=A.noon)==null?void 0:J.windBF)||((K=(X=A.meteo)==null?void 0:X.wind)==null?void 0:K.scale),($=(q=Z.meteo)==null?void 0:q.wind)==null?void 0:$.scale,(tt=(v=Z.meteo)==null?void 0:v.wind)==null?void 0:tt.direction,(et=Z.noon)==null?void 0:et.seasHt,(ot=(lt=(at=A.meteo)==null?void 0:at.wave)==null?void 0:lt.sig)==null?void 0:ot.height,Z.dailyAvgCf??((it=a[a.length-1])==null?void 0:it[c.anlyCurFct]),Z.goodWx&&!Z.excluded?20:0,Z.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%r===0);let N=-2.5,T=2.5,l=1,y=5;N<-2.5||T>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,T=Math.ceil(this.findMaxValue(a,6)/5)*5,l=Math.ceil(Math.max([Math.abs(N),Math.abs(T)])/5),y=Math.ceil(Math.abs(N)/l)+Math.ceil(Math.abs(T)/l)):(l=.5,N=Math.floor(this.findMinValue(a,6)/.5)*l,T=2.5,y=Math.abs(N)/l+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:T,interval:l,splitNumber:y,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:y,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(y-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:y,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(j)},findMaxValue(o,e){let a=-1/0;for(let c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];typeof i=="number"&&!isNaN(i)&&Number(i)>a&&(a=i)}}return a},findMinValue(o,e){let a=1/0;for(let c=0;c<o.length;c++){const d=o[c];if(d.length>=e+1){const i=d[e];i<a&&(a=i)}}return a}}},Yg={class:"report-summary"},Qg={class:"section chart-section"},wg={class:"chart-block"},Rg={ref:"spdFoConsChart",class:"chart"},Fg={ref:"spdDgoConsChart",class:"chart"},Bg={ref:"currChart",class:"chart"},Gg={class:"section map-section"},Pg={class:"map-block"},Wg={class:"flex-space"},Lg={class:"voyage-block bg-blue-light"},Zg={class:"flex-space label-block",style:{width:"100%"}},Hg={style:{"text-transform":"uppercase"}},_g={class:"flex-space label-block",style:{width:"100%"}},Jg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Xg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},ug={class:"flex-space label-block",style:{width:"100%"}},Kg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},qg={class:"flex-space label-block",style:{width:"100%"}},$g={key:0,class:"flex-end",style:{flex:"1"}},vg={key:1,class:"flex-end",style:{flex:"1"}},t1={class:"flex-end",style:{width:"160px"}},e1={class:"flex-space label-block",style:{width:"100%"}},a1={key:0,class:"flex-end",style:{flex:"1"}},l1={key:1,class:"flex-end",style:{flex:"1"}},o1={class:"flex-end",style:{width:"160px"}},i1={class:"flex-space label-block",style:{width:"100%"}},n1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},d1=["src"];function r1(o,e,a,c,d,i){var g,r,N,T,l,y,j,k,A,V,z,E,x,p,S,D,C,b,U,f,Y,Q;return t.openBlock(),t.createElementBlock("div",Yg,[t.createElementVNode("div",Qg,[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",wg,[t.createElementVNode("div",Rg,null,512),t.createElementVNode("div",Fg,null,512),t.createElementVNode("div",Bg,null,512)])]),t.createElementVNode("div",Gg,[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",Pg,[t.createElementVNode("div",Wg,[t.createElementVNode("div",Lg,[t.createElementVNode("div",Zg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Hg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",_g,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Jg,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",Xg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",ug,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Kg,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",qg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(j=a.report)==null?void 0:j.departure)!=null&&k.portName?(t.openBlock(),t.createElementBlock("span",$g,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",vg,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",t1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",e1,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(p=(x=a.report)==null?void 0:x.arrival)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",a1,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",l1,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",o1,t.toDisplayString(i.computeUTCTime((U=(b=a.report)==null?void 0:b.arrival)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",i1,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",n1,t.toDisplayString((Y=(f=a.report)==null?void 0:f.voyage)==null?void 0:Y.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-d28981e9><div data-v-d28981e9>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>0812</div><div data-v-d28981e9><div data-v-d28981e9>08 - Day of the month</div><div data-v-d28981e9>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-d28981e9></i></div><div data-v-d28981e9><div data-v-d28981e9>Wind from N (000)</div><div data-v-d28981e9>Each bard = 10 kts</div><div data-v-d28981e9>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>W 4</div><div data-v-d28981e9>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div class="good-wx" data-v-d28981e9>Date</div><div data-v-d28981e9>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=a.report)==null?void 0:Q.chartUrl,alt:""},null,8,d1)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-d28981e9><div class="header-block" data-v-d28981e9><div class="bg-block" data-v-d28981e9><i class="iconfont icon-baobiao" data-v-d28981e9></i><div class="block-title" data-v-d28981e9>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>1. Good Weather Method</div><div class="method-body" data-v-d28981e9> 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-d28981e9> 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-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-d28981e9> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>4. “About”</div><div class="method-body" data-v-d28981e9> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-d28981e9> 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-d28981e9> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>6. Further reference materials</div><div class="method-body" data-v-d28981e9>Please send mail to <a href="mailto:op@ormwx.com" data-v-d28981e9>op@ormwx.com</a>.</div></div></div></div>',1))])}const s1=$a(hg,[["render",r1],["__scopeId","data-v-d28981e9"]]),p4="",z4="",N1={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,a)=>e.date<a.date);o==null||o.forEach((e,a)=>{var N,T;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(y=>{const j=`<p>${y}</p>`;c=c+j}),c=c+"</div>"):c=e.body;const d=document.getElementById("col1"),i=document.getElementById("col2"),g=(d==null?void 0:d.offsetHeight)||0,r=(i==null?void 0:i.offsetHeight)||0;if(g<=r){let y=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
2
2
  <div class="vrpt-date">Date: ${e.date}</div>
3
3
  <div class="vrpt-from">From: ${e.from}</div>
4
4
  <div class="vrpt-to">To: ${e.to}</div>