@idmui/extend 1.5.7 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(It,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(It=typeof globalThis<"u"?globalThis:It||self,t(It["idmui-extend"]={},It.Vue,It["@wangeditor/editor-for-vue"],It["@idmui/basic"],It.moment,It.echarts,It["@idm-plugin/geo"],It.axios,It.MdEditorV3))})(this,function(It,t,fi,_a,At,Sd,$,Yi,Qi){"use strict";function Cd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const hi=Cd(Sd),NU="",xe=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},bd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Od={class:"editor-box"};function hd(o,e,l,N,n,s){const D=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Od,[t.withDirectives(t.createVNode(D,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=xe(bd,[["render",hd],["__scopeId","data-v-80104052"]]),Yd={install(o){o.component("IdmEditor",cl)}},cU="";/*! Element Plus Icons Vue v2.3.2 */var fd=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Qd=fd,wd=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Rd=wd;const mU="",Bd={name:"PlanReport",components:{Editor:cl,IdmBrand:_a.IdmBrand,IdmLoading:_a.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`${At(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=$.LngLatHelper.guessTimeZoneOffset(e,l)),`${At(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,s,D;if(e===0)return"-";{const r=At((n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.eta).diff(At((D=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,s,D,r,c;if(e===0)return"-";{const T=Number((s=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((c=(r=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o){const{label:e,v0:l,argv:N,sample:n}=o,s=n==null?void 0:n.wps,D=[];for(let r=0;r<(s==null?void 0:s.length);r++){const c=s[r],T=s[r-1];T&&(c.avgBearing=T.bearing),r===0&&(c.label=`${e}: ${l}`),D.push(c),c.suspend&&(N!=null&&N.useRouteParam)&&D.push({etd:c.etd,eta:c.etd,isResume:!0,memo:`Stoppage: ${c.suspend}hrs`}),c.velocity&&(N!=null&&N.useRouteParam)&&(c.label=`Spd: ${c.velocity}`)}return D}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,D,r,c;const l=(c=(r=(D=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:D.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(At(n==null?void 0:n.eta).diff(At(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,N;let e=0;return(N=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||N.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":$.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>$.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>$.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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,s,D,r,c,T,a,I,k,z,A,x,U,E,p,j;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((r=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((I=(a=o.meteo)==null?void 0:a.wind)==null?void 0:I.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&x.wind&&((E=(U=o.meteo)==null?void 0:U.wind)==null?void 0:E.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,s,D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((D=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:D.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&a.sigWv&&((z=(k=(I=o.meteo)==null?void 0:I.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:x.sigWv)?e="bg-severe":(E=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&E.sigWv&&((S=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:S.height)>=((w=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:w.sigWv)&&(e="bg-heavy"),e}},computedVisClass(){return o=>{var l,N;let e="";return((l=o.meteo)==null?void 0:l.visibility)<=2?e="bg-severe":((N=o.meteo)==null?void 0:N.visibility)<=5&&(e="bg-heavy"),e}},isArctic(){var o,e,l,N;return(N=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:N.isArctic}},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=hi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,j,S,g,w,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(w=(g=(S=(j=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:S.sample)==null?void 0:g.hours)==null||w.forEach(C=>{var L,Z,_,H,X,K,q,u,F,et;const Q=C.meteo;if(Q){const M=At(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(M),N=Math.ceil(((Z=(L=Q.wave)==null?void 0:L.sig)==null?void 0:Z.height)>N?(H=(_=Q.wave)==null?void 0:_.sig)==null?void 0:H.height:N),e.push([M,(X=Q.wind)==null?void 0:X.kts,(q=(K=Q.wave)==null?void 0:K.sig)==null?void 0:q.height,(u=Q.wind)==null?void 0:u.direction,(F=Q.wind)==null?void 0:F.degree,(et=Q.wind)==null?void 0:et.scale,C.cFactor,C.wFactor,C.speed])}});const n=Math.max(...e.map(C=>C[l.speed])),s=Math.max(...e.map(C=>C[l.windSpeed])),D=Math.min(...e.map(C=>C[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(C=>C[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(C=>C[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,T=Math.ceil(s/5/5)*5,a=Math.ceil(N/5/.5)*.5,I=Math.ceil((r-D)/5/.5)*.5,k=5*c,z=5*T,A=5*a,x=D+5*I,U={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:k,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval: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:D,max:x,splitNumber:5,interval:I,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Fd={class:"orm-plan-report"},Gd={key:0,class:"loading-block"},Pd={class:"info-block"},Wd={class:"col"},Ld={class:"label-block"},Zd={class:"text"},_d={class:"label-block"},Jd={class:"text"},Hd={key:0},Xd={class:"label-block"},Kd={class:"text"},qd={class:"col"},$d={class:"label-block"},ud={key:0},vd={key:1},tr={style:{"margin-left":"16px"}},er={class:"label-block"},ar={key:0},lr={key:1},or={style:{"margin-left":"16px"}},nr={class:"label-block"},ir={class:"text"},sr={class:"section chart-section"},dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},rr={style:{"margin-right":"8px"}},Nr=["src"],cr=["src"],mr={key:1,class:"empty"},Mr={class:"section comparison-section"},Dr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},gr={key:0},Ir=["rowspan"],Er={key:0},yr={key:1},Ar={rowspan:"2"},Tr={rowspan:"2"},Vr={key:0},xr={key:1},pr={rowspan:"1"},zr={key:0},jr={rowspan:"2"},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={key:0},Cr={key:0},br=["rowspan"],Or={key:0},hr={rowspan:"1"},Yr={key:0},fr={key:0},Qr={key:1},wr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Rr={key:0},Br={key:0,class:"section waypoint-section"},Fr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Gr={class:"bg-block"},Pr={class:"block-title"},Wr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Lr=["onClick"],Zr={class:"advisory bg-blue-light-2"},_r=["innerHTML"],Jr={class:"major-waypoint"},Hr={class:"major-header bg-blue-light-2"},Xr={key:0,class:"cell-item flex"},Kr={key:1,class:"cell-item flex"},qr={class:"major-body"},$r={class:"cell-item flex",style:{flex:"2.5"}},ur={key:0,class:"flex-center"},vr={key:1,class:"flex-center"},tN={key:0,style:{"margin-left":"3px"}},eN={class:"cell-item flex",style:{flex:"2"}},aN={key:0,style:{"margin-left":"4px","font-weight":"600"}},lN={key:1,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},sN={key:3,class:"cell-item flex nbsp"},dN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},mN={key:6,class:"cell-item flex offset"},MN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN={key:0,rowspan:"2",colspan:"1"},kN=["colspan"],UN={key:1,colspan:"2"},SN={key:0},CN={key:1},bN={key:2},ON={style:{padding:"8px 0"}},hN={class:"flex-center"},YN={key:0,class:"degree-box"},fN={key:1},QN={key:1},wN={key:0,class:"degree-box"},RN={key:1},BN={class:""},FN={key:0,class:"degree-box"},GN={key:1},PN={key:0,class:"degree-box"},WN={key:1},LN={key:2},ZN={key:3};function _N(o,e,l,N,n,s){var a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt,ct,V,ht,Yt,ft,Qt,wt,Rt,Ft,Gt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,G,Ct,re,Ne,ce,me,Me,De,ge,Et,ye,ze,je,ke,Ue,Se,Ce,be,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,rl,Nl;const D=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(D,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Gd,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[t.createElementVNode("div",Ld,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Zd,t.toDisplayString((z=(k=(I=l.plan)==null?void 0:I.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",_d,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Jd,[t.createTextVNode(t.toDisplayString((E=(U=(x=(A=l.plan)==null?void 0:A.voyage)==null?void 0:x.vessel)==null?void 0:U.name)==null?void 0:E.toUpperCase())+" ",1),(g=(S=(j=(p=l.plan)==null?void 0:p.voyage)==null?void 0:j.vessel)==null?void 0:S.vesselType)!=null&&g.name?(t.openBlock(),t.createElementBlock("span",Hd,"("+t.toDisplayString((Q=(C=(B=(w=l.plan)==null?void 0:w.voyage)==null?void 0:B.vessel)==null?void 0:C.vesselType)==null?void 0:Q.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Xd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Kd,t.toDisplayString(((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.voyNum)||((H=(_=l.plan)==null?void 0:_.voyage)==null?void 0:H.number)),1)])]),t.createElementVNode("div",qd,[t.createElementVNode("div",$d,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(q=(K=(X=l.plan)==null?void 0:X.leg)==null?void 0:K.departure)!=null&&q.name?(t.openBlock(),t.createElementBlock("span",ud,t.toDisplayString((et=(F=(u=l.plan)==null?void 0:u.leg)==null?void 0:F.departure)==null?void 0:et.name),1)):(t.openBlock(),t.createElementBlock("span",vd,t.toDisplayString(s.computePosition((at=(M=l.plan)==null?void 0:M.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",tr,t.toDisplayString(s.computeUTCTime(((nt=(ot=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ot.departure)==null?void 0:nt.atd)||((dt=(st=(it=l.plan)==null?void 0:it.leg)==null?void 0:st.departure)==null?void 0:dt.etd)||((P=(v=(y=(rt=l.plan)==null?void 0:rt.speeds)==null?void 0:y[n.speedIndex])==null?void 0:v.speed)==null?void 0:P.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",er,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Tt=(yt=(Nt=l.plan)==null?void 0:Nt.leg)==null?void 0:yt.destination)!=null&&Tt.name?(t.openBlock(),t.createElementBlock("span",ar,t.toDisplayString((pt=(xt=(Vt=l.plan)==null?void 0:Vt.leg)==null?void 0:xt.destination)==null?void 0:pt.name),1)):(t.openBlock(),t.createElementBlock("span",lr,t.toDisplayString(s.computePosition((Ot=(St=l.plan)==null?void 0:St.leg)==null?void 0:Ot.destination)),1)),t.createElementVNode("span",or,t.toDisplayString(s.computeUTCTime(((ht=(V=(ct=(Bt=l.plan)==null?void 0:Bt.speeds)==null?void 0:ct[n.speedIndex])==null?void 0:V.speed)==null?void 0:ht.ata)||((wt=(Qt=(ft=(Yt=l.plan)==null?void 0:Yt.speeds)==null?void 0:ft[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",nr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",ir,t.toDisplayString((Ft=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Ft.loadCondition),1)])])]),t.createElementVNode("div",sr,[t.createElementVNode("div",dr,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",rr,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Gt=l.plan)==null?void 0:Gt.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,Nr)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,cr)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Mr,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Dr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",gr,[...e[14]||(e[14]=[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:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ir),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Er,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[24]||(e[24]=[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(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,bt)=>{var se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y;return t.openBlock(),t.createElementBlock(t.Fragment,{key:bt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ar,t.toDisplayString(bt+1),1),t.createElementVNode("td",Tr,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Vr,t.toDisplayString(`CP ${((Ae=(Ie=m.speed)==null?void 0:Ie.cpCopy)==null?void 0:Ae.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",xr,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",pr,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",zr," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",jr,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",kr,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalFoCons,3)),1),t.createElementVNode("td",Ur,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((Na=m.speed)==null?void 0:Na.totalDgoCons,3)),1),(ma=(ca=m.speed)==null?void 0:ca.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Sr," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",Cr,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,bt)),9,br),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Or,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Ca=(Sa=m.speed)==null?void 0:Sa.extend)==null?void 0:Ca.cps[0].fo)+" / "+t.toDisplayString((Oa=(ba=m.speed)==null?void 0:ba.extend)==null?void 0:Oa.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.extend)==null?void 0:Ya.cps[0].dgo)+" / "+t.toDisplayString((Qa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",hr,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Yr," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",fr,t.toDisplayString(s.roundPrecision(((La=(Wa=m==null?void 0:m.speed)==null?void 0:Wa.cost)==null?void 0:La.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((b=(d=m==null?void 0:m.speed)==null?void 0:d.cost)==null?void 0:b.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(s.computeCostDiff(l.plan,bt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((O=m.speed)==null?void 0:O.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((h=m.speed)==null?void 0:h.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Y=m.speed)==null?void 0:Y.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",wr,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",Rr,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((G=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:G.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Ne=s.roundPrecision((re=(Ct=l.plan)==null?void 0:Ct.voyage)==null?void 0:re.priceDGO,0))==null?void 0:Ne.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),(me=(ce=l.plan)==null?void 0:ce.voyage)!=null&&me.showWpts?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Pr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Et=(ge=(De=(Me=l.plan.speeds)==null?void 0:Me[n.speedIndex])==null?void 0:De.speed)==null?void 0:ge.lane)==null?void 0:Et.name),1)]),((ze=(ye=l.plan)==null?void 0:ye.speeds)==null?void 0:ze.length)>1?(t.openBlock(),t.createElementBlock("div",Wr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((je=l.plan)==null?void 0:je.speeds,(m,bt)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:bt,class:t.normalizeClass(["route-item",n.speedIndex===bt?"active":""]),onClick:Ie=>{n.speedIndex=bt,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Lr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zr,[n.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,_r))]),t.createElementVNode("div",Jr,[t.createElementVNode("div",Hr,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-7af0c7d8>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-7af0c7d8>Time</div><div class="cell-item flex" data-v-7af0c7d8>Nav</div><div class="cell-item flex" data-v-7af0c7d8>Dist <span class="text-units" data-v-7af0c7d8>(nm)</span></div>',4)),(Ue=(ke=l.plan)==null?void 0:ke.voyage)!=null&&Ue.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xr,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Ce=(Se=l.plan)==null?void 0:Se.voyage)!=null&&Ce.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",qr,[(Oe=(be=l.plan)==null?void 0:be.speeds)!=null&&Oe.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((fe=(Ye=(he=l.plan)==null?void 0:he.speeds)==null?void 0:Ye[n.speedIndex])==null?void 0:fe.speed),(m,bt)=>{var se,de,Ie,Ae;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"cell-row"},[t.createElementVNode("div",$r,[m.isResume?(t.openBlock(),t.createElementBlock("div",ur,"Resume")):(t.openBlock(),t.createElementBlock("div",vr,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",tN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",eN,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",aN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",lN,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),bt?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",nN)),bt?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",sN)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[bt?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Ae=(Ie=l.plan)==null?void 0:Ie.voyage)!=null&&Ae.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[bt?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),bt?(t.openBlock(),t.createElementBlock("div",mN,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",MN))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",DN,[(we=(Qe=l.plan)==null?void 0:Qe.speeds)!=null&&we.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Ha=(Ja=(Fe=(Be=(Re=l.plan)==null?void 0:Re.speeds)==null?void 0:Be[n.speedIndex])==null?void 0:Fe.speed)==null?void 0:Ja.lane)==null?void 0:Ha.name),1)]),((Ka=(Xa=l.plan)==null?void 0:Xa.speeds)==null?void 0:Ka.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((qa=l.plan)==null?void 0:qa.speeds,(m,bt)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:bt,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===bt?"active":""]),onClick:Ie=>{n.speedIndex=bt,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN," * "+t.toDisplayString(s.computeModel((va=(ua=($a=l.plan)==null?void 0:$a.speeds)==null?void 0:ua[n.speedIndex])==null?void 0:va.speed)),1)]),t.createElementVNode("div",pN,[e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}}," Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher. ",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),(el=(tl=l.plan)==null?void 0:tl.voyage)!=null&&el.showVis?(t.openBlock(),t.createElementBlock("th",jN,[...e[51]||(e[51]=[t.createTextVNode("Vis.",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{colspan:(ll=(al=l.plan)==null?void 0:al.voyage)!=null&&ll.sendRptWithBF?3:2},"Wind",8,kN),e[54]||(e[54]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[57]||(e[57]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",UN,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[60]||(e[60]=t.createElementVNode("th",null,"Dir",-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(nl=(ol=l.plan)==null?void 0:ol.voyage)!=null&&nl.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",SN,"BF")):t.createCommentVNode("",!0),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[65]||(e[65]=t.createElementVNode("th",null,"Dir",-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,"Dir",-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Fac. "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",CN,[...e[58]||(e[58]=[t.createTextVNode("Sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",bN,[...e[59]||(e[59]=[t.createTextVNode("Sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Nl=(rl=(dl=(sl=(il=l.plan)==null?void 0:il.speeds)==null?void 0:sl[n.speedIndex])==null?void 0:dl.speed)==null?void 0:rl.sample)==null?void 0:Nl.hours,(m,bt)=>{var se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y,f,R,W,J,tt;return t.openBlock(),t.createElementBlock("tr",{key:bt},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",ON,[t.createElementVNode("div",hN,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showVis?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(s.computedVisClass(m))},t.toDisplayString(s.roundPrecision((Ie=m.meteo)==null?void 0:Ie.visibility,1)),3)):t.createCommentVNode("",!0),t.createElementVNode("td",null,[((Ge=(Ae=m.meteo)==null?void 0:Ae.wind)==null?void 0:Ge.kts)!==null&&((We=(Pe=m.meteo)==null?void 0:Pe.wind)!=null&&We.direction)?(t.openBlock(),t.createElementBlock("div",YN,[t.createElementVNode("span",null,t.toDisplayString((Ze=(Le=m.meteo)==null?void 0:Le.wind)==null?void 0:Ze.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Je=(_e=m.meteo)==null?void 0:_e.wind)==null?void 0:Je.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((Xe=(He=m.meteo)==null?void 0:He.wind)==null?void 0:Xe.kts,1)),3),(qe=(Ke=l.plan)==null?void 0:Ke.voyage)!=null&&qe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",QN,t.toDisplayString((ue=($e=m.meteo)==null?void 0:$e.wind)==null?void 0:ue.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.wd)==null?void 0:ea.height,1)),1),t.createElementVNode("td",null,[((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)==null?void 0:oa.height)!==null&&((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)!=null&&sa.direction)?(t.openBlock(),t.createElementBlock("div",wN,[t.createElementVNode("span",null,t.toDisplayString((Na=(ra=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ra.swell)==null?void 0:Na.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(Ma=(ma=(ca=m.meteo)==null?void 0:ca.wave)==null?void 0:ma.swell)==null?void 0:Ma.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.period,0)),1),t.createElementVNode("td",BN,[((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)==null?void 0:xa.height)!==null&&((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)!=null&&ja.direction)?(t.openBlock(),t.createElementBlock("div",FN,[t.createElementVNode("span",null,t.toDisplayString((Sa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:Sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(Oa=(ba=(Ca=m.meteo)==null?void 0:Ca.wave)==null?void 0:ba.sig)==null?void 0:Oa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((fa=(Ya=(ha=m.meteo)==null?void 0:ha.wave)==null?void 0:Ya.sig)==null?void 0:fa.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.period,0)),1),t.createElementVNode("td",null,[((Fa=(Ba=m.meteo)==null?void 0:Ba.current)==null?void 0:Fa.kts)!==null&&((Pa=(Ga=m.meteo)==null?void 0:Ga.current)!=null&&Pa.direction)?(t.openBlock(),t.createElementBlock("div",PN,[t.createElementVNode("span",null,t.toDisplayString((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(b=(d=m.meteo)==null?void 0:d.current)==null?void 0:b.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",WN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((h=(O=m.meteo)==null?void 0:O.current)==null?void 0:h.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,1)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",LN,t.toDisplayString(s.roundPrecision((f=(Y=m.meteo)==null?void 0:Y.ice)==null?void 0:f.sit,2)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",ZN,t.toDisplayString(((W=(R=m.meteo)==null?void 0:R.ice)==null?void 0:W.sic)>=0?s.roundPrecision(((tt=(J=m.meteo)==null?void 0:J.ice)==null?void 0:tt.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const wi=xe(Bd,[["render",_N],["__scopeId","data-v-7af0c7d8"]]),JN={install(o){o.component("PlanReport",wi)}},MU="",HN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${At(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${At(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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},XN={class:"cover-box"},KN={class:"cover-content"},qN={class:"cover-title"},$N={class:"cover-info"},uN={class:"info-item"},vN={class:"info-item"},tc={class:"info-item"},ec={style:{"font-weight":"600"}},ac={class:"info-item"},lc={style:{"font-weight":"600"}},oc={class:"info-item"},nc={class:"info-item"},ic={class:"info-item"},sc={class:"info-item"},dc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,s){var D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w,B;return t.openBlock(),t.createElementBlock("div",XN,[t.createElementVNode("div",KN,[t.createElementVNode("div",qN,t.toDisplayString(l.name),1),t.createElementVNode("div",$N,[t.createElementVNode("div",uN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(D=l.report)==null?void 0:D.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",vN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",tc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",ec,t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",ac,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",lc,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",oc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((I=(a=l.report)==null?void 0:a.departure)==null?void 0:I.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",nc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(A=l.report)==null?void 0:A.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ic,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(U=l.report)==null?void 0:U.arrival)==null?void 0:E.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",sc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(S=l.report)==null?void 0:S.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",dc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((B=(w=l.report)==null?void 0:w.voyage)==null?void 0:B.loadCondition),1)])])])])}const cc=xe(HN,[["render",Nc],["__scopeId","data-v-c57d4b58"]]),DU="",mc={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return At(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=At(o).diff(At(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return $.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return $.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return $.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,N)=>{var D,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(c=>{const T={time:At(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+At(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(T)});const s=(r=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},Mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={class:"phase-position"},xc={class:"phase-cp"},pc={class:"orm-report-table"},zc={key:0},jc={class:"phase-conclusion"},kc={class:"item-conclusion bg-blue-light-2",style:{flex:"0.9"}},Uc={class:"value align-left"},Sc={key:0,class:"text-secondary align-right"},Cc={key:0},bc={key:1},Oc={key:2},hc={key:1,class:"text-secondary"},Yc={key:2,class:"value"},fc={key:0},Qc={class:"gain"},wc={key:1},Rc={class:"lost"},Bc={key:2},Fc={class:"item-conclusion bg-blue-light-2"},Gc={class:"value align-left"},Pc={key:0,class:"unit",style:{"font-size":"11px"}},Wc={key:0,class:"text-secondary"},Lc={key:0},Zc={key:1},_c={key:2},Jc={key:1,class:"text-secondary"},Hc={key:2,class:"value"},Xc={key:0},Kc={class:"gain"},qc={key:1},$c={class:"lost"},uc={key:2},vc={class:"item-conclusion bg-blue-light-2"},tm={class:"value align-left"},em={key:0,class:"text-secondary"},am={key:0},lm={key:1},om={key:2},nm={key:1,class:"text-secondary"},im={key:2,class:"value"},sm={key:0},dm={class:"gain"},rm={key:1},Nm={class:"lost"},cm={key:2},mm={key:0,class:"exclusion-block"},Mm={style:{margin:"8px 0"}},Dm={class:"orm-report-table"},gm=["innerHTML"],Im={class:"section segment-section"},Em={class:"segment-summary"},ym={class:"segment-header"},Am={class:"segment-index"},Tm={class:"cp-box"},Vm={class:"segment-position"},xm={class:"segment-position"},pm={class:"orm-report-table"},zm={class:"good-wx"},jm={class:"good-wx"},km={class:"good-wx"},Um={class:"good-wx"},Sm={class:"good-wx"},Cm={class:"good-wx"},bm={class:"good-wx"},Om={class:"good-wx"},hm={class:"good-wx"},Ym={class:"good-wx"},fm={class:"good-wx"},Qm={class:"good-wx"},wm={class:"good-wx"},Rm={class:"good-wx"},Bm={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Fm={key:0},Gm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Pm={key:2,class:"segment-speed"},Wm={class:"row"},Lm={class:"speed-right row"},Zm={class:"speed"},_m={key:1,class:"speed"},Jm={key:0,class:"speed"},Hm={class:"speed"},Xm={class:"speed"},Km={class:"speed"},qm={key:0,class:"under"},$m={key:1,class:"over"},um={class:"row"},vm={class:"speed-right formula flex-space"},tM={key:0},eM={key:3,class:"segment-speed"},aM={class:"row"},lM={class:"speed-right row"},oM={class:"speed"},nM={class:"speed"},iM={key:0,class:"under"},sM={key:1,class:"over"},dM={class:"row"},rM={class:"speed-right formula row"},NM={class:"segment-formula"},cM={class:"sub-title"},mM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},MM={class:"formula-block"},DM={class:"formula-item flex-evenly bg-blue-light"},gM={class:"formula-right flex-evenly"},IM={class:"fraction",style:{width:"240px"}},EM={class:"formula-item flex-center bg-blue-light"},yM={class:"formula-left flex-space"},AM={class:"formula-right flex-evenly"},TM={class:"fraction",style:{width:"240px"}},VM={class:"formula-item flex-center bg-blue-light"},xM={class:"formula-left flex-space"},pM={class:"formula-right flex-evenly"},zM={class:"fraction",style:{width:"240px"}},jM={class:"formula-desc"},kM={class:"flex-end"},UM={class:"flex-end"},SM={class:"flex-end"},CM={key:0,class:"formula-block"},bM={class:"formula-item flex-evenly bg-blue-light"},OM={class:"formula-right flex-evenly"},hM={class:"fraction",style:{width:"200px"}},YM={class:"formula-item flex-center bg-blue-light"},fM={class:"formula-left flex-space"},QM={class:"formula-right flex-evenly"},wM={class:"fraction",style:{width:"200px"}},RM={class:"formula-item flex-center bg-blue-light"},BM={class:"formula-left flex-space"},FM={class:"formula-right flex-evenly"},GM={class:"fraction",style:{width:"200px"}},PM={class:"formula-item formula-conclusion bg-blue-light"},WM={key:0,class:"flex-evenly",style:{width:"500px"}},LM={key:1,class:"flex-evenly",style:{width:"500px"}},ZM={class:"flex-center"},_M={key:1,class:"formula-conclusion bg-blue-light"},JM={class:"segment-formula"},HM={class:"sub-title"},XM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},KM={class:"formula-block"},qM={class:"formula-item flex-evenly bg-blue-light"},$M={class:"formula-right flex-evenly"},uM={class:"fraction",style:{width:"240px"}},vM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},tD={key:0,class:"flex-end text-tips"},eD={class:"formula-item flex-center bg-blue-light"},aD={class:"formula-right flex-evenly"},lD={class:"fraction",style:{width:"200px"}},oD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},iD={class:"fraction",style:{width:"200px"}},sD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"300px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"300px"}},MD={class:"sub-title"},DD={key:0,class:"formula-block"},gD={key:0,class:"formula-item flex-evenly bg-blue-light"},ID={class:"formula-right flex-evenly"},ED={class:"fraction",style:{width:"60px"}},yD={class:"fraction",style:{width:"60px"}},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={key:0},zD={class:"formula-item flex-evenly bg-blue-light"},jD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},UD={class:"fraction",style:{width:"150px"}},SD={class:"formula-item flex-evenly bg-blue-light"},CD={class:"formula-right flex-evenly"},bD={class:"fraction",style:{width:"150px"}},OD={class:"fraction",style:{width:"150px"}},hD={class:"formula-item formula-conclusion bg-blue-light"},YD={class:"flex-evenly",style:{width:"500px"}},fD={key:0,class:"flex-evenly"},QD={class:"fraction"},wD={class:"flex-evenly",style:{width:"700px"}},RD={key:0,class:"flex-evenly",style:{width:"500px"}},BD={class:"fraction",style:{width:"140px"}},FD={key:1,class:"formula-item formula-conclusion bg-blue-light"},GD={class:"header-block"},PD={class:"bg-block"},WD={class:"block-title"},LD={key:0,class:"formula-block"},ZD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},XD={key:0},KD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},vD={class:"formula-item flex-evenly bg-blue-light"},t1={class:"formula-right flex-evenly"},e1={class:"fraction",style:{width:"150px"}},a1={class:"fraction",style:{width:"150px"}},l1={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},o1={key:0,class:"flex-evenly",style:{width:"500px"}},n1={key:1,class:"flex-evenly",style:{width:"700px"}},i1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function s1(o,e,l,N,n,s){var r,c,T;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Mc,[t.createElementVNode("div",Dc,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",gc,[t.createElementVNode("div",Ic,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[33]||(e[33]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,I)=>{var k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+I,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(I+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(ct,V)=>{var ht,Yt,ft,Qt,wt,Rt;return t.openBlock(),t.createElementBlock("div",{key:V,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[t.createElementVNode("span",null,t.toDisplayString(((ht=ct==null?void 0:ct.departure)==null?void 0:ht.portName)||((Yt=ct.departure)==null?void 0:Yt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((ft=ct==null?void 0:ct.departure)==null?void 0:ft.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Vc,[t.createElementVNode("span",null,t.toDisplayString(((Qt=ct==null?void 0:ct.arrival)==null?void 0:Qt.portName)||((wt=ct.arrival)==null?void 0:wt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Rt=ct==null?void 0:ct.arrival)==null?void 0:Rt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",xc,[t.createElementVNode("table",pc,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[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)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(E=a==null?void 0:a.extend)==null?void 0:E.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((w=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:w.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(C=(B=l.report)==null?void 0:B.voyage)!=null&&C.showCpRemark?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((L=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:L.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",jc,[t.createElementVNode("div",kc,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Uc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[12]||(e[12]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Sc,[((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Cc,"Time Gained")):((_=a==null?void 0:a.timeConclusion)==null?void 0:_.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",bc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Oc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",hc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Yc,[((H=a==null?void 0:a.timeConclusion)==null?void 0:H.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fc,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Qc,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((K=a==null?void 0:a.timeConclusion)==null?void 0:K.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",wc,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Rc,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fc,[e[26]||(e[26]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Gc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1)),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("span",Pc,[e[18]||(e[18]=t.createTextVNode(" (HSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3)),1),e[19]||(e[19]=t.createTextVNode(" / LSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3)),1),e[20]||(e[20]=t.createTextVNode(") ",-1))])):t.createCommentVNode("",!0)]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Wc,[((F=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Lc,"FO Saving")):((M=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:M.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Zc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",_c,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Jc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Hc,[((lt=(at=a==null?void 0:a.fuelConclusion)==null?void 0:at.fo)==null?void 0:lt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Xc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Kc,t.toDisplayString((nt=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:nt.saving),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((st=(it=a==null?void 0:a.fuelConclusion)==null?void 0:it.fo)==null?void 0:st.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",qc,[e[24]||(e[24]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",$c,t.toDisplayString((rt=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:rt.overCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",uc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",vc,[e[32]||(e[32]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",tm,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",em,[((v=(y=a==null?void 0:a.fuelConclusion)==null?void 0:y.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",am,"DO/GO Saving")):((Nt=(P=a==null?void 0:a.fuelConclusion)==null?void 0:P.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",om,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",nm,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",im,[((Tt=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",sm,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dm,t.toDisplayString((xt=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:xt.saving),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((St=(pt=a==null?void 0:a.fuelConclusion)==null?void 0:pt.dgo)==null?void 0:St.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",rm,[e[30]||(e[30]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Nm,t.toDisplayString((Bt=(Ot=a==null?void 0:a.fuelConclusion)==null?void 0:Ot.dgo)==null?void 0:Bt.overCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",cm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[34]||(e[34]=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(s.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[38]||(e[38]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",mm,[e[36]||(e[36]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[37]||(e[37]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",Mm,[t.createElementVNode("table",Dm,[e[35]||(e[35]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I},[t.createElementVNode("td",null,t.toDisplayString(I+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((T=l.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,gm))],2)],2),t.createElementVNode("div",Im,[e[240]||(e[240]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,I)=>{var k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt,ct,V,ht,Yt,ft,Qt,wt,Rt,Ft,Gt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,G,Ct,re,Ne,ce,me,Me,De,ge,Et,ye,ze,je,ke,Ue,Se,Ce,be,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,rl,Nl,m,bt,se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y,f,R,W,J,tt,mt,Mt,Dt,gt,zt,jt,kt,Pt,Wt,Lt,Zt,_t,Jt,Te,Ve,Za,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,Sl,Cl,bl,Ol,fl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,ro,No,co,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,So,Co,bo,Oo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,rn,Nn,cn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,Cn,bn,On,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ri,Ni,ci,mi,Mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi;return t.openBlock(),t.createElementBlock("div",{key:I,class:"segment-block"},[t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",Am,"Voyage Analysis Seg. "+t.toDisplayString(I+1),1),t.createElementVNode("div",Tm," CP Speed about: "+t.toDisplayString((z=(k=a.extend)==null?void 0:k.cp)==null?void 0:z.speed)+"kts, FO about: "+t.toDisplayString((x=(A=a==null?void 0:a.extend)==null?void 0:A.cp)==null?void 0:x.fo)+"mt, DO about: "+t.toDisplayString((E=(U=a==null?void 0:a.extend)==null?void 0:U.cp)==null?void 0:E.dgo)+"mt ",1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((p=a==null?void 0:a.extend)==null?void 0:p.segTimes,(pe,Yl)=>{var ml,hl,ji,ki,Ui,Si;return t.openBlock(),t.createElementBlock("div",{key:Yl,class:"segment-row text-secondary"},[t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(((ml=pe==null?void 0:pe.departure)==null?void 0:ml.portName)||((hl=pe.departure)==null?void 0:hl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((ji=pe==null?void 0:pe.departure)==null?void 0:ji.utcTime))+")",1)]),e[39]||(e[39]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",xm,[t.createElementVNode("span",null,t.toDisplayString(((ki=pe==null?void 0:pe.arrival)==null?void 0:ki.portName)||((Ui=pe.arrival)==null?void 0:Ui.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Si=pe==null?void 0:pe.arrival)==null?void 0:Si.utcTime))+")",1)])])}),128)),t.createElementVNode("table",pm,[e[47]||(e[47]=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[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",zm,t.toDisplayString((S=(j=a==null?void 0:a.goodWx)==null?void 0:j.outEca)==null?void 0:S.distance),1),t.createElementVNode("td",jm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.inEca)==null?void 0:w.distance),1),t.createElementVNode("td",null,t.toDisplayString((C=(B=a==null?void 0:a.allWx)==null?void 0:B.outEca)==null?void 0:C.distance),1),t.createElementVNode("td",null,t.toDisplayString((L=(Q=a==null?void 0:a.allWx)==null?void 0:Q.inEca)==null?void 0:L.distance),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",km,t.toDisplayString((_=(Z=a==null?void 0:a.goodWx)==null?void 0:Z.outEca)==null?void 0:_.time),1),t.createElementVNode("td",Um,t.toDisplayString((X=(H=a==null?void 0:a.goodWx)==null?void 0:H.inEca)==null?void 0:X.time),1),t.createElementVNode("td",null,t.toDisplayString((q=(K=a==null?void 0:a.allWx)==null?void 0:K.outEca)==null?void 0:q.time),1),t.createElementVNode("td",null,t.toDisplayString((F=(u=a==null?void 0:a.allWx)==null?void 0:u.inEca)==null?void 0:F.time),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((M=(et=a==null?void 0:a.goodWx)==null?void 0:et.outEca)==null?void 0:M.avgSpd)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((lt=(at=a==null?void 0:a.goodWx)==null?void 0:at.inEca)==null?void 0:lt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((nt=(ot=a==null?void 0:a.allWx)==null?void 0:ot.outEca)==null?void 0:nt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((st=(it=a==null?void 0:a.allWx)==null?void 0:it.inEca)==null?void 0:st.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((rt=(dt=a==null?void 0:a.goodWx)==null?void 0:dt.outEca)==null?void 0:rt.sumFoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((v=(y=a==null?void 0:a.goodWx)==null?void 0:y.inEca)==null?void 0:v.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(P=a==null?void 0:a.allWx)==null?void 0:P.outEca)==null?void 0:Nt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(yt=a==null?void 0:a.allWx)==null?void 0:yt.inEca)==null?void 0:Tt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hm,t.toDisplayString(((xt=(Vt=a==null?void 0:a.goodWx)==null?void 0:Vt.outEca)==null?void 0:xt.avgFoCons)||"--"),1),t.createElementVNode("td",Ym,t.toDisplayString(((St=(pt=a==null?void 0:a.goodWx)==null?void 0:pt.inEca)==null?void 0:St.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Ot=a==null?void 0:a.allWx)==null?void 0:Ot.outEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((V=(ct=a==null?void 0:a.allWx)==null?void 0:ct.inEca)==null?void 0:V.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",fm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.outEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",Qm,t.toDisplayString(((Qt=(ft=a==null?void 0:a.goodWx)==null?void 0:ft.inEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Rt=(wt=a==null?void 0:a.allWx)==null?void 0:wt.outEca)==null?void 0:Rt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Gt=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.inEca)==null?void 0:Gt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wm,t.toDisplayString(((Xt=(Ht=a==null?void 0:a.goodWx)==null?void 0:Ht.outEca)==null?void 0:Xt.avgDgoCons)||"--"),1),t.createElementVNode("td",Rm,t.toDisplayString(((qt=(Kt=a==null?void 0:a.goodWx)==null?void 0:Kt.inEca)==null?void 0:qt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ut=($t=a==null?void 0:a.allWx)==null?void 0:$t.outEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((te=(vt=a==null?void 0:a.allWx)==null?void 0:vt.inEca)==null?void 0:te.avgDgoCons)||"--"),1)])])]),(ee=a==null?void 0:a.goodWx)!=null&&ee.distance?(t.openBlock(),t.createElementBlock("table",Bm,[e[49]||(e[49]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[I],(pe,Yl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Yl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(pe,(ml,hl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:hl},[ml.goodWx?(t.openBlock(),t.createElementBlock("tr",Fm,[t.createElementVNode("td",null,t.toDisplayString(ml.type)+" "+t.toDisplayString(s.computeUTCTime(ml.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(ml),"MMM-DD/HHmm[Z],YYYY")),1),e[48]||(e[48]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(ml.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(ml.utc,s.computePrevTime(ml))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ae=n.exclusion[I])!=null&&ae.time?(t.openBlock(),t.createElementBlock("div",Gm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(le=a==null?void 0:a.goodWx)!=null&&le.distance?(t.openBlock(),t.createElementBlock("div",Pm,[t.createElementVNode("div",Wm,[e[59]||(e[59]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Lm,[(ne=(oe=l.report)==null?void 0:oe.weather)!=null&&ne.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor&&((ye=(Et=l.report)==null?void 0:Et.weather)!=null&&ye.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Jm,t.toDisplayString((ze=a==null?void 0:a.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(ke=(je=l.report)==null?void 0:je.weather)!=null&&ke.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ue=a==null?void 0:a.goodWx)==null?void 0:Ue.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgCf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgCf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgCf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Hm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(Ye=(he=l.report)==null?void 0:he.weather)!=null&&Ye.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Xm,t.toDisplayString((Be=a==null?void 0:a.goodWx)==null?void 0:Be.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgSpd),1),e[57]||(e[57]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgWf)>0?(Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.avgWf:`(${(Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgWf})`),1),(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.goodWx)==null?void 0:$a.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=a==null?void 0:a.goodWx)==null?void 0:ua.avgCf)>0?(va=a==null?void 0:a.goodWx)==null?void 0:va.avgCf:`(${(tl=a==null?void 0:a.goodWx)==null?void 0:tl.avgCf})`),1)],64)),e[58]||(e[58]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Km,t.toDisplayString((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(i=(ie=l.report)==null?void 0:ie.weather)!=null&&i.favorableCur&&((G=a==null?void 0:a.goodWx)==null?void 0:G.avgCf)>0?(t.openBlock(),t.createElementBlock("span",_m,t.toDisplayString((Me=a==null?void 0:a.goodWx)==null?void 0:Me.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Ct=a==null?void 0:a.goodWx)==null?void 0:Ct.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf)>0?(Ne=a==null?void 0:a.goodWx)==null?void 0:Ne.avgCf:`(${(ce=a==null?void 0:a.goodWx)==null?void 0:ce.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64))],64)),(ll=(al=l.report)==null?void 0:al.voyage)!=null&&ll.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ol=a==null?void 0:a.goodWx)==null?void 0:ol.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",qm,"(Under-performance)")):t.createCommentVNode("",!0),((nl=a==null?void 0:a.goodWx)==null?void 0:nl.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",$m,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",um,[e[76]||(e[76]=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",vm,[(sl=(il=l.report)==null?void 0:il.weather)!=null&&sl.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(bt=(m=l.report)==null?void 0:m.weather)!=null&&bt.disableWxFactor&&((de=(se=l.report)==null?void 0:se.weather)!=null&&de.disableCFactor)?(t.openBlock(),t.createElementBlock("label",tM,"GW Average Speed")):(Ae=(Ie=l.report)==null?void 0:Ie.weather)!=null&&Ae.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(Ge=l.report)==null?void 0:Ge.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[68]||(e[68]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[73]||(e[73]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"-",-1)),e[75]||(e[75]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=l.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=a==null?void 0:a.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(rl=(dl=l.report)==null?void 0:dl.weather)!=null&&rl.favorableCur&&((Nl=a==null?void 0:a.goodWx)==null?void 0:Nl.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"-",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",eM,[t.createElementVNode("div",aM,[e[82]||(e[82]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lM,[(Je=(_e=l.report)==null?void 0:_e.weather)!=null&&Je.favorableCur&&((He=a==null?void 0:a.allWx)==null?void 0:He.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((aa=a==null?void 0:a.allWx)==null?void 0:aa.avgSpd),1),e[80]||(e[80]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((la=a==null?void 0:a.allWx)==null?void 0:la.avgWf)>0?(oa=a==null?void 0:a.allWx)==null?void 0:oa.avgWf:`(${(na=a==null?void 0:a.allWx)==null?void 0:na.avgWf})`),1),e[81]||(e[81]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nM,t.toDisplayString((ia=a==null?void 0:a.allWx)==null?void 0:ia.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgCf)>0?(qe=a==null?void 0:a.allWx)==null?void 0:qe.avgCf:`(${($e=a==null?void 0:a.allWx)==null?void 0:$e.avgCf})`),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ue=a==null?void 0:a.allWx)==null?void 0:ue.avgWf)>0?(ve=a==null?void 0:a.allWx)==null?void 0:ve.avgWf:`(${(ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",oM,t.toDisplayString((ea=a==null?void 0:a.allWx)==null?void 0:ea.pfmSpd)+" (kts)",1)],64)),(da=(sa=l.report)==null?void 0:sa.voyage)!=null&&da.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ra=a==null?void 0:a.allWx)==null?void 0:ra.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",iM,"(Under-performance)")):t.createCommentVNode("",!0),((Na=a==null?void 0:a.allWx)==null?void 0:Na.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",sM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",dM,[e[92]||(e[92]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rM,[(ma=(ca=l.report)==null?void 0:ca.weather)!=null&&ma.favorableCur&&((Ma=a==null?void 0:a.allWx)==null?void 0:Ma.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[88]||(e[88]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"-",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[83]||(e[83]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Current Factor",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",NM,[t.createElementVNode("div",cM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Time Analysis",1),(ga=(Da=l.report)==null?void 0:Da.weather)!=null&&ga.noExtrapolation?(t.openBlock(),t.createElementBlock("span",mM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",MM,[t.createElementVNode("div",DM,[e[96]||(e[96]=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",gM,[t.createElementVNode("div",IM,[t.createElementVNode("div",null,t.toDisplayString((Ea=(Ia=l.report)==null?void 0:Ia.weather)!=null&&Ea.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[93]||(e[93]=t.createElementVNode("div",{class:"line"},null,-1)),e[94]||(e[94]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[95]||(e[95]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",EM,[t.createElementVNode("div",yM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Aa=(ya=a==null?void 0:a.extend)==null?void 0:ya.cp)==null?void 0:Aa.speed,"Under"))+"kts)",1),e[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",AM,[t.createElementVNode("div",TM,[t.createElementVNode("div",null,t.toDisplayString((Va=(Ta=l.report)==null?void 0:Ta.weather)!=null&&Va.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(pa=(xa=a==null?void 0:a.extend)==null?void 0:xa.cp)==null?void 0:pa.speed,"Under"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",VM,[t.createElementVNode("div",xM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ja=(za=a==null?void 0:a.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Over"))+"kts)",1),e[100]||(e[100]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",pM,[t.createElementVNode("div",zM,[t.createElementVNode("div",null,t.toDisplayString((Ua=(ka=l.report)==null?void 0:ka.weather)!=null&&Ua.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[101]||(e[101]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+"kts",1)]),e[102]||(e[102]=t.createElementVNode("div",null,"(c)",-1))])]),e[103]||(e[103]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-40252024><div class="flex-space" style="width:300px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Lost</label><div data-v-40252024>=</div><div data-v-40252024>(a)</div><div data-v-40252024>-</div><div data-v-40252024>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Gained</label><div data-v-40252024>=</div><div data-v-40252024>(c)</div><div data-v-40252024>-</div><div data-v-40252024>(a)</div></div></div>',1))]),t.createElementVNode("div",jM,[t.createElementVNode("div",kM,[e[104]||(e[104]=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(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",UM,[e[105]||(e[105]=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(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",SM,[e[106]||(e[106]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Qa=(fa=a==null?void 0:a.extend)==null?void 0:fa.cp)==null?void 0:Qa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ra=(wa=a==null?void 0:a.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Under"))+" kts) ",1)])]),(Ba=a==null?void 0:a.goodWx)!=null&&Ba.distance?(t.openBlock(),t.createElementBlock("div",CM,[t.createElementVNode("div",bM,[e[110]||(e[110]=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",OM,[t.createElementVNode("div",hM,[t.createElementVNode("div",null,t.toDisplayString((Ga=(Fa=l.report)==null?void 0:Fa.weather)!=null&&Ga.noExtrapolation?(Pa=a==null?void 0:a.goodWx)==null?void 0:Pa.distance:(Wa=a==null?void 0:a.allWx)==null?void 0:Wa.distance),1),e[107]||(e[107]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((La=a==null?void 0:a.goodWx)==null?void 0:La.pfmSpd),1)]),e[108]||(e[108]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((d=a==null?void 0:a.timeConclusion)==null?void 0:d.timeAtPfmSpd)+" (hrs)",1),e[109]||(e[109]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",YM,[t.createElementVNode("div",fM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(O=(b=a==null?void 0:a.extend)==null?void 0:b.cp)==null?void 0:O.speed,"Under"))+"kts)",1),e[111]||(e[111]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",QM,[t.createElementVNode("div",wM,[t.createElementVNode("div",null,t.toDisplayString((Y=(h=l.report)==null?void 0:h.weather)!=null&&Y.noExtrapolation?(f=a==null?void 0:a.goodWx)==null?void 0:f.distance:(R=a==null?void 0:a.allWx)==null?void 0:R.distance),1),e[112]||(e[112]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.minusAbtSpd),1)]),e[113]||(e[113]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((J=a==null?void 0:a.timeConclusion)==null?void 0:J.timeAtMinusAbtSpd)+" (hrs)",1),e[114]||(e[114]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",RM,[t.createElementVNode("div",BM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(mt=(tt=a==null?void 0:a.extend)==null?void 0:tt.cp)==null?void 0:mt.speed,"Over"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",FM,[t.createElementVNode("div",GM,[t.createElementVNode("div",null,t.toDisplayString((Dt=(Mt=l.report)==null?void 0:Mt.weather)!=null&&Dt.noExtrapolation?(gt=a==null?void 0:a.goodWx)==null?void 0:gt.distance:(zt=a==null?void 0:a.allWx)==null?void 0:zt.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.plusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtPlusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",PM,[((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",WM,[e[119]||(e[119]=t.createElementVNode("div",null,"Time Lost",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),e[121]||(e[121]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[123]||(e[123]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeAtMinusAbtSpd),1),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.timeLost)+" (hrs)",1)])):((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",LM,[e[125]||(e[125]=t.createElementVNode("div",null,"Time Lost",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),e[127]||(e[127]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.timeAtPlusAbtSpd),1),e[129]||(e[129]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Te=a==null?void 0:a.timeConclusion)==null?void 0:Te.timeAtPfmSpd),1),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=a==null?void 0:a.timeConclusion)==null?void 0:Ve.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",ZM,[e[131]||(e[131]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Za=a==null?void 0:a.timeConclusion)==null?void 0:Za.conclusionStatus)==="Lost"?"lost":((Ml=a==null?void 0:a.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Dl=a==null?void 0:a.timeConclusion)==null?void 0:Dl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",_M,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",JM,[t.createElementVNode("div",HM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Consumption Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(t.openBlock(),t.createElementBlock("span",XM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",KM,[t.createElementVNode("div",qM,[e[137]||(e[137]=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",uM,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[132]||(e[132]=t.createElementVNode("div",{class:"line"},null,-1)),e[133]||(e[133]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[134]||(e[134]=t.createElementVNode("div",null,"x",-1)),e[135]||(e[135]=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[136]||(e[136]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",vM,[e[138]||(e[138]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Tl=(Al=a.extend)==null?void 0:Al.cp)==null?void 0:Tl.dgo)>0?(t.openBlock(),t.createElementBlock("div",tD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[e[143]||(e[143]=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",aD,[t.createElementVNode("div",lD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[139]||(e[139]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Under"))+"kts",1)]),e[140]||(e[140]=t.createElementVNode("div",null,"x",-1)),e[141]||(e[141]=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[142]||(e[142]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",oD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nD,[t.createElementVNode("div",iD,[t.createElementVNode("div",null,t.toDisplayString((kl=(jl=l.report)==null?void 0:jl.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[144]||(e[144]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Sl=(Ul=a==null?void 0:a.extend)==null?void 0:Ul.cp)==null?void 0:Sl.speed,"Over"))+"kts",1)]),e[145]||(e[145]=t.createElementVNode("div",null,"x",-1)),e[146]||(e[146]=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[147]||(e[147]=t.createElementVNode("div",null,"(f)",-1))])]),e[155]||(e[155]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-40252024><div class="flex-space" style="width:240px;" data-v-40252024><label data-v-40252024>Fuel Over-consumption</label><div data-v-40252024>=</div><div data-v-40252024>(d)</div><div data-v-40252024>-</div><div data-v-40252024>(e)</div></div><div class="flex-space" style="width:200px;" data-v-40252024><label data-v-40252024>Fuel Saving</label><div data-v-40252024>=</div><div data-v-40252024>(f)</div><div data-v-40252024>-</div><div data-v-40252024>(d)</div></div></div>',1)),((bl=(Cl=a.extend)==null?void 0:Cl.cp)==null?void 0:bl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",rD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(Ol=l.report)==null?void 0:Ol.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ND,[e[154]||(e[154]=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",cD,[t.createElementVNode("div",mD,[e[152]||(e[152]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wl=(Ql=l.report)==null?void 0:Ql.weather)!=null&&wl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[239]||(e[239]=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",MD,"Seg. "+t.toDisplayString(I+1)+" Fuel Oil",1),(Rl=a==null?void 0:a.goodWx)!=null&&Rl.distance?(t.openBlock(),t.createElementBlock("div",DD,[((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.distance)>0?(t.openBlock(),t.createElementBlock("div",gD,[e[161]||(e[161]=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",ID,[t.createElementVNode("div",ED,[t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.sumDgoCons),1)]),e[158]||(e[158]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",yD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=a==null?void 0:a.extend)==null?void 0:Wl.cp)==null?void 0:Ll.dgo),1),e[156]||(e[156]=t.createElementVNode("div",{class:"line"},null,-1)),e[157]||(e[157]=t.createElementVNode("div",null,"24",-1))]),e[159]||(e[159]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((_l=(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.inEca)==null?void 0:_l.time),1),e[160]||(e[160]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hl=(Jl=a==null?void 0:a.fuelConclusion)==null?void 0:Jl.fo)==null?void 0:Hl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",AD,[e[168]||(e[168]=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",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((Kl=(Xl=l.report)==null?void 0:Xl.weather)!=null&&Kl.noExtrapolation?(ql=a==null?void 0:a.goodWx)==null?void 0:ql.distance:($l=a==null?void 0:a.allWx)==null?void 0:$l.distance),1),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.pfmSpd),1)]),e[165]||(e[165]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((vl=a==null?void 0:a.goodWx)==null?void 0:vl.sumFoCons),1),((eo=(to=a==null?void 0:a.goodWx)==null?void 0:to.inEca)==null?void 0:eo.distance)>0?(t.openBlock(),t.createElementBlock("span",pD,[e[163]||(e[163]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((lo=(ao=a==null?void 0:a.fuelConclusion)==null?void 0:ao.fo)==null?void 0:lo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[164]||(e[164]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=a==null?void 0:a.goodWx)==null?void 0:oo.time),1)]),e[166]||(e[166]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((io=(no=a.fuelConclusion)==null?void 0:no.fo)==null?void 0:io.entireCons)+" (mt)",1),e[167]||(e[167]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",zD,[e[175]||(e[175]=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",jD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((ro=(so=l.report)==null?void 0:so.weather)!=null&&ro.noExtrapolation?(No=a==null?void 0:a.goodWx)==null?void 0:No.distance:(co=a==null?void 0:a.allWx)==null?void 0:co.distance),1),e[169]||(e[169]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mo=a==null?void 0:a.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),e[172]||(e[172]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Do=(Mo=a==null?void 0:a.fuelConclusion)==null?void 0:Mo.fo)==null?void 0:Do.overTolerance),1),e[170]||(e[170]=t.createElementVNode("div",{class:"line"},null,-1)),e[171]||(e[171]=t.createElementVNode("div",null,"24",-1))]),e[173]||(e[173]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.maxCons)+" (mt)",1),e[174]||(e[174]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",SD,[e[182]||(e[182]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=l.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=a==null?void 0:a.goodWx)==null?void 0:Ao.distance:(To=a==null?void 0:a.allWx)==null?void 0:To.distance),1),e[176]||(e[176]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=a==null?void 0:a.timeConclusion)==null?void 0:Vo.plusAbtSpd),1)]),e[179]||(e[179]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.underTolerance),1),e[177]||(e[177]=t.createElementVNode("div",{class:"line"},null,-1)),e[178]||(e[178]=t.createElementVNode("div",null,"24",-1))]),e[180]||(e[180]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.minCons)+" (mt)",1),e[181]||(e[181]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",hD,[((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",YD,[e[183]||(e[183]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),e[185]||(e[185]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(So=a==null?void 0:a.fuelConclusion)==null?void 0:So.fo)==null?void 0:Co.entireCons),1),e[187]||(e[187]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Oo=(bo=a==null?void 0:a.fuelConclusion)==null?void 0:bo.fo)==null?void 0:Oo.maxCons),1),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1)]),(Qo=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&Qo.distance?(t.openBlock(),t.createElementBlock("div",fD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",null,t.toDisplayString((Ro=(wo=a==null?void 0:a.goodWx)==null?void 0:wo.inEca)==null?void 0:Ro.distance)+" * "+t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.overCons),1),e[189]||(e[189]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Po=(Go=l.report)==null?void 0:Go.weather)!=null&&Po.noExtrapolation?(Wo=a==null?void 0:a.goodWx)==null?void 0:Wo.distance:(Lo=a==null?void 0:a.allWx)==null?void 0:Lo.distance),1)]),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wD,[e[193]||(e[193]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ko=(Xo=a==null?void 0:a.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.minCons),1),e[197]||(e[197]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString(($o=(qo=a==null?void 0:a.fuelConclusion)==null?void 0:qo.fo)==null?void 0:$o.entireCons),1),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=(uo=a==null?void 0:a.fuelConclusion)==null?void 0:uo.fo)==null?void 0:vo.saving)+" (mt)",1)]),(en=(tn=a==null?void 0:a.goodWx)==null?void 0:tn.inEca)!=null&&en.distance?(t.openBlock(),t.createElementBlock("div",RD,[e[200]||(e[200]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[201]||(e[201]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",BD,[t.createElementVNode("div",null,t.toDisplayString((ln=(an=l.report)==null?void 0:an.weather)!=null&&ln.noExtrapolation?(nn=(on=a==null?void 0:a.goodWx)==null?void 0:on.inEca)==null?void 0:nn.distance:(dn=(sn=a==null?void 0:a.allWx)==null?void 0:sn.inEca)==null?void 0:dn.distance)+" * "+t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.saving),1),e[199]||(e[199]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mn=(cn=l.report)==null?void 0:cn.weather)!=null&&mn.noExtrapolation?(Mn=a==null?void 0:a.goodWx)==null?void 0:Mn.distance:(Dn=a==null?void 0:a.allWx)==null?void 0:Dn.distance),1)]),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((yn=(En=a==null?void 0:a.fuelConclusion)==null?void 0:En.fo)==null?void 0:yn.conclusionStatus)==="Over"?"flex-center lost":((Tn=(An=a==null?void 0:a.fuelConclusion)==null?void 0:An.fo)==null?void 0:Tn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[203]||(e[203]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((xn=(Vn=a==null?void 0:a.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:xn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",FD,t.toDisplayString(n.noGoodWxDay),1)),((zn=(pn=a==null?void 0:a.extend)==null?void 0:pn.cp)==null?void 0:zn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[e[204]||(e[204]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",WD,"Seg. "+t.toDisplayString(I+1)+" Diesel/Gas Oil",1)])]),(jn=a==null?void 0:a.goodWx)!=null&&jn.distance?(t.openBlock(),t.createElementBlock("div",LD,[t.createElementVNode("div",ZD,[e[211]||(e[211]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((Un=(kn=l.report)==null?void 0:kn.weather)!=null&&Un.noExtrapolation?(Sn=a==null?void 0:a.goodWx)==null?void 0:Sn.distance:(Cn=a==null?void 0:a.allWx)==null?void 0:Cn.distance),1),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((bn=a==null?void 0:a.goodWx)==null?void 0:bn.pfmSpd),1)]),e[208]||(e[208]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((On=a==null?void 0:a.goodWx)==null?void 0:On.sumDgoCons),1),((Yn=(hn=a==null?void 0:a.goodWx)==null?void 0:hn.inEca)==null?void 0:Yn.distance)>0?(t.openBlock(),t.createElementBlock("span",XD,[e[206]||(e[206]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Qn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Qn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[207]||(e[207]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wn=a==null?void 0:a.goodWx)==null?void 0:wn.time),1)]),e[209]||(e[209]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bn=(Rn=a.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.entireCons)+" (mt)",1),e[210]||(e[210]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",KD,[e[218]||(e[218]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Gn=(Fn=l.report)==null?void 0:Fn.weather)!=null&&Gn.noExtrapolation?(Pn=a==null?void 0:a.goodWx)==null?void 0:Pn.distance:(Wn=a==null?void 0:a.allWx)==null?void 0:Wn.distance),1),e[212]||(e[212]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ln=a==null?void 0:a.timeConclusion)==null?void 0:Ln.minusAbtSpd),1)]),e[215]||(e[215]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((_n=(Zn=a==null?void 0:a.fuelConclusion)==null?void 0:Zn.dgo)==null?void 0:_n.overTolerance),1),e[213]||(e[213]=t.createElementVNode("div",{class:"line"},null,-1)),e[214]||(e[214]=t.createElementVNode("div",null,"24",-1))]),e[216]||(e[216]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hn=(Jn=a.fuelConclusion)==null?void 0:Jn.dgo)==null?void 0:Hn.maxCons)+" (mt)",1),e[217]||(e[217]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",vD,[e[225]||(e[225]=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",t1,[t.createElementVNode("div",e1,[t.createElementVNode("div",null,t.toDisplayString((Kn=(Xn=l.report)==null?void 0:Xn.weather)!=null&&Kn.noExtrapolation?(qn=a==null?void 0:a.goodWx)==null?void 0:qn.distance:($n=a==null?void 0:a.allWx)==null?void 0:$n.distance),1),e[219]||(e[219]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((un=a==null?void 0:a.timeConclusion)==null?void 0:un.plusAbtSpd),1)]),e[222]||(e[222]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",a1,[t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.underTolerance),1),e[220]||(e[220]=t.createElementVNode("div",{class:"line"},null,-1)),e[221]||(e[221]=t.createElementVNode("div",null,"24",-1))]),e[223]||(e[223]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.minCons)+" (mt)",1),e[224]||(e[224]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",l1,[((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",o1,[e[226]||(e[226]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),e[228]||(e[228]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.entireCons),1),e[230]||(e[230]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.maxCons),1),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.overCons),1)])):((mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:mi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",n1,[e[232]||(e[232]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),e[234]||(e[234]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.minCons),1),e[236]||(e[236]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.entireCons),1),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Ti=(Ai=a==null?void 0:a.fuelConclusion)==null?void 0:Ai.dgo)==null?void 0:Ti.conclusionStatus)==="Over"?"flex-center lost":((xi=(Vi=a==null?void 0:a.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:xi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[238]||(e[238]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((zi=(pi=a==null?void 0:a.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:zi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",i1,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const d1=xe(mc,[["render",s1],["__scopeId","data-v-40252024"]]),gU="",r1={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"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{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`${At(o).utc().format(e)}`}},computeLng(){return function(o){return $.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return $.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?$.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,s,D,r,c,T,a,I;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((r=(D=this.report)==null?void 0:D.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((I=(a=this.report)==null?void 0:a.weather)==null?void 0:I.waterTempSwitch)||!1}}},N1={class:"report-inventory"},c1={class:"section summary-section"},m1={class:"summary-block"},M1={class:"orm-report-table inventory-table"},D1={class:"label",rowspan:"4"},g1={class:"section inventory-section"},I1={class:"orm-report-table inventory-table detail"},E1=["colspan"],y1={key:0,class:"label",colspan:"2"},A1={key:0,class:"label",rowspan:"2"},T1={key:1,class:"label",rowspan:"2"},V1={key:2,class:"label",rowspan:"2"},x1={key:3,class:"label",colspan:"2"},p1={key:4,class:"label",rowspan:"2"},z1={key:5,class:"label",colspan:"2"},j1={key:6,class:"label",rowspan:"2"},k1={key:7,class:"label",rowspan:"2"},U1={key:8,class:"label",rowspan:"2"},S1={key:0,class:"label"},C1={key:1,class:"label"},b1={key:2,class:"label"},O1={key:3,class:"label"},h1={class:"summary-tbody"};function Y1(o,e,l,N,n,s){var D;return t.openBlock(),t.createElementBlock("div",N1,[t.createElementVNode("div",c1,[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",m1,[t.createElementVNode("table",M1,[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((D=l.report)==null?void 0:D.segments,(r,c)=>{var T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",D1,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((I=r==null?void 0:r.allWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=r==null?void 0:r.allWx)==null?void 0:z.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(s.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=r==null?void 0:r.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.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(s.computePrecision((j=r==null?void 0:r.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=r==null?void 0:r.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((B=r==null?void 0:r.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((C=r==null?void 0:r.excluded)==null?void 0:C.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((_=r==null?void 0:r.excluded)==null?void 0:_.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",g1,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> 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",I1,[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:s.computeWxColspan},"ORM Weather Analysis",8,E1),l.showFactor?(t.openBlock(),t.createElementBlock("th",y1,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",A1,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",T1,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",V1,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",x1,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",p1,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",z1,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(t.openBlock(),t.createElementBlock("th",j1,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",k1,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",U1,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",S1,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",C1,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",b1,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",O1,[...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",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,c)=>{var T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((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(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((k=(I=r.meteo)==null?void 0:I.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(z=r.meteo)==null?void 0:z.wind)==null?void 0:A.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(U=(x=r.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(j=(p=r.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(w=(g=r.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((L=(Q=(C=r.meteo)==null?void 0:C.wave)==null?void 0:Q.sig)==null?void 0:L.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((_=(Z=r.meteo)==null?void 0:Z.current)==null?void 0:_.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((H=r.meteo)==null?void 0:H.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((X=r.meteo)==null?void 0:X.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((K=r.meteo)==null?void 0:K.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((q=r.meteo)==null?void 0:q.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const f1=xe(r1,[["render",Y1],["__scopeId","data-v-dea0638a"]]),IU="",Q1={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`${At(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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.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(hi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(hi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(hi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var I,k,z,A,x,U;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const D=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var j,S;p===0&&r.push(E.utc),E.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[p+1])==null?void 0:S.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const j=At(r[p+1]).diff(At(r[p]),"minute",!0);for(let S=0;S<=j+1;S++)e.push(this.computeUTCTime(At(r[p]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((E,p)=>{var S,g,w,B,C,Q,L,Z,_,H,X,K,q,u;const j=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(F=>F.slice(0,5)===E.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==E.utc.slice(5,10)),o.push(j)),n=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>n?(g=E.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=E.cp)==null?void 0:w.fo)>n?(B=E.cp)==null?void 0:B.fo:n),s=Math.ceil(((C=E.noon)==null?void 0:C.dgoCons)>s?(Q=E.noon)==null?void 0:Q.dgoCons:s),s=Math.ceil(((L=E.cp)==null?void 0:L.dgo)>s?(Z=E.cp)==null?void 0:Z.dgo:s),l.push([j,(_=E.noon)==null?void 0:_.avgSpd,(H=E.noon)==null?void 0:H.foCons,(X=E.noon)==null?void 0:X.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<D.length-1){const F=D[p+1];l.push([j,(K=F.noon)==null?void 0:K.avgSpd,(q=F.noon)==null?void 0:q.foCons,(u=F.noon)==null?void 0:u.dgoCons,F.avgSpdCalc,F.cp.speed,F.goodWx&&!F.excluded?100:0,F.cp.dgo,F.cp.fo,F.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%c===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:n+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(k=(I=this.report)==null?void 0:I.weather)!=null&&k.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(T);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:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(x=(A=this.report)==null?void 0:A.weather)!=null&&x.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],D=[];s.forEach((A,x)=>{var U,E;x===0&&D.push(A.utc),A.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(A.utc),D.push((E=s[x+1])==null?void 0:E.utc)),x===s.length-1&&D.push(A.utc)}),D.forEach((A,x)=>{if(x%2===0){const U=At(D[x+1]).diff(At(D[x]),"minute",!0);for(let E=0;E<=U+1;E++)e.push(this.computeUTCTime(At(D[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((A,x)=>{var E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v;const U=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(P=>P.slice(0,5)===A.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(P=>P.slice(0,5)!==A.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(E=A.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(w=(g=(S=A.meteo)==null?void 0:S.wave)==null?void 0:g.sig)==null?void 0:w.height:n),l.push([U,((B=A.noon)==null?void 0:B.windBF)||((Q=(C=A.meteo)==null?void 0:C.wind)==null?void 0:Q.scale),(Z=(L=A.meteo)==null?void 0:L.wind)==null?void 0:Z.scale,(H=(_=A.meteo)==null?void 0:_.wind)==null?void 0:H.direction,(X=A.noon)==null?void 0:X.seasHt,(u=(q=(K=A.meteo)==null?void 0:K.wave)==null?void 0:q.sig)==null?void 0:u.height,A.dailyAvgCf??((F=l[l.length-1])==null?void 0:F[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),x<s.length-1){const P=s[x+1];l.push([U,((et=A.noon)==null?void 0:et.windBF)||((at=(M=A.meteo)==null?void 0:M.wind)==null?void 0:at.scale),(ot=(lt=P.meteo)==null?void 0:lt.wind)==null?void 0:ot.scale,(it=(nt=P.meteo)==null?void 0:nt.wind)==null?void 0:it.direction,(st=P.noon)==null?void 0:st.seasHt,(y=(rt=(dt=A.meteo)==null?void 0:dt.wave)==null?void 0:rt.sig)==null?void 0:y.height,P.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[N.anlyCurFct]),P.goodWx&&!P.excluded?20:0,P.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,x)=>x===0||x===o.length-1||x%r===0);let c=-2.5,T=2.5,a=1,I=5;c<-2.5||T>2.5?(c=Math.floor(this.findMinValue(l,6)/5)*5,T=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(c),Math.abs(T)])/5),I=Math.ceil(Math.abs(c)/a)+Math.ceil(Math.abs(T)/a)):(a=.5,c=Math.floor(this.findMinValue(l,6)/.5)*a,T=2.5,I=Math.abs(c)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:a,splitNumber:I,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:I,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(A,x)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:I,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,x)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},w1={class:"report-summary"},R1={class:"section chart-section"},B1={class:"chart-block"},F1={ref:"spdFoConsChart",class:"chart"},G1={ref:"spdDgoConsChart",class:"chart"},P1={ref:"currChart",class:"chart"},W1={class:"section map-section"},L1={class:"map-block"},Z1={class:"flex-space"},_1={class:"voyage-block bg-blue-light"},J1={class:"flex-space label-block",style:{width:"100%"}},H1={style:{"text-transform":"uppercase"}},X1={class:"flex-space label-block",style:{width:"100%"}},K1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},q1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},$1={class:"flex-space label-block",style:{width:"100%"}},u1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},v1={class:"flex-space label-block",style:{width:"100%"}},tg={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"}},og={class:"flex-end",style:{width:"160px"}},ng={class:"flex-space label-block",style:{width:"100%"}},ig={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},sg=["src"];function dg(o,e,l,N,n,s){var D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q;return t.openBlock(),t.createElementBlock("div",w1,[t.createElementVNode("div",R1,[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",B1,[t.createElementVNode("div",F1,null,512),t.createElementVNode("div",G1,null,512),t.createElementVNode("div",P1,null,512)])]),t.createElementVNode("div",W1,[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",L1,[t.createElementVNode("div",Z1,[t.createElementVNode("div",_1,[t.createElementVNode("div",J1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",H1,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",X1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",K1,t.toDisplayString((r=(D=l.report)==null?void 0:D.vessel)==null?void 0:r.name),1),t.createElementVNode("span",q1,"("+t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",$1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",u1,t.toDisplayString((I=(a=l.report)==null?void 0:a.voyage)==null?void 0:I.number),1)]),t.createElementVNode("div",v1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",tg,t.toDisplayString(((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.portName)||((x=(A=l.report)==null?void 0:A.departure)==null?void 0:x.name)),1),t.createElementVNode("span",eg,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ag,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",lg,t.toDisplayString(((p=(E=l.report)==null?void 0:E.arrival)==null?void 0:p.portName)||((S=(j=l.report)==null?void 0:j.arrival)==null?void 0:S.name)),1),t.createElementVNode("span",og,t.toDisplayString(s.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ng,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ig,t.toDisplayString((C=(B=l.report)==null?void 0:B.voyage)==null?void 0:C.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-34b7edf0><div data-v-34b7edf0>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>08/12</div><div data-v-34b7edf0><div data-v-34b7edf0>08 - Day of the month</div><div data-v-34b7edf0>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-34b7edf0></i></div><div data-v-34b7edf0><div data-v-34b7edf0>Wind from N (000)</div><div data-v-34b7edf0>Each bard = 10 kts</div><div data-v-34b7edf0>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>W 4</div><div data-v-34b7edf0>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div class="good-wx" data-v-34b7edf0>Date</div><div data-v-34b7edf0>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=l.report)==null?void 0:Q.chartUrl,alt:""},null,8,sg)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0> 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-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const rg=xe(Q1,[["render",dg],["__scopeId","data-v-34b7edf0"]]),EU="",yU="",Ng={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`${At(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var c,T;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(I=>{const k=`<p>${I}</p>`;N=N+k}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,r=(s==null?void 0:s.offsetHeight)||0;if(D<=r){let I=`<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(It,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(It=typeof globalThis<"u"?globalThis:It||self,t(It["idmui-extend"]={},It.Vue,It["@wangeditor/editor-for-vue"],It["@idmui/basic"],It.moment,It.echarts,It["@idm-plugin/geo"],It.axios,It.MdEditorV3))})(this,function(It,t,fi,_a,At,Sd,$,Yi,Qi){"use strict";function Cd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const hi=Cd(Sd),NU="",xe=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},bd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Od={class:"editor-box"};function hd(o,e,l,N,n,s){const D=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Od,[t.withDirectives(t.createVNode(D,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=xe(bd,[["render",hd],["__scopeId","data-v-80104052"]]),Yd={install(o){o.component("IdmEditor",cl)}},cU="";/*! Element Plus Icons Vue v2.3.2 */var fd=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Qd=fd,wd=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Rd=wd;const mU="",Bd={name:"PlanReport",components:{Editor:cl,IdmBrand:_a.IdmBrand,IdmLoading:_a.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`${At(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=$.LngLatHelper.guessTimeZoneOffset(e,l)),`${At(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,s,D;if(e===0)return"-";{const r=At((n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.eta).diff(At((D=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,s,D,r,c;if(e===0)return"-";{const T=Number((s=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((c=(r=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:r.speed)==null?void 0:c.cost.total);return`${(Math.round(T/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o){const{label:e,v0:l,argv:N,sample:n}=o,s=n==null?void 0:n.wps,D=[];for(let r=0;r<(s==null?void 0:s.length);r++){const c=s[r],T=s[r-1];T&&(c.avgBearing=T.bearing),r===0&&(c.label=`${e}: ${l}`),D.push(c),c.suspend&&(N!=null&&N.useRouteParam)&&D.push({etd:c.etd,eta:c.etd,isResume:!0,memo:`Stoppage: ${c.suspend}hrs`}),c.velocity&&(N!=null&&N.useRouteParam)&&(c.label=`Spd: ${c.velocity}`)}return D}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,D,r,c;const l=(c=(r=(D=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:D.speed)==null?void 0:r.sample)==null?void 0:c.hours,N=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(At(n==null?void 0:n.eta).diff(At(N==null?void 0:N.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,N;let e=0;return(N=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||N.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":$.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>$.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>$.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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,s,D,r,c,T,a,I,k,z,A,x,U,E,p,j;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((r=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:r.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((I=(a=o.meteo)==null?void 0:a.wind)==null?void 0:I.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&x.wind&&((E=(U=o.meteo)==null?void 0:U.wind)==null?void 0:E.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,s,D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((D=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:D.height)>=((c=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&a.sigWv&&((z=(k=(I=o.meteo)==null?void 0:I.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:x.sigWv)?e="bg-severe":(E=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&E.sigWv&&((S=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:S.height)>=((w=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:w.sigWv)&&(e="bg-heavy"),e}},computedVisClass(){return o=>{var l,N;let e="";return((l=o.meteo)==null?void 0:l.visibility)<=2?e="bg-severe":((N=o.meteo)==null?void 0:N.visibility)<=5&&(e="bg-heavy"),e}},isArctic(){var o,e,l,N;return(N=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:N.isArctic}},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=hi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,j,S,g,w,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let N=4;(w=(g=(S=(j=(p=(E=this.plan)==null?void 0:E.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:S.sample)==null?void 0:g.hours)==null||w.forEach(C=>{var L,Z,_,H,X,K,q,u,F,et;const Q=C.meteo;if(Q){const M=At(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(M),N=Math.ceil(((Z=(L=Q.wave)==null?void 0:L.sig)==null?void 0:Z.height)>N?(H=(_=Q.wave)==null?void 0:_.sig)==null?void 0:H.height:N),e.push([M,(X=Q.wind)==null?void 0:X.kts,(q=(K=Q.wave)==null?void 0:K.sig)==null?void 0:q.height,(u=Q.wind)==null?void 0:u.direction,(F=Q.wind)==null?void 0:F.degree,(et=Q.wind)==null?void 0:et.scale,C.cFactor,C.wFactor,C.speed])}});const n=Math.max(...e.map(C=>C[l.speed])),s=Math.max(...e.map(C=>C[l.windSpeed])),D=Math.min(...e.map(C=>C[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(C=>C[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(C=>C[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,T=Math.ceil(s/5/5)*5,a=Math.ceil(N/5/.5)*.5,I=Math.ceil((r-D)/5/.5)*.5,k=5*c,z=5*T,A=5*a,x=D+5*I,U={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:k,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:T,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:A,splitNumber:5,interval: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:D,max:x,splitNumber:5,interval:I,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Fd={class:"orm-plan-report"},Gd={key:0,class:"loading-block"},Pd={class:"info-block"},Wd={class:"col"},Ld={class:"label-block"},Zd={class:"text"},_d={class:"label-block"},Jd={class:"text"},Hd={key:0},Xd={class:"label-block"},Kd={class:"text"},qd={class:"col"},$d={class:"label-block"},ud={key:0},vd={key:1},tr={style:{"margin-left":"16px"}},er={class:"label-block"},ar={key:0},lr={key:1},or={style:{"margin-left":"16px"}},nr={class:"label-block"},ir={class:"text"},sr={class:"section chart-section"},dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},rr={style:{"margin-right":"8px"}},Nr=["src"],cr=["src"],mr={key:1,class:"empty"},Mr={class:"section comparison-section"},Dr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},gr={key:0},Ir=["rowspan"],Er={key:0},yr={key:1},Ar={rowspan:"2"},Tr={rowspan:"2"},Vr={key:0},xr={key:1},pr={rowspan:"1"},zr={key:0},jr={rowspan:"2"},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={key:0},Cr={key:0},br=["rowspan"],Or={key:0},hr={rowspan:"1"},Yr={key:0},fr={key:0},Qr={key:1},wr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Rr={key:0},Br={key:0,class:"section waypoint-section"},Fr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Gr={class:"bg-block"},Pr={class:"block-title"},Wr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Lr=["onClick"],Zr={class:"advisory bg-blue-light-2"},_r=["innerHTML"],Jr={class:"major-waypoint"},Hr={class:"major-header bg-blue-light-2"},Xr={key:0,class:"cell-item flex"},Kr={key:1,class:"cell-item flex"},qr={class:"major-body"},$r={class:"cell-item flex",style:{flex:"2.5"}},ur={key:0,class:"flex-center"},vr={key:1,class:"flex-center"},tN={key:0,style:{"margin-left":"3px"}},eN={class:"cell-item flex",style:{flex:"2"}},aN={key:0,style:{"margin-left":"4px","font-weight":"600"}},lN={key:1,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},sN={key:3,class:"cell-item flex nbsp"},dN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},mN={key:6,class:"cell-item flex offset"},MN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN={key:0,rowspan:"2",colspan:"1"},kN=["colspan"],UN={key:1,colspan:"2"},SN={key:0},CN={key:1},bN={key:2},ON={style:{padding:"8px 0"}},hN={class:"flex-center"},YN={key:0,class:"degree-box"},fN={key:1},QN={key:1},wN={key:0,class:"degree-box"},RN={key:1},BN={class:""},FN={key:0,class:"degree-box"},GN={key:1},PN={key:0,class:"degree-box"},WN={key:1},LN={key:2},ZN={key:3};function _N(o,e,l,N,n,s){var a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt,ct,V,ht,Yt,ft,Qt,wt,Rt,Ft,Gt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,G,Ct,re,Ne,ce,me,Me,De,ge,Et,ye,ze,je,ke,Ue,Se,Ce,be,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,rl,Nl;const D=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(D,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Gd,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[t.createElementVNode("div",Ld,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Zd,t.toDisplayString((z=(k=(I=l.plan)==null?void 0:I.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",_d,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Jd,[t.createTextVNode(t.toDisplayString((E=(U=(x=(A=l.plan)==null?void 0:A.voyage)==null?void 0:x.vessel)==null?void 0:U.name)==null?void 0:E.toUpperCase())+" ",1),(g=(S=(j=(p=l.plan)==null?void 0:p.voyage)==null?void 0:j.vessel)==null?void 0:S.vesselType)!=null&&g.name?(t.openBlock(),t.createElementBlock("span",Hd,"("+t.toDisplayString((Q=(C=(B=(w=l.plan)==null?void 0:w.voyage)==null?void 0:B.vessel)==null?void 0:C.vesselType)==null?void 0:Q.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Xd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Kd,t.toDisplayString(((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.voyNum)||((H=(_=l.plan)==null?void 0:_.voyage)==null?void 0:H.number)),1)])]),t.createElementVNode("div",qd,[t.createElementVNode("div",$d,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(q=(K=(X=l.plan)==null?void 0:X.leg)==null?void 0:K.departure)!=null&&q.name?(t.openBlock(),t.createElementBlock("span",ud,t.toDisplayString((et=(F=(u=l.plan)==null?void 0:u.leg)==null?void 0:F.departure)==null?void 0:et.name),1)):(t.openBlock(),t.createElementBlock("span",vd,t.toDisplayString(s.computePosition((at=(M=l.plan)==null?void 0:M.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",tr,t.toDisplayString(s.computeUTCTime(((nt=(ot=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ot.departure)==null?void 0:nt.atd)||((dt=(st=(it=l.plan)==null?void 0:it.leg)==null?void 0:st.departure)==null?void 0:dt.etd)||((P=(v=(y=(rt=l.plan)==null?void 0:rt.speeds)==null?void 0:y[n.speedIndex])==null?void 0:v.speed)==null?void 0:P.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",er,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Tt=(yt=(Nt=l.plan)==null?void 0:Nt.leg)==null?void 0:yt.destination)!=null&&Tt.name?(t.openBlock(),t.createElementBlock("span",ar,t.toDisplayString((pt=(xt=(Vt=l.plan)==null?void 0:Vt.leg)==null?void 0:xt.destination)==null?void 0:pt.name),1)):(t.openBlock(),t.createElementBlock("span",lr,t.toDisplayString(s.computePosition((Ot=(St=l.plan)==null?void 0:St.leg)==null?void 0:Ot.destination)),1)),t.createElementVNode("span",or,t.toDisplayString(s.computeUTCTime(((ht=(V=(ct=(Bt=l.plan)==null?void 0:Bt.speeds)==null?void 0:ct[n.speedIndex])==null?void 0:V.speed)==null?void 0:ht.ata)||((wt=(Qt=(ft=(Yt=l.plan)==null?void 0:Yt.speeds)==null?void 0:ft[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",nr,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",ir,t.toDisplayString((Ft=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Ft.loadCondition),1)])])]),t.createElementVNode("div",sr,[t.createElementVNode("div",dr,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",rr,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Gt=l.plan)==null?void 0:Gt.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,Nr)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,cr)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Mr,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Dr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",gr,[...e[14]||(e[14]=[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:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Ir),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Er,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[24]||(e[24]=[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(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,bt)=>{var se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y;return t.openBlock(),t.createElementBlock(t.Fragment,{key:bt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Ar,t.toDisplayString(bt+1),1),t.createElementVNode("td",Tr,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Vr,t.toDisplayString(`CP ${((Ae=(Ie=m.speed)==null?void 0:Ie.cpCopy)==null?void 0:Ae.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",xr,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",pr,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",zr," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",jr,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",kr,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalFoCons,3)),1),t.createElementVNode("td",Ur,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((Na=m.speed)==null?void 0:Na.totalDgoCons,3)),1),(ma=(ca=m.speed)==null?void 0:ca.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Sr," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",Cr,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,bt)),9,br),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Or,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Ca=(Sa=m.speed)==null?void 0:Sa.extend)==null?void 0:Ca.cps[0].fo)+" / "+t.toDisplayString((Oa=(ba=m.speed)==null?void 0:ba.extend)==null?void 0:Oa.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((Ya=(ha=m.speed)==null?void 0:ha.extend)==null?void 0:Ya.cps[0].dgo)+" / "+t.toDisplayString((Qa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",hr,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Yr," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",fr,t.toDisplayString(s.roundPrecision(((La=(Wa=m==null?void 0:m.speed)==null?void 0:Wa.cost)==null?void 0:La.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((b=(d=m==null?void 0:m.speed)==null?void 0:d.cost)==null?void 0:b.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(s.computeCostDiff(l.plan,bt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((O=m.speed)==null?void 0:O.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((h=m.speed)==null?void 0:h.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Y=m.speed)==null?void 0:Y.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",wr,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",Rr,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((G=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:G.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Ne=s.roundPrecision((re=(Ct=l.plan)==null?void 0:Ct.voyage)==null?void 0:re.priceDGO,0))==null?void 0:Ne.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),(me=(ce=l.plan)==null?void 0:ce.voyage)!=null&&me.showWpts?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Pr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Et=(ge=(De=(Me=l.plan.speeds)==null?void 0:Me[n.speedIndex])==null?void 0:De.speed)==null?void 0:ge.lane)==null?void 0:Et.name),1)]),((ze=(ye=l.plan)==null?void 0:ye.speeds)==null?void 0:ze.length)>1?(t.openBlock(),t.createElementBlock("div",Wr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((je=l.plan)==null?void 0:je.speeds,(m,bt)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:bt,class:t.normalizeClass(["route-item",n.speedIndex===bt?"active":""]),onClick:Ie=>{n.speedIndex=bt,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Lr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Zr,[n.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,_r))]),t.createElementVNode("div",Jr,[t.createElementVNode("div",Hr,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-7f7014e0>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-7f7014e0>Time</div><div class="cell-item flex" data-v-7f7014e0>Nav</div><div class="cell-item flex" data-v-7f7014e0>Dist <span class="text-units" data-v-7f7014e0>(nm)</span></div>',4)),(Ue=(ke=l.plan)==null?void 0:ke.voyage)!=null&&Ue.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xr,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Ce=(Se=l.plan)==null?void 0:Se.voyage)!=null&&Ce.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",qr,[(Oe=(be=l.plan)==null?void 0:be.speeds)!=null&&Oe.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((fe=(Ye=(he=l.plan)==null?void 0:he.speeds)==null?void 0:Ye[n.speedIndex])==null?void 0:fe.speed),(m,bt)=>{var se,de,Ie,Ae;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"cell-row"},[t.createElementVNode("div",$r,[m.isResume?(t.openBlock(),t.createElementBlock("div",ur,"Resume")):(t.openBlock(),t.createElementBlock("div",vr,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",tN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",eN,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",aN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",lN,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),bt?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",nN)),bt?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",sN)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[bt?(t.openBlock(),t.createElementBlock("div",dN,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Ae=(Ie=l.plan)==null?void 0:Ie.voyage)!=null&&Ae.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[bt?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),bt?(t.openBlock(),t.createElementBlock("div",mN,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",MN))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",DN,[(we=(Qe=l.plan)==null?void 0:Qe.speeds)!=null&&we.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Ha=(Ja=(Fe=(Be=(Re=l.plan)==null?void 0:Re.speeds)==null?void 0:Be[n.speedIndex])==null?void 0:Fe.speed)==null?void 0:Ja.lane)==null?void 0:Ha.name),1)]),((Ka=(Xa=l.plan)==null?void 0:Xa.speeds)==null?void 0:Ka.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((qa=l.plan)==null?void 0:qa.speeds,(m,bt)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:bt,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===bt?"active":""]),onClick:Ie=>{n.speedIndex=bt,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN," * "+t.toDisplayString(s.computeModel((va=(ua=($a=l.plan)==null?void 0:$a.speeds)==null?void 0:ua[n.speedIndex])==null?void 0:va.speed)),1)]),t.createElementVNode("div",pN,[e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}}," Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher. ",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),(el=(tl=l.plan)==null?void 0:tl.voyage)!=null&&el.showVis?(t.openBlock(),t.createElementBlock("th",jN,[...e[51]||(e[51]=[t.createTextVNode("Vis.",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{colspan:(ll=(al=l.plan)==null?void 0:al.voyage)!=null&&ll.sendRptWithBF?3:2},"Wind",8,kN),e[54]||(e[54]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[57]||(e[57]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",UN,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[60]||(e[60]=t.createElementVNode("th",null,"Dir",-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(nl=(ol=l.plan)==null?void 0:ol.voyage)!=null&&nl.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",SN,"BF")):t.createCommentVNode("",!0),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[65]||(e[65]=t.createElementVNode("th",null,"Dir",-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,"Dir",-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Fac. "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",CN,[...e[58]||(e[58]=[t.createTextVNode("Sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",bN,[...e[59]||(e[59]=[t.createTextVNode("Sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Nl=(rl=(dl=(sl=(il=l.plan)==null?void 0:il.speeds)==null?void 0:sl[n.speedIndex])==null?void 0:dl.speed)==null?void 0:rl.sample)==null?void 0:Nl.hours,(m,bt)=>{var se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y,f,R,W,J,tt;return t.openBlock(),t.createElementBlock("tr",{key:bt},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",ON,[t.createElementVNode("div",hN,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showVis?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(s.computedVisClass(m))},t.toDisplayString(s.roundPrecision((Ie=m.meteo)==null?void 0:Ie.visibility,1)),3)):t.createCommentVNode("",!0),t.createElementVNode("td",null,[((Ge=(Ae=m.meteo)==null?void 0:Ae.wind)==null?void 0:Ge.kts)!==null&&((We=(Pe=m.meteo)==null?void 0:Pe.wind)!=null&&We.direction)?(t.openBlock(),t.createElementBlock("div",YN,[t.createElementVNode("span",null,t.toDisplayString((Ze=(Le=m.meteo)==null?void 0:Le.wind)==null?void 0:Ze.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Je=(_e=m.meteo)==null?void 0:_e.wind)==null?void 0:Je.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((Xe=(He=m.meteo)==null?void 0:He.wind)==null?void 0:Xe.kts,1)),3),(qe=(Ke=l.plan)==null?void 0:Ke.voyage)!=null&&qe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",QN,t.toDisplayString((ue=($e=m.meteo)==null?void 0:$e.wind)==null?void 0:ue.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.wd)==null?void 0:ea.height,1)),1),t.createElementVNode("td",null,[((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)==null?void 0:oa.height)!==null&&((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)!=null&&sa.direction)?(t.openBlock(),t.createElementBlock("div",wN,[t.createElementVNode("span",null,t.toDisplayString((Na=(ra=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ra.swell)==null?void 0:Na.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(Ma=(ma=(ca=m.meteo)==null?void 0:ca.wave)==null?void 0:ma.swell)==null?void 0:Ma.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.period,0)),1),t.createElementVNode("td",BN,[((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)==null?void 0:xa.height)!==null&&((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)!=null&&ja.direction)?(t.openBlock(),t.createElementBlock("div",FN,[t.createElementVNode("span",null,t.toDisplayString((Sa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:Sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(Oa=(ba=(Ca=m.meteo)==null?void 0:Ca.wave)==null?void 0:ba.sig)==null?void 0:Oa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((fa=(Ya=(ha=m.meteo)==null?void 0:ha.wave)==null?void 0:Ya.sig)==null?void 0:fa.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.period,0)),1),t.createElementVNode("td",null,[((Fa=(Ba=m.meteo)==null?void 0:Ba.current)==null?void 0:Fa.kts)!==null&&((Pa=(Ga=m.meteo)==null?void 0:Ga.current)!=null&&Pa.direction)?(t.openBlock(),t.createElementBlock("div",PN,[t.createElementVNode("span",null,t.toDisplayString((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(b=(d=m.meteo)==null?void 0:d.current)==null?void 0:b.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",WN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((h=(O=m.meteo)==null?void 0:O.current)==null?void 0:h.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,1)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",LN,t.toDisplayString(s.roundPrecision((f=(Y=m.meteo)==null?void 0:Y.ice)==null?void 0:f.sit,2)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",ZN,t.toDisplayString(((W=(R=m.meteo)==null?void 0:R.ice)==null?void 0:W.sic)>=0?s.roundPrecision(((tt=(J=m.meteo)==null?void 0:J.ice)==null?void 0:tt.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const wi=xe(Bd,[["render",_N],["__scopeId","data-v-7f7014e0"]]),JN={install(o){o.component("PlanReport",wi)}},MU="",HN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${At(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${At(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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},XN={class:"cover-box"},KN={class:"cover-content"},qN={class:"cover-title"},$N={class:"cover-info"},uN={class:"info-item"},vN={class:"info-item"},tc={class:"info-item"},ec={style:{"font-weight":"600"}},ac={class:"info-item"},lc={style:{"font-weight":"600"}},oc={class:"info-item"},nc={class:"info-item"},ic={class:"info-item"},sc={class:"info-item"},dc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,s){var D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w,B;return t.openBlock(),t.createElementBlock("div",XN,[t.createElementVNode("div",KN,[t.createElementVNode("div",qN,t.toDisplayString(l.name),1),t.createElementVNode("div",$N,[t.createElementVNode("div",uN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(D=l.report)==null?void 0:D.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",vN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",tc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",ec,t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",ac,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",lc,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",oc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((I=(a=l.report)==null?void 0:a.departure)==null?void 0:I.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",nc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(A=l.report)==null?void 0:A.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ic,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(U=l.report)==null?void 0:U.arrival)==null?void 0:E.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",sc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(S=l.report)==null?void 0:S.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",dc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((B=(w=l.report)==null?void 0:w.voyage)==null?void 0:B.loadCondition),1)])])])])}const cc=xe(HN,[["render",Nc],["__scopeId","data-v-c57d4b58"]]),DU="",mc={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return At(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=At(o).diff(At(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return $.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return $.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return $.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,N)=>{var D,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(c=>{const T={time:At(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+At(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(T)});const s=(r=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:r.hours.filter(c=>c.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},Mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={class:"phase-position"},xc={class:"phase-cp"},pc={class:"orm-report-table"},zc={key:0},jc={class:"phase-conclusion"},kc={class:"item-conclusion bg-blue-light-2",style:{flex:"0.9"}},Uc={class:"value align-left"},Sc={key:0,class:"text-secondary align-right"},Cc={key:0},bc={key:1},Oc={key:2},hc={key:1,class:"text-secondary"},Yc={key:2,class:"value"},fc={key:0},Qc={class:"gain"},wc={key:1},Rc={class:"lost"},Bc={key:2},Fc={class:"item-conclusion bg-blue-light-2"},Gc={class:"value align-left"},Pc={key:0,class:"unit",style:{"font-size":"11px"}},Wc={key:0,class:"text-secondary"},Lc={key:0},Zc={key:1},_c={key:2},Jc={key:1,class:"text-secondary"},Hc={key:2,class:"value"},Xc={key:0},Kc={class:"gain"},qc={key:1},$c={class:"lost"},uc={key:2},vc={class:"item-conclusion bg-blue-light-2"},tm={class:"value align-left"},em={key:0,class:"text-secondary"},am={key:0},lm={key:1},om={key:2},nm={key:1,class:"text-secondary"},im={key:2,class:"value"},sm={key:0},dm={class:"gain"},rm={key:1},Nm={class:"lost"},cm={key:2},mm={key:0,class:"exclusion-block"},Mm={style:{margin:"8px 0"}},Dm={class:"orm-report-table"},gm=["innerHTML"],Im={class:"section segment-section"},Em={class:"segment-summary"},ym={class:"segment-header"},Am={class:"segment-index"},Tm={class:"cp-box"},Vm={class:"segment-position"},xm={class:"segment-position"},pm={class:"orm-report-table"},zm={class:"good-wx"},jm={class:"good-wx"},km={class:"good-wx"},Um={class:"good-wx"},Sm={class:"good-wx"},Cm={class:"good-wx"},bm={class:"good-wx"},Om={class:"good-wx"},hm={class:"good-wx"},Ym={class:"good-wx"},fm={class:"good-wx"},Qm={class:"good-wx"},wm={class:"good-wx"},Rm={class:"good-wx"},Bm={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Fm={key:0},Gm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Pm={key:2,class:"segment-speed"},Wm={class:"row"},Lm={class:"speed-right row"},Zm={class:"speed"},_m={key:1,class:"speed"},Jm={key:0,class:"speed"},Hm={class:"speed"},Xm={class:"speed"},Km={class:"speed"},qm={key:0,class:"under"},$m={key:1,class:"over"},um={class:"row"},vm={class:"speed-right formula flex-space"},tM={key:0},eM={key:3,class:"segment-speed"},aM={class:"row"},lM={class:"speed-right row"},oM={class:"speed"},nM={class:"speed"},iM={key:0,class:"under"},sM={key:1,class:"over"},dM={class:"row"},rM={class:"speed-right formula row"},NM={class:"segment-formula"},cM={class:"sub-title"},mM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},MM={class:"formula-block"},DM={class:"formula-item flex-evenly bg-blue-light"},gM={class:"formula-right flex-evenly"},IM={class:"fraction",style:{width:"240px"}},EM={class:"formula-item flex-center bg-blue-light"},yM={class:"formula-left flex-space"},AM={class:"formula-right flex-evenly"},TM={class:"fraction",style:{width:"240px"}},VM={class:"formula-item flex-center bg-blue-light"},xM={class:"formula-left flex-space"},pM={class:"formula-right flex-evenly"},zM={class:"fraction",style:{width:"240px"}},jM={class:"formula-desc"},kM={class:"flex-end"},UM={class:"flex-end"},SM={class:"flex-end"},CM={key:0,class:"formula-block"},bM={class:"formula-item flex-evenly bg-blue-light"},OM={class:"formula-right flex-evenly"},hM={class:"fraction",style:{width:"200px"}},YM={class:"formula-item flex-center bg-blue-light"},fM={class:"formula-left flex-space"},QM={class:"formula-right flex-evenly"},wM={class:"fraction",style:{width:"200px"}},RM={class:"formula-item flex-center bg-blue-light"},BM={class:"formula-left flex-space"},FM={class:"formula-right flex-evenly"},GM={class:"fraction",style:{width:"200px"}},PM={class:"formula-item formula-conclusion bg-blue-light"},WM={key:0,class:"flex-evenly",style:{width:"500px"}},LM={key:1,class:"flex-evenly",style:{width:"500px"}},ZM={class:"flex-center"},_M={key:1,class:"formula-conclusion bg-blue-light"},JM={class:"segment-formula"},HM={class:"sub-title"},XM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},KM={class:"formula-block"},qM={class:"formula-item flex-evenly bg-blue-light"},$M={class:"formula-right flex-evenly"},uM={class:"fraction",style:{width:"240px"}},vM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},tD={key:0,class:"flex-end text-tips"},eD={class:"formula-item flex-center bg-blue-light"},aD={class:"formula-right flex-evenly"},lD={class:"fraction",style:{width:"200px"}},oD={class:"formula-item flex-center bg-blue-light"},nD={class:"formula-right flex-evenly"},iD={class:"fraction",style:{width:"200px"}},sD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"300px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"300px"}},MD={class:"sub-title"},DD={key:0,class:"formula-block"},gD={key:0,class:"formula-item flex-evenly bg-blue-light"},ID={class:"formula-right flex-evenly"},ED={class:"fraction",style:{width:"60px"}},yD={class:"fraction",style:{width:"60px"}},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={key:0},zD={class:"formula-item flex-evenly bg-blue-light"},jD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},UD={class:"fraction",style:{width:"150px"}},SD={class:"formula-item flex-evenly bg-blue-light"},CD={class:"formula-right flex-evenly"},bD={class:"fraction",style:{width:"150px"}},OD={class:"fraction",style:{width:"150px"}},hD={class:"formula-item formula-conclusion bg-blue-light"},YD={class:"flex-evenly",style:{width:"500px"}},fD={key:0,class:"flex-evenly"},QD={class:"fraction"},wD={class:"flex-evenly",style:{width:"700px"}},RD={key:0,class:"flex-evenly",style:{width:"500px"}},BD={class:"fraction",style:{width:"140px"}},FD={key:1,class:"formula-item formula-conclusion bg-blue-light"},GD={class:"header-block"},PD={class:"bg-block"},WD={class:"block-title"},LD={key:0,class:"formula-block"},ZD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},XD={key:0},KD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},vD={class:"formula-item flex-evenly bg-blue-light"},t1={class:"formula-right flex-evenly"},e1={class:"fraction",style:{width:"150px"}},a1={class:"fraction",style:{width:"150px"}},l1={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},o1={key:0,class:"flex-evenly",style:{width:"500px"}},n1={key:1,class:"flex-evenly",style:{width:"700px"}},i1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function s1(o,e,l,N,n,s){var r,c,T;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Mc,[t.createElementVNode("div",Dc,[e[3]||(e[3]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Good Weather Definition")])],-1)),t.createElementVNode("div",gc,[t.createElementVNode("div",Ic,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[33]||(e[33]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,I)=>{var k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+I,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(I+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(ct,V)=>{var ht,Yt,ft,Qt,wt,Rt;return t.openBlock(),t.createElementBlock("div",{key:V,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[t.createElementVNode("span",null,t.toDisplayString(((ht=ct==null?void 0:ct.departure)==null?void 0:ht.portName)||((Yt=ct.departure)==null?void 0:Yt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((ft=ct==null?void 0:ct.departure)==null?void 0:ft.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",Vc,[t.createElementVNode("span",null,t.toDisplayString(((Qt=ct==null?void 0:ct.arrival)==null?void 0:Qt.portName)||((wt=ct.arrival)==null?void 0:wt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Rt=ct==null?void 0:ct.arrival)==null?void 0:Rt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",xc,[t.createElementVNode("table",pc,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[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)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:A.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(E=a==null?void 0:a.extend)==null?void 0:E.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((S=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:S.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((w=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:w.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(C=(B=l.report)==null?void 0:B.voyage)!=null&&C.showCpRemark?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((L=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:L.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",jc,[t.createElementVNode("div",kc,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Uc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[12]||(e[12]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Sc,[((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",Cc,"Time Gained")):((_=a==null?void 0:a.timeConclusion)==null?void 0:_.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",bc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",Oc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",hc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Yc,[((H=a==null?void 0:a.timeConclusion)==null?void 0:H.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",fc,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Qc,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((K=a==null?void 0:a.timeConclusion)==null?void 0:K.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",wc,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Rc,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Bc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Fc,[e[26]||(e[26]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Gc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1)),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("span",Pc,[e[18]||(e[18]=t.createTextVNode(" (HSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3)),1),e[19]||(e[19]=t.createTextVNode(" / LSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3)),1),e[20]||(e[20]=t.createTextVNode(") ",-1))])):t.createCommentVNode("",!0)]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Wc,[((F=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",Lc,"FO Saving")):((M=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:M.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Zc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",_c,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Jc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Hc,[((lt=(at=a==null?void 0:a.fuelConclusion)==null?void 0:at.fo)==null?void 0:lt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",Xc,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Kc,t.toDisplayString((nt=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:nt.saving),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((st=(it=a==null?void 0:a.fuelConclusion)==null?void 0:it.fo)==null?void 0:st.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",qc,[e[24]||(e[24]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",$c,t.toDisplayString((rt=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:rt.overCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",uc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",vc,[e[32]||(e[32]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",tm,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",em,[((v=(y=a==null?void 0:a.fuelConclusion)==null?void 0:y.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",am,"DO/GO Saving")):((Nt=(P=a==null?void 0:a.fuelConclusion)==null?void 0:P.dgo)==null?void 0:Nt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",om,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",nm,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",im,[((Tt=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",sm,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dm,t.toDisplayString((xt=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:xt.saving),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((St=(pt=a==null?void 0:a.fuelConclusion)==null?void 0:pt.dgo)==null?void 0:St.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",rm,[e[30]||(e[30]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Nm,t.toDisplayString((Bt=(Ot=a==null?void 0:a.fuelConclusion)==null?void 0:Ot.dgo)==null?void 0:Bt.overCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",cm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[34]||(e[34]=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(s.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[38]||(e[38]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",mm,[e[36]||(e[36]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[37]||(e[37]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",Mm,[t.createElementVNode("table",Dm,[e[35]||(e[35]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I},[t.createElementVNode("td",null,t.toDisplayString(I+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((T=l.report)==null?void 0:T.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,gm))],2)],2),t.createElementVNode("div",Im,[e[240]||(e[240]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,I)=>{var k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v,P,Nt,yt,Tt,Vt,xt,pt,St,Ot,Bt,ct,V,ht,Yt,ft,Qt,wt,Rt,Ft,Gt,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,G,Ct,re,Ne,ce,me,Me,De,ge,Et,ye,ze,je,ke,Ue,Se,Ce,be,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,rl,Nl,m,bt,se,de,Ie,Ae,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ra,Na,ca,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,Ca,ba,Oa,ha,Ya,fa,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,d,b,O,h,Y,f,R,W,J,tt,mt,Mt,Dt,gt,zt,jt,kt,Pt,Wt,Lt,Zt,_t,Jt,Te,Ve,Za,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,Sl,Cl,bl,Ol,fl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,ro,No,co,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,So,Co,bo,Oo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,rn,Nn,cn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,Cn,bn,On,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ri,Ni,ci,mi,Mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi;return t.openBlock(),t.createElementBlock("div",{key:I,class:"segment-block"},[t.createElementVNode("div",Em,[t.createElementVNode("div",ym,[t.createElementVNode("div",Am,"Voyage Analysis Seg. "+t.toDisplayString(I+1),1),t.createElementVNode("div",Tm," CP Speed about: "+t.toDisplayString((z=(k=a.extend)==null?void 0:k.cp)==null?void 0:z.speed)+"kts, FO about: "+t.toDisplayString((x=(A=a==null?void 0:a.extend)==null?void 0:A.cp)==null?void 0:x.fo)+"mt, DO about: "+t.toDisplayString((E=(U=a==null?void 0:a.extend)==null?void 0:U.cp)==null?void 0:E.dgo)+"mt ",1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((p=a==null?void 0:a.extend)==null?void 0:p.segTimes,(pe,Yl)=>{var ml,hl,ji,ki,Ui,Si;return t.openBlock(),t.createElementBlock("div",{key:Yl,class:"segment-row text-secondary"},[t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(((ml=pe==null?void 0:pe.departure)==null?void 0:ml.portName)||((hl=pe.departure)==null?void 0:hl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((ji=pe==null?void 0:pe.departure)==null?void 0:ji.utcTime))+")",1)]),e[39]||(e[39]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",xm,[t.createElementVNode("span",null,t.toDisplayString(((ki=pe==null?void 0:pe.arrival)==null?void 0:ki.portName)||((Ui=pe.arrival)==null?void 0:Ui.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Si=pe==null?void 0:pe.arrival)==null?void 0:Si.utcTime))+")",1)])])}),128)),t.createElementVNode("table",pm,[e[47]||(e[47]=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[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",zm,t.toDisplayString((S=(j=a==null?void 0:a.goodWx)==null?void 0:j.outEca)==null?void 0:S.distance),1),t.createElementVNode("td",jm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.inEca)==null?void 0:w.distance),1),t.createElementVNode("td",null,t.toDisplayString((C=(B=a==null?void 0:a.allWx)==null?void 0:B.outEca)==null?void 0:C.distance),1),t.createElementVNode("td",null,t.toDisplayString((L=(Q=a==null?void 0:a.allWx)==null?void 0:Q.inEca)==null?void 0:L.distance),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",km,t.toDisplayString((_=(Z=a==null?void 0:a.goodWx)==null?void 0:Z.outEca)==null?void 0:_.time),1),t.createElementVNode("td",Um,t.toDisplayString((X=(H=a==null?void 0:a.goodWx)==null?void 0:H.inEca)==null?void 0:X.time),1),t.createElementVNode("td",null,t.toDisplayString((q=(K=a==null?void 0:a.allWx)==null?void 0:K.outEca)==null?void 0:q.time),1),t.createElementVNode("td",null,t.toDisplayString((F=(u=a==null?void 0:a.allWx)==null?void 0:u.inEca)==null?void 0:F.time),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((M=(et=a==null?void 0:a.goodWx)==null?void 0:et.outEca)==null?void 0:M.avgSpd)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((lt=(at=a==null?void 0:a.goodWx)==null?void 0:at.inEca)==null?void 0:lt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((nt=(ot=a==null?void 0:a.allWx)==null?void 0:ot.outEca)==null?void 0:nt.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((st=(it=a==null?void 0:a.allWx)==null?void 0:it.inEca)==null?void 0:st.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((rt=(dt=a==null?void 0:a.goodWx)==null?void 0:dt.outEca)==null?void 0:rt.sumFoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((v=(y=a==null?void 0:a.goodWx)==null?void 0:y.inEca)==null?void 0:v.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(P=a==null?void 0:a.allWx)==null?void 0:P.outEca)==null?void 0:Nt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(yt=a==null?void 0:a.allWx)==null?void 0:yt.inEca)==null?void 0:Tt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hm,t.toDisplayString(((xt=(Vt=a==null?void 0:a.goodWx)==null?void 0:Vt.outEca)==null?void 0:xt.avgFoCons)||"--"),1),t.createElementVNode("td",Ym,t.toDisplayString(((St=(pt=a==null?void 0:a.goodWx)==null?void 0:pt.inEca)==null?void 0:St.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Ot=a==null?void 0:a.allWx)==null?void 0:Ot.outEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((V=(ct=a==null?void 0:a.allWx)==null?void 0:ct.inEca)==null?void 0:V.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",fm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.outEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",Qm,t.toDisplayString(((Qt=(ft=a==null?void 0:a.goodWx)==null?void 0:ft.inEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Rt=(wt=a==null?void 0:a.allWx)==null?void 0:wt.outEca)==null?void 0:Rt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Gt=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.inEca)==null?void 0:Gt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wm,t.toDisplayString(((Xt=(Ht=a==null?void 0:a.goodWx)==null?void 0:Ht.outEca)==null?void 0:Xt.avgDgoCons)||"--"),1),t.createElementVNode("td",Rm,t.toDisplayString(((qt=(Kt=a==null?void 0:a.goodWx)==null?void 0:Kt.inEca)==null?void 0:qt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ut=($t=a==null?void 0:a.allWx)==null?void 0:$t.outEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((te=(vt=a==null?void 0:a.allWx)==null?void 0:vt.inEca)==null?void 0:te.avgDgoCons)||"--"),1)])])]),(ee=a==null?void 0:a.goodWx)!=null&&ee.distance?(t.openBlock(),t.createElementBlock("table",Bm,[e[49]||(e[49]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[I],(pe,Yl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Yl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(pe,(ml,hl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:hl},[ml.goodWx?(t.openBlock(),t.createElementBlock("tr",Fm,[t.createElementVNode("td",null,t.toDisplayString(ml.type)+" "+t.toDisplayString(s.computeUTCTime(ml.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(ml),"MMM-DD/HHmm[Z],YYYY")),1),e[48]||(e[48]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(ml.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(ml.utc,s.computePrevTime(ml))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(ae=n.exclusion[I])!=null&&ae.time?(t.openBlock(),t.createElementBlock("div",Gm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(le=a==null?void 0:a.goodWx)!=null&&le.distance?(t.openBlock(),t.createElementBlock("div",Pm,[t.createElementVNode("div",Wm,[e[59]||(e[59]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Lm,[(ne=(oe=l.report)==null?void 0:oe.weather)!=null&&ne.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor&&((ye=(Et=l.report)==null?void 0:Et.weather)!=null&&ye.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Jm,t.toDisplayString((ze=a==null?void 0:a.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(ke=(je=l.report)==null?void 0:je.weather)!=null&&ke.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ue=a==null?void 0:a.goodWx)==null?void 0:Ue.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgCf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgCf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgCf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Hm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(Ye=(he=l.report)==null?void 0:he.weather)!=null&&Ye.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Xm,t.toDisplayString((Be=a==null?void 0:a.goodWx)==null?void 0:Be.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgSpd),1),e[57]||(e[57]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgWf)>0?(Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.avgWf:`(${(Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgWf})`),1),(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.goodWx)==null?void 0:$a.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=a==null?void 0:a.goodWx)==null?void 0:ua.avgCf)>0?(va=a==null?void 0:a.goodWx)==null?void 0:va.avgCf:`(${(tl=a==null?void 0:a.goodWx)==null?void 0:tl.avgCf})`),1)],64)),e[58]||(e[58]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Km,t.toDisplayString((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(i=(ie=l.report)==null?void 0:ie.weather)!=null&&i.favorableCur&&((G=a==null?void 0:a.goodWx)==null?void 0:G.avgCf)>0?(t.openBlock(),t.createElementBlock("span",_m,t.toDisplayString((Me=a==null?void 0:a.goodWx)==null?void 0:Me.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Ct=a==null?void 0:a.goodWx)==null?void 0:Ct.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf)>0?(Ne=a==null?void 0:a.goodWx)==null?void 0:Ne.avgCf:`(${(ce=a==null?void 0:a.goodWx)==null?void 0:ce.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64))],64)),(ll=(al=l.report)==null?void 0:al.voyage)!=null&&ll.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ol=a==null?void 0:a.goodWx)==null?void 0:ol.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",qm,"(Under-performance)")):t.createCommentVNode("",!0),((nl=a==null?void 0:a.goodWx)==null?void 0:nl.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",$m,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",um,[e[76]||(e[76]=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",vm,[(sl=(il=l.report)==null?void 0:il.weather)!=null&&sl.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(bt=(m=l.report)==null?void 0:m.weather)!=null&&bt.disableWxFactor&&((de=(se=l.report)==null?void 0:se.weather)!=null&&de.disableCFactor)?(t.openBlock(),t.createElementBlock("label",tM,"GW Average Speed")):(Ae=(Ie=l.report)==null?void 0:Ie.weather)!=null&&Ae.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(Pe=(Ge=l.report)==null?void 0:Ge.weather)!=null&&Pe.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[68]||(e[68]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[73]||(e[73]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"-",-1)),e[75]||(e[75]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Le=(We=l.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=a==null?void 0:a.goodWx)==null?void 0:Ze.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(rl=(dl=l.report)==null?void 0:dl.weather)!=null&&rl.favorableCur&&((Nl=a==null?void 0:a.goodWx)==null?void 0:Nl.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"-",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",eM,[t.createElementVNode("div",aM,[e[82]||(e[82]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lM,[(Je=(_e=l.report)==null?void 0:_e.weather)!=null&&Je.favorableCur&&((He=a==null?void 0:a.allWx)==null?void 0:He.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((aa=a==null?void 0:a.allWx)==null?void 0:aa.avgSpd),1),e[80]||(e[80]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((la=a==null?void 0:a.allWx)==null?void 0:la.avgWf)>0?(oa=a==null?void 0:a.allWx)==null?void 0:oa.avgWf:`(${(na=a==null?void 0:a.allWx)==null?void 0:na.avgWf})`),1),e[81]||(e[81]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",nM,t.toDisplayString((ia=a==null?void 0:a.allWx)==null?void 0:ia.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgCf)>0?(qe=a==null?void 0:a.allWx)==null?void 0:qe.avgCf:`(${($e=a==null?void 0:a.allWx)==null?void 0:$e.avgCf})`),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ue=a==null?void 0:a.allWx)==null?void 0:ue.avgWf)>0?(ve=a==null?void 0:a.allWx)==null?void 0:ve.avgWf:`(${(ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",oM,t.toDisplayString((ea=a==null?void 0:a.allWx)==null?void 0:ea.pfmSpd)+" (kts)",1)],64)),(da=(sa=l.report)==null?void 0:sa.voyage)!=null&&da.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ra=a==null?void 0:a.allWx)==null?void 0:ra.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",iM,"(Under-performance)")):t.createCommentVNode("",!0),((Na=a==null?void 0:a.allWx)==null?void 0:Na.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",sM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",dM,[e[92]||(e[92]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rM,[(ma=(ca=l.report)==null?void 0:ca.weather)!=null&&ma.favorableCur&&((Ma=a==null?void 0:a.allWx)==null?void 0:Ma.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[88]||(e[88]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"-",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[83]||(e[83]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Current Factor",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",NM,[t.createElementVNode("div",cM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Time Analysis",1),(ga=(Da=l.report)==null?void 0:Da.weather)!=null&&ga.noExtrapolation?(t.openBlock(),t.createElementBlock("span",mM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",MM,[t.createElementVNode("div",DM,[e[96]||(e[96]=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",gM,[t.createElementVNode("div",IM,[t.createElementVNode("div",null,t.toDisplayString((Ea=(Ia=l.report)==null?void 0:Ia.weather)!=null&&Ea.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[93]||(e[93]=t.createElementVNode("div",{class:"line"},null,-1)),e[94]||(e[94]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[95]||(e[95]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",EM,[t.createElementVNode("div",yM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Aa=(ya=a==null?void 0:a.extend)==null?void 0:ya.cp)==null?void 0:Aa.speed,"Under"))+"kts)",1),e[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",AM,[t.createElementVNode("div",TM,[t.createElementVNode("div",null,t.toDisplayString((Va=(Ta=l.report)==null?void 0:Ta.weather)!=null&&Va.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(pa=(xa=a==null?void 0:a.extend)==null?void 0:xa.cp)==null?void 0:pa.speed,"Under"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",VM,[t.createElementVNode("div",xM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ja=(za=a==null?void 0:a.extend)==null?void 0:za.cp)==null?void 0:ja.speed,"Over"))+"kts)",1),e[100]||(e[100]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",pM,[t.createElementVNode("div",zM,[t.createElementVNode("div",null,t.toDisplayString((Ua=(ka=l.report)==null?void 0:ka.weather)!=null&&Ua.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[101]||(e[101]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+"kts",1)]),e[102]||(e[102]=t.createElementVNode("div",null,"(c)",-1))])]),e[103]||(e[103]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-40252024><div class="flex-space" style="width:300px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Lost</label><div data-v-40252024>=</div><div data-v-40252024>(a)</div><div data-v-40252024>-</div><div data-v-40252024>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Gained</label><div data-v-40252024>=</div><div data-v-40252024>(c)</div><div data-v-40252024>-</div><div data-v-40252024>(a)</div></div></div>',1))]),t.createElementVNode("div",jM,[t.createElementVNode("div",kM,[e[104]||(e[104]=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(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",UM,[e[105]||(e[105]=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(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",SM,[e[106]||(e[106]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Qa=(fa=a==null?void 0:a.extend)==null?void 0:fa.cp)==null?void 0:Qa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ra=(wa=a==null?void 0:a.extend)==null?void 0:wa.cp)==null?void 0:Ra.speed,"Under"))+" kts) ",1)])]),(Ba=a==null?void 0:a.goodWx)!=null&&Ba.distance?(t.openBlock(),t.createElementBlock("div",CM,[t.createElementVNode("div",bM,[e[110]||(e[110]=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",OM,[t.createElementVNode("div",hM,[t.createElementVNode("div",null,t.toDisplayString((Ga=(Fa=l.report)==null?void 0:Fa.weather)!=null&&Ga.noExtrapolation?(Pa=a==null?void 0:a.goodWx)==null?void 0:Pa.distance:(Wa=a==null?void 0:a.allWx)==null?void 0:Wa.distance),1),e[107]||(e[107]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((La=a==null?void 0:a.goodWx)==null?void 0:La.pfmSpd),1)]),e[108]||(e[108]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((d=a==null?void 0:a.timeConclusion)==null?void 0:d.timeAtPfmSpd)+" (hrs)",1),e[109]||(e[109]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",YM,[t.createElementVNode("div",fM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(O=(b=a==null?void 0:a.extend)==null?void 0:b.cp)==null?void 0:O.speed,"Under"))+"kts)",1),e[111]||(e[111]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",QM,[t.createElementVNode("div",wM,[t.createElementVNode("div",null,t.toDisplayString((Y=(h=l.report)==null?void 0:h.weather)!=null&&Y.noExtrapolation?(f=a==null?void 0:a.goodWx)==null?void 0:f.distance:(R=a==null?void 0:a.allWx)==null?void 0:R.distance),1),e[112]||(e[112]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.minusAbtSpd),1)]),e[113]||(e[113]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((J=a==null?void 0:a.timeConclusion)==null?void 0:J.timeAtMinusAbtSpd)+" (hrs)",1),e[114]||(e[114]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",RM,[t.createElementVNode("div",BM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(mt=(tt=a==null?void 0:a.extend)==null?void 0:tt.cp)==null?void 0:mt.speed,"Over"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",FM,[t.createElementVNode("div",GM,[t.createElementVNode("div",null,t.toDisplayString((Dt=(Mt=l.report)==null?void 0:Mt.weather)!=null&&Dt.noExtrapolation?(gt=a==null?void 0:a.goodWx)==null?void 0:gt.distance:(zt=a==null?void 0:a.allWx)==null?void 0:zt.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.plusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtPlusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",PM,[((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",WM,[e[119]||(e[119]=t.createElementVNode("div",null,"Time Lost",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),e[121]||(e[121]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[123]||(e[123]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeAtMinusAbtSpd),1),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.timeLost)+" (hrs)",1)])):((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",LM,[e[125]||(e[125]=t.createElementVNode("div",null,"Time Lost",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),e[127]||(e[127]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.timeAtPlusAbtSpd),1),e[129]||(e[129]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Te=a==null?void 0:a.timeConclusion)==null?void 0:Te.timeAtPfmSpd),1),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=a==null?void 0:a.timeConclusion)==null?void 0:Ve.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",ZM,[e[131]||(e[131]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Za=a==null?void 0:a.timeConclusion)==null?void 0:Za.conclusionStatus)==="Lost"?"lost":((Ml=a==null?void 0:a.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Dl=a==null?void 0:a.timeConclusion)==null?void 0:Dl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",_M,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",JM,[t.createElementVNode("div",HM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Consumption Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(t.openBlock(),t.createElementBlock("span",XM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",KM,[t.createElementVNode("div",qM,[e[137]||(e[137]=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",uM,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[132]||(e[132]=t.createElementVNode("div",{class:"line"},null,-1)),e[133]||(e[133]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[134]||(e[134]=t.createElementVNode("div",null,"x",-1)),e[135]||(e[135]=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[136]||(e[136]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",vM,[e[138]||(e[138]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Tl=(Al=a.extend)==null?void 0:Al.cp)==null?void 0:Tl.dgo)>0?(t.openBlock(),t.createElementBlock("div",tD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[e[143]||(e[143]=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",aD,[t.createElementVNode("div",lD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[139]||(e[139]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Under"))+"kts",1)]),e[140]||(e[140]=t.createElementVNode("div",null,"x",-1)),e[141]||(e[141]=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[142]||(e[142]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",oD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nD,[t.createElementVNode("div",iD,[t.createElementVNode("div",null,t.toDisplayString((kl=(jl=l.report)==null?void 0:jl.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[144]||(e[144]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Sl=(Ul=a==null?void 0:a.extend)==null?void 0:Ul.cp)==null?void 0:Sl.speed,"Over"))+"kts",1)]),e[145]||(e[145]=t.createElementVNode("div",null,"x",-1)),e[146]||(e[146]=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[147]||(e[147]=t.createElementVNode("div",null,"(f)",-1))])]),e[155]||(e[155]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-40252024><div class="flex-space" style="width:240px;" data-v-40252024><label data-v-40252024>Fuel Over-consumption</label><div data-v-40252024>=</div><div data-v-40252024>(d)</div><div data-v-40252024>-</div><div data-v-40252024>(e)</div></div><div class="flex-space" style="width:200px;" data-v-40252024><label data-v-40252024>Fuel Saving</label><div data-v-40252024>=</div><div data-v-40252024>(f)</div><div data-v-40252024>-</div><div data-v-40252024>(d)</div></div></div>',1)),((bl=(Cl=a.extend)==null?void 0:Cl.cp)==null?void 0:bl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",rD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(Ol=l.report)==null?void 0:Ol.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ND,[e[154]||(e[154]=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",cD,[t.createElementVNode("div",mD,[e[152]||(e[152]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wl=(Ql=l.report)==null?void 0:Ql.weather)!=null&&wl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[239]||(e[239]=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",MD,"Seg. "+t.toDisplayString(I+1)+" Fuel Oil",1),(Rl=a==null?void 0:a.goodWx)!=null&&Rl.distance?(t.openBlock(),t.createElementBlock("div",DD,[((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.distance)>0?(t.openBlock(),t.createElementBlock("div",gD,[e[161]||(e[161]=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",ID,[t.createElementVNode("div",ED,[t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.sumDgoCons),1)]),e[158]||(e[158]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",yD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=a==null?void 0:a.extend)==null?void 0:Wl.cp)==null?void 0:Ll.dgo),1),e[156]||(e[156]=t.createElementVNode("div",{class:"line"},null,-1)),e[157]||(e[157]=t.createElementVNode("div",null,"24",-1))]),e[159]||(e[159]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((_l=(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.inEca)==null?void 0:_l.time),1),e[160]||(e[160]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hl=(Jl=a==null?void 0:a.fuelConclusion)==null?void 0:Jl.fo)==null?void 0:Hl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",AD,[e[168]||(e[168]=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",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((Kl=(Xl=l.report)==null?void 0:Xl.weather)!=null&&Kl.noExtrapolation?(ql=a==null?void 0:a.goodWx)==null?void 0:ql.distance:($l=a==null?void 0:a.allWx)==null?void 0:$l.distance),1),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.pfmSpd),1)]),e[165]||(e[165]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((vl=a==null?void 0:a.goodWx)==null?void 0:vl.sumFoCons),1),((eo=(to=a==null?void 0:a.goodWx)==null?void 0:to.inEca)==null?void 0:eo.distance)>0?(t.openBlock(),t.createElementBlock("span",pD,[e[163]||(e[163]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((lo=(ao=a==null?void 0:a.fuelConclusion)==null?void 0:ao.fo)==null?void 0:lo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[164]||(e[164]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=a==null?void 0:a.goodWx)==null?void 0:oo.time),1)]),e[166]||(e[166]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((io=(no=a.fuelConclusion)==null?void 0:no.fo)==null?void 0:io.entireCons)+" (mt)",1),e[167]||(e[167]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",zD,[e[175]||(e[175]=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",jD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((ro=(so=l.report)==null?void 0:so.weather)!=null&&ro.noExtrapolation?(No=a==null?void 0:a.goodWx)==null?void 0:No.distance:(co=a==null?void 0:a.allWx)==null?void 0:co.distance),1),e[169]||(e[169]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mo=a==null?void 0:a.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),e[172]||(e[172]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Do=(Mo=a==null?void 0:a.fuelConclusion)==null?void 0:Mo.fo)==null?void 0:Do.overTolerance),1),e[170]||(e[170]=t.createElementVNode("div",{class:"line"},null,-1)),e[171]||(e[171]=t.createElementVNode("div",null,"24",-1))]),e[173]||(e[173]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.maxCons)+" (mt)",1),e[174]||(e[174]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",SD,[e[182]||(e[182]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=l.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=a==null?void 0:a.goodWx)==null?void 0:Ao.distance:(To=a==null?void 0:a.allWx)==null?void 0:To.distance),1),e[176]||(e[176]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=a==null?void 0:a.timeConclusion)==null?void 0:Vo.plusAbtSpd),1)]),e[179]||(e[179]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.underTolerance),1),e[177]||(e[177]=t.createElementVNode("div",{class:"line"},null,-1)),e[178]||(e[178]=t.createElementVNode("div",null,"24",-1))]),e[180]||(e[180]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.minCons)+" (mt)",1),e[181]||(e[181]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",hD,[((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",YD,[e[183]||(e[183]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),e[185]||(e[185]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Co=(So=a==null?void 0:a.fuelConclusion)==null?void 0:So.fo)==null?void 0:Co.entireCons),1),e[187]||(e[187]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Oo=(bo=a==null?void 0:a.fuelConclusion)==null?void 0:bo.fo)==null?void 0:Oo.maxCons),1),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1)]),(Qo=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&Qo.distance?(t.openBlock(),t.createElementBlock("div",fD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",null,t.toDisplayString((Ro=(wo=a==null?void 0:a.goodWx)==null?void 0:wo.inEca)==null?void 0:Ro.distance)+" * "+t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.overCons),1),e[189]||(e[189]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Po=(Go=l.report)==null?void 0:Go.weather)!=null&&Po.noExtrapolation?(Wo=a==null?void 0:a.goodWx)==null?void 0:Wo.distance:(Lo=a==null?void 0:a.allWx)==null?void 0:Lo.distance),1)]),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wD,[e[193]||(e[193]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ko=(Xo=a==null?void 0:a.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.minCons),1),e[197]||(e[197]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString(($o=(qo=a==null?void 0:a.fuelConclusion)==null?void 0:qo.fo)==null?void 0:$o.entireCons),1),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=(uo=a==null?void 0:a.fuelConclusion)==null?void 0:uo.fo)==null?void 0:vo.saving)+" (mt)",1)]),(en=(tn=a==null?void 0:a.goodWx)==null?void 0:tn.inEca)!=null&&en.distance?(t.openBlock(),t.createElementBlock("div",RD,[e[200]||(e[200]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[201]||(e[201]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",BD,[t.createElementVNode("div",null,t.toDisplayString((ln=(an=l.report)==null?void 0:an.weather)!=null&&ln.noExtrapolation?(nn=(on=a==null?void 0:a.goodWx)==null?void 0:on.inEca)==null?void 0:nn.distance:(dn=(sn=a==null?void 0:a.allWx)==null?void 0:sn.inEca)==null?void 0:dn.distance)+" * "+t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.saving),1),e[199]||(e[199]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mn=(cn=l.report)==null?void 0:cn.weather)!=null&&mn.noExtrapolation?(Mn=a==null?void 0:a.goodWx)==null?void 0:Mn.distance:(Dn=a==null?void 0:a.allWx)==null?void 0:Dn.distance),1)]),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((yn=(En=a==null?void 0:a.fuelConclusion)==null?void 0:En.fo)==null?void 0:yn.conclusionStatus)==="Over"?"flex-center lost":((Tn=(An=a==null?void 0:a.fuelConclusion)==null?void 0:An.fo)==null?void 0:Tn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[203]||(e[203]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((xn=(Vn=a==null?void 0:a.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:xn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",FD,t.toDisplayString(n.noGoodWxDay),1)),((zn=(pn=a==null?void 0:a.extend)==null?void 0:pn.cp)==null?void 0:zn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[e[204]||(e[204]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",WD,"Seg. "+t.toDisplayString(I+1)+" Diesel/Gas Oil",1)])]),(jn=a==null?void 0:a.goodWx)!=null&&jn.distance?(t.openBlock(),t.createElementBlock("div",LD,[t.createElementVNode("div",ZD,[e[211]||(e[211]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((Un=(kn=l.report)==null?void 0:kn.weather)!=null&&Un.noExtrapolation?(Sn=a==null?void 0:a.goodWx)==null?void 0:Sn.distance:(Cn=a==null?void 0:a.allWx)==null?void 0:Cn.distance),1),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((bn=a==null?void 0:a.goodWx)==null?void 0:bn.pfmSpd),1)]),e[208]||(e[208]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((On=a==null?void 0:a.goodWx)==null?void 0:On.sumDgoCons),1),((Yn=(hn=a==null?void 0:a.goodWx)==null?void 0:hn.inEca)==null?void 0:Yn.distance)>0?(t.openBlock(),t.createElementBlock("span",XD,[e[206]||(e[206]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Qn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Qn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[207]||(e[207]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wn=a==null?void 0:a.goodWx)==null?void 0:wn.time),1)]),e[209]||(e[209]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bn=(Rn=a.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.entireCons)+" (mt)",1),e[210]||(e[210]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",KD,[e[218]||(e[218]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Gn=(Fn=l.report)==null?void 0:Fn.weather)!=null&&Gn.noExtrapolation?(Pn=a==null?void 0:a.goodWx)==null?void 0:Pn.distance:(Wn=a==null?void 0:a.allWx)==null?void 0:Wn.distance),1),e[212]||(e[212]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ln=a==null?void 0:a.timeConclusion)==null?void 0:Ln.minusAbtSpd),1)]),e[215]||(e[215]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[t.createElementVNode("div",null,t.toDisplayString((_n=(Zn=a==null?void 0:a.fuelConclusion)==null?void 0:Zn.dgo)==null?void 0:_n.overTolerance),1),e[213]||(e[213]=t.createElementVNode("div",{class:"line"},null,-1)),e[214]||(e[214]=t.createElementVNode("div",null,"24",-1))]),e[216]||(e[216]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hn=(Jn=a.fuelConclusion)==null?void 0:Jn.dgo)==null?void 0:Hn.maxCons)+" (mt)",1),e[217]||(e[217]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",vD,[e[225]||(e[225]=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",t1,[t.createElementVNode("div",e1,[t.createElementVNode("div",null,t.toDisplayString((Kn=(Xn=l.report)==null?void 0:Xn.weather)!=null&&Kn.noExtrapolation?(qn=a==null?void 0:a.goodWx)==null?void 0:qn.distance:($n=a==null?void 0:a.allWx)==null?void 0:$n.distance),1),e[219]||(e[219]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((un=a==null?void 0:a.timeConclusion)==null?void 0:un.plusAbtSpd),1)]),e[222]||(e[222]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",a1,[t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.underTolerance),1),e[220]||(e[220]=t.createElementVNode("div",{class:"line"},null,-1)),e[221]||(e[221]=t.createElementVNode("div",null,"24",-1))]),e[223]||(e[223]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.minCons)+" (mt)",1),e[224]||(e[224]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",l1,[((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",o1,[e[226]||(e[226]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),e[228]||(e[228]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.entireCons),1),e[230]||(e[230]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.maxCons),1),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.overCons),1)])):((mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:mi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",n1,[e[232]||(e[232]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),e[234]||(e[234]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.minCons),1),e[236]||(e[236]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.entireCons),1),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Ti=(Ai=a==null?void 0:a.fuelConclusion)==null?void 0:Ai.dgo)==null?void 0:Ti.conclusionStatus)==="Over"?"flex-center lost":((xi=(Vi=a==null?void 0:a.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:xi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[238]||(e[238]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((zi=(pi=a==null?void 0:a.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:zi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",i1,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const d1=xe(mc,[["render",s1],["__scopeId","data-v-40252024"]]),gU="",r1={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"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{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`${At(o).utc().format(e)}`}},computeLng(){return function(o){return $.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return $.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?$.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,s,D,r,c,T,a,I;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((r=(D=this.report)==null?void 0:D.weather)==null?void 0:r.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((I=(a=this.report)==null?void 0:a.weather)==null?void 0:I.waterTempSwitch)||!1}}},N1={class:"report-inventory"},c1={class:"section summary-section"},m1={class:"summary-block"},M1={class:"orm-report-table inventory-table"},D1={class:"label",rowspan:"4"},g1={class:"section inventory-section"},I1={class:"orm-report-table inventory-table detail"},E1=["colspan"],y1={key:0,class:"label",colspan:"2"},A1={key:0,class:"label",rowspan:"2"},T1={key:1,class:"label",rowspan:"2"},V1={key:2,class:"label",rowspan:"2"},x1={key:3,class:"label",colspan:"2"},p1={key:4,class:"label",rowspan:"2"},z1={key:5,class:"label",colspan:"2"},j1={key:6,class:"label",rowspan:"2"},k1={key:7,class:"label",rowspan:"2"},U1={key:8,class:"label",rowspan:"2"},S1={key:0,class:"label"},C1={key:1,class:"label"},b1={key:2,class:"label"},O1={key:3,class:"label"},h1={class:"summary-tbody"};function Y1(o,e,l,N,n,s){var D;return t.openBlock(),t.createElementBlock("div",N1,[t.createElementVNode("div",c1,[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",m1,[t.createElementVNode("table",M1,[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((D=l.report)==null?void 0:D.segments,(r,c)=>{var T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",D1,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=r==null?void 0:r.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((I=r==null?void 0:r.allWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=r==null?void 0:r.allWx)==null?void 0:z.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(s.computePrecision((A=r==null?void 0:r.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=r==null?void 0:r.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.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(s.computePrecision((j=r==null?void 0:r.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=r==null?void 0:r.badWx)==null?void 0:S.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=r==null?void 0:r.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((B=r==null?void 0:r.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((C=r==null?void 0:r.excluded)==null?void 0:C.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((_=r==null?void 0:r.excluded)==null?void 0:_.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",g1,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> 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",I1,[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:s.computeWxColspan},"ORM Weather Analysis",8,E1),l.showFactor?(t.openBlock(),t.createElementBlock("th",y1,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",A1,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",T1,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",V1,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",x1,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",p1,[...e[15]||(e[15]=[t.createTextVNode("Sig Wave",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",z1,"Current")):t.createCommentVNode("",!0),e[22]||(e[22]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Avg.CF"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),l.showFactor?(t.openBlock(),t.createElementBlock("th",j1,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",k1,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",U1,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",S1,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",C1,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",b1,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",O1,[...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",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,c)=>{var T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((T=r.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((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(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((k=(I=r.meteo)==null?void 0:I.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((A=(z=r.meteo)==null?void 0:z.wind)==null?void 0:A.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(U=(x=r.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((S=(j=(p=r.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:S.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(w=(g=r.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((L=(Q=(C=r.meteo)==null?void 0:C.wave)==null?void 0:Q.sig)==null?void 0:L.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((_=(Z=r.meteo)==null?void 0:Z.current)==null?void 0:_.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((H=r.meteo)==null?void 0:H.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((X=r.meteo)==null?void 0:X.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((K=r.meteo)==null?void 0:K.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((q=r.meteo)==null?void 0:q.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&c?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const f1=xe(r1,[["render",Y1],["__scopeId","data-v-dea0638a"]]),IU="",Q1={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`${At(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)?"-":$.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+$.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(hi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(hi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(hi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var I,k,z,A,x,U;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const D=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var j,S;p===0&&r.push(E.utc),E.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(r.push(E.utc),r.push((S=this.inventory[p+1])==null?void 0:S.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const j=At(r[p+1]).diff(At(r[p]),"minute",!0);for(let S=0;S<=j+1;S++)e.push(this.computeUTCTime(At(r[p]).clone().utc().add(S,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((E,p)=>{var S,g,w,B,C,Q,L,Z,_,H,X,K,q,u;const j=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(F=>F.slice(0,5)===E.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==E.utc.slice(5,10)),o.push(j)),n=Math.ceil(((S=E.noon)==null?void 0:S.foCons)>n?(g=E.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=E.cp)==null?void 0:w.fo)>n?(B=E.cp)==null?void 0:B.fo:n),s=Math.ceil(((C=E.noon)==null?void 0:C.dgoCons)>s?(Q=E.noon)==null?void 0:Q.dgoCons:s),s=Math.ceil(((L=E.cp)==null?void 0:L.dgo)>s?(Z=E.cp)==null?void 0:Z.dgo:s),l.push([j,(_=E.noon)==null?void 0:_.avgSpd,(H=E.noon)==null?void 0:H.foCons,(X=E.noon)==null?void 0:X.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<D.length-1){const F=D[p+1];l.push([j,(K=F.noon)==null?void 0:K.avgSpd,(q=F.noon)==null?void 0:q.foCons,(u=F.noon)==null?void 0:u.dgoCons,F.avgSpdCalc,F.cp.speed,F.goodWx&&!F.excluded?100:0,F.cp.dgo,F.cp.fo,F.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%c===0);const T={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:n+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(k=(I=this.report)==null?void 0:I.weather)!=null&&k.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(T);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:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(x=(A=this.report)==null?void 0:A.weather)!=null&&x.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],D=[];s.forEach((A,x)=>{var U,E;x===0&&D.push(A.utc),A.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(A.utc),D.push((E=s[x+1])==null?void 0:E.utc)),x===s.length-1&&D.push(A.utc)}),D.forEach((A,x)=>{if(x%2===0){const U=At(D[x+1]).diff(At(D[x]),"minute",!0);for(let E=0;E<=U+1;E++)e.push(this.computeUTCTime(At(D[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((A,x)=>{var E,p,j,S,g,w,B,C,Q,L,Z,_,H,X,K,q,u,F,et,M,at,lt,ot,nt,it,st,dt,rt,y,v;const U=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(P=>P.slice(0,5)===A.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(P=>P.slice(0,5)!==A.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(E=A.meteo)==null?void 0:E.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(w=(g=(S=A.meteo)==null?void 0:S.wave)==null?void 0:g.sig)==null?void 0:w.height:n),l.push([U,((B=A.noon)==null?void 0:B.windBF)||((Q=(C=A.meteo)==null?void 0:C.wind)==null?void 0:Q.scale),(Z=(L=A.meteo)==null?void 0:L.wind)==null?void 0:Z.scale,(H=(_=A.meteo)==null?void 0:_.wind)==null?void 0:H.direction,(X=A.noon)==null?void 0:X.seasHt,(u=(q=(K=A.meteo)==null?void 0:K.wave)==null?void 0:q.sig)==null?void 0:u.height,A.dailyAvgCf??((F=l[l.length-1])==null?void 0:F[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),x<s.length-1){const P=s[x+1];l.push([U,((et=A.noon)==null?void 0:et.windBF)||((at=(M=A.meteo)==null?void 0:M.wind)==null?void 0:at.scale),(ot=(lt=P.meteo)==null?void 0:lt.wind)==null?void 0:ot.scale,(it=(nt=P.meteo)==null?void 0:nt.wind)==null?void 0:it.direction,(st=P.noon)==null?void 0:st.seasHt,(y=(rt=(dt=A.meteo)==null?void 0:dt.wave)==null?void 0:rt.sig)==null?void 0:y.height,P.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[N.anlyCurFct]),P.goodWx&&!P.excluded?20:0,P.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((A,x)=>x===0||x===o.length-1||x%r===0);let c=-2.5,T=2.5,a=1,I=5;c<-2.5||T>2.5?(c=Math.floor(this.findMinValue(l,6)/5)*5,T=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(c),Math.abs(T)])/5),I=Math.ceil(Math.abs(c)/a)+Math.ceil(Math.abs(T)/a)):(a=.5,c=Math.floor(this.findMinValue(l,6)/.5)*a,T=2.5,I=Math.abs(c)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:a,splitNumber:I,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:I,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(A,x)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:I,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,x)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},w1={class:"report-summary"},R1={class:"section chart-section"},B1={class:"chart-block"},F1={ref:"spdFoConsChart",class:"chart"},G1={ref:"spdDgoConsChart",class:"chart"},P1={ref:"currChart",class:"chart"},W1={class:"section map-section"},L1={class:"map-block"},Z1={class:"flex-space"},_1={class:"voyage-block bg-blue-light"},J1={class:"flex-space label-block",style:{width:"100%"}},H1={style:{"text-transform":"uppercase"}},X1={class:"flex-space label-block",style:{width:"100%"}},K1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},q1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},$1={class:"flex-space label-block",style:{width:"100%"}},u1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},v1={class:"flex-space label-block",style:{width:"100%"}},tg={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"}},og={class:"flex-end",style:{width:"160px"}},ng={class:"flex-space label-block",style:{width:"100%"}},ig={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},sg=["src"];function dg(o,e,l,N,n,s){var D,r,c,T,a,I,k,z,A,x,U,E,p,j,S,g,w,B,C,Q;return t.openBlock(),t.createElementBlock("div",w1,[t.createElementVNode("div",R1,[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",B1,[t.createElementVNode("div",F1,null,512),t.createElementVNode("div",G1,null,512),t.createElementVNode("div",P1,null,512)])]),t.createElementVNode("div",W1,[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",L1,[t.createElementVNode("div",Z1,[t.createElementVNode("div",_1,[t.createElementVNode("div",J1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",H1,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",X1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",K1,t.toDisplayString((r=(D=l.report)==null?void 0:D.vessel)==null?void 0:r.name),1),t.createElementVNode("span",q1,"("+t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",$1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",u1,t.toDisplayString((I=(a=l.report)==null?void 0:a.voyage)==null?void 0:I.number),1)]),t.createElementVNode("div",v1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",tg,t.toDisplayString(((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.portName)||((x=(A=l.report)==null?void 0:A.departure)==null?void 0:x.name)),1),t.createElementVNode("span",eg,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ag,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",lg,t.toDisplayString(((p=(E=l.report)==null?void 0:E.arrival)==null?void 0:p.portName)||((S=(j=l.report)==null?void 0:j.arrival)==null?void 0:S.name)),1),t.createElementVNode("span",og,t.toDisplayString(s.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ng,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ig,t.toDisplayString((C=(B=l.report)==null?void 0:B.voyage)==null?void 0:C.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-34b7edf0><div data-v-34b7edf0>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>08/12</div><div data-v-34b7edf0><div data-v-34b7edf0>08 - Day of the month</div><div data-v-34b7edf0>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-34b7edf0></i></div><div data-v-34b7edf0><div data-v-34b7edf0>Wind from N (000)</div><div data-v-34b7edf0>Each bard = 10 kts</div><div data-v-34b7edf0>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>W 4</div><div data-v-34b7edf0>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div class="good-wx" data-v-34b7edf0>Date</div><div data-v-34b7edf0>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=l.report)==null?void 0:Q.chartUrl,alt:""},null,8,sg)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0> 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-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> 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-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const rg=xe(Q1,[["render",dg],["__scopeId","data-v-34b7edf0"]]),EU="",yU="",Ng={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`${At(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var c,T;let N="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((T=(c=e.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:T.split("\\n")).forEach(I=>{const k=`<p>${I}</p>`;N=N+k}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,r=(s==null?void 0:s.offsetHeight)||0;if(D<=r){let I=`<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>
|