@idmui/extend 1.4.2 → 1.4.3

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(Nt,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):(Nt=typeof globalThis<"u"?globalThis:Nt||self,t(Nt["idmui-extend"]={},Nt.Vue,Nt["@wangeditor/editor-for-vue"],Nt["@idmui/basic"],Nt.moment,Nt.echarts,Nt["@idm-plugin/geo"],Nt.axios,Nt.MdEditorV3))})(this,function(Nt,t,fi,Ha,pt,Ud,q,Ui,Si){"use strict";function fd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,r.get?r:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const ki=fd(Ud),ok="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[r,n]of e)l[r]=n;return l},Sd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cd={class:"editor-box"};function bd(o,e,l,r,n,s){const M=t.resolveComponent("Toolbar"),c=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cd,[t.withDirectives(t.createVNode(M,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(c,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const rl=Ve(Sd,[["render",bd],["__scopeId","data-v-80104052"]]),Od={install(o){o.component("IdmEditor",rl)}},nk="";/*! Element Plus Icons Vue v2.3.2 */var hd=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"})]))}}),Yd=hd,Qd=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"})]))}}),wd=Qd;const ik="",Rd={name:"PlanReport",components:{Editor:rl,IdmBrand:Ha.IdmBrand,IdmLoading:Ha.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`${pt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,r){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${pt(o).utcOffset(r??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,r,n,s,M;if(e===0)return"-";{const c=pt((n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.eta).diff(pt((M=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:M.speed.eta),"h",!0);return Math.round(c*100)/100}}},computeCostDiff(){return function(o,e){var l,r,n,s,M,c,N;if(e===0)return"-";{const V=Number((s=(n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((N=(c=(M=o==null?void 0:o.speeds)==null?void 0:M[0])==null?void 0:c.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o){const{label:e,v0:l,argv:r,sample:n}=o,s=n==null?void 0:n.wps,M=[];for(let c=0;c<(s==null?void 0:s.length);c++){const N=s[c],V=s[c-1];V&&(N.avgBearing=V.bearing),c===0&&(N.label=`${e}: ${l}`),M.push(N),N.suspend&&(r!=null&&r.useRouteParam)&&M.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`}),N.velocity&&(r!=null&&r.useRouteParam)&&(N.label=`Spd: ${N.velocity}`)}return M}},computeDegree(){return function(o,e,l){e=e%360;for(let r=0;r<17;r++)if(r*22.5+e+11.25>=360){let n=(16-r)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,M,c,N;const l=(N=(c=(M=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:M.speed)==null?void 0:c.sample)==null?void 0:N.hours,r=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(pt(n==null?void 0:n.eta).diff(pt(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,r;let e=0;return(r=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||r.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)?"-":q.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>q.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>q.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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,r,n,s,M,c,N,V,a,E,k,z,T,x,U,y,p,j;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((c=(M=this.weatherPrinciple)==null?void 0:M.dangerous)==null?void 0:c.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((y=(U=o.meteo)==null?void 0:U.wind)==null?void 0:y.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,r,n,s,M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.sigWv&&((M=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:M.height)>=((N=(c=this.weatherPrinciple)==null?void 0:c.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(E=o.meteo)==null?void 0:E.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(T=this.weatherPrinciple)==null?void 0:T.severe)==null?void 0:x.sigWv)?e="bg-severe":(y=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&y.sigWv&&((f=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:f.height)>=((w=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:w.sigWv)&&(e="bg-heavy"),e}},isArctic(){var o,e,l,r;return(r=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:r.isArctic}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=ki.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,p,j,f,g,w,R;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(w=(g=(f=(j=(p=(y=this.plan)==null?void 0:y.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:f.sample)==null?void 0:g.hours)==null||w.forEach(S=>{var P,W,L,_,J,H,X,$,B,et;const Q=S.meteo;if(Q){const at=pt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(at),r=Math.ceil(((W=(P=Q.wave)==null?void 0:P.sig)==null?void 0:W.height)>r?(_=(L=Q.wave)==null?void 0:L.sig)==null?void 0:_.height:r),e.push([at,(J=Q.wind)==null?void 0:J.kts,(X=(H=Q.wave)==null?void 0:H.sig)==null?void 0:X.height,($=Q.wind)==null?void 0:$.direction,(B=Q.wind)==null?void 0:B.degree,(et=Q.wind)==null?void 0:et.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),s=Math.max(...e.map(S=>S[l.windSpeed])),M=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(s/5/5)*5,a=Math.ceil(r/5/.5)*.5,E=Math.ceil((c-M)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=M+5*E,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:T,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:M,max:x,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}]};(R=this.echart)==null||R.setOption(U)}}},Bd={class:"orm-plan-report"},Fd={key:0,class:"loading-block"},Gd={class:"info-block"},Pd={class:"col"},Wd={class:"label-block"},Ld={class:"text"},Zd={class:"label-block"},_d={class:"text"},Jd={key:0},Hd={class:"label-block"},Xd={class:"text"},Kd={class:"col"},qd={class:"label-block"},$d={key:0},ud={key:1},vd={style:{"margin-left":"16px"}},tc={class:"label-block"},ec={key:0},ac={key:1},lc={style:{"margin-left":"16px"}},oc={class:"label-block"},nc={class:"text"},ic={class:"section chart-section"},sc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dc={style:{"margin-right":"8px"}},cc=["src"],rc=["src"],Nc={key:1,class:"empty"},mc={class:"section comparison-section"},Mc={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dc={key:0},gc=["rowspan"],Ic={key:0},Ec={key:1},yc={rowspan:"2"},Ac={rowspan:"2"},Tc={key:0},Vc={key:1},xc={rowspan:"1"},pc={key:0},zc={rowspan:"2"},jc={rowspan:"2"},kc={rowspan:"2"},Uc={key:0},fc={key:0},Sc=["rowspan"],Cc={key:0},bc={rowspan:"1"},Oc={key:0},hc={key:0},Yc={key:1},Qc={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wc={key:0},Rc={key:0,class:"section waypoint-section"},Bc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fc={class:"bg-block"},Gc={class:"block-title"},Pc={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wc=["onClick"],Lc={class:"advisory bg-blue-light-2"},Zc=["innerHTML"],_c={class:"major-waypoint"},Jc={class:"major-header bg-blue-light-2"},Hc={key:0,class:"cell-item flex"},Xc={key:1,class:"cell-item flex"},Kc={class:"major-body"},qc={class:"cell-item flex",style:{flex:"2"}},$c={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},vc={key:0,style:{"margin-left":"3px"}},tr={class:"cell-item flex",style:{flex:"2"}},er={key:0,style:{"margin-left":"4px","font-weight":"600"}},ar={key:1,style:{"margin-left":"4px","font-weight":"600"}},lr={key:0,class:"cell-item flex offset"},or={key:1,class:"cell-item flex nbsp"},nr={key:2,class:"cell-item flex offset"},ir={key:3,class:"cell-item flex nbsp"},sr={key:0,class:"cell-item flex offset"},dr={key:1,class:"cell-item flex nbsp"},cr={key:0,class:"cell-item flex offset"},rr={key:1,class:"cell-item flex nbsp"},Nr={key:6,class:"cell-item flex offset"},mr={key:7,class:"cell-item flex nbsp"},Mr={class:"section forecast-section"},Dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},gr={class:"bg-block"},Ir={class:"block-title"},Er={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},yr=["onClick"],Ar={class:"echart-block",style:{"page-break-inside":"avoid"}},Tr={ref:"echart",class:"echart"},Vr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},xr={style:{"page-break-inside":"avoid"}},pr={class:"orm-report-table",style:{"font-size":"12px"}},zr=["colspan"],jr={key:0,colspan:"2"},kr={key:0},Ur={key:1},fr={key:2},Sr={class:"flex-center"},Cr={key:0,class:"degree-box"},br={key:1},Or={key:0},hr={key:0,class:"degree-box"},Yr={key:1},Qr={class:""},wr={key:0,class:"degree-box"},Rr={key:1},Br={key:0,class:"degree-box"},Fr={key:1},Gr={key:1},Pr={key:2};function Wr(o,e,l,r,n,s){var a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl;const M=t.resolveComponent("IdmBrand"),c=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bd,[t.createVNode(M,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(c,{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",Gd,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ld,t.toDisplayString((z=(k=(E=l.plan)==null?void 0:E.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zd,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_d,[t.createTextVNode(t.toDisplayString((U=(x=(T=l.plan)==null?void 0:T.voyage)==null?void 0:x.vessel)==null?void 0:U.name)+" ",1),(f=(j=(p=(y=l.plan)==null?void 0:y.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Jd,"("+t.toDisplayString((S=(R=(w=(g=l.plan)==null?void 0:g.voyage)==null?void 0:w.vessel)==null?void 0:R.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xd,t.toDisplayString(((P=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:P.voyNum)||((L=(W=l.plan)==null?void 0:W.voyage)==null?void 0:L.number)),1)])]),t.createElementVNode("div",Kd,[t.createElementVNode("div",qd,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(H=(J=(_=l.plan)==null?void 0:_.leg)==null?void 0:J.departure)!=null&&H.name?(t.openBlock(),t.createElementBlock("span",$d,t.toDisplayString((B=($=(X=l.plan)==null?void 0:X.leg)==null?void 0:$.departure)==null?void 0:B.name),1)):(t.openBlock(),t.createElementBlock("span",ud,t.toDisplayString(s.computePosition((at=(et=l.plan)==null?void 0:et.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",vd,t.toDisplayString(s.computeUTCTime(((gt=(Dt=(Mt=l.plan)==null?void 0:Mt.leg)==null?void 0:Dt.departure)==null?void 0:gt.atd)||((lt=(D=(It=l.plan)==null?void 0:It.leg)==null?void 0:D.departure)==null?void 0:lt.etd)||((v=(u=(A=(ot=l.plan)==null?void 0:ot.speeds)==null?void 0:A[n.speedIndex])==null?void 0:u.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tc,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(yt=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&yt.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((Vt=(Tt=(At=l.plan)==null?void 0:At.leg)==null?void 0:Tt.destination)==null?void 0:Vt.name),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(s.computePosition((Ct=(xt=l.plan)==null?void 0:xt.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",lc,t.toDisplayString(s.computeUTCTime(((bt=(I=(Yt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Yt[n.speedIndex])==null?void 0:I.speed)==null?void 0:bt.ata)||((wt=(Qt=(jt=(zt=l.plan)==null?void 0:zt.speeds)==null?void 0:jt[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",oc,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nc,t.toDisplayString((Bt=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.loadCondition),1)])])]),t.createElementVNode("div",ic,[t.createElementVNode("div",sc,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dc,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Ft=l.plan)==null?void 0:Ft.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,cc)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,rc)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mc,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Dc,[...e[14]||(e[14]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gc),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Ic,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",Ec,[...e[24]||(e[24]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ot},[t.createElementVNode("tr",null,[t.createElementVNode("td",yc,t.toDisplayString(Ot+1),1),t.createElementVNode("td",Ac,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tc,t.toDisplayString(`CP ${((ye=(ge=m.speed)==null?void 0:ge.cpCopy)==null?void 0:ye.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vc,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",xc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",pc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",zc,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",jc,t.toDisplayString(s.roundPrecision((ca=m.speed)==null?void 0:ca.totalFoCons,3)),1),t.createElementVNode("td",kc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Uc," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",fc,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,Ot)),9,Sc),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Cc,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Sa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Sa.cps[0].fo)+" / "+t.toDisplayString((ba=(Ca=m.speed)==null?void 0:Ca.extend)==null?void 0:ba.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((ha=(Oa=m.speed)==null?void 0:Oa.extend)==null?void 0:ha.cps[0].dgo)+" / "+t.toDisplayString((Qa=(Ya=m.speed)==null?void 0:Ya.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",bc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Oc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",hc,t.toDisplayString(s.roundPrecision(((La=(Wa=m==null?void 0:m.speed)==null?void 0:Wa.cost)==null?void 0:La.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((_a=(Za=m==null?void 0:m.speed)==null?void 0:Za.cost)==null?void 0:_a.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString(s.computeCostDiff(l.plan,Ot)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((d=m.speed)==null?void 0:d.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((C=m.speed)==null?void 0:C.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((b=m.speed)==null?void 0:b.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",wc,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((rt=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:rt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=s.roundPrecision((Gt=(tt=l.plan)==null?void 0:tt.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:ce.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),(Ne=(re=l.plan)==null?void 0:re.voyage)!=null&&Ne.showWpts?(t.openBlock(),t.createElementBlock("div",Rc,[t.createElementVNode("div",Bc,[t.createElementVNode("div",Fc,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+t.toDisplayString((mt=(De=(Me=(me=l.plan.speeds)==null?void 0:me[n.speedIndex])==null?void 0:Me.speed)==null?void 0:De.lane)==null?void 0:mt.name),1)]),((pe=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:pe.length)>1?(t.openBlock(),t.createElementBlock("div",Pc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ze=l.plan)==null?void 0:ze.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Wc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lc,[n.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,Zc))]),t.createElementVNode("div",_c,[t.createElementVNode("div",Jc,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2;" data-v-b37acdc0>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-b37acdc0>Time</div><div class="cell-item flex" data-v-b37acdc0>Nav</div><div class="cell-item flex" data-v-b37acdc0>Dist <span class="text-units" data-v-b37acdc0>(nm)</span></div>',4)),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hc,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(fe=(Ue=l.plan)==null?void 0:Ue.voyage)!=null&&fe.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xc,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",Kc,[(Ce=(Se=l.plan)==null?void 0:Se.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((he=(Oe=(be=l.plan)==null?void 0:be.speeds)==null?void 0:Oe[n.speedIndex])==null?void 0:he.speed),(m,Ot)=>{var se,de,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:"cell-row"},[t.createElementVNode("div",qc,[m.isResume?(t.openBlock(),t.createElementBlock("div",$c,"Resume")):(t.openBlock(),t.createElementBlock("div",uc,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vc,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tr,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",er,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",ar,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),Ot?(t.openBlock(),t.createElementBlock("div",lr,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",or)),Ot?(t.openBlock(),t.createElementBlock("div",nr,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ir)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ot?(t.openBlock(),t.createElementBlock("div",sr,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",dr))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ot?(t.openBlock(),t.createElementBlock("div",cr,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",rr))],64)):t.createCommentVNode("",!0),Ot?(t.openBlock(),t.createElementBlock("div",Nr,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mr))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mr,[(Qe=(Ye=l.plan)==null?void 0:Ye.speeds)!=null&&Qe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",Dr,[t.createElementVNode("div",gr,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",Ir," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Fe=(Be=(Re=(we=l.plan)==null?void 0:we.speeds)==null?void 0:Re[n.speedIndex])==null?void 0:Be.speed)==null?void 0:Fe.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",Er,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,yr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ar,[t.createElementVNode("div",Tr,null,512)]),t.createElementVNode("div",Vr," * "+t.toDisplayString(s.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",xr,[e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}}," Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher. ",-1)),t.createElementVNode("table",pr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,zr),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),e[57]||(e[57]=t.createElementVNode("th",{rowspan:"2",colspan:"1"},[t.createTextVNode("Vis."),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",jr,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[60]||(e[60]=t.createElementVNode("th",null,"Dir",-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(ol=(ll=l.plan)==null?void 0:ll.voyage)!=null&&ol.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kr,"BF")):t.createCommentVNode("",!0),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[65]||(e[65]=t.createElementVNode("th",null,"Dir",-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,"Dir",-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Fac. "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",Ur,[...e[58]||(e[58]=[t.createTextVNode("sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",fr,[...e[59]||(e[59]=[t.createTextVNode("sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((cl=(dl=(sl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:sl.speed)==null?void 0:dl.sample)==null?void 0:cl.hours,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b,O,h,Y;return t.openBlock(),t.createElementBlock("tr",{key:Ot},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",Sr,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),t.createElementVNode("td",null,[((de=(se=m.meteo)==null?void 0:se.wind)==null?void 0:de.kts)!==null&&((ye=(ge=m.meteo)==null?void 0:ge.wind)!=null&&ye.direction)?(t.openBlock(),t.createElementBlock("div",Cr,[t.createElementVNode("span",null,t.toDisplayString((Pe=(Ge=m.meteo)==null?void 0:Ge.wind)==null?void 0:Pe.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Le=(We=m.meteo)==null?void 0:We.wind)==null?void 0:Le.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",br,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((_e=(Ze=m.meteo)==null?void 0:Ze.wind)==null?void 0:_e.kts,1)),3),(He=(Je=l.plan)==null?void 0:Je.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",Or,t.toDisplayString((Ke=(Xe=m.meteo)==null?void 0:Xe.wind)==null?void 0:Ke.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ue=($e=(qe=m.meteo)==null?void 0:qe.wave)==null?void 0:$e.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",null,[((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.swell)==null?void 0:ea.height)!==null&&((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)!=null&&oa.direction)?(t.openBlock(),t.createElementBlock("div",hr,[t.createElementVNode("span",null,t.toDisplayString((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)==null?void 0:sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(ra=(ca=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ca.swell)==null?void 0:ra.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Yr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.period,1)),1),t.createElementVNode("td",Qr,[((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.sig)==null?void 0:Aa.height)!==null&&((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)!=null&&xa.direction)?(t.openBlock(),t.createElementBlock("div",wr,[t.createElementVNode("span",null,t.toDisplayString((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)==null?void 0:ja.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Rr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.period,1)),1),t.createElementVNode("td",null,[((wa=(Qa=m.meteo)==null?void 0:Qa.current)==null?void 0:wa.kts)!==null&&((Ba=(Ra=m.meteo)==null?void 0:Ra.current)!=null&&Ba.direction)?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("span",null,t.toDisplayString((Ga=(Fa=m.meteo)==null?void 0:Fa.current)==null?void 0:Ga.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(Wa=(Pa=m.meteo)==null?void 0:Pa.current)==null?void 0:Wa.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Fr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Za=(La=m.meteo)==null?void 0:La.current)==null?void 0:Za.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((_a=m.meteo)==null?void 0:_a.visibility,1)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",Gr,t.toDisplayString(s.roundPrecision((C=(d=m.meteo)==null?void 0:d.ice)==null?void 0:C.sit,2)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",Pr,t.toDisplayString(((O=(b=m.meteo)==null?void 0:b.ice)==null?void 0:O.sic)>=0?s.roundPrecision(((Y=(h=m.meteo)==null?void 0:h.ice)==null?void 0:Y.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const Ci=Ve(Rd,[["render",Wr],["__scopeId","data-v-b37acdc0"]]),Lr={install(o){o.component("PlanReport",Ci)}},sk="",Zr={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`${pt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},_r={class:"cover-box"},Jr={class:"cover-content"},Hr={class:"cover-title"},Xr={class:"cover-info"},Kr={class:"info-item"},qr={class:"info-item"},$r={class:"info-item"},ur={style:{"font-weight":"600"}},vr={class:"info-item"},tN={style:{"font-weight":"600"}},eN={class:"info-item"},aN={class:"info-item"},lN={class:"info-item"},oN={class:"info-item"},nN={class:"info-item"},iN={class:"text"};function sN(o,e,l,r,n,s){var M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w,R;return t.openBlock(),t.createElementBlock("div",_r,[t.createElementVNode("div",Jr,[t.createElementVNode("div",Hr,t.toDisplayString(l.name),1),t.createElementVNode("div",Xr,[t.createElementVNode("div",Kr,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((c=(M=l.report)==null?void 0:M.voyage)==null?void 0:c.number),1)]),t.createElementVNode("div",qr,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",$r,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",ur,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",vr,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",tN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",eN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(a=l.report)==null?void 0:a.departure)==null?void 0:E.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",aN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",lN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((y=(U=l.report)==null?void 0:U.arrival)==null?void 0:y.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",oN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",iN,t.toDisplayString((R=(w=l.report)==null?void 0:w.voyage)==null?void 0:R.loadCondition),1)])])])])}const dN=Ve(Zr,[["render",sN],["__scopeId","data-v-c57d4b58"]]),dk="",cN={name:"OrmVoyageSummary",components:{Editor:rl},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 pt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=pt(o).diff(pt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(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 q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.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 q.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,r)=>{var M,c;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:pt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+pt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});const s=(c=(M=l==null?void 0:l.inventory)==null?void 0:M.sample)==null?void 0:c.hours.filter(N=>N.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},rN={class:"report-summary"},NN={class:"section weather-section"},mN={class:"definition bg-blue-light-2"},MN={style:{"line-height":"1.5"}},DN={class:"section summary-section"},gN={class:"phase-box"},IN={class:"phase-index"},EN={class:"phase-position"},yN={class:"phase-position"},AN={class:"phase-cp"},TN={class:"orm-report-table"},VN={key:0},xN={class:"phase-conclusion"},pN={class:"item-conclusion bg-blue-light-2"},zN={class:"value align-left"},jN={key:0,class:"text-secondary align-right"},kN={key:0},UN={key:1},fN={key:2},SN={key:1,class:"text-secondary"},CN={key:2,class:"value"},bN={key:0},ON={class:"gain"},hN={key:1},YN={class:"lost"},QN={key:2},wN={class:"item-conclusion bg-blue-light-2"},RN={class:"value align-left"},BN={key:0,class:"text-secondary"},FN={key:0},GN={key:1},PN={key:2},WN={key:1,class:"text-secondary"},LN={key:2,class:"value"},ZN={key:0},_N={class:"gain"},JN={key:1},HN={class:"lost"},XN={key:2},KN={class:"item-conclusion bg-blue-light-2"},qN={class:"value align-left"},$N={key:0,class:"text-secondary"},uN={key:0},vN={key:1},tm={key:2},em={key:1,class:"text-secondary"},am={key:2,class:"value"},lm={key:0},om={class:"gain"},nm={key:1},im={class:"lost"},sm={key:2},dm={key:0,class:"exclusion-block"},cm={style:{margin:"8px 0"}},rm={class:"orm-report-table"},Nm={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},mm={class:"sub-title"},Mm=["innerHTML"],Dm={class:"section segment-section"},gm={class:"segment-summary"},Im={class:"segment-index text-left"},Em={class:"segment-position"},ym={class:"segment-position"},Am={class:"orm-report-table"},Tm={class:"good-wx"},Vm={class:"good-wx"},xm={class:"good-wx"},pm={class:"good-wx"},zm={class:"good-wx"},jm={class:"good-wx"},km={class:"good-wx"},Um={class:"good-wx"},fm={class:"good-wx"},Sm={class:"good-wx"},Cm={class:"good-wx"},bm={class:"good-wx"},Om={class:"good-wx"},hm={class:"good-wx"},Ym={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Qm={key:0},wm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Rm={key:2,class:"segment-speed"},Bm={class:"row"},Fm={class:"speed-right row"},Gm={class:"speed"},Pm={key:1,class:"speed"},Wm={key:0,class:"speed"},Lm={class:"speed"},Zm={class:"speed"},_m={class:"speed"},Jm={key:0,class:"under"},Hm={key:1,class:"over"},Xm={class:"row"},Km={class:"speed-right formula flex-space"},qm={key:0},$m={key:3,class:"segment-speed"},um={class:"row"},vm={class:"speed-right row"},tM={class:"speed"},eM={class:"speed"},aM={key:0,class:"under"},lM={key:1,class:"over"},oM={class:"row"},nM={class:"speed-right formula row"},iM={class:"segment-formula"},sM={class:"sub-title"},dM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},cM={class:"formula-block"},rM={class:"formula-item flex-evenly bg-blue-light"},NM={class:"formula-right flex-evenly"},mM={class:"fraction",style:{width:"240px"}},MM={class:"formula-item flex-center bg-blue-light"},DM={class:"formula-left flex-space"},gM={class:"formula-right flex-evenly"},IM={class:"fraction",style:{width:"240px"}},EM={class:"formula-item flex-center bg-blue-light"},yM={class:"formula-left flex-space"},AM={class:"formula-right flex-evenly"},TM={class:"fraction",style:{width:"240px"}},VM={class:"formula-desc"},xM={class:"flex-end"},pM={class:"flex-end"},zM={class:"flex-end"},jM={key:0,class:"formula-block"},kM={class:"formula-item flex-evenly bg-blue-light"},UM={class:"formula-right flex-evenly"},fM={class:"fraction",style:{width:"200px"}},SM={class:"formula-item flex-center bg-blue-light"},CM={class:"formula-left flex-space"},bM={class:"formula-right flex-evenly"},OM={class:"fraction",style:{width:"200px"}},hM={class:"formula-item flex-center bg-blue-light"},YM={class:"formula-left flex-space"},QM={class:"formula-right flex-evenly"},wM={class:"fraction",style:{width:"200px"}},RM={class:"formula-item formula-conclusion bg-blue-light"},BM={key:0,class:"flex-evenly",style:{width:"500px"}},FM={key:1,class:"flex-evenly",style:{width:"500px"}},GM={class:"flex-center"},PM={key:1,class:"formula-conclusion bg-blue-light"},WM={class:"segment-formula"},LM={class:"sub-title"},ZM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},_M={class:"formula-block"},JM={class:"formula-item flex-evenly bg-blue-light"},HM={class:"formula-right flex-evenly"},XM={class:"fraction",style:{width:"240px"}},KM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},qM={key:0,class:"flex-end text-tips"},$M={class:"formula-item flex-center bg-blue-light"},uM={class:"formula-right flex-evenly"},vM={class:"fraction",style:{width:"200px"}},tD={class:"formula-item flex-center bg-blue-light"},eD={class:"formula-right flex-evenly"},aD={class:"fraction",style:{width:"200px"}},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-right flex-evenly"},nD={class:"fraction",style:{width:"300px"}},iD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},cD={class:"sub-title"},rD={key:0,class:"formula-block"},ND={key:0,class:"formula-item flex-evenly bg-blue-light"},mD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"60px"}},DD={class:"fraction",style:{width:"60px"}},gD={class:"formula-item flex-evenly bg-blue-light"},ID={class:"formula-right flex-evenly"},ED={class:"fraction",style:{width:"150px"}},yD={class:"fraction",style:{width:"150px"}},AD={key:0},TD={class:"formula-item flex-evenly bg-blue-light"},VD={class:"formula-right flex-evenly"},xD={class:"fraction",style:{width:"150px"}},pD={class:"fraction",style:{width:"150px"}},zD={class:"formula-item flex-evenly bg-blue-light"},jD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},UD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item formula-conclusion bg-blue-light"},SD={class:"flex-evenly",style:{width:"500px"}},CD={key:0,class:"flex-evenly"},bD={class:"fraction"},OD={class:"flex-evenly",style:{width:"700px"}},hD={key:0,class:"flex-evenly",style:{width:"500px"}},YD={class:"fraction",style:{width:"140px"}},QD={key:1,class:"formula-item formula-conclusion bg-blue-light"},wD={class:"header-block"},RD={class:"bg-block"},BD={class:"block-title"},FD={key:0,class:"formula-block"},GD={class:"formula-item flex-evenly bg-blue-light"},PD={class:"formula-right flex-evenly"},WD={class:"fraction",style:{width:"150px"}},LD={class:"fraction",style:{width:"150px"}},ZD={key:0},_D={class:"formula-item flex-evenly bg-blue-light"},JD={class:"formula-right flex-evenly"},HD={class:"fraction",style:{width:"150px"}},XD={class:"fraction",style:{width:"150px"}},KD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},vD={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},tg={key:0,class:"flex-evenly",style:{width:"500px"}},eg={key:1,class:"flex-evenly",style:{width:"700px"}},ag={key:1,class:"formula-item formula-conclusion bg-blue-light"};function lg(o,e,l,r,n,s){var c,N,V;const M=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",rN,[t.createElementVNode("div",NN,[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",mN,[t.createElementVNode("div",MN,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",DN,[e[30]||(e[30]=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((c=l.report)==null?void 0:c.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(I,bt)=>{var zt,jt,Qt,wt,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"phase-row text-secondary"},[t.createElementVNode("div",EN,[t.createElementVNode("span",null,t.toDisplayString(((zt=I==null?void 0:I.departure)==null?void 0:zt.portName)||((jt=I.departure)==null?void 0:jt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Qt=I==null?void 0:I.departure)==null?void 0:Qt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",yN,[t.createElementVNode("span",null,t.toDisplayString(((wt=I==null?void 0:I.arrival)==null?void 0:wt.portName)||((Rt=I.arrival)==null?void 0:Rt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Bt=I==null?void 0:I.arrival)==null?void 0:Bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",AN,[t.createElementVNode("table",TN,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((T=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:T.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((f=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:f.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((w=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:w.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(R=l.report)==null?void 0:R.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",VN,t.toDisplayString((P=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:P.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",xN,[t.createElementVNode("div",pN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",zN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[12]||(e[12]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",jN,[((W=a==null?void 0:a.timeConclusion)==null?void 0:W.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",kN,"Time Gained")):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",UN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",SN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",CN,[((_=a==null?void 0:a.timeConclusion)==null?void 0:_.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",bN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",ON,t.toDisplayString((J=a==null?void 0:a.timeConclusion)==null?void 0:J.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((H=a==null?void 0:a.timeConclusion)==null?void 0:H.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",hN,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",YN,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",QN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wN,[e[23]||(e[23]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",RN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[18]||(e[18]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",BN,[((B=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:B.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",FN,"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",GN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",PN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",WN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",LN,[((Dt=(Mt=a==null?void 0:a.fuelConclusion)==null?void 0:Mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",ZN,[e[19]||(e[19]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",_N,t.toDisplayString((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.saving),1),e[20]||(e[20]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((lt=(D=a==null?void 0:a.fuelConclusion)==null?void 0:D.fo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",JN,[e[21]||(e[21]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",HN,t.toDisplayString((A=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:A.overCons),1),e[22]||(e[22]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",XN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",KN,[e[29]||(e[29]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",qN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[24]||(e[24]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",$N,[((v=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",uN,"DO/GO Saving")):((Et=(G=a==null?void 0:a.fuelConclusion)==null?void 0:G.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vN,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",tm,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",em,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",am,[((At=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lm,[e[25]||(e[25]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",om,t.toDisplayString((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.dgo)==null?void 0:Vt.saving),1),e[26]||(e[26]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Ct=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.dgo)==null?void 0:Ct.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",nm,[e[27]||(e[27]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",im,t.toDisplayString((Yt=(ht=a==null?void 0:a.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.overCons),1),e[28]||(e[28]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",sm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[31]||(e[31]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[35]||(e[35]=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[33]||(e[33]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[34]||(e[34]=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",cm,[t.createElementVNode("table",rm,[e[32]||(e[32]=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",Nm,[t.createElementVNode("div",mm," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((V=l.report)==null?void 0:V.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(M,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,Mm))],2)],2),t.createElementVNode("div",Dm,[e[237]||(e[237]=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 k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl,m,Ot,se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b,O,h,Y,F,Z,K,nt,it,st,dt,ct,kt,Ut,ft,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Ja,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,fl,Sl,Cl,bl,Ol,hl,Yl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,co,ro,No,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,fo,So,Co,bo,Oo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,cn,rn,Nn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,fn,Sn,Cn,bn,On,hn,Yn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ci,ri,Ni,mi,Mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",gm,[t.createElementVNode("div",Im,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(xe,Ul)=>{var Nl,kl,Ai,Ti,Vi,xi;return t.openBlock(),t.createElementBlock("div",{key:Ul,class:"segment-row text-secondary"},[t.createElementVNode("div",Em,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((kl=xe.departure)==null?void 0:kl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Ai=xe==null?void 0:xe.departure)==null?void 0:Ai.utcTime))+")",1)]),e[36]||(e[36]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",ym,[t.createElementVNode("span",null,t.toDisplayString(((Ti=xe==null?void 0:xe.arrival)==null?void 0:Ti.portName)||((Vi=xe.arrival)==null?void 0:Vi.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((xi=xe==null?void 0:xe.arrival)==null?void 0:xi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",Am,[e[44]||(e[44]=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[37]||(e[37]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",Tm,t.toDisplayString((T=(z=a==null?void 0:a.goodWx)==null?void 0:z.outEca)==null?void 0:T.distance),1),t.createElementVNode("td",Vm,t.toDisplayString((U=(x=a==null?void 0:a.goodWx)==null?void 0:x.inEca)==null?void 0:U.distance),1),t.createElementVNode("td",null,t.toDisplayString((p=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:p.distance),1),t.createElementVNode("td",null,t.toDisplayString((f=(j=a==null?void 0:a.allWx)==null?void 0:j.inEca)==null?void 0:f.distance),1)]),t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",xm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:w.time),1),t.createElementVNode("td",pm,t.toDisplayString((S=(R=a==null?void 0:a.goodWx)==null?void 0:R.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((P=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:P.time),1),t.createElementVNode("td",null,t.toDisplayString((L=(W=a==null?void 0:a.allWx)==null?void 0:W.inEca)==null?void 0:L.time),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",zm,t.toDisplayString(((J=(_=a==null?void 0:a.goodWx)==null?void 0:_.outEca)==null?void 0:J.avgSpd)||"--"),1),t.createElementVNode("td",jm,t.toDisplayString(((X=(H=a==null?void 0:a.goodWx)==null?void 0:H.inEca)==null?void 0:X.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((B=($=a==null?void 0:a.allWx)==null?void 0:$.outEca)==null?void 0:B.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=a==null?void 0:a.allWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",km,t.toDisplayString(((Dt=(Mt=a==null?void 0:a.goodWx)==null?void 0:Mt.outEca)==null?void 0:Dt.sumFoCons)||"--"),1),t.createElementVNode("td",Um,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.inEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(D=a==null?void 0:a.allWx)==null?void 0:D.outEca)==null?void 0:lt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(ot=a==null?void 0:a.allWx)==null?void 0:ot.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=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",fm,t.toDisplayString(((v=(u=a==null?void 0:a.goodWx)==null?void 0:u.outEca)==null?void 0:v.avgFoCons)||"--"),1),t.createElementVNode("td",Sm,t.toDisplayString(((Et=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=a==null?void 0:a.allWx)==null?void 0:yt.outEca)==null?void 0:At.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.allWx)==null?void 0:Tt.inEca)==null?void 0:Vt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Cm,t.toDisplayString(((Ct=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",bm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.inEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=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",Om,t.toDisplayString(((wt=(Qt=a==null?void 0:a.goodWx)==null?void 0:Qt.outEca)==null?void 0:wt.avgDgoCons)||"--"),1),t.createElementVNode("td",hm,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",Ym,[e[46]||(e[46]=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],(xe,Ul)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ul},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,kl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:kl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Qm,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[45]||(e[45]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(Nl.utc,s.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[E])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",wm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",Rm,[t.createElementVNode("div",Bm,[e[56]||(e[56]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Fm,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ce=(Gt=l.report)==null?void 0:Gt.weather)!=null&&ce.disableWxFactor&&((Ne=(re=l.report)==null?void 0:re.weather)!=null&&Ne.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Wm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(De=(Me=l.report)==null?void 0:Me.weather)!=null&&De.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((mt=a==null?void 0:a.goodWx)==null?void 0:mt.avgSpd),1),e[49]||(e[49]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ee=a==null?void 0:a.goodWx)==null?void 0:Ee.avgCf)>0?(pe=a==null?void 0:a.goodWx)==null?void 0:pe.avgCf:`(${(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf})`),1),e[50]||(e[50]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((je=a==null?void 0:a.goodWx)==null?void 0:je.pfmSpd)+" (kts)",1)],64)):(Ue=(ke=l.report)==null?void 0:ke.weather)!=null&&Ue.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[51]||(e[51]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgWf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf})`),1),e[52]||(e[52]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((he=a==null?void 0:a.goodWx)==null?void 0:he.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgWf)>0?(Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf:`(${(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf})`),1),(Be=(Re=l.report)==null?void 0:Re.weather)!=null&&Be.favorableCur&&((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[53]||(e[53]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgCf)>0?(Ka=a==null?void 0:a.goodWx)==null?void 0:Ka.avgCf:`(${(qa=a==null?void 0:a.goodWx)==null?void 0:qa.avgCf})`),1)],64)),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_m,t.toDisplayString(($a=a==null?void 0:a.goodWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Pm,t.toDisplayString((tt=a==null?void 0:a.goodWx)==null?void 0:tt.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[47]||(e[47]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[48]||(e[48]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Gm,t.toDisplayString((rt=a==null?void 0:a.goodWx)==null?void 0:rt.pfmSpd)+" (kts)",1)],64))],64)),(va=(ua=l.report)==null?void 0:ua.voyage)!=null&&va.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((tl=a==null?void 0:a.goodWx)==null?void 0:tl.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Jm,"(Under-performance)")):t.createCommentVNode("",!0),((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Hm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Xm,[e[73]||(e[73]=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",Km,[(ll=(al=l.report)==null?void 0:al.weather)!=null&&ll.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(dl=(sl=l.report)==null?void 0:sl.weather)!=null&&dl.disableWxFactor&&((m=(cl=l.report)==null?void 0:cl.weather)!=null&&m.disableCFactor)?(t.openBlock(),t.createElementBlock("label",qm,"GW Average Speed")):(se=(Ot=l.report)==null?void 0:Ot.weather)!=null&&se.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[62]||(e[62]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[63]||(e[63]=t.createElementVNode("label",null,"-",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(ge=(de=l.report)==null?void 0:de.weather)!=null&&ge.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[70]||(e[70]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ge=(ye=l.report)==null?void 0:ye.weather)!=null&&Ge.favorableCur&&((Pe=a==null?void 0:a.goodWx)==null?void 0:Pe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[68]||(e[68]=t.createElementVNode("label",null,"-",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(nl=(ol=l.report)==null?void 0:ol.weather)!=null&&nl.favorableCur&&((il=a==null?void 0:a.goodWx)==null?void 0:il.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[57]||(e[57]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[58]||(e[58]=t.createElementVNode("label",null,"-",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",$m,[t.createElementVNode("div",um,[e[79]||(e[79]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vm,[(Le=(We=l.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=a==null?void 0:a.allWx)==null?void 0:Ze.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ve=a==null?void 0:a.allWx)==null?void 0:ve.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf)>0?(ea=a==null?void 0:a.allWx)==null?void 0:ea.avgWf:`(${(aa=a==null?void 0:a.allWx)==null?void 0:aa.avgWf})`),1),e[78]||(e[78]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",eM,t.toDisplayString((la=a==null?void 0:a.allWx)==null?void 0:la.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((_e=a==null?void 0:a.allWx)==null?void 0:_e.avgSpd),1),e[74]||(e[74]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Je=a==null?void 0:a.allWx)==null?void 0:Je.avgCf)>0?(He=a==null?void 0:a.allWx)==null?void 0:He.avgCf:`(${(Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgCf})`),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgWf)>0?(qe=a==null?void 0:a.allWx)==null?void 0:qe.avgWf:`(${($e=a==null?void 0:a.allWx)==null?void 0:$e.avgWf})`),1),e[76]||(e[76]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tM,t.toDisplayString((ue=a==null?void 0:a.allWx)==null?void 0:ue.pfmSpd)+" (kts)",1)],64)),(na=(oa=l.report)==null?void 0:oa.voyage)!=null&&na.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ia=a==null?void 0:a.allWx)==null?void 0:ia.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",aM,"(Under-performance)")):t.createCommentVNode("",!0),((sa=a==null?void 0:a.allWx)==null?void 0:sa.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",oM,[e[89]||(e[89]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nM,[(ca=(da=l.report)==null?void 0:da.weather)!=null&&ca.favorableCur&&((ra=a==null?void 0:a.allWx)==null?void 0:ra.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[85]||(e[85]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[80]||(e[80]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[81]||(e[81]=t.createElementVNode("label",null,"-",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"Current Factor",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"-",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",iM,[t.createElementVNode("div",sM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(ma=(Na=l.report)==null?void 0:Na.weather)!=null&&ma.noExtrapolation?(t.openBlock(),t.createElementBlock("span",dM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",cM,[t.createElementVNode("div",rM,[e[93]||(e[93]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",NM,[t.createElementVNode("div",mM,[t.createElementVNode("div",null,t.toDisplayString((Da=(Ma=l.report)==null?void 0:Ma.weather)!=null&&Da.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[90]||(e[90]=t.createElementVNode("div",{class:"line"},null,-1)),e[91]||(e[91]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[92]||(e[92]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",MM,[t.createElementVNode("div",DM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ia=(ga=a==null?void 0:a.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+"kts)",1),e[94]||(e[94]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",gM,[t.createElementVNode("div",IM,[t.createElementVNode("div",null,t.toDisplayString((ya=(Ea=l.report)==null?void 0:Ea.weather)!=null&&ya.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[95]||(e[95]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ta=(Aa=a==null?void 0:a.extend)==null?void 0:Aa.cp)==null?void 0:Ta.speed,"Under"))+"kts",1)]),e[96]||(e[96]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",EM,[t.createElementVNode("div",yM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Over"))+"kts)",1),e[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",AM,[t.createElementVNode("div",TM,[t.createElementVNode("div",null,t.toDisplayString((za=(pa=l.report)==null?void 0:pa.weather)!=null&&za.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ka=(ja=a==null?void 0:a.extend)==null?void 0:ja.cp)==null?void 0:ka.speed,"Over"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(c)",-1))])]),e[100]||(e[100]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:300px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Lost</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(a)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Gained</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(c)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(a)</div></div></div>',1))]),t.createElementVNode("div",VM,[t.createElementVNode("div",xM,[e[101]||(e[101]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:fa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",pM,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",zM,[e[103]||(e[103]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Under"))+" kts) ",1)])]),(Qa=a==null?void 0:a.goodWx)!=null&&Qa.distance?(t.openBlock(),t.createElementBlock("div",jM,[t.createElementVNode("div",kM,[e[107]||(e[107]=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",UM,[t.createElementVNode("div",fM,[t.createElementVNode("div",null,t.toDisplayString((Ra=(wa=l.report)==null?void 0:wa.weather)!=null&&Ra.noExtrapolation?(Ba=a==null?void 0:a.goodWx)==null?void 0:Ba.distance:(Fa=a==null?void 0:a.allWx)==null?void 0:Fa.distance),1),e[104]||(e[104]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ga=a==null?void 0:a.goodWx)==null?void 0:Ga.pfmSpd),1)]),e[105]||(e[105]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=a==null?void 0:a.timeConclusion)==null?void 0:Pa.timeAtPfmSpd)+" (hrs)",1),e[106]||(e[106]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",SM,[t.createElementVNode("div",CM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(La=(Wa=a==null?void 0:a.extend)==null?void 0:Wa.cp)==null?void 0:La.speed,"Under"))+"kts)",1),e[108]||(e[108]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",bM,[t.createElementVNode("div",OM,[t.createElementVNode("div",null,t.toDisplayString((_a=(Za=l.report)==null?void 0:Za.weather)!=null&&_a.noExtrapolation?(d=a==null?void 0:a.goodWx)==null?void 0:d.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[109]||(e[109]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.minusAbtSpd),1)]),e[110]||(e[110]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.timeAtMinusAbtSpd)+" (hrs)",1),e[111]||(e[111]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",hM,[t.createElementVNode("div",YM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[112]||(e[112]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",QM,[t.createElementVNode("div",wM,[t.createElementVNode("div",null,t.toDisplayString((Z=(F=l.report)==null?void 0:F.weather)!=null&&Z.noExtrapolation?(K=a==null?void 0:a.goodWx)==null?void 0:K.distance:(nt=a==null?void 0:a.allWx)==null?void 0:nt.distance),1),e[113]||(e[113]=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[114]||(e[114]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=a==null?void 0:a.timeConclusion)==null?void 0:st.timeAtPlusAbtSpd)+" (hrs)",1),e[115]||(e[115]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",RM,[((dt=a==null?void 0:a.timeConclusion)==null?void 0:dt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",BM,[e[116]||(e[116]=t.createElementVNode("div",null,"Time Lost",-1)),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ct=a==null?void 0:a.timeConclusion)==null?void 0:ct.timeAtPfmSpd),1),e[120]||(e[120]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtMinusAbtSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ut=a==null?void 0:a.timeConclusion)==null?void 0:Ut.timeLost)+" (hrs)",1)])):((ft=a==null?void 0:a.timeConclusion)==null?void 0:ft.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",FM,[e[122]||(e[122]=t.createElementVNode("div",null,"Time Lost",-1)),e[123]||(e[123]=t.createElementVNode("div",null,"=",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd),1),e[126]||(e[126]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",GM,[e[128]||(e[128]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.conclusionStatus)==="Lost"?"lost":((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",PM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",WM,[t.createElementVNode("div",LM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(Te=(Ae=l.report)==null?void 0:Ae.weather)!=null&&Te.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ZM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",_M,[t.createElementVNode("div",JM,[e[134]||(e[134]=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",HM,[t.createElementVNode("div",XM,[t.createElementVNode("div",null,t.toDisplayString((ml=(Ja=l.report)==null?void 0:Ja.weather)!=null&&ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[129]||(e[129]=t.createElementVNode("div",{class:"line"},null,-1)),e[130]||(e[130]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[131]||(e[131]=t.createElementVNode("div",null,"x",-1)),e[132]||(e[132]=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[133]||(e[133]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",KM,[e[135]||(e[135]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(Ml=a.extend)==null?void 0:Ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",qM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",$M,[e[140]||(e[140]=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",uM,[t.createElementVNode("div",vM,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[137]||(e[137]=t.createElementVNode("div",null,"x",-1)),e[138]||(e[138]=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[139]||(e[139]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",tD,[e[145]||(e[145]=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",eD,[t.createElementVNode("div",aD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[141]||(e[141]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[142]||(e[142]=t.createElementVNode("div",null,"x",-1)),e[143]||(e[143]=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[144]||(e[144]=t.createElementVNode("div",null,"(f)",-1))])]),e[152]||(e[152]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:240px;" data-v-5d68a964><label data-v-5d68a964>Fuel Over-consumption</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(d)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(e)</div></div><div class="flex-space" style="width:200px;" data-v-5d68a964><label data-v-5d68a964>Fuel Saving</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(f)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(d)</div></div></div>',1)),((zl=(pl=a.extend)==null?void 0:pl.cp)==null?void 0:zl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",lD,[e[148]||(e[148]=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",oD,[t.createElementVNode("div",nD,[e[146]||(e[146]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[147]||(e[147]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(jl=l.report)==null?void 0:jl.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",iD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",dD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[236]||(e[236]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",cD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",rD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",ND,[e[158]||(e[158]=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",mD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[155]||(e[155]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),e[154]||(e[154]=t.createElementVNode("div",null,"24",-1))]),e[156]||(e[156]=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[157]||(e[157]=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",gD,[e[165]||(e[165]=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",ID,[t.createElementVNode("div",ED,[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[159]||(e[159]=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[162]||(e[162]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",yD,[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",AD,[e[160]||(e[160]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[161]||(e[161]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[163]||(e[163]=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[164]||(e[164]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",TD,[e[172]||(e[172]=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",VD,[t.createElementVNode("div",xD,[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[166]||(e[166]=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[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",pD,[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[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),e[168]||(e[168]=t.createElementVNode("div",null,"24",-1))]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ro=(co=a.fuelConclusion)==null?void 0:co.fo)==null?void 0:ro.maxCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",zD,[e[179]||(e[179]=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",jD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((mo=(No=l.report)==null?void 0:No.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[173]||(e[173]=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[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",UD,[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[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",fD,[((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",SD,[e[180]||(e[180]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[181]||(e[181]=t.createElementVNode("div",null,"=",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[183]||(e[183]=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[184]||(e[184]=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[185]||(e[185]=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)]),(So=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&So.distance?(t.openBlock(),t.createElementBlock("div",CD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1),e[186]||(e[186]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l.report)==null?void 0:Yo.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[189]||(e[189]=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",OD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[193]||(e[193]=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[194]||(e[194]=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[195]||(e[195]=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",hD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.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[196]||(e[196]=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?(sn=a==null?void 0:a.goodWx)==null?void 0:sn.distance:(dn=a==null?void 0:a.allWx)==null?void 0:dn.distance),1)]),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:rn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((mn=(Nn=a==null?void 0:a.fuelConclusion)==null?void 0:Nn.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[200]||(e[200]=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",QD,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",wD,[t.createElementVNode("div",RD,[e[201]||(e[201]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",BD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",FD,[t.createElementVNode("div",GD,[e[208]||(e[208]=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",PD,[t.createElementVNode("div",WD,[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[202]||(e[202]=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[205]||(e[205]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",LD,[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",ZD,[e[203]||(e[203]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Sn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Sn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[204]||(e[204]=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[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:On.entireCons)+" (mt)",1),e[207]||(e[207]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",_D,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[t.createElementVNode("div",null,t.toDisplayString((Yn=(hn=l.report)==null?void 0:hn.weather)!=null&&Yn.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[209]||(e[209]=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[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",XD,[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[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),e[211]||(e[211]=t.createElementVNode("div",null,"24",-1))]),e[213]||(e[213]=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[214]||(e[214]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",KD,[e[222]||(e[222]=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",$D,[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[216]||(e[216]=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[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[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[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",vD,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",tg,[e[223]||(e[223]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[224]||(e[224]=t.createElementVNode("div",null,"=",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[226]||(e[226]=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[227]||(e[227]=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[228]||(e[228]=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",eg,[e[229]||(e[229]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[230]||(e[230]=t.createElementVNode("div",null,"=",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.minCons),1),e[233]||(e[233]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ri=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:ri.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.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[235]||(e[235]=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",ag,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const og=Ve(cN,[["render",lg],["__scopeId","data-v-5d68a964"]]),ck="",ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?q.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,r,n,s,M,c,N,V,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((c=(M=this.report)==null?void 0:M.weather)==null?void 0:c.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},ig={class:"report-inventory"},sg={class:"section summary-section"},dg={class:"summary-block"},cg={class:"orm-report-table inventory-table"},rg={class:"label",rowspan:"4"},Ng={class:"section inventory-section"},mg={class:"orm-report-table inventory-table detail"},Mg=["colspan"],Dg={key:0,class:"label",colspan:"2"},gg={key:0,class:"label",rowspan:"2"},Ig={key:1,class:"label",rowspan:"2"},Eg={key:2,class:"label",rowspan:"2"},yg={key:3,class:"label",colspan:"2"},Ag={key:4,class:"label",rowspan:"2"},Tg={key:5,class:"label",colspan:"2"},Vg={key:6,class:"label",rowspan:"2"},xg={key:7,class:"label",rowspan:"2"},pg={key:8,class:"label",rowspan:"2"},zg={key:0,class:"label"},jg={key:1,class:"label"},kg={key:2,class:"label"},Ug={key:3,class:"label"},fg={class:"summary-tbody"};function Sg(o,e,l,r,n,s){var M;return t.openBlock(),t.createElementBlock("div",ig,[t.createElementVNode("div",sg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",dg,[t.createElementVNode("table",cg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((M=l.report)==null?void 0:M.segments,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",rg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((V=c==null?void 0:c.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=c==null?void 0:c.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=c==null?void 0:c.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=c==null?void 0:c.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=c==null?void 0:c.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=c==null?void 0:c.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=c==null?void 0:c.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=c==null?void 0:c.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((y=c==null?void 0:c.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((p=c==null?void 0:c.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((j=c==null?void 0:c.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((f=c==null?void 0:c.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=c==null?void 0:c.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=c==null?void 0:c.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((R=c==null?void 0:c.badWx)==null?void 0:R.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=c==null?void 0:c.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Q=c==null?void 0:c.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((P=c==null?void 0:c.excluded)==null?void 0:P.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((W=c==null?void 0:c.excluded)==null?void 0:W.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=c==null?void 0:c.excluded)==null?void 0:L.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Ng,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> The &#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",mg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:s.computeWxColspan},"ORM Weather Analysis",8,Mg),l.showFactor?(t.openBlock(),t.createElementBlock("th",Dg,"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",gg,[...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",Ig,[...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",Eg,[...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",yg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",Ag,[...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",Tg,"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",Vg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",xg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",pg,[...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",zg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",jg,[...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",kg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Ug,[...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",fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(c.segLength?"no-border-bottom":"no-border")},t.toDisplayString(c.segLength?c.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",c.excluded?"excluded":c.goodWx?"good-wx":""])},t.toDisplayString(c.time),3),["B","E"].includes(c.abbrev)&&((V=c.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=c.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((k=(E=c.meteo)==null?void 0:E.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((T=(z=c.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((y=(U=(x=c.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((f=(j=(p=c.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:f.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((R=(w=(g=c.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:R.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((P=(Q=(S=c.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:P.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((L=(W=c.meteo)==null?void 0:W.current)==null?void 0:L.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((_=c.meteo)==null?void 0:_.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((J=c.meteo)==null?void 0:J.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((H=c.meteo)==null?void 0:H.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((X=c.meteo)==null?void 0:X.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Cg=Ve(ng,[["render",Sg],["__scopeId","data-v-dea0638a"]]),rk="",bg={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`${pt(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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.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(ki.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(ki.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(ki.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,k,z,T,x,U;let o=[];const e=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const M=this.inventory.filter(y=>y.noon)||[],c=[];this.inventory.forEach((y,p)=>{var j,f;p===0&&c.push(y.utc),y.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(c.push(y.utc),c.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&c.push(y.utc)}),c.forEach((y,p)=>{if(p%2===0){const j=pt(c[p+1]).diff(pt(c[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(pt(c[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),M.forEach((y,p)=>{var f,g,w,R,S,Q,P,W,L,_,J,H,X,$;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(B=>B.slice(0,5)===y.utc.slice(5,10))&&o.push(j),p===M.length-1&&(o=o.filter(B=>B.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=y.noon)==null?void 0:f.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=y.cp)==null?void 0:w.fo)>n?(R=y.cp)==null?void 0:R.fo:n),s=Math.ceil(((S=y.noon)==null?void 0:S.dgoCons)>s?(Q=y.noon)==null?void 0:Q.dgoCons:s),s=Math.ceil(((P=y.cp)==null?void 0:P.dgo)>s?(W=y.cp)==null?void 0:W.dgo:s),l.push([j,(L=y.noon)==null?void 0:L.avgSpd,(_=y.noon)==null?void 0:_.foCons,(J=y.noon)==null?void 0:J.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.excluded?100:0]),p<M.length-1){const B=M[p+1];l.push([j,(H=B.noon)==null?void 0:H.avgSpd,(X=B.noon)==null?void 0:X.foCons,($=B.noon)==null?void 0:$.dgoCons,B.avgSpdCalc,B.cp.speed,B.goodWx&&!B.excluded?100:0,B.cp.dgo,B.cp.fo,B.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((y,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:r.dateTime,y:r.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:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(E=this.report)==null?void 0:E.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.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:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(V);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?r.noonAvgSpd:r.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:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],M=[];s.forEach((T,x)=>{var U,y;x===0&&M.push(T.utc),T.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(M.push(T.utc),M.push((y=s[x+1])==null?void 0:y.utc)),x===s.length-1&&M.push(T.utc)}),M.forEach((T,x)=>{if(x%2===0){const U=pt(M[x+1]).diff(pt(M[x]),"minute",!0);for(let y=0;y<=U+1;y++)e.push(this.computeUTCTime(pt(M[x]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((T,x)=>{var y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v;const U=this.computeUTCTime(T.utc,"MM-DD/HHmm[Z]");if(T.noon&&!o.some(G=>G.slice(0,5)===T.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(y=T.meteo)==null?void 0:y.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(w=(g=(f=T.meteo)==null?void 0:f.wave)==null?void 0:g.sig)==null?void 0:w.height:n),l.push([U,((R=T.noon)==null?void 0:R.windBF)||((Q=(S=T.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(W=(P=T.meteo)==null?void 0:P.wind)==null?void 0:W.scale,(_=(L=T.meteo)==null?void 0:L.wind)==null?void 0:_.direction,(J=T.noon)==null?void 0:J.seasHt,($=(X=(H=T.meteo)==null?void 0:H.wave)==null?void 0:X.sig)==null?void 0:$.height,T.dailyAvgCf??((B=l[l.length-1])==null?void 0:B[r.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<s.length-1){const G=s[x+1];l.push([U,((et=T.noon)==null?void 0:et.windBF)||((Mt=(at=T.meteo)==null?void 0:at.wind)==null?void 0:Mt.scale),(gt=(Dt=G.meteo)==null?void 0:Dt.wind)==null?void 0:gt.scale,(D=(It=G.meteo)==null?void 0:It.wind)==null?void 0:D.direction,(lt=G.noon)==null?void 0:lt.seasHt,(u=(A=(ot=T.meteo)==null?void 0:ot.wave)==null?void 0:A.sig)==null?void 0:u.height,G.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const c=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%c===0);let N=-2.5,V=2.5,a=1,E=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),E=Math.ceil(Math.abs(N)/a)+Math.ceil(Math.abs(V)/a)):(a=.5,N=Math.floor(this.findMinValue(l,6)/.5)*a,V=2.5,E=Math.abs(N)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:V,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,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(T,x)=>{if(T>=0)return T}}},{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:(T,x)=>{if(T>=0)return T},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},Og={class:"report-summary"},hg={class:"section chart-section"},Yg={class:"chart-block"},Qg={ref:"spdFoConsChart",class:"chart"},wg={ref:"spdDgoConsChart",class:"chart"},Rg={ref:"currChart",class:"chart"},Bg={class:"section map-section"},Fg={class:"map-block"},Gg={class:"flex-space"},Pg={class:"voyage-block bg-blue-light"},Wg={class:"flex-space label-block",style:{width:"100%"}},Lg={style:{"text-transform":"uppercase"}},Zg={class:"flex-space label-block",style:{width:"100%"}},_g={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Jg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Hg={class:"flex-space label-block",style:{width:"100%"}},Xg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},qg={class:"flex-end",style:{flex:"1"}},$g={class:"flex-end",style:{width:"160px"}},ug={class:"flex-space label-block",style:{width:"100%"}},vg={class:"flex-end",style:{flex:"1"}},tI={class:"flex-end",style:{width:"160px"}},eI={class:"flex-space label-block",style:{width:"100%"}},aI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},lI=["src"];function oI(o,e,l,r,n,s){var M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q;return t.openBlock(),t.createElementBlock("div",Og,[t.createElementVNode("div",hg,[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",Yg,[t.createElementVNode("div",Qg,null,512),t.createElementVNode("div",wg,null,512),t.createElementVNode("div",Rg,null,512)])]),t.createElementVNode("div",Bg,[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",Fg,[t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,[t.createElementVNode("div",Wg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Lg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",Zg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",_g,t.toDisplayString((c=(M=l.report)==null?void 0:M.vessel)==null?void 0:c.name),1),t.createElementVNode("span",Jg,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",Hg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Xg,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",Kg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",qg,t.toDisplayString(((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.portName)||((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.name)),1),t.createElementVNode("span",$g,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ug,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",vg,t.toDisplayString(((p=(y=l.report)==null?void 0:y.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",tI,t.toDisplayString(s.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",eI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",aI,t.toDisplayString((S=(R=l.report)==null?void 0:R.voyage)==null?void 0:S.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-34b7edf0><div data-v-34b7edf0>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>08/12</div><div data-v-34b7edf0><div data-v-34b7edf0>08 - Day of the month</div><div data-v-34b7edf0>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-34b7edf0></i></div><div data-v-34b7edf0><div data-v-34b7edf0>Wind from N (000)</div><div data-v-34b7edf0>Each bard = 10 kts</div><div data-v-34b7edf0>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>W 4</div><div data-v-34b7edf0>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div class="good-wx" data-v-34b7edf0>Date</div><div data-v-34b7edf0>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=l.report)==null?void 0:Q.chartUrl,alt:""},null,8,lI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-34b7edf0> 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-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const nI=Ve(bg,[["render",oI],["__scopeId","data-v-34b7edf0"]]),Nk="",mk="",iI={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`${pt(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 N,V;let r="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(E=>{const k=`<p>${E}</p>`;r=r+k}),r=r+"</div>"):r=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),M=(n==null?void 0:n.offsetHeight)||0,c=(s==null?void 0:s.offsetHeight)||0;if(M<=c){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(Nt,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):(Nt=typeof globalThis<"u"?globalThis:Nt||self,t(Nt["idmui-extend"]={},Nt.Vue,Nt["@wangeditor/editor-for-vue"],Nt["@idmui/basic"],Nt.moment,Nt.echarts,Nt["@idm-plugin/geo"],Nt.axios,Nt.MdEditorV3))})(this,function(Nt,t,fi,Ha,pt,Ud,q,Ui,Si){"use strict";function fd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,r.get?r:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const ki=fd(Ud),ok="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[r,n]of e)l[r]=n;return l},Sd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cd={class:"editor-box"};function bd(o,e,l,r,n,s){const M=t.resolveComponent("Toolbar"),c=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cd,[t.withDirectives(t.createVNode(M,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(c,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const rl=Ve(Sd,[["render",bd],["__scopeId","data-v-80104052"]]),Od={install(o){o.component("IdmEditor",rl)}},nk="";/*! Element Plus Icons Vue v2.3.2 */var hd=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"})]))}}),Yd=hd,Qd=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"})]))}}),wd=Qd;const ik="",Rd={name:"PlanReport",components:{Editor:rl,IdmBrand:Ha.IdmBrand,IdmLoading:Ha.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`${pt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,r){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${pt(o).utcOffset(r??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,r,n,s,M;if(e===0)return"-";{const c=pt((n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.eta).diff(pt((M=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:M.speed.eta),"h",!0);return Math.round(c*100)/100}}},computeCostDiff(){return function(o,e){var l,r,n,s,M,c,N;if(e===0)return"-";{const V=Number((s=(n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((N=(c=(M=o==null?void 0:o.speeds)==null?void 0:M[0])==null?void 0:c.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o){const{label:e,v0:l,argv:r,sample:n}=o,s=n==null?void 0:n.wps,M=[];for(let c=0;c<(s==null?void 0:s.length);c++){const N=s[c],V=s[c-1];V&&(N.avgBearing=V.bearing),c===0&&(N.label=`${e}: ${l}`),M.push(N),N.suspend&&(r!=null&&r.useRouteParam)&&M.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`}),N.velocity&&(r!=null&&r.useRouteParam)&&(N.label=`Spd: ${N.velocity}`)}return M}},computeDegree(){return function(o,e,l){e=e%360;for(let r=0;r<17;r++)if(r*22.5+e+11.25>=360){let n=(16-r)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,M,c,N;const l=(N=(c=(M=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:M.speed)==null?void 0:c.sample)==null?void 0:N.hours,r=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(pt(n==null?void 0:n.eta).diff(pt(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,r;let e=0;return(r=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||r.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)?"-":q.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>q.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>q.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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,r,n,s,M,c,N,V,a,E,k,z,T,x,U,y,p,j;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((c=(M=this.weatherPrinciple)==null?void 0:M.dangerous)==null?void 0:c.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((y=(U=o.meteo)==null?void 0:U.wind)==null?void 0:y.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,r,n,s,M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.sigWv&&((M=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:M.height)>=((N=(c=this.weatherPrinciple)==null?void 0:c.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(E=o.meteo)==null?void 0:E.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(T=this.weatherPrinciple)==null?void 0:T.severe)==null?void 0:x.sigWv)?e="bg-severe":(y=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&y.sigWv&&((f=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:f.height)>=((w=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:w.sigWv)&&(e="bg-heavy"),e}},isArctic(){var o,e,l,r;return(r=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:r.isArctic}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=ki.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,p,j,f,g,w,R;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(w=(g=(f=(j=(p=(y=this.plan)==null?void 0:y.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:f.sample)==null?void 0:g.hours)==null||w.forEach(S=>{var P,W,L,_,J,H,X,$,B,et;const Q=S.meteo;if(Q){const at=pt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(at),r=Math.ceil(((W=(P=Q.wave)==null?void 0:P.sig)==null?void 0:W.height)>r?(_=(L=Q.wave)==null?void 0:L.sig)==null?void 0:_.height:r),e.push([at,(J=Q.wind)==null?void 0:J.kts,(X=(H=Q.wave)==null?void 0:H.sig)==null?void 0:X.height,($=Q.wind)==null?void 0:$.direction,(B=Q.wind)==null?void 0:B.degree,(et=Q.wind)==null?void 0:et.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),s=Math.max(...e.map(S=>S[l.windSpeed])),M=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(s/5/5)*5,a=Math.ceil(r/5/.5)*.5,E=Math.ceil((c-M)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=M+5*E,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:T,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:M,max:x,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}]};(R=this.echart)==null||R.setOption(U)}}},Bd={class:"orm-plan-report"},Fd={key:0,class:"loading-block"},Gd={class:"info-block"},Pd={class:"col"},Wd={class:"label-block"},Ld={class:"text"},Zd={class:"label-block"},_d={class:"text"},Jd={key:0},Hd={class:"label-block"},Xd={class:"text"},Kd={class:"col"},qd={class:"label-block"},$d={key:0},ud={key:1},vd={style:{"margin-left":"16px"}},tc={class:"label-block"},ec={key:0},ac={key:1},lc={style:{"margin-left":"16px"}},oc={class:"label-block"},nc={class:"text"},ic={class:"section chart-section"},sc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dc={style:{"margin-right":"8px"}},cc=["src"],rc=["src"],Nc={key:1,class:"empty"},mc={class:"section comparison-section"},Mc={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dc={key:0},gc=["rowspan"],Ic={key:0},Ec={key:1},yc={rowspan:"2"},Ac={rowspan:"2"},Tc={key:0},Vc={key:1},xc={rowspan:"1"},pc={key:0},zc={rowspan:"2"},jc={rowspan:"2"},kc={rowspan:"2"},Uc={key:0},fc={key:0},Sc=["rowspan"],Cc={key:0},bc={rowspan:"1"},Oc={key:0},hc={key:0},Yc={key:1},Qc={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wc={key:0},Rc={key:0,class:"section waypoint-section"},Bc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fc={class:"bg-block"},Gc={class:"block-title"},Pc={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wc=["onClick"],Lc={class:"advisory bg-blue-light-2"},Zc=["innerHTML"],_c={class:"major-waypoint"},Jc={class:"major-header bg-blue-light-2"},Hc={key:0,class:"cell-item flex"},Xc={key:1,class:"cell-item flex"},Kc={class:"major-body"},qc={class:"cell-item flex",style:{flex:"2.5"}},$c={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},vc={key:0,style:{"margin-left":"3px"}},tr={class:"cell-item flex",style:{flex:"2"}},er={key:0,style:{"margin-left":"4px","font-weight":"600"}},ar={key:1,style:{"margin-left":"4px","font-weight":"600"}},lr={key:0,class:"cell-item flex offset"},or={key:1,class:"cell-item flex nbsp"},nr={key:2,class:"cell-item flex offset"},ir={key:3,class:"cell-item flex nbsp"},sr={key:0,class:"cell-item flex offset"},dr={key:1,class:"cell-item flex nbsp"},cr={key:0,class:"cell-item flex offset"},rr={key:1,class:"cell-item flex nbsp"},Nr={key:6,class:"cell-item flex offset"},mr={key:7,class:"cell-item flex nbsp"},Mr={class:"section forecast-section"},Dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},gr={class:"bg-block"},Ir={class:"block-title"},Er={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},yr=["onClick"],Ar={class:"echart-block",style:{"page-break-inside":"avoid"}},Tr={ref:"echart",class:"echart"},Vr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},xr={style:{"page-break-inside":"avoid"}},pr={class:"orm-report-table",style:{"font-size":"12px"}},zr=["colspan"],jr={key:0,colspan:"2"},kr={key:0},Ur={key:1},fr={key:2},Sr={class:"flex-center"},Cr={key:0,class:"degree-box"},br={key:1},Or={key:0},hr={key:0,class:"degree-box"},Yr={key:1},Qr={class:""},wr={key:0,class:"degree-box"},Rr={key:1},Br={key:0,class:"degree-box"},Fr={key:1},Gr={key:1},Pr={key:2};function Wr(o,e,l,r,n,s){var a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl;const M=t.resolveComponent("IdmBrand"),c=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bd,[t.createVNode(M,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(c,{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",Gd,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ld,t.toDisplayString((z=(k=(E=l.plan)==null?void 0:E.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zd,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_d,[t.createTextVNode(t.toDisplayString((U=(x=(T=l.plan)==null?void 0:T.voyage)==null?void 0:x.vessel)==null?void 0:U.name)+" ",1),(f=(j=(p=(y=l.plan)==null?void 0:y.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Jd,"("+t.toDisplayString((S=(R=(w=(g=l.plan)==null?void 0:g.voyage)==null?void 0:w.vessel)==null?void 0:R.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xd,t.toDisplayString(((P=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:P.voyNum)||((L=(W=l.plan)==null?void 0:W.voyage)==null?void 0:L.number)),1)])]),t.createElementVNode("div",Kd,[t.createElementVNode("div",qd,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(H=(J=(_=l.plan)==null?void 0:_.leg)==null?void 0:J.departure)!=null&&H.name?(t.openBlock(),t.createElementBlock("span",$d,t.toDisplayString((B=($=(X=l.plan)==null?void 0:X.leg)==null?void 0:$.departure)==null?void 0:B.name),1)):(t.openBlock(),t.createElementBlock("span",ud,t.toDisplayString(s.computePosition((at=(et=l.plan)==null?void 0:et.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",vd,t.toDisplayString(s.computeUTCTime(((gt=(Dt=(Mt=l.plan)==null?void 0:Mt.leg)==null?void 0:Dt.departure)==null?void 0:gt.atd)||((lt=(D=(It=l.plan)==null?void 0:It.leg)==null?void 0:D.departure)==null?void 0:lt.etd)||((v=(u=(A=(ot=l.plan)==null?void 0:ot.speeds)==null?void 0:A[n.speedIndex])==null?void 0:u.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tc,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(yt=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&yt.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((Vt=(Tt=(At=l.plan)==null?void 0:At.leg)==null?void 0:Tt.destination)==null?void 0:Vt.name),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(s.computePosition((Ct=(xt=l.plan)==null?void 0:xt.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",lc,t.toDisplayString(s.computeUTCTime(((bt=(I=(Yt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Yt[n.speedIndex])==null?void 0:I.speed)==null?void 0:bt.ata)||((wt=(Qt=(jt=(zt=l.plan)==null?void 0:zt.speeds)==null?void 0:jt[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",oc,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nc,t.toDisplayString((Bt=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.loadCondition),1)])])]),t.createElementVNode("div",ic,[t.createElementVNode("div",sc,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dc,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Ft=l.plan)==null?void 0:Ft.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,cc)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,rc)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mc,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Dc,[...e[14]||(e[14]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gc),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Ic,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",Ec,[...e[24]||(e[24]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ot},[t.createElementVNode("tr",null,[t.createElementVNode("td",yc,t.toDisplayString(Ot+1),1),t.createElementVNode("td",Ac,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tc,t.toDisplayString(`CP ${((ye=(ge=m.speed)==null?void 0:ge.cpCopy)==null?void 0:ye.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vc,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",xc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",pc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",zc,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",jc,t.toDisplayString(s.roundPrecision((ca=m.speed)==null?void 0:ca.totalFoCons,3)),1),t.createElementVNode("td",kc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Uc," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",fc,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,Ot)),9,Sc),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Cc,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Sa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Sa.cps[0].fo)+" / "+t.toDisplayString((ba=(Ca=m.speed)==null?void 0:Ca.extend)==null?void 0:ba.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((ha=(Oa=m.speed)==null?void 0:Oa.extend)==null?void 0:ha.cps[0].dgo)+" / "+t.toDisplayString((Qa=(Ya=m.speed)==null?void 0:Ya.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",bc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Oc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",hc,t.toDisplayString(s.roundPrecision(((La=(Wa=m==null?void 0:m.speed)==null?void 0:Wa.cost)==null?void 0:La.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((_a=(Za=m==null?void 0:m.speed)==null?void 0:Za.cost)==null?void 0:_a.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString(s.computeCostDiff(l.plan,Ot)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((d=m.speed)==null?void 0:d.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((C=m.speed)==null?void 0:C.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((b=m.speed)==null?void 0:b.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",wc,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((rt=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:rt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=s.roundPrecision((Gt=(tt=l.plan)==null?void 0:tt.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:ce.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),(Ne=(re=l.plan)==null?void 0:re.voyage)!=null&&Ne.showWpts?(t.openBlock(),t.createElementBlock("div",Rc,[t.createElementVNode("div",Bc,[t.createElementVNode("div",Fc,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+t.toDisplayString((mt=(De=(Me=(me=l.plan.speeds)==null?void 0:me[n.speedIndex])==null?void 0:Me.speed)==null?void 0:De.lane)==null?void 0:mt.name),1)]),((pe=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:pe.length)>1?(t.openBlock(),t.createElementBlock("div",Pc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ze=l.plan)==null?void 0:ze.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Wc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lc,[n.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,Zc))]),t.createElementVNode("div",_c,[t.createElementVNode("div",Jc,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-47691879>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-47691879>Time</div><div class="cell-item flex" data-v-47691879>Nav</div><div class="cell-item flex" data-v-47691879>Dist <span class="text-units" data-v-47691879>(nm)</span></div>',4)),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hc,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(fe=(Ue=l.plan)==null?void 0:Ue.voyage)!=null&&fe.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xc,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",Kc,[(Ce=(Se=l.plan)==null?void 0:Se.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((he=(Oe=(be=l.plan)==null?void 0:be.speeds)==null?void 0:Oe[n.speedIndex])==null?void 0:he.speed),(m,Ot)=>{var se,de,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:"cell-row"},[t.createElementVNode("div",qc,[m.isResume?(t.openBlock(),t.createElementBlock("div",$c,"Resume")):(t.openBlock(),t.createElementBlock("div",uc,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vc,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tr,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",er,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",ar,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),Ot?(t.openBlock(),t.createElementBlock("div",lr,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",or)),Ot?(t.openBlock(),t.createElementBlock("div",nr,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ir)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ot?(t.openBlock(),t.createElementBlock("div",sr,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",dr))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ot?(t.openBlock(),t.createElementBlock("div",cr,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",rr))],64)):t.createCommentVNode("",!0),Ot?(t.openBlock(),t.createElementBlock("div",Nr,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mr))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mr,[(Qe=(Ye=l.plan)==null?void 0:Ye.speeds)!=null&&Qe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",Dr,[t.createElementVNode("div",gr,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",Ir," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Fe=(Be=(Re=(we=l.plan)==null?void 0:we.speeds)==null?void 0:Re[n.speedIndex])==null?void 0:Be.speed)==null?void 0:Fe.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",Er,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,yr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ar,[t.createElementVNode("div",Tr,null,512)]),t.createElementVNode("div",Vr," * "+t.toDisplayString(s.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",xr,[e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"4px","font-size":"12px","page-break-after":"avoid"}}," Note: Significant seas reflect the top 1/3 wave height average. Wind speeds are sustained, with potential gusts up to 40% higher. ",-1)),t.createElementVNode("table",pr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,zr),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),e[57]||(e[57]=t.createElementVNode("th",{rowspan:"2",colspan:"1"},[t.createTextVNode("Vis."),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",jr,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[60]||(e[60]=t.createElementVNode("th",null,"Dir",-1)),e[61]||(e[61]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(ol=(ll=l.plan)==null?void 0:ll.voyage)!=null&&ol.sendRptWithBF?(t.openBlock(),t.createElementBlock("th",kr,"BF")):t.createCommentVNode("",!0),e[62]||(e[62]=t.createElementVNode("th",null,"Dir",-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[65]||(e[65]=t.createElementVNode("th",null,"Dir",-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[68]||(e[68]=t.createElementVNode("th",null,"Dir",-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[70]||(e[70]=t.createElementVNode("th",null,[t.createTextVNode("Fac. "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",Ur,[...e[58]||(e[58]=[t.createTextVNode("sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",fr,[...e[59]||(e[59]=[t.createTextVNode("sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((cl=(dl=(sl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:sl.speed)==null?void 0:dl.sample)==null?void 0:cl.hours,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b,O,h,Y;return t.openBlock(),t.createElementBlock("tr",{key:Ot},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",Sr,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),t.createElementVNode("td",null,[((de=(se=m.meteo)==null?void 0:se.wind)==null?void 0:de.kts)!==null&&((ye=(ge=m.meteo)==null?void 0:ge.wind)!=null&&ye.direction)?(t.openBlock(),t.createElementBlock("div",Cr,[t.createElementVNode("span",null,t.toDisplayString((Pe=(Ge=m.meteo)==null?void 0:Ge.wind)==null?void 0:Pe.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Le=(We=m.meteo)==null?void 0:We.wind)==null?void 0:Le.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",br,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((_e=(Ze=m.meteo)==null?void 0:Ze.wind)==null?void 0:_e.kts,1)),3),(He=(Je=l.plan)==null?void 0:Je.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",Or,t.toDisplayString((Ke=(Xe=m.meteo)==null?void 0:Xe.wind)==null?void 0:Ke.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ue=($e=(qe=m.meteo)==null?void 0:qe.wave)==null?void 0:$e.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",null,[((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.swell)==null?void 0:ea.height)!==null&&((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)!=null&&oa.direction)?(t.openBlock(),t.createElementBlock("div",hr,[t.createElementVNode("span",null,t.toDisplayString((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)==null?void 0:sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(ra=(ca=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ca.swell)==null?void 0:ra.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Yr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.period,1)),1),t.createElementVNode("td",Qr,[((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.sig)==null?void 0:Aa.height)!==null&&((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)!=null&&xa.direction)?(t.openBlock(),t.createElementBlock("div",wr,[t.createElementVNode("span",null,t.toDisplayString((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)==null?void 0:ja.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Rr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.period,1)),1),t.createElementVNode("td",null,[((wa=(Qa=m.meteo)==null?void 0:Qa.current)==null?void 0:wa.kts)!==null&&((Ba=(Ra=m.meteo)==null?void 0:Ra.current)!=null&&Ba.direction)?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("span",null,t.toDisplayString((Ga=(Fa=m.meteo)==null?void 0:Fa.current)==null?void 0:Ga.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(Wa=(Pa=m.meteo)==null?void 0:Pa.current)==null?void 0:Wa.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Fr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Za=(La=m.meteo)==null?void 0:La.current)==null?void 0:Za.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((_a=m.meteo)==null?void 0:_a.visibility,1)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",Gr,t.toDisplayString(s.roundPrecision((C=(d=m.meteo)==null?void 0:d.ice)==null?void 0:C.sit,2)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",Pr,t.toDisplayString(((O=(b=m.meteo)==null?void 0:b.ice)==null?void 0:O.sic)>=0?s.roundPrecision(((Y=(h=m.meteo)==null?void 0:h.ice)==null?void 0:Y.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const Ci=Ve(Rd,[["render",Wr],["__scopeId","data-v-47691879"]]),Lr={install(o){o.component("PlanReport",Ci)}},sk="",Zr={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`${pt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},_r={class:"cover-box"},Jr={class:"cover-content"},Hr={class:"cover-title"},Xr={class:"cover-info"},Kr={class:"info-item"},qr={class:"info-item"},$r={class:"info-item"},ur={style:{"font-weight":"600"}},vr={class:"info-item"},tN={style:{"font-weight":"600"}},eN={class:"info-item"},aN={class:"info-item"},lN={class:"info-item"},oN={class:"info-item"},nN={class:"info-item"},iN={class:"text"};function sN(o,e,l,r,n,s){var M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w,R;return t.openBlock(),t.createElementBlock("div",_r,[t.createElementVNode("div",Jr,[t.createElementVNode("div",Hr,t.toDisplayString(l.name),1),t.createElementVNode("div",Xr,[t.createElementVNode("div",Kr,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((c=(M=l.report)==null?void 0:M.voyage)==null?void 0:c.number),1)]),t.createElementVNode("div",qr,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",$r,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",ur,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",vr,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",tN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",eN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(a=l.report)==null?void 0:a.departure)==null?void 0:E.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",aN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",lN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((y=(U=l.report)==null?void 0:U.arrival)==null?void 0:y.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",oN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",iN,t.toDisplayString((R=(w=l.report)==null?void 0:w.voyage)==null?void 0:R.loadCondition),1)])])])])}const dN=Ve(Zr,[["render",sN],["__scopeId","data-v-c57d4b58"]]),dk="",cN={name:"OrmVoyageSummary",components:{Editor:rl},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 pt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=pt(o).diff(pt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(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 q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.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 q.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,r)=>{var M,c;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:pt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+pt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});const s=(c=(M=l==null?void 0:l.inventory)==null?void 0:M.sample)==null?void 0:c.hours.filter(N=>N.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},rN={class:"report-summary"},NN={class:"section weather-section"},mN={class:"definition bg-blue-light-2"},MN={style:{"line-height":"1.5"}},DN={class:"section summary-section"},gN={class:"phase-box"},IN={class:"phase-index"},EN={class:"phase-position"},yN={class:"phase-position"},AN={class:"phase-cp"},TN={class:"orm-report-table"},VN={key:0},xN={class:"phase-conclusion"},pN={class:"item-conclusion bg-blue-light-2"},zN={class:"value align-left"},jN={key:0,class:"text-secondary align-right"},kN={key:0},UN={key:1},fN={key:2},SN={key:1,class:"text-secondary"},CN={key:2,class:"value"},bN={key:0},ON={class:"gain"},hN={key:1},YN={class:"lost"},QN={key:2},wN={class:"item-conclusion bg-blue-light-2"},RN={class:"value align-left"},BN={key:0,class:"text-secondary"},FN={key:0},GN={key:1},PN={key:2},WN={key:1,class:"text-secondary"},LN={key:2,class:"value"},ZN={key:0},_N={class:"gain"},JN={key:1},HN={class:"lost"},XN={key:2},KN={class:"item-conclusion bg-blue-light-2"},qN={class:"value align-left"},$N={key:0,class:"text-secondary"},uN={key:0},vN={key:1},tm={key:2},em={key:1,class:"text-secondary"},am={key:2,class:"value"},lm={key:0},om={class:"gain"},nm={key:1},im={class:"lost"},sm={key:2},dm={key:0,class:"exclusion-block"},cm={style:{margin:"8px 0"}},rm={class:"orm-report-table"},Nm={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},mm={class:"sub-title"},Mm=["innerHTML"],Dm={class:"section segment-section"},gm={class:"segment-summary"},Im={class:"segment-index text-left"},Em={class:"segment-position"},ym={class:"segment-position"},Am={class:"orm-report-table"},Tm={class:"good-wx"},Vm={class:"good-wx"},xm={class:"good-wx"},pm={class:"good-wx"},zm={class:"good-wx"},jm={class:"good-wx"},km={class:"good-wx"},Um={class:"good-wx"},fm={class:"good-wx"},Sm={class:"good-wx"},Cm={class:"good-wx"},bm={class:"good-wx"},Om={class:"good-wx"},hm={class:"good-wx"},Ym={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Qm={key:0},wm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Rm={key:2,class:"segment-speed"},Bm={class:"row"},Fm={class:"speed-right row"},Gm={class:"speed"},Pm={key:1,class:"speed"},Wm={key:0,class:"speed"},Lm={class:"speed"},Zm={class:"speed"},_m={class:"speed"},Jm={key:0,class:"under"},Hm={key:1,class:"over"},Xm={class:"row"},Km={class:"speed-right formula flex-space"},qm={key:0},$m={key:3,class:"segment-speed"},um={class:"row"},vm={class:"speed-right row"},tM={class:"speed"},eM={class:"speed"},aM={key:0,class:"under"},lM={key:1,class:"over"},oM={class:"row"},nM={class:"speed-right formula row"},iM={class:"segment-formula"},sM={class:"sub-title"},dM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},cM={class:"formula-block"},rM={class:"formula-item flex-evenly bg-blue-light"},NM={class:"formula-right flex-evenly"},mM={class:"fraction",style:{width:"240px"}},MM={class:"formula-item flex-center bg-blue-light"},DM={class:"formula-left flex-space"},gM={class:"formula-right flex-evenly"},IM={class:"fraction",style:{width:"240px"}},EM={class:"formula-item flex-center bg-blue-light"},yM={class:"formula-left flex-space"},AM={class:"formula-right flex-evenly"},TM={class:"fraction",style:{width:"240px"}},VM={class:"formula-desc"},xM={class:"flex-end"},pM={class:"flex-end"},zM={class:"flex-end"},jM={key:0,class:"formula-block"},kM={class:"formula-item flex-evenly bg-blue-light"},UM={class:"formula-right flex-evenly"},fM={class:"fraction",style:{width:"200px"}},SM={class:"formula-item flex-center bg-blue-light"},CM={class:"formula-left flex-space"},bM={class:"formula-right flex-evenly"},OM={class:"fraction",style:{width:"200px"}},hM={class:"formula-item flex-center bg-blue-light"},YM={class:"formula-left flex-space"},QM={class:"formula-right flex-evenly"},wM={class:"fraction",style:{width:"200px"}},RM={class:"formula-item formula-conclusion bg-blue-light"},BM={key:0,class:"flex-evenly",style:{width:"500px"}},FM={key:1,class:"flex-evenly",style:{width:"500px"}},GM={class:"flex-center"},PM={key:1,class:"formula-conclusion bg-blue-light"},WM={class:"segment-formula"},LM={class:"sub-title"},ZM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},_M={class:"formula-block"},JM={class:"formula-item flex-evenly bg-blue-light"},HM={class:"formula-right flex-evenly"},XM={class:"fraction",style:{width:"240px"}},KM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},qM={key:0,class:"flex-end text-tips"},$M={class:"formula-item flex-center bg-blue-light"},uM={class:"formula-right flex-evenly"},vM={class:"fraction",style:{width:"200px"}},tD={class:"formula-item flex-center bg-blue-light"},eD={class:"formula-right flex-evenly"},aD={class:"fraction",style:{width:"200px"}},lD={class:"formula-item flex-center bg-blue-light"},oD={class:"formula-right flex-evenly"},nD={class:"fraction",style:{width:"300px"}},iD={class:"formula-item flex-center bg-blue-light"},sD={class:"formula-right flex-evenly"},dD={class:"fraction",style:{width:"300px"}},cD={class:"sub-title"},rD={key:0,class:"formula-block"},ND={key:0,class:"formula-item flex-evenly bg-blue-light"},mD={class:"formula-right flex-evenly"},MD={class:"fraction",style:{width:"60px"}},DD={class:"fraction",style:{width:"60px"}},gD={class:"formula-item flex-evenly bg-blue-light"},ID={class:"formula-right flex-evenly"},ED={class:"fraction",style:{width:"150px"}},yD={class:"fraction",style:{width:"150px"}},AD={key:0},TD={class:"formula-item flex-evenly bg-blue-light"},VD={class:"formula-right flex-evenly"},xD={class:"fraction",style:{width:"150px"}},pD={class:"fraction",style:{width:"150px"}},zD={class:"formula-item flex-evenly bg-blue-light"},jD={class:"formula-right flex-evenly"},kD={class:"fraction",style:{width:"150px"}},UD={class:"fraction",style:{width:"150px"}},fD={class:"formula-item formula-conclusion bg-blue-light"},SD={class:"flex-evenly",style:{width:"500px"}},CD={key:0,class:"flex-evenly"},bD={class:"fraction"},OD={class:"flex-evenly",style:{width:"700px"}},hD={key:0,class:"flex-evenly",style:{width:"500px"}},YD={class:"fraction",style:{width:"140px"}},QD={key:1,class:"formula-item formula-conclusion bg-blue-light"},wD={class:"header-block"},RD={class:"bg-block"},BD={class:"block-title"},FD={key:0,class:"formula-block"},GD={class:"formula-item flex-evenly bg-blue-light"},PD={class:"formula-right flex-evenly"},WD={class:"fraction",style:{width:"150px"}},LD={class:"fraction",style:{width:"150px"}},ZD={key:0},_D={class:"formula-item flex-evenly bg-blue-light"},JD={class:"formula-right flex-evenly"},HD={class:"fraction",style:{width:"150px"}},XD={class:"fraction",style:{width:"150px"}},KD={class:"formula-item flex-evenly bg-blue-light"},qD={class:"formula-right flex-evenly"},$D={class:"fraction",style:{width:"150px"}},uD={class:"fraction",style:{width:"150px"}},vD={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},tg={key:0,class:"flex-evenly",style:{width:"500px"}},eg={key:1,class:"flex-evenly",style:{width:"700px"}},ag={key:1,class:"formula-item formula-conclusion bg-blue-light"};function lg(o,e,l,r,n,s){var c,N,V;const M=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",rN,[t.createElementVNode("div",NN,[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",mN,[t.createElementVNode("div",MN,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",DN,[e[30]||(e[30]=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((c=l.report)==null?void 0:c.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",gN,[t.createElementVNode("div",IN,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(I,bt)=>{var zt,jt,Qt,wt,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"phase-row text-secondary"},[t.createElementVNode("div",EN,[t.createElementVNode("span",null,t.toDisplayString(((zt=I==null?void 0:I.departure)==null?void 0:zt.portName)||((jt=I.departure)==null?void 0:jt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Qt=I==null?void 0:I.departure)==null?void 0:Qt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",yN,[t.createElementVNode("span",null,t.toDisplayString(((wt=I==null?void 0:I.arrival)==null?void 0:wt.portName)||((Rt=I.arrival)==null?void 0:Rt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Bt=I==null?void 0:I.arrival)==null?void 0:Bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",AN,[t.createElementVNode("table",TN,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((T=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:T.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((f=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:f.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((w=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:w.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(R=l.report)==null?void 0:R.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",VN,t.toDisplayString((P=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:P.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",xN,[t.createElementVNode("div",pN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",zN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.time),1),e[12]||(e[12]=t.createElementVNode("span",{class:"unit"},"hrs",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",jN,[((W=a==null?void 0:a.timeConclusion)==null?void 0:W.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",kN,"Time Gained")):((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",UN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",fN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",SN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",CN,[((_=a==null?void 0:a.timeConclusion)==null?void 0:_.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",bN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",ON,t.toDisplayString((J=a==null?void 0:a.timeConclusion)==null?void 0:J.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((H=a==null?void 0:a.timeConclusion)==null?void 0:H.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",hN,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",YN,t.toDisplayString((X=a==null?void 0:a.timeConclusion)==null?void 0:X.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",QN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wN,[e[23]||(e[23]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",RN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[18]||(e[18]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",BN,[((B=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:B.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",FN,"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",GN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",PN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",WN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",LN,[((Dt=(Mt=a==null?void 0:a.fuelConclusion)==null?void 0:Mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",ZN,[e[19]||(e[19]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",_N,t.toDisplayString((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.saving),1),e[20]||(e[20]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((lt=(D=a==null?void 0:a.fuelConclusion)==null?void 0:D.fo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",JN,[e[21]||(e[21]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",HN,t.toDisplayString((A=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:A.overCons),1),e[22]||(e[22]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",XN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",KN,[e[29]||(e[29]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",qN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[24]||(e[24]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",$N,[((v=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",uN,"DO/GO Saving")):((Et=(G=a==null?void 0:a.fuelConclusion)==null?void 0:G.dgo)==null?void 0:Et.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",vN,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",tm,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",em,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",am,[((At=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",lm,[e[25]||(e[25]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",om,t.toDisplayString((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.dgo)==null?void 0:Vt.saving),1),e[26]||(e[26]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Ct=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.dgo)==null?void 0:Ct.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",nm,[e[27]||(e[27]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",im,t.toDisplayString((Yt=(ht=a==null?void 0:a.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.overCons),1),e[28]||(e[28]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",sm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[31]||(e[31]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[35]||(e[35]=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[33]||(e[33]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[34]||(e[34]=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",cm,[t.createElementVNode("table",rm,[e[32]||(e[32]=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",Nm,[t.createElementVNode("div",mm," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((V=l.report)==null?void 0:V.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(M,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,Mm))],2)],2),t.createElementVNode("div",Dm,[e[237]||(e[237]=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 k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl,m,Ot,se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,Wa,La,Za,_a,d,C,b,O,h,Y,F,Z,K,nt,it,st,dt,ct,kt,Ut,ft,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Ja,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,fl,Sl,Cl,bl,Ol,hl,Yl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,co,ro,No,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,fo,So,Co,bo,Oo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,cn,rn,Nn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,fn,Sn,Cn,bn,On,hn,Yn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ci,ri,Ni,mi,Mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",gm,[t.createElementVNode("div",Im,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(xe,Ul)=>{var Nl,kl,Ai,Ti,Vi,xi;return t.openBlock(),t.createElementBlock("div",{key:Ul,class:"segment-row text-secondary"},[t.createElementVNode("div",Em,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((kl=xe.departure)==null?void 0:kl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Ai=xe==null?void 0:xe.departure)==null?void 0:Ai.utcTime))+")",1)]),e[36]||(e[36]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",ym,[t.createElementVNode("span",null,t.toDisplayString(((Ti=xe==null?void 0:xe.arrival)==null?void 0:Ti.portName)||((Vi=xe.arrival)==null?void 0:Vi.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((xi=xe==null?void 0:xe.arrival)==null?void 0:xi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",Am,[e[44]||(e[44]=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[37]||(e[37]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",Tm,t.toDisplayString((T=(z=a==null?void 0:a.goodWx)==null?void 0:z.outEca)==null?void 0:T.distance),1),t.createElementVNode("td",Vm,t.toDisplayString((U=(x=a==null?void 0:a.goodWx)==null?void 0:x.inEca)==null?void 0:U.distance),1),t.createElementVNode("td",null,t.toDisplayString((p=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:p.distance),1),t.createElementVNode("td",null,t.toDisplayString((f=(j=a==null?void 0:a.allWx)==null?void 0:j.inEca)==null?void 0:f.distance),1)]),t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",xm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:w.time),1),t.createElementVNode("td",pm,t.toDisplayString((S=(R=a==null?void 0:a.goodWx)==null?void 0:R.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((P=(Q=a==null?void 0:a.allWx)==null?void 0:Q.outEca)==null?void 0:P.time),1),t.createElementVNode("td",null,t.toDisplayString((L=(W=a==null?void 0:a.allWx)==null?void 0:W.inEca)==null?void 0:L.time),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",zm,t.toDisplayString(((J=(_=a==null?void 0:a.goodWx)==null?void 0:_.outEca)==null?void 0:J.avgSpd)||"--"),1),t.createElementVNode("td",jm,t.toDisplayString(((X=(H=a==null?void 0:a.goodWx)==null?void 0:H.inEca)==null?void 0:X.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((B=($=a==null?void 0:a.allWx)==null?void 0:$.outEca)==null?void 0:B.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=a==null?void 0:a.allWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",km,t.toDisplayString(((Dt=(Mt=a==null?void 0:a.goodWx)==null?void 0:Mt.outEca)==null?void 0:Dt.sumFoCons)||"--"),1),t.createElementVNode("td",Um,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.inEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(D=a==null?void 0:a.allWx)==null?void 0:D.outEca)==null?void 0:lt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(ot=a==null?void 0:a.allWx)==null?void 0:ot.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=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",fm,t.toDisplayString(((v=(u=a==null?void 0:a.goodWx)==null?void 0:u.outEca)==null?void 0:v.avgFoCons)||"--"),1),t.createElementVNode("td",Sm,t.toDisplayString(((Et=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=a==null?void 0:a.allWx)==null?void 0:yt.outEca)==null?void 0:At.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.allWx)==null?void 0:Tt.inEca)==null?void 0:Vt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Cm,t.toDisplayString(((Ct=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",bm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.inEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=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",Om,t.toDisplayString(((wt=(Qt=a==null?void 0:a.goodWx)==null?void 0:Qt.outEca)==null?void 0:wt.avgDgoCons)||"--"),1),t.createElementVNode("td",hm,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",Ym,[e[46]||(e[46]=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],(xe,Ul)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ul},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,kl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:kl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Qm,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[45]||(e[45]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(Nl.utc,s.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[E])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",wm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",Rm,[t.createElementVNode("div",Bm,[e[56]||(e[56]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Fm,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ce=(Gt=l.report)==null?void 0:Gt.weather)!=null&&ce.disableWxFactor&&((Ne=(re=l.report)==null?void 0:re.weather)!=null&&Ne.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Wm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(De=(Me=l.report)==null?void 0:Me.weather)!=null&&De.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((mt=a==null?void 0:a.goodWx)==null?void 0:mt.avgSpd),1),e[49]||(e[49]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ee=a==null?void 0:a.goodWx)==null?void 0:Ee.avgCf)>0?(pe=a==null?void 0:a.goodWx)==null?void 0:pe.avgCf:`(${(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf})`),1),e[50]||(e[50]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((je=a==null?void 0:a.goodWx)==null?void 0:je.pfmSpd)+" (kts)",1)],64)):(Ue=(ke=l.report)==null?void 0:ke.weather)!=null&&Ue.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[51]||(e[51]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgWf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf})`),1),e[52]||(e[52]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((he=a==null?void 0:a.goodWx)==null?void 0:he.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgWf)>0?(Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf:`(${(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf})`),1),(Be=(Re=l.report)==null?void 0:Re.weather)!=null&&Be.favorableCur&&((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[53]||(e[53]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgCf)>0?(Ka=a==null?void 0:a.goodWx)==null?void 0:Ka.avgCf:`(${(qa=a==null?void 0:a.goodWx)==null?void 0:qa.avgCf})`),1)],64)),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",_m,t.toDisplayString(($a=a==null?void 0:a.goodWx)==null?void 0:$a.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Pm,t.toDisplayString((tt=a==null?void 0:a.goodWx)==null?void 0:tt.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[47]||(e[47]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[48]||(e[48]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Gm,t.toDisplayString((rt=a==null?void 0:a.goodWx)==null?void 0:rt.pfmSpd)+" (kts)",1)],64))],64)),(va=(ua=l.report)==null?void 0:ua.voyage)!=null&&va.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((tl=a==null?void 0:a.goodWx)==null?void 0:tl.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Jm,"(Under-performance)")):t.createCommentVNode("",!0),((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Hm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Xm,[e[73]||(e[73]=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",Km,[(ll=(al=l.report)==null?void 0:al.weather)!=null&&ll.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(dl=(sl=l.report)==null?void 0:sl.weather)!=null&&dl.disableWxFactor&&((m=(cl=l.report)==null?void 0:cl.weather)!=null&&m.disableCFactor)?(t.openBlock(),t.createElementBlock("label",qm,"GW Average Speed")):(se=(Ot=l.report)==null?void 0:Ot.weather)!=null&&se.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[62]||(e[62]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[63]||(e[63]=t.createElementVNode("label",null,"-",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(ge=(de=l.report)==null?void 0:de.weather)!=null&&ge.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[70]||(e[70]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ge=(ye=l.report)==null?void 0:ye.weather)!=null&&Ge.favorableCur&&((Pe=a==null?void 0:a.goodWx)==null?void 0:Pe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[68]||(e[68]=t.createElementVNode("label",null,"-",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(nl=(ol=l.report)==null?void 0:ol.weather)!=null&&nl.favorableCur&&((il=a==null?void 0:a.goodWx)==null?void 0:il.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[57]||(e[57]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[58]||(e[58]=t.createElementVNode("label",null,"-",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",$m,[t.createElementVNode("div",um,[e[79]||(e[79]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vm,[(Le=(We=l.report)==null?void 0:We.weather)!=null&&Le.favorableCur&&((Ze=a==null?void 0:a.allWx)==null?void 0:Ze.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((ve=a==null?void 0:a.allWx)==null?void 0:ve.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf)>0?(ea=a==null?void 0:a.allWx)==null?void 0:ea.avgWf:`(${(aa=a==null?void 0:a.allWx)==null?void 0:aa.avgWf})`),1),e[78]||(e[78]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",eM,t.toDisplayString((la=a==null?void 0:a.allWx)==null?void 0:la.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((_e=a==null?void 0:a.allWx)==null?void 0:_e.avgSpd),1),e[74]||(e[74]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Je=a==null?void 0:a.allWx)==null?void 0:Je.avgCf)>0?(He=a==null?void 0:a.allWx)==null?void 0:He.avgCf:`(${(Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgCf})`),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgWf)>0?(qe=a==null?void 0:a.allWx)==null?void 0:qe.avgWf:`(${($e=a==null?void 0:a.allWx)==null?void 0:$e.avgWf})`),1),e[76]||(e[76]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tM,t.toDisplayString((ue=a==null?void 0:a.allWx)==null?void 0:ue.pfmSpd)+" (kts)",1)],64)),(na=(oa=l.report)==null?void 0:oa.voyage)!=null&&na.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ia=a==null?void 0:a.allWx)==null?void 0:ia.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",aM,"(Under-performance)")):t.createCommentVNode("",!0),((sa=a==null?void 0:a.allWx)==null?void 0:sa.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",lM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",oM,[e[89]||(e[89]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",nM,[(ca=(da=l.report)==null?void 0:da.weather)!=null&&ca.favorableCur&&((ra=a==null?void 0:a.allWx)==null?void 0:ra.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[85]||(e[85]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[80]||(e[80]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[81]||(e[81]=t.createElementVNode("label",null,"-",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"Current Factor",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"-",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",iM,[t.createElementVNode("div",sM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(ma=(Na=l.report)==null?void 0:Na.weather)!=null&&ma.noExtrapolation?(t.openBlock(),t.createElementBlock("span",dM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",cM,[t.createElementVNode("div",rM,[e[93]||(e[93]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",NM,[t.createElementVNode("div",mM,[t.createElementVNode("div",null,t.toDisplayString((Da=(Ma=l.report)==null?void 0:Ma.weather)!=null&&Da.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[90]||(e[90]=t.createElementVNode("div",{class:"line"},null,-1)),e[91]||(e[91]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[92]||(e[92]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",MM,[t.createElementVNode("div",DM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ia=(ga=a==null?void 0:a.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+"kts)",1),e[94]||(e[94]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",gM,[t.createElementVNode("div",IM,[t.createElementVNode("div",null,t.toDisplayString((ya=(Ea=l.report)==null?void 0:Ea.weather)!=null&&ya.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[95]||(e[95]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ta=(Aa=a==null?void 0:a.extend)==null?void 0:Aa.cp)==null?void 0:Ta.speed,"Under"))+"kts",1)]),e[96]||(e[96]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",EM,[t.createElementVNode("div",yM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Over"))+"kts)",1),e[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",AM,[t.createElementVNode("div",TM,[t.createElementVNode("div",null,t.toDisplayString((za=(pa=l.report)==null?void 0:pa.weather)!=null&&za.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ka=(ja=a==null?void 0:a.extend)==null?void 0:ja.cp)==null?void 0:ka.speed,"Over"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(c)",-1))])]),e[100]||(e[100]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:300px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Lost</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(a)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Gained</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(c)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(a)</div></div></div>',1))]),t.createElementVNode("div",VM,[t.createElementVNode("div",xM,[e[101]||(e[101]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:fa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",pM,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",zM,[e[103]||(e[103]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Under"))+" kts) ",1)])]),(Qa=a==null?void 0:a.goodWx)!=null&&Qa.distance?(t.openBlock(),t.createElementBlock("div",jM,[t.createElementVNode("div",kM,[e[107]||(e[107]=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",UM,[t.createElementVNode("div",fM,[t.createElementVNode("div",null,t.toDisplayString((Ra=(wa=l.report)==null?void 0:wa.weather)!=null&&Ra.noExtrapolation?(Ba=a==null?void 0:a.goodWx)==null?void 0:Ba.distance:(Fa=a==null?void 0:a.allWx)==null?void 0:Fa.distance),1),e[104]||(e[104]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ga=a==null?void 0:a.goodWx)==null?void 0:Ga.pfmSpd),1)]),e[105]||(e[105]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pa=a==null?void 0:a.timeConclusion)==null?void 0:Pa.timeAtPfmSpd)+" (hrs)",1),e[106]||(e[106]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",SM,[t.createElementVNode("div",CM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(La=(Wa=a==null?void 0:a.extend)==null?void 0:Wa.cp)==null?void 0:La.speed,"Under"))+"kts)",1),e[108]||(e[108]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",bM,[t.createElementVNode("div",OM,[t.createElementVNode("div",null,t.toDisplayString((_a=(Za=l.report)==null?void 0:Za.weather)!=null&&_a.noExtrapolation?(d=a==null?void 0:a.goodWx)==null?void 0:d.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[109]||(e[109]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.minusAbtSpd),1)]),e[110]||(e[110]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.timeAtMinusAbtSpd)+" (hrs)",1),e[111]||(e[111]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",hM,[t.createElementVNode("div",YM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[112]||(e[112]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",QM,[t.createElementVNode("div",wM,[t.createElementVNode("div",null,t.toDisplayString((Z=(F=l.report)==null?void 0:F.weather)!=null&&Z.noExtrapolation?(K=a==null?void 0:a.goodWx)==null?void 0:K.distance:(nt=a==null?void 0:a.allWx)==null?void 0:nt.distance),1),e[113]||(e[113]=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[114]||(e[114]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=a==null?void 0:a.timeConclusion)==null?void 0:st.timeAtPlusAbtSpd)+" (hrs)",1),e[115]||(e[115]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",RM,[((dt=a==null?void 0:a.timeConclusion)==null?void 0:dt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",BM,[e[116]||(e[116]=t.createElementVNode("div",null,"Time Lost",-1)),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ct=a==null?void 0:a.timeConclusion)==null?void 0:ct.timeAtPfmSpd),1),e[120]||(e[120]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtMinusAbtSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ut=a==null?void 0:a.timeConclusion)==null?void 0:Ut.timeLost)+" (hrs)",1)])):((ft=a==null?void 0:a.timeConclusion)==null?void 0:ft.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",FM,[e[122]||(e[122]=t.createElementVNode("div",null,"Time Lost",-1)),e[123]||(e[123]=t.createElementVNode("div",null,"=",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd),1),e[126]||(e[126]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",GM,[e[128]||(e[128]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.conclusionStatus)==="Lost"?"lost":((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",PM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",WM,[t.createElementVNode("div",LM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(Te=(Ae=l.report)==null?void 0:Ae.weather)!=null&&Te.noExtrapolation?(t.openBlock(),t.createElementBlock("span",ZM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",_M,[t.createElementVNode("div",JM,[e[134]||(e[134]=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",HM,[t.createElementVNode("div",XM,[t.createElementVNode("div",null,t.toDisplayString((ml=(Ja=l.report)==null?void 0:Ja.weather)!=null&&ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[129]||(e[129]=t.createElementVNode("div",{class:"line"},null,-1)),e[130]||(e[130]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[131]||(e[131]=t.createElementVNode("div",null,"x",-1)),e[132]||(e[132]=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[133]||(e[133]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",KM,[e[135]||(e[135]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(Ml=a.extend)==null?void 0:Ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",qM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",$M,[e[140]||(e[140]=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",uM,[t.createElementVNode("div",vM,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[137]||(e[137]=t.createElementVNode("div",null,"x",-1)),e[138]||(e[138]=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[139]||(e[139]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",tD,[e[145]||(e[145]=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",eD,[t.createElementVNode("div",aD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[141]||(e[141]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[142]||(e[142]=t.createElementVNode("div",null,"x",-1)),e[143]||(e[143]=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[144]||(e[144]=t.createElementVNode("div",null,"(f)",-1))])]),e[152]||(e[152]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:240px;" data-v-5d68a964><label data-v-5d68a964>Fuel Over-consumption</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(d)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(e)</div></div><div class="flex-space" style="width:200px;" data-v-5d68a964><label data-v-5d68a964>Fuel Saving</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(f)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(d)</div></div></div>',1)),((zl=(pl=a.extend)==null?void 0:pl.cp)==null?void 0:zl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",lD,[e[148]||(e[148]=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",oD,[t.createElementVNode("div",nD,[e[146]||(e[146]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[147]||(e[147]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(jl=l.report)==null?void 0:jl.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",iD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sD,[t.createElementVNode("div",dD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[236]||(e[236]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",cD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",rD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",ND,[e[158]||(e[158]=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",mD,[t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[155]||(e[155]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",DD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),e[154]||(e[154]=t.createElementVNode("div",null,"24",-1))]),e[156]||(e[156]=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[157]||(e[157]=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",gD,[e[165]||(e[165]=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",ID,[t.createElementVNode("div",ED,[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[159]||(e[159]=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[162]||(e[162]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",yD,[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",AD,[e[160]||(e[160]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[161]||(e[161]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[163]||(e[163]=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[164]||(e[164]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",TD,[e[172]||(e[172]=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",VD,[t.createElementVNode("div",xD,[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[166]||(e[166]=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[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",pD,[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[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),e[168]||(e[168]=t.createElementVNode("div",null,"24",-1))]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ro=(co=a.fuelConclusion)==null?void 0:co.fo)==null?void 0:ro.maxCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",zD,[e[179]||(e[179]=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",jD,[t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((mo=(No=l.report)==null?void 0:No.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[173]||(e[173]=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[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",UD,[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[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",fD,[((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",SD,[e[180]||(e[180]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[181]||(e[181]=t.createElementVNode("div",null,"=",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[183]||(e[183]=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[184]||(e[184]=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[185]||(e[185]=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)]),(So=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&So.distance?(t.openBlock(),t.createElementBlock("div",CD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",bD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1),e[186]||(e[186]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l.report)==null?void 0:Yo.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[189]||(e[189]=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",OD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[193]||(e[193]=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[194]||(e[194]=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[195]||(e[195]=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",hD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.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[196]||(e[196]=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?(sn=a==null?void 0:a.goodWx)==null?void 0:sn.distance:(dn=a==null?void 0:a.allWx)==null?void 0:dn.distance),1)]),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:rn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((mn=(Nn=a==null?void 0:a.fuelConclusion)==null?void 0:Nn.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[200]||(e[200]=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",QD,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",wD,[t.createElementVNode("div",RD,[e[201]||(e[201]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",BD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",FD,[t.createElementVNode("div",GD,[e[208]||(e[208]=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",PD,[t.createElementVNode("div",WD,[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[202]||(e[202]=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[205]||(e[205]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",LD,[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",ZD,[e[203]||(e[203]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Sn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Sn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[204]||(e[204]=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[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:On.entireCons)+" (mt)",1),e[207]||(e[207]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",_D,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",HD,[t.createElementVNode("div",null,t.toDisplayString((Yn=(hn=l.report)==null?void 0:hn.weather)!=null&&Yn.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[209]||(e[209]=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[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",XD,[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[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),e[211]||(e[211]=t.createElementVNode("div",null,"24",-1))]),e[213]||(e[213]=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[214]||(e[214]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",KD,[e[222]||(e[222]=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",$D,[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[216]||(e[216]=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[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",uD,[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[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",vD,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",tg,[e[223]||(e[223]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[224]||(e[224]=t.createElementVNode("div",null,"=",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[226]||(e[226]=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[227]||(e[227]=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[228]||(e[228]=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",eg,[e[229]||(e[229]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[230]||(e[230]=t.createElementVNode("div",null,"=",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.minCons),1),e[233]||(e[233]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ri=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:ri.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.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[235]||(e[235]=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",ag,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const og=Ve(cN,[["render",lg],["__scopeId","data-v-5d68a964"]]),ck="",ng={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?q.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,r,n,s,M,c,N,V,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((c=(M=this.report)==null?void 0:M.weather)==null?void 0:c.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},ig={class:"report-inventory"},sg={class:"section summary-section"},dg={class:"summary-block"},cg={class:"orm-report-table inventory-table"},rg={class:"label",rowspan:"4"},Ng={class:"section inventory-section"},mg={class:"orm-report-table inventory-table detail"},Mg=["colspan"],Dg={key:0,class:"label",colspan:"2"},gg={key:0,class:"label",rowspan:"2"},Ig={key:1,class:"label",rowspan:"2"},Eg={key:2,class:"label",rowspan:"2"},yg={key:3,class:"label",colspan:"2"},Ag={key:4,class:"label",rowspan:"2"},Tg={key:5,class:"label",colspan:"2"},Vg={key:6,class:"label",rowspan:"2"},xg={key:7,class:"label",rowspan:"2"},pg={key:8,class:"label",rowspan:"2"},zg={key:0,class:"label"},jg={key:1,class:"label"},kg={key:2,class:"label"},Ug={key:3,class:"label"},fg={class:"summary-tbody"};function Sg(o,e,l,r,n,s){var M;return t.openBlock(),t.createElementBlock("div",ig,[t.createElementVNode("div",sg,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",dg,[t.createElementVNode("table",cg,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((M=l.report)==null?void 0:M.segments,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",rg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((V=c==null?void 0:c.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=c==null?void 0:c.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=c==null?void 0:c.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=c==null?void 0:c.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=c==null?void 0:c.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=c==null?void 0:c.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=c==null?void 0:c.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=c==null?void 0:c.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((y=c==null?void 0:c.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((p=c==null?void 0:c.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((j=c==null?void 0:c.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((f=c==null?void 0:c.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=c==null?void 0:c.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=c==null?void 0:c.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((R=c==null?void 0:c.badWx)==null?void 0:R.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=c==null?void 0:c.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Q=c==null?void 0:c.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((P=c==null?void 0:c.excluded)==null?void 0:P.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((W=c==null?void 0:c.excluded)==null?void 0:W.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=c==null?void 0:c.excluded)==null?void 0:L.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",Ng,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> The &#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",mg,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:s.computeWxColspan},"ORM Weather Analysis",8,Mg),l.showFactor?(t.openBlock(),t.createElementBlock("th",Dg,"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",gg,[...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",Ig,[...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",Eg,[...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",yg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",Ag,[...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",Tg,"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",Vg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",xg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",pg,[...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",zg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",jg,[...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",kg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",Ug,[...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",fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(c.segLength?"no-border-bottom":"no-border")},t.toDisplayString(c.segLength?c.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",c.excluded?"excluded":c.goodWx?"good-wx":""])},t.toDisplayString(c.time),3),["B","E"].includes(c.abbrev)&&((V=c.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=c.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((k=(E=c.meteo)==null?void 0:E.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((T=(z=c.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((y=(U=(x=c.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((f=(j=(p=c.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:f.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((R=(w=(g=c.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:R.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((P=(Q=(S=c.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:P.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((L=(W=c.meteo)==null?void 0:W.current)==null?void 0:L.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((_=c.meteo)==null?void 0:_.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((J=c.meteo)==null?void 0:J.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((H=c.meteo)==null?void 0:H.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((X=c.meteo)==null?void 0:X.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Cg=Ve(ng,[["render",Sg],["__scopeId","data-v-dea0638a"]]),rk="",bg={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`${pt(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)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.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(ki.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(ki.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(ki.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,k,z,T,x,U;let o=[];const e=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const M=this.inventory.filter(y=>y.noon)||[],c=[];this.inventory.forEach((y,p)=>{var j,f;p===0&&c.push(y.utc),y.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(c.push(y.utc),c.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&c.push(y.utc)}),c.forEach((y,p)=>{if(p%2===0){const j=pt(c[p+1]).diff(pt(c[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(pt(c[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),M.forEach((y,p)=>{var f,g,w,R,S,Q,P,W,L,_,J,H,X,$;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(B=>B.slice(0,5)===y.utc.slice(5,10))&&o.push(j),p===M.length-1&&(o=o.filter(B=>B.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=y.noon)==null?void 0:f.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=y.cp)==null?void 0:w.fo)>n?(R=y.cp)==null?void 0:R.fo:n),s=Math.ceil(((S=y.noon)==null?void 0:S.dgoCons)>s?(Q=y.noon)==null?void 0:Q.dgoCons:s),s=Math.ceil(((P=y.cp)==null?void 0:P.dgo)>s?(W=y.cp)==null?void 0:W.dgo:s),l.push([j,(L=y.noon)==null?void 0:L.avgSpd,(_=y.noon)==null?void 0:_.foCons,(J=y.noon)==null?void 0:J.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.excluded?100:0]),p<M.length-1){const B=M[p+1];l.push([j,(H=B.noon)==null?void 0:H.avgSpd,(X=B.noon)==null?void 0:X.foCons,($=B.noon)==null?void 0:$.dgoCons,B.avgSpdCalc,B.cp.speed,B.goodWx&&!B.excluded?100:0,B.cp.dgo,B.cp.fo,B.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((y,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:r.dateTime,y:r.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:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(E=this.report)==null?void 0:E.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.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:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(V);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?r.noonAvgSpd:r.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:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],M=[];s.forEach((T,x)=>{var U,y;x===0&&M.push(T.utc),T.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(M.push(T.utc),M.push((y=s[x+1])==null?void 0:y.utc)),x===s.length-1&&M.push(T.utc)}),M.forEach((T,x)=>{if(x%2===0){const U=pt(M[x+1]).diff(pt(M[x]),"minute",!0);for(let y=0;y<=U+1;y++)e.push(this.computeUTCTime(pt(M[x]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((T,x)=>{var y,p,j,f,g,w,R,S,Q,P,W,L,_,J,H,X,$,B,et,at,Mt,Dt,gt,It,D,lt,ot,A,u,v;const U=this.computeUTCTime(T.utc,"MM-DD/HHmm[Z]");if(T.noon&&!o.some(G=>G.slice(0,5)===T.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(y=T.meteo)==null?void 0:y.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(w=(g=(f=T.meteo)==null?void 0:f.wave)==null?void 0:g.sig)==null?void 0:w.height:n),l.push([U,((R=T.noon)==null?void 0:R.windBF)||((Q=(S=T.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(W=(P=T.meteo)==null?void 0:P.wind)==null?void 0:W.scale,(_=(L=T.meteo)==null?void 0:L.wind)==null?void 0:_.direction,(J=T.noon)==null?void 0:J.seasHt,($=(X=(H=T.meteo)==null?void 0:H.wave)==null?void 0:X.sig)==null?void 0:$.height,T.dailyAvgCf??((B=l[l.length-1])==null?void 0:B[r.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<s.length-1){const G=s[x+1];l.push([U,((et=T.noon)==null?void 0:et.windBF)||((Mt=(at=T.meteo)==null?void 0:at.wind)==null?void 0:Mt.scale),(gt=(Dt=G.meteo)==null?void 0:Dt.wind)==null?void 0:gt.scale,(D=(It=G.meteo)==null?void 0:It.wind)==null?void 0:D.direction,(lt=G.noon)==null?void 0:lt.seasHt,(u=(A=(ot=T.meteo)==null?void 0:ot.wave)==null?void 0:A.sig)==null?void 0:u.height,G.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const c=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%c===0);let N=-2.5,V=2.5,a=1,E=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),E=Math.ceil(Math.abs(N)/a)+Math.ceil(Math.abs(V)/a)):(a=.5,N=Math.floor(this.findMinValue(l,6)/.5)*a,V=2.5,E=Math.abs(N)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:V,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,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(T,x)=>{if(T>=0)return T}}},{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:(T,x)=>{if(T>=0)return T},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.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:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},Og={class:"report-summary"},hg={class:"section chart-section"},Yg={class:"chart-block"},Qg={ref:"spdFoConsChart",class:"chart"},wg={ref:"spdDgoConsChart",class:"chart"},Rg={ref:"currChart",class:"chart"},Bg={class:"section map-section"},Fg={class:"map-block"},Gg={class:"flex-space"},Pg={class:"voyage-block bg-blue-light"},Wg={class:"flex-space label-block",style:{width:"100%"}},Lg={style:{"text-transform":"uppercase"}},Zg={class:"flex-space label-block",style:{width:"100%"}},_g={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Jg={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Hg={class:"flex-space label-block",style:{width:"100%"}},Xg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Kg={class:"flex-space label-block",style:{width:"100%"}},qg={class:"flex-end",style:{flex:"1"}},$g={class:"flex-end",style:{width:"160px"}},ug={class:"flex-space label-block",style:{width:"100%"}},vg={class:"flex-end",style:{flex:"1"}},tI={class:"flex-end",style:{width:"160px"}},eI={class:"flex-space label-block",style:{width:"100%"}},aI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},lI=["src"];function oI(o,e,l,r,n,s){var M,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,w,R,S,Q;return t.openBlock(),t.createElementBlock("div",Og,[t.createElementVNode("div",hg,[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",Yg,[t.createElementVNode("div",Qg,null,512),t.createElementVNode("div",wg,null,512),t.createElementVNode("div",Rg,null,512)])]),t.createElementVNode("div",Bg,[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",Fg,[t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,[t.createElementVNode("div",Wg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Lg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",Zg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",_g,t.toDisplayString((c=(M=l.report)==null?void 0:M.vessel)==null?void 0:c.name),1),t.createElementVNode("span",Jg,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",Hg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Xg,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",Kg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",qg,t.toDisplayString(((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.portName)||((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.name)),1),t.createElementVNode("span",$g,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",ug,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",vg,t.toDisplayString(((p=(y=l.report)==null?void 0:y.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",tI,t.toDisplayString(s.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",eI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",aI,t.toDisplayString((S=(R=l.report)==null?void 0:R.voyage)==null?void 0:S.loadCondition),1)])]),e[7]||(e[7]=t.createStaticVNode('<div class="legend-block" data-v-34b7edf0><div data-v-34b7edf0>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>08/12</div><div data-v-34b7edf0><div data-v-34b7edf0>08 - Day of the month</div><div data-v-34b7edf0>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--orm-black-6);" data-v-34b7edf0></i></div><div data-v-34b7edf0><div data-v-34b7edf0>Wind from N (000)</div><div data-v-34b7edf0>Each bard = 10 kts</div><div data-v-34b7edf0>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div data-v-34b7edf0>W 4</div><div data-v-34b7edf0>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-34b7edf0><div class="good-wx" data-v-34b7edf0>Date</div><div data-v-34b7edf0>Good weather days</div></div></div>',1))]),t.createElementVNode("img",{src:(Q=l.report)==null?void 0:Q.chartUrl,alt:""},null,8,lI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-34b7edf0> 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-34b7edf0> 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-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const nI=Ve(bg,[["render",oI],["__scopeId","data-v-34b7edf0"]]),Nk="",mk="",iI={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`${pt(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 N,V;let r="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(E=>{const k=`<p>${E}</p>`;r=r+k}),r=r+"</div>"):r=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),M=(n==null?void 0:n.offsetHeight)||0,c=(s==null?void 0:s.offsetHeight)||0;if(M<=c){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>