@idmui/extend 0.2.9 → 0.3.1
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 +4 -4
- 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,$n,rl,mt,zr,F,qn){"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 un=jr(zr),r4="",el=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:$n.Editor,Toolbar:$n.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function 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 sl=el(Sr,[["render",fr],["__scopeId","data-v-9854b172"]]),kr={install(o){o.component("IdmEditor",sl)}};/*! 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 s4="",Yr={name:"PlanReport",components:{Editor:sl,IdmBrand:rl.IdmBrand,IdmLoading:rl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${mt(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,c){let d=0;return a&&e&&(d=F.LngLatHelper.guessTimeZoneOffset(e,a)),`${mt(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=mt((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(mt((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 V=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(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const a=Number("1".padEnd(e+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const a=[];for(let c=0;c<e.length;c++){const d=e[c],i=e[c-1];i&&(d.avgBearing=i.bearing),a.push(d),d.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:d.etd,eta:d.etd,isResume:!0,memo:`Stoppage: ${d.suspend}hrs`})}return a}},computeDegree(){return function(o,e,a){e=e%360;for(let c=0;c<17;c++)if(c*22.5+e+11.25>=360){let d=(16-c)*22.5;a||(d=d+180);let i="";return o==="wind"?i="var(--orm-wind)":o==="wave"?i="var(--orm-wave)":o==="swell"?i="var(--orm-swell)":o==="current"&&(i="var(--orm-current)"),`transform:rotate(${d}deg);margin-left:3px;color: ${i}`}}},computeDay(){return function(o,e=0){var i,g,r,N;const a=(N=(r=(g=(i=o==null?void 0:o.speeds)==null?void 0:i[e])==null?void 0:g.speed)==null?void 0:r.sample)==null?void 0:N.hours,c=a==null?void 0:a[0],d=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(mt(d==null?void 0:d.eta).diff(mt(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)?"-":F.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>F.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>F.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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,c,d,i,g,r,N,V,A,T,S,C,y,x,j,E,p,z;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":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((T=(A=o.meteo)==null?void 0:A.wind)==null?void 0:T.scale)>((C=(S=this.weatherPrinciple)==null?void 0:S.severe)==null?void 0:C.wind)?e="bg-severe":(x=(y=this.weatherPrinciple)==null?void 0:y.heavy)!=null&&x.wind&&((E=(j=o.meteo)==null?void 0:j.wind)==null?void 0:E.scale)===((z=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,c,d,i,g,r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h;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":(A=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&A.sigWv&&((C=(S=(T=o.meteo)==null?void 0:T.wave)==null?void 0:S.sig)==null?void 0:C.height)>=((x=(y=this.weatherPrinciple)==null?void 0:y.severe)==null?void 0:x.sigWv)?e="bg-severe":(E=(j=this.weatherPrinciple)==null?void 0:j.heavy)!=null&&E.sigWv&&((f=(z=(p=o.meteo)==null?void 0:p.wave)==null?void 0:z.sig)==null?void 0:f.height)>=((h=(I=this.weatherPrinciple)==null?void 0:I.heavy)==null?void 0:h.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=un.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,z,f,I,h,Y;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;(h=(I=(f=(z=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:z.speed)==null?void 0:f.sample)==null?void 0:I.hours)==null||h.forEach(k=>{var Q,w,G,W,L,Z,H,_,l,R;const b=k.meteo;if(b){const J=mt(b.utc).utc().format("MMM-DD/HHmm[Z]");o.push(J),c=Math.ceil(((w=(Q=b.wave)==null?void 0:Q.sig)==null?void 0:w.height)>c?(W=(G=b.wave)==null?void 0:G.sig)==null?void 0:W.height:c),e.push([J,(L=b.wind)==null?void 0:L.kts,(H=(Z=b.wave)==null?void 0:Z.sig)==null?void 0:H.height,(_=b.wind)==null?void 0:_.direction,(l=b.wind)==null?void 0:l.degree,(R=b.wind)==null?void 0:R.scale,k.cFactor,k.wFactor,k.speed])}});const d=Math.max(...e.map(k=>k[a.speed])),i=Math.max(...e.map(k=>k[a.windSpeed])),g=Math.min(...e.map(k=>k[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(k=>k[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(k=>k[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,V=Math.ceil(i/5/5)*5,A=Math.ceil(c/5/.5)*.5,T=Math.ceil((r-g)/5/.5)*.5,S=5*N,C=5*V,y=5*A,x=g+5*T,j={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:S,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:C,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:y,splitNumber:5,interval:A,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:x,splitNumber:5,interval:T,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}]};(Y=this.echart)==null||Y.setOption(j)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Fr={class:"col"},Br={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={class:"label-block"},Zr={class:"text"},Hr={class:"col"},_r={class:"label-block"},Jr={key:0},Xr={key:1},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=["src"],os={class:"legends text-tips"},is={class:"legend"},ns={key:0,class:"legend"},ds={key:1,class:"legend"},rs={key:1,class:"empty"},ss={class:"section comparison-section"},Ns={key:0,class:"orm-report-table",style:{"font-size":"12px"}},cs={key:0},Ms=["rowspan"],ms={key:0},Ds={key:1},gs={rowspan:"2"},Is={rowspan:"2"},Es={key:0},ys={key:1},As={rowspan:"1"},Ts={key:0},Vs={rowspan:"2"},xs={rowspan:"2"},ps={rowspan:"2"},zs={key:0},js={key:0},Ss=["rowspan"],Us={key:0},fs={rowspan:"1"},ks={key:0},Os={key:0},Cs={key:1},bs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},hs={key:0},Ys={class:"section waypoint-section"},Qs={class:"header-block"},ws={class:"bg-block"},Rs={class:"block-title"},Fs={key:0,class:"flex-end",style:{flex:"1"}},Bs=["onClick"],Gs={class:"advisory bg-blue-light-2"},Ps=["innerHTML"],Ws={class:"major-waypoint"},Ls={class:"major-header bg-blue-light-2"},Zs={key:0,class:"cell-item flex"},Hs={key:1,class:"cell-item flex"},_s={class:"major-body"},Js={class:"cell-item flex",style:{flex:"2.5"}},Xs={key:0,class:"flex-center"},Ks={key:1,class:"flex-center"},us={key:0,style:{"margin-left":"3px"}},qs={class:"cell-item flex",style:{flex:"1.5"}},$s={key:0,style:{"margin-left":"4px","font-weight":"600"}},vs={key:0,class:"cell-item flex offset"},tN={key:1,class:"cell-item flex nbsp"},eN={key:2,class:"cell-item flex offset"},aN={key:3,class:"cell-item flex nbsp"},lN={key:0,class:"cell-item flex offset"},oN={key:1,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:6,class:"cell-item flex offset"},rN={key:7,class:"cell-item flex nbsp"},sN={class:"section forecast-section"},NN={style:{"page-break-inside":"avoid"}},cN={class:"header-block"},MN={class:"bg-block"},mN={class:"block-title"},DN={key:0,class:"flex-end",style:{flex:"1"}},gN=["onClick"],IN={class:"echart-block"},EN={ref:"echart",class:"echart"},yN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},AN={class:"orm-report-table",style:{"font-size":"12px"}},TN=["colspan"],VN={key:0},xN={class:"flex-center"},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={key:0},UN={class:"degree-box"},fN={key:0},kN={key:2},ON={class:"degree-box"},CN={key:0},bN={key:2},hN={class:"degree-box"},YN={key:0},QN={key:2};function wN(o,e,a,c,d,i){var A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_,l,R,J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,U,qt,Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,pe,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,D,Pe,We,Le,Ze,He,_e,Je,Xe,ae,$a;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(A=a.plan)==null?void 0:A.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Br,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((C=(S=(T=a.plan)==null?void 0:T.voyage)==null?void 0:S.company)==null?void 0:C.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((j=(x=(y=a.plan)==null?void 0:y.voyage)==null?void 0:x.vessel)==null?void 0:j.name)+" ("+t.toDisplayString((f=(z=(p=(E=a.plan)==null?void 0:E.voyage)==null?void 0:p.vessel)==null?void 0:z.vesselType)==null?void 0:f.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(((h=(I=a.plan)==null?void 0:I.voyage)==null?void 0:h.voyNum)||((k=(Y=a.plan)==null?void 0:Y.voyage)==null?void 0:k.number)),1)])]),t.createElementVNode("div",Hr,[t.createElementVNode("div",_r,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(w=(Q=(b=a.plan)==null?void 0:b.leg)==null?void 0:Q.departure)!=null&&w.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((L=(W=(G=a.plan)==null?void 0:G.leg)==null?void 0:W.departure)==null?void 0:L.name),1)):(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString(i.computePosition((H=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:H.departure)),1)),t.createElementVNode("span",Kr,t.toDisplayString(i.computeUTCTime(((R=(l=(_=a.plan)==null?void 0:_.leg)==null?void 0:l.departure)==null?void 0:R.atd)||((u=(K=(J=a.plan)==null?void 0:J.leg)==null?void 0:K.departure)==null?void 0:u.etd)||((tt=(v=($=(q=a.plan)==null?void 0:q.speeds)==null?void 0:$[d.speedIndex])==null?void 0:v.speed)==null?void 0:tt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",ur,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(lt=(at=(et=a.plan)==null?void 0:et.leg)==null?void 0:at.destination)!=null&<.name?(t.openBlock(),t.createElementBlock("span",qr,t.toDisplayString((gt=(P=(ot=a.plan)==null?void 0:ot.leg)==null?void 0:P.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(((Vt=(Tt=(At=(yt=a.plan)==null?void 0:yt.speeds)==null?void 0:At[d.speedIndex])==null?void 0:Tt.speed)==null?void 0:Vt.ata)||((jt=(zt=(pt=(xt=a.plan)==null?void 0:xt.speeds)==null?void 0:pt[d.speedIndex])==null?void 0:zt.speed)==null?void 0:jt.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((Ut=(St=a.plan)==null?void 0:St.voyage)==null?void 0:Ut.loadCondition),1)])])]),t.createElementVNode("div",as,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")])],-1)),(ft=a.plan)!=null&&ft.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ls)]),t.createElementVNode("div",os,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-713243c1><span class="dangerous" data-v-713243c1></span><span data-v-713243c1>Danger</span></div><div class="legend" data-v-713243c1><span class="severe" data-v-713243c1></span><span data-v-713243c1>Severe</span></div><div class="legend" data-v-713243c1><span class="heavy" data-v-713243c1></span><span data-v-713243c1>Heavy</span></div>',3)),t.createElementVNode("div",is,[e[14]||(e[14]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((ht=(bt=(Ct=(Ot=(kt=a.plan)==null?void 0:kt.speeds)==null?void 0:Ot[0])==null?void 0:Ct.speed)==null?void 0:bt.lane)==null?void 0:ht.name),1)]),((Qt=(Yt=a.plan)==null?void 0:Yt.speeds)==null?void 0:Qt.length)>1?(t.openBlock(),t.createElementBlock("div",ns,[e[15]||(e[15]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Gt=(Bt=(Ft=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[1])==null?void 0:Ft.speed)==null?void 0:Bt.lane)==null?void 0:Gt.name),1)])):t.createCommentVNode("",!0),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>2?(t.openBlock(),t.createElementBlock("div",ds,[e[16]||(e[16]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((n=(Zt=(qt=(U=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:U[2])==null?void 0:qt.speed)==null?void 0:Zt.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",rs,[t.createElementVNode("span",null,[e[18]||(e[18]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ss,[(Dt=(O=a.plan)==null?void 0:O.speeds)!=null&&Dt.length?(t.openBlock(),t.createElementBlock("table",Ns,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",cs,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ms),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ht=a.plan)==null?void 0:Ht.speeds,(m,X)=>{var vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl,ll,ol,il,nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:X},[t.createElementVNode("tr",null,[t.createElementVNode("td",gs,t.toDisplayString(X+1),1),t.createElementVNode("td",Is,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Es,t.toDisplayString(`CP ${((Te=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Te.speed)??((Ke=m.speed)==null?void 0:Ke.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",ys,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(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",As,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",Ts," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(ca=(Na=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:Na.destination)==null?void 0:ca.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",Vs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",xs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",ps,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",zs," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",js,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,X)),9,Ss),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(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",Us,"FO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.cpCopy)==null?void 0:Ya.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Fa=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Fa.cps[0].fo)+" / "+t.toDisplayString((Ga=(Ba=m.speed)==null?void 0:Ba.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Wa=(Pa=m.speed)==null?void 0:Pa.extend)==null?void 0:Wa.cps[0].dgo)+" / "+t.toDisplayString((Za=(La=m.speed)==null?void 0:La.extend)==null?void 0:Za.cps[1].dgo),1)],64))]),t.createElementVNode("td",fs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ha=m.speed)==null?void 0:Ha.totalHrs,1)),1),(Ja=(_a=m.speed)==null?void 0:_a.extend)!=null&&Ja.hoursInECA?(t.openBlock(),t.createElementBlock("span",ks," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Xa=m.speed)==null?void 0:Xa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((Ka=m.speed)==null?void 0:Ka.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((ua=m.speed)==null?void 0:ua.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Os,t.toDisplayString(i.roundPrecision(((va=(qa=m==null?void 0:m.speed)==null?void 0:qa.cost)==null?void 0:va.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((ll=(tl=m==null?void 0:m.speed)==null?void 0:tl.cost)==null?void 0:ll.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Cs,t.toDisplayString(i.computeCostDiff(a.plan,X)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((ol=m.speed)==null?void 0:ol.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((il=m.speed)==null?void 0:il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((nl=m.speed)==null?void 0:nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",bs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",hs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Xt=i.roundPrecision((Jt=(_t=a.plan)==null?void 0:_t.voyage)==null?void 0:Jt.dailyHire,0))==null?void 0:Xt.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString(($t=i.roundPrecision((ut=(Kt=a.plan)==null?void 0:Kt.voyage)==null?void 0:ut.priceFO,0))==null?void 0:$t.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((oe=i.roundPrecision((ee=(B=a.plan)==null?void 0:B.voyage)==null?void 0:ee.priceDGO,0))==null?void 0:oe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Ys,[t.createElementVNode("div",Qs,[t.createElementVNode("div",ws,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Rs,"Advisory & Major Waypoint of Route "+t.toDisplayString((re=(de=(ne=(ie=a.plan.speeds)==null?void 0:ie[d.speedIndex])==null?void 0:ne.speed)==null?void 0:de.lane)==null?void 0:re.name),1),((Ne=(se=a.plan)==null?void 0:se.speeds)==null?void 0:Ne.length)>1?(t.openBlock(),t.createElementBlock("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ce=a.plan)==null?void 0:ce.speeds,(m,X)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:X,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===X?"active":""]),onClick:le=>{d.speedIndex=X,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Bs)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Gs,[d.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Ps))]),t.createElementVNode("div",Ws,[t.createElementVNode("div",Ls,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-713243c1>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-713243c1>Time</div><div class="cell-item flex" data-v-713243c1>Nav</div><div class="cell-item flex" data-v-713243c1>Dist <span class="text-units" data-v-713243c1>(nm)</span></div>',4)),(me=(Me=a.plan)==null?void 0:Me.voyage)!=null&&me.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Zs,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ge=(De=a.plan)==null?void 0:De.voyage)!=null&&ge.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hs,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",_s,[(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)!=null&&Ee.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ze=(pe=(Ae=(ye=a.plan)==null?void 0:ye.speeds)==null?void 0:Ae[d.speedIndex])==null?void 0:pe.speed)==null?void 0:ze.argv,(ke=(fe=(Ue=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:Ue.speed)==null?void 0:fe.sample)==null?void 0:ke.wps),(m,X)=>{var vt,te,le,Te;return t.openBlock(),t.createElementBlock("div",{key:X,class:"cell-row"},[t.createElementVNode("div",Js,[m.isResume?(t.openBlock(),t.createElementBlock("div",Xs,"Resume")):(t.openBlock(),t.createElementBlock("div",Ks,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",us,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",qs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",$s,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),X?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",tN)),X?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",aN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[X?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",oN))],64)):t.createCommentVNode("",!0),(Te=(le=a.plan)==null?void 0:le.voyage)!=null&&Te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[X?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),X?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",rN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",sN,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",NN,[t.createElementVNode("div",cN,[t.createElementVNode("div",MN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",mN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((we=(Qe=(Ye=(he=(be=a.plan)==null?void 0:be.speeds)==null?void 0:he[d.speedIndex])==null?void 0:Ye.speed)==null?void 0:Qe.lane)==null?void 0:we.name),1),((Fe=(Re=a.plan)==null?void 0:Re.speeds)==null?void 0:Fe.length)>1?(t.openBlock(),t.createElementBlock("div",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Be=a.plan)==null?void 0:Be.speeds,(m,X)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:X,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===X?"active":""]),onClick:le=>{d.speedIndex=X,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,gN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IN,[t.createElementVNode("div",EN,null,512)]),t.createElementVNode("div",yN,"* "+t.toDisplayString(i.computeModel((Pe=(D=(Ge=a.plan)==null?void 0:Ge.speeds)==null?void 0:D[d.speedIndex])==null?void 0:Pe.speed)),1)]),t.createElementVNode("table",AN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(Le=(We=a.plan)==null?void 0:We.voyage)!=null&&Le.sendRptWithBF?3:2},"Wind",8,TN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(He=(Ze=a.plan)==null?void 0:Ze.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",VN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=(ae=(Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)==null?void 0:ae.sample)==null?void 0:$a.hours,(m,X)=>{var vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl;return t.openBlock(),t.createElementBlock("tr",{key:X},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",xN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",pN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((Te=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Te.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",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",SN,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",UN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",fN,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",kN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",ON,[(fa=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("span",CN,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",bN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Ba=(Fa=m.meteo)==null?void 0:Fa.wave)==null?void 0:Ba.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((La=(Wa=(Pa=m.meteo)==null?void 0:Pa.wave)==null?void 0:Wa.sig)==null?void 0:La.period,1)),1),t.createElementVNode("td",hN,[(Ha=(Za=m.meteo)==null?void 0:Za.current)!=null&&Ha.kts?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((Ja=(_a=m.meteo)==null?void 0:_a.current)==null?void 0:Ja.direction),1)):t.createCommentVNode("",!0),(Ka=(Xa=m.meteo)==null?void 0:Xa.current)!=null&&Ka.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(qa=(ua=m.meteo)==null?void 0:ua.current)==null?void 0:qa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",QN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((tl=(va=m.meteo)==null?void 0:va.current)==null?void 0:tl.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const vn=el(Yr,[["render",wN],["__scopeId","data-v-713243c1"]]),RN={install(o){o.component("PlanReport",vn)}},N4="",FN={name:"OrmVoyageSummary",components:{Editor:sl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return mt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=mt(o).diff(mt(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${mt(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 F.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return F.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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.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 V={time:mt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+mt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});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}}},BN={class:"report-summary"},GN={class:"info-block"},PN={class:"col"},WN={class:"label-block"},LN={class:"text"},ZN={class:"label-block"},HN={class:"text"},_N={class:"label-block"},JN={class:"text"},XN={class:"col"},KN={class:"label-block"},uN={key:0},qN={key:1},$N={style:{"margin-left":"16px"}},vN={class:"label-block"},tc={key:0},ec={key:1},ac={style:{"margin-left":"16px"}},lc={class:"label-block"},oc={class:"text"},ic={class:"section weather-section"},nc={class:"definition bg-blue-light-2"},dc={style:{"line-height":"1.5"}},rc={class:"section summary-section"},sc={class:"phase-box"},Nc={class:"phase-index"},cc={class:"phase-position"},Mc={key:0},mc={key:1},Dc={class:"phase-position"},gc={key:0},Ic={key:1},Ec={class:"phase-cp"},yc={class:"orm-report-table"},Ac={class:"phase-conclusion"},Tc={class:"item-conclusion bg-blue-light-2"},Vc={class:"value align-left"},xc={key:0,class:"text-secondary align-right"},pc={key:0},zc={key:1},jc={key:2},Sc={key:1,class:"text-secondary"},Uc={key:2,class:"value"},fc={key:0},kc={class:"gain"},Oc={key:1},Cc={class:"lost"},bc={key:2},hc={class:"item-conclusion bg-blue-light-2"},Yc={class:"value align-left"},Qc={key:0,class:"text-secondary"},wc={key:0},Rc={key:1},Fc={key:2},Bc={key:1,class:"text-secondary"},Gc={key:2,class:"value"},Pc={key:0},Wc={class:"gain"},Lc={key:1},Zc={class:"lost"},Hc={key:2},_c={class:"item-conclusion bg-blue-light-2"},Jc={class:"value align-left"},Xc={key:0,class:"text-secondary"},Kc={key:0},uc={key:1},qc={key:2},$c={key:1,class:"text-secondary"},vc={key:2,class:"value"},tM={key:0},eM={class:"gain"},aM={key:1},lM={class:"lost"},oM={key:2},iM={key:0,class:"exclusion-block"},nM={style:{margin:"8px 0"}},dM={class:"orm-report-table"},rM=["innerHTML"],sM={class:"section segment-section"},NM={class:"segment-summary"},cM={class:"segment-index text-left"},MM={class:"segment-position"},mM={key:0},DM={key:1},gM={class:"segment-position"},IM={key:0},EM={key:1},yM={class:"orm-report-table"},AM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={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={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},YM={key:0},QM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},wM={key:2,class:"segment-speed"},RM={class:"row"},FM={class:"speed-right row"},BM={class:"speed"},GM={key:1,class:"speed"},PM={key:0,class:"speed"},WM={class:"speed"},LM={class:"speed"},ZM={class:"speed"},HM={key:2,class:"under"},_M={key:3,class:"over"},JM={class:"row"},XM={class:"speed-right formula flex-space"},KM={key:0},uM={key:3,class:"segment-speed"},qM={class:"row"},$M={class:"speed-right row"},vM={class:"speed"},tm={class:"speed"},em={key:2,class:"under"},am={key:3,class:"over"},lm={class:"row"},om={class:"speed-right formula row"},im={class:"segment-formula"},nm={class:"sub-title"},dm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},rm={class:"formula-block"},sm={class:"formula-item flex-evenly bg-blue-light"},Nm={class:"formula-right flex-evenly"},cm={class:"fraction",style:{width:"240px"}},Mm={class:"formula-item flex-center bg-blue-light"},mm={class:"formula-left flex-space"},Dm={class:"formula-right flex-evenly"},gm={class:"fraction",style:{width:"240px"}},Im={class:"formula-item flex-center bg-blue-light"},Em={class:"formula-left flex-space"},ym={class:"formula-right flex-evenly"},Am={class:"fraction",style:{width:"240px"}},Tm={class:"formula-desc"},Vm={class:"flex-end"},xm={class:"flex-end"},pm={class:"flex-end"},zm={key:0,class:"formula-block"},jm={class:"formula-item flex-evenly bg-blue-light"},Sm={class:"formula-right flex-evenly"},Um={class:"fraction",style:{width:"200px"}},fm={class:"formula-item flex-center bg-blue-light"},km={class:"formula-left flex-space"},Om={class:"formula-right flex-evenly"},Cm={class:"fraction",style:{width:"200px"}},bm={class:"formula-item flex-center bg-blue-light"},hm={class:"formula-left flex-space"},Ym={class:"formula-right flex-evenly"},Qm={class:"fraction",style:{width:"200px"}},wm={class:"formula-item formula-conclusion bg-blue-light"},Rm={key:0,class:"flex-evenly",style:{width:"500px"}},Fm={key:1,class:"flex-evenly",style:{width:"500px"}},Bm={class:"flex-center"},Gm={key:1,class:"formula-conclusion bg-blue-light"},Pm={class:"segment-formula"},Wm={class:"sub-title"},Lm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Zm={class:"formula-block"},Hm={class:"formula-item flex-evenly bg-blue-light"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"240px"}},Xm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},Km={key:0,class:"flex-end text-tips"},um={class:"formula-item flex-center bg-blue-light"},qm={class:"formula-right flex-evenly"},$m={class:"fraction",style:{width:"200px"}},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"300px"}},iD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},rD={class:"sub-title"},sD={key:0,class:"formula-block"},ND={key:0,class:"formula-item flex-evenly bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"60px"}},mD={class:"fraction",style:{width:"60px"}},DD={class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"150px"}},ED={class:"fraction",style:{width:"150px"}},yD={key:0},AD={class:"formula-item flex-evenly bg-blue-light"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"150px"}},xD={class:"fraction",style:{width:"150px"}},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},fD={class:"flex-evenly",style:{width:"500px"}},kD={key:0,class:"flex-evenly"},OD={class:"fraction"},CD={class:"flex-evenly",style:{width:"700px"}},bD={key:0,class:"flex-evenly",style:{width:"500px"}},hD={class:"fraction",style:{width:"140px"}},YD={key:1,class:"formula-item formula-conclusion bg-blue-light"},QD={class:"header-block"},wD={class:"bg-block"},RD={class:"block-title"},FD={key:0,class:"formula-block"},BD={class:"formula-item flex-evenly bg-blue-light"},GD={class:"formula-right flex-evenly"},PD={class:"fraction",style:{width:"150px"}},WD={class:"fraction",style:{width:"150px"}},LD={key:0},ZD={class:"formula-item flex-evenly bg-blue-light"},HD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"150px"}},JD={class:"fraction",style:{width:"150px"}},XD={class:"formula-item flex-evenly bg-blue-light"},KD={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},qD={class:"fraction",style:{width:"150px"}},$D={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},vD={key:0,class:"flex-evenly",style:{width:"500px"}},t1={key:1,class:"flex-evenly",style:{width:"700px"}},e1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function a1(o,e,a,c,d,i){var r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",BN,[t.createElementVNode("div",GN,[t.createElementVNode("div",PN,[t.createElementVNode("div",WN,[e[3]||(e[3]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",LN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",ZN,[e[4]||(e[4]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",HN,t.toDisplayString((N=(r=a.report)==null?void 0:r.vessel)==null?void 0:N.name)+" ("+t.toDisplayString((A=(V=a.report)==null?void 0:V.vessel)==null?void 0:A.type)+")",1)]),t.createElementVNode("div",_N,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",JN,t.toDisplayString(((S=(T=a.report)==null?void 0:T.voyage)==null?void 0:S.voyNum)||((y=(C=a.report)==null?void 0:C.voyage)==null?void 0:y.number)),1)])]),t.createElementVNode("div",XN,[t.createElementVNode("div",KN,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(j=(x=a.report)==null?void 0:x.departure)!=null&&j.name?(t.openBlock(),t.createElementBlock("span",uN,t.toDisplayString((p=(E=a.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",qN,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",$N,t.toDisplayString(i.computeUTCTime((I=(f=a.report)==null?void 0:f.departure)==null?void 0:I.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",vN,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Y=(h=a.report)==null?void 0:h.arrival)!=null&&Y.portName?(t.openBlock(),t.createElementBlock("span",tc,t.toDisplayString((b=(k=a.report)==null?void 0:k.arrival)==null?void 0:b.portName),1)):(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString(i.computePosition((Q=a.report)==null?void 0:Q.arrival)),1)),t.createElementVNode("span",ac,t.toDisplayString(i.computeUTCTime((G=(w=a.report)==null?void 0:w.arrival)==null?void 0:G.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",lc,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",oc,t.toDisplayString((L=(W=a.report)==null?void 0:W.voyage)==null?void 0:L.loadCondition),1)])])]),t.createElementVNode("div",ic,[e[9]||(e[9]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",nc,[t.createElementVNode("div",dc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",rc,[e[37]||(e[37]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Z=a.report)==null?void 0:Z.segments,(l,R)=>{var J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+R,class:"segment-box"},[t.createElementVNode("div",sc,[t.createElementVNode("div",Nc,"Seg."+t.toDisplayString(R+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((J=l==null?void 0:l.extend)==null?void 0:J.segTimes,(U,qt)=>{var Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut;return t.openBlock(),t.createElementBlock("div",{key:qt,class:"phase-row text-secondary"},[t.createElementVNode("div",cc,[(Zt=U==null?void 0:U.departure)!=null&&Zt.portName?(t.openBlock(),t.createElementBlock("span",Mc,t.toDisplayString((n=U==null?void 0:U.departure)==null?void 0:n.portName),1)):(t.openBlock(),t.createElementBlock("span",mc,t.toDisplayString(i.computeLat((O=U==null?void 0:U.departure)==null?void 0:O.lat).pretty)+", "+t.toDisplayString(i.computeLng((Dt=U==null?void 0:U.departure)==null?void 0:Dt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Ht=U==null?void 0:U.departure)==null?void 0:Ht.utcTime))+")",1)]),e[10]||(e[10]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Dc,[(_t=U==null?void 0:U.arrival)!=null&&_t.portName?(t.openBlock(),t.createElementBlock("span",gc,t.toDisplayString((Jt=U==null?void 0:U.arrival)==null?void 0:Jt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ic,t.toDisplayString(i.computeLat((Xt=U==null?void 0:U.arrival)==null?void 0:Xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((Kt=U==null?void 0:U.arrival)==null?void 0:Kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((ut=U==null?void 0:U.arrival)==null?void 0:ut.utcTime))+")",1)])])}),128)),t.createElementVNode("div",Ec,[t.createElementVNode("table",yc,[e[18]||(e[18]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((u=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:u.speed)+" |",1),e[11]||(e[11]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($=(q=l==null?void 0:l.extend)==null?void 0:q.cp)==null?void 0:$.speed,"Over"))+",",1),e[12]||(e[12]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tt=(v=l==null?void 0:l.extend)==null?void 0:v.cp)==null?void 0:tt.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((at=(et=l==null?void 0:l.extend)==null?void 0:et.cp)==null?void 0:at.fo)+" |",1),e[13]||(e[13]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[14]||(e[14]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((ot=(lt=l==null?void 0:l.extend)==null?void 0:lt.cp)==null?void 0:ot.dgo)+" |",1),e[15]||(e[15]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[16]||(e[16]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Ac,[t.createElementVNode("div",Tc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Vc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",xc,[((P=l==null?void 0:l.timeConclusion)==null?void 0:P.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",pc,"Time Gained")):((gt=l==null?void 0:l.timeConclusion)==null?void 0:gt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",zc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",jc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Sc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Uc,[((It=l==null?void 0:l.timeConclusion)==null?void 0:It.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",kc,t.toDisplayString((Et=l==null?void 0:l.timeConclusion)==null?void 0:Et.timeGain),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((yt=l==null?void 0:l.timeConclusion)==null?void 0:yt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Oc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Cc,t.toDisplayString((At=l==null?void 0:l.timeConclusion)==null?void 0:At.timeLost),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",hc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Yc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Qc,[((Vt=(Tt=l==null?void 0:l.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",wc,"FO Saving")):((pt=(xt=l==null?void 0:l.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Rc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Fc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Gc,[((jt=(zt=l==null?void 0:l.fuelConclusion)==null?void 0:zt.fo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Pc,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Wc,t.toDisplayString((Ut=(St=l==null?void 0:l.fuelConclusion)==null?void 0:St.fo)==null?void 0:Ut.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((kt=(ft=l==null?void 0:l.fuelConclusion)==null?void 0:ft.fo)==null?void 0:kt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Lc,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Zc,t.toDisplayString((Ct=(Ot=l==null?void 0:l.fuelConclusion)==null?void 0:Ot.fo)==null?void 0:Ct.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Hc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_c,[e[36]||(e[36]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Jc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Xc,[((ht=(bt=l==null?void 0:l.fuelConclusion)==null?void 0:bt.dgo)==null?void 0:ht.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Kc,"DO/GO Saving")):((Qt=(Yt=l==null?void 0:l.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:Qt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",uc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",qc,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",$c,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",vc,[((Rt=(wt=l==null?void 0:l.fuelConclusion)==null?void 0:wt.dgo)==null?void 0:Rt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",tM,[e[32]||(e[32]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",eM,t.toDisplayString((Bt=(Ft=l==null?void 0:l.fuelConclusion)==null?void 0:Ft.dgo)==null?void 0:Bt.saving),1),e[33]||(e[33]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Pt=(Gt=l==null?void 0:l.fuelConclusion)==null?void 0:Gt.dgo)==null?void 0:Pt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",aM,[e[34]||(e[34]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",lM,t.toDisplayString((Lt=(Wt=l==null?void 0:l.fuelConclusion)==null?void 0:Wt.dgo)==null?void 0:Lt.overCons),1),e[35]||(e[35]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",oM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[38]||(e[38]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((H=a.report)==null?void 0:H.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[42]||(e[42]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",iM,[e[40]||(e[40]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[41]||(e[41]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",nM,[t.createElementVNode("table",dM,[e[39]||(e[39]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,R)=>(t.openBlock(),t.createElementBlock("tr",{key:R},[t.createElementVNode("td",null,t.toDisplayString(R+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((_=a.report)==null?void 0:_.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,rM))],2)],2),t.createElementVNode("div",sM,[e[244]||(e[244]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,R)=>{var J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,U,qt,Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,pe,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,D,Pe,We,Le,Ze,He,_e,Je,Xe,ae,$a,m,X,vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl,ll,ol,il,nl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,fl,kl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Fl,Bl,Gl,Pl,Wl,Ll,Zl,Hl,al,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,Fo,Bo,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,Fi,Bi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,Ki,s,it,nt,dt,rt,st,_l,Jl,Xl,Ve,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,Sn,Un,fn,kn,On,Cn,bn,hn,Yn,Qn,wn,Rn,Fn;return t.openBlock(),t.createElementBlock("div",{key:R,class:"segment-block"},[t.createElementVNode("div",NM,[t.createElementVNode("div",cM,"Voyage Analysis Seg. "+t.toDisplayString(R+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((J=l==null?void 0:l.extend)==null?void 0:J.segTimes,(Nt,qi)=>{var dl,ui,Bn,Gn,Pn,Wn,Ln,Zn,Hn,_n;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",MM,[(dl=Nt==null?void 0:Nt.departure)!=null&&dl.portName?(t.openBlock(),t.createElementBlock("span",mM,t.toDisplayString((ui=Nt==null?void 0:Nt.departure)==null?void 0:ui.portName),1)):(t.openBlock(),t.createElementBlock("span",DM,t.toDisplayString(i.computeLat((Bn=Nt==null?void 0:Nt.departure)==null?void 0:Bn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Gn=Nt==null?void 0:Nt.departure)==null?void 0:Gn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Pn=Nt==null?void 0:Nt.departure)==null?void 0:Pn.utcTime))+")",1)]),e[43]||(e[43]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",gM,[(Wn=Nt==null?void 0:Nt.arrival)!=null&&Wn.portName?(t.openBlock(),t.createElementBlock("span",IM,t.toDisplayString((Ln=Nt==null?void 0:Nt.arrival)==null?void 0:Ln.portName),1)):(t.openBlock(),t.createElementBlock("span",EM,t.toDisplayString(i.computeLat((Zn=Nt==null?void 0:Nt.arrival)==null?void 0:Zn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Hn=Nt==null?void 0:Nt.arrival)==null?void 0:Hn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((_n=Nt==null?void 0:Nt.arrival)==null?void 0:_n.utcTime))+")",1)])])}),128)),t.createElementVNode("table",yM,[e[51]||(e[51]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",AM,t.toDisplayString((u=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:u.distance),1),t.createElementVNode("td",TM,t.toDisplayString(($=(q=l==null?void 0:l.goodWx)==null?void 0:q.inEca)==null?void 0:$.distance),1),t.createElementVNode("td",null,t.toDisplayString((tt=(v=l==null?void 0:l.allWx)==null?void 0:v.outEca)==null?void 0:tt.distance),1),t.createElementVNode("td",null,t.toDisplayString((at=(et=l==null?void 0:l.allWx)==null?void 0:et.inEca)==null?void 0:at.distance),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",VM,t.toDisplayString((ot=(lt=l==null?void 0:l.goodWx)==null?void 0:lt.outEca)==null?void 0:ot.time),1),t.createElementVNode("td",xM,t.toDisplayString((gt=(P=l==null?void 0:l.goodWx)==null?void 0:P.inEca)==null?void 0:gt.time),1),t.createElementVNode("td",null,t.toDisplayString((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.time),1),t.createElementVNode("td",null,t.toDisplayString((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.time),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",pM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.avgSpd)||"--"),1),t.createElementVNode("td",zM,t.toDisplayString(((pt=(xt=l==null?void 0:l.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.outEca)==null?void 0:jt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(St=l==null?void 0:l.allWx)==null?void 0:St.inEca)==null?void 0:Ut.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[47]||(e[47]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",jM,t.toDisplayString(((kt=(ft=l==null?void 0:l.goodWx)==null?void 0:ft.outEca)==null?void 0:kt.sumFoCons)||"--"),1),t.createElementVNode("td",SM,t.toDisplayString(((Ct=(Ot=l==null?void 0:l.goodWx)==null?void 0:Ot.inEca)==null?void 0:Ct.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=l==null?void 0:l.allWx)==null?void 0:bt.outEca)==null?void 0:ht.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=l==null?void 0:l.allWx)==null?void 0:Yt.inEca)==null?void 0:Qt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[48]||(e[48]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",UM,t.toDisplayString(((Rt=(wt=l==null?void 0:l.goodWx)==null?void 0:wt.outEca)==null?void 0:Rt.avgFoCons)||"--"),1),t.createElementVNode("td",fM,t.toDisplayString(((Bt=(Ft=l==null?void 0:l.goodWx)==null?void 0:Ft.inEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Pt=(Gt=l==null?void 0:l.allWx)==null?void 0:Gt.outEca)==null?void 0:Pt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Lt=(Wt=l==null?void 0:l.allWx)==null?void 0:Wt.inEca)==null?void 0:Lt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[49]||(e[49]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",kM,t.toDisplayString(((qt=(U=l==null?void 0:l.goodWx)==null?void 0:U.outEca)==null?void 0:qt.sumDgoCons)||"--"),1),t.createElementVNode("td",OM,t.toDisplayString(((n=(Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.inEca)==null?void 0:n.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Dt=(O=l==null?void 0:l.allWx)==null?void 0:O.outEca)==null?void 0:Dt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((_t=(Ht=l==null?void 0:l.allWx)==null?void 0:Ht.inEca)==null?void 0:_t.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[50]||(e[50]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",CM,t.toDisplayString(((Xt=(Jt=l==null?void 0:l.goodWx)==null?void 0:Jt.outEca)==null?void 0:Xt.avgDgoCons)||"--"),1),t.createElementVNode("td",bM,t.toDisplayString(((ut=(Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.inEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((B=($t=l==null?void 0:l.allWx)==null?void 0:$t.outEca)==null?void 0:B.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((oe=(ee=l==null?void 0:l.allWx)==null?void 0:ee.inEca)==null?void 0:oe.avgDgoCons)||"--"),1)])])]),(ie=l==null?void 0:l.goodWx)!=null&&ie.distance?(t.openBlock(),t.createElementBlock("table",hM,[e[53]||(e[53]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[R],(Nt,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Nt,(dl,ui)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ui},[dl.goodWx?(t.openBlock(),t.createElementBlock("tr",YM,[t.createElementVNode("td",null,t.toDisplayString(dl.type)+" "+t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(dl),"MMM-DD/HHmm[Z],YYYY")),1),e[52]||(e[52]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(dl.utc,i.computePrevTime(dl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ne=d.exclusion[R])!=null&&ne.time?(t.openBlock(),t.createElementBlock("div",QM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(de=l==null?void 0:l.goodWx)!=null&&de.distance?(t.openBlock(),t.createElementBlock("div",wM,[t.createElementVNode("div",RM,[e[63]||(e[63]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",FM,[(se=(re=a.report)==null?void 0:re.weather)!=null&&se.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(pe=(Ae=a.report)==null?void 0:Ae.weather)!=null&&pe.disableWxFactor&&((je=(ze=a.report)==null?void 0:ze.weather)!=null&&je.disableCFactor)?(t.openBlock(),t.createElementBlock("span",PM,t.toDisplayString((Se=l==null?void 0:l.goodWx)==null?void 0:Se.pfmSpd)+" (kts)",1)):(fe=(Ue=a.report)==null?void 0:Ue.weather)!=null&&fe.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ke=l==null?void 0:l.goodWx)==null?void 0:ke.avgSpd),1),e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Oe=l==null?void 0:l.goodWx)==null?void 0:Oe.avgCf)>0?(Ce=l==null?void 0:l.goodWx)==null?void 0:Ce.avgCf:`(${(be=l==null?void 0:l.goodWx)==null?void 0:be.avgCf})`),1),e[57]||(e[57]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",WM,t.toDisplayString((he=l==null?void 0:l.goodWx)==null?void 0:he.pfmSpd)+" (kts)",1)],64)):(Qe=(Ye=a.report)==null?void 0:Ye.weather)!=null&&Qe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((we=l==null?void 0:l.goodWx)==null?void 0:we.avgSpd),1),e[58]||(e[58]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Re=l==null?void 0:l.goodWx)==null?void 0:Re.avgWf)>0?(Fe=l==null?void 0:l.goodWx)==null?void 0:Fe.avgWf:`(${(Be=l==null?void 0:l.goodWx)==null?void 0:Be.avgWf})`),1),e[59]||(e[59]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",LM,t.toDisplayString((Ge=l==null?void 0:l.goodWx)==null?void 0:Ge.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((D=l==null?void 0:l.goodWx)==null?void 0:D.avgSpd),1),e[61]||(e[61]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Pe=l==null?void 0:l.goodWx)==null?void 0:Pe.avgWf)>0?(We=l==null?void 0:l.goodWx)==null?void 0:We.avgWf:`(${(Le=l==null?void 0:l.goodWx)==null?void 0:Le.avgWf})`),1),(He=(Ze=a.report)==null?void 0:Ze.weather)!=null&&He.favorableCur&&((_e=l==null?void 0:l.goodWx)==null?void 0:_e.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Je=l==null?void 0:l.goodWx)==null?void 0:Je.avgCf)>0?(Xe=l==null?void 0:l.goodWx)==null?void 0:Xe.avgCf:`(${(ae=l==null?void 0:l.goodWx)==null?void 0:ae.avgCf})`),1)],64)),e[62]||(e[62]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",ZM,t.toDisplayString(($a=l==null?void 0:l.goodWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ce=(Ne=a.report)==null?void 0:Ne.weather)!=null&&ce.favorableCur&&((Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgCf)>0?(t.openBlock(),t.createElementBlock("span",GM,t.toDisplayString((ye=l==null?void 0:l.goodWx)==null?void 0:ye.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((De=l==null?void 0:l.goodWx)==null?void 0:De.avgCf)>0?(ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgCf:`(${(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgCf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",BM,t.toDisplayString((Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.pfmSpd)+" (kts)",1)],64))],64)),((m=l==null?void 0:l.goodWx)==null?void 0:m.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",HM,"(Under-performance)")):t.createCommentVNode("",!0),((X=l==null?void 0:l.goodWx)==null?void 0:X.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",_M,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",JM,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",XM,[(te=(vt=a.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(qe=(ue=a.report)==null?void 0:ue.weather)!=null&&qe.disableWxFactor&&((ve=($e=a.report)==null?void 0:$e.weather)!=null&&ve.disableCFactor)?(t.openBlock(),t.createElementBlock("label",KM,"GW Average Speed")):(ea=(ta=a.report)==null?void 0:ta.weather)!=null&&ea.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[69]||(e[69]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"-",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(la=(aa=a.report)==null?void 0:aa.weather)!=null&&la.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[72]||(e[72]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"-",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[77]||(e[77]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[78]||(e[78]=t.createElementVNode("label",null,"-",-1)),e[79]||(e[79]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(ia=(oa=a.report)==null?void 0:oa.weather)!=null&&ia.favorableCur&&((na=l==null?void 0:l.goodWx)==null?void 0:na.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[75]||(e[75]=t.createElementVNode("label",null,"-",-1)),e[76]||(e[76]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Te=(le=a.report)==null?void 0:le.weather)!=null&&Te.favorableCur&&((Ke=l==null?void 0:l.goodWx)==null?void 0:Ke.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[67]||(e[67]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[64]||(e[64]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"-",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",uM,[t.createElementVNode("div",qM,[e[86]||(e[86]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[(ra=(da=a.report)==null?void 0:da.weather)!=null&&ra.favorableCur&&((sa=l==null?void 0:l.allWx)==null?void 0:sa.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ya=l==null?void 0:l.allWx)==null?void 0:ya.avgSpd),1),e[84]||(e[84]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Aa=l==null?void 0:l.allWx)==null?void 0:Aa.avgWf)>0?(Ta=l==null?void 0:l.allWx)==null?void 0:Ta.avgWf:`(${(Va=l==null?void 0:l.allWx)==null?void 0:Va.avgWf})`),1),e[85]||(e[85]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((xa=l==null?void 0:l.allWx)==null?void 0:xa.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Na=l==null?void 0:l.allWx)==null?void 0:Na.avgSpd),1),e[81]||(e[81]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ca=l==null?void 0:l.allWx)==null?void 0:ca.avgCf)>0?(Ma=l==null?void 0:l.allWx)==null?void 0:Ma.avgCf:`(${(ma=l==null?void 0:l.allWx)==null?void 0:ma.avgCf})`),1),e[82]||(e[82]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Da=l==null?void 0:l.allWx)==null?void 0:Da.avgWf)>0?(ga=l==null?void 0:l.allWx)==null?void 0:ga.avgWf:`(${(Ia=l==null?void 0:l.allWx)==null?void 0:Ia.avgWf})`),1),e[83]||(e[83]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((Ea=l==null?void 0:l.allWx)==null?void 0:Ea.pfmSpd)+" (kts)",1)],64)),((pa=l==null?void 0:l.allWx)==null?void 0:pa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",em,"(Under-performance)")):t.createCommentVNode("",!0),((za=l==null?void 0:l.allWx)==null?void 0:za.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",am,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lm,[e[96]||(e[96]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",om,[(Sa=(ja=a.report)==null?void 0:ja.weather)!=null&&Sa.favorableCur&&((Ua=l==null?void 0:l.allWx)==null?void 0:Ua.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[92]||(e[92]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[93]||(e[93]=t.createElementVNode("label",null,"-",-1)),e[94]||(e[94]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[95]||(e[95]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[87]||(e[87]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"-",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"Current Factor",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"-",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",im,[t.createElementVNode("div",nm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(R+1)+" Time Analysis",1),(ka=(fa=a.report)==null?void 0:fa.weather)!=null&&ka.noExtrapolation?(t.openBlock(),t.createElementBlock("span",dm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",rm,[t.createElementVNode("div",sm,[e[100]||(e[100]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[t.createElementVNode("div",cm,[t.createElementVNode("div",null,t.toDisplayString((Ca=(Oa=a.report)==null?void 0:Oa.weather)!=null&&Ca.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[97]||(e[97]=t.createElementVNode("div",{class:"line"},null,-1)),e[98]||(e[98]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[99]||(e[99]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ha=(ba=l==null?void 0:l.extend)==null?void 0:ba.cp)==null?void 0:ha.speed,"Under"))+"kts)",1),e[101]||(e[101]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[t.createElementVNode("div",null,t.toDisplayString((Qa=(Ya=a.report)==null?void 0:Ya.weather)!=null&&Qa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[102]||(e[102]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ra=(wa=l==null?void 0:l.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Under"))+"kts",1)]),e[103]||(e[103]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ba=(Fa=l==null?void 0:l.extend)==null?void 0:Fa.cp)==null?void 0:Ba.speed,"Over"))+"kts)",1),e[104]||(e[104]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",ym,[t.createElementVNode("div",Am,[t.createElementVNode("div",null,t.toDisplayString((Pa=(Ga=a.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(La=(Wa=l==null?void 0:l.extend)==null?void 0:Wa.cp)==null?void 0:La.speed,"Over"))+"kts",1)]),e[106]||(e[106]=t.createElementVNode("div",null,"(c)",-1))])]),e[107]||(e[107]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-e5141617><div class="flex-space" style="width:300px;font-weight:400;" data-v-e5141617><label data-v-e5141617>Time Lost</label><div data-v-e5141617>=</div><div data-v-e5141617>(a)</div><div data-v-e5141617>-</div><div data-v-e5141617>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-e5141617><label data-v-e5141617>Time Gained</label><div data-v-e5141617>=</div><div data-v-e5141617>(c)</div><div data-v-e5141617>-</div><div data-v-e5141617>(a)</div></div></div>',1))]),t.createElementVNode("div",Tm,[t.createElementVNode("div",Vm,[e[108]||(e[108]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ha=(Za=l==null?void 0:l.extend)==null?void 0:Za.cp)==null?void 0:Ha.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",xm,[e[109]||(e[109]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ja=(_a=l==null?void 0:l.extend)==null?void 0:_a.cp)==null?void 0:Ja.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",pm,[e[110]||(e[110]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ka=(Xa=l==null?void 0:l.extend)==null?void 0:Xa.cp)==null?void 0:Ka.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,(qa=(ua=l==null?void 0:l.extend)==null?void 0:ua.cp)==null?void 0:qa.speed,"Under"))+" kts) ",1)])]),(va=l==null?void 0:l.goodWx)!=null&&va.distance?(t.openBlock(),t.createElementBlock("div",zm,[t.createElementVNode("div",jm,[e[114]||(e[114]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Sm,[t.createElementVNode("div",Um,[t.createElementVNode("div",null,t.toDisplayString((ll=(tl=a.report)==null?void 0:tl.weather)!=null&&ll.noExtrapolation?(ol=l==null?void 0:l.goodWx)==null?void 0:ol.distance:(il=l==null?void 0:l.allWx)==null?void 0:il.distance),1),e[111]||(e[111]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.goodWx)==null?void 0:nl.pfmSpd),1)]),e[112]||(e[112]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeAtPfmSpd)+" (hrs)",1),e[113]||(e[113]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",fm,[t.createElementVNode("div",km,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ml=(cl=l==null?void 0:l.extend)==null?void 0:cl.cp)==null?void 0:Ml.speed,"Under"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Om,[t.createElementVNode("div",Cm,[t.createElementVNode("div",null,t.toDisplayString((Dl=(ml=a.report)==null?void 0:ml.weather)!=null&&Dl.noExtrapolation?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.distance:(Il=l==null?void 0:l.allWx)==null?void 0:Il.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((El=l==null?void 0:l.timeConclusion)==null?void 0:El.minusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yl=l==null?void 0:l.timeConclusion)==null?void 0:yl.timeAtMinusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",bm,[t.createElementVNode("div",hm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Tl=(Al=l==null?void 0:l.extend)==null?void 0:Al.cp)==null?void 0:Tl.speed,"Over"))+"kts)",1),e[119]||(e[119]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Ym,[t.createElementVNode("div",Qm,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=a.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?(pl=l==null?void 0:l.goodWx)==null?void 0:pl.distance:(zl=l==null?void 0:l.allWx)==null?void 0:zl.distance),1),e[120]||(e[120]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jl=l==null?void 0:l.timeConclusion)==null?void 0:jl.plusAbtSpd),1)]),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Sl=l==null?void 0:l.timeConclusion)==null?void 0:Sl.timeAtPlusAbtSpd)+" (hrs)",1),e[122]||(e[122]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",wm,[((Ul=l==null?void 0:l.timeConclusion)==null?void 0:Ul.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Rm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fl=l==null?void 0:l.timeConclusion)==null?void 0:fl.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kl=l==null?void 0:l.timeConclusion)==null?void 0:kl.timeAtMinusAbtSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=l==null?void 0:l.timeConclusion)==null?void 0:Ol.timeLost)+" (hrs)",1)])):((Cl=l==null?void 0:l.timeConclusion)==null?void 0:Cl.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Fm,[e[129]||(e[129]=t.createElementVNode("div",null,"Time Lost",-1)),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),e[131]||(e[131]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[132]||(e[132]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bl=l==null?void 0:l.timeConclusion)==null?void 0:bl.timeAtPlusAbtSpd),1),e[133]||(e[133]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((hl=l==null?void 0:l.timeConclusion)==null?void 0:hl.timeAtPfmSpd),1),e[134]||(e[134]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=l==null?void 0:l.timeConclusion)==null?void 0:Yl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Bm,[e[135]||(e[135]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Ql=l==null?void 0:l.timeConclusion)==null?void 0:Ql.conclusionStatus)==="Lost"?"lost":((wl=l==null?void 0:l.timeConclusion)==null?void 0:wl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Rl=l==null?void 0:l.timeConclusion)==null?void 0:Rl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Gm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(R+1)+" Consumption Analysis",1),(Fl=(M=a.report)==null?void 0:M.weather)!=null&&Fl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Lm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zm,[t.createElementVNode("div",Hm,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((Gl=(Bl=a.report)==null?void 0:Bl.weather)!=null&&Gl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),e[137]||(e[137]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",Xm,[e[142]||(e[142]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Wl=(Pl=l.extend)==null?void 0:Pl.cp)==null?void 0:Wl.dgo)>0?(t.openBlock(),t.createElementBlock("div",Km," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",um,[e[147]||(e[147]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qm,[t.createElementVNode("div",$m,[t.createElementVNode("div",null,t.toDisplayString((Zl=(Ll=a.report)==null?void 0:Ll.weather)!=null&&Zl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[143]||(e[143]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(al=(Hl=l==null?void 0:l.extend)==null?void 0:Hl.cp)==null?void 0:al.speed,"Under"))+"kts",1)]),e[144]||(e[144]=t.createElementVNode("div",null,"x",-1)),e[145]||(e[145]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[146]||(e[146]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",vm,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((ul=(Kl=a.report)==null?void 0:Kl.weather)!=null&&ul.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($l=(ql=l==null?void 0:l.extend)==null?void 0:ql.cp)==null?void 0:$l.speed,"Over"))+"kts",1)]),e[149]||(e[149]=t.createElementVNode("div",null,"x",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[151]||(e[151]=t.createElementVNode("div",null,"(f)",-1))])]),e[159]||(e[159]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-e5141617><div class="flex-space" style="width:240px;" data-v-e5141617><label data-v-e5141617>Fuel Over-consumption</label><div data-v-e5141617>=</div><div data-v-e5141617>(d)</div><div data-v-e5141617>-</div><div data-v-e5141617>(e)</div></div><div class="flex-space" style="width:200px;" data-v-e5141617><label data-v-e5141617>Fuel Saving</label><div data-v-e5141617>=</div><div data-v-e5141617>(f)</div><div data-v-e5141617>-</div><div data-v-e5141617>(d)</div></div></div>',1)),((to=(vl=l.extend)==null?void 0:vl.cp)==null?void 0:to.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",aD,[e[155]||(e[155]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[e[153]||(e[153]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=(eo=a.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",iD,[e[158]||(e[158]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nD,[t.createElementVNode("div",dD,[e[156]||(e[156]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[157]||(e[157]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=a.report)==null?void 0:lo.weather)!=null&&oo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[243]||(e[243]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",rD,"Seg. "+t.toDisplayString(R+1)+" Fuel Oil",1),(io=l==null?void 0:l.goodWx)!=null&&io.distance?(t.openBlock(),t.createElementBlock("div",sD,[((ro=(no=l==null?void 0:l.goodWx)==null?void 0:no.inEca)==null?void 0:ro.distance)>0?(t.openBlock(),t.createElementBlock("div",ND,[e[165]||(e[165]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((No=(so=l==null?void 0:l.goodWx)==null?void 0:so.inEca)==null?void 0:No.sumDgoCons),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",mD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.extend)==null?void 0:co.cp)==null?void 0:Mo.dgo),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),e[161]||(e[161]=t.createElementVNode("div",null,"24",-1))]),e[163]||(e[163]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l==null?void 0:l.goodWx)==null?void 0:mo.inEca)==null?void 0:Do.time),1),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=l==null?void 0:l.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",DD,[e[172]||(e[172]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=a.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=l==null?void 0:l.goodWx)==null?void 0:Ao.distance:(To=l==null?void 0:l.allWx)==null?void 0:To.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=l==null?void 0:l.goodWx)==null?void 0:Vo.pfmSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((xo=l==null?void 0:l.goodWx)==null?void 0:xo.sumFoCons),1),((zo=(po=l==null?void 0:l.goodWx)==null?void 0:po.inEca)==null?void 0:zo.distance)>0?(t.openBlock(),t.createElementBlock("span",yD,[e[167]||(e[167]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((So=(jo=l==null?void 0:l.fuelConclusion)==null?void 0:jo.fo)==null?void 0:So.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=l==null?void 0:l.goodWx)==null?void 0:Uo.time),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ko=(fo=l.fuelConclusion)==null?void 0:fo.fo)==null?void 0:ko.entireCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",AD,[e[179]||(e[179]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=a.report)==null?void 0:Oo.weather)!=null&&Co.noExtrapolation?(bo=l==null?void 0:l.goodWx)==null?void 0:bo.distance:(ho=l==null?void 0:l.allWx)==null?void 0:ho.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=l==null?void 0:l.timeConclusion)==null?void 0:Yo.minusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((wo=(Qo=l==null?void 0:l.fuelConclusion)==null?void 0:Qo.fo)==null?void 0:wo.overTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Ro=l.fuelConclusion)==null?void 0:Ro.fo)==null?void 0:Fo.maxCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",pD,[e[186]||(e[186]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((Go=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Go.noExtrapolation?(Po=l==null?void 0:l.goodWx)==null?void 0:Po.distance:(Wo=l==null?void 0:l.allWx)==null?void 0:Wo.distance),1),e[180]||(e[180]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=l==null?void 0:l.timeConclusion)==null?void 0:Lo.plusAbtSpd),1)]),e[183]||(e[183]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.underTolerance),1),e[181]||(e[181]=t.createElementVNode("div",{class:"line"},null,-1)),e[182]||(e[182]=t.createElementVNode("div",null,"24",-1))]),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons)+" (mt)",1),e[185]||(e[185]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",UD,[((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",fD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l==null?void 0:l.fuelConclusion)==null?void 0:uo.fo)==null?void 0:qo.entireCons),1),e[191]||(e[191]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=($o=l==null?void 0:l.fuelConclusion)==null?void 0:$o.fo)==null?void 0:vo.maxCons),1),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ei=(ti=l==null?void 0:l.fuelConclusion)==null?void 0:ti.fo)==null?void 0:ei.overCons),1)]),(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)!=null&&li.distance?(t.openBlock(),t.createElementBlock("div",kD,[e[194]||(e[194]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",null,t.toDisplayString((ii=(oi=l==null?void 0:l.goodWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.overCons),1),e[193]||(e[193]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",CD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.minCons),1),e[201]||(e[201]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.entireCons),1),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Vi=(Ti=l==null?void 0:l.fuelConclusion)==null?void 0:Ti.fo)==null?void 0:Vi.saving)+" (mt)",1)]),(pi=(xi=l==null?void 0:l.goodWx)==null?void 0:xi.inEca)!=null&&pi.distance?(t.openBlock(),t.createElementBlock("div",bD,[e[204]||(e[204]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[205]||(e[205]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ji=(zi=a.report)==null?void 0:zi.weather)!=null&&ji.noExtrapolation?(Ui=(Si=l==null?void 0:l.goodWx)==null?void 0:Si.inEca)==null?void 0:Ui.distance:(ki=(fi=l==null?void 0:l.allWx)==null?void 0:fi.inEca)==null?void 0:ki.distance)+" * "+t.toDisplayString((Ci=(Oi=l==null?void 0:l.fuelConclusion)==null?void 0:Oi.fo)==null?void 0:Ci.saving),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=(bi=a.report)==null?void 0:bi.weather)!=null&&hi.noExtrapolation?(Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.distance:(Qi=l==null?void 0:l.allWx)==null?void 0:Qi.distance),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=l==null?void 0:l.fuelConclusion)==null?void 0:wi.fo)==null?void 0:Ri.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Bi=(Fi=l==null?void 0:l.fuelConclusion)==null?void 0:Fi.fo)==null?void 0:Bi.conclusionStatus)==="Over"?"flex-center lost":((Pi=(Gi=l==null?void 0:l.fuelConclusion)==null?void 0:Gi.fo)==null?void 0:Pi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[207]||(e[207]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Li=(Wi=l==null?void 0:l.fuelConclusion)==null?void 0:Wi.fo)==null?void 0:Li.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",YD,t.toDisplayString(d.noGoodWxDay),1)),((Hi=(Zi=l==null?void 0:l.extend)==null?void 0:Zi.cp)==null?void 0:Hi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[e[208]||(e[208]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",RD,"Seg. "+t.toDisplayString(R+1)+" Diesel/Gas Oil",1)])]),(_i=l==null?void 0:l.goodWx)!=null&&_i.distance?(t.openBlock(),t.createElementBlock("div",FD,[t.createElementVNode("div",BD,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Xi=(Ji=a.report)==null?void 0:Ji.weather)!=null&&Xi.noExtrapolation?(Ki=l==null?void 0:l.goodWx)==null?void 0:Ki.distance:(s=l==null?void 0:l.allWx)==null?void 0:s.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((it=l==null?void 0:l.goodWx)==null?void 0:it.pfmSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",WD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((nt=l==null?void 0:l.goodWx)==null?void 0:nt.sumDgoCons),1),((rt=(dt=l==null?void 0:l.goodWx)==null?void 0:dt.inEca)==null?void 0:rt.distance)>0?(t.openBlock(),t.createElementBlock("span",LD,[e[210]||(e[210]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((_l=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.fo)==null?void 0:_l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=l==null?void 0:l.goodWx)==null?void 0:Jl.time),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=(Xl=l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:Ve.entireCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",ZD,[e[222]||(e[222]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((vi=($i=a.report)==null?void 0:$i.weather)!=null&&vi.noExtrapolation?(tn=l==null?void 0:l.goodWx)==null?void 0:tn.distance:(en=l==null?void 0:l.allWx)==null?void 0:en.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((an=l==null?void 0:l.timeConclusion)==null?void 0:an.minusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((on=(ln=l==null?void 0:l.fuelConclusion)==null?void 0:ln.dgo)==null?void 0:on.overTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((dn=(nn=l.fuelConclusion)==null?void 0:nn.dgo)==null?void 0:dn.maxCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",XD,[e[229]||(e[229]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((sn=(rn=a.report)==null?void 0:rn.weather)!=null&&sn.noExtrapolation?(Nn=l==null?void 0:l.goodWx)==null?void 0:Nn.distance:(cn=l==null?void 0:l.allWx)==null?void 0:cn.distance),1),e[223]||(e[223]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Mn=l==null?void 0:l.timeConclusion)==null?void 0:Mn.plusAbtSpd),1)]),e[226]||(e[226]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.underTolerance),1),e[224]||(e[224]=t.createElementVNode("div",{class:"line"},null,-1)),e[225]||(e[225]=t.createElementVNode("div",null,"24",-1))]),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=l.fuelConclusion)==null?void 0:gn.dgo)==null?void 0:In.minCons)+" (mt)",1),e[228]||(e[228]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",$D,[((yn=(En=l==null?void 0:l.fuelConclusion)==null?void 0:En.dgo)==null?void 0:yn.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",vD,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Tn=(An=l==null?void 0:l.fuelConclusion)==null?void 0:An.dgo)==null?void 0:Tn.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xn=(Vn=l==null?void 0:l.fuelConclusion)==null?void 0:Vn.dgo)==null?void 0:xn.maxCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((zn=(pn=l==null?void 0:l.fuelConclusion)==null?void 0:pn.dgo)==null?void 0:zn.overCons),1)])):((Sn=(jn=l==null?void 0:l.fuelConclusion)==null?void 0:jn.dgo)==null?void 0:Sn.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",t1,[e[236]||(e[236]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),e[238]||(e[238]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[239]||(e[239]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fn=(Un=l==null?void 0:l.fuelConclusion)==null?void 0:Un.dgo)==null?void 0:fn.minCons),1),e[240]||(e[240]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(kn=l==null?void 0:l.fuelConclusion)==null?void 0:kn.dgo)==null?void 0:On.entireCons),1),e[241]||(e[241]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bn=(Cn=l==null?void 0:l.fuelConclusion)==null?void 0:Cn.dgo)==null?void 0:bn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Yn=(hn=l==null?void 0:l.fuelConclusion)==null?void 0:hn.dgo)==null?void 0:Yn.conclusionStatus)==="Over"?"flex-center lost":((wn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.dgo)==null?void 0:wn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[242]||(e[242]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Fn=(Rn=l==null?void 0:l.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Fn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",e1,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const l1=el(FN,[["render",a1],["__scopeId","data-v-e5141617"]]),c4="",o1={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`${mt(o).utc().format(e)}`}},computeLng(){return function(o){return F.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return F.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?F.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,V,A,T;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=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((T=(A=this.report)==null?void 0:A.weather)==null?void 0:T.waterTempSwitch)||!1}}},i1={class:"report-inventory"},n1={class:"section summary-section"},d1={class:"summary-block"},r1={class:"orm-report-table inventory-table"},s1={class:"label",rowspan:"4"},N1={class:"section inventory-section"},c1={class:"orm-report-table inventory-table detail"},M1=["colspan"],m1={key:0,class:"label",colspan:"2"},D1={key:0,class:"label",rowspan:"2"},g1={key:1,class:"label",rowspan:"2"},I1={key:2,class:"label",rowspan:"2"},E1={key:3,class:"label",colspan:"2"},y1={key:4,class:"label",rowspan:"2"},A1={key:5,class:"label",colspan:"2"},T1={key:6,class:"label",rowspan:"2"},V1={key:7,class:"label",rowspan:"2"},x1={key:8,class:"label",rowspan:"2"},p1={key:0,class:"label"},z1={key:1,class:"label"},j1={key:2,class:"label"},S1={key:3,class:"label"},U1={class:"summary-tbody"};function f1(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",i1,[t.createElementVNode("div",n1,[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",d1,[t.createElementVNode("table",r1,[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 V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",s1,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((V=r==null?void 0:r.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.allWx)==null?void 0:A.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.allWx)==null?void 0:S.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.allWx)==null?void 0:C.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.goodWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.goodWx)==null?void 0:j.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((I=r==null?void 0:r.badWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.badWx)==null?void 0:h.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.badWx)==null?void 0:Y.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((k=r==null?void 0:r.excluded)==null?void 0:k.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.excluded)==null?void 0:b.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.excluded)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((G=r==null?void 0:r.excluded)==null?void 0:G.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",N1,[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",c1,[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,M1),a.showFactor?(t.openBlock(),t.createElementBlock("th",m1,"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",D1,[...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",g1,[...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",I1,[...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",E1,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",y1,[...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",A1,"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",T1,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",V1,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",x1,[...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",p1,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",z1,[...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",j1,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",S1,[...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",U1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((V=r.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((A=r.noon)==null?void 0:A.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(T=r.meteo)==null?void 0:T.wind)==null?void 0:S.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((y=(C=r.meteo)==null?void 0:C.wind)==null?void 0:y.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(j=(x=r.meteo)==null?void 0:x.wave)==null?void 0:j.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"?"-":((f=(z=(p=r.meteo)==null?void 0:p.wave)==null?void 0:z.swell)==null?void 0:f.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"?"-":((Y=(h=(I=r.meteo)==null?void 0:I.wave)==null?void 0:h.swell)==null?void 0:Y.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"?"-":((Q=(b=(k=r.meteo)==null?void 0:k.wave)==null?void 0:b.sig)==null?void 0:Q.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"?"-":((G=(w=r.meteo)==null?void 0:w.current)==null?void 0:G.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"?"-":((W=r.meteo)==null?void 0:W.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(((L=r.meteo)==null?void 0:L.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(((Z=r.meteo)==null?void 0:Z.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((H=r.meteo)==null?void 0:H.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const k1=el(o1,[["render",f1],["__scopeId","data-v-9c4b43ab"]]),M4="",O1={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`${mt(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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.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(un.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(un.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(un.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var T,S,C,y,x,j;let o=[];const e=[],a=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var z,f;p===0&&r.push(E.utc),E.type==="EOSP"&&((z=this.inventory[p+1])==null?void 0:z.type)==="BOSP"&&(r.push(E.utc),r.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const z=mt(r[p+1]).diff(mt(r[p]),"minute",!0);for(let f=0;f<=z+1;f++)e.push(this.computeUTCTime(mt(r[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,p)=>{var f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_;const z=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(l=>l.slice(0,5)===E.utc.slice(5,10))&&o.push(z),p===g.length-1&&(o=o.filter(l=>l.slice(0,5)!==E.utc.slice(5,10)),o.push(z)),d=Math.ceil(((f=E.noon)==null?void 0:f.foCons)>d?(I=E.noon)==null?void 0:I.foCons:d),d=Math.ceil(((h=E.cp)==null?void 0:h.fo)>d?(Y=E.cp)==null?void 0:Y.fo:d),i=Math.ceil(((k=E.noon)==null?void 0:k.dgoCons)>i?(b=E.noon)==null?void 0:b.dgoCons:i),i=Math.ceil(((Q=E.cp)==null?void 0:Q.dgo)>i?(w=E.cp)==null?void 0:w.dgo:i),a.push([z,(G=E.noon)==null?void 0:G.avgSpd,(W=E.noon)==null?void 0:W.foCons,(L=E.noon)==null?void 0:L.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<g.length-1){const l=g[p+1];a.push([z,(Z=l.noon)==null?void 0:Z.avgSpd,(H=l.noon)==null?void 0:H.foCons,(_=l.noon)==null?void 0:_.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data: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:(S=(T=this.report)==null?void 0:T.weather)!=null&&S.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}]};(C=this.spdFoConsChart)==null||C.setOption(V);const A={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(y=this.report)==null?void 0:y.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(j=this.spdDgoConsChart)==null||j.setOption(A)},renderWxCurrChart(){var C;let o=[];const e=[],a=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((y,x)=>{var j,E;x===0&&g.push(y.utc),y.type==="EOSP"&&((j=i[x+1])==null?void 0:j.type)==="BOSP"&&(g.push(y.utc),g.push((E=i[x+1])==null?void 0:E.utc)),x===i.length-1&&g.push(y.utc)}),g.forEach((y,x)=>{if(x%2===0){const j=mt(g[x+1]).diff(mt(g[x]),"minute",!0);for(let E=0;E<=j+1;E++)e.push(this.computeUTCTime(mt(g[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,x)=>{var E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_,l,R,J,K,u,q,$,v,tt,et,at,lt,ot;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(P=>P.slice(0,5)===y.utc.slice(5,10))&&o.push(j),x===i.length-1&&(o=o.filter(P=>P.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),d=Math.ceil(((z=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:z.height)>d?(h=(I=(f=y.meteo)==null?void 0:f.wave)==null?void 0:I.sig)==null?void 0:h.height:d),a.push([j,((Y=y.noon)==null?void 0:Y.windBF)||((b=(k=y.meteo)==null?void 0:k.wind)==null?void 0:b.scale),(w=(Q=y.meteo)==null?void 0:Q.wind)==null?void 0:w.scale,(W=(G=y.meteo)==null?void 0:G.wind)==null?void 0:W.direction,(L=y.noon)==null?void 0:L.seasHt,(_=(H=(Z=y.meteo)==null?void 0:Z.wave)==null?void 0:H.sig)==null?void 0:_.height,y.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[c.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),x<i.length-1){const P=i[x+1];a.push([j,((R=y.noon)==null?void 0:R.windBF)||((K=(J=y.meteo)==null?void 0:J.wind)==null?void 0:K.scale),(q=(u=P.meteo)==null?void 0:u.wind)==null?void 0:q.scale,(v=($=P.meteo)==null?void 0:$.wind)==null?void 0:v.direction,(tt=P.noon)==null?void 0:tt.seasHt,(lt=(at=(et=y.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:lt.height,P.dailyAvgCf??((ot=a[a.length-1])==null?void 0:ot[c.anlyCurFct]),P.goodWx&&!P.excluded?20:0,P.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,V=2.5,A=1,T=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,V=Math.ceil(this.findMaxValue(a,6)/5)*5,A=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),T=Math.ceil(Math.abs(N)/A)+Math.ceil(Math.abs(V)/A)):(A=.5,N=Math.floor(this.findMinValue(a,6)/.5)*A,V=2.5,T=Math.abs(N)/A+5);const S={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:V,interval:A,splitNumber:T,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(T-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:T,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(T-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:T,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(C=this.currChart)==null||C.setOption(S)},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}}},C1={class:"report-summary"},b1={class:"section chart-section"},h1={class:"chart-block"},Y1={ref:"spdFoConsChart",class:"chart"},Q1={ref:"spdDgoConsChart",class:"chart"},w1={ref:"currChart",class:"chart"},R1={class:"section map-section"},F1={class:"map-block"},B1={class:"flex-space"},G1={class:"voyage-block bg-blue-light"},P1={class:"flex-space label-block",style:{width:"100%"}},W1={style:{"text-transform":"uppercase"}},L1={class:"flex-space label-block",style:{width:"100%"}},Z1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},H1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},_1={class:"flex-space label-block",style:{width:"100%"}},J1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},X1={class:"flex-space label-block",style:{width:"100%"}},K1={key:0,class:"flex-end",style:{flex:"1"}},u1={key:1,class:"flex-end",style:{flex:"1"}},q1={class:"flex-end",style:{width:"160px"}},$1={class:"flex-space label-block",style:{width:"100%"}},v1={key:0,class:"flex-end",style:{flex:"1"}},tg={key:1,class:"flex-end",style:{flex:"1"}},eg={class:"flex-end",style:{width:"160px"}},ag={class:"flex-space label-block",style:{width:"100%"}},lg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},og=["src"];function ig(o,e,a,c,d,i){var g,r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w;return t.openBlock(),t.createElementBlock("div",C1,[t.createElementVNode("div",b1,[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",h1,[t.createElementVNode("div",Y1,null,512),t.createElementVNode("div",Q1,null,512),t.createElementVNode("div",w1,null,512)])]),t.createElementVNode("div",R1,[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",F1,[t.createElementVNode("div",B1,[t.createElementVNode("div",G1,[t.createElementVNode("div",P1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",W1,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",L1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Z1,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",H1,"("+t.toDisplayString((V=(N=a.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",_1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",J1,t.toDisplayString((T=(A=a.report)==null?void 0:A.voyage)==null?void 0:T.number),1)]),t.createElementVNode("div",X1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(C=(S=a.report)==null?void 0:S.departure)!=null&&C.portName?(t.openBlock(),t.createElementBlock("span",K1,t.toDisplayString((x=(y=a.report)==null?void 0:y.departure)==null?void 0:x.portName),1)):(t.openBlock(),t.createElementBlock("div",u1,t.toDisplayString(i.computePosition((j=a.report)==null?void 0:j.departure)),1)),t.createElementVNode("span",q1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$1,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(p=a.report)==null?void 0:p.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",v1,t.toDisplayString((I=(f=a.report)==null?void 0:f.arrival)==null?void 0:I.portName),1)):(t.openBlock(),t.createElementBlock("div",tg,t.toDisplayString(i.computePosition((h=a.report)==null?void 0:h.arrival)),1)),t.createElementVNode("span",eg,t.toDisplayString(i.computeUTCTime((k=(Y=a.report)==null?void 0:Y.arrival)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ag,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",lg,t.toDisplayString((Q=(b=a.report)==null?void 0:b.voyage)==null?void 0:Q.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-d28981e9><div data-v-d28981e9>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>0812</div><div data-v-d28981e9><div data-v-d28981e9>08 - Day of the month</div><div data-v-d28981e9>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-d28981e9></i></div><div data-v-d28981e9><div data-v-d28981e9>Wind from N (000)</div><div data-v-d28981e9>Each bard = 10 kts</div><div data-v-d28981e9>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>W 4</div><div data-v-d28981e9>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div class="good-wx" data-v-d28981e9>Date</div><div data-v-d28981e9>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(w=a.report)==null?void 0:w.chartUrl,alt:""},null,8,og)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-d28981e9><div class="header-block" data-v-d28981e9><div class="bg-block" data-v-d28981e9><i class="iconfont icon-baobiao" data-v-d28981e9></i><div class="block-title" data-v-d28981e9>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>1. Good Weather Method</div><div class="method-body" data-v-d28981e9> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-d28981e9> 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-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-d28981e9> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-d28981e9> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>4. “About”</div><div class="method-body" data-v-d28981e9> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-d28981e9> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-d28981e9> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-d28981e9> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-d28981e9> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>6. Further reference materials</div><div class="method-body" data-v-d28981e9>Please send mail to <a href="mailto:op@ormwx.com" data-v-d28981e9>op@ormwx.com</a>.</div></div></div></div>',1))])}const ng=el(O1,[["render",ig],["__scopeId","data-v-d28981e9"]]),m4="",D4="",dg={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`${mt(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,V;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(T=>{const S=`<p>${T}</p>`;c=c+S}),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 T=`<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,$n,rl,mt,zr,F,qn){"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 un=jr(zr),r4="",el=(o,e)=>{const a=o.__vccOpts||o;for(const[c,d]of e)a[c]=d;return a},Sr={name:"IdmEditor",components:{Editor:$n.Editor,Toolbar:$n.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,a;o?(e=this.editor)==null||e.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Ur={class:"editor-box"};function 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 sl=el(Sr,[["render",fr],["__scopeId","data-v-9854b172"]]),kr={install(o){o.component("IdmEditor",sl)}};/*! 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 s4="",Yr={name:"PlanReport",components:{Editor:sl,IdmBrand:rl.IdmBrand,IdmLoading:rl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${mt(o).utc().format(e)}`}},computeLTime(){return function(o,e,a,c){let d=0;return a&&e&&(d=F.LngLatHelper.guessTimeZoneOffset(e,a)),`${mt(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=mt((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(mt((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 V=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(V/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(mt(d==null?void 0:d.eta).diff(mt(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)?"-":F.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>F.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>F.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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var a,c,d,i,g,r,N,V,A,T,S,C,y,x,j,E,p,z;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":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((T=(A=o.meteo)==null?void 0:A.wind)==null?void 0:T.scale)>((C=(S=this.weatherPrinciple)==null?void 0:S.severe)==null?void 0:C.wind)?e="bg-severe":(x=(y=this.weatherPrinciple)==null?void 0:y.heavy)!=null&&x.wind&&((E=(j=o.meteo)==null?void 0:j.wind)==null?void 0:E.scale)===((z=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var a,c,d,i,g,r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h;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":(A=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&A.sigWv&&((C=(S=(T=o.meteo)==null?void 0:T.wave)==null?void 0:S.sig)==null?void 0:C.height)>=((x=(y=this.weatherPrinciple)==null?void 0:y.severe)==null?void 0:x.sigWv)?e="bg-severe":(E=(j=this.weatherPrinciple)==null?void 0:j.heavy)!=null&&E.sigWv&&((f=(z=(p=o.meteo)==null?void 0:p.wave)==null?void 0:z.sig)==null?void 0:f.height)>=((h=(I=this.weatherPrinciple)==null?void 0:I.heavy)==null?void 0:h.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=un.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,z,f,I,h,Y;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;(h=(I=(f=(z=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:z.speed)==null?void 0:f.sample)==null?void 0:I.hours)==null||h.forEach(k=>{var Q,w,G,W,L,Z,H,_,l,R;const b=k.meteo;if(b){const J=mt(b.utc).utc().format("MMM-DD/HHmm[Z]");o.push(J),c=Math.ceil(((w=(Q=b.wave)==null?void 0:Q.sig)==null?void 0:w.height)>c?(W=(G=b.wave)==null?void 0:G.sig)==null?void 0:W.height:c),e.push([J,(L=b.wind)==null?void 0:L.kts,(H=(Z=b.wave)==null?void 0:Z.sig)==null?void 0:H.height,(_=b.wind)==null?void 0:_.direction,(l=b.wind)==null?void 0:l.degree,(R=b.wind)==null?void 0:R.scale,k.cFactor,k.wFactor,k.speed])}});const d=Math.max(...e.map(k=>k[a.speed])),i=Math.max(...e.map(k=>k[a.windSpeed])),g=Math.min(...e.map(k=>k[a.currentFactor]))>0?0:Math.floor(Math.min(...e.map(k=>k[a.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(k=>k[a.currentFactor]))/.5)*.5,N=Math.ceil(d/5/5)*5,V=Math.ceil(i/5/5)*5,A=Math.ceil(c/5/.5)*.5,T=Math.ceil((r-g)/5/.5)*.5,S=5*N,C=5*V,y=5*A,x=g+5*T,j={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:S,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:C,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:y,splitNumber:5,interval:A,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:g,max:x,splitNumber:5,interval:T,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}]};(Y=this.echart)==null||Y.setOption(j)}}},Qr={class:"orm-plan-report"},wr={key:0,class:"loading-block"},Rr={class:"info-block"},Fr={class:"col"},Br={class:"label-block"},Gr={class:"text"},Pr={class:"label-block"},Wr={class:"text"},Lr={class:"label-block"},Zr={class:"text"},Hr={class:"col"},_r={class:"label-block"},Jr={key:0},Xr={key:1},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=["src"],os={class:"legends text-tips"},is={class:"legend"},ns={key:0,class:"legend"},ds={key:1,class:"legend"},rs={key:1,class:"empty"},ss={class:"section comparison-section"},Ns={key:0,class:"orm-report-table",style:{"font-size":"12px"}},cs={key:0},Ms=["rowspan"],ms={key:0},Ds={key:1},gs={rowspan:"2"},Is={rowspan:"2"},Es={key:0},ys={key:1},As={rowspan:"1"},Ts={key:0},Vs={rowspan:"2"},xs={rowspan:"2"},ps={rowspan:"2"},zs={key:0},js={key:0},Ss=["rowspan"],Us={key:0},fs={rowspan:"1"},ks={key:0},Os={key:0},Cs={key:1},bs={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},hs={key:0},Ys={class:"section waypoint-section"},Qs={class:"header-block"},ws={class:"bg-block"},Rs={class:"block-title"},Fs={key:0,class:"flex-end",style:{flex:"1"}},Bs=["onClick"],Gs={class:"advisory bg-blue-light-2"},Ps=["innerHTML"],Ws={class:"major-waypoint"},Ls={class:"major-header bg-blue-light-2"},Zs={key:0,class:"cell-item flex"},Hs={key:1,class:"cell-item flex"},_s={class:"major-body"},Js={class:"cell-item flex",style:{flex:"2.5"}},Xs={key:0,class:"flex-center"},Ks={key:1,class:"flex-center"},us={key:0,style:{"margin-left":"3px"}},qs={class:"cell-item flex",style:{flex:"1.5"}},$s={key:0,style:{"margin-left":"4px","font-weight":"600"}},vs={key:0,class:"cell-item flex offset"},tN={key:1,class:"cell-item flex nbsp"},eN={key:2,class:"cell-item flex offset"},aN={key:3,class:"cell-item flex nbsp"},lN={key:0,class:"cell-item flex offset"},oN={key:1,class:"cell-item flex nbsp"},iN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},dN={key:6,class:"cell-item flex offset"},rN={key:7,class:"cell-item flex nbsp"},sN={class:"section forecast-section"},NN={style:{"page-break-inside":"avoid"}},cN={class:"header-block"},MN={class:"bg-block"},mN={class:"block-title"},DN={key:0,class:"flex-end",style:{flex:"1"}},gN=["onClick"],IN={class:"echart-block"},EN={ref:"echart",class:"echart"},yN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},AN={class:"orm-report-table",style:{"font-size":"12px"}},TN=["colspan"],VN={key:0},xN={class:"flex-center"},pN={class:"degree-box"},zN={key:0},jN={key:2},SN={key:0},UN={class:"degree-box"},fN={key:0},kN={key:2},ON={class:"degree-box"},CN={key:0},bN={key:2},hN={class:"degree-box"},YN={key:0},QN={key:2};function wN(o,e,a,c,d,i){var A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_,l,R,J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,U,qt,Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,pe,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,D,Pe,We,Le,Ze,He,_e,Je,Xe,ae,$a;const g=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Qr,[t.createVNode(g,{name:"Voyage Planning",issued:(A=a.plan)==null?void 0:A.updatedAt},null,8,["issued"]),d.loading?(t.openBlock(),t.createElementBlock("div",wr,[t.createVNode(r,{loading:d.loading,onTimeout:e[0]||(e[0]=m=>d.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Rr,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Br,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Gr,t.toDisplayString((C=(S=(T=a.plan)==null?void 0:T.voyage)==null?void 0:S.company)==null?void 0:C.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((j=(x=(y=a.plan)==null?void 0:y.voyage)==null?void 0:x.vessel)==null?void 0:j.name)+" ("+t.toDisplayString((f=(z=(p=(E=a.plan)==null?void 0:E.voyage)==null?void 0:p.vessel)==null?void 0:z.vesselType)==null?void 0:f.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(((h=(I=a.plan)==null?void 0:I.voyage)==null?void 0:h.voyNum)||((k=(Y=a.plan)==null?void 0:Y.voyage)==null?void 0:k.number)),1)])]),t.createElementVNode("div",Hr,[t.createElementVNode("div",_r,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(w=(Q=(b=a.plan)==null?void 0:b.leg)==null?void 0:Q.departure)!=null&&w.name?(t.openBlock(),t.createElementBlock("span",Jr,t.toDisplayString((L=(W=(G=a.plan)==null?void 0:G.leg)==null?void 0:W.departure)==null?void 0:L.name),1)):(t.openBlock(),t.createElementBlock("span",Xr,t.toDisplayString(i.computePosition((H=(Z=a.plan)==null?void 0:Z.leg)==null?void 0:H.departure)),1)),t.createElementVNode("span",Kr,t.toDisplayString(i.computeUTCTime(((R=(l=(_=a.plan)==null?void 0:_.leg)==null?void 0:l.departure)==null?void 0:R.atd)||((u=(K=(J=a.plan)==null?void 0:J.leg)==null?void 0:K.departure)==null?void 0:u.etd)||((tt=(v=($=(q=a.plan)==null?void 0:q.speeds)==null?void 0:$[d.speedIndex])==null?void 0:v.speed)==null?void 0:tt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",ur,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(lt=(at=(et=a.plan)==null?void 0:et.leg)==null?void 0:at.destination)!=null&<.name?(t.openBlock(),t.createElementBlock("span",qr,t.toDisplayString((gt=(P=(ot=a.plan)==null?void 0:ot.leg)==null?void 0:P.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(((Vt=(Tt=(At=(yt=a.plan)==null?void 0:yt.speeds)==null?void 0:At[d.speedIndex])==null?void 0:Tt.speed)==null?void 0:Vt.ata)||((jt=(zt=(pt=(xt=a.plan)==null?void 0:xt.speeds)==null?void 0:pt[d.speedIndex])==null?void 0:zt.speed)==null?void 0:jt.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((Ut=(St=a.plan)==null?void 0:St.voyage)==null?void 0:Ut.loadCondition),1)])])]),t.createElementVNode("div",as,[e[20]||(e[20]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")])],-1)),(ft=a.plan)!=null&&ft.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:a.plan.chartUrl},null,8,ls)]),t.createElementVNode("div",os,[e[17]||(e[17]=t.createStaticVNode('<div class="legend" data-v-0bc1ac2b><span class="dangerous" data-v-0bc1ac2b></span><span data-v-0bc1ac2b>Danger</span></div><div class="legend" data-v-0bc1ac2b><span class="severe" data-v-0bc1ac2b></span><span data-v-0bc1ac2b>Severe</span></div><div class="legend" data-v-0bc1ac2b><span class="heavy" data-v-0bc1ac2b></span><span data-v-0bc1ac2b>Heavy</span></div>',3)),t.createElementVNode("div",is,[e[14]||(e[14]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{d.speedIndex=0,i.renderEchart()})},t.toDisplayString((ht=(bt=(Ct=(Ot=(kt=a.plan)==null?void 0:kt.speeds)==null?void 0:Ot[0])==null?void 0:Ct.speed)==null?void 0:bt.lane)==null?void 0:ht.name),1)]),((Qt=(Yt=a.plan)==null?void 0:Yt.speeds)==null?void 0:Qt.length)>1?(t.openBlock(),t.createElementBlock("div",ns,[e[15]||(e[15]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{d.speedIndex=1,i.renderEchart()})},t.toDisplayString((Gt=(Bt=(Ft=(Rt=(wt=a.plan)==null?void 0:wt.speeds)==null?void 0:Rt[1])==null?void 0:Ft.speed)==null?void 0:Bt.lane)==null?void 0:Gt.name),1)])):t.createCommentVNode("",!0),((Wt=(Pt=a.plan)==null?void 0:Pt.speeds)==null?void 0:Wt.length)>2?(t.openBlock(),t.createElementBlock("div",ds,[e[16]||(e[16]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{d.speedIndex=2,i.renderEchart()})},t.toDisplayString((n=(Zt=(qt=(U=(Lt=a.plan)==null?void 0:Lt.speeds)==null?void 0:U[2])==null?void 0:qt.speed)==null?void 0:Zt.lane)==null?void 0:n.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",rs,[t.createElementVNode("span",null,[e[18]||(e[18]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>i.handleRefresh&&i.handleRefresh(...m))},"Refresh"),e[19]||(e[19]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",ss,[(Dt=(O=a.plan)==null?void 0:O.speeds)!=null&&Dt.length?(t.openBlock(),t.createElementBlock("table",Ns,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",cs,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:i.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ms),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),i.showCost?(t.openBlock(),t.createElementBlock("th",ms,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("th",Ds,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(i.computeDay(a.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ht=a.plan)==null?void 0:Ht.speeds,(m,X)=>{var vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl,ll,ol,il,nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:X},[t.createElementVNode("tr",null,[t.createElementVNode("td",gs,t.toDisplayString(X+1),1),t.createElementVNode("td",Is,t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Es,t.toDisplayString(`CP ${((Te=(le=m.speed)==null?void 0:le.cpCopy)==null?void 0:Te.speed)??((Ke=m.speed)==null?void 0:Ke.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",ys,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString(($e=(qe=(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",As,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((aa=m.speed)==null?void 0:aa.distance,0)),1),(oa=(la=m.speed)==null?void 0:la.extend)!=null&&oa.distanceInECA?(t.openBlock(),t.createElementBlock("span",Ts," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(i.computeLTime((ia=m.speed)==null?void 0:ia.eta,(ra=(da=(na=a.plan)==null?void 0:na.leg)==null?void 0:da.destination)==null?void 0:ra.lng,(ca=(Na=(sa=a.plan)==null?void 0:sa.leg)==null?void 0:Na.destination)==null?void 0:ca.lat,(Ia=(ga=(Da=(ma=(Ma=a.plan)==null?void 0:Ma.leg)==null?void 0:ma.destination)==null?void 0:Da.port)==null?void 0:ga.timezone)==null?void 0:Ia.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(i.computeUTCTime((Ea=m.speed)==null?void 0:Ea.eta)),1)]),t.createElementVNode("td",Vs,t.toDisplayString(i.computeSuspend(m.speed)),1),t.createElementVNode("td",xs,t.toDisplayString(i.roundPrecision((ya=m.speed)==null?void 0:ya.totalFoCons,3)),1),t.createElementVNode("td",ps,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Aa=m.speed)==null?void 0:Aa.totalDgoCons,3)),1),(Va=(Ta=m.speed)==null?void 0:Ta.extend)!=null&&Va.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",zs," + "+t.toDisplayString(i.roundPrecision((xa=m.speed.extend)==null?void 0:xa.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),i.showCost?(t.openBlock(),t.createElementBlock("td",js,t.toDisplayString((ja=i.roundPrecision(((za=(pa=m==null?void 0:m.speed)==null?void 0:pa.cost)==null?void 0:za.total)/1e3,2))==null?void 0:ja.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:i.showCost?1:2},t.toDisplayString(i.computeTimeDiff(a.plan,X)),9,Ss),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ua=(Sa=a.weatherPrinciple)==null?void 0:Sa.dangerous)==null?void 0:Ua.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(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",Us,"FO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.cpCopy)==null?void 0:Ya.fo)+" / DO: "+t.toDisplayString((wa=(Qa=m.speed)==null?void 0:Qa.cpCopy)==null?void 0:wa.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Fa=(Ra=m.speed)==null?void 0:Ra.extend)==null?void 0:Fa.cps[0].fo)+" / "+t.toDisplayString((Ga=(Ba=m.speed)==null?void 0:Ba.extend)==null?void 0:Ga.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Wa=(Pa=m.speed)==null?void 0:Pa.extend)==null?void 0:Wa.cps[0].dgo)+" / "+t.toDisplayString((Za=(La=m.speed)==null?void 0:La.extend)==null?void 0:Za.cps[1].dgo),1)],64))]),t.createElementVNode("td",fs,[t.createElementVNode("span",null,t.toDisplayString(i.roundPrecision((Ha=m.speed)==null?void 0:Ha.totalHrs,1)),1),(Ja=(_a=m.speed)==null?void 0:_a.extend)!=null&&Ja.hoursInECA?(t.openBlock(),t.createElementBlock("span",ks," ("+t.toDisplayString(i.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((Xa=m.speed)==null?void 0:Xa.avgSpeed,2))+" / "+t.toDisplayString(i.roundPrecision((Ka=m.speed)==null?void 0:Ka.wxFactor,2))+" / "+t.toDisplayString(i.roundPrecision((ua=m.speed)==null?void 0:ua.cFactor,2)),1),i.showCost?(t.openBlock(),t.createElementBlock("td",Os,t.toDisplayString(i.roundPrecision(((va=(qa=m==null?void 0:m.speed)==null?void 0:qa.cost)==null?void 0:va.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(i.roundPrecision(((ll=(tl=m==null?void 0:m.speed)==null?void 0:tl.cost)==null?void 0:ll.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),i.showCost?(t.openBlock(),t.createElementBlock("td",Cs,t.toDisplayString(i.computeCostDiff(a.plan,X)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(((ol=m.speed)==null?void 0:ol.dangerous)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((il=m.speed)==null?void 0:il.severe)/24,2))+" / "+t.toDisplayString(i.roundPrecision(((nl=m.speed)==null?void 0:nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",bs,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),i.showCost?(t.openBlock(),t.createElementBlock("span",hs,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((Xt=i.roundPrecision((Jt=(_t=a.plan)==null?void 0:_t.voyage)==null?void 0:Jt.dailyHire,0))==null?void 0:Xt.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString(($t=i.roundPrecision((ut=(Kt=a.plan)==null?void 0:Kt.voyage)==null?void 0:ut.priceFO,0))==null?void 0:$t.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((oe=i.roundPrecision((ee=(B=a.plan)==null?void 0:B.voyage)==null?void 0:ee.priceDGO,0))==null?void 0:oe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Ys,[t.createElementVNode("div",Qs,[t.createElementVNode("div",ws,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Rs,"Advisory & Major Waypoint of Route "+t.toDisplayString((re=(de=(ne=(ie=a.plan.speeds)==null?void 0:ie[d.speedIndex])==null?void 0:ne.speed)==null?void 0:de.lane)==null?void 0:re.name),1),((Ne=(se=a.plan)==null?void 0:se.speeds)==null?void 0:Ne.length)>1?(t.openBlock(),t.createElementBlock("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ce=a.plan)==null?void 0:ce.speeds,(m,X)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:X,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===X?"active":""]),onClick:le=>{d.speedIndex=X,i.renderEchart()}},t.toDisplayString((te=(vt=m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,Bs)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Gs,[d.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:d.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>d.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>i.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>i.handleEdit&&i.handleEdit(...m)),innerHTML:d.advisory},null,40,Ps))]),t.createElementVNode("div",Ws,[t.createElementVNode("div",Ls,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-0bc1ac2b>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-0bc1ac2b>Time</div><div class="cell-item flex" data-v-0bc1ac2b>Nav</div><div class="cell-item flex" data-v-0bc1ac2b>Dist <span class="text-units" data-v-0bc1ac2b>(nm)</span></div>',4)),(me=(Me=a.plan)==null?void 0:Me.voyage)!=null&&me.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Zs,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ge=(De=a.plan)==null?void 0:De.voyage)!=null&&ge.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hs,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",_s,[(Ee=(Ie=a.plan)==null?void 0:Ie.speeds)!=null&&Ee.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.computeMajorPoints((ze=(pe=(Ae=(ye=a.plan)==null?void 0:ye.speeds)==null?void 0:Ae[d.speedIndex])==null?void 0:pe.speed)==null?void 0:ze.argv,(ke=(fe=(Ue=(Se=(je=a.plan)==null?void 0:je.speeds)==null?void 0:Se[d.speedIndex])==null?void 0:Ue.speed)==null?void 0:fe.sample)==null?void 0:ke.wps),(m,X)=>{var vt,te,le,Te;return t.openBlock(),t.createElementBlock("div",{key:X,class:"cell-row"},[t.createElementVNode("div",Js,[m.isResume?(t.openBlock(),t.createElementBlock("div",Xs,"Resume")):(t.openBlock(),t.createElementBlock("div",Ks,[t.createElementVNode("span",null,t.toDisplayString(i.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",us,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",qs,[t.createTextVNode(t.toDisplayString(i.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",$s,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),X?(t.openBlock(),t.createElementBlock("div",vs,t.toDisplayString(i.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",tN)),X?(t.openBlock(),t.createElementBlock("div",eN,t.toDisplayString(i.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",aN)),(te=(vt=a.plan)==null?void 0:vt.voyage)!=null&&te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[X?(t.openBlock(),t.createElementBlock("div",lN,t.toDisplayString(i.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",oN))],64)):t.createCommentVNode("",!0),(Te=(le=a.plan)==null?void 0:le.voyage)!=null&&Te.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[X?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(i.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",nN))],64)):t.createCommentVNode("",!0),X?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(i.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",rN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",sN,[(Ce=(Oe=a.plan)==null?void 0:Oe.speeds)!=null&&Ce.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",NN,[t.createElementVNode("div",cN,[t.createElementVNode("div",MN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",mN," Weather Forecast for the Next "+t.toDisplayString(i.computeDay(a.plan,d.speedIndex))+" Days of Route "+t.toDisplayString((we=(Qe=(Ye=(he=(be=a.plan)==null?void 0:be.speeds)==null?void 0:he[d.speedIndex])==null?void 0:Ye.speed)==null?void 0:Qe.lane)==null?void 0:we.name),1),((Fe=(Re=a.plan)==null?void 0:Re.speeds)==null?void 0:Fe.length)>1?(t.openBlock(),t.createElementBlock("div",DN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Be=a.plan)==null?void 0:Be.speeds,(m,X)=>{var vt,te;return t.openBlock(),t.createElementBlock("div",{key:X,class:t.normalizeClass(["route-item print-hidden",d.speedIndex===X?"active":""]),onClick:le=>{d.speedIndex=X,i.renderEchart()}},t.toDisplayString((te=(vt=m==null?void 0:m.speed)==null?void 0:vt.lane)==null?void 0:te.name),11,gN)}),128))])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IN,[t.createElementVNode("div",EN,null,512)]),t.createElementVNode("div",yN,"* "+t.toDisplayString(i.computeModel((Pe=(D=(Ge=a.plan)==null?void 0:Ge.speeds)==null?void 0:D[d.speedIndex])==null?void 0:Pe.speed)),1)]),t.createElementVNode("table",AN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(Le=(We=a.plan)==null?void 0:We.voyage)!=null&&Le.sendRptWithBF?3:2},"Wind",8,TN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(He=(Ze=a.plan)==null?void 0:Ze.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",VN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=(ae=(Xe=(Je=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Je[d.speedIndex])==null?void 0:Xe.speed)==null?void 0:ae.sample)==null?void 0:$a.hours,(m,X)=>{var vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl;return t.openBlock(),t.createElementBlock("tr",{key:X},[t.createElementVNode("td",null,t.toDisplayString(i.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",xN,t.toDisplayString(i.computeLat(m.lat))+", "+t.toDisplayString(i.computeLng(m.lng)),1)]),t.createElementVNode("td",pN,[(te=(vt=m.meteo)==null?void 0:vt.wind)!=null&&te.kts?(t.openBlock(),t.createElementBlock("span",zN,t.toDisplayString((Te=(le=m.meteo)==null?void 0:le.wind)==null?void 0:Te.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",jN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedWindClass(m))},t.toDisplayString(i.roundPrecision((ta=(ve=m.meteo)==null?void 0:ve.wind)==null?void 0:ta.kts,1)),3),(aa=(ea=a.plan)==null?void 0:ea.voyage)!=null&&aa.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",SN,t.toDisplayString((oa=(la=m.meteo)==null?void 0:la.wind)==null?void 0:oa.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((da=(na=(ia=m.meteo)==null?void 0:ia.wave)==null?void 0:na.wd)==null?void 0:da.height,1)),1),t.createElementVNode("td",UN,[(Na=(sa=(ra=m.meteo)==null?void 0:ra.wave)==null?void 0:sa.swell)!=null&&Na.height?(t.openBlock(),t.createElementBlock("span",fN,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",kN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.swell)==null?void 0:xa.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.swell)==null?void 0:ja.period,1)),1),t.createElementVNode("td",ON,[(fa=(Ua=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ua.sig)!=null&&fa.height?(t.openBlock(),t.createElementBlock("span",CN,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",bN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(i.computedSigClass(m))},t.toDisplayString(i.roundPrecision((Ga=(Ba=(Fa=m.meteo)==null?void 0:Fa.wave)==null?void 0:Ba.sig)==null?void 0:Ga.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((La=(Wa=(Pa=m.meteo)==null?void 0:Pa.wave)==null?void 0:Wa.sig)==null?void 0:La.period,1)),1),t.createElementVNode("td",hN,[(Ha=(Za=m.meteo)==null?void 0:Za.current)!=null&&Ha.kts?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((Ja=(_a=m.meteo)==null?void 0:_a.current)==null?void 0:Ja.direction),1)):t.createCommentVNode("",!0),(Ka=(Xa=m.meteo)==null?void 0:Xa.current)!=null&&Ka.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(i.computeDegree("current",(qa=(ua=m.meteo)==null?void 0:ua.current)==null?void 0:qa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",QN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision((tl=(va=m.meteo)==null?void 0:va.current)==null?void 0:tl.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(i.roundPrecision(m.cFactor,1)),1)])}),128))])])],64)):t.createCommentVNode("",!0),e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),t.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const vn=el(Yr,[["render",wN],["__scopeId","data-v-0bc1ac2b"]]),RN={install(o){o.component("PlanReport",vn)}},N4="",FN={name:"OrmVoyageSummary",components:{Editor:sl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return mt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const a=mt(o).diff(mt(e),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${mt(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 F.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return F.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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.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 V={time:mt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+mt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});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}}},BN={class:"report-summary"},GN={class:"info-block"},PN={class:"col"},WN={class:"label-block"},LN={class:"text"},ZN={class:"label-block"},HN={class:"text"},_N={class:"label-block"},JN={class:"text"},XN={class:"col"},KN={class:"label-block"},uN={key:0},qN={key:1},$N={style:{"margin-left":"16px"}},vN={class:"label-block"},tc={key:0},ec={key:1},ac={style:{"margin-left":"16px"}},lc={class:"label-block"},oc={class:"text"},ic={class:"section weather-section"},nc={class:"definition bg-blue-light-2"},dc={style:{"line-height":"1.5"}},rc={class:"section summary-section"},sc={class:"phase-box"},Nc={class:"phase-index"},cc={class:"phase-position"},Mc={key:0},mc={key:1},Dc={class:"phase-position"},gc={key:0},Ic={key:1},Ec={class:"phase-cp"},yc={class:"orm-report-table"},Ac={class:"phase-conclusion"},Tc={class:"item-conclusion bg-blue-light-2"},Vc={class:"value align-left"},xc={key:0,class:"text-secondary align-right"},pc={key:0},zc={key:1},jc={key:2},Sc={key:1,class:"text-secondary"},Uc={key:2,class:"value"},fc={key:0},kc={class:"gain"},Oc={key:1},Cc={class:"lost"},bc={key:2},hc={class:"item-conclusion bg-blue-light-2"},Yc={class:"value align-left"},Qc={key:0,class:"text-secondary"},wc={key:0},Rc={key:1},Fc={key:2},Bc={key:1,class:"text-secondary"},Gc={key:2,class:"value"},Pc={key:0},Wc={class:"gain"},Lc={key:1},Zc={class:"lost"},Hc={key:2},_c={class:"item-conclusion bg-blue-light-2"},Jc={class:"value align-left"},Xc={key:0,class:"text-secondary"},Kc={key:0},uc={key:1},qc={key:2},$c={key:1,class:"text-secondary"},vc={key:2,class:"value"},tM={key:0},eM={class:"gain"},aM={key:1},lM={class:"lost"},oM={key:2},iM={key:0,class:"exclusion-block"},nM={style:{margin:"8px 0"}},dM={class:"orm-report-table"},rM=["innerHTML"],sM={class:"section segment-section"},NM={class:"segment-summary"},cM={class:"segment-index text-left"},MM={class:"segment-position"},mM={key:0},DM={key:1},gM={class:"segment-position"},IM={key:0},EM={key:1},yM={class:"orm-report-table"},AM={class:"good-wx"},TM={class:"good-wx"},VM={class:"good-wx"},xM={class:"good-wx"},pM={class:"good-wx"},zM={class:"good-wx"},jM={class:"good-wx"},SM={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={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},YM={key:0},QM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},wM={key:2,class:"segment-speed"},RM={class:"row"},FM={class:"speed-right row"},BM={class:"speed"},GM={key:1,class:"speed"},PM={key:0,class:"speed"},WM={class:"speed"},LM={class:"speed"},ZM={class:"speed"},HM={key:2,class:"under"},_M={key:3,class:"over"},JM={class:"row"},XM={class:"speed-right formula flex-space"},KM={key:0},uM={key:3,class:"segment-speed"},qM={class:"row"},$M={class:"speed-right row"},vM={class:"speed"},tm={class:"speed"},em={key:2,class:"under"},am={key:3,class:"over"},lm={class:"row"},om={class:"speed-right formula row"},im={class:"segment-formula"},nm={class:"sub-title"},dm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},rm={class:"formula-block"},sm={class:"formula-item flex-evenly bg-blue-light"},Nm={class:"formula-right flex-evenly"},cm={class:"fraction",style:{width:"240px"}},Mm={class:"formula-item flex-center bg-blue-light"},mm={class:"formula-left flex-space"},Dm={class:"formula-right flex-evenly"},gm={class:"fraction",style:{width:"240px"}},Im={class:"formula-item flex-center bg-blue-light"},Em={class:"formula-left flex-space"},ym={class:"formula-right flex-evenly"},Am={class:"fraction",style:{width:"240px"}},Tm={class:"formula-desc"},Vm={class:"flex-end"},xm={class:"flex-end"},pm={class:"flex-end"},zm={key:0,class:"formula-block"},jm={class:"formula-item flex-evenly bg-blue-light"},Sm={class:"formula-right flex-evenly"},Um={class:"fraction",style:{width:"200px"}},fm={class:"formula-item flex-center bg-blue-light"},km={class:"formula-left flex-space"},Om={class:"formula-right flex-evenly"},Cm={class:"fraction",style:{width:"200px"}},bm={class:"formula-item flex-center bg-blue-light"},hm={class:"formula-left flex-space"},Ym={class:"formula-right flex-evenly"},Qm={class:"fraction",style:{width:"200px"}},wm={class:"formula-item formula-conclusion bg-blue-light"},Rm={key:0,class:"flex-evenly",style:{width:"500px"}},Fm={key:1,class:"flex-evenly",style:{width:"500px"}},Bm={class:"flex-center"},Gm={key:1,class:"formula-conclusion bg-blue-light"},Pm={class:"segment-formula"},Wm={class:"sub-title"},Lm={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Zm={class:"formula-block"},Hm={class:"formula-item flex-evenly bg-blue-light"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"240px"}},Xm={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},Km={key:0,class:"flex-end text-tips"},um={class:"formula-item flex-center bg-blue-light"},qm={class:"formula-right flex-evenly"},$m={class:"fraction",style:{width:"200px"}},vm={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"300px"}},iD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},rD={class:"sub-title"},sD={key:0,class:"formula-block"},ND={key:0,class:"formula-item flex-evenly bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"60px"}},mD={class:"fraction",style:{width:"60px"}},DD={class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"150px"}},ED={class:"fraction",style:{width:"150px"}},yD={key:0},AD={class:"formula-item flex-evenly bg-blue-light"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"150px"}},xD={class:"fraction",style:{width:"150px"}},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},fD={class:"flex-evenly",style:{width:"500px"}},kD={key:0,class:"flex-evenly"},OD={class:"fraction"},CD={class:"flex-evenly",style:{width:"700px"}},bD={key:0,class:"flex-evenly",style:{width:"500px"}},hD={class:"fraction",style:{width:"140px"}},YD={key:1,class:"formula-item formula-conclusion bg-blue-light"},QD={class:"header-block"},wD={class:"bg-block"},RD={class:"block-title"},FD={key:0,class:"formula-block"},BD={class:"formula-item flex-evenly bg-blue-light"},GD={class:"formula-right flex-evenly"},PD={class:"fraction",style:{width:"150px"}},WD={class:"fraction",style:{width:"150px"}},LD={key:0},ZD={class:"formula-item flex-evenly bg-blue-light"},HD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"150px"}},JD={class:"fraction",style:{width:"150px"}},XD={class:"formula-item flex-evenly bg-blue-light"},KD={class:"formula-right flex-evenly"},uD={class:"fraction",style:{width:"150px"}},qD={class:"fraction",style:{width:"150px"}},$D={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},vD={key:0,class:"flex-evenly",style:{width:"500px"}},t1={key:1,class:"flex-evenly",style:{width:"700px"}},e1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function a1(o,e,a,c,d,i){var r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_;const g=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",BN,[t.createElementVNode("div",GN,[t.createElementVNode("div",PN,[t.createElementVNode("div",WN,[e[3]||(e[3]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",LN,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",ZN,[e[4]||(e[4]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",HN,t.toDisplayString((N=(r=a.report)==null?void 0:r.vessel)==null?void 0:N.name)+" ("+t.toDisplayString((A=(V=a.report)==null?void 0:V.vessel)==null?void 0:A.type)+")",1)]),t.createElementVNode("div",_N,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",JN,t.toDisplayString(((S=(T=a.report)==null?void 0:T.voyage)==null?void 0:S.voyNum)||((y=(C=a.report)==null?void 0:C.voyage)==null?void 0:y.number)),1)])]),t.createElementVNode("div",XN,[t.createElementVNode("div",KN,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(j=(x=a.report)==null?void 0:x.departure)!=null&&j.name?(t.openBlock(),t.createElementBlock("span",uN,t.toDisplayString((p=(E=a.report)==null?void 0:E.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",qN,t.toDisplayString(i.computePosition((z=a.report)==null?void 0:z.departure)),1)),t.createElementVNode("span",$N,t.toDisplayString(i.computeUTCTime((I=(f=a.report)==null?void 0:f.departure)==null?void 0:I.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",vN,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Y=(h=a.report)==null?void 0:h.arrival)!=null&&Y.portName?(t.openBlock(),t.createElementBlock("span",tc,t.toDisplayString((b=(k=a.report)==null?void 0:k.arrival)==null?void 0:b.portName),1)):(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString(i.computePosition((Q=a.report)==null?void 0:Q.arrival)),1)),t.createElementVNode("span",ac,t.toDisplayString(i.computeUTCTime((G=(w=a.report)==null?void 0:w.arrival)==null?void 0:G.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",lc,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",oc,t.toDisplayString((L=(W=a.report)==null?void 0:W.voyage)==null?void 0:L.loadCondition),1)])])]),t.createElementVNode("div",ic,[e[9]||(e[9]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",nc,[t.createElementVNode("div",dc,t.toDisplayString(i.computeWeatherDef(a.report.weather)),1)])]),t.createElementVNode("div",rc,[e[37]||(e[37]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Z=a.report)==null?void 0:Z.segments,(l,R)=>{var J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+R,class:"segment-box"},[t.createElementVNode("div",sc,[t.createElementVNode("div",Nc,"Seg."+t.toDisplayString(R+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((J=l==null?void 0:l.extend)==null?void 0:J.segTimes,(U,qt)=>{var Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut;return t.openBlock(),t.createElementBlock("div",{key:qt,class:"phase-row text-secondary"},[t.createElementVNode("div",cc,[(Zt=U==null?void 0:U.departure)!=null&&Zt.portName?(t.openBlock(),t.createElementBlock("span",Mc,t.toDisplayString((n=U==null?void 0:U.departure)==null?void 0:n.portName),1)):(t.openBlock(),t.createElementBlock("span",mc,t.toDisplayString(i.computeLat((O=U==null?void 0:U.departure)==null?void 0:O.lat).pretty)+", "+t.toDisplayString(i.computeLng((Dt=U==null?void 0:U.departure)==null?void 0:Dt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Ht=U==null?void 0:U.departure)==null?void 0:Ht.utcTime))+")",1)]),e[10]||(e[10]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Dc,[(_t=U==null?void 0:U.arrival)!=null&&_t.portName?(t.openBlock(),t.createElementBlock("span",gc,t.toDisplayString((Jt=U==null?void 0:U.arrival)==null?void 0:Jt.portName),1)):(t.openBlock(),t.createElementBlock("span",Ic,t.toDisplayString(i.computeLat((Xt=U==null?void 0:U.arrival)==null?void 0:Xt.lat).pretty)+", "+t.toDisplayString(i.computeLng((Kt=U==null?void 0:U.arrival)==null?void 0:Kt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((ut=U==null?void 0:U.arrival)==null?void 0:ut.utcTime))+")",1)])])}),128)),t.createElementVNode("div",Ec,[t.createElementVNode("table",yc,[e[18]||(e[18]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((u=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:u.speed)+" |",1),e[11]||(e[11]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($=(q=l==null?void 0:l.extend)==null?void 0:q.cp)==null?void 0:$.speed,"Over"))+",",1),e[12]||(e[12]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(tt=(v=l==null?void 0:l.extend)==null?void 0:v.cp)==null?void 0:tt.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((at=(et=l==null?void 0:l.extend)==null?void 0:et.cp)==null?void 0:at.fo)+" |",1),e[13]||(e[13]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),e[14]||(e[14]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((ot=(lt=l==null?void 0:l.extend)==null?void 0:lt.cp)==null?void 0:ot.dgo)+" |",1),e[15]||(e[15]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),e[16]||(e[16]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Ac,[t.createElementVNode("div",Tc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Vc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.time),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",xc,[((P=l==null?void 0:l.timeConclusion)==null?void 0:P.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",pc,"Time Gained")):((gt=l==null?void 0:l.timeConclusion)==null?void 0:gt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",zc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",jc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Sc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Uc,[((It=l==null?void 0:l.timeConclusion)==null?void 0:It.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",kc,t.toDisplayString((Et=l==null?void 0:l.timeConclusion)==null?void 0:Et.timeGain),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((yt=l==null?void 0:l.timeConclusion)==null?void 0:yt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Oc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Cc,t.toDisplayString((At=l==null?void 0:l.timeConclusion)==null?void 0:At.timeLost),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",hc,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Yc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumFoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Qc,[((Vt=(Tt=l==null?void 0:l.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",wc,"FO Saving")):((pt=(xt=l==null?void 0:l.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Rc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Fc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Bc,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Gc,[((jt=(zt=l==null?void 0:l.fuelConclusion)==null?void 0:zt.fo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Pc,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Wc,t.toDisplayString((Ut=(St=l==null?void 0:l.fuelConclusion)==null?void 0:St.fo)==null?void 0:Ut.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((kt=(ft=l==null?void 0:l.fuelConclusion)==null?void 0:ft.fo)==null?void 0:kt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Lc,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Zc,t.toDisplayString((Ct=(Ot=l==null?void 0:l.fuelConclusion)==null?void 0:Ot.fo)==null?void 0:Ct.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",Hc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_c,[e[36]||(e[36]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",Jc,[t.createElementVNode("span",null,t.toDisplayString(l.allWx.sumDgoCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Xc,[((ht=(bt=l==null?void 0:l.fuelConclusion)==null?void 0:bt.dgo)==null?void 0:ht.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Kc,"DO/GO Saving")):((Qt=(Yt=l==null?void 0:l.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:Qt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",uc,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",qc,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",$c,t.toDisplayString(d.noGoodWxDay),1)),l.goodWx.distance?(t.openBlock(),t.createElementBlock("div",vc,[((Rt=(wt=l==null?void 0:l.fuelConclusion)==null?void 0:wt.dgo)==null?void 0:Rt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",tM,[e[32]||(e[32]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",eM,t.toDisplayString((Bt=(Ft=l==null?void 0:l.fuelConclusion)==null?void 0:Ft.dgo)==null?void 0:Bt.saving),1),e[33]||(e[33]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Pt=(Gt=l==null?void 0:l.fuelConclusion)==null?void 0:Gt.dgo)==null?void 0:Pt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",aM,[e[34]||(e[34]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",lM,t.toDisplayString((Lt=(Wt=l==null?void 0:l.fuelConclusion)==null?void 0:Wt.dgo)==null?void 0:Lt.overCons),1),e[35]||(e[35]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",oM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[38]||(e[38]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(i.computeBlankHtml((H=a.report)==null?void 0:H.remarks)&&!d.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[42]||(e[42]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),d.exclusion.length?(t.openBlock(),t.createElementBlock("div",iM,[e[40]||(e[40]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[41]||(e[41]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",nM,[t.createElementVNode("table",dM,[e[39]||(e[39]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.exclusion,(l,R)=>(t.openBlock(),t.createElementBlock("tr",{key:R},[t.createElementVNode("td",null,t.toDisplayString(R+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((_=a.report)==null?void 0:_.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,rM))],2)],2),t.createElementVNode("div",sM,[e[244]||(e[244]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.report.segments,(l,R)=>{var J,K,u,q,$,v,tt,et,at,lt,ot,P,gt,It,Et,yt,At,Tt,Vt,xt,pt,zt,jt,St,Ut,ft,kt,Ot,Ct,bt,ht,Yt,Qt,wt,Rt,Ft,Bt,Gt,Pt,Wt,Lt,U,qt,Zt,n,O,Dt,Ht,_t,Jt,Xt,Kt,ut,$t,B,ee,oe,ie,ne,de,re,se,Ne,ce,Me,me,De,ge,Ie,Ee,ye,Ae,pe,ze,je,Se,Ue,fe,ke,Oe,Ce,be,he,Ye,Qe,we,Re,Fe,Be,Ge,D,Pe,We,Le,Ze,He,_e,Je,Xe,ae,$a,m,X,vt,te,le,Te,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,Fa,Ba,Ga,Pa,Wa,La,Za,Ha,_a,Ja,Xa,Ka,ua,qa,va,tl,ll,ol,il,nl,Nl,cl,Ml,ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,Sl,Ul,fl,kl,Ol,Cl,bl,hl,Yl,Ql,wl,Rl,M,Fl,Bl,Gl,Pl,Wl,Ll,Zl,Hl,al,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,Fo,Bo,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,Fi,Bi,Gi,Pi,Wi,Li,Zi,Hi,_i,Ji,Xi,Ki,s,it,nt,dt,rt,st,_l,Jl,Xl,Ve,$i,vi,tn,en,an,ln,on,nn,dn,rn,sn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,Sn,Un,fn,kn,On,Cn,bn,hn,Yn,Qn,wn,Rn,Fn;return t.openBlock(),t.createElementBlock("div",{key:R,class:"segment-block"},[t.createElementVNode("div",NM,[t.createElementVNode("div",cM,"Voyage Analysis Seg. "+t.toDisplayString(R+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((J=l==null?void 0:l.extend)==null?void 0:J.segTimes,(Nt,qi)=>{var dl,ui,Bn,Gn,Pn,Wn,Ln,Zn,Hn,_n;return t.openBlock(),t.createElementBlock("div",{key:qi,class:"segment-row text-secondary"},[t.createElementVNode("div",MM,[(dl=Nt==null?void 0:Nt.departure)!=null&&dl.portName?(t.openBlock(),t.createElementBlock("span",mM,t.toDisplayString((ui=Nt==null?void 0:Nt.departure)==null?void 0:ui.portName),1)):(t.openBlock(),t.createElementBlock("span",DM,t.toDisplayString(i.computeLat((Bn=Nt==null?void 0:Nt.departure)==null?void 0:Bn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Gn=Nt==null?void 0:Nt.departure)==null?void 0:Gn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((Pn=Nt==null?void 0:Nt.departure)==null?void 0:Pn.utcTime))+")",1)]),e[43]||(e[43]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",gM,[(Wn=Nt==null?void 0:Nt.arrival)!=null&&Wn.portName?(t.openBlock(),t.createElementBlock("span",IM,t.toDisplayString((Ln=Nt==null?void 0:Nt.arrival)==null?void 0:Ln.portName),1)):(t.openBlock(),t.createElementBlock("span",EM,t.toDisplayString(i.computeLat((Zn=Nt==null?void 0:Nt.arrival)==null?void 0:Zn.lat).pretty)+", "+t.toDisplayString(i.computeLng((Hn=Nt==null?void 0:Nt.arrival)==null?void 0:Hn.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(i.computeUTCTime((_n=Nt==null?void 0:Nt.arrival)==null?void 0:_n.utcTime))+")",1)])])}),128)),t.createElementVNode("table",yM,[e[51]||(e[51]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",AM,t.toDisplayString((u=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:u.distance),1),t.createElementVNode("td",TM,t.toDisplayString(($=(q=l==null?void 0:l.goodWx)==null?void 0:q.inEca)==null?void 0:$.distance),1),t.createElementVNode("td",null,t.toDisplayString((tt=(v=l==null?void 0:l.allWx)==null?void 0:v.outEca)==null?void 0:tt.distance),1),t.createElementVNode("td",null,t.toDisplayString((at=(et=l==null?void 0:l.allWx)==null?void 0:et.inEca)==null?void 0:at.distance),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",VM,t.toDisplayString((ot=(lt=l==null?void 0:l.goodWx)==null?void 0:lt.outEca)==null?void 0:ot.time),1),t.createElementVNode("td",xM,t.toDisplayString((gt=(P=l==null?void 0:l.goodWx)==null?void 0:P.inEca)==null?void 0:gt.time),1),t.createElementVNode("td",null,t.toDisplayString((Et=(It=l==null?void 0:l.allWx)==null?void 0:It.outEca)==null?void 0:Et.time),1),t.createElementVNode("td",null,t.toDisplayString((At=(yt=l==null?void 0:l.allWx)==null?void 0:yt.inEca)==null?void 0:At.time),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",pM,t.toDisplayString(((Vt=(Tt=l==null?void 0:l.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.avgSpd)||"--"),1),t.createElementVNode("td",zM,t.toDisplayString(((pt=(xt=l==null?void 0:l.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=l==null?void 0:l.allWx)==null?void 0:zt.outEca)==null?void 0:jt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(St=l==null?void 0:l.allWx)==null?void 0:St.inEca)==null?void 0:Ut.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[47]||(e[47]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",jM,t.toDisplayString(((kt=(ft=l==null?void 0:l.goodWx)==null?void 0:ft.outEca)==null?void 0:kt.sumFoCons)||"--"),1),t.createElementVNode("td",SM,t.toDisplayString(((Ct=(Ot=l==null?void 0:l.goodWx)==null?void 0:Ot.inEca)==null?void 0:Ct.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ht=(bt=l==null?void 0:l.allWx)==null?void 0:bt.outEca)==null?void 0:ht.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=l==null?void 0:l.allWx)==null?void 0:Yt.inEca)==null?void 0:Qt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[48]||(e[48]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",UM,t.toDisplayString(((Rt=(wt=l==null?void 0:l.goodWx)==null?void 0:wt.outEca)==null?void 0:Rt.avgFoCons)||"--"),1),t.createElementVNode("td",fM,t.toDisplayString(((Bt=(Ft=l==null?void 0:l.goodWx)==null?void 0:Ft.inEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Pt=(Gt=l==null?void 0:l.allWx)==null?void 0:Gt.outEca)==null?void 0:Pt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Lt=(Wt=l==null?void 0:l.allWx)==null?void 0:Wt.inEca)==null?void 0:Lt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[49]||(e[49]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",kM,t.toDisplayString(((qt=(U=l==null?void 0:l.goodWx)==null?void 0:U.outEca)==null?void 0:qt.sumDgoCons)||"--"),1),t.createElementVNode("td",OM,t.toDisplayString(((n=(Zt=l==null?void 0:l.goodWx)==null?void 0:Zt.inEca)==null?void 0:n.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Dt=(O=l==null?void 0:l.allWx)==null?void 0:O.outEca)==null?void 0:Dt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((_t=(Ht=l==null?void 0:l.allWx)==null?void 0:Ht.inEca)==null?void 0:_t.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[50]||(e[50]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",CM,t.toDisplayString(((Xt=(Jt=l==null?void 0:l.goodWx)==null?void 0:Jt.outEca)==null?void 0:Xt.avgDgoCons)||"--"),1),t.createElementVNode("td",bM,t.toDisplayString(((ut=(Kt=l==null?void 0:l.goodWx)==null?void 0:Kt.inEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((B=($t=l==null?void 0:l.allWx)==null?void 0:$t.outEca)==null?void 0:B.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((oe=(ee=l==null?void 0:l.allWx)==null?void 0:ee.inEca)==null?void 0:oe.avgDgoCons)||"--"),1)])])]),(ie=l==null?void 0:l.goodWx)!=null&&ie.distance?(t.openBlock(),t.createElementBlock("table",hM,[e[53]||(e[53]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.noons[R],(Nt,qi)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:qi},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Nt,(dl,ui)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ui},[dl.goodWx?(t.openBlock(),t.createElementBlock("tr",YM,[t.createElementVNode("td",null,t.toDisplayString(dl.type)+" "+t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(i.computePrevTime(dl),"MMM-DD/HHmm[Z],YYYY")),1),e[52]||(e[52]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(i.computeUTCTime(dl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(i.computeDuration(dl.utc,i.computePrevTime(dl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ne=d.exclusion[R])!=null&&ne.time?(t.openBlock(),t.createElementBlock("div",QM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(de=l==null?void 0:l.goodWx)!=null&&de.distance?(t.openBlock(),t.createElementBlock("div",wM,[t.createElementVNode("div",RM,[e[63]||(e[63]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",FM,[(se=(re=a.report)==null?void 0:re.weather)!=null&&se.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(pe=(Ae=a.report)==null?void 0:Ae.weather)!=null&&pe.disableWxFactor&&((je=(ze=a.report)==null?void 0:ze.weather)!=null&&je.disableCFactor)?(t.openBlock(),t.createElementBlock("span",PM,t.toDisplayString((Se=l==null?void 0:l.goodWx)==null?void 0:Se.pfmSpd)+" (kts)",1)):(fe=(Ue=a.report)==null?void 0:Ue.weather)!=null&&fe.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ke=l==null?void 0:l.goodWx)==null?void 0:ke.avgSpd),1),e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Oe=l==null?void 0:l.goodWx)==null?void 0:Oe.avgCf)>0?(Ce=l==null?void 0:l.goodWx)==null?void 0:Ce.avgCf:`(${(be=l==null?void 0:l.goodWx)==null?void 0:be.avgCf})`),1),e[57]||(e[57]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",WM,t.toDisplayString((he=l==null?void 0:l.goodWx)==null?void 0:he.pfmSpd)+" (kts)",1)],64)):(Qe=(Ye=a.report)==null?void 0:Ye.weather)!=null&&Qe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((we=l==null?void 0:l.goodWx)==null?void 0:we.avgSpd),1),e[58]||(e[58]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Re=l==null?void 0:l.goodWx)==null?void 0:Re.avgWf)>0?(Fe=l==null?void 0:l.goodWx)==null?void 0:Fe.avgWf:`(${(Be=l==null?void 0:l.goodWx)==null?void 0:Be.avgWf})`),1),e[59]||(e[59]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",LM,t.toDisplayString((Ge=l==null?void 0:l.goodWx)==null?void 0:Ge.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((D=l==null?void 0:l.goodWx)==null?void 0:D.avgSpd),1),e[61]||(e[61]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Pe=l==null?void 0:l.goodWx)==null?void 0:Pe.avgWf)>0?(We=l==null?void 0:l.goodWx)==null?void 0:We.avgWf:`(${(Le=l==null?void 0:l.goodWx)==null?void 0:Le.avgWf})`),1),(He=(Ze=a.report)==null?void 0:Ze.weather)!=null&&He.favorableCur&&((_e=l==null?void 0:l.goodWx)==null?void 0:_e.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Je=l==null?void 0:l.goodWx)==null?void 0:Je.avgCf)>0?(Xe=l==null?void 0:l.goodWx)==null?void 0:Xe.avgCf:`(${(ae=l==null?void 0:l.goodWx)==null?void 0:ae.avgCf})`),1)],64)),e[62]||(e[62]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",ZM,t.toDisplayString(($a=l==null?void 0:l.goodWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ce=(Ne=a.report)==null?void 0:Ne.weather)!=null&&ce.favorableCur&&((Me=l==null?void 0:l.goodWx)==null?void 0:Me.avgCf)>0?(t.openBlock(),t.createElementBlock("span",GM,t.toDisplayString((ye=l==null?void 0:l.goodWx)==null?void 0:ye.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((me=l==null?void 0:l.goodWx)==null?void 0:me.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((De=l==null?void 0:l.goodWx)==null?void 0:De.avgCf)>0?(ge=l==null?void 0:l.goodWx)==null?void 0:ge.avgCf:`(${(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.avgCf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",BM,t.toDisplayString((Ee=l==null?void 0:l.goodWx)==null?void 0:Ee.pfmSpd)+" (kts)",1)],64))],64)),((m=l==null?void 0:l.goodWx)==null?void 0:m.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",HM,"(Under-performance)")):t.createCommentVNode("",!0),((X=l==null?void 0:l.goodWx)==null?void 0:X.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",_M,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",JM,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",XM,[(te=(vt=a.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(qe=(ue=a.report)==null?void 0:ue.weather)!=null&&qe.disableWxFactor&&((ve=($e=a.report)==null?void 0:$e.weather)!=null&&ve.disableCFactor)?(t.openBlock(),t.createElementBlock("label",KM,"GW Average Speed")):(ea=(ta=a.report)==null?void 0:ta.weather)!=null&&ea.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[69]||(e[69]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"-",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(la=(aa=a.report)==null?void 0:aa.weather)!=null&&la.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[72]||(e[72]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"-",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[77]||(e[77]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[78]||(e[78]=t.createElementVNode("label",null,"-",-1)),e[79]||(e[79]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(ia=(oa=a.report)==null?void 0:oa.weather)!=null&&ia.favorableCur&&((na=l==null?void 0:l.goodWx)==null?void 0:na.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[75]||(e[75]=t.createElementVNode("label",null,"-",-1)),e[76]||(e[76]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Te=(le=a.report)==null?void 0:le.weather)!=null&&Te.favorableCur&&((Ke=l==null?void 0:l.goodWx)==null?void 0:Ke.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[67]||(e[67]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[64]||(e[64]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"-",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",uM,[t.createElementVNode("div",qM,[e[86]||(e[86]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[(ra=(da=a.report)==null?void 0:da.weather)!=null&&ra.favorableCur&&((sa=l==null?void 0:l.allWx)==null?void 0:sa.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ya=l==null?void 0:l.allWx)==null?void 0:ya.avgSpd),1),e[84]||(e[84]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Aa=l==null?void 0:l.allWx)==null?void 0:Aa.avgWf)>0?(Ta=l==null?void 0:l.allWx)==null?void 0:Ta.avgWf:`(${(Va=l==null?void 0:l.allWx)==null?void 0:Va.avgWf})`),1),e[85]||(e[85]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((xa=l==null?void 0:l.allWx)==null?void 0:xa.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Na=l==null?void 0:l.allWx)==null?void 0:Na.avgSpd),1),e[81]||(e[81]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ca=l==null?void 0:l.allWx)==null?void 0:ca.avgCf)>0?(Ma=l==null?void 0:l.allWx)==null?void 0:Ma.avgCf:`(${(ma=l==null?void 0:l.allWx)==null?void 0:ma.avgCf})`),1),e[82]||(e[82]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Da=l==null?void 0:l.allWx)==null?void 0:Da.avgWf)>0?(ga=l==null?void 0:l.allWx)==null?void 0:ga.avgWf:`(${(Ia=l==null?void 0:l.allWx)==null?void 0:Ia.avgWf})`),1),e[83]||(e[83]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((Ea=l==null?void 0:l.allWx)==null?void 0:Ea.pfmSpd)+" (kts)",1)],64)),((pa=l==null?void 0:l.allWx)==null?void 0:pa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",em,"(Under-performance)")):t.createCommentVNode("",!0),((za=l==null?void 0:l.allWx)==null?void 0:za.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",am,"(Over-performance)")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lm,[e[96]||(e[96]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",om,[(Sa=(ja=a.report)==null?void 0:ja.weather)!=null&&Sa.favorableCur&&((Ua=l==null?void 0:l.allWx)==null?void 0:Ua.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[92]||(e[92]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[93]||(e[93]=t.createElementVNode("label",null,"-",-1)),e[94]||(e[94]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[95]||(e[95]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[87]||(e[87]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"-",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"Current Factor",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"-",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",im,[t.createElementVNode("div",nm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(R+1)+" Time Analysis",1),(ka=(fa=a.report)==null?void 0:fa.weather)!=null&&ka.noExtrapolation?(t.openBlock(),t.createElementBlock("span",dm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",rm,[t.createElementVNode("div",sm,[e[100]||(e[100]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Nm,[t.createElementVNode("div",cm,[t.createElementVNode("div",null,t.toDisplayString((Ca=(Oa=a.report)==null?void 0:Oa.weather)!=null&&Ca.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[97]||(e[97]=t.createElementVNode("div",{class:"line"},null,-1)),e[98]||(e[98]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[99]||(e[99]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",Mm,[t.createElementVNode("div",mm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ha=(ba=l==null?void 0:l.extend)==null?void 0:ba.cp)==null?void 0:ha.speed,"Under"))+"kts)",1),e[101]||(e[101]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,[t.createElementVNode("div",null,t.toDisplayString((Qa=(Ya=a.report)==null?void 0:Ya.weather)!=null&&Qa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[102]||(e[102]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ra=(wa=l==null?void 0:l.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Under"))+"kts",1)]),e[103]||(e[103]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ba=(Fa=l==null?void 0:l.extend)==null?void 0:Fa.cp)==null?void 0:Ba.speed,"Over"))+"kts)",1),e[104]||(e[104]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",ym,[t.createElementVNode("div",Am,[t.createElementVNode("div",null,t.toDisplayString((Pa=(Ga=a.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(La=(Wa=l==null?void 0:l.extend)==null?void 0:Wa.cp)==null?void 0:La.speed,"Over"))+"kts",1)]),e[106]||(e[106]=t.createElementVNode("div",null,"(c)",-1))])]),e[107]||(e[107]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-e5141617><div class="flex-space" style="width:300px;font-weight:400;" data-v-e5141617><label data-v-e5141617>Time Lost</label><div data-v-e5141617>=</div><div data-v-e5141617>(a)</div><div data-v-e5141617>-</div><div data-v-e5141617>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-e5141617><label data-v-e5141617>Time Gained</label><div data-v-e5141617>=</div><div data-v-e5141617>(c)</div><div data-v-e5141617>-</div><div data-v-e5141617>(a)</div></div></div>',1))]),t.createElementVNode("div",Tm,[t.createElementVNode("div",Vm,[e[108]||(e[108]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ha=(Za=l==null?void 0:l.extend)==null?void 0:Za.cp)==null?void 0:Ha.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",xm,[e[109]||(e[109]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ja=(_a=l==null?void 0:l.extend)==null?void 0:_a.cp)==null?void 0:Ja.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",pm,[e[110]||(e[110]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ka=(Xa=l==null?void 0:l.extend)==null?void 0:Xa.cp)==null?void 0:Ka.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,(qa=(ua=l==null?void 0:l.extend)==null?void 0:ua.cp)==null?void 0:qa.speed,"Under"))+" kts) ",1)])]),(va=l==null?void 0:l.goodWx)!=null&&va.distance?(t.openBlock(),t.createElementBlock("div",zm,[t.createElementVNode("div",jm,[e[114]||(e[114]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Sm,[t.createElementVNode("div",Um,[t.createElementVNode("div",null,t.toDisplayString((ll=(tl=a.report)==null?void 0:tl.weather)!=null&&ll.noExtrapolation?(ol=l==null?void 0:l.goodWx)==null?void 0:ol.distance:(il=l==null?void 0:l.allWx)==null?void 0:il.distance),1),e[111]||(e[111]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nl=l==null?void 0:l.goodWx)==null?void 0:nl.pfmSpd),1)]),e[112]||(e[112]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nl=l==null?void 0:l.timeConclusion)==null?void 0:Nl.timeAtPfmSpd)+" (hrs)",1),e[113]||(e[113]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",fm,[t.createElementVNode("div",km,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ml=(cl=l==null?void 0:l.extend)==null?void 0:cl.cp)==null?void 0:Ml.speed,"Under"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Om,[t.createElementVNode("div",Cm,[t.createElementVNode("div",null,t.toDisplayString((Dl=(ml=a.report)==null?void 0:ml.weather)!=null&&Dl.noExtrapolation?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.distance:(Il=l==null?void 0:l.allWx)==null?void 0:Il.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((El=l==null?void 0:l.timeConclusion)==null?void 0:El.minusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yl=l==null?void 0:l.timeConclusion)==null?void 0:yl.timeAtMinusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",bm,[t.createElementVNode("div",hm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Tl=(Al=l==null?void 0:l.extend)==null?void 0:Al.cp)==null?void 0:Tl.speed,"Over"))+"kts)",1),e[119]||(e[119]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Ym,[t.createElementVNode("div",Qm,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=a.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?(pl=l==null?void 0:l.goodWx)==null?void 0:pl.distance:(zl=l==null?void 0:l.allWx)==null?void 0:zl.distance),1),e[120]||(e[120]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jl=l==null?void 0:l.timeConclusion)==null?void 0:jl.plusAbtSpd),1)]),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Sl=l==null?void 0:l.timeConclusion)==null?void 0:Sl.timeAtPlusAbtSpd)+" (hrs)",1),e[122]||(e[122]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",wm,[((Ul=l==null?void 0:l.timeConclusion)==null?void 0:Ul.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Rm,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fl=l==null?void 0:l.timeConclusion)==null?void 0:fl.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kl=l==null?void 0:l.timeConclusion)==null?void 0:kl.timeAtMinusAbtSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ol=l==null?void 0:l.timeConclusion)==null?void 0:Ol.timeLost)+" (hrs)",1)])):((Cl=l==null?void 0:l.timeConclusion)==null?void 0:Cl.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Fm,[e[129]||(e[129]=t.createElementVNode("div",null,"Time Lost",-1)),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),e[131]||(e[131]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[132]||(e[132]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bl=l==null?void 0:l.timeConclusion)==null?void 0:bl.timeAtPlusAbtSpd),1),e[133]||(e[133]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((hl=l==null?void 0:l.timeConclusion)==null?void 0:hl.timeAtPfmSpd),1),e[134]||(e[134]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=l==null?void 0:l.timeConclusion)==null?void 0:Yl.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Bm,[e[135]||(e[135]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Ql=l==null?void 0:l.timeConclusion)==null?void 0:Ql.conclusionStatus)==="Lost"?"lost":((wl=l==null?void 0:l.timeConclusion)==null?void 0:wl.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Rl=l==null?void 0:l.timeConclusion)==null?void 0:Rl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",Gm,t.toDisplayString(d.noGoodWxDay),1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(R+1)+" Consumption Analysis",1),(Fl=(M=a.report)==null?void 0:M.weather)!=null&&Fl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",Lm,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zm,[t.createElementVNode("div",Hm,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((Gl=(Bl=a.report)==null?void 0:Bl.weather)!=null&&Gl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),e[137]||(e[137]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",Xm,[e[142]||(e[142]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Wl=(Pl=l.extend)==null?void 0:Pl.cp)==null?void 0:Wl.dgo)>0?(t.openBlock(),t.createElementBlock("div",Km," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",um,[e[147]||(e[147]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qm,[t.createElementVNode("div",$m,[t.createElementVNode("div",null,t.toDisplayString((Zl=(Ll=a.report)==null?void 0:Ll.weather)!=null&&Zl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[143]||(e[143]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,(al=(Hl=l==null?void 0:l.extend)==null?void 0:Hl.cp)==null?void 0:al.speed,"Under"))+"kts",1)]),e[144]||(e[144]=t.createElementVNode("div",null,"x",-1)),e[145]||(e[145]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[146]||(e[146]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",vm,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((ul=(Kl=a.report)==null?void 0:Kl.weather)!=null&&ul.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(i.computeAbtSpeed(l==null?void 0:l.timeConclusion,($l=(ql=l==null?void 0:l.extend)==null?void 0:ql.cp)==null?void 0:$l.speed,"Over"))+"kts",1)]),e[149]||(e[149]=t.createElementVNode("div",null,"x",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[151]||(e[151]=t.createElementVNode("div",null,"(f)",-1))])]),e[159]||(e[159]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-e5141617><div class="flex-space" style="width:240px;" data-v-e5141617><label data-v-e5141617>Fuel Over-consumption</label><div data-v-e5141617>=</div><div data-v-e5141617>(d)</div><div data-v-e5141617>-</div><div data-v-e5141617>(e)</div></div><div class="flex-space" style="width:200px;" data-v-e5141617><label data-v-e5141617>Fuel Saving</label><div data-v-e5141617>=</div><div data-v-e5141617>(f)</div><div data-v-e5141617>-</div><div data-v-e5141617>(d)</div></div></div>',1)),((to=(vl=l.extend)==null?void 0:vl.cp)==null?void 0:to.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",aD,[e[155]||(e[155]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[e[153]||(e[153]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ao=(eo=a.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",iD,[e[158]||(e[158]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nD,[t.createElementVNode("div",dD,[e[156]||(e[156]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[157]||(e[157]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=(lo=a.report)==null?void 0:lo.weather)!=null&&oo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[243]||(e[243]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",rD,"Seg. "+t.toDisplayString(R+1)+" Fuel Oil",1),(io=l==null?void 0:l.goodWx)!=null&&io.distance?(t.openBlock(),t.createElementBlock("div",sD,[((ro=(no=l==null?void 0:l.goodWx)==null?void 0:no.inEca)==null?void 0:ro.distance)>0?(t.openBlock(),t.createElementBlock("div",ND,[e[165]||(e[165]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((No=(so=l==null?void 0:l.goodWx)==null?void 0:so.inEca)==null?void 0:No.sumDgoCons),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",mD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l==null?void 0:l.extend)==null?void 0:co.cp)==null?void 0:Mo.dgo),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),e[161]||(e[161]=t.createElementVNode("div",null,"24",-1))]),e[163]||(e[163]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Do=(mo=l==null?void 0:l.goodWx)==null?void 0:mo.inEca)==null?void 0:Do.time),1),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=l==null?void 0:l.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",DD,[e[172]||(e[172]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=a.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=l==null?void 0:l.goodWx)==null?void 0:Ao.distance:(To=l==null?void 0:l.allWx)==null?void 0:To.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=l==null?void 0:l.goodWx)==null?void 0:Vo.pfmSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((xo=l==null?void 0:l.goodWx)==null?void 0:xo.sumFoCons),1),((zo=(po=l==null?void 0:l.goodWx)==null?void 0:po.inEca)==null?void 0:zo.distance)>0?(t.openBlock(),t.createElementBlock("span",yD,[e[167]||(e[167]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((So=(jo=l==null?void 0:l.fuelConclusion)==null?void 0:jo.fo)==null?void 0:So.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=l==null?void 0:l.goodWx)==null?void 0:Uo.time),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ko=(fo=l.fuelConclusion)==null?void 0:fo.fo)==null?void 0:ko.entireCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",AD,[e[179]||(e[179]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((Co=(Oo=a.report)==null?void 0:Oo.weather)!=null&&Co.noExtrapolation?(bo=l==null?void 0:l.goodWx)==null?void 0:bo.distance:(ho=l==null?void 0:l.allWx)==null?void 0:ho.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=l==null?void 0:l.timeConclusion)==null?void 0:Yo.minusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((wo=(Qo=l==null?void 0:l.fuelConclusion)==null?void 0:Qo.fo)==null?void 0:wo.overTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Ro=l.fuelConclusion)==null?void 0:Ro.fo)==null?void 0:Fo.maxCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",pD,[e[186]||(e[186]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((Go=(Bo=a.report)==null?void 0:Bo.weather)!=null&&Go.noExtrapolation?(Po=l==null?void 0:l.goodWx)==null?void 0:Po.distance:(Wo=l==null?void 0:l.allWx)==null?void 0:Wo.distance),1),e[180]||(e[180]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=l==null?void 0:l.timeConclusion)==null?void 0:Lo.plusAbtSpd),1)]),e[183]||(e[183]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((Ho=(Zo=l==null?void 0:l.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:Ho.underTolerance),1),e[181]||(e[181]=t.createElementVNode("div",{class:"line"},null,-1)),e[182]||(e[182]=t.createElementVNode("div",null,"24",-1))]),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jo=(_o=l.fuelConclusion)==null?void 0:_o.fo)==null?void 0:Jo.minCons)+" (mt)",1),e[185]||(e[185]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",UD,[((Ko=(Xo=l==null?void 0:l.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",fD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l==null?void 0:l.fuelConclusion)==null?void 0:uo.fo)==null?void 0:qo.entireCons),1),e[191]||(e[191]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=($o=l==null?void 0:l.fuelConclusion)==null?void 0:$o.fo)==null?void 0:vo.maxCons),1),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ei=(ti=l==null?void 0:l.fuelConclusion)==null?void 0:ti.fo)==null?void 0:ei.overCons),1)]),(li=(ai=l==null?void 0:l.goodWx)==null?void 0:ai.inEca)!=null&&li.distance?(t.openBlock(),t.createElementBlock("div",kD,[e[194]||(e[194]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",null,t.toDisplayString((ii=(oi=l==null?void 0:l.goodWx)==null?void 0:oi.inEca)==null?void 0:ii.distance)+" * "+t.toDisplayString((di=(ni=l==null?void 0:l.fuelConclusion)==null?void 0:ni.fo)==null?void 0:di.overCons),1),e[193]||(e[193]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((si=(ri=a.report)==null?void 0:ri.weather)!=null&&si.noExtrapolation?(Ni=l==null?void 0:l.goodWx)==null?void 0:Ni.distance:(ci=l==null?void 0:l.allWx)==null?void 0:ci.distance),1)]),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Mi=l==null?void 0:l.fuelConclusion)==null?void 0:Mi.fo)==null?void 0:mi.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((gi=(Di=l==null?void 0:l.fuelConclusion)==null?void 0:Di.fo)==null?void 0:gi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",CD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ei=(Ii=l==null?void 0:l.fuelConclusion)==null?void 0:Ii.fo)==null?void 0:Ei.minCons),1),e[201]||(e[201]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ai=(yi=l==null?void 0:l.fuelConclusion)==null?void 0:yi.fo)==null?void 0:Ai.entireCons),1),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Vi=(Ti=l==null?void 0:l.fuelConclusion)==null?void 0:Ti.fo)==null?void 0:Vi.saving)+" (mt)",1)]),(pi=(xi=l==null?void 0:l.goodWx)==null?void 0:xi.inEca)!=null&&pi.distance?(t.openBlock(),t.createElementBlock("div",bD,[e[204]||(e[204]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[205]||(e[205]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ji=(zi=a.report)==null?void 0:zi.weather)!=null&&ji.noExtrapolation?(Ui=(Si=l==null?void 0:l.goodWx)==null?void 0:Si.inEca)==null?void 0:Ui.distance:(ki=(fi=l==null?void 0:l.allWx)==null?void 0:fi.inEca)==null?void 0:ki.distance)+" * "+t.toDisplayString((Ci=(Oi=l==null?void 0:l.fuelConclusion)==null?void 0:Oi.fo)==null?void 0:Ci.saving),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((hi=(bi=a.report)==null?void 0:bi.weather)!=null&&hi.noExtrapolation?(Yi=l==null?void 0:l.goodWx)==null?void 0:Yi.distance:(Qi=l==null?void 0:l.allWx)==null?void 0:Qi.distance),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ri=(wi=l==null?void 0:l.fuelConclusion)==null?void 0:wi.fo)==null?void 0:Ri.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Bi=(Fi=l==null?void 0:l.fuelConclusion)==null?void 0:Fi.fo)==null?void 0:Bi.conclusionStatus)==="Over"?"flex-center lost":((Pi=(Gi=l==null?void 0:l.fuelConclusion)==null?void 0:Gi.fo)==null?void 0:Pi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[207]||(e[207]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Li=(Wi=l==null?void 0:l.fuelConclusion)==null?void 0:Wi.fo)==null?void 0:Li.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",YD,t.toDisplayString(d.noGoodWxDay),1)),((Hi=(Zi=l==null?void 0:l.extend)==null?void 0:Zi.cp)==null?void 0:Hi.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[e[208]||(e[208]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",RD,"Seg. "+t.toDisplayString(R+1)+" Diesel/Gas Oil",1)])]),(_i=l==null?void 0:l.goodWx)!=null&&_i.distance?(t.openBlock(),t.createElementBlock("div",FD,[t.createElementVNode("div",BD,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Xi=(Ji=a.report)==null?void 0:Ji.weather)!=null&&Xi.noExtrapolation?(Ki=l==null?void 0:l.goodWx)==null?void 0:Ki.distance:(s=l==null?void 0:l.allWx)==null?void 0:s.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((it=l==null?void 0:l.goodWx)==null?void 0:it.pfmSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",WD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((nt=l==null?void 0:l.goodWx)==null?void 0:nt.sumDgoCons),1),((rt=(dt=l==null?void 0:l.goodWx)==null?void 0:dt.inEca)==null?void 0:rt.distance)>0?(t.openBlock(),t.createElementBlock("span",LD,[e[210]||(e[210]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((_l=(st=l==null?void 0:l.fuelConclusion)==null?void 0:st.fo)==null?void 0:_l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=l==null?void 0:l.goodWx)==null?void 0:Jl.time),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=(Xl=l.fuelConclusion)==null?void 0:Xl.dgo)==null?void 0:Ve.entireCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",ZD,[e[222]||(e[222]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((vi=($i=a.report)==null?void 0:$i.weather)!=null&&vi.noExtrapolation?(tn=l==null?void 0:l.goodWx)==null?void 0:tn.distance:(en=l==null?void 0:l.allWx)==null?void 0:en.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((an=l==null?void 0:l.timeConclusion)==null?void 0:an.minusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((on=(ln=l==null?void 0:l.fuelConclusion)==null?void 0:ln.dgo)==null?void 0:on.overTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((dn=(nn=l.fuelConclusion)==null?void 0:nn.dgo)==null?void 0:dn.maxCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",XD,[e[229]||(e[229]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((sn=(rn=a.report)==null?void 0:rn.weather)!=null&&sn.noExtrapolation?(Nn=l==null?void 0:l.goodWx)==null?void 0:Nn.distance:(cn=l==null?void 0:l.allWx)==null?void 0:cn.distance),1),e[223]||(e[223]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Mn=l==null?void 0:l.timeConclusion)==null?void 0:Mn.plusAbtSpd),1)]),e[226]||(e[226]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Dn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.dgo)==null?void 0:Dn.underTolerance),1),e[224]||(e[224]=t.createElementVNode("div",{class:"line"},null,-1)),e[225]||(e[225]=t.createElementVNode("div",null,"24",-1))]),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=l.fuelConclusion)==null?void 0:gn.dgo)==null?void 0:In.minCons)+" (mt)",1),e[228]||(e[228]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",$D,[((yn=(En=l==null?void 0:l.fuelConclusion)==null?void 0:En.dgo)==null?void 0:yn.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",vD,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Tn=(An=l==null?void 0:l.fuelConclusion)==null?void 0:An.dgo)==null?void 0:Tn.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((xn=(Vn=l==null?void 0:l.fuelConclusion)==null?void 0:Vn.dgo)==null?void 0:xn.maxCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((zn=(pn=l==null?void 0:l.fuelConclusion)==null?void 0:pn.dgo)==null?void 0:zn.overCons),1)])):((Sn=(jn=l==null?void 0:l.fuelConclusion)==null?void 0:jn.dgo)==null?void 0:Sn.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",t1,[e[236]||(e[236]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),e[238]||(e[238]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[239]||(e[239]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((fn=(Un=l==null?void 0:l.fuelConclusion)==null?void 0:Un.dgo)==null?void 0:fn.minCons),1),e[240]||(e[240]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(kn=l==null?void 0:l.fuelConclusion)==null?void 0:kn.dgo)==null?void 0:On.entireCons),1),e[241]||(e[241]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((bn=(Cn=l==null?void 0:l.fuelConclusion)==null?void 0:Cn.dgo)==null?void 0:bn.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Yn=(hn=l==null?void 0:l.fuelConclusion)==null?void 0:hn.dgo)==null?void 0:Yn.conclusionStatus)==="Over"?"flex-center lost":((wn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.dgo)==null?void 0:wn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[242]||(e[242]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((Fn=(Rn=l==null?void 0:l.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Fn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",e1,t.toDisplayString(d.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const l1=el(FN,[["render",a1],["__scopeId","data-v-e5141617"]]),c4="",o1={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`${mt(o).utc().format(e)}`}},computeLng(){return function(o){return F.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return F.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,a="0.0"){return o?F.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,V,A,T;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=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((T=(A=this.report)==null?void 0:A.weather)==null?void 0:T.waterTempSwitch)||!1}}},i1={class:"report-inventory"},n1={class:"section summary-section"},d1={class:"summary-block"},r1={class:"orm-report-table inventory-table"},s1={class:"label",rowspan:"4"},N1={class:"section inventory-section"},c1={class:"orm-report-table inventory-table detail"},M1=["colspan"],m1={key:0,class:"label",colspan:"2"},D1={key:0,class:"label",rowspan:"2"},g1={key:1,class:"label",rowspan:"2"},I1={key:2,class:"label",rowspan:"2"},E1={key:3,class:"label",colspan:"2"},y1={key:4,class:"label",rowspan:"2"},A1={key:5,class:"label",colspan:"2"},T1={key:6,class:"label",rowspan:"2"},V1={key:7,class:"label",rowspan:"2"},x1={key:8,class:"label",rowspan:"2"},p1={key:0,class:"label"},z1={key:1,class:"label"},j1={key:2,class:"label"},S1={key:3,class:"label"},U1={class:"summary-tbody"};function f1(o,e,a,c,d,i){var g;return t.openBlock(),t.createElementBlock("div",i1,[t.createElementVNode("div",n1,[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",d1,[t.createElementVNode("table",r1,[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 V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",s1,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((V=r==null?void 0:r.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((A=r==null?void 0:r.allWx)==null?void 0:A.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((S=r==null?void 0:r.allWx)==null?void 0:S.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((C=r==null?void 0:r.allWx)==null?void 0:C.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((y=r==null?void 0:r.goodWx)==null?void 0:y.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((j=r==null?void 0:r.goodWx)==null?void 0:j.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((p=r==null?void 0:r.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((z=r==null?void 0:r.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((f=r==null?void 0:r.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((I=r==null?void 0:r.badWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((h=r==null?void 0:r.badWx)==null?void 0:h.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Y=r==null?void 0:r.badWx)==null?void 0:Y.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((k=r==null?void 0:r.excluded)==null?void 0:k.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((b=r==null?void 0:r.excluded)==null?void 0:b.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((w=r==null?void 0:r.excluded)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(i.computePrecision((G=r==null?void 0:r.excluded)==null?void 0:G.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",N1,[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",c1,[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,M1),a.showFactor?(t.openBlock(),t.createElementBlock("th",m1,"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",D1,[...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",g1,[...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",I1,[...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",E1,"Swell")):t.createCommentVNode("",!0),d.showSig?(t.openBlock(),t.createElementBlock("th",y1,[...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",A1,"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",T1,"cFactor")):t.createCommentVNode("",!0),a.showFactor?(t.openBlock(),t.createElementBlock("th",V1,"wxFactor")):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("th",x1,[...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",p1,"Dir")):t.createCommentVNode("",!0),d.showSwell?(t.openBlock(),t.createElementBlock("th",z1,[...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",j1,"Dir")):t.createCommentVNode("",!0),d.showCF?(t.openBlock(),t.createElementBlock("th",S1,[...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",U1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.inventory,(r,N)=>{var V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((V=r.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((A=r.noon)==null?void 0:A.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),d.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(T=r.meteo)==null?void 0:T.wind)==null?void 0:S.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((y=(C=r.meteo)==null?void 0:C.wind)==null?void 0:y.scale)??"-"),3),d.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(j=(x=r.meteo)==null?void 0:x.wave)==null?void 0:j.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"?"-":((f=(z=(p=r.meteo)==null?void 0:p.wave)==null?void 0:z.swell)==null?void 0:f.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"?"-":((Y=(h=(I=r.meteo)==null?void 0:I.wave)==null?void 0:h.swell)==null?void 0:Y.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"?"-":((Q=(b=(k=r.meteo)==null?void 0:k.wave)==null?void 0:b.sig)==null?void 0:Q.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"?"-":((G=(w=r.meteo)==null?void 0:w.current)==null?void 0:G.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"?"-":((W=r.meteo)==null?void 0:W.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(((L=r.meteo)==null?void 0:L.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(((Z=r.meteo)==null?void 0:Z.wxFactor)??"--"),3)):t.createCommentVNode("",!0),d.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(i.computePrecision((H=r.meteo)==null?void 0:H.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(i.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const k1=el(o1,[["render",f1],["__scopeId","data-v-9c4b43ab"]]),M4="",O1={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`${mt(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)?"-":F.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+F.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(un.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(un.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(un.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var T,S,C,y,x,j;let o=[];const e=[],a=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let d=0,i=0;const g=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var z,f;p===0&&r.push(E.utc),E.type==="EOSP"&&((z=this.inventory[p+1])==null?void 0:z.type)==="BOSP"&&(r.push(E.utc),r.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const z=mt(r[p+1]).diff(mt(r[p]),"minute",!0);for(let f=0;f<=z+1;f++)e.push(this.computeUTCTime(mt(r[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),g.forEach((E,p)=>{var f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_;const z=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(l=>l.slice(0,5)===E.utc.slice(5,10))&&o.push(z),p===g.length-1&&(o=o.filter(l=>l.slice(0,5)!==E.utc.slice(5,10)),o.push(z)),d=Math.ceil(((f=E.noon)==null?void 0:f.foCons)>d?(I=E.noon)==null?void 0:I.foCons:d),d=Math.ceil(((h=E.cp)==null?void 0:h.fo)>d?(Y=E.cp)==null?void 0:Y.fo:d),i=Math.ceil(((k=E.noon)==null?void 0:k.dgoCons)>i?(b=E.noon)==null?void 0:b.dgoCons:i),i=Math.ceil(((Q=E.cp)==null?void 0:Q.dgo)>i?(w=E.cp)==null?void 0:w.dgo:i),a.push([z,(G=E.noon)==null?void 0:G.avgSpd,(W=E.noon)==null?void 0:W.foCons,(L=E.noon)==null?void 0:L.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<g.length-1){const l=g[p+1];a.push([z,(Z=l.noon)==null?void 0:Z.avgSpd,(H=l.noon)==null?void 0:H.foCons,(_=l.noon)==null?void 0:_.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data: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:(S=(T=this.report)==null?void 0:T.weather)!=null&&S.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}]};(C=this.spdFoConsChart)==null||C.setOption(V);const A={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:i+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:c.dateTime,y:c.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(y=this.report)==null?void 0:y.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:c.dateTime,y:c.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(j=this.spdDgoConsChart)==null||j.setOption(A)},renderWxCurrChart(){var C;let o=[];const e=[],a=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let d=4;const i=this.inventory||[],g=[];i.forEach((y,x)=>{var j,E;x===0&&g.push(y.utc),y.type==="EOSP"&&((j=i[x+1])==null?void 0:j.type)==="BOSP"&&(g.push(y.utc),g.push((E=i[x+1])==null?void 0:E.utc)),x===i.length-1&&g.push(y.utc)}),g.forEach((y,x)=>{if(x%2===0){const j=mt(g[x+1]).diff(mt(g[x]),"minute",!0);for(let E=0;E<=j+1;E++)e.push(this.computeUTCTime(mt(g[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),i.forEach((y,x)=>{var E,p,z,f,I,h,Y,k,b,Q,w,G,W,L,Z,H,_,l,R,J,K,u,q,$,v,tt,et,at,lt,ot;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(P=>P.slice(0,5)===y.utc.slice(5,10))&&o.push(j),x===i.length-1&&(o=o.filter(P=>P.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),d=Math.ceil(((z=(p=(E=y.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:z.height)>d?(h=(I=(f=y.meteo)==null?void 0:f.wave)==null?void 0:I.sig)==null?void 0:h.height:d),a.push([j,((Y=y.noon)==null?void 0:Y.windBF)||((b=(k=y.meteo)==null?void 0:k.wind)==null?void 0:b.scale),(w=(Q=y.meteo)==null?void 0:Q.wind)==null?void 0:w.scale,(W=(G=y.meteo)==null?void 0:G.wind)==null?void 0:W.direction,(L=y.noon)==null?void 0:L.seasHt,(_=(H=(Z=y.meteo)==null?void 0:Z.wave)==null?void 0:H.sig)==null?void 0:_.height,y.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[c.anlyCurFct]),y.goodWx&&!y.excluded?20:0,y.excluded?20:0]),x<i.length-1){const P=i[x+1];a.push([j,((R=y.noon)==null?void 0:R.windBF)||((K=(J=y.meteo)==null?void 0:J.wind)==null?void 0:K.scale),(q=(u=P.meteo)==null?void 0:u.wind)==null?void 0:q.scale,(v=($=P.meteo)==null?void 0:$.wind)==null?void 0:v.direction,(tt=P.noon)==null?void 0:tt.seasHt,(lt=(at=(et=y.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:lt.height,P.dailyAvgCf??((ot=a[a.length-1])==null?void 0:ot[c.anlyCurFct]),P.goodWx&&!P.excluded?20:0,P.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,V=2.5,A=1,T=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(a,6)/5)*5,V=Math.ceil(this.findMaxValue(a,6)/5)*5,A=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),T=Math.ceil(Math.abs(N)/A)+Math.ceil(Math.abs(V)/A)):(A=.5,N=Math.floor(this.findMinValue(a,6)/.5)*A,V=2.5,T=Math.abs(N)/A+5);const S={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:V,interval:A,splitNumber:T,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(T-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:T,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(T-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:T,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(y,x)=>{if(y>=0)return y},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(C=this.currChart)==null||C.setOption(S)},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}}},C1={class:"report-summary"},b1={class:"section chart-section"},h1={class:"chart-block"},Y1={ref:"spdFoConsChart",class:"chart"},Q1={ref:"spdDgoConsChart",class:"chart"},w1={ref:"currChart",class:"chart"},R1={class:"section map-section"},F1={class:"map-block"},B1={class:"flex-space"},G1={class:"voyage-block bg-blue-light"},P1={class:"flex-space label-block",style:{width:"100%"}},W1={style:{"text-transform":"uppercase"}},L1={class:"flex-space label-block",style:{width:"100%"}},Z1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},H1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},_1={class:"flex-space label-block",style:{width:"100%"}},J1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},X1={class:"flex-space label-block",style:{width:"100%"}},K1={key:0,class:"flex-end",style:{flex:"1"}},u1={key:1,class:"flex-end",style:{flex:"1"}},q1={class:"flex-end",style:{width:"160px"}},$1={class:"flex-space label-block",style:{width:"100%"}},v1={key:0,class:"flex-end",style:{flex:"1"}},tg={key:1,class:"flex-end",style:{flex:"1"}},eg={class:"flex-end",style:{width:"160px"}},ag={class:"flex-space label-block",style:{width:"100%"}},lg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},og=["src"];function ig(o,e,a,c,d,i){var g,r,N,V,A,T,S,C,y,x,j,E,p,z,f,I,h,Y,k,b,Q,w;return t.openBlock(),t.createElementBlock("div",C1,[t.createElementVNode("div",b1,[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",h1,[t.createElementVNode("div",Y1,null,512),t.createElementVNode("div",Q1,null,512),t.createElementVNode("div",w1,null,512)])]),t.createElementVNode("div",R1,[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",F1,[t.createElementVNode("div",B1,[t.createElementVNode("div",G1,[t.createElementVNode("div",P1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",W1,t.toDisplayString(a.report.preparedFor),1)]),t.createElementVNode("div",L1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Z1,t.toDisplayString((r=(g=a.report)==null?void 0:g.vessel)==null?void 0:r.name),1),t.createElementVNode("span",H1,"("+t.toDisplayString((V=(N=a.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",_1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",J1,t.toDisplayString((T=(A=a.report)==null?void 0:A.voyage)==null?void 0:T.number),1)]),t.createElementVNode("div",X1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(C=(S=a.report)==null?void 0:S.departure)!=null&&C.portName?(t.openBlock(),t.createElementBlock("span",K1,t.toDisplayString((x=(y=a.report)==null?void 0:y.departure)==null?void 0:x.portName),1)):(t.openBlock(),t.createElementBlock("div",u1,t.toDisplayString(i.computePosition((j=a.report)==null?void 0:j.departure)),1)),t.createElementVNode("span",q1,t.toDisplayString(i.computeUTCTime((E=a.report.departure)==null?void 0:E.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$1,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(p=a.report)==null?void 0:p.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",v1,t.toDisplayString((I=(f=a.report)==null?void 0:f.arrival)==null?void 0:I.portName),1)):(t.openBlock(),t.createElementBlock("div",tg,t.toDisplayString(i.computePosition((h=a.report)==null?void 0:h.arrival)),1)),t.createElementVNode("span",eg,t.toDisplayString(i.computeUTCTime((k=(Y=a.report)==null?void 0:Y.arrival)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ag,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",lg,t.toDisplayString((Q=(b=a.report)==null?void 0:b.voyage)==null?void 0:Q.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-d28981e9><div data-v-d28981e9>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>0812</div><div data-v-d28981e9><div data-v-d28981e9>08 - Day of the month</div><div data-v-d28981e9>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-d28981e9></i></div><div data-v-d28981e9><div data-v-d28981e9>Wind from N (000)</div><div data-v-d28981e9>Each bard = 10 kts</div><div data-v-d28981e9>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div data-v-d28981e9>W 4</div><div data-v-d28981e9>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-d28981e9><div class="good-wx" data-v-d28981e9>Date</div><div data-v-d28981e9>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(w=a.report)==null?void 0:w.chartUrl,alt:""},null,8,og)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-d28981e9><div class="header-block" data-v-d28981e9><div class="bg-block" data-v-d28981e9><i class="iconfont icon-baobiao" data-v-d28981e9></i><div class="block-title" data-v-d28981e9>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>1. Good Weather Method</div><div class="method-body" data-v-d28981e9> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-d28981e9> 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-d28981e9> 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-d28981e9><div class="method-title" data-v-d28981e9>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-d28981e9> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-d28981e9> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>4. “About”</div><div class="method-body" data-v-d28981e9> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-d28981e9> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-d28981e9> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-d28981e9> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-d28981e9> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-d28981e9><div class="method-title" data-v-d28981e9>6. Further reference materials</div><div class="method-body" data-v-d28981e9>Please send mail to <a href="mailto:op@ormwx.com" data-v-d28981e9>op@ormwx.com</a>.</div></div></div></div>',1))])}const ng=el(O1,[["render",ig],["__scopeId","data-v-d28981e9"]]),m4="",D4="",dg={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`${mt(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,V;let c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(T=>{const S=`<p>${T}</p>`;c=c+S}),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 T=`<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>
|