@idmui/extend 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(Et,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):(Et=typeof globalThis<"u"?globalThis:Et||self,t(Et["idmui-extend"]={},Et.Vue,Et["@wangeditor/editor-for-vue"],Et["@idmui/basic"],Et.moment,Et.echarts,Et["@idm-plugin/geo"],Et.axios,Et.MdEditorV3))})(this,function(Et,t,hi,rl,At,ks,u,Oi,Yi){"use strict";function Us(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Ci=Us(ks),S3="",Za=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},Ss={name:"IdmEditor",components:{Editor:hi.Editor,Toolbar:hi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},bs={class:"editor-box"};function Cs(o,e,l,N,n,d){const D=t.resolveComponent("Toolbar"),s=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",bs,[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(s,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const ml=Za(Ss,[["render",Cs],["__scopeId","data-v-80104052"]]),Os={install(o){o.component("IdmEditor",ml)}},b3="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,fs=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qs=fs;const C3="",ws={name:"PlanReport",components:{Editor:ml,IdmBrand:rl.IdmBrand,IdmLoading:rl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=u.LngLatHelper.guessTimeZoneOffset(e,l)),`${At(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,d,D;if(e===0)return"-";{const s=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=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(s*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,d,D,s,c;if(e===0)return"-";{const T=Number((d=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((c=(s=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:s.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,e){const l=[];for(let N=0;N<(e==null?void 0:e.length);N++){const n=e[N],d=e[N-1];d&&(n.avgBearing=d.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,D,s,c;const l=(c=(s=(D=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:D.speed)==null?void 0:s.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)?"-":u.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>u.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>u.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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,d,D,s,c,T,a,E,j,p,A,V,k,y,x,z;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((s=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:s.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((p=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:p.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((y=(k=o.meteo)==null?void 0:k.wind)==null?void 0:y.scale)===((z=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,d,D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((D=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:D.height)>=((c=(s=this.weatherPrinciple)==null?void 0:s.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&a.sigWv&&((p=(j=(E=o.meteo)==null?void 0:E.wave)==null?void 0:j.sig)==null?void 0:p.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(y=(k=this.weatherPrinciple)==null?void 0:k.heavy)!=null&&y.sigWv&&((h=(z=(x=o.meteo)==null?void 0:x.wave)==null?void 0:z.sig)==null?void 0:h.height)>=((B=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:B.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Ci.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,x,z,h,g,B,G;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;(B=(g=(h=(z=(x=(y=this.plan)==null?void 0:y.speeds)==null?void 0:x[this.speedIndex])==null?void 0:z.speed)==null?void 0:h.sample)==null?void 0:g.hours)==null||B.forEach(Y=>{var W,L,q,v,tt,et,at,dt,P,rt;const Q=Y.meteo;if(Q){const Nt=At(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(Nt),N=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>N?(v=(q=Q.wave)==null?void 0:q.sig)==null?void 0:v.height:N),e.push([Nt,(tt=Q.wind)==null?void 0:tt.kts,(at=(et=Q.wave)==null?void 0:et.sig)==null?void 0:at.height,(dt=Q.wind)==null?void 0:dt.direction,(P=Q.wind)==null?void 0:P.degree,(rt=Q.wind)==null?void 0:rt.scale,Y.cFactor,Y.wFactor,Y.speed])}});const n=Math.max(...e.map(Y=>Y[l.speed])),d=Math.max(...e.map(Y=>Y[l.windSpeed])),D=Math.min(...e.map(Y=>Y[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(Y=>Y[l.currentFactor]))/.5)*.5,s=Math.ceil(Math.max(...e.map(Y=>Y[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,T=Math.ceil(d/5/5)*5,a=Math.ceil(N/5/.5)*.5,E=Math.ceil((s-D)/5/.5)*.5,j=5*c,p=5*T,A=5*a,V=D+5*E,k={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:p,splitNumber:5,interval: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:V,splitNumber:5,interval:E,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}]};(G=this.echart)==null||G.setOption(k)}}},Rs={class:"orm-plan-report"},Bs={key:0,class:"loading-block"},Fs={class:"info-block"},Gs={class:"col"},Ps={class:"label-block"},Ws={class:"text"},Ls={class:"label-block"},Zs={class:"text"},_s={key:0},Js={class:"label-block"},Hs={class:"text"},Xs={class:"col"},Ks={class:"label-block"},us={key:0},qs={key:1},$s={style:{"margin-left":"16px"}},vs={class:"label-block"},tr={key:0},er={key:1},ar={style:{"margin-left":"16px"}},lr={class:"label-block"},or={class:"text"},nr={class:"section chart-section"},ir={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dr={style:{"margin-right":"8px"}},sr=["src"],rr={class:"legends text-tips"},Nr={class:"legend"},cr={key:0,class:"legend"},Mr={key:1,class:"legend"},mr={key:1,class:"empty"},Dr={class:"section comparison-section"},gr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ir={key:0},Er=["rowspan"],yr={key:0},Ar={key:1},Tr={rowspan:"2"},Vr={rowspan:"2"},xr={key:0},pr={key:1},zr={rowspan:"1"},jr={key:0},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={rowspan:"2"},br={key:0},Cr={key:0},Or=["rowspan"],hr={key:0},Yr={rowspan:"1"},fr={key:0},Qr={key:0},wr={key:1},Rr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Br={key:0},Fr={class:"section waypoint-section"},Gr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Pr={class:"bg-block"},Wr={class:"block-title"},Lr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Zr=["onClick"],_r={class:"advisory bg-blue-light-2"},Jr=["innerHTML"],Hr={class:"major-waypoint"},Xr={class:"major-header bg-blue-light-2"},Kr={key:0,class:"cell-item flex"},ur={key:1,class:"cell-item flex"},qr={class:"major-body"},$r={class:"cell-item flex",style:{flex:"2.5"}},vr={key:0,class:"flex-center"},tN={key:1,class:"flex-center"},eN={key:0,style:{"margin-left":"3px"}},aN={class:"cell-item flex",style:{flex:"1.5"}},lN={key:0,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},dN={key:3,class:"cell-item flex nbsp"},sN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},MN={key:6,class:"cell-item flex offset"},mN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN=["colspan"],kN={key:0},UN={class:"flex-center"},SN={class:"degree-box"},bN={key:0},CN={key:2},ON={key:0},hN={class:"degree-box"},YN={key:0},fN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2},BN={class:"degree-box"},FN={key:0},GN={key:2};function PN(o,e,l,N,n,d){var a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt,w,Xt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Kt,ut,qt,$t,vt,te,ee,ae,le,oe,ne,ie,de,se,re,i,it,K,Ht,Ne,ce,Me,me,De,ge,$,Te,ze,je,ke,Ue,Se,be,Ce,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,Le,Ze,_e,Je,He,Xe,Ke,ue,qe,$e,ve,ta,ea,aa,I,la,oa,na,ia,da,sa,ra,Na,xe,_a,Ja,Ha,Xa,Ka,ua,qa,$a,va,tl,el,al,ll,ol,nl;const D=t.resolveComponent("IdmBrand"),s=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Rs,[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",Bs,[t.createVNode(s,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Fs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ws,t.toDisplayString((p=(j=(E=l.plan)==null?void 0:E.voyage)==null?void 0:j.company)==null?void 0:p.name),1)]),t.createElementVNode("div",Ls,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Zs,[t.createTextVNode(t.toDisplayString((k=(V=(A=l.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:k.name)+" ",1),(h=(z=(x=(y=l.plan)==null?void 0:y.voyage)==null?void 0:x.vessel)==null?void 0:z.vesselType)!=null&&h.name?(t.openBlock(),t.createElementBlock("span",_s,"("+t.toDisplayString((Y=(G=(B=(g=l.plan)==null?void 0:g.voyage)==null?void 0:B.vessel)==null?void 0:G.vesselType)==null?void 0:Y.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Js,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((q=(L=l.plan)==null?void 0:L.voyage)==null?void 0:q.number)),1)])]),t.createElementVNode("div",Xs,[t.createElementVNode("div",Ks,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(et=(tt=(v=l.plan)==null?void 0:v.leg)==null?void 0:tt.departure)!=null&&et.name?(t.openBlock(),t.createElementBlock("span",us,t.toDisplayString((P=(dt=(at=l.plan)==null?void 0:at.leg)==null?void 0:dt.departure)==null?void 0:P.name),1)):(t.openBlock(),t.createElementBlock("span",qs,t.toDisplayString(d.computePosition((Nt=(rt=l.plan)==null?void 0:rt.leg)==null?void 0:Nt.departure)),1)),t.createElementVNode("span",$s,t.toDisplayString(d.computeUTCTime(((xt=(Vt=(Tt=l.plan)==null?void 0:Tt.leg)==null?void 0:Vt.departure)==null?void 0:xt.atd)||((jt=(zt=(pt=l.plan)==null?void 0:pt.leg)==null?void 0:zt.departure)==null?void 0:jt.etd)||((bt=(St=(Ut=(kt=l.plan)==null?void 0:kt.speeds)==null?void 0:Ut[n.speedIndex])==null?void 0:St.speed)==null?void 0:bt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",vs,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Yt=(ht=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ht.destination)!=null&&Yt.name?(t.openBlock(),t.createElementBlock("span",tr,t.toDisplayString((wt=(Qt=(ft=l.plan)==null?void 0:ft.leg)==null?void 0:Qt.destination)==null?void 0:wt.name),1)):(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString(d.computePosition((Xt=(w=l.plan)==null?void 0:w.leg)==null?void 0:Xt.destination)),1)),t.createElementVNode("span",ar,t.toDisplayString(d.computeUTCTime(((Gt=(Ft=(Bt=(Rt=l.plan)==null?void 0:Rt.speeds)==null?void 0:Bt[n.speedIndex])==null?void 0:Ft.speed)==null?void 0:Gt.ata)||((Zt=(Lt=(Wt=(Pt=l.plan)==null?void 0:Pt.speeds)==null?void 0:Wt[n.speedIndex])==null?void 0:Lt.speed)==null?void 0:Zt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",lr,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",or,t.toDisplayString((Jt=(_t=l.plan)==null?void 0:_t.voyage)==null?void 0:Jt.loadCondition),1)])])]),t.createElementVNode("div",nr,[t.createElementVNode("div",ir,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dr," FCST fr Pos. "+t.toDisplayString(d.computeUTCTime((ee=(te=(vt=($t=(qt=(ut=(Kt=l.plan)==null?void 0:Kt.speeds)==null?void 0:ut[n.speedIndex])==null?void 0:qt.speed)==null?void 0:$t.sample)==null?void 0:vt.hours)==null?void 0:te[0])==null?void 0:ee.eta)),1)]),(ae=l.plan)!=null&&ae.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,sr)]),t.createElementVNode("div",rr,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-b8dafa43><span class="dangerous" data-v-b8dafa43></span><span data-v-b8dafa43>Danger</span></div><div class="legend" data-v-b8dafa43><span class="severe" data-v-b8dafa43></span><span data-v-b8dafa43>Severe</span></div><div class="legend" data-v-b8dafa43><span class="heavy" data-v-b8dafa43></span><span data-v-b8dafa43>Heavy</span></div>',3)),t.createElementVNode("div",Nr,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{n.speedIndex=0,d.renderEchart()})},t.toDisplayString((de=(ie=(ne=(oe=(le=l.plan)==null?void 0:le.speeds)==null?void 0:oe[0])==null?void 0:ne.speed)==null?void 0:ie.lane)==null?void 0:de.name),1)]),((re=(se=l.plan)==null?void 0:se.speeds)==null?void 0:re.length)>1?(t.openBlock(),t.createElementBlock("div",cr,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{n.speedIndex=1,d.renderEchart()})},t.toDisplayString((Ne=(Ht=(K=(it=(i=l.plan)==null?void 0:i.speeds)==null?void 0:it[1])==null?void 0:K.speed)==null?void 0:Ht.lane)==null?void 0:Ne.name),1)])):t.createCommentVNode("",!0),((Me=(ce=l.plan)==null?void 0:ce.speeds)==null?void 0:Me.length)>2?(t.openBlock(),t.createElementBlock("div",Mr,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{n.speedIndex=2,d.renderEchart()})},t.toDisplayString((Te=($=(ge=(De=(me=l.plan)==null?void 0:me.speeds)==null?void 0:De[2])==null?void 0:ge.speed)==null?void 0:$.lane)==null?void 0:Te.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>d.handleRefresh&&d.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Dr,[(je=(ze=l.plan)==null?void 0:ze.speeds)!=null&&je.length?(t.openBlock(),t.createElementBlock("table",gr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:d.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Er),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("th",Ar,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(d.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ke=l.plan)==null?void 0:ke.speeds,(m,yt)=>{var Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,il,dl,sl,Nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:yt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tr,t.toDisplayString(yt+1),1),t.createElementVNode("td",Vr,t.toDisplayString((Ee=(Ie=m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",xr,t.toDisplayString(`CP ${((Pe=(pe=m.speed)==null?void 0:pe.cpCopy)==null?void 0:Pe.speed)??((ca=m.speed)==null?void 0:ca.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",pr,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Da=(ma=(Ma=m.speed)==null?void 0:Ma.extend)==null?void 0:ma.cps[0])==null?void 0:Da.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Ea=(Ia=(ga=m.speed)==null?void 0:ga.extend)==null?void 0:Ia.cps[1])==null?void 0:Ea.speed),1)]))]),t.createElementVNode("td",zr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ya=m.speed)==null?void 0:ya.distance,0)),1),(Ta=(Aa=m.speed)==null?void 0:Aa.extend)!=null&&Ta.distanceInECA?(t.openBlock(),t.createElementBlock("span",jr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime((Va=m.speed)==null?void 0:Va.eta,(za=(pa=(xa=l.plan)==null?void 0:xa.leg)==null?void 0:pa.destination)==null?void 0:za.lng,(Ua=(ka=(ja=l.plan)==null?void 0:ja.leg)==null?void 0:ka.destination)==null?void 0:Ua.lat,(ha=(Oa=(Ca=(ba=(Sa=l.plan)==null?void 0:Sa.leg)==null?void 0:ba.destination)==null?void 0:Ca.port)==null?void 0:Oa.timezone)==null?void 0:ha.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((Ya=m.speed)==null?void 0:Ya.eta)),1)]),t.createElementVNode("td",kr,t.toDisplayString(d.computeSuspend(m.speed)),1),t.createElementVNode("td",Ur,t.toDisplayString(d.roundPrecision((fa=m.speed)==null?void 0:fa.totalFoCons,3)),1),t.createElementVNode("td",Sr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Qa=m.speed)==null?void 0:Qa.totalDgoCons,3)),1),(U=(r=m.speed)==null?void 0:r.extend)!=null&&U.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",br," + "+t.toDisplayString(d.roundPrecision((S=m.speed.extend)==null?void 0:S.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",Cr,t.toDisplayString((O=d.roundPrecision(((C=(b=m==null?void 0:m.speed)==null?void 0:b.cost)==null?void 0:C.total)/1e3,2))==null?void 0:O.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,yt)),9,Or),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(R=(f=l.weatherPrinciple)==null?void 0:f.dangerous)==null?void 0:R.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Z=(F=l.weatherPrinciple)==null?void 0:F.severe)==null?void 0:Z.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(J=(_=l.weatherPrinciple)==null?void 0:_.heavy)==null?void 0:J.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((H=m.speed)==null?void 0:H.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",hr,"FO: "+t.toDisplayString((ot=(X=m.speed)==null?void 0:X.cpCopy)==null?void 0:ot.fo)+" / DO: "+t.toDisplayString((st=(nt=m.speed)==null?void 0:nt.cpCopy)==null?void 0:st.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Mt=(ct=m.speed)==null?void 0:ct.extend)==null?void 0:Mt.cps[0].fo)+" / "+t.toDisplayString((Dt=(mt=m.speed)==null?void 0:mt.extend)==null?void 0:Dt.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((It=(gt=m.speed)==null?void 0:gt.extend)==null?void 0:It.cps[0].dgo)+" / "+t.toDisplayString((Ae=(ye=m.speed)==null?void 0:ye.extend)==null?void 0:Ae.cps[1].dgo),1)],64))]),t.createElementVNode("td",Yr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Ve=m.speed)==null?void 0:Ve.totalHrs,1)),1),(Ra=(wa=m.speed)==null?void 0:wa.extend)!=null&&Ra.hoursInECA?(t.openBlock(),t.createElementBlock("span",fr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ba=m.speed)==null?void 0:Ba.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((Fa=m.speed)==null?void 0:Fa.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((Ga=m.speed)==null?void 0:Ga.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(d.roundPrecision(((Wa=(Pa=m==null?void 0:m.speed)==null?void 0:Pa.cost)==null?void 0:Wa.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(d.roundPrecision(((il=(La=m==null?void 0:m.speed)==null?void 0:La.cost)==null?void 0:il.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",wr,t.toDisplayString(d.computeCostDiff(l.plan,yt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((dl=m.speed)==null?void 0:dl.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((sl=m.speed)==null?void 0:sl.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((Nl=m.speed)==null?void 0:Nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Rr,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),d.showCost?(t.openBlock(),t.createElementBlock("span",Br,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((be=d.roundPrecision((Se=(Ue=l.plan)==null?void 0:Ue.voyage)==null?void 0:Se.dailyHire,0))==null?void 0:be.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((he=d.roundPrecision((Oe=(Ce=l.plan)==null?void 0:Ce.voyage)==null?void 0:Oe.priceFO,0))==null?void 0:he.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Qe=d.roundPrecision((fe=(Ye=l.plan)==null?void 0:Ye.voyage)==null?void 0:fe.priceDGO,0))==null?void 0:Qe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[t.createElementVNode("div",Pr,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Wr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Fe=(Be=(Re=(we=l.plan.speeds)==null?void 0:we[n.speedIndex])==null?void 0:Re.speed)==null?void 0:Be.lane)==null?void 0:Fe.name),1)]),((Le=(Ge=l.plan)==null?void 0:Ge.speeds)==null?void 0:Le.length)>1?(t.openBlock(),t.createElementBlock("div",Lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ze=l.plan)==null?void 0:Ze.speeds,(m,yt)=>{var Ie,Ee;return t.openBlock(),t.createElementBlock("div",{key:yt,class:t.normalizeClass(["route-item",n.speedIndex===yt?"active":""]),onClick:pe=>{n.speedIndex=yt,d.renderEchart()}},t.toDisplayString((Ee=(Ie=m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),11,Zr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_r,[n.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>d.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>d.handleEdit&&d.handleEdit(...m)),innerHTML:n.advisory},null,40,Jr))]),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-b8dafa43>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-b8dafa43>Time</div><div class="cell-item flex" data-v-b8dafa43>Nav</div><div class="cell-item flex" data-v-b8dafa43>Dist <span class="text-units" data-v-b8dafa43>(nm)</span></div>',4)),(Je=(_e=l.plan)==null?void 0:_e.voyage)!=null&&Je.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Xe=(He=l.plan)==null?void 0:He.voyage)!=null&&Xe.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",ur,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",qr,[(ue=(Ke=l.plan)==null?void 0:Ke.speeds)!=null&&ue.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((ta=(ve=($e=(qe=l.plan)==null?void 0:qe.speeds)==null?void 0:$e[n.speedIndex])==null?void 0:ve.speed)==null?void 0:ta.argv,(oa=(la=(I=(aa=(ea=l.plan)==null?void 0:ea.speeds)==null?void 0:aa[n.speedIndex])==null?void 0:I.speed)==null?void 0:la.sample)==null?void 0:oa.wps),(m,yt)=>{var Ie,Ee,pe,Pe;return t.openBlock(),t.createElementBlock("div",{key:yt,class:"cell-row"},[t.createElementVNode("div",$r,[m.isResume?(t.openBlock(),t.createElementBlock("div",vr,"Resume")):(t.openBlock(),t.createElementBlock("div",tN,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",eN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",aN,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",lN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),yt?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(d.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",nN)),yt?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(d.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",dN)),(Ee=(Ie=l.plan)==null?void 0:Ie.voyage)!=null&&Ee.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[yt?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(d.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Pe=(pe=l.plan)==null?void 0:pe.voyage)!=null&&Pe.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[yt?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(d.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),yt?(t.openBlock(),t.createElementBlock("div",MN,t.toDisplayString(d.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",DN,[(ia=(na=l.plan)==null?void 0:na.speeds)!=null&&ia.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((xe=(Na=(ra=(sa=(da=l.plan)==null?void 0:da.speeds)==null?void 0:sa[n.speedIndex])==null?void 0:ra.speed)==null?void 0:Na.lane)==null?void 0:xe.name),1)]),((Ja=(_a=l.plan)==null?void 0:_a.speeds)==null?void 0:Ja.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ha=l.plan)==null?void 0:Ha.speeds,(m,yt)=>{var Ie,Ee;return t.openBlock(),t.createElementBlock("div",{key:yt,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===yt?"active":""]),onClick:pe=>{n.speedIndex=yt,d.renderEchart()}},t.toDisplayString((Ee=(Ie=m==null?void 0:m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN,"* "+t.toDisplayString(d.computeModel((ua=(Ka=(Xa=l.plan)==null?void 0:Xa.speeds)==null?void 0:Ka[n.speedIndex])==null?void 0:ua.speed)),1)]),t.createElementVNode("div",pN,[e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:($a=(qa=l.plan)==null?void 0:qa.voyage)!=null&&$a.sendRptWithBF?3:2},"Wind",8,jN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(tl=(va=l.plan)==null?void 0:va.voyage)!=null&&tl.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((nl=(ol=(ll=(al=(el=l.plan)==null?void 0:el.speeds)==null?void 0:al[n.speedIndex])==null?void 0:ll.speed)==null?void 0:ol.sample)==null?void 0:nl.hours,(m,yt)=>{var Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La;return t.openBlock(),t.createElementBlock("tr",{key:yt},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",UN,t.toDisplayString(d.computeLat(m.lat))+", "+t.toDisplayString(d.computeLng(m.lng)),1)]),t.createElementVNode("td",SN,[(Ee=(Ie=m.meteo)==null?void 0:Ie.wind)!=null&&Ee.kts?(t.openBlock(),t.createElementBlock("span",bN,t.toDisplayString((Pe=(pe=m.meteo)==null?void 0:pe.wind)==null?void 0:Pe.direction),1)):t.createCommentVNode("",!0),(Ma=(ca=m.meteo)==null?void 0:ca.wind)!=null&&Ma.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Da=(ma=m.meteo)==null?void 0:ma.wind)==null?void 0:Da.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",CN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(m))},t.toDisplayString(d.roundPrecision((Ia=(ga=m.meteo)==null?void 0:ga.wind)==null?void 0:Ia.kts,1)),3),(ya=(Ea=l.plan)==null?void 0:Ea.voyage)!=null&&ya.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",ON,t.toDisplayString((Ta=(Aa=m.meteo)==null?void 0:Aa.wind)==null?void 0:Ta.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((pa=(xa=(Va=m.meteo)==null?void 0:Va.wave)==null?void 0:xa.wd)==null?void 0:pa.height,1)),1),t.createElementVNode("td",hN,[(ka=(ja=(za=m.meteo)==null?void 0:za.wave)==null?void 0:ja.swell)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((ba=(Sa=(Ua=m.meteo)==null?void 0:Ua.wave)==null?void 0:Sa.swell)==null?void 0:ba.direction),1)):t.createCommentVNode("",!0),(ha=(Oa=(Ca=m.meteo)==null?void 0:Ca.wave)==null?void 0:Oa.swell)!=null&&ha.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(Qa=(fa=(Ya=m.meteo)==null?void 0:Ya.wave)==null?void 0:fa.swell)==null?void 0:Qa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((S=(U=(r=m.meteo)==null?void 0:r.wave)==null?void 0:U.swell)==null?void 0:S.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((O=(C=(b=m.meteo)==null?void 0:b.wave)==null?void 0:C.swell)==null?void 0:O.period,1)),1),t.createElementVNode("td",QN,[(F=(R=(f=m.meteo)==null?void 0:f.wave)==null?void 0:R.sig)!=null&&F.height?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((J=(_=(Z=m.meteo)==null?void 0:Z.wave)==null?void 0:_.sig)==null?void 0:J.direction),1)):t.createCommentVNode("",!0),(ot=(X=(H=m.meteo)==null?void 0:H.wave)==null?void 0:X.sig)!=null&&ot.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(ct=(st=(nt=m.meteo)==null?void 0:nt.wave)==null?void 0:st.sig)==null?void 0:ct.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(m))},t.toDisplayString(d.roundPrecision((Dt=(mt=(Mt=m.meteo)==null?void 0:Mt.wave)==null?void 0:mt.sig)==null?void 0:Dt.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ye=(It=(gt=m.meteo)==null?void 0:gt.wave)==null?void 0:It.sig)==null?void 0:ye.period,1)),1),t.createElementVNode("td",BN,[(Ve=(Ae=m.meteo)==null?void 0:Ae.current)!=null&&Ve.kts?(t.openBlock(),t.createElementBlock("span",FN,t.toDisplayString((Ra=(wa=m.meteo)==null?void 0:wa.current)==null?void 0:Ra.direction),1)):t.createCommentVNode("",!0),(Fa=(Ba=m.meteo)==null?void 0:Ba.current)!=null&&Fa.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(Pa=(Ga=m.meteo)==null?void 0:Ga.current)==null?void 0:Pa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const fi=Za(ws,[["render",PN],["__scopeId","data-v-b8dafa43"]]),WN={install(o){o.component("PlanReport",fi)}},O3="",LN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},ZN={class:"cover-box"},_N={class:"cover-content"},JN={class:"cover-title"},HN={class:"cover-info"},XN={class:"info-item"},KN={class:"info-item"},uN={class:"info-item"},qN={style:{"font-weight":"600"}},$N={class:"info-item"},vN={style:{"font-weight":"600"}},tc={class:"info-item"},ec={key:0},ac={key:1},lc={class:"info-item"},oc={class:"info-item"},nc={key:0},ic={key:1},dc={class:"info-item"},sc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,d){var D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q;return t.openBlock(),t.createElementBlock("div",ZN,[t.createElementVNode("div",_N,[t.createElementVNode("div",JN,t.toDisplayString(l.name),1),t.createElementVNode("div",HN,[t.createElementVNode("div",XN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((s=(D=l.report)==null?void 0:D.voyage)==null?void 0:s.number),1)]),t.createElementVNode("div",KN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",uN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",qN,t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",$N,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(E=(a=l.report)==null?void 0:a.departure)!=null&&E.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((p=(j=l.report)==null?void 0:j.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(d.computePosition((A=l.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",lc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((k=(V=l.report)==null?void 0:V.departure)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(y=l.report)==null?void 0:y.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((h=(z=l.report)==null?void 0:z.arrival)==null?void 0:h.portName),1)):(t.openBlock(),t.createElementBlock("span",ic,t.toDisplayString(d.computePosition((g=l.report)==null?void 0:g.arrival)),1))]),t.createElementVNode("div",dc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((G=(B=l.report)==null?void 0:B.arrival)==null?void 0:G.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((Q=(Y=l.report)==null?void 0:Y.voyage)==null?void 0:Q.loadCondition),1)])])])])}const cc=Za(LN,[["render",Nc],["__scopeId","data-v-89d46487"]]),h3="",Mc={name:"OrmVoyageSummary",components:{Editor:ml},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 u.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return u.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 u.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,s;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 d=(s=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:s.hours.filter(c=>c.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-position"},zc={key:0},jc={key:1},kc={class:"phase-cp"},Uc={class:"orm-report-table"},Sc={class:"phase-conclusion"},bc={class:"item-conclusion bg-blue-light-2"},Cc={class:"value align-left"},Oc={key:0,class:"text-secondary align-right"},hc={key:0},Yc={key:1},fc={key:2},Qc={key:1,class:"text-secondary"},wc={key:2,class:"value"},Rc={key:0},Bc={class:"gain"},Fc={key:1},Gc={class:"lost"},Pc={key:2},Wc={class:"item-conclusion bg-blue-light-2"},Lc={class:"value align-left"},Zc={key:0,class:"text-secondary"},_c={key:0},Jc={key:1},Hc={key:2},Xc={key:1,class:"text-secondary"},Kc={key:2,class:"value"},uc={key:0},qc={class:"gain"},$c={key:1},vc={class:"lost"},tM={key:2},eM={class:"item-conclusion bg-blue-light-2"},aM={class:"value align-left"},lM={key:0,class:"text-secondary"},oM={key:0},nM={key:1},iM={key:2},dM={key:1,class:"text-secondary"},sM={key:2,class:"value"},rM={key:0},NM={class:"gain"},cM={key:1},MM={class:"lost"},mM={key:2},DM={key:0,class:"exclusion-block"},gM={style:{margin:"8px 0"}},IM={class:"orm-report-table"},EM={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},yM={class:"sub-title"},AM=["innerHTML"],TM={class:"section segment-section"},VM={class:"segment-summary"},xM={class:"segment-index text-left"},pM={class:"segment-position"},zM={key:0},jM={key:1},kM={class:"segment-position"},UM={key:0},SM={key:1},bM={class:"orm-report-table"},CM={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={class:"good-wx"},FM={class:"good-wx"},GM={class:"good-wx"},PM={class:"good-wx"},WM={class:"good-wx"},LM={class:"good-wx"},ZM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},_M={key:0},JM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},HM={key:2,class:"segment-speed"},XM={class:"row"},KM={class:"speed-right row"},uM={class:"speed"},qM={key:1,class:"speed"},$M={key:0,class:"speed"},vM={class:"speed"},tm={class:"speed"},em={class:"speed"},am={key:0,class:"under"},lm={key:1,class:"over"},om={class:"row"},nm={class:"speed-right formula flex-space"},im={key:0},dm={key:3,class:"segment-speed"},sm={class:"row"},rm={class:"speed-right row"},Nm={class:"speed"},cm={class:"speed"},Mm={key:0,class:"under"},mm={key:1,class:"over"},Dm={class:"row"},gm={class:"speed-right formula row"},Im={class:"segment-formula"},Em={class:"sub-title"},ym={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Am={class:"formula-block"},Tm={class:"formula-item flex-evenly bg-blue-light"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"240px"}},Um={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},bm={class:"formula-right flex-evenly"},Cm={class:"fraction",style:{width:"240px"}},Om={class:"formula-desc"},hm={class:"flex-end"},Ym={class:"flex-end"},fm={class:"flex-end"},Qm={key:0,class:"formula-block"},wm={class:"formula-item flex-evenly bg-blue-light"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item flex-center bg-blue-light"},Zm={class:"formula-left flex-space"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"200px"}},Hm={class:"formula-item formula-conclusion bg-blue-light"},Xm={key:0,class:"flex-evenly",style:{width:"500px"}},Km={key:1,class:"flex-evenly",style:{width:"500px"}},um={class:"flex-center"},qm={key:1,class:"formula-conclusion bg-blue-light"},$m={class:"segment-formula"},vm={class:"sub-title"},tD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},eD={class:"formula-block"},aD={class:"formula-item flex-evenly bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"240px"}},nD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},iD={key:0,class:"flex-end text-tips"},dD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"200px"}},mD={class:"formula-item flex-center bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"300px"}},ID={class:"formula-item flex-center bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"300px"}},AD={class:"sub-title"},TD={key:0,class:"formula-block"},VD={key:0,class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"60px"}},zD={class:"fraction",style:{width:"60px"}},jD={class:"formula-item flex-evenly bg-blue-light"},kD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},bD={key:0},CD={class:"formula-item flex-evenly bg-blue-light"},OD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item flex-evenly bg-blue-light"},QD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"150px"}},RD={class:"fraction",style:{width:"150px"}},BD={class:"formula-item formula-conclusion bg-blue-light"},FD={class:"flex-evenly",style:{width:"500px"}},GD={key:0,class:"flex-evenly"},PD={class:"fraction"},WD={class:"flex-evenly",style:{width:"700px"}},LD={key:0,class:"flex-evenly",style:{width:"500px"}},ZD={class:"fraction",style:{width:"140px"}},_D={key:1,class:"formula-item formula-conclusion bg-blue-light"},JD={class:"header-block"},HD={class:"bg-block"},XD={class:"block-title"},KD={key:0,class:"formula-block"},uD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={key:0},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ig={class:"formula-right flex-evenly"},dg={class:"fraction",style:{width:"150px"}},sg={class:"fraction",style:{width:"150px"}},rg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Ng={key:0,class:"flex-evenly",style:{width:"500px"}},cg={key:1,class:"flex-evenly",style:{width:"700px"}},Mg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function mg(o,e,l,N,n,d){var s,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(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((s=l.report)==null?void 0:s.segments,(a,E)=>{var j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(w,Xt)=>{var Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt;return t.openBlock(),t.createElementBlock("div",{key:Xt,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[(Rt=w==null?void 0:w.departure)!=null&&Rt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((Bt=w==null?void 0:w.departure)==null?void 0:Bt.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(d.computeLat((Ft=w==null?void 0:w.departure)==null?void 0:Ft.lat).pretty)+", "+t.toDisplayString(d.computeLng((Gt=w==null?void 0:w.departure)==null?void 0:Gt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Pt=w==null?void 0:w.departure)==null?void 0:Pt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",pc,[(Wt=w==null?void 0:w.arrival)!=null&&Wt.portName?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((Lt=w==null?void 0:w.arrival)==null?void 0:Lt.portName),1)):(t.openBlock(),t.createElementBlock("span",jc,t.toDisplayString(d.computeLat((Zt=w==null?void 0:w.arrival)==null?void 0:Zt.lat).pretty)+", "+t.toDisplayString(d.computeLng((_t=w==null?void 0:w.arrival)==null?void 0:_t.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Jt=w==null?void 0:w.arrival)==null?void 0:Jt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",kc,[t.createElementVNode("table",Uc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(p=a==null?void 0:a.extend)==null?void 0:p.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(k=(V=a==null?void 0:a.extend)==null?void 0:V.cp)==null?void 0:k.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(x=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((h=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:h.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((B=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:B.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Sc,[t.createElementVNode("div",bc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Cc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Oc,[((G=a==null?void 0:a.timeConclusion)==null?void 0:G.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",hc,"Time Gained")):((Y=a==null?void 0:a.timeConclusion)==null?void 0:Y.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",wc,[((Q=a==null?void 0:a.timeConclusion)==null?void 0:Q.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Rc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Fc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Gc,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Pc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Lc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Zc,[((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",_c,"FO Saving")):((at=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:at.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Hc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Kc,[((P=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",uc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",qc,t.toDisplayString((Nt=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:Nt.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",$c,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",vc,t.toDisplayString((pt=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",tM,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",eM,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",aM,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",lM,[((jt=(zt=a==null?void 0:a.fuelConclusion)==null?void 0:zt.dgo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",oM,"DO/GO Saving")):((Ut=(kt=a==null?void 0:a.fuelConclusion)==null?void 0:kt.dgo)==null?void 0:Ut.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",nM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",iM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",dM,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",sM,[((bt=(St=a==null?void 0:a.fuelConclusion)==null?void 0:St.dgo)==null?void 0:bt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",rM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",NM,t.toDisplayString((ht=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.dgo)==null?void 0:ht.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((ft=(Yt=a==null?void 0:a.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:ft.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",cM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",MM,t.toDisplayString((wt=(Qt=a==null?void 0:a.fuelConclusion)==null?void 0:Qt.dgo)==null?void 0:wt.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",mM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",DM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",gM,[t.createElementVNode("table",IM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,E)=>(t.openBlock(),t.createElementBlock("tr",{key:E},[t.createElementVNode("td",null,t.toDisplayString(E+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",EM,[t.createElementVNode("div",yM," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((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=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,AM))],2)],2),t.createElementVNode("div",TM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,E)=>{var j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt,w,Xt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Kt,ut,qt,$t,vt,te,ee,ae,le,oe,ne,ie,de,se,re,i,it,K,Ht,Ne,ce,Me,me,De,ge,$,Te,ze,je,ke,Ue,Se,be,Ce,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,Le,Ze,_e,Je,He,Xe,Ke,ue,qe,$e,ve,ta,ea,aa,I,la,oa,na,ia,da,sa,ra,Na,xe,_a,Ja,Ha,Xa,Ka,ua,qa,$a,va,tl,el,al,ll,ol,nl,m,yt,Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,il,dl,sl,Nl,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,M,Sl,bl,Cl,Ol,hl,Yl,fl,Ql,cl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ul,ql,$l,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,bo,Co,Oo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,uo,qo,$o,vo,tn,en,an,ln,on,nn,dn,sn,rn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,bn,Cn,On,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,un,qn,$n,vn,ti,ei,ai,li,oi,ni,ii,di,si,ri,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",VM,[t.createElementVNode("div",xM,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(Ct,Rl)=>{var Ml,wl,Ai,Ti,Vi,xi,pi,zi,ji,ki;return t.openBlock(),t.createElementBlock("div",{key:Rl,class:"segment-row text-secondary"},[t.createElementVNode("div",pM,[(Ml=Ct==null?void 0:Ct.departure)!=null&&Ml.portName?(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString((wl=Ct==null?void 0:Ct.departure)==null?void 0:wl.portName),1)):(t.openBlock(),t.createElementBlock("span",jM,t.toDisplayString(d.computeLat((Ai=Ct==null?void 0:Ct.departure)==null?void 0:Ai.lat).pretty)+", "+t.toDisplayString(d.computeLng((Ti=Ct==null?void 0:Ct.departure)==null?void 0:Ti.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Vi=Ct==null?void 0:Ct.departure)==null?void 0:Vi.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",kM,[(xi=Ct==null?void 0:Ct.arrival)!=null&&xi.portName?(t.openBlock(),t.createElementBlock("span",UM,t.toDisplayString((pi=Ct==null?void 0:Ct.arrival)==null?void 0:pi.portName),1)):(t.openBlock(),t.createElementBlock("span",SM,t.toDisplayString(d.computeLat((zi=Ct==null?void 0:Ct.arrival)==null?void 0:zi.lat).pretty)+", "+t.toDisplayString(d.computeLng((ji=Ct==null?void 0:Ct.arrival)==null?void 0:ji.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ki=Ct==null?void 0:Ct.arrival)==null?void 0:ki.utcTime))+")",1)])])}),128)),t.createElementVNode("table",bM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",CM,t.toDisplayString((A=(p=a==null?void 0:a.goodWx)==null?void 0:p.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",OM,t.toDisplayString((k=(V=a==null?void 0:a.goodWx)==null?void 0:V.inEca)==null?void 0:k.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((h=(z=a==null?void 0:a.allWx)==null?void 0:z.inEca)==null?void 0:h.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((B=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:B.time),1),t.createElementVNode("td",YM,t.toDisplayString((Y=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Y.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((q=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:q.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.outEca)==null?void 0:tt.avgSpd)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((at=(et=a==null?void 0:a.goodWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((P=(dt=a==null?void 0:a.allWx)==null?void 0:dt.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(rt=a==null?void 0:a.allWx)==null?void 0:rt.inEca)==null?void 0:Nt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.sumFoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((pt=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.outEca)==null?void 0:jt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(kt=a==null?void 0:a.allWx)==null?void 0:kt.inEca)==null?void 0:Ut.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((bt=(St=a==null?void 0:a.goodWx)==null?void 0:St.outEca)==null?void 0:bt.avgFoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((ht=(lt=a==null?void 0:a.goodWx)==null?void 0:lt.inEca)==null?void 0:ht.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ft=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.outEca)==null?void 0:ft.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(Qt=a==null?void 0:a.allWx)==null?void 0:Qt.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",GM,t.toDisplayString(((Xt=(w=a==null?void 0:a.goodWx)==null?void 0:w.outEca)==null?void 0:Xt.sumDgoCons)||"--"),1),t.createElementVNode("td",PM,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Gt=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Gt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Wt=(Pt=a==null?void 0:a.allWx)==null?void 0:Pt.inEca)==null?void 0:Wt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",WM,t.toDisplayString(((Zt=(Lt=a==null?void 0:a.goodWx)==null?void 0:Lt.outEca)==null?void 0:Zt.avgDgoCons)||"--"),1),t.createElementVNode("td",LM,t.toDisplayString(((Jt=(_t=a==null?void 0:a.goodWx)==null?void 0:_t.inEca)==null?void 0:Jt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ut=(Kt=a==null?void 0:a.allWx)==null?void 0:Kt.outEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString((($t=(qt=a==null?void 0:a.allWx)==null?void 0:qt.inEca)==null?void 0:$t.avgDgoCons)||"--"),1)])])]),(vt=a==null?void 0:a.goodWx)!=null&&vt.distance?(t.openBlock(),t.createElementBlock("table",ZM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[E],(Ct,Rl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Rl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ct,(Ml,wl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:wl},[Ml.goodWx?(t.openBlock(),t.createElementBlock("tr",_M,[t.createElementVNode("td",null,t.toDisplayString(Ml.type)+" "+t.toDisplayString(d.computeUTCTime(Ml.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Ml),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Ml.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Ml.utc,d.computePrevTime(Ml))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(te=n.exclusion[E])!=null&&te.time?(t.openBlock(),t.createElementBlock("div",JM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ee=a==null?void 0:a.goodWx)!=null&&ee.distance?(t.openBlock(),t.createElementBlock("div",HM,[t.createElementVNode("div",XM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KM,[(le=(ae=l.report)==null?void 0:ae.weather)!=null&&le.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ne=(Ht=l.report)==null?void 0:Ht.weather)!=null&&Ne.disableWxFactor&&((Me=(ce=l.report)==null?void 0:ce.weather)!=null&&Me.disableCFactor)?(t.openBlock(),t.createElementBlock("span",$M,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString(($=a==null?void 0:a.goodWx)==null?void 0:$.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Te=a==null?void 0:a.goodWx)==null?void 0:Te.avgCf)>0?(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf:`(${(je=a==null?void 0:a.goodWx)==null?void 0:je.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((ke=a==null?void 0:a.goodWx)==null?void 0:ke.pfmSpd)+" (kts)",1)],64)):(Se=(Ue=l.report)==null?void 0:Ue.weather)!=null&&Se.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((be=a==null?void 0:a.goodWx)==null?void 0:be.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf)>0?(Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.avgWf:`(${(he=a==null?void 0:a.goodWx)==null?void 0:he.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),(Fe=(Be=l.report)==null?void 0:Be.weather)!=null&&Fe.favorableCur&&((Ge=a==null?void 0:a.goodWx)==null?void 0:Ge.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Le=a==null?void 0:a.goodWx)==null?void 0:Le.avgCf)>0?(Ze=a==null?void 0:a.goodWx)==null?void 0:Ze.avgCf:`(${(_e=a==null?void 0:a.goodWx)==null?void 0:_e.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",em,t.toDisplayString((Je=a==null?void 0:a.goodWx)==null?void 0:Je.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ne=(oe=l.report)==null?void 0:oe.weather)!=null&&ne.favorableCur&&((ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf)>0?(t.openBlock(),t.createElementBlock("span",qM,t.toDisplayString((K=a==null?void 0:a.goodWx)==null?void 0:K.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((de=a==null?void 0:a.goodWx)==null?void 0:de.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((se=a==null?void 0:a.goodWx)==null?void 0:se.avgCf)>0?(re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,t.toDisplayString((it=a==null?void 0:a.goodWx)==null?void 0:it.pfmSpd)+" (kts)",1)],64))],64)),(Xe=(He=l.report)==null?void 0:He.voyage)!=null&&Xe.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((Ke=a==null?void 0:a.goodWx)==null?void 0:Ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",am,"(Under-performance)")):t.createCommentVNode("",!0),((ue=a==null?void 0:a.goodWx)==null?void 0:ue.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",om,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nm,[($e=(qe=l.report)==null?void 0:qe.weather)!=null&&$e.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(I=(aa=l.report)==null?void 0:aa.weather)!=null&&I.disableWxFactor&&((oa=(la=l.report)==null?void 0:la.weather)!=null&&oa.disableCFactor)?(t.openBlock(),t.createElementBlock("label",im,"GW Average Speed")):(ia=(na=l.report)==null?void 0:na.weather)!=null&&ia.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(sa=(da=l.report)==null?void 0:da.weather)!=null&&sa.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Na=(ra=l.report)==null?void 0:ra.weather)!=null&&Na.favorableCur&&((xe=a==null?void 0:a.goodWx)==null?void 0:xe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ta=(ve=l.report)==null?void 0:ve.weather)!=null&&ta.favorableCur&&((ea=a==null?void 0:a.goodWx)==null?void 0:ea.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",sm,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rm,[(Ja=(_a=l.report)==null?void 0:_a.weather)!=null&&Ja.favorableCur&&((Ha=a==null?void 0:a.allWx)==null?void 0:Ha.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((al=a==null?void 0:a.allWx)==null?void 0:al.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ll=a==null?void 0:a.allWx)==null?void 0:ll.avgWf)>0?(ol=a==null?void 0:a.allWx)==null?void 0:ol.avgWf:`(${(nl=a==null?void 0:a.allWx)==null?void 0:nl.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",cm,t.toDisplayString((m=a==null?void 0:a.allWx)==null?void 0:m.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xa=a==null?void 0:a.allWx)==null?void 0:Xa.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ka=a==null?void 0:a.allWx)==null?void 0:Ka.avgCf)>0?(ua=a==null?void 0:a.allWx)==null?void 0:ua.avgCf:`(${(qa=a==null?void 0:a.allWx)==null?void 0:qa.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString((($a=a==null?void 0:a.allWx)==null?void 0:$a.avgWf)>0?(va=a==null?void 0:a.allWx)==null?void 0:va.avgWf:`(${(tl=a==null?void 0:a.allWx)==null?void 0:tl.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Nm,t.toDisplayString((el=a==null?void 0:a.allWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64)),(Ie=(yt=l.report)==null?void 0:yt.voyage)!=null&&Ie.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((Ee=a==null?void 0:a.allWx)==null?void 0:Ee.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Mm,"(Under-performance)")):t.createCommentVNode("",!0),((pe=a==null?void 0:a.allWx)==null?void 0:pe.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",mm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Dm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gm,[(ca=(Pe=l.report)==null?void 0:Pe.weather)!=null&&ca.favorableCur&&((Ma=a==null?void 0:a.allWx)==null?void 0:Ma.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(Da=(ma=l.report)==null?void 0:ma.weather)!=null&&Da.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ym,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Ia=(ga=l.report)==null?void 0:ga.weather)!=null&&Ia.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ya=(Ea=a==null?void 0:a.extend)==null?void 0:Ea.cp)==null?void 0:ya.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((Ta=(Aa=l.report)==null?void 0:Aa.weather)!=null&&Ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Um,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",bm,[t.createElementVNode("div",Cm,[t.createElementVNode("div",null,t.toDisplayString((ka=(ja=l.report)==null?void 0:ja.weather)!=null&&ka.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Sa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:Sa.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:300px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Lost</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(a)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Gained</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(c)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(a)</div></div></div>',1))]),t.createElementVNode("div",Om,[t.createElementVNode("div",hm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Ca.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Ym,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ha=(Oa=a==null?void 0:a.extend)==null?void 0:Oa.cp)==null?void 0:ha.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",fm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ya=a==null?void 0:a.extend)==null?void 0:Ya.cp)==null?void 0:fa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(r=(Qa=a==null?void 0:a.extend)==null?void 0:Qa.cp)==null?void 0:r.speed,"Under"))+" kts) ",1)])]),(U=a==null?void 0:a.goodWx)!=null&&U.distance?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",wm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((b=(S=l.report)==null?void 0:S.weather)!=null&&b.noExtrapolation?(C=a==null?void 0:a.goodWx)==null?void 0:C.distance:(O=a==null?void 0:a.allWx)==null?void 0:O.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((f=a==null?void 0:a.goodWx)==null?void 0:f.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((R=a==null?void 0:a.timeConclusion)==null?void 0:R.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Z=(F=a==null?void 0:a.extend)==null?void 0:F.cp)==null?void 0:Z.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((J=(_=l.report)==null?void 0:_.weather)!=null&&J.noExtrapolation?(H=a==null?void 0:a.goodWx)==null?void 0:H.distance:(X=a==null?void 0:a.allWx)==null?void 0:X.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ot=a==null?void 0:a.timeConclusion)==null?void 0:ot.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nt=a==null?void 0:a.timeConclusion)==null?void 0:nt.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Lm,[t.createElementVNode("div",Zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ct=(st=a==null?void 0:a.extend)==null?void 0:st.cp)==null?void 0:ct.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((mt=(Mt=l.report)==null?void 0:Mt.weather)!=null&&mt.noExtrapolation?(Dt=a==null?void 0:a.goodWx)==null?void 0:Dt.distance:(gt=a==null?void 0:a.allWx)==null?void 0:gt.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((It=a==null?void 0:a.timeConclusion)==null?void 0:It.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ye=a==null?void 0:a.timeConclusion)==null?void 0:ye.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Hm,[((Ae=a==null?void 0:a.timeConclusion)==null?void 0:Ae.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Xm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=a==null?void 0:a.timeConclusion)==null?void 0:Ve.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((wa=a==null?void 0:a.timeConclusion)==null?void 0:wa.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ra=a==null?void 0:a.timeConclusion)==null?void 0:Ra.timeLost)+" (hrs)",1)])):((Ba=a==null?void 0:a.timeConclusion)==null?void 0:Ba.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Km,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fa=a==null?void 0:a.timeConclusion)==null?void 0:Fa.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ga=a==null?void 0:a.timeConclusion)==null?void 0:Ga.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=a==null?void 0:a.timeConclusion)==null?void 0:Pa.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",um,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Wa=a==null?void 0:a.timeConclusion)==null?void 0:Wa.conclusionStatus)==="Lost"?"lost":((La=a==null?void 0:a.timeConclusion)==null?void 0:La.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((il=a==null?void 0:a.timeConclusion)==null?void 0:il.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",qm,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",$m,[t.createElementVNode("div",vm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(sl=(dl=l.report)==null?void 0:dl.weather)!=null&&sl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",tD,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((Dl=(Nl=l.report)==null?void 0:Nl.weather)!=null&&Dl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",nD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Il=(gl=a.extend)==null?void 0:gl.cp)==null?void 0:Il.dgo)>0?(t.openBlock(),t.createElementBlock("div",iD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Tl=(Al=a==null?void 0:a.extend)==null?void 0:Al.cp)==null?void 0:Tl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",ND,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:240px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Over-consumption</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(d)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(e)</div></div><div class="flex-space" style="width:200px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Saving</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(f)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(d)</div></div></div>',1)),((kl=(jl=a.extend)==null?void 0:jl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",mD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",gD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((M=(Ul=l.report)==null?void 0:Ul.weather)!=null&&M.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ID,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",yD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((bl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&bl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",AD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(Cl=a==null?void 0:a.goodWx)!=null&&Cl.distance?(t.openBlock(),t.createElementBlock("div",TD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",VD,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((fl=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:fl.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((cl=(Ql=a==null?void 0:a.extend)==null?void 0:Ql.cp)==null?void 0:cl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",jD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",bD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((ql=(ul=a==null?void 0:a.fuelConclusion)==null?void 0:ul.fo)==null?void 0:ql.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString(($l=a==null?void 0:a.goodWx)==null?void 0:$l.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",CD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((No=(ro=a.fuelConclusion)==null?void 0:ro.fo)==null?void 0:No.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l.report)==null?void 0:co.weather)!=null&&Mo.noExtrapolation?(mo=a==null?void 0:a.goodWx)==null?void 0:mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",BD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",FD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(bo=(So=a==null?void 0:a.goodWx)==null?void 0:So.inEca)!=null&&bo.distance?(t.openBlock(),t.createElementBlock("div",GD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Oo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:Oo.distance)+" * "+t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l.report)==null?void 0:fo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",WD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",LD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l.report)==null?void 0:uo.weather)!=null&&qo.noExtrapolation?(vo=($o=a==null?void 0:a.goodWx)==null?void 0:$o.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(dn=a==null?void 0:a.goodWx)==null?void 0:dn.distance:(sn=a==null?void 0:a.allWx)==null?void 0:sn.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Mn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:Mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(mn=a==null?void 0:a.fuelConclusion)==null?void 0:mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",_D,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",XD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",KD,[t.createElementVNode("div",uD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",tg,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((bn=(Sn=a==null?void 0:a.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:bn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((hn=(On=a.fuelConclusion)==null?void 0:On.dgo)==null?void 0:hn.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",eg,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((fn=(Yn=l.report)==null?void 0:Yn.weather)!=null&&fn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",ng,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ig,[t.createElementVNode("div",dg,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",sg,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((un=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:un.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",rg,[(($n=(qn=a==null?void 0:a.fuelConclusion)==null?void 0:qn.dgo)==null?void 0:$n.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",cg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:Mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(mi=a==null?void 0:a.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",Mg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const Dg=Za(Mc,[["render",mg],["__scopeId","data-v-c0778c3d"]]),Y3="",gg={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeLng(){return function(o){return u.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return u.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?u.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,d,D,s,c,T,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((s=(D=this.report)==null?void 0:D.weather)==null?void 0:s.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},Ig={class:"report-inventory"},Eg={class:"section summary-section"},yg={class:"summary-block"},Ag={class:"orm-report-table inventory-table"},Tg={class:"label",rowspan:"4"},Vg={class:"section inventory-section"},xg={class:"orm-report-table inventory-table detail"},pg=["colspan"],zg={key:0,class:"label",colspan:"2"},jg={key:0,class:"label",rowspan:"2"},kg={key:1,class:"label",rowspan:"2"},Ug={key:2,class:"label",rowspan:"2"},Sg={key:3,class:"label",colspan:"2"},bg={key:4,class:"label",rowspan:"2"},Cg={key:5,class:"label",colspan:"2"},Og={key:6,class:"label",rowspan:"2"},hg={key:7,class:"label",rowspan:"2"},Yg={key:8,class:"label",rowspan:"2"},fg={key:0,class:"label"},Qg={key:1,class:"label"},wg={key:2,class:"label"},Rg={key:3,class:"label"},Bg={class:"summary-tbody"};function Fg(o,e,l,N,n,d){var D;return t.openBlock(),t.createElementBlock("div",Ig,[t.createElementVNode("div",Eg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",yg,[t.createElementVNode("table",Ag,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((D=l.report)==null?void 0:D.segments,(s,c)=>{var T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tg,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=s==null?void 0:s.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=s==null?void 0:s.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=s==null?void 0:s.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=s==null?void 0:s.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=s==null?void 0:s.allWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((A=s==null?void 0:s.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=s==null?void 0:s.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=s==null?void 0:s.goodWx)==null?void 0:k.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((y=s==null?void 0:s.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((x=s==null?void 0:s.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=s==null?void 0:s.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((h=s==null?void 0:s.badWx)==null?void 0:h.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=s==null?void 0:s.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((B=s==null?void 0:s.badWx)==null?void 0:B.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((G=s==null?void 0:s.badWx)==null?void 0:G.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Y=s==null?void 0:s.excluded)==null?void 0:Y.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=s==null?void 0:s.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=s==null?void 0:s.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=s==null?void 0:s.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((q=s==null?void 0:s.excluded)==null?void 0:q.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Vg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",xg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,pg),l.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",jg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",kg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",Ug,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",bg,[...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",Cg,"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",Og,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",hg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Yg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",fg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Qg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",wg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Rg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",Bg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(s,c)=>{var T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(s.segLength?"no-border-bottom":"no-border")},t.toDisplayString(s.segLength?s.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",s.excluded?"excluded":s.goodWx?"good-wx":""])},t.toDisplayString(s.time),3),["B","E"].includes(s.abbrev)&&((T=s.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=s.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((j=(E=s.meteo)==null?void 0:E.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((A=(p=s.meteo)==null?void 0:p.wind)==null?void 0:A.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((y=(k=(V=s.meteo)==null?void 0:V.wave)==null?void 0:k.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((h=(z=(x=s.meteo)==null?void 0:x.wave)==null?void 0:z.swell)==null?void 0:h.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((G=(B=(g=s.meteo)==null?void 0:g.wave)==null?void 0:B.swell)==null?void 0:G.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((W=(Q=(Y=s.meteo)==null?void 0:Y.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((q=(L=s.meteo)==null?void 0:L.current)==null?void 0:q.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((v=s.meteo)==null?void 0:v.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(((tt=s.meteo)==null?void 0:tt.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(((et=s.meteo)==null?void 0:et.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((at=s.meteo)==null?void 0:at.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Gg=Za(gg,[["render",Fg],["__scopeId","data-v-2182dbc0"]]),f3="",Pg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.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(Ci.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Ci.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Ci.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,j,p,A,V,k;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const D=this.inventory.filter(y=>y.noon)||[],s=[];this.inventory.forEach((y,x)=>{var z,h;x===0&&s.push(y.utc),y.type==="EOSP"&&((z=this.inventory[x+1])==null?void 0:z.type)==="BOSP"&&(s.push(y.utc),s.push((h=this.inventory[x+1])==null?void 0:h.utc)),x===this.inventory.length-1&&s.push(y.utc)}),s.forEach((y,x)=>{if(x%2===0){const z=At(s[x+1]).diff(At(s[x]),"minute",!0);for(let h=0;h<=z+1;h++)e.push(this.computeUTCTime(At(s[x]).clone().utc().add(h,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((y,x)=>{var h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt;const z=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(P=>P.slice(0,5)===y.utc.slice(5,10))&&o.push(z),x===D.length-1&&(o=o.filter(P=>P.slice(0,5)!==y.utc.slice(5,10)),o.push(z)),n=Math.ceil(((h=y.noon)==null?void 0:h.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((B=y.cp)==null?void 0:B.fo)>n?(G=y.cp)==null?void 0:G.fo:n),d=Math.ceil(((Y=y.noon)==null?void 0:Y.dgoCons)>d?(Q=y.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=y.cp)==null?void 0:W.dgo)>d?(L=y.cp)==null?void 0:L.dgo:d),l.push([z,(q=y.noon)==null?void 0:q.avgSpd,(v=y.noon)==null?void 0:v.foCons,(tt=y.noon)==null?void 0:tt.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.excluded?100:0]),x<D.length-1){const P=D[x+1];l.push([z,(et=P.noon)==null?void 0:et.avgSpd,(at=P.noon)==null?void 0:at.foCons,(dt=P.noon)==null?void 0:dt.dgoCons,P.avgSpdCalc,P.cp.speed,P.goodWx&&!P.excluded?100:0,P.cp.dgo,P.cp.fo,P.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%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:(j=(E=this.report)==null?void 0:E.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.spdFoConsChart)==null||p.setOption(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:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(k=this.spdDgoConsChart)==null||k.setOption(a)},renderWxCurrChart(){var p;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],D=[];d.forEach((A,V)=>{var k,y;V===0&&D.push(A.utc),A.type==="EOSP"&&((k=d[V+1])==null?void 0:k.type)==="BOSP"&&(D.push(A.utc),D.push((y=d[V+1])==null?void 0:y.utc)),V===d.length-1&&D.push(A.utc)}),D.forEach((A,V)=>{if(V%2===0){const k=At(D[V+1]).diff(At(D[V]),"minute",!0);for(let y=0;y<=k+1;y++)e.push(this.computeUTCTime(At(D[V]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((A,V)=>{var y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt;const k=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(lt=>lt.slice(0,5)===A.utc.slice(5,10))&&o.push(k),V===d.length-1&&(o=o.filter(lt=>lt.slice(0,5)!==A.utc.slice(5,10)),o.push(k)),n=Math.ceil(((z=(x=(y=A.meteo)==null?void 0:y.wave)==null?void 0:x.sig)==null?void 0:z.height)>n?(B=(g=(h=A.meteo)==null?void 0:h.wave)==null?void 0:g.sig)==null?void 0:B.height:n),l.push([k,((G=A.noon)==null?void 0:G.windBF)||((Q=(Y=A.meteo)==null?void 0:Y.wind)==null?void 0:Q.scale),(L=(W=A.meteo)==null?void 0:W.wind)==null?void 0:L.scale,(v=(q=A.meteo)==null?void 0:q.wind)==null?void 0:v.direction,(tt=A.noon)==null?void 0:tt.seasHt,(dt=(at=(et=A.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:dt.height,A.dailyAvgCf??((P=l[l.length-1])==null?void 0:P[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<d.length-1){const lt=d[V+1];l.push([k,((rt=A.noon)==null?void 0:rt.windBF)||((Tt=(Nt=A.meteo)==null?void 0:Nt.wind)==null?void 0:Tt.scale),(xt=(Vt=lt.meteo)==null?void 0:Vt.wind)==null?void 0:xt.scale,(zt=(pt=lt.meteo)==null?void 0:pt.wind)==null?void 0:zt.direction,(jt=lt.noon)==null?void 0:jt.seasHt,(St=(Ut=(kt=A.meteo)==null?void 0:kt.wave)==null?void 0:Ut.sig)==null?void 0:St.height,lt.dailyAvgCf??((bt=l[l.length-1])==null?void 0:bt[N.anlyCurFct]),lt.goodWx&&!lt.excluded?20:0,lt.excluded?20:0])}});const s=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%s===0);let c=-2.5,T=2.5,a=1,E=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),E=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,E=Math.abs(c)/a+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:a,splitNumber:E,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(E-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:E,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(E-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:E,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.currChart)==null||p.setOption(j)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Wg={class:"report-summary"},Lg={class:"section chart-section"},Zg={class:"chart-block"},_g={ref:"spdFoConsChart",class:"chart"},Jg={ref:"spdDgoConsChart",class:"chart"},Hg={ref:"currChart",class:"chart"},Xg={class:"section map-section"},Kg={class:"map-block"},ug={class:"flex-space"},qg={class:"voyage-block bg-blue-light"},$g={class:"flex-space label-block",style:{width:"100%"}},vg={style:{"text-transform":"uppercase"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},lI={class:"flex-space label-block",style:{width:"100%"}},oI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nI={class:"flex-space label-block",style:{width:"100%"}},iI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},sI={class:"flex-end",style:{width:"160px"}},rI={class:"flex-space label-block",style:{width:"100%"}},NI={key:0,class:"flex-end",style:{flex:"1"}},cI={key:1,class:"flex-end",style:{flex:"1"}},MI={class:"flex-end",style:{width:"160px"}},mI={class:"flex-space label-block",style:{width:"100%"}},DI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},gI=["src"];function II(o,e,l,N,n,d){var D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L;return t.openBlock(),t.createElementBlock("div",Wg,[t.createElementVNode("div",Lg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Zg,[t.createElementVNode("div",_g,null,512),t.createElementVNode("div",Jg,null,512),t.createElementVNode("div",Hg,null,512)])]),t.createElementVNode("div",Xg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Kg,[t.createElementVNode("div",ug,[t.createElementVNode("div",qg,[t.createElementVNode("div",$g,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",vg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tI,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",eI,t.toDisplayString((s=(D=l.report)==null?void 0:D.vessel)==null?void 0:s.name),1),t.createElementVNode("span",aI,"("+t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",lI,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",oI,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",nI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(p=(j=l.report)==null?void 0:j.departure)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",iI,t.toDisplayString((V=(A=l.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(d.computePosition((k=l.report)==null?void 0:k.departure)),1)),t.createElementVNode("span",sI,t.toDisplayString(d.computeUTCTime((y=l.report.departure)==null?void 0:y.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",rI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(x=l.report)==null?void 0:x.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",NI,t.toDisplayString((g=(h=l.report)==null?void 0:h.arrival)==null?void 0:g.portName),1)):(t.openBlock(),t.createElementBlock("div",cI,t.toDisplayString(d.computePosition((B=l.report)==null?void 0:B.arrival)),1)),t.createElementVNode("span",MI,t.toDisplayString(d.computeUTCTime((Y=(G=l.report)==null?void 0:G.arrival)==null?void 0:Y.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",mI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",DI,t.toDisplayString((W=(Q=l.report)==null?void 0:Q.voyage)==null?void 0:W.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-43c1b708><div data-v-43c1b708>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-43c1b708><div data-v-43c1b708>0812</div><div data-v-43c1b708><div data-v-43c1b708>08 - Day of the month</div><div data-v-43c1b708>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-43c1b708><div data-v-43c1b708><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-43c1b708></i></div><div data-v-43c1b708><div data-v-43c1b708>Wind from N (000)</div><div data-v-43c1b708>Each bard = 10 kts</div><div data-v-43c1b708>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-43c1b708><div data-v-43c1b708>W 4</div><div data-v-43c1b708>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-43c1b708><div class="good-wx" data-v-43c1b708>Date</div><div data-v-43c1b708>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(L=l.report)==null?void 0:L.chartUrl,alt:""},null,8,gI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-43c1b708><div class="header-block" data-v-43c1b708><div class="bg-block" data-v-43c1b708><i class="iconfont icon-baobiao" data-v-43c1b708></i><div class="block-title" data-v-43c1b708>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-43c1b708><div class="method-title" data-v-43c1b708>1. Good Weather Method</div><div class="method-body" data-v-43c1b708> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-43c1b708> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-43c1b708> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-43c1b708><div class="method-title" data-v-43c1b708>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-43c1b708> 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-43c1b708><div class="method-title" data-v-43c1b708>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-43c1b708> 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-43c1b708><div class="method-title" data-v-43c1b708>4. “About”</div><div class="method-body" data-v-43c1b708> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-43c1b708> 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-43c1b708><div class="method-title" data-v-43c1b708>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-43c1b708> 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-43c1b708> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-43c1b708> 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-43c1b708><div class="method-title" data-v-43c1b708>6. Further reference materials</div><div class="method-body" data-v-43c1b708>Please send mail to <a href="mailto:op@ormwx.com" data-v-43c1b708>op@ormwx.com</a>.</div></div></div></div>',1))])}const EI=Za(Pg,[["render",II],["__scopeId","data-v-43c1b708"]]),Q3="",w3="",yI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${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(E=>{const j=`<p>${E}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,s=(d==null?void 0:d.offsetHeight)||0;if(D<=s){let E=`<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(Et,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):(Et=typeof globalThis<"u"?globalThis:Et||self,t(Et["idmui-extend"]={},Et.Vue,Et["@wangeditor/editor-for-vue"],Et["@idmui/basic"],Et.moment,Et.echarts,Et["@idm-plugin/geo"],Et.axios,Et.MdEditorV3))})(this,function(Et,t,hi,rl,At,ks,u,Oi,Yi){"use strict";function Us(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const N=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,N.get?N:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Ci=Us(ks),S3="",Za=(o,e)=>{const l=o.__vccOpts||o;for(const[N,n]of e)l[N]=n;return l},Ss={name:"IdmEditor",components:{Editor:hi.Editor,Toolbar:hi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},bs={class:"editor-box"};function Cs(o,e,l,N,n,d){const D=t.resolveComponent("Toolbar"),s=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",bs,[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(s,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=c=>n.valueHtml=c),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const ml=Za(Ss,[["render",Cs],["__scopeId","data-v-80104052"]]),Os={install(o){o.component("IdmEditor",ml)}},b3="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,fs=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Qs=fs;const C3="",ws={name:"PlanReport",components:{Editor:ml,IdmBrand:rl.IdmBrand,IdmLoading:rl.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,N){let n=0;return l&&e&&(n=u.LngLatHelper.guessTimeZoneOffset(e,l)),`${At(o).utcOffset(N??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,N,n,d,D;if(e===0)return"-";{const s=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=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(s*100)/100}}},computeCostDiff(){return function(o,e){var l,N,n,d,D,s,c;if(e===0)return"-";{const T=Number((d=(n=(N=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:N.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((c=(s=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:s.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,e){const l=[];for(let N=0;N<(e==null?void 0:e.length);N++){const n=e[N],d=e[N-1];d&&(n.avgBearing=d.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let N=0;N<17;N++)if(N*22.5+e+11.25>=360){let n=(16-N)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,D,s,c;const l=(c=(s=(D=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:D.speed)==null?void 0:s.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)?"-":u.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>u.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>u.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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,N,n,d,D,s,c,T,a,E,j,p,A,V,k,y,x,z;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((s=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:s.wind)?e="bg-danger":(T=(c=this.weatherPrinciple)==null?void 0:c.severe)!=null&&T.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((p=(j=this.weatherPrinciple)==null?void 0:j.severe)==null?void 0:p.wind)?e="bg-severe":(V=(A=this.weatherPrinciple)==null?void 0:A.heavy)!=null&&V.wind&&((y=(k=o.meteo)==null?void 0:k.wind)==null?void 0:y.scale)===((z=(x=this.weatherPrinciple)==null?void 0:x.heavy)==null?void 0:z.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,N,n,d,D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B;let e="";return(N=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&N.sigWv&&((D=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:D.height)>=((c=(s=this.weatherPrinciple)==null?void 0:s.dangerous)==null?void 0:c.sigWv)?e="bg-danger":(a=(T=this.weatherPrinciple)==null?void 0:T.severe)!=null&&a.sigWv&&((p=(j=(E=o.meteo)==null?void 0:E.wave)==null?void 0:j.sig)==null?void 0:p.height)>=((V=(A=this.weatherPrinciple)==null?void 0:A.severe)==null?void 0:V.sigWv)?e="bg-severe":(y=(k=this.weatherPrinciple)==null?void 0:k.heavy)!=null&&y.sigWv&&((h=(z=(x=o.meteo)==null?void 0:x.wave)==null?void 0:z.sig)==null?void 0:h.height)>=((B=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:B.sigWv)&&(e="bg-heavy"),e}}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=Ci.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,x,z,h,g,B,G;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;(B=(g=(h=(z=(x=(y=this.plan)==null?void 0:y.speeds)==null?void 0:x[this.speedIndex])==null?void 0:z.speed)==null?void 0:h.sample)==null?void 0:g.hours)==null||B.forEach(Y=>{var W,L,q,v,tt,et,at,dt,P,rt;const Q=Y.meteo;if(Q){const Nt=At(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(Nt),N=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>N?(v=(q=Q.wave)==null?void 0:q.sig)==null?void 0:v.height:N),e.push([Nt,(tt=Q.wind)==null?void 0:tt.kts,(at=(et=Q.wave)==null?void 0:et.sig)==null?void 0:at.height,(dt=Q.wind)==null?void 0:dt.direction,(P=Q.wind)==null?void 0:P.degree,(rt=Q.wind)==null?void 0:rt.scale,Y.cFactor,Y.wFactor,Y.speed])}});const n=Math.max(...e.map(Y=>Y[l.speed])),d=Math.max(...e.map(Y=>Y[l.windSpeed])),D=Math.min(...e.map(Y=>Y[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(Y=>Y[l.currentFactor]))/.5)*.5,s=Math.ceil(Math.max(...e.map(Y=>Y[l.currentFactor]))/.5)*.5,c=Math.ceil(n/5/5)*5,T=Math.ceil(d/5/5)*5,a=Math.ceil(N/5/.5)*.5,E=Math.ceil((s-D)/5/.5)*.5,j=5*c,p=5*T,A=5*a,V=D+5*E,k={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:j,splitNumber:5,interval:c},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:p,splitNumber:5,interval: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:V,splitNumber:5,interval:E,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}]};(G=this.echart)==null||G.setOption(k)}}},Rs={class:"orm-plan-report"},Bs={key:0,class:"loading-block"},Fs={class:"info-block"},Gs={class:"col"},Ps={class:"label-block"},Ws={class:"text"},Ls={class:"label-block"},Zs={class:"text"},_s={key:0},Js={class:"label-block"},Hs={class:"text"},Xs={class:"col"},Ks={class:"label-block"},us={key:0},qs={key:1},$s={style:{"margin-left":"16px"}},vs={class:"label-block"},tr={key:0},er={key:1},ar={style:{"margin-left":"16px"}},lr={class:"label-block"},or={class:"text"},nr={class:"section chart-section"},ir={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dr={style:{"margin-right":"8px"}},sr=["src"],rr={class:"legends text-tips"},Nr={class:"legend"},cr={key:0,class:"legend"},Mr={key:1,class:"legend"},mr={key:1,class:"empty"},Dr={class:"section comparison-section"},gr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Ir={key:0},Er=["rowspan"],yr={key:0},Ar={key:1},Tr={rowspan:"2"},Vr={rowspan:"2"},xr={key:0},pr={key:1},zr={rowspan:"1"},jr={key:0},kr={rowspan:"2"},Ur={rowspan:"2"},Sr={rowspan:"2"},br={key:0},Cr={key:0},Or=["rowspan"],hr={key:0},Yr={rowspan:"1"},fr={key:0},Qr={key:0},wr={key:1},Rr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},Br={key:0},Fr={class:"section waypoint-section"},Gr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Pr={class:"bg-block"},Wr={class:"block-title"},Lr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Zr=["onClick"],_r={class:"advisory bg-blue-light-2"},Jr=["innerHTML"],Hr={class:"major-waypoint"},Xr={class:"major-header bg-blue-light-2"},Kr={key:0,class:"cell-item flex"},ur={key:1,class:"cell-item flex"},qr={class:"major-body"},$r={class:"cell-item flex",style:{flex:"2.5"}},vr={key:0,class:"flex-center"},tN={key:1,class:"flex-center"},eN={key:0,style:{"margin-left":"3px"}},aN={class:"cell-item flex",style:{flex:"1.5"}},lN={key:0,style:{"margin-left":"4px","font-weight":"600"}},oN={key:0,class:"cell-item flex offset"},nN={key:1,class:"cell-item flex nbsp"},iN={key:2,class:"cell-item flex offset"},dN={key:3,class:"cell-item flex nbsp"},sN={key:0,class:"cell-item flex offset"},rN={key:1,class:"cell-item flex nbsp"},NN={key:0,class:"cell-item flex offset"},cN={key:1,class:"cell-item flex nbsp"},MN={key:6,class:"cell-item flex offset"},mN={key:7,class:"cell-item flex nbsp"},DN={class:"section forecast-section"},gN={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},IN={class:"bg-block"},EN={class:"block-title"},yN={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},AN=["onClick"],TN={class:"echart-block",style:{"page-break-inside":"avoid"}},VN={ref:"echart",class:"echart"},xN={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},pN={style:{"page-break-inside":"avoid"}},zN={class:"orm-report-table",style:{"font-size":"12px"}},jN=["colspan"],kN={key:0},UN={class:"flex-center"},SN={class:"degree-box"},bN={key:0},CN={key:2},ON={key:0},hN={class:"degree-box"},YN={key:0},fN={key:2},QN={class:"degree-box"},wN={key:0},RN={key:2},BN={class:"degree-box"},FN={key:0},GN={key:2};function PN(o,e,l,N,n,d){var a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt,w,Xt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Kt,ut,qt,$t,vt,te,ee,ae,le,oe,ne,ie,de,se,re,i,it,K,Ht,Ne,ce,Me,me,De,ge,$,Te,ze,je,ke,Ue,Se,be,Ce,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,Le,Ze,_e,Je,He,Xe,Ke,ue,qe,$e,ve,ta,ea,aa,I,la,oa,na,ia,da,sa,ra,Na,xe,_a,Ja,Ha,Xa,Ka,ua,qa,$a,va,tl,el,al,ll,ol,nl;const D=t.resolveComponent("IdmBrand"),s=t.resolveComponent("IdmLoading"),c=t.resolveComponent("ElTooltip"),T=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Rs,[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",Bs,[t.createVNode(s,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Fs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ws,t.toDisplayString((p=(j=(E=l.plan)==null?void 0:E.voyage)==null?void 0:j.company)==null?void 0:p.name),1)]),t.createElementVNode("div",Ls,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",Zs,[t.createTextVNode(t.toDisplayString((k=(V=(A=l.plan)==null?void 0:A.voyage)==null?void 0:V.vessel)==null?void 0:k.name)+" ",1),(h=(z=(x=(y=l.plan)==null?void 0:y.voyage)==null?void 0:x.vessel)==null?void 0:z.vesselType)!=null&&h.name?(t.openBlock(),t.createElementBlock("span",_s,"("+t.toDisplayString((Y=(G=(B=(g=l.plan)==null?void 0:g.voyage)==null?void 0:B.vessel)==null?void 0:G.vesselType)==null?void 0:Y.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Js,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Hs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((q=(L=l.plan)==null?void 0:L.voyage)==null?void 0:q.number)),1)])]),t.createElementVNode("div",Xs,[t.createElementVNode("div",Ks,[e[11]||(e[11]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(et=(tt=(v=l.plan)==null?void 0:v.leg)==null?void 0:tt.departure)!=null&&et.name?(t.openBlock(),t.createElementBlock("span",us,t.toDisplayString((P=(dt=(at=l.plan)==null?void 0:at.leg)==null?void 0:dt.departure)==null?void 0:P.name),1)):(t.openBlock(),t.createElementBlock("span",qs,t.toDisplayString(d.computePosition((Nt=(rt=l.plan)==null?void 0:rt.leg)==null?void 0:Nt.departure)),1)),t.createElementVNode("span",$s,t.toDisplayString(d.computeUTCTime(((xt=(Vt=(Tt=l.plan)==null?void 0:Tt.leg)==null?void 0:Vt.departure)==null?void 0:xt.atd)||((jt=(zt=(pt=l.plan)==null?void 0:pt.leg)==null?void 0:zt.departure)==null?void 0:jt.etd)||((bt=(St=(Ut=(kt=l.plan)==null?void 0:kt.speeds)==null?void 0:Ut[n.speedIndex])==null?void 0:St.speed)==null?void 0:bt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",vs,[e[12]||(e[12]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(Yt=(ht=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ht.destination)!=null&&Yt.name?(t.openBlock(),t.createElementBlock("span",tr,t.toDisplayString((wt=(Qt=(ft=l.plan)==null?void 0:ft.leg)==null?void 0:Qt.destination)==null?void 0:wt.name),1)):(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString(d.computePosition((Xt=(w=l.plan)==null?void 0:w.leg)==null?void 0:Xt.destination)),1)),t.createElementVNode("span",ar,t.toDisplayString(d.computeUTCTime(((Gt=(Ft=(Bt=(Rt=l.plan)==null?void 0:Rt.speeds)==null?void 0:Bt[n.speedIndex])==null?void 0:Ft.speed)==null?void 0:Gt.ata)||((Zt=(Lt=(Wt=(Pt=l.plan)==null?void 0:Pt.speeds)==null?void 0:Wt[n.speedIndex])==null?void 0:Lt.speed)==null?void 0:Zt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",lr,[e[13]||(e[13]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",or,t.toDisplayString((Jt=(_t=l.plan)==null?void 0:_t.voyage)==null?void 0:Jt.loadCondition),1)])])]),t.createElementVNode("div",nr,[t.createElementVNode("div",ir,[e[14]||(e[14]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dr," FCST fr Pos. "+t.toDisplayString(d.computeUTCTime((ee=(te=(vt=($t=(qt=(ut=(Kt=l.plan)==null?void 0:Kt.speeds)==null?void 0:ut[n.speedIndex])==null?void 0:qt.speed)==null?void 0:$t.sample)==null?void 0:vt.hours)==null?void 0:te[0])==null?void 0:ee.eta)),1)]),(ae=l.plan)!=null&&ae.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,sr)]),t.createElementVNode("div",rr,[e[18]||(e[18]=t.createStaticVNode('<div class="legend" data-v-b8dafa43><span class="dangerous" data-v-b8dafa43></span><span data-v-b8dafa43>Danger</span></div><div class="legend" data-v-b8dafa43><span class="severe" data-v-b8dafa43></span><span data-v-b8dafa43>Severe</span></div><div class="legend" data-v-b8dafa43><span class="heavy" data-v-b8dafa43></span><span data-v-b8dafa43>Heavy</span></div>',3)),t.createElementVNode("div",Nr,[e[15]||(e[15]=t.createElementVNode("b",{class:"route1"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=m=>{n.speedIndex=0,d.renderEchart()})},t.toDisplayString((de=(ie=(ne=(oe=(le=l.plan)==null?void 0:le.speeds)==null?void 0:oe[0])==null?void 0:ne.speed)==null?void 0:ie.lane)==null?void 0:de.name),1)]),((re=(se=l.plan)==null?void 0:se.speeds)==null?void 0:re.length)>1?(t.openBlock(),t.createElementBlock("div",cr,[e[16]||(e[16]=t.createElementVNode("b",{class:"route2"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[2]||(e[2]=m=>{n.speedIndex=1,d.renderEchart()})},t.toDisplayString((Ne=(Ht=(K=(it=(i=l.plan)==null?void 0:i.speeds)==null?void 0:it[1])==null?void 0:K.speed)==null?void 0:Ht.lane)==null?void 0:Ne.name),1)])):t.createCommentVNode("",!0),((Me=(ce=l.plan)==null?void 0:ce.speeds)==null?void 0:Me.length)>2?(t.openBlock(),t.createElementBlock("div",Mr,[e[17]||(e[17]=t.createElementVNode("b",{class:"route3"},null,-1)),t.createElementVNode("span",{class:"btn",onClick:e[3]||(e[3]=m=>{n.speedIndex=2,d.renderEchart()})},t.toDisplayString((Te=($=(ge=(De=(me=l.plan)==null?void 0:me.speeds)==null?void 0:De[2])==null?void 0:ge.speed)==null?void 0:$.lane)==null?void 0:Te.name),1)])):t.createCommentVNode("",!0)])],64)):(t.openBlock(),t.createElementBlock("div",mr,[t.createElementVNode("span",null,[e[19]||(e[19]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[4]||(e[4]=(...m)=>d.handleRefresh&&d.handleRefresh(...m))},"Refresh"),e[20]||(e[20]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",Dr,[(je=(ze=l.plan)==null?void 0:ze.speeds)!=null&&je.length?(t.openBlock(),t.createElementBlock("table",gr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[23]||(e[23]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[24]||(e[24]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[27]||(e[27]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...e[21]||(e[21]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:d.showCost?1:2},[...e[22]||(e[22]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,Er),e[29]||(e[29]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[32]||(e[32]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[33]||(e[33]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[34]||(e[34]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[35]||(e[35]=t.createElementVNode("th",null,"*FO",-1)),e[36]||(e[36]=t.createElementVNode("th",null,"*DO/GO",-1)),d.showCost?(t.openBlock(),t.createElementBlock("th",yr,[...e[30]||(e[30]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("th",Ar,[...e[31]||(e[31]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(d.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ke=l.plan)==null?void 0:ke.speeds,(m,yt)=>{var Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,il,dl,sl,Nl;return t.openBlock(),t.createElementBlock(t.Fragment,{key:yt},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tr,t.toDisplayString(yt+1),1),t.createElementVNode("td",Vr,t.toDisplayString((Ee=(Ie=m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",xr,t.toDisplayString(`CP ${((Pe=(pe=m.speed)==null?void 0:pe.cpCopy)==null?void 0:Pe.speed)??((ca=m.speed)==null?void 0:ca.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",pr,[e[37]||(e[37]=t.createTextVNode("CP",-1)),e[38]||(e[38]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Da=(ma=(Ma=m.speed)==null?void 0:Ma.extend)==null?void 0:ma.cps[0])==null?void 0:Da.speed)+", CP",1),e[39]||(e[39]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Ea=(Ia=(ga=m.speed)==null?void 0:ga.extend)==null?void 0:Ia.cps[1])==null?void 0:Ea.speed),1)]))]),t.createElementVNode("td",zr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ya=m.speed)==null?void 0:ya.distance,0)),1),(Ta=(Aa=m.speed)==null?void 0:Aa.extend)!=null&&Ta.distanceInECA?(t.openBlock(),t.createElementBlock("span",jr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime((Va=m.speed)==null?void 0:Va.eta,(za=(pa=(xa=l.plan)==null?void 0:xa.leg)==null?void 0:pa.destination)==null?void 0:za.lng,(Ua=(ka=(ja=l.plan)==null?void 0:ja.leg)==null?void 0:ka.destination)==null?void 0:Ua.lat,(ha=(Oa=(Ca=(ba=(Sa=l.plan)==null?void 0:Sa.leg)==null?void 0:ba.destination)==null?void 0:Ca.port)==null?void 0:Oa.timezone)==null?void 0:ha.RawOffset)),1),e[40]||(e[40]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((Ya=m.speed)==null?void 0:Ya.eta)),1)]),t.createElementVNode("td",kr,t.toDisplayString(d.computeSuspend(m.speed)),1),t.createElementVNode("td",Ur,t.toDisplayString(d.roundPrecision((fa=m.speed)==null?void 0:fa.totalFoCons,3)),1),t.createElementVNode("td",Sr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Qa=m.speed)==null?void 0:Qa.totalDgoCons,3)),1),(U=(r=m.speed)==null?void 0:r.extend)!=null&&U.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",br," + "+t.toDisplayString(d.roundPrecision((S=m.speed.extend)==null?void 0:S.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",Cr,t.toDisplayString((O=d.roundPrecision(((C=(b=m==null?void 0:m.speed)==null?void 0:b.cost)==null?void 0:C.total)/1e3,2))==null?void 0:O.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,yt)),9,Or),t.createElementVNode("td",null,[t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(R=(f=l.weatherPrinciple)==null?void 0:f.dangerous)==null?void 0:R.pretty},{default:t.withCtx(()=>[...e[41]||(e[41]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[44]||(e[44]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Z=(F=l.weatherPrinciple)==null?void 0:F.severe)==null?void 0:Z.pretty},{default:t.withCtx(()=>[...e[42]||(e[42]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[45]||(e[45]=t.createTextVNode(" / ",-1)),t.createVNode(c,{effect:"light",placement:"top",trigger:"hover",width:300,content:(J=(_=l.weatherPrinciple)==null?void 0:_.heavy)==null?void 0:J.pretty},{default:t.withCtx(()=>[...e[43]||(e[43]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((H=m.speed)==null?void 0:H.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",hr,"FO: "+t.toDisplayString((ot=(X=m.speed)==null?void 0:X.cpCopy)==null?void 0:ot.fo)+" / DO: "+t.toDisplayString((st=(nt=m.speed)==null?void 0:nt.cpCopy)==null?void 0:st.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Mt=(ct=m.speed)==null?void 0:ct.extend)==null?void 0:Mt.cps[0].fo)+" / "+t.toDisplayString((Dt=(mt=m.speed)==null?void 0:mt.extend)==null?void 0:Dt.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((It=(gt=m.speed)==null?void 0:gt.extend)==null?void 0:It.cps[0].dgo)+" / "+t.toDisplayString((Ae=(ye=m.speed)==null?void 0:ye.extend)==null?void 0:Ae.cps[1].dgo),1)],64))]),t.createElementVNode("td",Yr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((Ve=m.speed)==null?void 0:Ve.totalHrs,1)),1),(Ra=(wa=m.speed)==null?void 0:wa.extend)!=null&&Ra.hoursInECA?(t.openBlock(),t.createElementBlock("span",fr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ba=m.speed)==null?void 0:Ba.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((Fa=m.speed)==null?void 0:Fa.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((Ga=m.speed)==null?void 0:Ga.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",Qr,t.toDisplayString(d.roundPrecision(((Wa=(Pa=m==null?void 0:m.speed)==null?void 0:Pa.cost)==null?void 0:Wa.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(d.roundPrecision(((il=(La=m==null?void 0:m.speed)==null?void 0:La.cost)==null?void 0:il.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",wr,t.toDisplayString(d.computeCostDiff(l.plan,yt)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((dl=m.speed)==null?void 0:dl.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((sl=m.speed)==null?void 0:sl.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((Nl=m.speed)==null?void 0:Nl.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Rr,[e[47]||(e[47]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[48]||(e[48]=t.createElementVNode("br",null,null,-1)),d.showCost?(t.openBlock(),t.createElementBlock("span",Br,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((be=d.roundPrecision((Se=(Ue=l.plan)==null?void 0:Ue.voyage)==null?void 0:Se.dailyHire,0))==null?void 0:be.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((he=d.roundPrecision((Oe=(Ce=l.plan)==null?void 0:Ce.voyage)==null?void 0:Oe.priceFO,0))==null?void 0:he.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((Qe=d.roundPrecision((fe=(Ye=l.plan)==null?void 0:Ye.voyage)==null?void 0:fe.priceDGO,0))==null?void 0:Qe.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[46]||(e[46]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[50]||(e[50]=t.createElementVNode("br",null,null,-1)),e[51]||(e[51]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Fr,[t.createElementVNode("div",Gr,[t.createElementVNode("div",Pr,[e[52]||(e[52]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Wr,"Advisory & Major Waypoint of Route "+t.toDisplayString((Fe=(Be=(Re=(we=l.plan.speeds)==null?void 0:we[n.speedIndex])==null?void 0:Re.speed)==null?void 0:Be.lane)==null?void 0:Fe.name),1)]),((Le=(Ge=l.plan)==null?void 0:Ge.speeds)==null?void 0:Le.length)>1?(t.openBlock(),t.createElementBlock("div",Lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ze=l.plan)==null?void 0:Ze.speeds,(m,yt)=>{var Ie,Ee;return t.openBlock(),t.createElementBlock("div",{key:yt,class:t.normalizeClass(["route-item",n.speedIndex===yt?"active":""]),onClick:pe=>{n.speedIndex=yt,d.renderEchart()}},t.toDisplayString((Ee=(Ie=m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),11,Zr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_r,[n.editable?(t.openBlock(),t.createBlock(T,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[5]||(e[5]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[6]||(e[6]=m=>d.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[7]||(e[7]=(...m)=>d.handleEdit&&d.handleEdit(...m)),innerHTML:n.advisory},null,40,Jr))]),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[55]||(e[55]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-b8dafa43>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-b8dafa43>Time</div><div class="cell-item flex" data-v-b8dafa43>Nav</div><div class="cell-item flex" data-v-b8dafa43>Dist <span class="text-units" data-v-b8dafa43>(nm)</span></div>',4)),(Je=(_e=l.plan)==null?void 0:_e.voyage)!=null&&Je.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Kr,[...e[53]||(e[53]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(Xe=(He=l.plan)==null?void 0:He.voyage)!=null&&Xe.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",ur,[...e[54]||(e[54]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[56]||(e[56]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",qr,[(ue=(Ke=l.plan)==null?void 0:Ke.speeds)!=null&&ue.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((ta=(ve=($e=(qe=l.plan)==null?void 0:qe.speeds)==null?void 0:$e[n.speedIndex])==null?void 0:ve.speed)==null?void 0:ta.argv,(oa=(la=(I=(aa=(ea=l.plan)==null?void 0:ea.speeds)==null?void 0:aa[n.speedIndex])==null?void 0:I.speed)==null?void 0:la.sample)==null?void 0:oa.wps),(m,yt)=>{var Ie,Ee,pe,Pe;return t.openBlock(),t.createElementBlock("div",{key:yt,class:"cell-row"},[t.createElementVNode("div",$r,[m.isResume?(t.openBlock(),t.createElementBlock("div",vr,"Resume")):(t.openBlock(),t.createElementBlock("div",tN,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",eN,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",aN,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",lN,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),yt?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(d.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",nN)),yt?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(d.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",dN)),(Ee=(Ie=l.plan)==null?void 0:Ie.voyage)!=null&&Ee.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[yt?(t.openBlock(),t.createElementBlock("div",sN,t.toDisplayString(d.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",rN))],64)):t.createCommentVNode("",!0),(Pe=(pe=l.plan)==null?void 0:pe.voyage)!=null&&Pe.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[yt?(t.openBlock(),t.createElementBlock("div",NN,t.toDisplayString(d.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cN))],64)):t.createCommentVNode("",!0),yt?(t.openBlock(),t.createElementBlock("div",MN,t.toDisplayString(d.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mN))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",DN,[(ia=(na=l.plan)==null?void 0:na.speeds)!=null&&ia.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,[e[57]||(e[57]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",EN," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((xe=(Na=(ra=(sa=(da=l.plan)==null?void 0:da.speeds)==null?void 0:sa[n.speedIndex])==null?void 0:ra.speed)==null?void 0:Na.lane)==null?void 0:xe.name),1)]),((Ja=(_a=l.plan)==null?void 0:_a.speeds)==null?void 0:Ja.length)>1?(t.openBlock(),t.createElementBlock("div",yN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ha=l.plan)==null?void 0:Ha.speeds,(m,yt)=>{var Ie,Ee;return t.openBlock(),t.createElementBlock("div",{key:yt,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===yt?"active":""]),onClick:pe=>{n.speedIndex=yt,d.renderEchart()}},t.toDisplayString((Ee=(Ie=m==null?void 0:m.speed)==null?void 0:Ie.lane)==null?void 0:Ee.name),11,AN)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",TN,[t.createElementVNode("div",VN,null,512)]),t.createElementVNode("div",xN,"* "+t.toDisplayString(d.computeModel((ua=(Ka=(Xa=l.plan)==null?void 0:Xa.speeds)==null?void 0:Ka[n.speedIndex])==null?void 0:ua.speed)),1)]),t.createElementVNode("div",pN,[e[75]||(e[75]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}},"Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher.",-1)),t.createElementVNode("table",zN,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[58]||(e[58]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[59]||(e[59]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:($a=(qa=l.plan)==null?void 0:qa.voyage)!=null&&$a.sendRptWithBF?3:2},"Wind",8,jN),e[60]||(e[60]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[61]||(e[61]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[62]||(e[62]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[63]||(e[63]=t.createElementVNode("th",{colspan:"3"},"Current",-1))]),t.createElementVNode("tr",null,[e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(tl=(va=l.plan)==null?void 0:va.voyage)!=null&&tl.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kN,"BF")):t.createCommentVNode("",!0),e[66]||(e[66]=t.createElementVNode("th",null,"Dir",-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,"Dir",-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[71]||(e[71]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[72]||(e[72]=t.createElementVNode("th",null,"Dir",-1)),e[73]||(e[73]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[74]||(e[74]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((nl=(ol=(ll=(al=(el=l.plan)==null?void 0:el.speeds)==null?void 0:al[n.speedIndex])==null?void 0:ll.speed)==null?void 0:ol.sample)==null?void 0:nl.hours,(m,yt)=>{var Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La;return t.openBlock(),t.createElementBlock("tr",{key:yt},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",UN,t.toDisplayString(d.computeLat(m.lat))+", "+t.toDisplayString(d.computeLng(m.lng)),1)]),t.createElementVNode("td",SN,[(Ee=(Ie=m.meteo)==null?void 0:Ie.wind)!=null&&Ee.kts?(t.openBlock(),t.createElementBlock("span",bN,t.toDisplayString((Pe=(pe=m.meteo)==null?void 0:pe.wind)==null?void 0:Pe.direction),1)):t.createCommentVNode("",!0),(Ma=(ca=m.meteo)==null?void 0:ca.wind)!=null&&Ma.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Da=(ma=m.meteo)==null?void 0:ma.wind)==null?void 0:Da.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",CN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(m))},t.toDisplayString(d.roundPrecision((Ia=(ga=m.meteo)==null?void 0:ga.wind)==null?void 0:Ia.kts,1)),3),(ya=(Ea=l.plan)==null?void 0:Ea.voyage)!=null&&ya.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",ON,t.toDisplayString((Ta=(Aa=m.meteo)==null?void 0:Aa.wind)==null?void 0:Ta.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((pa=(xa=(Va=m.meteo)==null?void 0:Va.wave)==null?void 0:xa.wd)==null?void 0:pa.height,1)),1),t.createElementVNode("td",hN,[(ka=(ja=(za=m.meteo)==null?void 0:za.wave)==null?void 0:ja.swell)!=null&&ka.height?(t.openBlock(),t.createElementBlock("span",YN,t.toDisplayString((ba=(Sa=(Ua=m.meteo)==null?void 0:Ua.wave)==null?void 0:Sa.swell)==null?void 0:ba.direction),1)):t.createCommentVNode("",!0),(ha=(Oa=(Ca=m.meteo)==null?void 0:Ca.wave)==null?void 0:Oa.swell)!=null&&ha.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(Qa=(fa=(Ya=m.meteo)==null?void 0:Ya.wave)==null?void 0:fa.swell)==null?void 0:Qa.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",fN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((S=(U=(r=m.meteo)==null?void 0:r.wave)==null?void 0:U.swell)==null?void 0:S.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((O=(C=(b=m.meteo)==null?void 0:b.wave)==null?void 0:C.swell)==null?void 0:O.period,1)),1),t.createElementVNode("td",QN,[(F=(R=(f=m.meteo)==null?void 0:f.wave)==null?void 0:R.sig)!=null&&F.height?(t.openBlock(),t.createElementBlock("span",wN,t.toDisplayString((J=(_=(Z=m.meteo)==null?void 0:Z.wave)==null?void 0:_.sig)==null?void 0:J.direction),1)):t.createCommentVNode("",!0),(ot=(X=(H=m.meteo)==null?void 0:H.wave)==null?void 0:X.sig)!=null&&ot.height?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(ct=(st=(nt=m.meteo)==null?void 0:nt.wave)==null?void 0:st.sig)==null?void 0:ct.degree,!1))},null,4)):(t.openBlock(),t.createElementBlock("span",RN,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(m))},t.toDisplayString(d.roundPrecision((Dt=(mt=(Mt=m.meteo)==null?void 0:Mt.wave)==null?void 0:mt.sig)==null?void 0:Dt.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ye=(It=(gt=m.meteo)==null?void 0:gt.wave)==null?void 0:It.sig)==null?void 0:ye.period,1)),1),t.createElementVNode("td",BN,[(Ve=(Ae=m.meteo)==null?void 0:Ae.current)!=null&&Ve.kts?(t.openBlock(),t.createElementBlock("span",FN,t.toDisplayString((Ra=(wa=m.meteo)==null?void 0:wa.current)==null?void 0:Ra.direction),1)):t.createCommentVNode("",!0),(Fa=(Ba=m.meteo)==null?void 0:Ba.current)!=null&&Fa.kts?(t.openBlock(),t.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(Pa=(Ga=m.meteo)==null?void 0:Ga.current)==null?void 0:Pa.degree,!0))},null,4)):(t.openBlock(),t.createElementBlock("span",GN,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(m.cFactor,1)),1)])}),128))])]),e[76]||(e[76]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null," * The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const fi=Za(ws,[["render",PN],["__scopeId","data-v-b8dafa43"]]),WN={install(o){o.component("PlanReport",fi)}},O3="",LN={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},ZN={class:"cover-box"},_N={class:"cover-content"},JN={class:"cover-title"},HN={class:"cover-info"},XN={class:"info-item"},KN={class:"info-item"},uN={class:"info-item"},qN={style:{"font-weight":"600"}},$N={class:"info-item"},vN={style:{"font-weight":"600"}},tc={class:"info-item"},ec={key:0},ac={key:1},lc={class:"info-item"},oc={class:"info-item"},nc={key:0},ic={key:1},dc={class:"info-item"},sc={class:"info-item"},rc={class:"text"};function Nc(o,e,l,N,n,d){var D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q;return t.openBlock(),t.createElementBlock("div",ZN,[t.createElementVNode("div",_N,[t.createElementVNode("div",JN,t.toDisplayString(l.name),1),t.createElementVNode("div",HN,[t.createElementVNode("div",XN,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((s=(D=l.report)==null?void 0:D.voyage)==null?void 0:s.number),1)]),t.createElementVNode("div",KN,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#E7E7E7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",uN,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",qN,t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.name),1)]),t.createElementVNode("div",$N,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tc,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),(E=(a=l.report)==null?void 0:a.departure)!=null&&E.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((p=(j=l.report)==null?void 0:j.departure)==null?void 0:p.portName),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(d.computePosition((A=l.report)==null?void 0:A.departure)),1))]),t.createElementVNode("div",lc,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((k=(V=l.report)==null?void 0:V.departure)==null?void 0:k.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oc,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),(x=(y=l.report)==null?void 0:y.arrival)!=null&&x.portName?(t.openBlock(),t.createElementBlock("span",nc,t.toDisplayString((h=(z=l.report)==null?void 0:z.arrival)==null?void 0:h.portName),1)):(t.openBlock(),t.createElementBlock("span",ic,t.toDisplayString(d.computePosition((g=l.report)==null?void 0:g.arrival)),1))]),t.createElementVNode("div",dc,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((G=(B=l.report)==null?void 0:B.arrival)==null?void 0:G.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",sc,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",rc,t.toDisplayString((Q=(Y=l.report)==null?void 0:Y.voyage)==null?void 0:Q.loadCondition),1)])])])])}const cc=Za(LN,[["render",Nc],["__scopeId","data-v-89d46487"]]),h3="",Mc={name:"OrmVoyageSummary",components:{Editor:ml},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 u.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return u.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 u.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,s;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 d=(s=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:s.hours.filter(c=>c.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mc={class:"report-summary"},Dc={class:"section weather-section"},gc={class:"definition bg-blue-light-2"},Ic={style:{"line-height":"1.5"}},Ec={class:"section summary-section"},yc={class:"phase-box"},Ac={class:"phase-index"},Tc={class:"phase-position"},Vc={key:0},xc={key:1},pc={class:"phase-position"},zc={key:0},jc={key:1},kc={class:"phase-cp"},Uc={class:"orm-report-table"},Sc={class:"phase-conclusion"},bc={class:"item-conclusion bg-blue-light-2"},Cc={class:"value align-left"},Oc={key:0,class:"text-secondary align-right"},hc={key:0},Yc={key:1},fc={key:2},Qc={key:1,class:"text-secondary"},wc={key:2,class:"value"},Rc={key:0},Bc={class:"gain"},Fc={key:1},Gc={class:"lost"},Pc={key:2},Wc={class:"item-conclusion bg-blue-light-2"},Lc={class:"value align-left"},Zc={key:0,class:"text-secondary"},_c={key:0},Jc={key:1},Hc={key:2},Xc={key:1,class:"text-secondary"},Kc={key:2,class:"value"},uc={key:0},qc={class:"gain"},$c={key:1},vc={class:"lost"},tM={key:2},eM={class:"item-conclusion bg-blue-light-2"},aM={class:"value align-left"},lM={key:0,class:"text-secondary"},oM={key:0},nM={key:1},iM={key:2},dM={key:1,class:"text-secondary"},sM={key:2,class:"value"},rM={key:0},NM={class:"gain"},cM={key:1},MM={class:"lost"},mM={key:2},DM={key:0,class:"exclusion-block"},gM={style:{margin:"8px 0"}},IM={class:"orm-report-table"},EM={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},yM={class:"sub-title"},AM=["innerHTML"],TM={class:"section segment-section"},VM={class:"segment-summary"},xM={class:"segment-index text-left"},pM={class:"segment-position"},zM={key:0},jM={key:1},kM={class:"segment-position"},UM={key:0},SM={key:1},bM={class:"orm-report-table"},CM={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={class:"good-wx"},FM={class:"good-wx"},GM={class:"good-wx"},PM={class:"good-wx"},WM={class:"good-wx"},LM={class:"good-wx"},ZM={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},_M={key:0},JM={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},HM={key:2,class:"segment-speed"},XM={class:"row"},KM={class:"speed-right row"},uM={class:"speed"},qM={key:1,class:"speed"},$M={key:0,class:"speed"},vM={class:"speed"},tm={class:"speed"},em={class:"speed"},am={key:0,class:"under"},lm={key:1,class:"over"},om={class:"row"},nm={class:"speed-right formula flex-space"},im={key:0},dm={key:3,class:"segment-speed"},sm={class:"row"},rm={class:"speed-right row"},Nm={class:"speed"},cm={class:"speed"},Mm={key:0,class:"under"},mm={key:1,class:"over"},Dm={class:"row"},gm={class:"speed-right formula row"},Im={class:"segment-formula"},Em={class:"sub-title"},ym={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Am={class:"formula-block"},Tm={class:"formula-item flex-evenly bg-blue-light"},Vm={class:"formula-right flex-evenly"},xm={class:"fraction",style:{width:"240px"}},pm={class:"formula-item flex-center bg-blue-light"},zm={class:"formula-left flex-space"},jm={class:"formula-right flex-evenly"},km={class:"fraction",style:{width:"240px"}},Um={class:"formula-item flex-center bg-blue-light"},Sm={class:"formula-left flex-space"},bm={class:"formula-right flex-evenly"},Cm={class:"fraction",style:{width:"240px"}},Om={class:"formula-desc"},hm={class:"flex-end"},Ym={class:"flex-end"},fm={class:"flex-end"},Qm={key:0,class:"formula-block"},wm={class:"formula-item flex-evenly bg-blue-light"},Rm={class:"formula-right flex-evenly"},Bm={class:"fraction",style:{width:"200px"}},Fm={class:"formula-item flex-center bg-blue-light"},Gm={class:"formula-left flex-space"},Pm={class:"formula-right flex-evenly"},Wm={class:"fraction",style:{width:"200px"}},Lm={class:"formula-item flex-center bg-blue-light"},Zm={class:"formula-left flex-space"},_m={class:"formula-right flex-evenly"},Jm={class:"fraction",style:{width:"200px"}},Hm={class:"formula-item formula-conclusion bg-blue-light"},Xm={key:0,class:"flex-evenly",style:{width:"500px"}},Km={key:1,class:"flex-evenly",style:{width:"500px"}},um={class:"flex-center"},qm={key:1,class:"formula-conclusion bg-blue-light"},$m={class:"segment-formula"},vm={class:"sub-title"},tD={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},eD={class:"formula-block"},aD={class:"formula-item flex-evenly bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"240px"}},nD={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},iD={key:0,class:"flex-end text-tips"},dD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},rD={class:"fraction",style:{width:"200px"}},ND={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"200px"}},mD={class:"formula-item flex-center bg-blue-light"},DD={class:"formula-right flex-evenly"},gD={class:"fraction",style:{width:"300px"}},ID={class:"formula-item flex-center bg-blue-light"},ED={class:"formula-right flex-evenly"},yD={class:"fraction",style:{width:"300px"}},AD={class:"sub-title"},TD={key:0,class:"formula-block"},VD={key:0,class:"formula-item flex-evenly bg-blue-light"},xD={class:"formula-right flex-evenly"},pD={class:"fraction",style:{width:"60px"}},zD={class:"fraction",style:{width:"60px"}},jD={class:"formula-item flex-evenly bg-blue-light"},kD={class:"formula-right flex-evenly"},UD={class:"fraction",style:{width:"150px"}},SD={class:"fraction",style:{width:"150px"}},bD={key:0},CD={class:"formula-item flex-evenly bg-blue-light"},OD={class:"formula-right flex-evenly"},hD={class:"fraction",style:{width:"150px"}},YD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item flex-evenly bg-blue-light"},QD={class:"formula-right flex-evenly"},wD={class:"fraction",style:{width:"150px"}},RD={class:"fraction",style:{width:"150px"}},BD={class:"formula-item formula-conclusion bg-blue-light"},FD={class:"flex-evenly",style:{width:"500px"}},GD={key:0,class:"flex-evenly"},PD={class:"fraction"},WD={class:"flex-evenly",style:{width:"700px"}},LD={key:0,class:"flex-evenly",style:{width:"500px"}},ZD={class:"fraction",style:{width:"140px"}},_D={key:1,class:"formula-item formula-conclusion bg-blue-light"},JD={class:"header-block"},HD={class:"bg-block"},XD={class:"block-title"},KD={key:0,class:"formula-block"},uD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},vD={class:"fraction",style:{width:"150px"}},tg={key:0},eg={class:"formula-item flex-evenly bg-blue-light"},ag={class:"formula-right flex-evenly"},lg={class:"fraction",style:{width:"150px"}},og={class:"fraction",style:{width:"150px"}},ng={class:"formula-item flex-evenly bg-blue-light"},ig={class:"formula-right flex-evenly"},dg={class:"fraction",style:{width:"150px"}},sg={class:"fraction",style:{width:"150px"}},rg={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},Ng={key:0,class:"flex-evenly",style:{width:"500px"}},cg={key:1,class:"flex-evenly",style:{width:"700px"}},Mg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function mg(o,e,l,N,n,d){var s,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(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",Ec,[e[31]||(e[31]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((s=l.report)==null?void 0:s.segments,(a,E)=>{var j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",yc,[t.createElementVNode("div",Ac,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(w,Xt)=>{var Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt;return t.openBlock(),t.createElementBlock("div",{key:Xt,class:"phase-row text-secondary"},[t.createElementVNode("div",Tc,[(Rt=w==null?void 0:w.departure)!=null&&Rt.portName?(t.openBlock(),t.createElementBlock("span",Vc,t.toDisplayString((Bt=w==null?void 0:w.departure)==null?void 0:Bt.portName),1)):(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(d.computeLat((Ft=w==null?void 0:w.departure)==null?void 0:Ft.lat).pretty)+", "+t.toDisplayString(d.computeLng((Gt=w==null?void 0:w.departure)==null?void 0:Gt.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Pt=w==null?void 0:w.departure)==null?void 0:Pt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",pc,[(Wt=w==null?void 0:w.arrival)!=null&&Wt.portName?(t.openBlock(),t.createElementBlock("span",zc,t.toDisplayString((Lt=w==null?void 0:w.arrival)==null?void 0:Lt.portName),1)):(t.openBlock(),t.createElementBlock("span",jc,t.toDisplayString(d.computeLat((Zt=w==null?void 0:w.arrival)==null?void 0:Zt.lat).pretty)+", "+t.toDisplayString(d.computeLng((_t=w==null?void 0:w.arrival)==null?void 0:_t.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Jt=w==null?void 0:w.arrival)==null?void 0:Jt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",kc,[t.createElementVNode("table",Uc,[e[12]||(e[12]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createElementVNode("span",null,"CP")]),t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[11]||(e[11]=t.createElementVNode("td",null,null,-1)),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((A=(p=a==null?void 0:a.extend)==null?void 0:p.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(k=(V=a==null?void 0:a.extend)==null?void 0:V.cp)==null?void 0:k.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(x=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:x.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((h=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:h.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((B=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:B.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)])])])])]),t.createElementVNode("div",Sc,[t.createElementVNode("div",bc,[e[18]||(e[18]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",Cc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[13]||(e[13]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Oc,[((G=a==null?void 0:a.timeConclusion)==null?void 0:G.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",hc,"Time Gained")):((Y=a==null?void 0:a.timeConclusion)==null?void 0:Y.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",Yc,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fc,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",Qc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",wc,[((Q=a==null?void 0:a.timeConclusion)==null?void 0:Q.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Rc,[e[14]||(e[14]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",Bc,t.toDisplayString((W=a==null?void 0:a.timeConclusion)==null?void 0:W.timeGain),1),e[15]||(e[15]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Fc,[e[16]||(e[16]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",Gc,t.toDisplayString((q=a==null?void 0:a.timeConclusion)==null?void 0:q.timeLost),1),e[17]||(e[17]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",Pc,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Wc,[e[24]||(e[24]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",Lc,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[19]||(e[19]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Zc,[((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.fo)==null?void 0:tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",_c,"FO Saving")):((at=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:at.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jc,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",Hc,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",Kc,[((P=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:P.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",uc,[e[20]||(e[20]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",qc,t.toDisplayString((Nt=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:Nt.saving),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.fo)==null?void 0:Vt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",$c,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",vc,t.toDisplayString((pt=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.fo)==null?void 0:pt.overCons),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",tM,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",eM,[e[30]||(e[30]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",aM,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",lM,[((jt=(zt=a==null?void 0:a.fuelConclusion)==null?void 0:zt.dgo)==null?void 0:jt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",oM,"DO/GO Saving")):((Ut=(kt=a==null?void 0:a.fuelConclusion)==null?void 0:kt.dgo)==null?void 0:Ut.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",nM,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",iM,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",dM,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",sM,[((bt=(St=a==null?void 0:a.fuelConclusion)==null?void 0:St.dgo)==null?void 0:bt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",rM,[e[26]||(e[26]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",NM,t.toDisplayString((ht=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.dgo)==null?void 0:ht.saving),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((ft=(Yt=a==null?void 0:a.fuelConclusion)==null?void 0:Yt.dgo)==null?void 0:ft.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",cM,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",MM,t.toDisplayString((wt=(Qt=a==null?void 0:a.fuelConclusion)==null?void 0:Qt.dgo)==null?void 0:wt.overCons),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",mM,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[32]||(e[32]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((c=l.report)==null?void 0:c.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[36]||(e[36]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",DM,[e[34]||(e[34]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[35]||(e[35]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",gM,[t.createElementVNode("table",IM,[e[33]||(e[33]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,E)=>(t.openBlock(),t.createElementBlock("tr",{key:E},[t.createElementVNode("td",null,t.toDisplayString(E+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",EM,[t.createElementVNode("div",yM," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((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=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,AM))],2)],2),t.createElementVNode("div",TM,[e[238]||(e[238]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,E)=>{var j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt,lt,ht,Yt,ft,Qt,wt,w,Xt,Rt,Bt,Ft,Gt,Pt,Wt,Lt,Zt,_t,Jt,Kt,ut,qt,$t,vt,te,ee,ae,le,oe,ne,ie,de,se,re,i,it,K,Ht,Ne,ce,Me,me,De,ge,$,Te,ze,je,ke,Ue,Se,be,Ce,Oe,he,Ye,fe,Qe,we,Re,Be,Fe,Ge,Le,Ze,_e,Je,He,Xe,Ke,ue,qe,$e,ve,ta,ea,aa,I,la,oa,na,ia,da,sa,ra,Na,xe,_a,Ja,Ha,Xa,Ka,ua,qa,$a,va,tl,el,al,ll,ol,nl,m,yt,Ie,Ee,pe,Pe,ca,Ma,ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,Sa,ba,Ca,Oa,ha,Ya,fa,Qa,r,U,S,b,C,O,f,R,F,Z,_,J,H,X,ot,nt,st,ct,Mt,mt,Dt,gt,It,ye,Ae,Ve,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,il,dl,sl,Nl,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,M,Sl,bl,Cl,Ol,hl,Yl,fl,Ql,cl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ul,ql,$l,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,bo,Co,Oo,ho,Yo,fo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,uo,qo,$o,vo,tn,en,an,ln,on,nn,dn,sn,rn,Nn,cn,Mn,mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,Sn,bn,Cn,On,hn,Yn,fn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,un,qn,$n,vn,ti,ei,ai,li,oi,ni,ii,di,si,ri,Ni,ci,Mi,mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",VM,[t.createElementVNode("div",xM,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((j=a==null?void 0:a.extend)==null?void 0:j.segTimes,(Ct,Rl)=>{var Ml,wl,Ai,Ti,Vi,xi,pi,zi,ji,ki;return t.openBlock(),t.createElementBlock("div",{key:Rl,class:"segment-row text-secondary"},[t.createElementVNode("div",pM,[(Ml=Ct==null?void 0:Ct.departure)!=null&&Ml.portName?(t.openBlock(),t.createElementBlock("span",zM,t.toDisplayString((wl=Ct==null?void 0:Ct.departure)==null?void 0:wl.portName),1)):(t.openBlock(),t.createElementBlock("span",jM,t.toDisplayString(d.computeLat((Ai=Ct==null?void 0:Ct.departure)==null?void 0:Ai.lat).pretty)+", "+t.toDisplayString(d.computeLng((Ti=Ct==null?void 0:Ct.departure)==null?void 0:Ti.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Vi=Ct==null?void 0:Ct.departure)==null?void 0:Vi.utcTime))+")",1)]),e[37]||(e[37]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",kM,[(xi=Ct==null?void 0:Ct.arrival)!=null&&xi.portName?(t.openBlock(),t.createElementBlock("span",UM,t.toDisplayString((pi=Ct==null?void 0:Ct.arrival)==null?void 0:pi.portName),1)):(t.openBlock(),t.createElementBlock("span",SM,t.toDisplayString(d.computeLat((zi=Ct==null?void 0:Ct.arrival)==null?void 0:zi.lat).pretty)+", "+t.toDisplayString(d.computeLng((ji=Ct==null?void 0:Ct.arrival)==null?void 0:ji.lng).pretty),1)),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ki=Ct==null?void 0:Ct.arrival)==null?void 0:ki.utcTime))+")",1)])])}),128)),t.createElementVNode("table",bM,[e[45]||(e[45]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",CM,t.toDisplayString((A=(p=a==null?void 0:a.goodWx)==null?void 0:p.outEca)==null?void 0:A.distance),1),t.createElementVNode("td",OM,t.toDisplayString((k=(V=a==null?void 0:a.goodWx)==null?void 0:V.inEca)==null?void 0:k.distance),1),t.createElementVNode("td",null,t.toDisplayString((x=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:x.distance),1),t.createElementVNode("td",null,t.toDisplayString((h=(z=a==null?void 0:a.allWx)==null?void 0:z.inEca)==null?void 0:h.distance),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",hM,t.toDisplayString((B=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:B.time),1),t.createElementVNode("td",YM,t.toDisplayString((Y=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Y.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((q=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:q.time),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",fM,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.outEca)==null?void 0:tt.avgSpd)||"--"),1),t.createElementVNode("td",QM,t.toDisplayString(((at=(et=a==null?void 0:a.goodWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((P=(dt=a==null?void 0:a.allWx)==null?void 0:dt.outEca)==null?void 0:P.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Nt=(rt=a==null?void 0:a.allWx)==null?void 0:rt.inEca)==null?void 0:Nt.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",wM,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.goodWx)==null?void 0:Tt.outEca)==null?void 0:Vt.sumFoCons)||"--"),1),t.createElementVNode("td",RM,t.toDisplayString(((pt=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.inEca)==null?void 0:pt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.outEca)==null?void 0:jt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ut=(kt=a==null?void 0:a.allWx)==null?void 0:kt.inEca)==null?void 0:Ut.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",BM,t.toDisplayString(((bt=(St=a==null?void 0:a.goodWx)==null?void 0:St.outEca)==null?void 0:bt.avgFoCons)||"--"),1),t.createElementVNode("td",FM,t.toDisplayString(((ht=(lt=a==null?void 0:a.goodWx)==null?void 0:lt.inEca)==null?void 0:ht.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ft=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.outEca)==null?void 0:ft.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(Qt=a==null?void 0:a.allWx)==null?void 0:Qt.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",GM,t.toDisplayString(((Xt=(w=a==null?void 0:a.goodWx)==null?void 0:w.outEca)==null?void 0:Xt.sumDgoCons)||"--"),1),t.createElementVNode("td",PM,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Gt=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Gt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Wt=(Pt=a==null?void 0:a.allWx)==null?void 0:Pt.inEca)==null?void 0:Wt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",WM,t.toDisplayString(((Zt=(Lt=a==null?void 0:a.goodWx)==null?void 0:Lt.outEca)==null?void 0:Zt.avgDgoCons)||"--"),1),t.createElementVNode("td",LM,t.toDisplayString(((Jt=(_t=a==null?void 0:a.goodWx)==null?void 0:_t.inEca)==null?void 0:Jt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ut=(Kt=a==null?void 0:a.allWx)==null?void 0:Kt.outEca)==null?void 0:ut.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString((($t=(qt=a==null?void 0:a.allWx)==null?void 0:qt.inEca)==null?void 0:$t.avgDgoCons)||"--"),1)])])]),(vt=a==null?void 0:a.goodWx)!=null&&vt.distance?(t.openBlock(),t.createElementBlock("table",ZM,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[E],(Ct,Rl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Rl},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ct,(Ml,wl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:wl},[Ml.goodWx?(t.openBlock(),t.createElementBlock("tr",_M,[t.createElementVNode("td",null,t.toDisplayString(Ml.type)+" "+t.toDisplayString(d.computeUTCTime(Ml.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Ml),"MMM-DD/HHmm[Z],YYYY")),1),e[46]||(e[46]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Ml.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Ml.utc,d.computePrevTime(Ml))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(te=n.exclusion[E])!=null&&te.time?(t.openBlock(),t.createElementBlock("div",JM," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ee=a==null?void 0:a.goodWx)!=null&&ee.distance?(t.openBlock(),t.createElementBlock("div",HM,[t.createElementVNode("div",XM,[e[57]||(e[57]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KM,[(le=(ae=l.report)==null?void 0:ae.weather)!=null&&le.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(Ne=(Ht=l.report)==null?void 0:Ht.weather)!=null&&Ne.disableWxFactor&&((Me=(ce=l.report)==null?void 0:ce.weather)!=null&&Me.disableCFactor)?(t.openBlock(),t.createElementBlock("span",$M,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(ge=(De=l.report)==null?void 0:De.weather)!=null&&ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString(($=a==null?void 0:a.goodWx)==null?void 0:$.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Te=a==null?void 0:a.goodWx)==null?void 0:Te.avgCf)>0?(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf:`(${(je=a==null?void 0:a.goodWx)==null?void 0:je.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vM,t.toDisplayString((ke=a==null?void 0:a.goodWx)==null?void 0:ke.pfmSpd)+" (kts)",1)],64)):(Se=(Ue=l.report)==null?void 0:Ue.weather)!=null&&Se.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((be=a==null?void 0:a.goodWx)==null?void 0:be.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf)>0?(Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.avgWf:`(${(he=a==null?void 0:a.goodWx)==null?void 0:he.avgWf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tm,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[55]||(e[55]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),(Fe=(Be=l.report)==null?void 0:Be.weather)!=null&&Fe.favorableCur&&((Ge=a==null?void 0:a.goodWx)==null?void 0:Ge.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Le=a==null?void 0:a.goodWx)==null?void 0:Le.avgCf)>0?(Ze=a==null?void 0:a.goodWx)==null?void 0:Ze.avgCf:`(${(_e=a==null?void 0:a.goodWx)==null?void 0:_e.avgCf})`),1)],64)),e[56]||(e[56]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",em,t.toDisplayString((Je=a==null?void 0:a.goodWx)==null?void 0:Je.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ne=(oe=l.report)==null?void 0:oe.weather)!=null&&ne.favorableCur&&((ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf)>0?(t.openBlock(),t.createElementBlock("span",qM,t.toDisplayString((K=a==null?void 0:a.goodWx)==null?void 0:K.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((de=a==null?void 0:a.goodWx)==null?void 0:de.avgSpd),1),e[48]||(e[48]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((se=a==null?void 0:a.goodWx)==null?void 0:se.avgCf)>0?(re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[49]||(e[49]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",uM,t.toDisplayString((it=a==null?void 0:a.goodWx)==null?void 0:it.pfmSpd)+" (kts)",1)],64))],64)),(Xe=(He=l.report)==null?void 0:He.voyage)!=null&&Xe.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((Ke=a==null?void 0:a.goodWx)==null?void 0:Ke.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",am,"(Under-performance)")):t.createCommentVNode("",!0),((ue=a==null?void 0:a.goodWx)==null?void 0:ue.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",om,[e[74]||(e[74]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nm,[($e=(qe=l.report)==null?void 0:qe.weather)!=null&&$e.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(I=(aa=l.report)==null?void 0:aa.weather)!=null&&I.disableWxFactor&&((oa=(la=l.report)==null?void 0:la.weather)!=null&&oa.disableCFactor)?(t.openBlock(),t.createElementBlock("label",im,"GW Average Speed")):(ia=(na=l.report)==null?void 0:na.weather)!=null&&ia.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"-",-1)),e[65]||(e[65]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(sa=(da=l.report)==null?void 0:da.weather)!=null&&sa.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[66]||(e[66]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"-",-1)),e[68]||(e[68]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[71]||(e[71]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"-",-1)),e[73]||(e[73]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Na=(ra=l.report)==null?void 0:ra.weather)!=null&&Na.favorableCur&&((xe=a==null?void 0:a.goodWx)==null?void 0:xe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ta=(ve=l.report)==null?void 0:ve.weather)!=null&&ta.favorableCur&&((ea=a==null?void 0:a.goodWx)==null?void 0:ea.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[61]||(e[61]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[58]||(e[58]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"-",-1)),e[60]||(e[60]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",dm,[t.createElementVNode("div",sm,[e[80]||(e[80]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rm,[(Ja=(_a=l.report)==null?void 0:_a.weather)!=null&&Ja.favorableCur&&((Ha=a==null?void 0:a.allWx)==null?void 0:Ha.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((al=a==null?void 0:a.allWx)==null?void 0:al.avgSpd),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ll=a==null?void 0:a.allWx)==null?void 0:ll.avgWf)>0?(ol=a==null?void 0:a.allWx)==null?void 0:ol.avgWf:`(${(nl=a==null?void 0:a.allWx)==null?void 0:nl.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",cm,t.toDisplayString((m=a==null?void 0:a.allWx)==null?void 0:m.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Xa=a==null?void 0:a.allWx)==null?void 0:Xa.avgSpd),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ka=a==null?void 0:a.allWx)==null?void 0:Ka.avgCf)>0?(ua=a==null?void 0:a.allWx)==null?void 0:ua.avgCf:`(${(qa=a==null?void 0:a.allWx)==null?void 0:qa.avgCf})`),1),e[76]||(e[76]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString((($a=a==null?void 0:a.allWx)==null?void 0:$a.avgWf)>0?(va=a==null?void 0:a.allWx)==null?void 0:va.avgWf:`(${(tl=a==null?void 0:a.allWx)==null?void 0:tl.avgWf})`),1),e[77]||(e[77]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Nm,t.toDisplayString((el=a==null?void 0:a.allWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64)),(Ie=(yt=l.report)==null?void 0:yt.voyage)!=null&&Ie.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((Ee=a==null?void 0:a.allWx)==null?void 0:Ee.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Mm,"(Under-performance)")):t.createCommentVNode("",!0),((pe=a==null?void 0:a.allWx)==null?void 0:pe.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",mm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Dm,[e[90]||(e[90]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gm,[(ca=(Pe=l.report)==null?void 0:Pe.weather)!=null&&ca.favorableCur&&((Ma=a==null?void 0:a.allWx)==null?void 0:Ma.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[86]||(e[86]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"-",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[81]||(e[81]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"-",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"Current Factor",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(Da=(ma=l.report)==null?void 0:ma.weather)!=null&&Da.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ym,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[t.createElementVNode("div",Tm,[e[94]||(e[94]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Vm,[t.createElementVNode("div",xm,[t.createElementVNode("div",null,t.toDisplayString((Ia=(ga=l.report)==null?void 0:ga.weather)!=null&&Ia.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[91]||(e[91]=t.createElementVNode("div",{class:"line"},null,-1)),e[92]||(e[92]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[93]||(e[93]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",pm,[t.createElementVNode("div",zm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ya=(Ea=a==null?void 0:a.extend)==null?void 0:Ea.cp)==null?void 0:ya.speed,"Under"))+"kts)",1),e[95]||(e[95]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",jm,[t.createElementVNode("div",km,[t.createElementVNode("div",null,t.toDisplayString((Ta=(Aa=l.report)==null?void 0:Aa.weather)!=null&&Ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[96]||(e[96]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Under"))+"kts",1)]),e[97]||(e[97]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",Um,[t.createElementVNode("div",Sm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Over"))+"kts)",1),e[98]||(e[98]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",bm,[t.createElementVNode("div",Cm,[t.createElementVNode("div",null,t.toDisplayString((ka=(ja=l.report)==null?void 0:ja.weather)!=null&&ka.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[99]||(e[99]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Sa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:Sa.speed,"Over"))+"kts",1)]),e[100]||(e[100]=t.createElementVNode("div",null,"(c)",-1))])]),e[101]||(e[101]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:300px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Lost</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(a)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-c0778c3d><label data-v-c0778c3d>Time Gained</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(c)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(a)</div></div></div>',1))]),t.createElementVNode("div",Om,[t.createElementVNode("div",hm,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Ca.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",Ym,[e[103]||(e[103]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ha=(Oa=a==null?void 0:a.extend)==null?void 0:Oa.cp)==null?void 0:ha.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",fm,[e[104]||(e[104]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ya=a==null?void 0:a.extend)==null?void 0:Ya.cp)==null?void 0:fa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(r=(Qa=a==null?void 0:a.extend)==null?void 0:Qa.cp)==null?void 0:r.speed,"Under"))+" kts) ",1)])]),(U=a==null?void 0:a.goodWx)!=null&&U.distance?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",wm,[e[108]||(e[108]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Rm,[t.createElementVNode("div",Bm,[t.createElementVNode("div",null,t.toDisplayString((b=(S=l.report)==null?void 0:S.weather)!=null&&b.noExtrapolation?(C=a==null?void 0:a.goodWx)==null?void 0:C.distance:(O=a==null?void 0:a.allWx)==null?void 0:O.distance),1),e[105]||(e[105]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((f=a==null?void 0:a.goodWx)==null?void 0:f.pfmSpd),1)]),e[106]||(e[106]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((R=a==null?void 0:a.timeConclusion)==null?void 0:R.timeAtPfmSpd)+" (hrs)",1),e[107]||(e[107]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",Fm,[t.createElementVNode("div",Gm,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Z=(F=a==null?void 0:a.extend)==null?void 0:F.cp)==null?void 0:Z.speed,"Under"))+"kts)",1),e[109]||(e[109]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",Pm,[t.createElementVNode("div",Wm,[t.createElementVNode("div",null,t.toDisplayString((J=(_=l.report)==null?void 0:_.weather)!=null&&J.noExtrapolation?(H=a==null?void 0:a.goodWx)==null?void 0:H.distance:(X=a==null?void 0:a.allWx)==null?void 0:X.distance),1),e[110]||(e[110]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ot=a==null?void 0:a.timeConclusion)==null?void 0:ot.minusAbtSpd),1)]),e[111]||(e[111]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((nt=a==null?void 0:a.timeConclusion)==null?void 0:nt.timeAtMinusAbtSpd)+" (hrs)",1),e[112]||(e[112]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",Lm,[t.createElementVNode("div",Zm,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ct=(st=a==null?void 0:a.extend)==null?void 0:st.cp)==null?void 0:ct.speed,"Over"))+"kts)",1),e[113]||(e[113]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",_m,[t.createElementVNode("div",Jm,[t.createElementVNode("div",null,t.toDisplayString((mt=(Mt=l.report)==null?void 0:Mt.weather)!=null&&mt.noExtrapolation?(Dt=a==null?void 0:a.goodWx)==null?void 0:Dt.distance:(gt=a==null?void 0:a.allWx)==null?void 0:gt.distance),1),e[114]||(e[114]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((It=a==null?void 0:a.timeConclusion)==null?void 0:It.plusAbtSpd),1)]),e[115]||(e[115]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ye=a==null?void 0:a.timeConclusion)==null?void 0:ye.timeAtPlusAbtSpd)+" (hrs)",1),e[116]||(e[116]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",Hm,[((Ae=a==null?void 0:a.timeConclusion)==null?void 0:Ae.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",Xm,[e[117]||(e[117]=t.createElementVNode("div",null,"Time Lost",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"=",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ve=a==null?void 0:a.timeConclusion)==null?void 0:Ve.timeAtPfmSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((wa=a==null?void 0:a.timeConclusion)==null?void 0:wa.timeAtMinusAbtSpd),1),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ra=a==null?void 0:a.timeConclusion)==null?void 0:Ra.timeLost)+" (hrs)",1)])):((Ba=a==null?void 0:a.timeConclusion)==null?void 0:Ba.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",Km,[e[123]||(e[123]=t.createElementVNode("div",null,"Time Lost",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fa=a==null?void 0:a.timeConclusion)==null?void 0:Fa.timeAtPlusAbtSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ga=a==null?void 0:a.timeConclusion)==null?void 0:Ga.timeAtPfmSpd),1),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=a==null?void 0:a.timeConclusion)==null?void 0:Pa.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",um,[e[129]||(e[129]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Wa=a==null?void 0:a.timeConclusion)==null?void 0:Wa.conclusionStatus)==="Lost"?"lost":((La=a==null?void 0:a.timeConclusion)==null?void 0:La.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((il=a==null?void 0:a.timeConclusion)==null?void 0:il.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",qm,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",$m,[t.createElementVNode("div",vm,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(sl=(dl=l.report)==null?void 0:dl.weather)!=null&&sl.noExtrapolation?(t.openBlock(),t.createElementBlock("span",tD,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[e[135]||(e[135]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[t.createElementVNode("div",null,t.toDisplayString((Dl=(Nl=l.report)==null?void 0:Nl.weather)!=null&&Dl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[130]||(e[130]=t.createElementVNode("div",{class:"line"},null,-1)),e[131]||(e[131]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[132]||(e[132]=t.createElementVNode("div",null,"x",-1)),e[133]||(e[133]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[134]||(e[134]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",nD,[e[136]||(e[136]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Il=(gl=a.extend)==null?void 0:gl.cp)==null?void 0:Il.dgo)>0?(t.openBlock(),t.createElementBlock("div",iD," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dD,[e[141]||(e[141]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",rD,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[137]||(e[137]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Tl=(Al=a==null?void 0:a.extend)==null?void 0:Al.cp)==null?void 0:Tl.speed,"Under"))+"kts",1)]),e[138]||(e[138]=t.createElementVNode("div",null,"x",-1)),e[139]||(e[139]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[140]||(e[140]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",ND,[e[146]||(e[146]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[142]||(e[142]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Over"))+"kts",1)]),e[143]||(e[143]=t.createElementVNode("div",null,"x",-1)),e[144]||(e[144]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[145]||(e[145]=t.createElementVNode("div",null,"(f)",-1))])]),e[153]||(e[153]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-c0778c3d><div class="flex-space" style="width:240px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Over-consumption</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(d)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(e)</div></div><div class="flex-space" style="width:200px;" data-v-c0778c3d><label data-v-c0778c3d>Fuel Saving</label><div data-v-c0778c3d>=</div><div data-v-c0778c3d>(f)</div><div data-v-c0778c3d>-</div><div data-v-c0778c3d>(d)</div></div></div>',1)),((kl=(jl=a.extend)==null?void 0:jl.cp)==null?void 0:kl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",mD,[e[149]||(e[149]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",gD,[e[147]||(e[147]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[148]||(e[148]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((M=(Ul=l.report)==null?void 0:Ul.weather)!=null&&M.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",ID,[e[152]||(e[152]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",yD,[e[150]||(e[150]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[151]||(e[151]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((bl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&bl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[237]||(e[237]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",AD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(Cl=a==null?void 0:a.goodWx)!=null&&Cl.distance?(t.openBlock(),t.createElementBlock("div",TD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",VD,[e[159]||(e[159]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",pD,[t.createElementVNode("div",null,t.toDisplayString((fl=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:fl.sumDgoCons),1)]),e[156]||(e[156]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",null,t.toDisplayString((cl=(Ql=a==null?void 0:a.extend)==null?void 0:Ql.cp)==null?void 0:cl.dgo),1),e[154]||(e[154]=t.createElementVNode("div",{class:"line"},null,-1)),e[155]||(e[155]=t.createElementVNode("div",null,"24",-1))]),e[157]||(e[157]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[158]||(e[158]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",jD,[e[166]||(e[166]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",UD,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[160]||(e[160]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",SD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",bD,[e[161]||(e[161]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((ql=(ul=a==null?void 0:a.fuelConclusion)==null?void 0:ul.fo)==null?void 0:ql.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString(($l=a==null?void 0:a.goodWx)==null?void 0:$l.time),1)]),e[164]||(e[164]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[165]||(e[165]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",CD,[e[173]||(e[173]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",OD,[t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[170]||(e[170]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[168]||(e[168]=t.createElementVNode("div",{class:"line"},null,-1)),e[169]||(e[169]=t.createElementVNode("div",null,"24",-1))]),e[171]||(e[171]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((No=(ro=a.fuelConclusion)==null?void 0:ro.fo)==null?void 0:No.maxCons)+" (mt)",1),e[172]||(e[172]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[t.createElementVNode("div",null,t.toDisplayString((Mo=(co=l.report)==null?void 0:co.weather)!=null&&Mo.noExtrapolation?(mo=a==null?void 0:a.goodWx)==null?void 0:mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[177]||(e[177]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[175]||(e[175]=t.createElementVNode("div",{class:"line"},null,-1)),e[176]||(e[176]=t.createElementVNode("div",null,"24",-1))]),e[178]||(e[178]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[179]||(e[179]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",BD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",FD,[e[181]||(e[181]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"=",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(bo=(So=a==null?void 0:a.goodWx)==null?void 0:So.inEca)!=null&&bo.distance?(t.openBlock(),t.createElementBlock("div",GD,[e[188]||(e[188]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Oo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:Oo.distance)+" * "+t.toDisplayString((Yo=(ho=a==null?void 0:a.fuelConclusion)==null?void 0:ho.fo)==null?void 0:Yo.overCons),1),e[187]||(e[187]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(fo=l.report)==null?void 0:fo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[190]||(e[190]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",WD,[e[191]||(e[191]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",LD,[e[198]||(e[198]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",null,t.toDisplayString((qo=(uo=l.report)==null?void 0:uo.weather)!=null&&qo.noExtrapolation?(vo=($o=a==null?void 0:a.goodWx)==null?void 0:$o.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[197]||(e[197]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(dn=a==null?void 0:a.goodWx)==null?void 0:dn.distance:(sn=a==null?void 0:a.allWx)==null?void 0:sn.distance),1)]),e[200]||(e[200]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Nn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:Nn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Mn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:Mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(mn=a==null?void 0:a.fuelConclusion)==null?void 0:mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[201]||(e[201]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",_D,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[e[202]||(e[202]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",XD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",KD,[t.createElementVNode("div",uD,[e[209]||(e[209]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qD,[t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[203]||(e[203]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",tg,[e[204]||(e[204]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((bn=(Sn=a==null?void 0:a.fuelConclusion)==null?void 0:Sn.fo)==null?void 0:bn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.time),1)]),e[207]||(e[207]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((hn=(On=a.fuelConclusion)==null?void 0:On.dgo)==null?void 0:hn.entireCons)+" (mt)",1),e[208]||(e[208]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",eg,[e[216]||(e[216]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ag,[t.createElementVNode("div",lg,[t.createElementVNode("div",null,t.toDisplayString((fn=(Yn=l.report)==null?void 0:Yn.weather)!=null&&fn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[213]||(e[213]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",og,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[211]||(e[211]=t.createElementVNode("div",{class:"line"},null,-1)),e[212]||(e[212]=t.createElementVNode("div",null,"24",-1))]),e[214]||(e[214]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[215]||(e[215]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",ng,[e[223]||(e[223]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ig,[t.createElementVNode("div",dg,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[220]||(e[220]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",sg,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[218]||(e[218]=t.createElementVNode("div",{class:"line"},null,-1)),e[219]||(e[219]=t.createElementVNode("div",null,"24",-1))]),e[221]||(e[221]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((un=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:un.minCons)+" (mt)",1),e[222]||(e[222]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",rg,[(($n=(qn=a==null?void 0:a.fuelConclusion)==null?void 0:qn.dgo)==null?void 0:$n.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",Ng,[e[224]||(e[224]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"=",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",cg,[e[230]||(e[230]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.minCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ni=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:Ni.entireCons),1),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Mi=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:Mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(mi=a==null?void 0:a.fuelConclusion)==null?void 0:mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[236]||(e[236]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",Mg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const Dg=Za(Mc,[["render",mg],["__scopeId","data-v-c0778c3d"]]),Y3="",gg={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${At(o).utc().format(e)}`}},computeLng(){return function(o){return u.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return u.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?u.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,N,n,d,D,s,c,T,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((N=(l=this.report)==null?void 0:l.weather)==null?void 0:N.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((s=(D=this.report)==null?void 0:D.weather)==null?void 0:s.showSwell)??!0,this.showWave=((T=(c=this.report)==null?void 0:c.weather)==null?void 0:T.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},Ig={class:"report-inventory"},Eg={class:"section summary-section"},yg={class:"summary-block"},Ag={class:"orm-report-table inventory-table"},Tg={class:"label",rowspan:"4"},Vg={class:"section inventory-section"},xg={class:"orm-report-table inventory-table detail"},pg=["colspan"],zg={key:0,class:"label",colspan:"2"},jg={key:0,class:"label",rowspan:"2"},kg={key:1,class:"label",rowspan:"2"},Ug={key:2,class:"label",rowspan:"2"},Sg={key:3,class:"label",colspan:"2"},bg={key:4,class:"label",rowspan:"2"},Cg={key:5,class:"label",colspan:"2"},Og={key:6,class:"label",rowspan:"2"},hg={key:7,class:"label",rowspan:"2"},Yg={key:8,class:"label",rowspan:"2"},fg={key:0,class:"label"},Qg={key:1,class:"label"},wg={key:2,class:"label"},Rg={key:3,class:"label"},Bg={class:"summary-tbody"};function Fg(o,e,l,N,n,d){var D;return t.openBlock(),t.createElementBlock("div",Ig,[t.createElementVNode("div",Eg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",yg,[t.createElementVNode("table",Ag,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((D=l.report)==null?void 0:D.segments,(s,c)=>{var T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q;return t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("tr",null,[t.createElementVNode("td",Tg,t.toDisplayString(c+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=s==null?void 0:s.allWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=s==null?void 0:s.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=s==null?void 0:s.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=s==null?void 0:s.allWx)==null?void 0:j.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=s==null?void 0:s.allWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((A=s==null?void 0:s.goodWx)==null?void 0:A.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=s==null?void 0:s.goodWx)==null?void 0:V.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=s==null?void 0:s.goodWx)==null?void 0:k.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((y=s==null?void 0:s.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((x=s==null?void 0:s.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=s==null?void 0:s.badWx)==null?void 0:z.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((h=s==null?void 0:s.badWx)==null?void 0:h.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=s==null?void 0:s.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((B=s==null?void 0:s.badWx)==null?void 0:B.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((G=s==null?void 0:s.badWx)==null?void 0:G.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Y=s==null?void 0:s.excluded)==null?void 0:Y.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=s==null?void 0:s.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=s==null?void 0:s.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=s==null?void 0:s.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((q=s==null?void 0:s.excluded)==null?void 0:q.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Vg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-2182dbc0><div class="flex-start" data-v-2182dbc0><div class="legend good-wx" data-v-2182dbc0></div><div class="label flex-end" data-v-2182dbc0>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend adverse-wx" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-2182dbc0><div class="legend excluded" data-v-2182dbc0></div><div class="label" data-v-2182dbc0>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-2182dbc0><label data-v-2182dbc0>B</label><div data-v-2182dbc0>BOSP</div><label data-v-2182dbc0>N</label><div data-v-2182dbc0>NOON</div><label data-v-2182dbc0>E</label><div data-v-2182dbc0>EOSP</div><label data-v-2182dbc0>*</label><div data-v-2182dbc0>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-2182dbc0> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",xg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,pg),l.showFactor?(t.openBlock(),t.createElementBlock("th",zg,"Factor")):t.createCommentVNode("",!0),e[10]||(e[10]=t.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),e[11]||(e[11]=t.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),t.createElementVNode("tr",null,[e[17]||(e[17]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),e[18]||(e[18]=t.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),e[19]||(e[19]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Daily Cons. "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",jg,[...e[12]||(e[12]=[t.createTextVNode("Spd",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("th",kg,[...e[13]||(e[13]=[t.createTextVNode("Dis",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),e[21]||(e[21]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),n.showWave?(t.openBlock(),t.createElementBlock("th",Ug,[...e[14]||(e[14]=[t.createTextVNode("Sea HT",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Sg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",bg,[...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",Cg,"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",Og,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",hg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",Yg,[...e[16]||(e[16]=[t.createTextVNode("Water ",-1),t.createElementVNode("br",null,null,-1),t.createTextVNode("Temp.",-1)])])):t.createCommentVNode("",!0),e[23]||(e[23]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Spd"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[24]||(e[24]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Time"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[25]||(e[25]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode("Dis"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[26]||(e[26]=t.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),e[27]||(e[27]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("BROB "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[28]||(e[28]=t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("DailyCons "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[29]||(e[29]=t.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),e[30]||(e[30]=t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createTextVNode(" Sea HT"),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),t.createElementVNode("tr",null,[e[33]||(e[33]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[34]||(e[34]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[35]||(e[35]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[36]||(e[36]=t.createElementVNode("th",{class:"label"},"BF",-1)),n.showSwell?(t.openBlock(),t.createElementBlock("th",fg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",Qg,[...e[31]||(e[31]=[t.createTextVNode("HT ",-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",wg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Rg,[...e[32]||(e[32]=[t.createTextVNode("CF ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),e[37]||(e[37]=t.createElementVNode("th",{class:"label"},"RPM",-1)),e[38]||(e[38]=t.createElementVNode("th",{class:"label"},[t.createTextVNode("Slip "),t.createElementVNode("span",{class:"text-units"},"(%)")],-1)),e[39]||(e[39]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[40]||(e[40]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[41]||(e[41]=t.createElementVNode("th",{class:"label"},"FO",-1)),e[42]||(e[42]=t.createElementVNode("th",{class:"label"},"DO/GO",-1)),e[43]||(e[43]=t.createElementVNode("th",{class:"label"},"Dir",-1)),e[44]||(e[44]=t.createElementVNode("th",{class:"label"},"BF",-1))])]),t.createElementVNode("tbody",Bg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(s,c)=>{var T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at;return t.openBlock(),t.createElementBlock("tr",{key:c},[t.createElementVNode("td",{class:t.normalizeClass(s.segLength?"no-border-bottom":"no-border")},t.toDisplayString(s.segLength?s.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",s.excluded?"excluded":s.goodWx?"good-wx":""])},t.toDisplayString(s.time),3),["B","E"].includes(s.abbrev)&&((T=s.noon)!=null&&T.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=s.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((j=(E=s.meteo)==null?void 0:E.wind)==null?void 0:j.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((A=(p=s.meteo)==null?void 0:p.wind)==null?void 0:A.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((y=(k=(V=s.meteo)==null?void 0:V.wave)==null?void 0:k.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((h=(z=(x=s.meteo)==null?void 0:x.wave)==null?void 0:z.swell)==null?void 0:h.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((G=(B=(g=s.meteo)==null?void 0:g.wave)==null?void 0:B.swell)==null?void 0:G.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((W=(Q=(Y=s.meteo)==null?void 0:Y.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((q=(L=s.meteo)==null?void 0:L.current)==null?void 0:q.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(s.type==="BOSP"?"-":((v=s.meteo)==null?void 0:v.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(((tt=s.meteo)==null?void 0:tt.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(((et=s.meteo)==null?void 0:et.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(s.excluded?"excluded":s.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((at=s.meteo)==null?void 0:at.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(["A"].includes(s.abbrev)?"":s.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(s))},t.toDisplayString(!["A","B"].includes(s.abbrev)&&c?s.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Gg=Za(gg,[["render",Fg],["__scopeId","data-v-2182dbc0"]]),f3="",Pg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${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)?"-":u.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+u.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(Ci.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Ci.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Ci.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,j,p,A,V,k;let o=[];const e=[],l=[],N={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const D=this.inventory.filter(y=>y.noon)||[],s=[];this.inventory.forEach((y,x)=>{var z,h;x===0&&s.push(y.utc),y.type==="EOSP"&&((z=this.inventory[x+1])==null?void 0:z.type)==="BOSP"&&(s.push(y.utc),s.push((h=this.inventory[x+1])==null?void 0:h.utc)),x===this.inventory.length-1&&s.push(y.utc)}),s.forEach((y,x)=>{if(x%2===0){const z=At(s[x+1]).diff(At(s[x]),"minute",!0);for(let h=0;h<=z+1;h++)e.push(this.computeUTCTime(At(s[x]).clone().utc().add(h,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((y,x)=>{var h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt;const z=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(P=>P.slice(0,5)===y.utc.slice(5,10))&&o.push(z),x===D.length-1&&(o=o.filter(P=>P.slice(0,5)!==y.utc.slice(5,10)),o.push(z)),n=Math.ceil(((h=y.noon)==null?void 0:h.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((B=y.cp)==null?void 0:B.fo)>n?(G=y.cp)==null?void 0:G.fo:n),d=Math.ceil(((Y=y.noon)==null?void 0:Y.dgoCons)>d?(Q=y.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=y.cp)==null?void 0:W.dgo)>d?(L=y.cp)==null?void 0:L.dgo:d),l.push([z,(q=y.noon)==null?void 0:q.avgSpd,(v=y.noon)==null?void 0:v.foCons,(tt=y.noon)==null?void 0:tt.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.excluded?100:0]),x<D.length-1){const P=D[x+1];l.push([z,(et=P.noon)==null?void 0:et.avgSpd,(at=P.noon)==null?void 0:at.foCons,(dt=P.noon)==null?void 0:dt.dgoCons,P.avgSpdCalc,P.cp.speed,P.goodWx&&!P.excluded?100:0,P.cp.dgo,P.cp.fo,P.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((y,x)=>x===0||x===o.length-1||x%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:(j=(E=this.report)==null?void 0:E.weather)!=null&&j.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.spdFoConsChart)==null||p.setOption(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:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:N.dateTime,y:N.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:(V=(A=this.report)==null?void 0:A.weather)!=null&&V.believeRptDistance?N.noonAvgSpd:N.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:N.dateTime,y:N.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(k=this.spdDgoConsChart)==null||k.setOption(a)},renderWxCurrChart(){var p;let o=[];const e=[],l=[],N={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],D=[];d.forEach((A,V)=>{var k,y;V===0&&D.push(A.utc),A.type==="EOSP"&&((k=d[V+1])==null?void 0:k.type)==="BOSP"&&(D.push(A.utc),D.push((y=d[V+1])==null?void 0:y.utc)),V===d.length-1&&D.push(A.utc)}),D.forEach((A,V)=>{if(V%2===0){const k=At(D[V+1]).diff(At(D[V]),"minute",!0);for(let y=0;y<=k+1;y++)e.push(this.computeUTCTime(At(D[V]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((A,V)=>{var y,x,z,h,g,B,G,Y,Q,W,L,q,v,tt,et,at,dt,P,rt,Nt,Tt,Vt,xt,pt,zt,jt,kt,Ut,St,bt;const k=this.computeUTCTime(A.utc,"MM-DD/HHmm[Z]");if(A.noon&&!o.some(lt=>lt.slice(0,5)===A.utc.slice(5,10))&&o.push(k),V===d.length-1&&(o=o.filter(lt=>lt.slice(0,5)!==A.utc.slice(5,10)),o.push(k)),n=Math.ceil(((z=(x=(y=A.meteo)==null?void 0:y.wave)==null?void 0:x.sig)==null?void 0:z.height)>n?(B=(g=(h=A.meteo)==null?void 0:h.wave)==null?void 0:g.sig)==null?void 0:B.height:n),l.push([k,((G=A.noon)==null?void 0:G.windBF)||((Q=(Y=A.meteo)==null?void 0:Y.wind)==null?void 0:Q.scale),(L=(W=A.meteo)==null?void 0:W.wind)==null?void 0:L.scale,(v=(q=A.meteo)==null?void 0:q.wind)==null?void 0:v.direction,(tt=A.noon)==null?void 0:tt.seasHt,(dt=(at=(et=A.meteo)==null?void 0:et.wave)==null?void 0:at.sig)==null?void 0:dt.height,A.dailyAvgCf??((P=l[l.length-1])==null?void 0:P[N.anlyCurFct]),A.goodWx&&!A.excluded?20:0,A.excluded?20:0]),V<d.length-1){const lt=d[V+1];l.push([k,((rt=A.noon)==null?void 0:rt.windBF)||((Tt=(Nt=A.meteo)==null?void 0:Nt.wind)==null?void 0:Tt.scale),(xt=(Vt=lt.meteo)==null?void 0:Vt.wind)==null?void 0:xt.scale,(zt=(pt=lt.meteo)==null?void 0:pt.wind)==null?void 0:zt.direction,(jt=lt.noon)==null?void 0:jt.seasHt,(St=(Ut=(kt=A.meteo)==null?void 0:kt.wave)==null?void 0:Ut.sig)==null?void 0:St.height,lt.dailyAvgCf??((bt=l[l.length-1])==null?void 0:bt[N.anlyCurFct]),lt.goodWx&&!lt.excluded?20:0,lt.excluded?20:0])}});const s=Math.ceil(o.length/10);o=o.filter((A,V)=>V===0||V===o.length-1||V%s===0);let c=-2.5,T=2.5,a=1,E=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),E=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,E=Math.abs(c)/a+5);const j={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:T,interval:a,splitNumber:E,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(E-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:E,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(E-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:E,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(A,V)=>{if(A>=0)return A},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:N.dateTime,y:N.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:N.dateTime,y:N.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:N.dateTime,y:N.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(p=this.currChart)==null||p.setOption(j)},findMaxValue(o,e){let l=-1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let N=0;N<o.length;N++){const n=o[N];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Wg={class:"report-summary"},Lg={class:"section chart-section"},Zg={class:"chart-block"},_g={ref:"spdFoConsChart",class:"chart"},Jg={ref:"spdDgoConsChart",class:"chart"},Hg={ref:"currChart",class:"chart"},Xg={class:"section map-section"},Kg={class:"map-block"},ug={class:"flex-space"},qg={class:"voyage-block bg-blue-light"},$g={class:"flex-space label-block",style:{width:"100%"}},vg={style:{"text-transform":"uppercase"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},lI={class:"flex-space label-block",style:{width:"100%"}},oI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nI={class:"flex-space label-block",style:{width:"100%"}},iI={key:0,class:"flex-end",style:{flex:"1"}},dI={key:1,class:"flex-end",style:{flex:"1"}},sI={class:"flex-end",style:{width:"160px"}},rI={class:"flex-space label-block",style:{width:"100%"}},NI={key:0,class:"flex-end",style:{flex:"1"}},cI={key:1,class:"flex-end",style:{flex:"1"}},MI={class:"flex-end",style:{width:"160px"}},mI={class:"flex-space label-block",style:{width:"100%"}},DI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},gI=["src"];function II(o,e,l,N,n,d){var D,s,c,T,a,E,j,p,A,V,k,y,x,z,h,g,B,G,Y,Q,W,L;return t.openBlock(),t.createElementBlock("div",Wg,[t.createElementVNode("div",Lg,[e[0]||(e[0]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-shuju"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption with Current Analysis Graph")])],-1)),t.createElementVNode("div",Zg,[t.createElementVNode("div",_g,null,512),t.createElementVNode("div",Jg,null,512),t.createElementVNode("div",Hg,null,512)])]),t.createElementVNode("div",Xg,[e[8]||(e[8]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-line-light"}),t.createElementVNode("div",{class:"block-title"},"Voyage Map")])],-1)),t.createElementVNode("div",Kg,[t.createElementVNode("div",ug,[t.createElementVNode("div",qg,[t.createElementVNode("div",$g,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",vg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tI,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",eI,t.toDisplayString((s=(D=l.report)==null?void 0:D.vessel)==null?void 0:s.name),1),t.createElementVNode("span",aI,"("+t.toDisplayString((T=(c=l.report)==null?void 0:c.vessel)==null?void 0:T.type)+")",1)]),t.createElementVNode("div",lI,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",oI,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",nI,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(p=(j=l.report)==null?void 0:j.departure)!=null&&p.portName?(t.openBlock(),t.createElementBlock("span",iI,t.toDisplayString((V=(A=l.report)==null?void 0:A.departure)==null?void 0:V.portName),1)):(t.openBlock(),t.createElementBlock("div",dI,t.toDisplayString(d.computePosition((k=l.report)==null?void 0:k.departure)),1)),t.createElementVNode("span",sI,t.toDisplayString(d.computeUTCTime((y=l.report.departure)==null?void 0:y.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",rI,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(z=(x=l.report)==null?void 0:x.arrival)!=null&&z.portName?(t.openBlock(),t.createElementBlock("span",NI,t.toDisplayString((g=(h=l.report)==null?void 0:h.arrival)==null?void 0:g.portName),1)):(t.openBlock(),t.createElementBlock("div",cI,t.toDisplayString(d.computePosition((B=l.report)==null?void 0:B.arrival)),1)),t.createElementVNode("span",MI,t.toDisplayString(d.computeUTCTime((Y=(G=l.report)==null?void 0:G.arrival)==null?void 0:Y.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",mI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",DI,t.toDisplayString((W=(Q=l.report)==null?void 0:Q.voyage)==null?void 0:W.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-a2260a56><div data-v-a2260a56>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>08/12</div><div data-v-a2260a56><div data-v-a2260a56>08 - Day of the month</div><div data-v-a2260a56>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-a2260a56></i></div><div data-v-a2260a56><div data-v-a2260a56>Wind from N (000)</div><div data-v-a2260a56>Each bard = 10 kts</div><div data-v-a2260a56>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div data-v-a2260a56>W 4</div><div data-v-a2260a56>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-a2260a56><div class="good-wx" data-v-a2260a56>Date</div><div data-v-a2260a56>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(L=l.report)==null?void 0:L.chartUrl,alt:""},null,8,gI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-a2260a56><div class="header-block" data-v-a2260a56><div class="bg-block" data-v-a2260a56><i class="iconfont icon-baobiao" data-v-a2260a56></i><div class="block-title" data-v-a2260a56>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>1. Good Weather Method</div><div class="method-body" data-v-a2260a56> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-a2260a56> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-a2260a56> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-a2260a56> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-a2260a56> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>4. “About”</div><div class="method-body" data-v-a2260a56> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-a2260a56> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-a2260a56> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-a2260a56> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-a2260a56> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-a2260a56><div class="method-title" data-v-a2260a56>6. Further reference materials</div><div class="method-body" data-v-a2260a56>Please send mail to <a href="mailto:op@ormwx.com" data-v-a2260a56>op@ormwx.com</a>.</div></div></div></div>',1))])}const EI=Za(Pg,[["render",II],["__scopeId","data-v-a2260a56"]]),Q3="",w3="",yI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${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(E=>{const j=`<p>${E}</p>`;N=N+j}),N=N+"</div>"):N=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,s=(d==null?void 0:d.offsetHeight)||0;if(D<=s){let E=`<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>