@idmui/extend 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -685,7 +685,7 @@ function pr(s, o, d, v, u, a) {
685
685
  }, null, 8, Bn)
686
686
  ]),
687
687
  l("div", Nn, [
688
- o[17] || (o[17] = dt('<div class="legend" data-v-617ed823><span class="dangerous" data-v-617ed823></span><span data-v-617ed823>Danger</span></div><div class="legend" data-v-617ed823><span class="severe" data-v-617ed823></span><span data-v-617ed823>Severe</span></div><div class="legend" data-v-617ed823><span class="heavy" data-v-617ed823></span><span data-v-617ed823>Heavy</span></div>', 3)),
688
+ o[17] || (o[17] = dt('<div class="legend" data-v-031623d6><span class="dangerous" data-v-031623d6></span><span data-v-031623d6>Danger</span></div><div class="legend" data-v-031623d6><span class="severe" data-v-031623d6></span><span data-v-031623d6>Severe</span></div><div class="legend" data-v-031623d6><span class="heavy" data-v-031623d6></span><span data-v-031623d6>Heavy</span></div>', 3)),
689
689
  l("div", Un, [
690
690
  o[14] || (o[14] = l("b", { class: "route1" }, null, -1)),
691
691
  l("span", {
@@ -908,7 +908,7 @@ function pr(s, o, d, v, u, a) {
908
908
  }, null, 40, ke))
909
909
  ]),
910
910
  l("div", We, [
911
- o[49] || (o[49] = dt('<div class="major-header bg-blue-light-2" data-v-617ed823><div class="cell-item flex" style="flex:2.5;" data-v-617ed823>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-617ed823>Time</div><div class="cell-item flex" data-v-617ed823>Nav</div><div class="cell-item flex" data-v-617ed823>Dist <span class="text-units" data-v-617ed823>(nm)</span></div><div class="cell-item flex" data-v-617ed823>SOG <span class="text-units" data-v-617ed823>(kts)</span></div><div class="cell-item flex" data-v-617ed823>COG <span class="text-units" data-v-617ed823>(°)</span></div><div class="cell-item flex" data-v-617ed823>Memo</div></div>', 1)),
911
+ o[49] || (o[49] = dt('<div class="major-header bg-blue-light-2" data-v-031623d6><div class="cell-item flex" style="flex:2.5;" data-v-031623d6>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-031623d6>Time</div><div class="cell-item flex" data-v-031623d6>Nav</div><div class="cell-item flex" data-v-031623d6>Dist <span class="text-units" data-v-031623d6>(nm)</span></div><div class="cell-item flex" data-v-031623d6>SOG <span class="text-units" data-v-031623d6>(kts)</span></div><div class="cell-item flex" data-v-031623d6>COG <span class="text-units" data-v-031623d6>(°)</span></div><div class="cell-item flex" data-v-031623d6>Memo</div></div>', 1)),
912
912
  l("div", we, [
913
913
  (Ct = (ht = d.plan) == null ? void 0 : ht.speeds) != null && Ct.length ? (e(!0), r(S, { key: 0 }, m(a.computeMajorPoints((wt = (Wt = (kt = (St = d.plan) == null ? void 0 : St.speeds) == null ? void 0 : kt[u.speedIndex]) == null ? void 0 : Wt.speed) == null ? void 0 : wt.argv, (Et = (Ot = (At = (Tt = (Dt = d.plan) == null ? void 0 : Dt.speeds) == null ? void 0 : Tt[u.speedIndex]) == null ? void 0 : At.speed) == null ? void 0 : Ot.sample) == null ? void 0 : Et.wps), (c, G) => (e(), r("div", {
914
914
  key: G,
@@ -1106,7 +1106,7 @@ function pr(s, o, d, v, u, a) {
1106
1106
  ], 64))
1107
1107
  ]);
1108
1108
  }
1109
- const fr = /* @__PURE__ */ nt(fn, [["render", pr], ["__scopeId", "data-v-617ed823"]]), Jp = {
1109
+ const fr = /* @__PURE__ */ nt(fn, [["render", pr], ["__scopeId", "data-v-031623d6"]]), Jp = {
1110
1110
  install(s) {
1111
1111
  s.component("PlanReport", fr);
1112
1112
  }
@@ -1,4 +1,4 @@
1
- (function(G,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo"],e):(G=typeof globalThis<"u"?globalThis:G||self,e(G["idmui-extend"]={},G.Vue,G["@wangeditor/editor-for-vue"],G["@idmui/basic"],G.moment,G.echarts,G["@idm-plugin/geo"]))})(this,function(G,e,to,Ql,W,Jd,H){"use strict";function Qd(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}return t.default=o,Object.freeze(t)}const Xl=Qd(Jd),Am="",Jt=(o,t)=>{const a=o.__vccOpts||o;for(const[s,r]of t)a[s]=r;return a},Xd={name:"IdmEditor",components:{Editor:to.Editor,Toolbar:to.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 t,a;o?(t=this.editor)==null||t.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var t;this.editorRef=e.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(t=this.editor)==null||t.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()}}},$d={class:"editor-box"};function vd(o,t,a,s,r,n){const E=e.resolveComponent("Toolbar"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",$d,[e.withDirectives(e.createVNode(E,{editor:r.editor,"default-config":r.toolbarConfig,mode:r.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!a.disabled]]),e.createVNode(d,{modelValue:r.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=c=>r.valueHtml=c),"default-config":r.editorConfig,mode:r.mode,class:"editor",style:e.normalizeStyle({height:a.height}),onOnCreated:n.handleCreated,onOnChange:n.handleChange,onOnBlur:n.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const $l=Jt(Xd,[["render",vd],["__scopeId","data-v-9854b172"]]),er={install(o){o.component("IdmEditor",$l)}},Om="",tr={name:"PlanReport",components:{Editor:$l,IdmBrand:Ql.IdmBrand,IdmLoading:Ql.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,t;return this.print?!1:(t=(o=this.plan)==null?void 0:o.voyage)==null?void 0:t.showCost},computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeLTime(){return function(o,t,a,s){let r=0;return a&&t&&(r=H.LngLatHelper.guessTimeZoneOffset(t,a)),`${W(o).utcOffset(s??r).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,t){var a,s,r,n,E;if(t===0)return"-";{const d=W((r=(s=(a=o==null?void 0:o.speeds)==null?void 0:a[t])==null?void 0:s.speed)==null?void 0:r.eta).diff(W((E=(n=o==null?void 0:o.speeds)==null?void 0:n[0])==null?void 0:E.speed.eta),"h",!0);return Math.round(d*100)/100}}},computeCostDiff(){return function(o,t){var a,s,r,n,E,d,c;if(t===0)return"-";{const f=Number((n=(r=(s=(a=o==null?void 0:o.speeds)==null?void 0:a[t])==null?void 0:s.speed)==null?void 0:r.cost)==null?void 0:n.total)-Number((c=(d=(E=o==null?void 0:o.speeds)==null?void 0:E[0])==null?void 0:d.speed)==null?void 0:c.cost.total);return`${(Math.round(f/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const a=Number("1".padEnd(t+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,t){const a=[];for(let s=0;s<t.length;s++){const r=t[s],n=t[s-1];n&&(r.avgBearing=n.bearing),a.push(r),r.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:r.etd,eta:r.etd,isResume:!0,memo:`Stoppage: ${r.suspend}hrs`})}return a}},computeDegree(){return function(o,t,a){t=t%360;for(let s=0;s<17;s++)if(s*22.5+t+11.25>=360){let r=(16-s)*22.5;a||(r=r+180);let n="";return o==="wind"?n="var(--orm-wind)":o==="wave"?n="var(--orm-wave)":o==="swell"?n="var(--orm-swell)":o==="current"&&(n="var(--orm-current)"),`transform:rotate(${r}deg);margin-left:3px;color: ${n}`}}},computeDay(){return function(o,t=0){var n,E,d,c;const a=(c=(d=(E=(n=o==null?void 0:o.speeds)==null?void 0:n[t])==null?void 0:E.speed)==null?void 0:d.sample)==null?void 0:c.hours,s=a==null?void 0:a[0],r=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(W(r==null?void 0:r.eta).diff(W(s==null?void 0:s.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,s;let t=0;return(s=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||s.forEach(r=>{t+=r.suspend||0}),t?Math.round(t*100)/100:"-"}},computeModel(){return function(o){const t=o==null?void 0:o.source;return["ec","cmems"].includes(t==null?void 0:t.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${t}`}},computeCog(){return function(o){return isNaN(o)?"-":H.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,t=4)=>H.LngLatHelper.lat2pretty(o,t).pretty},computeLng(){return(o,t=4)=>H.LngLatHelper.lng2pretty(o,t).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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{plan:{handler(){var o,t;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((t=this.plan)==null?void 0:t.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=Xl.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var n,E,d,c,f,y,N;const o=[],t=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let s=4;(y=(f=(c=(d=(E=(n=this.plan)==null?void 0:n.speeds)==null?void 0:E[this.speedIndex])==null?void 0:d.speed)==null?void 0:c.sample)==null?void 0:f.hours)==null||y.forEach(B=>{var m,V,h,p,x,C,D,w,A,O;const k=B.meteo;if(k){const g=W(k.utc).utc().format("MMM-DD/HHmm[Z]");o.push(g),s=Math.ceil(((V=(m=k.wave)==null?void 0:m.sig)==null?void 0:V.height)>s?(p=(h=k.wave)==null?void 0:h.sig)==null?void 0:p.height:s),t.push([g,(x=k.wind)==null?void 0:x.kts,(D=(C=k.wave)==null?void 0:C.sig)==null?void 0:D.height,(w=k.wind)==null?void 0:w.direction,(A=k.wind)==null?void 0:A.degree,(O=k.wind)==null?void 0:O.scale,B.cFactor,B.wFactor,B.speed])}});const r={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}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,minInterval:5,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,max:s,min:0,minInterval:1,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,minInterval:.5,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:t,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(1, 189, 211, 1)"},{offset:.5,color:"rgba(1, 189, 211, 0.3)"},{offset:1,color:"rgba(1, 189, 211, 0)"}]}},lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:t,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:t,z:4}]};(N=this.echart)==null||N.setOption(r)}}},lr={class:"orm-plan-report"},or={key:0,class:"loading-block"},ar={class:"info-block"},nr={class:"col"},dr={class:"label-block"},rr={class:"text"},ir={class:"label-block"},sr={class:"text"},cr={class:"label-block"},pr={class:"text"},Er={class:"col"},mr={class:"label-block"},yr={key:0},Nr={key:1},Vr={style:{"margin-left":"16px"}},fr={class:"label-block"},xr={key:0},br={key:1},kr={style:{"margin-left":"16px"}},Sr={class:"label-block"},hr={class:"text"},Cr={class:"section chart-section"},Dr=["src"],Br={class:"legends text-tips"},Tr={class:"legend"},Wr={key:0,class:"legend"},wr={key:1,class:"legend"},Ar={key:1,class:"empty"},Or={class:"section comparison-section"},gr={key:0,style:{"font-size":"12px"}},Fr={key:0},_r=["rowspan"],Pr={key:0},Lr={key:1},Mr={rowspan:"2"},Gr={rowspan:"2"},Hr={key:0},zr={key:1},ur={rowspan:"1"},Ir={key:0},Ur={rowspan:"2"},Rr={rowspan:"2"},jr={rowspan:"2"},Yr={key:0},Zr={key:0},qr=["rowspan"],Kr={key:0},Jr={rowspan:"1"},Qr={key:0},Xr={key:0},$r={key:1},vr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},ei={key:0},ti={class:"section waypoint-section"},li={class:"header-block"},oi={class:"bg-block"},ai={class:"title"},ni={key:0,class:"flex-end",style:{flex:"1"}},di=["onClick"],ri={class:"advisory bg-blue-light-2"},ii=["innerHTML"],si={class:"major-waypoint"},ci={class:"major-body"},pi={class:"cell-item flex",style:{flex:"2.5"}},Ei={key:0,class:"flex-center"},mi={key:1,class:"flex-center"},yi={key:0,style:{"margin-left":"3px"}},Ni={class:"cell-item flex",style:{flex:"1.5"}},Vi={key:0,style:{"margin-left":"4px","font-weight":"600"}},fi={key:0,class:"cell-item flex offset"},xi={key:1,class:"cell-item flex nbsp"},bi={key:2,class:"cell-item flex offset"},ki={key:3,class:"cell-item flex nbsp"},Si={key:4,class:"cell-item flex offset"},hi={key:5,class:"cell-item flex nbsp"},Ci={key:6,class:"cell-item flex offset"},Di={key:7,class:"cell-item flex nbsp"},Bi={key:8,class:"cell-item flex offset"},Ti={key:9,class:"cell-item flex nbsp"},Wi={class:"section forecast-section"},wi={style:{"page-break-inside":"avoid"}},Ai={class:"header-block"},Oi={class:"bg-block"},gi={class:"title"},Fi={key:0,class:"flex-end",style:{flex:"1"}},_i=["onClick"],Pi={class:"echart-block"},Li={ref:"echart",class:"echart"},Mi={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Gi={style:{"font-size":"12px"}},Hi=["colspan"],zi={key:0},ui={class:"flex-center"},Ii={class:"degree-box"},Ui={key:0},Ri={key:2},ji={key:0},Yi={class:"degree-box"},Zi={key:0},qi={key:2},Ki={class:"degree-box"},Ji={key:0},Qi={key:2},Xi={class:"degree-box"},$i={key:0},vi={key:2};function es(o,t,a,s,r,n){var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z,l,L,q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe,b,Qt,Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je,Xt,$t,vt,el,tl,ll,ol,al,nl,dl,rl,il,sl,cl,pl,El,ml,yl,Nl,Vl,fl,xl,bl,kl,Sl,hl,Cl,Dl,Bl,Tl,Wl,wl,Al,Ol,gl,Fl,_l,Pl,Ll,Ml,Gl,Hl,zl;const E=e.resolveComponent("IdmBrand"),d=e.resolveComponent("IdmLoading"),c=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",lr,[e.createVNode(E,{name:"Voyage Planning",issued:(f=a.plan)==null?void 0:f.updatedAt},null,8,["issued"]),r.loading?(e.openBlock(),e.createElementBlock("div",or,[e.createVNode(d,{loading:r.loading,onTimeout:t[0]||(t[0]=i=>r.loading=!1)},null,8,["loading"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ar,[e.createElementVNode("div",nr,[e.createElementVNode("div",dr,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",rr,e.toDisplayString((B=(N=(y=a.plan)==null?void 0:y.voyage)==null?void 0:N.company)==null?void 0:B.name),1)]),e.createElementVNode("div",ir,[t[9]||(t[9]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",sr,e.toDisplayString((V=(m=(k=a.plan)==null?void 0:k.voyage)==null?void 0:m.vessel)==null?void 0:V.name)+" ("+e.toDisplayString((C=(x=(p=(h=a.plan)==null?void 0:h.voyage)==null?void 0:p.vessel)==null?void 0:x.vesselType)==null?void 0:C.name)+")",1)]),e.createElementVNode("div",cr,[t[10]||(t[10]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",pr,e.toDisplayString(((w=(D=a.plan)==null?void 0:D.voyage)==null?void 0:w.voyNum)||((O=(A=a.plan)==null?void 0:A.voyage)==null?void 0:O.number)),1)])]),e.createElementVNode("div",Er,[e.createElementVNode("div",mr,[t[11]||(t[11]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(_=(F=(g=a.plan)==null?void 0:g.leg)==null?void 0:F.departure)!=null&&_.name?(e.openBlock(),e.createElementBlock("span",yr,e.toDisplayString((u=(z=(P=a.plan)==null?void 0:P.leg)==null?void 0:z.departure)==null?void 0:u.name),1)):(e.openBlock(),e.createElementBlock("span",Nr,e.toDisplayString(n.computePosition((U=(I=a.plan)==null?void 0:I.leg)==null?void 0:U.departure)),1)),e.createElementVNode("span",Vr,e.toDisplayString(n.computeUTCTime(((l=(Z=(R=a.plan)==null?void 0:R.leg)==null?void 0:Z.departure)==null?void 0:l.atd)||((K=(q=(L=a.plan)==null?void 0:L.leg)==null?void 0:q.departure)==null?void 0:K.etd)||(($=(X=(Q=(J=a.plan)==null?void 0:J.speeds)==null?void 0:Q[r.speedIndex])==null?void 0:X.speed)==null?void 0:$.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),e.createElementVNode("div",fr,[t[12]||(t[12]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(te=(ee=(v=a.plan)==null?void 0:v.leg)==null?void 0:ee.destination)!=null&&te.name?(e.openBlock(),e.createElementBlock("span",xr,e.toDisplayString((M=(oe=(le=a.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:M.name),1)):(e.openBlock(),e.createElementBlock("span",br,e.toDisplayString(n.computePosition((re=(de=a.plan)==null?void 0:de.leg)==null?void 0:re.destination)),1)),e.createElementVNode("span",kr,e.toDisplayString(n.computeUTCTime(((pe=(ce=(se=(ie=a.plan)==null?void 0:ie.speeds)==null?void 0:se[r.speedIndex])==null?void 0:ce.speed)==null?void 0:pe.ata)||((Ne=(ye=(me=(Ee=a.plan)==null?void 0:Ee.speeds)==null?void 0:me[r.speedIndex])==null?void 0:ye.speed)==null?void 0:Ne.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),e.createElementVNode("div",Sr,[t[13]||(t[13]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",hr,e.toDisplayString((fe=(Ve=a.plan)==null?void 0:Ve.voyage)==null?void 0:fe.loadCondition),1)])])]),e.createElementVNode("div",Cr,[t[20]||(t[20]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(xe=a.plan)!=null&&xe.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.createElementVNode("img",{src:a.plan.chartUrl},null,8,Dr)]),e.createElementVNode("div",Br,[t[17]||(t[17]=e.createStaticVNode('<div class="legend" data-v-617ed823><span class="dangerous" data-v-617ed823></span><span data-v-617ed823>Danger</span></div><div class="legend" data-v-617ed823><span class="severe" data-v-617ed823></span><span data-v-617ed823>Severe</span></div><div class="legend" data-v-617ed823><span class="heavy" data-v-617ed823></span><span data-v-617ed823>Heavy</span></div>',3)),e.createElementVNode("div",Tr,[t[14]||(t[14]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=i=>{r.speedIndex=0,n.renderEchart()})},e.toDisplayString((Ce=(he=(Se=(ke=(be=a.plan)==null?void 0:be.speeds)==null?void 0:ke[0])==null?void 0:Se.speed)==null?void 0:he.lane)==null?void 0:Ce.name),1)]),((Be=(De=a.plan)==null?void 0:De.speeds)==null?void 0:Be.length)>1?(e.openBlock(),e.createElementBlock("div",Wr,[t[15]||(t[15]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=i=>{r.speedIndex=1,n.renderEchart()})},e.toDisplayString((Oe=(Ae=(we=(We=(Te=a.plan)==null?void 0:Te.speeds)==null?void 0:We[1])==null?void 0:we.speed)==null?void 0:Ae.lane)==null?void 0:Oe.name),1)])):e.createCommentVNode("",!0),((Fe=(ge=a.plan)==null?void 0:ge.speeds)==null?void 0:Fe.length)>2?(e.openBlock(),e.createElementBlock("div",wr,[t[16]||(t[16]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=i=>{r.speedIndex=2,n.renderEchart()})},e.toDisplayString((Le=(Qt=(b=(Pe=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Pe[2])==null?void 0:b.speed)==null?void 0:Qt.lane)==null?void 0:Le.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",Ar,[e.createElementVNode("span",null,[t[18]||(t[18]=e.createTextVNode("Weather chart in cooking ",-1)),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...i)=>n.handleRefresh&&n.handleRefresh(...i))},"Refresh"),t[19]||(t[19]=e.createTextVNode(" later please",-1))])]))]),e.createElementVNode("div",Or,[(Ge=(Me=a.plan)==null?void 0:Me.speeds)!=null&&Ge.length?(e.openBlock(),e.createElementBlock("table",gr,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[23]||(t[23]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[24]||(t[24]=e.createElementVNode("th",null,[e.createTextVNode("SPD "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{clospan:"2"},[e.createTextVNode("DTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[26]||(t[26]=e.createElementVNode("th",null,[e.createTextVNode("ETA "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Stop "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{colspan:"2"},[e.createTextVNode("Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showCost?(e.openBlock(),e.createElementBlock("th",Fr,[...t[21]||(t[21]=[e.createTextVNode("TTL Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",{rowspan:n.showCost?1:2},[...t[22]||(t[22]=[e.createTextVNode("Diff Time ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,_r),t[29]||(t[29]=e.createElementVNode("th",null,"Weather en route",-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",null,[e.createTextVNode("*Daily Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[33]||(t[33]=e.createElementVNode("th",null,[e.createTextVNode("TTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[34]||(t[34]=e.createElementVNode("th",null,[e.createTextVNode("Avg.Spd/Wx.F/Cur.F "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[35]||(t[35]=e.createElementVNode("th",null,"*FO",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*DO/GO",-1)),n.showCost?(e.openBlock(),e.createElementBlock("th",Pr,[...t[30]||(t[30]=[e.createTextVNode("*Hire / Bunker ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),n.showCost?(e.openBlock(),e.createElementBlock("th",Lr,[...t[31]||(t[31]=[e.createTextVNode("Diff Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",null,"*in the next "+e.toDisplayString(n.computeDay(a.plan,0))+" days",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((He=a.plan)==null?void 0:He.speeds,(i,T)=>{var j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt;return e.openBlock(),e.createElementBlock(e.Fragment,{key:T},[e.createElementVNode("tr",null,[e.createElementVNode("td",Mr,e.toDisplayString(T+1),1),e.createElementVNode("td",Gr,e.toDisplayString((Y=(j=i.speed)==null?void 0:j.lane)==null?void 0:Y.name),1),e.createElementVNode("td",null,[i.speed.label!=="Combined"?(e.openBlock(),e.createElementBlock("span",Hr,e.toDisplayString(`CP ${((Ye=(ae=i.speed)==null?void 0:ae.cpCopy)==null?void 0:Ye.speed)??((Ze=i.speed)==null?void 0:Ze.v0)}`),1)):(e.openBlock(),e.createElementBlock("div",zr,[t[37]||(t[37]=e.createTextVNode("CP",-1)),t[38]||(t[38]=e.createElementVNode("sub",null,"1",-1)),e.createTextVNode(" "+e.toDisplayString((Je=(Ke=(qe=i.speed)==null?void 0:qe.extend)==null?void 0:Ke.cps[0])==null?void 0:Je.speed)+", CP",1),t[39]||(t[39]=e.createElementVNode("sub",null,"2",-1)),e.createTextVNode(" "+e.toDisplayString(($e=(Xe=(Qe=i.speed)==null?void 0:Qe.extend)==null?void 0:Xe.cps[1])==null?void 0:$e.speed),1)]))]),e.createElementVNode("td",ur,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((ve=i.speed)==null?void 0:ve.distance,0)),1),(tt=(et=i.speed)==null?void 0:et.extend)!=null&&tt.distanceInECA?(e.openBlock(),e.createElementBlock("span",Ir," ("+e.toDisplayString(n.roundPrecision(i.speed.extend.distanceInECA,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(n.computeLTime((lt=i.speed)==null?void 0:lt.eta,(nt=(at=(ot=a.plan)==null?void 0:ot.leg)==null?void 0:at.destination)==null?void 0:nt.lng,(it=(rt=(dt=a.plan)==null?void 0:dt.leg)==null?void 0:rt.destination)==null?void 0:it.lat,(mt=(Et=(pt=(ct=(st=a.plan)==null?void 0:st.leg)==null?void 0:ct.destination)==null?void 0:pt.port)==null?void 0:Et.timezone)==null?void 0:mt.RawOffset)),1),t[40]||(t[40]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(n.computeUTCTime((yt=i.speed)==null?void 0:yt.eta)),1)]),e.createElementVNode("td",Ur,e.toDisplayString(n.computeSuspend(i.speed)),1),e.createElementVNode("td",Rr,e.toDisplayString(n.roundPrecision((Nt=i.speed)==null?void 0:Nt.totalFoCons,3)),1),e.createElementVNode("td",jr,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((Vt=i.speed)==null?void 0:Vt.totalDgoCons,3)),1),(xt=(ft=i.speed)==null?void 0:ft.extend)!=null&&xt.totalDgoConsInECA?(e.openBlock(),e.createElementBlock("span",Yr," + "+e.toDisplayString(n.roundPrecision((bt=i.speed.extend)==null?void 0:bt.totalDgoConsInECA,3))+"*",1)):e.createCommentVNode("",!0)]),n.showCost?(e.openBlock(),e.createElementBlock("td",Zr,e.toDisplayString((ht=n.roundPrecision(((St=(kt=i==null?void 0:i.speed)==null?void 0:kt.cost)==null?void 0:St.total)/1e3,2))==null?void 0:ht.toLocaleString("en-US"))+"k",1)):e.createCommentVNode("",!0),e.createElementVNode("td",{rowspan:n.showCost?1:2},e.toDisplayString(n.computeTimeDiff(a.plan,T)),9,qr),t[41]||(t[41]=e.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,[((Ct=i.speed)==null?void 0:Ct.label)!=="Combined"?(e.openBlock(),e.createElementBlock("div",Kr,"FO: "+e.toDisplayString((Bt=(Dt=i.speed)==null?void 0:Dt.cpCopy)==null?void 0:Bt.fo)+" / DO: "+e.toDisplayString((Wt=(Tt=i.speed)==null?void 0:Tt.cpCopy)==null?void 0:Wt.dgo),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,"FO: "+e.toDisplayString((At=(wt=i.speed)==null?void 0:wt.extend)==null?void 0:At.cps[0].fo)+" / "+e.toDisplayString((gt=(Ot=i.speed)==null?void 0:Ot.extend)==null?void 0:gt.cps[1].fo),1),e.createElementVNode("div",null,"DO: "+e.toDisplayString((_t=(Ft=i.speed)==null?void 0:Ft.extend)==null?void 0:_t.cps[0].dgo)+" / "+e.toDisplayString((Lt=(Pt=i.speed)==null?void 0:Pt.extend)==null?void 0:Lt.cps[1].dgo),1)],64))]),e.createElementVNode("td",Jr,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((Mt=i.speed)==null?void 0:Mt.totalHrs,1)),1),(Ht=(Gt=i.speed)==null?void 0:Gt.extend)!=null&&Ht.hoursInECA?(e.openBlock(),e.createElementBlock("span",Qr," ("+e.toDisplayString(n.roundPrecision(i.speed.extend.hoursInECA,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((zt=i.speed)==null?void 0:zt.avgSpeed,2))+" / "+e.toDisplayString(n.roundPrecision((ut=i.speed)==null?void 0:ut.wxFactor,2))+" / "+e.toDisplayString(n.roundPrecision((It=i.speed)==null?void 0:It.cFactor,2)),1),n.showCost?(e.openBlock(),e.createElementBlock("td",Xr,e.toDisplayString(n.roundPrecision(((Rt=(Ut=i==null?void 0:i.speed)==null?void 0:Ut.cost)==null?void 0:Rt.hire)/1e3,2).toLocaleString("en-US"))+"k / "+e.toDisplayString(n.roundPrecision(((Yt=(jt=i==null?void 0:i.speed)==null?void 0:jt.cost)==null?void 0:Yt.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):e.createCommentVNode("",!0),n.showCost?(e.openBlock(),e.createElementBlock("td",$r,e.toDisplayString(n.computeCostDiff(a.plan,T)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision(((Zt=i.speed)==null?void 0:Zt.dangerous)/24,2))+" / "+e.toDisplayString(n.roundPrecision(((qt=i.speed)==null?void 0:qt.severe)/24,2))+" / "+e.toDisplayString(n.roundPrecision(((Kt=i.speed)==null?void 0:Kt.heavy)/24,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",vr,[t[43]||(t[43]=e.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),n.showCost?(e.openBlock(),e.createElementBlock("span",ei,[e.createTextVNode("* Hire cost was calculated at "+e.toDisplayString((Ie=n.roundPrecision((ue=(ze=a.plan)==null?void 0:ze.voyage)==null?void 0:ue.dailyHire,0))==null?void 0:Ie.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+e.toDisplayString((je=n.roundPrecision((Re=(Ue=a.plan)==null?void 0:Ue.voyage)==null?void 0:Re.priceFO,0))==null?void 0:je.toLocaleString("en-US"))+" USD/mt for FO and "+e.toDisplayString((vt=n.roundPrecision(($t=(Xt=a.plan)==null?void 0:Xt.voyage)==null?void 0:$t.priceDGO,0))==null?void 0:vt.toLocaleString("en-US"))+" USD/mt for MGO.",1),t[42]||(t[42]=e.createElementVNode("br",null,null,-1))])):e.createCommentVNode("",!0),t[45]||(t[45]=e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),t[47]||(t[47]=e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),e.createElementVNode("div",ti,[e.createElementVNode("div",li,[e.createElementVNode("div",oi,[t[48]||(t[48]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",ai,"Advisory & Major Waypoint of Route "+e.toDisplayString((ol=(ll=(tl=(el=a.plan.speeds)==null?void 0:el[r.speedIndex])==null?void 0:tl.speed)==null?void 0:ll.lane)==null?void 0:ol.name),1),((nl=(al=a.plan)==null?void 0:al.speeds)==null?void 0:nl.length)>1?(e.openBlock(),e.createElementBlock("div",ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((dl=a.plan)==null?void 0:dl.speeds,(i,T)=>{var j,Y;return e.openBlock(),e.createElementBlock("div",{key:T,class:e.normalizeClass(["route-item print-hidden",r.speedIndex===T?"active":""]),onClick:ae=>{r.speedIndex=T,n.renderEchart()}},e.toDisplayString((Y=(j=i.speed)==null?void 0:j.lane)==null?void 0:Y.name),11,di)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ri,[r.editable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:r.advisory,"onUpdate:modelValue":t[5]||(t[5]=i=>r.advisory=i),class:"editor",height:"120px",onBlur:t[6]||(t[6]=i=>n.handleCommit(i))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:t[7]||(t[7]=(...i)=>n.handleEdit&&n.handleEdit(...i)),innerHTML:r.advisory},null,40,ii))]),e.createElementVNode("div",si,[t[49]||(t[49]=e.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-617ed823><div class="cell-item flex" style="flex:2.5;" data-v-617ed823>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-617ed823>Time</div><div class="cell-item flex" data-v-617ed823>Nav</div><div class="cell-item flex" data-v-617ed823>Dist <span class="text-units" data-v-617ed823>(nm)</span></div><div class="cell-item flex" data-v-617ed823>SOG <span class="text-units" data-v-617ed823>(kts)</span></div><div class="cell-item flex" data-v-617ed823>COG <span class="text-units" data-v-617ed823>(°)</span></div><div class="cell-item flex" data-v-617ed823>Memo</div></div>',1)),e.createElementVNode("div",ci,[(il=(rl=a.plan)==null?void 0:rl.speeds)!=null&&il.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.computeMajorPoints((El=(pl=(cl=(sl=a.plan)==null?void 0:sl.speeds)==null?void 0:cl[r.speedIndex])==null?void 0:pl.speed)==null?void 0:El.argv,(fl=(Vl=(Nl=(yl=(ml=a.plan)==null?void 0:ml.speeds)==null?void 0:yl[r.speedIndex])==null?void 0:Nl.speed)==null?void 0:Vl.sample)==null?void 0:fl.wps),(i,T)=>(e.openBlock(),e.createElementBlock("div",{key:T,class:"cell-row"},[e.createElementVNode("div",pi,[i.isResume?(e.openBlock(),e.createElementBlock("div",Ei,"Resume")):(e.openBlock(),e.createElementBlock("div",mi,[e.createElementVNode("span",null,e.toDisplayString(n.computePosition(i)),1),i.pilot?(e.openBlock(),e.createElementBlock("span",yi,"[P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",Ni,[e.createTextVNode(e.toDisplayString(n.computeUTCTime(i.eta))+" ",1),i.cp?(e.openBlock(),e.createElementBlock("span",Vi,"[cp: "+e.toDisplayString(i.cp.speed)+"]",1)):e.createCommentVNode("",!0)]),T?(e.openBlock(),e.createElementBlock("div",fi,e.toDisplayString(n.computeNav(i)),1)):(e.openBlock(),e.createElementBlock("div",xi)),T?(e.openBlock(),e.createElementBlock("div",bi,e.toDisplayString(n.roundPrecision(i.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",ki)),T?(e.openBlock(),e.createElementBlock("div",Si,e.toDisplayString(n.roundPrecision(i.avgSpd??i.speed,2)),1)):(e.openBlock(),e.createElementBlock("div",hi)),T?(e.openBlock(),e.createElementBlock("div",Ci,e.toDisplayString(n.computeCog(i.avgBearing)),1)):(e.openBlock(),e.createElementBlock("div",Di)),T?(e.openBlock(),e.createElementBlock("div",Bi,e.toDisplayString(n.computeMemo(i)),1)):(e.openBlock(),e.createElementBlock("div",Ti))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Wi,[(bl=(xl=a.plan)==null?void 0:xl.speeds)!=null&&bl.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",wi,[e.createElementVNode("div",Ai,[e.createElementVNode("div",Oi,[t[50]||(t[50]=e.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),e.createElementVNode("div",gi," Weather Forecast for the Next "+e.toDisplayString(n.computeDay(a.plan,r.speedIndex))+" Days of Route "+e.toDisplayString((Dl=(Cl=(hl=(Sl=(kl=a.plan)==null?void 0:kl.speeds)==null?void 0:Sl[r.speedIndex])==null?void 0:hl.speed)==null?void 0:Cl.lane)==null?void 0:Dl.name),1),((Tl=(Bl=a.plan)==null?void 0:Bl.speeds)==null?void 0:Tl.length)>1?(e.openBlock(),e.createElementBlock("div",Fi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Wl=a.plan)==null?void 0:Wl.speeds,(i,T)=>{var j,Y;return e.openBlock(),e.createElementBlock("div",{key:T,class:e.normalizeClass(["route-item print-hidden",r.speedIndex===T?"active":""]),onClick:ae=>{r.speedIndex=T,n.renderEchart()}},e.toDisplayString((Y=(j=i==null?void 0:i.speed)==null?void 0:j.lane)==null?void 0:Y.name),11,_i)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Pi,[e.createElementVNode("div",Li,null,512)]),e.createElementVNode("div",Mi,"* "+e.toDisplayString(n.computeModel((Ol=(Al=(wl=a.plan)==null?void 0:wl.speeds)==null?void 0:Al[r.speedIndex])==null?void 0:Ol.speed)),1)]),t[68]||(t[68]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"8px","font-size":"12px"}}," * Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4. ",-1)),e.createElementVNode("table",Gi,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[51]||(t[51]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),t[52]||(t[52]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Fl=(gl=a.plan)==null?void 0:gl.voyage)!=null&&Fl.sendRptWithBF?3:2},"Wind",8,Hi),t[53]||(t[53]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[54]||(t[54]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[55]||(t[55]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[56]||(t[56]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Pl=(_l=a.plan)==null?void 0:_l.voyage)!=null&&Pl.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",zi,"BF")):e.createCommentVNode("",!0),t[59]||(t[59]=e.createElementVNode("th",null,"Dir",-1)),t[60]||(t[60]=e.createElementVNode("th",null,[e.createTextVNode("Ht "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[61]||(t[61]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[62]||(t[62]=e.createElementVNode("th",null,"Dir",-1)),t[63]||(t[63]=e.createElementVNode("th",null,[e.createTextVNode("Hgt "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[64]||(t[64]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[65]||(t[65]=e.createElementVNode("th",null,"Dir",-1)),t[66]||(t[66]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[67]||(t[67]=e.createElementVNode("th",null,[e.createTextVNode("Factor "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((zl=(Hl=(Gl=(Ml=(Ll=a.plan)==null?void 0:Ll.speeds)==null?void 0:Ml[r.speedIndex])==null?void 0:Gl.speed)==null?void 0:Hl.sample)==null?void 0:zl.hours,(i,T)=>{var j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt,ul,Il,Ul,Rl,jl,Yl,Zl,ql,Kl,Jl;return e.openBlock(),e.createElementBlock("tr",{key:T,class:e.normalizeClass(i.isDangerous?"dangerous":i.isSevere?"severe":i.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(n.computeUTCTime(i.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",ui,e.toDisplayString(n.computeLat(i.lat))+", "+e.toDisplayString(n.computeLng(i.lng)),1)]),e.createElementVNode("td",Ii,[(Y=(j=i.meteo)==null?void 0:j.wind)!=null&&Y.kts?(e.openBlock(),e.createElementBlock("span",Ui,e.toDisplayString((Ye=(ae=i.meteo)==null?void 0:ae.wind)==null?void 0:Ye.direction),1)):e.createCommentVNode("",!0),(qe=(Ze=i.meteo)==null?void 0:Ze.wind)!=null&&qe.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("wind",(Je=(Ke=i.meteo)==null?void 0:Ke.wind)==null?void 0:Je.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Ri,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Xe=(Qe=i==null?void 0:i.meteo)==null?void 0:Qe.wind)==null?void 0:Xe.scale)>=4?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((ve=($e=i.meteo)==null?void 0:$e.wind)==null?void 0:ve.kts,1)),3),(tt=(et=a.plan)==null?void 0:et.voyage)!=null&&tt.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",ji,e.toDisplayString((ot=(lt=i.meteo)==null?void 0:lt.wind)==null?void 0:ot.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((dt=(nt=(at=i.meteo)==null?void 0:at.wave)==null?void 0:nt.wd)==null?void 0:dt.height,1)),1),e.createElementVNode("td",Yi,[(st=(it=(rt=i.meteo)==null?void 0:rt.wave)==null?void 0:it.swell)!=null&&st.height?(e.openBlock(),e.createElementBlock("span",Zi,e.toDisplayString((Et=(pt=(ct=i.meteo)==null?void 0:ct.wave)==null?void 0:pt.swell)==null?void 0:Et.direction),1)):e.createCommentVNode("",!0),(Nt=(yt=(mt=i.meteo)==null?void 0:mt.wave)==null?void 0:yt.swell)!=null&&Nt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("swell",(xt=(ft=(Vt=i.meteo)==null?void 0:Vt.wave)==null?void 0:ft.swell)==null?void 0:xt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",qi,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((St=(kt=(bt=i==null?void 0:i.meteo)==null?void 0:bt.wave)==null?void 0:kt.swell)==null?void 0:St.height)>=1.5?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((Dt=(Ct=(ht=i.meteo)==null?void 0:ht.wave)==null?void 0:Ct.swell)==null?void 0:Dt.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Wt=(Tt=(Bt=i.meteo)==null?void 0:Bt.wave)==null?void 0:Tt.swell)==null?void 0:Wt.period,1)),1),e.createElementVNode("td",Ki,[(Ot=(At=(wt=i.meteo)==null?void 0:wt.wave)==null?void 0:At.sig)!=null&&Ot.height?(e.openBlock(),e.createElementBlock("span",Ji,e.toDisplayString((_t=(Ft=(gt=i.meteo)==null?void 0:gt.wave)==null?void 0:Ft.sig)==null?void 0:_t.direction),1)):e.createCommentVNode("",!0),(Mt=(Lt=(Pt=i.meteo)==null?void 0:Pt.wave)==null?void 0:Lt.sig)!=null&&Mt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("wave",(zt=(Ht=(Gt=i.meteo)==null?void 0:Gt.wave)==null?void 0:Ht.sig)==null?void 0:zt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Qi,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Ut=(It=(ut=i==null?void 0:i.meteo)==null?void 0:ut.wave)==null?void 0:It.sig)==null?void 0:Ut.height)>=1.5?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((Yt=(jt=(Rt=i.meteo)==null?void 0:Rt.wave)==null?void 0:jt.sig)==null?void 0:Yt.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Kt=(qt=(Zt=i.meteo)==null?void 0:Zt.wave)==null?void 0:qt.sig)==null?void 0:Kt.period,1)),1),e.createElementVNode("td",Xi,[(Il=(ul=i.meteo)==null?void 0:ul.current)!=null&&Il.kts?(e.openBlock(),e.createElementBlock("span",$i,e.toDisplayString((Rl=(Ul=i.meteo)==null?void 0:Ul.current)==null?void 0:Rl.direction),1)):e.createCommentVNode("",!0),(Yl=(jl=i.meteo)==null?void 0:jl.current)!=null&&Yl.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("current",(ql=(Zl=i.meteo)==null?void 0:Zl.current)==null?void 0:ql.degree,!0))},null,4)):(e.openBlock(),e.createElementBlock("span",vi,"-"))]),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Jl=(Kl=i.meteo)==null?void 0:Kl.current)==null?void 0:Jl.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision(i.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[69]||(t[69]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[e.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),e.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),e.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const lo=Jt(tr,[["render",es],["__scopeId","data-v-617ed823"]]),ts={install(o){o.component("PlanReport",lo)}},gm="",ls={name:"OrmVoyageSummary",components:{Editor:$l},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return W(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,t){const a=W(o).diff(W(t),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeWeatherDef(){return function(o){let t;if(o!=null&&o.overallAsGoodWx)t="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?t+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?t+=", Wx Factor is ignored":o.disableCFactor&&(t+=", Current Factor is ignored"),t+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let a="";o!=null&&o.waveSwitch?a+=`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?a+=`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&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),t=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(t+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(t+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(t+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?t+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?t+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:t+="."}return t}},computeLng(){return function(o){return H.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return H.LngLatHelper.lat2pretty(o)}},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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,t,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,t,a){if(o.consPercentage){if(t==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(t==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(t==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(t==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,t){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,t;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(t=(o=this.report)==null?void 0:o.segments)==null||t.forEach((a,s)=>{var E,d;a.excluded.detail.forEach(c=>{const f={time:W(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+W(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(f)});const n=(d=(E=a==null?void 0:a.inventory)==null?void 0:E.sample)==null?void 0:d.hours.filter(c=>c.noon);this.noons.push([n])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},os={class:"report-summary"},as={class:"info-block"},ns={class:"col"},ds={class:"label-block"},rs={class:"text"},is={class:"label-block"},ss={class:"text"},cs={class:"label-block"},ps={class:"text"},Es={class:"col"},ms={class:"label-block"},ys={key:0},Ns={key:1},Vs={style:{"margin-left":"16px"}},fs={class:"label-block"},xs={key:0},bs={key:1},ks={style:{"margin-left":"16px"}},Ss={class:"label-block"},hs={class:"text"},Cs={class:"section weather-section"},Ds={class:"definition bg-blue-light-2"},Bs={style:{"line-height":"1.5"}},Ts={class:"section summary-section"},Ws={class:"phase-box"},ws={class:"phase-index"},As={class:"phase-position"},Os={key:0},gs={key:1},Fs={class:"phase-position"},_s={key:0},Ps={key:1},Ls={class:"phase-cp"},Ms={class:"phase-conclusion"},Gs={class:"item-conclusion bg-blue-light-2"},Hs={class:"value align-left"},zs={key:0,class:"text-secondary align-right"},us={key:0},Is={key:1},Us={key:2},Rs={key:1,class:"text-secondary"},js={key:2,class:"value"},Ys={key:0},Zs={class:"gain"},qs={key:1},Ks={class:"lost"},Js={key:2},Qs={class:"item-conclusion bg-blue-light-2"},Xs={class:"value align-left"},$s={key:0,class:"text-secondary"},vs={key:0},ec={key:1},tc={key:2},lc={key:1,class:"text-secondary"},oc={key:2,class:"value"},ac={key:0},nc={class:"gain"},dc={key:1},rc={class:"lost"},ic={key:2},sc={class:"item-conclusion bg-blue-light-2"},cc={class:"value align-left"},pc={key:0,class:"text-secondary"},Ec={key:0},mc={key:1},yc={key:2},Nc={key:1,class:"text-secondary"},Vc={key:2,class:"value"},fc={key:0},xc={class:"gain"},bc={key:1},kc={class:"lost"},Sc={key:2},hc={key:0,class:"exclusion-block"},Cc={style:{margin:"8px 0"}},Dc=["innerHTML"],Bc={class:"section segment-section"},Tc={class:"segment-summary"},Wc={class:"segment-index text-left"},wc={class:"segment-position"},Ac={key:0},Oc={key:1},gc={class:"segment-position"},Fc={key:0},_c={key:1},Pc={class:"good-wx"},Lc={class:"good-wx"},Mc={class:"good-wx"},Gc={class:"good-wx"},Hc={class:"good-wx"},zc={class:"good-wx"},uc={class:"good-wx"},Ic={class:"good-wx"},Uc={class:"good-wx"},Rc={class:"good-wx"},jc={class:"good-wx"},Yc={class:"good-wx"},Zc={class:"good-wx"},qc={class:"good-wx"},Kc={key:0,style:{"margin-top":"12px"}},Jc={key:0},Qc={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Xc={key:2,class:"segment-speed"},$c={class:"row"},vc={class:"speed-right row"},ep={class:"speed"},tp={key:1,class:"speed"},lp={key:0,class:"speed"},op={class:"speed"},ap={class:"speed"},np={class:"speed"},dp={key:2,class:"under"},rp={key:3,class:"over"},ip={class:"row"},sp={class:"speed-right formula flex-space"},cp={key:0},pp={key:3,class:"segment-speed"},Ep={class:"row"},mp={class:"speed-right row"},yp={class:"speed"},Np={class:"speed"},Vp={key:2,class:"under"},fp={key:3,class:"over"},xp={class:"row"},bp={class:"speed-right formula row"},kp={class:"segment-formula"},Sp={class:"sub-title"},hp={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Cp={class:"formula-block"},Dp={class:"formula-item flex-evenly bg-blue-light"},Bp={class:"formula-right flex-evenly"},Tp={class:"fraction",style:{width:"240px"}},Wp={class:"formula-item flex-center bg-blue-light"},wp={class:"formula-left flex-space"},Ap={class:"formula-right flex-evenly"},Op={class:"fraction",style:{width:"240px"}},gp={class:"formula-item flex-center bg-blue-light"},Fp={class:"formula-left flex-space"},_p={class:"formula-right flex-evenly"},Pp={class:"fraction",style:{width:"240px"}},Lp={class:"formula-desc"},Mp={class:"flex-end"},Gp={class:"flex-end"},Hp={class:"flex-end"},zp={key:0,class:"formula-block"},up={class:"formula-item flex-evenly bg-blue-light"},Ip={class:"formula-right flex-evenly"},Up={class:"fraction",style:{width:"200px"}},Rp={class:"formula-item flex-center bg-blue-light"},jp={class:"formula-left flex-space"},Yp={class:"formula-right flex-evenly"},Zp={class:"fraction",style:{width:"200px"}},qp={class:"formula-item flex-center bg-blue-light"},Kp={class:"formula-left flex-space"},Jp={class:"formula-right flex-evenly"},Qp={class:"fraction",style:{width:"200px"}},Xp={class:"formula-item formula-conclusion bg-blue-light"},$p={key:0,class:"flex-evenly",style:{width:"500px"}},vp={key:1,class:"flex-evenly",style:{width:"500px"}},e1={class:"flex-center"},t1={key:1,class:"formula-conclusion bg-blue-light"},l1={class:"segment-formula"},o1={class:"sub-title"},a1={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},n1={class:"formula-block"},d1={class:"formula-item flex-evenly bg-blue-light"},r1={class:"formula-right flex-evenly"},i1={class:"fraction",style:{width:"240px"}},s1={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},c1={key:0,class:"flex-end text-tips"},p1={class:"formula-item flex-center bg-blue-light"},E1={class:"formula-right flex-evenly"},m1={class:"fraction",style:{width:"200px"}},y1={class:"formula-item flex-center bg-blue-light"},N1={class:"formula-right flex-evenly"},V1={class:"fraction",style:{width:"200px"}},f1={class:"formula-item flex-center bg-blue-light"},x1={class:"formula-right flex-evenly"},b1={class:"fraction",style:{width:"300px"}},k1={class:"formula-item flex-center bg-blue-light"},S1={class:"formula-right flex-evenly"},h1={class:"fraction",style:{width:"300px"}},C1={class:"sub-title"},D1={key:0,class:"formula-block"},B1={key:0,class:"formula-item flex-evenly bg-blue-light"},T1={class:"formula-right flex-evenly"},W1={class:"fraction",style:{width:"60px"}},w1={class:"fraction",style:{width:"60px"}},A1={class:"formula-item flex-evenly bg-blue-light"},O1={class:"formula-right flex-evenly"},g1={class:"fraction",style:{width:"150px"}},F1={class:"fraction",style:{width:"150px"}},_1={key:0},P1={class:"formula-item flex-evenly bg-blue-light"},L1={class:"formula-right flex-evenly"},M1={class:"fraction",style:{width:"150px"}},G1={class:"fraction",style:{width:"150px"}},H1={class:"formula-item flex-evenly bg-blue-light"},z1={class:"formula-right flex-evenly"},u1={class:"fraction",style:{width:"150px"}},I1={class:"fraction",style:{width:"150px"}},U1={class:"formula-item formula-conclusion bg-blue-light"},R1={class:"flex-evenly",style:{width:"500px"}},j1={key:0,class:"flex-evenly"},Y1={class:"fraction"},Z1={class:"flex-evenly",style:{width:"700px"}},q1={key:0,class:"flex-evenly",style:{width:"500px"}},K1={class:"fraction",style:{width:"140px"}},J1={key:1,class:"formula-item formula-conclusion bg-blue-light"},Q1={class:"header-block"},X1={class:"bg-block"},$1={class:"title"},v1={key:0,class:"formula-block"},eE={class:"formula-item flex-evenly bg-blue-light"},tE={class:"formula-right flex-evenly"},lE={class:"fraction",style:{width:"150px"}},oE={class:"fraction",style:{width:"150px"}},aE={key:0},nE={class:"formula-item flex-evenly bg-blue-light"},dE={class:"formula-right flex-evenly"},rE={class:"fraction",style:{width:"150px"}},iE={class:"fraction",style:{width:"150px"}},sE={class:"formula-item flex-evenly bg-blue-light"},cE={class:"formula-right flex-evenly"},pE={class:"fraction",style:{width:"150px"}},EE={class:"fraction",style:{width:"150px"}},mE={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},yE={key:0,class:"flex-evenly",style:{width:"500px"}},NE={key:1,class:"flex-evenly",style:{width:"700px"}},VE={key:1,class:"formula-item formula-conclusion bg-blue-light"};function fE(o,t,a,s,r,n){var d,c,f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z;const E=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",os,[e.createElementVNode("div",as,[e.createElementVNode("div",ns,[e.createElementVNode("div",ds,[t[3]||(t[3]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",rs,e.toDisplayString(a.report.preparedFor),1)]),e.createElementVNode("div",is,[t[4]||(t[4]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",ss,e.toDisplayString((c=(d=a.report)==null?void 0:d.vessel)==null?void 0:c.name)+" ("+e.toDisplayString((y=(f=a.report)==null?void 0:f.vessel)==null?void 0:y.type)+")",1)]),e.createElementVNode("div",cs,[t[5]||(t[5]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",ps,e.toDisplayString(((B=(N=a.report)==null?void 0:N.voyage)==null?void 0:B.voyNum)||((m=(k=a.report)==null?void 0:k.voyage)==null?void 0:m.number)),1)])]),e.createElementVNode("div",Es,[e.createElementVNode("div",ms,[t[6]||(t[6]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(h=(V=a.report)==null?void 0:V.departure)!=null&&h.name?(e.openBlock(),e.createElementBlock("span",ys,e.toDisplayString((x=(p=a.report)==null?void 0:p.departure)==null?void 0:x.portName),1)):(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(n.computePosition((C=a.report)==null?void 0:C.departure)),1)),e.createElementVNode("span",Vs,e.toDisplayString(n.computeUTCTime((w=(D=a.report)==null?void 0:D.departure)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",fs,[t[7]||(t[7]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(O=(A=a.report)==null?void 0:A.arrival)!=null&&O.portName?(e.openBlock(),e.createElementBlock("span",xs,e.toDisplayString((F=(g=a.report)==null?void 0:g.arrival)==null?void 0:F.portName),1)):(e.openBlock(),e.createElementBlock("span",bs,e.toDisplayString(n.computePosition((_=a.report)==null?void 0:_.arrival)),1)),e.createElementVNode("span",ks,e.toDisplayString(n.computeUTCTime((z=(P=a.report)==null?void 0:P.arrival)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Ss,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",hs,e.toDisplayString((I=(u=a.report)==null?void 0:u.voyage)==null?void 0:I.loadCondition),1)])])]),e.createElementVNode("div",Cs,[t[9]||(t[9]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),e.createElementVNode("div",Ds,[e.createElementVNode("div",Bs,e.toDisplayString(n.computeWeatherDef(a.report.weather)),1)])]),e.createElementVNode("div",Ts,[t[37]||(t[37]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((U=a.report)==null?void 0:U.segments,(l,L)=>{var q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe;return e.openBlock(),e.createElementBlock("div",{key:"summary"+L,class:"segment-box"},[e.createElementVNode("div",Ws,[e.createElementVNode("div",ws,"Seg."+e.toDisplayString(L+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((q=l==null?void 0:l.extend)==null?void 0:q.segTimes,(b,Qt)=>{var Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je;return e.openBlock(),e.createElementBlock("div",{key:Qt,class:"phase-row text-secondary"},[e.createElementVNode("div",As,[(Le=b==null?void 0:b.departure)!=null&&Le.portName?(e.openBlock(),e.createElementBlock("span",Os,e.toDisplayString((Me=b==null?void 0:b.departure)==null?void 0:Me.portName),1)):(e.openBlock(),e.createElementBlock("span",gs,e.toDisplayString(n.computeLat((Ge=b==null?void 0:b.departure)==null?void 0:Ge.lat).pretty)+", "+e.toDisplayString(n.computeLng((He=b==null?void 0:b.departure)==null?void 0:He.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((ze=b==null?void 0:b.departure)==null?void 0:ze.utcTime))+")",1)]),t[10]||(t[10]=e.createElementVNode("div",{class:"phase-split"},"~",-1)),e.createElementVNode("div",Fs,[(ue=b==null?void 0:b.arrival)!=null&&ue.portName?(e.openBlock(),e.createElementBlock("span",_s,e.toDisplayString((Ie=b==null?void 0:b.arrival)==null?void 0:Ie.portName),1)):(e.openBlock(),e.createElementBlock("span",Ps,e.toDisplayString(n.computeLat((Ue=b==null?void 0:b.arrival)==null?void 0:Ue.lat).pretty)+", "+e.toDisplayString(n.computeLng((Re=b==null?void 0:b.arrival)==null?void 0:Re.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((je=b==null?void 0:b.arrival)==null?void 0:je.utcTime))+")",1)])])}),128)),e.createElementVNode("div",Ls,[e.createElementVNode("table",null,[t[18]||(t[18]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,"CP")]),e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily FO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily DO/GO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[17]||(t[17]=e.createElementVNode("td",null,null,-1)),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((J=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:J.speed)+" |",1),t[11]||(t[11]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(X=(Q=l==null?void 0:l.extend)==null?void 0:Q.cp)==null?void 0:X.speed,"Over"))+",",1),t[12]||(t[12]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(v=($=l==null?void 0:l.extend)==null?void 0:$.cp)==null?void 0:v.speed,"Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((te=(ee=l==null?void 0:l.extend)==null?void 0:ee.cp)==null?void 0:te.fo)+" |",1),t[13]||(t[13]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),t[14]||(t[14]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((oe=(le=l==null?void 0:l.extend)==null?void 0:le.cp)==null?void 0:oe.dgo)+" |",1),t[15]||(t[15]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),t[16]||(t[16]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),e.createElementVNode("div",Ms,[e.createElementVNode("div",Gs,[t[24]||(t[24]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),e.createElementVNode("div",Hs,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.time),1),t[19]||(t[19]=e.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",zs,[((M=l==null?void 0:l.timeConclusion)==null?void 0:M.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("span",us,"Time Gained")):((de=l==null?void 0:l.timeConclusion)==null?void 0:de.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("span",Is,"Time Lost")):(e.openBlock(),e.createElementBlock("span",Us,"No Time Lost/Gained"))])):(e.openBlock(),e.createElementBlock("div",Rs,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",js,[((re=l==null?void 0:l.timeConclusion)==null?void 0:re.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",Ys,[t[20]||(t[20]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Zs,e.toDisplayString((ie=l==null?void 0:l.timeConclusion)==null?void 0:ie.timeGain),1),t[21]||(t[21]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):((se=l==null?void 0:l.timeConclusion)==null?void 0:se.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",qs,[t[22]||(t[22]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",Ks,e.toDisplayString((ce=l==null?void 0:l.timeConclusion)==null?void 0:ce.timeLost),1),t[23]||(t[23]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):(e.openBlock(),e.createElementBlock("div",Js,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Qs,[t[30]||(t[30]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),e.createElementVNode("div",Xs,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.sumFoCons),1),t[25]||(t[25]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",$s,[((Ee=(pe=l==null?void 0:l.fuelConclusion)==null?void 0:pe.fo)==null?void 0:Ee.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",vs,"FO Saving")):((ye=(me=l==null?void 0:l.fuelConclusion)==null?void 0:me.fo)==null?void 0:ye.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",ec,"FO Over-consumption")):(e.openBlock(),e.createElementBlock("span",tc,"No FO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",lc,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",oc,[((Ve=(Ne=l==null?void 0:l.fuelConclusion)==null?void 0:Ne.fo)==null?void 0:Ve.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",ac,[t[26]||(t[26]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",nc,e.toDisplayString((xe=(fe=l==null?void 0:l.fuelConclusion)==null?void 0:fe.fo)==null?void 0:xe.saving),1),t[27]||(t[27]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((ke=(be=l==null?void 0:l.fuelConclusion)==null?void 0:be.fo)==null?void 0:ke.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",dc,[t[28]||(t[28]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",rc,e.toDisplayString((he=(Se=l==null?void 0:l.fuelConclusion)==null?void 0:Se.fo)==null?void 0:he.overCons),1),t[29]||(t[29]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",ic,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",sc,[t[36]||(t[36]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),e.createElementVNode("div",cc,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.sumDgoCons),1),t[31]||(t[31]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",pc,[((De=(Ce=l==null?void 0:l.fuelConclusion)==null?void 0:Ce.dgo)==null?void 0:De.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Ec,"DO/GO Saving")):((Te=(Be=l==null?void 0:l.fuelConclusion)==null?void 0:Be.dgo)==null?void 0:Te.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",mc,"DO/GO Over-consumption")):(e.openBlock(),e.createElementBlock("span",yc,"No DO/GO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Nc,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",Vc,[((we=(We=l==null?void 0:l.fuelConclusion)==null?void 0:We.dgo)==null?void 0:we.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",fc,[t[32]||(t[32]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",xc,e.toDisplayString((Oe=(Ae=l==null?void 0:l.fuelConclusion)==null?void 0:Ae.dgo)==null?void 0:Oe.saving),1),t[33]||(t[33]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((Fe=(ge=l==null?void 0:l.fuelConclusion)==null?void 0:ge.dgo)==null?void 0:Fe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",bc,[t[34]||(t[34]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",kc,e.toDisplayString((Pe=(_e=l==null?void 0:l.fuelConclusion)==null?void 0:_e.dgo)==null?void 0:Pe.overCons),1),t[35]||(t[35]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",Sc,"N/A"))])):e.createCommentVNode("",!0)])])])])}),128)),t[38]||(t[38]=e.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),e.createElementVNode("div",{class:e.normalizeClass(n.computeBlankHtml((R=a.report)==null?void 0:R.remarks)&&!r.exclusion.length?"section remark-section print-hidden":"section remark-section")},[t[42]||(t[42]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-biaodan"}),e.createElementVNode("div",{class:"title"},"Remarks")])],-1)),r.exclusion.length?(e.openBlock(),e.createElementBlock("div",hc,[t[40]||(t[40]=e.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),t[41]||(t[41]=e.createElementVNode("div",{class:"text-secondary"},[e.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),e.createElementVNode("div",Cc,[e.createElementVNode("table",null,[t[39]||(t[39]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",{style:{width:"40%"}},"Time"),e.createElementVNode("th",null,[e.createTextVNode("Duration "),e.createElementVNode("span",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",null,[e.createTextVNode("Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")]),e.createElementVNode("th",null,[e.createTextVNode("FO "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("DO/GO "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.exclusion,(l,L)=>(e.openBlock(),e.createElementBlock("tr",{key:L},[e.createElementVNode("td",null,e.toDisplayString(L+1),1),e.createElementVNode("td",null,e.toDisplayString(l.time),1),e.createElementVNode("td",null,e.toDisplayString(l.duration),1),e.createElementVNode("td",null,e.toDisplayString(l.distance),1),e.createElementVNode("td",null,e.toDisplayString(l.fo),1),e.createElementVNode("td",null,e.toDisplayString(l.dgo),1)]))),128))])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(n.computeBlankHtml((Z=a.report)==null?void 0:Z.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[r.editable?(e.openBlock(),e.createBlock(E,{key:0,modelValue:r.remarks,"onUpdate:modelValue":t[0]||(t[0]=l=>r.remarks=l),class:"editor",height:"120px",onBlur:t[1]||(t[1]=l=>n.handleCommit(l))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,onDblclick:t[2]||(t[2]=(...l)=>n.handleEdit&&n.handleEdit(...l)),innerHTML:r.remarks},null,40,Dc))],2)],2),e.createElementVNode("div",Bc,[t[244]||(t[244]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-baobiao"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.report.segments,(l,L)=>{var q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe,b,Qt,Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je,Xt,$t,vt,el,tl,ll,ol,al,nl,dl,rl,il,sl,cl,pl,El,ml,yl,Nl,Vl,fl,xl,bl,kl,Sl,hl,Cl,Dl,Bl,Tl,Wl,wl,Al,Ol,gl,Fl,_l,Pl,Ll,Ml,Gl,Hl,zl,i,T,j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt,ul,Il,Ul,Rl,jl,Yl,Zl,ql,Kl,Jl,ao,no,ro,io,so,co,po,Eo,mo,yo,No,Vo,fo,xo,bo,ko,So,ho,Co,Do,Bo,To,Wo,wo,Ao,Oo,go,Fo,_o,Po,Lo,Mo,Go,Ho,zo,uo,Io,Uo,Ro,jo,Yo,Zo,qo,Ko,Jo,Qo,Xo,$o,vo,ea,ta,la,oa,aa,na,da,ra,ia,sa,ca,pa,Ea,ma,ya,Na,Va,fa,xa,ba,ka,Sa,ha,Ca,Da,Ba,Ta,Wa,wa,Aa,Oa,ga,Fa,_a,Pa,La,Ma,Ga,Ha,za,ua,Ia,Ua,Ra,ja,Ya,Za,qa,Ka,Ja,Qa,Xa,$a,va,en,tn,ln,on,an,nn,dn,rn,sn,cn,pn,En,mn,yn,Nn,Vn,fn,xn,bn,kn,Sn,hn,Cn,Dn,Bn,Tn,Wn,wn,An,On,gn,Fn,_n,Pn,Ln,Mn,Gn,Hn,zn,un,In,Un,Rn,jn,Yn,Zn,qn,Kn,Jn,Qn,Xn,$n,vn,ed,td,ld,od,ad,nd,dd,rd,id,sd,cd,pd,Ed,md,yd,Nd,Vd,fd,xd,bd,kd,Sd,hd,Cd,Dd,Bd,Td,Wd,wd,Ad,Od,gd,Fd,_d,Pd,Ld,Md,Gd,Hd,zd,ud;return e.openBlock(),e.createElementBlock("div",{key:L,class:"segment-block"},[e.createElementVNode("div",Tc,[e.createElementVNode("div",Wc,"Voyage Analysis Seg. "+e.toDisplayString(L+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((q=l==null?void 0:l.extend)==null?void 0:q.segTimes,(S,eo)=>{var ne,vl,Id,Ud,Rd,jd,Yd,Zd,qd,Kd;return e.openBlock(),e.createElementBlock("div",{key:eo,class:"segment-row text-secondary"},[e.createElementVNode("div",wc,[(ne=S==null?void 0:S.departure)!=null&&ne.portName?(e.openBlock(),e.createElementBlock("span",Ac,e.toDisplayString((vl=S==null?void 0:S.departure)==null?void 0:vl.portName),1)):(e.openBlock(),e.createElementBlock("span",Oc,e.toDisplayString(n.computeLat((Id=S==null?void 0:S.departure)==null?void 0:Id.lat).pretty)+", "+e.toDisplayString(n.computeLng((Ud=S==null?void 0:S.departure)==null?void 0:Ud.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((Rd=S==null?void 0:S.departure)==null?void 0:Rd.utcTime))+")",1)]),t[43]||(t[43]=e.createElementVNode("div",{class:"segment-split"},"~",-1)),e.createElementVNode("div",gc,[(jd=S==null?void 0:S.arrival)!=null&&jd.portName?(e.openBlock(),e.createElementBlock("span",Fc,e.toDisplayString((Yd=S==null?void 0:S.arrival)==null?void 0:Yd.portName),1)):(e.openBlock(),e.createElementBlock("span",_c,e.toDisplayString(n.computeLat((Zd=S==null?void 0:S.arrival)==null?void 0:Zd.lat).pretty)+", "+e.toDisplayString(n.computeLng((qd=S==null?void 0:S.arrival)==null?void 0:qd.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((Kd=S==null?void 0:S.arrival)==null?void 0:Kd.utcTime))+")",1)])])}),128)),e.createElementVNode("table",null,[t[51]||(t[51]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{style:{width:"35%"}}),e.createElementVNode("th",{colspan:"2"},"Good Weather"),e.createElementVNode("th",{colspan:"2"},"All Weather")]),e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA")])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[44]||(t[44]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e.createElementVNode("td",Pc,e.toDisplayString((J=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:J.distance),1),e.createElementVNode("td",Lc,e.toDisplayString((X=(Q=l==null?void 0:l.goodWx)==null?void 0:Q.inEca)==null?void 0:X.distance),1),e.createElementVNode("td",null,e.toDisplayString((v=($=l==null?void 0:l.allWx)==null?void 0:$.outEca)==null?void 0:v.distance),1),e.createElementVNode("td",null,e.toDisplayString((te=(ee=l==null?void 0:l.allWx)==null?void 0:ee.inEca)==null?void 0:te.distance),1)]),e.createElementVNode("tr",null,[t[45]||(t[45]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Time "),e.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),e.createElementVNode("td",Mc,e.toDisplayString((oe=(le=l==null?void 0:l.goodWx)==null?void 0:le.outEca)==null?void 0:oe.time),1),e.createElementVNode("td",Gc,e.toDisplayString((de=(M=l==null?void 0:l.goodWx)==null?void 0:M.inEca)==null?void 0:de.time),1),e.createElementVNode("td",null,e.toDisplayString((ie=(re=l==null?void 0:l.allWx)==null?void 0:re.outEca)==null?void 0:ie.time),1),e.createElementVNode("td",null,e.toDisplayString((ce=(se=l==null?void 0:l.allWx)==null?void 0:se.inEca)==null?void 0:ce.time),1)]),e.createElementVNode("tr",null,[t[46]||(t[46]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Average Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e.createElementVNode("td",Hc,e.toDisplayString(((Ee=(pe=l==null?void 0:l.goodWx)==null?void 0:pe.outEca)==null?void 0:Ee.avgSpd)||"--"),1),e.createElementVNode("td",zc,e.toDisplayString(((ye=(me=l==null?void 0:l.goodWx)==null?void 0:me.inEca)==null?void 0:ye.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Ve=(Ne=l==null?void 0:l.allWx)==null?void 0:Ne.outEca)==null?void 0:Ve.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((xe=(fe=l==null?void 0:l.allWx)==null?void 0:fe.inEca)==null?void 0:xe.avgSpd)||"--"),1)]),e.createElementVNode("tr",null,[t[47]||(t[47]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",uc,e.toDisplayString(((ke=(be=l==null?void 0:l.goodWx)==null?void 0:be.outEca)==null?void 0:ke.sumFoCons)||"--"),1),e.createElementVNode("td",Ic,e.toDisplayString(((he=(Se=l==null?void 0:l.goodWx)==null?void 0:Se.inEca)==null?void 0:he.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((De=(Ce=l==null?void 0:l.allWx)==null?void 0:Ce.outEca)==null?void 0:De.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Te=(Be=l==null?void 0:l.allWx)==null?void 0:Be.inEca)==null?void 0:Te.sumFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[48]||(t[48]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",Uc,e.toDisplayString(((we=(We=l==null?void 0:l.goodWx)==null?void 0:We.outEca)==null?void 0:we.avgFoCons)||"--"),1),e.createElementVNode("td",Rc,e.toDisplayString(((Oe=(Ae=l==null?void 0:l.goodWx)==null?void 0:Ae.inEca)==null?void 0:Oe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Fe=(ge=l==null?void 0:l.allWx)==null?void 0:ge.outEca)==null?void 0:Fe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Pe=(_e=l==null?void 0:l.allWx)==null?void 0:_e.inEca)==null?void 0:Pe.avgFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",jc,e.toDisplayString(((Qt=(b=l==null?void 0:l.goodWx)==null?void 0:b.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),e.createElementVNode("td",Yc,e.toDisplayString(((Me=(Le=l==null?void 0:l.goodWx)==null?void 0:Le.inEca)==null?void 0:Me.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((He=(Ge=l==null?void 0:l.allWx)==null?void 0:Ge.outEca)==null?void 0:He.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ue=(ze=l==null?void 0:l.allWx)==null?void 0:ze.inEca)==null?void 0:ue.sumDgoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[50]||(t[50]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",Zc,e.toDisplayString(((Ue=(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.outEca)==null?void 0:Ue.avgDgoCons)||"--"),1),e.createElementVNode("td",qc,e.toDisplayString(((je=(Re=l==null?void 0:l.goodWx)==null?void 0:Re.inEca)==null?void 0:je.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString((($t=(Xt=l==null?void 0:l.allWx)==null?void 0:Xt.outEca)==null?void 0:$t.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((el=(vt=l==null?void 0:l.allWx)==null?void 0:vt.inEca)==null?void 0:el.avgDgoCons)||"--"),1)])])]),(tl=l==null?void 0:l.goodWx)!=null&&tl.distance?(e.openBlock(),e.createElementBlock("table",Kc,[t[53]||(t[53]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Date"),e.createElementVNode("th",null,"Time range"),e.createElementVNode("th",null,"Duration (hrs)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.noons[L],(S,eo)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:eo},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S,(ne,vl)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:vl},[ne.goodWx?(e.openBlock(),e.createElementBlock("tr",Jc,[e.createElementVNode("td",null,e.toDisplayString(ne.type)+" "+e.toDisplayString(n.computeUTCTime(ne.utc,"MMM-DD")),1),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(n.computeUTCTime(n.computePrevTime(ne),"MMM-DD/HHmm[Z],YYYY")),1),t[52]||(t[52]=e.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeUTCTime(ne.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(n.computeDuration(ne.utc,n.computePrevTime(ne))),1)])])):e.createCommentVNode("",!0)],64))),128))],64))),128))])])):e.createCommentVNode("",!0),(ll=r.exclusion[L])!=null&&ll.time?(e.openBlock(),e.createElementBlock("div",Qc," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):e.createCommentVNode("",!0),(ol=l==null?void 0:l.goodWx)!=null&&ol.distance?(e.openBlock(),e.createElementBlock("div",Xc,[e.createElementVNode("div",$c,[t[63]||(t[63]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",vc,[(nl=(al=a.report)==null?void 0:al.weather)!=null&&nl.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(Vl=(Nl=a.report)==null?void 0:Nl.weather)!=null&&Vl.disableWxFactor&&((xl=(fl=a.report)==null?void 0:fl.weather)!=null&&xl.disableCFactor)?(e.openBlock(),e.createElementBlock("span",lp,e.toDisplayString((bl=l==null?void 0:l.goodWx)==null?void 0:bl.pfmSpd)+" (kts)",1)):(Sl=(kl=a.report)==null?void 0:kl.weather)!=null&&Sl.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((hl=l==null?void 0:l.goodWx)==null?void 0:hl.avgSpd),1),t[56]||(t[56]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Cl=l==null?void 0:l.goodWx)==null?void 0:Cl.avgCf)>0?(Dl=l==null?void 0:l.goodWx)==null?void 0:Dl.avgCf:`(${(Bl=l==null?void 0:l.goodWx)==null?void 0:Bl.avgCf})`),1),t[57]||(t[57]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",op,e.toDisplayString((Tl=l==null?void 0:l.goodWx)==null?void 0:Tl.pfmSpd)+" (kts)",1)],64)):(wl=(Wl=a.report)==null?void 0:Wl.weather)!=null&&wl.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString((Al=l==null?void 0:l.goodWx)==null?void 0:Al.avgSpd),1),t[58]||(t[58]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Ol=l==null?void 0:l.goodWx)==null?void 0:Ol.avgWf)>0?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.avgWf:`(${(Fl=l==null?void 0:l.goodWx)==null?void 0:Fl.avgWf})`),1),t[59]||(t[59]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ap,e.toDisplayString((_l=l==null?void 0:l.goodWx)==null?void 0:_l.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString((Pl=l==null?void 0:l.goodWx)==null?void 0:Pl.avgSpd),1),t[61]||(t[61]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Ll=l==null?void 0:l.goodWx)==null?void 0:Ll.avgWf)>0?(Ml=l==null?void 0:l.goodWx)==null?void 0:Ml.avgWf:`(${(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.avgWf})`),1),(zl=(Hl=a.report)==null?void 0:Hl.weather)!=null&&zl.favorableCur&&((i=l==null?void 0:l.goodWx)==null?void 0:i.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[60]||(t[60]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((T=l==null?void 0:l.goodWx)==null?void 0:T.avgCf)>0?(j=l==null?void 0:l.goodWx)==null?void 0:j.avgCf:`(${(Y=l==null?void 0:l.goodWx)==null?void 0:Y.avgCf})`),1)],64)),t[62]||(t[62]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",np,e.toDisplayString((ae=l==null?void 0:l.goodWx)==null?void 0:ae.pfmSpd)+" (kts)",1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(rl=(dl=a.report)==null?void 0:dl.weather)!=null&&rl.favorableCur&&((il=l==null?void 0:l.goodWx)==null?void 0:il.avgCf)>0?(e.openBlock(),e.createElementBlock("span",tp,e.toDisplayString((yl=l==null?void 0:l.goodWx)==null?void 0:yl.pfmSpd)+" (kts)",1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((sl=l==null?void 0:l.goodWx)==null?void 0:sl.avgSpd),1),t[54]||(t[54]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((cl=l==null?void 0:l.goodWx)==null?void 0:cl.avgCf)>0?(pl=l==null?void 0:l.goodWx)==null?void 0:pl.avgCf:`(${(El=l==null?void 0:l.goodWx)==null?void 0:El.avgCf})`),1),t[55]||(t[55]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ep,e.toDisplayString((ml=l==null?void 0:l.goodWx)==null?void 0:ml.pfmSpd)+" (kts)",1)],64))],64)),((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",dp,"(Under-performance)")):e.createCommentVNode("",!0),((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",rp,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ip,[t[80]||(t[80]=e.createElementVNode("div",{class:"speed-left formula flex-space"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",sp,[(Ke=(qe=a.report)==null?void 0:qe.weather)!=null&&Ke.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(ve=($e=a.report)==null?void 0:$e.weather)!=null&&ve.disableWxFactor&&((tt=(et=a.report)==null?void 0:et.weather)!=null&&tt.disableCFactor)?(e.openBlock(),e.createElementBlock("label",cp,"GW Average Speed")):(ot=(lt=a.report)==null?void 0:lt.weather)!=null&&ot.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[69]||(t[69]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[70]||(t[70]=e.createElementVNode("label",null,"-",-1)),t[71]||(t[71]=e.createElementVNode("label",null,"GW Current Factor",-1))],64)):(nt=(at=a.report)==null?void 0:at.weather)!=null&&nt.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t[72]||(t[72]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[73]||(t[73]=e.createElementVNode("label",null,"-",-1)),t[74]||(t[74]=e.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t[77]||(t[77]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[78]||(t[78]=e.createElementVNode("label",null,"-",-1)),t[79]||(t[79]=e.createElementVNode("label",null,"GW Weather Factor",-1)),(rt=(dt=a.report)==null?void 0:dt.weather)!=null&&rt.favorableCur&&((it=l==null?void 0:l.goodWx)==null?void 0:it.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[75]||(t[75]=e.createElementVNode("label",null,"-",-1)),t[76]||(t[76]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(Qe=(Je=a.report)==null?void 0:Je.weather)!=null&&Qe.favorableCur&&((Xe=l==null?void 0:l.goodWx)==null?void 0:Xe.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[67]||(t[67]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[68]||(t[68]=e.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[64]||(t[64]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[65]||(t[65]=e.createElementVNode("label",null,"-",-1)),t[66]||(t[66]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(e.openBlock(),e.createElementBlock("div",pp,[e.createElementVNode("div",Ep,[t[86]||(t[86]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",mp,[(ct=(st=a.report)==null?void 0:st.weather)!=null&&ct.favorableCur&&((pt=l==null?void 0:l.allWx)==null?void 0:pt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((kt=l==null?void 0:l.allWx)==null?void 0:kt.avgSpd),1),t[84]||(t[84]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((St=l==null?void 0:l.allWx)==null?void 0:St.avgWf)>0?(ht=l==null?void 0:l.allWx)==null?void 0:ht.avgWf:`(${(Ct=l==null?void 0:l.allWx)==null?void 0:Ct.avgWf})`),1),t[85]||(t[85]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",Np,e.toDisplayString((Dt=l==null?void 0:l.allWx)==null?void 0:Dt.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((Et=l==null?void 0:l.allWx)==null?void 0:Et.avgSpd),1),t[81]||(t[81]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((mt=l==null?void 0:l.allWx)==null?void 0:mt.avgCf)>0?(yt=l==null?void 0:l.allWx)==null?void 0:yt.avgCf:`(${(Nt=l==null?void 0:l.allWx)==null?void 0:Nt.avgCf})`),1),t[82]||(t[82]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Vt=l==null?void 0:l.allWx)==null?void 0:Vt.avgWf)>0?(ft=l==null?void 0:l.allWx)==null?void 0:ft.avgWf:`(${(xt=l==null?void 0:l.allWx)==null?void 0:xt.avgWf})`),1),t[83]||(t[83]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",yp,e.toDisplayString((bt=l==null?void 0:l.allWx)==null?void 0:bt.pfmSpd)+" (kts)",1)],64)),((Bt=l==null?void 0:l.allWx)==null?void 0:Bt.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",Vp,"(Under-performance)")):e.createCommentVNode("",!0),((Tt=l==null?void 0:l.allWx)==null?void 0:Tt.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",fp,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xp,[t[96]||(t[96]=e.createElementVNode("div",{class:"speed-left formula row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",bp,[(wt=(Wt=a.report)==null?void 0:Wt.weather)!=null&&wt.favorableCur&&((At=l==null?void 0:l.allWx)==null?void 0:At.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[92]||(t[92]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[93]||(t[93]=e.createElementVNode("label",null,"-",-1)),t[94]||(t[94]=e.createElementVNode("label",null,"Weather Factor ",-1)),t[95]||(t[95]=e.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[87]||(t[87]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[88]||(t[88]=e.createElementVNode("label",null,"-",-1)),t[89]||(t[89]=e.createElementVNode("label",null,"Current Factor",-1)),t[90]||(t[90]=e.createElementVNode("label",null,"-",-1)),t[91]||(t[91]=e.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),e.createElementVNode("div",kp,[e.createElementVNode("div",Sp,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(L+1)+" Time Analysis",1),(gt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&gt.noExtrapolation?(e.openBlock(),e.createElementBlock("span",hp,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",Cp,[e.createElementVNode("div",Dp,[t[100]||(t[100]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Bp,[e.createElementVNode("div",Tp,[e.createElementVNode("div",null,e.toDisplayString((_t=(Ft=a.report)==null?void 0:Ft.weather)!=null&&_t.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[97]||(t[97]=e.createElementVNode("div",{class:"line"},null,-1)),t[98]||(t[98]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[99]||(t[99]=e.createElementVNode("div",null,"(a)",-1))])]),e.createElementVNode("div",Wp,[e.createElementVNode("div",wp,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Lt=(Pt=l==null?void 0:l.extend)==null?void 0:Pt.cp)==null?void 0:Lt.speed,"Under"))+"kts)",1),t[101]||(t[101]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Ap,[e.createElementVNode("div",Op,[e.createElementVNode("div",null,e.toDisplayString((Gt=(Mt=a.report)==null?void 0:Mt.weather)!=null&&Gt.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[102]||(t[102]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(zt=(Ht=l==null?void 0:l.extend)==null?void 0:Ht.cp)==null?void 0:zt.speed,"Under"))+"kts",1)]),t[103]||(t[103]=e.createElementVNode("div",null,"(b)",-1))])]),e.createElementVNode("div",gp,[e.createElementVNode("div",Fp,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(It=(ut=l==null?void 0:l.extend)==null?void 0:ut.cp)==null?void 0:It.speed,"Over"))+"kts)",1),t[104]||(t[104]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",_p,[e.createElementVNode("div",Pp,[e.createElementVNode("div",null,e.toDisplayString((Rt=(Ut=a.report)==null?void 0:Ut.weather)!=null&&Rt.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[105]||(t[105]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Yt=(jt=l==null?void 0:l.extend)==null?void 0:jt.cp)==null?void 0:Yt.speed,"Over"))+"kts",1)]),t[106]||(t[106]=e.createElementVNode("div",null,"(c)",-1))])]),t[107]||(t[107]=e.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-4bd4a6f6><div class="flex-space" style="width:300px;font-weight:400;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Time Lost</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(a)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Time Gained</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(c)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(a)</div></div></div>',1))]),e.createElementVNode("div",Lp,[e.createElementVNode("div",Mp,[t[108]||(t[108]=e.createElementVNode("label",null,"Time Lost",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(qt=(Zt=l==null?void 0:l.extend)==null?void 0:Zt.cp)==null?void 0:qt.speed,"Under"))+" kts) ",1)]),e.createElementVNode("div",Gp,[t[109]||(t[109]=e.createElementVNode("label",null,"Time Gained",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ul=(Kt=l==null?void 0:l.extend)==null?void 0:Kt.cp)==null?void 0:ul.speed,"Over"))+" kts) ",1)]),e.createElementVNode("div",Hp,[t[110]||(t[110]=e.createElementVNode("label",null,"No Time Lost and Gained",-1)),e.createElementVNode("div",null," Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Il=l==null?void 0:l.extend)==null?void 0:Il.cp)==null?void 0:Ul.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(jl=(Rl=l==null?void 0:l.extend)==null?void 0:Rl.cp)==null?void 0:jl.speed,"Under"))+" kts) ",1)])]),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(e.openBlock(),e.createElementBlock("div",zp,[e.createElementVNode("div",up,[t[114]||(t[114]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Ip,[e.createElementVNode("div",Up,[e.createElementVNode("div",null,e.toDisplayString((ql=(Zl=a.report)==null?void 0:Zl.weather)!=null&&ql.noExtrapolation?(Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.distance:(Jl=l==null?void 0:l.allWx)==null?void 0:Jl.distance),1),t[111]||(t[111]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.pfmSpd),1)]),t[112]||(t[112]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((no=l==null?void 0:l.timeConclusion)==null?void 0:no.timeAtPfmSpd)+" (hrs)",1),t[113]||(t[113]=e.createElementVNode("div",null,"(a')",-1))])]),e.createElementVNode("div",Rp,[e.createElementVNode("div",jp,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(io=(ro=l==null?void 0:l.extend)==null?void 0:ro.cp)==null?void 0:io.speed,"Under"))+"kts)",1),t[115]||(t[115]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Yp,[e.createElementVNode("div",Zp,[e.createElementVNode("div",null,e.toDisplayString((co=(so=a.report)==null?void 0:so.weather)!=null&&co.noExtrapolation?(po=l==null?void 0:l.goodWx)==null?void 0:po.distance:(Eo=l==null?void 0:l.allWx)==null?void 0:Eo.distance),1),t[116]||(t[116]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((mo=l==null?void 0:l.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),t[117]||(t[117]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((yo=l==null?void 0:l.timeConclusion)==null?void 0:yo.timeAtMinusAbtSpd)+" (hrs)",1),t[118]||(t[118]=e.createElementVNode("div",null,"(b')",-1))])]),e.createElementVNode("div",qp,[e.createElementVNode("div",Kp,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Vo=(No=l==null?void 0:l.extend)==null?void 0:No.cp)==null?void 0:Vo.speed,"Over"))+"kts)",1),t[119]||(t[119]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Jp,[e.createElementVNode("div",Qp,[e.createElementVNode("div",null,e.toDisplayString((xo=(fo=a.report)==null?void 0:fo.weather)!=null&&xo.noExtrapolation?(bo=l==null?void 0:l.goodWx)==null?void 0:bo.distance:(ko=l==null?void 0:l.allWx)==null?void 0:ko.distance),1),t[120]||(t[120]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((So=l==null?void 0:l.timeConclusion)==null?void 0:So.plusAbtSpd),1)]),t[121]||(t[121]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ho=l==null?void 0:l.timeConclusion)==null?void 0:ho.timeAtPlusAbtSpd)+" (hrs)",1),t[122]||(t[122]=e.createElementVNode("div",null,"(c')",-1))])]),e.createElementVNode("div",Xp,[((Co=l==null?void 0:l.timeConclusion)==null?void 0:Co.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",$p,[t[123]||(t[123]=e.createElementVNode("div",null,"Time Lost",-1)),t[124]||(t[124]=e.createElementVNode("div",null,"=",-1)),t[125]||(t[125]=e.createElementVNode("div",null,"(a') - (b')",-1)),t[126]||(t[126]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Do=l==null?void 0:l.timeConclusion)==null?void 0:Do.timeAtPfmSpd),1),t[127]||(t[127]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Bo=l==null?void 0:l.timeConclusion)==null?void 0:Bo.timeAtMinusAbtSpd),1),t[128]||(t[128]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((To=l==null?void 0:l.timeConclusion)==null?void 0:To.timeLost)+" (hrs)",1)])):((Wo=l==null?void 0:l.timeConclusion)==null?void 0:Wo.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",vp,[t[129]||(t[129]=e.createElementVNode("div",null,"Time Lost",-1)),t[130]||(t[130]=e.createElementVNode("div",null,"=",-1)),t[131]||(t[131]=e.createElementVNode("div",null,"(c') - (a')",-1)),t[132]||(t[132]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((wo=l==null?void 0:l.timeConclusion)==null?void 0:wo.timeAtPlusAbtSpd),1),t[133]||(t[133]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.timeAtPfmSpd),1),t[134]||(t[134]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Oo=l==null?void 0:l.timeConclusion)==null?void 0:Oo.timeGain)+" (hrs)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",e1,[t[135]||(t[135]=e.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),e.createElementVNode("div",{class:e.normalizeClass(((go=l==null?void 0:l.timeConclusion)==null?void 0:go.conclusionStatus)==="Lost"?"lost":((Fo=l==null?void 0:l.timeConclusion)==null?void 0:Fo.conclusionStatus)==="Gain"?"gain":"")},e.toDisplayString(((_o=l==null?void 0:l.timeConclusion)==null?void 0:_o.conclusion)||""),3)])])])):(e.openBlock(),e.createElementBlock("div",t1,e.toDisplayString(r.noGoodWxDay),1))]),e.createElementVNode("div",l1,[e.createElementVNode("div",o1,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(L+1)+" Consumption Analysis",1),(Lo=(Po=a.report)==null?void 0:Po.weather)!=null&&Lo.noExtrapolation?(e.openBlock(),e.createElementBlock("span",a1,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",n1,[e.createElementVNode("div",d1,[t[141]||(t[141]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.createElementVNode("div",null,e.toDisplayString((Go=(Mo=a.report)==null?void 0:Mo.weather)!=null&&Go.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[136]||(t[136]=e.createElementVNode("div",{class:"line"},null,-1)),t[137]||(t[137]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[138]||(t[138]=e.createElementVNode("div",null,"x",-1)),t[139]||(t[139]=e.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[e.createElementVNode("div",null,"Good Weather Consumption*"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"Good Weather Time")],-1)),t[140]||(t[140]=e.createElementVNode("div",null,"(d)",-1))])]),e.createElementVNode("div",s1,[t[142]||(t[142]=e.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((zo=(Ho=l.extend)==null?void 0:Ho.cp)==null?void 0:zo.dgo)>0?(e.openBlock(),e.createElementBlock("div",c1," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):e.createCommentVNode("",!0)]),e.createElementVNode("div",p1,[t[147]||(t[147]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",E1,[e.createElementVNode("div",m1,[e.createElementVNode("div",null,e.toDisplayString((Io=(uo=a.report)==null?void 0:uo.weather)!=null&&Io.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[143]||(t[143]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ro=(Uo=l==null?void 0:l.extend)==null?void 0:Uo.cp)==null?void 0:Ro.speed,"Under"))+"kts",1)]),t[144]||(t[144]=e.createElementVNode("div",null,"x",-1)),t[145]||(t[145]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[146]||(t[146]=e.createElementVNode("div",null,"(e)",-1))])]),e.createElementVNode("div",y1,[t[152]||(t[152]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",N1,[e.createElementVNode("div",V1,[e.createElementVNode("div",null,e.toDisplayString((Yo=(jo=a.report)==null?void 0:jo.weather)!=null&&Yo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[148]||(t[148]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(qo=(Zo=l==null?void 0:l.extend)==null?void 0:Zo.cp)==null?void 0:qo.speed,"Over"))+"kts",1)]),t[149]||(t[149]=e.createElementVNode("div",null,"x",-1)),t[150]||(t[150]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[151]||(t[151]=e.createElementVNode("div",null,"(f)",-1))])]),t[159]||(t[159]=e.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-4bd4a6f6><div class="flex-space" style="width:240px;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Fuel Over-consumption</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(d)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(e)</div></div><div class="flex-space" style="width:200px;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Fuel Saving</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(f)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(d)</div></div></div>',1)),((Jo=(Ko=l.extend)==null?void 0:Ko.cp)==null?void 0:Jo.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",f1,[t[155]||(t[155]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Over-consumption in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",x1,[e.createElementVNode("div",b1,[t[153]||(t[153]=e.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),t[154]||(t[154]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Xo=(Qo=a.report)==null?void 0:Qo.weather)!=null&&Xo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),e.createElementVNode("div",k1,[t[158]||(t[158]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Saving in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",S1,[e.createElementVNode("div",h1,[t[156]||(t[156]=e.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),t[157]||(t[157]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((vo=($o=a.report)==null?void 0:$o.weather)!=null&&vo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):e.createCommentVNode("",!0)]),t[243]||(t[243]=e.createElementVNode("div",{class:"formula-desc"},[e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Over-consumption"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Saving"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),e.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP")])],-1)),e.createElementVNode("div",C1,"Seg. "+e.toDisplayString(L+1)+" Fuel Oil",1),(ea=l==null?void 0:l.goodWx)!=null&&ea.distance?(e.openBlock(),e.createElementBlock("div",D1,[((la=(ta=l==null?void 0:l.goodWx)==null?void 0:ta.inEca)==null?void 0:la.distance)>0?(e.openBlock(),e.createElementBlock("div",B1,[t[165]||(t[165]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",T1,[e.createElementVNode("div",W1,[e.createElementVNode("div",null,e.toDisplayString((aa=(oa=l==null?void 0:l.goodWx)==null?void 0:oa.inEca)==null?void 0:aa.sumDgoCons),1)]),t[162]||(t[162]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",w1,[e.createElementVNode("div",null,e.toDisplayString((da=(na=l==null?void 0:l.extend)==null?void 0:na.cp)==null?void 0:da.dgo),1),t[160]||(t[160]=e.createElementVNode("div",{class:"line"},null,-1)),t[161]||(t[161]=e.createElementVNode("div",null,"24",-1))]),t[163]||(t[163]=e.createElementVNode("div",null,"*",-1)),e.createElementVNode("div",null,e.toDisplayString((ia=(ra=l==null?void 0:l.goodWx)==null?void 0:ra.inEca)==null?void 0:ia.time),1),t[164]||(t[164]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ca=(sa=l==null?void 0:l.fuelConclusion)==null?void 0:sa.fo)==null?void 0:ca.dgoAsFoCons)+" (mt)",1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",A1,[t[172]||(t[172]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",O1,[e.createElementVNode("div",g1,[e.createElementVNode("div",null,e.toDisplayString((Ea=(pa=a.report)==null?void 0:pa.weather)!=null&&Ea.noExtrapolation?(ma=l==null?void 0:l.goodWx)==null?void 0:ma.distance:(ya=l==null?void 0:l.allWx)==null?void 0:ya.distance),1),t[166]||(t[166]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Na=l==null?void 0:l.goodWx)==null?void 0:Na.pfmSpd),1)]),t[169]||(t[169]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",F1,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((Va=l==null?void 0:l.goodWx)==null?void 0:Va.sumFoCons),1),((xa=(fa=l==null?void 0:l.goodWx)==null?void 0:fa.inEca)==null?void 0:xa.distance)>0?(e.openBlock(),e.createElementBlock("span",_1,[t[167]||(t[167]=e.createElementVNode("span",null," + ",-1)),e.createElementVNode("span",null,e.toDisplayString((ka=(ba=l==null?void 0:l.fuelConclusion)==null?void 0:ba.fo)==null?void 0:ka.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[168]||(t[168]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Sa=l==null?void 0:l.goodWx)==null?void 0:Sa.time),1)]),t[170]||(t[170]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ca=(ha=l.fuelConclusion)==null?void 0:ha.fo)==null?void 0:Ca.entireCons)+" (mt)",1),t[171]||(t[171]=e.createElementVNode("div",null,"(d')",-1))])]),e.createElementVNode("div",P1,[t[179]||(t[179]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",L1,[e.createElementVNode("div",M1,[e.createElementVNode("div",null,e.toDisplayString((Ba=(Da=a.report)==null?void 0:Da.weather)!=null&&Ba.noExtrapolation?(Ta=l==null?void 0:l.goodWx)==null?void 0:Ta.distance:(Wa=l==null?void 0:l.allWx)==null?void 0:Wa.distance),1),t[173]||(t[173]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((wa=l==null?void 0:l.timeConclusion)==null?void 0:wa.minusAbtSpd),1)]),t[176]||(t[176]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",G1,[e.createElementVNode("div",null,e.toDisplayString((Oa=(Aa=l==null?void 0:l.fuelConclusion)==null?void 0:Aa.fo)==null?void 0:Oa.overTolerance),1),t[174]||(t[174]=e.createElementVNode("div",{class:"line"},null,-1)),t[175]||(t[175]=e.createElementVNode("div",null,"24",-1))]),t[177]||(t[177]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Fa=(ga=l.fuelConclusion)==null?void 0:ga.fo)==null?void 0:Fa.maxCons)+" (mt)",1),t[178]||(t[178]=e.createElementVNode("div",null,"(e')",-1))])]),e.createElementVNode("div",H1,[t[186]||(t[186]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",z1,[e.createElementVNode("div",u1,[e.createElementVNode("div",null,e.toDisplayString((Pa=(_a=a.report)==null?void 0:_a.weather)!=null&&Pa.noExtrapolation?(La=l==null?void 0:l.goodWx)==null?void 0:La.distance:(Ma=l==null?void 0:l.allWx)==null?void 0:Ma.distance),1),t[180]||(t[180]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ga=l==null?void 0:l.timeConclusion)==null?void 0:Ga.plusAbtSpd),1)]),t[183]||(t[183]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",I1,[e.createElementVNode("div",null,e.toDisplayString((za=(Ha=l==null?void 0:l.fuelConclusion)==null?void 0:Ha.fo)==null?void 0:za.underTolerance),1),t[181]||(t[181]=e.createElementVNode("div",{class:"line"},null,-1)),t[182]||(t[182]=e.createElementVNode("div",null,"24",-1))]),t[184]||(t[184]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ia=(ua=l.fuelConclusion)==null?void 0:ua.fo)==null?void 0:Ia.minCons)+" (mt)",1),t[185]||(t[185]=e.createElementVNode("div",null,"(f')",-1))])]),e.createElementVNode("div",U1,[((Ra=(Ua=l==null?void 0:l.fuelConclusion)==null?void 0:Ua.fo)==null?void 0:Ra.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",R1,[t[187]||(t[187]=e.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),t[188]||(t[188]=e.createElementVNode("div",null,"=",-1)),t[189]||(t[189]=e.createElementVNode("div",null,"(d') - (e')",-1)),t[190]||(t[190]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ya=(ja=l==null?void 0:l.fuelConclusion)==null?void 0:ja.fo)==null?void 0:Ya.entireCons),1),t[191]||(t[191]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((qa=(Za=l==null?void 0:l.fuelConclusion)==null?void 0:Za.fo)==null?void 0:qa.maxCons),1),t[192]||(t[192]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ja=(Ka=l==null?void 0:l.fuelConclusion)==null?void 0:Ka.fo)==null?void 0:Ja.overCons),1)]),(Xa=(Qa=l==null?void 0:l.goodWx)==null?void 0:Qa.inEca)!=null&&Xa.distance?(e.openBlock(),e.createElementBlock("div",j1,[t[194]||(t[194]=e.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),t[195]||(t[195]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",Y1,[e.createElementVNode("div",null,e.toDisplayString((va=($a=l==null?void 0:l.goodWx)==null?void 0:$a.inEca)==null?void 0:va.distance)+" * "+e.toDisplayString((tn=(en=l==null?void 0:l.fuelConclusion)==null?void 0:en.fo)==null?void 0:tn.overCons),1),t[193]||(t[193]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((on=(ln=a.report)==null?void 0:ln.weather)!=null&&on.noExtrapolation?(an=l==null?void 0:l.goodWx)==null?void 0:an.distance:(nn=l==null?void 0:l.allWx)==null?void 0:nn.distance),1)]),t[196]||(t[196]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.fo)==null?void 0:rn.foOverConsInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):((cn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.fo)==null?void 0:cn.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Z1,[t[197]||(t[197]=e.createElementVNode("div",null,"Fuel Oil Saving",-1)),t[198]||(t[198]=e.createElementVNode("div",null,"=",-1)),t[199]||(t[199]=e.createElementVNode("div",null,"(f') - (d')",-1)),t[200]||(t[200]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((En=(pn=l==null?void 0:l.fuelConclusion)==null?void 0:pn.fo)==null?void 0:En.minCons),1),t[201]||(t[201]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((yn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.fo)==null?void 0:yn.entireCons),1),t[202]||(t[202]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Vn=(Nn=l==null?void 0:l.fuelConclusion)==null?void 0:Nn.fo)==null?void 0:Vn.saving)+" (mt)",1)]),(xn=(fn=l==null?void 0:l.goodWx)==null?void 0:fn.inEca)!=null&&xn.distance?(e.openBlock(),e.createElementBlock("div",q1,[t[204]||(t[204]=e.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),t[205]||(t[205]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",K1,[e.createElementVNode("div",null,e.toDisplayString((kn=(bn=a.report)==null?void 0:bn.weather)!=null&&kn.noExtrapolation?(hn=(Sn=l==null?void 0:l.goodWx)==null?void 0:Sn.inEca)==null?void 0:hn.distance:(Dn=(Cn=l==null?void 0:l.allWx)==null?void 0:Cn.inEca)==null?void 0:Dn.distance)+" * "+e.toDisplayString((Tn=(Bn=l==null?void 0:l.fuelConclusion)==null?void 0:Bn.fo)==null?void 0:Tn.saving),1),t[203]||(t[203]=e.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),e.createElementVNode("div",null,e.toDisplayString((wn=(Wn=a.report)==null?void 0:Wn.weather)!=null&&wn.noExtrapolation?(An=l==null?void 0:l.goodWx)==null?void 0:An.distance:(On=l==null?void 0:l.allWx)==null?void 0:On.distance),1)]),t[206]||(t[206]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Fn=(gn=l==null?void 0:l.fuelConclusion)==null?void 0:gn.fo)==null?void 0:Fn.foSavingInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Pn=(_n=l==null?void 0:l.fuelConclusion)==null?void 0:_n.fo)==null?void 0:Pn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(Ln=l==null?void 0:l.fuelConclusion)==null?void 0:Ln.fo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[207]||(t[207]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((Hn=(Gn=l==null?void 0:l.fuelConclusion)==null?void 0:Gn.fo)==null?void 0:Hn.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",J1,e.toDisplayString(r.noGoodWxDay),1)),((un=(zn=l==null?void 0:l.extend)==null?void 0:zn.cp)==null?void 0:un.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Q1,[e.createElementVNode("div",X1,[t[208]||(t[208]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",$1,"Seg. "+e.toDisplayString(L+1)+" Diesel/Gas Oil",1)])]),(In=l==null?void 0:l.goodWx)!=null&&In.distance?(e.openBlock(),e.createElementBlock("div",v1,[e.createElementVNode("div",eE,[t[215]||(t[215]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",tE,[e.createElementVNode("div",lE,[e.createElementVNode("div",null,e.toDisplayString((Rn=(Un=a.report)==null?void 0:Un.weather)!=null&&Rn.noExtrapolation?(jn=l==null?void 0:l.goodWx)==null?void 0:jn.distance:(Yn=l==null?void 0:l.allWx)==null?void 0:Yn.distance),1),t[209]||(t[209]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Zn=l==null?void 0:l.goodWx)==null?void 0:Zn.pfmSpd),1)]),t[212]||(t[212]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",oE,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((qn=l==null?void 0:l.goodWx)==null?void 0:qn.sumDgoCons),1),((Jn=(Kn=l==null?void 0:l.goodWx)==null?void 0:Kn.inEca)==null?void 0:Jn.distance)>0?(e.openBlock(),e.createElementBlock("span",aE,[t[210]||(t[210]=e.createElementVNode("span",null," - ",-1)),e.createElementVNode("span",null,e.toDisplayString((Xn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.fo)==null?void 0:Xn.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[211]||(t[211]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString(($n=l==null?void 0:l.goodWx)==null?void 0:$n.time),1)]),t[213]||(t[213]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ed=(vn=l.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ed.entireCons)+" (mt)",1),t[214]||(t[214]=e.createElementVNode("div",null,"(d'')",-1))])]),e.createElementVNode("div",nE,[t[222]||(t[222]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",dE,[e.createElementVNode("div",rE,[e.createElementVNode("div",null,e.toDisplayString((ld=(td=a.report)==null?void 0:td.weather)!=null&&ld.noExtrapolation?(od=l==null?void 0:l.goodWx)==null?void 0:od.distance:(ad=l==null?void 0:l.allWx)==null?void 0:ad.distance),1),t[216]||(t[216]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((nd=l==null?void 0:l.timeConclusion)==null?void 0:nd.minusAbtSpd),1)]),t[219]||(t[219]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",iE,[e.createElementVNode("div",null,e.toDisplayString((rd=(dd=l==null?void 0:l.fuelConclusion)==null?void 0:dd.dgo)==null?void 0:rd.overTolerance),1),t[217]||(t[217]=e.createElementVNode("div",{class:"line"},null,-1)),t[218]||(t[218]=e.createElementVNode("div",null,"24",-1))]),t[220]||(t[220]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((sd=(id=l.fuelConclusion)==null?void 0:id.dgo)==null?void 0:sd.maxCons)+" (mt)",1),t[221]||(t[221]=e.createElementVNode("div",null,"(e'')",-1))])]),e.createElementVNode("div",sE,[t[229]||(t[229]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",cE,[e.createElementVNode("div",pE,[e.createElementVNode("div",null,e.toDisplayString((pd=(cd=a.report)==null?void 0:cd.weather)!=null&&pd.noExtrapolation?(Ed=l==null?void 0:l.goodWx)==null?void 0:Ed.distance:(md=l==null?void 0:l.allWx)==null?void 0:md.distance),1),t[223]||(t[223]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((yd=l==null?void 0:l.timeConclusion)==null?void 0:yd.plusAbtSpd),1)]),t[226]||(t[226]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",EE,[e.createElementVNode("div",null,e.toDisplayString((Vd=(Nd=l==null?void 0:l.fuelConclusion)==null?void 0:Nd.dgo)==null?void 0:Vd.underTolerance),1),t[224]||(t[224]=e.createElementVNode("div",{class:"line"},null,-1)),t[225]||(t[225]=e.createElementVNode("div",null,"24",-1))]),t[227]||(t[227]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xd=(fd=l.fuelConclusion)==null?void 0:fd.dgo)==null?void 0:xd.minCons)+" (mt)",1),t[228]||(t[228]=e.createElementVNode("div",null,"(f'')",-1))])]),e.createElementVNode("div",mE,[((kd=(bd=l==null?void 0:l.fuelConclusion)==null?void 0:bd.dgo)==null?void 0:kd.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",yE,[t[230]||(t[230]=e.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),t[231]||(t[231]=e.createElementVNode("div",null,"=",-1)),t[232]||(t[232]=e.createElementVNode("div",null,"(d'') - (e'')",-1)),t[233]||(t[233]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((hd=(Sd=l==null?void 0:l.fuelConclusion)==null?void 0:Sd.dgo)==null?void 0:hd.entireCons),1),t[234]||(t[234]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Dd=(Cd=l==null?void 0:l.fuelConclusion)==null?void 0:Cd.dgo)==null?void 0:Dd.maxCons),1),t[235]||(t[235]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Td=(Bd=l==null?void 0:l.fuelConclusion)==null?void 0:Bd.dgo)==null?void 0:Td.overCons),1)])):((wd=(Wd=l==null?void 0:l.fuelConclusion)==null?void 0:Wd.dgo)==null?void 0:wd.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",NE,[t[236]||(t[236]=e.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),t[237]||(t[237]=e.createElementVNode("div",null,"=",-1)),t[238]||(t[238]=e.createElementVNode("div",null,"(f'') - (d'')",-1)),t[239]||(t[239]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Od=(Ad=l==null?void 0:l.fuelConclusion)==null?void 0:Ad.dgo)==null?void 0:Od.minCons),1),t[240]||(t[240]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Fd=(gd=l==null?void 0:l.fuelConclusion)==null?void 0:gd.dgo)==null?void 0:Fd.entireCons),1),t[241]||(t[241]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Pd=(_d=l==null?void 0:l.fuelConclusion)==null?void 0:_d.dgo)==null?void 0:Pd.saving)+" (mt)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Md=(Ld=l==null?void 0:l.fuelConclusion)==null?void 0:Ld.dgo)==null?void 0:Md.conclusionStatus)==="Over"?"flex-center lost":((Hd=(Gd=l==null?void 0:l.fuelConclusion)==null?void 0:Gd.dgo)==null?void 0:Hd.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[242]||(t[242]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((ud=(zd=l==null?void 0:l.fuelConclusion)==null?void 0:zd.dgo)==null?void 0:ud.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",VE,e.toDisplayString(r.noGoodWxDay),1))],64)):e.createCommentVNode("",!0)])])}),128))])])}const xE=Jt(ls,[["render",fE],["__scopeId","data-v-4bd4a6f6"]]),Fm="",bE={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const t=[];return t.push(o.noonLength?"no-border-bottom":"no-border"),t.push(o.excluded?"excluded":o.goodWx?"good-wx":""),t.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,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeLng(){return function(o){return H.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return H.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,t=2,a="0.0"){return o?H.LngLatHelper.roundPrecision(o,t):a}}},watch:{report:{handler(o,t){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,t,a,s,r,n,E,d,c,f,y,N;this.showCF=((t=(o=this.report)==null?void 0:o.weather)==null?void 0:t.showCF)??!1,this.showAisDistance=((s=(a=this.report)==null?void 0:a.weather)==null?void 0:s.showAisDistance)??!0,this.showSig=((n=(r=this.report)==null?void 0:r.weather)==null?void 0:n.showSig)??!0,this.showSwell=((d=(E=this.report)==null?void 0:E.weather)==null?void 0:d.showSwell)??!0,this.showWave=((f=(c=this.report)==null?void 0:c.weather)==null?void 0:f.showWave)??!0,this.showWaterTemp=((N=(y=this.report)==null?void 0:y.weather)==null?void 0:N.waterTempSwitch)||!1}}},kE={class:"report-inventory"},SE={class:"section summary-section"},hE={class:"summary-block"},CE={class:"label",rowspan:"4"},DE={class:"section inventory-section"},BE={class:"inventory-block flex-center"},TE=["colspan"],WE={key:0,class:"label",colspan:"2"},wE={key:0,class:"label",rowspan:"2"},AE={key:1,class:"label",rowspan:"2"},OE={key:2,class:"label",rowspan:"2"},gE={key:3,class:"label",colspan:"2"},FE={key:4,class:"label",rowspan:"2"},_E={key:5,class:"label",colspan:"2"},PE={key:6,class:"label",rowspan:"2"},LE={key:7,class:"label",rowspan:"2"},ME={key:8,class:"label",rowspan:"2"},GE={key:0,class:"label"},HE={key:1,class:"label"},zE={key:2,class:"label"},uE={key:3,class:"label"},IE={class:"summary-tbody"};function UE(o,t,a,s,r,n){var E;return e.openBlock(),e.createElementBlock("div",kE,[e.createElementVNode("div",SE,[t[5]||(t[5]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Speed and Weather Analysis")])],-1)),e.createElementVNode("div",hE,[e.createElementVNode("table",null,[t[4]||(t[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),e.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Distance"),e.createElementVNode("div",{class:"text-units"},"(nm)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Time"),e.createElementVNode("div",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Average Speed"),e.createElementVNode("div",{class:"text-units"},"(kts)")]),e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Total Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")])]),e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label"},"FO"),e.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=a.report)==null?void 0:E.segments,(d,c)=>{var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z;return e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createElementVNode("tr",null,[e.createElementVNode("td",CE,e.toDisplayString(c+1),1),t[0]||(t[0]=e.createElementVNode("td",{class:"label"},"Entire Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((f=d==null?void 0:d.allWx)==null?void 0:f.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((y=d==null?void 0:d.allWx)==null?void 0:y.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((N=d==null?void 0:d.allWx)==null?void 0:N.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((B=d==null?void 0:d.allWx)==null?void 0:B.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((k=d==null?void 0:d.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[1]||(t[1]=e.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((m=d==null?void 0:d.goodWx)==null?void 0:m.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((V=d==null?void 0:d.goodWx)==null?void 0:V.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((h=d==null?void 0:d.goodWx)==null?void 0:h.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((p=d==null?void 0:d.goodWx)==null?void 0:p.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((x=d==null?void 0:d.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[2]||(t[2]=e.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((C=d==null?void 0:d.badWx)==null?void 0:C.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((D=d==null?void 0:d.badWx)==null?void 0:D.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((w=d==null?void 0:d.badWx)==null?void 0:w.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((A=d==null?void 0:d.badWx)==null?void 0:A.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((O=d==null?void 0:d.badWx)==null?void 0:O.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("td",{class:"label"},"Excluded Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((g=d==null?void 0:d.excluded)==null?void 0:g.sumDistance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((F=d==null?void 0:d.excluded)==null?void 0:F.sumDuration,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((_=d==null?void 0:d.excluded)==null?void 0:_.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((P=d==null?void 0:d.excluded)==null?void 0:P.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((z=d==null?void 0:d.excluded)==null?void 0:z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),e.createElementVNode("div",DE,[t[44]||(t[44]=e.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dd8a99c8><div class="flex-start" data-v-dd8a99c8><div class="legend good-wx" data-v-dd8a99c8></div><div class="label flex-end" data-v-dd8a99c8>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dd8a99c8><div class="legend adverse-wx" data-v-dd8a99c8></div><div class="label" data-v-dd8a99c8>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dd8a99c8><div class="legend excluded" data-v-dd8a99c8></div><div class="label" data-v-dd8a99c8>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dd8a99c8><label data-v-dd8a99c8>B</label><div data-v-dd8a99c8>BOSP</div><label data-v-dd8a99c8>N</label><div data-v-dd8a99c8>NOON</div><label data-v-dd8a99c8>E</label><div data-v-dd8a99c8>EOSP</div><label data-v-dd8a99c8>*</label><div data-v-dd8a99c8>Ship Reported Position</div></div></div><div class="text-tips text-right" style="font-size:12px;padding-bottom:8px;" data-v-dd8a99c8> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),e.createElementVNode("div",BE,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[6]||(t[6]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),t[7]||(t[7]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),t[9]||(t[9]=e.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),e.createElementVNode("th",{class:"label",colspan:n.computeWxColspan},"ORM Weather Analysis",8,TE),a.showFactor?(e.openBlock(),e.createElementBlock("th",WE,"Factor")):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),t[11]||(t[11]=e.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),e.createElementVNode("tr",null,[t[16]||(t[16]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),t[17]||(t[17]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),t[18]||(t[18]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[19]||(t[19]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Daily Cons. "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),r.showAisDistance?(e.openBlock(),e.createElementBlock("th",wE,[...t[12]||(t[12]=[e.createTextVNode("Spd",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),r.showAisDistance?(e.openBlock(),e.createElementBlock("th",AE,[...t[13]||(t[13]=[e.createTextVNode("Dis",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):e.createCommentVNode("",!0),t[20]||(t[20]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),r.showWave?(e.openBlock(),e.createElementBlock("th",OE,[...t[14]||(t[14]=[e.createTextVNode("Sea HT",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("th",gE,"Swell")):e.createCommentVNode("",!0),r.showSig?(e.openBlock(),e.createElementBlock("th",FE,[...t[15]||(t[15]=[e.createTextVNode("Sig Wave",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",_E,"Current")):e.createCommentVNode("",!0),t[21]||(t[21]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Avg. CF"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(e.openBlock(),e.createElementBlock("th",PE,"cFactor")):e.createCommentVNode("",!0),a.showFactor?(e.openBlock(),e.createElementBlock("th",LE,"wxFactor")):e.createCommentVNode("",!0),r.showWaterTemp?(e.openBlock(),e.createElementBlock("th",ME,"Water Temp.")):e.createCommentVNode("",!0),t[22]||(t[22]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[23]||(t[23]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Time"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[24]||(t[24]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Dis"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),t[26]||(t[26]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("BROB "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("DailyCons "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),t[29]||(t[29]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode(" Sea HT"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[33]||(t[33]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[34]||(t[34]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[35]||(t[35]=e.createElementVNode("th",{class:"label"},"BF",-1)),r.showSwell?(e.openBlock(),e.createElementBlock("th",GE,"Dir")):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("th",HE,[...t[30]||(t[30]=[e.createTextVNode("HT ",-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",zE,"Dir")):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",uE,[...t[31]||(t[31]=[e.createTextVNode("CF ",-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),t[36]||(t[36]=e.createElementVNode("th",{class:"label"},"RPM",-1)),t[37]||(t[37]=e.createElementVNode("th",{class:"label"},[e.createTextVNode("Slip "),e.createElementVNode("span",{class:"text-units"},"(%)")],-1)),t[38]||(t[38]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[39]||(t[39]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[40]||(t[40]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[41]||(t[41]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[42]||(t[42]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[43]||(t[43]=e.createElementVNode("th",{class:"label"},"BF",-1))])]),e.createElementVNode("tbody",IE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.inventory,(d,c)=>{var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R;return e.openBlock(),e.createElementBlock("tr",{key:c},[e.createElementVNode("td",{class:e.normalizeClass(d.segLength?"no-border-bottom":"no-border")},e.toDisplayString(d.segLength?d.seg:""),3),e.createElementVNode("td",{class:e.normalizeClass(["text-right",d.excluded?"excluded":d.goodWx?"good-wx":""])},e.toDisplayString(d.time),3),["B","E"].includes(d.abbrev)&&((f=d.noon)!=null&&f.port)?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},e.toDisplayString((y=d.noon)==null?void 0:y.port),3)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d._lat.pretty),3),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d._lng.pretty),3)],64)),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.speed:""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.fo:""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.dgo:""),3),r.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.avgSpdCalc:""),3)):e.createCommentVNode("",!0),r.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:3,class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.distanceCalc:""),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((B=(N=d.meteo)==null?void 0:N.wind)==null?void 0:B.direction)??"-"),3),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((m=(k=d.meteo)==null?void 0:k.wind)==null?void 0:m.scale)??"-"),3),r.showWave?(e.openBlock(),e.createElementBlock("td",{key:4,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((p=(h=(V=d.meteo)==null?void 0:V.wave)==null?void 0:h.wd)==null?void 0:p.height)??"-"),3)):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("td",{key:5,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((D=(C=(x=d.meteo)==null?void 0:x.wave)==null?void 0:C.swell)==null?void 0:D.direction)??"-"),3)):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("td",{key:6,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((O=(A=(w=d.meteo)==null?void 0:w.wave)==null?void 0:A.swell)==null?void 0:O.height)??"-"),3)):e.createCommentVNode("",!0),r.showSig?(e.openBlock(),e.createElementBlock("td",{key:7,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((_=(F=(g=d.meteo)==null?void 0:g.wave)==null?void 0:F.sig)==null?void 0:_.height)??"-"),3)):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("td",{key:8,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((z=(P=d.meteo)==null?void 0:P.current)==null?void 0:z.direction)??"-"),3)):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("td",{key:9,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((u=d.meteo)==null?void 0:u.cFactor)??"-"),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.dailyAvgCf:""),3),a.showFactor?(e.openBlock(),e.createElementBlock("td",{key:10,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(((I=d.meteo)==null?void 0:I.cFactor)??"--"),3)):e.createCommentVNode("",!0),a.showFactor?(e.openBlock(),e.createElementBlock("td",{key:11,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(((U=d.meteo)==null?void 0:U.wxFactor)??"--"),3)):e.createCommentVNode("",!0),r.showWaterTemp?(e.openBlock(),e.createElementBlock("td",{key:12,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(n.computePrecision((R=d.meteo)==null?void 0:R.sst,2,"--")),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.avgSpd||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.timeSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.distanceSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.rpm||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.slip||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(["A"].includes(d.abbrev)?"":d.noon.foBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(["A"].includes(d.abbrev)?"":d.noon.dgoBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.foCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.dgoCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.windDir||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.windBF||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.seasHt||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])])}const RE=Jt(bE,[["render",UE],["__scopeId","data-v-dd8a99c8"]]),_m="",jE={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,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,t){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=e.markRaw(Xl.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=e.markRaw(Xl.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=e.markRaw(Xl.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var N,B,k,m,V,h;let o=[];const t=[],a=[],s={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let r=0,n=0;const E=this.inventory.filter(p=>p.noon)||[],d=[];this.inventory.forEach((p,x)=>{var C,D;x===0&&d.push(p.utc),p.type==="EOSP"&&((C=this.inventory[x+1])==null?void 0:C.type)==="BOSP"&&(d.push(p.utc),d.push((D=this.inventory[x+1])==null?void 0:D.utc)),x===this.inventory.length-1&&d.push(p.utc)}),d.forEach((p,x)=>{if(x%2===0){const C=W(d[x+1]).diff(W(d[x]),"minute",!0);for(let D=0;D<=C+1;D++)t.push(this.computeUTCTime(W(d[x]).clone().utc().add(D,"m").format(),"MM-DD/HHmm[Z]"))}}),E.forEach((p,x)=>{var D,w,A,O,g,F,_,P,z,u,I,U,R,Z;const C=this.computeUTCTime(p.utc,"MM-DD/HHmm[Z]");if(p.noon&&!o.some(l=>l.slice(0,5)===p.utc.slice(5,10))&&o.push(C),x===E.length-1&&(o=o.filter(l=>l.slice(0,5)!==p.utc.slice(5,10)),o.push(C)),r=Math.ceil(((D=p.noon)==null?void 0:D.foCons)>r?(w=p.noon)==null?void 0:w.foCons:r),r=Math.ceil(((A=p.cp)==null?void 0:A.fo)>r?(O=p.cp)==null?void 0:O.fo:r),n=Math.ceil(((g=p.noon)==null?void 0:g.dgoCons)>n?(F=p.noon)==null?void 0:F.dgoCons:n),n=Math.ceil(((_=p.cp)==null?void 0:_.dgo)>n?(P=p.cp)==null?void 0:P.dgo:n),a.push([C,(z=p.noon)==null?void 0:z.avgSpd,(u=p.noon)==null?void 0:u.foCons,(I=p.noon)==null?void 0:I.dgoCons,p.avgSpdCalc,p.cp.speed,p.goodWx&&!p.excluded?100:0,p.cp.dgo,p.cp.fo,p.excluded?100:0]),x<E.length-1){const l=E[x+1];a.push([C,(U=l.noon)==null?void 0:U.avgSpd,(R=l.noon)==null?void 0:R.foCons,(Z=l.noon)==null?void 0:Z.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((p,x)=>x===0||x===o.length-1||x%c===0);const f={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:t,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:r+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:s.dateTime,y:s.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:s.dateTime,y:s.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:(B=(N=this.report)==null?void 0:N.weather)!=null&&B.believeRptDistance?s.noonAvgSpd:s.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:s.dateTime,y:s.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(f);const y={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:t,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:n+.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:s.dateTime,y:s.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:s.dateTime,y:s.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:(V=(m=this.report)==null?void 0:m.weather)!=null&&V.believeRptDistance?s.noonAvgSpd:s.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:s.dateTime,y:s.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.spdDgoConsChart)==null||h.setOption(y)},renderWxCurrChart(){var k;let o=[];const t=[],a=[],s={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let r=4;const n=this.inventory||[],E=[];n.forEach((m,V)=>{var h,p;V===0&&E.push(m.utc),m.type==="EOSP"&&((h=n[V+1])==null?void 0:h.type)==="BOSP"&&(E.push(m.utc),E.push((p=n[V+1])==null?void 0:p.utc)),V===n.length-1&&E.push(m.utc)}),E.forEach((m,V)=>{if(V%2===0){const h=W(E[V+1]).diff(W(E[V]),"minute",!0);for(let p=0;p<=h+1;p++)t.push(this.computeUTCTime(W(E[V]).clone().utc().add(p,"m").format(),"MM-DD/HHmm[Z]"))}}),n.forEach((m,V)=>{var p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z,l,L,q,K,J,Q,X,$,v,ee,te,le,oe;const h=this.computeUTCTime(m.utc,"MM-DD/HHmm[Z]");if(m.noon&&!o.some(M=>M.slice(0,5)===m.utc.slice(5,10))&&o.push(h),V===n.length-1&&(o=o.filter(M=>M.slice(0,5)!==m.utc.slice(5,10)),o.push(h)),r=Math.ceil(((C=(x=(p=m.meteo)==null?void 0:p.wave)==null?void 0:x.sig)==null?void 0:C.height)>r?(A=(w=(D=m.meteo)==null?void 0:D.wave)==null?void 0:w.sig)==null?void 0:A.height:r),a.push([h,((O=m.noon)==null?void 0:O.windBF)||((F=(g=m.meteo)==null?void 0:g.wind)==null?void 0:F.scale),(P=(_=m.meteo)==null?void 0:_.wind)==null?void 0:P.scale,(u=(z=m.meteo)==null?void 0:z.wind)==null?void 0:u.direction,(I=m.noon)==null?void 0:I.seasHt,(Z=(R=(U=m.meteo)==null?void 0:U.wave)==null?void 0:R.sig)==null?void 0:Z.height,m.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[s.anlyCurFct]),m.goodWx&&!m.excluded?20:0,m.excluded?20:0]),V<n.length-1){const M=n[V+1];a.push([h,((L=m.noon)==null?void 0:L.windBF)||((K=(q=m.meteo)==null?void 0:q.wind)==null?void 0:K.scale),(Q=(J=M.meteo)==null?void 0:J.wind)==null?void 0:Q.scale,($=(X=M.meteo)==null?void 0:X.wind)==null?void 0:$.direction,(v=M.noon)==null?void 0:v.seasHt,(le=(te=(ee=m.meteo)==null?void 0:ee.wave)==null?void 0:te.sig)==null?void 0:le.height,M.dailyAvgCf??((oe=a[a.length-1])==null?void 0:oe[s.anlyCurFct]),M.goodWx&&!M.excluded?20:0,M.excluded?20:0])}});const d=Math.ceil(o.length/10);o=o.filter((m,V)=>V===0||V===o.length-1||V%d===0);let c=-2.5,f=2.5,y=1,N=5;c<-2.5||f>2.5?(c=Math.floor(this.findMinValue(a,6)/5)*5,f=Math.ceil(this.findMaxValue(a,6)/5)*5,y=Math.ceil(Math.max([Math.abs(c),Math.abs(f)])/5),N=Math.ceil(Math.abs(c)/y)+Math.ceil(Math.abs(f)/y)):(y=.5,c=Math.floor(this.findMinValue(a,6)/.5)*y,f=2.5,N=Math.abs(c)/y+5);const B={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:t,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:f,interval:y,splitNumber:N,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(N-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:N,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(m,V)=>{if(m>=0)return m}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(N-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:N,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(m,V)=>{if(m>=0)return m},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:s.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:s.dateTime,y:s.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:s.dateTime,y:s.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(B)},findMaxValue(o,t){let a=-1/0;for(let s=0;s<o.length;s++){const r=o[s];if(r.length>=t+1){const n=r[t];typeof n=="number"&&!isNaN(n)&&Number(n)>a&&(a=n)}}return a},findMinValue(o,t){let a=1/0;for(let s=0;s<o.length;s++){const r=o[s];if(r.length>=t+1){const n=r[t];n<a&&(a=n)}}return a}}},YE={class:"report-summary"},ZE={class:"section chart-section"},qE={class:"chart-block"},KE={ref:"spdFoConsChart",class:"chart"},JE={ref:"spdDgoConsChart",class:"chart"},QE={ref:"currChart",class:"chart"},XE={class:"section map-section"},$E={class:"map-block"},vE={class:"flex-space"},em={class:"voyage-block bg-blue-light"},tm={class:"flex-space label-block",style:{width:"100%"}},lm={style:{"text-transform":"uppercase"}},om={class:"flex-space label-block",style:{width:"100%"}},am={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nm={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},dm={class:"flex-space label-block",style:{width:"100%"}},rm={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},im={class:"flex-space label-block",style:{width:"100%"}},sm={key:0,class:"flex-end",style:{flex:"1"}},cm={key:1,class:"flex-end",style:{flex:"1"}},pm={class:"flex-end",style:{width:"160px"}},Em={class:"flex-space label-block",style:{width:"100%"}},mm={key:0,class:"flex-end",style:{flex:"1"}},ym={key:1,class:"flex-end",style:{flex:"1"}},Nm={class:"flex-end",style:{width:"160px"}},Vm={class:"flex-space label-block",style:{width:"100%"}},fm={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},xm=["src"];function bm(o,t,a,s,r,n){var E,d,c,f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P;return e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",ZE,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-shuju"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),e.createElementVNode("div",qE,[e.createElementVNode("div",KE,null,512),e.createElementVNode("div",JE,null,512),e.createElementVNode("div",QE,null,512)])]),e.createElementVNode("div",XE,[t[8]||(t[8]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-line-light"}),e.createElementVNode("div",{class:"title"},"Voyage Map")])],-1)),e.createElementVNode("div",$E,[e.createElementVNode("div",vE,[e.createElementVNode("div",em,[e.createElementVNode("div",tm,[t[1]||(t[1]=e.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),e.createElementVNode("span",lm,e.toDisplayString(a.report.preparedFor),1)]),e.createElementVNode("div",om,[t[2]||(t[2]=e.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),e.createElementVNode("span",am,e.toDisplayString((d=(E=a.report)==null?void 0:E.vessel)==null?void 0:d.name),1),e.createElementVNode("span",nm,"("+e.toDisplayString((f=(c=a.report)==null?void 0:c.vessel)==null?void 0:f.type)+")",1)]),e.createElementVNode("div",dm,[t[3]||(t[3]=e.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),e.createElementVNode("span",rm,e.toDisplayString((N=(y=a.report)==null?void 0:y.voyage)==null?void 0:N.number),1)]),e.createElementVNode("div",im,[t[4]||(t[4]=e.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(B=a.report)==null?void 0:B.departure)!=null&&k.portName?(e.openBlock(),e.createElementBlock("span",sm,e.toDisplayString((V=(m=a.report)==null?void 0:m.departure)==null?void 0:V.portName),1)):(e.openBlock(),e.createElementBlock("div",cm,e.toDisplayString(n.computePosition((h=a.report)==null?void 0:h.departure)),1)),e.createElementVNode("span",pm,e.toDisplayString(n.computeUTCTime((p=a.report.departure)==null?void 0:p.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Em,[t[5]||(t[5]=e.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(C=(x=a.report)==null?void 0:x.arrival)!=null&&C.portName?(e.openBlock(),e.createElementBlock("span",mm,e.toDisplayString((w=(D=a.report)==null?void 0:D.arrival)==null?void 0:w.portName),1)):(e.openBlock(),e.createElementBlock("div",ym,e.toDisplayString(n.computePosition((A=a.report)==null?void 0:A.arrival)),1)),e.createElementVNode("span",Nm,e.toDisplayString(n.computeUTCTime((g=(O=a.report)==null?void 0:O.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Vm,[t[6]||(t[6]=e.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),e.createElementVNode("span",fm,e.toDisplayString((_=(F=a.report)==null?void 0:F.voyage)==null?void 0:_.loadCondition),1)])]),t[7]||(t[7]=e.createStaticVNode('<div class="legend-block" data-v-f6e8f936><div data-v-f6e8f936>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>0812</div><div data-v-f6e8f936><div data-v-f6e8f936>08 - Day of the month</div><div data-v-f6e8f936>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-f6e8f936></i></div><div data-v-f6e8f936><div data-v-f6e8f936>Wind from N (000)</div><div data-v-f6e8f936>Each bard = 10 kts</div><div data-v-f6e8f936>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>W 4</div><div data-v-f6e8f936>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div class="good-wx" data-v-f6e8f936>Date</div><div data-v-f6e8f936>Good weather days</div></div></div>',1))]),e.createElementVNode("img",{src:(P=a.report)==null?void 0:P.chartUrl,alt:""},null,8,xm)])]),t[9]||(t[9]=e.createStaticVNode('<div class="section method-section" data-v-f6e8f936><div class="header-block" data-v-f6e8f936><div class="bg-block" data-v-f6e8f936><i class="iconfont icon-baobiao" data-v-f6e8f936></i><div class="title" data-v-f6e8f936>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>1. Good Weather Method</div><div class="method-body" data-v-f6e8f936> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-f6e8f936> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-f6e8f936> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-f6e8f936> 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. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>4. “About”</div><div class="method-body" data-v-f6e8f936> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>6. Further reference materials</div><div class="method-body" data-v-f6e8f936>Please send mail to <a href="mailto:op@ormwx.com" data-v-f6e8f936>op@ormwx.com</a>.</div></div></div></div>',1))])}const km=Jt(jE,[["render",bm],["__scopeId","data-v-f6e8f936"]]),Pm="",Lm="",Sm={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,t){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((t,a)=>t.date<a.date);o==null||o.forEach((t,a)=>{var c,f;let s="<div>";t.to.includes("op@ormwx.com")||t.source==="VRT"?(((f=(c=t.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:f.split("\\n")).forEach(N=>{const B=`<p>${N}</p>`;s=s+B}),s=s+"</div>"):s=t.body;const r=document.getElementById("col1"),n=document.getElementById("col2"),E=(r==null?void 0:r.offsetHeight)||0,d=(n==null?void 0:n.offsetHeight)||0;if(E<=d){let N=`<div class="${t.to.includes("op@ormwx.com")||t.source==="VRT"?"vrpt-mail-item vrpt-item-left vrpt-inbox":"vrpt-mail-item vrpt-item-left vrpt-outbox"}">
1
+ (function(G,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@wangeditor/editor-for-vue"),require("@idmui/basic"),require("moment"),require("echarts"),require("@idm-plugin/geo")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor-for-vue","@idmui/basic","moment","echarts","@idm-plugin/geo"],e):(G=typeof globalThis<"u"?globalThis:G||self,e(G["idmui-extend"]={},G.Vue,G["@wangeditor/editor-for-vue"],G["@idmui/basic"],G.moment,G.echarts,G["@idm-plugin/geo"]))})(this,function(G,e,to,Ql,W,Jd,H){"use strict";function Qd(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const a in o)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(o,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>o[a]})}}return t.default=o,Object.freeze(t)}const Xl=Qd(Jd),Am="",Jt=(o,t)=>{const a=o.__vccOpts||o;for(const[s,r]of t)a[s]=r;return a},Xd={name:"IdmEditor",components:{Editor:to.Editor,Toolbar:to.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 t,a;o?(t=this.editor)==null||t.disable():(a=this.editor)==null||a.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var t;this.editorRef=e.shallowRef(),this.editor=Object.seal(o),this.valueHtml=this.modelValue,(t=this.editor)==null||t.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()}}},$d={class:"editor-box"};function vd(o,t,a,s,r,n){const E=e.resolveComponent("Toolbar"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",$d,[e.withDirectives(e.createVNode(E,{editor:r.editor,"default-config":r.toolbarConfig,mode:r.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!a.disabled]]),e.createVNode(d,{modelValue:r.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=c=>r.valueHtml=c),"default-config":r.editorConfig,mode:r.mode,class:"editor",style:e.normalizeStyle({height:a.height}),onOnCreated:n.handleCreated,onOnChange:n.handleChange,onOnBlur:n.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const $l=Jt(Xd,[["render",vd],["__scopeId","data-v-9854b172"]]),er={install(o){o.component("IdmEditor",$l)}},Om="",tr={name:"PlanReport",components:{Editor:$l,IdmBrand:Ql.IdmBrand,IdmLoading:Ql.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,t;return this.print?!1:(t=(o=this.plan)==null?void 0:o.voyage)==null?void 0:t.showCost},computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeLTime(){return function(o,t,a,s){let r=0;return a&&t&&(r=H.LngLatHelper.guessTimeZoneOffset(t,a)),`${W(o).utcOffset(s??r).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,t){var a,s,r,n,E;if(t===0)return"-";{const d=W((r=(s=(a=o==null?void 0:o.speeds)==null?void 0:a[t])==null?void 0:s.speed)==null?void 0:r.eta).diff(W((E=(n=o==null?void 0:o.speeds)==null?void 0:n[0])==null?void 0:E.speed.eta),"h",!0);return Math.round(d*100)/100}}},computeCostDiff(){return function(o,t){var a,s,r,n,E,d,c;if(t===0)return"-";{const f=Number((n=(r=(s=(a=o==null?void 0:o.speeds)==null?void 0:a[t])==null?void 0:s.speed)==null?void 0:r.cost)==null?void 0:n.total)-Number((c=(d=(E=o==null?void 0:o.speeds)==null?void 0:E[0])==null?void 0:d.speed)==null?void 0:c.cost.total);return`${(Math.round(f/1e3*100)/100).toLocaleString("en-US")}k`}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const a=Number("1".padEnd(t+1,"0"));return Math.round(o*a)/a}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,t){const a=[];for(let s=0;s<t.length;s++){const r=t[s],n=t[s-1];n&&(r.avgBearing=n.bearing),a.push(r),r.suspend&&(o!=null&&o.useRouteParam)&&a.push({etd:r.etd,eta:r.etd,isResume:!0,memo:`Stoppage: ${r.suspend}hrs`})}return a}},computeDegree(){return function(o,t,a){t=t%360;for(let s=0;s<17;s++)if(s*22.5+t+11.25>=360){let r=(16-s)*22.5;a||(r=r+180);let n="";return o==="wind"?n="var(--orm-wind)":o==="wave"?n="var(--orm-wave)":o==="swell"?n="var(--orm-swell)":o==="current"&&(n="var(--orm-current)"),`transform:rotate(${r}deg);margin-left:3px;color: ${n}`}}},computeDay(){return function(o,t=0){var n,E,d,c;const a=(c=(d=(E=(n=o==null?void 0:o.speeds)==null?void 0:n[t])==null?void 0:E.speed)==null?void 0:d.sample)==null?void 0:c.hours,s=a==null?void 0:a[0],r=a==null?void 0:a[(a==null?void 0:a.length)-1];return Math.round(W(r==null?void 0:r.eta).diff(W(s==null?void 0:s.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var a,s;let t=0;return(s=(a=o==null?void 0:o.sample)==null?void 0:a.wps)==null||s.forEach(r=>{t+=r.suspend||0}),t?Math.round(t*100)/100:"-"}},computeModel(){return function(o){const t=o==null?void 0:o.source;return["ec","cmems"].includes(t==null?void 0:t.toLowerCase())?"The forecast data is sourced from EC":`The forecast data is sourced from ${t}`}},computeCog(){return function(o){return isNaN(o)?"-":H.LngLatHelper.padNumber(o,3,0)}},computeLat(){return(o,t=4)=>H.LngLatHelper.lat2pretty(o,t).pretty},computeLng(){return(o,t=4)=>H.LngLatHelper.lng2pretty(o,t).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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{plan:{handler(){var o,t;(o=this.plan)!=null&&o.id&&(this.loading=!1,this.advisory=((t=this.plan)==null?void 0:t.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=Xl.init(this.$refs.echart)),this.renderEchart()},renderEchart(){var n,E,d,c,f,y,N;const o=[],t=[],a={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8};let s=4;(y=(f=(c=(d=(E=(n=this.plan)==null?void 0:n.speeds)==null?void 0:E[this.speedIndex])==null?void 0:d.speed)==null?void 0:c.sample)==null?void 0:f.hours)==null||y.forEach(B=>{var m,V,h,p,x,C,D,w,A,O;const k=B.meteo;if(k){const g=W(k.utc).utc().format("MMM-DD/HHmm[Z]");o.push(g),s=Math.ceil(((V=(m=k.wave)==null?void 0:m.sig)==null?void 0:V.height)>s?(p=(h=k.wave)==null?void 0:h.sig)==null?void 0:p.height:s),t.push([g,(x=k.wind)==null?void 0:x.kts,(D=(C=k.wave)==null?void 0:C.sig)==null?void 0:D.height,(w=k.wind)==null?void 0:w.direction,(A=k.wind)==null?void 0:A.degree,(O=k.wind)==null?void 0:O.scale,B.cFactor,B.wFactor,B.speed])}});const r={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}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:25,minInterval:5,axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:20,max:s,min:0,minInterval:1,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:35,minInterval:.5,axisLine:{lineStyle:{color:"rgba(178, 51, 220, 1)"}},splitLine:{show:!0},alignTicks:!0}],series:[{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!0,encode:{x:a.dateTime,y:a.speed},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:1,encode:{x:a.dateTime,y:a.windSpeed},lineStyle:{color:"rgba(54, 212, 0, 1)",type:"dashed"},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:t,z:2},{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(1, 189, 211, 1)"},{offset:.5,color:"rgba(1, 189, 211, 0.3)"},{offset:1,color:"rgba(1, 189, 211, 0)"}]}},lineStyle:{color:"rgba(1, 189, 211, 1)"},itemStyle:{color:"rgba(1, 189, 211, 1)"},encode:{x:a.dateTime,y:a.waveHeight},data:t,z:3},{name:"Current Factor",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:a.dateTime,y:a.currentFactor},lineStyle:{color:"rgba(178, 51, 220, 1)",type:"dotted"},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:t,z:4}]};(N=this.echart)==null||N.setOption(r)}}},lr={class:"orm-plan-report"},or={key:0,class:"loading-block"},ar={class:"info-block"},nr={class:"col"},dr={class:"label-block"},rr={class:"text"},ir={class:"label-block"},sr={class:"text"},cr={class:"label-block"},pr={class:"text"},Er={class:"col"},mr={class:"label-block"},yr={key:0},Nr={key:1},Vr={style:{"margin-left":"16px"}},fr={class:"label-block"},xr={key:0},br={key:1},kr={style:{"margin-left":"16px"}},Sr={class:"label-block"},hr={class:"text"},Cr={class:"section chart-section"},Dr=["src"],Br={class:"legends text-tips"},Tr={class:"legend"},Wr={key:0,class:"legend"},wr={key:1,class:"legend"},Ar={key:1,class:"empty"},Or={class:"section comparison-section"},gr={key:0,style:{"font-size":"12px"}},Fr={key:0},_r=["rowspan"],Pr={key:0},Lr={key:1},Mr={rowspan:"2"},Gr={rowspan:"2"},Hr={key:0},zr={key:1},ur={rowspan:"1"},Ir={key:0},Ur={rowspan:"2"},Rr={rowspan:"2"},jr={rowspan:"2"},Yr={key:0},Zr={key:0},qr=["rowspan"],Kr={key:0},Jr={rowspan:"1"},Qr={key:0},Xr={key:0},$r={key:1},vr={class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},ei={key:0},ti={class:"section waypoint-section"},li={class:"header-block"},oi={class:"bg-block"},ai={class:"title"},ni={key:0,class:"flex-end",style:{flex:"1"}},di=["onClick"],ri={class:"advisory bg-blue-light-2"},ii=["innerHTML"],si={class:"major-waypoint"},ci={class:"major-body"},pi={class:"cell-item flex",style:{flex:"2.5"}},Ei={key:0,class:"flex-center"},mi={key:1,class:"flex-center"},yi={key:0,style:{"margin-left":"3px"}},Ni={class:"cell-item flex",style:{flex:"1.5"}},Vi={key:0,style:{"margin-left":"4px","font-weight":"600"}},fi={key:0,class:"cell-item flex offset"},xi={key:1,class:"cell-item flex nbsp"},bi={key:2,class:"cell-item flex offset"},ki={key:3,class:"cell-item flex nbsp"},Si={key:4,class:"cell-item flex offset"},hi={key:5,class:"cell-item flex nbsp"},Ci={key:6,class:"cell-item flex offset"},Di={key:7,class:"cell-item flex nbsp"},Bi={key:8,class:"cell-item flex offset"},Ti={key:9,class:"cell-item flex nbsp"},Wi={class:"section forecast-section"},wi={style:{"page-break-inside":"avoid"}},Ai={class:"header-block"},Oi={class:"bg-block"},gi={class:"title"},Fi={key:0,class:"flex-end",style:{flex:"1"}},_i=["onClick"],Pi={class:"echart-block"},Li={ref:"echart",class:"echart"},Mi={class:"text-tips text-right print-hidden",style:{"margin-bottom":"4px","font-size":"12px"}},Gi={style:{"font-size":"12px"}},Hi=["colspan"],zi={key:0},ui={class:"flex-center"},Ii={class:"degree-box"},Ui={key:0},Ri={key:2},ji={key:0},Yi={class:"degree-box"},Zi={key:0},qi={key:2},Ki={class:"degree-box"},Ji={key:0},Qi={key:2},Xi={class:"degree-box"},$i={key:0},vi={key:2};function es(o,t,a,s,r,n){var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z,l,L,q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe,b,Qt,Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je,Xt,$t,vt,el,tl,ll,ol,al,nl,dl,rl,il,sl,cl,pl,El,ml,yl,Nl,Vl,fl,xl,bl,kl,Sl,hl,Cl,Dl,Bl,Tl,Wl,wl,Al,Ol,gl,Fl,_l,Pl,Ll,Ml,Gl,Hl,zl;const E=e.resolveComponent("IdmBrand"),d=e.resolveComponent("IdmLoading"),c=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",lr,[e.createVNode(E,{name:"Voyage Planning",issued:(f=a.plan)==null?void 0:f.updatedAt},null,8,["issued"]),r.loading?(e.openBlock(),e.createElementBlock("div",or,[e.createVNode(d,{loading:r.loading,onTimeout:t[0]||(t[0]=i=>r.loading=!1)},null,8,["loading"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",ar,[e.createElementVNode("div",nr,[e.createElementVNode("div",dr,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",rr,e.toDisplayString((B=(N=(y=a.plan)==null?void 0:y.voyage)==null?void 0:N.company)==null?void 0:B.name),1)]),e.createElementVNode("div",ir,[t[9]||(t[9]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",sr,e.toDisplayString((V=(m=(k=a.plan)==null?void 0:k.voyage)==null?void 0:m.vessel)==null?void 0:V.name)+" ("+e.toDisplayString((C=(x=(p=(h=a.plan)==null?void 0:h.voyage)==null?void 0:p.vessel)==null?void 0:x.vesselType)==null?void 0:C.name)+")",1)]),e.createElementVNode("div",cr,[t[10]||(t[10]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",pr,e.toDisplayString(((w=(D=a.plan)==null?void 0:D.voyage)==null?void 0:w.voyNum)||((O=(A=a.plan)==null?void 0:A.voyage)==null?void 0:O.number)),1)])]),e.createElementVNode("div",Er,[e.createElementVNode("div",mr,[t[11]||(t[11]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(_=(F=(g=a.plan)==null?void 0:g.leg)==null?void 0:F.departure)!=null&&_.name?(e.openBlock(),e.createElementBlock("span",yr,e.toDisplayString((u=(z=(P=a.plan)==null?void 0:P.leg)==null?void 0:z.departure)==null?void 0:u.name),1)):(e.openBlock(),e.createElementBlock("span",Nr,e.toDisplayString(n.computePosition((U=(I=a.plan)==null?void 0:I.leg)==null?void 0:U.departure)),1)),e.createElementVNode("span",Vr,e.toDisplayString(n.computeUTCTime(((l=(Z=(R=a.plan)==null?void 0:R.leg)==null?void 0:Z.departure)==null?void 0:l.atd)||((K=(q=(L=a.plan)==null?void 0:L.leg)==null?void 0:q.departure)==null?void 0:K.etd)||(($=(X=(Q=(J=a.plan)==null?void 0:J.speeds)==null?void 0:Q[r.speedIndex])==null?void 0:X.speed)==null?void 0:$.etd),"MMM-DD/HHmm[Z], yyyy")),1)]),e.createElementVNode("div",fr,[t[12]||(t[12]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(te=(ee=(v=a.plan)==null?void 0:v.leg)==null?void 0:ee.destination)!=null&&te.name?(e.openBlock(),e.createElementBlock("span",xr,e.toDisplayString((M=(oe=(le=a.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:M.name),1)):(e.openBlock(),e.createElementBlock("span",br,e.toDisplayString(n.computePosition((re=(de=a.plan)==null?void 0:de.leg)==null?void 0:re.destination)),1)),e.createElementVNode("span",kr,e.toDisplayString(n.computeUTCTime(((pe=(ce=(se=(ie=a.plan)==null?void 0:ie.speeds)==null?void 0:se[r.speedIndex])==null?void 0:ce.speed)==null?void 0:pe.ata)||((Ne=(ye=(me=(Ee=a.plan)==null?void 0:Ee.speeds)==null?void 0:me[r.speedIndex])==null?void 0:ye.speed)==null?void 0:Ne.eta),"MMM-DD/HHmm, yyyy[Z]")),1)]),e.createElementVNode("div",Sr,[t[13]||(t[13]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",hr,e.toDisplayString((fe=(Ve=a.plan)==null?void 0:Ve.voyage)==null?void 0:fe.loadCondition),1)])])]),e.createElementVNode("div",Cr,[t[20]||(t[20]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Weather chart")])],-1)),(xe=a.plan)!=null&&xe.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",null,[e.createElementVNode("img",{src:a.plan.chartUrl},null,8,Dr)]),e.createElementVNode("div",Br,[t[17]||(t[17]=e.createStaticVNode('<div class="legend" data-v-031623d6><span class="dangerous" data-v-031623d6></span><span data-v-031623d6>Danger</span></div><div class="legend" data-v-031623d6><span class="severe" data-v-031623d6></span><span data-v-031623d6>Severe</span></div><div class="legend" data-v-031623d6><span class="heavy" data-v-031623d6></span><span data-v-031623d6>Heavy</span></div>',3)),e.createElementVNode("div",Tr,[t[14]||(t[14]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=i=>{r.speedIndex=0,n.renderEchart()})},e.toDisplayString((Ce=(he=(Se=(ke=(be=a.plan)==null?void 0:be.speeds)==null?void 0:ke[0])==null?void 0:Se.speed)==null?void 0:he.lane)==null?void 0:Ce.name),1)]),((Be=(De=a.plan)==null?void 0:De.speeds)==null?void 0:Be.length)>1?(e.openBlock(),e.createElementBlock("div",Wr,[t[15]||(t[15]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=i=>{r.speedIndex=1,n.renderEchart()})},e.toDisplayString((Oe=(Ae=(we=(We=(Te=a.plan)==null?void 0:Te.speeds)==null?void 0:We[1])==null?void 0:we.speed)==null?void 0:Ae.lane)==null?void 0:Oe.name),1)])):e.createCommentVNode("",!0),((Fe=(ge=a.plan)==null?void 0:ge.speeds)==null?void 0:Fe.length)>2?(e.openBlock(),e.createElementBlock("div",wr,[t[16]||(t[16]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=i=>{r.speedIndex=2,n.renderEchart()})},e.toDisplayString((Le=(Qt=(b=(Pe=(_e=a.plan)==null?void 0:_e.speeds)==null?void 0:Pe[2])==null?void 0:b.speed)==null?void 0:Qt.lane)==null?void 0:Le.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",Ar,[e.createElementVNode("span",null,[t[18]||(t[18]=e.createTextVNode("Weather chart in cooking ",-1)),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...i)=>n.handleRefresh&&n.handleRefresh(...i))},"Refresh"),t[19]||(t[19]=e.createTextVNode(" later please",-1))])]))]),e.createElementVNode("div",Or,[(Ge=(Me=a.plan)==null?void 0:Me.speeds)!=null&&Ge.length?(e.openBlock(),e.createElementBlock("table",gr,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[23]||(t[23]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[24]||(t[24]=e.createElementVNode("th",null,[e.createTextVNode("SPD "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{clospan:"2"},[e.createTextVNode("DTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[26]||(t[26]=e.createElementVNode("th",null,[e.createTextVNode("ETA "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(LT)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Stop "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{colspan:"2"},[e.createTextVNode("Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),n.showCost?(e.openBlock(),e.createElementBlock("th",Fr,[...t[21]||(t[21]=[e.createTextVNode("TTL Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",{rowspan:n.showCost?1:2},[...t[22]||(t[22]=[e.createTextVNode("Diff Time ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(h)",-1)])],8,_r),t[29]||(t[29]=e.createElementVNode("th",null,"Weather en route",-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",null,[e.createTextVNode("*Daily Cons "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[33]||(t[33]=e.createElementVNode("th",null,[e.createTextVNode("TTG "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[34]||(t[34]=e.createElementVNode("th",null,[e.createTextVNode("Avg.Spd/Wx.F/Cur.F "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[35]||(t[35]=e.createElementVNode("th",null,"*FO",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*DO/GO",-1)),n.showCost?(e.openBlock(),e.createElementBlock("th",Pr,[...t[30]||(t[30]=[e.createTextVNode("*Hire / Bunker ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),n.showCost?(e.openBlock(),e.createElementBlock("th",Lr,[...t[31]||(t[31]=[e.createTextVNode("Diff Cost ",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(USD)",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("th",null,"*in the next "+e.toDisplayString(n.computeDay(a.plan,0))+" days",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((He=a.plan)==null?void 0:He.speeds,(i,T)=>{var j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt;return e.openBlock(),e.createElementBlock(e.Fragment,{key:T},[e.createElementVNode("tr",null,[e.createElementVNode("td",Mr,e.toDisplayString(T+1),1),e.createElementVNode("td",Gr,e.toDisplayString((Y=(j=i.speed)==null?void 0:j.lane)==null?void 0:Y.name),1),e.createElementVNode("td",null,[i.speed.label!=="Combined"?(e.openBlock(),e.createElementBlock("span",Hr,e.toDisplayString(`CP ${((Ye=(ae=i.speed)==null?void 0:ae.cpCopy)==null?void 0:Ye.speed)??((Ze=i.speed)==null?void 0:Ze.v0)}`),1)):(e.openBlock(),e.createElementBlock("div",zr,[t[37]||(t[37]=e.createTextVNode("CP",-1)),t[38]||(t[38]=e.createElementVNode("sub",null,"1",-1)),e.createTextVNode(" "+e.toDisplayString((Je=(Ke=(qe=i.speed)==null?void 0:qe.extend)==null?void 0:Ke.cps[0])==null?void 0:Je.speed)+", CP",1),t[39]||(t[39]=e.createElementVNode("sub",null,"2",-1)),e.createTextVNode(" "+e.toDisplayString(($e=(Xe=(Qe=i.speed)==null?void 0:Qe.extend)==null?void 0:Xe.cps[1])==null?void 0:$e.speed),1)]))]),e.createElementVNode("td",ur,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((ve=i.speed)==null?void 0:ve.distance,0)),1),(tt=(et=i.speed)==null?void 0:et.extend)!=null&&tt.distanceInECA?(e.openBlock(),e.createElementBlock("span",Ir," ("+e.toDisplayString(n.roundPrecision(i.speed.extend.distanceInECA,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(n.computeLTime((lt=i.speed)==null?void 0:lt.eta,(nt=(at=(ot=a.plan)==null?void 0:ot.leg)==null?void 0:at.destination)==null?void 0:nt.lng,(it=(rt=(dt=a.plan)==null?void 0:dt.leg)==null?void 0:rt.destination)==null?void 0:it.lat,(mt=(Et=(pt=(ct=(st=a.plan)==null?void 0:st.leg)==null?void 0:ct.destination)==null?void 0:pt.port)==null?void 0:Et.timezone)==null?void 0:mt.RawOffset)),1),t[40]||(t[40]=e.createElementVNode("br",null,null,-1)),e.createTextVNode(" "+e.toDisplayString(n.computeUTCTime((yt=i.speed)==null?void 0:yt.eta)),1)]),e.createElementVNode("td",Ur,e.toDisplayString(n.computeSuspend(i.speed)),1),e.createElementVNode("td",Rr,e.toDisplayString(n.roundPrecision((Nt=i.speed)==null?void 0:Nt.totalFoCons,3)),1),e.createElementVNode("td",jr,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((Vt=i.speed)==null?void 0:Vt.totalDgoCons,3)),1),(xt=(ft=i.speed)==null?void 0:ft.extend)!=null&&xt.totalDgoConsInECA?(e.openBlock(),e.createElementBlock("span",Yr," + "+e.toDisplayString(n.roundPrecision((bt=i.speed.extend)==null?void 0:bt.totalDgoConsInECA,3))+"*",1)):e.createCommentVNode("",!0)]),n.showCost?(e.openBlock(),e.createElementBlock("td",Zr,e.toDisplayString((ht=n.roundPrecision(((St=(kt=i==null?void 0:i.speed)==null?void 0:kt.cost)==null?void 0:St.total)/1e3,2))==null?void 0:ht.toLocaleString("en-US"))+"k",1)):e.createCommentVNode("",!0),e.createElementVNode("td",{rowspan:n.showCost?1:2},e.toDisplayString(n.computeTimeDiff(a.plan,T)),9,qr),t[41]||(t[41]=e.createElementVNode("td",null," Danger/Severe/Heavy ",-1))]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,[((Ct=i.speed)==null?void 0:Ct.label)!=="Combined"?(e.openBlock(),e.createElementBlock("div",Kr,"FO: "+e.toDisplayString((Bt=(Dt=i.speed)==null?void 0:Dt.cpCopy)==null?void 0:Bt.fo)+" / DO: "+e.toDisplayString((Wt=(Tt=i.speed)==null?void 0:Tt.cpCopy)==null?void 0:Wt.dgo),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",null,"FO: "+e.toDisplayString((At=(wt=i.speed)==null?void 0:wt.extend)==null?void 0:At.cps[0].fo)+" / "+e.toDisplayString((gt=(Ot=i.speed)==null?void 0:Ot.extend)==null?void 0:gt.cps[1].fo),1),e.createElementVNode("div",null,"DO: "+e.toDisplayString((_t=(Ft=i.speed)==null?void 0:Ft.extend)==null?void 0:_t.cps[0].dgo)+" / "+e.toDisplayString((Lt=(Pt=i.speed)==null?void 0:Pt.extend)==null?void 0:Lt.cps[1].dgo),1)],64))]),e.createElementVNode("td",Jr,[e.createElementVNode("span",null,e.toDisplayString(n.roundPrecision((Mt=i.speed)==null?void 0:Mt.totalHrs,1)),1),(Ht=(Gt=i.speed)==null?void 0:Gt.extend)!=null&&Ht.hoursInECA?(e.openBlock(),e.createElementBlock("span",Qr," ("+e.toDisplayString(n.roundPrecision(i.speed.extend.hoursInECA,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((zt=i.speed)==null?void 0:zt.avgSpeed,2))+" / "+e.toDisplayString(n.roundPrecision((ut=i.speed)==null?void 0:ut.wxFactor,2))+" / "+e.toDisplayString(n.roundPrecision((It=i.speed)==null?void 0:It.cFactor,2)),1),n.showCost?(e.openBlock(),e.createElementBlock("td",Xr,e.toDisplayString(n.roundPrecision(((Rt=(Ut=i==null?void 0:i.speed)==null?void 0:Ut.cost)==null?void 0:Rt.hire)/1e3,2).toLocaleString("en-US"))+"k / "+e.toDisplayString(n.roundPrecision(((Yt=(jt=i==null?void 0:i.speed)==null?void 0:jt.cost)==null?void 0:Yt.bunker)/1e3,2).toLocaleString("en-US"))+"k ",1)):e.createCommentVNode("",!0),n.showCost?(e.openBlock(),e.createElementBlock("td",$r,e.toDisplayString(n.computeCostDiff(a.plan,T)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision(((Zt=i.speed)==null?void 0:Zt.dangerous)/24,2))+" / "+e.toDisplayString(n.roundPrecision(((qt=i.speed)==null?void 0:qt.severe)/24,2))+" / "+e.toDisplayString(n.roundPrecision(((Kt=i.speed)==null?void 0:Kt.heavy)/24,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",vr,[t[43]||(t[43]=e.createTextVNode(" * Fuel consumption was calculated based on the computed daily consumption, and does not reflect actual consumption.",-1)),t[44]||(t[44]=e.createElementVNode("br",null,null,-1)),n.showCost?(e.openBlock(),e.createElementBlock("span",ei,[e.createTextVNode("* Hire cost was calculated at "+e.toDisplayString((Ie=n.roundPrecision((ue=(ze=a.plan)==null?void 0:ze.voyage)==null?void 0:ue.dailyHire,0))==null?void 0:Ie.toLocaleString("en-US"))+" USD perday, and the bunker cost was "+e.toDisplayString((je=n.roundPrecision((Re=(Ue=a.plan)==null?void 0:Ue.voyage)==null?void 0:Re.priceFO,0))==null?void 0:je.toLocaleString("en-US"))+" USD/mt for FO and "+e.toDisplayString((vt=n.roundPrecision(($t=(Xt=a.plan)==null?void 0:Xt.voyage)==null?void 0:$t.priceDGO,0))==null?void 0:vt.toLocaleString("en-US"))+" USD/mt for MGO.",1),t[42]||(t[42]=e.createElementVNode("br",null,null,-1))])):e.createCommentVNode("",!0),t[45]||(t[45]=e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast.",-1)),t[46]||(t[46]=e.createElementVNode("br",null,null,-1)),t[47]||(t[47]=e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ",-1))])]),e.createElementVNode("div",ti,[e.createElementVNode("div",li,[e.createElementVNode("div",oi,[t[48]||(t[48]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",ai,"Advisory & Major Waypoint of Route "+e.toDisplayString((ol=(ll=(tl=(el=a.plan.speeds)==null?void 0:el[r.speedIndex])==null?void 0:tl.speed)==null?void 0:ll.lane)==null?void 0:ol.name),1),((nl=(al=a.plan)==null?void 0:al.speeds)==null?void 0:nl.length)>1?(e.openBlock(),e.createElementBlock("div",ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((dl=a.plan)==null?void 0:dl.speeds,(i,T)=>{var j,Y;return e.openBlock(),e.createElementBlock("div",{key:T,class:e.normalizeClass(["route-item print-hidden",r.speedIndex===T?"active":""]),onClick:ae=>{r.speedIndex=T,n.renderEchart()}},e.toDisplayString((Y=(j=i.speed)==null?void 0:j.lane)==null?void 0:Y.name),11,di)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ri,[r.editable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:r.advisory,"onUpdate:modelValue":t[5]||(t[5]=i=>r.advisory=i),class:"editor",height:"120px",onBlur:t[6]||(t[6]=i=>n.handleCommit(i))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",style:{"font-weight":"normal"},onDblclick:t[7]||(t[7]=(...i)=>n.handleEdit&&n.handleEdit(...i)),innerHTML:r.advisory},null,40,ii))]),e.createElementVNode("div",si,[t[49]||(t[49]=e.createStaticVNode('<div class="major-header bg-blue-light-2" data-v-031623d6><div class="cell-item flex" style="flex:2.5;" data-v-031623d6>Major waypoint</div><div class="cell-item flex" style="flex:1.5;" data-v-031623d6>Time</div><div class="cell-item flex" data-v-031623d6>Nav</div><div class="cell-item flex" data-v-031623d6>Dist <span class="text-units" data-v-031623d6>(nm)</span></div><div class="cell-item flex" data-v-031623d6>SOG <span class="text-units" data-v-031623d6>(kts)</span></div><div class="cell-item flex" data-v-031623d6>COG <span class="text-units" data-v-031623d6>(°)</span></div><div class="cell-item flex" data-v-031623d6>Memo</div></div>',1)),e.createElementVNode("div",ci,[(il=(rl=a.plan)==null?void 0:rl.speeds)!=null&&il.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.computeMajorPoints((El=(pl=(cl=(sl=a.plan)==null?void 0:sl.speeds)==null?void 0:cl[r.speedIndex])==null?void 0:pl.speed)==null?void 0:El.argv,(fl=(Vl=(Nl=(yl=(ml=a.plan)==null?void 0:ml.speeds)==null?void 0:yl[r.speedIndex])==null?void 0:Nl.speed)==null?void 0:Vl.sample)==null?void 0:fl.wps),(i,T)=>(e.openBlock(),e.createElementBlock("div",{key:T,class:"cell-row"},[e.createElementVNode("div",pi,[i.isResume?(e.openBlock(),e.createElementBlock("div",Ei,"Resume")):(e.openBlock(),e.createElementBlock("div",mi,[e.createElementVNode("span",null,e.toDisplayString(n.computePosition(i)),1),i.pilot?(e.openBlock(),e.createElementBlock("span",yi,"[P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",Ni,[e.createTextVNode(e.toDisplayString(n.computeUTCTime(i.eta))+" ",1),i.cp?(e.openBlock(),e.createElementBlock("span",Vi,"[cp: "+e.toDisplayString(i.cp.speed)+"]",1)):e.createCommentVNode("",!0)]),T?(e.openBlock(),e.createElementBlock("div",fi,e.toDisplayString(n.computeNav(i)),1)):(e.openBlock(),e.createElementBlock("div",xi)),T?(e.openBlock(),e.createElementBlock("div",bi,e.toDisplayString(n.roundPrecision(i.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",ki)),T?(e.openBlock(),e.createElementBlock("div",Si,e.toDisplayString(n.roundPrecision(i.avgSpd??i.speed,2)),1)):(e.openBlock(),e.createElementBlock("div",hi)),T?(e.openBlock(),e.createElementBlock("div",Ci,e.toDisplayString(n.computeCog(i.avgBearing)),1)):(e.openBlock(),e.createElementBlock("div",Di)),T?(e.openBlock(),e.createElementBlock("div",Bi,e.toDisplayString(n.computeMemo(i)),1)):(e.openBlock(),e.createElementBlock("div",Ti))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",Wi,[(bl=(xl=a.plan)==null?void 0:xl.speeds)!=null&&bl.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",wi,[e.createElementVNode("div",Ai,[e.createElementVNode("div",Oi,[t[50]||(t[50]=e.createElementVNode("i",{class:"iconfont icon-shuju"},null,-1)),e.createElementVNode("div",gi," Weather Forecast for the Next "+e.toDisplayString(n.computeDay(a.plan,r.speedIndex))+" Days of Route "+e.toDisplayString((Dl=(Cl=(hl=(Sl=(kl=a.plan)==null?void 0:kl.speeds)==null?void 0:Sl[r.speedIndex])==null?void 0:hl.speed)==null?void 0:Cl.lane)==null?void 0:Dl.name),1),((Tl=(Bl=a.plan)==null?void 0:Bl.speeds)==null?void 0:Tl.length)>1?(e.openBlock(),e.createElementBlock("div",Fi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Wl=a.plan)==null?void 0:Wl.speeds,(i,T)=>{var j,Y;return e.openBlock(),e.createElementBlock("div",{key:T,class:e.normalizeClass(["route-item print-hidden",r.speedIndex===T?"active":""]),onClick:ae=>{r.speedIndex=T,n.renderEchart()}},e.toDisplayString((Y=(j=i==null?void 0:i.speed)==null?void 0:j.lane)==null?void 0:Y.name),11,_i)}),128))])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Pi,[e.createElementVNode("div",Li,null,512)]),e.createElementVNode("div",Mi,"* "+e.toDisplayString(n.computeModel((Ol=(Al=(wl=a.plan)==null?void 0:wl.speeds)==null?void 0:Al[r.speedIndex])==null?void 0:Ol.speed)),1)]),t[68]||(t[68]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-bottom":"8px","font-size":"12px"}}," * Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4. ",-1)),e.createElementVNode("table",Gi,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[51]||(t[51]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(UTC)")],-1)),t[52]||(t[52]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Fl=(gl=a.plan)==null?void 0:gl.voyage)!=null&&Fl.sendRptWithBF?3:2},"Wind",8,Hi),t[53]||(t[53]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[54]||(t[54]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[55]||(t[55]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[56]||(t[56]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),(Pl=(_l=a.plan)==null?void 0:_l.voyage)!=null&&Pl.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",zi,"BF")):e.createCommentVNode("",!0),t[59]||(t[59]=e.createElementVNode("th",null,"Dir",-1)),t[60]||(t[60]=e.createElementVNode("th",null,[e.createTextVNode("Ht "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[61]||(t[61]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[62]||(t[62]=e.createElementVNode("th",null,"Dir",-1)),t[63]||(t[63]=e.createElementVNode("th",null,[e.createTextVNode("Hgt "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1)),t[64]||(t[64]=e.createElementVNode("th",null,[e.createTextVNode("Prd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(s)")],-1)),t[65]||(t[65]=e.createElementVNode("th",null,"Dir",-1)),t[66]||(t[66]=e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[67]||(t[67]=e.createElementVNode("th",null,[e.createTextVNode("Factor "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((zl=(Hl=(Gl=(Ml=(Ll=a.plan)==null?void 0:Ll.speeds)==null?void 0:Ml[r.speedIndex])==null?void 0:Gl.speed)==null?void 0:Hl.sample)==null?void 0:zl.hours,(i,T)=>{var j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt,ul,Il,Ul,Rl,jl,Yl,Zl,ql,Kl,Jl;return e.openBlock(),e.createElementBlock("tr",{key:T,class:e.normalizeClass(i.isDangerous?"dangerous":i.isSevere?"severe":i.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(n.computeUTCTime(i.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",ui,e.toDisplayString(n.computeLat(i.lat))+", "+e.toDisplayString(n.computeLng(i.lng)),1)]),e.createElementVNode("td",Ii,[(Y=(j=i.meteo)==null?void 0:j.wind)!=null&&Y.kts?(e.openBlock(),e.createElementBlock("span",Ui,e.toDisplayString((Ye=(ae=i.meteo)==null?void 0:ae.wind)==null?void 0:Ye.direction),1)):e.createCommentVNode("",!0),(qe=(Ze=i.meteo)==null?void 0:Ze.wind)!=null&&qe.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("wind",(Je=(Ke=i.meteo)==null?void 0:Ke.wind)==null?void 0:Je.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Ri,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Xe=(Qe=i==null?void 0:i.meteo)==null?void 0:Qe.wind)==null?void 0:Xe.scale)>=4?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((ve=($e=i.meteo)==null?void 0:$e.wind)==null?void 0:ve.kts,1)),3),(tt=(et=a.plan)==null?void 0:et.voyage)!=null&&tt.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",ji,e.toDisplayString((ot=(lt=i.meteo)==null?void 0:lt.wind)==null?void 0:ot.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((dt=(nt=(at=i.meteo)==null?void 0:at.wave)==null?void 0:nt.wd)==null?void 0:dt.height,1)),1),e.createElementVNode("td",Yi,[(st=(it=(rt=i.meteo)==null?void 0:rt.wave)==null?void 0:it.swell)!=null&&st.height?(e.openBlock(),e.createElementBlock("span",Zi,e.toDisplayString((Et=(pt=(ct=i.meteo)==null?void 0:ct.wave)==null?void 0:pt.swell)==null?void 0:Et.direction),1)):e.createCommentVNode("",!0),(Nt=(yt=(mt=i.meteo)==null?void 0:mt.wave)==null?void 0:yt.swell)!=null&&Nt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("swell",(xt=(ft=(Vt=i.meteo)==null?void 0:Vt.wave)==null?void 0:ft.swell)==null?void 0:xt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",qi,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((St=(kt=(bt=i==null?void 0:i.meteo)==null?void 0:bt.wave)==null?void 0:kt.swell)==null?void 0:St.height)>=1.5?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((Dt=(Ct=(ht=i.meteo)==null?void 0:ht.wave)==null?void 0:Ct.swell)==null?void 0:Dt.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Wt=(Tt=(Bt=i.meteo)==null?void 0:Bt.wave)==null?void 0:Tt.swell)==null?void 0:Wt.period,1)),1),e.createElementVNode("td",Ki,[(Ot=(At=(wt=i.meteo)==null?void 0:wt.wave)==null?void 0:At.sig)!=null&&Ot.height?(e.openBlock(),e.createElementBlock("span",Ji,e.toDisplayString((_t=(Ft=(gt=i.meteo)==null?void 0:gt.wave)==null?void 0:Ft.sig)==null?void 0:_t.direction),1)):e.createCommentVNode("",!0),(Mt=(Lt=(Pt=i.meteo)==null?void 0:Pt.wave)==null?void 0:Lt.sig)!=null&&Mt.height?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("wave",(zt=(Ht=(Gt=i.meteo)==null?void 0:Gt.wave)==null?void 0:Ht.sig)==null?void 0:zt.degree,!1))},null,4)):(e.openBlock(),e.createElementBlock("span",Qi,"-"))]),e.createElementVNode("td",{class:e.normalizeClass(((Ut=(It=(ut=i==null?void 0:i.meteo)==null?void 0:ut.wave)==null?void 0:It.sig)==null?void 0:Ut.height)>=1.5?"bg-heavy":"")},e.toDisplayString(n.roundPrecision((Yt=(jt=(Rt=i.meteo)==null?void 0:Rt.wave)==null?void 0:jt.sig)==null?void 0:Yt.height,1)),3),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Kt=(qt=(Zt=i.meteo)==null?void 0:Zt.wave)==null?void 0:qt.sig)==null?void 0:Kt.period,1)),1),e.createElementVNode("td",Xi,[(Il=(ul=i.meteo)==null?void 0:ul.current)!=null&&Il.kts?(e.openBlock(),e.createElementBlock("span",$i,e.toDisplayString((Rl=(Ul=i.meteo)==null?void 0:Ul.current)==null?void 0:Rl.direction),1)):e.createCommentVNode("",!0),(Yl=(jl=i.meteo)==null?void 0:jl.current)!=null&&Yl.kts?(e.openBlock(),e.createElementBlock("i",{key:1,class:"iconfont icon-jiantouicon",style:e.normalizeStyle(n.computeDegree("current",(ql=(Zl=i.meteo)==null?void 0:Zl.current)==null?void 0:ql.degree,!0))},null,4)):(e.openBlock(),e.createElementBlock("span",vi,"-"))]),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision((Jl=(Kl=i.meteo)==null?void 0:Kl.current)==null?void 0:Jl.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(n.roundPrecision(i.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[69]||(t[69]=e.createElementVNode("div",{class:"text-tips text-right",style:{"margin-top":"8px","font-size":"12px","line-height":"1.4"}},[e.createElementVNode("div",null,"* The waypoints in this sheet are approximate positions."),e.createElementVNode("div",null," * The route map is for reference only and should not be used for navigation."),e.createElementVNode("div",null,"All the material is an advisory provided so as to assist the Master in making the final route decision.")],-1))])],64))])}const lo=Jt(tr,[["render",es],["__scopeId","data-v-031623d6"]]),ts={install(o){o.component("PlanReport",lo)}},gm="",ls={name:"OrmVoyageSummary",components:{Editor:$l},props:{report:{type:Object,default:()=>({})}},emits:["commit"],data(){return{exclusion:[],noGoodWxDay:"Not available due to no good weather days.",editable:!1,remarks:"",noons:[]}},computed:{computePrevTime(){return function(o){return W(o.utc).subtract(o.timeCalc,"hour").format()}},computeDuration(){return function(o,t){const a=W(o).diff(W(t),"hours",!0);return Math.round(a*100)/100}},computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeWeatherDef(){return function(o){let t;if(o!=null&&o.overallAsGoodWx)t="No specific thresholds for wind/wave/currents are defined in the Charter Party",o.disableWxFactor&&o.disableCFactor?t+=", Both Wx Factor and Current Factor are ignored":o.disableWxFactor?t+=", Wx Factor is ignored":o.disableCFactor&&(t+=", Current Factor is ignored"),t+=", Therefore the Good Weather Definition in this reports does not apply any thresholds.";else{let a="";o!=null&&o.waveSwitch?a+=`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?a+=`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&&(a+=`Significant wave height is ${o==null?void 0:o.sigHeight} meters or less (Douglas Sea State ${o==null?void 0:o.seaScale})`),t=`Winds are BF/${o==null?void 0:o.windScale} or less, ${a}`,o!=null&&o.noAdverseCur&&(t+=", No Adverse Current"),o!=null&&o.waterTempSwitch&&(t+=`, water temperature is ${o==null?void 0:o.waterTemp} °C or less`),o!=null&&o.noExtrapolation&&(t+=", No Extrapolation"),(o==null?void 0:o.time)===100&&(o!=null&&o.timePercentage)&&(o==null?void 0:o.consecutiveTime)===1?t+=", All parts of the period.":(o==null?void 0:o.consecutiveTime)>1&!(o!=null&&o.consecTimePercentage)?t+=`, At least ${o==null?void 0:o.consecutiveTime} consecutive hours.`:t+="."}return t}},computeLng(){return function(o){return H.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return H.LngLatHelper.lat2pretty(o)}},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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeAbtSpeed(){return function(o,t,a){return a==="Over"?o.abt4SpdOver:o.abt4SpdUnder}},computeAbtCons(){return function(o,t,a){if(o.consPercentage){if(t==="fo")return a==="Over"?`${o.consOfOver}%`:`${o.consOfUnder}%`;if(t==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}%`:`${o.consDgoOfUnder??o.consOfUnder}%`}else{if(t==="fo")return a==="Over"?`${o.consOfOver}`:`${o.consOfUnder}`;if(t==="dgo")return a==="Over"?`${o.consDgoOfOver??o.consOfOver}`:`${o.consDgoOfUnder??o.consOfUnder}`}}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{report:{handler(o,t){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,t;this.remarks=this.report.remarks||"Please double click to modify remark",this.exclusion=[],this.noons=[],(t=(o=this.report)==null?void 0:o.segments)==null||t.forEach((a,s)=>{var E,d;a.excluded.detail.forEach(c=>{const f={time:W(c.begin).utc().format("MMM-DD/HHmm[Z]")+" - "+W(c.end).utc().format("MMM-DD/HHmm[Z]"),duration:c.duration,distance:c.distance,fo:c.foCons,dgo:c.dgoCons};this.exclusion.push(f)});const n=(d=(E=a==null?void 0:a.inventory)==null?void 0:E.sample)==null?void 0:d.hours.filter(c=>c.noon);this.noons.push([n])})},handleCommit(o){this.editable=!1,this.$emit("commit",o)},handleEdit(){this.editable=!0}}},os={class:"report-summary"},as={class:"info-block"},ns={class:"col"},ds={class:"label-block"},rs={class:"text"},is={class:"label-block"},ss={class:"text"},cs={class:"label-block"},ps={class:"text"},Es={class:"col"},ms={class:"label-block"},ys={key:0},Ns={key:1},Vs={style:{"margin-left":"16px"}},fs={class:"label-block"},xs={key:0},bs={key:1},ks={style:{"margin-left":"16px"}},Ss={class:"label-block"},hs={class:"text"},Cs={class:"section weather-section"},Ds={class:"definition bg-blue-light-2"},Bs={style:{"line-height":"1.5"}},Ts={class:"section summary-section"},Ws={class:"phase-box"},ws={class:"phase-index"},As={class:"phase-position"},Os={key:0},gs={key:1},Fs={class:"phase-position"},_s={key:0},Ps={key:1},Ls={class:"phase-cp"},Ms={class:"phase-conclusion"},Gs={class:"item-conclusion bg-blue-light-2"},Hs={class:"value align-left"},zs={key:0,class:"text-secondary align-right"},us={key:0},Is={key:1},Us={key:2},Rs={key:1,class:"text-secondary"},js={key:2,class:"value"},Ys={key:0},Zs={class:"gain"},qs={key:1},Ks={class:"lost"},Js={key:2},Qs={class:"item-conclusion bg-blue-light-2"},Xs={class:"value align-left"},$s={key:0,class:"text-secondary"},vs={key:0},ec={key:1},tc={key:2},lc={key:1,class:"text-secondary"},oc={key:2,class:"value"},ac={key:0},nc={class:"gain"},dc={key:1},rc={class:"lost"},ic={key:2},sc={class:"item-conclusion bg-blue-light-2"},cc={class:"value align-left"},pc={key:0,class:"text-secondary"},Ec={key:0},mc={key:1},yc={key:2},Nc={key:1,class:"text-secondary"},Vc={key:2,class:"value"},fc={key:0},xc={class:"gain"},bc={key:1},kc={class:"lost"},Sc={key:2},hc={key:0,class:"exclusion-block"},Cc={style:{margin:"8px 0"}},Dc=["innerHTML"],Bc={class:"section segment-section"},Tc={class:"segment-summary"},Wc={class:"segment-index text-left"},wc={class:"segment-position"},Ac={key:0},Oc={key:1},gc={class:"segment-position"},Fc={key:0},_c={key:1},Pc={class:"good-wx"},Lc={class:"good-wx"},Mc={class:"good-wx"},Gc={class:"good-wx"},Hc={class:"good-wx"},zc={class:"good-wx"},uc={class:"good-wx"},Ic={class:"good-wx"},Uc={class:"good-wx"},Rc={class:"good-wx"},jc={class:"good-wx"},Yc={class:"good-wx"},Zc={class:"good-wx"},qc={class:"good-wx"},Kc={key:0,style:{"margin-top":"12px"}},Jc={key:0},Qc={key:1,class:"text-tips text-right",style:{"margin-top":"8px"}},Xc={key:2,class:"segment-speed"},$c={class:"row"},vc={class:"speed-right row"},ep={class:"speed"},tp={key:1,class:"speed"},lp={key:0,class:"speed"},op={class:"speed"},ap={class:"speed"},np={class:"speed"},dp={key:2,class:"under"},rp={key:3,class:"over"},ip={class:"row"},sp={class:"speed-right formula flex-space"},cp={key:0},pp={key:3,class:"segment-speed"},Ep={class:"row"},mp={class:"speed-right row"},yp={class:"speed"},Np={class:"speed"},Vp={key:2,class:"under"},fp={key:3,class:"over"},xp={class:"row"},bp={class:"speed-right formula row"},kp={class:"segment-formula"},Sp={class:"sub-title"},hp={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},Cp={class:"formula-block"},Dp={class:"formula-item flex-evenly bg-blue-light"},Bp={class:"formula-right flex-evenly"},Tp={class:"fraction",style:{width:"240px"}},Wp={class:"formula-item flex-center bg-blue-light"},wp={class:"formula-left flex-space"},Ap={class:"formula-right flex-evenly"},Op={class:"fraction",style:{width:"240px"}},gp={class:"formula-item flex-center bg-blue-light"},Fp={class:"formula-left flex-space"},_p={class:"formula-right flex-evenly"},Pp={class:"fraction",style:{width:"240px"}},Lp={class:"formula-desc"},Mp={class:"flex-end"},Gp={class:"flex-end"},Hp={class:"flex-end"},zp={key:0,class:"formula-block"},up={class:"formula-item flex-evenly bg-blue-light"},Ip={class:"formula-right flex-evenly"},Up={class:"fraction",style:{width:"200px"}},Rp={class:"formula-item flex-center bg-blue-light"},jp={class:"formula-left flex-space"},Yp={class:"formula-right flex-evenly"},Zp={class:"fraction",style:{width:"200px"}},qp={class:"formula-item flex-center bg-blue-light"},Kp={class:"formula-left flex-space"},Jp={class:"formula-right flex-evenly"},Qp={class:"fraction",style:{width:"200px"}},Xp={class:"formula-item formula-conclusion bg-blue-light"},$p={key:0,class:"flex-evenly",style:{width:"500px"}},vp={key:1,class:"flex-evenly",style:{width:"500px"}},e1={class:"flex-center"},t1={key:1,class:"formula-conclusion bg-blue-light"},l1={class:"segment-formula"},o1={class:"sub-title"},a1={key:0,style:{"margin-left":"4px","font-weight":"400","font-size":"13px"}},n1={class:"formula-block"},d1={class:"formula-item flex-evenly bg-blue-light"},r1={class:"formula-right flex-evenly"},i1={class:"fraction",style:{width:"240px"}},s1={class:"text-tips",style:{"font-size":"12px","margin-bottom":"8px"}},c1={key:0,class:"flex-end text-tips"},p1={class:"formula-item flex-center bg-blue-light"},E1={class:"formula-right flex-evenly"},m1={class:"fraction",style:{width:"200px"}},y1={class:"formula-item flex-center bg-blue-light"},N1={class:"formula-right flex-evenly"},V1={class:"fraction",style:{width:"200px"}},f1={class:"formula-item flex-center bg-blue-light"},x1={class:"formula-right flex-evenly"},b1={class:"fraction",style:{width:"300px"}},k1={class:"formula-item flex-center bg-blue-light"},S1={class:"formula-right flex-evenly"},h1={class:"fraction",style:{width:"300px"}},C1={class:"sub-title"},D1={key:0,class:"formula-block"},B1={key:0,class:"formula-item flex-evenly bg-blue-light"},T1={class:"formula-right flex-evenly"},W1={class:"fraction",style:{width:"60px"}},w1={class:"fraction",style:{width:"60px"}},A1={class:"formula-item flex-evenly bg-blue-light"},O1={class:"formula-right flex-evenly"},g1={class:"fraction",style:{width:"150px"}},F1={class:"fraction",style:{width:"150px"}},_1={key:0},P1={class:"formula-item flex-evenly bg-blue-light"},L1={class:"formula-right flex-evenly"},M1={class:"fraction",style:{width:"150px"}},G1={class:"fraction",style:{width:"150px"}},H1={class:"formula-item flex-evenly bg-blue-light"},z1={class:"formula-right flex-evenly"},u1={class:"fraction",style:{width:"150px"}},I1={class:"fraction",style:{width:"150px"}},U1={class:"formula-item formula-conclusion bg-blue-light"},R1={class:"flex-evenly",style:{width:"500px"}},j1={key:0,class:"flex-evenly"},Y1={class:"fraction"},Z1={class:"flex-evenly",style:{width:"700px"}},q1={key:0,class:"flex-evenly",style:{width:"500px"}},K1={class:"fraction",style:{width:"140px"}},J1={key:1,class:"formula-item formula-conclusion bg-blue-light"},Q1={class:"header-block"},X1={class:"bg-block"},$1={class:"title"},v1={key:0,class:"formula-block"},eE={class:"formula-item flex-evenly bg-blue-light"},tE={class:"formula-right flex-evenly"},lE={class:"fraction",style:{width:"150px"}},oE={class:"fraction",style:{width:"150px"}},aE={key:0},nE={class:"formula-item flex-evenly bg-blue-light"},dE={class:"formula-right flex-evenly"},rE={class:"fraction",style:{width:"150px"}},iE={class:"fraction",style:{width:"150px"}},sE={class:"formula-item flex-evenly bg-blue-light"},cE={class:"formula-right flex-evenly"},pE={class:"fraction",style:{width:"150px"}},EE={class:"fraction",style:{width:"150px"}},mE={class:"formula-item formula-conclusion bg-blue-light",style:{"margin-bottom":"0"}},yE={key:0,class:"flex-evenly",style:{width:"500px"}},NE={key:1,class:"flex-evenly",style:{width:"700px"}},VE={key:1,class:"formula-item formula-conclusion bg-blue-light"};function fE(o,t,a,s,r,n){var d,c,f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z;const E=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",os,[e.createElementVNode("div",as,[e.createElementVNode("div",ns,[e.createElementVNode("div",ds,[t[3]||(t[3]=e.createElementVNode("span",{class:"label text-label"},"Prepare for",-1)),e.createElementVNode("span",rs,e.toDisplayString(a.report.preparedFor),1)]),e.createElementVNode("div",is,[t[4]||(t[4]=e.createElementVNode("span",{class:"label text-label"},"Vessel",-1)),e.createElementVNode("span",ss,e.toDisplayString((c=(d=a.report)==null?void 0:d.vessel)==null?void 0:c.name)+" ("+e.toDisplayString((y=(f=a.report)==null?void 0:f.vessel)==null?void 0:y.type)+")",1)]),e.createElementVNode("div",cs,[t[5]||(t[5]=e.createElementVNode("span",{class:"label text-label"},"Voyage No.",-1)),e.createElementVNode("span",ps,e.toDisplayString(((B=(N=a.report)==null?void 0:N.voyage)==null?void 0:B.voyNum)||((m=(k=a.report)==null?void 0:k.voyage)==null?void 0:m.number)),1)])]),e.createElementVNode("div",Es,[e.createElementVNode("div",ms,[t[6]||(t[6]=e.createElementVNode("span",{class:"label text-label"},"Departure",-1)),(h=(V=a.report)==null?void 0:V.departure)!=null&&h.name?(e.openBlock(),e.createElementBlock("span",ys,e.toDisplayString((x=(p=a.report)==null?void 0:p.departure)==null?void 0:x.portName),1)):(e.openBlock(),e.createElementBlock("span",Ns,e.toDisplayString(n.computePosition((C=a.report)==null?void 0:C.departure)),1)),e.createElementVNode("span",Vs,e.toDisplayString(n.computeUTCTime((w=(D=a.report)==null?void 0:D.departure)==null?void 0:w.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",fs,[t[7]||(t[7]=e.createElementVNode("span",{class:"label text-label"},"Arrival",-1)),(O=(A=a.report)==null?void 0:A.arrival)!=null&&O.portName?(e.openBlock(),e.createElementBlock("span",xs,e.toDisplayString((F=(g=a.report)==null?void 0:g.arrival)==null?void 0:F.portName),1)):(e.openBlock(),e.createElementBlock("span",bs,e.toDisplayString(n.computePosition((_=a.report)==null?void 0:_.arrival)),1)),e.createElementVNode("span",ks,e.toDisplayString(n.computeUTCTime((z=(P=a.report)==null?void 0:P.arrival)==null?void 0:z.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Ss,[t[8]||(t[8]=e.createElementVNode("span",{class:"label text-label"},"Load Condition",-1)),e.createElementVNode("span",hs,e.toDisplayString((I=(u=a.report)==null?void 0:u.voyage)==null?void 0:I.loadCondition),1)])])]),e.createElementVNode("div",Cs,[t[9]||(t[9]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Good Weather Definition")])],-1)),e.createElementVNode("div",Ds,[e.createElementVNode("div",Bs,e.toDisplayString(n.computeWeatherDef(a.report.weather)),1)])]),e.createElementVNode("div",Ts,[t[37]||(t[37]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Analysis Summary")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((U=a.report)==null?void 0:U.segments,(l,L)=>{var q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe;return e.openBlock(),e.createElementBlock("div",{key:"summary"+L,class:"segment-box"},[e.createElementVNode("div",Ws,[e.createElementVNode("div",ws,"Seg."+e.toDisplayString(L+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((q=l==null?void 0:l.extend)==null?void 0:q.segTimes,(b,Qt)=>{var Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je;return e.openBlock(),e.createElementBlock("div",{key:Qt,class:"phase-row text-secondary"},[e.createElementVNode("div",As,[(Le=b==null?void 0:b.departure)!=null&&Le.portName?(e.openBlock(),e.createElementBlock("span",Os,e.toDisplayString((Me=b==null?void 0:b.departure)==null?void 0:Me.portName),1)):(e.openBlock(),e.createElementBlock("span",gs,e.toDisplayString(n.computeLat((Ge=b==null?void 0:b.departure)==null?void 0:Ge.lat).pretty)+", "+e.toDisplayString(n.computeLng((He=b==null?void 0:b.departure)==null?void 0:He.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((ze=b==null?void 0:b.departure)==null?void 0:ze.utcTime))+")",1)]),t[10]||(t[10]=e.createElementVNode("div",{class:"phase-split"},"~",-1)),e.createElementVNode("div",Fs,[(ue=b==null?void 0:b.arrival)!=null&&ue.portName?(e.openBlock(),e.createElementBlock("span",_s,e.toDisplayString((Ie=b==null?void 0:b.arrival)==null?void 0:Ie.portName),1)):(e.openBlock(),e.createElementBlock("span",Ps,e.toDisplayString(n.computeLat((Ue=b==null?void 0:b.arrival)==null?void 0:Ue.lat).pretty)+", "+e.toDisplayString(n.computeLng((Re=b==null?void 0:b.arrival)==null?void 0:Re.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((je=b==null?void 0:b.arrival)==null?void 0:je.utcTime))+")",1)])])}),128)),e.createElementVNode("div",Ls,[e.createElementVNode("table",null,[t[18]||(t[18]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",null,[e.createElementVNode("span",null,"CP")]),e.createElementVNode("th",null,[e.createTextVNode("Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily FO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("Daily DO/GO Cons "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[17]||(t[17]=e.createElementVNode("td",null,null,-1)),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((J=(K=l==null?void 0:l.extend)==null?void 0:K.cp)==null?void 0:J.speed)+" |",1),t[11]||(t[11]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(X=(Q=l==null?void 0:l.extend)==null?void 0:Q.cp)==null?void 0:X.speed,"Over"))+",",1),t[12]||(t[12]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(v=($=l==null?void 0:l.extend)==null?void 0:$.cp)==null?void 0:v.speed,"Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((te=(ee=l==null?void 0:l.extend)==null?void 0:ee.cp)==null?void 0:te.fo)+" |",1),t[13]||(t[13]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Over"))+",",1),t[14]||(t[14]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"fo","Under")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString((oe=(le=l==null?void 0:l.extend)==null?void 0:le.cp)==null?void 0:oe.dgo)+" |",1),t[15]||(t[15]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"+",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Over"))+",",1),t[16]||(t[16]=e.createElementVNode("span",{style:{"vertical-align":"super"}},"-",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeAbtCons(l==null?void 0:l.fuelConclusion,"dgo","Under")),1)])])])])]),e.createElementVNode("div",Ms,[e.createElementVNode("div",Gs,[t[24]||(t[24]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total Voyage Time",-1)),e.createElementVNode("div",Hs,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.time),1),t[19]||(t[19]=e.createElementVNode("span",{class:"unit"},"hrs",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",zs,[((M=l==null?void 0:l.timeConclusion)==null?void 0:M.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("span",us,"Time Gained")):((de=l==null?void 0:l.timeConclusion)==null?void 0:de.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("span",Is,"Time Lost")):(e.openBlock(),e.createElementBlock("span",Us,"No Time Lost/Gained"))])):(e.openBlock(),e.createElementBlock("div",Rs,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",js,[((re=l==null?void 0:l.timeConclusion)==null?void 0:re.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",Ys,[t[20]||(t[20]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",Zs,e.toDisplayString((ie=l==null?void 0:l.timeConclusion)==null?void 0:ie.timeGain),1),t[21]||(t[21]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):((se=l==null?void 0:l.timeConclusion)==null?void 0:se.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",qs,[t[22]||(t[22]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",Ks,e.toDisplayString((ce=l==null?void 0:l.timeConclusion)==null?void 0:ce.timeLost),1),t[23]||(t[23]=e.createElementVNode("span",{class:"unit"},"hrs",-1))])):(e.openBlock(),e.createElementBlock("div",Js,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Qs,[t[30]||(t[30]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total FO Consumption",-1)),e.createElementVNode("div",Xs,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.sumFoCons),1),t[25]||(t[25]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",$s,[((Ee=(pe=l==null?void 0:l.fuelConclusion)==null?void 0:pe.fo)==null?void 0:Ee.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",vs,"FO Saving")):((ye=(me=l==null?void 0:l.fuelConclusion)==null?void 0:me.fo)==null?void 0:ye.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",ec,"FO Over-consumption")):(e.openBlock(),e.createElementBlock("span",tc,"No FO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",lc,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",oc,[((Ve=(Ne=l==null?void 0:l.fuelConclusion)==null?void 0:Ne.fo)==null?void 0:Ve.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",ac,[t[26]||(t[26]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",nc,e.toDisplayString((xe=(fe=l==null?void 0:l.fuelConclusion)==null?void 0:fe.fo)==null?void 0:xe.saving),1),t[27]||(t[27]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((ke=(be=l==null?void 0:l.fuelConclusion)==null?void 0:be.fo)==null?void 0:ke.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",dc,[t[28]||(t[28]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",rc,e.toDisplayString((he=(Se=l==null?void 0:l.fuelConclusion)==null?void 0:Se.fo)==null?void 0:he.overCons),1),t[29]||(t[29]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",ic,"N/A"))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",sc,[t[36]||(t[36]=e.createElementVNode("div",{class:"text-secondary align-left"},"Total DO/GO Consumption",-1)),e.createElementVNode("div",cc,[e.createElementVNode("span",null,e.toDisplayString(l.allWx.sumDgoCons),1),t[31]||(t[31]=e.createElementVNode("span",{class:"unit"},"mt",-1))]),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",pc,[((De=(Ce=l==null?void 0:l.fuelConclusion)==null?void 0:Ce.dgo)==null?void 0:De.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("span",Ec,"DO/GO Saving")):((Te=(Be=l==null?void 0:l.fuelConclusion)==null?void 0:Be.dgo)==null?void 0:Te.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",mc,"DO/GO Over-consumption")):(e.openBlock(),e.createElementBlock("span",yc,"No DO/GO Over-consumption/Saving"))])):(e.openBlock(),e.createElementBlock("div",Nc,e.toDisplayString(r.noGoodWxDay),1)),l.goodWx.distance?(e.openBlock(),e.createElementBlock("div",Vc,[((we=(We=l==null?void 0:l.fuelConclusion)==null?void 0:We.dgo)==null?void 0:we.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",fc,[t[32]||(t[32]=e.createElementVNode("i",{class:"iconfont gain"},"",-1)),e.createElementVNode("span",xc,e.toDisplayString((Oe=(Ae=l==null?void 0:l.fuelConclusion)==null?void 0:Ae.dgo)==null?void 0:Oe.saving),1),t[33]||(t[33]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):((Fe=(ge=l==null?void 0:l.fuelConclusion)==null?void 0:ge.dgo)==null?void 0:Fe.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",bc,[t[34]||(t[34]=e.createElementVNode("i",{class:"iconfont lost"},"",-1)),e.createElementVNode("span",kc,e.toDisplayString((Pe=(_e=l==null?void 0:l.fuelConclusion)==null?void 0:_e.dgo)==null?void 0:Pe.overCons),1),t[35]||(t[35]=e.createElementVNode("span",{class:"unit"},"mt",-1))])):(e.openBlock(),e.createElementBlock("div",Sc,"N/A"))])):e.createCommentVNode("",!0)])])])])}),128)),t[38]||(t[38]=e.createElementVNode("div",{class:"text-tips text-right",style:{"font-size":"12px"}},"*Please see voyage analysis pages for the details.",-1))]),e.createElementVNode("div",{class:e.normalizeClass(n.computeBlankHtml((R=a.report)==null?void 0:R.remarks)&&!r.exclusion.length?"section remark-section print-hidden":"section remark-section")},[t[42]||(t[42]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-biaodan"}),e.createElementVNode("div",{class:"title"},"Remarks")])],-1)),r.exclusion.length?(e.openBlock(),e.createElementBlock("div",hc,[t[40]||(t[40]=e.createElementVNode("div",{class:"sub-title"},"Exclusion",-1)),t[41]||(t[41]=e.createElementVNode("div",{class:"text-secondary"},[e.createElementVNode("div",null,"The voyage analysis does not include following information on time, distance, and consumed fuel.")],-1)),e.createElementVNode("div",Cc,[e.createElementVNode("table",null,[t[39]||(t[39]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",{style:{width:"40%"}},"Time"),e.createElementVNode("th",null,[e.createTextVNode("Duration "),e.createElementVNode("span",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",null,[e.createTextVNode("Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")]),e.createElementVNode("th",null,[e.createTextVNode("FO "),e.createElementVNode("span",{class:"text-units"},"(mt)")]),e.createElementVNode("th",null,[e.createTextVNode("DO/GO "),e.createElementVNode("span",{class:"text-units"},"(mt)")])])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.exclusion,(l,L)=>(e.openBlock(),e.createElementBlock("tr",{key:L},[e.createElementVNode("td",null,e.toDisplayString(L+1),1),e.createElementVNode("td",null,e.toDisplayString(l.time),1),e.createElementVNode("td",null,e.toDisplayString(l.duration),1),e.createElementVNode("td",null,e.toDisplayString(l.distance),1),e.createElementVNode("td",null,e.toDisplayString(l.fo),1),e.createElementVNode("td",null,e.toDisplayString(l.dgo),1)]))),128))])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(n.computeBlankHtml((Z=a.report)==null?void 0:Z.remarks)?"remark-block bg-blue-light-2 print-hidden":"remark-block bg-blue-light-2 page-avoid")},[r.editable?(e.openBlock(),e.createBlock(E,{key:0,modelValue:r.remarks,"onUpdate:modelValue":t[0]||(t[0]=l=>r.remarks=l),class:"editor",height:"120px",onBlur:t[1]||(t[1]=l=>n.handleCommit(l))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,onDblclick:t[2]||(t[2]=(...l)=>n.handleEdit&&n.handleEdit(...l)),innerHTML:r.remarks},null,40,Dc))],2)],2),e.createElementVNode("div",Bc,[t[244]||(t[244]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-baobiao"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption Calculation")])],-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.report.segments,(l,L)=>{var q,K,J,Q,X,$,v,ee,te,le,oe,M,de,re,ie,se,ce,pe,Ee,me,ye,Ne,Ve,fe,xe,be,ke,Se,he,Ce,De,Be,Te,We,we,Ae,Oe,ge,Fe,_e,Pe,b,Qt,Le,Me,Ge,He,ze,ue,Ie,Ue,Re,je,Xt,$t,vt,el,tl,ll,ol,al,nl,dl,rl,il,sl,cl,pl,El,ml,yl,Nl,Vl,fl,xl,bl,kl,Sl,hl,Cl,Dl,Bl,Tl,Wl,wl,Al,Ol,gl,Fl,_l,Pl,Ll,Ml,Gl,Hl,zl,i,T,j,Y,ae,Ye,Ze,qe,Ke,Je,Qe,Xe,$e,ve,et,tt,lt,ot,at,nt,dt,rt,it,st,ct,pt,Et,mt,yt,Nt,Vt,ft,xt,bt,kt,St,ht,Ct,Dt,Bt,Tt,Wt,wt,At,Ot,gt,Ft,_t,Pt,Lt,Mt,Gt,Ht,zt,ut,It,Ut,Rt,jt,Yt,Zt,qt,Kt,ul,Il,Ul,Rl,jl,Yl,Zl,ql,Kl,Jl,ao,no,ro,io,so,co,po,Eo,mo,yo,No,Vo,fo,xo,bo,ko,So,ho,Co,Do,Bo,To,Wo,wo,Ao,Oo,go,Fo,_o,Po,Lo,Mo,Go,Ho,zo,uo,Io,Uo,Ro,jo,Yo,Zo,qo,Ko,Jo,Qo,Xo,$o,vo,ea,ta,la,oa,aa,na,da,ra,ia,sa,ca,pa,Ea,ma,ya,Na,Va,fa,xa,ba,ka,Sa,ha,Ca,Da,Ba,Ta,Wa,wa,Aa,Oa,ga,Fa,_a,Pa,La,Ma,Ga,Ha,za,ua,Ia,Ua,Ra,ja,Ya,Za,qa,Ka,Ja,Qa,Xa,$a,va,en,tn,ln,on,an,nn,dn,rn,sn,cn,pn,En,mn,yn,Nn,Vn,fn,xn,bn,kn,Sn,hn,Cn,Dn,Bn,Tn,Wn,wn,An,On,gn,Fn,_n,Pn,Ln,Mn,Gn,Hn,zn,un,In,Un,Rn,jn,Yn,Zn,qn,Kn,Jn,Qn,Xn,$n,vn,ed,td,ld,od,ad,nd,dd,rd,id,sd,cd,pd,Ed,md,yd,Nd,Vd,fd,xd,bd,kd,Sd,hd,Cd,Dd,Bd,Td,Wd,wd,Ad,Od,gd,Fd,_d,Pd,Ld,Md,Gd,Hd,zd,ud;return e.openBlock(),e.createElementBlock("div",{key:L,class:"segment-block"},[e.createElementVNode("div",Tc,[e.createElementVNode("div",Wc,"Voyage Analysis Seg. "+e.toDisplayString(L+1),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((q=l==null?void 0:l.extend)==null?void 0:q.segTimes,(S,eo)=>{var ne,vl,Id,Ud,Rd,jd,Yd,Zd,qd,Kd;return e.openBlock(),e.createElementBlock("div",{key:eo,class:"segment-row text-secondary"},[e.createElementVNode("div",wc,[(ne=S==null?void 0:S.departure)!=null&&ne.portName?(e.openBlock(),e.createElementBlock("span",Ac,e.toDisplayString((vl=S==null?void 0:S.departure)==null?void 0:vl.portName),1)):(e.openBlock(),e.createElementBlock("span",Oc,e.toDisplayString(n.computeLat((Id=S==null?void 0:S.departure)==null?void 0:Id.lat).pretty)+", "+e.toDisplayString(n.computeLng((Ud=S==null?void 0:S.departure)==null?void 0:Ud.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((Rd=S==null?void 0:S.departure)==null?void 0:Rd.utcTime))+")",1)]),t[43]||(t[43]=e.createElementVNode("div",{class:"segment-split"},"~",-1)),e.createElementVNode("div",gc,[(jd=S==null?void 0:S.arrival)!=null&&jd.portName?(e.openBlock(),e.createElementBlock("span",Fc,e.toDisplayString((Yd=S==null?void 0:S.arrival)==null?void 0:Yd.portName),1)):(e.openBlock(),e.createElementBlock("span",_c,e.toDisplayString(n.computeLat((Zd=S==null?void 0:S.arrival)==null?void 0:Zd.lat).pretty)+", "+e.toDisplayString(n.computeLng((qd=S==null?void 0:S.arrival)==null?void 0:qd.lng).pretty),1)),e.createElementVNode("label",null,"("+e.toDisplayString(n.computeUTCTime((Kd=S==null?void 0:S.arrival)==null?void 0:Kd.utcTime))+")",1)])])}),128)),e.createElementVNode("table",null,[t[51]||(t[51]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{style:{width:"35%"}}),e.createElementVNode("th",{colspan:"2"},"Good Weather"),e.createElementVNode("th",{colspan:"2"},"All Weather")]),e.createElementVNode("tr",null,[e.createElementVNode("th"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA"),e.createElementVNode("th",null,"out of ECA"),e.createElementVNode("th",null,"in ECA")])],-1)),e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[t[44]||(t[44]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Distance "),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),e.createElementVNode("td",Pc,e.toDisplayString((J=(K=l==null?void 0:l.goodWx)==null?void 0:K.outEca)==null?void 0:J.distance),1),e.createElementVNode("td",Lc,e.toDisplayString((X=(Q=l==null?void 0:l.goodWx)==null?void 0:Q.inEca)==null?void 0:X.distance),1),e.createElementVNode("td",null,e.toDisplayString((v=($=l==null?void 0:l.allWx)==null?void 0:$.outEca)==null?void 0:v.distance),1),e.createElementVNode("td",null,e.toDisplayString((te=(ee=l==null?void 0:l.allWx)==null?void 0:ee.inEca)==null?void 0:te.distance),1)]),e.createElementVNode("tr",null,[t[45]||(t[45]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Total Time "),e.createElementVNode("span",{class:"text-units"},"(hrs)")],-1)),e.createElementVNode("td",Mc,e.toDisplayString((oe=(le=l==null?void 0:l.goodWx)==null?void 0:le.outEca)==null?void 0:oe.time),1),e.createElementVNode("td",Gc,e.toDisplayString((de=(M=l==null?void 0:l.goodWx)==null?void 0:M.inEca)==null?void 0:de.time),1),e.createElementVNode("td",null,e.toDisplayString((ie=(re=l==null?void 0:l.allWx)==null?void 0:re.outEca)==null?void 0:ie.time),1),e.createElementVNode("td",null,e.toDisplayString((ce=(se=l==null?void 0:l.allWx)==null?void 0:se.inEca)==null?void 0:ce.time),1)]),e.createElementVNode("tr",null,[t[46]||(t[46]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Average Speed "),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),e.createElementVNode("td",Hc,e.toDisplayString(((Ee=(pe=l==null?void 0:l.goodWx)==null?void 0:pe.outEca)==null?void 0:Ee.avgSpd)||"--"),1),e.createElementVNode("td",zc,e.toDisplayString(((ye=(me=l==null?void 0:l.goodWx)==null?void 0:me.inEca)==null?void 0:ye.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Ve=(Ne=l==null?void 0:l.allWx)==null?void 0:Ne.outEca)==null?void 0:Ve.avgSpd)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((xe=(fe=l==null?void 0:l.allWx)==null?void 0:fe.inEca)==null?void 0:xe.avgSpd)||"--"),1)]),e.createElementVNode("tr",null,[t[47]||(t[47]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",uc,e.toDisplayString(((ke=(be=l==null?void 0:l.goodWx)==null?void 0:be.outEca)==null?void 0:ke.sumFoCons)||"--"),1),e.createElementVNode("td",Ic,e.toDisplayString(((he=(Se=l==null?void 0:l.goodWx)==null?void 0:Se.inEca)==null?void 0:he.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((De=(Ce=l==null?void 0:l.allWx)==null?void 0:Ce.outEca)==null?void 0:De.sumFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Te=(Be=l==null?void 0:l.allWx)==null?void 0:Be.inEca)==null?void 0:Te.sumFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[48]||(t[48]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily FO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",Uc,e.toDisplayString(((we=(We=l==null?void 0:l.goodWx)==null?void 0:We.outEca)==null?void 0:we.avgFoCons)||"--"),1),e.createElementVNode("td",Rc,e.toDisplayString(((Oe=(Ae=l==null?void 0:l.goodWx)==null?void 0:Ae.inEca)==null?void 0:Oe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Fe=(ge=l==null?void 0:l.allWx)==null?void 0:ge.outEca)==null?void 0:Fe.avgFoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((Pe=(_e=l==null?void 0:l.allWx)==null?void 0:_e.inEca)==null?void 0:Pe.avgFoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",jc,e.toDisplayString(((Qt=(b=l==null?void 0:l.goodWx)==null?void 0:b.outEca)==null?void 0:Qt.sumDgoCons)||"--"),1),e.createElementVNode("td",Yc,e.toDisplayString(((Me=(Le=l==null?void 0:l.goodWx)==null?void 0:Le.inEca)==null?void 0:Me.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((He=(Ge=l==null?void 0:l.allWx)==null?void 0:Ge.outEca)==null?void 0:He.sumDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((ue=(ze=l==null?void 0:l.allWx)==null?void 0:ze.inEca)==null?void 0:ue.sumDgoCons)||"--"),1)]),e.createElementVNode("tr",null,[t[50]||(t[50]=e.createElementVNode("td",{class:"bg-blue-light-2"},[e.createTextVNode("Averaged Daily DO/GO Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),e.createElementVNode("td",Zc,e.toDisplayString(((Ue=(Ie=l==null?void 0:l.goodWx)==null?void 0:Ie.outEca)==null?void 0:Ue.avgDgoCons)||"--"),1),e.createElementVNode("td",qc,e.toDisplayString(((je=(Re=l==null?void 0:l.goodWx)==null?void 0:Re.inEca)==null?void 0:je.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString((($t=(Xt=l==null?void 0:l.allWx)==null?void 0:Xt.outEca)==null?void 0:$t.avgDgoCons)||"--"),1),e.createElementVNode("td",null,e.toDisplayString(((el=(vt=l==null?void 0:l.allWx)==null?void 0:vt.inEca)==null?void 0:el.avgDgoCons)||"--"),1)])])]),(tl=l==null?void 0:l.goodWx)!=null&&tl.distance?(e.openBlock(),e.createElementBlock("table",Kc,[t[53]||(t[53]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{colspan:"3"},"Good Weather Period")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Date"),e.createElementVNode("th",null,"Time range"),e.createElementVNode("th",null,"Duration (hrs)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.noons[L],(S,eo)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:eo},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S,(ne,vl)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:vl},[ne.goodWx?(e.openBlock(),e.createElementBlock("tr",Jc,[e.createElementVNode("td",null,e.toDisplayString(ne.type)+" "+e.toDisplayString(n.computeUTCTime(ne.utc,"MMM-DD")),1),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(n.computeUTCTime(n.computePrevTime(ne),"MMM-DD/HHmm[Z],YYYY")),1),t[52]||(t[52]=e.createElementVNode("span",{style:{margin:"0 4px"}},"~",-1)),e.createElementVNode("span",null,e.toDisplayString(n.computeUTCTime(ne.utc,"MMM-DD/HHmm[Z],YYYY")),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",null,e.toDisplayString(n.computeDuration(ne.utc,n.computePrevTime(ne))),1)])])):e.createCommentVNode("",!0)],64))),128))],64))),128))])])):e.createCommentVNode("",!0),(ll=r.exclusion[L])!=null&&ll.time?(e.openBlock(),e.createElementBlock("div",Qc," *The Performance Speed Evaluation excludes exclusion time, distance, and consumed fuel. ")):e.createCommentVNode("",!0),(ol=l==null?void 0:l.goodWx)!=null&&ol.distance?(e.openBlock(),e.createElementBlock("div",Xc,[e.createElementVNode("div",$c,[t[63]||(t[63]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",vc,[(nl=(al=a.report)==null?void 0:al.weather)!=null&&nl.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(Vl=(Nl=a.report)==null?void 0:Nl.weather)!=null&&Vl.disableWxFactor&&((xl=(fl=a.report)==null?void 0:fl.weather)!=null&&xl.disableCFactor)?(e.openBlock(),e.createElementBlock("span",lp,e.toDisplayString((bl=l==null?void 0:l.goodWx)==null?void 0:bl.pfmSpd)+" (kts)",1)):(Sl=(kl=a.report)==null?void 0:kl.weather)!=null&&Sl.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((hl=l==null?void 0:l.goodWx)==null?void 0:hl.avgSpd),1),t[56]||(t[56]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Cl=l==null?void 0:l.goodWx)==null?void 0:Cl.avgCf)>0?(Dl=l==null?void 0:l.goodWx)==null?void 0:Dl.avgCf:`(${(Bl=l==null?void 0:l.goodWx)==null?void 0:Bl.avgCf})`),1),t[57]||(t[57]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",op,e.toDisplayString((Tl=l==null?void 0:l.goodWx)==null?void 0:Tl.pfmSpd)+" (kts)",1)],64)):(wl=(Wl=a.report)==null?void 0:Wl.weather)!=null&&wl.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",null,e.toDisplayString((Al=l==null?void 0:l.goodWx)==null?void 0:Al.avgSpd),1),t[58]||(t[58]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Ol=l==null?void 0:l.goodWx)==null?void 0:Ol.avgWf)>0?(gl=l==null?void 0:l.goodWx)==null?void 0:gl.avgWf:`(${(Fl=l==null?void 0:l.goodWx)==null?void 0:Fl.avgWf})`),1),t[59]||(t[59]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ap,e.toDisplayString((_l=l==null?void 0:l.goodWx)==null?void 0:_l.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createElementVNode("span",null,e.toDisplayString((Pl=l==null?void 0:l.goodWx)==null?void 0:Pl.avgSpd),1),t[61]||(t[61]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Ll=l==null?void 0:l.goodWx)==null?void 0:Ll.avgWf)>0?(Ml=l==null?void 0:l.goodWx)==null?void 0:Ml.avgWf:`(${(Gl=l==null?void 0:l.goodWx)==null?void 0:Gl.avgWf})`),1),(zl=(Hl=a.report)==null?void 0:Hl.weather)!=null&&zl.favorableCur&&((i=l==null?void 0:l.goodWx)==null?void 0:i.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[60]||(t[60]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((T=l==null?void 0:l.goodWx)==null?void 0:T.avgCf)>0?(j=l==null?void 0:l.goodWx)==null?void 0:j.avgCf:`(${(Y=l==null?void 0:l.goodWx)==null?void 0:Y.avgCf})`),1)],64)),t[62]||(t[62]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",np,e.toDisplayString((ae=l==null?void 0:l.goodWx)==null?void 0:ae.pfmSpd)+" (kts)",1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(rl=(dl=a.report)==null?void 0:dl.weather)!=null&&rl.favorableCur&&((il=l==null?void 0:l.goodWx)==null?void 0:il.avgCf)>0?(e.openBlock(),e.createElementBlock("span",tp,e.toDisplayString((yl=l==null?void 0:l.goodWx)==null?void 0:yl.pfmSpd)+" (kts)",1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((sl=l==null?void 0:l.goodWx)==null?void 0:sl.avgSpd),1),t[54]||(t[54]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((cl=l==null?void 0:l.goodWx)==null?void 0:cl.avgCf)>0?(pl=l==null?void 0:l.goodWx)==null?void 0:pl.avgCf:`(${(El=l==null?void 0:l.goodWx)==null?void 0:El.avgCf})`),1),t[55]||(t[55]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",ep,e.toDisplayString((ml=l==null?void 0:l.goodWx)==null?void 0:ml.pfmSpd)+" (kts)",1)],64))],64)),((Ye=l==null?void 0:l.goodWx)==null?void 0:Ye.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",dp,"(Under-performance)")):e.createCommentVNode("",!0),((Ze=l==null?void 0:l.goodWx)==null?void 0:Ze.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",rp,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ip,[t[80]||(t[80]=e.createElementVNode("div",{class:"speed-left formula flex-space"},[e.createElementVNode("label",null,"Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",sp,[(Ke=(qe=a.report)==null?void 0:qe.weather)!=null&&Ke.overallAsGoodWx?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(ve=($e=a.report)==null?void 0:$e.weather)!=null&&ve.disableWxFactor&&((tt=(et=a.report)==null?void 0:et.weather)!=null&&tt.disableCFactor)?(e.openBlock(),e.createElementBlock("label",cp,"GW Average Speed")):(ot=(lt=a.report)==null?void 0:lt.weather)!=null&&ot.disableWxFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[69]||(t[69]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[70]||(t[70]=e.createElementVNode("label",null,"-",-1)),t[71]||(t[71]=e.createElementVNode("label",null,"GW Current Factor",-1))],64)):(nt=(at=a.report)==null?void 0:at.weather)!=null&&nt.disableCFactor?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t[72]||(t[72]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[73]||(t[73]=e.createElementVNode("label",null,"-",-1)),t[74]||(t[74]=e.createElementVNode("label",null,"GW Weather Factor",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t[77]||(t[77]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[78]||(t[78]=e.createElementVNode("label",null,"-",-1)),t[79]||(t[79]=e.createElementVNode("label",null,"GW Weather Factor",-1)),(rt=(dt=a.report)==null?void 0:dt.weather)!=null&&rt.favorableCur&&((it=l==null?void 0:l.goodWx)==null?void 0:it.avgCf)>0?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[75]||(t[75]=e.createElementVNode("label",null,"-",-1)),t[76]||(t[76]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(Qe=(Je=a.report)==null?void 0:Je.weather)!=null&&Qe.favorableCur&&((Xe=l==null?void 0:l.goodWx)==null?void 0:Xe.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[67]||(t[67]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[68]||(t[68]=e.createElementVNode("label",null,"(Good Weather Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[64]||(t[64]=e.createElementVNode("label",null,"GW Average Speed",-1)),t[65]||(t[65]=e.createElementVNode("label",null,"-",-1)),t[66]||(t[66]=e.createElementVNode("label",null,"GW Current Factor",-1))],64))],64))])])])):(e.openBlock(),e.createElementBlock("div",pp,[e.createElementVNode("div",Ep,[t[86]||(t[86]=e.createElementVNode("div",{class:"speed-left row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",mp,[(ct=(st=a.report)==null?void 0:st.weather)!=null&&ct.favorableCur&&((pt=l==null?void 0:l.allWx)==null?void 0:pt.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",null,e.toDisplayString((kt=l==null?void 0:l.allWx)==null?void 0:kt.avgSpd),1),t[84]||(t[84]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((St=l==null?void 0:l.allWx)==null?void 0:St.avgWf)>0?(ht=l==null?void 0:l.allWx)==null?void 0:ht.avgWf:`(${(Ct=l==null?void 0:l.allWx)==null?void 0:Ct.avgWf})`),1),t[85]||(t[85]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",Np,e.toDisplayString((Dt=l==null?void 0:l.allWx)==null?void 0:Dt.pfmSpd)+" (kts)",1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",null,e.toDisplayString((Et=l==null?void 0:l.allWx)==null?void 0:Et.avgSpd),1),t[81]||(t[81]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((mt=l==null?void 0:l.allWx)==null?void 0:mt.avgCf)>0?(yt=l==null?void 0:l.allWx)==null?void 0:yt.avgCf:`(${(Nt=l==null?void 0:l.allWx)==null?void 0:Nt.avgCf})`),1),t[82]||(t[82]=e.createElementVNode("span",null,"-",-1)),e.createElementVNode("span",null,e.toDisplayString(((Vt=l==null?void 0:l.allWx)==null?void 0:Vt.avgWf)>0?(ft=l==null?void 0:l.allWx)==null?void 0:ft.avgWf:`(${(xt=l==null?void 0:l.allWx)==null?void 0:xt.avgWf})`),1),t[83]||(t[83]=e.createElementVNode("label",null,"=",-1)),e.createElementVNode("span",yp,e.toDisplayString((bt=l==null?void 0:l.allWx)==null?void 0:bt.pfmSpd)+" (kts)",1)],64)),((Bt=l==null?void 0:l.allWx)==null?void 0:Bt.pfmStatus)==="Under"?(e.openBlock(),e.createElementBlock("span",Vp,"(Under-performance)")):e.createCommentVNode("",!0),((Tt=l==null?void 0:l.allWx)==null?void 0:Tt.pfmStatus)==="Over"?(e.openBlock(),e.createElementBlock("span",fp,"(Over-performance)")):e.createCommentVNode("",!0)])]),e.createElementVNode("div",xp,[t[96]||(t[96]=e.createElementVNode("div",{class:"speed-left formula row"},[e.createElementVNode("label",null,"All Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",bp,[(wt=(Wt=a.report)==null?void 0:Wt.weather)!=null&&wt.favorableCur&&((At=l==null?void 0:l.allWx)==null?void 0:At.avgCf)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t[92]||(t[92]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[93]||(t[93]=e.createElementVNode("label",null,"-",-1)),t[94]||(t[94]=e.createElementVNode("label",null,"Weather Factor ",-1)),t[95]||(t[95]=e.createElementVNode("label",null,"(Current Factor Not Applied)",-1))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t[87]||(t[87]=e.createElementVNode("label",null,"All Weather Average Speed",-1)),t[88]||(t[88]=e.createElementVNode("label",null,"-",-1)),t[89]||(t[89]=e.createElementVNode("label",null,"Current Factor",-1)),t[90]||(t[90]=e.createElementVNode("label",null,"-",-1)),t[91]||(t[91]=e.createElementVNode("label",null,"Weather Factor",-1))],64))])])]))]),e.createElementVNode("div",kp,[e.createElementVNode("div",Sp,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(L+1)+" Time Analysis",1),(gt=(Ot=a.report)==null?void 0:Ot.weather)!=null&&gt.noExtrapolation?(e.openBlock(),e.createElementBlock("span",hp,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",Cp,[e.createElementVNode("div",Dp,[t[100]||(t[100]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Bp,[e.createElementVNode("div",Tp,[e.createElementVNode("div",null,e.toDisplayString((_t=(Ft=a.report)==null?void 0:Ft.weather)!=null&&_t.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[97]||(t[97]=e.createElementVNode("div",{class:"line"},null,-1)),t[98]||(t[98]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[99]||(t[99]=e.createElementVNode("div",null,"(a)",-1))])]),e.createElementVNode("div",Wp,[e.createElementVNode("div",wp,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Lt=(Pt=l==null?void 0:l.extend)==null?void 0:Pt.cp)==null?void 0:Lt.speed,"Under"))+"kts)",1),t[101]||(t[101]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Ap,[e.createElementVNode("div",Op,[e.createElementVNode("div",null,e.toDisplayString((Gt=(Mt=a.report)==null?void 0:Mt.weather)!=null&&Gt.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[102]||(t[102]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(zt=(Ht=l==null?void 0:l.extend)==null?void 0:Ht.cp)==null?void 0:zt.speed,"Under"))+"kts",1)]),t[103]||(t[103]=e.createElementVNode("div",null,"(b)",-1))])]),e.createElementVNode("div",gp,[e.createElementVNode("div",Fp,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(It=(ut=l==null?void 0:l.extend)==null?void 0:ut.cp)==null?void 0:It.speed,"Over"))+"kts)",1),t[104]||(t[104]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",_p,[e.createElementVNode("div",Pp,[e.createElementVNode("div",null,e.toDisplayString((Rt=(Ut=a.report)==null?void 0:Ut.weather)!=null&&Rt.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[105]||(t[105]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Yt=(jt=l==null?void 0:l.extend)==null?void 0:jt.cp)==null?void 0:Yt.speed,"Over"))+"kts",1)]),t[106]||(t[106]=e.createElementVNode("div",null,"(c)",-1))])]),t[107]||(t[107]=e.createStaticVNode('<div class="formula-item flex-start bg-blue-light" data-v-4bd4a6f6><div class="flex-space" style="width:300px;font-weight:400;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Time Lost</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(a)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(b)</div></div><div class="flex-space" style="width:300px;margin-left:200px;font-weight:400;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Time Gained</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(c)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(a)</div></div></div>',1))]),e.createElementVNode("div",Lp,[e.createElementVNode("div",Mp,[t[108]||(t[108]=e.createElementVNode("label",null,"Time Lost",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed > Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(qt=(Zt=l==null?void 0:l.extend)==null?void 0:Zt.cp)==null?void 0:qt.speed,"Under"))+" kts) ",1)]),e.createElementVNode("div",Gp,[t[109]||(t[109]=e.createElementVNode("label",null,"Time Gained",-1)),e.createElementVNode("div",null," Total Time at Good Weather Performance Speed < Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(ul=(Kt=l==null?void 0:l.extend)==null?void 0:Kt.cp)==null?void 0:ul.speed,"Over"))+" kts) ",1)]),e.createElementVNode("div",Hp,[t[110]||(t[110]=e.createElementVNode("label",null,"No Time Lost and Gained",-1)),e.createElementVNode("div",null," Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ul=(Il=l==null?void 0:l.extend)==null?void 0:Il.cp)==null?void 0:Ul.speed,"Over"))+" kts) ≤ Total Time at Good Weather Performance Speed ≤ Total Time at (CP Speed -"+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(jl=(Rl=l==null?void 0:l.extend)==null?void 0:Rl.cp)==null?void 0:jl.speed,"Under"))+" kts) ",1)])]),(Yl=l==null?void 0:l.goodWx)!=null&&Yl.distance?(e.openBlock(),e.createElementBlock("div",zp,[e.createElementVNode("div",up,[t[114]||(t[114]=e.createElementVNode("div",{class:"formula-left flex-space"},[e.createElementVNode("label",null,"Total Time at Good Weather Performance Speed"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",Ip,[e.createElementVNode("div",Up,[e.createElementVNode("div",null,e.toDisplayString((ql=(Zl=a.report)==null?void 0:Zl.weather)!=null&&ql.noExtrapolation?(Kl=l==null?void 0:l.goodWx)==null?void 0:Kl.distance:(Jl=l==null?void 0:l.allWx)==null?void 0:Jl.distance),1),t[111]||(t[111]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((ao=l==null?void 0:l.goodWx)==null?void 0:ao.pfmSpd),1)]),t[112]||(t[112]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((no=l==null?void 0:l.timeConclusion)==null?void 0:no.timeAtPfmSpd)+" (hrs)",1),t[113]||(t[113]=e.createElementVNode("div",null,"(a')",-1))])]),e.createElementVNode("div",Rp,[e.createElementVNode("div",jp,[e.createElementVNode("label",null,"Total Time at (CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(io=(ro=l==null?void 0:l.extend)==null?void 0:ro.cp)==null?void 0:io.speed,"Under"))+"kts)",1),t[115]||(t[115]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Yp,[e.createElementVNode("div",Zp,[e.createElementVNode("div",null,e.toDisplayString((co=(so=a.report)==null?void 0:so.weather)!=null&&co.noExtrapolation?(po=l==null?void 0:l.goodWx)==null?void 0:po.distance:(Eo=l==null?void 0:l.allWx)==null?void 0:Eo.distance),1),t[116]||(t[116]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((mo=l==null?void 0:l.timeConclusion)==null?void 0:mo.minusAbtSpd),1)]),t[117]||(t[117]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((yo=l==null?void 0:l.timeConclusion)==null?void 0:yo.timeAtMinusAbtSpd)+" (hrs)",1),t[118]||(t[118]=e.createElementVNode("div",null,"(b')",-1))])]),e.createElementVNode("div",qp,[e.createElementVNode("div",Kp,[e.createElementVNode("label",null,"Total Time at (CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Vo=(No=l==null?void 0:l.extend)==null?void 0:No.cp)==null?void 0:Vo.speed,"Over"))+"kts)",1),t[119]||(t[119]=e.createElementVNode("label",null,"=",-1))]),e.createElementVNode("div",Jp,[e.createElementVNode("div",Qp,[e.createElementVNode("div",null,e.toDisplayString((xo=(fo=a.report)==null?void 0:fo.weather)!=null&&xo.noExtrapolation?(bo=l==null?void 0:l.goodWx)==null?void 0:bo.distance:(ko=l==null?void 0:l.allWx)==null?void 0:ko.distance),1),t[120]||(t[120]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((So=l==null?void 0:l.timeConclusion)==null?void 0:So.plusAbtSpd),1)]),t[121]||(t[121]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ho=l==null?void 0:l.timeConclusion)==null?void 0:ho.timeAtPlusAbtSpd)+" (hrs)",1),t[122]||(t[122]=e.createElementVNode("div",null,"(c')",-1))])]),e.createElementVNode("div",Xp,[((Co=l==null?void 0:l.timeConclusion)==null?void 0:Co.conclusionStatus)==="Lost"?(e.openBlock(),e.createElementBlock("div",$p,[t[123]||(t[123]=e.createElementVNode("div",null,"Time Lost",-1)),t[124]||(t[124]=e.createElementVNode("div",null,"=",-1)),t[125]||(t[125]=e.createElementVNode("div",null,"(a') - (b')",-1)),t[126]||(t[126]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Do=l==null?void 0:l.timeConclusion)==null?void 0:Do.timeAtPfmSpd),1),t[127]||(t[127]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Bo=l==null?void 0:l.timeConclusion)==null?void 0:Bo.timeAtMinusAbtSpd),1),t[128]||(t[128]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((To=l==null?void 0:l.timeConclusion)==null?void 0:To.timeLost)+" (hrs)",1)])):((Wo=l==null?void 0:l.timeConclusion)==null?void 0:Wo.conclusionStatus)==="Gain"?(e.openBlock(),e.createElementBlock("div",vp,[t[129]||(t[129]=e.createElementVNode("div",null,"Time Lost",-1)),t[130]||(t[130]=e.createElementVNode("div",null,"=",-1)),t[131]||(t[131]=e.createElementVNode("div",null,"(c') - (a')",-1)),t[132]||(t[132]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((wo=l==null?void 0:l.timeConclusion)==null?void 0:wo.timeAtPlusAbtSpd),1),t[133]||(t[133]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Ao=l==null?void 0:l.timeConclusion)==null?void 0:Ao.timeAtPfmSpd),1),t[134]||(t[134]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Oo=l==null?void 0:l.timeConclusion)==null?void 0:Oo.timeGain)+" (hrs)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",e1,[t[135]||(t[135]=e.createElementVNode("label",{style:{"margin-right":"4px","font-weight":"400"}}," Conclusion: ",-1)),e.createElementVNode("div",{class:e.normalizeClass(((go=l==null?void 0:l.timeConclusion)==null?void 0:go.conclusionStatus)==="Lost"?"lost":((Fo=l==null?void 0:l.timeConclusion)==null?void 0:Fo.conclusionStatus)==="Gain"?"gain":"")},e.toDisplayString(((_o=l==null?void 0:l.timeConclusion)==null?void 0:_o.conclusion)||""),3)])])])):(e.openBlock(),e.createElementBlock("div",t1,e.toDisplayString(r.noGoodWxDay),1))]),e.createElementVNode("div",l1,[e.createElementVNode("div",o1,[e.createElementVNode("span",null,"Seg. "+e.toDisplayString(L+1)+" Consumption Analysis",1),(Lo=(Po=a.report)==null?void 0:Po.weather)!=null&&Lo.noExtrapolation?(e.openBlock(),e.createElementBlock("span",a1,"( no extrapolation beyond the good weather period )")):e.createCommentVNode("",!0)]),e.createElementVNode("div",n1,[e.createElementVNode("div",d1,[t[141]||(t[141]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",r1,[e.createElementVNode("div",i1,[e.createElementVNode("div",null,e.toDisplayString((Go=(Mo=a.report)==null?void 0:Mo.weather)!=null&&Go.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[136]||(t[136]=e.createElementVNode("div",{class:"line"},null,-1)),t[137]||(t[137]=e.createElementVNode("div",null,"Good Weather Performance Speed",-1))]),t[138]||(t[138]=e.createElementVNode("div",null,"x",-1)),t[139]||(t[139]=e.createElementVNode("div",{class:"fraction",style:{width:"200px"}},[e.createElementVNode("div",null,"Good Weather Consumption*"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"Good Weather Time")],-1)),t[140]||(t[140]=e.createElementVNode("div",null,"(d)",-1))])]),e.createElementVNode("div",s1,[t[142]||(t[142]=e.createElementVNode("div",{class:"flex-end text-tips"},"* For FO: Good Weather FO Cons. + Good Weather M/E DO/GO Cons. in ECA",-1)),((zo=(Ho=l.extend)==null?void 0:Ho.cp)==null?void 0:zo.dgo)>0?(e.openBlock(),e.createElementBlock("div",c1," * For DO/GO: Good Weather DO/GO Cons. - Good Weather M/E DO/GO Cons. in ECA ")):e.createCommentVNode("",!0)]),e.createElementVNode("div",p1,[t[147]||(t[147]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",E1,[e.createElementVNode("div",m1,[e.createElementVNode("div",null,e.toDisplayString((Io=(uo=a.report)==null?void 0:uo.weather)!=null&&Io.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[143]||(t[143]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed - "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(Ro=(Uo=l==null?void 0:l.extend)==null?void 0:Uo.cp)==null?void 0:Ro.speed,"Under"))+"kts",1)]),t[144]||(t[144]=e.createElementVNode("div",null,"x",-1)),t[145]||(t[145]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption + Consumer Over"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[146]||(t[146]=e.createElementVNode("div",null,"(e)",-1))])]),e.createElementVNode("div",y1,[t[152]||(t[152]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",N1,[e.createElementVNode("div",V1,[e.createElementVNode("div",null,e.toDisplayString((Yo=(jo=a.report)==null?void 0:jo.weather)!=null&&Yo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1),t[148]||(t[148]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,"CP Speed + "+e.toDisplayString(n.computeAbtSpeed(l==null?void 0:l.timeConclusion,(qo=(Zo=l==null?void 0:l.extend)==null?void 0:Zo.cp)==null?void 0:qo.speed,"Over"))+"kts",1)]),t[149]||(t[149]=e.createElementVNode("div",null,"x",-1)),t[150]||(t[150]=e.createElementVNode("div",{class:"fraction",style:{width:"260px"}},[e.createElementVNode("div",null,"Daily CP Consumption - Consumer Under"),e.createElementVNode("div",{class:"line"}),e.createElementVNode("div",null,"24 hours")],-1)),t[151]||(t[151]=e.createElementVNode("div",null,"(f)",-1))])]),t[159]||(t[159]=e.createStaticVNode('<div class="formula-item flex-evenly bg-blue-light" data-v-4bd4a6f6><div class="flex-space" style="width:240px;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Fuel Over-consumption</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(d)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(e)</div></div><div class="flex-space" style="width:200px;" data-v-4bd4a6f6><label data-v-4bd4a6f6>Fuel Saving</label><div data-v-4bd4a6f6>=</div><div data-v-4bd4a6f6>(f)</div><div data-v-4bd4a6f6>-</div><div data-v-4bd4a6f6>(d)</div></div></div>',1)),((Jo=(Ko=l.extend)==null?void 0:Ko.cp)==null?void 0:Jo.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",f1,[t[155]||(t[155]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Over-consumption in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",x1,[e.createElementVNode("div",b1,[t[153]||(t[153]=e.createElementVNode("div",null,"ECA Distance × Fuel Over-consumption",-1)),t[154]||(t[154]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Xo=(Qo=a.report)==null?void 0:Qo.weather)!=null&&Xo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])]),e.createElementVNode("div",k1,[t[158]||(t[158]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Fuel Saving in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",S1,[e.createElementVNode("div",h1,[t[156]||(t[156]=e.createElementVNode("div",null,"ECA Distance × Fuel Saving",-1)),t[157]||(t[157]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((vo=($o=a.report)==null?void 0:$o.weather)!=null&&vo.noExtrapolation?"Total Distance At Good Weather":"Total Distance"),1)])])])],64)):e.createCommentVNode("",!0)]),t[243]||(t[243]=e.createElementVNode("div",{class:"formula-desc"},[e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Over-consumption"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption > Max CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"Fuel Saving"),e.createElementVNode("div",null,"Entire Voyage Consumption using Good Weather Consumption < Min CP Consumption")]),e.createElementVNode("div",{class:"flex-end"},[e.createElementVNode("label",null,"No Fuel Over-consumption or Saving"),e.createElementVNode("span",null,"Min CP ≤ Entire Voyage Consumption using Good Weather Consumption ≤ Max CP")])],-1)),e.createElementVNode("div",C1,"Seg. "+e.toDisplayString(L+1)+" Fuel Oil",1),(ea=l==null?void 0:l.goodWx)!=null&&ea.distance?(e.openBlock(),e.createElementBlock("div",D1,[((la=(ta=l==null?void 0:l.goodWx)==null?void 0:ta.inEca)==null?void 0:la.distance)>0?(e.openBlock(),e.createElementBlock("div",B1,[t[165]||(t[165]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"* Good Weather M/E DO/GO Cons. in ECA"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",T1,[e.createElementVNode("div",W1,[e.createElementVNode("div",null,e.toDisplayString((aa=(oa=l==null?void 0:l.goodWx)==null?void 0:oa.inEca)==null?void 0:aa.sumDgoCons),1)]),t[162]||(t[162]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",w1,[e.createElementVNode("div",null,e.toDisplayString((da=(na=l==null?void 0:l.extend)==null?void 0:na.cp)==null?void 0:da.dgo),1),t[160]||(t[160]=e.createElementVNode("div",{class:"line"},null,-1)),t[161]||(t[161]=e.createElementVNode("div",null,"24",-1))]),t[163]||(t[163]=e.createElementVNode("div",null,"*",-1)),e.createElementVNode("div",null,e.toDisplayString((ia=(ra=l==null?void 0:l.goodWx)==null?void 0:ra.inEca)==null?void 0:ia.time),1),t[164]||(t[164]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ca=(sa=l==null?void 0:l.fuelConclusion)==null?void 0:sa.fo)==null?void 0:ca.dgoAsFoCons)+" (mt)",1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",A1,[t[172]||(t[172]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",O1,[e.createElementVNode("div",g1,[e.createElementVNode("div",null,e.toDisplayString((Ea=(pa=a.report)==null?void 0:pa.weather)!=null&&Ea.noExtrapolation?(ma=l==null?void 0:l.goodWx)==null?void 0:ma.distance:(ya=l==null?void 0:l.allWx)==null?void 0:ya.distance),1),t[166]||(t[166]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Na=l==null?void 0:l.goodWx)==null?void 0:Na.pfmSpd),1)]),t[169]||(t[169]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",F1,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((Va=l==null?void 0:l.goodWx)==null?void 0:Va.sumFoCons),1),((xa=(fa=l==null?void 0:l.goodWx)==null?void 0:fa.inEca)==null?void 0:xa.distance)>0?(e.openBlock(),e.createElementBlock("span",_1,[t[167]||(t[167]=e.createElementVNode("span",null," + ",-1)),e.createElementVNode("span",null,e.toDisplayString((ka=(ba=l==null?void 0:l.fuelConclusion)==null?void 0:ba.fo)==null?void 0:ka.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[168]||(t[168]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Sa=l==null?void 0:l.goodWx)==null?void 0:Sa.time),1)]),t[170]||(t[170]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ca=(ha=l.fuelConclusion)==null?void 0:ha.fo)==null?void 0:Ca.entireCons)+" (mt)",1),t[171]||(t[171]=e.createElementVNode("div",null,"(d')",-1))])]),e.createElementVNode("div",P1,[t[179]||(t[179]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",L1,[e.createElementVNode("div",M1,[e.createElementVNode("div",null,e.toDisplayString((Ba=(Da=a.report)==null?void 0:Da.weather)!=null&&Ba.noExtrapolation?(Ta=l==null?void 0:l.goodWx)==null?void 0:Ta.distance:(Wa=l==null?void 0:l.allWx)==null?void 0:Wa.distance),1),t[173]||(t[173]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((wa=l==null?void 0:l.timeConclusion)==null?void 0:wa.minusAbtSpd),1)]),t[176]||(t[176]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",G1,[e.createElementVNode("div",null,e.toDisplayString((Oa=(Aa=l==null?void 0:l.fuelConclusion)==null?void 0:Aa.fo)==null?void 0:Oa.overTolerance),1),t[174]||(t[174]=e.createElementVNode("div",{class:"line"},null,-1)),t[175]||(t[175]=e.createElementVNode("div",null,"24",-1))]),t[177]||(t[177]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Fa=(ga=l.fuelConclusion)==null?void 0:ga.fo)==null?void 0:Fa.maxCons)+" (mt)",1),t[178]||(t[178]=e.createElementVNode("div",null,"(e')",-1))])]),e.createElementVNode("div",H1,[t[186]||(t[186]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",z1,[e.createElementVNode("div",u1,[e.createElementVNode("div",null,e.toDisplayString((Pa=(_a=a.report)==null?void 0:_a.weather)!=null&&Pa.noExtrapolation?(La=l==null?void 0:l.goodWx)==null?void 0:La.distance:(Ma=l==null?void 0:l.allWx)==null?void 0:Ma.distance),1),t[180]||(t[180]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Ga=l==null?void 0:l.timeConclusion)==null?void 0:Ga.plusAbtSpd),1)]),t[183]||(t[183]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",I1,[e.createElementVNode("div",null,e.toDisplayString((za=(Ha=l==null?void 0:l.fuelConclusion)==null?void 0:Ha.fo)==null?void 0:za.underTolerance),1),t[181]||(t[181]=e.createElementVNode("div",{class:"line"},null,-1)),t[182]||(t[182]=e.createElementVNode("div",null,"24",-1))]),t[184]||(t[184]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ia=(ua=l.fuelConclusion)==null?void 0:ua.fo)==null?void 0:Ia.minCons)+" (mt)",1),t[185]||(t[185]=e.createElementVNode("div",null,"(f')",-1))])]),e.createElementVNode("div",U1,[((Ra=(Ua=l==null?void 0:l.fuelConclusion)==null?void 0:Ua.fo)==null?void 0:Ra.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",R1,[t[187]||(t[187]=e.createElementVNode("div",null,"Fuel Oil Over-consumption",-1)),t[188]||(t[188]=e.createElementVNode("div",null,"=",-1)),t[189]||(t[189]=e.createElementVNode("div",null,"(d') - (e')",-1)),t[190]||(t[190]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ya=(ja=l==null?void 0:l.fuelConclusion)==null?void 0:ja.fo)==null?void 0:Ya.entireCons),1),t[191]||(t[191]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((qa=(Za=l==null?void 0:l.fuelConclusion)==null?void 0:Za.fo)==null?void 0:qa.maxCons),1),t[192]||(t[192]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Ja=(Ka=l==null?void 0:l.fuelConclusion)==null?void 0:Ka.fo)==null?void 0:Ja.overCons),1)]),(Xa=(Qa=l==null?void 0:l.goodWx)==null?void 0:Qa.inEca)!=null&&Xa.distance?(e.openBlock(),e.createElementBlock("div",j1,[t[194]||(t[194]=e.createElementVNode("div",null,"Fuel Oil Over-consumption in ECA",-1)),t[195]||(t[195]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",Y1,[e.createElementVNode("div",null,e.toDisplayString((va=($a=l==null?void 0:l.goodWx)==null?void 0:$a.inEca)==null?void 0:va.distance)+" * "+e.toDisplayString((tn=(en=l==null?void 0:l.fuelConclusion)==null?void 0:en.fo)==null?void 0:tn.overCons),1),t[193]||(t[193]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((on=(ln=a.report)==null?void 0:ln.weather)!=null&&on.noExtrapolation?(an=l==null?void 0:l.goodWx)==null?void 0:an.distance:(nn=l==null?void 0:l.allWx)==null?void 0:nn.distance),1)]),t[196]||(t[196]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((rn=(dn=l==null?void 0:l.fuelConclusion)==null?void 0:dn.fo)==null?void 0:rn.foOverConsInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):((cn=(sn=l==null?void 0:l.fuelConclusion)==null?void 0:sn.fo)==null?void 0:cn.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Z1,[t[197]||(t[197]=e.createElementVNode("div",null,"Fuel Oil Saving",-1)),t[198]||(t[198]=e.createElementVNode("div",null,"=",-1)),t[199]||(t[199]=e.createElementVNode("div",null,"(f') - (d')",-1)),t[200]||(t[200]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((En=(pn=l==null?void 0:l.fuelConclusion)==null?void 0:pn.fo)==null?void 0:En.minCons),1),t[201]||(t[201]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((yn=(mn=l==null?void 0:l.fuelConclusion)==null?void 0:mn.fo)==null?void 0:yn.entireCons),1),t[202]||(t[202]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Vn=(Nn=l==null?void 0:l.fuelConclusion)==null?void 0:Nn.fo)==null?void 0:Vn.saving)+" (mt)",1)]),(xn=(fn=l==null?void 0:l.goodWx)==null?void 0:fn.inEca)!=null&&xn.distance?(e.openBlock(),e.createElementBlock("div",q1,[t[204]||(t[204]=e.createElementVNode("div",null,"Fuel Oil Saving in ECA",-1)),t[205]||(t[205]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",K1,[e.createElementVNode("div",null,e.toDisplayString((kn=(bn=a.report)==null?void 0:bn.weather)!=null&&kn.noExtrapolation?(hn=(Sn=l==null?void 0:l.goodWx)==null?void 0:Sn.inEca)==null?void 0:hn.distance:(Dn=(Cn=l==null?void 0:l.allWx)==null?void 0:Cn.inEca)==null?void 0:Dn.distance)+" * "+e.toDisplayString((Tn=(Bn=l==null?void 0:l.fuelConclusion)==null?void 0:Bn.fo)==null?void 0:Tn.saving),1),t[203]||(t[203]=e.createElementVNode("div",{class:"line",style:{"border-color":"var(--idm-black-9)"}},null,-1)),e.createElementVNode("div",null,e.toDisplayString((wn=(Wn=a.report)==null?void 0:Wn.weather)!=null&&wn.noExtrapolation?(An=l==null?void 0:l.goodWx)==null?void 0:An.distance:(On=l==null?void 0:l.allWx)==null?void 0:On.distance),1)]),t[206]||(t[206]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Fn=(gn=l==null?void 0:l.fuelConclusion)==null?void 0:gn.fo)==null?void 0:Fn.foSavingInEca)+" (mt)",1)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Pn=(_n=l==null?void 0:l.fuelConclusion)==null?void 0:_n.fo)==null?void 0:Pn.conclusionStatus)==="Over"?"flex-center lost":((Mn=(Ln=l==null?void 0:l.fuelConclusion)==null?void 0:Ln.fo)==null?void 0:Mn.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[207]||(t[207]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((Hn=(Gn=l==null?void 0:l.fuelConclusion)==null?void 0:Gn.fo)==null?void 0:Hn.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",J1,e.toDisplayString(r.noGoodWxDay),1)),((un=(zn=l==null?void 0:l.extend)==null?void 0:zn.cp)==null?void 0:un.dgo)>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",Q1,[e.createElementVNode("div",X1,[t[208]||(t[208]=e.createElementVNode("i",{class:"iconfont icon-baobiao"},null,-1)),e.createElementVNode("div",$1,"Seg. "+e.toDisplayString(L+1)+" Diesel/Gas Oil",1)])]),(In=l==null?void 0:l.goodWx)!=null&&In.distance?(e.openBlock(),e.createElementBlock("div",v1,[e.createElementVNode("div",eE,[t[215]||(t[215]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Entire Voyage Consumption using Good Weather Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",tE,[e.createElementVNode("div",lE,[e.createElementVNode("div",null,e.toDisplayString((Rn=(Un=a.report)==null?void 0:Un.weather)!=null&&Rn.noExtrapolation?(jn=l==null?void 0:l.goodWx)==null?void 0:jn.distance:(Yn=l==null?void 0:l.allWx)==null?void 0:Yn.distance),1),t[209]||(t[209]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((Zn=l==null?void 0:l.goodWx)==null?void 0:Zn.pfmSpd),1)]),t[212]||(t[212]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",oE,[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((qn=l==null?void 0:l.goodWx)==null?void 0:qn.sumDgoCons),1),((Jn=(Kn=l==null?void 0:l.goodWx)==null?void 0:Kn.inEca)==null?void 0:Jn.distance)>0?(e.openBlock(),e.createElementBlock("span",aE,[t[210]||(t[210]=e.createElementVNode("span",null," - ",-1)),e.createElementVNode("span",null,e.toDisplayString((Xn=(Qn=l==null?void 0:l.fuelConclusion)==null?void 0:Qn.fo)==null?void 0:Xn.dgoAsFoCons),1)])):e.createCommentVNode("",!0)]),t[211]||(t[211]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString(($n=l==null?void 0:l.goodWx)==null?void 0:$n.time),1)]),t[213]||(t[213]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((ed=(vn=l.fuelConclusion)==null?void 0:vn.dgo)==null?void 0:ed.entireCons)+" (mt)",1),t[214]||(t[214]=e.createElementVNode("div",null,"(d'')",-1))])]),e.createElementVNode("div",nE,[t[222]||(t[222]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Max CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",dE,[e.createElementVNode("div",rE,[e.createElementVNode("div",null,e.toDisplayString((ld=(td=a.report)==null?void 0:td.weather)!=null&&ld.noExtrapolation?(od=l==null?void 0:l.goodWx)==null?void 0:od.distance:(ad=l==null?void 0:l.allWx)==null?void 0:ad.distance),1),t[216]||(t[216]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((nd=l==null?void 0:l.timeConclusion)==null?void 0:nd.minusAbtSpd),1)]),t[219]||(t[219]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",iE,[e.createElementVNode("div",null,e.toDisplayString((rd=(dd=l==null?void 0:l.fuelConclusion)==null?void 0:dd.dgo)==null?void 0:rd.overTolerance),1),t[217]||(t[217]=e.createElementVNode("div",{class:"line"},null,-1)),t[218]||(t[218]=e.createElementVNode("div",null,"24",-1))]),t[220]||(t[220]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((sd=(id=l.fuelConclusion)==null?void 0:id.dgo)==null?void 0:sd.maxCons)+" (mt)",1),t[221]||(t[221]=e.createElementVNode("div",null,"(e'')",-1))])]),e.createElementVNode("div",sE,[t[229]||(t[229]=e.createElementVNode("div",{class:"formula-left flex-space",style:{width:"200px"}},[e.createElementVNode("label",null,"Min CP Consumption"),e.createElementVNode("label",null,"=")],-1)),e.createElementVNode("div",cE,[e.createElementVNode("div",pE,[e.createElementVNode("div",null,e.toDisplayString((pd=(cd=a.report)==null?void 0:cd.weather)!=null&&pd.noExtrapolation?(Ed=l==null?void 0:l.goodWx)==null?void 0:Ed.distance:(md=l==null?void 0:l.allWx)==null?void 0:md.distance),1),t[223]||(t[223]=e.createElementVNode("div",{class:"line"},null,-1)),e.createElementVNode("div",null,e.toDisplayString((yd=l==null?void 0:l.timeConclusion)==null?void 0:yd.plusAbtSpd),1)]),t[226]||(t[226]=e.createElementVNode("div",null,"x",-1)),e.createElementVNode("div",EE,[e.createElementVNode("div",null,e.toDisplayString((Vd=(Nd=l==null?void 0:l.fuelConclusion)==null?void 0:Nd.dgo)==null?void 0:Vd.underTolerance),1),t[224]||(t[224]=e.createElementVNode("div",{class:"line"},null,-1)),t[225]||(t[225]=e.createElementVNode("div",null,"24",-1))]),t[227]||(t[227]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((xd=(fd=l.fuelConclusion)==null?void 0:fd.dgo)==null?void 0:xd.minCons)+" (mt)",1),t[228]||(t[228]=e.createElementVNode("div",null,"(f'')",-1))])]),e.createElementVNode("div",mE,[((kd=(bd=l==null?void 0:l.fuelConclusion)==null?void 0:bd.dgo)==null?void 0:kd.conclusionStatus)==="Over"?(e.openBlock(),e.createElementBlock("div",yE,[t[230]||(t[230]=e.createElementVNode("div",null,"Diesel/Gas Oil Over-consumption",-1)),t[231]||(t[231]=e.createElementVNode("div",null,"=",-1)),t[232]||(t[232]=e.createElementVNode("div",null,"(d'') - (e'')",-1)),t[233]||(t[233]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((hd=(Sd=l==null?void 0:l.fuelConclusion)==null?void 0:Sd.dgo)==null?void 0:hd.entireCons),1),t[234]||(t[234]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Dd=(Cd=l==null?void 0:l.fuelConclusion)==null?void 0:Cd.dgo)==null?void 0:Dd.maxCons),1),t[235]||(t[235]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Td=(Bd=l==null?void 0:l.fuelConclusion)==null?void 0:Bd.dgo)==null?void 0:Td.overCons),1)])):((wd=(Wd=l==null?void 0:l.fuelConclusion)==null?void 0:Wd.dgo)==null?void 0:wd.conclusionStatus)==="Saving"?(e.openBlock(),e.createElementBlock("div",NE,[t[236]||(t[236]=e.createElementVNode("div",null,"Diesel/Gas Oil Saving",-1)),t[237]||(t[237]=e.createElementVNode("div",null,"=",-1)),t[238]||(t[238]=e.createElementVNode("div",null,"(f'') - (d'')",-1)),t[239]||(t[239]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Od=(Ad=l==null?void 0:l.fuelConclusion)==null?void 0:Ad.dgo)==null?void 0:Od.minCons),1),t[240]||(t[240]=e.createElementVNode("div",null,"-",-1)),e.createElementVNode("div",null,e.toDisplayString((Fd=(gd=l==null?void 0:l.fuelConclusion)==null?void 0:gd.dgo)==null?void 0:Fd.entireCons),1),t[241]||(t[241]=e.createElementVNode("div",null,"=",-1)),e.createElementVNode("div",null,e.toDisplayString((Pd=(_d=l==null?void 0:l.fuelConclusion)==null?void 0:_d.dgo)==null?void 0:Pd.saving)+" (mt)",1)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(((Md=(Ld=l==null?void 0:l.fuelConclusion)==null?void 0:Ld.dgo)==null?void 0:Md.conclusionStatus)==="Over"?"flex-center lost":((Hd=(Gd=l==null?void 0:l.fuelConclusion)==null?void 0:Gd.dgo)==null?void 0:Hd.conclusionStatus)==="Saving"?"flex-center gain":"flex-center")},[t[242]||(t[242]=e.createElementVNode("label",{style:{"font-weight":"400","margin-right":"4px",color:"var(--idm-black-9)"}}," Conclusion: ",-1)),e.createElementVNode("div",null,e.toDisplayString(((ud=(zd=l==null?void 0:l.fuelConclusion)==null?void 0:zd.dgo)==null?void 0:ud.conclusion)||""),1)],2)])])):(e.openBlock(),e.createElementBlock("div",VE,e.toDisplayString(r.noGoodWxDay),1))],64)):e.createCommentVNode("",!0)])])}),128))])])}const xE=Jt(ls,[["render",fE],["__scopeId","data-v-4bd4a6f6"]]),Fm="",bE={name:"OrmVygInventory",components:{},props:{report:{type:Object,default:()=>({})},inventory:{type:Array,default:()=>[]},showFactor:{type:Boolean,default:!1}},data(){return{showCF:!1,showAisDistance:!0,showSig:!0,showSwell:!0,showWave:!0,showWaterTemp:!1}},computed:{computeTDClass(){return function(o){if(o.type==="BOSP")return"";{const t=[];return t.push(o.noonLength?"no-border-bottom":"no-border"),t.push(o.excluded?"excluded":o.goodWx?"good-wx":""),t.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,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeLng(){return function(o){return H.LngLatHelper.lng2pretty(o)}},computeLat(){return function(o){return H.LngLatHelper.lat2pretty(o)}},computePrecision(){return function(o,t=2,a="0.0"){return o?H.LngLatHelper.roundPrecision(o,t):a}}},watch:{report:{handler(o,t){o!=null&&o.id&&this.$nextTick(()=>{this.prepare()})},immediate:!0}},methods:{prepare(){var o,t,a,s,r,n,E,d,c,f,y,N;this.showCF=((t=(o=this.report)==null?void 0:o.weather)==null?void 0:t.showCF)??!1,this.showAisDistance=((s=(a=this.report)==null?void 0:a.weather)==null?void 0:s.showAisDistance)??!0,this.showSig=((n=(r=this.report)==null?void 0:r.weather)==null?void 0:n.showSig)??!0,this.showSwell=((d=(E=this.report)==null?void 0:E.weather)==null?void 0:d.showSwell)??!0,this.showWave=((f=(c=this.report)==null?void 0:c.weather)==null?void 0:f.showWave)??!0,this.showWaterTemp=((N=(y=this.report)==null?void 0:y.weather)==null?void 0:N.waterTempSwitch)||!1}}},kE={class:"report-inventory"},SE={class:"section summary-section"},hE={class:"summary-block"},CE={class:"label",rowspan:"4"},DE={class:"section inventory-section"},BE={class:"inventory-block flex-center"},TE=["colspan"],WE={key:0,class:"label",colspan:"2"},wE={key:0,class:"label",rowspan:"2"},AE={key:1,class:"label",rowspan:"2"},OE={key:2,class:"label",rowspan:"2"},gE={key:3,class:"label",colspan:"2"},FE={key:4,class:"label",rowspan:"2"},_E={key:5,class:"label",colspan:"2"},PE={key:6,class:"label",rowspan:"2"},LE={key:7,class:"label",rowspan:"2"},ME={key:8,class:"label",rowspan:"2"},GE={key:0,class:"label"},HE={key:1,class:"label"},zE={key:2,class:"label"},uE={key:3,class:"label"},IE={class:"summary-tbody"};function UE(o,t,a,s,r,n){var E;return e.openBlock(),e.createElementBlock("div",kE,[e.createElementVNode("div",SE,[t[5]||(t[5]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-tianqi"}),e.createElementVNode("div",{class:"title"},"Speed and Weather Analysis")])],-1)),e.createElementVNode("div",hE,[e.createElementVNode("table",null,[t[4]||(t[4]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label",rowspan:"2"},"Seg."),e.createElementVNode("th",{class:"label",rowspan:"2"},"Periods"),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Distance"),e.createElementVNode("div",{class:"text-units"},"(nm)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Time"),e.createElementVNode("div",{class:"text-units"},"(hrs)")]),e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createElementVNode("div",null,"Average Speed"),e.createElementVNode("div",{class:"text-units"},"(kts)")]),e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Total Consumption "),e.createElementVNode("span",{class:"text-units"},"(mt)")])]),e.createElementVNode("tr",null,[e.createElementVNode("th",{class:"label"},"FO"),e.createElementVNode("th",{class:"label"},"DO/GO")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((E=a.report)==null?void 0:E.segments,(d,c)=>{var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z;return e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[e.createElementVNode("tr",null,[e.createElementVNode("td",CE,e.toDisplayString(c+1),1),t[0]||(t[0]=e.createElementVNode("td",{class:"label"},"Entire Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((f=d==null?void 0:d.allWx)==null?void 0:f.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((y=d==null?void 0:d.allWx)==null?void 0:y.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((N=d==null?void 0:d.allWx)==null?void 0:N.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((B=d==null?void 0:d.allWx)==null?void 0:B.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((k=d==null?void 0:d.allWx)==null?void 0:k.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[1]||(t[1]=e.createElementVNode("td",{class:"label"},"Good Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((m=d==null?void 0:d.goodWx)==null?void 0:m.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((V=d==null?void 0:d.goodWx)==null?void 0:V.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((h=d==null?void 0:d.goodWx)==null?void 0:h.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((p=d==null?void 0:d.goodWx)==null?void 0:p.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((x=d==null?void 0:d.goodWx)==null?void 0:x.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[2]||(t[2]=e.createElementVNode("td",{class:"label"},"Adverse Weather Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((C=d==null?void 0:d.badWx)==null?void 0:C.distance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((D=d==null?void 0:d.badWx)==null?void 0:D.time,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((w=d==null?void 0:d.badWx)==null?void 0:w.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((A=d==null?void 0:d.badWx)==null?void 0:A.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((O=d==null?void 0:d.badWx)==null?void 0:O.sumDgoCons,3,"0.000")),1)]),e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("td",{class:"label"},"Excluded Period",-1)),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((g=d==null?void 0:d.excluded)==null?void 0:g.sumDistance,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((F=d==null?void 0:d.excluded)==null?void 0:F.sumDuration,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((_=d==null?void 0:d.excluded)==null?void 0:_.avgSpd,2,"0.0")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((P=d==null?void 0:d.excluded)==null?void 0:P.sumFoCons,3,"0.000")),1),e.createElementVNode("td",null,e.toDisplayString(n.computePrecision((z=d==null?void 0:d.excluded)==null?void 0:z.sumDgoCons,3,"0.000")),1)])],64)}),128))])])])]),e.createElementVNode("div",DE,[t[44]||(t[44]=e.createStaticVNode('<div class="legends flex-end" style="flex-wrap:wrap;" data-v-dd8a99c8><div class="flex-start" data-v-dd8a99c8><div class="legend good-wx" data-v-dd8a99c8></div><div class="label flex-end" data-v-dd8a99c8>Charter Party Defined Good Weather Days</div></div><div class="flex-start" data-v-dd8a99c8><div class="legend adverse-wx" data-v-dd8a99c8></div><div class="label" data-v-dd8a99c8>Charter Party Defined Adverse Weather Days</div></div><div class="flex-start" data-v-dd8a99c8><div class="legend excluded" data-v-dd8a99c8></div><div class="label" data-v-dd8a99c8>Excluded Periods From Analysis</div></div><div class="report flex-space text-tips" data-v-dd8a99c8><label data-v-dd8a99c8>B</label><div data-v-dd8a99c8>BOSP</div><label data-v-dd8a99c8>N</label><div data-v-dd8a99c8>NOON</div><label data-v-dd8a99c8>E</label><div data-v-dd8a99c8>EOSP</div><label data-v-dd8a99c8>*</label><div data-v-dd8a99c8>Ship Reported Position</div></div></div><div class="text-tips text-right" style="font-size:12px;padding-bottom:8px;" data-v-dd8a99c8> The &#39;ORM Analysis Weather&#39; row data represents the weather conditions within the 3-hour period prior to the indicated time point. </div>',2)),e.createElementVNode("div",BE,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[6]||(t[6]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Seg",-1)),t[7]||(t[7]=e.createElementVNode("th",{class:"label",rowspan:"3"},"Date",-1)),t[8]||(t[8]=e.createElementVNode("th",{class:"label",colspan:"2"},"Position",-1)),t[9]||(t[9]=e.createElementVNode("th",{class:"label",colspan:"3"},"CP",-1)),e.createElementVNode("th",{class:"label",colspan:n.computeWxColspan},"ORM Weather Analysis",8,TE),a.showFactor?(e.openBlock(),e.createElementBlock("th",WE,"Factor")):e.createCommentVNode("",!0),t[10]||(t[10]=e.createElementVNode("th",{class:"label",colspan:"12"},"Vessel Reported",-1)),t[11]||(t[11]=e.createElementVNode("th",{class:"label",rowspan:"3"},"In ECA",-1))]),e.createElementVNode("tr",null,[t[16]||(t[16]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lat",-1)),t[17]||(t[17]=e.createElementVNode("th",{class:"label",rowspan:"2"},"Lon",-1)),t[18]||(t[18]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd "),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[19]||(t[19]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("Daily Cons. "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),r.showAisDistance?(e.openBlock(),e.createElementBlock("th",wE,[...t[12]||(t[12]=[e.createTextVNode("Spd",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),r.showAisDistance?(e.openBlock(),e.createElementBlock("th",AE,[...t[13]||(t[13]=[e.createTextVNode("Dis",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(nm)",-1)])])):e.createCommentVNode("",!0),t[20]||(t[20]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),r.showWave?(e.openBlock(),e.createElementBlock("th",OE,[...t[14]||(t[14]=[e.createTextVNode("Sea HT",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("th",gE,"Swell")):e.createCommentVNode("",!0),r.showSig?(e.openBlock(),e.createElementBlock("th",FE,[...t[15]||(t[15]=[e.createTextVNode("Sig Wave",-1),e.createElementVNode("br",null,null,-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",_E,"Current")):e.createCommentVNode("",!0),t[21]||(t[21]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Avg. CF"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),a.showFactor?(e.openBlock(),e.createElementBlock("th",PE,"cFactor")):e.createCommentVNode("",!0),a.showFactor?(e.openBlock(),e.createElementBlock("th",LE,"wxFactor")):e.createCommentVNode("",!0),r.showWaterTemp?(e.openBlock(),e.createElementBlock("th",ME,"Water Temp.")):e.createCommentVNode("",!0),t[22]||(t[22]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Spd"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(kts)")],-1)),t[23]||(t[23]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Time"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(h)")],-1)),t[24]||(t[24]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode("Dis"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(nm)")],-1)),t[25]||(t[25]=e.createElementVNode("th",{class:"label",colspan:"2"},"Engine",-1)),t[26]||(t[26]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("BROB "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[27]||(t[27]=e.createElementVNode("th",{class:"label",colspan:"2"},[e.createTextVNode("DailyCons "),e.createElementVNode("span",{class:"text-units"},"(mt)")],-1)),t[28]||(t[28]=e.createElementVNode("th",{class:"label",colspan:"2"},"Wind",-1)),t[29]||(t[29]=e.createElementVNode("th",{class:"label",rowspan:"2"},[e.createTextVNode(" Sea HT"),e.createElementVNode("br"),e.createElementVNode("span",{class:"text-units"},"(m)")],-1))]),e.createElementVNode("tr",null,[t[32]||(t[32]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[33]||(t[33]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[34]||(t[34]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[35]||(t[35]=e.createElementVNode("th",{class:"label"},"BF",-1)),r.showSwell?(e.openBlock(),e.createElementBlock("th",GE,"Dir")):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("th",HE,[...t[30]||(t[30]=[e.createTextVNode("HT ",-1),e.createElementVNode("span",{class:"text-units"},"(m)",-1)])])):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",zE,"Dir")):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("th",uE,[...t[31]||(t[31]=[e.createTextVNode("CF ",-1),e.createElementVNode("span",{class:"text-units"},"(kts)",-1)])])):e.createCommentVNode("",!0),t[36]||(t[36]=e.createElementVNode("th",{class:"label"},"RPM",-1)),t[37]||(t[37]=e.createElementVNode("th",{class:"label"},[e.createTextVNode("Slip "),e.createElementVNode("span",{class:"text-units"},"(%)")],-1)),t[38]||(t[38]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[39]||(t[39]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[40]||(t[40]=e.createElementVNode("th",{class:"label"},"FO",-1)),t[41]||(t[41]=e.createElementVNode("th",{class:"label"},"DO/GO",-1)),t[42]||(t[42]=e.createElementVNode("th",{class:"label"},"Dir",-1)),t[43]||(t[43]=e.createElementVNode("th",{class:"label"},"BF",-1))])]),e.createElementVNode("tbody",IE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.inventory,(d,c)=>{var f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R;return e.openBlock(),e.createElementBlock("tr",{key:c},[e.createElementVNode("td",{class:e.normalizeClass(d.segLength?"no-border-bottom":"no-border")},e.toDisplayString(d.segLength?d.seg:""),3),e.createElementVNode("td",{class:e.normalizeClass(["text-right",d.excluded?"excluded":d.goodWx?"good-wx":""])},e.toDisplayString(d.time),3),["B","E"].includes(d.abbrev)&&((f=d.noon)!=null&&f.port)?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":""),colspan:"2",style:{"max-width":"150px","text-wrap":"wrap"}},e.toDisplayString((y=d.noon)==null?void 0:y.port),3)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d._lat.pretty),3),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d._lng.pretty),3)],64)),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.speed:""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.fo:""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.cp.dgo:""),3),r.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.avgSpdCalc:""),3)):e.createCommentVNode("",!0),r.showAisDistance?(e.openBlock(),e.createElementBlock("td",{key:3,class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.distanceCalc:""),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((B=(N=d.meteo)==null?void 0:N.wind)==null?void 0:B.direction)??"-"),3),e.createElementVNode("td",{class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((m=(k=d.meteo)==null?void 0:k.wind)==null?void 0:m.scale)??"-"),3),r.showWave?(e.openBlock(),e.createElementBlock("td",{key:4,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((p=(h=(V=d.meteo)==null?void 0:V.wave)==null?void 0:h.wd)==null?void 0:p.height)??"-"),3)):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("td",{key:5,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((D=(C=(x=d.meteo)==null?void 0:x.wave)==null?void 0:C.swell)==null?void 0:D.direction)??"-"),3)):e.createCommentVNode("",!0),r.showSwell?(e.openBlock(),e.createElementBlock("td",{key:6,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((O=(A=(w=d.meteo)==null?void 0:w.wave)==null?void 0:A.swell)==null?void 0:O.height)??"-"),3)):e.createCommentVNode("",!0),r.showSig?(e.openBlock(),e.createElementBlock("td",{key:7,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((_=(F=(g=d.meteo)==null?void 0:g.wave)==null?void 0:F.sig)==null?void 0:_.height)??"-"),3)):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("td",{key:8,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((z=(P=d.meteo)==null?void 0:P.current)==null?void 0:z.direction)??"-"),3)):e.createCommentVNode("",!0),r.showCF?(e.openBlock(),e.createElementBlock("td",{key:9,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(d.type==="BOSP"?"-":((u=d.meteo)==null?void 0:u.cFactor)??"-"),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.dailyAvgCf:""),3),a.showFactor?(e.openBlock(),e.createElementBlock("td",{key:10,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(((I=d.meteo)==null?void 0:I.cFactor)??"--"),3)):e.createCommentVNode("",!0),a.showFactor?(e.openBlock(),e.createElementBlock("td",{key:11,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(((U=d.meteo)==null?void 0:U.wxFactor)??"--"),3)):e.createCommentVNode("",!0),r.showWaterTemp?(e.openBlock(),e.createElementBlock("td",{key:12,class:e.normalizeClass(d.excluded?"excluded":d.goodWx?"good-wx":"")},e.toDisplayString(n.computePrecision((R=d.meteo)==null?void 0:R.sst,2,"--")),3)):e.createCommentVNode("",!0),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.avgSpd||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.timeSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.distanceSlr||"0.0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.rpm||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.slip||"0":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(["A"].includes(d.abbrev)?"":d.noon.foBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(["A"].includes(d.abbrev)?"":d.noon.dgoBrob||"0.00"),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.foCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.dgoCons||"0.00":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.windDir||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.windBF||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.noon.seasHt||"--":""),3),e.createElementVNode("td",{class:e.normalizeClass(n.computeTDClass(d))},e.toDisplayString(!["A","B"].includes(d.abbrev)&&c?d.inEca===!1?"":"Inside ECA":""),3)])}),128))])])])])])}const RE=Jt(bE,[["render",UE],["__scopeId","data-v-dd8a99c8"]]),_m="",jE={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,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},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)?"-":H.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+", "+H.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{inventory:{handler(o,t){o!=null&&o.length&&this.$nextTick(()=>{this.initChart()})},immediate:!0}},methods:{initChart(){this.spdFoConsChart||(this.spdFoConsChart=e.markRaw(Xl.init(this.$refs.spdFoConsChart))),this.spdDgoConsChart||(this.spdDgoConsChart=e.markRaw(Xl.init(this.$refs.spdDgoConsChart))),this.currChart||(this.currChart=e.markRaw(Xl.init(this.$refs.currChart))),this.renderSpdConsChart(),this.renderWxCurrChart()},renderSpdConsChart(){var N,B,k,m,V,h;let o=[];const t=[],a=[],s={dateTime:0,noonAvgSpd:1,noonFoCons:2,noonDgoCons:3,anlyAvgSpd:4,cpSpeed:5,goodWx:6,dgo:7,fo:8,excluded:9};let r=0,n=0;const E=this.inventory.filter(p=>p.noon)||[],d=[];this.inventory.forEach((p,x)=>{var C,D;x===0&&d.push(p.utc),p.type==="EOSP"&&((C=this.inventory[x+1])==null?void 0:C.type)==="BOSP"&&(d.push(p.utc),d.push((D=this.inventory[x+1])==null?void 0:D.utc)),x===this.inventory.length-1&&d.push(p.utc)}),d.forEach((p,x)=>{if(x%2===0){const C=W(d[x+1]).diff(W(d[x]),"minute",!0);for(let D=0;D<=C+1;D++)t.push(this.computeUTCTime(W(d[x]).clone().utc().add(D,"m").format(),"MM-DD/HHmm[Z]"))}}),E.forEach((p,x)=>{var D,w,A,O,g,F,_,P,z,u,I,U,R,Z;const C=this.computeUTCTime(p.utc,"MM-DD/HHmm[Z]");if(p.noon&&!o.some(l=>l.slice(0,5)===p.utc.slice(5,10))&&o.push(C),x===E.length-1&&(o=o.filter(l=>l.slice(0,5)!==p.utc.slice(5,10)),o.push(C)),r=Math.ceil(((D=p.noon)==null?void 0:D.foCons)>r?(w=p.noon)==null?void 0:w.foCons:r),r=Math.ceil(((A=p.cp)==null?void 0:A.fo)>r?(O=p.cp)==null?void 0:O.fo:r),n=Math.ceil(((g=p.noon)==null?void 0:g.dgoCons)>n?(F=p.noon)==null?void 0:F.dgoCons:n),n=Math.ceil(((_=p.cp)==null?void 0:_.dgo)>n?(P=p.cp)==null?void 0:P.dgo:n),a.push([C,(z=p.noon)==null?void 0:z.avgSpd,(u=p.noon)==null?void 0:u.foCons,(I=p.noon)==null?void 0:I.dgoCons,p.avgSpdCalc,p.cp.speed,p.goodWx&&!p.excluded?100:0,p.cp.dgo,p.cp.fo,p.excluded?100:0]),x<E.length-1){const l=E[x+1];a.push([C,(U=l.noon)==null?void 0:U.avgSpd,(R=l.noon)==null?void 0:R.foCons,(Z=l.noon)==null?void 0:Z.dgoCons,l.avgSpdCalc,l.cp.speed,l.goodWx&&!l.excluded?100:0,l.cp.dgo,l.cp.fo,l.excluded?100:0])}});const c=Math.ceil(o.length/10);o=o.filter((p,x)=>x===0||x===o.length-1||x%c===0);const f={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:t,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:r+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:s.dateTime,y:s.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP FO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:s.dateTime,y:s.fo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:(B=(N=this.report)==null?void 0:N.weather)!=null&&B.believeRptDistance?s.noonAvgSpd:s.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"FO Cons",yAxisIndex:1,type:"line",showSymbol:!1,itemStyle:{color:"#00ACC1"},encode:{x:s.dateTime,y:s.noonFoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.spdFoConsChart)==null||k.setOption(f);const y={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:t,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:n+.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:s.dateTime,y:s.cpSpeed},lineStyle:{color:"#EC407A",type:"dashed"},itemStyle:{color:"#EC407A"},data:a,z:2},{name:"CP DGO Cons",type:"line",yAxisIndex:1,showSymbol:!1,itemStyle:{color:"#00ACC1"},lineStyle:{color:"#00ACC1",type:"dashed"},encode:{x:s.dateTime,y:s.dgo},data:a,z:3},{name:"SOG",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:(V=(m=this.report)==null?void 0:m.weather)!=null&&V.believeRptDistance?s.noonAvgSpd:s.anlyAvgSpd},lineStyle:{color:"#EC407A",type:"solid"},itemStyle:{color:"#EC407A"},data:a,z:4},{name:"DGO Cons",type:"line",showSymbol:!1,yAxisIndex:1,itemStyle:{color:"#00ACC1"},encode:{x:s.dateTime,y:s.noonDgoCons},data:a,z:5},{name:"Good Weather Days",type:"line",encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(h=this.spdDgoConsChart)==null||h.setOption(y)},renderWxCurrChart(){var k;let o=[];const t=[],a=[],s={dateTime:0,noonWdBF:1,anlyWdBF:2,anlyWdDir:3,noonSeasHt:4,anlySigWvHt:5,anlyCurFct:6,goodWx:7,excluded:8};let r=4;const n=this.inventory||[],E=[];n.forEach((m,V)=>{var h,p;V===0&&E.push(m.utc),m.type==="EOSP"&&((h=n[V+1])==null?void 0:h.type)==="BOSP"&&(E.push(m.utc),E.push((p=n[V+1])==null?void 0:p.utc)),V===n.length-1&&E.push(m.utc)}),E.forEach((m,V)=>{if(V%2===0){const h=W(E[V+1]).diff(W(E[V]),"minute",!0);for(let p=0;p<=h+1;p++)t.push(this.computeUTCTime(W(E[V]).clone().utc().add(p,"m").format(),"MM-DD/HHmm[Z]"))}}),n.forEach((m,V)=>{var p,x,C,D,w,A,O,g,F,_,P,z,u,I,U,R,Z,l,L,q,K,J,Q,X,$,v,ee,te,le,oe;const h=this.computeUTCTime(m.utc,"MM-DD/HHmm[Z]");if(m.noon&&!o.some(M=>M.slice(0,5)===m.utc.slice(5,10))&&o.push(h),V===n.length-1&&(o=o.filter(M=>M.slice(0,5)!==m.utc.slice(5,10)),o.push(h)),r=Math.ceil(((C=(x=(p=m.meteo)==null?void 0:p.wave)==null?void 0:x.sig)==null?void 0:C.height)>r?(A=(w=(D=m.meteo)==null?void 0:D.wave)==null?void 0:w.sig)==null?void 0:A.height:r),a.push([h,((O=m.noon)==null?void 0:O.windBF)||((F=(g=m.meteo)==null?void 0:g.wind)==null?void 0:F.scale),(P=(_=m.meteo)==null?void 0:_.wind)==null?void 0:P.scale,(u=(z=m.meteo)==null?void 0:z.wind)==null?void 0:u.direction,(I=m.noon)==null?void 0:I.seasHt,(Z=(R=(U=m.meteo)==null?void 0:U.wave)==null?void 0:R.sig)==null?void 0:Z.height,m.dailyAvgCf??((l=a[a.length-1])==null?void 0:l[s.anlyCurFct]),m.goodWx&&!m.excluded?20:0,m.excluded?20:0]),V<n.length-1){const M=n[V+1];a.push([h,((L=m.noon)==null?void 0:L.windBF)||((K=(q=m.meteo)==null?void 0:q.wind)==null?void 0:K.scale),(Q=(J=M.meteo)==null?void 0:J.wind)==null?void 0:Q.scale,($=(X=M.meteo)==null?void 0:X.wind)==null?void 0:$.direction,(v=M.noon)==null?void 0:v.seasHt,(le=(te=(ee=m.meteo)==null?void 0:ee.wave)==null?void 0:te.sig)==null?void 0:le.height,M.dailyAvgCf??((oe=a[a.length-1])==null?void 0:oe[s.anlyCurFct]),M.goodWx&&!M.excluded?20:0,M.excluded?20:0])}});const d=Math.ceil(o.length/10);o=o.filter((m,V)=>V===0||V===o.length-1||V%d===0);let c=-2.5,f=2.5,y=1,N=5;c<-2.5||f>2.5?(c=Math.floor(this.findMinValue(a,6)/5)*5,f=Math.ceil(this.findMaxValue(a,6)/5)*5,y=Math.ceil(Math.max([Math.abs(c),Math.abs(f)])/5),N=Math.ceil(Math.abs(c)/y)+Math.ceil(Math.abs(f)/y)):(y=.5,c=Math.floor(this.findMinValue(a,6)/.5)*y,f=2.5,N=Math.abs(c)/y+5);const B={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:t,boundaryGap:!1,position:"zero",axisTick:{alignWithLabel:!0,customValues:o},axisLabel:{interval:"auto",customValues:o,fontSize:12}},yAxis:[{name:"Current Factor (kts)",show:!0,nameLocation:"middle",position:"left",offset:0,nameGap:25,min:c,max:f,interval:y,splitNumber:N,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"#a362f9"}},splitLine:{show:!0}},{name:"Wind BF",nameLocation:"middle",position:"left",offset:40,nameGap:25,min:-1*(N-5)*Math.ceil(this.findMaxValue(a,1)/5),max:Math.ceil(this.findMaxValue(a,1)/5)*5,interval:Math.ceil(this.findMaxValue(a,1)/5),splitNumber:N,show:!0,axisLabel:{fontSize:12},axisLine:{lineStyle:{color:"rgba(54, 212, 0, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(m,V)=>{if(m>=0)return m}}},{name:"Sig.wave Height (m)",nameLocation:"middle",position:"right",offset:0,nameGap:25,show:!0,startValue:0,min:-1*(N-5)*Math.ceil(this.findMaxValue(a,5)/5),max:Math.ceil(this.findMaxValue(a,5)/5)*5,interval:Math.ceil(this.findMaxValue(a,5)/5),splitNumber:N,axisLine:{lineStyle:{color:"rgba(1, 189, 211, 1)"}},splitLine:{show:!0},axisLabel:{formatter:(m,V)=>{if(m>=0)return m},fontSize:12}},{name:"Good Weather Days",show:!1}],series:[{name:"Current Factor",type:"line",yAxisIndex:0,showSymbol:!1,encode:{x:s.dateTime,y:s.anlyCurFct},itemStyle:{color:"rgba(178, 51, 220, 1)"},data:a,z:3},{name:"Wind BF",type:"line",yAxisIndex:1,showSymbol:!1,encode:{x:s.dateTime,y:s.anlyWdBF},itemStyle:{color:"rgba(54, 212, 0, 1)"},data:a,z:3},{name:"Sig.wave Height",type:"line",yAxisIndex:2,showSymbol:!1,encode:{x:s.dateTime,y:s.anlySigWvHt},itemStyle:{color:"rgba(1, 189, 211, 1)"},data:a,z:3},{name:"Good Weather Days",type:"line",yAxisIndex:3,encode:{x:s.dateTime,y:s.goodWx},itemStyle:{color:"rgba(221, 243, 227, 1)"},areaStyle:{color:"rgba(221, 243, 227, 1)"},data:a,z:1},{name:"Excluded Days",type:"line",yAxisIndex:3,encode:{x:s.dateTime,y:s.excluded},itemStyle:{color:"rgba(220, 220, 220, 1)"},areaStyle:{color:"rgba(220, 220, 220, 1)"},data:a,z:1}]};(k=this.currChart)==null||k.setOption(B)},findMaxValue(o,t){let a=-1/0;for(let s=0;s<o.length;s++){const r=o[s];if(r.length>=t+1){const n=r[t];typeof n=="number"&&!isNaN(n)&&Number(n)>a&&(a=n)}}return a},findMinValue(o,t){let a=1/0;for(let s=0;s<o.length;s++){const r=o[s];if(r.length>=t+1){const n=r[t];n<a&&(a=n)}}return a}}},YE={class:"report-summary"},ZE={class:"section chart-section"},qE={class:"chart-block"},KE={ref:"spdFoConsChart",class:"chart"},JE={ref:"spdDgoConsChart",class:"chart"},QE={ref:"currChart",class:"chart"},XE={class:"section map-section"},$E={class:"map-block"},vE={class:"flex-space"},em={class:"voyage-block bg-blue-light"},tm={class:"flex-space label-block",style:{width:"100%"}},lm={style:{"text-transform":"uppercase"}},om={class:"flex-space label-block",style:{width:"100%"}},am={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},nm={class:"flex-end",style:{width:"180px","text-transform":"uppercase"}},dm={class:"flex-space label-block",style:{width:"100%"}},rm={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},im={class:"flex-space label-block",style:{width:"100%"}},sm={key:0,class:"flex-end",style:{flex:"1"}},cm={key:1,class:"flex-end",style:{flex:"1"}},pm={class:"flex-end",style:{width:"160px"}},Em={class:"flex-space label-block",style:{width:"100%"}},mm={key:0,class:"flex-end",style:{flex:"1"}},ym={key:1,class:"flex-end",style:{flex:"1"}},Nm={class:"flex-end",style:{width:"160px"}},Vm={class:"flex-space label-block",style:{width:"100%"}},fm={class:"flex-end",style:{flex:"1","text-transform":"uppercase"}},xm=["src"];function bm(o,t,a,s,r,n){var E,d,c,f,y,N,B,k,m,V,h,p,x,C,D,w,A,O,g,F,_,P;return e.openBlock(),e.createElementBlock("div",YE,[e.createElementVNode("div",ZE,[t[0]||(t[0]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-shuju"}),e.createElementVNode("div",{class:"title"},"Speed and Consumption with Current Analysis Graph")])],-1)),e.createElementVNode("div",qE,[e.createElementVNode("div",KE,null,512),e.createElementVNode("div",JE,null,512),e.createElementVNode("div",QE,null,512)])]),e.createElementVNode("div",XE,[t[8]||(t[8]=e.createElementVNode("div",{class:"header-block"},[e.createElementVNode("div",{class:"bg-block"},[e.createElementVNode("i",{class:"iconfont icon-line-light"}),e.createElementVNode("div",{class:"title"},"Voyage Map")])],-1)),e.createElementVNode("div",$E,[e.createElementVNode("div",vE,[e.createElementVNode("div",em,[e.createElementVNode("div",tm,[t[1]||(t[1]=e.createElementVNode("label",{class:"text-label flex-end"},"Prepare for",-1)),e.createElementVNode("span",lm,e.toDisplayString(a.report.preparedFor),1)]),e.createElementVNode("div",om,[t[2]||(t[2]=e.createElementVNode("label",{class:"text-label flex-end"},"Vessel",-1)),e.createElementVNode("span",am,e.toDisplayString((d=(E=a.report)==null?void 0:E.vessel)==null?void 0:d.name),1),e.createElementVNode("span",nm,"("+e.toDisplayString((f=(c=a.report)==null?void 0:c.vessel)==null?void 0:f.type)+")",1)]),e.createElementVNode("div",dm,[t[3]||(t[3]=e.createElementVNode("label",{class:"text-label flex-end"},"Voyage No",-1)),e.createElementVNode("span",rm,e.toDisplayString((N=(y=a.report)==null?void 0:y.voyage)==null?void 0:N.number),1)]),e.createElementVNode("div",im,[t[4]||(t[4]=e.createElementVNode("label",{class:"text-label flex-end"},"Departure Port",-1)),(k=(B=a.report)==null?void 0:B.departure)!=null&&k.portName?(e.openBlock(),e.createElementBlock("span",sm,e.toDisplayString((V=(m=a.report)==null?void 0:m.departure)==null?void 0:V.portName),1)):(e.openBlock(),e.createElementBlock("div",cm,e.toDisplayString(n.computePosition((h=a.report)==null?void 0:h.departure)),1)),e.createElementVNode("span",pm,e.toDisplayString(n.computeUTCTime((p=a.report.departure)==null?void 0:p.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Em,[t[5]||(t[5]=e.createElementVNode("label",{class:"text-label flex-end"},"Arrival Port",-1)),(C=(x=a.report)==null?void 0:x.arrival)!=null&&C.portName?(e.openBlock(),e.createElementBlock("span",mm,e.toDisplayString((w=(D=a.report)==null?void 0:D.arrival)==null?void 0:w.portName),1)):(e.openBlock(),e.createElementBlock("div",ym,e.toDisplayString(n.computePosition((A=a.report)==null?void 0:A.arrival)),1)),e.createElementVNode("span",Nm,e.toDisplayString(n.computeUTCTime((g=(O=a.report)==null?void 0:O.arrival)==null?void 0:g.utcTime,"MMM-DD/HHmm[Z], YYYY")),1)]),e.createElementVNode("div",Vm,[t[6]||(t[6]=e.createElementVNode("label",{class:"text-label flex-end"},"Load Condition",-1)),e.createElementVNode("span",fm,e.toDisplayString((_=(F=a.report)==null?void 0:F.voyage)==null?void 0:_.loadCondition),1)])]),t[7]||(t[7]=e.createStaticVNode('<div class="legend-block" data-v-f6e8f936><div data-v-f6e8f936>LEGEND</div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>0812</div><div data-v-f6e8f936><div data-v-f6e8f936>08 - Day of the month</div><div data-v-f6e8f936>12 - Hours of the day</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936><i class="iconfont" style="font-size:30px;font-weight:600;color:var(--idm-black-6);" data-v-f6e8f936></i></div><div data-v-f6e8f936><div data-v-f6e8f936>Wind from N (000)</div><div data-v-f6e8f936>Each bard = 10 kts</div><div data-v-f6e8f936>1/2 bard = 5 kts</div></div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div data-v-f6e8f936>W 4</div><div data-v-f6e8f936>Sig. Wave from West, 4 meters</div></div><div class="legend-item flex-space bg-blue-light" data-v-f6e8f936><div class="good-wx" data-v-f6e8f936>Date</div><div data-v-f6e8f936>Good weather days</div></div></div>',1))]),e.createElementVNode("img",{src:(P=a.report)==null?void 0:P.chartUrl,alt:""},null,8,xm)])]),t[9]||(t[9]=e.createStaticVNode('<div class="section method-section" data-v-f6e8f936><div class="header-block" data-v-f6e8f936><div class="bg-block" data-v-f6e8f936><i class="iconfont icon-baobiao" data-v-f6e8f936></i><div class="title" data-v-f6e8f936>Charter Party Compliance Analysis Methodology</div></div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>1. Good Weather Method</div><div class="method-body" data-v-f6e8f936> Ship Performance is assessed based on the Good Weather Method as set out by The Didymi[1987] 2 Lloyd&#39;s Rep 166 and The Gas Enterprise [1993] 2 Lloyd&#39;s Rep. 352. <br data-v-f6e8f936> The vessel&#39;s performance in good weather conditions stipulated in the Charter Party is analyzed taking into account the average speed and the current factor during good weather periods, unless otherwise stipulated. <br data-v-f6e8f936> A “day” is taken to be the period of time between consecutive daily noon positions: each day is categorized as a &quot;good weather day&quot; or &quot;adverse weather day&quot; according to the good weather definition stipulated in the Charter Party. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>2. Damage assessment due to ship under-performance</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>3. Logbooks description vs. Analysis</div><div class="method-body" data-v-f6e8f936> 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. We will apply our analyzed distances. Weather and sea conditions in reports represent our verified weather data. </div></div><div class="method-block" data-v-f6e8f936><div class="method-title" data-v-f6e8f936>4. “About”</div><div class="method-body" data-v-f6e8f936> Complying with arbitration standards, the speed calculation applies an allowance when an “about” is included with the speed warranty. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>5. Bunker Analysis Methodology for Bunker Type Switch-Over</div><div class="method-body" data-v-f6e8f936> 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-f6e8f936> 5-1 DO/GO consumption in the switch over period will be compared to the charter party warranted IFO figure. <br data-v-f6e8f936> 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-f6e8f936><div class="method-title" data-v-f6e8f936>6. Further reference materials</div><div class="method-body" data-v-f6e8f936>Please send mail to <a href="mailto:op@ormwx.com" data-v-f6e8f936>op@ormwx.com</a>.</div></div></div></div>',1))])}const km=Jt(jE,[["render",bm],["__scopeId","data-v-f6e8f936"]]),Pm="",Lm="",Sm={name:"OrmVoyageEmail",props:{report:{type:Object,default:()=>({})},voyageEmails:{type:Array,default:()=>[]}},emits:["commit"],data(){return{}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${W(o).utc().format(t)}`}},computeBlankHtml(){return function(o){return!(o!=null&&o.replace(/<[^>]+>/g,""))}}},watch:{voyageEmails:{handler(o,t){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((t,a)=>t.date<a.date);o==null||o.forEach((t,a)=>{var c,f;let s="<div>";t.to.includes("op@ormwx.com")||t.source==="VRT"?(((f=(c=t.body)==null?void 0:c.replace(/^"|"$/g,""))==null?void 0:f.split("\\n")).forEach(N=>{const B=`<p>${N}</p>`;s=s+B}),s=s+"</div>"):s=t.body;const r=document.getElementById("col1"),n=document.getElementById("col2"),E=(r==null?void 0:r.offsetHeight)||0,d=(n==null?void 0:n.offsetHeight)||0;if(E<=d){let N=`<div class="${t.to.includes("op@ormwx.com")||t.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: ${t.date}</div>
3
3
  <div class="vrpt-from">From: ${t.from}</div>
4
4
  <div class="vrpt-to">To: ${t.to}</div>
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .editor-box[data-v-9854b172]{width:100%;border:1px solid var(--idm-black-2)}.editor-box .toolbar[data-v-9854b172]{border-bottom:1px solid var(--idm-black-2)}.editor-box .editor[data-v-9854b172]{overflow-y:hidden;text-align:left}.orm-plan-report[data-v-617ed823]{width:796px;margin:0 auto;font-size:14px}.orm-plan-report .section[data-v-617ed823]:last-child{border-bottom:none}.orm-plan-report .section.chart-section img[data-v-617ed823]{width:100%;height:auto;max-height:560px;border:var(--orm-border);border-radius:4px;border-width:2px}.orm-plan-report .section.chart-section .legends[data-v-617ed823]{display:flex;align-items:center;justify-content:flex-end;margin-top:4px}.orm-plan-report .section.chart-section .legends .legend[data-v-617ed823]{display:flex;align-items:center;justify-content:flex-end;margin-right:24px;font-size:12px}.orm-plan-report .section.chart-section .legends .legend .dangerous[data-v-617ed823]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-danger);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .severe[data-v-617ed823]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-severe);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .heavy[data-v-617ed823]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-heavy);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .route1[data-v-617ed823],.orm-plan-report .section.chart-section .legends .legend .route2[data-v-617ed823],.orm-plan-report .section.chart-section .legends .legend .route3[data-v-617ed823]{width:40px;margin-right:4px;border:2px solid var(--orm-black-7)}.orm-plan-report .section.chart-section .legends .legend .btn[data-v-617ed823]{cursor:pointer}.orm-plan-report .section.chart-section .empty[data-v-617ed823]{padding:12px;height:100%;display:flex;align-items:center;justify-content:center;color:var(--orm-black-6);font-weight:300}.orm-plan-report .section.chart-section .empty .btn[data-v-617ed823]{cursor:pointer;margin-left:4px;font-weight:500}.orm-plan-report .section.comparison-section[data-v-617ed823],.orm-plan-report .section.waypoint-section[data-v-617ed823]{page-break-inside:avoid;margin-top:24px}.orm-plan-report .section.waypoint-section .advisory[data-v-617ed823]{padding:16px 8px;border-radius:4px;margin-bottom:8px}.orm-plan-report .section.waypoint-section .advisory .txt[data-v-617ed823]{font-size:14px;font-weight:500}.orm-plan-report .section.waypoint-section .major-waypoint[data-v-617ed823]{width:100%;display:flex;flex-direction:column;align-items:center;margin-bottom:10px;font-size:12px}.orm-plan-report .section.waypoint-section .major-waypoint .cell-item[data-v-617ed823]{display:inline-block;text-align:center;border:var(--orm-border);height:auto;padding:8px;box-sizing:border-box}.orm-plan-report .section.waypoint-section .major-waypoint .cell-item[data-v-617ed823]:not(:first-child){border-left:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-header[data-v-617ed823]{display:flex;text-align:center;width:100%}.orm-plan-report .section.waypoint-section .major-waypoint .major-header .cell-item[data-v-617ed823]{padding:12px 8px}.orm-plan-report .section.waypoint-section .major-waypoint .major-body[data-v-617ed823]{width:100%}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row[data-v-617ed823]{position:relative;display:flex}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row:first-child .cell-item[data-v-617ed823]{border-top:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row:last-child .cell-item[data-v-617ed823]{border-bottom:var(--orm-border)}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item[data-v-617ed823]{display:flex;align-items:center;justify-content:center;border-bottom:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item.offset[data-v-617ed823]{margin-top:-16px;margin-bottom:16px}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item.nbsp[data-v-617ed823]{border:none;margin-left:1px}.orm-plan-report .section.forecast-section[data-v-617ed823]{margin-top:24px}.orm-plan-report .section.forecast-section .echart-block[data-v-617ed823]{margin-top:12px}.orm-plan-report .section.forecast-section .echart-block .echart[data-v-617ed823]{width:100%;height:260px}.orm-plan-report .section.forecast-section .dangerous[data-v-617ed823]{background:var(--orm-map-danger);color:#fff}.orm-plan-report .section.forecast-section .severe[data-v-617ed823]{background:var(--orm-map-severe)}.orm-plan-report .section.forecast-section .heavy[data-v-617ed823]{background:var(--orm-map-heavy)}.orm-plan-report .section.forecast-section .degree-box[data-v-617ed823]{text-align:right;font-size:11px}.orm-plan-report .section.forecast-section .degree-box i[data-v-617ed823]{display:inline-block;font-size:12px}.orm-plan-report .section .route-item[data-v-617ed823]{text-decoration:underline;font-style:italic;cursor:pointer;font-size:14px;padding:0 15px;border-right:1px solid var(--idm-primary-color-light)}.orm-plan-report .section .route-item.active[data-v-617ed823]{color:var(--orm-primary)}.orm-plan-report .section .route-item[data-v-617ed823]:last-child{margin-right:0;border-right:none}.report-summary[data-v-4bd4a6f6]{box-sizing:border-box;font-size:14px}.report-summary .section[data-v-4bd4a6f6]{margin-top:24px}.report-summary .section.weather-section .definition[data-v-4bd4a6f6]{margin:12px 0;padding:12px;border-radius:4px}.report-summary .section.summary-section .segment-box[data-v-4bd4a6f6]{page-break-inside:avoid}.report-summary .section.summary-section .segment-box .phase-box[data-v-4bd4a6f6]{border:var(--orm-border);border-width:2px;border-radius:4px;padding:8px;margin-bottom:8px;width:100%}.report-summary .section.summary-section .segment-box .phase-box .phase-index[data-v-4bd4a6f6]{margin-bottom:8px;font-weight:600}.report-summary .section.summary-section .segment-box .phase-box .phase-row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.report-summary .section.summary-section .segment-box .phase-box .phase-row .phase-position label[data-v-4bd4a6f6]{margin-left:8px}.report-summary .section.summary-section .segment-box .phase-box .phase-cp span[data-v-4bd4a6f6]{padding:4px}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion[data-v-4bd4a6f6]{margin-top:12px;display:flex;align-items:center;justify-content:space-between}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion[data-v-4bd4a6f6]{flex:1;height:118px;padding:12px;border-radius:4px;margin-right:12px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion[data-v-4bd4a6f6]:last-child{margin-right:0}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value[data-v-4bd4a6f6]{font-size:16px;font-weight:800;align-items:baseline}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value i[data-v-4bd4a6f6]{margin-right:4px}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value .unit[data-v-4bd4a6f6]{font-size:14px;margin-left:4px;font-weight:400}.report-summary .section.remark-section[data-v-4bd4a6f6]{page-break-inside:avoid;page-break-after:always}.report-summary .section.remark-section .remark-block[data-v-4bd4a6f6]{margin:12px 0;padding:12px;border-radius:4px}.report-summary .section.remark-section .exclusion-block .title[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.remark-section .exclusion-block .sub-title[data-v-4bd4a6f6]{margin-top:8px}.report-summary .section.segment-section[data-v-4bd4a6f6]{page-break-after:always}.report-summary .section.segment-section .segment-block[data-v-4bd4a6f6]{page-break-after:always;margin:12px 0}.report-summary .section.segment-section .segment-block .segment-summary[data-v-4bd4a6f6]{page-break-inside:avoid;padding:8px;border:var(--orm-border);border-width:2px;border-radius:4px}.report-summary .section.segment-section .segment-block .segment-summary .segment-index[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.segment-section .segment-block .segment-summary .segment-row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.report-summary .section.segment-section .segment-block .segment-summary .segment-row .segment-position label[data-v-4bd4a6f6]{margin-left:8px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed[data-v-4bd4a6f6]{padding:12px;margin-top:12px;line-height:2;background:var(--orm-blue-light-2);border-radius:4px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-left[data-v-4bd4a6f6]{width:300px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right[data-v-4bd4a6f6]{width:600px;margin-left:20px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .speed[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .under[data-v-4bd4a6f6]{font-weight:600;color:var(--orm-danger)}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .over[data-v-4bd4a6f6]{font-weight:600;color:var(--orm-success)}.report-summary .section.segment-section .segment-block .segment-formula[data-v-4bd4a6f6]{page-break-inside:avoid;font-size:12px}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc[data-v-4bd4a6f6]{margin:12px 0;line-height:1.6;color:var(--orm-tips)}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc label[data-v-4bd4a6f6]{text-align:right;font-weight:400}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc label[data-v-4bd4a6f6]:after{content:":";margin:0 6px 0 2px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block[data-v-4bd4a6f6]{page-break-inside:avoid;margin-bottom:12px;border:var(--orm-border);border-width:2px;padding:8px;line-height:2.2;border-radius:4px;font-size:12px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-item[data-v-4bd4a6f6]{padding:4px 8px;margin-bottom:8px;border-radius:4px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-item[data-v-4bd4a6f6]:last-child{margin-bottom:0}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-left[data-v-4bd4a6f6]{width:300px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-right[data-v-4bd4a6f6]{flex:1}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .fraction[data-v-4bd4a6f6]{text-align:center}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .fraction .line[data-v-4bd4a6f6]{border-bottom:1px solid var(--orm-black-5)}.report-summary .section.segment-section .segment-block .segment-formula .formula-conclusion[data-v-4bd4a6f6]{margin:12px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;padding:8px;font-weight:600}.report-inventory[data-v-dd8a99c8]{width:1400px;font-size:14px;page-break-after:always}.report-inventory .section[data-v-dd8a99c8]{margin-top:24px}.report-inventory .section.summary-section .summary-block[data-v-dd8a99c8]{margin:12px 0}.report-inventory .section.inventory-section .legends[data-v-dd8a99c8]{font-size:12px;margin-bottom:4px}.report-inventory .section.inventory-section .legends div[data-v-dd8a99c8]{margin-right:20px}.report-inventory .section.inventory-section .legends div[data-v-dd8a99c8]:last-child{margin-right:0}.report-inventory .section.inventory-section .legends .legend[data-v-dd8a99c8]{width:30px;height:12px;margin-right:8px}.report-inventory .section.inventory-section .legends .legend.good-wx[data-v-dd8a99c8]{background:var(--orm-good-wx-bg)}.report-inventory .section.inventory-section .legends .legend.adverse-wx[data-v-dd8a99c8]{border:1px solid var(--orm-excluded-wx-bg)}.report-inventory .section.inventory-section .legends .legend.excluded[data-v-dd8a99c8]{background:var(--orm-excluded-wx-bg)}.report-inventory .section.inventory-section .legends .label[data-v-dd8a99c8]{color:var(--orm-tips)}.report-inventory .section.inventory-section .legends .report label[data-v-dd8a99c8]:after{content:":";margin:0 4px 0 2px}.report-inventory .section.inventory-section .legends .report div[data-v-dd8a99c8]{margin-right:20px}.report-inventory .section.inventory-section .legends .report div[data-v-dd8a99c8]:last-child{margin-right:0}.report-inventory table[data-v-dd8a99c8]{box-sizing:border-box;border-collapse:collapse;width:100%;overflow:visible;border:var(--orm-border);page-break-inside:auto;font-size:12px}.report-inventory table tr[data-v-dd8a99c8]{page-break-inside:avoid;page-break-after:auto}.report-inventory table th[data-v-dd8a99c8],.report-inventory table td[data-v-dd8a99c8]{font-weight:400;white-space:nowrap;padding:4px;text-align:center;box-sizing:border-box;border:var(--orm-border)}.report-inventory table th.no-border[data-v-dd8a99c8],.report-inventory table td.no-border[data-v-dd8a99c8]{border-top:none;border-bottom:none}.report-inventory table th.no-border-bottom[data-v-dd8a99c8],.report-inventory table td.no-border-bottom[data-v-dd8a99c8]{border-bottom:none}.report-inventory table th[data-v-dd8a99c8]{font-weight:500;background:var(--orm-blue-light-2)!important}.report-inventory table td.good-wx[data-v-dd8a99c8]{background:var(--orm-good-wx-bg)}.report-inventory table td.excluded[data-v-dd8a99c8]{background:var(--orm-excluded-wx-bg)}.report-summary[data-v-f6e8f936]{box-sizing:border-box;font-size:14px}.report-summary .section[data-v-f6e8f936]{margin-top:24px;margin-bottom:12px}.report-summary .section[data-v-f6e8f936]:last-child{border-bottom:none}.report-summary .section.chart-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.chart-section .chart-block .chart[data-v-f6e8f936]{height:300px}.report-summary .section.map-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.map-section .map-block img[data-v-f6e8f936]{margin:12px 0;width:100%;border-radius:4px;border:var(--orm-border)}.report-summary .section.map-section .map-block .voyage-block[data-v-f6e8f936]{flex:1;height:224px;line-height:2.4;padding:12px;border-radius:4px;margin-right:12px}.report-summary .section.map-section .map-block .voyage-block label[data-v-f6e8f936]{width:100px}.report-summary .section.map-section .map-block .legend-block[data-v-f6e8f936]{height:224px;width:260px;border-radius:4px;text-align:justify;padding:4px 8px;line-height:1.6;border:var(--orm-border);border-width:2px;font-size:12px}.report-summary .section.map-section .map-block .legend-block .legend-item[data-v-f6e8f936]{padding:4px 8px;margin-bottom:8px}.report-summary .section.map-section .map-block .legend-block .good-wx[data-v-f6e8f936]{display:inline-block;text-align:center;background-color:var(--orm-good-wx-bg);padding:0 8px;line-height:1.4}.report-summary .section.method-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.method-section .method-block .method-title[data-v-f6e8f936]{font-weight:500;line-height:2}.report-summary .section.method-section .method-block .method-body[data-v-f6e8f936]{font-size:13px;text-align:justify;line-height:1.8;color:var(--orm-black-secondary)}.report-summary .header-block[data-v-f6e8f936]{margin-top:24px;margin-bottom:8px;border-bottom:3px solid var(--orm-primary)}.report-summary .header-block .bg-block[data-v-f6e8f936]{width:max-content;padding:4px 24px 4px 12px;display:flex;align-items:center;justify-content:flex-start;background:var(--orm-primary);color:#fff;clip-path:polygon(0 0,95% 0,100% 102%,0 102%)}.report-summary .header-block .bg-block i[data-v-f6e8f936]{font-size:20px;margin-right:12px}.report-summary .header-block .bg-block .title[data-v-f6e8f936]{font-size:16px;font-weight:600}@media print{.print-hidden[data-v-89acf5c4]{display:none}}.report-email[data-v-89acf5c4]{box-sizing:border-box;font-size:12px}.report-email .section[data-v-89acf5c4]{margin-top:24px;margin-bottom:12px}.report-email .section .content-box[data-v-89acf5c4]{display:flex;align-items:flex-start;justify-content:center}.report-email .section .content-box .col[data-v-89acf5c4]{flex:1}.vrpt-mail-item{padding:12px;line-height:1.5em}.vrpt-item-left{margin:0 10px 30px 0}.vrpt-item-right{margin:0 0 30px 10px}.vrpt-inbox{background-color:var(--orm-blue-light-3)}.vrpt-outbox{background-color:var(--orm-bg-yellow-light)}.vrpt-date,.vrpt-from,.vrpt-to,.vrpt-subject{color:var(--orm-label)}.orm-voyage-report[data-v-48c00c2d]{position:relative;width:796px;margin:0 auto}.orm-voyage-report.watermark[data-v-48c00c2d]:before{position:fixed;width:590px;padding:8px;border:1px solid var(--idm-black-1);border-radius:10px;content:"For Reference Only";color:var(--idm-black-1);font-size:60px;font-weight:700;box-shadow:var(--idm-gl-box-shadow-lighter);top:140px;right:calc(50% - 716px);transform:rotate(30deg);pointer-events:none}
1
+ .editor-box[data-v-9854b172]{width:100%;border:1px solid var(--idm-black-2)}.editor-box .toolbar[data-v-9854b172]{border-bottom:1px solid var(--idm-black-2)}.editor-box .editor[data-v-9854b172]{overflow-y:hidden;text-align:left}@media print{@page{background:url(https://osshz.idmwx.com/asset/report-bg.png) no-repeat;background-size:100% auto;background-position:bottom center}.print-hidden[data-v-031623d6]{display:none}}.orm-plan-report[data-v-031623d6]{width:796px;margin:0 auto;font-size:14px}.orm-plan-report .section[data-v-031623d6]:last-child{border-bottom:none}.orm-plan-report .section.chart-section img[data-v-031623d6]{width:100%;height:auto;max-height:560px;border:var(--orm-border);border-radius:4px;border-width:2px}.orm-plan-report .section.chart-section .legends[data-v-031623d6]{display:flex;align-items:center;justify-content:flex-end;margin-top:4px}.orm-plan-report .section.chart-section .legends .legend[data-v-031623d6]{display:flex;align-items:center;justify-content:flex-end;margin-right:24px;font-size:12px}.orm-plan-report .section.chart-section .legends .legend .dangerous[data-v-031623d6]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-danger);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .severe[data-v-031623d6]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-severe);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .heavy[data-v-031623d6]{width:12px;height:12px;border-radius:50%;background:var(--orm-map-heavy);margin-right:4px}.orm-plan-report .section.chart-section .legends .legend .route1[data-v-031623d6],.orm-plan-report .section.chart-section .legends .legend .route2[data-v-031623d6],.orm-plan-report .section.chart-section .legends .legend .route3[data-v-031623d6]{width:40px;margin-right:4px;border:2px solid var(--orm-black-7)}.orm-plan-report .section.chart-section .legends .legend .btn[data-v-031623d6]{cursor:pointer}.orm-plan-report .section.chart-section .empty[data-v-031623d6]{padding:12px;height:100%;display:flex;align-items:center;justify-content:center;color:var(--orm-black-6);font-weight:300}.orm-plan-report .section.chart-section .empty .btn[data-v-031623d6]{cursor:pointer;margin-left:4px;font-weight:500}.orm-plan-report .section.comparison-section[data-v-031623d6],.orm-plan-report .section.waypoint-section[data-v-031623d6]{page-break-inside:avoid;margin-top:24px}.orm-plan-report .section.waypoint-section .advisory[data-v-031623d6]{padding:16px 8px;border-radius:4px;margin-bottom:8px}.orm-plan-report .section.waypoint-section .advisory .txt[data-v-031623d6]{font-size:14px;font-weight:500}.orm-plan-report .section.waypoint-section .major-waypoint[data-v-031623d6]{width:100%;display:flex;flex-direction:column;align-items:center;margin-bottom:10px;font-size:12px}.orm-plan-report .section.waypoint-section .major-waypoint .cell-item[data-v-031623d6]{display:inline-block;text-align:center;border:var(--orm-border);height:auto;padding:8px;box-sizing:border-box}.orm-plan-report .section.waypoint-section .major-waypoint .cell-item[data-v-031623d6]:not(:first-child){border-left:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-header[data-v-031623d6]{display:flex;text-align:center;width:100%}.orm-plan-report .section.waypoint-section .major-waypoint .major-header .cell-item[data-v-031623d6]{padding:12px 8px}.orm-plan-report .section.waypoint-section .major-waypoint .major-body[data-v-031623d6]{width:100%}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row[data-v-031623d6]{position:relative;display:flex}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row:first-child .cell-item[data-v-031623d6]{border-top:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row:last-child .cell-item[data-v-031623d6]{border-bottom:var(--orm-border)}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item[data-v-031623d6]{display:flex;align-items:center;justify-content:center;border-bottom:none}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item.offset[data-v-031623d6]{margin-top:-16px;margin-bottom:16px}.orm-plan-report .section.waypoint-section .major-waypoint .major-body .cell-row .cell-item.nbsp[data-v-031623d6]{border:none;margin-left:1px}.orm-plan-report .section.forecast-section[data-v-031623d6]{margin-top:24px}.orm-plan-report .section.forecast-section .echart-block[data-v-031623d6]{margin-top:12px}.orm-plan-report .section.forecast-section .echart-block .echart[data-v-031623d6]{width:100%;height:260px}.orm-plan-report .section.forecast-section .dangerous[data-v-031623d6]{background:var(--orm-map-danger);color:#fff}.orm-plan-report .section.forecast-section .severe[data-v-031623d6]{background:var(--orm-map-severe)}.orm-plan-report .section.forecast-section .heavy[data-v-031623d6]{background:var(--orm-map-heavy)}.orm-plan-report .section.forecast-section .degree-box[data-v-031623d6]{text-align:right;font-size:11px}.orm-plan-report .section.forecast-section .degree-box i[data-v-031623d6]{display:inline-block;font-size:12px}.orm-plan-report .section .route-item[data-v-031623d6]{text-decoration:underline;font-style:italic;cursor:pointer;font-size:14px;padding:0 15px;border-right:1px solid var(--idm-primary-color-light)}.orm-plan-report .section .route-item.active[data-v-031623d6]{color:var(--orm-primary)}.orm-plan-report .section .route-item[data-v-031623d6]:last-child{margin-right:0;border-right:none}.report-summary[data-v-4bd4a6f6]{box-sizing:border-box;font-size:14px}.report-summary .section[data-v-4bd4a6f6]{margin-top:24px}.report-summary .section.weather-section .definition[data-v-4bd4a6f6]{margin:12px 0;padding:12px;border-radius:4px}.report-summary .section.summary-section .segment-box[data-v-4bd4a6f6]{page-break-inside:avoid}.report-summary .section.summary-section .segment-box .phase-box[data-v-4bd4a6f6]{border:var(--orm-border);border-width:2px;border-radius:4px;padding:8px;margin-bottom:8px;width:100%}.report-summary .section.summary-section .segment-box .phase-box .phase-index[data-v-4bd4a6f6]{margin-bottom:8px;font-weight:600}.report-summary .section.summary-section .segment-box .phase-box .phase-row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.report-summary .section.summary-section .segment-box .phase-box .phase-row .phase-position label[data-v-4bd4a6f6]{margin-left:8px}.report-summary .section.summary-section .segment-box .phase-box .phase-cp span[data-v-4bd4a6f6]{padding:4px}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion[data-v-4bd4a6f6]{margin-top:12px;display:flex;align-items:center;justify-content:space-between}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion[data-v-4bd4a6f6]{flex:1;height:118px;padding:12px;border-radius:4px;margin-right:12px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion[data-v-4bd4a6f6]:last-child{margin-right:0}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value[data-v-4bd4a6f6]{font-size:16px;font-weight:800;align-items:baseline}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value i[data-v-4bd4a6f6]{margin-right:4px}.report-summary .section.summary-section .segment-box .phase-box .phase-conclusion .item-conclusion .value .unit[data-v-4bd4a6f6]{font-size:14px;margin-left:4px;font-weight:400}.report-summary .section.remark-section[data-v-4bd4a6f6]{page-break-inside:avoid;page-break-after:always}.report-summary .section.remark-section .remark-block[data-v-4bd4a6f6]{margin:12px 0;padding:12px;border-radius:4px}.report-summary .section.remark-section .exclusion-block .title[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.remark-section .exclusion-block .sub-title[data-v-4bd4a6f6]{margin-top:8px}.report-summary .section.segment-section[data-v-4bd4a6f6]{page-break-after:always}.report-summary .section.segment-section .segment-block[data-v-4bd4a6f6]{page-break-after:always;margin:12px 0}.report-summary .section.segment-section .segment-block .segment-summary[data-v-4bd4a6f6]{page-break-inside:avoid;padding:8px;border:var(--orm-border);border-width:2px;border-radius:4px}.report-summary .section.segment-section .segment-block .segment-summary .segment-index[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.segment-section .segment-block .segment-summary .segment-row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between;margin:8px 0}.report-summary .section.segment-section .segment-block .segment-summary .segment-row .segment-position label[data-v-4bd4a6f6]{margin-left:8px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed[data-v-4bd4a6f6]{padding:12px;margin-top:12px;line-height:2;background:var(--orm-blue-light-2);border-radius:4px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .row[data-v-4bd4a6f6]{display:flex;align-items:center;justify-content:space-between}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-left[data-v-4bd4a6f6]{width:300px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right[data-v-4bd4a6f6]{width:600px;margin-left:20px}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .speed[data-v-4bd4a6f6]{font-weight:600}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .under[data-v-4bd4a6f6]{font-weight:600;color:var(--orm-danger)}.report-summary .section.segment-section .segment-block .segment-summary .segment-speed .speed-right .over[data-v-4bd4a6f6]{font-weight:600;color:var(--orm-success)}.report-summary .section.segment-section .segment-block .segment-formula[data-v-4bd4a6f6]{page-break-inside:avoid;font-size:12px}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc[data-v-4bd4a6f6]{margin:12px 0;line-height:1.6;color:var(--orm-tips)}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc label[data-v-4bd4a6f6]{text-align:right;font-weight:400}.report-summary .section.segment-section .segment-block .segment-formula .formula-desc label[data-v-4bd4a6f6]:after{content:":";margin:0 6px 0 2px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block[data-v-4bd4a6f6]{page-break-inside:avoid;margin-bottom:12px;border:var(--orm-border);border-width:2px;padding:8px;line-height:2.2;border-radius:4px;font-size:12px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-item[data-v-4bd4a6f6]{padding:4px 8px;margin-bottom:8px;border-radius:4px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-item[data-v-4bd4a6f6]:last-child{margin-bottom:0}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-left[data-v-4bd4a6f6]{width:300px}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .formula-right[data-v-4bd4a6f6]{flex:1}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .fraction[data-v-4bd4a6f6]{text-align:center}.report-summary .section.segment-section .segment-block .segment-formula .formula-block .fraction .line[data-v-4bd4a6f6]{border-bottom:1px solid var(--orm-black-5)}.report-summary .section.segment-section .segment-block .segment-formula .formula-conclusion[data-v-4bd4a6f6]{margin:12px 0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;padding:8px;font-weight:600}.report-inventory[data-v-dd8a99c8]{width:1400px;font-size:14px;page-break-after:always}.report-inventory .section[data-v-dd8a99c8]{margin-top:24px}.report-inventory .section.summary-section .summary-block[data-v-dd8a99c8]{margin:12px 0}.report-inventory .section.inventory-section .legends[data-v-dd8a99c8]{font-size:12px;margin-bottom:4px}.report-inventory .section.inventory-section .legends div[data-v-dd8a99c8]{margin-right:20px}.report-inventory .section.inventory-section .legends div[data-v-dd8a99c8]:last-child{margin-right:0}.report-inventory .section.inventory-section .legends .legend[data-v-dd8a99c8]{width:30px;height:12px;margin-right:8px}.report-inventory .section.inventory-section .legends .legend.good-wx[data-v-dd8a99c8]{background:var(--orm-good-wx-bg)}.report-inventory .section.inventory-section .legends .legend.adverse-wx[data-v-dd8a99c8]{border:1px solid var(--orm-excluded-wx-bg)}.report-inventory .section.inventory-section .legends .legend.excluded[data-v-dd8a99c8]{background:var(--orm-excluded-wx-bg)}.report-inventory .section.inventory-section .legends .label[data-v-dd8a99c8]{color:var(--orm-tips)}.report-inventory .section.inventory-section .legends .report label[data-v-dd8a99c8]:after{content:":";margin:0 4px 0 2px}.report-inventory .section.inventory-section .legends .report div[data-v-dd8a99c8]{margin-right:20px}.report-inventory .section.inventory-section .legends .report div[data-v-dd8a99c8]:last-child{margin-right:0}.report-inventory table[data-v-dd8a99c8]{box-sizing:border-box;border-collapse:collapse;width:100%;overflow:visible;border:var(--orm-border);page-break-inside:auto;font-size:12px}.report-inventory table tr[data-v-dd8a99c8]{page-break-inside:avoid;page-break-after:auto}.report-inventory table th[data-v-dd8a99c8],.report-inventory table td[data-v-dd8a99c8]{font-weight:400;white-space:nowrap;padding:4px;text-align:center;box-sizing:border-box;border:var(--orm-border)}.report-inventory table th.no-border[data-v-dd8a99c8],.report-inventory table td.no-border[data-v-dd8a99c8]{border-top:none;border-bottom:none}.report-inventory table th.no-border-bottom[data-v-dd8a99c8],.report-inventory table td.no-border-bottom[data-v-dd8a99c8]{border-bottom:none}.report-inventory table th[data-v-dd8a99c8]{font-weight:500;background:var(--orm-blue-light-2)!important}.report-inventory table td.good-wx[data-v-dd8a99c8]{background:var(--orm-good-wx-bg)}.report-inventory table td.excluded[data-v-dd8a99c8]{background:var(--orm-excluded-wx-bg)}.report-summary[data-v-f6e8f936]{box-sizing:border-box;font-size:14px}.report-summary .section[data-v-f6e8f936]{margin-top:24px;margin-bottom:12px}.report-summary .section[data-v-f6e8f936]:last-child{border-bottom:none}.report-summary .section.chart-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.chart-section .chart-block .chart[data-v-f6e8f936]{height:300px}.report-summary .section.map-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.map-section .map-block img[data-v-f6e8f936]{margin:12px 0;width:100%;border-radius:4px;border:var(--orm-border)}.report-summary .section.map-section .map-block .voyage-block[data-v-f6e8f936]{flex:1;height:224px;line-height:2.4;padding:12px;border-radius:4px;margin-right:12px}.report-summary .section.map-section .map-block .voyage-block label[data-v-f6e8f936]{width:100px}.report-summary .section.map-section .map-block .legend-block[data-v-f6e8f936]{height:224px;width:260px;border-radius:4px;text-align:justify;padding:4px 8px;line-height:1.6;border:var(--orm-border);border-width:2px;font-size:12px}.report-summary .section.map-section .map-block .legend-block .legend-item[data-v-f6e8f936]{padding:4px 8px;margin-bottom:8px}.report-summary .section.map-section .map-block .legend-block .good-wx[data-v-f6e8f936]{display:inline-block;text-align:center;background-color:var(--orm-good-wx-bg);padding:0 8px;line-height:1.4}.report-summary .section.method-section[data-v-f6e8f936]{page-break-inside:avoid}.report-summary .section.method-section .method-block .method-title[data-v-f6e8f936]{font-weight:500;line-height:2}.report-summary .section.method-section .method-block .method-body[data-v-f6e8f936]{font-size:13px;text-align:justify;line-height:1.8;color:var(--orm-black-secondary)}.report-summary .header-block[data-v-f6e8f936]{margin-top:24px;margin-bottom:8px;border-bottom:3px solid var(--orm-primary)}.report-summary .header-block .bg-block[data-v-f6e8f936]{width:max-content;padding:4px 24px 4px 12px;display:flex;align-items:center;justify-content:flex-start;background:var(--orm-primary);color:#fff;clip-path:polygon(0 0,95% 0,100% 102%,0 102%)}.report-summary .header-block .bg-block i[data-v-f6e8f936]{font-size:20px;margin-right:12px}.report-summary .header-block .bg-block .title[data-v-f6e8f936]{font-size:16px;font-weight:600}@media print{.print-hidden[data-v-89acf5c4]{display:none}}.report-email[data-v-89acf5c4]{box-sizing:border-box;font-size:12px}.report-email .section[data-v-89acf5c4]{margin-top:24px;margin-bottom:12px}.report-email .section .content-box[data-v-89acf5c4]{display:flex;align-items:flex-start;justify-content:center}.report-email .section .content-box .col[data-v-89acf5c4]{flex:1}.vrpt-mail-item{padding:12px;line-height:1.5em}.vrpt-item-left{margin:0 10px 30px 0}.vrpt-item-right{margin:0 0 30px 10px}.vrpt-inbox{background-color:var(--orm-blue-light-3)}.vrpt-outbox{background-color:var(--orm-bg-yellow-light)}.vrpt-date,.vrpt-from,.vrpt-to,.vrpt-subject{color:var(--orm-label)}.orm-voyage-report[data-v-48c00c2d]{position:relative;width:796px;margin:0 auto}.orm-voyage-report.watermark[data-v-48c00c2d]:before{position:fixed;width:590px;padding:8px;border:1px solid var(--idm-black-1);border-radius:10px;content:"For Reference Only";color:var(--idm-black-1);font-size:60px;font-weight:700;box-shadow:var(--idm-gl-box-shadow-lighter);top:140px;right:calc(50% - 716px);transform:rotate(30deg);pointer-events:none}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idmui/extend",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "description": "idm ui extend",
6
6
  "type": "module",
7
7
  "keywords": [