@idmui/extend 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -5
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Nt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(Nt=typeof globalThis<"u"?globalThis:Nt||self,t(Nt["idmui-extend"]={},Nt.Vue,Nt["@wangeditor/editor-for-vue"],Nt["@idmui/basic"],Nt.moment,Nt.echarts,Nt["@idm-plugin/geo"],Nt.axios,Nt.MdEditorV3))})(this,function(Nt,t,fi,La,pt,Ud,q,Ui,Si){"use strict";function fd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,r.get?r:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const ki=fd(Ud),lk="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[r,n]of e)l[r]=n;return l},Sd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cd={class:"editor-box"};function bd(o,e,l,r,n,s){const D=t.resolveComponent("Toolbar"),c=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cd,[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(c,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const rl=Ve(Sd,[["render",bd],["__scopeId","data-v-80104052"]]),Od={install(o){o.component("IdmEditor",rl)}},ok="";/*! Element Plus Icons Vue v2.3.2 */var hd=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Yd=hd,Qd=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),wd=Qd;const nk="",Rd={name:"PlanReport",components:{Editor:rl,IdmBrand:La.IdmBrand,IdmLoading:La.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,r){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${pt(o).utcOffset(r??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,r,n,s,D;if(e===0)return"-";{const c=pt((n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.eta).diff(pt((D=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(c*100)/100}}},computeCostDiff(){return function(o,e){var l,r,n,s,D,c,N;if(e===0)return"-";{const V=Number((s=(n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((N=(c=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:c.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const l=[];for(let r=0;r<(e==null?void 0:e.length);r++){const n=e[r],s=e[r-1];s&&(n.avgBearing=s.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let r=0;r<17;r++)if(r*22.5+e+11.25>=360){let n=(16-r)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,D,c,N;const l=(N=(c=(D=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:D.speed)==null?void 0:c.sample)==null?void 0:N.hours,r=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(pt(n==null?void 0:n.eta).diff(pt(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,r;let e=0;return(r=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||r.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":q.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>q.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>q.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,r,n,s,D,c,N,V,a,E,k,z,T,x,U,y,p,j;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((c=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:c.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((y=(U=o.meteo)==null?void 0:U.wind)==null?void 0:y.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,r,n,s,D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.sigWv&&((D=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:D.height)>=((N=(c=this.weatherPrinciple)==null?void 0:c.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(E=o.meteo)==null?void 0:E.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(T=this.weatherPrinciple)==null?void 0:T.severe)==null?void 0:x.sigWv)?e="bg-severe":(y=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&y.sigWv&&((f=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:f.height)>=((R=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:R.sigWv)&&(e="bg-heavy"),e}},isArctic(){var o,e,l,r;return(r=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:r.isArctic}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=ki.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,p,j,f,g,R,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(R=(g=(f=(j=(p=(y=this.plan)==null?void 0:y.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:f.sample)==null?void 0:g.hours)==null||R.forEach(S=>{var W,L,Z,J,H,X,K,$,F,et;const w=S.meteo;if(w){const at=pt(w.utc).utc().format("MMM-DD/HHmm[Z]");o.push(at),r=Math.ceil(((L=(W=w.wave)==null?void 0:W.sig)==null?void 0:L.height)>r?(J=(Z=w.wave)==null?void 0:Z.sig)==null?void 0:J.height:r),e.push([at,(H=w.wind)==null?void 0:H.kts,(K=(X=w.wave)==null?void 0:X.sig)==null?void 0:K.height,($=w.wind)==null?void 0:$.direction,(F=w.wind)==null?void 0:F.degree,(et=w.wind)==null?void 0:et.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),s=Math.max(...e.map(S=>S[l.windSpeed])),D=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(s/5/5)*5,a=Math.ceil(r/5/.5)*.5,E=Math.ceil((c-D)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=D+5*E,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:T,splitNumber:5,interval:a,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:D,max:x,splitNumber:5,interval:E,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Bd={class:"orm-plan-report"},Fd={key:0,class:"loading-block"},Gd={class:"info-block"},Pd={class:"col"},Wd={class:"label-block"},Ld={class:"text"},Zd={class:"label-block"},_d={class:"text"},Jd={key:0},Hd={class:"label-block"},Xd={class:"text"},Kd={class:"col"},qd={class:"label-block"},$d={key:0},ud={key:1},vd={style:{"margin-left":"16px"}},tc={class:"label-block"},ec={key:0},ac={key:1},lc={style:{"margin-left":"16px"}},oc={class:"label-block"},nc={class:"text"},ic={class:"section chart-section"},sc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dc={style:{"margin-right":"8px"}},cc=["src"],rc=["src"],Nc={key:1,class:"empty"},mc={class:"section comparison-section"},Mc={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dc={key:0},gc=["rowspan"],Ic={key:0},Ec={key:1},yc={rowspan:"2"},Ac={rowspan:"2"},Tc={key:0},Vc={key:1},xc={rowspan:"1"},pc={key:0},zc={rowspan:"2"},jc={rowspan:"2"},kc={rowspan:"2"},Uc={key:0},fc={key:0},Sc=["rowspan"],Cc={key:0},bc={rowspan:"1"},Oc={key:0},hc={key:0},Yc={key:1},Qc={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wc={key:0},Rc={class:"section waypoint-section"},Bc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fc={class:"bg-block"},Gc={class:"block-title"},Pc={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wc=["onClick"],Lc={class:"advisory bg-blue-light-2"},Zc=["innerHTML"],_c={class:"major-waypoint"},Jc={class:"major-header bg-blue-light-2"},Hc={key:0,class:"cell-item flex"},Xc={key:1,class:"cell-item flex"},Kc={class:"major-body"},qc={class:"cell-item flex",style:{flex:"2.5"}},$c={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},vc={key:0,style:{"margin-left":"3px"}},tr={class:"cell-item flex",style:{flex:"1.5"}},er={key:0,style:{"margin-left":"4px","font-weight":"600"}},ar={key:0,class:"cell-item flex offset"},lr={key:1,class:"cell-item flex nbsp"},or={key:2,class:"cell-item flex offset"},nr={key:3,class:"cell-item flex nbsp"},ir={key:0,class:"cell-item flex offset"},sr={key:1,class:"cell-item flex nbsp"},dr={key:0,class:"cell-item flex offset"},cr={key:1,class:"cell-item flex nbsp"},rr={key:6,class:"cell-item flex offset"},Nr={key:7,class:"cell-item flex nbsp"},mr={class:"section forecast-section"},Mr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Dr={class:"bg-block"},gr={class:"block-title"},Ir={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Er=["onClick"],yr={class:"echart-block",style:{"page-break-inside":"avoid"}},Ar={ref:"echart",class:"echart"},Tr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Vr={style:{"page-break-inside":"avoid"}},xr={class:"orm-report-table",style:{"font-size":"12px"}},pr=["colspan"],zr={key:0,colspan:"2"},jr={key:0},kr={key:1},Ur={key:2},fr={class:"flex-center"},Sr={key:0,class:"degree-box"},Cr={key:1},br={key:0},Or={key:0,class:"degree-box"},hr={key:1},Yr={class:""},Qr={key:0,class:"degree-box"},wr={key:1},Rr={key:0,class:"degree-box"},Br={key:1},Fr={key:1},Gr={key:2};function Pr(o,e,l,r,n,s){var a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl;const D=t.resolveComponent("IdmBrand"),c=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bd,[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",Fd,[t.createVNode(c,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Gd,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ld,t.toDisplayString((z=(k=(E=l.plan)==null?void 0:E.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zd,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_d,[t.createTextVNode(t.toDisplayString((U=(x=(T=l.plan)==null?void 0:T.voyage)==null?void 0:x.vessel)==null?void 0:U.name)+" ",1),(f=(j=(p=(y=l.plan)==null?void 0:y.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Jd,"("+t.toDisplayString((S=(B=(R=(g=l.plan)==null?void 0:g.voyage)==null?void 0:R.vessel)==null?void 0:B.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xd,t.toDisplayString(((W=(w=l.plan)==null?void 0:w.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Kd,[t.createElementVNode("div",qd,[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",$d,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",ud,t.toDisplayString(s.computePosition((at=(et=l.plan)==null?void 0:et.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",vd,t.toDisplayString(s.computeUTCTime(((gt=(Dt=(Mt=l.plan)==null?void 0:Mt.leg)==null?void 0:Dt.departure)==null?void 0:gt.atd)||((lt=(M=(It=l.plan)==null?void 0:It.leg)==null?void 0:M.departure)==null?void 0:lt.etd)||((v=(u=(A=(ot=l.plan)==null?void 0:ot.speeds)==null?void 0:A[n.speedIndex])==null?void 0:u.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tc,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(yt=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&yt.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((Vt=(Tt=(At=l.plan)==null?void 0:At.leg)==null?void 0:Tt.destination)==null?void 0:Vt.name),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(s.computePosition((Ct=(xt=l.plan)==null?void 0:xt.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",lc,t.toDisplayString(s.computeUTCTime(((bt=(I=(Yt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Yt[n.speedIndex])==null?void 0:I.speed)==null?void 0:bt.ata)||((wt=(Qt=(jt=(zt=l.plan)==null?void 0:zt.speeds)==null?void 0:jt[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",oc,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nc,t.toDisplayString((Bt=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.loadCondition),1)])])]),t.createElementVNode("div",ic,[t.createElementVNode("div",sc,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dc,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Ft=l.plan)==null?void 0:Ft.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,cc)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,rc)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mc,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Dc,[...e[14]||(e[14]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gc),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Ic,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",Ec,[...e[24]||(e[24]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ot},[t.createElementVNode("tr",null,[t.createElementVNode("td",yc,t.toDisplayString(Ot+1),1),t.createElementVNode("td",Ac,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tc,t.toDisplayString(`CP ${((ye=(ge=m.speed)==null?void 0:ge.cpCopy)==null?void 0:ye.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vc,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",xc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",pc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",zc,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",jc,t.toDisplayString(s.roundPrecision((ca=m.speed)==null?void 0:ca.totalFoCons,3)),1),t.createElementVNode("td",kc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Uc," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",fc,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,Ot)),9,Sc),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Cc,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Sa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Sa.cps[0].fo)+" / "+t.toDisplayString((ba=(Ca=m.speed)==null?void 0:Ca.extend)==null?void 0:ba.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((ha=(Oa=m.speed)==null?void 0:Oa.extend)==null?void 0:ha.cps[0].dgo)+" / "+t.toDisplayString((Qa=(Ya=m.speed)==null?void 0:Ya.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",bc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Oc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",hc,t.toDisplayString(s.roundPrecision(((C=(d=m==null?void 0:m.speed)==null?void 0:d.cost)==null?void 0:C.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((O=(b=m==null?void 0:m.speed)==null?void 0:b.cost)==null?void 0:O.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString(s.computeCostDiff(l.plan,Ot)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((h=m.speed)==null?void 0:h.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Y=m.speed)==null?void 0:Y.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Q=m.speed)==null?void 0:Q.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",wc,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((rt=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:rt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=s.roundPrecision((Gt=(tt=l.plan)==null?void 0:tt.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:ce.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Rc,[t.createElementVNode("div",Bc,[t.createElementVNode("div",Fc,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+t.toDisplayString((Me=(me=(Ne=(re=l.plan.speeds)==null?void 0:re[n.speedIndex])==null?void 0:Ne.speed)==null?void 0:me.lane)==null?void 0:Me.name),1)]),((mt=(De=l.plan)==null?void 0:De.speeds)==null?void 0:mt.length)>1?(t.openBlock(),t.createElementBlock("div",Pc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ee=l.plan)==null?void 0:Ee.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Wc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lc,[n.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,Zc))]),t.createElementVNode("div",_c,[t.createElementVNode("div",Jc,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-8d6f944d>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-8d6f944d>Time</div><div class="cell-item flex" data-v-8d6f944d>Nav</div><div class="cell-item flex" data-v-8d6f944d>Dist <span class="text-units" data-v-8d6f944d>(nm)</span></div>',4)),(ze=(pe=l.plan)==null?void 0:pe.voyage)!=null&&ze.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hc,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xc,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",Kc,[(fe=(Ue=l.plan)==null?void 0:Ue.speeds)!=null&&fe.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((Oe=(be=(Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce[n.speedIndex])==null?void 0:be.speed)==null?void 0:Oe.argv,(Re=(we=(Qe=(Ye=(he=l.plan)==null?void 0:he.speeds)==null?void 0:Ye[n.speedIndex])==null?void 0:Qe.speed)==null?void 0:we.sample)==null?void 0:Re.wps),(m,Ot)=>{var se,de,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:"cell-row"},[t.createElementVNode("div",qc,[m.isResume?(t.openBlock(),t.createElementBlock("div",$c,"Resume")):(t.openBlock(),t.createElementBlock("div",uc,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vc,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tr,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",er,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),Ot?(t.openBlock(),t.createElementBlock("div",ar,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",lr)),Ot?(t.openBlock(),t.createElementBlock("div",or,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",nr)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ot?(t.openBlock(),t.createElementBlock("div",ir,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",sr))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ot?(t.openBlock(),t.createElementBlock("div",dr,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cr))],64)):t.createCommentVNode("",!0),Ot?(t.openBlock(),t.createElementBlock("div",rr,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",Nr))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",mr,[(Fe=(Be=l.plan)==null?void 0:Be.speeds)!=null&&Fe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",Mr,[t.createElementVNode("div",Dr,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",gr," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Ha=(Ja=(_a=(Za=l.plan)==null?void 0:Za.speeds)==null?void 0:_a[n.speedIndex])==null?void 0:Ja.speed)==null?void 0:Ha.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",Ir,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Er)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yr,[t.createElementVNode("div",Ar,null,512)]),t.createElementVNode("div",Tr," * "+t.toDisplayString(s.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",Vr,[e[70]||(e[70]=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",xr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,pr),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",zr,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[59]||(e[59]=t.createElementVNode("th",null,"Dir",-1)),e[60]||(e[60]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),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",jr,"BF")):t.createCommentVNode("",!0),e[61]||(e[61]=t.createElementVNode("th",null,"Dir",-1)),e[62]||(e[62]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,"Dir",-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",kr,[...e[57]||(e[57]=[t.createTextVNode("sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",Ur,[...e[58]||(e[58]=[t.createTextVNode("sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((cl=(dl=(sl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:sl.speed)==null?void 0:dl.sample)==null?void 0:cl.hours,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q,P,_;return t.openBlock(),t.createElementBlock("tr",{key:Ot},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",fr,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),t.createElementVNode("td",null,[((de=(se=m.meteo)==null?void 0:se.wind)==null?void 0:de.kts)!==null&&((ye=(ge=m.meteo)==null?void 0:ge.wind)!=null&&ye.direction)?(t.openBlock(),t.createElementBlock("div",Sr,[t.createElementVNode("span",null,t.toDisplayString((Pe=(Ge=m.meteo)==null?void 0:Ge.wind)==null?void 0:Pe.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Le=(We=m.meteo)==null?void 0:We.wind)==null?void 0:Le.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Cr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((_e=(Ze=m.meteo)==null?void 0:Ze.wind)==null?void 0:_e.kts,1)),3),(He=(Je=l.plan)==null?void 0:Je.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",br,t.toDisplayString((Ke=(Xe=m.meteo)==null?void 0:Xe.wind)==null?void 0:Ke.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ue=($e=(qe=m.meteo)==null?void 0:qe.wave)==null?void 0:$e.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",null,[((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.swell)==null?void 0:ea.height)!==null&&((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)!=null&&oa.direction)?(t.openBlock(),t.createElementBlock("div",Or,[t.createElementVNode("span",null,t.toDisplayString((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)==null?void 0:sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(ra=(ca=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ca.swell)==null?void 0:ra.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",hr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.period,1)),1),t.createElementVNode("td",Yr,[((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.sig)==null?void 0:Aa.height)!==null&&((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)!=null&&xa.direction)?(t.openBlock(),t.createElementBlock("div",Qr,[t.createElementVNode("span",null,t.toDisplayString((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)==null?void 0:ja.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",wr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.period,1)),1),t.createElementVNode("td",null,[((wa=(Qa=m.meteo)==null?void 0:Qa.current)==null?void 0:wa.kts)!==null&&((Ba=(Ra=m.meteo)==null?void 0:Ra.current)!=null&&Ba.direction)?(t.openBlock(),t.createElementBlock("div",Rr,[t.createElementVNode("span",null,t.toDisplayString((Ga=(Fa=m.meteo)==null?void 0:Fa.current)==null?void 0:Ga.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(d=(Pa=m.meteo)==null?void 0:Pa.current)==null?void 0:d.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Br,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((b=(C=m.meteo)==null?void 0:C.current)==null?void 0:b.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,2)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",Fr,t.toDisplayString(s.roundPrecision((h=(O=m.meteo)==null?void 0:O.ice)==null?void 0:h.sit,1)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",Gr,t.toDisplayString(((Q=(Y=m.meteo)==null?void 0:Y.ice)==null?void 0:Q.sic)>=0?s.roundPrecision(((_=(P=m.meteo)==null?void 0:P.ice)==null?void 0:_.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const Ci=Ve(Rd,[["render",Pr],["__scopeId","data-v-8d6f944d"]]),Wr={install(o){o.component("PlanReport",Ci)}},ik="",Lr={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},Zr={class:"cover-box"},_r={class:"cover-content"},Jr={class:"cover-title"},Hr={class:"cover-info"},Xr={class:"info-item"},Kr={class:"info-item"},qr={class:"info-item"},$r={style:{"font-weight":"600"}},ur={class:"info-item"},vr={style:{"font-weight":"600"}},tN={class:"info-item"},eN={class:"info-item"},aN={class:"info-item"},lN={class:"info-item"},oN={class:"info-item"},nN={class:"text"};function iN(o,e,l,r,n,s){var D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R,B;return t.openBlock(),t.createElementBlock("div",Zr,[t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,t.toDisplayString(l.name),1),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((c=(D=l.report)==null?void 0:D.voyage)==null?void 0:c.number),1)]),t.createElementVNode("div",Kr,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",qr,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",$r,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",ur,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vr,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(a=l.report)==null?void 0:a.departure)==null?void 0:E.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",eN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",aN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((y=(U=l.report)==null?void 0:U.arrival)==null?void 0:y.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",lN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",nN,t.toDisplayString((B=(R=l.report)==null?void 0:R.voyage)==null?void 0:B.loadCondition),1)])])])])}const sN=Ve(Lr,[["render",iN],["__scopeId","data-v-c57d4b58"]]),sk="",dN={name:"OrmVoyageSummary",components:{Editor:rl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return pt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=pt(o).diff(pt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return q.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,r)=>{var D,c;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:pt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+pt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});const s=(c=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:c.hours.filter(N=>N.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},cN={class:"report-summary"},rN={class:"section weather-section"},NN={class:"definition bg-blue-light-2"},mN={style:{"line-height":"1.5"}},MN={class:"section summary-section"},DN={class:"phase-box"},gN={class:"phase-index"},IN={class:"phase-position"},EN={class:"phase-position"},yN={class:"phase-cp"},AN={class:"orm-report-table"},TN={key:0},VN={class:"phase-conclusion"},xN={class:"item-conclusion bg-blue-light-2"},pN={class:"value align-left"},zN={key:0,class:"text-secondary align-right"},jN={key:0},kN={key:1},UN={key:2},fN={key:1,class:"text-secondary"},SN={key:2,class:"value"},CN={key:0},bN={class:"gain"},ON={key:1},hN={class:"lost"},YN={key:2},QN={class:"item-conclusion bg-blue-light-2"},wN={class:"value align-left"},RN={key:0,class:"text-secondary"},BN={key:0},FN={key:1},GN={key:2},PN={key:1,class:"text-secondary"},WN={key:2,class:"value"},LN={key:0},ZN={class:"gain"},_N={key:1},JN={class:"lost"},HN={key:2},XN={class:"item-conclusion bg-blue-light-2"},KN={class:"value align-left"},qN={key:0,class:"text-secondary"},$N={key:0},uN={key:1},vN={key:2},tm={key:1,class:"text-secondary"},em={key:2,class:"value"},am={key:0},lm={class:"gain"},om={key:1},nm={class:"lost"},im={key:2},sm={key:0,class:"exclusion-block"},dm={style:{margin:"8px 0"}},cm={class:"orm-report-table"},rm={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},Nm={class:"sub-title"},mm=["innerHTML"],Mm={class:"section segment-section"},Dm={class:"segment-summary"},gm={class:"segment-index text-left"},Im={class:"segment-position"},Em={class:"segment-position"},ym={class:"orm-report-table"},Am={class:"good-wx"},Tm={class:"good-wx"},Vm={class:"good-wx"},xm={class:"good-wx"},pm={class:"good-wx"},zm={class:"good-wx"},jm={class:"good-wx"},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={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Ym={key:0},Qm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},wm={key:2,class:"segment-speed"},Rm={class:"row"},Bm={class:"speed-right row"},Fm={class:"speed"},Gm={key:1,class:"speed"},Pm={key:0,class:"speed"},Wm={class:"speed"},Lm={class:"speed"},Zm={class:"speed"},_m={key:0,class:"under"},Jm={key:1,class:"over"},Hm={class:"row"},Xm={class:"speed-right formula flex-space"},Km={key:0},qm={key:3,class:"segment-speed"},$m={class:"row"},um={class:"speed-right row"},vm={class:"speed"},tM={class:"speed"},eM={key:0,class:"under"},aM={key:1,class:"over"},lM={class:"row"},oM={class:"speed-right formula row"},nM={class:"segment-formula"},iM={class:"sub-title"},sM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},dM={class:"formula-block"},cM={class:"formula-item flex-evenly bg-blue-light"},rM={class:"formula-right flex-evenly"},NM={class:"fraction",style:{width:"240px"}},mM={class:"formula-item flex-center bg-blue-light"},MM={class:"formula-left flex-space"},DM={class:"formula-right flex-evenly"},gM={class:"fraction",style:{width:"240px"}},IM={class:"formula-item flex-center bg-blue-light"},EM={class:"formula-left flex-space"},yM={class:"formula-right flex-evenly"},AM={class:"fraction",style:{width:"240px"}},TM={class:"formula-desc"},VM={class:"flex-end"},xM={class:"flex-end"},pM={class:"flex-end"},zM={key:0,class:"formula-block"},jM={class:"formula-item flex-evenly bg-blue-light"},kM={class:"formula-right flex-evenly"},UM={class:"fraction",style:{width:"200px"}},fM={class:"formula-item flex-center bg-blue-light"},SM={class:"formula-left flex-space"},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 formula-conclusion bg-blue-light"},RM={key:0,class:"flex-evenly",style:{width:"500px"}},BM={key:1,class:"flex-evenly",style:{width:"500px"}},FM={class:"flex-center"},GM={key:1,class:"formula-conclusion bg-blue-light"},PM={class:"segment-formula"},WM={class:"sub-title"},LM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},ZM={class:"formula-block"},_M={class:"formula-item flex-evenly bg-blue-light"},JM={class:"formula-right flex-evenly"},HM={class:"fraction",style:{width:"240px"}},XM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},KM={key:0,class:"flex-end text-tips"},qM={class:"formula-item flex-center bg-blue-light"},$M={class:"formula-right flex-evenly"},uM={class:"fraction",style:{width:"200px"}},vM={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"300px"}},nD={class:"formula-item flex-center bg-blue-light"},iD={class:"formula-right flex-evenly"},sD={class:"fraction",style:{width:"300px"}},dD={class:"sub-title"},cD={key:0,class:"formula-block"},rD={key:0,class:"formula-item flex-evenly bg-blue-light"},ND={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"60px"}},MD={class:"fraction",style:{width:"60px"}},DD={class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"150px"}},ED={class:"fraction",style:{width:"150px"}},yD={key:0},AD={class:"formula-item flex-evenly bg-blue-light"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"150px"}},xD={class:"fraction",style:{width:"150px"}},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},kD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},fD={class:"flex-evenly",style:{width:"500px"}},SD={key:0,class:"flex-evenly"},CD={class:"fraction"},bD={class:"flex-evenly",style:{width:"700px"}},OD={key:0,class:"flex-evenly",style:{width:"500px"}},hD={class:"fraction",style:{width:"140px"}},YD={key:1,class:"formula-item formula-conclusion bg-blue-light"},QD={class:"header-block"},wD={class:"bg-block"},RD={class:"block-title"},BD={key:0,class:"formula-block"},FD={class:"formula-item flex-evenly bg-blue-light"},GD={class:"formula-right flex-evenly"},PD={class:"fraction",style:{width:"150px"}},WD={class:"fraction",style:{width:"150px"}},LD={key:0},ZD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},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 formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},vD={key:0,class:"flex-evenly",style:{width:"500px"}},tg={key:1,class:"flex-evenly",style:{width:"700px"}},eg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function ag(o,e,l,r,n,s){var c,N,V;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",cN,[t.createElementVNode("div",rN,[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",NN,[t.createElementVNode("div",mN,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",MN,[e[30]||(e[30]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((c=l.report)==null?void 0:c.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",DN,[t.createElementVNode("div",gN,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(I,bt)=>{var zt,jt,Qt,wt,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"phase-row text-secondary"},[t.createElementVNode("div",IN,[t.createElementVNode("span",null,t.toDisplayString(((zt=I==null?void 0:I.departure)==null?void 0:zt.portName)||((jt=I.departure)==null?void 0:jt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Qt=I==null?void 0:I.departure)==null?void 0:Qt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",EN,[t.createElementVNode("span",null,t.toDisplayString(((wt=I==null?void 0:I.arrival)==null?void 0:wt.portName)||((Rt=I.arrival)==null?void 0:Rt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Bt=I==null?void 0:I.arrival)==null?void 0:Bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",yN,[t.createElementVNode("table",AN,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((T=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:T.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((f=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:f.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((R=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:R.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(B=l.report)==null?void 0:B.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",TN,t.toDisplayString((W=(w=a==null?void 0:a.extend)==null?void 0:w.cp)==null?void 0:W.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",VN,[t.createElementVNode("div",xN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",pN,[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",zN,[((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",jN,"Time Gained")):((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",kN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",UN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",fN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",SN,[((J=a==null?void 0:a.timeConclusion)==null?void 0:J.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",CN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",bN,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",ON,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",hN,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",YN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",QN,[e[23]||(e[23]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",wN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[18]||(e[18]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",RN,[((F=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",BN,"FO Saving")):((at=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:at.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",FN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",GN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",PN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",WN,[((Dt=(Mt=a==null?void 0:a.fuelConclusion)==null?void 0:Mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",LN,[e[19]||(e[19]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",ZN,t.toDisplayString((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.saving),1),e[20]||(e[20]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((lt=(M=a==null?void 0:a.fuelConclusion)==null?void 0:M.fo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",_N,[e[21]||(e[21]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",JN,t.toDisplayString((A=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:A.overCons),1),e[22]||(e[22]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",HN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",XN,[e[29]||(e[29]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",KN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[24]||(e[24]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",qN,[((v=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",$N,"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",uN,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",vN,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",tm,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",em,[((At=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",am,[e[25]||(e[25]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",lm,t.toDisplayString((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.dgo)==null?void 0:Vt.saving),1),e[26]||(e[26]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Ct=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.dgo)==null?void 0:Ct.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",om,[e[27]||(e[27]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",nm,t.toDisplayString((Yt=(ht=a==null?void 0:a.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.overCons),1),e[28]||(e[28]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",im,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[31]||(e[31]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[35]||(e[35]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",sm,[e[33]||(e[33]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[34]||(e[34]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",dm,[t.createElementVNode("table",cm,[e[32]||(e[32]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,E)=>(t.openBlock(),t.createElementBlock("tr",{key:E},[t.createElementVNode("td",null,t.toDisplayString(E+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",rm,[t.createElementVNode("div",Nm," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((V=l.report)==null?void 0:V.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,mm))],2)],2),t.createElementVNode("div",Mm,[e[237]||(e[237]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl,m,Ot,se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q,P,_,nt,it,st,dt,ct,kt,Ut,ft,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Wa,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,fl,Sl,Cl,bl,Ol,hl,Yl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,co,ro,No,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,fo,So,Co,bo,Oo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,cn,rn,Nn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,fn,Sn,Cn,bn,On,hn,Yn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ci,ri,Ni,mi,Mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(xe,Ul)=>{var Nl,kl,Ai,Ti,Vi,xi;return t.openBlock(),t.createElementBlock("div",{key:Ul,class:"segment-row text-secondary"},[t.createElementVNode("div",Im,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((kl=xe.departure)==null?void 0:kl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Ai=xe==null?void 0:xe.departure)==null?void 0:Ai.utcTime))+")",1)]),e[36]||(e[36]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",Em,[t.createElementVNode("span",null,t.toDisplayString(((Ti=xe==null?void 0:xe.arrival)==null?void 0:Ti.portName)||((Vi=xe.arrival)==null?void 0:Vi.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((xi=xe==null?void 0:xe.arrival)==null?void 0:xi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",ym,[e[44]||(e[44]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[37]||(e[37]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",Am,t.toDisplayString((T=(z=a==null?void 0:a.goodWx)==null?void 0:z.outEca)==null?void 0:T.distance),1),t.createElementVNode("td",Tm,t.toDisplayString((U=(x=a==null?void 0:a.goodWx)==null?void 0:x.inEca)==null?void 0:U.distance),1),t.createElementVNode("td",null,t.toDisplayString((p=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:p.distance),1),t.createElementVNode("td",null,t.toDisplayString((f=(j=a==null?void 0:a.allWx)==null?void 0:j.inEca)==null?void 0:f.distance),1)]),t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",Vm,t.toDisplayString((R=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:R.time),1),t.createElementVNode("td",xm,t.toDisplayString((S=(B=a==null?void 0:a.goodWx)==null?void 0:B.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(w=a==null?void 0:a.allWx)==null?void 0:w.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((Z=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:Z.time),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",pm,t.toDisplayString(((H=(J=a==null?void 0:a.goodWx)==null?void 0:J.outEca)==null?void 0:H.avgSpd)||"--"),1),t.createElementVNode("td",zm,t.toDisplayString(((K=(X=a==null?void 0:a.goodWx)==null?void 0:X.inEca)==null?void 0:K.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((F=($=a==null?void 0:a.allWx)==null?void 0:$.outEca)==null?void 0:F.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=a==null?void 0:a.allWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",jm,t.toDisplayString(((Dt=(Mt=a==null?void 0:a.goodWx)==null?void 0:Mt.outEca)==null?void 0:Dt.sumFoCons)||"--"),1),t.createElementVNode("td",km,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.inEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(M=a==null?void 0:a.allWx)==null?void 0:M.outEca)==null?void 0:lt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(ot=a==null?void 0:a.allWx)==null?void 0:ot.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Um,t.toDisplayString(((v=(u=a==null?void 0:a.goodWx)==null?void 0:u.outEca)==null?void 0:v.avgFoCons)||"--"),1),t.createElementVNode("td",fm,t.toDisplayString(((Et=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=a==null?void 0:a.allWx)==null?void 0:yt.outEca)==null?void 0:At.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.allWx)==null?void 0:Tt.inEca)==null?void 0:Vt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((Ct=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.inEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((wt=(Qt=a==null?void 0:a.goodWx)==null?void 0:Qt.outEca)==null?void 0:wt.avgDgoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",hm,[e[46]||(e[46]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[E],(xe,Ul)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ul},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,kl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:kl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Ym,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[45]||(e[45]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(Nl.utc,s.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[E])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",Qm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",wm,[t.createElementVNode("div",Rm,[e[56]||(e[56]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Bm,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ce=(Gt=l.report)==null?void 0:Gt.weather)!=null&&ce.disableWxFactor&&((Ne=(re=l.report)==null?void 0:re.weather)!=null&&Ne.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Pm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(De=(Me=l.report)==null?void 0:Me.weather)!=null&&De.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((mt=a==null?void 0:a.goodWx)==null?void 0:mt.avgSpd),1),e[49]||(e[49]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ee=a==null?void 0:a.goodWx)==null?void 0:Ee.avgCf)>0?(pe=a==null?void 0:a.goodWx)==null?void 0:pe.avgCf:`(${(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf})`),1),e[50]||(e[50]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Wm,t.toDisplayString((je=a==null?void 0:a.goodWx)==null?void 0:je.pfmSpd)+" (kts)",1)],64)):(Ue=(ke=l.report)==null?void 0:ke.weather)!=null&&Ue.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[51]||(e[51]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgWf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf})`),1),e[52]||(e[52]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((he=a==null?void 0:a.goodWx)==null?void 0:he.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgWf)>0?(Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf:`(${(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf})`),1),(Be=(Re=l.report)==null?void 0:Re.weather)!=null&&Be.favorableCur&&((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[53]||(e[53]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=a==null?void 0:a.goodWx)==null?void 0:Za.avgCf)>0?(_a=a==null?void 0:a.goodWx)==null?void 0:_a.avgCf:`(${(Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgCf})`),1)],64)),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Gm,t.toDisplayString((tt=a==null?void 0:a.goodWx)==null?void 0:tt.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[47]||(e[47]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[48]||(e[48]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Fm,t.toDisplayString((rt=a==null?void 0:a.goodWx)==null?void 0:rt.pfmSpd)+" (kts)",1)],64))],64)),(Ka=(Xa=l.report)==null?void 0:Xa.voyage)!=null&&Ka.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((qa=a==null?void 0:a.goodWx)==null?void 0:qa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",_m,"(Under-performance)")):t.createCommentVNode("",!0),(($a=a==null?void 0:a.goodWx)==null?void 0:$a.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hm,[e[73]||(e[73]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Xm,[(va=(ua=l.report)==null?void 0:ua.weather)!=null&&va.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ol=(ll=l.report)==null?void 0:ll.weather)!=null&&ol.disableWxFactor&&((il=(nl=l.report)==null?void 0:nl.weather)!=null&&il.disableCFactor)?(t.openBlock(),t.createElementBlock("label",Km,"GW Average Speed")):(dl=(sl=l.report)==null?void 0:sl.weather)!=null&&dl.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[62]||(e[62]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[63]||(e[63]=t.createElementVNode("label",null,"-",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(m=(cl=l.report)==null?void 0:cl.weather)!=null&&m.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[70]||(e[70]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(se=(Ot=l.report)==null?void 0:Ot.weather)!=null&&se.favorableCur&&((de=a==null?void 0:a.goodWx)==null?void 0:de.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[68]||(e[68]=t.createElementVNode("label",null,"-",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(el=(tl=l.report)==null?void 0:tl.weather)!=null&&el.favorableCur&&((al=a==null?void 0:a.goodWx)==null?void 0:al.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[57]||(e[57]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[58]||(e[58]=t.createElementVNode("label",null,"-",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",qm,[t.createElementVNode("div",$m,[e[79]||(e[79]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",um,[(ye=(ge=l.report)==null?void 0:ge.weather)!=null&&ye.favorableCur&&((Ge=a==null?void 0:a.allWx)==null?void 0:Ge.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[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.avgWf)>0?($e=a==null?void 0:a.allWx)==null?void 0:$e.avgWf:`(${(ue=a==null?void 0:a.allWx)==null?void 0:ue.avgWf})`),1),e[78]||(e[78]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tM,t.toDisplayString((ve=a==null?void 0:a.allWx)==null?void 0:ve.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Pe=a==null?void 0:a.allWx)==null?void 0:Pe.avgSpd),1),e[74]||(e[74]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((We=a==null?void 0:a.allWx)==null?void 0:We.avgCf)>0?(Le=a==null?void 0:a.allWx)==null?void 0:Le.avgCf:`(${(Ze=a==null?void 0:a.allWx)==null?void 0:Ze.avgCf})`),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((_e=a==null?void 0:a.allWx)==null?void 0:_e.avgWf)>0?(Je=a==null?void 0:a.allWx)==null?void 0:Je.avgWf:`(${(He=a==null?void 0:a.allWx)==null?void 0:He.avgWf})`),1),e[76]||(e[76]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vm,t.toDisplayString((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.pfmSpd)+" (kts)",1)],64)),(ea=(ta=l.report)==null?void 0:ta.voyage)!=null&&ea.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((aa=a==null?void 0:a.allWx)==null?void 0:aa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",eM,"(Under-performance)")):t.createCommentVNode("",!0),((la=a==null?void 0:a.allWx)==null?void 0:la.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",aM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lM,[e[89]||(e[89]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oM,[(na=(oa=l.report)==null?void 0:oa.weather)!=null&&na.favorableCur&&((ia=a==null?void 0:a.allWx)==null?void 0:ia.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[85]||(e[85]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[80]||(e[80]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[81]||(e[81]=t.createElementVNode("label",null,"-",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"Current Factor",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"-",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",nM,[t.createElementVNode("div",iM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(da=(sa=l.report)==null?void 0:sa.weather)!=null&&da.noExtrapolation?(t.openBlock(),t.createElementBlock("span",sM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dM,[t.createElementVNode("div",cM,[e[93]||(e[93]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rM,[t.createElementVNode("div",NM,[t.createElementVNode("div",null,t.toDisplayString((ra=(ca=l.report)==null?void 0:ca.weather)!=null&&ra.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[90]||(e[90]=t.createElementVNode("div",{class:"line"},null,-1)),e[91]||(e[91]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[92]||(e[92]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",mM,[t.createElementVNode("div",MM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ma=(Na=a==null?void 0:a.extend)==null?void 0:Na.cp)==null?void 0:ma.speed,"Under"))+"kts)",1),e[94]||(e[94]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",DM,[t.createElementVNode("div",gM,[t.createElementVNode("div",null,t.toDisplayString((Da=(Ma=l.report)==null?void 0:Ma.weather)!=null&&Da.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[95]||(e[95]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ia=(ga=a==null?void 0:a.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+"kts",1)]),e[96]||(e[96]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",IM,[t.createElementVNode("div",EM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ya=(Ea=a==null?void 0:a.extend)==null?void 0:Ea.cp)==null?void 0:ya.speed,"Over"))+"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((Ta=(Aa=l.report)==null?void 0:Aa.weather)!=null&&Ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Over"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(c)",-1))])]),e[100]||(e[100]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:300px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Lost</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(a)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Gained</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(c)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(a)</div></div></div>',1))]),t.createElementVNode("div",TM,[t.createElementVNode("div",VM,[e[101]||(e[101]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",xM,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ka=(ja=a==null?void 0:a.extend)==null?void 0:ja.cp)==null?void 0:ka.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",pM,[e[103]||(e[103]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:fa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Under"))+" kts) ",1)])]),(ba=a==null?void 0:a.goodWx)!=null&&ba.distance?(t.openBlock(),t.createElementBlock("div",zM,[t.createElementVNode("div",jM,[e[107]||(e[107]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kM,[t.createElementVNode("div",UM,[t.createElementVNode("div",null,t.toDisplayString((ha=(Oa=l.report)==null?void 0:Oa.weather)!=null&&ha.noExtrapolation?(Ya=a==null?void 0:a.goodWx)==null?void 0:Ya.distance:(Qa=a==null?void 0:a.allWx)==null?void 0:Qa.distance),1),e[104]||(e[104]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wa=a==null?void 0:a.goodWx)==null?void 0:wa.pfmSpd),1)]),e[105]||(e[105]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ra=a==null?void 0:a.timeConclusion)==null?void 0:Ra.timeAtPfmSpd)+" (hrs)",1),e[106]||(e[106]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",fM,[t.createElementVNode("div",SM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Fa=(Ba=a==null?void 0:a.extend)==null?void 0:Ba.cp)==null?void 0:Fa.speed,"Under"))+"kts)",1),e[108]||(e[108]=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?(d=a==null?void 0:a.goodWx)==null?void 0:d.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[109]||(e[109]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.minusAbtSpd),1)]),e[110]||(e[110]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.timeAtMinusAbtSpd)+" (hrs)",1),e[111]||(e[111]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",OM,[t.createElementVNode("div",hM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[112]||(e[112]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",YM,[t.createElementVNode("div",QM,[t.createElementVNode("div",null,t.toDisplayString((P=(Q=l.report)==null?void 0:Q.weather)!=null&&P.noExtrapolation?(_=a==null?void 0:a.goodWx)==null?void 0:_.distance:(nt=a==null?void 0:a.allWx)==null?void 0:nt.distance),1),e[113]||(e[113]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((it=a==null?void 0:a.timeConclusion)==null?void 0:it.plusAbtSpd),1)]),e[114]||(e[114]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=a==null?void 0:a.timeConclusion)==null?void 0:st.timeAtPlusAbtSpd)+" (hrs)",1),e[115]||(e[115]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",wM,[((dt=a==null?void 0:a.timeConclusion)==null?void 0:dt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",RM,[e[116]||(e[116]=t.createElementVNode("div",null,"Time Lost",-1)),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ct=a==null?void 0:a.timeConclusion)==null?void 0:ct.timeAtPfmSpd),1),e[120]||(e[120]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtMinusAbtSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ut=a==null?void 0:a.timeConclusion)==null?void 0:Ut.timeLost)+" (hrs)",1)])):((ft=a==null?void 0:a.timeConclusion)==null?void 0:ft.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",BM,[e[122]||(e[122]=t.createElementVNode("div",null,"Time Lost",-1)),e[123]||(e[123]=t.createElementVNode("div",null,"=",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd),1),e[126]||(e[126]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",FM,[e[128]||(e[128]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.conclusionStatus)==="Lost"?"lost":((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",GM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",PM,[t.createElementVNode("div",WM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(Te=(Ae=l.report)==null?void 0:Ae.weather)!=null&&Te.noExtrapolation?(t.openBlock(),t.createElementBlock("span",LM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",ZM,[t.createElementVNode("div",_M,[e[134]||(e[134]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JM,[t.createElementVNode("div",HM,[t.createElementVNode("div",null,t.toDisplayString((ml=(Wa=l.report)==null?void 0:Wa.weather)!=null&&ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[129]||(e[129]=t.createElementVNode("div",{class:"line"},null,-1)),e[130]||(e[130]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[131]||(e[131]=t.createElementVNode("div",null,"x",-1)),e[132]||(e[132]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[133]||(e[133]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",XM,[e[135]||(e[135]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(Ml=a.extend)==null?void 0:Ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",KM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",qM,[e[140]||(e[140]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[t.createElementVNode("div",uM,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[137]||(e[137]=t.createElementVNode("div",null,"x",-1)),e[138]||(e[138]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[139]||(e[139]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",vM,[e[145]||(e[145]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[141]||(e[141]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[142]||(e[142]=t.createElementVNode("div",null,"x",-1)),e[143]||(e[143]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[144]||(e[144]=t.createElementVNode("div",null,"(f)",-1))])]),e[152]||(e[152]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:240px;" data-v-5d68a964><label data-v-5d68a964>Fuel Over-consumption</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(d)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(e)</div></div><div class="flex-space" style="width:200px;" data-v-5d68a964><label data-v-5d68a964>Fuel Saving</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(f)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(d)</div></div></div>',1)),((zl=(pl=a.extend)==null?void 0:pl.cp)==null?void 0:zl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",aD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[e[146]||(e[146]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[147]||(e[147]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(jl=l.report)==null?void 0:jl.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",nD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",iD,[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[236]||(e[236]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",dD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",cD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",rD,[e[158]||(e[158]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ND,[t.createElementVNode("div",mD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[155]||(e[155]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),e[154]||(e[154]=t.createElementVNode("div",null,"24",-1))]),e[156]||(e[156]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[157]||(e[157]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",DD,[e[165]||(e[165]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[159]||(e[159]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",yD,[e[160]||(e[160]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[161]||(e[161]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[164]||(e[164]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",AD,[e[172]||(e[172]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),e[168]||(e[168]=t.createElementVNode("div",null,"24",-1))]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ro=(co=a.fuelConclusion)==null?void 0:co.fo)==null?void 0:ro.maxCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",pD,[e[179]||(e[179]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((mo=(No=l.report)==null?void 0:No.weather)!=null&&mo.noExtrapolation?(Mo=a==null?void 0:a.goodWx)==null?void 0:Mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",UD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[181]||(e[181]=t.createElementVNode("div",null,"=",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[184]||(e[184]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(So=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&So.distance?(t.openBlock(),t.createElementBlock("div",SD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1),e[186]||(e[186]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l.report)==null?void 0:Yo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",bD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[194]||(e[194]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",OD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[196]||(e[196]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(sn=a==null?void 0:a.goodWx)==null?void 0:sn.distance:(dn=a==null?void 0:a.allWx)==null?void 0:dn.distance),1)]),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:rn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((mn=(Nn=a==null?void 0:a.fuelConclusion)==null?void 0:Nn.fo)==null?void 0:mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(Mn=a==null?void 0:a.fuelConclusion)==null?void 0:Mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[200]||(e[200]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",YD,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[e[201]||(e[201]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",RD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",BD,[t.createElementVNode("div",FD,[e[208]||(e[208]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[202]||(e[202]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[205]||(e[205]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",WD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",LD,[e[203]||(e[203]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Sn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Sn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[204]||(e[204]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.time),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:On.entireCons)+" (mt)",1),e[207]||(e[207]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",ZD,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((Yn=(hn=l.report)==null?void 0:hn.weather)!=null&&Yn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),e[211]||(e[211]=t.createElementVNode("div",null,"24",-1))]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",XD,[e[222]||(e[222]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",uD,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",vD,[e[223]||(e[223]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[224]||(e[224]=t.createElementVNode("div",null,"=",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[227]||(e[227]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",tg,[e[229]||(e[229]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[230]||(e[230]=t.createElementVNode("div",null,"=",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.minCons),1),e[233]||(e[233]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ri=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:ri.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.dgo)==null?void 0:mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[235]||(e[235]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",eg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const lg=Ve(dN,[["render",ag],["__scopeId","data-v-5d68a964"]]),dk="",og={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?q.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,r,n,s,D,c,N,V,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((c=(D=this.report)==null?void 0:D.weather)==null?void 0:c.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},ng={class:"report-inventory"},ig={class:"section summary-section"},sg={class:"summary-block"},dg={class:"orm-report-table inventory-table"},cg={class:"label",rowspan:"4"},rg={class:"section inventory-section"},Ng={class:"orm-report-table inventory-table detail"},mg=["colspan"],Mg={key:0,class:"label",colspan:"2"},Dg={key:0,class:"label",rowspan:"2"},gg={key:1,class:"label",rowspan:"2"},Ig={key:2,class:"label",rowspan:"2"},Eg={key:3,class:"label",colspan:"2"},yg={key:4,class:"label",rowspan:"2"},Ag={key:5,class:"label",colspan:"2"},Tg={key:6,class:"label",rowspan:"2"},Vg={key:7,class:"label",rowspan:"2"},xg={key:8,class:"label",rowspan:"2"},pg={key:0,class:"label"},zg={key:1,class:"label"},jg={key:2,class:"label"},kg={key:3,class:"label"},Ug={class:"summary-tbody"};function fg(o,e,l,r,n,s){var D;return t.openBlock(),t.createElementBlock("div",ng,[t.createElementVNode("div",ig,[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",sg,[t.createElementVNode("table",dg,[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,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",cg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((V=c==null?void 0:c.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=c==null?void 0:c.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=c==null?void 0:c.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=c==null?void 0:c.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=c==null?void 0:c.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=c==null?void 0:c.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=c==null?void 0:c.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=c==null?void 0:c.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((y=c==null?void 0:c.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((p=c==null?void 0:c.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((j=c==null?void 0:c.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((f=c==null?void 0:c.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=c==null?void 0:c.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((R=c==null?void 0:c.badWx)==null?void 0:R.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((B=c==null?void 0:c.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=c==null?void 0:c.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=c==null?void 0:c.excluded)==null?void 0:w.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((W=c==null?void 0:c.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=c==null?void 0:c.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Z=c==null?void 0:c.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",rg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> The 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",Ng,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:s.computeWxColspan},"ORM Weather Analysis",8,mg),l.showFactor?(t.openBlock(),t.createElementBlock("th",Mg,"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",Dg,[...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",gg,[...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",Ig,[...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",Eg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",yg,[...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",Ag,"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",Tg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",Vg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",xg,[...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",pg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",zg,[...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",jg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",kg,[...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",Ug,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(c.segLength?"no-border-bottom":"no-border")},t.toDisplayString(c.segLength?c.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",c.excluded?"excluded":c.goodWx?"good-wx":""])},t.toDisplayString(c.time),3),["B","E"].includes(c.abbrev)&&((V=c.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=c.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((k=(E=c.meteo)==null?void 0:E.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((T=(z=c.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((y=(U=(x=c.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((f=(j=(p=c.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:f.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((B=(R=(g=c.meteo)==null?void 0:g.wave)==null?void 0:R.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((W=(w=(S=c.meteo)==null?void 0:S.wave)==null?void 0:w.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((Z=(L=c.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(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((J=c.meteo)==null?void 0:J.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((H=c.meteo)==null?void 0:H.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((X=c.meteo)==null?void 0:X.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((K=c.meteo)==null?void 0:K.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Sg=Ve(og,[["render",fg],["__scopeId","data-v-dea0638a"]]),ck="",Cg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(ki.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(ki.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(ki.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,k,z,T,x,U;let o=[];const e=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const D=this.inventory.filter(y=>y.noon)||[],c=[];this.inventory.forEach((y,p)=>{var j,f;p===0&&c.push(y.utc),y.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(c.push(y.utc),c.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&c.push(y.utc)}),c.forEach((y,p)=>{if(p%2===0){const j=pt(c[p+1]).diff(pt(c[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(pt(c[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((y,p)=>{var f,g,R,B,S,w,W,L,Z,J,H,X,K,$;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(F=>F.slice(0,5)===y.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=y.noon)==null?void 0:f.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((R=y.cp)==null?void 0:R.fo)>n?(B=y.cp)==null?void 0:B.fo:n),s=Math.ceil(((S=y.noon)==null?void 0:S.dgoCons)>s?(w=y.noon)==null?void 0:w.dgoCons:s),s=Math.ceil(((W=y.cp)==null?void 0:W.dgo)>s?(L=y.cp)==null?void 0:L.dgo:s),l.push([j,(Z=y.noon)==null?void 0:Z.avgSpd,(J=y.noon)==null?void 0:J.foCons,(H=y.noon)==null?void 0:H.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.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((y,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:n+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(E=this.report)==null?void 0:E.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(V);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],D=[];s.forEach((T,x)=>{var U,y;x===0&&D.push(T.utc),T.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(T.utc),D.push((y=s[x+1])==null?void 0:y.utc)),x===s.length-1&&D.push(T.utc)}),D.forEach((T,x)=>{if(x%2===0){const U=pt(D[x+1]).diff(pt(D[x]),"minute",!0);for(let y=0;y<=U+1;y++)e.push(this.computeUTCTime(pt(D[x]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((T,x)=>{var y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v;const U=this.computeUTCTime(T.utc,"MM-DD/HHmm[Z]");if(T.noon&&!o.some(G=>G.slice(0,5)===T.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(y=T.meteo)==null?void 0:y.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(R=(g=(f=T.meteo)==null?void 0:f.wave)==null?void 0:g.sig)==null?void 0:R.height:n),l.push([U,((B=T.noon)==null?void 0:B.windBF)||((w=(S=T.meteo)==null?void 0:S.wind)==null?void 0:w.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[r.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<s.length-1){const G=s[x+1];l.push([U,((et=T.noon)==null?void 0:et.windBF)||((Mt=(at=T.meteo)==null?void 0:at.wind)==null?void 0:Mt.scale),(gt=(Dt=G.meteo)==null?void 0:Dt.wind)==null?void 0:gt.scale,(M=(It=G.meteo)==null?void 0:It.wind)==null?void 0:M.direction,(lt=G.noon)==null?void 0:lt.seasHt,(u=(A=(ot=T.meteo)==null?void 0:ot.wave)==null?void 0:A.sig)==null?void 0:u.height,G.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const c=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%c===0);let N=-2.5,V=2.5,a=1,E=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),E=Math.ceil(Math.abs(N)/a)+Math.ceil(Math.abs(V)/a)):(a=.5,N=Math.floor(this.findMinValue(l,6)/.5)*a,V=2.5,E=Math.abs(N)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:V,interval:a,splitNumber:E,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(E-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:E,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(T,x)=>{if(T>=0)return T}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(E-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:E,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(T,x)=>{if(T>=0)return T},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},bg={class:"report-summary"},Og={class:"section chart-section"},hg={class:"chart-block"},Yg={ref:"spdFoConsChart",class:"chart"},Qg={ref:"spdDgoConsChart",class:"chart"},wg={ref:"currChart",class:"chart"},Rg={class:"section map-section"},Bg={class:"map-block"},Fg={class:"flex-space"},Gg={class:"voyage-block bg-blue-light"},Pg={class:"flex-space label-block",style:{width:"100%"}},Wg={style:{"text-transform":"uppercase"}},Lg={class:"flex-space label-block",style:{width:"100%"}},Zg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},_g={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Jg={class:"flex-space label-block",style:{width:"100%"}},Hg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Xg={class:"flex-space label-block",style:{width:"100%"}},Kg={class:"flex-end",style:{flex:"1"}},qg={class:"flex-end",style:{width:"160px"}},$g={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1"}},vg={class:"flex-end",style:{width:"160px"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI=["src"];function lI(o,e,l,r,n,s){var D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w;return t.openBlock(),t.createElementBlock("div",bg,[t.createElementVNode("div",Og,[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",hg,[t.createElementVNode("div",Yg,null,512),t.createElementVNode("div",Qg,null,512),t.createElementVNode("div",wg,null,512)])]),t.createElementVNode("div",Rg,[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",Bg,[t.createElementVNode("div",Fg,[t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Wg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",Lg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Zg,t.toDisplayString((c=(D=l.report)==null?void 0:D.vessel)==null?void 0:c.name),1),t.createElementVNode("span",_g,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",Jg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Hg,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",Xg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",Kg,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",qg,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$g,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",ug,t.toDisplayString(((p=(y=l.report)==null?void 0:y.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",vg,t.toDisplayString(s.computeUTCTime((R=(g=l.report)==null?void 0:g.arrival)==null?void 0:R.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",tI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",eI,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:(w=l.report)==null?void 0:w.chartUrl,alt:""},null,8,aI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-34b7edf0> The vessel's performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-34b7edf0> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const oI=Ve(Cg,[["render",lI],["__scopeId","data-v-34b7edf0"]]),rk="",Nk="",nI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var N,V;let r="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(E=>{const k=`<p>${E}</p>`;r=r+k}),r=r+"</div>"):r=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,c=(s==null?void 0:s.offsetHeight)||0;if(D<=c){let E=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
|
|
1
|
+
(function(Nt,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo"),require("axios"),require("md-editor-v3")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo","axios","md-editor-v3"],t):(Nt=typeof globalThis<"u"?globalThis:Nt||self,t(Nt["idmui-extend"]={},Nt.Vue,Nt["@wangeditor/editor-for-vue"],Nt["@idmui/basic"],Nt.moment,Nt.echarts,Nt["@idm-plugin/geo"],Nt.axios,Nt.MdEditorV3))})(this,function(Nt,t,fi,La,pt,Ud,q,Ui,Si){"use strict";function fd(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(e,l,r.get?r:{enumerable:!0,get:()=>o[l]})}}return e.default=o,Object.freeze(e)}const ki=fd(Ud),lk="",Ve=(o,e)=>{const l=o.__vccOpts||o;for(const[r,n]of e)l[r]=n;return l},Sd={name:"IdmEditor",components:{Editor:fi.Editor,Toolbar:fi.Toolbar},props:{height:{type:String,default:"200px"},modelValue:{type:String,default:()=>""},disabled:{type:Boolean,default:()=>!1}},data(){return{editorRef:null,editor:null,mode:"simple",valueHtml:void 0,editorConfig:{placeholder:"please input something..."},toolbarConfig:{toolbarKeys:["bold","color","bgColor","fontSize","lineHeight"]}}},watch:{disabled:{handler(o){var e,l;o?(e=this.editor)==null||e.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var e;this.editorRef=t.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(e=this.editor)==null||e.setHtml(this.valueHtml),this.disabled?this.editor.disable():this.editor.enable()},handleChange(o){this.$emit("update:modelValue",this.valueHtml)},handleBlur(o){this.$emit("blur",this.valueHtml)},beforeDestroy(){var o;(o=this.editor)==null||o.destroy()}}},Cd={class:"editor-box"};function bd(o,e,l,r,n,s){const D=t.resolveComponent("Toolbar"),c=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Cd,[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(c,{modelValue:n.valueHtml,"onUpdate:modelValue":e[0]||(e[0]=N=>n.valueHtml=N),"default-config":n.editorConfig,mode:n.mode,class:"editor",style:t.normalizeStyle({height:l.height}),onOnCreated:s.handleCreated,onOnChange:s.handleChange,onOnBlur:s.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const rl=Ve(Sd,[["render",bd],["__scopeId","data-v-80104052"]]),Od={install(o){o.component("IdmEditor",rl)}},ok="";/*! Element Plus Icons Vue v2.3.2 */var hd=t.defineComponent({name:"Close",__name:"close",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Yd=hd,Qd=t.defineComponent({name:"Edit",__name:"edit",setup(o){return(e,l)=>(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),t.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),wd=Qd;const nk="",Rd={name:"PlanReport",components:{Editor:rl,IdmBrand:La.IdmBrand,IdmLoading:La.IdmLoading},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1},print:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{showCost(){var o,e;return this.print?!1:(e=(o=this.plan)==null?void 0:o.voyage)==null?void 0:e.showCost},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLTime(){return function(o,e,l,r){let n=0;return l&&e&&(n=q.LngLatHelper.guessTimeZoneOffset(e,l)),`${pt(o).utcOffset(r??n).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,e){var l,r,n,s,D;if(e===0)return"-";{const c=pt((n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.eta).diff(pt((D=(s=o==null?void 0:o.speeds)==null?void 0:s[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(c*100)/100}}},computeCostDiff(){return function(o,e){var l,r,n,s,D,c,N;if(e===0)return"-";{const V=Number((s=(n=(r=(l=o==null?void 0:o.speeds)==null?void 0:l[e])==null?void 0:r.speed)==null?void 0:n.cost)==null?void 0:s.total)-Number((N=(c=(D=o==null?void 0:o.speeds)==null?void 0:D[0])==null?void 0:c.speed)==null?void 0:N.cost.total);return`${(Math.round(V/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,e=4){if(typeof o=="number"){const l=Number("1".padEnd(e+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,e){const l=[];for(let r=0;r<(e==null?void 0:e.length);r++){const n=e[r],s=e[r-1];s&&(n.avgBearing=s.bearing),l.push(n),n.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:n.etd,eta:n.etd,isResume:!0,memo:`Stoppage: ${n.suspend}hrs`})}return l}},computeDegree(){return function(o,e,l){e=e%360;for(let r=0;r<17;r++)if(r*22.5+e+11.25>=360){let n=(16-r)*22.5;l||(n=n+180);let s="";return o==="wind"?s="var(--orm-wind)":o==="wave"?s="var(--orm-wave)":o==="swell"?s="var(--orm-swell)":o==="current"&&(s="var(--orm-current)"),`transform:rotate(${n}deg);margin-left:3px;color: ${s}`}}},computeDay(){return function(o,e=0){var s,D,c,N;const l=(N=(c=(D=(s=o==null?void 0:o.speeds)==null?void 0:s[e])==null?void 0:D.speed)==null?void 0:c.sample)==null?void 0:N.hours,r=l==null?void 0:l[0],n=l==null?void 0:l[(l==null?void 0:l.length)-1];return Math.round(pt(n==null?void 0:n.eta).diff(pt(r==null?void 0:r.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,r;let e=0;return(r=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||r.forEach(n=>{e+=n.suspend||0}),e?Math.round(e*100)/100:"-"}},computeModel(){return function(o){const e=o==null?void 0:o.source;return["ec","cmems"].includes(e==null?void 0:e.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${e}`}},computeCog(){return function(o){return isNaN(o)?"-":q.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,e=4)=>q.LngLatHelper.lat2pretty(o,e).pretty},computeLng(){return(o,e=4)=>q.LngLatHelper.lng2pretty(o,e).pretty},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computedWindClass(){return o=>{var l,r,n,s,D,c,N,V,a,E,k,z,T,x,U,y,p,j;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.wind&&((s=(n=o.meteo)==null?void 0:n.wind)==null?void 0:s.scale)>=((c=(D=this.weatherPrinciple)==null?void 0:D.dangerous)==null?void 0:c.wind)?e="bg-danger":(V=(N=this.weatherPrinciple)==null?void 0:N.severe)!=null&&V.wind&&((E=(a=o.meteo)==null?void 0:a.wind)==null?void 0:E.scale)>((z=(k=this.weatherPrinciple)==null?void 0:k.severe)==null?void 0:z.wind)?e="bg-severe":(x=(T=this.weatherPrinciple)==null?void 0:T.heavy)!=null&&x.wind&&((y=(U=o.meteo)==null?void 0:U.wind)==null?void 0:y.scale)===((j=(p=this.weatherPrinciple)==null?void 0:p.heavy)==null?void 0:j.wind)&&(e="bg-heavy"),e}},computedSigClass(){return o=>{var l,r,n,s,D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R;let e="";return(r=(l=this.weatherPrinciple)==null?void 0:l.dangerous)!=null&&r.sigWv&&((D=(s=(n=o.meteo)==null?void 0:n.wave)==null?void 0:s.sig)==null?void 0:D.height)>=((N=(c=this.weatherPrinciple)==null?void 0:c.dangerous)==null?void 0:N.sigWv)?e="bg-danger":(a=(V=this.weatherPrinciple)==null?void 0:V.severe)!=null&&a.sigWv&&((z=(k=(E=o.meteo)==null?void 0:E.wave)==null?void 0:k.sig)==null?void 0:z.height)>=((x=(T=this.weatherPrinciple)==null?void 0:T.severe)==null?void 0:x.sigWv)?e="bg-severe":(y=(U=this.weatherPrinciple)==null?void 0:U.heavy)!=null&&y.sigWv&&((f=(j=(p=o.meteo)==null?void 0:p.wave)==null?void 0:j.sig)==null?void 0:f.height)>=((R=(g=this.weatherPrinciple)==null?void 0:g.heavy)==null?void 0:R.sigWv)&&(e="bg-heavy"),e}},isArctic(){var o,e,l,r;return(r=(l=(e=(o=this.plan)==null?void 0:o.speeds)==null?void 0:e[this.speedIndex])==null?void 0:l.speed)==null?void 0:r.isArctic}},watch:{plan:{handler(){var o,e;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((e=this.plan)==null?void 0:e.advisory)||"Pls find the following major waypoints for your safe navigation.",this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleRefresh(){this.$emit("refresh")},handleEdit(){this.editorDisabled?this.editable=!1:this.editable=!0},initEchart(){this.echart||(this.echart=ki.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var y,p,j,f,g,R,B;const o=[],e=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let r=4;(R=(g=(f=(j=(p=(y=this.plan)==null?void 0:y.speeds)==null?void 0:p[this.speedIndex])==null?void 0:j.speed)==null?void 0:f.sample)==null?void 0:g.hours)==null||R.forEach(S=>{var W,L,Z,J,H,X,K,$,F,et;const w=S.meteo;if(w){const at=pt(w.utc).utc().format("MMM-DD/HHmm[Z]");o.push(at),r=Math.ceil(((L=(W=w.wave)==null?void 0:W.sig)==null?void 0:L.height)>r?(J=(Z=w.wave)==null?void 0:Z.sig)==null?void 0:J.height:r),e.push([at,(H=w.wind)==null?void 0:H.kts,(K=(X=w.wave)==null?void 0:X.sig)==null?void 0:K.height,($=w.wind)==null?void 0:$.direction,(F=w.wind)==null?void 0:F.degree,(et=w.wind)==null?void 0:et.scale,S.cFactor,S.wFactor,S.speed])}});const n=Math.max(...e.map(S=>S[l.speed])),s=Math.max(...e.map(S=>S[l.windSpeed])),D=Math.min(...e.map(S=>S[l.currentFactor]))>0?0:Math.floor(Math.min(...e.map(S=>S[l.currentFactor]))/.5)*.5,c=Math.ceil(Math.max(...e.map(S=>S[l.currentFactor]))/.5)*.5,N=Math.ceil(n/5/5)*5,V=Math.ceil(s/5/5)*5,a=Math.ceil(r/5/.5)*.5,E=Math.ceil((c-D)/5/.5)*.5,k=5*N,z=5*V,T=5*a,x=D+5*E,U={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"rgba(0,0,0,0.7)",fontSize:14},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0,itemWidth:40},grid:{top:50,bottom:50,right:90},xAxis:[{data:o,boundaryGap:!1,axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:11}}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#EC407A"}},splitLine:{show:!0},min:0,max:k,splitNumber:5,interval:N},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,min:0,max:z,splitNumber:5,interval:V,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,min:0,max:T,splitNumber:5,interval:a,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{type:"value",name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,min:D,max:x,splitNumber:5,interval:E,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:e,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:1,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:e,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:e,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!1,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:e,z:4}]};(B=this.echart)==null||B.setOption(U)}}},Bd={class:"orm-plan-report"},Fd={key:0,class:"loading-block"},Gd={class:"info-block"},Pd={class:"col"},Wd={class:"label-block"},Ld={class:"text"},Zd={class:"label-block"},_d={class:"text"},Jd={key:0},Hd={class:"label-block"},Xd={class:"text"},Kd={class:"col"},qd={class:"label-block"},$d={key:0},ud={key:1},vd={style:{"margin-left":"16px"}},tc={class:"label-block"},ec={key:0},ac={key:1},lc={style:{"margin-left":"16px"}},oc={class:"label-block"},nc={class:"text"},ic={class:"section chart-section"},sc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},dc={style:{"margin-right":"8px"}},cc=["src"],rc=["src"],Nc={key:1,class:"empty"},mc={class:"section comparison-section"},Mc={key:0,class:"orm-report-table",style:{"font-size":"12px"}},Dc={key:0},gc=["rowspan"],Ic={key:0},Ec={key:1},yc={rowspan:"2"},Ac={rowspan:"2"},Tc={key:0},Vc={key:1},xc={rowspan:"1"},pc={key:0},zc={rowspan:"2"},jc={rowspan:"2"},kc={rowspan:"2"},Uc={key:0},fc={key:0},Sc=["rowspan"],Cc={key:0},bc={rowspan:"1"},Oc={key:0},hc={key:0},Yc={key:1},Qc={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},wc={key:0},Rc={class:"section waypoint-section"},Bc={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Fc={class:"bg-block"},Gc={class:"block-title"},Pc={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Wc=["onClick"],Lc={class:"advisory bg-blue-light-2"},Zc=["innerHTML"],_c={class:"major-waypoint"},Jc={class:"major-header bg-blue-light-2"},Hc={key:0,class:"cell-item flex"},Xc={key:1,class:"cell-item flex"},Kc={class:"major-body"},qc={class:"cell-item flex",style:{flex:"2.5"}},$c={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},vc={key:0,style:{"margin-left":"3px"}},tr={class:"cell-item flex",style:{flex:"1.5"}},er={key:0,style:{"margin-left":"4px","font-weight":"600"}},ar={key:0,class:"cell-item flex offset"},lr={key:1,class:"cell-item flex nbsp"},or={key:2,class:"cell-item flex offset"},nr={key:3,class:"cell-item flex nbsp"},ir={key:0,class:"cell-item flex offset"},sr={key:1,class:"cell-item flex nbsp"},dr={key:0,class:"cell-item flex offset"},cr={key:1,class:"cell-item flex nbsp"},rr={key:6,class:"cell-item flex offset"},Nr={key:7,class:"cell-item flex nbsp"},mr={class:"section forecast-section"},Mr={class:"header-block",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Dr={class:"bg-block"},gr={class:"block-title"},Ir={key:0,class:"print-hidden",style:{display:"flex","align-items":"center","justify-content":"space-between"}},Er=["onClick"],yr={class:"echart-block",style:{"page-break-inside":"avoid"}},Ar={ref:"echart",class:"echart"},Tr={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Vr={style:{"page-break-inside":"avoid"}},xr={class:"orm-report-table",style:{"font-size":"12px"}},pr=["colspan"],zr={key:0,colspan:"2"},jr={key:0},kr={key:1},Ur={key:2},fr={class:"flex-center"},Sr={key:0,class:"degree-box"},Cr={key:1},br={key:0},Or={key:0,class:"degree-box"},hr={key:1},Yr={class:""},Qr={key:0,class:"degree-box"},wr={key:1},Rr={key:0,class:"degree-box"},Br={key:1},Fr={key:1},Gr={key:2};function Pr(o,e,l,r,n,s){var a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl;const D=t.resolveComponent("IdmBrand"),c=t.resolveComponent("IdmLoading"),N=t.resolveComponent("ElTooltip"),V=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",Bd,[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",Fd,[t.createVNode(c,{loading:n.loading,onTimeout:e[0]||(e[0]=m=>n.loading=!1)},null,8,["loading"])])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Gd,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Wd,[e[5]||(e[5]=t.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),t.createElementVNode("span",Ld,t.toDisplayString((z=(k=(E=l.plan)==null?void 0:E.voyage)==null?void 0:k.company)==null?void 0:z.name),1)]),t.createElementVNode("div",Zd,[e[6]||(e[6]=t.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),t.createElementVNode("span",_d,[t.createTextVNode(t.toDisplayString((U=(x=(T=l.plan)==null?void 0:T.voyage)==null?void 0:x.vessel)==null?void 0:U.name)+" ",1),(f=(j=(p=(y=l.plan)==null?void 0:y.voyage)==null?void 0:p.vessel)==null?void 0:j.vesselType)!=null&&f.name?(t.openBlock(),t.createElementBlock("span",Jd,"("+t.toDisplayString((S=(B=(R=(g=l.plan)==null?void 0:g.voyage)==null?void 0:R.vessel)==null?void 0:B.vesselType)==null?void 0:S.name)+")",1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hd,[e[7]||(e[7]=t.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),t.createElementVNode("span",Xd,t.toDisplayString(((W=(w=l.plan)==null?void 0:w.voyage)==null?void 0:W.voyNum)||((Z=(L=l.plan)==null?void 0:L.voyage)==null?void 0:Z.number)),1)])]),t.createElementVNode("div",Kd,[t.createElementVNode("div",qd,[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",$d,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",ud,t.toDisplayString(s.computePosition((at=(et=l.plan)==null?void 0:et.leg)==null?void 0:at.departure)),1)),t.createElementVNode("span",vd,t.toDisplayString(s.computeUTCTime(((gt=(Dt=(Mt=l.plan)==null?void 0:Mt.leg)==null?void 0:Dt.departure)==null?void 0:gt.atd)||((lt=(M=(It=l.plan)==null?void 0:It.leg)==null?void 0:M.departure)==null?void 0:lt.etd)||((v=(u=(A=(ot=l.plan)==null?void 0:ot.speeds)==null?void 0:A[n.speedIndex])==null?void 0:u.speed)==null?void 0:v.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),t.createElementVNode("div",tc,[e[9]||(e[9]=t.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(yt=(Et=(G=l.plan)==null?void 0:G.leg)==null?void 0:Et.destination)!=null&&yt.name?(t.openBlock(),t.createElementBlock("span",ec,t.toDisplayString((Vt=(Tt=(At=l.plan)==null?void 0:At.leg)==null?void 0:Tt.destination)==null?void 0:Vt.name),1)):(t.openBlock(),t.createElementBlock("span",ac,t.toDisplayString(s.computePosition((Ct=(xt=l.plan)==null?void 0:xt.leg)==null?void 0:Ct.destination)),1)),t.createElementVNode("span",lc,t.toDisplayString(s.computeUTCTime(((bt=(I=(Yt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Yt[n.speedIndex])==null?void 0:I.speed)==null?void 0:bt.ata)||((wt=(Qt=(jt=(zt=l.plan)==null?void 0:zt.speeds)==null?void 0:jt[n.speedIndex])==null?void 0:Qt.speed)==null?void 0:wt.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),t.createElementVNode("div",oc,[e[10]||(e[10]=t.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),t.createElementVNode("span",nc,t.toDisplayString((Bt=(Rt=l.plan)==null?void 0:Rt.voyage)==null?void 0:Bt.loadCondition),1)])])]),t.createElementVNode("div",ic,[t.createElementVNode("div",sc,[e[11]||(e[11]=t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Weather chart")],-1)),t.createElementVNode("div",dc,"FCST fr Pos. "+t.toDisplayString(s.computeUTCTime((ut=($t=(qt=(Kt=(Xt=(Ht=(Ft=l.plan)==null?void 0:Ft.speeds)==null?void 0:Ht[n.speedIndex])==null?void 0:Xt.speed)==null?void 0:Kt.sample)==null?void 0:qt.hours)==null?void 0:$t[0])==null?void 0:ut.eta)),1)]),(vt=l.plan)!=null&&vt.chartUrl?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("img",{src:l.plan.chartUrl},null,8,cc)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.plan.subChartUrl,m=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{"margin-top":"20px"}},[t.createElementVNode("img",{src:m},null,8,rc)]))),128))],64)):(t.openBlock(),t.createElementBlock("div",Nc,[t.createElementVNode("span",null,[e[12]||(e[12]=t.createTextVNode("Weather chart in cooking ",-1)),t.createElementVNode("span",{class:"btn",onClick:e[1]||(e[1]=(...m)=>s.handleRefresh&&s.handleRefresh(...m))},"Refresh"),e[13]||(e[13]=t.createTextVNode(" later please",-1))])]))]),t.createElementVNode("div",mc,[(ee=(te=l.plan)==null?void 0:te.speeds)!=null&&ee.length?(t.openBlock(),t.createElementBlock("table",Mc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[16]||(e[16]=t.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),e[17]||(e[17]=t.createElementVNode("th",null,[t.createTextVNode("SPD "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[18]||(e[18]=t.createElementVNode("th",{clospan:"2"},[t.createTextVNode("DTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e[19]||(e[19]=t.createElementVNode("th",null,[t.createTextVNode("ETA "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),e[20]||(e[20]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Stop "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[21]||(e[21]=t.createElementVNode("th",{colspan:"2"},[t.createTextVNode("Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Dc,[...e[14]||(e[14]=[t.createTextVNode("TTL Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",{rowspan:s.showCost?1:2},[...e[15]||(e[15]=[t.createTextVNode("Diff Time ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,gc),e[22]||(e[22]=t.createElementVNode("th",null,"Weather en route",-1))]),t.createElementVNode("tr",null,[e[25]||(e[25]=t.createElementVNode("th",null,[t.createTextVNode("*Daily Cons "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e[26]||(e[26]=t.createElementVNode("th",null,[t.createTextVNode("TTG "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(h)")],-1)),e[27]||(e[27]=t.createElementVNode("th",null,[t.createTextVNode("Avg.Spd/Wx.F/Cur.F "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[28]||(e[28]=t.createElementVNode("th",null,"*FO",-1)),e[29]||(e[29]=t.createElementVNode("th",null,"*DO/GO",-1)),s.showCost?(t.openBlock(),t.createElementBlock("th",Ic,[...e[23]||(e[23]=[t.createTextVNode("*Hire / Bunker ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("th",Ec,[...e[24]||(e[24]=[t.createTextVNode("Diff Cost ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):t.createCommentVNode("",!0),t.createElementVNode("th",null,"*in the next "+t.toDisplayString(s.computeDay(l.plan,0))+" days",1)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((ae=l.plan)==null?void 0:ae.speeds,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q;return t.openBlock(),t.createElementBlock(t.Fragment,{key:Ot},[t.createElementVNode("tr",null,[t.createElementVNode("td",yc,t.toDisplayString(Ot+1),1),t.createElementVNode("td",Ac,t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),1),t.createElementVNode("td",null,[m.speed.label!=="Combined"?(t.openBlock(),t.createElementBlock("span",Tc,t.toDisplayString(`CP ${((ye=(ge=m.speed)==null?void 0:ge.cpCopy)==null?void 0:ye.speed)??((Ge=m.speed)==null?void 0:Ge.v0)}`),1)):(t.openBlock(),t.createElementBlock("div",Vc,[e[30]||(e[30]=t.createTextVNode("CP",-1)),e[31]||(e[31]=t.createElementVNode("sub",null,"1",-1)),t.createTextVNode(" "+t.toDisplayString((Le=(We=(Pe=m.speed)==null?void 0:Pe.extend)==null?void 0:We.cps[0])==null?void 0:Le.speed)+", CP",1),e[32]||(e[32]=t.createElementVNode("sub",null,"2",-1)),t.createTextVNode(" "+t.toDisplayString((Je=(_e=(Ze=m.speed)==null?void 0:Ze.extend)==null?void 0:_e.cps[1])==null?void 0:Je.speed),1)]))]),t.createElementVNode("td",xc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((He=m.speed)==null?void 0:He.distance,0)),1),(Ke=(Xe=m.speed)==null?void 0:Xe.extend)!=null&&Ke.distanceInECA?(t.openBlock(),t.createElementBlock("span",pc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.distanceInECA,0))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,[t.createElementVNode("b",null,t.toDisplayString(s.computeLTime((qe=m.speed)==null?void 0:qe.eta,(ve=(ue=($e=l.plan)==null?void 0:$e.leg)==null?void 0:ue.destination)==null?void 0:ve.lng,(aa=(ea=(ta=l.plan)==null?void 0:ta.leg)==null?void 0:ea.destination)==null?void 0:aa.lat,(sa=(ia=(na=(oa=(la=l.plan)==null?void 0:la.leg)==null?void 0:oa.destination)==null?void 0:na.port)==null?void 0:ia.timezone)==null?void 0:sa.RawOffset)),1),e[33]||(e[33]=t.createElementVNode("br",null,null,-1)),t.createTextVNode(" "+t.toDisplayString(s.computeUTCTime((da=m.speed)==null?void 0:da.eta)),1)]),t.createElementVNode("td",zc,t.toDisplayString(s.computeSuspend(m.speed)),1),t.createElementVNode("td",jc,t.toDisplayString(s.roundPrecision((ca=m.speed)==null?void 0:ca.totalFoCons,3)),1),t.createElementVNode("td",kc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((ra=m.speed)==null?void 0:ra.totalDgoCons,3)),1),(ma=(Na=m.speed)==null?void 0:Na.extend)!=null&&ma.totalDgoConsInECA?(t.openBlock(),t.createElementBlock("span",Uc," + "+t.toDisplayString(s.roundPrecision((Ma=m.speed.extend)==null?void 0:Ma.totalDgoConsInECA,3))+"*",1)):t.createCommentVNode("",!0)]),s.showCost?(t.openBlock(),t.createElementBlock("td",fc,t.toDisplayString((Ia=s.roundPrecision(((ga=(Da=m==null?void 0:m.speed)==null?void 0:Da.cost)==null?void 0:ga.total)/1e3,2))==null?void 0:Ia.toLocaleString("en-US"))+"k",1)):t.createCommentVNode("",!0),t.createElementVNode("td",{rowspan:s.showCost?1:2},t.toDisplayString(s.computeTimeDiff(l.plan,Ot)),9,Sc),t.createElementVNode("td",null,[t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(ya=(Ea=l.weatherPrinciple)==null?void 0:Ea.dangerous)==null?void 0:ya.pretty},{default:t.withCtx(()=>[...e[34]||(e[34]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Danger",-1)])]),_:1},8,["content"]),e[37]||(e[37]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(Ta=(Aa=l.weatherPrinciple)==null?void 0:Aa.severe)==null?void 0:Ta.pretty},{default:t.withCtx(()=>[...e[35]||(e[35]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Severe",-1)])]),_:1},8,["content"]),e[38]||(e[38]=t.createTextVNode(" / ",-1)),t.createVNode(N,{effect:"light",placement:"top",trigger:"hover",width:300,content:(xa=(Va=l.weatherPrinciple)==null?void 0:Va.heavy)==null?void 0:xa.pretty},{default:t.withCtx(()=>[...e[36]||(e[36]=[t.createElementVNode("span",{style:{cursor:"pointer"}},"Heavy",-1)])]),_:1},8,["content"])])]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,[((pa=m.speed)==null?void 0:pa.label)!=="Combined"?(t.openBlock(),t.createElementBlock("div",Cc,"FO: "+t.toDisplayString((ja=(za=m.speed)==null?void 0:za.cpCopy)==null?void 0:ja.fo)+" / DO: "+t.toDisplayString((Ua=(ka=m.speed)==null?void 0:ka.cpCopy)==null?void 0:Ua.dgo),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",null,"FO: "+t.toDisplayString((Sa=(fa=m.speed)==null?void 0:fa.extend)==null?void 0:Sa.cps[0].fo)+" / "+t.toDisplayString((ba=(Ca=m.speed)==null?void 0:Ca.extend)==null?void 0:ba.cps[1].fo),1),t.createElementVNode("div",null,"DO: "+t.toDisplayString((ha=(Oa=m.speed)==null?void 0:Oa.extend)==null?void 0:ha.cps[0].dgo)+" / "+t.toDisplayString((Qa=(Ya=m.speed)==null?void 0:Ya.extend)==null?void 0:Qa.cps[1].dgo),1)],64))]),t.createElementVNode("td",bc,[t.createElementVNode("span",null,t.toDisplayString(s.roundPrecision((wa=m.speed)==null?void 0:wa.totalHrs,1)),1),(Ba=(Ra=m.speed)==null?void 0:Ra.extend)!=null&&Ba.hoursInECA?(t.openBlock(),t.createElementBlock("span",Oc," ("+t.toDisplayString(s.roundPrecision(m.speed.extend.hoursInECA,1))+" in ECA)",1)):t.createCommentVNode("",!0)]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Fa=m.speed)==null?void 0:Fa.avgSpeed,2))+" / "+t.toDisplayString(s.roundPrecision((Ga=m.speed)==null?void 0:Ga.wxFactor,2))+" / "+t.toDisplayString(s.roundPrecision((Pa=m.speed)==null?void 0:Pa.cFactor,2)),1),s.showCost?(t.openBlock(),t.createElementBlock("td",hc,t.toDisplayString(s.roundPrecision(((C=(d=m==null?void 0:m.speed)==null?void 0:d.cost)==null?void 0:C.hire)/1e3,2).toLocaleString("en-US"))+"k / "+t.toDisplayString(s.roundPrecision(((O=(b=m==null?void 0:m.speed)==null?void 0:b.cost)==null?void 0:O.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):t.createCommentVNode("",!0),s.showCost?(t.openBlock(),t.createElementBlock("td",Yc,t.toDisplayString(s.computeCostDiff(l.plan,Ot)),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(((h=m.speed)==null?void 0:h.dangerous)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Y=m.speed)==null?void 0:Y.severe)/24,2))+" / "+t.toDisplayString(s.roundPrecision(((Q=m.speed)==null?void 0:Q.heavy)/24,2)),1)])],64)}),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[e[40]||(e[40]=t.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),e[41]||(e[41]=t.createElementVNode("br",null,null,-1)),s.showCost?(t.openBlock(),t.createElementBlock("span",wc,[t.createTextVNode("* Hire cost was calculated at "+t.toDisplayString((ne=s.roundPrecision((oe=(le=l.plan)==null?void 0:le.voyage)==null?void 0:oe.dailyHire,0))==null?void 0:ne.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+t.toDisplayString((rt=s.roundPrecision((i=(ie=l.plan)==null?void 0:ie.voyage)==null?void 0:i.priceFO,0))==null?void 0:rt.toLocaleString("en-US"))+" USD/mt for FO and "+t.toDisplayString((ce=s.roundPrecision((Gt=(tt=l.plan)==null?void 0:tt.voyage)==null?void 0:Gt.priceDGO,0))==null?void 0:ce.toLocaleString("en-US"))+" USD/mt for MGO.",1),e[39]||(e[39]=t.createElementVNode("br",null,null,-1))])):t.createCommentVNode("",!0),e[42]||(e[42]=t.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),e[43]||(e[43]=t.createElementVNode("br",null,null,-1)),e[44]||(e[44]=t.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),t.createElementVNode("div",Rc,[t.createElementVNode("div",Bc,[t.createElementVNode("div",Fc,[e[45]||(e[45]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+t.toDisplayString((Me=(me=(Ne=(re=l.plan.speeds)==null?void 0:re[n.speedIndex])==null?void 0:Ne.speed)==null?void 0:me.lane)==null?void 0:Me.name),1)]),((mt=(De=l.plan)==null?void 0:De.speeds)==null?void 0:mt.length)>1?(t.openBlock(),t.createElementBlock("div",Pc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((Ee=l.plan)==null?void 0:Ee.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Wc)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lc,[n.editable?(t.openBlock(),t.createBlock(V,{key:0,modelValue:n.advisory,"onUpdate:modelValue":e[2]||(e[2]=m=>n.advisory=m),class:"editor",height:"120px",onBlur:e[3]||(e[3]=m=>s.handleCommit(m))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:e[4]||(e[4]=(...m)=>s.handleEdit&&s.handleEdit(...m)),innerHTML:n.advisory},null,40,Zc))]),t.createElementVNode("div",_c,[t.createElementVNode("div",Jc,[e[48]||(e[48]=t.createStaticVNode('<div class="cell-item flex" style="flex:2.5;" data-v-994fda79>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-994fda79>Time</div><div class="cell-item flex" data-v-994fda79>Nav</div><div class="cell-item flex" data-v-994fda79>Dist <span class="text-units" data-v-994fda79>(nm)</span></div>',4)),(ze=(pe=l.plan)==null?void 0:pe.voyage)!=null&&ze.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Hc,[...e[46]||(e[46]=[t.createTextVNode("SOG ",-1),t.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):t.createCommentVNode("",!0),(ke=(je=l.plan)==null?void 0:je.voyage)!=null&&ke.showMajorWPSpd?(t.openBlock(),t.createElementBlock("div",Xc,[...e[47]||(e[47]=[t.createTextVNode("COG ",-1),t.createElementVNode("span",{class:"text-units"},"(°)",-1)])])):t.createCommentVNode("",!0),e[49]||(e[49]=t.createElementVNode("div",{class:"cell-item flex"},"Memo",-1))]),t.createElementVNode("div",Kc,[(fe=(Ue=l.plan)==null?void 0:Ue.speeds)!=null&&fe.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(s.computeMajorPoints((Oe=(be=(Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce[n.speedIndex])==null?void 0:be.speed)==null?void 0:Oe.argv,(Re=(we=(Qe=(Ye=(he=l.plan)==null?void 0:he.speeds)==null?void 0:Ye[n.speedIndex])==null?void 0:Qe.speed)==null?void 0:we.sample)==null?void 0:Re.wps),(m,Ot)=>{var se,de,ge,ye;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:"cell-row"},[t.createElementVNode("div",qc,[m.isResume?(t.openBlock(),t.createElementBlock("div",$c,"Resume")):(t.openBlock(),t.createElementBlock("div",uc,[t.createElementVNode("span",null,t.toDisplayString(s.computePosition(m)),1),m.pilot?(t.openBlock(),t.createElementBlock("span",vc,"[P]")):t.createCommentVNode("",!0)]))]),t.createElementVNode("div",tr,[t.createTextVNode(t.toDisplayString(s.computeUTCTime(m.eta))+" ",1),m.cp?(t.openBlock(),t.createElementBlock("span",er,"[cp: "+t.toDisplayString(m.cp.speed)+"]",1)):t.createCommentVNode("",!0)]),Ot?(t.openBlock(),t.createElementBlock("div",ar,t.toDisplayString(s.computeNav(m)),1)):(t.openBlock(),t.createElementBlock("div",lr)),Ot?(t.openBlock(),t.createElementBlock("div",or,t.toDisplayString(s.roundPrecision(m.distanceFromStart,1)),1)):(t.openBlock(),t.createElementBlock("div",nr)),(de=(se=l.plan)==null?void 0:se.voyage)!=null&&de.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[Ot?(t.openBlock(),t.createElementBlock("div",ir,t.toDisplayString(s.roundPrecision(m.avgSpd??m.speed,2)),1)):(t.openBlock(),t.createElementBlock("div",sr))],64)):t.createCommentVNode("",!0),(ye=(ge=l.plan)==null?void 0:ge.voyage)!=null&&ye.showMajorWPSpd?(t.openBlock(),t.createElementBlock(t.Fragment,{key:5},[Ot?(t.openBlock(),t.createElementBlock("div",dr,t.toDisplayString(s.computeCog(m.avgBearing)),1)):(t.openBlock(),t.createElementBlock("div",cr))],64)):t.createCommentVNode("",!0),Ot?(t.openBlock(),t.createElementBlock("div",rr,t.toDisplayString(s.computeMemo(m)),1)):(t.openBlock(),t.createElementBlock("div",Nr))])}),128)):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",mr,[(Fe=(Be=l.plan)==null?void 0:Be.speeds)!=null&&Fe.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createElementVNode("div",Mr,[t.createElementVNode("div",Dr,[e[50]||(e[50]=t.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),t.createElementVNode("div",gr," Weather Forecast for the Next "+t.toDisplayString(s.computeDay(l.plan,n.speedIndex))+" Days of Route "+t.toDisplayString((Xa=(Ha=(Ja=(_a=(Za=l.plan)==null?void 0:Za.speeds)==null?void 0:_a[n.speedIndex])==null?void 0:Ja.speed)==null?void 0:Ha.lane)==null?void 0:Xa.name),1)]),((qa=(Ka=l.plan)==null?void 0:Ka.speeds)==null?void 0:qa.length)>1?(t.openBlock(),t.createElementBlock("div",Ir,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(($a=l.plan)==null?void 0:$a.speeds,(m,Ot)=>{var se,de;return t.openBlock(),t.createElementBlock("div",{key:Ot,class:t.normalizeClass(["route-item print-hidden",n.speedIndex===Ot?"active":""]),onClick:ge=>{n.speedIndex=Ot,s.renderEchart()}},t.toDisplayString((de=(se=m==null?void 0:m.speed)==null?void 0:se.lane)==null?void 0:de.name),11,Er)}),128))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yr,[t.createElementVNode("div",Ar,null,512)]),t.createElementVNode("div",Tr," * "+t.toDisplayString(s.computeModel((tl=(va=(ua=l.plan)==null?void 0:ua.speeds)==null?void 0:va[n.speedIndex])==null?void 0:tl.speed)),1)]),t.createElementVNode("div",Vr,[e[70]||(e[70]=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",xr,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[51]||(e[51]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Date Time "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),e[52]||(e[52]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Position "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),t.createElementVNode("th",{colspan:(al=(el=l.plan)==null?void 0:el.voyage)!=null&&al.sendRptWithBF?3:2},"Wind",8,pr),e[53]||(e[53]=t.createElementVNode("th",{rowspan:"2"},[t.createTextVNode("Sea HT "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[54]||(e[54]=t.createElementVNode("th",{colspan:"3"},"Swell",-1)),e[55]||(e[55]=t.createElementVNode("th",{colspan:"3"},"Sig",-1)),e[56]||(e[56]=t.createElementVNode("th",{colspan:"3"},"Current",-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",zr,"Ice")):t.createCommentVNode("",!0)]),t.createElementVNode("tr",null,[e[59]||(e[59]=t.createElementVNode("th",null,"Dir",-1)),e[60]||(e[60]=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",jr,"BF")):t.createCommentVNode("",!0),e[61]||(e[61]=t.createElementVNode("th",null,"Dir",-1)),e[62]||(e[62]=t.createElementVNode("th",null,[t.createTextVNode("Ht "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[63]||(e[63]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[64]||(e[64]=t.createElementVNode("th",null,"Dir",-1)),e[65]||(e[65]=t.createElementVNode("th",null,[t.createTextVNode("Hgt "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(m)")],-1)),e[66]||(e[66]=t.createElementVNode("th",null,[t.createTextVNode("Prd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(s)")],-1)),e[67]||(e[67]=t.createElementVNode("th",null,"Dir",-1)),e[68]||(e[68]=t.createElementVNode("th",null,[t.createTextVNode("Spd "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e[69]||(e[69]=t.createElementVNode("th",null,[t.createTextVNode("Factor "),t.createElementVNode("br"),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),s.isArctic?(t.openBlock(),t.createElementBlock("th",kr,[...e[57]||(e[57]=[t.createTextVNode("sit",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("th",Ur,[...e[58]||(e[58]=[t.createTextVNode("sic ",-1),t.createElementVNode("br",null,null,-1),t.createElementVNode("span",{class:"text-units"},"(%)",-1)])])):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((cl=(dl=(sl=(il=(nl=l.plan)==null?void 0:nl.speeds)==null?void 0:il[n.speedIndex])==null?void 0:sl.speed)==null?void 0:dl.sample)==null?void 0:cl.hours,(m,Ot)=>{var se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q,P,_;return t.openBlock(),t.createElementBlock("tr",{key:Ot},[t.createElementVNode("td",null,t.toDisplayString(s.computeUTCTime(m.eta)),1),t.createElementVNode("td",null,[t.createElementVNode("div",fr,t.toDisplayString(s.computeLat(m.lat))+", "+t.toDisplayString(s.computeLng(m.lng)),1)]),t.createElementVNode("td",null,[((de=(se=m.meteo)==null?void 0:se.wind)==null?void 0:de.kts)!==null&&((ye=(ge=m.meteo)==null?void 0:ge.wind)!=null&&ye.direction)?(t.openBlock(),t.createElementBlock("div",Sr,[t.createElementVNode("span",null,t.toDisplayString((Pe=(Ge=m.meteo)==null?void 0:Ge.wind)==null?void 0:Pe.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wind",(Le=(We=m.meteo)==null?void 0:We.wind)==null?void 0:Le.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",Cr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedWindClass(m))},t.toDisplayString(s.roundPrecision((_e=(Ze=m.meteo)==null?void 0:Ze.wind)==null?void 0:_e.kts,1)),3),(He=(Je=l.plan)==null?void 0:Je.voyage)!=null&&He.sendRptWithBF?(t.openBlock(),t.createElementBlock("td",br,t.toDisplayString((Ke=(Xe=m.meteo)==null?void 0:Xe.wind)==null?void 0:Ke.scale),1)):t.createCommentVNode("",!0),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((ue=($e=(qe=m.meteo)==null?void 0:qe.wave)==null?void 0:$e.wd)==null?void 0:ue.height,1)),1),t.createElementVNode("td",null,[((ea=(ta=(ve=m.meteo)==null?void 0:ve.wave)==null?void 0:ta.swell)==null?void 0:ea.height)!==null&&((oa=(la=(aa=m.meteo)==null?void 0:aa.wave)==null?void 0:la.swell)!=null&&oa.direction)?(t.openBlock(),t.createElementBlock("div",Or,[t.createElementVNode("span",null,t.toDisplayString((sa=(ia=(na=m.meteo)==null?void 0:na.wave)==null?void 0:ia.swell)==null?void 0:sa.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("swell",(ra=(ca=(da=m.meteo)==null?void 0:da.wave)==null?void 0:ca.swell)==null?void 0:ra.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",hr,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ma=(ma=(Na=m.meteo)==null?void 0:Na.wave)==null?void 0:ma.swell)==null?void 0:Ma.height,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ia=(ga=(Da=m.meteo)==null?void 0:Da.wave)==null?void 0:ga.swell)==null?void 0:Ia.period,1)),1),t.createElementVNode("td",Yr,[((Aa=(ya=(Ea=m.meteo)==null?void 0:Ea.wave)==null?void 0:ya.sig)==null?void 0:Aa.height)!==null&&((xa=(Va=(Ta=m.meteo)==null?void 0:Ta.wave)==null?void 0:Va.sig)!=null&&xa.direction)?(t.openBlock(),t.createElementBlock("div",Qr,[t.createElementVNode("span",null,t.toDisplayString((ja=(za=(pa=m.meteo)==null?void 0:pa.wave)==null?void 0:za.sig)==null?void 0:ja.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("wave",(fa=(Ua=(ka=m.meteo)==null?void 0:ka.wave)==null?void 0:Ua.sig)==null?void 0:fa.degree,!1))},null,4)])):(t.openBlock(),t.createElementBlock("span",wr,"-"))]),t.createElementVNode("td",{class:t.normalizeClass(s.computedSigClass(m))},t.toDisplayString(s.roundPrecision((ba=(Ca=(Sa=m.meteo)==null?void 0:Sa.wave)==null?void 0:Ca.sig)==null?void 0:ba.height,1)),3),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((Ya=(ha=(Oa=m.meteo)==null?void 0:Oa.wave)==null?void 0:ha.sig)==null?void 0:Ya.period,1)),1),t.createElementVNode("td",null,[((wa=(Qa=m.meteo)==null?void 0:Qa.current)==null?void 0:wa.kts)!==null&&((Ba=(Ra=m.meteo)==null?void 0:Ra.current)!=null&&Ba.direction)?(t.openBlock(),t.createElementBlock("div",Rr,[t.createElementVNode("span",null,t.toDisplayString((Ga=(Fa=m.meteo)==null?void 0:Fa.current)==null?void 0:Ga.direction),1),t.createElementVNode("i",{class:"iconfont icon-jiantouicon",style:t.normalizeStyle(s.computeDegree("current",(d=(Pa=m.meteo)==null?void 0:Pa.current)==null?void 0:d.degree,!0))},null,4)])):(t.openBlock(),t.createElementBlock("span",Br,"-"))]),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision((b=(C=m.meteo)==null?void 0:C.current)==null?void 0:b.kts,1)),1),t.createElementVNode("td",null,t.toDisplayString(s.roundPrecision(m.cFactor,1)),1),s.isArctic?(t.openBlock(),t.createElementBlock("td",Fr,t.toDisplayString(s.roundPrecision((h=(O=m.meteo)==null?void 0:O.ice)==null?void 0:h.sit,1)),1)):t.createCommentVNode("",!0),s.isArctic?(t.openBlock(),t.createElementBlock("td",Gr,t.toDisplayString(((Q=(Y=m.meteo)==null?void 0:Y.ice)==null?void 0:Q.sic)>=0?s.roundPrecision(((_=(P=m.meteo)==null?void 0:P.ice)==null?void 0:_.sic)*100,0):"-"),1)):t.createCommentVNode("",!0)])}),128))])]),e[71]||(e[71]=t.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","margin-bottom":"20px","font-size":"12px","line-height":"1.4"}},[t.createElementVNode("div",null,"* The waypoints is for reference only and should not be used for navigation."),t.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64)):t.createCommentVNode("",!0)])],64))])}const Ci=Ve(Rd,[["render",Pr],["__scopeId","data-v-994fda79"]]),Wr={install(o){o.component("PlanReport",Ci)}},ik="",Lr={name:"VoyageCover",components:{},props:{name:{type:String,default:"Voyage Analysis Report"},report:{type:Object,default:()=>({})}},data(){return{inventory:[],loading:!0}},computed:{computeLocalTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(o).format(e)}`}},computeUTCTime(){return function(o,e="MMM-DD/HHmm, yyyy"){return`${pt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}}},Zr={class:"cover-box"},_r={class:"cover-content"},Jr={class:"cover-title"},Hr={class:"cover-info"},Xr={class:"info-item"},Kr={class:"info-item"},qr={class:"info-item"},$r={style:{"font-weight":"600"}},ur={class:"info-item"},vr={style:{"font-weight":"600"}},tN={class:"info-item"},eN={class:"info-item"},aN={class:"info-item"},lN={class:"info-item"},oN={class:"info-item"},nN={class:"text"};function iN(o,e,l,r,n,s){var D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R,B;return t.openBlock(),t.createElementBlock("div",Zr,[t.createElementVNode("div",_r,[t.createElementVNode("div",Jr,t.toDisplayString(l.name),1),t.createElementVNode("div",Hr,[t.createElementVNode("div",Xr,[e[0]||(e[0]=t.createElementVNode("span",{class:"text-label"},"Reference No : ",-1)),t.createTextVNode(t.toDisplayString((c=(D=l.report)==null?void 0:D.voyage)==null?void 0:c.number),1)]),t.createElementVNode("div",Kr,[e[1]||(e[1]=t.createElementVNode("span",{class:"text-label"},"Report Date : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeLocalTime(l.report.createdAt,"MMM-DD, YYYY")),1)]),e[9]||(e[9]=t.createElementVNode("div",{style:{height:"2px",width:"100%","background-color":"#e7e7e7",margin:"12px 0"}},null,-1)),t.createElementVNode("div",qr,[e[2]||(e[2]=t.createElementVNode("span",{class:"text-label"},"Vessel : ",-1)),t.createElementVNode("span",$r,t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.name),1)]),t.createElementVNode("div",ur,[e[3]||(e[3]=t.createElementVNode("span",{class:"text-label"},"Prepare for : ",-1)),t.createElementVNode("span",vr,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",tN,[e[4]||(e[4]=t.createElementVNode("span",{class:"text-label"},"Departure : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((E=(a=l.report)==null?void 0:a.departure)==null?void 0:E.portName)||((z=(k=l.report)==null?void 0:k.departure)==null?void 0:z.name)),1)]),t.createElementVNode("div",eN,[e[5]||(e[5]=t.createElementVNode("span",{class:"text-label"},"ATD : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((x=(T=l.report)==null?void 0:T.departure)==null?void 0:x.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",aN,[e[6]||(e[6]=t.createElementVNode("span",{class:"text-label"},"Arrival : ",-1)),t.createElementVNode("span",null,t.toDisplayString(((y=(U=l.report)==null?void 0:U.arrival)==null?void 0:y.portName)||((j=(p=l.report)==null?void 0:p.arrival)==null?void 0:j.name)),1)]),t.createElementVNode("div",lN,[e[7]||(e[7]=t.createElementVNode("span",{class:"text-label"},"ATA : ",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime((g=(f=l.report)==null?void 0:f.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",oN,[e[8]||(e[8]=t.createElementVNode("span",{class:"text-label"},"Load Condition : ",-1)),t.createElementVNode("span",nN,t.toDisplayString((B=(R=l.report)==null?void 0:R.voyage)==null?void 0:B.loadCondition),1)])])])])}const sN=Ve(Lr,[["render",iN],["__scopeId","data-v-c57d4b58"]]),sk="",dN={name:"OrmVoyageSummary",components:{Editor:rl},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],multiFOCons:{hsFoCons:0,lsFoCons:0},noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return pt(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,e){const l=pt(o).diff(pt(e),"hours",!0);return Math.round(l*100)/100}},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeWeatherDef(){return function(o){let e;if(o!=null&&o.overallAsGoodWx)e="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?e+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?e+=", Wx Factor is ignored":o.disableCFactor&&(e+=", Current Factor is ignored"),e+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let l="";o!=null&&o.waveSwitch?l+=`Wind wave height is ${o==null?void 0:o.waveHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.swellSwitch?l+=`Swell height is ${o==null?void 0:o.swellHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`:o!=null&&o.sigSwitch&&(l+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),e=`Winds are BF/${o==null?void 0:o.windScale} or less, ${l}`,o!=null&&o.noAdverseCur&&(e+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(e+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(e+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?e+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?e+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:e+="."}return e}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computeAbtSpeed(){return function(o,e,l){return l==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,e,l){if(o.consPercentage){if(e==="fo")return l==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(e==="fo")return l==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(e==="dgo")return l==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}},computePrecision(){return function(o,e=3){return q.LngLatHelper.roundPrecision(o,e)}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(e=(o=this.report)==null?void 0:o.segments)==null||e.forEach((l,r)=>{var D,c;l.multiFOCons&&(this.multiFOCons.hsFoCons+=l.multiFOCons.hsFoCons,this.multiFOCons.lsFoCons+=l.multiFOCons.lsFoCons),l.excluded.detail.forEach(N=>{const V={time:pt(N.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+pt(N.end).utc().format("MMM-DD/HHmm[Z]"),duration:N.duration,distance:N.distance,fo:N.foCons,dgo:N.dgoCons};this.exclusion.push(V)});const s=(c=(D=l==null?void 0:l.inventory)==null?void 0:D.sample)==null?void 0:c.hours.filter(N=>N.noon);this.noons.push([s])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},cN={class:"report-summary"},rN={class:"section weather-section"},NN={class:"definition bg-blue-light-2"},mN={style:{"line-height":"1.5"}},MN={class:"section summary-section"},DN={class:"phase-box"},gN={class:"phase-index"},IN={class:"phase-position"},EN={class:"phase-position"},yN={class:"phase-cp"},AN={class:"orm-report-table"},TN={key:0},VN={class:"phase-conclusion"},xN={class:"item-conclusion bg-blue-light-2"},pN={class:"value align-left"},zN={key:0,class:"text-secondary align-right"},jN={key:0},kN={key:1},UN={key:2},fN={key:1,class:"text-secondary"},SN={key:2,class:"value"},CN={key:0},bN={class:"gain"},ON={key:1},hN={class:"lost"},YN={key:2},QN={class:"item-conclusion bg-blue-light-2"},wN={class:"value align-left"},RN={key:0,class:"text-secondary"},BN={key:0},FN={key:1},GN={key:2},PN={key:1,class:"text-secondary"},WN={key:2,class:"value"},LN={key:0},ZN={class:"gain"},_N={key:1},JN={class:"lost"},HN={key:2},XN={class:"item-conclusion bg-blue-light-2"},KN={class:"value align-left"},qN={key:0,class:"text-secondary"},$N={key:0},uN={key:1},vN={key:2},tm={key:1,class:"text-secondary"},em={key:2,class:"value"},am={key:0},lm={class:"gain"},om={key:1},nm={class:"lost"},im={key:2},sm={key:0,class:"exclusion-block"},dm={style:{margin:"8px 0"}},cm={class:"orm-report-table"},rm={key:1,class:"exclusion-block",style:{"border-top":"1px solid var(--orm-black-1)"}},Nm={class:"sub-title"},mm=["innerHTML"],Mm={class:"section segment-section"},Dm={class:"segment-summary"},gm={class:"segment-index text-left"},Im={class:"segment-position"},Em={class:"segment-position"},ym={class:"orm-report-table"},Am={class:"good-wx"},Tm={class:"good-wx"},Vm={class:"good-wx"},xm={class:"good-wx"},pm={class:"good-wx"},zm={class:"good-wx"},jm={class:"good-wx"},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={key:0,class:"orm-report-table",style:{"margin-top":"12px"}},Ym={key:0},Qm={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},wm={key:2,class:"segment-speed"},Rm={class:"row"},Bm={class:"speed-right row"},Fm={class:"speed"},Gm={key:1,class:"speed"},Pm={key:0,class:"speed"},Wm={class:"speed"},Lm={class:"speed"},Zm={class:"speed"},_m={key:0,class:"under"},Jm={key:1,class:"over"},Hm={class:"row"},Xm={class:"speed-right formula flex-space"},Km={key:0},qm={key:3,class:"segment-speed"},$m={class:"row"},um={class:"speed-right row"},vm={class:"speed"},tM={class:"speed"},eM={key:0,class:"under"},aM={key:1,class:"over"},lM={class:"row"},oM={class:"speed-right formula row"},nM={class:"segment-formula"},iM={class:"sub-title"},sM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},dM={class:"formula-block"},cM={class:"formula-item flex-evenly bg-blue-light"},rM={class:"formula-right flex-evenly"},NM={class:"fraction",style:{width:"240px"}},mM={class:"formula-item flex-center bg-blue-light"},MM={class:"formula-left flex-space"},DM={class:"formula-right flex-evenly"},gM={class:"fraction",style:{width:"240px"}},IM={class:"formula-item flex-center bg-blue-light"},EM={class:"formula-left flex-space"},yM={class:"formula-right flex-evenly"},AM={class:"fraction",style:{width:"240px"}},TM={class:"formula-desc"},VM={class:"flex-end"},xM={class:"flex-end"},pM={class:"flex-end"},zM={key:0,class:"formula-block"},jM={class:"formula-item flex-evenly bg-blue-light"},kM={class:"formula-right flex-evenly"},UM={class:"fraction",style:{width:"200px"}},fM={class:"formula-item flex-center bg-blue-light"},SM={class:"formula-left flex-space"},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 formula-conclusion bg-blue-light"},RM={key:0,class:"flex-evenly",style:{width:"500px"}},BM={key:1,class:"flex-evenly",style:{width:"500px"}},FM={class:"flex-center"},GM={key:1,class:"formula-conclusion bg-blue-light"},PM={class:"segment-formula"},WM={class:"sub-title"},LM={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},ZM={class:"formula-block"},_M={class:"formula-item flex-evenly bg-blue-light"},JM={class:"formula-right flex-evenly"},HM={class:"fraction",style:{width:"240px"}},XM={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},KM={key:0,class:"flex-end text-tips"},qM={class:"formula-item flex-center bg-blue-light"},$M={class:"formula-right flex-evenly"},uM={class:"fraction",style:{width:"200px"}},vM={class:"formula-item flex-center bg-blue-light"},tD={class:"formula-right flex-evenly"},eD={class:"fraction",style:{width:"200px"}},aD={class:"formula-item flex-center bg-blue-light"},lD={class:"formula-right flex-evenly"},oD={class:"fraction",style:{width:"300px"}},nD={class:"formula-item flex-center bg-blue-light"},iD={class:"formula-right flex-evenly"},sD={class:"fraction",style:{width:"300px"}},dD={class:"sub-title"},cD={key:0,class:"formula-block"},rD={key:0,class:"formula-item flex-evenly bg-blue-light"},ND={class:"formula-right flex-evenly"},mD={class:"fraction",style:{width:"60px"}},MD={class:"fraction",style:{width:"60px"}},DD={class:"formula-item flex-evenly bg-blue-light"},gD={class:"formula-right flex-evenly"},ID={class:"fraction",style:{width:"150px"}},ED={class:"fraction",style:{width:"150px"}},yD={key:0},AD={class:"formula-item flex-evenly bg-blue-light"},TD={class:"formula-right flex-evenly"},VD={class:"fraction",style:{width:"150px"}},xD={class:"fraction",style:{width:"150px"}},pD={class:"formula-item flex-evenly bg-blue-light"},zD={class:"formula-right flex-evenly"},jD={class:"fraction",style:{width:"150px"}},kD={class:"fraction",style:{width:"150px"}},UD={class:"formula-item formula-conclusion bg-blue-light"},fD={class:"flex-evenly",style:{width:"500px"}},SD={key:0,class:"flex-evenly"},CD={class:"fraction"},bD={class:"flex-evenly",style:{width:"700px"}},OD={key:0,class:"flex-evenly",style:{width:"500px"}},hD={class:"fraction",style:{width:"140px"}},YD={key:1,class:"formula-item formula-conclusion bg-blue-light"},QD={class:"header-block"},wD={class:"bg-block"},RD={class:"block-title"},BD={key:0,class:"formula-block"},FD={class:"formula-item flex-evenly bg-blue-light"},GD={class:"formula-right flex-evenly"},PD={class:"fraction",style:{width:"150px"}},WD={class:"fraction",style:{width:"150px"}},LD={key:0},ZD={class:"formula-item flex-evenly bg-blue-light"},_D={class:"formula-right flex-evenly"},JD={class:"fraction",style:{width:"150px"}},HD={class:"fraction",style:{width:"150px"}},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 formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},vD={key:0,class:"flex-evenly",style:{width:"500px"}},tg={key:1,class:"flex-evenly",style:{width:"700px"}},eg={key:1,class:"formula-item formula-conclusion bg-blue-light"};function ag(o,e,l,r,n,s){var c,N,V;const D=t.resolveComponent("Editor");return t.openBlock(),t.createElementBlock("div",cN,[t.createElementVNode("div",rN,[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",NN,[t.createElementVNode("div",mN,t.toDisplayString(s.computeWeatherDef(l.report.weather)),1)])]),t.createElementVNode("div",MN,[e[30]||(e[30]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-tianqi"}),t.createElementVNode("div",{class:"block-title"},"Analysis Summary")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((c=l.report)==null?void 0:c.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt;return t.openBlock(),t.createElementBlock("div",{key:"summary"+E,class:"segment-box"},[t.createElementVNode("div",DN,[t.createElementVNode("div",gN,"Seg."+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(I,bt)=>{var zt,jt,Qt,wt,Rt,Bt;return t.openBlock(),t.createElementBlock("div",{key:bt,class:"phase-row text-secondary"},[t.createElementVNode("div",IN,[t.createElementVNode("span",null,t.toDisplayString(((zt=I==null?void 0:I.departure)==null?void 0:zt.portName)||((jt=I.departure)==null?void 0:jt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Qt=I==null?void 0:I.departure)==null?void 0:Qt.utcTime))+")",1)]),e[4]||(e[4]=t.createElementVNode("div",{class:"phase-split"},"~",-1)),t.createElementVNode("div",EN,[t.createElementVNode("span",null,t.toDisplayString(((wt=I==null?void 0:I.arrival)==null?void 0:wt.portName)||((Rt=I.arrival)==null?void 0:Rt.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Bt=I==null?void 0:I.arrival)==null?void 0:Bt.utcTime))+")",1)])])}),128)),t.createElementVNode("div",yN,[t.createElementVNode("table",AN,[e[11]||(e[11]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",null,[t.createTextVNode("Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily FO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("Daily DO/GO Cons "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createElementVNode("span",null,"Remarks")])])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((T=(z=a==null?void 0:a.extend)==null?void 0:z.cp)==null?void 0:T.speed)+" |",1),e[5]||(e[5]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(U=(x=a==null?void 0:a.extend)==null?void 0:x.cp)==null?void 0:U.speed,"Over"))+",",1),e[6]||(e[6]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(p=(y=a==null?void 0:a.extend)==null?void 0:y.cp)==null?void 0:p.speed,"Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((f=(j=a==null?void 0:a.extend)==null?void 0:j.cp)==null?void 0:f.fo)+" |",1),e[7]||(e[7]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Over"))+",",1),e[8]||(e[8]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"fo","Under")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString((R=(g=a==null?void 0:a.extend)==null?void 0:g.cp)==null?void 0:R.dgo)+" |",1),e[9]||(e[9]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Over"))+",",1),e[10]||(e[10]=t.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeAbtCons(a==null?void 0:a.fuelConclusion,"dgo","Under")),1)]),t.createElementVNode("td",null,[(S=(B=l.report)==null?void 0:B.voyage)!=null&&S.showCpRemark?(t.openBlock(),t.createElementBlock("span",TN,t.toDisplayString((W=(w=a==null?void 0:a.extend)==null?void 0:w.cp)==null?void 0:W.alias),1)):t.createCommentVNode("",!0)])])])])]),t.createElementVNode("div",VN,[t.createElementVNode("div",xN,[e[17]||(e[17]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),t.createElementVNode("div",pN,[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",zN,[((L=a==null?void 0:a.timeConclusion)==null?void 0:L.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("span",jN,"Time Gained")):((Z=a==null?void 0:a.timeConclusion)==null?void 0:Z.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("span",kN,"Time Lost")):(t.openBlock(),t.createElementBlock("span",UN,"No Time Lost/Gained"))])):(t.openBlock(),t.createElementBlock("div",fN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",SN,[((J=a==null?void 0:a.timeConclusion)==null?void 0:J.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",CN,[e[13]||(e[13]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",bN,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",ON,[e[15]||(e[15]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",hN,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",YN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",QN,[e[23]||(e[23]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),t.createElementVNode("div",wN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumFoCons),1),e[18]||(e[18]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",RN,[((F=($=a==null?void 0:a.fuelConclusion)==null?void 0:$.fo)==null?void 0:F.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",BN,"FO Saving")):((at=(et=a==null?void 0:a.fuelConclusion)==null?void 0:et.fo)==null?void 0:at.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",FN,"FO Over-consumption")):(t.openBlock(),t.createElementBlock("span",GN,"No FO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",PN,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",WN,[((Dt=(Mt=a==null?void 0:a.fuelConclusion)==null?void 0:Mt.fo)==null?void 0:Dt.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",LN,[e[19]||(e[19]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",ZN,t.toDisplayString((It=(gt=a==null?void 0:a.fuelConclusion)==null?void 0:gt.fo)==null?void 0:It.saving),1),e[20]||(e[20]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((lt=(M=a==null?void 0:a.fuelConclusion)==null?void 0:M.fo)==null?void 0:lt.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",_N,[e[21]||(e[21]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",JN,t.toDisplayString((A=(ot=a==null?void 0:a.fuelConclusion)==null?void 0:ot.fo)==null?void 0:A.overCons),1),e[22]||(e[22]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",HN,"N/A"))])):t.createCommentVNode("",!0)]),t.createElementVNode("div",XN,[e[29]||(e[29]=t.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),t.createElementVNode("div",KN,[t.createElementVNode("span",null,t.toDisplayString(a.allWx.sumDgoCons),1),e[24]||(e[24]=t.createElementVNode("span",{class:"unit"},"mt",-1))]),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",qN,[((v=(u=a==null?void 0:a.fuelConclusion)==null?void 0:u.dgo)==null?void 0:v.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("span",$N,"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",uN,"DO/GO Over-consumption")):(t.openBlock(),t.createElementBlock("span",vN,"No DO/GO Over-consumption/Saving"))])):(t.openBlock(),t.createElementBlock("div",tm,t.toDisplayString(n.noGoodWxDay),1)),a.goodWx.distance?(t.openBlock(),t.createElementBlock("div",em,[((At=(yt=a==null?void 0:a.fuelConclusion)==null?void 0:yt.dgo)==null?void 0:At.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",am,[e[25]||(e[25]=t.createElementVNode("i",{class:"iconfont gain"},"",-1)),t.createElementVNode("span",lm,t.toDisplayString((Vt=(Tt=a==null?void 0:a.fuelConclusion)==null?void 0:Tt.dgo)==null?void 0:Vt.saving),1),e[26]||(e[26]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):((Ct=(xt=a==null?void 0:a.fuelConclusion)==null?void 0:xt.dgo)==null?void 0:Ct.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",om,[e[27]||(e[27]=t.createElementVNode("i",{class:"iconfont lost"},"",-1)),t.createElementVNode("span",nm,t.toDisplayString((Yt=(ht=a==null?void 0:a.fuelConclusion)==null?void 0:ht.dgo)==null?void 0:Yt.overCons),1),e[28]||(e[28]=t.createElementVNode("span",{class:"unit"},"mt",-1))])):(t.openBlock(),t.createElementBlock("div",im,"N/A"))])):t.createCommentVNode("",!0)])])])])}),128)),e[31]||(e[31]=t.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((N=l.report)==null?void 0:N.remarks)&&!n.exclusion.length?"section remark-section print-hidden":"section remark-section")},[e[35]||(e[35]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-biaodan"}),t.createElementVNode("div",{class:"block-title"},"Remarks")])],-1)),n.exclusion.length?(t.openBlock(),t.createElementBlock("div",sm,[e[33]||(e[33]=t.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),e[34]||(e[34]=t.createElementVNode("div",{class:"text-secondary"},[t.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),t.createElementVNode("div",dm,[t.createElementVNode("table",cm,[e[32]||(e[32]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",{style:{width:"40%"}},"Time"),t.createElementVNode("th",null,[t.createTextVNode("Duration "),t.createElementVNode("span",{class:"text-units"},"(hrs)")]),t.createElementVNode("th",null,[t.createTextVNode("Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")]),t.createElementVNode("th",null,[t.createTextVNode("FO "),t.createElementVNode("span",{class:"text-units"},"(mt)")]),t.createElementVNode("th",null,[t.createTextVNode("DO/GO "),t.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.exclusion,(a,E)=>(t.openBlock(),t.createElementBlock("tr",{key:E},[t.createElementVNode("td",null,t.toDisplayString(E+1),1),t.createElementVNode("td",null,t.toDisplayString(a.time),1),t.createElementVNode("td",null,t.toDisplayString(a.duration),1),t.createElementVNode("td",null,t.toDisplayString(a.distance),1),t.createElementVNode("td",null,t.toDisplayString(a.fo),1),t.createElementVNode("td",null,t.toDisplayString(a.dgo),1)]))),128))])])])])):t.createCommentVNode("",!0),n.multiFOCons.lsFoCons&&n.multiFOCons.hsFoCons?(t.openBlock(),t.createElementBlock("div",rm,[t.createElementVNode("div",Nm," Both HSFO and LSFO are consumed in the voyage, with "+t.toDisplayString(s.computePrecision(n.multiFOCons.hsFoCons,3))+" mt of HSFO and "+t.toDisplayString(s.computePrecision(n.multiFOCons.lsFoCons,3))+" mt of LSFO. ",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(s.computeBlankHtml((V=l.report)==null?void 0:V.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[n.editable?(t.openBlock(),t.createBlock(D,{key:0,modelValue:n.remarks,"onUpdate:modelValue":e[0]||(e[0]=a=>n.remarks=a),class:"editor",height:"120px",onBlur:e[1]||(e[1]=a=>s.handleCommit(a))},null,8,["modelValue"])):(t.openBlock(),t.createElementBlock("div",{key:1,onDblclick:e[2]||(e[2]=(...a)=>s.handleEdit&&s.handleEdit(...a)),innerHTML:n.remarks},null,40,mm))],2)],2),t.createElementVNode("div",Mm,[e[237]||(e[237]=t.createElementVNode("div",{class:"header-block"},[t.createElementVNode("div",{class:"bg-block"},[t.createElementVNode("i",{class:"iconfont icon-baobiao"}),t.createElementVNode("div",{class:"block-title"},"Speed and Consumption Calculation")])],-1)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.report.segments,(a,E)=>{var k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v,G,Et,yt,At,Tt,Vt,xt,Ct,ht,Yt,I,bt,zt,jt,Qt,wt,Rt,Bt,Ft,Ht,Xt,Kt,qt,$t,ut,vt,te,ee,ae,le,oe,ne,ie,i,rt,tt,Gt,ce,re,Ne,me,Me,De,mt,Ee,pe,ze,je,ke,Ue,fe,Se,Ce,be,Oe,he,Ye,Qe,we,Re,Be,Fe,Za,_a,Ja,Ha,Xa,Ka,qa,$a,ua,va,tl,el,al,ll,ol,nl,il,sl,dl,cl,m,Ot,se,de,ge,ye,Ge,Pe,We,Le,Ze,_e,Je,He,Xe,Ke,qe,$e,ue,ve,ta,ea,aa,la,oa,na,ia,sa,da,ca,ra,Na,ma,Ma,Da,ga,Ia,Ea,ya,Aa,Ta,Va,xa,pa,za,ja,ka,Ua,fa,Sa,Ca,ba,Oa,ha,Ya,Qa,wa,Ra,Ba,Fa,Ga,Pa,d,C,b,O,h,Y,Q,P,_,nt,it,st,dt,ct,kt,Ut,ft,Pt,Wt,Lt,Zt,_t,Jt,Ae,Te,Wa,ml,Ml,Dl,gl,Il,El,yl,Al,Tl,Vl,xl,pl,zl,jl,fl,Sl,Cl,bl,Ol,hl,Yl,Ql,wl,Rl,Bl,Fl,Gl,Pl,Wl,Ll,Zl,_l,Jl,Hl,Xl,Kl,ql,$l,ul,vl,to,eo,ao,lo,oo,no,io,so,co,ro,No,mo,Mo,Do,go,Io,Eo,yo,Ao,To,Vo,xo,po,zo,jo,ko,Uo,fo,So,Co,bo,Oo,ho,Yo,Qo,wo,Ro,Bo,Fo,Go,Po,Wo,Lo,Zo,_o,Jo,Ho,Xo,Ko,qo,$o,uo,vo,tn,en,an,ln,on,nn,sn,dn,cn,rn,Nn,mn,Mn,Dn,gn,In,En,yn,An,Tn,Vn,xn,pn,zn,jn,kn,Un,fn,Sn,Cn,bn,On,hn,Yn,Qn,wn,Rn,Bn,Fn,Gn,Pn,Wn,Ln,Zn,_n,Jn,Hn,Xn,Kn,qn,$n,un,vn,ti,ei,ai,li,oi,ni,ii,si,di,ci,ri,Ni,mi,Mi,Di,gi,Ii,Ei,yi;return t.openBlock(),t.createElementBlock("div",{key:E,class:"segment-block"},[t.createElementVNode("div",Dm,[t.createElementVNode("div",gm,"Voyage Analysis Seg. "+t.toDisplayString(E+1),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((k=a==null?void 0:a.extend)==null?void 0:k.segTimes,(xe,Ul)=>{var Nl,kl,Ai,Ti,Vi,xi;return t.openBlock(),t.createElementBlock("div",{key:Ul,class:"segment-row text-secondary"},[t.createElementVNode("div",Im,[t.createElementVNode("span",null,t.toDisplayString(((Nl=xe==null?void 0:xe.departure)==null?void 0:Nl.portName)||((kl=xe.departure)==null?void 0:kl.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((Ai=xe==null?void 0:xe.departure)==null?void 0:Ai.utcTime))+")",1)]),e[36]||(e[36]=t.createElementVNode("div",{class:"segment-split"},"~",-1)),t.createElementVNode("div",Em,[t.createElementVNode("span",null,t.toDisplayString(((Ti=xe==null?void 0:xe.arrival)==null?void 0:Ti.portName)||((Vi=xe.arrival)==null?void 0:Vi.name)),1),t.createElementVNode("label",null,"("+t.toDisplayString(s.computeUTCTime((xi=xe==null?void 0:xe.arrival)==null?void 0:xi.utcTime))+")",1)])])}),128)),t.createElementVNode("table",ym,[e[44]||(e[44]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{style:{width:"35%"}}),t.createElementVNode("th",{colspan:"2"},"Good Weather"),t.createElementVNode("th",{colspan:"2"},"All Weather")]),t.createElementVNode("tr",null,[t.createElementVNode("th"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA"),t.createElementVNode("th",null,"out of ECA"),t.createElementVNode("th",null,"in ECA")])],-1)),t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[e[37]||(e[37]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Distance "),t.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t.createElementVNode("td",Am,t.toDisplayString((T=(z=a==null?void 0:a.goodWx)==null?void 0:z.outEca)==null?void 0:T.distance),1),t.createElementVNode("td",Tm,t.toDisplayString((U=(x=a==null?void 0:a.goodWx)==null?void 0:x.inEca)==null?void 0:U.distance),1),t.createElementVNode("td",null,t.toDisplayString((p=(y=a==null?void 0:a.allWx)==null?void 0:y.outEca)==null?void 0:p.distance),1),t.createElementVNode("td",null,t.toDisplayString((f=(j=a==null?void 0:a.allWx)==null?void 0:j.inEca)==null?void 0:f.distance),1)]),t.createElementVNode("tr",null,[e[38]||(e[38]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Total Time "),t.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),t.createElementVNode("td",Vm,t.toDisplayString((R=(g=a==null?void 0:a.goodWx)==null?void 0:g.outEca)==null?void 0:R.time),1),t.createElementVNode("td",xm,t.toDisplayString((S=(B=a==null?void 0:a.goodWx)==null?void 0:B.inEca)==null?void 0:S.time),1),t.createElementVNode("td",null,t.toDisplayString((W=(w=a==null?void 0:a.allWx)==null?void 0:w.outEca)==null?void 0:W.time),1),t.createElementVNode("td",null,t.toDisplayString((Z=(L=a==null?void 0:a.allWx)==null?void 0:L.inEca)==null?void 0:Z.time),1)]),t.createElementVNode("tr",null,[e[39]||(e[39]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Average Speed "),t.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t.createElementVNode("td",pm,t.toDisplayString(((H=(J=a==null?void 0:a.goodWx)==null?void 0:J.outEca)==null?void 0:H.avgSpd)||"--"),1),t.createElementVNode("td",zm,t.toDisplayString(((K=(X=a==null?void 0:a.goodWx)==null?void 0:X.inEca)==null?void 0:K.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((F=($=a==null?void 0:a.allWx)==null?void 0:$.outEca)==null?void 0:F.avgSpd)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((at=(et=a==null?void 0:a.allWx)==null?void 0:et.inEca)==null?void 0:at.avgSpd)||"--"),1)]),t.createElementVNode("tr",null,[e[40]||(e[40]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",jm,t.toDisplayString(((Dt=(Mt=a==null?void 0:a.goodWx)==null?void 0:Mt.outEca)==null?void 0:Dt.sumFoCons)||"--"),1),t.createElementVNode("td",km,t.toDisplayString(((It=(gt=a==null?void 0:a.goodWx)==null?void 0:gt.inEca)==null?void 0:It.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((lt=(M=a==null?void 0:a.allWx)==null?void 0:M.outEca)==null?void 0:lt.sumFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((A=(ot=a==null?void 0:a.allWx)==null?void 0:ot.inEca)==null?void 0:A.sumFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[41]||(e[41]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily FO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Um,t.toDisplayString(((v=(u=a==null?void 0:a.goodWx)==null?void 0:u.outEca)==null?void 0:v.avgFoCons)||"--"),1),t.createElementVNode("td",fm,t.toDisplayString(((Et=(G=a==null?void 0:a.goodWx)==null?void 0:G.inEca)==null?void 0:Et.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((At=(yt=a==null?void 0:a.allWx)==null?void 0:yt.outEca)==null?void 0:At.avgFoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Vt=(Tt=a==null?void 0:a.allWx)==null?void 0:Tt.inEca)==null?void 0:Vt.avgFoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[42]||(e[42]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",Sm,t.toDisplayString(((Ct=(xt=a==null?void 0:a.goodWx)==null?void 0:xt.outEca)==null?void 0:Ct.sumDgoCons)||"--"),1),t.createElementVNode("td",Cm,t.toDisplayString(((Yt=(ht=a==null?void 0:a.goodWx)==null?void 0:ht.inEca)==null?void 0:Yt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((bt=(I=a==null?void 0:a.allWx)==null?void 0:I.outEca)==null?void 0:bt.sumDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((jt=(zt=a==null?void 0:a.allWx)==null?void 0:zt.inEca)==null?void 0:jt.sumDgoCons)||"--"),1)]),t.createElementVNode("tr",null,[e[43]||(e[43]=t.createElementVNode("td",{class:"bg-blue-light-2"},[t.createTextVNode("Averaged Daily DO/GO Consumption "),t.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t.createElementVNode("td",bm,t.toDisplayString(((wt=(Qt=a==null?void 0:a.goodWx)==null?void 0:Qt.outEca)==null?void 0:wt.avgDgoCons)||"--"),1),t.createElementVNode("td",Om,t.toDisplayString(((Bt=(Rt=a==null?void 0:a.goodWx)==null?void 0:Rt.inEca)==null?void 0:Bt.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Ht=(Ft=a==null?void 0:a.allWx)==null?void 0:Ft.outEca)==null?void 0:Ht.avgDgoCons)||"--"),1),t.createElementVNode("td",null,t.toDisplayString(((Kt=(Xt=a==null?void 0:a.allWx)==null?void 0:Xt.inEca)==null?void 0:Kt.avgDgoCons)||"--"),1)])])]),(qt=a==null?void 0:a.goodWx)!=null&&qt.distance?(t.openBlock(),t.createElementBlock("table",hm,[e[46]||(e[46]=t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[t.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),t.createElementVNode("tr",null,[t.createElementVNode("th",null,"Date"),t.createElementVNode("th",null,"Time range"),t.createElementVNode("th",null,"Duration (hrs)")])],-1)),t.createElementVNode("tbody",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.noons[E],(xe,Ul)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ul},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(xe,(Nl,kl)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:kl},[Nl.goodWx?(t.openBlock(),t.createElementBlock("tr",Ym,[t.createElementVNode("td",null,t.toDisplayString(Nl.type)+" "+t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD")),1),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(s.computePrevTime(Nl),"MMM-DD/HHmm[Z],YYYY")),1),e[45]||(e[45]=t.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),t.createElementVNode("span",null,t.toDisplayString(s.computeUTCTime(Nl.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),t.createElementVNode("td",null,[t.createElementVNode("span",null,t.toDisplayString(s.computeDuration(Nl.utc,s.computePrevTime(Nl))),1)])])):t.createCommentVNode("",!0)],64))),128))],64))),128))])])):t.createCommentVNode("",!0),($t=n.exclusion[E])!=null&&$t.time?(t.openBlock(),t.createElementBlock("div",Qm," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):t.createCommentVNode("",!0),(ut=a==null?void 0:a.goodWx)!=null&&ut.distance?(t.openBlock(),t.createElementBlock("div",wm,[t.createElementVNode("div",Rm,[e[56]||(e[56]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Bm,[(te=(vt=l.report)==null?void 0:vt.weather)!=null&&te.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ce=(Gt=l.report)==null?void 0:Gt.weather)!=null&&ce.disableWxFactor&&((Ne=(re=l.report)==null?void 0:re.weather)!=null&&Ne.disableCFactor)?(t.openBlock(),t.createElementBlock("span",Pm,t.toDisplayString((me=a==null?void 0:a.goodWx)==null?void 0:me.pfmSpd)+" (kts)",1)):(De=(Me=l.report)==null?void 0:Me.weather)!=null&&De.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("span",null,t.toDisplayString((mt=a==null?void 0:a.goodWx)==null?void 0:mt.avgSpd),1),e[49]||(e[49]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ee=a==null?void 0:a.goodWx)==null?void 0:Ee.avgCf)>0?(pe=a==null?void 0:a.goodWx)==null?void 0:pe.avgCf:`(${(ze=a==null?void 0:a.goodWx)==null?void 0:ze.avgCf})`),1),e[50]||(e[50]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Wm,t.toDisplayString((je=a==null?void 0:a.goodWx)==null?void 0:je.pfmSpd)+" (kts)",1)],64)):(Ue=(ke=l.report)==null?void 0:ke.weather)!=null&&Ue.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("span",null,t.toDisplayString((fe=a==null?void 0:a.goodWx)==null?void 0:fe.avgSpd),1),e[51]||(e[51]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Se=a==null?void 0:a.goodWx)==null?void 0:Se.avgWf)>0?(Ce=a==null?void 0:a.goodWx)==null?void 0:Ce.avgWf:`(${(be=a==null?void 0:a.goodWx)==null?void 0:be.avgWf})`),1),e[52]||(e[52]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Lm,t.toDisplayString((Oe=a==null?void 0:a.goodWx)==null?void 0:Oe.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createElementVNode("span",null,t.toDisplayString((he=a==null?void 0:a.goodWx)==null?void 0:he.avgSpd),1),e[54]||(e[54]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Ye=a==null?void 0:a.goodWx)==null?void 0:Ye.avgWf)>0?(Qe=a==null?void 0:a.goodWx)==null?void 0:Qe.avgWf:`(${(we=a==null?void 0:a.goodWx)==null?void 0:we.avgWf})`),1),(Be=(Re=l.report)==null?void 0:Re.weather)!=null&&Be.favorableCur&&((Fe=a==null?void 0:a.goodWx)==null?void 0:Fe.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[53]||(e[53]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((Za=a==null?void 0:a.goodWx)==null?void 0:Za.avgCf)>0?(_a=a==null?void 0:a.goodWx)==null?void 0:_a.avgCf:`(${(Ja=a==null?void 0:a.goodWx)==null?void 0:Ja.avgCf})`),1)],64)),e[55]||(e[55]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Zm,t.toDisplayString((Ha=a==null?void 0:a.goodWx)==null?void 0:Ha.pfmSpd)+" (kts)",1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(ae=(ee=l.report)==null?void 0:ee.weather)!=null&&ae.favorableCur&&((le=a==null?void 0:a.goodWx)==null?void 0:le.avgCf)>0?(t.openBlock(),t.createElementBlock("span",Gm,t.toDisplayString((tt=a==null?void 0:a.goodWx)==null?void 0:tt.pfmSpd)+" (kts)",1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((oe=a==null?void 0:a.goodWx)==null?void 0:oe.avgSpd),1),e[47]||(e[47]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((ne=a==null?void 0:a.goodWx)==null?void 0:ne.avgCf)>0?(ie=a==null?void 0:a.goodWx)==null?void 0:ie.avgCf:`(${(i=a==null?void 0:a.goodWx)==null?void 0:i.avgCf})`),1),e[48]||(e[48]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",Fm,t.toDisplayString((rt=a==null?void 0:a.goodWx)==null?void 0:rt.pfmSpd)+" (kts)",1)],64))],64)),(Ka=(Xa=l.report)==null?void 0:Xa.voyage)!=null&&Ka.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((qa=a==null?void 0:a.goodWx)==null?void 0:qa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",_m,"(Under-performance)")):t.createCommentVNode("",!0),(($a=a==null?void 0:a.goodWx)==null?void 0:$a.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",Jm,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Hm,[e[73]||(e[73]=t.createElementVNode("div",{class:"speed-left formula flex-space"},[t.createElementVNode("label",null,"Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",Xm,[(va=(ua=l.report)==null?void 0:ua.weather)!=null&&va.overallAsGoodWx?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(ol=(ll=l.report)==null?void 0:ll.weather)!=null&&ol.disableWxFactor&&((il=(nl=l.report)==null?void 0:nl.weather)!=null&&il.disableCFactor)?(t.openBlock(),t.createElementBlock("label",Km,"GW Average Speed")):(dl=(sl=l.report)==null?void 0:sl.weather)!=null&&dl.disableWxFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[62]||(e[62]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[63]||(e[63]=t.createElementVNode("label",null,"-",-1)),e[64]||(e[64]=t.createElementVNode("label",null,"GW Current Factor",-1))],64)):(m=(cl=l.report)==null?void 0:cl.weather)!=null&&m.disableCFactor?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[e[65]||(e[65]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[66]||(e[66]=t.createElementVNode("label",null,"-",-1)),e[67]||(e[67]=t.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[e[70]||(e[70]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[71]||(e[71]=t.createElementVNode("label",null,"-",-1)),e[72]||(e[72]=t.createElementVNode("label",null,"GW Weather Factor",-1)),(se=(Ot=l.report)==null?void 0:Ot.weather)!=null&&se.favorableCur&&((de=a==null?void 0:a.goodWx)==null?void 0:de.avgCf)>0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[68]||(e[68]=t.createElementVNode("label",null,"-",-1)),e[69]||(e[69]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(el=(tl=l.report)==null?void 0:tl.weather)!=null&&el.favorableCur&&((al=a==null?void 0:a.goodWx)==null?void 0:al.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[60]||(e[60]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[61]||(e[61]=t.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[57]||(e[57]=t.createElementVNode("label",null,"GW Average Speed",-1)),e[58]||(e[58]=t.createElementVNode("label",null,"-",-1)),e[59]||(e[59]=t.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(t.openBlock(),t.createElementBlock("div",qm,[t.createElementVNode("div",$m,[e[79]||(e[79]=t.createElementVNode("div",{class:"speed-left row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",um,[(ye=(ge=l.report)==null?void 0:ge.weather)!=null&&ye.favorableCur&&((Ge=a==null?void 0:a.allWx)==null?void 0:Ge.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[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.avgWf)>0?($e=a==null?void 0:a.allWx)==null?void 0:$e.avgWf:`(${(ue=a==null?void 0:a.allWx)==null?void 0:ue.avgWf})`),1),e[78]||(e[78]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",tM,t.toDisplayString((ve=a==null?void 0:a.allWx)==null?void 0:ve.pfmSpd)+" (kts)",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString((Pe=a==null?void 0:a.allWx)==null?void 0:Pe.avgSpd),1),e[74]||(e[74]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((We=a==null?void 0:a.allWx)==null?void 0:We.avgCf)>0?(Le=a==null?void 0:a.allWx)==null?void 0:Le.avgCf:`(${(Ze=a==null?void 0:a.allWx)==null?void 0:Ze.avgCf})`),1),e[75]||(e[75]=t.createElementVNode("span",null,"-",-1)),t.createElementVNode("span",null,t.toDisplayString(((_e=a==null?void 0:a.allWx)==null?void 0:_e.avgWf)>0?(Je=a==null?void 0:a.allWx)==null?void 0:Je.avgWf:`(${(He=a==null?void 0:a.allWx)==null?void 0:He.avgWf})`),1),e[76]||(e[76]=t.createElementVNode("label",null,"=",-1)),t.createElementVNode("span",vm,t.toDisplayString((Xe=a==null?void 0:a.allWx)==null?void 0:Xe.pfmSpd)+" (kts)",1)],64)),(ea=(ta=l.report)==null?void 0:ta.voyage)!=null&&ea.showConclusion?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[((aa=a==null?void 0:a.allWx)==null?void 0:aa.pfmStatus)==="Under"?(t.openBlock(),t.createElementBlock("span",eM,"(Under-performance)")):t.createCommentVNode("",!0),((la=a==null?void 0:a.allWx)==null?void 0:la.pfmStatus)==="Over"?(t.openBlock(),t.createElementBlock("span",aM,"(Over-performance)")):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lM,[e[89]||(e[89]=t.createElementVNode("div",{class:"speed-left formula row"},[t.createElementVNode("label",null,"All Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",oM,[(na=(oa=l.report)==null?void 0:oa.weather)!=null&&na.favorableCur&&((ia=a==null?void 0:a.allWx)==null?void 0:ia.avgCf)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e[85]||(e[85]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[86]||(e[86]=t.createElementVNode("label",null,"-",-1)),e[87]||(e[87]=t.createElementVNode("label",null,"Weather Factor ",-1)),e[88]||(e[88]=t.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e[80]||(e[80]=t.createElementVNode("label",null,"All Weather Average Speed",-1)),e[81]||(e[81]=t.createElementVNode("label",null,"-",-1)),e[82]||(e[82]=t.createElementVNode("label",null,"Current Factor",-1)),e[83]||(e[83]=t.createElementVNode("label",null,"-",-1)),e[84]||(e[84]=t.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),t.createElementVNode("div",nM,[t.createElementVNode("div",iM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Time Analysis",1),(da=(sa=l.report)==null?void 0:sa.weather)!=null&&da.noExtrapolation?(t.openBlock(),t.createElementBlock("span",sM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",dM,[t.createElementVNode("div",cM,[e[93]||(e[93]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",rM,[t.createElementVNode("div",NM,[t.createElementVNode("div",null,t.toDisplayString((ra=(ca=l.report)==null?void 0:ca.weather)!=null&&ra.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[90]||(e[90]=t.createElementVNode("div",{class:"line"},null,-1)),e[91]||(e[91]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[92]||(e[92]=t.createElementVNode("div",null,"(a)",-1))])]),t.createElementVNode("div",mM,[t.createElementVNode("div",MM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ma=(Na=a==null?void 0:a.extend)==null?void 0:Na.cp)==null?void 0:ma.speed,"Under"))+"kts)",1),e[94]||(e[94]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",DM,[t.createElementVNode("div",gM,[t.createElementVNode("div",null,t.toDisplayString((Da=(Ma=l.report)==null?void 0:Ma.weather)!=null&&Da.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[95]||(e[95]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ia=(ga=a==null?void 0:a.extend)==null?void 0:ga.cp)==null?void 0:Ia.speed,"Under"))+"kts",1)]),e[96]||(e[96]=t.createElementVNode("div",null,"(b)",-1))])]),t.createElementVNode("div",IM,[t.createElementVNode("div",EM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ya=(Ea=a==null?void 0:a.extend)==null?void 0:Ea.cp)==null?void 0:ya.speed,"Over"))+"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((Ta=(Aa=l.report)==null?void 0:Aa.weather)!=null&&Ta.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[98]||(e[98]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xa=(Va=a==null?void 0:a.extend)==null?void 0:Va.cp)==null?void 0:xa.speed,"Over"))+"kts",1)]),e[99]||(e[99]=t.createElementVNode("div",null,"(c)",-1))])]),e[100]||(e[100]=t.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:300px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Lost</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(a)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-5d68a964><label data-v-5d68a964>Time Gained</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(c)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(a)</div></div></div>',1))]),t.createElementVNode("div",TM,[t.createElementVNode("div",VM,[e[101]||(e[101]=t.createElementVNode("label",null,"Time Lost",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(za=(pa=a==null?void 0:a.extend)==null?void 0:pa.cp)==null?void 0:za.speed,"Under"))+" kts) ",1)]),t.createElementVNode("div",xM,[e[102]||(e[102]=t.createElementVNode("label",null,"Time Gained",-1)),t.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(ka=(ja=a==null?void 0:a.extend)==null?void 0:ja.cp)==null?void 0:ka.speed,"Over"))+" kts) ",1)]),t.createElementVNode("div",pM,[e[103]||(e[103]=t.createElementVNode("label",null,"No Time Lost and Gained",-1)),t.createElementVNode("div",null," Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(fa=(Ua=a==null?void 0:a.extend)==null?void 0:Ua.cp)==null?void 0:fa.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Ca=(Sa=a==null?void 0:a.extend)==null?void 0:Sa.cp)==null?void 0:Ca.speed,"Under"))+" kts) ",1)])]),(ba=a==null?void 0:a.goodWx)!=null&&ba.distance?(t.openBlock(),t.createElementBlock("div",zM,[t.createElementVNode("div",jM,[e[107]||(e[107]=t.createElementVNode("div",{class:"formula-left flex-space"},[t.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",kM,[t.createElementVNode("div",UM,[t.createElementVNode("div",null,t.toDisplayString((ha=(Oa=l.report)==null?void 0:Oa.weather)!=null&&ha.noExtrapolation?(Ya=a==null?void 0:a.goodWx)==null?void 0:Ya.distance:(Qa=a==null?void 0:a.allWx)==null?void 0:Qa.distance),1),e[104]||(e[104]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((wa=a==null?void 0:a.goodWx)==null?void 0:wa.pfmSpd),1)]),e[105]||(e[105]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ra=a==null?void 0:a.timeConclusion)==null?void 0:Ra.timeAtPfmSpd)+" (hrs)",1),e[106]||(e[106]=t.createElementVNode("div",null,"(a')",-1))])]),t.createElementVNode("div",fM,[t.createElementVNode("div",SM,[t.createElementVNode("label",null,"Total Time at (CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Fa=(Ba=a==null?void 0:a.extend)==null?void 0:Ba.cp)==null?void 0:Fa.speed,"Under"))+"kts)",1),e[108]||(e[108]=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?(d=a==null?void 0:a.goodWx)==null?void 0:d.distance:(C=a==null?void 0:a.allWx)==null?void 0:C.distance),1),e[109]||(e[109]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((b=a==null?void 0:a.timeConclusion)==null?void 0:b.minusAbtSpd),1)]),e[110]||(e[110]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((O=a==null?void 0:a.timeConclusion)==null?void 0:O.timeAtMinusAbtSpd)+" (hrs)",1),e[111]||(e[111]=t.createElementVNode("div",null,"(b')",-1))])]),t.createElementVNode("div",OM,[t.createElementVNode("div",hM,[t.createElementVNode("label",null,"Total Time at (CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(Y=(h=a==null?void 0:a.extend)==null?void 0:h.cp)==null?void 0:Y.speed,"Over"))+"kts)",1),e[112]||(e[112]=t.createElementVNode("label",null,"=",-1))]),t.createElementVNode("div",YM,[t.createElementVNode("div",QM,[t.createElementVNode("div",null,t.toDisplayString((P=(Q=l.report)==null?void 0:Q.weather)!=null&&P.noExtrapolation?(_=a==null?void 0:a.goodWx)==null?void 0:_.distance:(nt=a==null?void 0:a.allWx)==null?void 0:nt.distance),1),e[113]||(e[113]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((it=a==null?void 0:a.timeConclusion)==null?void 0:it.plusAbtSpd),1)]),e[114]||(e[114]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((st=a==null?void 0:a.timeConclusion)==null?void 0:st.timeAtPlusAbtSpd)+" (hrs)",1),e[115]||(e[115]=t.createElementVNode("div",null,"(c')",-1))])]),t.createElementVNode("div",wM,[((dt=a==null?void 0:a.timeConclusion)==null?void 0:dt.conclusionStatus)==="Lost"?(t.openBlock(),t.createElementBlock("div",RM,[e[116]||(e[116]=t.createElementVNode("div",null,"Time Lost",-1)),e[117]||(e[117]=t.createElementVNode("div",null,"=",-1)),e[118]||(e[118]=t.createElementVNode("div",null,"(a') - (b')",-1)),e[119]||(e[119]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ct=a==null?void 0:a.timeConclusion)==null?void 0:ct.timeAtPfmSpd),1),e[120]||(e[120]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((kt=a==null?void 0:a.timeConclusion)==null?void 0:kt.timeAtMinusAbtSpd),1),e[121]||(e[121]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ut=a==null?void 0:a.timeConclusion)==null?void 0:Ut.timeLost)+" (hrs)",1)])):((ft=a==null?void 0:a.timeConclusion)==null?void 0:ft.conclusionStatus)==="Gain"?(t.openBlock(),t.createElementBlock("div",BM,[e[122]||(e[122]=t.createElementVNode("div",null,"Time Lost",-1)),e[123]||(e[123]=t.createElementVNode("div",null,"=",-1)),e[124]||(e[124]=t.createElementVNode("div",null,"(c') - (a')",-1)),e[125]||(e[125]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pt=a==null?void 0:a.timeConclusion)==null?void 0:Pt.timeAtPlusAbtSpd),1),e[126]||(e[126]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((Wt=a==null?void 0:a.timeConclusion)==null?void 0:Wt.timeAtPfmSpd),1),e[127]||(e[127]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lt=a==null?void 0:a.timeConclusion)==null?void 0:Lt.timeGain)+" (hrs)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",FM,[e[128]||(e[128]=t.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),t.createElementVNode("div",{class:t.normalizeClass(((Zt=a==null?void 0:a.timeConclusion)==null?void 0:Zt.conclusionStatus)==="Lost"?"lost":((_t=a==null?void 0:a.timeConclusion)==null?void 0:_t.conclusionStatus)==="Gain"?"gain":"")},t.toDisplayString(((Jt=a==null?void 0:a.timeConclusion)==null?void 0:Jt.conclusion)||""),3)])])])):(t.openBlock(),t.createElementBlock("div",GM,t.toDisplayString(n.noGoodWxDay),1))]),t.createElementVNode("div",PM,[t.createElementVNode("div",WM,[t.createElementVNode("span",null,"Seg. "+t.toDisplayString(E+1)+" Consumption Analysis",1),(Te=(Ae=l.report)==null?void 0:Ae.weather)!=null&&Te.noExtrapolation?(t.openBlock(),t.createElementBlock("span",LM,"( no extrapolation beyond the good weather period )")):t.createCommentVNode("",!0)]),t.createElementVNode("div",ZM,[t.createElementVNode("div",_M,[e[134]||(e[134]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",JM,[t.createElementVNode("div",HM,[t.createElementVNode("div",null,t.toDisplayString((ml=(Wa=l.report)==null?void 0:Wa.weather)!=null&&ml.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[129]||(e[129]=t.createElementVNode("div",{class:"line"},null,-1)),e[130]||(e[130]=t.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),e[131]||(e[131]=t.createElementVNode("div",null,"x",-1)),e[132]||(e[132]=t.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[t.createElementVNode("div",null,"Good Weather Consumption*"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"Good Weather Time")],-1)),e[133]||(e[133]=t.createElementVNode("div",null,"(d)",-1))])]),t.createElementVNode("div",XM,[e[135]||(e[135]=t.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((Dl=(Ml=a.extend)==null?void 0:Ml.cp)==null?void 0:Dl.dgo)>0?(t.openBlock(),t.createElementBlock("div",KM," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):t.createCommentVNode("",!0)]),t.createElementVNode("div",qM,[e[140]||(e[140]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",$M,[t.createElementVNode("div",uM,[t.createElementVNode("div",null,t.toDisplayString((Il=(gl=l.report)==null?void 0:gl.weather)!=null&&Il.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[136]||(e[136]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed - "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(yl=(El=a==null?void 0:a.extend)==null?void 0:El.cp)==null?void 0:yl.speed,"Under"))+"kts",1)]),e[137]||(e[137]=t.createElementVNode("div",null,"x",-1)),e[138]||(e[138]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[139]||(e[139]=t.createElementVNode("div",null,"(e)",-1))])]),t.createElementVNode("div",vM,[e[145]||(e[145]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",tD,[t.createElementVNode("div",eD,[t.createElementVNode("div",null,t.toDisplayString((Tl=(Al=l.report)==null?void 0:Al.weather)!=null&&Tl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),e[141]||(e[141]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,"CP Speed + "+t.toDisplayString(s.computeAbtSpeed(a==null?void 0:a.timeConclusion,(xl=(Vl=a==null?void 0:a.extend)==null?void 0:Vl.cp)==null?void 0:xl.speed,"Over"))+"kts",1)]),e[142]||(e[142]=t.createElementVNode("div",null,"x",-1)),e[143]||(e[143]=t.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[t.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),t.createElementVNode("div",{class:"line"}),t.createElementVNode("div",null,"24 hours")],-1)),e[144]||(e[144]=t.createElementVNode("div",null,"(f)",-1))])]),e[152]||(e[152]=t.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-5d68a964><div class="flex-space" style="width:240px;" data-v-5d68a964><label data-v-5d68a964>Fuel Over-consumption</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(d)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(e)</div></div><div class="flex-space" style="width:200px;" data-v-5d68a964><label data-v-5d68a964>Fuel Saving</label><div data-v-5d68a964>=</div><div data-v-5d68a964>(f)</div><div data-v-5d68a964>-</div><div data-v-5d68a964>(d)</div></div></div>',1)),((zl=(pl=a.extend)==null?void 0:pl.cp)==null?void 0:zl.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",aD,[e[148]||(e[148]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Over-consumption in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",lD,[t.createElementVNode("div",oD,[e[146]||(e[146]=t.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),e[147]||(e[147]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((fl=(jl=l.report)==null?void 0:jl.weather)!=null&&fl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),t.createElementVNode("div",nD,[e[151]||(e[151]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Fuel Saving in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",iD,[t.createElementVNode("div",sD,[e[149]||(e[149]=t.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),e[150]||(e[150]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cl=(Sl=l.report)==null?void 0:Sl.weather)!=null&&Cl.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):t.createCommentVNode("",!0)]),e[236]||(e[236]=t.createElementVNode("div",{class:"formula-desc"},[t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Over-consumption"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"Fuel Saving"),t.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),t.createElementVNode("div",{class:"flex-end"},[t.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),t.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP Consumption")])],-1)),t.createElementVNode("div",dD,"Seg. "+t.toDisplayString(E+1)+" Fuel Oil",1),(bl=a==null?void 0:a.goodWx)!=null&&bl.distance?(t.openBlock(),t.createElementBlock("div",cD,[((hl=(Ol=a==null?void 0:a.goodWx)==null?void 0:Ol.inEca)==null?void 0:hl.distance)>0?(t.openBlock(),t.createElementBlock("div",rD,[e[158]||(e[158]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",ND,[t.createElementVNode("div",mD,[t.createElementVNode("div",null,t.toDisplayString((Ql=(Yl=a==null?void 0:a.goodWx)==null?void 0:Yl.inEca)==null?void 0:Ql.sumDgoCons),1)]),e[155]||(e[155]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",MD,[t.createElementVNode("div",null,t.toDisplayString((Rl=(wl=a==null?void 0:a.extend)==null?void 0:wl.cp)==null?void 0:Rl.dgo),1),e[153]||(e[153]=t.createElementVNode("div",{class:"line"},null,-1)),e[154]||(e[154]=t.createElementVNode("div",null,"24",-1))]),e[156]||(e[156]=t.createElementVNode("div",null,"*",-1)),t.createElementVNode("div",null,t.toDisplayString((Fl=(Bl=a==null?void 0:a.goodWx)==null?void 0:Bl.inEca)==null?void 0:Fl.time),1),e[157]||(e[157]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pl=(Gl=a==null?void 0:a.fuelConclusion)==null?void 0:Gl.fo)==null?void 0:Pl.dgoAsFoCons)+" (mt)",1)])])):t.createCommentVNode("",!0),t.createElementVNode("div",DD,[e[165]||(e[165]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",gD,[t.createElementVNode("div",ID,[t.createElementVNode("div",null,t.toDisplayString((Ll=(Wl=l.report)==null?void 0:Wl.weather)!=null&&Ll.noExtrapolation?(Zl=a==null?void 0:a.goodWx)==null?void 0:Zl.distance:(_l=a==null?void 0:a.allWx)==null?void 0:_l.distance),1),e[159]||(e[159]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jl=a==null?void 0:a.goodWx)==null?void 0:Jl.pfmSpd),1)]),e[162]||(e[162]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",ED,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((Hl=a==null?void 0:a.goodWx)==null?void 0:Hl.sumFoCons),1),((Kl=(Xl=a==null?void 0:a.goodWx)==null?void 0:Xl.inEca)==null?void 0:Kl.distance)>0?(t.openBlock(),t.createElementBlock("span",yD,[e[160]||(e[160]=t.createElementVNode("span",null," + ",-1)),t.createElementVNode("span",null,t.toDisplayString(($l=(ql=a==null?void 0:a.fuelConclusion)==null?void 0:ql.fo)==null?void 0:$l.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[161]||(e[161]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((ul=a==null?void 0:a.goodWx)==null?void 0:ul.time),1)]),e[163]||(e[163]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((to=(vl=a.fuelConclusion)==null?void 0:vl.fo)==null?void 0:to.entireCons)+" (mt)",1),e[164]||(e[164]=t.createElementVNode("div",null,"(d')",-1))])]),t.createElementVNode("div",AD,[e[172]||(e[172]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",TD,[t.createElementVNode("div",VD,[t.createElementVNode("div",null,t.toDisplayString((ao=(eo=l.report)==null?void 0:eo.weather)!=null&&ao.noExtrapolation?(lo=a==null?void 0:a.goodWx)==null?void 0:lo.distance:(oo=a==null?void 0:a.allWx)==null?void 0:oo.distance),1),e[166]||(e[166]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((no=a==null?void 0:a.timeConclusion)==null?void 0:no.minusAbtSpd),1)]),e[169]||(e[169]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",xD,[t.createElementVNode("div",null,t.toDisplayString((so=(io=a==null?void 0:a.fuelConclusion)==null?void 0:io.fo)==null?void 0:so.overTolerance),1),e[167]||(e[167]=t.createElementVNode("div",{class:"line"},null,-1)),e[168]||(e[168]=t.createElementVNode("div",null,"24",-1))]),e[170]||(e[170]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ro=(co=a.fuelConclusion)==null?void 0:co.fo)==null?void 0:ro.maxCons)+" (mt)",1),e[171]||(e[171]=t.createElementVNode("div",null,"(e')",-1))])]),t.createElementVNode("div",pD,[e[179]||(e[179]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",zD,[t.createElementVNode("div",jD,[t.createElementVNode("div",null,t.toDisplayString((mo=(No=l.report)==null?void 0:No.weather)!=null&&mo.noExtrapolation?(Mo=a==null?void 0:a.goodWx)==null?void 0:Mo.distance:(Do=a==null?void 0:a.allWx)==null?void 0:Do.distance),1),e[173]||(e[173]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((go=a==null?void 0:a.timeConclusion)==null?void 0:go.plusAbtSpd),1)]),e[176]||(e[176]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",kD,[t.createElementVNode("div",null,t.toDisplayString((Eo=(Io=a==null?void 0:a.fuelConclusion)==null?void 0:Io.fo)==null?void 0:Eo.underTolerance),1),e[174]||(e[174]=t.createElementVNode("div",{class:"line"},null,-1)),e[175]||(e[175]=t.createElementVNode("div",null,"24",-1))]),e[177]||(e[177]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ao=(yo=a.fuelConclusion)==null?void 0:yo.fo)==null?void 0:Ao.minCons)+" (mt)",1),e[178]||(e[178]=t.createElementVNode("div",null,"(f')",-1))])]),t.createElementVNode("div",UD,[((Vo=(To=a==null?void 0:a.fuelConclusion)==null?void 0:To.fo)==null?void 0:Vo.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",fD,[e[180]||(e[180]=t.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),e[181]||(e[181]=t.createElementVNode("div",null,"=",-1)),e[182]||(e[182]=t.createElementVNode("div",null,"(d') - (e')",-1)),e[183]||(e[183]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((po=(xo=a==null?void 0:a.fuelConclusion)==null?void 0:xo.fo)==null?void 0:po.entireCons),1),e[184]||(e[184]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((jo=(zo=a==null?void 0:a.fuelConclusion)==null?void 0:zo.fo)==null?void 0:jo.maxCons),1),e[185]||(e[185]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Uo=(ko=a==null?void 0:a.fuelConclusion)==null?void 0:ko.fo)==null?void 0:Uo.overCons),1)]),(So=(fo=a==null?void 0:a.goodWx)==null?void 0:fo.inEca)!=null&&So.distance?(t.openBlock(),t.createElementBlock("div",SD,[e[187]||(e[187]=t.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),e[188]||(e[188]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",CD,[t.createElementVNode("div",null,t.toDisplayString((bo=(Co=a==null?void 0:a.goodWx)==null?void 0:Co.inEca)==null?void 0:bo.distance)+" * "+t.toDisplayString((ho=(Oo=a==null?void 0:a.fuelConclusion)==null?void 0:Oo.fo)==null?void 0:ho.overCons),1),e[186]||(e[186]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Qo=(Yo=l.report)==null?void 0:Yo.weather)!=null&&Qo.noExtrapolation?(wo=a==null?void 0:a.goodWx)==null?void 0:wo.distance:(Ro=a==null?void 0:a.allWx)==null?void 0:Ro.distance),1)]),e[189]||(e[189]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Fo=(Bo=a==null?void 0:a.fuelConclusion)==null?void 0:Bo.fo)==null?void 0:Fo.foOverConsInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):((Po=(Go=a==null?void 0:a.fuelConclusion)==null?void 0:Go.fo)==null?void 0:Po.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",bD,[e[190]||(e[190]=t.createElementVNode("div",null,"Fuel Oil Saving",-1)),e[191]||(e[191]=t.createElementVNode("div",null,"=",-1)),e[192]||(e[192]=t.createElementVNode("div",null,"(f') - (d')",-1)),e[193]||(e[193]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Lo=(Wo=a==null?void 0:a.fuelConclusion)==null?void 0:Wo.fo)==null?void 0:Lo.minCons),1),e[194]||(e[194]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((_o=(Zo=a==null?void 0:a.fuelConclusion)==null?void 0:Zo.fo)==null?void 0:_o.entireCons),1),e[195]||(e[195]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Ho=(Jo=a==null?void 0:a.fuelConclusion)==null?void 0:Jo.fo)==null?void 0:Ho.saving)+" (mt)",1)]),(Ko=(Xo=a==null?void 0:a.goodWx)==null?void 0:Xo.inEca)!=null&&Ko.distance?(t.openBlock(),t.createElementBlock("div",OD,[e[197]||(e[197]=t.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),e[198]||(e[198]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",hD,[t.createElementVNode("div",null,t.toDisplayString(($o=(qo=l.report)==null?void 0:qo.weather)!=null&&$o.noExtrapolation?(vo=(uo=a==null?void 0:a.goodWx)==null?void 0:uo.inEca)==null?void 0:vo.distance:(en=(tn=a==null?void 0:a.allWx)==null?void 0:tn.inEca)==null?void 0:en.distance)+" * "+t.toDisplayString((ln=(an=a==null?void 0:a.fuelConclusion)==null?void 0:an.fo)==null?void 0:ln.saving),1),e[196]||(e[196]=t.createElementVNode("div",{class:"line",style:{"border-color":"var(--orm-black-9)"}},null,-1)),t.createElementVNode("div",null,t.toDisplayString((nn=(on=l.report)==null?void 0:on.weather)!=null&&nn.noExtrapolation?(sn=a==null?void 0:a.goodWx)==null?void 0:sn.distance:(dn=a==null?void 0:a.allWx)==null?void 0:dn.distance),1)]),e[199]||(e[199]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((rn=(cn=a==null?void 0:a.fuelConclusion)==null?void 0:cn.fo)==null?void 0:rn.foSavingInEca)+" (mt)",1)])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((mn=(Nn=a==null?void 0:a.fuelConclusion)==null?void 0:Nn.fo)==null?void 0:mn.conclusionStatus)==="Over"?"flex-center lost":((Dn=(Mn=a==null?void 0:a.fuelConclusion)==null?void 0:Mn.fo)==null?void 0:Dn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[200]||(e[200]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((In=(gn=a==null?void 0:a.fuelConclusion)==null?void 0:gn.fo)==null?void 0:In.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",YD,t.toDisplayString(n.noGoodWxDay),1)),((yn=(En=a==null?void 0:a.extend)==null?void 0:En.cp)==null?void 0:yn.dgo)>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createElementVNode("div",QD,[t.createElementVNode("div",wD,[e[201]||(e[201]=t.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),t.createElementVNode("div",RD,"Seg. "+t.toDisplayString(E+1)+" Diesel/Gas Oil",1)])]),(An=a==null?void 0:a.goodWx)!=null&&An.distance?(t.openBlock(),t.createElementBlock("div",BD,[t.createElementVNode("div",FD,[e[208]||(e[208]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",GD,[t.createElementVNode("div",PD,[t.createElementVNode("div",null,t.toDisplayString((Vn=(Tn=l.report)==null?void 0:Tn.weather)!=null&&Vn.noExtrapolation?(xn=a==null?void 0:a.goodWx)==null?void 0:xn.distance:(pn=a==null?void 0:a.allWx)==null?void 0:pn.distance),1),e[202]||(e[202]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((zn=a==null?void 0:a.goodWx)==null?void 0:zn.pfmSpd),1)]),e[205]||(e[205]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",WD,[t.createElementVNode("div",null,[t.createElementVNode("span",null,t.toDisplayString((jn=a==null?void 0:a.goodWx)==null?void 0:jn.sumDgoCons),1),((Un=(kn=a==null?void 0:a.goodWx)==null?void 0:kn.inEca)==null?void 0:Un.distance)>0?(t.openBlock(),t.createElementBlock("span",LD,[e[203]||(e[203]=t.createElementVNode("span",null," - ",-1)),t.createElementVNode("span",null,t.toDisplayString((Sn=(fn=a==null?void 0:a.fuelConclusion)==null?void 0:fn.fo)==null?void 0:Sn.dgoAsFoCons),1)])):t.createCommentVNode("",!0)]),e[204]||(e[204]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Cn=a==null?void 0:a.goodWx)==null?void 0:Cn.time),1)]),e[206]||(e[206]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((On=(bn=a.fuelConclusion)==null?void 0:bn.dgo)==null?void 0:On.entireCons)+" (mt)",1),e[207]||(e[207]=t.createElementVNode("div",null,"(d'')",-1))])]),t.createElementVNode("div",ZD,[e[215]||(e[215]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Max CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",_D,[t.createElementVNode("div",JD,[t.createElementVNode("div",null,t.toDisplayString((Yn=(hn=l.report)==null?void 0:hn.weather)!=null&&Yn.noExtrapolation?(Qn=a==null?void 0:a.goodWx)==null?void 0:Qn.distance:(wn=a==null?void 0:a.allWx)==null?void 0:wn.distance),1),e[209]||(e[209]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Rn=a==null?void 0:a.timeConclusion)==null?void 0:Rn.minusAbtSpd),1)]),e[212]||(e[212]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",HD,[t.createElementVNode("div",null,t.toDisplayString((Fn=(Bn=a==null?void 0:a.fuelConclusion)==null?void 0:Bn.dgo)==null?void 0:Fn.overTolerance),1),e[210]||(e[210]=t.createElementVNode("div",{class:"line"},null,-1)),e[211]||(e[211]=t.createElementVNode("div",null,"24",-1))]),e[213]||(e[213]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((Pn=(Gn=a.fuelConclusion)==null?void 0:Gn.dgo)==null?void 0:Pn.maxCons)+" (mt)",1),e[214]||(e[214]=t.createElementVNode("div",null,"(e'')",-1))])]),t.createElementVNode("div",XD,[e[222]||(e[222]=t.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[t.createElementVNode("label",null,"Min CP Consumption"),t.createElementVNode("label",null,"=")],-1)),t.createElementVNode("div",KD,[t.createElementVNode("div",qD,[t.createElementVNode("div",null,t.toDisplayString((Ln=(Wn=l.report)==null?void 0:Wn.weather)!=null&&Ln.noExtrapolation?(Zn=a==null?void 0:a.goodWx)==null?void 0:Zn.distance:(_n=a==null?void 0:a.allWx)==null?void 0:_n.distance),1),e[216]||(e[216]=t.createElementVNode("div",{class:"line"},null,-1)),t.createElementVNode("div",null,t.toDisplayString((Jn=a==null?void 0:a.timeConclusion)==null?void 0:Jn.plusAbtSpd),1)]),e[219]||(e[219]=t.createElementVNode("div",null,"x",-1)),t.createElementVNode("div",$D,[t.createElementVNode("div",null,t.toDisplayString((Xn=(Hn=a==null?void 0:a.fuelConclusion)==null?void 0:Hn.dgo)==null?void 0:Xn.underTolerance),1),e[217]||(e[217]=t.createElementVNode("div",{class:"line"},null,-1)),e[218]||(e[218]=t.createElementVNode("div",null,"24",-1))]),e[220]||(e[220]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((qn=(Kn=a.fuelConclusion)==null?void 0:Kn.dgo)==null?void 0:qn.minCons)+" (mt)",1),e[221]||(e[221]=t.createElementVNode("div",null,"(f'')",-1))])]),t.createElementVNode("div",uD,[((un=($n=a==null?void 0:a.fuelConclusion)==null?void 0:$n.dgo)==null?void 0:un.conclusionStatus)==="Over"?(t.openBlock(),t.createElementBlock("div",vD,[e[223]||(e[223]=t.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),e[224]||(e[224]=t.createElementVNode("div",null,"=",-1)),e[225]||(e[225]=t.createElementVNode("div",null,"(d'') - (e'')",-1)),e[226]||(e[226]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((ti=(vn=a==null?void 0:a.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ti.entireCons),1),e[227]||(e[227]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ai=(ei=a==null?void 0:a.fuelConclusion)==null?void 0:ei.dgo)==null?void 0:ai.maxCons),1),e[228]||(e[228]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((oi=(li=a==null?void 0:a.fuelConclusion)==null?void 0:li.dgo)==null?void 0:oi.overCons),1)])):((ii=(ni=a==null?void 0:a.fuelConclusion)==null?void 0:ni.dgo)==null?void 0:ii.conclusionStatus)==="Saving"?(t.openBlock(),t.createElementBlock("div",tg,[e[229]||(e[229]=t.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),e[230]||(e[230]=t.createElementVNode("div",null,"=",-1)),e[231]||(e[231]=t.createElementVNode("div",null,"(f'') - (d'')",-1)),e[232]||(e[232]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((di=(si=a==null?void 0:a.fuelConclusion)==null?void 0:si.dgo)==null?void 0:di.minCons),1),e[233]||(e[233]=t.createElementVNode("div",null,"-",-1)),t.createElementVNode("div",null,t.toDisplayString((ri=(ci=a==null?void 0:a.fuelConclusion)==null?void 0:ci.dgo)==null?void 0:ri.entireCons),1),e[234]||(e[234]=t.createElementVNode("div",null,"=",-1)),t.createElementVNode("div",null,t.toDisplayString((mi=(Ni=a==null?void 0:a.fuelConclusion)==null?void 0:Ni.dgo)==null?void 0:mi.saving)+" (mt)",1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(((Di=(Mi=a==null?void 0:a.fuelConclusion)==null?void 0:Mi.dgo)==null?void 0:Di.conclusionStatus)==="Over"?"flex-center lost":((Ii=(gi=a==null?void 0:a.fuelConclusion)==null?void 0:gi.dgo)==null?void 0:Ii.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[e[235]||(e[235]=t.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--orm-black-9)"}}," Conclusion: ",-1)),t.createElementVNode("div",null,t.toDisplayString(((yi=(Ei=a==null?void 0:a.fuelConclusion)==null?void 0:Ei.dgo)==null?void 0:yi.conclusion)||""),1)],2)])])):(t.openBlock(),t.createElementBlock("div",eg,t.toDisplayString(n.noGoodWxDay),1))],64)):t.createCommentVNode("",!0)])])}),128))])])}const lg=Ve(dN,[["render",ag],["__scopeId","data-v-5d68a964"]]),dk="",og={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP"){const e=[];return e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}else{const e=[];return e.push(o.noonLength?"no-border-bottom":"no-border"),e.push(o.excluded?"excluded":o.goodWx?"good-wx":""),e.join(" ")}}},computeWxColspan(){let o=12;return this.showCF||(o-=2),this.showAisDistance||(o-=2),this.showWave||(o-=1),this.showSwell||(o-=1),this.showSig||(o-=1),this.showWaterTemp||(o-=1),o},computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeLng(){return function(o){return q.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return q.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,e=2,l="0.0"){return o?q.LngLatHelper.roundPrecision(o,e):l}}},watch:{report:{handler(o,e){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,e,l,r,n,s,D,c,N,V,a,E;this.showCF=((e=(o=this.report)==null?void 0:o.weather)==null?void 0:e.showCF)??!1,this.showAisDistance=((r=(l=this.report)==null?void 0:l.weather)==null?void 0:r.showAisDistance)??!0,this.showSig=((s=(n=this.report)==null?void 0:n.weather)==null?void 0:s.showSig)??!0,this.showSwell=((c=(D=this.report)==null?void 0:D.weather)==null?void 0:c.showSwell)??!0,this.showWave=((V=(N=this.report)==null?void 0:N.weather)==null?void 0:V.showWave)??!0,this.showWaterTemp=((E=(a=this.report)==null?void 0:a.weather)==null?void 0:E.waterTempSwitch)||!1}}},ng={class:"report-inventory"},ig={class:"section summary-section"},sg={class:"summary-block"},dg={class:"orm-report-table inventory-table"},cg={class:"label",rowspan:"4"},rg={class:"section inventory-section"},Ng={class:"orm-report-table inventory-table detail"},mg=["colspan"],Mg={key:0,class:"label",colspan:"2"},Dg={key:0,class:"label",rowspan:"2"},gg={key:1,class:"label",rowspan:"2"},Ig={key:2,class:"label",rowspan:"2"},Eg={key:3,class:"label",colspan:"2"},yg={key:4,class:"label",rowspan:"2"},Ag={key:5,class:"label",colspan:"2"},Tg={key:6,class:"label",rowspan:"2"},Vg={key:7,class:"label",rowspan:"2"},xg={key:8,class:"label",rowspan:"2"},pg={key:0,class:"label"},zg={key:1,class:"label"},jg={key:2,class:"label"},kg={key:3,class:"label"},Ug={class:"summary-tbody"};function fg(o,e,l,r,n,s){var D;return t.openBlock(),t.createElementBlock("div",ng,[t.createElementVNode("div",ig,[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",sg,[t.createElementVNode("table",dg,[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,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z;return t.openBlock(),t.createElementBlock(t.Fragment,{key:N},[t.createElementVNode("tr",null,[t.createElementVNode("td",cg,t.toDisplayString(N+1),1),e[0]||(e[0]=t.createElementVNode("td",{class:"label"},"Entire Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((V=c==null?void 0:c.allWx)==null?void 0:V.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((a=c==null?void 0:c.allWx)==null?void 0:a.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((E=c==null?void 0:c.allWx)==null?void 0:E.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((k=c==null?void 0:c.allWx)==null?void 0:k.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((z=c==null?void 0:c.allWx)==null?void 0:z.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[1]||(e[1]=t.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((T=c==null?void 0:c.goodWx)==null?void 0:T.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((x=c==null?void 0:c.goodWx)==null?void 0:x.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((U=c==null?void 0:c.goodWx)==null?void 0:U.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((y=c==null?void 0:c.goodWx)==null?void 0:y.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((p=c==null?void 0:c.goodWx)==null?void 0:p.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[2]||(e[2]=t.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((j=c==null?void 0:c.badWx)==null?void 0:j.distance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((f=c==null?void 0:c.badWx)==null?void 0:f.time,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((g=c==null?void 0:c.badWx)==null?void 0:g.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((R=c==null?void 0:c.badWx)==null?void 0:R.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((B=c==null?void 0:c.badWx)==null?void 0:B.sumDgoCons,3,"0.000")),1)]),t.createElementVNode("tr",null,[e[3]||(e[3]=t.createElementVNode("td",{class:"label"},"Excluded Period",-1)),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((S=c==null?void 0:c.excluded)==null?void 0:S.sumDistance,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((w=c==null?void 0:c.excluded)==null?void 0:w.sumDuration,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((W=c==null?void 0:c.excluded)==null?void 0:W.avgSpd,2,"0.0")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((L=c==null?void 0:c.excluded)==null?void 0:L.sumFoCons,3,"0.000")),1),t.createElementVNode("td",null,t.toDisplayString(s.computePrecision((Z=c==null?void 0:c.excluded)==null?void 0:Z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),t.createElementVNode("div",rg,[e[45]||(e[45]=t.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dea0638a><div class="flex-start" data-v-dea0638a><div class="legend good-wx" data-v-dea0638a></div><div class="label flex-end" data-v-dea0638a>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend adverse-wx" data-v-dea0638a></div><div class="label" data-v-dea0638a>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dea0638a><div class="legend excluded" data-v-dea0638a></div><div class="label" data-v-dea0638a>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dea0638a><label data-v-dea0638a>B</label><div data-v-dea0638a>BOSP</div><label data-v-dea0638a>N</label><div data-v-dea0638a>NOON</div><label data-v-dea0638a>E</label><div data-v-dea0638a>EOSP</div><label data-v-dea0638a>*</label><div data-v-dea0638a>Ship Reported Position</div></div></div><div class="legends text-tips text-right" style="font-size:11px;padding-bottom:8px;" data-v-dea0638a> The 'ORM Analysis Weather' row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),t.createElementVNode("table",Ng,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[e[6]||(e[6]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),e[7]||(e[7]=t.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),e[8]||(e[8]=t.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),e[9]||(e[9]=t.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),t.createElementVNode("th",{class:"label",colspan:s.computeWxColspan},"ORM Weather Analysis",8,mg),l.showFactor?(t.openBlock(),t.createElementBlock("th",Mg,"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",Dg,[...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",gg,[...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",Ig,[...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",Eg,"Swell")):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("th",yg,[...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",Ag,"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",Tg,"cFactor")):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("th",Vg,"wxFactor")):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("th",xg,[...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",pg,"Dir")):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("th",zg,[...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",jg,"Dir")):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("th",kg,[...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",Ug,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.inventory,(c,N)=>{var V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K;return t.openBlock(),t.createElementBlock("tr",{key:N},[t.createElementVNode("td",{class:t.normalizeClass(c.segLength?"no-border-bottom":"no-border")},t.toDisplayString(c.segLength?c.seg:""),3),t.createElementVNode("td",{class:t.normalizeClass(["text-right",c.excluded?"excluded":c.goodWx?"good-wx":""])},t.toDisplayString(c.time),3),["B","E"].includes(c.abbrev)&&((V=c.noon)!=null&&V.port)?(t.openBlock(),t.createElementBlock("td",{key:0,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},t.toDisplayString((a=c.noon)==null?void 0:a.port),3)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lat.pretty),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c._lng.pretty),3)],64)),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.speed:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.fo:""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.cp.dgo:""),3),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:2,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.avgSpdCalc:""),3)):t.createCommentVNode("",!0),n.showAisDistance?(t.openBlock(),t.createElementBlock("td",{key:3,class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.distanceCalc:""),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((k=(E=c.meteo)==null?void 0:E.wind)==null?void 0:k.direction)??"-"),3),t.createElementVNode("td",{class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((T=(z=c.meteo)==null?void 0:z.wind)==null?void 0:T.scale)??"-"),3),n.showWave?(t.openBlock(),t.createElementBlock("td",{key:4,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((y=(U=(x=c.meteo)==null?void 0:x.wave)==null?void 0:U.wd)==null?void 0:y.height)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:5,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((f=(j=(p=c.meteo)==null?void 0:p.wave)==null?void 0:j.swell)==null?void 0:f.direction)??"-"),3)):t.createCommentVNode("",!0),n.showSwell?(t.openBlock(),t.createElementBlock("td",{key:6,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((B=(R=(g=c.meteo)==null?void 0:g.wave)==null?void 0:R.swell)==null?void 0:B.height)??"-"),3)):t.createCommentVNode("",!0),n.showSig?(t.openBlock(),t.createElementBlock("td",{key:7,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((W=(w=(S=c.meteo)==null?void 0:S.wave)==null?void 0:w.sig)==null?void 0:W.height)??"-"),3)):t.createCommentVNode("",!0),n.showCF?(t.openBlock(),t.createElementBlock("td",{key:8,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((Z=(L=c.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(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(c.type==="BOSP"?"-":((J=c.meteo)==null?void 0:J.cFactor)??"-"),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.dailyAvgCf:""),3),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:10,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((H=c.meteo)==null?void 0:H.cFactor)??"--"),3)):t.createCommentVNode("",!0),l.showFactor?(t.openBlock(),t.createElementBlock("td",{key:11,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(((X=c.meteo)==null?void 0:X.wxFactor)??"--"),3)):t.createCommentVNode("",!0),n.showWaterTemp?(t.openBlock(),t.createElementBlock("td",{key:12,class:t.normalizeClass(c.excluded?"excluded":c.goodWx?"good-wx":"")},t.toDisplayString(s.computePrecision((K=c.meteo)==null?void 0:K.sst,2,"--")),3)):t.createCommentVNode("",!0),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.avgSpd||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.timeSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.distanceSlr||"0.0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.rpm||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.slip||"0":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.foBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(["A"].includes(c.abbrev)?"":c.noon.dgoBrob||"0.00"),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.foCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.dgoCons||"0.00":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windDir||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.windBF||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.noon.seasHt||"--":""),3),t.createElementVNode("td",{class:t.normalizeClass(s.computeTDClass(c))},t.toDisplayString(!["A","B"].includes(c.abbrev)&&N?c.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])}const Sg=Ve(og,[["render",fg],["__scopeId","data-v-dea0638a"]]),ck="",Cg={name:"OrmVoyageChart",props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]}},data(){return{spdFoConsChart:void 0,spdDgoConsChart:void 0,wxChart:void 0,currChart:void 0}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":q.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+q.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,e){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=t.markRaw(ki.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=t.markRaw(ki.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=t.markRaw(ki.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var E,k,z,T,x,U;let o=[];const e=[],l=[],r={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let n=0,s=0;const D=this.inventory.filter(y=>y.noon)||[],c=[];this.inventory.forEach((y,p)=>{var j,f;p===0&&c.push(y.utc),y.type==="EOSP"&&((j=this.inventory[p+1])==null?void 0:j.type)==="BOSP"&&(c.push(y.utc),c.push((f=this.inventory[p+1])==null?void 0:f.utc)),p===this.inventory.length-1&&c.push(y.utc)}),c.forEach((y,p)=>{if(p%2===0){const j=pt(c[p+1]).diff(pt(c[p]),"minute",!0);for(let f=0;f<=j+1;f++)e.push(this.computeUTCTime(pt(c[p]).clone().utc().add(f,"m").format(),"MM-DD/HHmm[Z]"))}}),D.forEach((y,p)=>{var f,g,R,B,S,w,W,L,Z,J,H,X,K,$;const j=this.computeUTCTime(y.utc,"MM-DD/HHmm[Z]");if(y.noon&&!o.some(F=>F.slice(0,5)===y.utc.slice(5,10))&&o.push(j),p===D.length-1&&(o=o.filter(F=>F.slice(0,5)!==y.utc.slice(5,10)),o.push(j)),n=Math.ceil(((f=y.noon)==null?void 0:f.foCons)>n?(g=y.noon)==null?void 0:g.foCons:n),n=Math.ceil(((R=y.cp)==null?void 0:R.fo)>n?(B=y.cp)==null?void 0:B.fo:n),s=Math.ceil(((S=y.noon)==null?void 0:S.dgoCons)>s?(w=y.noon)==null?void 0:w.dgoCons:s),s=Math.ceil(((W=y.cp)==null?void 0:W.dgo)>s?(L=y.cp)==null?void 0:L.dgo:s),l.push([j,(Z=y.noon)==null?void 0:Z.avgSpd,(J=y.noon)==null?void 0:J.foCons,(H=y.noon)==null?void 0:H.dgoCons,y.avgSpdCalc,y.cp.speed,y.goodWx&&!y.excluded?100:0,y.cp.dgo,y.cp.fo,y.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((y,p)=>p===0||p===o.length-1||p%N===0);const V={animation:!1,title:{text:"Ship Speed and FO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0,top:"0"},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP FO Cons","FO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLine:{lineStyle:{color:"#EC407A"}},axisLabel:{fontSize:12}},{name:"FO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,offset:0,max:n+1,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#00ACC1"}},splitLine:{show:!1}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.fo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(k=(E=this.report)==null?void 0:E.weather)!=null&&k.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonFoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.spdFoConsChart)==null||z.setOption(V);const a={animation:!1,title:{text:"Ship Speed and DGO Consumption",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},top:"0",left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["CP SPD","SOG","CP DGO Cons","DGO Cons",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:50,containLabel:!1},xAxis:[{type:"category",data:e,boundaryGap:!0,axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}}],yAxis:[{name:"SOG (kts)",nameLocation:"middle",position:"left",nameGap:30,offset:0,max:20,min:0,alignTicks:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#EC407A"}}},{name:"DGO Cons (mt)",nameLocation:"middle",position:"right",nameGap:30,max:s+.2,min:0,alignTicks:!0,axisLabel:{fontSize:12},splitLine:{show:!1},axisLine:{lineStyle:{color:"#00ACC1"}}}],series:[{name:"CP SPD",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:l,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:r.dateTime,y:r.dgo},data:l,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:(x=(T=this.report)==null?void 0:T.weather)!=null&&x.believeRptDistance?r.noonAvgSpd:r.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:l,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:r.dateTime,y:r.noonDgoCons},data:l,z:5},{name:"Good Weather Days",type:"line",encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(U=this.spdDgoConsChart)==null||U.setOption(a)},renderWxCurrChart(){var z;let o=[];const e=[],l=[],r={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let n=4;const s=this.inventory||[],D=[];s.forEach((T,x)=>{var U,y;x===0&&D.push(T.utc),T.type==="EOSP"&&((U=s[x+1])==null?void 0:U.type)==="BOSP"&&(D.push(T.utc),D.push((y=s[x+1])==null?void 0:y.utc)),x===s.length-1&&D.push(T.utc)}),D.forEach((T,x)=>{if(x%2===0){const U=pt(D[x+1]).diff(pt(D[x]),"minute",!0);for(let y=0;y<=U+1;y++)e.push(this.computeUTCTime(pt(D[x]).clone().utc().add(y,"m").format(),"MM-DD/HHmm[Z]"))}}),s.forEach((T,x)=>{var y,p,j,f,g,R,B,S,w,W,L,Z,J,H,X,K,$,F,et,at,Mt,Dt,gt,It,M,lt,ot,A,u,v;const U=this.computeUTCTime(T.utc,"MM-DD/HHmm[Z]");if(T.noon&&!o.some(G=>G.slice(0,5)===T.utc.slice(5,10))&&o.push(U),x===s.length-1&&(o=o.filter(G=>G.slice(0,5)!==T.utc.slice(5,10)),o.push(U)),n=Math.ceil(((j=(p=(y=T.meteo)==null?void 0:y.wave)==null?void 0:p.sig)==null?void 0:j.height)>n?(R=(g=(f=T.meteo)==null?void 0:f.wave)==null?void 0:g.sig)==null?void 0:R.height:n),l.push([U,((B=T.noon)==null?void 0:B.windBF)||((w=(S=T.meteo)==null?void 0:S.wind)==null?void 0:w.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[r.anlyCurFct]),T.goodWx&&!T.excluded?20:0,T.excluded?20:0]),x<s.length-1){const G=s[x+1];l.push([U,((et=T.noon)==null?void 0:et.windBF)||((Mt=(at=T.meteo)==null?void 0:at.wind)==null?void 0:Mt.scale),(gt=(Dt=G.meteo)==null?void 0:Dt.wind)==null?void 0:gt.scale,(M=(It=G.meteo)==null?void 0:It.wind)==null?void 0:M.direction,(lt=G.noon)==null?void 0:lt.seasHt,(u=(A=(ot=T.meteo)==null?void 0:ot.wave)==null?void 0:A.sig)==null?void 0:u.height,G.dailyAvgCf??((v=l[l.length-1])==null?void 0:v[r.anlyCurFct]),G.goodWx&&!G.excluded?20:0,G.excluded?20:0])}});const c=Math.ceil(o.length/10);o=o.filter((T,x)=>x===0||x===o.length-1||x%c===0);let N=-2.5,V=2.5,a=1,E=5;N<-2.5||V>2.5?(N=Math.floor(this.findMinValue(l,6)/5)*5,V=Math.ceil(this.findMaxValue(l,6)/5)*5,a=Math.ceil(Math.max([Math.abs(N),Math.abs(V)])/5),E=Math.ceil(Math.abs(N)/a)+Math.ceil(Math.abs(V)/a)):(a=.5,N=Math.floor(this.findMinValue(l,6)/.5)*a,V=2.5,E=Math.abs(N)/a+5);const k={animation:!1,title:{text:"Weather and Current Factor",top:"0",textStyle:{color:"#000000B3",fontWeight:"500",fontSize:14},left:0},tooltip:{trigger:"axis"},legend:{show:!0,top:"25px",right:0,itemWidth:30,textStyle:{fontSize:12},data:["Current Factor","Wind BF","Sig.wave Height",{name:"Good Weather Days",icon:"rect",itemStyle:{color:"rgba(221, 243, 227, 1)"}},{name:"Excluded Days",icon:"rect",itemStyle:{color:"rgba(220, 220, 220, 1)"}}]},grid:{left:80,right:40,bottom:30,containLabel:!1},xAxis:{type:"category",data:e,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:N,max:V,interval:a,splitNumber:E,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(E-5)*Math.ceil(this.findMaxValue(l,1)/5),max:Math.ceil(this.findMaxValue(l,1)/5)*5,interval:Math.ceil(this.findMaxValue(l,1)/5),splitNumber:E,show:!0,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{fontSize:12,formatter:(T,x)=>{if(T>=0)return T}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(E-5)*Math.ceil(this.findMaxValue(l,5)/5),max:Math.ceil(this.findMaxValue(l,5)/5)*5,interval:Math.ceil(this.findMaxValue(l,5)/5),splitNumber:E,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(T,x)=>{if(T>=0)return T},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:l,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:r.dateTime,y:r.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:l,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:r.dateTime,y:r.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:l,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:l,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:r.dateTime,y:r.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:l,z:1}]};(z=this.currChart)==null||z.setOption(k)},findMaxValue(o,e){let l=-1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];typeof s=="number"&&!isNaN(s)&&Number(s)>l&&(l=s)}}return l},findMinValue(o,e){let l=1/0;for(let r=0;r<o.length;r++){const n=o[r];if(n.length>=e+1){const s=n[e];s<l&&(l=s)}}return l}}},bg={class:"report-summary"},Og={class:"section chart-section"},hg={class:"chart-block"},Yg={ref:"spdFoConsChart",class:"chart"},Qg={ref:"spdDgoConsChart",class:"chart"},wg={ref:"currChart",class:"chart"},Rg={class:"section map-section"},Bg={class:"map-block"},Fg={class:"flex-space"},Gg={class:"voyage-block bg-blue-light"},Pg={class:"flex-space label-block",style:{width:"100%"}},Wg={style:{"text-transform":"uppercase"}},Lg={class:"flex-space label-block",style:{width:"100%"}},Zg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},_g={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},Jg={class:"flex-space label-block",style:{width:"100%"}},Hg={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},Xg={class:"flex-space label-block",style:{width:"100%"}},Kg={class:"flex-end",style:{flex:"1"}},qg={class:"flex-end",style:{width:"160px"}},$g={class:"flex-space label-block",style:{width:"100%"}},ug={class:"flex-end",style:{flex:"1"}},vg={class:"flex-end",style:{width:"160px"}},tI={class:"flex-space label-block",style:{width:"100%"}},eI={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},aI=["src"];function lI(o,e,l,r,n,s){var D,c,N,V,a,E,k,z,T,x,U,y,p,j,f,g,R,B,S,w;return t.openBlock(),t.createElementBlock("div",bg,[t.createElementVNode("div",Og,[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",hg,[t.createElementVNode("div",Yg,null,512),t.createElementVNode("div",Qg,null,512),t.createElementVNode("div",wg,null,512)])]),t.createElementVNode("div",Rg,[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",Bg,[t.createElementVNode("div",Fg,[t.createElementVNode("div",Gg,[t.createElementVNode("div",Pg,[e[1]||(e[1]=t.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),t.createElementVNode("span",Wg,t.toDisplayString(l.report.preparedFor),1)]),t.createElementVNode("div",Lg,[e[2]||(e[2]=t.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),t.createElementVNode("span",Zg,t.toDisplayString((c=(D=l.report)==null?void 0:D.vessel)==null?void 0:c.name),1),t.createElementVNode("span",_g,"("+t.toDisplayString((V=(N=l.report)==null?void 0:N.vessel)==null?void 0:V.type)+")",1)]),t.createElementVNode("div",Jg,[e[3]||(e[3]=t.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),t.createElementVNode("span",Hg,t.toDisplayString((E=(a=l.report)==null?void 0:a.voyage)==null?void 0:E.number),1)]),t.createElementVNode("div",Xg,[e[4]||(e[4]=t.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),t.createElementVNode("span",Kg,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",qg,t.toDisplayString(s.computeUTCTime((U=l.report.departure)==null?void 0:U.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",$g,[e[5]||(e[5]=t.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),t.createElementVNode("span",ug,t.toDisplayString(((p=(y=l.report)==null?void 0:y.arrival)==null?void 0:p.portName)||((f=(j=l.report)==null?void 0:j.arrival)==null?void 0:f.name)),1),t.createElementVNode("span",vg,t.toDisplayString(s.computeUTCTime((R=(g=l.report)==null?void 0:g.arrival)==null?void 0:R.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),t.createElementVNode("div",tI,[e[6]||(e[6]=t.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),t.createElementVNode("span",eI,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:(w=l.report)==null?void 0:w.chartUrl,alt:""},null,8,aI)])]),e[9]||(e[9]=t.createStaticVNode('<div class="section method-section" data-v-34b7edf0><div class="header-block" data-v-34b7edf0><div class="bg-block" data-v-34b7edf0><i class="iconfont icon-baobiao" data-v-34b7edf0></i><div class="block-title" data-v-34b7edf0>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>1. Good Weather Method</div><div class="method-body" data-v-34b7edf0> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd's Rep 166 and The Gas Enterprise [1993] 2 Lloyd's Rep. 352. <br data-v-34b7edf0> The vessel's performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-34b7edf0> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a "good weather day" or "adverse weather day" according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-34b7edf0> Speed and Consumption Calculation applies allowed time and allowed consumption calculated based on cp speed and consumption in good weather conditions. Complying with maritime arbitration standards, time loss and over/under-consumption is not calculated when there are no good weather days. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-34b7edf0> To complete the Good Weather Analysis method requests daily noon positions (including time, distance, weather, seas, bunker consumption, etc.) from the Master, which are to be inspected in evaluation reports. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>4. “About”</div><div class="method-body" data-v-34b7edf0> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-34b7edf0> As per the High Court decision on The Gaz Energy (2012) 852 LMLN 2 a plus 5% tolerance in over-consumption calculation and a minus 5% tolerance in under-consumption are employed respectively when an “about” is included with the consumption warranty, unless otherwise stipulated. </div></div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-34b7edf0> The following methodology will be applied to analyze bunker consumption when the bunker type is switched over, such as in ECA/SECA zone. <br data-v-34b7edf0> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-34b7edf0> 5-2 Considering DO/GO consumption in the switch over period the amount of DO/GO consumed will initially be compared to the DO/GO warranted figure; the remaining DO/GO consumed in the switch over period will then be compared to the warranted IFO figure. In cases of partial steaming Days, the DO/GO consumed will be converted basis a calculation for hourly consumption. </div><div class="method-block" data-v-34b7edf0><div class="method-title" data-v-34b7edf0>6. Further reference materials</div><div class="method-body" data-v-34b7edf0>Please send mail to <a href="mailto:op@ormwx.com" data-v-34b7edf0>op@ormwx.com</a>.</div></div></div></div>',1))])}const oI=Ve(Cg,[["render",lI],["__scopeId","data-v-34b7edf0"]]),rk="",Nk="",nI={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,e="MMM-DD/HHmm[Z]"){return`${pt(o).utc().format(e)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,e){o.length>0&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){document.getElementById("col1").innerHTML=null,document.getElementById("col2").innerHTML=null;const o=this.voyageEmails.sort((e,l)=>e.date<l.date);o==null||o.forEach((e,l)=>{var N,V;let r="<div>";e.to.includes("op@ormwx.com")||e.source==="VRT"?(((V=(N=e.body)==null?void 0:N.replace(/^"|"$/g,""))==null?void 0:V.split("\\n")).forEach(E=>{const k=`<p>${E}</p>`;r=r+k}),r=r+"</div>"):r=e.body;const n=document.getElementById("col1"),s=document.getElementById("col2"),D=(n==null?void 0:n.offsetHeight)||0,c=(s==null?void 0:s.offsetHeight)||0;if(D<=c){let E=`<div class="${e.to.includes("op@ormwx.com")||e.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
|
|
2
2
|
<div class="vrpt-date">Date: ${e.date}</div>
|
|
3
3
|
<div class="vrpt-from">From: ${e.from}</div>
|
|
4
4
|
<div class="vrpt-to">To: ${e.to}</div>
|