@idmui/extend 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(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,fn,Dl,Dt,zr,B,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),V4="",Ha=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:fn.Editor,Toolbar:fn.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 fr(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 Il=Ha(Sr,[["render",fr],["__scopeId","data-v-9854b172"]]),kr={install(o){o.component("IdmEditor",Il)}},x4="";/*! 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 p4="",Yr={name:"PlanReport",components:{Editor:Il,IdmBrand:Dl.IdmBrand,IdmLoading:Dl.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=B.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)?"-":B.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>B.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>B.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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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,f,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)>((f=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:f.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,f,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&&((f=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:f.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 h,Y,R,G,P,W,L,_,Q,J;const k=U.meteo;if(k){const X=Dt(k.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((Y=(h=k.wave)==null?void 0:h.sig)==null?void 0:Y.height)>c?(G=(R=k.wave)==null?void 0:R.sig)==null?void 0:G.height:c),e.push([X,(P=k.wind)==null?void 0:P.kts,(L=(W=k.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=k.wind)==null?void 0:_.direction,(Q=k.wind)==null?void 0:Q.degree,(J=k.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,f=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:f,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"},Br={class:"col"},Fr={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},Kr={style:{"margin-left":"16px"}},ur={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={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},os={style:{"margin-right":"8px"}},is=["src"],ns={class:"legends text-tips"},ds={class:"legend"},rs={key:0,class:"legend"},ss={key:1,class:"legend"},Ns={key:1,class:"empty"},cs={class:"section comparison-section"},Ms={key:0,class:"orm-report-table",style:{"font-size":"12px"}},ms={key:0},Ds=["rowspan"],gs={key:0},Is={key:1},Es={rowspan:"2"},ys={rowspan:"2"},As={key:0},Ts={key:1},Vs={rowspan:"1"},xs={key:0},ps={rowspan:"2"},zs={rowspan:"2"},js={rowspan:"2"},Ss={key:0},Us={key:0},fs=["rowspan"],ks={key:0},Os={rowspan:"1"},Cs={key:0},bs={key:0},hs={key:1},Ys={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Qs={key:0},ws={class:"section waypoint-section"},Rs={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Bs={class:"bg-block"},Fs={class:"block-title"},Gs={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ps=["onClick"],Ws={class:"advisory bg-blue-light-2"},Ls=["innerHTML"],Zs={class:"major-waypoint"},Hs={class:"major-header bg-blue-light-2"},_s={key:0,class:"cell-item flex"},Js={key:1,class:"cell-item flex"},Xs={class:"major-body"},Ks={class:"cell-item flex",style:{flex:"2.5"}},us={key:0,class:"flex-center"},qs={key:1,class:"flex-center"},$s={key:0,style:{"margin-left":"3px"}},vs={class:"cell-item flex",style:{flex:"1.5"}},tN={key:0,style:{"margin-left":"4px","font-weight":"600"}},eN={key:0,class:"cell-item flex offset"},aN={key:1,class:"cell-item flex nbsp"},lN={key:2,class:"cell-item flex offset"},oN={key:3,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},sN={key:6,class:"cell-item flex offset"},NN={key:7,class:"cell-item flex nbsp"},cN={class:"section forecast-section"},MN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},mN={class:"bg-block"},DN={class:"block-title"},gN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN=["onClick"],EN={class:"echart-block",style:{"page-break-inside":"avoid"}},yN={ref:"echart",class:"echart"},AN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},TN={style:{"page-break-inside":"avoid"}},VN={class:"orm-report-table",style:{"font-size":"12px"}},xN=["colspan"],pN={key:0},zN={class:"flex-center"},jN={class:"degree-box"},SN={key:0},UN={key:2},fN={key:0},kN={class:"degree-box"},ON={key:0},CN={key:2},bN={class:"degree-box"},hN={key:0},YN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2};function BN(o,e,a,c,d,i){var l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,bt,ht,Yt,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,Kt,ut,qt,$t,F,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,_a,Ja,Xa,Ka,ua,qa,$a,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",Br,[t.createElementVNode("div",Fr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((f=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:f.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)),(Y=(h=(k=a.plan)==null?void 0:k.leg)==null?void 0:h.departure)!=null&&Y.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((P=(G=(R=a.plan)==null?void 0:R.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",Kr,t.toDisplayString(i.computeUTCTime(((J=(Q=(_=a.plan)==null?void 0:_.leg)==null?void 0:Q.departure)==null?void 0:J.atd)||((q=(u=(X=a.plan)==null?void 0:X.leg)==null?void 0:u.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",ur,[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,[t.createElementVNode("div",ls,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",os," FCST fr Pos. "+t.toDisplayString(i.computeUTCTime((Yt=(ht=(bt=(kt=(ft=(Ut=(St=a.plan)==null?void 0:St.speeds)==null?void 0:Ut[d.speedIndex])==null?void 0:ft.speed)==null?void 0:kt.sample)==null?void 0:bt.hours)==null?void 0:ht[0])==null?void 0:Yt.eta)),1)]),(Qt=a.plan)!=null&&Qt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,is)]),t.createElementVNode("div",ns,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-094875c7><span class="dangerous" data-v-094875c7></span><span data-v-094875c7>Danger</span></div><div class="legend" data-v-094875c7><span class="severe" data-v-094875c7></span><span data-v-094875c7>Severe</span></div><div class="legend" data-v-094875c7><span class="heavy" data-v-094875c7></span><span data-v-094875c7>Heavy</span></div>',3)),t.createElementVNode("div",ds,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((Gt=(Ft=(Bt=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[0])==null?void 0:Bt.speed)==null?void 0:Ft.lane)==null?void 0:Gt.name),1)]),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>1?(t.openBlock(),t.createElementBlock("div",rs,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((n=(_t=(Ht=(Zt=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[1])==null?void 0:Ht.speed)==null?void 0:_t.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0),((w=(H=a.plan)==null?void 0:H.speeds)==null?void 0:w.length)>2?(t.openBlock(),t.createElementBlock("div",ss,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((ut=(Kt=(Xt=(Jt=(Ot=a.plan)==null?void 0:Ot.speeds)==null?void 0:Jt[2])==null?void 0:Xt.speed)==null?void 0:Kt.lane)==null?void 0:ut.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Ns,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",cs,[($t=(qt=a.plan)==null?void 0:qt.speeds)!=null&&$t.length?(t.openBlock(),t.createElementBlock("table",Ms,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...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,Ds),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",gs,[...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",Is,[...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((F=a.plan)==null?void 0:F.speeds,(m,K)=>{var vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl,Nl,cl,Ml,ml;return t.openBlock(),t.createElementBlock(t.Fragment,{key:K},[t.createElementVNode("tr",null,[t.createElementVNode("td",Es,t.toDisplayString(K+1),1),t.createElementVNode("td",ys,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",As,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((Ke=m.speed)==null?void 0:Ke.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Ts,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(ue=m.speed)==null?void 0:ue.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",Vs,[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",xs," ("+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",ps,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",zs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",js,[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",Ss," + "+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",Us,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,K)),9,fs),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:(ka=(fa=a.weatherPrinciple)==null?void 0:fa.severe)==null?void 0:ka.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",ks,"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((Ba=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Ba.cps[0].fo)+" / "+t.toDisplayString((Ga=(Fa=m.speed)==null?void 0:Fa.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((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",Os,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((tl=m.speed)==null?void 0:tl.totalHrs,1)),1),(al=(el=m.speed)==null?void 0:el.extend)!=null&&al.hoursInECA?(t.openBlock(),t.createElementBlock("span",Cs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ll=m.speed)==null?void 0:ll.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((ol=m.speed)==null?void 0:ol.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((il=m.speed)==null?void 0:il.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",bs,t.toDisplayString(i.roundPrecision(((dl=(nl=m==null?void 0:m.speed)==null?void 0:nl.cost)==null?void 0:dl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((Nl=(rl=m==null?void 0:m.speed)==null?void 0:rl.cost)==null?void 0:Nl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",hs,t.toDisplayString(i.computeCostDiff(a.plan,K)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((cl=m.speed)==null?void 0:cl.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Ml=m.speed)==null?void 0:Ml.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((ml=m.speed)==null?void 0:ml.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Ys,[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",Qs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ie=i.roundPrecision((oe=(ee=a.plan)==null?void 0:ee.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ie.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((re=i.roundPrecision((de=(ne=a.plan)==null?void 0:ne.voyage)==null?void 0:de.priceFO,0))==null?void 0:re.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=i.roundPrecision((Ne=(se=a.plan)==null?void 0:se.voyage)==null?void 0:Ne.priceDGO,0))==null?void 0:ce.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",ws,[t.createElementVNode("div",Rs,[t.createElementVNode("div",Bs,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Fs,"Advisory & Major Waypoint of Route "+t.toDisplayString((ge=(De=(me=(Me=a.plan.speeds)==null?void 0:Me[d.speedIndex])==null?void 0:me.speed)==null?void 0:De.lane)==null?void 0:ge.name),1)]),((Ee=(Ie=a.plan)==null?void 0:Ie.speeds)==null?void 0:Ee.length)>1?(t.openBlock(),t.createElementBlock("div",Gs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ye=a.plan)==null?void 0:ye.speeds,(m,K)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:K,class:t.normalizeClass(["route-item",d.speedIndex===K?"active":""]),onClick:le=>{d.speedIndex=K,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ps)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ws,[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,Ls))]),t.createElementVNode("div",Zs,[t.createElementVNode("div",Hs,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-094875c7>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-094875c7>Time</div><div class="cell-item flex" data-v-094875c7>Nav</div><div class="cell-item flex" data-v-094875c7>Dist <span class="text-units" data-v-094875c7>(nm)</span></div>',4)),(Te=(Ae=a.plan)==null?void 0:Ae.voyage)!=null&&Te.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",_s,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(je=(ze=a.plan)==null?void 0:ze.voyage)!=null&&je.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Js,[...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",Xs,[(Ue=(Se=a.plan)==null?void 0:Se.speeds)!=null&&Ue.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((Ce=(Oe=(ke=(fe=a.plan)==null?void 0:fe.speeds)==null?void 0:ke[d.speedIndex])==null?void 0:Oe.speed)==null?void 0:Ce.argv,(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.sample)==null?void 0:we.wps),(m,K)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:K,class:"cell-row"},[t.createElementVNode("div",Ks,[m.isResume?(t.openBlock(),t.createElementBlock("div",us,"Resume")):(t.openBlock(),t.createElementBlock("div",qs,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",$s,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",vs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",tN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),K?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",aN)),K?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",oN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[K?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[K?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),K?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",NN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",cN,[(Be=(Re=a.plan)==null?void 0:Re.speeds)!=null&&Be.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",MN,[t.createElementVNode("div",mN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",DN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((We=(Pe=(I=(Ge=(Fe=a.plan)==null?void 0:Fe.speeds)==null?void 0:Ge[d.speedIndex])==null?void 0:I.speed)==null?void 0:Pe.lane)==null?void 0:We.name),1)]),((Ze=(Le=a.plan)==null?void 0:Le.speeds)==null?void 0:Ze.length)>1?(t.openBlock(),t.createElementBlock("div",gN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((He=a.plan)==null?void 0:He.speeds,(m,K)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:K,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===K?"active":""]),onClick:le=>{d.speedIndex=K,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,IN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",EN,[t.createElementVNode("div",yN,null,512)]),t.createElementVNode("div",AN,"* "+t.toDisplayString(i.computeModel((Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)),1)]),t.createElementVNode("div",TN,[t.createElementVNode("table",VN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(_a=(ae=a.plan)==null?void 0:ae.voyage)!=null&&_a.sendRptWithBF?3:2},"Wind",8,xN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Xa=(Ja=a.plan)==null?void 0:Ja.voyage)!=null&&Xa.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",pN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=($a=(qa=(ua=(Ka=a.plan)==null?void 0:Ka.speeds)==null?void 0:ua[d.speedIndex])==null?void 0:qa.speed)==null?void 0:$a.sample)==null?void 0:va.hours,(m,K)=>{var vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl;return t.openBlock(),t.createElementBlock("tr",{key:K},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",zN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",jN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",SN,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(ue=(Ke=m.meteo)==null?void 0:Ke.wind)!=null&&ue.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",UN,"-"))]),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",fN,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",kN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",ON,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",CN,"-"))]),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",bN,[(fa=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("span",hN,t.toDisplayString((Ca=(Oa=(ka=m.meteo)==null?void 0:ka.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",YN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Fa=(Ba=m.meteo)==null?void 0:Ba.wave)==null?void 0:Fa.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((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",QN,[(tl=(Za=m.meteo)==null?void 0:Za.current)!=null&&tl.kts?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((al=(el=m.meteo)==null?void 0:el.current)==null?void 0:al.direction),1)):t.createCommentVNode("",!0),(ol=(ll=m.meteo)==null?void 0:ll.current)!=null&&ol.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(nl=(il=m.meteo)==null?void 0:il.current)==null?void 0:nl.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((rl=(dl=m.meteo)==null?void 0:dl.current)==null?void 0:rl.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const kn=Ha(Yr,[["render",BN],["__scopeId","data-v-094875c7"]]),FN={install(o){o.component("PlanReport",kn)}},z4="",GN={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}}}},PN={class:"cover-box"},WN={class:"cover-content"},LN={class:"cover-title"},ZN={class:"cover-info"},HN={class:"info-item"},_N={class:"info-item"},JN={style:{"font-weight":"600"}},XN={key:0},KN={class:"info-item"},uN={style:{"font-weight":"600"}},qN={class:"info-item"},$N={key:0},vN={key:1},tc={class:"info-item"},ec={class:"info-item"},ac={key:0},lc={key:1},oc={class:"info-item"},ic={class:"info-item"},nc={class:"text"};function dc(o,e,a,c,d,i){var g,r,N,T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y;return t.openBlock(),t.createElementBlock("div",PN,[t.createElementVNode("div",WN,[t.createElementVNode("div",LN,t.toDisplayString(a.name),1),t.createElementVNode("div",ZN,[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",HN,[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",_N,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",JN,[t.createTextVNode(t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name)+" ",1),(T=(N=a.report)==null?void 0:N.vessel)!=null&&T.type?(t.openBlock(),t.createElementBlock("span",XN,"("+t.toDisplayString((y=(l=a.report)==null?void 0:l.vessel)==null?void 0:y.type)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",uN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",qN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(f=(j=a.report)==null?void 0:j.departure)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",$N,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("span",vN,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1))]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((x=(E=a.report)==null?void 0:E.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ec,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(S=(p=a.report)==null?void 0:p.arrival)!=null&&S.portName?(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString((C=(D=a.report)==null?void 0:D.arrival)==null?void 0:C.portName),1)):(t.openBlock(),t.createElementBlock("span",lc,t.toDisplayString(i.computePosition((b=a.report)==null?void 0:b.arrival)),1))]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((k=(U=a.report)==null?void 0:U.arrival)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ic,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",nc,t.toDisplayString((Y=(h=a.report)==null?void 0:h.voyage)==null?void 0:Y.loadCondition),1)])])])])}const rc=Ha(GN,[["render",dc],["__scopeId","data-v-18a63532"]]),j4="",sc={name:"OrmVoyageSummary",components:{Editor:Il},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 B.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return B.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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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}}},Nc={class:"report-summary"},cc={class:"section weather-section"},Mc={class:"definition bg-blue-light-2"},mc={style:{"line-height":"1.5"}},Dc={class:"section summary-section"},gc={class:"phase-box"},Ic={class:"phase-index"},Ec={class:"phase-position"},yc={key:0},Ac={key:1},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-cp"},zc={class:"orm-report-table"},jc={class:"phase-conclusion"},Sc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},fc={key:0,class:"text-secondary align-right"},kc={key:0},Oc={key:1},Cc={key:2},bc={key:1,class:"text-secondary"},hc={key:2,class:"value"},Yc={key:0},Qc={class:"gain"},wc={key:1},Rc={class:"lost"},Bc={key:2},Fc={class:"item-conclusion bg-blue-light-2"},Gc={class:"value align-left"},Pc={key:0,class:"text-secondary"},Wc={key:0},Lc={key:1},Zc={key:2},Hc={key:1,class:"text-secondary"},_c={key:2,class:"value"},Jc={key:0},Xc={class:"gain"},Kc={key:1},uc={class:"lost"},qc={key:2},$c={class:"item-conclusion bg-blue-light-2"},vc={class:"value align-left"},tM={key:0,class:"text-secondary"},eM={key:0},aM={key:1},lM={key:2},oM={key:1,class:"text-secondary"},iM={key:2,class:"value"},nM={key:0},dM={class:"gain"},rM={key:1},sM={class:"lost"},NM={key:2},cM={key:0,class:"exclusion-block"},MM={style:{margin:"8px 0"}},mM={class:"orm-report-table"},DM=["innerHTML"],gM={class:"section segment-section"},IM={class:"segment-summary"},EM={class:"segment-index text-left"},yM={class:"segment-position"},AM={key:0},TM={key:1},VM={class:"segment-position"},xM={key:0},pM={key:1},zM={class:"orm-report-table"},jM={class:"good-wx"},SM={class:"good-wx"},UM={class:"good-wx"},fM={class:"good-wx"},kM={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={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},GM={key:0},PM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},WM={key:2,class:"segment-speed"},LM={class:"row"},ZM={class:"speed-right row"},HM={class:"speed"},_M={key:1,class:"speed"},JM={key:0,class:"speed"},XM={class:"speed"},KM={class:"speed"},uM={class:"speed"},qM={key:2,class:"under"},$M={key:3,class:"over"},vM={class:"row"},tm={class:"speed-right formula flex-space"},em={key:0},am={key:3,class:"segment-speed"},lm={class:"row"},om={class:"speed-right row"},im={class:"speed"},nm={class:"speed"},dm={key:2,class:"under"},rm={key:3,class:"over"},sm={class:"row"},Nm={class:"speed-right formula row"},cm={class:"segment-formula"},Mm={class:"sub-title"},mm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Dm={class:"formula-block"},gm={class:"formula-item flex-evenly bg-blue-light"},Im={class:"formula-right flex-evenly"},Em={class:"fraction",style:{width:"240px"}},ym={class:"formula-item flex-center bg-blue-light"},Am={class:"formula-left flex-space"},Tm={class:"formula-right flex-evenly"},Vm={class:"fraction",style:{width:"240px"}},xm={class:"formula-item flex-center bg-blue-light"},pm={class:"formula-left flex-space"},zm={class:"formula-right flex-evenly"},jm={class:"fraction",style:{width:"240px"}},Sm={class:"formula-desc"},Um={class:"flex-end"},fm={class:"flex-end"},km={class:"flex-end"},Om={key:0,class:"formula-block"},Cm={class:"formula-item flex-evenly bg-blue-light"},bm={class:"formula-right flex-evenly"},hm={class:"fraction",style:{width:"200px"}},Ym={class:"formula-item flex-center bg-blue-light"},Qm={class:"formula-left flex-space"},wm={class:"formula-right flex-evenly"},Rm={class:"fraction",style:{width:"200px"}},Bm={class:"formula-item flex-center bg-blue-light"},Fm={class:"formula-left flex-space"},Gm={class:"formula-right flex-evenly"},Pm={class:"fraction",style:{width:"200px"}},Wm={class:"formula-item formula-conclusion bg-blue-light"},Lm={key:0,class:"flex-evenly",style:{width:"500px"}},Zm={key:1,class:"flex-evenly",style:{width:"500px"}},Hm={class:"flex-center"},_m={key:1,class:"formula-conclusion bg-blue-light"},Jm={class:"segment-formula"},Xm={class:"sub-title"},Km={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},um={class:"formula-block"},qm={class:"formula-item flex-evenly bg-blue-light"},$m={class:"formula-right flex-evenly"},vm={class:"fraction",style:{width:"240px"}},tD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},eD={key:0,class:"flex-end text-tips"},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:"200px"}},rD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},cD={class:"formula-item flex-center bg-blue-light"},MD={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"300px"}},DD={class:"sub-title"},gD={key:0,class:"formula-block"},ID={key:0,class:"formula-item flex-evenly bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"60px"}},AD={class:"fraction",style:{width:"60px"}},TD={class:"formula-item flex-evenly bg-blue-light"},VD={class:"formula-right flex-evenly"},xD={class:"fraction",style:{width:"150px"}},pD={class:"fraction",style:{width:"150px"}},zD={key:0},jD={class:"formula-item flex-evenly bg-blue-light"},SD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},fD={class:"fraction",style:{width:"150px"}},kD={class:"formula-item flex-evenly bg-blue-light"},OD={class:"formula-right flex-evenly"},CD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},hD={class:"formula-item formula-conclusion bg-blue-light"},YD={class:"flex-evenly",style:{width:"500px"}},QD={key:0,class:"flex-evenly"},wD={class:"fraction"},RD={class:"flex-evenly",style:{width:"700px"}},BD={key:0,class:"flex-evenly",style:{width:"500px"}},FD={class:"fraction",style:{width:"140px"}},GD={key:1,class:"formula-item formula-conclusion bg-blue-light"},PD={class:"header-block"},WD={class:"bg-block"},LD={class:"block-title"},ZD={key:0,class:"formula-block"},HD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},XD={class:"fraction",style:{width:"150px"}},KD={key:0},uD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={class:"formula-item flex-evenly bg-blue-light"},eg={class:"formula-right flex-evenly"},ag={class:"fraction",style:{width:"150px"}},lg={class:"fraction",style:{width:"150px"}},og={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ig={key:0,class:"flex-evenly",style:{width:"500px"}},ng={key:1,class:"flex-evenly",style:{width:"700px"}},dg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function rg(o,e,a,c,d,i){var r,N,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("div",cc,[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",Mc,[t.createElementVNode("div",mc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",Dc,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,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",gc,[t.createElementVNode("div",Ic,"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,ft,kt;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",Ec,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",yc,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ac,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",Tc,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((ft=O==null?void 0:O.arrival)==null?void 0:ft.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((kt=O==null?void 0:O.arrival)==null?void 0:kt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",pc,[t.createElementVNode("table",zc,[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=(f=l==null?void 0:l.extend)==null?void 0:f.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",jc,[t.createElementVNode("div",Sc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Uc,[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",fc,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",kc,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Oc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Cc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",hc,[((k=l==null?void 0:l.timeConclusion)==null?void 0:k.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Yc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Qc,t.toDisplayString((h=l==null?void 0:l.timeConclusion)==null?void 0:h.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Y=l==null?void 0:l.timeConclusion)==null?void 0:Y.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",wc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Rc,t.toDisplayString((R=l==null?void 0:l.timeConclusion)==null?void 0:R.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Gc,[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",Pc,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Wc,"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",Lc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Zc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",_c,[((Q=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:Q.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Jc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Xc,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=(u=l==null?void 0:l.fuelConclusion)==null?void 0:u.fo)==null?void 0:q.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Kc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",uc,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",qc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",$c,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",vc,[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",tM,[((et=(tt=l==null?void 0:l.fuelConclusion)==null?void 0:tt.dgo)==null?void 0:et.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",eM,"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",aM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",lM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",oM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",iM,[((it=(ot=l==null?void 0:l.fuelConclusion)==null?void 0:ot.dgo)==null?void 0:it.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",nM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dM,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",rM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",sM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",NM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((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",cM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",MM,[t.createElementVNode("table",mM,[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,DM))],2)],2),t.createElementVNode("div",gM,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,bt,ht,Yt,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,Kt,ut,qt,$t,F,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,_a,Ja,Xa,Ka,ua,qa,$a,va,m,K,vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl,Nl,cl,Ml,ml,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,fl,kl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Bl,Fl,Gl,Pl,Wl,Ll,Zl,Hl,sl,Kl,ul,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,fo,ko,Oo,Co,bo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,Ko,uo,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,fi,ki,Oi,Ci,bi,hi,Yi,Qi,wi,Ri,Bi,Fi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,Ki,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",IM,[t.createElementVNode("div",EM,"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 gl,ui,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",yM,[(gl=ct==null?void 0:ct.departure)!=null&&gl.portName?(t.openBlock(),t.createElementBlock("span",AM,t.toDisplayString((ui=ct==null?void 0:ct.departure)==null?void 0:ui.portName),1)):(t.openBlock(),t.createElementBlock("span",TM,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",VM,[(yn=ct==null?void 0:ct.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",xM,t.toDisplayString((An=ct==null?void 0:ct.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",pM,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",zM,[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",jM,t.toDisplayString((A=(f=l==null?void 0:l.goodWx)==null?void 0:f.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",SM,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",UM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",fM,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((h=(k=l==null?void 0:l.allWx)==null?void 0:k.outEca)==null?void 0:h.time),1),t.createElementVNode("td",null,t.toDisplayString((R=(Y=l==null?void 0:l.allWx)==null?void 0:Y.inEca)==null?void 0:R.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",kM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",OM,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(((Q=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:Q.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",CM,t.toDisplayString(((q=(u=l==null?void 0:l.goodWx)==null?void 0:u.outEca)==null?void 0:q.sumFoCons)||"--"),1),t.createElementVNode("td",bM,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",hM,t.toDisplayString(((it=(ot=l==null?void 0:l.goodWx)==null?void 0:ot.outEca)==null?void 0:it.avgFoCons)||"--"),1),t.createElementVNode("td",YM,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",QM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",wM,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",RM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",BM,t.toDisplayString(((kt=(ft=l==null?void 0:l.goodWx)==null?void 0:ft.inEca)==null?void 0:kt.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",FM,[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,(gl,ui)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ui},[gl.goodWx?(t.openBlock(),t.createElementBlock("tr",GM,[t.createElementVNode("td",null,t.toDisplayString(gl.type)+" "+t.toDisplayString(i.computeUTCTime(gl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(gl),"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(gl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(gl.utc,i.computePrevTime(gl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",PM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Bt=l==null?void 0:l.goodWx)!=null&&Bt.distance?(t.openBlock(),t.createElementBlock("div",WM,[t.createElementVNode("div",LM,[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",ZM,[(Gt=(Ft=a.report)==null?void 0:Ft.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((Kt=(Xt=a.report)==null?void 0:Xt.weather)!=null&&Kt.disableCFactor)?(t.openBlock(),t.createElementBlock("span",JM,t.toDisplayString((ut=l==null?void 0:l.goodWx)==null?void 0:ut.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",XM,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",KM,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,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",_M,t.toDisplayString((w=l==null?void 0:l.goodWx)==null?void 0:w.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",HM,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)],64))],64)),((fe=l==null?void 0:l.goodWx)==null?void 0:fe.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",qM,"(Under-performance)")):t.createCommentVNode("",!0),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",$M,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",vM,[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",tm,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Be=(Re=a.report)==null?void 0:Re.weather)!=null&&Be.disableCFactor)?(t.openBlock(),t.createElementBlock("label",em,"GW Average Speed")):(Ge=(Fe=a.report)==null?void 0:Fe.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(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",am,[t.createElementVNode("div",lm,[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",om,[(_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(($a=l==null?void 0:l.allWx)==null?void 0:$a.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((va=l==null?void 0:l.allWx)==null?void 0:va.avgWf)>0?(m=l==null?void 0:l.allWx)==null?void 0:m.avgWf:`(${(K=l==null?void 0:l.allWx)==null?void 0:K.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nm,t.toDisplayString((vt=l==null?void 0:l.allWx)==null?void 0:vt.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?(_a=l==null?void 0:l.allWx)==null?void 0:_a.avgCf:`(${(Ja=l==null?void 0:l.allWx)==null?void 0:Ja.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Xa=l==null?void 0:l.allWx)==null?void 0:Xa.avgWf)>0?(Ka=l==null?void 0:l.allWx)==null?void 0:Ka.avgWf:`(${(ua=l==null?void 0:l.allWx)==null?void 0:ua.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",im,t.toDisplayString((qa=l==null?void 0:l.allWx)==null?void 0:qa.pfmSpd)+" (kts)",1)],64)),((te=l==null?void 0:l.allWx)==null?void 0:te.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",dm,"(Under-performance)")):t.createCommentVNode("",!0),((le=l==null?void 0:l.allWx)==null?void 0:le.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",rm,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",sm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[(Ke=(Ve=a.report)==null?void 0:Ve.weather)!=null&&Ke.favorableCur&&((ue=l==null?void 0:l.allWx)==null?void 0:ue.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",cm,[t.createElementVNode("div",Mm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),($e=(qe=a.report)==null?void 0:qe.weather)!=null&&$e.noExtrapolation?(t.openBlock(),t.createElementBlock("span",mm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[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",Im,[t.createElementVNode("div",Em,[t.createElementVNode("div",null,t.toDisplayString((ta=(ve=a.report)==null?void 0:ve.weather)!=null&&ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[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",ym,[t.createElementVNode("div",Am,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(aa=(ea=l==null?void 0:l.extend)==null?void 0:ea.cp)==null?void 0:aa.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Tm,[t.createElementVNode("div",Vm,[t.createElementVNode("div",null,t.toDisplayString((oa=(la=a.report)==null?void 0:la.weather)!=null&&oa.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,(na=(ia=l==null?void 0:l.extend)==null?void 0:ia.cp)==null?void 0:na.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",xm,[t.createElementVNode("div",pm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ra=(da=l==null?void 0:l.extend)==null?void 0:da.cp)==null?void 0:ra.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",zm,[t.createElementVNode("div",jm,[t.createElementVNode("div",null,t.toDisplayString((Na=(sa=a.report)==null?void 0:sa.weather)!=null&&Na.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ma=(ca=l==null?void 0:l.extend)==null?void 0:ca.cp)==null?void 0:Ma.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",Sm,[t.createElementVNode("div",Um,[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,(Da=(ma=l==null?void 0:l.extend)==null?void 0:ma.cp)==null?void 0:Da.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",fm,[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,(Ia=(ga=l==null?void 0:l.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",km,[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,(ya=(Ea=l==null?void 0:l.extend)==null?void 0:Ea.cp)==null?void 0:ya.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,(Ta=(Aa=l==null?void 0:l.extend)==null?void 0:Aa.cp)==null?void 0:Ta.speed,"Under"))+" kts) ",1)])]),(Va=l==null?void 0:l.goodWx)!=null&&Va.distance?(t.openBlock(),t.createElementBlock("div",Om,[t.createElementVNode("div",Cm,[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",bm,[t.createElementVNode("div",hm,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=a.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?(za=l==null?void 0:l.goodWx)==null?void 0:za.distance:(ja=l==null?void 0:l.allWx)==null?void 0:ja.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Sa=l==null?void 0:l.goodWx)==null?void 0:Sa.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ua=l==null?void 0:l.timeConclusion)==null?void 0:Ua.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Ym,[t.createElementVNode("div",Qm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ka=(fa=l==null?void 0:l.extend)==null?void 0:fa.cp)==null?void 0:ka.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",wm,[t.createElementVNode("div",Rm,[t.createElementVNode("div",null,t.toDisplayString((Ca=(Oa=a.report)==null?void 0:Oa.weather)!=null&&Ca.noExtrapolation?(ba=l==null?void 0:l.goodWx)==null?void 0:ba.distance:(ha=l==null?void 0:l.allWx)==null?void 0:ha.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ya=l==null?void 0:l.timeConclusion)==null?void 0:Ya.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qa=l==null?void 0:l.timeConclusion)==null?void 0:Qa.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Bm,[t.createElementVNode("div",Fm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ra=(wa=l==null?void 0:l.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Gm,[t.createElementVNode("div",Pm,[t.createElementVNode("div",null,t.toDisplayString((Fa=(Ba=a.report)==null?void 0:Ba.weather)!=null&&Fa.noExtrapolation?(Ga=l==null?void 0:l.goodWx)==null?void 0:Ga.distance:(Pa=l==null?void 0:l.allWx)==null?void 0:Pa.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Wa=l==null?void 0:l.timeConclusion)==null?void 0:Wa.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((La=l==null?void 0:l.timeConclusion)==null?void 0:La.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Wm,[((Za=l==null?void 0:l.timeConclusion)==null?void 0:Za.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Lm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((al=l==null?void 0:l.timeConclusion)==null?void 0:al.timeLost)+" (hrs)",1)])):((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Zm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Hm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((dl=l==null?void 0:l.timeConclusion)==null?void 0:dl.conclusionStatus)==="Lost"?"lost":((rl=l==null?void 0:l.timeConclusion)==null?void 0:rl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",_m,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Jm,[t.createElementVNode("div",Xm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(Ml=(cl=a.report)==null?void 0:cl.weather)!=null&&Ml.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Km,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",um,[t.createElementVNode("div",qm,[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",$m,[t.createElementVNode("div",vm,[t.createElementVNode("div",null,t.toDisplayString((El=(ml=a.report)==null?void 0:ml.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",tD,[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",eD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",aD,[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",lD,[t.createElementVNode("div",oD,[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",iD,[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",nD,[t.createElementVNode("div",dD,[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)),((kl=(fl=l.extend)==null?void 0:fl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rD,[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",sD,[t.createElementVNode("div",ND,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",cD,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",MD,[t.createElementVNode("div",mD,[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",DD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(t.openBlock(),t.createElementBlock("div",gD,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",ID,[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",ED,[t.createElementVNode("div",yD,[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",AD,[t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=l==null?void 0:l.extend)==null?void 0:Bl.cp)==null?void 0:Fl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",TD,[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",VD,[t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(sl=l==null?void 0:l.goodWx)==null?void 0:sl.distance:(Kl=l==null?void 0:l.allWx)==null?void 0:Kl.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=l==null?void 0:l.goodWx)==null?void 0:ul.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",pD,[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",zD,[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",jD,[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",SD,[t.createElementVNode("div",UD,[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",fD,[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",kD,[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",OD,[t.createElementVNode("div",CD,[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",bD,[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",hD,[((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",YD,[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((ko=(fo=l==null?void 0:l.fuelConclusion)==null?void 0:fo.fo)==null?void 0:ko.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",QD,[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",wD,[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((Fo=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Fo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",RD,[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((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l==null?void 0:l.fuelConclusion)==null?void 0:uo.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",BD,[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",FD,[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",GD,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",PD,[t.createElementVNode("div",WD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",LD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",ZD,[t.createElementVNode("div",HD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[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",XD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((fi=l==null?void 0:l.goodWx)==null?void 0:fi.sumDgoCons),1),((Oi=(ki=l==null?void 0:l.goodWx)==null?void 0:ki.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",KD,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((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",uD,[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",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Bi=l==null?void 0:l.goodWx)==null?void 0:Bi.distance:(Fi=l==null?void 0:l.allWx)==null?void 0:Fi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[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",tg,[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",eg,[t.createElementVNode("div",ag,[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((Ki=l==null?void 0:l.timeConclusion)==null?void 0:Ki.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",lg,[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",og,[((Nt=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ig,[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",ng,[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",dg,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const sg=Ha(sc,[["render",rg],["__scopeId","data-v-9ba7a95a"]]),S4="",Ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLng(){return function(o){return B.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return B.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?B.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}}},cg={class:"report-inventory"},Mg={class:"section summary-section"},mg={class:"summary-block"},Dg={class:"orm-report-table inventory-table"},gg={class:"label",rowspan:"4"},Ig={class:"section inventory-section"},Eg={class:"orm-report-table inventory-table detail"},yg=["colspan"],Ag={key:0,class:"label",colspan:"2"},Tg={key:0,class:"label",rowspan:"2"},Vg={key:1,class:"label",rowspan:"2"},xg={key:2,class:"label",rowspan:"2"},pg={key:3,class:"label",colspan:"2"},zg={key:4,class:"label",rowspan:"2"},jg={key:5,class:"label",colspan:"2"},Sg={key:6,class:"label",rowspan:"2"},Ug={key:7,class:"label",rowspan:"2"},fg={key:8,class:"label",rowspan:"2"},kg={key:0,class:"label"},Og={key:1,class:"label"},Cg={key:2,class:"label"},bg={key:3,class:"label"},hg={class:"summary-tbody"};function Yg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",cg,[t.createElementVNode("div",Mg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",mg,[t.createElementVNode("table",Dg,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",gg,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((f=r==null?void 0:r.allWx)==null?void 0:f.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((k=r==null?void 0:r.excluded)==null?void 0:k.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.excluded)==null?void 0:h.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.excluded)==null?void 0:Y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((R=r==null?void 0:r.excluded)==null?void 0:R.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Ig,[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 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",Eg,[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,yg),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ag,"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",Tg,[...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",Vg,[...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",xg,[...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",pg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",zg,[...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",jg,"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",Sg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ug,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",fg,[...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",kg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Og,[...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",Cg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",bg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",hg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,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=(f=r.meteo)==null?void 0:f.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"?"-":((h=(k=(U=r.meteo)==null?void 0:U.wave)==null?void 0:k.sig)==null?void 0:h.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"?"-":((R=(Y=r.meteo)==null?void 0:Y.current)==null?void 0:R.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 Qg=Ha(Ng,[["render",Yg],["__scopeId","data-v-9c4b43ab"]]),U4="",wg={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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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,f,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,k,h,Y,R,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(Q=>Q.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(Q=>Q.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?(k=E.noon)==null?void 0:k.dgoCons:i),i=Math.ceil(((h=E.cp)==null?void 0:h.dgo)>i?(Y=E.cp)==null?void 0:Y.dgo:i),a.push([p,(R=E.noon)==null?void 0:R.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 Q=g[x+1];a.push([p,(W=Q.noon)==null?void 0:W.avgSpd,(L=Q.noon)==null?void 0:L.foCons,(_=Q.noon)==null?void 0:_.dgoCons,Q.avgSpdCalc,Q.cp.speed,Q.goodWx&&!Q.excluded?100:0,Q.cp.dgo,Q.cp.fo,Q.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}]};(f=this.spdFoConsChart)==null||f.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 f;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,k,h,Y,R,G,P,W,L,_,Q,J,X,u,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)||((k=(U=A.meteo)==null?void 0:U.wind)==null?void 0:k.scale),(Y=(h=A.meteo)==null?void 0:h.wind)==null?void 0:Y.scale,(G=(R=A.meteo)==null?void 0:R.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??((Q=a[a.length-1])==null?void 0:Q[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)||((u=(X=A.meteo)==null?void 0:X.wind)==null?void 0:u.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}]};(f=this.currChart)==null||f.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}}},Rg={class:"report-summary"},Bg={class:"section chart-section"},Fg={class:"chart-block"},Gg={ref:"spdFoConsChart",class:"chart"},Pg={ref:"spdDgoConsChart",class:"chart"},Wg={ref:"currChart",class:"chart"},Lg={class:"section map-section"},Zg={class:"map-block"},Hg={class:"flex-space"},_g={class:"voyage-block bg-blue-light"},Jg={class:"flex-space label-block",style:{width:"100%"}},Xg={style:{"text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},qg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},$g={class:"flex-space label-block",style:{width:"100%"}},vg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},t1={class:"flex-space label-block",style:{width:"100%"}},e1={key:0,class:"flex-end",style:{flex:"1"}},a1={key:1,class:"flex-end",style:{flex:"1"}},l1={class:"flex-end",style:{width:"160px"}},o1={class:"flex-space label-block",style:{width:"100%"}},i1={key:0,class:"flex-end",style:{flex:"1"}},n1={key:1,class:"flex-end",style:{flex:"1"}},d1={class:"flex-end",style:{width:"160px"}},r1={class:"flex-space label-block",style:{width:"100%"}},s1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},N1=["src"];function c1(o,e,a,c,d,i){var g,r,N,T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y;return t.openBlock(),t.createElementBlock("div",Rg,[t.createElementVNode("div",Bg,[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",Fg,[t.createElementVNode("div",Gg,null,512),t.createElementVNode("div",Pg,null,512),t.createElementVNode("div",Wg,null,512)])]),t.createElementVNode("div",Lg,[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",Zg,[t.createElementVNode("div",Hg,[t.createElementVNode("div",_g,[t.createElementVNode("div",Jg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Xg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Kg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",ug,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",qg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",$g,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",vg,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",t1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(f=(j=a.report)==null?void 0:j.departure)!=null&&f.portName?(t.openBlock(),t.createElementBlock("span",e1,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",a1,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",l1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",o1,[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",i1,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",n1,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",d1,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",r1,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",s1,t.toDisplayString((h=(k=a.report)==null?void 0:k.voyage)==null?void 0:h.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-21602fa4><div data-v-21602fa4>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>0812</div><div data-v-21602fa4><div data-v-21602fa4>08 - Day of the month</div><div data-v-21602fa4>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-21602fa4></i></div><div data-v-21602fa4><div data-v-21602fa4>Wind from N (000)</div><div data-v-21602fa4>Each bard = 10 kts</div><div data-v-21602fa4>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>W 4</div><div data-v-21602fa4>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div class="good-wx" data-v-21602fa4>Date</div><div data-v-21602fa4>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Y=a.report)==null?void 0:Y.chartUrl,alt:""},null,8,N1)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-21602fa4><div class="header-block" data-v-21602fa4><div class="bg-block" data-v-21602fa4><i class="iconfont icon-baobiao" data-v-21602fa4></i><div class="block-title" data-v-21602fa4>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>1. Good Weather Method</div><div class="method-body" data-v-21602fa4> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-21602fa4> The vessel's performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-21602fa4> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-21602fa4> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-21602fa4> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>4. “About”</div><div class="method-body" data-v-21602fa4> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-21602fa4> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-21602fa4> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-21602fa4> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-21602fa4> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>6. Further reference materials</div><div class="method-body" data-v-21602fa4>Please send mail to <a href="mailto:op@ormwx.com" data-v-21602fa4>op@ormwx.com</a>.</div></div></div></div>',1))])}const M1=Ha(wg,[["render",c1],["__scopeId","data-v-21602fa4"]]),f4="",k4="",m1={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,fn,Dl,Dt,zr,B,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),V4="",Ha=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:fn.Editor,Toolbar:fn.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 fr(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 Il=Ha(Sr,[["render",fr],["__scopeId","data-v-9854b172"]]),kr={install(o){o.component("IdmEditor",Il)}},x4="";/*! 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 p4="",Yr={name:"PlanReport",components:{Editor:Il,IdmBrand:Dl.IdmBrand,IdmLoading:Dl.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=B.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)?"-":B.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>B.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>B.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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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,f,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)>((f=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:f.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,f,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&&((f=(j=(y=o.meteo)==null?void 0:y.wave)==null?void 0:j.sig)==null?void 0:f.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 h,Y,R,G,P,W,L,_,Q,J;const k=U.meteo;if(k){const X=Dt(k.utc).utc().format("MMM-DD/HHmm[Z]");o.push(X),c=Math.ceil(((Y=(h=k.wave)==null?void 0:h.sig)==null?void 0:Y.height)>c?(G=(R=k.wave)==null?void 0:R.sig)==null?void 0:G.height:c),e.push([X,(P=k.wind)==null?void 0:P.kts,(L=(W=k.wave)==null?void 0:W.sig)==null?void 0:L.height,(_=k.wind)==null?void 0:_.direction,(Q=k.wind)==null?void 0:Q.degree,(J=k.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,f=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:f,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"},Br={class:"col"},Fr={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},Kr={style:{"margin-left":"16px"}},ur={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={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},os={style:{"margin-right":"8px"}},is=["src"],ns={class:"legends text-tips"},ds={class:"legend"},rs={key:0,class:"legend"},ss={key:1,class:"legend"},Ns={key:1,class:"empty"},cs={class:"section comparison-section"},Ms={key:0,class:"orm-report-table",style:{"font-size":"12px"}},ms={key:0},Ds=["rowspan"],gs={key:0},Is={key:1},Es={rowspan:"2"},ys={rowspan:"2"},As={key:0},Ts={key:1},Vs={rowspan:"1"},xs={key:0},ps={rowspan:"2"},zs={rowspan:"2"},js={rowspan:"2"},Ss={key:0},Us={key:0},fs=["rowspan"],ks={key:0},Os={rowspan:"1"},Cs={key:0},bs={key:0},hs={key:1},Ys={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Qs={key:0},ws={class:"section waypoint-section"},Rs={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Bs={class:"bg-block"},Fs={class:"block-title"},Gs={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Ps=["onClick"],Ws={class:"advisory bg-blue-light-2"},Ls=["innerHTML"],Zs={class:"major-waypoint"},Hs={class:"major-header bg-blue-light-2"},_s={key:0,class:"cell-item flex"},Js={key:1,class:"cell-item flex"},Xs={class:"major-body"},Ks={class:"cell-item flex",style:{flex:"2.5"}},us={key:0,class:"flex-center"},qs={key:1,class:"flex-center"},$s={key:0,style:{"margin-left":"3px"}},vs={class:"cell-item flex",style:{flex:"1.5"}},tN={key:0,style:{"margin-left":"4px","font-weight":"600"}},eN={key:0,class:"cell-item flex offset"},aN={key:1,class:"cell-item flex nbsp"},lN={key:2,class:"cell-item flex offset"},oN={key:3,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},sN={key:6,class:"cell-item flex offset"},NN={key:7,class:"cell-item flex nbsp"},cN={class:"section forecast-section"},MN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},mN={class:"bg-block"},DN={class:"block-title"},gN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN=["onClick"],EN={class:"echart-block",style:{"page-break-inside":"avoid"}},yN={ref:"echart",class:"echart"},AN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},TN={style:{"page-break-inside":"avoid"}},VN={class:"orm-report-table",style:{"font-size":"12px"}},xN=["colspan"],pN={key:0},zN={class:"flex-center"},jN={class:"degree-box"},SN={key:0},UN={key:2},fN={key:0},kN={class:"degree-box"},ON={key:0},CN={key:2},bN={class:"degree-box"},hN={key:0},YN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2};function BN(o,e,a,c,d,i){var l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,bt,ht,Yt,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,Kt,ut,qt,$t,F,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,_a,Ja,Xa,Ka,ua,qa,$a,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",Br,[t.createElementVNode("div",Fr,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((f=(j=(y=a.plan)==null?void 0:y.voyage)==null?void 0:j.company)==null?void 0:f.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)),(Y=(h=(k=a.plan)==null?void 0:k.leg)==null?void 0:h.departure)!=null&&Y.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((P=(G=(R=a.plan)==null?void 0:R.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",Kr,t.toDisplayString(i.computeUTCTime(((J=(Q=(_=a.plan)==null?void 0:_.leg)==null?void 0:Q.departure)==null?void 0:J.atd)||((q=(u=(X=a.plan)==null?void 0:X.leg)==null?void 0:u.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",ur,[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,[t.createElementVNode("div",ls,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",os," FCST fr Pos. "+t.toDisplayString(i.computeUTCTime((Yt=(ht=(bt=(kt=(ft=(Ut=(St=a.plan)==null?void 0:St.speeds)==null?void 0:Ut[d.speedIndex])==null?void 0:ft.speed)==null?void 0:kt.sample)==null?void 0:bt.hours)==null?void 0:ht[0])==null?void 0:Yt.eta)),1)]),(Qt=a.plan)!=null&&Qt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,is)]),t.createElementVNode("div",ns,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-9a0cab02><span class="dangerous" data-v-9a0cab02></span><span data-v-9a0cab02>Danger</span></div><div class="legend" data-v-9a0cab02><span class="severe" data-v-9a0cab02></span><span data-v-9a0cab02>Severe</span></div><div class="legend" data-v-9a0cab02><span class="heavy" data-v-9a0cab02></span><span data-v-9a0cab02>Heavy</span></div>',3)),t.createElementVNode("div",ds,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((Gt=(Ft=(Bt=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[0])==null?void 0:Bt.speed)==null?void 0:Ft.lane)==null?void 0:Gt.name),1)]),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>1?(t.openBlock(),t.createElementBlock("div",rs,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((n=(_t=(Ht=(Zt=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:Zt[1])==null?void 0:Ht.speed)==null?void 0:_t.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0),((w=(H=a.plan)==null?void 0:H.speeds)==null?void 0:w.length)>2?(t.openBlock(),t.createElementBlock("div",ss,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((ut=(Kt=(Xt=(Jt=(Ot=a.plan)==null?void 0:Ot.speeds)==null?void 0:Jt[2])==null?void 0:Xt.speed)==null?void 0:Kt.lane)==null?void 0:ut.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",Ns,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",cs,[($t=(qt=a.plan)==null?void 0:qt.speeds)!=null&&$t.length?(t.openBlock(),t.createElementBlock("table",Ms,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...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,Ds),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",gs,[...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",Is,[...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((F=a.plan)==null?void 0:F.speeds,(m,K)=>{var vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl,Nl,cl,Ml,ml;return t.openBlock(),t.createElementBlock(t.Fragment,{key:K},[t.createElementVNode("tr",null,[t.createElementVNode("td",Es,t.toDisplayString(K+1),1),t.createElementVNode("td",ys,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",As,t.toDisplayString(`CP ${((Ve=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Ve.speed)??((Ke=m.speed)==null?void 0:Ke.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Ts,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(ue=m.speed)==null?void 0:ue.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",Vs,[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",xs," ("+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",ps,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",zs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",js,[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",Ss," + "+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",Us,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,K)),9,fs),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:(ka=(fa=a.weatherPrinciple)==null?void 0:fa.severe)==null?void 0:ka.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",ks,"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((Ba=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Ba.cps[0].fo)+" / "+t.toDisplayString((Ga=(Fa=m.speed)==null?void 0:Fa.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((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",Os,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((tl=m.speed)==null?void 0:tl.totalHrs,1)),1),(al=(el=m.speed)==null?void 0:el.extend)!=null&&al.hoursInECA?(t.openBlock(),t.createElementBlock("span",Cs," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ll=m.speed)==null?void 0:ll.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((ol=m.speed)==null?void 0:ol.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((il=m.speed)==null?void 0:il.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",bs,t.toDisplayString(i.roundPrecision(((dl=(nl=m==null?void 0:m.speed)==null?void 0:nl.cost)==null?void 0:dl.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((Nl=(rl=m==null?void 0:m.speed)==null?void 0:rl.cost)==null?void 0:Nl.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",hs,t.toDisplayString(i.computeCostDiff(a.plan,K)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((cl=m.speed)==null?void 0:cl.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((Ml=m.speed)==null?void 0:Ml.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((ml=m.speed)==null?void 0:ml.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Ys,[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",Qs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ie=i.roundPrecision((oe=(ee=a.plan)==null?void 0:ee.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ie.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((re=i.roundPrecision((de=(ne=a.plan)==null?void 0:ne.voyage)==null?void 0:de.priceFO,0))==null?void 0:re.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=i.roundPrecision((Ne=(se=a.plan)==null?void 0:se.voyage)==null?void 0:Ne.priceDGO,0))==null?void 0:ce.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",ws,[t.createElementVNode("div",Rs,[t.createElementVNode("div",Bs,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Fs,"Advisory & Major Waypoint of Route "+t.toDisplayString((ge=(De=(me=(Me=a.plan.speeds)==null?void 0:Me[d.speedIndex])==null?void 0:me.speed)==null?void 0:De.lane)==null?void 0:ge.name),1)]),((Ee=(Ie=a.plan)==null?void 0:Ie.speeds)==null?void 0:Ee.length)>1?(t.openBlock(),t.createElementBlock("div",Gs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ye=a.plan)==null?void 0:ye.speeds,(m,K)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:K,class:t.normalizeClass(["route-item",d.speedIndex===K?"active":""]),onClick:le=>{d.speedIndex=K,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Ps)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ws,[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,Ls))]),t.createElementVNode("div",Zs,[t.createElementVNode("div",Hs,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-9a0cab02>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-9a0cab02>Time</div><div class="cell-item flex" data-v-9a0cab02>Nav</div><div class="cell-item flex" data-v-9a0cab02>Dist <span class="text-units" data-v-9a0cab02>(nm)</span></div>',4)),(Te=(Ae=a.plan)==null?void 0:Ae.voyage)!=null&&Te.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",_s,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(je=(ze=a.plan)==null?void 0:ze.voyage)!=null&&je.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Js,[...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",Xs,[(Ue=(Se=a.plan)==null?void 0:Se.speeds)!=null&&Ue.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((Ce=(Oe=(ke=(fe=a.plan)==null?void 0:fe.speeds)==null?void 0:ke[d.speedIndex])==null?void 0:Oe.speed)==null?void 0:Ce.argv,(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.sample)==null?void 0:we.wps),(m,K)=>{var vt,te,le,Ve;return t.openBlock(),t.createElementBlock("div",{key:K,class:"cell-row"},[t.createElementVNode("div",Ks,[m.isResume?(t.openBlock(),t.createElementBlock("div",us,"Resume")):(t.openBlock(),t.createElementBlock("div",qs,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",$s,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",vs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",tN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),K?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",aN)),K?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",oN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[K?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),(Ve=(le=a.plan)==null?void 0:le.voyage)!=null&&Ve.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[K?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),K?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",NN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",cN,[(Be=(Re=a.plan)==null?void 0:Re.speeds)!=null&&Be.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",MN,[t.createElementVNode("div",mN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",DN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((We=(Pe=(I=(Ge=(Fe=a.plan)==null?void 0:Fe.speeds)==null?void 0:Ge[d.speedIndex])==null?void 0:I.speed)==null?void 0:Pe.lane)==null?void 0:We.name),1)]),((Ze=(Le=a.plan)==null?void 0:Le.speeds)==null?void 0:Ze.length)>1?(t.openBlock(),t.createElementBlock("div",gN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((He=a.plan)==null?void 0:He.speeds,(m,K)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:K,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===K?"active":""]),onClick:le=>{d.speedIndex=K,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,IN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",EN,[t.createElementVNode("div",yN,null,512)]),t.createElementVNode("div",AN,"* "+t.toDisplayString(i.computeModel((Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)),1)]),t.createElementVNode("div",TN,[t.createElementVNode("table",VN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(_a=(ae=a.plan)==null?void 0:ae.voyage)!=null&&_a.sendRptWithBF?3:2},"Wind",8,xN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Xa=(Ja=a.plan)==null?void 0:Ja.voyage)!=null&&Xa.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",pN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((va=($a=(qa=(ua=(Ka=a.plan)==null?void 0:Ka.speeds)==null?void 0:ua[d.speedIndex])==null?void 0:qa.speed)==null?void 0:$a.sample)==null?void 0:va.hours,(m,K)=>{var vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl;return t.openBlock(),t.createElementBlock("tr",{key:K},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",zN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",jN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",SN,t.toDisplayString((Ve=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Ve.direction),1)):t.createCommentVNode("",!0),(ue=(Ke=m.meteo)==null?void 0:Ke.wind)!=null&&ue.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",UN,"-"))]),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",fN,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",kN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",ON,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",CN,"-"))]),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",bN,[(fa=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("span",hN,t.toDisplayString((Ca=(Oa=(ka=m.meteo)==null?void 0:ka.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",YN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Fa=(Ba=m.meteo)==null?void 0:Ba.wave)==null?void 0:Fa.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((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",QN,[(tl=(Za=m.meteo)==null?void 0:Za.current)!=null&&tl.kts?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((al=(el=m.meteo)==null?void 0:el.current)==null?void 0:al.direction),1)):t.createCommentVNode("",!0),(ol=(ll=m.meteo)==null?void 0:ll.current)!=null&&ol.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(nl=(il=m.meteo)==null?void 0:il.current)==null?void 0:nl.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((rl=(dl=m.meteo)==null?void 0:dl.current)==null?void 0:rl.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const kn=Ha(Yr,[["render",BN],["__scopeId","data-v-9a0cab02"]]),FN={install(o){o.component("PlanReport",kn)}},z4="",GN={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}}}},PN={class:"cover-box"},WN={class:"cover-content"},LN={class:"cover-title"},ZN={class:"cover-info"},HN={class:"info-item"},_N={class:"info-item"},JN={style:{"font-weight":"600"}},XN={key:0},KN={class:"info-item"},uN={style:{"font-weight":"600"}},qN={class:"info-item"},$N={key:0},vN={key:1},tc={class:"info-item"},ec={class:"info-item"},ac={key:0},lc={key:1},oc={class:"info-item"},ic={class:"info-item"},nc={class:"text"};function dc(o,e,a,c,d,i){var g,r,N,T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y;return t.openBlock(),t.createElementBlock("div",PN,[t.createElementVNode("div",WN,[t.createElementVNode("div",LN,t.toDisplayString(a.name),1),t.createElementVNode("div",ZN,[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",HN,[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",_N,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",JN,[t.createTextVNode(t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name)+" ",1),(T=(N=a.report)==null?void 0:N.vessel)!=null&&T.type?(t.openBlock(),t.createElementBlock("span",XN,"("+t.toDisplayString((y=(l=a.report)==null?void 0:l.vessel)==null?void 0:y.type)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",uN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",qN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(f=(j=a.report)==null?void 0:j.departure)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",$N,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("span",vN,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1))]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((x=(E=a.report)==null?void 0:E.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ec,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(S=(p=a.report)==null?void 0:p.arrival)!=null&&S.portName?(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString((C=(D=a.report)==null?void 0:D.arrival)==null?void 0:C.portName),1)):(t.openBlock(),t.createElementBlock("span",lc,t.toDisplayString(i.computePosition((b=a.report)==null?void 0:b.arrival)),1))]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime((k=(U=a.report)==null?void 0:U.arrival)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ic,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",nc,t.toDisplayString((Y=(h=a.report)==null?void 0:h.voyage)==null?void 0:Y.loadCondition),1)])])])])}const rc=Ha(GN,[["render",dc],["__scopeId","data-v-18a63532"]]),j4="",sc={name:"OrmVoyageSummary",components:{Editor:Il},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 B.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return B.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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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}}},Nc={class:"report-summary"},cc={class:"section weather-section"},Mc={class:"definition bg-blue-light-2"},mc={style:{"line-height":"1.5"}},Dc={class:"section summary-section"},gc={class:"phase-box"},Ic={class:"phase-index"},Ec={class:"phase-position"},yc={key:0},Ac={key:1},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-cp"},zc={class:"orm-report-table"},jc={class:"phase-conclusion"},Sc={class:"item-conclusion bg-blue-light-2"},Uc={class:"value align-left"},fc={key:0,class:"text-secondary align-right"},kc={key:0},Oc={key:1},Cc={key:2},bc={key:1,class:"text-secondary"},hc={key:2,class:"value"},Yc={key:0},Qc={class:"gain"},wc={key:1},Rc={class:"lost"},Bc={key:2},Fc={class:"item-conclusion bg-blue-light-2"},Gc={class:"value align-left"},Pc={key:0,class:"text-secondary"},Wc={key:0},Lc={key:1},Zc={key:2},Hc={key:1,class:"text-secondary"},_c={key:2,class:"value"},Jc={key:0},Xc={class:"gain"},Kc={key:1},uc={class:"lost"},qc={key:2},$c={class:"item-conclusion bg-blue-light-2"},vc={class:"value align-left"},tM={key:0,class:"text-secondary"},eM={key:0},aM={key:1},lM={key:2},oM={key:1,class:"text-secondary"},iM={key:2,class:"value"},nM={key:0},dM={class:"gain"},rM={key:1},sM={class:"lost"},NM={key:2},cM={key:0,class:"exclusion-block"},MM={style:{margin:"8px 0"}},mM={class:"orm-report-table"},DM=["innerHTML"],gM={class:"section segment-section"},IM={class:"segment-summary"},EM={class:"segment-index text-left"},yM={class:"segment-position"},AM={key:0},TM={key:1},VM={class:"segment-position"},xM={key:0},pM={key:1},zM={class:"orm-report-table"},jM={class:"good-wx"},SM={class:"good-wx"},UM={class:"good-wx"},fM={class:"good-wx"},kM={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={class:"good-wx"},RM={class:"good-wx"},BM={class:"good-wx"},FM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},GM={key:0},PM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},WM={key:2,class:"segment-speed"},LM={class:"row"},ZM={class:"speed-right row"},HM={class:"speed"},_M={key:1,class:"speed"},JM={key:0,class:"speed"},XM={class:"speed"},KM={class:"speed"},uM={class:"speed"},qM={key:2,class:"under"},$M={key:3,class:"over"},vM={class:"row"},tm={class:"speed-right formula flex-space"},em={key:0},am={key:3,class:"segment-speed"},lm={class:"row"},om={class:"speed-right row"},im={class:"speed"},nm={class:"speed"},dm={key:2,class:"under"},rm={key:3,class:"over"},sm={class:"row"},Nm={class:"speed-right formula row"},cm={class:"segment-formula"},Mm={class:"sub-title"},mm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Dm={class:"formula-block"},gm={class:"formula-item flex-evenly bg-blue-light"},Im={class:"formula-right flex-evenly"},Em={class:"fraction",style:{width:"240px"}},ym={class:"formula-item flex-center bg-blue-light"},Am={class:"formula-left flex-space"},Tm={class:"formula-right flex-evenly"},Vm={class:"fraction",style:{width:"240px"}},xm={class:"formula-item flex-center bg-blue-light"},pm={class:"formula-left flex-space"},zm={class:"formula-right flex-evenly"},jm={class:"fraction",style:{width:"240px"}},Sm={class:"formula-desc"},Um={class:"flex-end"},fm={class:"flex-end"},km={class:"flex-end"},Om={key:0,class:"formula-block"},Cm={class:"formula-item flex-evenly bg-blue-light"},bm={class:"formula-right flex-evenly"},hm={class:"fraction",style:{width:"200px"}},Ym={class:"formula-item flex-center bg-blue-light"},Qm={class:"formula-left flex-space"},wm={class:"formula-right flex-evenly"},Rm={class:"fraction",style:{width:"200px"}},Bm={class:"formula-item flex-center bg-blue-light"},Fm={class:"formula-left flex-space"},Gm={class:"formula-right flex-evenly"},Pm={class:"fraction",style:{width:"200px"}},Wm={class:"formula-item formula-conclusion bg-blue-light"},Lm={key:0,class:"flex-evenly",style:{width:"500px"}},Zm={key:1,class:"flex-evenly",style:{width:"500px"}},Hm={class:"flex-center"},_m={key:1,class:"formula-conclusion bg-blue-light"},Jm={class:"segment-formula"},Xm={class:"sub-title"},Km={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},um={class:"formula-block"},qm={class:"formula-item flex-evenly bg-blue-light"},$m={class:"formula-right flex-evenly"},vm={class:"fraction",style:{width:"240px"}},tD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},eD={key:0,class:"flex-end text-tips"},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:"200px"}},rD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},cD={class:"formula-item flex-center bg-blue-light"},MD={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"300px"}},DD={class:"sub-title"},gD={key:0,class:"formula-block"},ID={key:0,class:"formula-item flex-evenly bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"60px"}},AD={class:"fraction",style:{width:"60px"}},TD={class:"formula-item flex-evenly bg-blue-light"},VD={class:"formula-right flex-evenly"},xD={class:"fraction",style:{width:"150px"}},pD={class:"fraction",style:{width:"150px"}},zD={key:0},jD={class:"formula-item flex-evenly bg-blue-light"},SD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},fD={class:"fraction",style:{width:"150px"}},kD={class:"formula-item flex-evenly bg-blue-light"},OD={class:"formula-right flex-evenly"},CD={class:"fraction",style:{width:"150px"}},bD={class:"fraction",style:{width:"150px"}},hD={class:"formula-item formula-conclusion bg-blue-light"},YD={class:"flex-evenly",style:{width:"500px"}},QD={key:0,class:"flex-evenly"},wD={class:"fraction"},RD={class:"flex-evenly",style:{width:"700px"}},BD={key:0,class:"flex-evenly",style:{width:"500px"}},FD={class:"fraction",style:{width:"140px"}},GD={key:1,class:"formula-item formula-conclusion bg-blue-light"},PD={class:"header-block"},WD={class:"bg-block"},LD={class:"block-title"},ZD={key:0,class:"formula-block"},HD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},XD={class:"fraction",style:{width:"150px"}},KD={key:0},uD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={class:"formula-item flex-evenly bg-blue-light"},eg={class:"formula-right flex-evenly"},ag={class:"fraction",style:{width:"150px"}},lg={class:"fraction",style:{width:"150px"}},og={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},ig={key:0,class:"flex-evenly",style:{width:"500px"}},ng={key:1,class:"flex-evenly",style:{width:"700px"}},dg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function rg(o,e,a,c,d,i){var r,N,T;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("div",cc,[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",Mc,[t.createElementVNode("div",mc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",Dc,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,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",gc,[t.createElementVNode("div",Ic,"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,ft,kt;return t.openBlock(),t.createElementBlock("div",{key:Ct,class:"phase-row text-secondary"},[t.createElementVNode("div",Ec,[(Tt=O==null?void 0:O.departure)!=null&&Tt.portName?(t.openBlock(),t.createElementBlock("span",yc,t.toDisplayString((Vt=O==null?void 0:O.departure)==null?void 0:Vt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ac,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",Tc,[(jt=O==null?void 0:O.arrival)!=null&&jt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((St=O==null?void 0:O.arrival)==null?void 0:St.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(i.computeLat((Ut=O==null?void 0:O.arrival)==null?void 0:Ut.lat).pretty)+", "+t.toDisplayString(i.computeLng((ft=O==null?void 0:O.arrival)==null?void 0:ft.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((kt=O==null?void 0:O.arrival)==null?void 0:kt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",pc,[t.createElementVNode("table",zc,[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=(f=l==null?void 0:l.extend)==null?void 0:f.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",jc,[t.createElementVNode("div",Sc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Uc,[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",fc,[((b=l==null?void 0:l.timeConclusion)==null?void 0:b.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",kc,"Time Gained")):((U=l==null?void 0:l.timeConclusion)==null?void 0:U.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Oc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Cc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",hc,[((k=l==null?void 0:l.timeConclusion)==null?void 0:k.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Yc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Qc,t.toDisplayString((h=l==null?void 0:l.timeConclusion)==null?void 0:h.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((Y=l==null?void 0:l.timeConclusion)==null?void 0:Y.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",wc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Rc,t.toDisplayString((R=l==null?void 0:l.timeConclusion)==null?void 0:R.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Gc,[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",Pc,[((P=(G=l==null?void 0:l.fuelConclusion)==null?void 0:G.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Wc,"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",Lc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Zc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Hc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",_c,[((Q=(_=l==null?void 0:l.fuelConclusion)==null?void 0:_.fo)==null?void 0:Q.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Jc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Xc,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=(u=l==null?void 0:l.fuelConclusion)==null?void 0:u.fo)==null?void 0:q.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Kc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",uc,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",qc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",$c,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",vc,[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",tM,[((et=(tt=l==null?void 0:l.fuelConclusion)==null?void 0:tt.dgo)==null?void 0:et.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",eM,"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",aM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",lM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",oM,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",iM,[((it=(ot=l==null?void 0:l.fuelConclusion)==null?void 0:ot.dgo)==null?void 0:it.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",nM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dM,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",rM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",sM,t.toDisplayString((At=(yt=l==null?void 0:l.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",NM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((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",cM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",MM,[t.createElementVNode("table",mM,[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,DM))],2)],2),t.createElementVNode("div",gM,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,G,P,W,L,_,Q,J,X,u,q,$,v,tt,et,at,lt,ot,it,Z,gt,It,Et,yt,At,O,Ct,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,bt,ht,Yt,Qt,wt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,Ht,_t,n,H,w,Ot,Jt,Xt,Kt,ut,qt,$t,F,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,Te,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Be,Fe,Ge,I,Pe,We,Le,Ze,He,_e,Je,Xe,ae,_a,Ja,Xa,Ka,ua,qa,$a,va,m,K,vt,te,le,Ve,Ke,ue,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,fa,ka,Oa,Ca,ba,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,tl,el,al,ll,ol,il,nl,dl,rl,Nl,cl,Ml,ml,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,fl,kl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Bl,Fl,Gl,Pl,Wl,Ll,Zl,Hl,sl,Kl,ul,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,fo,ko,Oo,Co,bo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,Ho,_o,Jo,Xo,Ko,uo,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,fi,ki,Oi,Ci,bi,hi,Yi,Qi,wi,Ri,Bi,Fi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,Ki,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",IM,[t.createElementVNode("div",EM,"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 gl,ui,gn,In,En,yn,An,Tn,Vn,xn;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",yM,[(gl=ct==null?void 0:ct.departure)!=null&&gl.portName?(t.openBlock(),t.createElementBlock("span",AM,t.toDisplayString((ui=ct==null?void 0:ct.departure)==null?void 0:ui.portName),1)):(t.openBlock(),t.createElementBlock("span",TM,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",VM,[(yn=ct==null?void 0:ct.arrival)!=null&&yn.portName?(t.openBlock(),t.createElementBlock("span",xM,t.toDisplayString((An=ct==null?void 0:ct.arrival)==null?void 0:An.portName),1)):(t.openBlock(),t.createElementBlock("span",pM,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",zM,[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",jM,t.toDisplayString((A=(f=l==null?void 0:l.goodWx)==null?void 0:f.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",SM,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",UM,t.toDisplayString((C=(D=l==null?void 0:l.goodWx)==null?void 0:D.outEca)==null?void 0:C.time),1),t.createElementVNode("td",fM,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((h=(k=l==null?void 0:l.allWx)==null?void 0:k.outEca)==null?void 0:h.time),1),t.createElementVNode("td",null,t.toDisplayString((R=(Y=l==null?void 0:l.allWx)==null?void 0:Y.inEca)==null?void 0:R.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",kM,t.toDisplayString(((P=(G=l==null?void 0:l.goodWx)==null?void 0:G.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",OM,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(((Q=(_=l==null?void 0:l.allWx)==null?void 0:_.outEca)==null?void 0:Q.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",CM,t.toDisplayString(((q=(u=l==null?void 0:l.goodWx)==null?void 0:u.outEca)==null?void 0:q.sumFoCons)||"--"),1),t.createElementVNode("td",bM,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",hM,t.toDisplayString(((it=(ot=l==null?void 0:l.goodWx)==null?void 0:ot.outEca)==null?void 0:it.avgFoCons)||"--"),1),t.createElementVNode("td",YM,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",QM,t.toDisplayString(((Ct=(O=l==null?void 0:l.goodWx)==null?void 0:O.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",wM,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",RM,t.toDisplayString(((Ut=(St=l==null?void 0:l.goodWx)==null?void 0:St.outEca)==null?void 0:Ut.avgDgoCons)||"--"),1),t.createElementVNode("td",BM,t.toDisplayString(((kt=(ft=l==null?void 0:l.goodWx)==null?void 0:ft.inEca)==null?void 0:kt.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",FM,[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,(gl,ui)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ui},[gl.goodWx?(t.openBlock(),t.createElementBlock("tr",GM,[t.createElementVNode("td",null,t.toDisplayString(gl.type)+" "+t.toDisplayString(i.computeUTCTime(gl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(gl),"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(gl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(gl.utc,i.computePrevTime(gl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(Rt=d.exclusion[y])!=null&&Rt.time?(t.openBlock(),t.createElementBlock("div",PM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(Bt=l==null?void 0:l.goodWx)!=null&&Bt.distance?(t.openBlock(),t.createElementBlock("div",WM,[t.createElementVNode("div",LM,[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",ZM,[(Gt=(Ft=a.report)==null?void 0:Ft.weather)!=null&&Gt.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Jt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&Jt.disableWxFactor&&((Kt=(Xt=a.report)==null?void 0:Xt.weather)!=null&&Kt.disableCFactor)?(t.openBlock(),t.createElementBlock("span",JM,t.toDisplayString((ut=l==null?void 0:l.goodWx)==null?void 0:ut.pfmSpd)+" (kts)",1)):($t=(qt=a.report)==null?void 0:qt.weather)!=null&&$t.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((F=l==null?void 0:l.goodWx)==null?void 0:F.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ee=l==null?void 0:l.goodWx)==null?void 0:ee.avgCf)>0?(oe=l==null?void 0:l.goodWx)==null?void 0:oe.avgCf:`(${(ie=l==null?void 0:l.goodWx)==null?void 0:ie.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",XM,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",KM,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((De=l==null?void 0:l.goodWx)==null?void 0:De.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgWf)>0?(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgWf:`(${(Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.avgWf})`),1),(Ae=(ye=a.report)==null?void 0:ye.weather)!=null&&Ae.favorableCur&&((Te=l==null?void 0:l.goodWx)==null?void 0:Te.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ze=l==null?void 0:l.goodWx)==null?void 0:ze.avgCf)>0?(je=l==null?void 0:l.goodWx)==null?void 0:je.avgCf:`(${(Se=l==null?void 0:l.goodWx)==null?void 0:Se.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,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",_M,t.toDisplayString((w=l==null?void 0:l.goodWx)==null?void 0:w.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ht=l==null?void 0:l.goodWx)==null?void 0:Ht.avgCf)>0?(_t=l==null?void 0:l.goodWx)==null?void 0:_t.avgCf:`(${(n=l==null?void 0:l.goodWx)==null?void 0:n.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",HM,t.toDisplayString((H=l==null?void 0:l.goodWx)==null?void 0:H.pfmSpd)+" (kts)",1)],64))],64)),((fe=l==null?void 0:l.goodWx)==null?void 0:fe.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",qM,"(Under-performance)")):t.createCommentVNode("",!0),((ke=l==null?void 0:l.goodWx)==null?void 0:ke.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",$M,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",vM,[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",tm,[(Ce=(Oe=a.report)==null?void 0:Oe.weather)!=null&&Ce.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(we=(Qe=a.report)==null?void 0:Qe.weather)!=null&&we.disableWxFactor&&((Be=(Re=a.report)==null?void 0:Re.weather)!=null&&Be.disableCFactor)?(t.openBlock(),t.createElementBlock("label",em,"GW Average Speed")):(Ge=(Fe=a.report)==null?void 0:Fe.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(I=a.report)==null?void 0:I.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=a.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(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",am,[t.createElementVNode("div",lm,[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",om,[(_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(($a=l==null?void 0:l.allWx)==null?void 0:$a.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((va=l==null?void 0:l.allWx)==null?void 0:va.avgWf)>0?(m=l==null?void 0:l.allWx)==null?void 0:m.avgWf:`(${(K=l==null?void 0:l.allWx)==null?void 0:K.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nm,t.toDisplayString((vt=l==null?void 0:l.allWx)==null?void 0:vt.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?(_a=l==null?void 0:l.allWx)==null?void 0:_a.avgCf:`(${(Ja=l==null?void 0:l.allWx)==null?void 0:Ja.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Xa=l==null?void 0:l.allWx)==null?void 0:Xa.avgWf)>0?(Ka=l==null?void 0:l.allWx)==null?void 0:Ka.avgWf:`(${(ua=l==null?void 0:l.allWx)==null?void 0:ua.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",im,t.toDisplayString((qa=l==null?void 0:l.allWx)==null?void 0:qa.pfmSpd)+" (kts)",1)],64)),((te=l==null?void 0:l.allWx)==null?void 0:te.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",dm,"(Under-performance)")):t.createCommentVNode("",!0),((le=l==null?void 0:l.allWx)==null?void 0:le.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",rm,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",sm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[(Ke=(Ve=a.report)==null?void 0:Ve.weather)!=null&&Ke.favorableCur&&((ue=l==null?void 0:l.allWx)==null?void 0:ue.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",cm,[t.createElementVNode("div",Mm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Time Analysis",1),($e=(qe=a.report)==null?void 0:qe.weather)!=null&&$e.noExtrapolation?(t.openBlock(),t.createElementBlock("span",mm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[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",Im,[t.createElementVNode("div",Em,[t.createElementVNode("div",null,t.toDisplayString((ta=(ve=a.report)==null?void 0:ve.weather)!=null&&ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[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",ym,[t.createElementVNode("div",Am,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(aa=(ea=l==null?void 0:l.extend)==null?void 0:ea.cp)==null?void 0:aa.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Tm,[t.createElementVNode("div",Vm,[t.createElementVNode("div",null,t.toDisplayString((oa=(la=a.report)==null?void 0:la.weather)!=null&&oa.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,(na=(ia=l==null?void 0:l.extend)==null?void 0:ia.cp)==null?void 0:na.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",xm,[t.createElementVNode("div",pm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ra=(da=l==null?void 0:l.extend)==null?void 0:da.cp)==null?void 0:ra.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",zm,[t.createElementVNode("div",jm,[t.createElementVNode("div",null,t.toDisplayString((Na=(sa=a.report)==null?void 0:sa.weather)!=null&&Na.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ma=(ca=l==null?void 0:l.extend)==null?void 0:ca.cp)==null?void 0:Ma.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",Sm,[t.createElementVNode("div",Um,[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,(Da=(ma=l==null?void 0:l.extend)==null?void 0:ma.cp)==null?void 0:Da.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",fm,[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,(Ia=(ga=l==null?void 0:l.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",km,[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,(ya=(Ea=l==null?void 0:l.extend)==null?void 0:Ea.cp)==null?void 0:ya.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,(Ta=(Aa=l==null?void 0:l.extend)==null?void 0:Aa.cp)==null?void 0:Ta.speed,"Under"))+" kts) ",1)])]),(Va=l==null?void 0:l.goodWx)!=null&&Va.distance?(t.openBlock(),t.createElementBlock("div",Om,[t.createElementVNode("div",Cm,[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",bm,[t.createElementVNode("div",hm,[t.createElementVNode("div",null,t.toDisplayString((pa=(xa=a.report)==null?void 0:xa.weather)!=null&&pa.noExtrapolation?(za=l==null?void 0:l.goodWx)==null?void 0:za.distance:(ja=l==null?void 0:l.allWx)==null?void 0:ja.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Sa=l==null?void 0:l.goodWx)==null?void 0:Sa.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ua=l==null?void 0:l.timeConclusion)==null?void 0:Ua.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Ym,[t.createElementVNode("div",Qm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ka=(fa=l==null?void 0:l.extend)==null?void 0:fa.cp)==null?void 0:ka.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",wm,[t.createElementVNode("div",Rm,[t.createElementVNode("div",null,t.toDisplayString((Ca=(Oa=a.report)==null?void 0:Oa.weather)!=null&&Ca.noExtrapolation?(ba=l==null?void 0:l.goodWx)==null?void 0:ba.distance:(ha=l==null?void 0:l.allWx)==null?void 0:ha.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ya=l==null?void 0:l.timeConclusion)==null?void 0:Ya.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Qa=l==null?void 0:l.timeConclusion)==null?void 0:Qa.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Bm,[t.createElementVNode("div",Fm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ra=(wa=l==null?void 0:l.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Gm,[t.createElementVNode("div",Pm,[t.createElementVNode("div",null,t.toDisplayString((Fa=(Ba=a.report)==null?void 0:Ba.weather)!=null&&Fa.noExtrapolation?(Ga=l==null?void 0:l.goodWx)==null?void 0:Ga.distance:(Pa=l==null?void 0:l.allWx)==null?void 0:Pa.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Wa=l==null?void 0:l.timeConclusion)==null?void 0:Wa.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((La=l==null?void 0:l.timeConclusion)==null?void 0:La.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Wm,[((Za=l==null?void 0:l.timeConclusion)==null?void 0:Za.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Lm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((tl=l==null?void 0:l.timeConclusion)==null?void 0:tl.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((el=l==null?void 0:l.timeConclusion)==null?void 0:el.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((al=l==null?void 0:l.timeConclusion)==null?void 0:al.timeLost)+" (hrs)",1)])):((ll=l==null?void 0:l.timeConclusion)==null?void 0:ll.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Zm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ol=l==null?void 0:l.timeConclusion)==null?void 0:ol.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((il=l==null?void 0:l.timeConclusion)==null?void 0:il.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.timeConclusion)==null?void 0:nl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Hm,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((dl=l==null?void 0:l.timeConclusion)==null?void 0:dl.conclusionStatus)==="Lost"?"lost":((rl=l==null?void 0:l.timeConclusion)==null?void 0:rl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",_m,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Jm,[t.createElementVNode("div",Xm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(y+1)+" Consumption Analysis",1),(Ml=(cl=a.report)==null?void 0:cl.weather)!=null&&Ml.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Km,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",um,[t.createElementVNode("div",qm,[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",$m,[t.createElementVNode("div",vm,[t.createElementVNode("div",null,t.toDisplayString((El=(ml=a.report)==null?void 0:ml.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",tD,[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",eD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",aD,[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",lD,[t.createElementVNode("div",oD,[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",iD,[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",nD,[t.createElementVNode("div",dD,[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)),((kl=(fl=l.extend)==null?void 0:fl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rD,[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",sD,[t.createElementVNode("div",ND,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Ol=a.report)==null?void 0:Ol.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",cD,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",MD,[t.createElementVNode("div",mD,[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",DD,"Seg. "+t.toDisplayString(y+1)+" Fuel Oil",1),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(t.openBlock(),t.createElementBlock("div",gD,[((wl=(Ql=l==null?void 0:l.goodWx)==null?void 0:Ql.inEca)==null?void 0:wl.distance)>0?(t.openBlock(),t.createElementBlock("div",ID,[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",ED,[t.createElementVNode("div",yD,[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",AD,[t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=l==null?void 0:l.extend)==null?void 0:Bl.cp)==null?void 0:Fl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l==null?void 0:l.fuelConclusion)==null?void 0:Wl.fo)==null?void 0:Ll.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",TD,[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",VD,[t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((Hl=(Zl=a.report)==null?void 0:Zl.weather)!=null&&Hl.noExtrapolation?(sl=l==null?void 0:l.goodWx)==null?void 0:sl.distance:(Kl=l==null?void 0:l.allWx)==null?void 0:Kl.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=l==null?void 0:l.goodWx)==null?void 0:ul.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",pD,[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",zD,[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",jD,[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",SD,[t.createElementVNode("div",UD,[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",fD,[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",kD,[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",OD,[t.createElementVNode("div",CD,[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",bD,[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",hD,[((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",YD,[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((ko=(fo=l==null?void 0:l.fuelConclusion)==null?void 0:fo.fo)==null?void 0:ko.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",QD,[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",wD,[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((Fo=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Fo.noExtrapolation?(Go=l==null?void 0:l.goodWx)==null?void 0:Go.distance:(Po=l==null?void 0:l.allWx)==null?void 0:Po.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=l==null?void 0:l.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",RD,[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((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l==null?void 0:l.fuelConclusion)==null?void 0:uo.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",BD,[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",FD,[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",GD,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",PD,[t.createElementVNode("div",WD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",LD,"Seg. "+t.toDisplayString(y+1)+" Diesel/Gas Oil",1)])]),(xi=l==null?void 0:l.goodWx)!=null&&xi.distance?(t.openBlock(),t.createElementBlock("div",ZD,[t.createElementVNode("div",HD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[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",XD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((fi=l==null?void 0:l.goodWx)==null?void 0:fi.sumDgoCons),1),((Oi=(ki=l==null?void 0:l.goodWx)==null?void 0:ki.inEca)==null?void 0:Oi.distance)>0?(t.openBlock(),t.createElementBlock("span",KD,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((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",uD,[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",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=a.report)==null?void 0:wi.weather)!=null&&Ri.noExtrapolation?(Bi=l==null?void 0:l.goodWx)==null?void 0:Bi.distance:(Fi=l==null?void 0:l.allWx)==null?void 0:Fi.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Gi=l==null?void 0:l.timeConclusion)==null?void 0:Gi.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[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",tg,[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",eg,[t.createElementVNode("div",ag,[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((Ki=l==null?void 0:l.timeConclusion)==null?void 0:Ki.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",lg,[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",og,[((Nt=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",ig,[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",ng,[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",dg,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const sg=Ha(sc,[["render",rg],["__scopeId","data-v-9ba7a95a"]]),S4="",Ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${Dt(o).utc().format(e)}`}},computeLng(){return function(o){return B.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return B.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?B.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}}},cg={class:"report-inventory"},Mg={class:"section summary-section"},mg={class:"summary-block"},Dg={class:"orm-report-table inventory-table"},gg={class:"label",rowspan:"4"},Ig={class:"section inventory-section"},Eg={class:"orm-report-table inventory-table detail"},yg=["colspan"],Ag={key:0,class:"label",colspan:"2"},Tg={key:0,class:"label",rowspan:"2"},Vg={key:1,class:"label",rowspan:"2"},xg={key:2,class:"label",rowspan:"2"},pg={key:3,class:"label",colspan:"2"},zg={key:4,class:"label",rowspan:"2"},jg={key:5,class:"label",colspan:"2"},Sg={key:6,class:"label",rowspan:"2"},Ug={key:7,class:"label",rowspan:"2"},fg={key:8,class:"label",rowspan:"2"},kg={key:0,class:"label"},Og={key:1,class:"label"},Cg={key:2,class:"label"},bg={key:3,class:"label"},hg={class:"summary-tbody"};function Yg(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",cg,[t.createElementVNode("div",Mg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",mg,[t.createElementVNode("table",Dg,[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,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",gg,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((f=r==null?void 0:r.allWx)==null?void 0:f.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((k=r==null?void 0:r.excluded)==null?void 0:k.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.excluded)==null?void 0:h.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.excluded)==null?void 0:Y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((R=r==null?void 0:r.excluded)==null?void 0:R.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Ig,[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 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",Eg,[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,yg),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ag,"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",Tg,[...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",Vg,[...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",xg,[...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",pg,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",zg,[...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",jg,"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",Sg,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",Ug,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",fg,[...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",kg,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",Og,[...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",Cg,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",bg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",hg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y,R,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=(f=r.meteo)==null?void 0:f.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"?"-":((h=(k=(U=r.meteo)==null?void 0:U.wave)==null?void 0:k.sig)==null?void 0:h.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"?"-":((R=(Y=r.meteo)==null?void 0:Y.current)==null?void 0:R.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 Qg=Ha(Ng,[["render",Yg],["__scopeId","data-v-9c4b43ab"]]),U4="",wg={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)?"-":B.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+B.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,f,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,k,h,Y,R,G,P,W,L,_;const p=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(Q=>Q.slice(0,5)===E.utc.slice(5,10))&&o.push(p),x===g.length-1&&(o=o.filter(Q=>Q.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?(k=E.noon)==null?void 0:k.dgoCons:i),i=Math.ceil(((h=E.cp)==null?void 0:h.dgo)>i?(Y=E.cp)==null?void 0:Y.dgo:i),a.push([p,(R=E.noon)==null?void 0:R.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 Q=g[x+1];a.push([p,(W=Q.noon)==null?void 0:W.avgSpd,(L=Q.noon)==null?void 0:L.foCons,(_=Q.noon)==null?void 0:_.dgoCons,Q.avgSpdCalc,Q.cp.speed,Q.goodWx&&!Q.excluded?100:0,Q.cp.dgo,Q.cp.fo,Q.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}]};(f=this.spdFoConsChart)==null||f.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 f;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,k,h,Y,R,G,P,W,L,_,Q,J,X,u,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)||((k=(U=A.meteo)==null?void 0:U.wind)==null?void 0:k.scale),(Y=(h=A.meteo)==null?void 0:h.wind)==null?void 0:Y.scale,(G=(R=A.meteo)==null?void 0:R.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??((Q=a[a.length-1])==null?void 0:Q[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)||((u=(X=A.meteo)==null?void 0:X.wind)==null?void 0:u.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}]};(f=this.currChart)==null||f.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}}},Rg={class:"report-summary"},Bg={class:"section chart-section"},Fg={class:"chart-block"},Gg={ref:"spdFoConsChart",class:"chart"},Pg={ref:"spdDgoConsChart",class:"chart"},Wg={ref:"currChart",class:"chart"},Lg={class:"section map-section"},Zg={class:"map-block"},Hg={class:"flex-space"},_g={class:"voyage-block bg-blue-light"},Jg={class:"flex-space label-block",style:{width:"100%"}},Xg={style:{"text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},qg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},$g={class:"flex-space label-block",style:{width:"100%"}},vg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},t1={class:"flex-space label-block",style:{width:"100%"}},e1={key:0,class:"flex-end",style:{flex:"1"}},a1={key:1,class:"flex-end",style:{flex:"1"}},l1={class:"flex-end",style:{width:"160px"}},o1={class:"flex-space label-block",style:{width:"100%"}},i1={key:0,class:"flex-end",style:{flex:"1"}},n1={key:1,class:"flex-end",style:{flex:"1"}},d1={class:"flex-end",style:{width:"160px"}},r1={class:"flex-space label-block",style:{width:"100%"}},s1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},N1=["src"];function c1(o,e,a,c,d,i){var g,r,N,T,l,y,j,f,A,V,z,E,x,p,S,D,C,b,U,k,h,Y;return t.openBlock(),t.createElementBlock("div",Rg,[t.createElementVNode("div",Bg,[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",Fg,[t.createElementVNode("div",Gg,null,512),t.createElementVNode("div",Pg,null,512),t.createElementVNode("div",Wg,null,512)])]),t.createElementVNode("div",Lg,[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",Zg,[t.createElementVNode("div",Hg,[t.createElementVNode("div",_g,[t.createElementVNode("div",Jg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Xg,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",Kg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",ug,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",qg,"("+t.toDisplayString((T=(N=a.report)==null?void 0:N.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",$g,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",vg,t.toDisplayString((y=(l=a.report)==null?void 0:l.voyage)==null?void 0:y.number),1)]),t.createElementVNode("div",t1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(f=(j=a.report)==null?void 0:j.departure)!=null&&f.portName?(t.openBlock(),t.createElementBlock("span",e1,t.toDisplayString((V=(A=a.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",a1,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",l1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",o1,[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",i1,t.toDisplayString((D=(S=a.report)==null?void 0:S.arrival)==null?void 0:D.portName),1)):(t.openBlock(),t.createElementBlock("div",n1,t.toDisplayString(i.computePosition((C=a.report)==null?void 0:C.arrival)),1)),t.createElementVNode("span",d1,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",r1,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",s1,t.toDisplayString((h=(k=a.report)==null?void 0:k.voyage)==null?void 0:h.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-21602fa4><div data-v-21602fa4>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>0812</div><div data-v-21602fa4><div data-v-21602fa4>08 - Day of the month</div><div data-v-21602fa4>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-21602fa4></i></div><div data-v-21602fa4><div data-v-21602fa4>Wind from N (000)</div><div data-v-21602fa4>Each bard = 10 kts</div><div data-v-21602fa4>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div data-v-21602fa4>W 4</div><div data-v-21602fa4>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-21602fa4><div class="good-wx" data-v-21602fa4>Date</div><div data-v-21602fa4>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Y=a.report)==null?void 0:Y.chartUrl,alt:""},null,8,N1)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-21602fa4><div class="header-block" data-v-21602fa4><div class="bg-block" data-v-21602fa4><i class="iconfont icon-baobiao" data-v-21602fa4></i><div class="block-title" data-v-21602fa4>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>1. Good Weather Method</div><div class="method-body" data-v-21602fa4> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-21602fa4> The vessel's performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-21602fa4> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-21602fa4> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-21602fa4> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>4. “About”</div><div class="method-body" data-v-21602fa4> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-21602fa4> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-21602fa4> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-21602fa4> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-21602fa4> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-21602fa4><div class="method-title" data-v-21602fa4>6. Further reference materials</div><div class="method-body" data-v-21602fa4>Please send mail to <a href="mailto:op@ormwx.com" data-v-21602fa4>op@ormwx.com</a>.</div></div></div></div>',1))])}const M1=Ha(wg,[["render",c1],["__scopeId","data-v-21602fa4"]]),f4="",k4="",m1={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>
|