@idmui/extend 1.5.5 → 1.5.6

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(gt,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):(gt=typeof globalThis<"u"?globalThis:gt||self,t(gt["idmui-extend"]={},gt.Vue,gt["@wangeditor/editor-for-vue"],gt["@idmui/basic"],gt.moment,gt.echarts,gt["@idm-plugin/geo"],gt.axios,gt.MdEditorV3))})(this,function(gt,t,Yi,_a,yt,Us,q,hi,Qi){"use strict";function fs(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Oi=fs(Us),rk="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[c,n]of e)l[c]=n;return l},Ss={name:"IdmEditor",components:{Editor:Yi.Editor,Toolbar:Yi.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()}}},Cs={class:"editor-box"};function bs(o,e,l,c,n,d){const D=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cs,[t.withDirectives(t.createVNode(D,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=Ve(Ss,[["render",bs],["__scopeId","data-v-80104052"]]),Os={install(o){o.component("IdmEditor",cl)}},ck="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,Qs=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"})]))}}),ws=Qs;const Nk="",Rs={name:"PlanReport",components:{Editor:cl,IdmBrand:_a.IdmBrand,IdmLoading:_a.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${yt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,c){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${yt(o).utcOffset(c??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,c,n,d,D;if(e===0)return"-";{const r=yt((n=(c=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:c.speed)==null?void 0:n.eta).diff(yt((D=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,c,n,d,D,r,N;if(e===0)return"-";{const V=Number((d=(n=(c=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:c.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((N=(r=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:r.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const 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:c,sample:n}=o,d=n==null?void 0:n.wps,D=[];for(let r=0;r<(d==null?void 0:d.length);r++){const N=d[r],V=d[r-1];V&&(N.avgBearing=V.bearing),r===0&&(N.label=`${e}: ${l}`),D.push(N),N.suspend&&(c!=null&&c.useRouteParam)&&D.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`}),N.velocity&&(c!=null&&c.useRouteParam)&&(N.label=`Spd: ${N.velocity}`)}return D}},computeDegree(){return function(o,e,l){e=e%360;for(let c=0;c<17;c++)if(c*22.5+e+11.25>=360){let n=(16-c)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,D,r,N;const l=(N=(r=(D=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:D.speed)==null?void 0:r.sample)==null?void 0:N.hours,c=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(yt(n==null?void 0:n.eta).diff(yt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,c;let e=0;return(c=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||c.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,c,n,d,D,r,N,V,a,I,k,z,T,x,U,E,p,j;let e="";return(c=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&c.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((r=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:r.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((I=(a=o.meteo)==null?void 0:a.wind)==null?void 0:I.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((E=(U=o.meteo)==null?void 0:U.wind)==null?void 0:E.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,c,n,d,D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w;let e="";return(c=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&c.sigWv&&((D=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:D.height)>=((N=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(I=o.meteo)==null?void 0:I.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":(E=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&E.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}},computedVisClass(){return o=>{var l,c;let e="";return((l=o.meteo)==null?void 0:l.visibility)<=2?e="bg-severe":((c=o.meteo)==null?void 0:c.visibility)<=5&&(e="bg-heavy"),e}},isArctic(){var o,e,l,c;return(c=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:c.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=Oi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,j,f,g,w,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(w=(g=(f=(j=(p=(E=this.plan)==null?void 0:E.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 W,L,Z,J,H,X,K,$,F,M;const Q=S.meteo;if(Q){const u=yt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(u),c=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>c?(J=(Z=Q.wave)==null?void 0:Z.sig)==null?void 0:J.height:c),e.push([u,(H=Q.wind)==null?void 0:H.kts,(K=(X=Q.wave)==null?void 0:X.sig)==null?void 0:K.height,($=Q.wind)==null?void 0:$.direction,(F=Q.wind)==null?void 0:F.degree,(M=Q.wind)==null?void 0:M.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),d=Math.max(...e.map(S=>S[l.windSpeed])),D=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(d/5/5)*5,a=Math.ceil(c/5/.5)*.5,I=Math.ceil((r-D)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=D+5*I,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval: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:D,max:x,splitNumber:5,interval:I,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Bs={class:"orm-plan-report"},Fs={key:0,class:"loading-block"},Gs={class:"info-block"},Ps={class:"col"},Ws={class:"label-block"},Ls={class:"text"},Zs={class:"label-block"},_s={class:"text"},Js={key:0},Hs={class:"label-block"},Xs={class:"text"},Ks={class:"col"},qs={class:"label-block"},$s={key:0},us={key:1},vs={style:{"margin-left":"16px"}},tr={class:"label-block"},er={key:0},ar={key:1},lr={style:{"margin-left":"16px"}},or={class:"label-block"},nr={class:"text"},ir={class:"section chart-section"},dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},sr={style:{"margin-right":"8px"}},rr=["src"],cr=["src"],Nr={key:1,class:"empty"},mr={class:"section comparison-section"},Mr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dr={key:0},gr=["rowspan"],Ir={key:0},Er={key:1},yr={rowspan:"2"},Ar={rowspan:"2"},Tr={key:0},Vr={key:1},xr={rowspan:"1"},pr={key:0},zr={rowspan:"2"},jr={rowspan:"2"},kr={rowspan:"2"},Ur={key:0},fr={key:0},Sr=["rowspan"],Cr={key:0},br={rowspan:"1"},Or={key:0},hr={key:0},Yr={key:1},Qr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wr={key:0},Rr={key:0,class:"section waypoint-section"},Br={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fr={class:"bg-block"},Gr={class:"block-title"},Pr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wr=["onClick"],Lr={class:"advisory bg-blue-light-2"},Zr=["innerHTML"],_r={class:"major-waypoint"},Jr={class:"major-header bg-blue-light-2"},Hr={key:0,class:"cell-item flex"},Xr={key:1,class:"cell-item flex"},Kr={class:"major-body"},qr={class:"cell-item flex",style:{flex:"2.5"}},$r={key:0,class:"flex-center"},ur={key:1,class:"flex-center"},vr={key:0,style:{"margin-left":"3px"}},tc={class:"cell-item flex",style:{flex:"2"}},ec={key:0,style:{"margin-left":"4px","font-weight":"600"}},ac={key:1,style:{"margin-left":"4px","font-weight":"600"}},lc={key:0,class:"cell-item flex offset"},oc={key:1,class:"cell-item flex nbsp"},nc={key:2,class:"cell-item flex offset"},ic={key:3,class:"cell-item flex nbsp"},dc={key:0,class:"cell-item flex offset"},sc={key:1,class:"cell-item flex nbsp"},rc={key:0,class:"cell-item flex offset"},cc={key:1,class:"cell-item flex nbsp"},Nc={key:6,class:"cell-item flex offset"},mc={key:7,class:"cell-item flex nbsp"},Mc={class:"section forecast-section"},Dc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},gc={class:"bg-block"},Ic={class:"block-title"},Ec={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},yc=["onClick"],Ac={class:"echart-block",style:{"page-break-inside":"avoid"}},Tc={ref:"echart",class:"echart"},Vc={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},xc={style:{"page-break-inside":"avoid"}},pc={class:"orm-report-table",style:{"font-size":"12px"}},zc={key:0,rowspan:"2",colspan:"1"},jc=["colspan"],kc={key:1,colspan:"2"},Uc={key:0},fc={key:1},Sc={key:2},Cc={style:{padding:"8px 0"}},bc={class:"flex-center"},Oc={key:0,class:"degree-box"},hc={key:1},Yc={key:1},Qc={key:0,class:"degree-box"},wc={key:1},Rc={class:""},Bc={key:0,class:"degree-box"},Fc={key:1},Gc={key:0,class:"degree-box"},Pc={key:1},Wc={key:2},Lc={key:3};function Zc(o,e,l,c,n,d){var a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt,y,wt,Ct,bt,Ot,ht,Yt,Qt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,Dt,at,Gt,re,ce,Ne,me,Me,De,It,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl;const D=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bs,[t.createVNode(D,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Fs,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[t.createElementVNode("div",Ws,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ls,t.toDisplayString((z=(k=(I=l.plan)==null?void 0:I.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zs,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_s,[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=(E=l.plan)==null?void 0:E.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Js,"("+t.toDisplayString((S=(B=(w=(g=l.plan)==null?void 0:g.voyage)==null?void 0:w.vessel)==null?void 0:B.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hs,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Ks,[t.createElementVNode("div",qs,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(X=(H=(J=l.plan)==null?void 0:J.leg)==null?void 0:H.departure)!=null&&X.name?(t.openBlock(),t.createElementBlock("span",$s,t.toDisplayString((F=($=(K=l.plan)==null?void 0:K.leg)==null?void 0:$.departure)==null?void 0:F.name),1)):(t.openBlock(),t.createElementBlock("span",us,t.toDisplayString(d.computePosition((u=(M=l.plan)==null?void 0:M.leg)==null?void 0:u.departure)),1)),t.createElementVNode("span",vs,t.toDisplayString(d.computeUTCTime(((nt=(ot=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ot.departure)==null?void 0:nt.atd)||((st=(dt=(it=l.plan)==null?void 0:it.leg)==null?void 0:dt.departure)==null?void 0:st.etd)||((tt=(v=(A=(rt=l.plan)==null?void 0:rt.speeds)==null?void 0:A[n.speedIndex])==null?void 0:v.speed)==null?void 0:tt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(At=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&At.name?(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString((xt=(Vt=(Tt=l.plan)==null?void 0:Tt.leg)==null?void 0:Vt.destination)==null?void 0:xt.name),1)):(t.openBlock(),t.createElementBlock("span",ar,t.toDisplayString(d.computePosition((St=(Ut=l.plan)==null?void 0:Ut.leg)==null?void 0:St.destination)),1)),t.createElementVNode("span",lr,t.toDisplayString(d.computeUTCTime(((wt=(y=(Bt=(Rt=l.plan)==null?void 0:Rt.speeds)==null?void 0:Bt[n.speedIndex])==null?void 0:y.speed)==null?void 0:wt.ata)||((ht=(Ot=(bt=(Ct=l.plan)==null?void 0:Ct.speeds)==null?void 0:bt[n.speedIndex])==null?void 0:Ot.speed)==null?void 0:ht.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",or,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nr,t.toDisplayString((Qt=(Yt=l.plan)==null?void 0:Yt.voyage)==null?void 0:Qt.loadCondition),1)])])]),t.createElementVNode("div",ir,[t.createElementVNode("div",dr,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",sr,"FCST fr Pos. "+t.toDisplayString(d.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,rr)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,cr)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nr,[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)=>d.handleRefresh&&d.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mr,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mr,[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)),d.showCost?(t.openBlock(),t.createElementBlock("th",Dr,[...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:d.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,gr),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)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...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),d.showCost?(t.openBlock(),t.createElementBlock("th",Er,[...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(d.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,ft)=>{var de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h;return t.openBlock(),t.createElementBlock(t.Fragment,{key:ft},[t.createElementVNode("tr",null,[t.createElementVNode("td",yr,t.toDisplayString(ft+1),1),t.createElementVNode("td",Ar,t.toDisplayString((se=(de=m.speed)==null?void 0:de.lane)==null?void 0:se.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tr,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",Vr,[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",xr,[t.createElementVNode("span",null,t.toDisplayString(d.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",pr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime((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,(da=(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:da.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((sa=m.speed)==null?void 0:sa.eta)),1)]),t.createElementVNode("td",zr,t.toDisplayString(d.computeSuspend(m.speed)),1),t.createElementVNode("td",jr,t.toDisplayString(d.roundPrecision((ra=m.speed)==null?void 0:ra.totalFoCons,3)),1),t.createElementVNode("td",kr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ca=m.speed)==null?void 0:ca.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Ur," + "+t.toDisplayString(d.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",fr,t.toDisplayString((Ia=d.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:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,ft)),9,Sr),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",Cr,"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",br,[t.createElementVNode("span",null,t.toDisplayString(d.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",Or," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",hr,t.toDisplayString(d.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(d.roundPrecision(((C=(s=m==null?void 0:m.speed)==null?void 0:s.cost)==null?void 0:C.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",Yr,t.toDisplayString(d.computeCostDiff(l.plan,ft)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((b=m.speed)==null?void 0:b.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((O=m.speed)==null?void 0:O.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((h=m.speed)==null?void 0:h.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qr,[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)),d.showCost?(t.openBlock(),t.createElementBlock("span",wr,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=d.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((Dt=d.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:Dt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((re=d.roundPrecision((Gt=(at=l.plan)==null?void 0:at.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:re.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=(ce=l.plan)==null?void 0:ce.voyage)!=null&&Ne.showWpts?(t.openBlock(),t.createElementBlock("div",Rr,[t.createElementVNode("div",Br,[t.createElementVNode("div",Fr,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gr,"Advisory & Major Waypoint of Route "+t.toDisplayString((It=(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:It.name),1)]),((pe=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:pe.length)>1?(t.openBlock(),t.createElementBlock("div",Pr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ze=l.plan)==null?void 0:ze.speeds,(m,ft)=>{var de,se;return t.openBlock(),t.createElementBlock("div",{key:ft,class:t.normalizeClass(["route-item",n.speedIndex===ft?"active":""]),onClick:ge=>{n.speedIndex=ft,d.renderEchart()}},t.toDisplayString((se=(de=m.speed)==null?void 0:de.lane)==null?void 0:se.name),11,Wr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lr,[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=>d.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>d.handleEdit&&d.handleEdit(...m)),innerHTML:n.advisory},null,40,Zr))]),t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-9bdb650d>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-9bdb650d>Time</div><div class="cell-item flex" data-v-9bdb650d>Nav</div><div class="cell-item flex" data-v-9bdb650d>Dist <span class="text-units" data-v-9bdb650d>(nm)</span></div>',4)),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hr,[...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",Xr,[...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",Kr,[(Ce=(Se=l.plan)==null?void 0:Se.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((he=(Oe=(be=l.plan)==null?void 0:be.speeds)==null?void 0:Oe[n.speedIndex])==null?void 0:he.speed),(m,ft)=>{var de,se,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:ft,class:"cell-row"},[t.createElementVNode("div",qr,[m.isResume?(t.openBlock(),t.createElementBlock("div",$r,"Resume")):(t.openBlock(),t.createElementBlock("div",ur,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vr,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tc,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",ec,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",ac,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),ft?(t.openBlock(),t.createElementBlock("div",lc,t.toDisplayString(d.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",oc)),ft?(t.openBlock(),t.createElementBlock("div",nc,t.toDisplayString(d.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ic)),(se=(de=l.plan)==null?void 0:de.voyage)!=null&&se.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[ft?(t.openBlock(),t.createElementBlock("div",dc,t.toDisplayString(d.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",sc))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[ft?(t.openBlock(),t.createElementBlock("div",rc,t.toDisplayString(d.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cc))],64)):t.createCommentVNode("",!0),ft?(t.openBlock(),t.createElementBlock("div",Nc,t.toDisplayString(d.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mc))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mc,[(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",Dc,[t.createElementVNode("div",gc,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",Ic," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Ja=(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:Ja.name),1)]),((Xa=(Ha=l.plan)==null?void 0:Ha.speeds)==null?void 0:Xa.length)>1?(t.openBlock(),t.createElementBlock("div",Ec,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ka=l.plan)==null?void 0:Ka.speeds,(m,ft)=>{var de,se;return t.openBlock(),t.createElementBlock("div",{key:ft,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===ft?"active":""]),onClick:ge=>{n.speedIndex=ft,d.renderEchart()}},t.toDisplayString((se=(de=m==null?void 0:m.speed)==null?void 0:de.lane)==null?void 0:se.name),11,yc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ac,[t.createElementVNode("div",Tc,null,512)]),t.createElementVNode("div",Vc," * "+t.toDisplayString(d.computeModel((ua=($a=(qa=l.plan)==null?void 0:qa.speeds)==null?void 0:$a[n.speedIndex])==null?void 0:ua.speed)),1)]),t.createElementVNode("div",xc,[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",pc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),(tl=(va=l.plan)==null?void 0:va.voyage)!=null&&tl.showVis?(t.openBlock(),t.createElementBlock("th",zc,[...e[51]||(e[51]=[t.createTextVNode("Vis.",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,jc),e[54]||(e[54]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[57]||(e[57]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),d.isArctic?(t.openBlock(),t.createElementBlock("th",kc,"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",Uc,"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)),d.isArctic?(t.openBlock(),t.createElementBlock("th",fc,[...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),d.isArctic?(t.openBlock(),t.createElementBlock("th",Sc,[...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((rl=(sl=(dl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:dl.speed)==null?void 0:sl.sample)==null?void 0:rl.hours,(m,ft)=>{var de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h,Y,R,P,_,et;return t.openBlock(),t.createElementBlock("tr",{key:ft},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(m.eta)),1),t.createElementVNode("td",Cc,[t.createElementVNode("div",bc,t.toDisplayString(d.computeLat(m.lat))+", "+t.toDisplayString(d.computeLng(m.lng)),1)]),(se=(de=l.plan)==null?void 0:de.voyage)!=null&&se.showVis?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(d.computedVisClass(m))},t.toDisplayString(d.roundPrecision((ge=m.meteo)==null?void 0:ge.visibility,1)),3)):t.createCommentVNode("",!0),t.createElementVNode("td",null,[((Ge=(ye=m.meteo)==null?void 0:ye.wind)==null?void 0:Ge.kts)!==null&&((We=(Pe=m.meteo)==null?void 0:Pe.wind)!=null&&We.direction)?(t.openBlock(),t.createElementBlock("div",Oc,[t.createElementVNode("span",null,t.toDisplayString((Ze=(Le=m.meteo)==null?void 0:Le.wind)==null?void 0:Ze.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Je=(_e=m.meteo)==null?void 0:_e.wind)==null?void 0:Je.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",hc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(m))},t.toDisplayString(d.roundPrecision((Xe=(He=m.meteo)==null?void 0:He.wind)==null?void 0:Xe.kts,1)),3),(qe=(Ke=l.plan)==null?void 0:Ke.voyage)!=null&&qe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString((ue=($e=m.meteo)==null?void 0:$e.wind)==null?void 0:ue.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.wd)==null?void 0:ea.height,1)),1),t.createElementVNode("td",null,[((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)==null?void 0:oa.height)!==null&&((da=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)!=null&&da.direction)?(t.openBlock(),t.createElementBlock("div",Qc,[t.createElementVNode("span",null,t.toDisplayString((ca=(ra=(sa=m.meteo)==null?void 0:sa.wave)==null?void 0:ra.swell)==null?void 0:ca.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",wc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.period,0)),1),t.createElementVNode("td",Rc,[((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)==null?void 0:xa.height)!==null&&((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)!=null&&ja.direction)?(t.openBlock(),t.createElementBlock("div",Bc,[t.createElementVNode("span",null,t.toDisplayString((fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Fc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(m))},t.toDisplayString(d.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.period,0)),1),t.createElementVNode("td",null,[((Fa=(Ba=m.meteo)==null?void 0:Ba.current)==null?void 0:Fa.kts)!==null&&((Pa=(Ga=m.meteo)==null?void 0:Ga.current)!=null&&Pa.direction)?(t.openBlock(),t.createElementBlock("div",Gc,[t.createElementVNode("span",null,t.toDisplayString((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(C=(s=m.meteo)==null?void 0:s.current)==null?void 0:C.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Pc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((O=(b=m.meteo)==null?void 0:b.current)==null?void 0:O.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(m.cFactor,1)),1),d.isArctic?(t.openBlock(),t.createElementBlock("td",Wc,t.toDisplayString(d.roundPrecision((Y=(h=m.meteo)==null?void 0:h.ice)==null?void 0:Y.sit,2)),1)):t.createCommentVNode("",!0),d.isArctic?(t.openBlock(),t.createElementBlock("td",Lc,t.toDisplayString(((P=(R=m.meteo)==null?void 0:R.ice)==null?void 0:P.sic)>=0?d.roundPrecision(((et=(_=m.meteo)==null?void 0:_.ice)==null?void 0:et.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const wi=Ve(Rs,[["render",Zc],["__scopeId","data-v-9bdb650d"]]),_c={install(o){o.component("PlanReport",wi)}},mk="",Jc={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`${yt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${yt(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}}}},Hc={class:"cover-box"},Xc={class:"cover-content"},Kc={class:"cover-title"},qc={class:"cover-info"},$c={class:"info-item"},uc={class:"info-item"},vc={class:"info-item"},tN={style:{"font-weight":"600"}},eN={class:"info-item"},aN={style:{"font-weight":"600"}},lN={class:"info-item"},oN={class:"info-item"},nN={class:"info-item"},iN={class:"info-item"},dN={class:"info-item"},sN={class:"text"};function rN(o,e,l,c,n,d){var D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w,B;return t.openBlock(),t.createElementBlock("div",Hc,[t.createElementVNode("div",Xc,[t.createElementVNode("div",Kc,t.toDisplayString(l.name),1),t.createElementVNode("div",qc,[t.createElementVNode("div",$c,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(D=l.report)==null?void 0:D.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",uc,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",vc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",tN,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",eN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",aN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",lN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((I=(a=l.report)==null?void 0:a.departure)==null?void 0:I.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",oN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(U=l.report)==null?void 0:U.arrival)==null?void 0:E.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",iN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",dN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",sN,t.toDisplayString((B=(w=l.report)==null?void 0:w.voyage)==null?void 0:B.loadCondition),1)])])])])}const cN=Ve(Jc,[["render",rN],["__scopeId","data-v-c57d4b58"]]),Mk="",NN={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return yt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=yt(o).diff(yt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${yt(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,c)=>{var D,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:yt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+yt(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 d=(r=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:r.hours.filter(N=>N.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mN={class:"report-summary"},MN={class:"section weather-section"},DN={class:"definition bg-blue-light-2"},gN={style:{"line-height":"1.5"}},IN={class:"section summary-section"},EN={class:"phase-box"},yN={class:"phase-index"},AN={class:"phase-position"},TN={class:"phase-position"},VN={class:"phase-cp"},xN={class:"orm-report-table"},pN={key:0},zN={class:"phase-conclusion"},jN={class:"item-conclusion bg-blue-light-2",style:{flex:"0.9"}},kN={class:"value align-left"},UN={key:0,class:"text-secondary align-right"},fN={key:0},SN={key:1},CN={key:2},bN={key:1,class:"text-secondary"},ON={key:2,class:"value"},hN={key:0},YN={class:"gain"},QN={key:1},wN={class:"lost"},RN={key:2},BN={class:"item-conclusion bg-blue-light-2"},FN={class:"value align-left"},GN={key:0,class:"unit",style:{"font-size":"12px"}},PN={key:0,class:"text-secondary"},WN={key:0},LN={key:1},ZN={key:2},_N={key:1,class:"text-secondary"},JN={key:2,class:"value"},HN={key:0},XN={class:"gain"},KN={key:1},qN={class:"lost"},$N={key:2},uN={class:"item-conclusion bg-blue-light-2"},vN={class:"value align-left"},tm={key:0,class:"text-secondary"},em={key:0},am={key:1},lm={key:2},om={key:1,class:"text-secondary"},nm={key:2,class:"value"},im={key:0},dm={class:"gain"},sm={key:1},rm={class:"lost"},cm={key:2},Nm={key:0,class:"exclusion-block"},mm={style:{margin:"8px 0"}},Mm={class:"orm-report-table"},Dm=["innerHTML"],gm={class:"section segment-section"},Im={class:"segment-summary"},Em={class:"segment-header"},ym={class:"segment-index"},Am={class:"cp-box"},Tm={class:"segment-position"},Vm={class:"segment-position"},xm={class:"orm-report-table"},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={class:"good-wx"},Qm={class:"good-wx"},wm={class:"good-wx"},Rm={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Bm={key:0},Fm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Gm={key:2,class:"segment-speed"},Pm={class:"row"},Wm={class:"speed-right row"},Lm={class:"speed"},Zm={key:1,class:"speed"},_m={key:0,class:"speed"},Jm={class:"speed"},Hm={class:"speed"},Xm={class:"speed"},Km={key:0,class:"under"},qm={key:1,class:"over"},$m={class:"row"},um={class:"speed-right formula flex-space"},vm={key:0},tM={key:3,class:"segment-speed"},eM={class:"row"},aM={class:"speed-right row"},lM={class:"speed"},oM={class:"speed"},nM={key:0,class:"under"},iM={key:1,class:"over"},dM={class:"row"},sM={class:"speed-right formula row"},rM={class:"segment-formula"},cM={class:"sub-title"},NM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},mM={class:"formula-block"},MM={class:"formula-item flex-evenly bg-blue-light"},DM={class:"formula-right flex-evenly"},gM={class:"fraction",style:{width:"240px"}},IM={class:"formula-item flex-center bg-blue-light"},EM={class:"formula-left flex-space"},yM={class:"formula-right flex-evenly"},AM={class:"fraction",style:{width:"240px"}},TM={class:"formula-item flex-center bg-blue-light"},VM={class:"formula-left flex-space"},xM={class:"formula-right flex-evenly"},pM={class:"fraction",style:{width:"240px"}},zM={class:"formula-desc"},jM={class:"flex-end"},kM={class:"flex-end"},UM={class:"flex-end"},fM={key:0,class:"formula-block"},SM={class:"formula-item flex-evenly bg-blue-light"},CM={class:"formula-right flex-evenly"},bM={class:"fraction",style:{width:"200px"}},OM={class:"formula-item flex-center bg-blue-light"},hM={class:"formula-left flex-space"},YM={class:"formula-right flex-evenly"},QM={class:"fraction",style:{width:"200px"}},wM={class:"formula-item flex-center bg-blue-light"},RM={class:"formula-left flex-space"},BM={class:"formula-right flex-evenly"},FM={class:"fraction",style:{width:"200px"}},GM={class:"formula-item formula-conclusion bg-blue-light"},PM={key:0,class:"flex-evenly",style:{width:"500px"}},WM={key:1,class:"flex-evenly",style:{width:"500px"}},LM={class:"flex-center"},ZM={key:1,class:"formula-conclusion bg-blue-light"},_M={class:"segment-formula"},JM={class:"sub-title"},HM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},XM={class:"formula-block"},KM={class:"formula-item flex-evenly bg-blue-light"},qM={class:"formula-right flex-evenly"},$M={class:"fraction",style:{width:"240px"}},uM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},vM={key:0,class:"flex-end text-tips"},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:"200px"}},iD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},sD={class:"fraction",style:{width:"300px"}},rD={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},mD={class:"sub-title"},MD={key:0,class:"formula-block"},DD={key:0,class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"60px"}},ED={class:"fraction",style:{width:"60px"}},yD={class:"formula-item flex-evenly bg-blue-light"},AD={class:"formula-right flex-evenly"},TD={class:"fraction",style:{width:"150px"}},VD={class:"fraction",style:{width:"150px"}},xD={key:0},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},kD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item flex-evenly bg-blue-light"},fD={class:"formula-right flex-evenly"},SD={class:"fraction",style:{width:"150px"}},CD={class:"fraction",style:{width:"150px"}},bD={class:"formula-item formula-conclusion bg-blue-light"},OD={class:"flex-evenly",style:{width:"500px"}},hD={key:0,class:"flex-evenly"},YD={class:"fraction"},QD={class:"flex-evenly",style:{width:"700px"}},wD={key:0,class:"flex-evenly",style:{width:"500px"}},RD={class:"fraction",style:{width:"140px"}},BD={key:1,class:"formula-item formula-conclusion bg-blue-light"},FD={class:"header-block"},GD={class:"bg-block"},PD={class:"block-title"},WD={key:0,class:"formula-block"},LD={class:"formula-item flex-evenly bg-blue-light"},ZD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"150px"}},JD={class:"fraction",style:{width:"150px"}},HD={key:0},XD={class:"formula-item flex-evenly bg-blue-light"},KD={class:"formula-right flex-evenly"},qD={class:"fraction",style:{width:"150px"}},$D={class:"fraction",style:{width:"150px"}},uD={class:"formula-item flex-evenly bg-blue-light"},vD={class:"formula-right flex-evenly"},t1={class:"fraction",style:{width:"150px"}},e1={class:"fraction",style:{width:"150px"}},a1={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},l1={key:0,class:"flex-evenly",style:{width:"500px"}},o1={key:1,class:"flex-evenly",style:{width:"700px"}},n1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function i1(o,e,l,c,n,d){var r,N,V;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",mN,[t.createElementVNode("div",MN,[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",DN,[t.createElementVNode("div",gN,t.toDisplayString(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",IN,[e[33]||(e[33]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,I)=>{var k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+I,class:"segment-box"},[t.createElementVNode("div",EN,[t.createElementVNode("div",yN,"Seg."+t.toDisplayString(I+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(y,wt)=>{var Ct,bt,Ot,ht,Yt,Qt;return t.openBlock(),t.createElementBlock("div",{key:wt,class:"phase-row text-secondary"},[t.createElementVNode("div",AN,[t.createElementVNode("span",null,t.toDisplayString(((Ct=y==null?void 0:y.departure)==null?void 0:Ct.portName)||((bt=y.departure)==null?void 0:bt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Ot=y==null?void 0:y.departure)==null?void 0:Ot.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",TN,[t.createElementVNode("span",null,t.toDisplayString(((ht=y==null?void 0:y.arrival)==null?void 0:ht.portName)||((Yt=y.arrival)==null?void 0:Yt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Qt=y==null?void 0:y.arrival)==null?void 0:Qt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",VN,[t.createElementVNode("table",xN,[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(d.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(E=a==null?void 0:a.extend)==null?void 0:E.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((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(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((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(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(B=l.report)==null?void 0:B.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",pN,t.toDisplayString((W=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:W.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",zN,[t.createElementVNode("div",jN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",kN,[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",UN,[((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",fN,"Time Gained")):((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",SN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",CN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",ON,[((J=a==null?void 0:a.timeConclusion)==null?void 0:J.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",hN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",YN,t.toDisplayString((H=a==null?void 0:a.timeConclusion)==null?void 0:H.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((X=a==null?void 0:a.timeConclusion)==null?void 0:X.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",QN,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",wN,t.toDisplayString((K=a==null?void 0:a.timeConclusion)==null?void 0:K.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",RN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",BN,[e[26]||(e[26]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",FN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1)),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("span",GN,[e[18]||(e[18]=t.createTextVNode("(HSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3)),1),e[19]||(e[19]=t.createTextVNode(" / LSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3)),1),e[20]||(e[20]=t.createTextVNode(") ",-1))])):t.createCommentVNode("",!0)]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",PN,[((F=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",WN,"FO Saving")):((u=(M=a==null?void 0:a.fuelConclusion)==null?void 0:M.fo)==null?void 0:u.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",LN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",ZN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",JN,[((ot=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.fo)==null?void 0:ot.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",HN,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",XN,t.toDisplayString((it=(nt=a==null?void 0:a.fuelConclusion)==null?void 0:nt.fo)==null?void 0:it.saving),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((st=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:st.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",KN,[e[24]||(e[24]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",qN,t.toDisplayString((A=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:A.overCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$N,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uN,[e[32]||(e[32]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",vN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",tm,[((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.dgo)==null?void 0:tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",em,"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",am,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",lm,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",om,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",nm,[((Tt=(At=a==null?void 0:a.fuelConclusion)==null?void 0:At.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",im,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dm,t.toDisplayString((xt=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:xt.saving),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((St=(Ut=a==null?void 0:a.fuelConclusion)==null?void 0:Ut.dgo)==null?void 0:St.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",sm,[e[30]||(e[30]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",rm,t.toDisplayString((Bt=(Rt=a==null?void 0:a.fuelConclusion)==null?void 0:Rt.dgo)==null?void 0:Bt.overCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",cm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[34]||(e[34]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[38]||(e[38]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",Nm,[e[36]||(e[36]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[37]||(e[37]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",mm,[t.createElementVNode("table",Mm,[e[35]||(e[35]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I},[t.createElementVNode("td",null,t.toDisplayString(I+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.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(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,Dm))],2)],2),t.createElementVNode("div",gm,[e[240]||(e[240]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,I)=>{var k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt,y,wt,Ct,bt,Ot,ht,Yt,Qt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,Dt,at,Gt,re,ce,Ne,me,Me,De,It,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl,m,ft,de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h,Y,R,P,_,et,ct,Nt,mt,Mt,pt,zt,jt,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Za,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,fl,Sl,Cl,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,ro,co,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,dn,sn,rn,cn,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,di,si,ri,ci,Ni,mi,Mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi;return t.openBlock(),t.createElementBlock("div",{key:I,class:"segment-block"},[t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("div",ym,"Voyage Analysis Seg. "+t.toDisplayString(I+1),1),t.createElementVNode("div",Am," CP Speed about: "+t.toDisplayString((z=(k=a.extend)==null?void 0:k.cp)==null?void 0:z.speed)+"kts, FO about: "+t.toDisplayString((x=(T=a==null?void 0:a.extend)==null?void 0:T.cp)==null?void 0:x.fo)+"mt, DO about: "+t.toDisplayString((E=(U=a==null?void 0:a.extend)==null?void 0:U.cp)==null?void 0:E.dgo)+"mt ",1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((p=a==null?void 0:a.extend)==null?void 0:p.segTimes,(xe,Ol)=>{var Nl,bl,ji,ki,Ui,fi;return t.openBlock(),t.createElementBlock("div",{key:Ol,class:"segment-row text-secondary"},[t.createElementVNode("div",Tm,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((bl=xe.departure)==null?void 0:bl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ji=xe==null?void 0:xe.departure)==null?void 0:ji.utcTime))+")",1)]),e[39]||(e[39]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(((ki=xe==null?void 0:xe.arrival)==null?void 0:ki.portName)||((Ui=xe.arrival)==null?void 0:Ui.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((fi=xe==null?void 0:xe.arrival)==null?void 0:fi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",xm,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",pm,t.toDisplayString((f=(j=a==null?void 0:a.goodWx)==null?void 0:j.outEca)==null?void 0:f.distance),1),t.createElementVNode("td",zm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.inEca)==null?void 0:w.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(B=a==null?void 0:a.allWx)==null?void 0:B.outEca)==null?void 0:S.distance),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.inEca)==null?void 0:W.distance),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",jm,t.toDisplayString((Z=(L=a==null?void 0:a.goodWx)==null?void 0:L.outEca)==null?void 0:Z.time),1),t.createElementVNode("td",km,t.toDisplayString((H=(J=a==null?void 0:a.goodWx)==null?void 0:J.inEca)==null?void 0:H.time),1),t.createElementVNode("td",null,t.toDisplayString((K=(X=a==null?void 0:a.allWx)==null?void 0:X.outEca)==null?void 0:K.time),1),t.createElementVNode("td",null,t.toDisplayString((F=($=a==null?void 0:a.allWx)==null?void 0:$.inEca)==null?void 0:F.time),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",Um,t.toDisplayString(((u=(M=a==null?void 0:a.goodWx)==null?void 0:M.outEca)==null?void 0:u.avgSpd)||"--"),1),t.createElementVNode("td",fm,t.toDisplayString(((ot=(lt=a==null?void 0:a.goodWx)==null?void 0:lt.inEca)==null?void 0:ot.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((it=(nt=a==null?void 0:a.allWx)==null?void 0:nt.outEca)==null?void 0:it.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((st=(dt=a==null?void 0:a.allWx)==null?void 0:dt.inEca)==null?void 0:st.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((A=(rt=a==null?void 0:a.goodWx)==null?void 0:rt.outEca)==null?void 0:A.sumFoCons)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.inEca)==null?void 0:tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(G=a==null?void 0:a.allWx)==null?void 0:G.outEca)==null?void 0:Et.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(At=a==null?void 0:a.allWx)==null?void 0:At.inEca)==null?void 0:Tt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((xt=(Vt=a==null?void 0:a.goodWx)==null?void 0:Vt.outEca)==null?void 0:xt.avgFoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((St=(Ut=a==null?void 0:a.goodWx)==null?void 0:Ut.inEca)==null?void 0:St.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.allWx)==null?void 0:Rt.outEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(y=a==null?void 0:a.allWx)==null?void 0:y.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hm,t.toDisplayString(((bt=(Ct=a==null?void 0:a.goodWx)==null?void 0:Ct.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",Ym,t.toDisplayString(((ht=(Ot=a==null?void 0:a.goodWx)==null?void 0:Ot.inEca)==null?void 0:ht.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.inEca)==null?void 0:Ht.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Qm,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.goodWx)==null?void 0:Xt.outEca)==null?void 0:Kt.avgDgoCons)||"--"),1),t.createElementVNode("td",wm,t.toDisplayString((($t=(qt=a==null?void 0:a.goodWx)==null?void 0:qt.inEca)==null?void 0:$t.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((vt=(ut=a==null?void 0:a.allWx)==null?void 0:ut.outEca)==null?void 0:vt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ee=(te=a==null?void 0:a.allWx)==null?void 0:te.inEca)==null?void 0:ee.avgDgoCons)||"--"),1)])])]),(ae=a==null?void 0:a.goodWx)!=null&&ae.distance?(t.openBlock(),t.createElementBlock("table",Rm,[e[49]||(e[49]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[I],(xe,Ol)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ol},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,bl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:bl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Bm,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[48]||(e[48]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Nl.utc,d.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(le=n.exclusion[I])!=null&&le.time?(t.openBlock(),t.createElementBlock("div",Fm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(oe=a==null?void 0:a.goodWx)!=null&&oe.distance?(t.openBlock(),t.createElementBlock("div",Gm,[t.createElementVNode("div",Pm,[e[59]||(e[59]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Wm,[(ie=(ne=l.report)==null?void 0:ne.weather)!=null&&ie.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(It=(De=l.report)==null?void 0:De.weather)!=null&&It.disableWxFactor&&((pe=(Ee=l.report)==null?void 0:Ee.weather)!=null&&pe.disableCFactor)?(t.openBlock(),t.createElementBlock("span",_m,t.toDisplayString((ze=a==null?void 0:a.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(ke=(je=l.report)==null?void 0:je.weather)!=null&&ke.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ue=a==null?void 0:a.goodWx)==null?void 0:Ue.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgCf)>0?(Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgCf:`(${(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgCf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Jm,t.toDisplayString((be=a==null?void 0:a.goodWx)==null?void 0:be.pfmSpd)+" (kts)",1)],64)):(he=(Oe=l.report)==null?void 0:Oe.weather)!=null&&he.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Hm,t.toDisplayString((Be=a==null?void 0:a.goodWx)==null?void 0:Be.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgSpd),1),e[57]||(e[57]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgWf)>0?(Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.avgWf:`(${(Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgWf})`),1),(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.goodWx)==null?void 0:$a.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=a==null?void 0:a.goodWx)==null?void 0:ua.avgCf)>0?(va=a==null?void 0:a.goodWx)==null?void 0:va.avgCf:`(${(tl=a==null?void 0:a.goodWx)==null?void 0:tl.avgCf})`),1)],64)),e[58]||(e[58]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Xm,t.toDisplayString((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Dt=(i=l.report)==null?void 0:i.weather)!=null&&Dt.favorableCur&&((at=a==null?void 0:a.goodWx)==null?void 0:at.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Zm,t.toDisplayString((Me=a==null?void 0:a.goodWx)==null?void 0:Me.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Gt=a==null?void 0:a.goodWx)==null?void 0:Gt.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf)>0?(ce=a==null?void 0:a.goodWx)==null?void 0:ce.avgCf:`(${(Ne=a==null?void 0:a.goodWx)==null?void 0:Ne.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64))],64)),(ll=(al=l.report)==null?void 0:al.voyage)!=null&&ll.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ol=a==null?void 0:a.goodWx)==null?void 0:ol.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Km,"(Under-performance)")):t.createCommentVNode("",!0),((nl=a==null?void 0:a.goodWx)==null?void 0:nl.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",qm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",$m,[e[76]||(e[76]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",um,[(dl=(il=l.report)==null?void 0:il.weather)!=null&&dl.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(de=(ft=l.report)==null?void 0:ft.weather)!=null&&de.disableWxFactor&&((ge=(se=l.report)==null?void 0:se.weather)!=null&&ge.disableCFactor)?(t.openBlock(),t.createElementBlock("label",vm,"GW Average Speed")):(Ge=(ye=l.report)==null?void 0:ye.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(We=(Pe=l.report)==null?void 0:Pe.weather)!=null&&We.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[68]||(e[68]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[73]||(e[73]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"-",-1)),e[75]||(e[75]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ze=(Le=l.report)==null?void 0:Le.weather)!=null&&Ze.favorableCur&&((_e=a==null?void 0:a.goodWx)==null?void 0:_e.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(rl=(sl=l.report)==null?void 0:sl.weather)!=null&&rl.favorableCur&&((m=a==null?void 0:a.goodWx)==null?void 0:m.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"-",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",tM,[t.createElementVNode("div",eM,[e[82]||(e[82]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",aM,[(He=(Je=l.report)==null?void 0:Je.weather)!=null&&He.favorableCur&&((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((la=a==null?void 0:a.allWx)==null?void 0:la.avgSpd),1),e[80]||(e[80]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((oa=a==null?void 0:a.allWx)==null?void 0:oa.avgWf)>0?(na=a==null?void 0:a.allWx)==null?void 0:na.avgWf:`(${(ia=a==null?void 0:a.allWx)==null?void 0:ia.avgWf})`),1),e[81]||(e[81]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",oM,t.toDisplayString((da=a==null?void 0:a.allWx)==null?void 0:da.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((qe=a==null?void 0:a.allWx)==null?void 0:qe.avgCf)>0?($e=a==null?void 0:a.allWx)==null?void 0:$e.avgCf:`(${(ue=a==null?void 0:a.allWx)==null?void 0:ue.avgCf})`),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ve=a==null?void 0:a.allWx)==null?void 0:ve.avgWf)>0?(ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf:`(${(ea=a==null?void 0:a.allWx)==null?void 0:ea.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",lM,t.toDisplayString((aa=a==null?void 0:a.allWx)==null?void 0:aa.pfmSpd)+" (kts)",1)],64)),(ra=(sa=l.report)==null?void 0:sa.voyage)!=null&&ra.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ca=a==null?void 0:a.allWx)==null?void 0:ca.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",nM,"(Under-performance)")):t.createCommentVNode("",!0),((Na=a==null?void 0:a.allWx)==null?void 0:Na.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",iM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",dM,[e[92]||(e[92]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sM,[(Ma=(ma=l.report)==null?void 0:ma.weather)!=null&&Ma.favorableCur&&((Da=a==null?void 0:a.allWx)==null?void 0:Da.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[88]||(e[88]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"-",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[83]||(e[83]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Current Factor",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",rM,[t.createElementVNode("div",cM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Time Analysis",1),(Ia=(ga=l.report)==null?void 0:ga.weather)!=null&&Ia.noExtrapolation?(t.openBlock(),t.createElementBlock("span",NM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",mM,[t.createElementVNode("div",MM,[e[96]||(e[96]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DM,[t.createElementVNode("div",gM,[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[93]||(e[93]=t.createElementVNode("div",{class:"line"},null,-1)),e[94]||(e[94]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[95]||(e[95]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",IM,[t.createElementVNode("div",EM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.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[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",yM,[t.createElementVNode("div",AM,[t.createElementVNode("div",null,t.toDisplayString((xa=(Va=l.report)==null?void 0:Va.weather)!=null&&xa.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Under"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",TM,[t.createElementVNode("div",VM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.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[100]||(e[100]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",xM,[t.createElementVNode("div",pM,[t.createElementVNode("div",null,t.toDisplayString((fa=(Ua=l.report)==null?void 0:Ua.weather)!=null&&fa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[101]||(e[101]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+"kts",1)]),e[102]||(e[102]=t.createElementVNode("div",null,"(c)",-1))])]),e[103]||(e[103]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-6109ccb3><div class="flex-space" style="width:300px;font-weight:400;" data-v-6109ccb3><label data-v-6109ccb3>Time Lost</label><div data-v-6109ccb3>=</div><div data-v-6109ccb3>(a)</div><div data-v-6109ccb3>-</div><div data-v-6109ccb3>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-6109ccb3><label data-v-6109ccb3>Time Gained</label><div data-v-6109ccb3>=</div><div data-v-6109ccb3>(c)</div><div data-v-6109ccb3>-</div><div data-v-6109ccb3>(a)</div></div></div>',1))]),t.createElementVNode("div",zM,[t.createElementVNode("div",jM,[e[104]||(e[104]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",kM,[e[105]||(e[105]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",UM,[e[106]||(e[106]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(wa=(Qa=a==null?void 0:a.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ba=(Ra=a==null?void 0:a.extend)==null?void 0:Ra.cp)==null?void 0:Ba.speed,"Under"))+" kts) ",1)])]),(Fa=a==null?void 0:a.goodWx)!=null&&Fa.distance?(t.openBlock(),t.createElementBlock("div",fM,[t.createElementVNode("div",SM,[e[110]||(e[110]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CM,[t.createElementVNode("div",bM,[t.createElementVNode("div",null,t.toDisplayString((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?(Wa=a==null?void 0:a.goodWx)==null?void 0:Wa.distance:(La=a==null?void 0:a.allWx)==null?void 0:La.distance),1),e[107]||(e[107]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((s=a==null?void 0:a.goodWx)==null?void 0:s.pfmSpd),1)]),e[108]||(e[108]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((C=a==null?void 0:a.timeConclusion)==null?void 0:C.timeAtPfmSpd)+" (hrs)",1),e[109]||(e[109]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",OM,[t.createElementVNode("div",hM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(O=(b=a==null?void 0:a.extend)==null?void 0:b.cp)==null?void 0:O.speed,"Under"))+"kts)",1),e[111]||(e[111]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",YM,[t.createElementVNode("div",QM,[t.createElementVNode("div",null,t.toDisplayString((Y=(h=l.report)==null?void 0:h.weather)!=null&&Y.noExtrapolation?(R=a==null?void 0:a.goodWx)==null?void 0:R.distance:(P=a==null?void 0:a.allWx)==null?void 0:P.distance),1),e[112]||(e[112]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((_=a==null?void 0:a.timeConclusion)==null?void 0:_.minusAbtSpd),1)]),e[113]||(e[113]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((et=a==null?void 0:a.timeConclusion)==null?void 0:et.timeAtMinusAbtSpd)+" (hrs)",1),e[114]||(e[114]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",wM,[t.createElementVNode("div",RM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Nt=(ct=a==null?void 0:a.extend)==null?void 0:ct.cp)==null?void 0:Nt.speed,"Over"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",BM,[t.createElementVNode("div",FM,[t.createElementVNode("div",null,t.toDisplayString((Mt=(mt=l.report)==null?void 0:mt.weather)!=null&&Mt.noExtrapolation?(pt=a==null?void 0:a.goodWx)==null?void 0:pt.distance:(zt=a==null?void 0:a.allWx)==null?void 0:zt.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.plusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",GM,[((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",PM,[e[119]||(e[119]=t.createElementVNode("div",null,"Time Lost",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),e[121]||(e[121]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeAtPfmSpd),1),e[123]||(e[123]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.timeAtMinusAbtSpd),1),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.timeLost)+" (hrs)",1)])):((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",WM,[e[125]||(e[125]=t.createElementVNode("div",null,"Time Lost",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),e[127]||(e[127]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ae=a==null?void 0:a.timeConclusion)==null?void 0:Ae.timeAtPlusAbtSpd),1),e[129]||(e[129]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Te=a==null?void 0:a.timeConclusion)==null?void 0:Te.timeAtPfmSpd),1),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Za=a==null?void 0:a.timeConclusion)==null?void 0:Za.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",LM,[e[131]||(e[131]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((ml=a==null?void 0:a.timeConclusion)==null?void 0:ml.conclusionStatus)==="Lost"?"lost":((Ml=a==null?void 0:a.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Dl=a==null?void 0:a.timeConclusion)==null?void 0:Dl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",ZM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",_M,[t.createElementVNode("div",JM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Consumption Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(t.openBlock(),t.createElementBlock("span",HM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",XM,[t.createElementVNode("div",KM,[e[137]||(e[137]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qM,[t.createElementVNode("div",$M,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[132]||(e[132]=t.createElementVNode("div",{class:"line"},null,-1)),e[133]||(e[133]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[134]||(e[134]=t.createElementVNode("div",null,"x",-1)),e[135]||(e[135]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[136]||(e[136]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",uM,[e[138]||(e[138]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Tl=(Al=a.extend)==null?void 0:Al.cp)==null?void 0:Tl.dgo)>0?(t.openBlock(),t.createElementBlock("div",vM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",tD,[e[143]||(e[143]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[139]||(e[139]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Under"))+"kts",1)]),e[140]||(e[140]=t.createElementVNode("div",null,"x",-1)),e[141]||(e[141]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[142]||(e[142]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",lD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oD,[t.createElementVNode("div",nD,[t.createElementVNode("div",null,t.toDisplayString((kl=(jl=l.report)==null?void 0:jl.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[144]||(e[144]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fl=(Ul=a==null?void 0:a.extend)==null?void 0:Ul.cp)==null?void 0:fl.speed,"Over"))+"kts",1)]),e[145]||(e[145]=t.createElementVNode("div",null,"x",-1)),e[146]||(e[146]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[147]||(e[147]=t.createElementVNode("div",null,"(f)",-1))])]),e[155]||(e[155]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-6109ccb3><div class="flex-space" style="width:240px;" data-v-6109ccb3><label data-v-6109ccb3>Fuel Over-consumption</label><div data-v-6109ccb3>=</div><div data-v-6109ccb3>(d)</div><div data-v-6109ccb3>-</div><div data-v-6109ccb3>(e)</div></div><div class="flex-space" style="width:200px;" data-v-6109ccb3><label data-v-6109ccb3>Fuel Saving</label><div data-v-6109ccb3>=</div><div data-v-6109ccb3>(f)</div><div data-v-6109ccb3>-</div><div data-v-6109ccb3>(d)</div></div></div>',1)),((Cl=(Sl=a.extend)==null?void 0:Sl.cp)==null?void 0:Cl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",iD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=(hl=l.report)==null?void 0:hl.weather)!=null&&Yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",rD,[e[154]||(e[154]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",ND,[e[152]||(e[152]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wl=(Ql=l.report)==null?void 0:Ql.weather)!=null&&wl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[239]||(e[239]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",mD,"Seg. "+t.toDisplayString(I+1)+" Fuel Oil",1),(Rl=a==null?void 0:a.goodWx)!=null&&Rl.distance?(t.openBlock(),t.createElementBlock("div",MD,[((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.distance)>0?(t.openBlock(),t.createElementBlock("div",DD,[e[161]||(e[161]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.sumDgoCons),1)]),e[158]||(e[158]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=a==null?void 0:a.extend)==null?void 0:Wl.cp)==null?void 0:Ll.dgo),1),e[156]||(e[156]=t.createElementVNode("div",{class:"line"},null,-1)),e[157]||(e[157]=t.createElementVNode("div",null,"24",-1))]),e[159]||(e[159]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((_l=(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.inEca)==null?void 0:_l.time),1),e[160]||(e[160]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hl=(Jl=a==null?void 0:a.fuelConclusion)==null?void 0:Jl.fo)==null?void 0:Hl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",yD,[e[168]||(e[168]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",AD,[t.createElementVNode("div",TD,[t.createElementVNode("div",null,t.toDisplayString((Kl=(Xl=l.report)==null?void 0:Xl.weather)!=null&&Kl.noExtrapolation?(ql=a==null?void 0:a.goodWx)==null?void 0:ql.distance:($l=a==null?void 0:a.allWx)==null?void 0:$l.distance),1),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.pfmSpd),1)]),e[165]||(e[165]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",VD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((vl=a==null?void 0:a.goodWx)==null?void 0:vl.sumFoCons),1),((eo=(to=a==null?void 0:a.goodWx)==null?void 0:to.inEca)==null?void 0:eo.distance)>0?(t.openBlock(),t.createElementBlock("span",xD,[e[163]||(e[163]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((lo=(ao=a==null?void 0:a.fuelConclusion)==null?void 0:ao.fo)==null?void 0:lo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[164]||(e[164]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=a==null?void 0:a.goodWx)==null?void 0:oo.time),1)]),e[166]||(e[166]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((io=(no=a.fuelConclusion)==null?void 0:no.fo)==null?void 0:io.entireCons)+" (mt)",1),e[167]||(e[167]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",pD,[e[175]||(e[175]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((ro=(so=l.report)==null?void 0:so.weather)!=null&&ro.noExtrapolation?(co=a==null?void 0:a.goodWx)==null?void 0:co.distance:(No=a==null?void 0:a.allWx)==null?void 0:No.distance),1),e[169]||(e[169]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mo=a==null?void 0:a.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),e[172]||(e[172]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Do=(Mo=a==null?void 0:a.fuelConclusion)==null?void 0:Mo.fo)==null?void 0:Do.overTolerance),1),e[170]||(e[170]=t.createElementVNode("div",{class:"line"},null,-1)),e[171]||(e[171]=t.createElementVNode("div",null,"24",-1))]),e[173]||(e[173]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.maxCons)+" (mt)",1),e[174]||(e[174]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",UD,[e[182]||(e[182]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",fD,[t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=l.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=a==null?void 0:a.goodWx)==null?void 0:Ao.distance:(To=a==null?void 0:a.allWx)==null?void 0:To.distance),1),e[176]||(e[176]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=a==null?void 0:a.timeConclusion)==null?void 0:Vo.plusAbtSpd),1)]),e[179]||(e[179]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.underTolerance),1),e[177]||(e[177]=t.createElementVNode("div",{class:"line"},null,-1)),e[178]||(e[178]=t.createElementVNode("div",null,"24",-1))]),e[180]||(e[180]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.minCons)+" (mt)",1),e[181]||(e[181]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",bD,[((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",OD,[e[183]||(e[183]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),e[185]||(e[185]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((So=(fo=a==null?void 0:a.fuelConclusion)==null?void 0:fo.fo)==null?void 0:So.entireCons),1),e[187]||(e[187]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.fuelConclusion)==null?void 0:Co.fo)==null?void 0:bo.maxCons),1),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1)]),(Qo=(Yo=a==null?void 0:a.goodWx)==null?void 0:Yo.inEca)!=null&&Qo.distance?(t.openBlock(),t.createElementBlock("div",hD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((Ro=(wo=a==null?void 0:a.goodWx)==null?void 0:wo.inEca)==null?void 0:Ro.distance)+" * "+t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.overCons),1),e[189]||(e[189]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Po=(Go=l.report)==null?void 0:Go.weather)!=null&&Po.noExtrapolation?(Wo=a==null?void 0:a.goodWx)==null?void 0:Wo.distance:(Lo=a==null?void 0:a.allWx)==null?void 0:Lo.distance),1)]),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",QD,[e[193]||(e[193]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ko=(Xo=a==null?void 0:a.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.minCons),1),e[197]||(e[197]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString(($o=(qo=a==null?void 0:a.fuelConclusion)==null?void 0:qo.fo)==null?void 0:$o.entireCons),1),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=(uo=a==null?void 0:a.fuelConclusion)==null?void 0:uo.fo)==null?void 0:vo.saving)+" (mt)",1)]),(en=(tn=a==null?void 0:a.goodWx)==null?void 0:tn.inEca)!=null&&en.distance?(t.openBlock(),t.createElementBlock("div",wD,[e[200]||(e[200]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[201]||(e[201]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((ln=(an=l.report)==null?void 0:an.weather)!=null&&ln.noExtrapolation?(nn=(on=a==null?void 0:a.goodWx)==null?void 0:on.inEca)==null?void 0:nn.distance:(sn=(dn=a==null?void 0:a.allWx)==null?void 0:dn.inEca)==null?void 0:sn.distance)+" * "+t.toDisplayString((cn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:cn.saving),1),e[199]||(e[199]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mn=(Nn=l.report)==null?void 0:Nn.weather)!=null&&mn.noExtrapolation?(Mn=a==null?void 0:a.goodWx)==null?void 0:Mn.distance:(Dn=a==null?void 0:a.allWx)==null?void 0:Dn.distance),1)]),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((yn=(En=a==null?void 0:a.fuelConclusion)==null?void 0:En.fo)==null?void 0:yn.conclusionStatus)==="Over"?"flex-center lost":((Tn=(An=a==null?void 0:a.fuelConclusion)==null?void 0:An.fo)==null?void 0:Tn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[203]||(e[203]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((xn=(Vn=a==null?void 0:a.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:xn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",BD,t.toDisplayString(n.noGoodWxDay),1)),((zn=(pn=a==null?void 0:a.extend)==null?void 0:pn.cp)==null?void 0:zn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",FD,[t.createElementVNode("div",GD,[e[204]||(e[204]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",PD,"Seg. "+t.toDisplayString(I+1)+" Diesel/Gas Oil",1)])]),(jn=a==null?void 0:a.goodWx)!=null&&jn.distance?(t.openBlock(),t.createElementBlock("div",WD,[t.createElementVNode("div",LD,[e[211]||(e[211]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((Un=(kn=l.report)==null?void 0:kn.weather)!=null&&Un.noExtrapolation?(fn=a==null?void 0:a.goodWx)==null?void 0:fn.distance:(Sn=a==null?void 0:a.allWx)==null?void 0:Sn.distance),1),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.pfmSpd),1)]),e[208]||(e[208]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((bn=a==null?void 0:a.goodWx)==null?void 0:bn.sumDgoCons),1),((hn=(On=a==null?void 0:a.goodWx)==null?void 0:On.inEca)==null?void 0:hn.distance)>0?(t.openBlock(),t.createElementBlock("span",HD,[e[206]||(e[206]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Qn=(Yn=a==null?void 0:a.fuelConclusion)==null?void 0:Yn.fo)==null?void 0:Qn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[207]||(e[207]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wn=a==null?void 0:a.goodWx)==null?void 0:wn.time),1)]),e[209]||(e[209]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bn=(Rn=a.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.entireCons)+" (mt)",1),e[210]||(e[210]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",XD,[e[218]||(e[218]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Gn=(Fn=l.report)==null?void 0:Fn.weather)!=null&&Gn.noExtrapolation?(Pn=a==null?void 0:a.goodWx)==null?void 0:Pn.distance:(Wn=a==null?void 0:a.allWx)==null?void 0:Wn.distance),1),e[212]||(e[212]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ln=a==null?void 0:a.timeConclusion)==null?void 0:Ln.minusAbtSpd),1)]),e[215]||(e[215]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((_n=(Zn=a==null?void 0:a.fuelConclusion)==null?void 0:Zn.dgo)==null?void 0:_n.overTolerance),1),e[213]||(e[213]=t.createElementVNode("div",{class:"line"},null,-1)),e[214]||(e[214]=t.createElementVNode("div",null,"24",-1))]),e[216]||(e[216]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hn=(Jn=a.fuelConclusion)==null?void 0:Jn.dgo)==null?void 0:Hn.maxCons)+" (mt)",1),e[217]||(e[217]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",uD,[e[225]||(e[225]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",t1,[t.createElementVNode("div",null,t.toDisplayString((Kn=(Xn=l.report)==null?void 0:Xn.weather)!=null&&Kn.noExtrapolation?(qn=a==null?void 0:a.goodWx)==null?void 0:qn.distance:($n=a==null?void 0:a.allWx)==null?void 0:$n.distance),1),e[219]||(e[219]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((un=a==null?void 0:a.timeConclusion)==null?void 0:un.plusAbtSpd),1)]),e[222]||(e[222]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",e1,[t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.underTolerance),1),e[220]||(e[220]=t.createElementVNode("div",{class:"line"},null,-1)),e[221]||(e[221]=t.createElementVNode("div",null,"24",-1))]),e[223]||(e[223]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.minCons)+" (mt)",1),e[224]||(e[224]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",a1,[((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",l1,[e[226]||(e[226]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),e[228]||(e[228]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.entireCons),1),e[230]||(e[230]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.maxCons),1),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ci=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:ci.overCons),1)])):((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.dgo)==null?void 0:mi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",o1,[e[232]||(e[232]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),e[234]||(e[234]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.minCons),1),e[236]||(e[236]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.entireCons),1),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Ti=(Ai=a==null?void 0:a.fuelConclusion)==null?void 0:Ai.dgo)==null?void 0:Ti.conclusionStatus)==="Over"?"flex-center lost":((xi=(Vi=a==null?void 0:a.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:xi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[238]||(e[238]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((zi=(pi=a==null?void 0:a.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:zi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",n1,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const d1=Ve(NN,[["render",i1],["__scopeId","data-v-6109ccb3"]]),Dk="",s1={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`${yt(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,c,n,d,D,r,N,V,a,I;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(l=this.report)==null?void 0:l.weather)==null?void 0:c.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((r=(D=this.report)==null?void 0:D.weather)==null?void 0:r.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((I=(a=this.report)==null?void 0:a.weather)==null?void 0:I.waterTempSwitch)||!1}}},r1={class:"report-inventory"},c1={class:"section summary-section"},N1={class:"summary-block"},m1={class:"orm-report-table inventory-table"},M1={class:"label",rowspan:"4"},D1={class:"section inventory-section"},g1={class:"orm-report-table inventory-table detail"},I1=["colspan"],E1={key:0,class:"label",colspan:"2"},y1={key:0,class:"label",rowspan:"2"},A1={key:1,class:"label",rowspan:"2"},T1={key:2,class:"label",rowspan:"2"},V1={key:3,class:"label",colspan:"2"},x1={key:4,class:"label",rowspan:"2"},p1={key:5,class:"label",colspan:"2"},z1={key:6,class:"label",rowspan:"2"},j1={key:7,class:"label",rowspan:"2"},k1={key:8,class:"label",rowspan:"2"},U1={key:0,class:"label"},f1={key:1,class:"label"},S1={key:2,class:"label"},C1={key:3,class:"label"},b1={class:"summary-tbody"};function O1(o,e,l,c,n,d){var D;return t.openBlock(),t.createElementBlock("div",r1,[t.createElementVNode("div",c1,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",N1,[t.createElementVNode("table",m1,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((D=l.report)==null?void 0:D.segments,(r,N)=>{var V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",M1,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=r==null?void 0:r.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((I=r==null?void 0:r.allWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=r==null?void 0:r.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=r==null?void 0:r.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((U=r==null?void 0:r.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=r==null?void 0:r.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=r==null?void 0:r.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((f=r==null?void 0:r.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=r==null?void 0:r.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((B=r==null?void 0:r.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((S=r==null?void 0:r.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=r==null?void 0:r.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",D1,[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",g1,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,I1),l.showFactor?(t.openBlock(),t.createElementBlock("th",E1,"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",y1,[...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",A1,[...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",T1,[...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",V1,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",x1,[...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",p1,"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",z1,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",j1,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",k1,[...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",U1,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",f1,[...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",S1,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",C1,[...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",b1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,N)=>{var V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((V=r.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=r.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((k=(I=r.meteo)==null?void 0:I.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((T=(z=r.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(U=(x=r.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((f=(j=(p=r.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(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(w=(g=r.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((W=(Q=(S=r.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Z=(L=r.meteo)==null?void 0:L.current)==null?void 0:Z.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((J=r.meteo)==null?void 0:J.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((H=r.meteo)==null?void 0:H.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((X=r.meteo)==null?void 0:X.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((K=r.meteo)==null?void 0:K.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const h1=Ve(s1,[["render",O1],["__scopeId","data-v-dea0638a"]]),gk="",Y1={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`${yt(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(Oi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Oi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Oi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var I,k,z,T,x,U;let o=[];const e=[],l=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const D=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var j,f;p===0&&r.push(E.utc),E.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(r.push(E.utc),r.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const j=yt(r[p+1]).diff(yt(r[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(yt(r[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((E,p)=>{var f,g,w,B,S,Q,W,L,Z,J,H,X,K,$;const j=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(F=>F.slice(0,5)===E.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==E.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=E.noon)==null?void 0:f.foCons)>n?(g=E.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=E.cp)==null?void 0:w.fo)>n?(B=E.cp)==null?void 0:B.fo:n),d=Math.ceil(((S=E.noon)==null?void 0:S.dgoCons)>d?(Q=E.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=E.cp)==null?void 0:W.dgo)>d?(L=E.cp)==null?void 0:L.dgo:d),l.push([j,(Z=E.noon)==null?void 0:Z.avgSpd,(J=E.noon)==null?void 0:J.foCons,(H=E.noon)==null?void 0:H.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<D.length-1){const F=D[p+1];l.push([j,(X=F.noon)==null?void 0:X.avgSpd,(K=F.noon)==null?void 0:K.foCons,($=F.noon)==null?void 0:$.dgoCons,F.avgSpdCalc,F.cp.speed,F.goodWx&&!F.excluded?100:0,F.cp.dgo,F.cp.fo,F.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:c.dateTime,y:c.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:c.dateTime,y:c.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(k=(I=this.report)==null?void 0:I.weather)!=null&&k.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data: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:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],D=[];d.forEach((T,x)=>{var U,E;x===0&&D.push(T.utc),T.type==="EOSP"&&((U=d[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(T.utc),D.push((E=d[x+1])==null?void 0:E.utc)),x===d.length-1&&D.push(T.utc)}),D.forEach((T,x)=>{if(x%2===0){const U=yt(D[x+1]).diff(yt(D[x]),"minute",!0);for(let E=0;E<=U+1;E++)e.push(this.computeUTCTime(yt(D[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((T,x)=>{var E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt;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===d.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(E=T.meteo)==null?void 0:E.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,((B=T.noon)==null?void 0:B.windBF)||((Q=(S=T.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(L=(W=T.meteo)==null?void 0:W.wind)==null?void 0:L.scale,(J=(Z=T.meteo)==null?void 0:Z.wind)==null?void 0:J.direction,(H=T.noon)==null?void 0:H.seasHt,($=(K=(X=T.meteo)==null?void 0:X.wave)==null?void 0:K.sig)==null?void 0:$.height,T.dailyAvgCf??((F=l[l.length-1])==null?void 0:F[c.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<d.length-1){const G=d[x+1];l.push([U,((M=T.noon)==null?void 0:M.windBF)||((lt=(u=T.meteo)==null?void 0:u.wind)==null?void 0:lt.scale),(nt=(ot=G.meteo)==null?void 0:ot.wind)==null?void 0:nt.scale,(dt=(it=G.meteo)==null?void 0:it.wind)==null?void 0:dt.direction,(st=G.noon)==null?void 0:st.seasHt,(v=(A=(rt=T.meteo)==null?void 0:rt.wave)==null?void 0:A.sig)==null?void 0:v.height,G.dailyAvgCf??((tt=l[l.length-1])==null?void 0:tt[c.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,V=2.5,a=1,I=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),I=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,I=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:I,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:I,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(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*(I-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:I,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(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:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let c=0;c<o.length;c++){const n=o[c];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let c=0;c<o.length;c++){const n=o[c];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Q1={class:"report-summary"},w1={class:"section chart-section"},R1={class:"chart-block"},B1={ref:"spdFoConsChart",class:"chart"},F1={ref:"spdDgoConsChart",class:"chart"},G1={ref:"currChart",class:"chart"},P1={class:"section map-section"},W1={class:"map-block"},L1={class:"flex-space"},Z1={class:"voyage-block bg-blue-light"},_1={class:"flex-space label-block",style:{width:"100%"}},J1={style:{"text-transform":"uppercase"}},H1={class:"flex-space label-block",style:{width:"100%"}},X1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},K1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},q1={class:"flex-space label-block",style:{width:"100%"}},$1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},u1={class:"flex-space label-block",style:{width:"100%"}},v1={class:"flex-end",style:{flex:"1"}},tg={class:"flex-end",style:{width:"160px"}},eg={class:"flex-space label-block",style:{width:"100%"}},ag={class:"flex-end",style:{flex:"1"}},lg={class:"flex-end",style:{width:"160px"}},og={class:"flex-space label-block",style:{width:"100%"}},ng={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},ig=["src"];function dg(o,e,l,c,n,d){var D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q;return t.openBlock(),t.createElementBlock("div",Q1,[t.createElementVNode("div",w1,[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",R1,[t.createElementVNode("div",B1,null,512),t.createElementVNode("div",F1,null,512),t.createElementVNode("div",G1,null,512)])]),t.createElementVNode("div",P1,[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",W1,[t.createElementVNode("div",L1,[t.createElementVNode("div",Z1,[t.createElementVNode("div",_1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",J1,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",H1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",X1,t.toDisplayString((r=(D=l.report)==null?void 0:D.vessel)==null?void 0:r.name),1),t.createElementVNode("span",K1,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",q1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",$1,t.toDisplayString((I=(a=l.report)==null?void 0:a.voyage)==null?void 0:I.number),1)]),t.createElementVNode("div",u1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",v1,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",tg,t.toDisplayString(d.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",eg,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",ag,t.toDisplayString(((p=(E=l.report)==null?void 0:E.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",lg,t.toDisplayString(d.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",og,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ng,t.toDisplayString((S=(B=l.report)==null?void 0:B.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,ig)])]),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 sg=Ve(Y1,[["render",dg],["__scopeId","data-v-34b7edf0"]]),Ik="",Ek="",rg={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`${yt(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 c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(I=>{const k=`<p>${I}</p>`;c=c+k}),c=c+"</div>"):c=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,r=(d==null?void 0:d.offsetHeight)||0;if(D<=r){let I=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
1
+ (function(gt,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):(gt=typeof globalThis<"u"?globalThis:gt||self,t(gt["idmui-extend"]={},gt.Vue,gt["@wangeditor/editor-for-vue"],gt["@idmui/basic"],gt.moment,gt.echarts,gt["@idm-plugin/geo"],gt.axios,gt.MdEditorV3))})(this,function(gt,t,Yi,_a,yt,Us,q,hi,Qi){"use strict";function fs(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,c.get?c:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const Oi=fs(Us),rk="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[c,n]of e)l[c]=n;return l},Ss={name:"IdmEditor",components:{Editor:Yi.Editor,Toolbar:Yi.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()}}},Cs={class:"editor-box"};function bs(o,e,l,c,n,d){const D=t.resolveComponent("Toolbar"),r=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cs,[t.withDirectives(t.createVNode(D,{editor:n.editor,"default-config":n.toolbarConfig,mode:n.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[t.vShow,!l.disabled]]),t.createVNode(r,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:d.handleCreated,onOnChange:d.handleChange,onOnBlur:d.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const cl=Ve(Ss,[["render",bs],["__scopeId","data-v-80104052"]]),Os={install(o){o.component("IdmEditor",cl)}},ck="";/*! Element Plus Icons Vue v2.3.2 */var hs=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ys=hs,Qs=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"})]))}}),ws=Qs;const Nk="",Rs={name:"PlanReport",components:{Editor:cl,IdmBrand:_a.IdmBrand,IdmLoading:_a.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${yt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,c){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${yt(o).utcOffset(c??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,c,n,d,D;if(e===0)return"-";{const r=yt((n=(c=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:c.speed)==null?void 0:n.eta).diff(yt((D=(d=o==null?void 0:o.speeds)==null?void 0:d[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(r*100)/100}}},computeCostDiff(){return function(o,e){var l,c,n,d,D,r,N;if(e===0)return"-";{const V=Number((d=(n=(c=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:c.speed)==null?void 0:n.cost)==null?void 0:d.total)-Number((N=(r=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:r.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const 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:c,sample:n}=o,d=n==null?void 0:n.wps,D=[];for(let r=0;r<(d==null?void 0:d.length);r++){const N=d[r],V=d[r-1];V&&(N.avgBearing=V.bearing),r===0&&(N.label=`${e}: ${l}`),D.push(N),N.suspend&&(c!=null&&c.useRouteParam)&&D.push({etd:N.etd,eta:N.etd,isResume:!0,memo:`Stoppage: ${N.suspend}hrs`}),N.velocity&&(c!=null&&c.useRouteParam)&&(N.label=`Spd: ${N.velocity}`)}return D}},computeDegree(){return function(o,e,l){e=e%360;for(let c=0;c<17;c++)if(c*22.5+e+11.25>=360){let n=(16-c)*22.5;l||(n=n+180);let d="";return o==="wind"?d="var(--orm-wind)":o==="wave"?d="var(--orm-wave)":o==="swell"?d="var(--orm-swell)":o==="current"&&(d="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${d}`}}},computeDay(){return function(o,e=0){var d,D,r,N;const l=(N=(r=(D=(d=o==null?void 0:o.speeds)==null?void 0:d[e])==null?void 0:D.speed)==null?void 0:r.sample)==null?void 0:N.hours,c=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(yt(n==null?void 0:n.eta).diff(yt(c==null?void 0:c.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,c;let e=0;return(c=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||c.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,c,n,d,D,r,N,V,a,I,k,z,T,x,U,E,p,j;let e="";return(c=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&c.wind&&((d=(n=o.meteo)==null?void 0:n.wind)==null?void 0:d.scale)>=((r=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:r.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((I=(a=o.meteo)==null?void 0:a.wind)==null?void 0:I.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((E=(U=o.meteo)==null?void 0:U.wind)==null?void 0:E.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,c,n,d,D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w;let e="";return(c=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&c.sigWv&&((D=(d=(n=o.meteo)==null?void 0:n.wave)==null?void 0:d.sig)==null?void 0:D.height)>=((N=(r=this.weatherPrinciple)==null?void 0:r.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(I=o.meteo)==null?void 0:I.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":(E=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&E.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}},computedVisClass(){return o=>{var l,c;let e="";return((l=o.meteo)==null?void 0:l.visibility)<=2?e="bg-severe":((c=o.meteo)==null?void 0:c.visibility)<=5&&(e="bg-heavy"),e}},isArctic(){var o,e,l,c;return(c=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:c.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=Oi.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var E,p,j,f,g,w,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let c=4;(w=(g=(f=(j=(p=(E=this.plan)==null?void 0:E.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 W,L,Z,J,H,X,K,$,F,M;const Q=S.meteo;if(Q){const u=yt(Q.utc).utc().format("MMM-DD/HHmm[Z]");o.push(u),c=Math.ceil(((L=(W=Q.wave)==null?void 0:W.sig)==null?void 0:L.height)>c?(J=(Z=Q.wave)==null?void 0:Z.sig)==null?void 0:J.height:c),e.push([u,(H=Q.wind)==null?void 0:H.kts,(K=(X=Q.wave)==null?void 0:X.sig)==null?void 0:K.height,($=Q.wind)==null?void 0:$.direction,(F=Q.wind)==null?void 0:F.degree,(M=Q.wind)==null?void 0:M.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),d=Math.max(...e.map(S=>S[l.windSpeed])),D=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,r=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(d/5/5)*5,a=Math.ceil(c/5/.5)*.5,I=Math.ceil((r-D)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=D+5*I,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval: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:D,max:x,splitNumber:5,interval:I,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Bs={class:"orm-plan-report"},Fs={key:0,class:"loading-block"},Gs={class:"info-block"},Ps={class:"col"},Ws={class:"label-block"},Ls={class:"text"},Zs={class:"label-block"},_s={class:"text"},Js={key:0},Hs={class:"label-block"},Xs={class:"text"},Ks={class:"col"},qs={class:"label-block"},$s={key:0},us={key:1},vs={style:{"margin-left":"16px"}},tr={class:"label-block"},er={key:0},ar={key:1},lr={style:{"margin-left":"16px"}},or={class:"label-block"},nr={class:"text"},ir={class:"section chart-section"},dr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},sr={style:{"margin-right":"8px"}},rr=["src"],cr=["src"],Nr={key:1,class:"empty"},mr={class:"section comparison-section"},Mr={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dr={key:0},gr=["rowspan"],Ir={key:0},Er={key:1},yr={rowspan:"2"},Ar={rowspan:"2"},Tr={key:0},Vr={key:1},xr={rowspan:"1"},pr={key:0},zr={rowspan:"2"},jr={rowspan:"2"},kr={rowspan:"2"},Ur={key:0},fr={key:0},Sr=["rowspan"],Cr={key:0},br={rowspan:"1"},Or={key:0},hr={key:0},Yr={key:1},Qr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wr={key:0},Rr={key:0,class:"section waypoint-section"},Br={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fr={class:"bg-block"},Gr={class:"block-title"},Pr={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wr=["onClick"],Lr={class:"advisory bg-blue-light-2"},Zr=["innerHTML"],_r={class:"major-waypoint"},Jr={class:"major-header bg-blue-light-2"},Hr={key:0,class:"cell-item flex"},Xr={key:1,class:"cell-item flex"},Kr={class:"major-body"},qr={class:"cell-item flex",style:{flex:"2.5"}},$r={key:0,class:"flex-center"},ur={key:1,class:"flex-center"},vr={key:0,style:{"margin-left":"3px"}},tc={class:"cell-item flex",style:{flex:"2"}},ec={key:0,style:{"margin-left":"4px","font-weight":"600"}},ac={key:1,style:{"margin-left":"4px","font-weight":"600"}},lc={key:0,class:"cell-item flex offset"},oc={key:1,class:"cell-item flex nbsp"},nc={key:2,class:"cell-item flex offset"},ic={key:3,class:"cell-item flex nbsp"},dc={key:0,class:"cell-item flex offset"},sc={key:1,class:"cell-item flex nbsp"},rc={key:0,class:"cell-item flex offset"},cc={key:1,class:"cell-item flex nbsp"},Nc={key:6,class:"cell-item flex offset"},mc={key:7,class:"cell-item flex nbsp"},Mc={class:"section forecast-section"},Dc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},gc={class:"bg-block"},Ic={class:"block-title"},Ec={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},yc=["onClick"],Ac={class:"echart-block",style:{"page-break-inside":"avoid"}},Tc={ref:"echart",class:"echart"},Vc={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},xc={style:{"page-break-inside":"avoid"}},pc={class:"orm-report-table",style:{"font-size":"12px"}},zc={key:0,rowspan:"2",colspan:"1"},jc=["colspan"],kc={key:1,colspan:"2"},Uc={key:0},fc={key:1},Sc={key:2},Cc={style:{padding:"8px 0"}},bc={class:"flex-center"},Oc={key:0,class:"degree-box"},hc={key:1},Yc={key:1},Qc={key:0,class:"degree-box"},wc={key:1},Rc={class:""},Bc={key:0,class:"degree-box"},Fc={key:1},Gc={key:0,class:"degree-box"},Pc={key:1},Wc={key:2},Lc={key:3};function Zc(o,e,l,c,n,d){var a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt,y,wt,Ct,bt,Ot,ht,Yt,Qt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,Dt,at,Gt,re,ce,Ne,me,Me,De,It,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl;const D=t.resolveComponent("IdmBrand"),r=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bs,[t.createVNode(D,{name:"Voyage Planning",issued:(a=l.plan)==null?void 0:a.updatedAt},null,8,["issued"]),n.loading?(t.openBlock(),t.createElementBlock("div",Fs,[t.createVNode(r,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Gs,[t.createElementVNode("div",Ps,[t.createElementVNode("div",Ws,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ls,t.toDisplayString((z=(k=(I=l.plan)==null?void 0:I.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zs,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_s,[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=(E=l.plan)==null?void 0:E.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Js,"("+t.toDisplayString((S=(B=(w=(g=l.plan)==null?void 0:g.voyage)==null?void 0:w.vessel)==null?void 0:B.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hs,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xs,t.toDisplayString(((W=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Ks,[t.createElementVNode("div",qs,[e[8]||(e[8]=t.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(X=(H=(J=l.plan)==null?void 0:J.leg)==null?void 0:H.departure)!=null&&X.name?(t.openBlock(),t.createElementBlock("span",$s,t.toDisplayString((F=($=(K=l.plan)==null?void 0:K.leg)==null?void 0:$.departure)==null?void 0:F.name),1)):(t.openBlock(),t.createElementBlock("span",us,t.toDisplayString(d.computePosition((u=(M=l.plan)==null?void 0:M.leg)==null?void 0:u.departure)),1)),t.createElementVNode("span",vs,t.toDisplayString(d.computeUTCTime(((nt=(ot=(lt=l.plan)==null?void 0:lt.leg)==null?void 0:ot.departure)==null?void 0:nt.atd)||((st=(dt=(it=l.plan)==null?void 0:it.leg)==null?void 0:dt.departure)==null?void 0:st.etd)||((tt=(v=(A=(rt=l.plan)==null?void 0:rt.speeds)==null?void 0:A[n.speedIndex])==null?void 0:v.speed)==null?void 0:tt.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tr,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(At=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&At.name?(t.openBlock(),t.createElementBlock("span",er,t.toDisplayString((xt=(Vt=(Tt=l.plan)==null?void 0:Tt.leg)==null?void 0:Vt.destination)==null?void 0:xt.name),1)):(t.openBlock(),t.createElementBlock("span",ar,t.toDisplayString(d.computePosition((St=(Ut=l.plan)==null?void 0:Ut.leg)==null?void 0:St.destination)),1)),t.createElementVNode("span",lr,t.toDisplayString(d.computeUTCTime(((wt=(y=(Bt=(Rt=l.plan)==null?void 0:Rt.speeds)==null?void 0:Bt[n.speedIndex])==null?void 0:y.speed)==null?void 0:wt.ata)||((ht=(Ot=(bt=(Ct=l.plan)==null?void 0:Ct.speeds)==null?void 0:bt[n.speedIndex])==null?void 0:Ot.speed)==null?void 0:ht.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",or,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nr,t.toDisplayString((Qt=(Yt=l.plan)==null?void 0:Yt.voyage)==null?void 0:Qt.loadCondition),1)])])]),t.createElementVNode("div",ir,[t.createElementVNode("div",dr,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",sr,"FCST fr Pos. "+t.toDisplayString(d.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,rr)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,cr)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nr,[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)=>d.handleRefresh&&d.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mr,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mr,[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)),d.showCost?(t.openBlock(),t.createElementBlock("th",Dr,[...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:d.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,gr),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)),d.showCost?(t.openBlock(),t.createElementBlock("th",Ir,[...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),d.showCost?(t.openBlock(),t.createElementBlock("th",Er,[...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(d.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,ft)=>{var de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h;return t.openBlock(),t.createElementBlock(t.Fragment,{key:ft},[t.createElementVNode("tr",null,[t.createElementVNode("td",yr,t.toDisplayString(ft+1),1),t.createElementVNode("td",Ar,t.toDisplayString((se=(de=m.speed)==null?void 0:de.lane)==null?void 0:se.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tr,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",Vr,[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",xr,[t.createElementVNode("span",null,t.toDisplayString(d.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",pr," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(d.computeLTime((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,(da=(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:da.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(d.computeUTCTime((sa=m.speed)==null?void 0:sa.eta)),1)]),t.createElementVNode("td",zr,t.toDisplayString(d.computeSuspend(m.speed)),1),t.createElementVNode("td",jr,t.toDisplayString(d.roundPrecision((ra=m.speed)==null?void 0:ra.totalFoCons,3)),1),t.createElementVNode("td",kr,[t.createElementVNode("span",null,t.toDisplayString(d.roundPrecision((ca=m.speed)==null?void 0:ca.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Ur," + "+t.toDisplayString(d.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),d.showCost?(t.openBlock(),t.createElementBlock("td",fr,t.toDisplayString((Ia=d.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:d.showCost?1:2},t.toDisplayString(d.computeTimeDiff(l.plan,ft)),9,Sr),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",Cr,"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",br,[t.createElementVNode("span",null,t.toDisplayString(d.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",Or," ("+t.toDisplayString(d.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(d.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(d.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),d.showCost?(t.openBlock(),t.createElementBlock("td",hr,t.toDisplayString(d.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(d.roundPrecision(((C=(s=m==null?void 0:m.speed)==null?void 0:s.cost)==null?void 0:C.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),d.showCost?(t.openBlock(),t.createElementBlock("td",Yr,t.toDisplayString(d.computeCostDiff(l.plan,ft)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(((b=m.speed)==null?void 0:b.dangerous)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((O=m.speed)==null?void 0:O.severe)/24,2))+" / "+t.toDisplayString(d.roundPrecision(((h=m.speed)==null?void 0:h.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qr,[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)),d.showCost?(t.openBlock(),t.createElementBlock("span",wr,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=d.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((Dt=d.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:Dt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((re=d.roundPrecision((Gt=(at=l.plan)==null?void 0:at.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:re.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=(ce=l.plan)==null?void 0:ce.voyage)!=null&&Ne.showWpts?(t.openBlock(),t.createElementBlock("div",Rr,[t.createElementVNode("div",Br,[t.createElementVNode("div",Fr,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gr,"Advisory & Major Waypoint of Route "+t.toDisplayString((It=(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:It.name),1)]),((pe=(Ee=l.plan)==null?void 0:Ee.speeds)==null?void 0:pe.length)>1?(t.openBlock(),t.createElementBlock("div",Pr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ze=l.plan)==null?void 0:ze.speeds,(m,ft)=>{var de,se;return t.openBlock(),t.createElementBlock("div",{key:ft,class:t.normalizeClass(["route-item",n.speedIndex===ft?"active":""]),onClick:ge=>{n.speedIndex=ft,d.renderEchart()}},t.toDisplayString((se=(de=m.speed)==null?void 0:de.lane)==null?void 0:se.name),11,Wr)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lr,[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=>d.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>d.handleEdit&&d.handleEdit(...m)),innerHTML:n.advisory},null,40,Zr))]),t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-9bdb650d>Major waypoint</div><div class="cell-item flex" style="flex:2;" data-v-9bdb650d>Time</div><div class="cell-item flex" data-v-9bdb650d>Nav</div><div class="cell-item flex" data-v-9bdb650d>Dist <span class="text-units" data-v-9bdb650d>(nm)</span></div>',4)),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hr,[...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",Xr,[...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",Kr,[(Ce=(Se=l.plan)==null?void 0:Se.speeds)!=null&&Ce.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(d.computeMajorPoints((he=(Oe=(be=l.plan)==null?void 0:be.speeds)==null?void 0:Oe[n.speedIndex])==null?void 0:he.speed),(m,ft)=>{var de,se,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:ft,class:"cell-row"},[t.createElementVNode("div",qr,[m.isResume?(t.openBlock(),t.createElementBlock("div",$r,"Resume")):(t.openBlock(),t.createElementBlock("div",ur,[t.createElementVNode("span",null,t.toDisplayString(d.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vr,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tc,[t.createTextVNode(t.toDisplayString(d.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",ec,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0),m.label?(t.openBlock(),t.createElementBlock("span",ac,"["+t.toDisplayString(m.label)+"]",1)):t.createCommentVNode("",!0)]),ft?(t.openBlock(),t.createElementBlock("div",lc,t.toDisplayString(d.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",oc)),ft?(t.openBlock(),t.createElementBlock("div",nc,t.toDisplayString(d.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",ic)),(se=(de=l.plan)==null?void 0:de.voyage)!=null&&se.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[ft?(t.openBlock(),t.createElementBlock("div",dc,t.toDisplayString(d.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",sc))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[ft?(t.openBlock(),t.createElementBlock("div",rc,t.toDisplayString(d.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cc))],64)):t.createCommentVNode("",!0),ft?(t.openBlock(),t.createElementBlock("div",Nc,t.toDisplayString(d.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",mc))])}),128)):t.createCommentVNode("",!0)])])])):t.createCommentVNode("",!0),t.createElementVNode("div",Mc,[(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",Dc,[t.createElementVNode("div",gc,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",Ic," Weather Forecast for the Next "+t.toDisplayString(d.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Ja=(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:Ja.name),1)]),((Xa=(Ha=l.plan)==null?void 0:Ha.speeds)==null?void 0:Xa.length)>1?(t.openBlock(),t.createElementBlock("div",Ec,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ka=l.plan)==null?void 0:Ka.speeds,(m,ft)=>{var de,se;return t.openBlock(),t.createElementBlock("div",{key:ft,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===ft?"active":""]),onClick:ge=>{n.speedIndex=ft,d.renderEchart()}},t.toDisplayString((se=(de=m==null?void 0:m.speed)==null?void 0:de.lane)==null?void 0:se.name),11,yc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ac,[t.createElementVNode("div",Tc,null,512)]),t.createElementVNode("div",Vc," * "+t.toDisplayString(d.computeModel((ua=($a=(qa=l.plan)==null?void 0:qa.speeds)==null?void 0:$a[n.speedIndex])==null?void 0:ua.speed)),1)]),t.createElementVNode("div",xc,[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",pc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),(tl=(va=l.plan)==null?void 0:va.voyage)!=null&&tl.showVis?(t.openBlock(),t.createElementBlock("th",zc,[...e[51]||(e[51]=[t.createTextVNode("Vis.",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,jc),e[54]||(e[54]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea"),t.createElementVNode("br"),t.createTextVNode("HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[57]||(e[57]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),d.isArctic?(t.openBlock(),t.createElementBlock("th",kc,"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",Uc,"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)),d.isArctic?(t.openBlock(),t.createElementBlock("th",fc,[...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),d.isArctic?(t.openBlock(),t.createElementBlock("th",Sc,[...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((rl=(sl=(dl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:dl.speed)==null?void 0:sl.sample)==null?void 0:rl.hours,(m,ft)=>{var de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h,Y,R,P,_,et;return t.openBlock(),t.createElementBlock("tr",{key:ft},[t.createElementVNode("td",null,t.toDisplayString(d.computeUTCTime(m.eta)),1),t.createElementVNode("td",Cc,[t.createElementVNode("div",bc,t.toDisplayString(d.computeLat(m.lat))+", "+t.toDisplayString(d.computeLng(m.lng)),1)]),(se=(de=l.plan)==null?void 0:de.voyage)!=null&&se.showVis?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(d.computedVisClass(m))},t.toDisplayString(d.roundPrecision((ge=m.meteo)==null?void 0:ge.visibility,1)),3)):t.createCommentVNode("",!0),t.createElementVNode("td",null,[((Ge=(ye=m.meteo)==null?void 0:ye.wind)==null?void 0:Ge.kts)!==null&&((We=(Pe=m.meteo)==null?void 0:Pe.wind)!=null&&We.direction)?(t.openBlock(),t.createElementBlock("div",Oc,[t.createElementVNode("span",null,t.toDisplayString((Ze=(Le=m.meteo)==null?void 0:Le.wind)==null?void 0:Ze.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wind",(Je=(_e=m.meteo)==null?void 0:_e.wind)==null?void 0:Je.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",hc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedWindClass(m))},t.toDisplayString(d.roundPrecision((Xe=(He=m.meteo)==null?void 0:He.wind)==null?void 0:Xe.kts,1)),3),(qe=(Ke=l.plan)==null?void 0:Ke.voyage)!=null&&qe.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString((ue=($e=m.meteo)==null?void 0:$e.wind)==null?void 0:ue.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.wd)==null?void 0:ea.height,1)),1),t.createElementVNode("td",null,[((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)==null?void 0:oa.height)!==null&&((da=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)!=null&&da.direction)?(t.openBlock(),t.createElementBlock("div",Qc,[t.createElementVNode("span",null,t.toDisplayString((ca=(ra=(sa=m.meteo)==null?void 0:sa.wave)==null?void 0:ra.swell)==null?void 0:ca.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("swell",(Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",wc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.swell)==null?void 0:Aa.period,0)),1),t.createElementVNode("td",Rc,[((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)==null?void 0:xa.height)!==null&&((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)!=null&&ja.direction)?(t.openBlock(),t.createElementBlock("div",Bc,[t.createElementVNode("span",null,t.toDisplayString((fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("wave",(ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Fc,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(d.computedSigClass(m))},t.toDisplayString(d.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((Ra=(wa=(Qa=m.meteo)==null?void 0:Qa.wave)==null?void 0:wa.sig)==null?void 0:Ra.period,0)),1),t.createElementVNode("td",null,[((Fa=(Ba=m.meteo)==null?void 0:Ba.current)==null?void 0:Fa.kts)!==null&&((Pa=(Ga=m.meteo)==null?void 0:Ga.current)!=null&&Pa.direction)?(t.openBlock(),t.createElementBlock("div",Gc,[t.createElementVNode("span",null,t.toDisplayString((La=(Wa=m.meteo)==null?void 0:Wa.current)==null?void 0:La.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(d.computeDegree("current",(C=(s=m.meteo)==null?void 0:s.current)==null?void 0:C.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Pc,"-"))]),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision((O=(b=m.meteo)==null?void 0:b.current)==null?void 0:O.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(d.roundPrecision(m.cFactor,1)),1),d.isArctic?(t.openBlock(),t.createElementBlock("td",Wc,t.toDisplayString(d.roundPrecision((Y=(h=m.meteo)==null?void 0:h.ice)==null?void 0:Y.sit,2)),1)):t.createCommentVNode("",!0),d.isArctic?(t.openBlock(),t.createElementBlock("td",Lc,t.toDisplayString(((P=(R=m.meteo)==null?void 0:R.ice)==null?void 0:P.sic)>=0?d.roundPrecision(((et=(_=m.meteo)==null?void 0:_.ice)==null?void 0:et.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[72]||(e[72]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const wi=Ve(Rs,[["render",Zc],["__scopeId","data-v-9bdb650d"]]),_c={install(o){o.component("PlanReport",wi)}},mk="",Jc={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`${yt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${yt(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}}}},Hc={class:"cover-box"},Xc={class:"cover-content"},Kc={class:"cover-title"},qc={class:"cover-info"},$c={class:"info-item"},uc={class:"info-item"},vc={class:"info-item"},tN={style:{"font-weight":"600"}},eN={class:"info-item"},aN={style:{"font-weight":"600"}},lN={class:"info-item"},oN={class:"info-item"},nN={class:"info-item"},iN={class:"info-item"},dN={class:"info-item"},sN={class:"text"};function rN(o,e,l,c,n,d){var D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w,B;return t.openBlock(),t.createElementBlock("div",Hc,[t.createElementVNode("div",Xc,[t.createElementVNode("div",Kc,t.toDisplayString(l.name),1),t.createElementVNode("div",qc,[t.createElementVNode("div",$c,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((r=(D=l.report)==null?void 0:D.voyage)==null?void 0:r.number),1)]),t.createElementVNode("div",uc,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",vc,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",tN,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",eN,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",aN,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",lN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((I=(a=l.report)==null?void 0:a.departure)==null?void 0:I.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",oN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",nN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(U=l.report)==null?void 0:U.arrival)==null?void 0:E.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",iN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",dN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",sN,t.toDisplayString((B=(w=l.report)==null?void 0:w.voyage)==null?void 0:B.loadCondition),1)])])])])}const cN=Ve(Jc,[["render",rN],["__scopeId","data-v-c57d4b58"]]),Mk="",NN={name:"OrmVoyageSummary",components:{Editor:cl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return yt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=yt(o).diff(yt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${yt(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,c)=>{var D,r;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:yt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+yt(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 d=(r=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:r.hours.filter(N=>N.noon);this.noons.push([d])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},mN={class:"report-summary"},MN={class:"section weather-section"},DN={class:"definition bg-blue-light-2"},gN={style:{"line-height":"1.5"}},IN={class:"section summary-section"},EN={class:"phase-box"},yN={class:"phase-index"},AN={class:"phase-position"},TN={class:"phase-position"},VN={class:"phase-cp"},xN={class:"orm-report-table"},pN={key:0},zN={class:"phase-conclusion"},jN={class:"item-conclusion bg-blue-light-2",style:{flex:"0.9"}},kN={class:"value align-left"},UN={key:0,class:"text-secondary align-right"},fN={key:0},SN={key:1},CN={key:2},bN={key:1,class:"text-secondary"},ON={key:2,class:"value"},hN={key:0},YN={class:"gain"},QN={key:1},wN={class:"lost"},RN={key:2},BN={class:"item-conclusion bg-blue-light-2"},FN={class:"value align-left"},GN={key:0,class:"unit",style:{"font-size":"11px"}},PN={key:0,class:"text-secondary"},WN={key:0},LN={key:1},ZN={key:2},_N={key:1,class:"text-secondary"},JN={key:2,class:"value"},HN={key:0},XN={class:"gain"},KN={key:1},qN={class:"lost"},$N={key:2},uN={class:"item-conclusion bg-blue-light-2"},vN={class:"value align-left"},tm={key:0,class:"text-secondary"},em={key:0},am={key:1},lm={key:2},om={key:1,class:"text-secondary"},nm={key:2,class:"value"},im={key:0},dm={class:"gain"},sm={key:1},rm={class:"lost"},cm={key:2},Nm={key:0,class:"exclusion-block"},mm={style:{margin:"8px 0"}},Mm={class:"orm-report-table"},Dm=["innerHTML"],gm={class:"section segment-section"},Im={class:"segment-summary"},Em={class:"segment-header"},ym={class:"segment-index"},Am={class:"cp-box"},Tm={class:"segment-position"},Vm={class:"segment-position"},xm={class:"orm-report-table"},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={class:"good-wx"},Qm={class:"good-wx"},wm={class:"good-wx"},Rm={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Bm={key:0},Fm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Gm={key:2,class:"segment-speed"},Pm={class:"row"},Wm={class:"speed-right row"},Lm={class:"speed"},Zm={key:1,class:"speed"},_m={key:0,class:"speed"},Jm={class:"speed"},Hm={class:"speed"},Xm={class:"speed"},Km={key:0,class:"under"},qm={key:1,class:"over"},$m={class:"row"},um={class:"speed-right formula flex-space"},vm={key:0},tM={key:3,class:"segment-speed"},eM={class:"row"},aM={class:"speed-right row"},lM={class:"speed"},oM={class:"speed"},nM={key:0,class:"under"},iM={key:1,class:"over"},dM={class:"row"},sM={class:"speed-right formula row"},rM={class:"segment-formula"},cM={class:"sub-title"},NM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},mM={class:"formula-block"},MM={class:"formula-item flex-evenly bg-blue-light"},DM={class:"formula-right flex-evenly"},gM={class:"fraction",style:{width:"240px"}},IM={class:"formula-item flex-center bg-blue-light"},EM={class:"formula-left flex-space"},yM={class:"formula-right flex-evenly"},AM={class:"fraction",style:{width:"240px"}},TM={class:"formula-item flex-center bg-blue-light"},VM={class:"formula-left flex-space"},xM={class:"formula-right flex-evenly"},pM={class:"fraction",style:{width:"240px"}},zM={class:"formula-desc"},jM={class:"flex-end"},kM={class:"flex-end"},UM={class:"flex-end"},fM={key:0,class:"formula-block"},SM={class:"formula-item flex-evenly bg-blue-light"},CM={class:"formula-right flex-evenly"},bM={class:"fraction",style:{width:"200px"}},OM={class:"formula-item flex-center bg-blue-light"},hM={class:"formula-left flex-space"},YM={class:"formula-right flex-evenly"},QM={class:"fraction",style:{width:"200px"}},wM={class:"formula-item flex-center bg-blue-light"},RM={class:"formula-left flex-space"},BM={class:"formula-right flex-evenly"},FM={class:"fraction",style:{width:"200px"}},GM={class:"formula-item formula-conclusion bg-blue-light"},PM={key:0,class:"flex-evenly",style:{width:"500px"}},WM={key:1,class:"flex-evenly",style:{width:"500px"}},LM={class:"flex-center"},ZM={key:1,class:"formula-conclusion bg-blue-light"},_M={class:"segment-formula"},JM={class:"sub-title"},HM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},XM={class:"formula-block"},KM={class:"formula-item flex-evenly bg-blue-light"},qM={class:"formula-right flex-evenly"},$M={class:"fraction",style:{width:"240px"}},uM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},vM={key:0,class:"flex-end text-tips"},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:"200px"}},iD={class:"formula-item flex-center bg-blue-light"},dD={class:"formula-right flex-evenly"},sD={class:"fraction",style:{width:"300px"}},rD={class:"formula-item flex-center bg-blue-light"},cD={class:"formula-right flex-evenly"},ND={class:"fraction",style:{width:"300px"}},mD={class:"sub-title"},MD={key:0,class:"formula-block"},DD={key:0,class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"60px"}},ED={class:"fraction",style:{width:"60px"}},yD={class:"formula-item flex-evenly bg-blue-light"},AD={class:"formula-right flex-evenly"},TD={class:"fraction",style:{width:"150px"}},VD={class:"fraction",style:{width:"150px"}},xD={key:0},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},kD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item flex-evenly bg-blue-light"},fD={class:"formula-right flex-evenly"},SD={class:"fraction",style:{width:"150px"}},CD={class:"fraction",style:{width:"150px"}},bD={class:"formula-item formula-conclusion bg-blue-light"},OD={class:"flex-evenly",style:{width:"500px"}},hD={key:0,class:"flex-evenly"},YD={class:"fraction"},QD={class:"flex-evenly",style:{width:"700px"}},wD={key:0,class:"flex-evenly",style:{width:"500px"}},RD={class:"fraction",style:{width:"140px"}},BD={key:1,class:"formula-item formula-conclusion bg-blue-light"},FD={class:"header-block"},GD={class:"bg-block"},PD={class:"block-title"},WD={key:0,class:"formula-block"},LD={class:"formula-item flex-evenly bg-blue-light"},ZD={class:"formula-right flex-evenly"},_D={class:"fraction",style:{width:"150px"}},JD={class:"fraction",style:{width:"150px"}},HD={key:0},XD={class:"formula-item flex-evenly bg-blue-light"},KD={class:"formula-right flex-evenly"},qD={class:"fraction",style:{width:"150px"}},$D={class:"fraction",style:{width:"150px"}},uD={class:"formula-item flex-evenly bg-blue-light"},vD={class:"formula-right flex-evenly"},t1={class:"fraction",style:{width:"150px"}},e1={class:"fraction",style:{width:"150px"}},a1={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},l1={key:0,class:"flex-evenly",style:{width:"500px"}},o1={key:1,class:"flex-evenly",style:{width:"700px"}},n1={key:1,class:"formula-item formula-conclusion bg-blue-light"};function i1(o,e,l,c,n,d){var r,N,V;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",mN,[t.createElementVNode("div",MN,[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",DN,[t.createElementVNode("div",gN,t.toDisplayString(d.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",IN,[e[33]||(e[33]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((r=l.report)==null?void 0:r.segments,(a,I)=>{var k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+I,class:"segment-box"},[t.createElementVNode("div",EN,[t.createElementVNode("div",yN,"Seg."+t.toDisplayString(I+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(y,wt)=>{var Ct,bt,Ot,ht,Yt,Qt;return t.openBlock(),t.createElementBlock("div",{key:wt,class:"phase-row text-secondary"},[t.createElementVNode("div",AN,[t.createElementVNode("span",null,t.toDisplayString(((Ct=y==null?void 0:y.departure)==null?void 0:Ct.portName)||((bt=y.departure)==null?void 0:bt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Ot=y==null?void 0:y.departure)==null?void 0:Ot.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",TN,[t.createElementVNode("span",null,t.toDisplayString(((ht=y==null?void 0:y.arrival)==null?void 0:ht.portName)||((Yt=y.arrival)==null?void 0:Yt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((Qt=y==null?void 0:y.arrival)==null?void 0:Qt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",VN,[t.createElementVNode("table",xN,[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(d.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(E=a==null?void 0:a.extend)==null?void 0:E.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((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(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((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(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(B=l.report)==null?void 0:B.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",pN,t.toDisplayString((W=(Q=a==null?void 0:a.extend)==null?void 0:Q.cp)==null?void 0:W.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",zN,[t.createElementVNode("div",jN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",kN,[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",UN,[((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",fN,"Time Gained")):((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",SN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",CN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",bN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",ON,[((J=a==null?void 0:a.timeConclusion)==null?void 0:J.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",hN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",YN,t.toDisplayString((H=a==null?void 0:a.timeConclusion)==null?void 0:H.timeGain),1),e[14]||(e[14]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):((X=a==null?void 0:a.timeConclusion)==null?void 0:X.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",QN,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",wN,t.toDisplayString((K=a==null?void 0:a.timeConclusion)==null?void 0:K.timeLost),1),e[16]||(e[16]=t.createElementVNode("span",{class:"unit"},"hrs",-1))])):(t.openBlock(),t.createElementBlock("div",RN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",BN,[e[26]||(e[26]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",FN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[21]||(e[21]=t.createElementVNode("span",{class:"unit"},"mt",-1)),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("span",GN,[e[18]||(e[18]=t.createTextVNode(" (HSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(d.computePrecision(n.multiFOCons.hsFoCons,3)),1),e[19]||(e[19]=t.createTextVNode(" / LSFO ",-1)),t.createElementVNode("b",null,t.toDisplayString(d.computePrecision(n.multiFOCons.lsFoCons,3)),1),e[20]||(e[20]=t.createTextVNode(") ",-1))])):t.createCommentVNode("",!0)]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",PN,[((F=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",WN,"FO Saving")):((u=(M=a==null?void 0:a.fuelConclusion)==null?void 0:M.fo)==null?void 0:u.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",LN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",ZN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",_N,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",JN,[((ot=(lt=a==null?void 0:a.fuelConclusion)==null?void 0:lt.fo)==null?void 0:ot.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",HN,[e[22]||(e[22]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",XN,t.toDisplayString((it=(nt=a==null?void 0:a.fuelConclusion)==null?void 0:nt.fo)==null?void 0:it.saving),1),e[23]||(e[23]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((st=(dt=a==null?void 0:a.fuelConclusion)==null?void 0:dt.fo)==null?void 0:st.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",KN,[e[24]||(e[24]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",qN,t.toDisplayString((A=(rt=a==null?void 0:a.fuelConclusion)==null?void 0:rt.fo)==null?void 0:A.overCons),1),e[25]||(e[25]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",$N,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uN,[e[32]||(e[32]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",vN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[27]||(e[27]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",tm,[((tt=(v=a==null?void 0:a.fuelConclusion)==null?void 0:v.dgo)==null?void 0:tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",em,"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",am,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",lm,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",om,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",nm,[((Tt=(At=a==null?void 0:a.fuelConclusion)==null?void 0:At.dgo)==null?void 0:Tt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",im,[e[28]||(e[28]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",dm,t.toDisplayString((xt=(Vt=a==null?void 0:a.fuelConclusion)==null?void 0:Vt.dgo)==null?void 0:xt.saving),1),e[29]||(e[29]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((St=(Ut=a==null?void 0:a.fuelConclusion)==null?void 0:Ut.dgo)==null?void 0:St.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",sm,[e[30]||(e[30]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",rm,t.toDisplayString((Bt=(Rt=a==null?void 0:a.fuelConclusion)==null?void 0:Rt.dgo)==null?void 0:Bt.overCons),1),e[31]||(e[31]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",cm,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[34]||(e[34]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(d.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[38]||(e[38]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",Nm,[e[36]||(e[36]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[37]||(e[37]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",mm,[t.createElementVNode("table",Mm,[e[35]||(e[35]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,I)=>(t.openBlock(),t.createElementBlock("tr",{key:I},[t.createElementVNode("td",null,t.toDisplayString(I+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(d.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(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>d.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>d.handleEdit&&d.handleEdit(...a)),innerHTML:n.remarks},null,40,Dm))],2)],2),t.createElementVNode("div",gm,[e[240]||(e[240]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,I)=>{var k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt,G,Et,At,Tt,Vt,xt,Ut,St,Rt,Bt,y,wt,Ct,bt,Ot,ht,Yt,Qt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,Dt,at,Gt,re,ce,Ne,me,Me,De,It,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,dl,sl,rl,m,ft,de,se,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,da,sa,ra,ca,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,s,C,b,O,h,Y,R,P,_,et,ct,Nt,mt,Mt,pt,zt,jt,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Za,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,kl,Ul,fl,Sl,Cl,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,ro,co,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,dn,sn,rn,cn,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,di,si,ri,ci,Ni,mi,Mi,Di,gi,Ii,Ei,yi,Ai,Ti,Vi,xi,pi,zi;return t.openBlock(),t.createElementBlock("div",{key:I,class:"segment-block"},[t.createElementVNode("div",Im,[t.createElementVNode("div",Em,[t.createElementVNode("div",ym,"Voyage Analysis Seg. "+t.toDisplayString(I+1),1),t.createElementVNode("div",Am," CP Speed about: "+t.toDisplayString((z=(k=a.extend)==null?void 0:k.cp)==null?void 0:z.speed)+"kts, FO about: "+t.toDisplayString((x=(T=a==null?void 0:a.extend)==null?void 0:T.cp)==null?void 0:x.fo)+"mt, DO about: "+t.toDisplayString((E=(U=a==null?void 0:a.extend)==null?void 0:U.cp)==null?void 0:E.dgo)+"mt ",1)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((p=a==null?void 0:a.extend)==null?void 0:p.segTimes,(xe,Ol)=>{var Nl,bl,ji,ki,Ui,fi;return t.openBlock(),t.createElementBlock("div",{key:Ol,class:"segment-row text-secondary"},[t.createElementVNode("div",Tm,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((bl=xe.departure)==null?void 0:bl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((ji=xe==null?void 0:xe.departure)==null?void 0:ji.utcTime))+")",1)]),e[39]||(e[39]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",Vm,[t.createElementVNode("span",null,t.toDisplayString(((ki=xe==null?void 0:xe.arrival)==null?void 0:ki.portName)||((Ui=xe.arrival)==null?void 0:Ui.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(d.computeUTCTime((fi=xe==null?void 0:xe.arrival)==null?void 0:fi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",xm,[e[47]||(e[47]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",pm,t.toDisplayString((f=(j=a==null?void 0:a.goodWx)==null?void 0:j.outEca)==null?void 0:f.distance),1),t.createElementVNode("td",zm,t.toDisplayString((w=(g=a==null?void 0:a.goodWx)==null?void 0:g.inEca)==null?void 0:w.distance),1),t.createElementVNode("td",null,t.toDisplayString((S=(B=a==null?void 0:a.allWx)==null?void 0:B.outEca)==null?void 0:S.distance),1),t.createElementVNode("td",null,t.toDisplayString((W=(Q=a==null?void 0:a.allWx)==null?void 0:Q.inEca)==null?void 0:W.distance),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",jm,t.toDisplayString((Z=(L=a==null?void 0:a.goodWx)==null?void 0:L.outEca)==null?void 0:Z.time),1),t.createElementVNode("td",km,t.toDisplayString((H=(J=a==null?void 0:a.goodWx)==null?void 0:J.inEca)==null?void 0:H.time),1),t.createElementVNode("td",null,t.toDisplayString((K=(X=a==null?void 0:a.allWx)==null?void 0:X.outEca)==null?void 0:K.time),1),t.createElementVNode("td",null,t.toDisplayString((F=($=a==null?void 0:a.allWx)==null?void 0:$.inEca)==null?void 0:F.time),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",Um,t.toDisplayString(((u=(M=a==null?void 0:a.goodWx)==null?void 0:M.outEca)==null?void 0:u.avgSpd)||"--"),1),t.createElementVNode("td",fm,t.toDisplayString(((ot=(lt=a==null?void 0:a.goodWx)==null?void 0:lt.inEca)==null?void 0:ot.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((it=(nt=a==null?void 0:a.allWx)==null?void 0:nt.outEca)==null?void 0:it.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((st=(dt=a==null?void 0:a.allWx)==null?void 0:dt.inEca)==null?void 0:st.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((A=(rt=a==null?void 0:a.goodWx)==null?void 0:rt.outEca)==null?void 0:A.sumFoCons)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((tt=(v=a==null?void 0:a.goodWx)==null?void 0:v.inEca)==null?void 0:tt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Et=(G=a==null?void 0:a.allWx)==null?void 0:G.outEca)==null?void 0:Et.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Tt=(At=a==null?void 0:a.allWx)==null?void 0:At.inEca)==null?void 0:Tt.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[44]||(e[44]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((xt=(Vt=a==null?void 0:a.goodWx)==null?void 0:Vt.outEca)==null?void 0:xt.avgFoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((St=(Ut=a==null?void 0:a.goodWx)==null?void 0:Ut.inEca)==null?void 0:St.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.allWx)==null?void 0:Rt.outEca)==null?void 0:Bt.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((wt=(y=a==null?void 0:a.allWx)==null?void 0:y.inEca)==null?void 0:wt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[45]||(e[45]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",hm,t.toDisplayString(((bt=(Ct=a==null?void 0:a.goodWx)==null?void 0:Ct.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",Ym,t.toDisplayString(((ht=(Ot=a==null?void 0:a.goodWx)==null?void 0:Ot.inEca)==null?void 0:ht.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Qt=(Yt=a==null?void 0:a.allWx)==null?void 0:Yt.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.inEca)==null?void 0:Ht.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[46]||(e[46]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Qm,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.goodWx)==null?void 0:Xt.outEca)==null?void 0:Kt.avgDgoCons)||"--"),1),t.createElementVNode("td",wm,t.toDisplayString((($t=(qt=a==null?void 0:a.goodWx)==null?void 0:qt.inEca)==null?void 0:$t.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((vt=(ut=a==null?void 0:a.allWx)==null?void 0:ut.outEca)==null?void 0:vt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((ee=(te=a==null?void 0:a.allWx)==null?void 0:te.inEca)==null?void 0:ee.avgDgoCons)||"--"),1)])])]),(ae=a==null?void 0:a.goodWx)!=null&&ae.distance?(t.openBlock(),t.createElementBlock("table",Rm,[e[49]||(e[49]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[I],(xe,Ol)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ol},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,bl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:bl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Bm,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(d.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[48]||(e[48]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(d.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(d.computeDuration(Nl.utc,d.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),(le=n.exclusion[I])!=null&&le.time?(t.openBlock(),t.createElementBlock("div",Fm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(oe=a==null?void 0:a.goodWx)!=null&&oe.distance?(t.openBlock(),t.createElementBlock("div",Gm,[t.createElementVNode("div",Pm,[e[59]||(e[59]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Wm,[(ie=(ne=l.report)==null?void 0:ne.weather)!=null&&ie.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(It=(De=l.report)==null?void 0:De.weather)!=null&&It.disableWxFactor&&((pe=(Ee=l.report)==null?void 0:Ee.weather)!=null&&pe.disableCFactor)?(t.openBlock(),t.createElementBlock("span",_m,t.toDisplayString((ze=a==null?void 0:a.goodWx)==null?void 0:ze.pfmSpd)+" (kts)",1)):(ke=(je=l.report)==null?void 0:je.weather)!=null&&ke.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((Ue=a==null?void 0:a.goodWx)==null?void 0:Ue.avgSpd),1),e[52]||(e[52]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgCf)>0?(Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgCf:`(${(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgCf})`),1),e[53]||(e[53]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Jm,t.toDisplayString((be=a==null?void 0:a.goodWx)==null?void 0:be.pfmSpd)+" (kts)",1)],64)):(he=(Oe=l.report)==null?void 0:Oe.weather)!=null&&he.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf)>0?(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf:`(${(Re=a==null?void 0:a.goodWx)==null?void 0:Re.avgWf})`),1),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Hm,t.toDisplayString((Be=a==null?void 0:a.goodWx)==null?void 0:Be.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgSpd),1),e[57]||(e[57]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgWf)>0?(Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.avgWf:`(${(Xa=a==null?void 0:a.goodWx)==null?void 0:Xa.avgWf})`),1),(qa=(Ka=l.report)==null?void 0:Ka.weather)!=null&&qa.favorableCur&&(($a=a==null?void 0:a.goodWx)==null?void 0:$a.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[56]||(e[56]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ua=a==null?void 0:a.goodWx)==null?void 0:ua.avgCf)>0?(va=a==null?void 0:a.goodWx)==null?void 0:va.avgCf:`(${(tl=a==null?void 0:a.goodWx)==null?void 0:tl.avgCf})`),1)],64)),e[58]||(e[58]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Xm,t.toDisplayString((el=a==null?void 0:a.goodWx)==null?void 0:el.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(Dt=(i=l.report)==null?void 0:i.weather)!=null&&Dt.favorableCur&&((at=a==null?void 0:a.goodWx)==null?void 0:at.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Zm,t.toDisplayString((Me=a==null?void 0:a.goodWx)==null?void 0:Me.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Gt=a==null?void 0:a.goodWx)==null?void 0:Gt.avgSpd),1),e[50]||(e[50]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((re=a==null?void 0:a.goodWx)==null?void 0:re.avgCf)>0?(ce=a==null?void 0:a.goodWx)==null?void 0:ce.avgCf:`(${(Ne=a==null?void 0:a.goodWx)==null?void 0:Ne.avgCf})`),1),e[51]||(e[51]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)],64))],64)),(ll=(al=l.report)==null?void 0:al.voyage)!=null&&ll.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ol=a==null?void 0:a.goodWx)==null?void 0:ol.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",Km,"(Under-performance)")):t.createCommentVNode("",!0),((nl=a==null?void 0:a.goodWx)==null?void 0:nl.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",qm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",$m,[e[76]||(e[76]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",um,[(dl=(il=l.report)==null?void 0:il.weather)!=null&&dl.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(de=(ft=l.report)==null?void 0:ft.weather)!=null&&de.disableWxFactor&&((ge=(se=l.report)==null?void 0:se.weather)!=null&&ge.disableCFactor)?(t.openBlock(),t.createElementBlock("label",vm,"GW Average Speed")):(Ge=(ye=l.report)==null?void 0:ye.weather)!=null&&Ge.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(We=(Pe=l.report)==null?void 0:Pe.weather)!=null&&We.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[68]||(e[68]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"-",-1)),e[70]||(e[70]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[73]||(e[73]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[74]||(e[74]=t.createElementVNode("label",null,"-",-1)),e[75]||(e[75]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(Ze=(Le=l.report)==null?void 0:Le.weather)!=null&&Ze.favorableCur&&((_e=a==null?void 0:a.goodWx)==null?void 0:_e.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(rl=(sl=l.report)==null?void 0:sl.weather)!=null&&rl.favorableCur&&((m=a==null?void 0:a.goodWx)==null?void 0:m.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[63]||(e[63]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"-",-1)),e[62]||(e[62]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",tM,[t.createElementVNode("div",eM,[e[82]||(e[82]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",aM,[(He=(Je=l.report)==null?void 0:Je.weather)!=null&&He.favorableCur&&((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((la=a==null?void 0:a.allWx)==null?void 0:la.avgSpd),1),e[80]||(e[80]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((oa=a==null?void 0:a.allWx)==null?void 0:oa.avgWf)>0?(na=a==null?void 0:a.allWx)==null?void 0:na.avgWf:`(${(ia=a==null?void 0:a.allWx)==null?void 0:ia.avgWf})`),1),e[81]||(e[81]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",oM,t.toDisplayString((da=a==null?void 0:a.allWx)==null?void 0:da.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Ke=a==null?void 0:a.allWx)==null?void 0:Ke.avgSpd),1),e[77]||(e[77]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((qe=a==null?void 0:a.allWx)==null?void 0:qe.avgCf)>0?($e=a==null?void 0:a.allWx)==null?void 0:$e.avgCf:`(${(ue=a==null?void 0:a.allWx)==null?void 0:ue.avgCf})`),1),e[78]||(e[78]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ve=a==null?void 0:a.allWx)==null?void 0:ve.avgWf)>0?(ta=a==null?void 0:a.allWx)==null?void 0:ta.avgWf:`(${(ea=a==null?void 0:a.allWx)==null?void 0:ea.avgWf})`),1),e[79]||(e[79]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",lM,t.toDisplayString((aa=a==null?void 0:a.allWx)==null?void 0:aa.pfmSpd)+" (kts)",1)],64)),(ra=(sa=l.report)==null?void 0:sa.voyage)!=null&&ra.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((ca=a==null?void 0:a.allWx)==null?void 0:ca.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",nM,"(Under-performance)")):t.createCommentVNode("",!0),((Na=a==null?void 0:a.allWx)==null?void 0:Na.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",iM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",dM,[e[92]||(e[92]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",sM,[(Ma=(ma=l.report)==null?void 0:ma.weather)!=null&&Ma.favorableCur&&((Da=a==null?void 0:a.allWx)==null?void 0:Da.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[88]||(e[88]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[89]||(e[89]=t.createElementVNode("label",null,"-",-1)),e[90]||(e[90]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[91]||(e[91]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[83]||(e[83]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"-",-1)),e[85]||(e[85]=t.createElementVNode("label",null,"Current Factor",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",rM,[t.createElementVNode("div",cM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Time Analysis",1),(Ia=(ga=l.report)==null?void 0:ga.weather)!=null&&Ia.noExtrapolation?(t.openBlock(),t.createElementBlock("span",NM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",mM,[t.createElementVNode("div",MM,[e[96]||(e[96]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",DM,[t.createElementVNode("div",gM,[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[93]||(e[93]=t.createElementVNode("div",{class:"line"},null,-1)),e[94]||(e[94]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[95]||(e[95]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",IM,[t.createElementVNode("div",EM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.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[97]||(e[97]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",yM,[t.createElementVNode("div",AM,[t.createElementVNode("div",null,t.toDisplayString((xa=(Va=l.report)==null?void 0:Va.weather)!=null&&xa.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(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Under"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",TM,[t.createElementVNode("div",VM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.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[100]||(e[100]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",xM,[t.createElementVNode("div",pM,[t.createElementVNode("div",null,t.toDisplayString((fa=(Ua=l.report)==null?void 0:Ua.weather)!=null&&fa.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[101]||(e[101]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Over"))+"kts",1)]),e[102]||(e[102]=t.createElementVNode("div",null,"(c)",-1))])]),e[103]||(e[103]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-40252024><div class="flex-space" style="width:300px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Lost</label><div data-v-40252024>=</div><div data-v-40252024>(a)</div><div data-v-40252024>-</div><div data-v-40252024>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-40252024><label data-v-40252024>Time Gained</label><div data-v-40252024>=</div><div data-v-40252024>(c)</div><div data-v-40252024>-</div><div data-v-40252024>(a)</div></div></div>',1))]),t.createElementVNode("div",zM,[t.createElementVNode("div",jM,[e[104]||(e[104]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Oa=(ba=a==null?void 0:a.extend)==null?void 0:ba.cp)==null?void 0:Oa.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",kM,[e[105]||(e[105]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ya=(ha=a==null?void 0:a.extend)==null?void 0:ha.cp)==null?void 0:Ya.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",UM,[e[106]||(e[106]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(wa=(Qa=a==null?void 0:a.extend)==null?void 0:Qa.cp)==null?void 0:wa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ba=(Ra=a==null?void 0:a.extend)==null?void 0:Ra.cp)==null?void 0:Ba.speed,"Under"))+" kts) ",1)])]),(Fa=a==null?void 0:a.goodWx)!=null&&Fa.distance?(t.openBlock(),t.createElementBlock("div",fM,[t.createElementVNode("div",SM,[e[110]||(e[110]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",CM,[t.createElementVNode("div",bM,[t.createElementVNode("div",null,t.toDisplayString((Pa=(Ga=l.report)==null?void 0:Ga.weather)!=null&&Pa.noExtrapolation?(Wa=a==null?void 0:a.goodWx)==null?void 0:Wa.distance:(La=a==null?void 0:a.allWx)==null?void 0:La.distance),1),e[107]||(e[107]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((s=a==null?void 0:a.goodWx)==null?void 0:s.pfmSpd),1)]),e[108]||(e[108]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((C=a==null?void 0:a.timeConclusion)==null?void 0:C.timeAtPfmSpd)+" (hrs)",1),e[109]||(e[109]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",OM,[t.createElementVNode("div",hM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(O=(b=a==null?void 0:a.extend)==null?void 0:b.cp)==null?void 0:O.speed,"Under"))+"kts)",1),e[111]||(e[111]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",YM,[t.createElementVNode("div",QM,[t.createElementVNode("div",null,t.toDisplayString((Y=(h=l.report)==null?void 0:h.weather)!=null&&Y.noExtrapolation?(R=a==null?void 0:a.goodWx)==null?void 0:R.distance:(P=a==null?void 0:a.allWx)==null?void 0:P.distance),1),e[112]||(e[112]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((_=a==null?void 0:a.timeConclusion)==null?void 0:_.minusAbtSpd),1)]),e[113]||(e[113]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((et=a==null?void 0:a.timeConclusion)==null?void 0:et.timeAtMinusAbtSpd)+" (hrs)",1),e[114]||(e[114]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",wM,[t.createElementVNode("div",RM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Nt=(ct=a==null?void 0:a.extend)==null?void 0:ct.cp)==null?void 0:Nt.speed,"Over"))+"kts)",1),e[115]||(e[115]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",BM,[t.createElementVNode("div",FM,[t.createElementVNode("div",null,t.toDisplayString((Mt=(mt=l.report)==null?void 0:mt.weather)!=null&&Mt.noExtrapolation?(pt=a==null?void 0:a.goodWx)==null?void 0:pt.distance:(zt=a==null?void 0:a.allWx)==null?void 0:zt.distance),1),e[116]||(e[116]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((jt=a==null?void 0:a.timeConclusion)==null?void 0:jt.plusAbtSpd),1)]),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd)+" (hrs)",1),e[118]||(e[118]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",GM,[((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",PM,[e[119]||(e[119]=t.createElementVNode("div",null,"Time Lost",-1)),e[120]||(e[120]=t.createElementVNode("div",null,"=",-1)),e[121]||(e[121]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[122]||(e[122]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeAtPfmSpd),1),e[123]||(e[123]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.timeAtMinusAbtSpd),1),e[124]||(e[124]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.timeLost)+" (hrs)",1)])):((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",WM,[e[125]||(e[125]=t.createElementVNode("div",null,"Time Lost",-1)),e[126]||(e[126]=t.createElementVNode("div",null,"=",-1)),e[127]||(e[127]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[128]||(e[128]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ae=a==null?void 0:a.timeConclusion)==null?void 0:Ae.timeAtPlusAbtSpd),1),e[129]||(e[129]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Te=a==null?void 0:a.timeConclusion)==null?void 0:Te.timeAtPfmSpd),1),e[130]||(e[130]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Za=a==null?void 0:a.timeConclusion)==null?void 0:Za.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",LM,[e[131]||(e[131]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((ml=a==null?void 0:a.timeConclusion)==null?void 0:ml.conclusionStatus)==="Lost"?"lost":((Ml=a==null?void 0:a.timeConclusion)==null?void 0:Ml.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Dl=a==null?void 0:a.timeConclusion)==null?void 0:Dl.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",ZM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",_M,[t.createElementVNode("div",JM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(I+1)+" Consumption Analysis",1),(Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?(t.openBlock(),t.createElementBlock("span",HM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",XM,[t.createElementVNode("div",KM,[e[137]||(e[137]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",qM,[t.createElementVNode("div",$M,[t.createElementVNode("div",null,t.toDisplayString((yl=(El=l.report)==null?void 0:El.weather)!=null&&yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[132]||(e[132]=t.createElementVNode("div",{class:"line"},null,-1)),e[133]||(e[133]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[134]||(e[134]=t.createElementVNode("div",null,"x",-1)),e[135]||(e[135]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[136]||(e[136]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",uM,[e[138]||(e[138]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Tl=(Al=a.extend)==null?void 0:Al.cp)==null?void 0:Tl.dgo)>0?(t.openBlock(),t.createElementBlock("div",vM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",tD,[e[143]||(e[143]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",eD,[t.createElementVNode("div",aD,[t.createElementVNode("div",null,t.toDisplayString((xl=(Vl=l.report)==null?void 0:Vl.weather)!=null&&xl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[139]||(e[139]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(zl=(pl=a==null?void 0:a.extend)==null?void 0:pl.cp)==null?void 0:zl.speed,"Under"))+"kts",1)]),e[140]||(e[140]=t.createElementVNode("div",null,"x",-1)),e[141]||(e[141]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[142]||(e[142]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",lD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oD,[t.createElementVNode("div",nD,[t.createElementVNode("div",null,t.toDisplayString((kl=(jl=l.report)==null?void 0:jl.weather)!=null&&kl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[144]||(e[144]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(d.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fl=(Ul=a==null?void 0:a.extend)==null?void 0:Ul.cp)==null?void 0:fl.speed,"Over"))+"kts",1)]),e[145]||(e[145]=t.createElementVNode("div",null,"x",-1)),e[146]||(e[146]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[147]||(e[147]=t.createElementVNode("div",null,"(f)",-1))])]),e[155]||(e[155]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-40252024><div class="flex-space" style="width:240px;" data-v-40252024><label data-v-40252024>Fuel Over-consumption</label><div data-v-40252024>=</div><div data-v-40252024>(d)</div><div data-v-40252024>-</div><div data-v-40252024>(e)</div></div><div class="flex-space" style="width:200px;" data-v-40252024><label data-v-40252024>Fuel Saving</label><div data-v-40252024>=</div><div data-v-40252024>(f)</div><div data-v-40252024>-</div><div data-v-40252024>(d)</div></div></div>',1)),((Cl=(Sl=a.extend)==null?void 0:Sl.cp)==null?void 0:Cl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",iD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",dD,[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Yl=(hl=l.report)==null?void 0:hl.weather)!=null&&Yl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",rD,[e[154]||(e[154]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",cD,[t.createElementVNode("div",ND,[e[152]||(e[152]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wl=(Ql=l.report)==null?void 0:Ql.weather)!=null&&wl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[239]||(e[239]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",mD,"Seg. "+t.toDisplayString(I+1)+" Fuel Oil",1),(Rl=a==null?void 0:a.goodWx)!=null&&Rl.distance?(t.openBlock(),t.createElementBlock("div",MD,[((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.distance)>0?(t.openBlock(),t.createElementBlock("div",DD,[e[161]||(e[161]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.goodWx)==null?void 0:Gl.inEca)==null?void 0:Pl.sumDgoCons),1)]),e[158]||(e[158]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=a==null?void 0:a.extend)==null?void 0:Wl.cp)==null?void 0:Ll.dgo),1),e[156]||(e[156]=t.createElementVNode("div",{class:"line"},null,-1)),e[157]||(e[157]=t.createElementVNode("div",null,"24",-1))]),e[159]||(e[159]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((_l=(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.inEca)==null?void 0:_l.time),1),e[160]||(e[160]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hl=(Jl=a==null?void 0:a.fuelConclusion)==null?void 0:Jl.fo)==null?void 0:Hl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",yD,[e[168]||(e[168]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",AD,[t.createElementVNode("div",TD,[t.createElementVNode("div",null,t.toDisplayString((Kl=(Xl=l.report)==null?void 0:Xl.weather)!=null&&Kl.noExtrapolation?(ql=a==null?void 0:a.goodWx)==null?void 0:ql.distance:($l=a==null?void 0:a.allWx)==null?void 0:$l.distance),1),e[162]||(e[162]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.pfmSpd),1)]),e[165]||(e[165]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",VD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((vl=a==null?void 0:a.goodWx)==null?void 0:vl.sumFoCons),1),((eo=(to=a==null?void 0:a.goodWx)==null?void 0:to.inEca)==null?void 0:eo.distance)>0?(t.openBlock(),t.createElementBlock("span",xD,[e[163]||(e[163]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString((lo=(ao=a==null?void 0:a.fuelConclusion)==null?void 0:ao.fo)==null?void 0:lo.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[164]||(e[164]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((oo=a==null?void 0:a.goodWx)==null?void 0:oo.time),1)]),e[166]||(e[166]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((io=(no=a.fuelConclusion)==null?void 0:no.fo)==null?void 0:io.entireCons)+" (mt)",1),e[167]||(e[167]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",pD,[e[175]||(e[175]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((ro=(so=l.report)==null?void 0:so.weather)!=null&&ro.noExtrapolation?(co=a==null?void 0:a.goodWx)==null?void 0:co.distance:(No=a==null?void 0:a.allWx)==null?void 0:No.distance),1),e[169]||(e[169]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mo=a==null?void 0:a.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),e[172]||(e[172]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Do=(Mo=a==null?void 0:a.fuelConclusion)==null?void 0:Mo.fo)==null?void 0:Do.overTolerance),1),e[170]||(e[170]=t.createElementVNode("div",{class:"line"},null,-1)),e[171]||(e[171]=t.createElementVNode("div",null,"24",-1))]),e[173]||(e[173]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Io=(go=a.fuelConclusion)==null?void 0:go.fo)==null?void 0:Io.maxCons)+" (mt)",1),e[174]||(e[174]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",UD,[e[182]||(e[182]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",fD,[t.createElementVNode("div",SD,[t.createElementVNode("div",null,t.toDisplayString((yo=(Eo=l.report)==null?void 0:Eo.weather)!=null&&yo.noExtrapolation?(Ao=a==null?void 0:a.goodWx)==null?void 0:Ao.distance:(To=a==null?void 0:a.allWx)==null?void 0:To.distance),1),e[176]||(e[176]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Vo=a==null?void 0:a.timeConclusion)==null?void 0:Vo.plusAbtSpd),1)]),e[179]||(e[179]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.underTolerance),1),e[177]||(e[177]=t.createElementVNode("div",{class:"line"},null,-1)),e[178]||(e[178]=t.createElementVNode("div",null,"24",-1))]),e[180]||(e[180]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.minCons)+" (mt)",1),e[181]||(e[181]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",bD,[((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",OD,[e[183]||(e[183]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[184]||(e[184]=t.createElementVNode("div",null,"=",-1)),e[185]||(e[185]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[186]||(e[186]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((So=(fo=a==null?void 0:a.fuelConclusion)==null?void 0:fo.fo)==null?void 0:So.entireCons),1),e[187]||(e[187]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.fuelConclusion)==null?void 0:Co.fo)==null?void 0:bo.maxCons),1),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1)]),(Qo=(Yo=a==null?void 0:a.goodWx)==null?void 0:Yo.inEca)!=null&&Qo.distance?(t.openBlock(),t.createElementBlock("div",hD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",YD,[t.createElementVNode("div",null,t.toDisplayString((Ro=(wo=a==null?void 0:a.goodWx)==null?void 0:wo.inEca)==null?void 0:Ro.distance)+" * "+t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.overCons),1),e[189]||(e[189]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Po=(Go=l.report)==null?void 0:Go.weather)!=null&&Po.noExtrapolation?(Wo=a==null?void 0:a.goodWx)==null?void 0:Wo.distance:(Lo=a==null?void 0:a.allWx)==null?void 0:Lo.distance),1)]),e[192]||(e[192]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",QD,[e[193]||(e[193]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[194]||(e[194]=t.createElementVNode("div",null,"=",-1)),e[195]||(e[195]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[196]||(e[196]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ko=(Xo=a==null?void 0:a.fuelConclusion)==null?void 0:Xo.fo)==null?void 0:Ko.minCons),1),e[197]||(e[197]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString(($o=(qo=a==null?void 0:a.fuelConclusion)==null?void 0:qo.fo)==null?void 0:$o.entireCons),1),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((vo=(uo=a==null?void 0:a.fuelConclusion)==null?void 0:uo.fo)==null?void 0:vo.saving)+" (mt)",1)]),(en=(tn=a==null?void 0:a.goodWx)==null?void 0:tn.inEca)!=null&&en.distance?(t.openBlock(),t.createElementBlock("div",wD,[e[200]||(e[200]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[201]||(e[201]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",RD,[t.createElementVNode("div",null,t.toDisplayString((ln=(an=l.report)==null?void 0:an.weather)!=null&&ln.noExtrapolation?(nn=(on=a==null?void 0:a.goodWx)==null?void 0:on.inEca)==null?void 0:nn.distance:(sn=(dn=a==null?void 0:a.allWx)==null?void 0:dn.inEca)==null?void 0:sn.distance)+" * "+t.toDisplayString((cn=(rn=a==null?void 0:a.fuelConclusion)==null?void 0:rn.fo)==null?void 0:cn.saving),1),e[199]||(e[199]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((mn=(Nn=l.report)==null?void 0:Nn.weather)!=null&&mn.noExtrapolation?(Mn=a==null?void 0:a.goodWx)==null?void 0:Mn.distance:(Dn=a==null?void 0:a.allWx)==null?void 0:Dn.distance),1)]),e[202]||(e[202]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((yn=(En=a==null?void 0:a.fuelConclusion)==null?void 0:En.fo)==null?void 0:yn.conclusionStatus)==="Over"?"flex-center lost":((Tn=(An=a==null?void 0:a.fuelConclusion)==null?void 0:An.fo)==null?void 0:Tn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[203]||(e[203]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((xn=(Vn=a==null?void 0:a.fuelConclusion)==null?void 0:Vn.fo)==null?void 0:xn.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",BD,t.toDisplayString(n.noGoodWxDay),1)),((zn=(pn=a==null?void 0:a.extend)==null?void 0:pn.cp)==null?void 0:zn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",FD,[t.createElementVNode("div",GD,[e[204]||(e[204]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",PD,"Seg. "+t.toDisplayString(I+1)+" Diesel/Gas Oil",1)])]),(jn=a==null?void 0:a.goodWx)!=null&&jn.distance?(t.openBlock(),t.createElementBlock("div",WD,[t.createElementVNode("div",LD,[e[211]||(e[211]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ZD,[t.createElementVNode("div",_D,[t.createElementVNode("div",null,t.toDisplayString((Un=(kn=l.report)==null?void 0:kn.weather)!=null&&Un.noExtrapolation?(fn=a==null?void 0:a.goodWx)==null?void 0:fn.distance:(Sn=a==null?void 0:a.allWx)==null?void 0:Sn.distance),1),e[205]||(e[205]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.pfmSpd),1)]),e[208]||(e[208]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",JD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((bn=a==null?void 0:a.goodWx)==null?void 0:bn.sumDgoCons),1),((hn=(On=a==null?void 0:a.goodWx)==null?void 0:On.inEca)==null?void 0:hn.distance)>0?(t.openBlock(),t.createElementBlock("span",HD,[e[206]||(e[206]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Qn=(Yn=a==null?void 0:a.fuelConclusion)==null?void 0:Yn.fo)==null?void 0:Qn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[207]||(e[207]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wn=a==null?void 0:a.goodWx)==null?void 0:wn.time),1)]),e[209]||(e[209]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Bn=(Rn=a.fuelConclusion)==null?void 0:Rn.dgo)==null?void 0:Bn.entireCons)+" (mt)",1),e[210]||(e[210]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",XD,[e[218]||(e[218]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Gn=(Fn=l.report)==null?void 0:Fn.weather)!=null&&Gn.noExtrapolation?(Pn=a==null?void 0:a.goodWx)==null?void 0:Pn.distance:(Wn=a==null?void 0:a.allWx)==null?void 0:Wn.distance),1),e[212]||(e[212]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Ln=a==null?void 0:a.timeConclusion)==null?void 0:Ln.minusAbtSpd),1)]),e[215]||(e[215]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((_n=(Zn=a==null?void 0:a.fuelConclusion)==null?void 0:Zn.dgo)==null?void 0:_n.overTolerance),1),e[213]||(e[213]=t.createElementVNode("div",{class:"line"},null,-1)),e[214]||(e[214]=t.createElementVNode("div",null,"24",-1))]),e[216]||(e[216]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Hn=(Jn=a.fuelConclusion)==null?void 0:Jn.dgo)==null?void 0:Hn.maxCons)+" (mt)",1),e[217]||(e[217]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",uD,[e[225]||(e[225]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",vD,[t.createElementVNode("div",t1,[t.createElementVNode("div",null,t.toDisplayString((Kn=(Xn=l.report)==null?void 0:Xn.weather)!=null&&Kn.noExtrapolation?(qn=a==null?void 0:a.goodWx)==null?void 0:qn.distance:($n=a==null?void 0:a.allWx)==null?void 0:$n.distance),1),e[219]||(e[219]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((un=a==null?void 0:a.timeConclusion)==null?void 0:un.plusAbtSpd),1)]),e[222]||(e[222]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",e1,[t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.underTolerance),1),e[220]||(e[220]=t.createElementVNode("div",{class:"line"},null,-1)),e[221]||(e[221]=t.createElementVNode("div",null,"24",-1))]),e[223]||(e[223]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.minCons)+" (mt)",1),e[224]||(e[224]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",a1,[((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",l1,[e[226]||(e[226]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[227]||(e[227]=t.createElementVNode("div",null,"=",-1)),e[228]||(e[228]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[229]||(e[229]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.entireCons),1),e[230]||(e[230]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((si=(di=a==null?void 0:a.fuelConclusion)==null?void 0:di.dgo)==null?void 0:si.maxCons),1),e[231]||(e[231]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ci=(ri=a==null?void 0:a.fuelConclusion)==null?void 0:ri.dgo)==null?void 0:ci.overCons),1)])):((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.dgo)==null?void 0:mi.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",o1,[e[232]||(e[232]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[233]||(e[233]=t.createElementVNode("div",null,"=",-1)),e[234]||(e[234]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[235]||(e[235]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.minCons),1),e[236]||(e[236]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.entireCons),1),e[237]||(e[237]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Ti=(Ai=a==null?void 0:a.fuelConclusion)==null?void 0:Ai.dgo)==null?void 0:Ti.conclusionStatus)==="Over"?"flex-center lost":((xi=(Vi=a==null?void 0:a.fuelConclusion)==null?void 0:Vi.dgo)==null?void 0:xi.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[238]||(e[238]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((zi=(pi=a==null?void 0:a.fuelConclusion)==null?void 0:pi.dgo)==null?void 0:zi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",n1,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const d1=Ve(NN,[["render",i1],["__scopeId","data-v-40252024"]]),Dk="",s1={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`${yt(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,c,n,d,D,r,N,V,a,I;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((c=(l=this.report)==null?void 0:l.weather)==null?void 0:c.showAisDistance)??!0,this.showSig=((d=(n=this.report)==null?void 0:n.weather)==null?void 0:d.showSig)??!0,this.showSwell=((r=(D=this.report)==null?void 0:D.weather)==null?void 0:r.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((I=(a=this.report)==null?void 0:a.weather)==null?void 0:I.waterTempSwitch)||!1}}},r1={class:"report-inventory"},c1={class:"section summary-section"},N1={class:"summary-block"},m1={class:"orm-report-table inventory-table"},M1={class:"label",rowspan:"4"},D1={class:"section inventory-section"},g1={class:"orm-report-table inventory-table detail"},I1=["colspan"],E1={key:0,class:"label",colspan:"2"},y1={key:0,class:"label",rowspan:"2"},A1={key:1,class:"label",rowspan:"2"},T1={key:2,class:"label",rowspan:"2"},V1={key:3,class:"label",colspan:"2"},x1={key:4,class:"label",rowspan:"2"},p1={key:5,class:"label",colspan:"2"},z1={key:6,class:"label",rowspan:"2"},j1={key:7,class:"label",rowspan:"2"},k1={key:8,class:"label",rowspan:"2"},U1={key:0,class:"label"},f1={key:1,class:"label"},S1={key:2,class:"label"},C1={key:3,class:"label"},b1={class:"summary-tbody"};function O1(o,e,l,c,n,d){var D;return t.openBlock(),t.createElementBlock("div",r1,[t.createElementVNode("div",c1,[e[5]||(e[5]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Speed and Weather Analysis")])],-1)),t.createElementVNode("div",N1,[t.createElementVNode("table",m1,[e[4]||(e[4]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),t.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Distance"),t.createElementVNode("div",{class:"text-units"},"(nm)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Time"),t.createElementVNode("div",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",{class:"label",rowspan:"2"},[t.createElementVNode("div",null,"Average Speed"),t.createElementVNode("div",{class:"text-units"},"(kts)")]),t.createElementVNode("th",{class:"label",colspan:"2"},[t.createTextVNode("Total Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")])]),t.createElementVNode("tr",null,[t.createElementVNode("th",{class:"label"},"FO"),t.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((D=l.report)==null?void 0:D.segments,(r,N)=>{var V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",M1,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((V=r==null?void 0:r.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((a=r==null?void 0:r.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((I=r==null?void 0:r.allWx)==null?void 0:I.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((k=r==null?void 0:r.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((z=r==null?void 0:r.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((T=r==null?void 0:r.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((x=r==null?void 0:r.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((U=r==null?void 0:r.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((E=r==null?void 0:r.goodWx)==null?void 0:E.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((p=r==null?void 0:r.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((j=r==null?void 0:r.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((f=r==null?void 0:r.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((g=r==null?void 0:r.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((w=r==null?void 0:r.badWx)==null?void 0:w.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((B=r==null?void 0:r.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((S=r==null?void 0:r.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Q=r==null?void 0:r.excluded)==null?void 0:Q.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((W=r==null?void 0:r.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((L=r==null?void 0:r.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(d.computePrecision((Z=r==null?void 0:r.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",D1,[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",g1,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:d.computeWxColspan},"ORM Weather Analysis",8,I1),l.showFactor?(t.openBlock(),t.createElementBlock("th",E1,"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",y1,[...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",A1,[...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",T1,[...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",V1,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",x1,[...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",p1,"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",z1,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",j1,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",k1,[...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",U1,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",f1,[...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",S1,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",C1,[...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",b1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(r,N)=>{var V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(r.segLength?"no-border-bottom":"no-border")},t.toDisplayString(r.segLength?r.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",r.excluded?"excluded":r.goodWx?"good-wx":""])},t.toDisplayString(r.time),3),["B","E"].includes(r.abbrev)&&((V=r.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=r.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((k=(I=r.meteo)==null?void 0:I.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((T=(z=r.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((E=(U=(x=r.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:E.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((f=(j=(p=r.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(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((B=(w=(g=r.meteo)==null?void 0:g.wave)==null?void 0:w.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((W=(Q=(S=r.meteo)==null?void 0:S.wave)==null?void 0:Q.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((Z=(L=r.meteo)==null?void 0:L.current)==null?void 0:Z.direction)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:9,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(r.type==="BOSP"?"-":((J=r.meteo)==null?void 0:J.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((H=r.meteo)==null?void 0:H.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(((X=r.meteo)==null?void 0:X.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(r.excluded?"excluded":r.goodWx?"good-wx":"")},t.toDisplayString(d.computePrecision((K=r.meteo)==null?void 0:K.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(["A"].includes(r.abbrev)?"":r.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(d.computeTDClass(r))},t.toDisplayString(!["A","B"].includes(r.abbrev)&&N?r.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const h1=Ve(s1,[["render",O1],["__scopeId","data-v-dea0638a"]]),gk="",Y1={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`${yt(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(Oi.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(Oi.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(Oi.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var I,k,z,T,x,U;let o=[];const e=[],l=[],c={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,d=0;const D=this.inventory.filter(E=>E.noon)||[],r=[];this.inventory.forEach((E,p)=>{var j,f;p===0&&r.push(E.utc),E.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(r.push(E.utc),r.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&r.push(E.utc)}),r.forEach((E,p)=>{if(p%2===0){const j=yt(r[p+1]).diff(yt(r[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(yt(r[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((E,p)=>{var f,g,w,B,S,Q,W,L,Z,J,H,X,K,$;const j=this.computeUTCTime(E.utc,"MM-DD/HHmm[Z]");if(E.noon&&!o.some(F=>F.slice(0,5)===E.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==E.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=E.noon)==null?void 0:f.foCons)>n?(g=E.noon)==null?void 0:g.foCons:n),n=Math.ceil(((w=E.cp)==null?void 0:w.fo)>n?(B=E.cp)==null?void 0:B.fo:n),d=Math.ceil(((S=E.noon)==null?void 0:S.dgoCons)>d?(Q=E.noon)==null?void 0:Q.dgoCons:d),d=Math.ceil(((W=E.cp)==null?void 0:W.dgo)>d?(L=E.cp)==null?void 0:L.dgo:d),l.push([j,(Z=E.noon)==null?void 0:Z.avgSpd,(J=E.noon)==null?void 0:J.foCons,(H=E.noon)==null?void 0:H.dgoCons,E.avgSpdCalc,E.cp.speed,E.goodWx&&!E.excluded?100:0,E.cp.dgo,E.cp.fo,E.excluded?100:0]),p<D.length-1){const F=D[p+1];l.push([j,(X=F.noon)==null?void 0:X.avgSpd,(K=F.noon)==null?void 0:K.foCons,($=F.noon)==null?void 0:$.dgoCons,F.avgSpdCalc,F.cp.speed,F.goodWx&&!F.excluded?100:0,F.cp.dgo,F.cp.fo,F.excluded?100:0])}});const N=Math.ceil(o.length/10);o=o.filter((E,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max: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:c.dateTime,y:c.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:c.dateTime,y:c.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(k=(I=this.report)==null?void 0:I.weather)!=null&&k.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data: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:d+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:c.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:c.dateTime,y:c.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:c.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?c.noonAvgSpd:c.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:c.dateTime,y:c.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],c={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const d=this.inventory||[],D=[];d.forEach((T,x)=>{var U,E;x===0&&D.push(T.utc),T.type==="EOSP"&&((U=d[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(T.utc),D.push((E=d[x+1])==null?void 0:E.utc)),x===d.length-1&&D.push(T.utc)}),D.forEach((T,x)=>{if(x%2===0){const U=yt(D[x+1]).diff(yt(D[x]),"minute",!0);for(let E=0;E<=U+1;E++)e.push(this.computeUTCTime(yt(D[x]).clone().utc().add(E,"m").format(),"MM-DD/HHmm[Z]"))}}),d.forEach((T,x)=>{var E,p,j,f,g,w,B,S,Q,W,L,Z,J,H,X,K,$,F,M,u,lt,ot,nt,it,dt,st,rt,A,v,tt;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===d.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(E=T.meteo)==null?void 0:E.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,((B=T.noon)==null?void 0:B.windBF)||((Q=(S=T.meteo)==null?void 0:S.wind)==null?void 0:Q.scale),(L=(W=T.meteo)==null?void 0:W.wind)==null?void 0:L.scale,(J=(Z=T.meteo)==null?void 0:Z.wind)==null?void 0:J.direction,(H=T.noon)==null?void 0:H.seasHt,($=(K=(X=T.meteo)==null?void 0:X.wave)==null?void 0:K.sig)==null?void 0:$.height,T.dailyAvgCf??((F=l[l.length-1])==null?void 0:F[c.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<d.length-1){const G=d[x+1];l.push([U,((M=T.noon)==null?void 0:M.windBF)||((lt=(u=T.meteo)==null?void 0:u.wind)==null?void 0:lt.scale),(nt=(ot=G.meteo)==null?void 0:ot.wind)==null?void 0:nt.scale,(dt=(it=G.meteo)==null?void 0:it.wind)==null?void 0:dt.direction,(st=G.noon)==null?void 0:st.seasHt,(v=(A=(rt=T.meteo)==null?void 0:rt.wave)==null?void 0:A.sig)==null?void 0:v.height,G.dailyAvgCf??((tt=l[l.length-1])==null?void 0:tt[c.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const r=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%r===0);let N=-2.5,V=2.5,a=1,I=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),I=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,I=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:I,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(I-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:I,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(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*(I-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:I,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(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:c.dateTime,y:c.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:c.dateTime,y:c.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:c.dateTime,y:c.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:c.dateTime,y:c.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let c=0;c<o.length;c++){const n=o[c];if(n.length>=e+1){const d=n[e];typeof d=="number"&&!isNaN(d)&&Number(d)>l&&(l=d)}}return l},findMinValue(o,e){let l=1/0;for(let c=0;c<o.length;c++){const n=o[c];if(n.length>=e+1){const d=n[e];d<l&&(l=d)}}return l}}},Q1={class:"report-summary"},w1={class:"section chart-section"},R1={class:"chart-block"},B1={ref:"spdFoConsChart",class:"chart"},F1={ref:"spdDgoConsChart",class:"chart"},G1={ref:"currChart",class:"chart"},P1={class:"section map-section"},W1={class:"map-block"},L1={class:"flex-space"},Z1={class:"voyage-block bg-blue-light"},_1={class:"flex-space label-block",style:{width:"100%"}},J1={style:{"text-transform":"uppercase"}},H1={class:"flex-space label-block",style:{width:"100%"}},X1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},K1={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},q1={class:"flex-space label-block",style:{width:"100%"}},$1={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},u1={class:"flex-space label-block",style:{width:"100%"}},v1={class:"flex-end",style:{flex:"1"}},tg={class:"flex-end",style:{width:"160px"}},eg={class:"flex-space label-block",style:{width:"100%"}},ag={class:"flex-end",style:{flex:"1"}},lg={class:"flex-end",style:{width:"160px"}},og={class:"flex-space label-block",style:{width:"100%"}},ng={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},ig=["src"];function dg(o,e,l,c,n,d){var D,r,N,V,a,I,k,z,T,x,U,E,p,j,f,g,w,B,S,Q;return t.openBlock(),t.createElementBlock("div",Q1,[t.createElementVNode("div",w1,[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",R1,[t.createElementVNode("div",B1,null,512),t.createElementVNode("div",F1,null,512),t.createElementVNode("div",G1,null,512)])]),t.createElementVNode("div",P1,[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",W1,[t.createElementVNode("div",L1,[t.createElementVNode("div",Z1,[t.createElementVNode("div",_1,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",J1,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",H1,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",X1,t.toDisplayString((r=(D=l.report)==null?void 0:D.vessel)==null?void 0:r.name),1),t.createElementVNode("span",K1,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",q1,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",$1,t.toDisplayString((I=(a=l.report)==null?void 0:a.voyage)==null?void 0:I.number),1)]),t.createElementVNode("div",u1,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",v1,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",tg,t.toDisplayString(d.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",eg,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",ag,t.toDisplayString(((p=(E=l.report)==null?void 0:E.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",lg,t.toDisplayString(d.computeUTCTime((w=(g=l.report)==null?void 0:g.arrival)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",og,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",ng,t.toDisplayString((S=(B=l.report)==null?void 0:B.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,ig)])]),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 sg=Ve(Y1,[["render",dg],["__scopeId","data-v-34b7edf0"]]),Ik="",Ek="",rg={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`${yt(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 c="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(I=>{const k=`<p>${I}</p>`;c=c+k}),c=c+"</div>"):c=e.body;const n=document.getElementById("col1"),d=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,r=(d==null?void 0:d.offsetHeight)||0;if(D<=r){let I=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
2
2
  <div class="vrpt-date">Date: ${e.date}</div>
3
3
  <div class="vrpt-from">From: ${e.from}</div>
4
4
  <div class="vrpt-to">To: ${e.to}</div>