@idmwx/idmui-report 4.3.9 → 4.4.1
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/Route/src/orm.vue.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -40,7 +40,7 @@ declare namespace _sfc_main {
|
|
|
40
40
|
function computeDegree(): (degree: any, isCurrent: any) => string | undefined;
|
|
41
41
|
function computeDay(): (plan: any, index?: number) => number;
|
|
42
42
|
function computeSuspend(): (speed: any) => number | "-";
|
|
43
|
-
function computeModel(): (speed: any) =>
|
|
43
|
+
function computeModel(): (speed: any) => string;
|
|
44
44
|
}
|
|
45
45
|
namespace watch {
|
|
46
46
|
export namespace plan_1 {
|
package/dist/index.js
CHANGED
|
@@ -932,7 +932,7 @@ const Hr = {
|
|
|
932
932
|
computeModel() {
|
|
933
933
|
return function(i) {
|
|
934
934
|
const l = i == null ? void 0 : i.source;
|
|
935
|
-
return (l == null ? void 0 : l.toLowerCase())
|
|
935
|
+
return ["ec", "cmems"].includes(l == null ? void 0 : l.toLowerCase()) ? "The forecast data is sourced from EC" : `The forecast data is sourced from ${l}`;
|
|
936
936
|
};
|
|
937
937
|
}
|
|
938
938
|
},
|
|
@@ -1467,7 +1467,7 @@ function m1(i, l, s, D, d, r) {
|
|
|
1467
1467
|
}, null, 8, yM)
|
|
1468
1468
|
]),
|
|
1469
1469
|
t("div", AM, [
|
|
1470
|
-
l[19] || (l[19] = $('<div class="legend" data-v-
|
|
1470
|
+
l[19] || (l[19] = $('<div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-dangerous);" data-v-36eb67b3></label><span data-v-36eb67b3>Dangerous</span></div><div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-severe);" data-v-36eb67b3></label><span data-v-36eb67b3>Severe</span></div><div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-heavy);" data-v-36eb67b3></label><span data-v-36eb67b3>Heavy</span></div>', 3)),
|
|
1471
1471
|
t("div", vM, [
|
|
1472
1472
|
l[16] || (l[16] = t("b", { class: "route1" }, null, -1)),
|
|
1473
1473
|
t("span", {
|
|
@@ -1653,7 +1653,7 @@ function m1(i, l, s, D, d, r) {
|
|
|
1653
1653
|
}, null, 40, ZM))
|
|
1654
1654
|
]),
|
|
1655
1655
|
t("div", HM, [
|
|
1656
|
-
l[41] || (l[41] = $('<div class="major-header" data-v-
|
|
1656
|
+
l[41] || (l[41] = $('<div class="major-header" data-v-36eb67b3><div class="cell-item flex" style="flex:1.5;" data-v-36eb67b3>Major waypoint</div><div class="cell-item flex" data-v-36eb67b3>Time</div><div class="cell-item flex" data-v-36eb67b3>Nav</div><div class="cell-item flex" data-v-36eb67b3>Dist</div><div class="cell-item flex" data-v-36eb67b3>SOG/COG</div><div class="cell-item flex" data-v-36eb67b3>Memo</div></div>', 1)),
|
|
1657
1657
|
t("div", JM, [
|
|
1658
1658
|
(Cl = (jl = s.plan) == null ? void 0 : jl.speeds) != null && Cl.length ? (n(!0), a(p, { key: 0 }, X(r.computeMajorPoints((El = (bl = (ml = (Ul = s.plan) == null ? void 0 : Ul.speeds) == null ? void 0 : ml[d.speedIndex]) == null ? void 0 : bl.speed) == null ? void 0 : El.argv, (Ql = (kl = (Yl = (wl = (Ol = s.plan) == null ? void 0 : Ol.speeds) == null ? void 0 : wl[d.speedIndex]) == null ? void 0 : Yl.speed) == null ? void 0 : kl.sample) == null ? void 0 : Ql.wps), (U, Lt) => (n(), a("div", {
|
|
1659
1659
|
key: Lt,
|
|
@@ -1826,7 +1826,7 @@ function m1(i, l, s, D, d, r) {
|
|
|
1826
1826
|
])
|
|
1827
1827
|
]);
|
|
1828
1828
|
}
|
|
1829
|
-
const Yd = /* @__PURE__ */ _t(Hr, [["render", m1], ["__scopeId", "data-v-
|
|
1829
|
+
const Yd = /* @__PURE__ */ _t(Hr, [["render", m1], ["__scopeId", "data-v-36eb67b3"]]);
|
|
1830
1830
|
const b1 = {
|
|
1831
1831
|
name: "RouteReport",
|
|
1832
1832
|
components: {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("@idm-plugin/geo"),require("moment"),require("vue"),require("echarts"),require("@wangeditor/editor-for-vue"),require("element-plus"),require("@idmui/tropical"),require("@element-plus/icons-vue"),require("axios"),require("mapbox-gl")):typeof define=="function"&&define.amd?define(["exports","@idm-plugin/geo","moment","vue","echarts","@wangeditor/editor-for-vue","element-plus","@idmui/tropical","@element-plus/icons-vue","axios","mapbox-gl"],v):(W=typeof globalThis<"u"?globalThis:W||self,v(W["idmui-report"]={},W["@idm-plugin/geo"],W.moment,W.Vue,W.echarts,W["@wangeditor/editor-for-vue"],W["element-plus"],W["@idmui/tropical"],W["@element-plus/icons-vue"],W.axios,W["mapbox-gl"]))})(this,function(W,v,H,e,Hs,nd,od,Js,Yn,bn,In){"use strict";function _s(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const s=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(t,l,s.get?s:{enumerable:!0,get:()=>o[l]})}}return t.default=o,Object.freeze(t)}const Qn=_s(Hs),iY="",Be=(o,t)=>{const l=o.__vccOpts||o;for(const[s,a]of t)l[s]=a;return l},Xs={name:"IdmBrand",props:{name:{type:String,default:""},issued:{type:String,default:""}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${(o?H(o):H()).utc().format(t)}`}}}},Ks={class:"section brand-section flex-space"},us={class:"report-box flex-space"},qs={class:"name flex-start"},$s={class:"flex-start",style:{"flex-wrap":"wrap",width:"200px"}},vs={class:"flex-start",style:{width:"100%"}},er={class:"label-block flex-evenly",style:{flex:"1"}},tr={class:"flex-end",style:{flex:"2"}};function lr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",Ks,[t[2]||(t[2]=e.createStaticVNode('<div class="logo-box flex-center" data-v-7679e32b><div class="logo" data-v-7679e32b><a href="https://fmp.idmwx.com" target="_blank" data-v-7679e32b><img src="https://img.idmwx.com/asset/orm/logo_300x180.png" data-v-7679e32b></a><a href="https://fmp.idmwx.com" target="_blank" style="text-decoration:none;" data-v-7679e32b><div class="brand" data-v-7679e32b><span style="text-decoration:underline;" data-v-7679e32b>Weather Routing</span><div class="company" data-v-7679e32b>Ocean Right Marine Service</div></div></a></div></div>',1)),e.createElementVNode("div",us,[e.createElementVNode("div",qs,e.toDisplayString(l.name),1),e.createElementVNode("div",$s,[e.createElementVNode("div",vs,[e.createElementVNode("div",er,[t[0]||(t[0]=e.createElementVNode("label",{class:"flex-end",style:{flex:"1"}},"Issued",-1)),e.createElementVNode("span",tr,e.toDisplayString(i.computeUTCTime(l.issued,"MMM-DD, YYYY")),1)])]),t[1]||(t[1]=e.createElementVNode("div",{class:"flex-start",style:{width:"100%"}},[e.createElementVNode("div",{class:"label-block flex-evenly",style:{flex:"1"}},[e.createElementVNode("label",{class:"flex-end",style:{flex:"1"}},"Mail to"),e.createElementVNode("a",{class:"flex-end",style:{flex:"2"},href:"mailto:op@ormwx.com"},"op@ormwx.com")])],-1))])])])}const Hl=Be(Xs,[["render",lr],["__scopeId","data-v-7679e32b"]]),or={name:"IdmLoading",props:{loading:{type:Boolean,default:!1},text:{type:String,default:"Loading..."}},emits:["timeout"],watch:{loading:{handler(){this.loading&&setTimeout(()=>{this.$emit("timeout",!1)},5e3)},immediate:!0}}},nr={key:0,class:"loading"};function ar(o,t,l,s,a,i){return l.loading?(e.openBlock(),e.createElementBlock("div",nr,[t[0]||(t[0]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",null,e.toDisplayString(l.text),1)])):e.createCommentVNode("",!0)}const hn=Be(or,[["render",ar]]),dY="",ir={name:"ORMPointReport",components:{IdmLoading:hn,IdmBrand:Hl},props:{report:{type:Object,default:()=>({})},showPrate:{type:Boolean,default:!1},showAcc:{type:Boolean,default:!0}},data(){return{echart:void 0,localTZ:"0",loading:!0}},computed:{computeLat(){return function(o){return v.LngLatHelper.lat2pretty(o,2)}},computeLng(){return function(o){return v.LngLatHelper.lng2pretty(o,2)}},computeLTime(){return function(o,t=8,l="MMM-DD/HHmm[LT]"){return`${H(o).utcOffset(t).format(l)}`}},computeTZ(){return function(o="0"){return v.LngLatHelper.prettyTimeZoneOffset(o)}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);height:1rem;width:1rem;margin-left:3px`}}},computeForm(){return function(o){var s,a,i,D,d,c,E,y,N,M;const t={};for(let V=0;V<((a=(s=o==null?void 0:o.extend)==null?void 0:s.data)==null?void 0:a.length);V++){const I=(i=o==null?void 0:o.extend)==null?void 0:i.data[V];if(V===0)I.precip.pacc=0;else{const T=(D=o==null?void 0:o.extend)==null?void 0:D.data[V-1],p=H(I.utc).utcOffset(this.localTZ),k=H(T.utc).utcOffset(this.localTZ),f=(d=T==null?void 0:T.precip)==null?void 0:d.prate,x=p.diff(k,"h"),z=this.roundPrecision(f*x,1);if(I.precip.pacc=z,z>0){const m=t[p.format("MMM-DD")],j=Math.floor(p.get("hour")/6);m?(m.pacc=this.roundPrecision(m.pacc+z,1),m[`${j}`]?m[`${j}`]+=z:(m[`${j}`]=z,m.colspan+=1)):(t[p.format("MMM-DD")]={pacc:z,colspan:1},t[p.format("MMM-DD")][`${j}`]=z)}}}o.paccInDays=t;let l=0;for(const V of Object.keys(t))l+=(c=t[V])==null?void 0:c.colspan,t[V].level=((E=t[V])==null?void 0:E.pacc)<10?"Light":((y=t[V])==null?void 0:y.pacc)<24.9?"Moderate":((N=t[V])==null?void 0:N.pacc)<49.9?"Heavy":((M=t[V])==null?void 0:M.pacc)<99.9?"Rainstorm":"HeavyRainstorm";return o.span=l,o}}},watch:{report:{handler(){var o,t,l,s;(t=(o=this.report)==null?void 0:o.extend)!=null&&t.data&&(this.loading=!1,this.localTZ=v.LngLatHelper.guessTimeZoneOffset((l=this.report)==null?void 0:l.lng,(s=this.report)==null?void 0:s.lat),this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{initEchart(){var i,D,d;this.echart||(this.echart=e.markRaw(Qn.init(this.$refs.echart)));const o=[],t=[],l={dateTime:0,windSpeed:1,gusts:2,waveHeight:3,windDirection:4,windDegree:5,windScale:6,current:7,precip:8,visibility:9,temp:10};let s=4;(d=(D=(i=this.report)==null?void 0:i.extend)==null?void 0:D.data)==null||d.forEach(c=>{var y,N,M,V,I,T,p,k,f,x,z,m,j;const E=H(c.utc).utcOffset(this.localTZ).format("MMM-DD/HHmm[LT]");o.push(E),s=((N=(y=c.wave)==null?void 0:y.sig)==null?void 0:N.height)>s?(V=(M=c.wave)==null?void 0:M.sig)==null?void 0:V.height:s,t.push([E,(I=c.wind)==null?void 0:I.kts,(T=c.gusts)==null?void 0:T.kts,(k=(p=c.wave)==null?void 0:p.sig)==null?void 0:k.height,(f=c.wind)==null?void 0:f.direction,(x=c.wind)==null?void 0:x.degree,(z=c.wind)==null?void 0:z.scale,(m=c.current)==null?void 0:m.kts,(j=c.precip)==null?void 0:j.acc,this.roundPrecision(c.visibility/1852,0),c.temp])});const a={animation:!1,title:{text:"Weather Conditions",subtext:"Wind/Gusts/Sig.Wave/Visibility/Precip Acc",textStyle:{color:"#000000B3",fontWeight:"500"},left:"left"},legend:{show:!0,right:0},tooltip:{trigger:"axis"},grid:{bottom:35},xAxis:[{data:o}],yAxis:[{name:"Precip Acc (mm)",nameLocation:"middle",position:"left",nameGap:30,axisLine:{lineStyle:{color:"#f85c5c"}}},{name:"Visibility (nm)",nameLocation:"middle",position:"left",offset:45,nameGap:30,axisLine:{lineStyle:{color:"#de8600"}}},{name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:25,max:s,axisLine:{lineStyle:{color:"#015DD5"}},splitLine:{show:!1}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#0e6500"}}}],visualMap:{type:"piecewise",orient:"horizontal",left:"center",bottom:0,show:!1,pieces:[{gte:17,color:"#f85c5c",label:"≥ BF5"},{gte:11,lt:17,color:"#de8600",label:"BF4"},{lt:11,color:"#67c23a",label:"< BF4"}],seriesIndex:3,dimension:1},series:[{type:"bar",name:"Precip Acc",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.precip},lineStyle:{color:"#f85c5c",type:"solid"},itemStyle:{color:"#f85c5c"},data:t,z:4},{type:"line",name:"Visibility",yAxisIndex:1,showSymbol:!1,encode:{x:l.dateTime,y:l.visibility},lineStyle:{color:"#de8600",type:"solid"},itemStyle:{color:"#de8600"},data:t,z:3},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(88, 160, 253, 1)"},{offset:.5,color:"rgba(88, 160, 253, 0.7)"},{offset:1,color:"rgba(88, 160, 253, 0)"}]}},lineStyle:{color:"rgba(88, 160, 253, 1)"},itemStyle:{color:"rgba(88, 160, 253, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:3,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"#398626",type:"solid"},itemStyle:{color:"#398626"},data:t,z:2},{type:"line",name:"Gusts",showSymbol:!1,yAxisIndex:3,encode:{x:l.dateTime,y:l.gusts},lineStyle:{color:"#0e6500",type:"dashed"},itemStyle:{color:"#0e6500"},data:t,z:2}]};this.echart.setOption(a)}}},dr={class:"point-report"},sr={class:"section info-section"},rr={class:"flex-evenly"},cr={class:"flex-space label-block",style:{width:"100%"}},Nr={class:"flex-space label-block",style:{width:"100%"}},Dr={class:"flex-evenly"},Mr={class:"flex-space label-block",style:{width:"100%"}},gr={class:"flex-space label-block",style:{width:"100%"}},mr={class:"flex-end",style:{width:"180px"}},Er={class:"section echart-section"},yr={ref:"echart",class:"echart"},Ir={class:"section sample-section"},pr=["colspan"],Ar={key:0},Vr={key:1},Tr={width:"120px"},xr={key:0,class:"degree-box"},zr={key:1},Sr={key:0,class:"degree-box"},Cr={key:1},kr={key:0,class:"degree-box"},fr={key:1},jr={key:0,class:"degree-box"},Ur={key:1},br={key:0},Or={key:1};function wr(o,t,l,s,a,i){var c,E,y,N;const D=e.resolveComponent("IdmBrand"),d=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",dr,[e.createVNode(D,{name:"Point Weather Forecast"}),e.createVNode(d,{loading:a.loading},null,8,["loading"]),e.createElementVNode("div",sr,[e.createElementVNode("div",rr,[e.createElementVNode("div",cr,[t[0]||(t[0]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Position",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeLat((c=l.report)==null?void 0:c.lat).pretty)+" / "+e.toDisplayString(i.computeLng((E=l.report)==null?void 0:E.lng).pretty),1)]),e.createElementVNode("div",Nr,[t[1]||(t[1]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Issued (+00:00)",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeLTime(l.report.updatedAt,0,"YYYY, MMM-DD/HHmm[Z]")),1)])]),e.createElementVNode("div",Dr,[e.createElementVNode("div",Mr,[t[2]||(t[2]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Timezone",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeTZ(a.localTZ)),1)]),e.createElementVNode("div",gr,[e.createElementVNode("label",mr,"("+e.toDisplayString(i.computeTZ(a.localTZ))+")",1),e.createElementVNode("span",null,e.toDisplayString(i.computeLTime(l.report.updatedAt,a.localTZ,"YYYY, MMM-DD/HHmm[LT]")),1)])])]),e.createElementVNode("div",Er,[e.createElementVNode("div",yr,null,512)]),e.createElementVNode("div",Ir,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("th",{rowspan:"2"},"Date Time",-1)),t[4]||(t[4]=e.createElementVNode("th",{colspan:"4"},"Wind",-1)),t[5]||(t[5]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")],-1)),t[6]||(t[6]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[7]||(t[7]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[8]||(t[8]=e.createElementVNode("th",{colspan:"2"},"Current",-1)),e.createElementVNode("th",{colspan:l.showPrate&&l.showAcc?2:1},"Precip",8,pr),t[9]||(t[9]=e.createElementVNode("th",{colspan:"1"},"Visibility",-1)),t[10]||(t[10]=e.createElementVNode("th",{colspan:"1"},"Temp",-1))]),e.createElementVNode("tr",null,[t[11]||(t[11]=e.createElementVNode("th",null,"Dir",-1)),t[12]||(t[12]=e.createElementVNode("th",null,"Speed (kts)",-1)),t[13]||(t[13]=e.createElementVNode("th",null,"BF",-1)),t[14]||(t[14]=e.createElementVNode("th",null,"Gusts (kts)",-1)),t[15]||(t[15]=e.createElementVNode("th",null,"Dir",-1)),t[16]||(t[16]=e.createElementVNode("th",null,"Ht (m)",-1)),t[17]||(t[17]=e.createElementVNode("th",null,"Prd (s)",-1)),t[18]||(t[18]=e.createElementVNode("th",null,"Dir",-1)),t[19]||(t[19]=e.createElementVNode("th",null,"Hgt (m)",-1)),t[20]||(t[20]=e.createElementVNode("th",null,"Prd (s)",-1)),t[21]||(t[21]=e.createElementVNode("th",null,"Dir",-1)),t[22]||(t[22]=e.createElementVNode("th",null,"Speed (kts)",-1)),l.showPrate?(e.openBlock(),e.createElementBlock("th",Ar,"Rate (mm/h)")):e.createCommentVNode("",!0),l.showAcc?(e.openBlock(),e.createElementBlock("th",Vr,"Acc (mm)")):e.createCommentVNode("",!0),t[23]||(t[23]=e.createElementVNode("th",null,"Dist (nm)",-1)),t[24]||(t[24]=e.createElementVNode("th",null,"°C",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((N=(y=l.report)==null?void 0:y.extend)==null?void 0:N.data,(M,V)=>{var I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de;return e.openBlock(),e.createElementBlock("tr",{key:V},[e.createElementVNode("td",Tr,e.toDisplayString(i.computeLTime(M.utc,a.localTZ)),1),e.createElementVNode("td",null,[(I=M.wind)!=null&&I.kts?(e.openBlock(),e.createElementBlock("span",xr,[e.createTextVNode(e.toDisplayString((T=M.wind)==null?void 0:T.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((p=M.wind)==null?void 0:p.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",zr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((k=M.wind)==null?void 0:k.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString((f=M.wind)==null?void 0:f.scale),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((x=M.gusts)==null?void 0:x.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((m=(z=M.wave)==null?void 0:z.wd)==null?void 0:m.height,1)),1),e.createElementVNode("td",null,[(Q=(j=M.wave)==null?void 0:j.swell)!=null&&Q.height?(e.openBlock(),e.createElementBlock("span",Sr,[e.createTextVNode(e.toDisplayString((R=(B=M.wave)==null?void 0:B.swell)==null?void 0:R.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((U=(g=M.wave)==null?void 0:g.swell)==null?void 0:U.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",Cr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((w=(b=M.wave)==null?void 0:b.swell)==null?void 0:w.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((S=(h=M.wave)==null?void 0:h.swell)==null?void 0:S.period,1)),1),e.createElementVNode("td",null,[(F=(G=M.wave)==null?void 0:G.sig)!=null&&F.height?(e.openBlock(),e.createElementBlock("span",kr,[e.createTextVNode(e.toDisplayString((ee=(P=M.wave)==null?void 0:P.sig)==null?void 0:ee.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((le=(te=M.wave)==null?void 0:te.sig)==null?void 0:le.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",fr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((ne=(oe=M.wave)==null?void 0:oe.sig)==null?void 0:ne.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Z=(n=M.wave)==null?void 0:n.sig)==null?void 0:Z.period,1)),1),e.createElementVNode("td",null,[(K=M.current)!=null&&K.kts?(e.openBlock(),e.createElementBlock("span",jr,[e.createTextVNode(e.toDisplayString((u=M.current)==null?void 0:u.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((q=M.current)==null?void 0:q.degree,!0))},"",4)])):(e.openBlock(),e.createElementBlock("span",Ur,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((ae=M.current)==null?void 0:ae.kts,1)),1),l.showPrate?(e.openBlock(),e.createElementBlock("td",br,e.toDisplayString(i.roundPrecision((ie=M.precip)==null?void 0:ie.prate,2)),1)):e.createCommentVNode("",!0),l.showAcc?(e.openBlock(),e.createElementBlock("td",Or,e.toDisplayString(i.roundPrecision((de=M.precip)==null?void 0:de.acc,2)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(M.visibility/1852,0)||"-"),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(M.temp,1)),1)])}),128))])])])])}const ad=Be(ir,[["render",wr],["__scopeId","data-v-eb929a40"]]),Yr={install(o){o.component("ORMPointReport",ad)}},sY="",Qr={name:"IdmLng",props:{lng:{type:Number,default:void 0},label:{type:String,default:"Lng"}},data(){return{pretty:void 0}},watch:{lng:{handler(){if(this.lng!==void 0){const o=v.LngLatHelper.convertToStdLng(this.lng);this.pretty=v.LngLatHelper.lng2pretty(o).pretty}},immediate:!0}}},hr={class:"lng-box"},Br={key:0};function Rr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",hr,[l.label?(e.openBlock(),e.createElementBlock("span",Br,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0),e.createElementVNode("label",null,e.toDisplayString(a.pretty),1)])}const On=Be(Qr,[["render",Rr],["__scopeId","data-v-0d3c152f"]]),rY="",Fr={name:"IdmLat",props:{lat:{type:Number,default:void 0},label:{type:String,default:"Lat"}},data(){return{pretty:void 0}},watch:{lat:{handler(){this.lat!==void 0&&(this.pretty=v.LngLatHelper.lat2pretty(this.lat).pretty)},immediate:!0}}},Pr={class:"lat-box"},Gr={key:0};function Lr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",Pr,[l.label?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0),e.createElementVNode("label",null,e.toDisplayString(a.pretty),1)])}const wn=Be(Fr,[["render",Lr],["__scopeId","data-v-3d953d12"]]),cY="",Wr={name:"IdmEditor",components:{Editor:nd.Editor,Toolbar:nd.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,l;o?(t=this.editor)==null||t.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var 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()}}},Zr={class:"editor-box"};function Hr(o,t,l,s,a,i){const D=e.resolveComponent("Toolbar"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",Zr,[e.withDirectives(e.createVNode(D,{editor:a.editor,"default-config":a.toolbarConfig,mode:a.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!l.disabled]]),e.createVNode(d,{modelValue:a.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=c=>a.valueHtml=c),"default-config":a.editorConfig,mode:a.mode,class:"editor",style:e.normalizeStyle({height:l.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const Jl=Be(Wr,[["render",Hr],["__scopeId","data-v-9854b172"]]),NY="",Jr={name:"OrmRouteReport",components:{Lng:On,Lat:wn,Editor:Jl,Brand:Hl,Loading:hn,ElTooltip:od.ElTooltip},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${H(o).utc().format(t)}`}},computeLTime(){return function(o,t,l){let s=0;return l&&t&&(s=v.LngLatHelper.guessTimeZoneOffset(t,l)),`${H(o).utcOffset(s).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,t){var l,s,a,i,D;if(t===0)return"-";{const d=H((a=(s=(l=o==null?void 0:o.speeds)==null?void 0:l[t])==null?void 0:s.speed)==null?void 0:a.eta).diff(H((D=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(d*100)/100}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,t){const l=[];if(t.length)return t.forEach(s=>{l.push(s),s.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:s.etd,eta:s.etd,isResume:!0,memo:`Stoppage: ${s.suspend}hrs`})}),l}},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);margin-left:3px;`}}},computeDay(){return function(o,t=0){var i,D,d,c;const l=(c=(d=(D=(i=o==null?void 0:o.speeds)==null?void 0:i[t])==null?void 0:D.speed)==null?void 0:d.sample)==null?void 0:c.hours,s=l[0],a=l[l.length-1];return Math.round(H(a.eta).diff(H(s.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,s;let t=0;return(s=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||s.forEach(a=>{t+=a.suspend||0}),t?Math.round(t*100)/100:"-"}},computeModel(){return function(o){const t=o==null?void 0:o.source;return(t==null?void 0:t.toLowerCase())==="gfs"?"The forecast data is sourced from GFS":"The forecast data is sourced from ECMWF"}}},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=e.markRaw(Qn.init(this.$refs.echart))),this.renderEchart()},renderEchart(){var c,E,y,N,M,V,I;const o=[],t=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8},s={};["W","WSW","SW","SSW","S","SSE","SE","ESE","E","ENE","NE","NNE","N","NNW","NW","WNW"].forEach((T,p)=>{s[T]=Math.PI/8*p});const i=18;let D=4;(V=(M=(N=(y=(E=(c=this.plan)==null?void 0:c.speeds)==null?void 0:E[this.speedIndex])==null?void 0:y.speed)==null?void 0:N.sample)==null?void 0:M.hours)==null||V.forEach(T=>{var k,f,x,z,m,j,Q,B,R,g;const p=T.meteo;if(p){const U=H(p.utc).utc().format("MMM-DD/HHmm[Z]");o.push(U),D=Math.ceil(((f=(k=p.wave)==null?void 0:k.sig)==null?void 0:f.height)>D?(z=(x=p.wave)==null?void 0:x.sig)==null?void 0:z.height:D),t.push([U,(m=p.wind)==null?void 0:m.kts,(Q=(j=p.wave)==null?void 0:j.sig)==null?void 0:Q.height,(B=p.wind)==null?void 0:B.direction,(R=p.wind)==null?void 0:R.degree,(g=p.wind)==null?void 0:g.scale,T.cFactor,T.wFactor,T.speed])}});const d={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"#000000B3",fontWeight:"500"},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0},grid:{bottom:40},xAxis:[{data:o,boundaryGap:!1}],yAxis:[{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:35,minInterval:5,axisLine:{lineStyle:{color:"#000000B3"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:35,max:D,min:0,minInterval:1,axisLine:{lineStyle:{color:"#015DD5"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"left",offset:50,nameGap:35,axisLine:{lineStyle:{color:"#da2e2ecc"}},splitLine:{show:!0},alignTicks:!0},{name:"SOG (kts)",nameLocation:"middle",position:"right",offset:50,nameGap:35,axisLine:{lineStyle:{color:"#398626"}},splitLine:{show:!0}}],visualMap:{show:!1,type:"piecewise",orient:"horizontal",left:"center",bottom:0,pieces:[{gte:22,color:"#f85c5c",label:"≥ BF6"},{gte:17,lt:22,color:"#de8600",label:"BF5"},{lt:17,color:"#67c23a",label:"≤ BF4"}],seriesIndex:2,dimension:1},series:[{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:1,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(88, 160, 253, 1)"},{offset:.5,color:"rgba(88, 160, 253, 0.7)"},{offset:1,color:"rgba(88, 160, 253, 0)"}]}},lineStyle:{color:"rgba(88, 160, 253, 1)"},itemStyle:{color:"rgba(88, 160, 253, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:0,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"#000000B3",type:"dashed"},itemStyle:{color:"#000000B3"},data:t,z:2},{type:"custom",yAxisIndex:0,renderItem:(T,p)=>{const k=p.coord([p.value(l.dateTime),p.value(l.windSpeed)]);return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-i/2,y:-i/2,width:i,height:i},rotation:s[p.value(l.windDirection)],position:k,style:p.style({stroke:"#555",lineWidth:1})}},encode:{x:l.dateTime,y:l.windSpeed},data:t,z:10},{name:"Current Factor",type:"line",yAxisIndex:2,showSymbol:!0,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"#da2e2ecc",type:"dotted"},itemStyle:{color:"#da2e2ecc"},data:t,z:3},{name:"SOG",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#398626",type:"solid"},itemStyle:{color:"#398626"},data:t,z:4}]};(I=this.echart)==null||I.setOption(d)}}},_r={class:"voyage-plan"},Xr={class:"plan-report"},Kr={class:"section voyage-section flex-space"},ur={class:"flex-end",style:{width:"50%","flex-wrap":"wrap"}},qr={class:"flex-start label-block",style:{width:"100%"}},$r={style:{"text-transform":"uppercase"},class:"text-ellipsis"},vr={class:"flex-start label-block",style:{width:"100%"}},ec={class:"flex-end text-ellipsis",style:{"text-transform":"uppercase"}},tc={class:"flex-start label-block",style:{width:"100%"}},lc={class:"flex-end"},oc={class:"flex-end",style:{width:"50%","flex-wrap":"wrap"}},nc={class:"flex-start label-block",style:{width:"100%"}},ac={key:0,class:"flex-end",style:{flex:"1"}},ic={key:1,class:"flex-end",style:{flex:"1"}},dc={class:"flex-end",style:{width:"120px"}},sc={class:"flex-space label-block",style:{width:"100%"}},rc={key:0,class:"flex-end",style:{flex:"1"}},cc={key:1,class:"flex-end",style:{flex:"1"}},Nc={class:"flex-end",style:{width:"120px"}},Dc={class:"flex-space label-block",style:{width:"100%"}},Mc={class:"flex-end",style:{"text-transform":"uppercase"}},gc={class:"section chart-section"},mc={class:"flex-center"},Ec=["src"],yc={class:"legends"},Ic={class:"legend"},pc={key:0,class:"legend"},Ac={key:1,class:"legend"},Vc={key:1,class:"empty"},Tc={class:"section comparison-section"},xc={key:0},zc={colspan:"3"},Sc={rowspan:"2"},Cc={rowspan:"2"},kc={rowspan:"1"},fc={key:0},jc={rowspan:"2"},Uc={rowspan:"2"},bc={rowspan:"2"},Oc={rowspan:"2"},wc={key:0},Yc={rowspan:"2"},Qc={rowspan:"2"},hc={rowspan:"2"},Bc={rowspan:"1"},Rc={key:0},Fc={class:"section waypoint-section"},Pc={class:"header-block flex-start"},Gc={class:"title"},Lc={key:0,class:"flex-end",style:{flex:"1"}},Wc=["onClick"],Zc={class:"advisory"},Hc=["innerHTML"],Jc={class:"major-waypoint"},_c={class:"major-body"},Xc={class:"cell-item flex",style:{flex:"1.5"}},Kc={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},qc={key:0},$c={class:"cell-item flex"},vc={key:0,class:"cell-item flex offset"},eN={key:1,class:"cell-item flex nbsp"},tN={key:2,class:"cell-item flex offset"},lN={key:3,class:"cell-item flex nbsp"},oN={key:4,class:"cell-item flex offset"},nN={key:5,class:"cell-item flex nbsp"},aN={key:6,class:"cell-item flex offset"},iN={key:7,class:"cell-item flex nbsp"},dN={class:"section forecast-section"},sN={class:"header-block flex-start"},rN={class:"title"},cN={key:0,class:"flex-end",style:{flex:"1"}},NN=["onClick"],DN={class:"echart-block"},MN={ref:"echart",class:"echart"},gN={class:"tips forecast-model",style:{margin:"10px auto","text-align":"left"}},mN=["colspan"],EN={key:0},yN={class:"flex-center"},IN={key:0,class:"degree-box"},pN={key:1},AN={key:0},VN={key:0,class:"degree-box"},TN={key:1},xN={key:0,class:"degree-box"},zN={key:1},SN={key:0,class:"degree-box"},CN={key:1};function kN(o,t,l,s,a,i){var M,V,I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de,Ne,_,re,De,Me,se,ge,me,Ee,ye,Ie,Te,xe,ze,Se,Ce,ke,fe,je,Ue,pe,Oe,we,be,C,Ve,Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je,ue,qe,$e,ve,et,tt,at,it,dt,st,rt,ct,Nt,Dt,Mt,gt,mt,Et,yt,It,pt,At,Vt,Tt,zt,St,Ct,kt,ft,jt,Ut,bt,Ot,wt,Yt,Qt,ht,Bt,Rt,Ft,Pt,Gt,Lt,Wt,Zt,Ht,Jt,_t;const D=e.resolveComponent("Brand"),d=e.resolveComponent("Loading"),c=e.resolveComponent("Lat"),E=e.resolveComponent("Lng"),y=e.resolveComponent("ElTooltip"),N=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",_r,[e.createElementVNode("div",Xr,[e.createVNode(D,{name:"Voyage Planning",issued:(M=l.plan)==null?void 0:M.updatedAt},null,8,["issued"]),e.createVNode(d,{loading:a.loading,onTimeout:t[0]||(t[0]=A=>a.loading=!1)},null,8,["loading"]),e.createElementVNode("div",Kr,[e.createElementVNode("div",ur,[e.createElementVNode("div",qr,[t[8]||(t[8]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Prepare for",-1)),e.createElementVNode("span",$r,e.toDisplayString((T=(I=(V=l.plan)==null?void 0:V.voyage)==null?void 0:I.company)==null?void 0:T.name),1)]),e.createElementVNode("div",vr,[t[9]||(t[9]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Vessel",-1)),e.createElementVNode("span",ec,e.toDisplayString((f=(k=(p=l.plan)==null?void 0:p.voyage)==null?void 0:k.vessel)==null?void 0:f.name)+" ("+e.toDisplayString((j=(m=(z=(x=l.plan)==null?void 0:x.voyage)==null?void 0:z.vessel)==null?void 0:m.vesselType)==null?void 0:j.name)+")",1)]),e.createElementVNode("div",tc,[t[10]||(t[10]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Voyage No.",-1)),e.createElementVNode("span",lc,e.toDisplayString((B=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:B.number),1)])]),e.createElementVNode("div",oc,[e.createElementVNode("div",nc,[t[12]||(t[12]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"From",-1)),(U=(g=(R=l.plan)==null?void 0:R.leg)==null?void 0:g.departure)!=null&&U.name?(e.openBlock(),e.createElementBlock("span",ac,e.toDisplayString((w=(b=l.plan)==null?void 0:b.leg)==null?void 0:w.departure.name),1)):(e.openBlock(),e.createElementBlock("div",ic,[e.createVNode(c,{lat:(G=(S=(h=l.plan)==null?void 0:h.leg)==null?void 0:S.departure)==null?void 0:G.lat,label:""},null,8,["lat"]),t[11]||(t[11]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:(ee=(P=(F=l.plan)==null?void 0:F.leg)==null?void 0:P.departure)==null?void 0:ee.lng,label:""},null,8,["lng"])])),e.createElementVNode("span",dc,e.toDisplayString(i.computeUTCTime(((oe=(le=(te=l.plan)==null?void 0:te.leg)==null?void 0:le.departure)==null?void 0:oe.atd)||((Z=(n=(ne=l.plan)==null?void 0:ne.leg)==null?void 0:n.departure)==null?void 0:Z.etd)||((ae=(q=(u=(K=l.plan)==null?void 0:K.speeds)==null?void 0:u[a.speedIndex])==null?void 0:q.speed)==null?void 0:ae.etd),"MMM-DD/HHmm[Z]")),1)]),e.createElementVNode("div",sc,[t[14]||(t[14]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"To",-1)),(Ne=(de=(ie=l.plan)==null?void 0:ie.leg)==null?void 0:de.destination)!=null&&Ne.name?(e.openBlock(),e.createElementBlock("span",rc,e.toDisplayString((De=(re=(_=l.plan)==null?void 0:_.leg)==null?void 0:re.destination)==null?void 0:De.name),1)):(e.openBlock(),e.createElementBlock("div",cc,[e.createVNode(c,{lat:(ge=(se=(Me=l.plan)==null?void 0:Me.leg)==null?void 0:se.destination)==null?void 0:ge.lat,label:""},null,8,["lat"]),t[13]||(t[13]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:(ye=(Ee=(me=l.plan)==null?void 0:me.leg)==null?void 0:Ee.destination)==null?void 0:ye.lng,label:""},null,8,["lng"])])),e.createElementVNode("span",Nc,e.toDisplayString(i.computeUTCTime(((ze=(xe=(Te=(Ie=l.plan)==null?void 0:Ie.speeds)==null?void 0:Te[a.speedIndex])==null?void 0:xe.speed)==null?void 0:ze.ata)||((fe=(ke=(Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce[a.speedIndex])==null?void 0:ke.speed)==null?void 0:fe.eta),"MMM-DD/HHmm[Z]")),1)]),e.createElementVNode("div",Dc,[t[15]||(t[15]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Load Condition",-1)),e.createElementVNode("span",Mc,e.toDisplayString((Ue=(je=l.plan)==null?void 0:je.voyage)==null?void 0:Ue.loadCondition),1)])])]),e.createElementVNode("div",gc,[t[22]||(t[22]=e.createElementVNode("div",{class:"header-block flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Weather chart")],-1)),(pe=l.plan)!=null&&pe.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",mc,[e.createElementVNode("img",{src:l.plan.chartUrl},null,8,Ec)]),e.createElementVNode("div",yc,[t[19]||(t[19]=e.createStaticVNode('<div class="legend" data-v-826a4732><label style="background-color:var(--idm-dangerous);" data-v-826a4732></label><span data-v-826a4732>Dangerous</span></div><div class="legend" data-v-826a4732><label style="background-color:var(--idm-severe);" data-v-826a4732></label><span data-v-826a4732>Severe</span></div><div class="legend" data-v-826a4732><label style="background-color:var(--idm-heavy);" data-v-826a4732></label><span data-v-826a4732>Heavy</span></div>',3)),e.createElementVNode("div",Ic,[t[16]||(t[16]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=A=>{a.speedIndex=0,i.renderEchart()})},e.toDisplayString((Ve=(C=(be=(we=(Oe=l.plan)==null?void 0:Oe.speeds)==null?void 0:we[0])==null?void 0:be.speed)==null?void 0:C.lane)==null?void 0:Ve.name),1)]),((Ge=(Ye=l.plan)==null?void 0:Ye.speeds)==null?void 0:Ge.length)>1?(e.openBlock(),e.createElementBlock("div",pc,[t[17]||(t[17]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=A=>{a.speedIndex=1,i.renderEchart()})},e.toDisplayString((r=(Ze=(We=(Y=(Le=l.plan)==null?void 0:Le.speeds)==null?void 0:Y[1])==null?void 0:We.speed)==null?void 0:Ze.lane)==null?void 0:r.name),1)])):e.createCommentVNode("",!0),((Ae=($=l.plan)==null?void 0:$.speeds)==null?void 0:Ae.length)>2?(e.openBlock(),e.createElementBlock("div",Ac,[t[18]||(t[18]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=A=>{a.speedIndex=2,i.renderEchart()})},e.toDisplayString((He=(Fe=(ce=(Re=(L=l.plan)==null?void 0:L.speeds)==null?void 0:Re[2])==null?void 0:ce.speed)==null?void 0:Fe.lane)==null?void 0:He.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",Vc,[e.createElementVNode("span",null,[t[20]||(t[20]=e.createTextVNode("Weather chart in cooking ")),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...A)=>i.handleRefresh&&i.handleRefresh(...A))},"Refresh"),t[21]||(t[21]=e.createTextVNode(" later please"))])]))]),e.createElementVNode("div",Tc,[(ue=(Je=l.plan)==null?void 0:Je.speeds)!=null&&ue.length?(e.openBlock(),e.createElementBlock("table",xc,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[26]||(t[26]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[27]||(t[27]=e.createElementVNode("th",null,"SPD (kts)",-1)),t[28]||(t[28]=e.createElementVNode("th",{clospan:"2"},"DTG (nm)",-1)),t[29]||(t[29]=e.createElementVNode("th",null,"ETA (LT)",-1)),t[30]||(t[30]=e.createElementVNode("th",{rowspan:"2"},"Stoppage (h)",-1)),t[31]||(t[31]=e.createElementVNode("th",{rowspan:"2"},"Diff (h)",-1)),t[32]||(t[32]=e.createElementVNode("th",{colspan:"2"},"Cons (mt)",-1)),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:($e=(qe=l.weatherPrinciple)==null?void 0:qe.dangerous)==null?void 0:$e.pretty},{default:e.withCtx(()=>t[23]||(t[23]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Dangerous",-1)])),_:1},8,["content"])]),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:(et=(ve=l.weatherPrinciple)==null?void 0:ve.severe)==null?void 0:et.pretty},{default:e.withCtx(()=>t[24]||(t[24]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Severe",-1)])),_:1},8,["content"])]),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:(at=(tt=l.weatherPrinciple)==null?void 0:tt.heavy)==null?void 0:at.pretty},{default:e.withCtx(()=>t[25]||(t[25]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Heavy",-1)])),_:1},8,["content"])])]),e.createElementVNode("tr",null,[t[33]||(t[33]=e.createElementVNode("th",null,"CP Cons (mt)",-1)),t[34]||(t[34]=e.createElementVNode("th",null,"TTG (h)",-1)),t[35]||(t[35]=e.createElementVNode("th",null,"Avg.Spd / Wx / Cur.Factor (kts)",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*FO",-1)),t[37]||(t[37]=e.createElementVNode("th",null,"*DO/GO",-1)),e.createElementVNode("th",zc,"*days (with in the next "+e.toDisplayString(i.computeDay(l.plan,0))+" days)",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((it=l.plan)==null?void 0:it.speeds,(A,Qe)=>{var _e,Xe,lt,O,Xt,Kt,ut,qt,$t,vt,el,tl,ll,ol,nl,al,il,dl,sl,rl,cl,Nl,Dl,Ml,gl,ml,El,yl,Il,pl,Al,Vl,Tl,xl;return e.openBlock(),e.createElementBlock(e.Fragment,{key:Qe},[e.createElementVNode("tr",null,[e.createElementVNode("td",Sc,e.toDisplayString(Qe+1),1),e.createElementVNode("td",Cc,e.toDisplayString((Xe=(_e=A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),1),e.createElementVNode("td",null,e.toDisplayString(`${((lt=A.speed)==null?void 0:lt.label)??"CP"} ${((O=A.speed)==null?void 0:O.v0)??((Kt=(Xt=A.speed)==null?void 0:Xt.cpCopy)==null?void 0:Kt.speed)}`),1),e.createElementVNode("td",kc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((ut=A.speed)==null?void 0:ut.distance,0)),1),($t=(qt=A.speed)==null?void 0:qt.eca)!=null&&$t.distance?(e.openBlock(),e.createElementBlock("span",fc," ("+e.toDisplayString(i.roundPrecision(A.speed.eca.distance,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(i.computeLTime((vt=A.speed)==null?void 0:vt.eta,(ll=(tl=(el=l.plan)==null?void 0:el.leg)==null?void 0:tl.destination)==null?void 0:ll.lng,(al=(nl=(ol=l.plan)==null?void 0:ol.leg)==null?void 0:nl.destination)==null?void 0:al.lat)),1),e.createTextVNode(" ["+e.toDisplayString(i.computeUTCTime((il=A.speed)==null?void 0:il.eta))+"] ",1)]),e.createElementVNode("td",jc,e.toDisplayString(i.computeSuspend(A.speed)),1),e.createElementVNode("td",Uc,e.toDisplayString(i.computeTimeDiff(l.plan,Qe)),1),e.createElementVNode("td",bc,e.toDisplayString(i.roundPrecision((dl=A.speed)==null?void 0:dl.totalFoCons,3)),1),e.createElementVNode("td",Oc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((sl=A.speed)==null?void 0:sl.totalDgoCons,3)),1),(cl=(rl=A.speed)==null?void 0:rl.eca)!=null&&cl.totalDgoCons?(e.openBlock(),e.createElementBlock("span",wc," + "+e.toDisplayString(i.roundPrecision(A.speed.eca.totalDgoCons,3))+"*",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",Yc,e.toDisplayString(i.roundPrecision(((Nl=A.speed)==null?void 0:Nl.dangerous)/24,2)),1),e.createElementVNode("td",Qc,e.toDisplayString(i.roundPrecision(((Dl=A.speed)==null?void 0:Dl.severe)/24,2)),1),e.createElementVNode("td",hc,e.toDisplayString(i.roundPrecision(((Ml=A.speed)==null?void 0:Ml.heavy)/24,2)),1)]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,e.toDisplayString((ml=(gl=A.speed)==null?void 0:gl.cpCopy)==null?void 0:ml.fo)+" FO / "+e.toDisplayString((yl=(El=A.speed)==null?void 0:El.cpCopy)==null?void 0:yl.dgo)+" DO",1),e.createElementVNode("td",Bc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((Il=A.speed)==null?void 0:Il.totalHrs,1)),1),(Al=(pl=A.speed)==null?void 0:pl.eca)!=null&&Al.hours?(e.openBlock(),e.createElementBlock("span",Rc," ("+e.toDisplayString(i.roundPrecision(A.speed.eca.hours,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Vl=A.speed)==null?void 0:Vl.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((Tl=A.speed)==null?void 0:Tl.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((xl=A.speed)==null?void 0:xl.cFactor,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),t[38]||(t[38]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast."),e.createElementVNode("br"),e.createTextVNode(" * Fuel consumption was calculated only based on CP terms, and does not reflect actual consumption. "),e.createElementVNode("br"),e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ")],-1))]),e.createElementVNode("div",Fc,[e.createElementVNode("div",Pc,[t[39]||(t[39]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+e.toDisplayString((ct=(rt=(st=(dt=l.plan.speeds)==null?void 0:dt[a.speedIndex])==null?void 0:st.speed)==null?void 0:rt.lane)==null?void 0:ct.name),1),((Dt=(Nt=l.plan)==null?void 0:Nt.speeds)==null?void 0:Dt.length)>1?(e.openBlock(),e.createElementBlock("div",Lc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Mt=l.plan)==null?void 0:Mt.speeds,(A,Qe)=>{var _e,Xe;return e.openBlock(),e.createElementBlock("div",{key:Qe,class:"route-item",onClick:lt=>{a.speedIndex=Qe,i.renderEchart()}},e.toDisplayString((Xe=(_e=A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),9,Wc)}),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zc,[a.editable?(e.openBlock(),e.createBlock(N,{key:0,modelValue:a.advisory,"onUpdate:modelValue":t[5]||(t[5]=A=>a.advisory=A),class:"editor",height:"120px",onBlur:t[6]||(t[6]=A=>i.handleCommit(A))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",onDblclick:t[7]||(t[7]=(...A)=>i.handleEdit&&i.handleEdit(...A)),innerHTML:a.advisory},null,40,Hc))]),e.createElementVNode("div",Jc,[t[41]||(t[41]=e.createStaticVNode('<div class="major-header" data-v-826a4732><div class="cell-item flex" style="flex:1.5;" data-v-826a4732>Major waypoint</div><div class="cell-item flex" data-v-826a4732>Time</div><div class="cell-item flex" data-v-826a4732>Nav</div><div class="cell-item flex" data-v-826a4732>Dist</div><div class="cell-item flex" data-v-826a4732>SOG/COG</div><div class="cell-item flex" data-v-826a4732>Memo</div></div>',1)),e.createElementVNode("div",_c,[(mt=(gt=l.plan)==null?void 0:gt.speeds)!=null&&mt.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.computeMajorPoints((pt=(It=(yt=(Et=l.plan)==null?void 0:Et.speeds)==null?void 0:yt[a.speedIndex])==null?void 0:It.speed)==null?void 0:pt.argv,(St=(zt=(Tt=(Vt=(At=l.plan)==null?void 0:At.speeds)==null?void 0:Vt[a.speedIndex])==null?void 0:Tt.speed)==null?void 0:zt.sample)==null?void 0:St.wps),(A,Qe)=>(e.openBlock(),e.createElementBlock("div",{key:Qe,class:"cell-row"},[e.createElementVNode("div",Xc,[A.isResume?(e.openBlock(),e.createElementBlock("div",Kc,"Resume")):(e.openBlock(),e.createElementBlock("div",uc,[e.createVNode(c,{lat:A.lat,label:""},null,8,["lat"]),t[40]||(t[40]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:A.lng,label:""},null,8,["lng"]),A.pilot?(e.openBlock(),e.createElementBlock("span",qc," [P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",$c,e.toDisplayString(i.computeUTCTime(A.eta)),1),Qe?(e.openBlock(),e.createElementBlock("div",vc,e.toDisplayString(i.computeNav(A)),1)):(e.openBlock(),e.createElementBlock("div",eN)),Qe?(e.openBlock(),e.createElementBlock("div",tN,e.toDisplayString(i.roundPrecision(A.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",lN)),Qe?(e.openBlock(),e.createElementBlock("div",oN,e.toDisplayString(i.roundPrecision(A.avgSpd??A.speed,2))+" / "+e.toDisplayString(i.roundPrecision(A.bearing,0)),1)):(e.openBlock(),e.createElementBlock("div",nN)),Qe?(e.openBlock(),e.createElementBlock("div",aN,e.toDisplayString(i.computeMemo(A)),1)):(e.openBlock(),e.createElementBlock("div",iN))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",dN,[(kt=(Ct=l.plan)==null?void 0:Ct.speeds)!=null&&kt.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",sN,[t[42]||(t[42]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",rN," Weather Forecast for the Next "+e.toDisplayString(i.computeDay(l.plan,a.speedIndex))+" Days of Route "+e.toDisplayString((Ot=(bt=(Ut=(jt=(ft=l.plan)==null?void 0:ft.speeds)==null?void 0:jt[a.speedIndex])==null?void 0:Ut.speed)==null?void 0:bt.lane)==null?void 0:Ot.name),1),((Yt=(wt=l.plan)==null?void 0:wt.speeds)==null?void 0:Yt.length)>1?(e.openBlock(),e.createElementBlock("div",cN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Qt=l.plan)==null?void 0:Qt.speeds,(A,Qe)=>{var _e,Xe;return e.openBlock(),e.createElementBlock("div",{key:Qe,class:"route-item",onClick:lt=>{a.speedIndex=Qe,i.renderEchart()}},e.toDisplayString((Xe=(_e=A==null?void 0:A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),9,NN)}),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",DN,[e.createElementVNode("div",MN,null,512)]),e.createElementVNode("div",gN,e.toDisplayString(i.computeModel((Rt=(Bt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Bt[a.speedIndex])==null?void 0:Rt.speed)),1),e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[43]||(t[43]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createTextVNode("UTC")],-1)),t[44]||(t[44]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createTextVNode("(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Pt=(Ft=l.plan)==null?void 0:Ft.voyage)!=null&&Pt.sendRptWithBF?3:2},"Wind",8,mN),t[45]||(t[45]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")],-1)),t[46]||(t[46]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[47]||(t[47]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[48]||(t[48]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("th",null,"Dir",-1)),t[50]||(t[50]=e.createElementVNode("th",null,"Speed (kts)",-1)),(Lt=(Gt=l.plan)==null?void 0:Gt.voyage)!=null&&Lt.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",EN,"BF")):e.createCommentVNode("",!0),t[51]||(t[51]=e.createElementVNode("th",null,"Dir",-1)),t[52]||(t[52]=e.createElementVNode("th",null,"Ht (m)",-1)),t[53]||(t[53]=e.createElementVNode("th",null,"Prd (s)",-1)),t[54]||(t[54]=e.createElementVNode("th",null,"Dir",-1)),t[55]||(t[55]=e.createElementVNode("th",null,"Hgt (m)",-1)),t[56]||(t[56]=e.createElementVNode("th",null,"Prd (s)",-1)),t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,"Speed (kts)",-1)),t[59]||(t[59]=e.createElementVNode("th",null,"Factor (kts)",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_t=(Jt=(Ht=(Zt=(Wt=l.plan)==null?void 0:Wt.speeds)==null?void 0:Zt[a.speedIndex])==null?void 0:Ht.speed)==null?void 0:Jt.sample)==null?void 0:_t.hours,(A,Qe)=>{var _e,Xe,lt,O,Xt,Kt,ut,qt,$t,vt,el,tl,ll,ol,nl,al,il,dl,sl,rl,cl,Nl,Dl,Ml,gl,ml,El,yl,Il,pl,Al,Vl,Tl,xl,Sl,Cl,kl,fl,jl,Ul,bl,Ol,wl,Yl,Ql,hl,Bl,Rl,Fl,Pl,Gl,Ll,Wl;return e.openBlock(),e.createElementBlock("tr",{key:Qe,class:e.normalizeClass(A.isDangerous?"dangerous":A.isSevere?"severe":A.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(A.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",yN,[e.createVNode(c,{lat:A.lat,label:""},null,8,["lat"]),t[60]||(t[60]=e.createElementVNode("span",null,"/",-1)),e.createVNode(E,{lng:A.lng,label:""},null,8,["lng"])])]),e.createElementVNode("td",null,[(Xe=(_e=A.meteo)==null?void 0:_e.wind)!=null&&Xe.kts?(e.openBlock(),e.createElementBlock("span",IN,[e.createTextVNode(e.toDisplayString((O=(lt=A.meteo)==null?void 0:lt.wind)==null?void 0:O.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Kt=(Xt=A.meteo)==null?void 0:Xt.wind)==null?void 0:Kt.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",pN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((qt=(ut=A.meteo)==null?void 0:ut.wind)==null?void 0:qt.kts,1)),1),(vt=($t=l.plan)==null?void 0:$t.voyage)!=null&&vt.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",AN,e.toDisplayString((tl=(el=A.meteo)==null?void 0:el.wind)==null?void 0:tl.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((nl=(ol=(ll=A.meteo)==null?void 0:ll.wave)==null?void 0:ol.wd)==null?void 0:nl.height,1)),1),e.createElementVNode("td",null,[(dl=(il=(al=A.meteo)==null?void 0:al.wave)==null?void 0:il.swell)!=null&&dl.height?(e.openBlock(),e.createElementBlock("span",VN,[e.createTextVNode(e.toDisplayString((cl=(rl=(sl=A.meteo)==null?void 0:sl.wave)==null?void 0:rl.swell)==null?void 0:cl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Ml=(Dl=(Nl=A.meteo)==null?void 0:Nl.wave)==null?void 0:Dl.swell)==null?void 0:Ml.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",TN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((El=(ml=(gl=A.meteo)==null?void 0:gl.wave)==null?void 0:ml.swell)==null?void 0:El.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((pl=(Il=(yl=A.meteo)==null?void 0:yl.wave)==null?void 0:Il.swell)==null?void 0:pl.period,1)),1),e.createElementVNode("td",null,[(Tl=(Vl=(Al=A.meteo)==null?void 0:Al.wave)==null?void 0:Vl.sig)!=null&&Tl.height?(e.openBlock(),e.createElementBlock("span",xN,[e.createTextVNode(e.toDisplayString((Cl=(Sl=(xl=A.meteo)==null?void 0:xl.wave)==null?void 0:Sl.sig)==null?void 0:Cl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((jl=(fl=(kl=A.meteo)==null?void 0:kl.wave)==null?void 0:fl.sig)==null?void 0:jl.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",zN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ol=(bl=(Ul=A.meteo)==null?void 0:Ul.wave)==null?void 0:bl.sig)==null?void 0:Ol.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ql=(Yl=(wl=A.meteo)==null?void 0:wl.wave)==null?void 0:Yl.sig)==null?void 0:Ql.period,1)),1),e.createElementVNode("td",null,[(Bl=(hl=A.meteo)==null?void 0:hl.current)!=null&&Bl.kts?(e.openBlock(),e.createElementBlock("span",SN,[e.createTextVNode(e.toDisplayString((Fl=(Rl=A.meteo)==null?void 0:Rl.current)==null?void 0:Fl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Gl=(Pl=A.meteo)==null?void 0:Pl.current)==null?void 0:Gl.degree,!0))},"",4)])):(e.openBlock(),e.createElementBlock("span",CN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Wl=(Ll=A.meteo)==null?void 0:Ll.current)==null?void 0:Wl.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(A.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[61]||(t[61]=e.createElementVNode("div",{class:"tips",style:{"text-align":"justify"}},[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. All the material is an advisory provided so as to assist the Master in making the final route decision. ")],-1))])])])}const td=Be(Jr,[["render",kN],["__scopeId","data-v-826a4732"]]),DY="",fN={name:"RouteReport",components:{Lng:On,Lat:wn,Editor:Jl},props:{plan:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:""}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${H(o).utc().format(t)}`}},computeLTime(){return function(o,t){const l=H(o);return l.utcOffset(t),`${l.format("MMM-DD/HHmm")}LT`}},computeUTCOffset(){var o,t,l,s,a;return(a=(s=(l=(t=(o=this.plan)==null?void 0:o.leg)==null?void 0:t.destination)==null?void 0:l.port)==null?void 0:s.timezone)==null?void 0:a.UtcCurrentOffset},computeTimeDiff(){return function(o,t){var l,s,a;if(t===0)return"-";{const i=H((s=(l=o==null?void 0:o.speeds[t])==null?void 0:l.speed)==null?void 0:s.eta).diff(H((a=o==null?void 0:o.speeds[0])==null?void 0:a.speed.eta),"h",!0);return Math.round(i*10)/10}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMapChart(){var o;return((o=this.plan)==null?void 0:o.chartUrl)||"//oss.idmwx.com/asset/route-report_example.png"},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);margin-left:3px;`}}},computeDay(){return function(o){var a,i,D;const t=(D=(i=(a=o==null?void 0:o.speeds[0])==null?void 0:a.speed)==null?void 0:i.sample)==null?void 0:D.hours,l=t[0],s=t[t.length-1];return H(s.eta).diff(H(l.eta),"day")}}},watch:{plan:{handler(){var o,t;(o=this.plan)!=null&&o.id&&(this.advisory=((t=this.plan)==null?void 0:t.advisory)||"Pls find the following major waypoints for your safe navigation.")},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}}},jN={class:"route-report"},UN={class:"section"},bN={class:"section-body basics"},ON={class:"flex-space section-row"},wN={class:"flex-start"},YN={class:"flex-start"},QN={class:"flex-start"},hN={class:"flex-start flex"},BN={key:0,class:"flex"},RN={key:1,class:"flex-space flex"},FN={class:"time flex"},PN={class:"flex-space section-row"},GN={class:"flex-start"},LN={class:"flex-start"},WN={class:"flex-start"},ZN={class:"flex-start flex"},HN={key:0,class:"flex"},JN={key:1,class:"flex-space"},_N={class:"time flex"},XN={class:"flex-space section-row"},KN={class:"flex-start"},uN={class:"flex-start"},qN={class:"flex-start"},$N={class:"flex-start flex"},vN={class:"section",style:{"border-bottom":"2px dashed var(--fli-border-color-dark)"}},eD={class:"section-body detail"},tD={class:"flex-space",style:{"align-items":"stretch"}},lD={class:"chart"},oD=["src"],nD={key:1,class:"empty flex-center"},aD={class:"route flex",style:{"justify-content":"space-between"}},iD={class:"suggestion"},dD=["innerHTML"],sD={class:"flex-start legends"},rD={key:0,class:"legend"},cD={key:1,class:"legend"},ND={class:"section"},DD={class:"section-body comparison"},MD={class:"container"},gD={key:0},mD={class:"section",style:{"page-break-inside":"avoid"}},ED={class:"section-body sample"},yD={class:"major-waypoints"},ID={class:"container"},pD={class:"body"},AD={class:"cell-item flexM"},VD={class:"flex-center"},TD={class:"cell-item flexL"},xD={key:0,class:"flex-center"},zD={key:1},SD={class:"cell-item flex"},CD={key:0,class:"cell-item flex offset"},kD={key:1,class:"cell-item flex nbsp"},fD={key:2,class:"cell-item flex offset"},jD={key:3,class:"cell-item flex nbsp"},UD={key:4,class:"cell-item flex offset"},bD={key:5,class:"cell-item flex nbsp"},OD={class:"section"},wD={class:"section-body sample"},YD={key:0},QD={class:"flex-center"},hD={key:0,class:"degree-box"},BD={key:1},RD={key:0,class:"degree-box"},FD={key:1},PD={key:0,class:"degree-box"},GD={key:1},LD={key:0,class:"degree-box"},WD={key:1};function ZD(o,t,l,s,a,i){var E,y,N,M,V,I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de,Ne,_,re,De,Me,se,ge,me,Ee,ye,Ie,Te,xe,ze,Se,Ce,ke,fe,je,Ue,pe,Oe,we,be;const D=e.resolveComponent("Lat"),d=e.resolveComponent("Lng"),c=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",jN,[t[28]||(t[28]=e.createElementVNode("div",{class:"brand"},[e.createElementVNode("img",{class:"bgImg",src:"https://img.idmwx.com/asset/fli_bg.jpeg"})],-1)),e.createElementVNode("div",UN,[t[12]||(t[12]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Voyage Basics")],-1)),e.createElementVNode("div",bN,[e.createElementVNode("div",ON,[e.createElementVNode("div",wN,[t[4]||(t[4]=e.createElementVNode("label",{class:"flex-end"},"Company Name",-1)),e.createElementVNode("div",YN,e.toDisplayString((N=(y=(E=l.plan)==null?void 0:E.voyage)==null?void 0:y.company)==null?void 0:N.name),1)]),e.createElementVNode("div",QN,[t[6]||(t[6]=e.createElementVNode("label",{class:"flex-end"},"Departure Port",-1)),e.createElementVNode("div",hN,[(I=(V=(M=l.plan)==null?void 0:M.leg)==null?void 0:V.departure)!=null&&I.name?(e.openBlock(),e.createElementBlock("div",BN,e.toDisplayString((p=(T=l.plan)==null?void 0:T.leg)==null?void 0:p.departure.name),1)):(e.openBlock(),e.createElementBlock("div",RN,[e.createVNode(D,{lat:(x=(f=(k=l.plan)==null?void 0:k.leg)==null?void 0:f.departure)==null?void 0:x.lat,label:""},null,8,["lat"]),t[5]||(t[5]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:(j=(m=(z=l.plan)==null?void 0:z.leg)==null?void 0:m.departure)==null?void 0:j.lng,label:""},null,8,["lng"])])),e.createElementVNode("div",FN,e.toDisplayString(i.computeUTCTime(((R=(B=(Q=l.plan)==null?void 0:Q.leg)==null?void 0:B.departure)==null?void 0:R.atd)||((b=(U=(g=l.plan)==null?void 0:g.leg)==null?void 0:U.departure)==null?void 0:b.etd),"MMMM-DD, HHmm[Z]")),1)])])]),e.createElementVNode("div",PN,[e.createElementVNode("div",GN,[t[7]||(t[7]=e.createElementVNode("label",{class:"flex-end"},"Vessel Name",-1)),e.createElementVNode("div",LN,e.toDisplayString((S=(h=(w=l.plan)==null?void 0:w.voyage)==null?void 0:h.vessel)==null?void 0:S.name),1)]),e.createElementVNode("div",WN,[t[9]||(t[9]=e.createElementVNode("label",{class:"flex-end"},"Arrival Port",-1)),e.createElementVNode("div",ZN,[(P=(F=(G=l.plan)==null?void 0:G.leg)==null?void 0:F.destination)!=null&&P.name?(e.openBlock(),e.createElementBlock("div",HN,e.toDisplayString((te=(ee=l.plan)==null?void 0:ee.leg)==null?void 0:te.destination.name),1)):(e.openBlock(),e.createElementBlock("div",JN,[e.createVNode(D,{lat:(ne=(oe=(le=l.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:ne.lat,label:""},null,8,["lat"]),t[8]||(t[8]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:(K=(Z=(n=l.plan)==null?void 0:n.leg)==null?void 0:Z.destination)==null?void 0:K.lng,label:""},null,8,["lng"])])),e.createElementVNode("div",_N,e.toDisplayString(i.computeUTCTime(((ae=(q=(u=l.plan)==null?void 0:u.speeds)==null?void 0:q[0])==null?void 0:ae.speed.ata)||((de=(ie=l.plan)==null?void 0:ie.speeds)==null?void 0:de[0].speed.eta),"MMMM-DD, HHmm[Z]")),1)])])]),e.createElementVNode("div",XN,[e.createElementVNode("div",KN,[t[10]||(t[10]=e.createElementVNode("label",{class:"flex-end"},"Report Created",-1)),e.createElementVNode("div",uN,e.toDisplayString(i.computeUTCTime((Ne=l.plan)==null?void 0:Ne.createdAt,"MMMM-DD, HHmm[Z]")),1)]),e.createElementVNode("div",qN,[t[11]||(t[11]=e.createElementVNode("label",{class:"flex-end"},"Voyage Condition",-1)),e.createElementVNode("div",$N,[e.createElementVNode("div",null,e.toDisplayString((re=(_=l.plan)==null?void 0:_.voyage)==null?void 0:re.loadCondition),1)])])])])]),e.createElementVNode("div",vN,[t[19]||(t[19]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Details")],-1)),e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",lD,[(De=l.plan)!=null&&De.chartUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:(Me=l.plan)==null?void 0:Me.chartUrl},null,8,oD)):(e.openBlock(),e.createElementBlock("div",nD,[t[13]||(t[13]=e.createTextVNode("waiting for weather map, ")),e.createElementVNode("b",{onClick:t[0]||(t[0]=(...C)=>i.handleRefresh&&i.handleRefresh(...C))},"Refresh"),t[14]||(t[14]=e.createTextVNode("later please"))]))]),e.createElementVNode("div",aD,[e.createElementVNode("div",null,[t[15]||(t[15]=e.createElementVNode("div",{class:"title"},"ROUTE REMARKS",-1)),e.createElementVNode("div",iD,[a.editable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:a.advisory,"onUpdate:modelValue":t[1]||(t[1]=C=>a.advisory=C),class:"editor",height:"120px",onBlur:t[2]||(t[2]=C=>i.handleCommit(C))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",onDblclick:t[3]||(t[3]=(...C)=>i.handleEdit&&i.handleEdit(...C)),innerHTML:a.advisory},null,40,dD))])]),e.createElementVNode("div",sD,[t[18]||(t[18]=e.createStaticVNode('<div class="legend" data-v-cc81892d><label style="background-color:var(--idm-severe);" data-v-cc81892d></label><span data-v-cc81892d>Dangerous</span></div><div class="legend" data-v-cc81892d><label style="background-color:var(--idm-heavy);" data-v-cc81892d></label><span data-v-cc81892d>Severe</span></div><div class="legend" data-v-cc81892d><b class="route1" data-v-cc81892d></b><span data-v-cc81892d>Route 1</span></div>',3)),((ge=(se=l.plan)==null?void 0:se.speeds)==null?void 0:ge.length)>1?(e.openBlock(),e.createElementBlock("div",rD,t[16]||(t[16]=[e.createElementVNode("b",{class:"route2"},null,-1),e.createElementVNode("span",null,"Route 2",-1)]))):e.createCommentVNode("",!0),((Ee=(me=l.plan)==null?void 0:me.speeds)==null?void 0:Ee.length)>2?(e.openBlock(),e.createElementBlock("div",cD,t[17]||(t[17]=[e.createElementVNode("b",{class:"route3"},null,-1),e.createElementVNode("span",null,"Route 3",-1)]))):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("div",ND,[t[21]||(t[21]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Summary")],-1)),e.createElementVNode("div",DD,[e.createElementVNode("div",MD,[(Ie=(ye=l.plan)==null?void 0:ye.speeds)!=null&&Ie.length?(e.openBlock(),e.createElementBlock("table",gD,[t[20]||(t[20]=e.createElementVNode("thead",null,[e.createElementVNode("tr"),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Route"),e.createElementVNode("th",null,"TTL Dist (nm)"),e.createElementVNode("th",null,"SPD (kts)"),e.createElementVNode("th",null,"CP Cons (mt)"),e.createElementVNode("th",null,"ETA (UTC)"),e.createElementVNode("th",null,"Avg.Spd / Wx / Cur.Factor (kts)"),e.createElementVNode("th",null,"TTL Cons (mt)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Te=l.plan)==null?void 0:Te.speeds,(C,Ve)=>{var Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je;return e.openBlock(),e.createElementBlock("tr",{key:Ve},[e.createElementVNode("td",null,"Route "+e.toDisplayString(Ve+1),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ye=C.speed)==null?void 0:Ye.distance,0)),1),e.createElementVNode("td",null,e.toDisplayString(`${((Ge=C.speed)==null?void 0:Ge.label)??"CP"} ${((Le=C.speed)==null?void 0:Le.v0)??((We=(Y=C.speed)==null?void 0:Y.cpCopy)==null?void 0:We.speed)}`),1),e.createElementVNode("td",null,e.toDisplayString((r=(Ze=C.speed)==null?void 0:Ze.cpCopy)==null?void 0:r.fo)+" FO / "+e.toDisplayString((Ae=($=C.speed)==null?void 0:$.cpCopy)==null?void 0:Ae.dgo)+" DO",1),e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime((L=C.speed)==null?void 0:L.eta)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Re=C.speed)==null?void 0:Re.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((ce=C.speed)==null?void 0:ce.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((Fe=C.speed)==null?void 0:Fe.cFactor,2)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((He=C.speed)==null?void 0:He.totalFoCons,3))+" FO /"+e.toDisplayString(i.roundPrecision((Je=C.speed)==null?void 0:Je.totalDgoCons,3))+" DO",1)])}),128))])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",mD,[t[24]||(t[24]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Major Waypoint")],-1)),e.createElementVNode("div",ED,[e.createElementVNode("div",yD,[e.createElementVNode("div",ID,[t[23]||(t[23]=e.createStaticVNode('<div class="header" data-v-cc81892d><div class="cell-item flexM" data-v-cc81892d>Major waypoint</div><div class="cell-item flexL" data-v-cc81892d>Name</div><div class="cell-item flex" data-v-cc81892d>Time</div><div class="cell-item flex" data-v-cc81892d>Nav</div><div class="cell-item flex" data-v-cc81892d>Dist</div><div class="cell-item flex" data-v-cc81892d>SOG</div></div>',1)),e.createElementVNode("div",pD,[(ze=(xe=l.plan)==null?void 0:xe.speeds)!=null&&ze.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList((fe=(ke=(Ce=(Se=l.plan)==null?void 0:Se.speeds[0])==null?void 0:Ce.speed)==null?void 0:ke.sample)==null?void 0:fe.wps,(C,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve,class:"cell-row"},[e.createElementVNode("div",AD,[e.createElementVNode("div",VD,[e.createVNode(D,{lat:C.lat,label:""},null,8,["lat"]),t[22]||(t[22]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:C.lng,label:""},null,8,["lng"])])]),e.createElementVNode("div",TD,[C.name?(e.openBlock(),e.createElementBlock("span",xD,e.toDisplayString(C.name),1)):(e.openBlock(),e.createElementBlock("span",zD,"-"))]),e.createElementVNode("div",SD,e.toDisplayString(i.computeUTCTime(C.eta)),1),Ve?(e.openBlock(),e.createElementBlock("div",CD,e.toDisplayString(i.computeNav(C)),1)):(e.openBlock(),e.createElementBlock("div",kD)),Ve?(e.openBlock(),e.createElementBlock("div",fD,e.toDisplayString(i.roundPrecision(C.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",jD)),Ve?(e.openBlock(),e.createElementBlock("div",UD,e.toDisplayString(i.roundPrecision(C.avgSpd??C.speed,1)),1)):(e.openBlock(),e.createElementBlock("div",bD))]))),128)):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("div",OD,[t[27]||(t[27]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Forecast")],-1)),e.createElementVNode("div",wD,[(Ue=(je=l.plan)==null?void 0:je.speeds)!=null&&Ue.length?(e.openBlock(),e.createElementBlock("table",YD,[t[26]||(t[26]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createTextVNode("(UTC)")]),e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createTextVNode("(lat/lon)")]),e.createElementVNode("th",{colspan:"2"},"Wind"),e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")]),e.createElementVNode("th",{colspan:"3"},"Swell"),e.createElementVNode("th",{colspan:"3"},"Sig"),e.createElementVNode("th",{colspan:"3"},"Current")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Speed (kts)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Ht (m)"),e.createElementVNode("th",null,"Prd (s)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Hgt (m)"),e.createElementVNode("th",null,"Prd (s)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Speed (kts)"),e.createElementVNode("th",null,"Factor (kts)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((be=(we=(Oe=(pe=l.plan)==null?void 0:pe.speeds[0])==null?void 0:Oe.speed)==null?void 0:we.sample)==null?void 0:be.hours,(C,Ve)=>{var Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je,ue,qe,$e,ve,et,tt,at,it,dt,st,rt,ct,Nt,Dt,Mt,gt,mt,Et,yt,It,pt,At,Vt,Tt;return e.openBlock(),e.createElementBlock("tr",{key:Ve,class:e.normalizeClass(C.isDangerous?"dangerous":C.isSevere?"severe":C.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(C.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",QD,[e.createVNode(D,{lat:C.lat,label:""},null,8,["lat"]),t[25]||(t[25]=e.createElementVNode("span",null,"/",-1)),e.createVNode(d,{lng:C.lng,label:""},null,8,["lng"])])]),e.createElementVNode("td",null,[(Ge=(Ye=C.meteo)==null?void 0:Ye.wind)!=null&&Ge.kts?(e.openBlock(),e.createElementBlock("span",hD,e.toDisplayString((Y=(Le=C.meteo)==null?void 0:Le.wind)==null?void 0:Y.direction),1)):(e.openBlock(),e.createElementBlock("span",BD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ze=(We=C.meteo)==null?void 0:We.wind)==null?void 0:Ze.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ae=($=(r=C.meteo)==null?void 0:r.wave)==null?void 0:$.wd)==null?void 0:Ae.height,1)),1),e.createElementVNode("td",null,[(ce=(Re=(L=C.meteo)==null?void 0:L.wave)==null?void 0:Re.swell)!=null&&ce.height?(e.openBlock(),e.createElementBlock("span",RD,e.toDisplayString((Je=(He=(Fe=C.meteo)==null?void 0:Fe.wave)==null?void 0:He.swell)==null?void 0:Je.direction),1)):(e.openBlock(),e.createElementBlock("span",FD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(($e=(qe=(ue=C.meteo)==null?void 0:ue.wave)==null?void 0:qe.swell)==null?void 0:$e.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((tt=(et=(ve=C.meteo)==null?void 0:ve.wave)==null?void 0:et.swell)==null?void 0:tt.period,1)),1),e.createElementVNode("td",null,[(dt=(it=(at=C.meteo)==null?void 0:at.wave)==null?void 0:it.sig)!=null&&dt.height?(e.openBlock(),e.createElementBlock("span",PD,e.toDisplayString((ct=(rt=(st=C.meteo)==null?void 0:st.wave)==null?void 0:rt.sig)==null?void 0:ct.direction),1)):(e.openBlock(),e.createElementBlock("span",GD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Mt=(Dt=(Nt=C.meteo)==null?void 0:Nt.wave)==null?void 0:Dt.sig)==null?void 0:Mt.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Et=(mt=(gt=C.meteo)==null?void 0:gt.wave)==null?void 0:mt.sig)==null?void 0:Et.period,1)),1),e.createElementVNode("td",null,[(It=(yt=C.meteo)==null?void 0:yt.current)!=null&&It.kts?(e.openBlock(),e.createElementBlock("span",LD,e.toDisplayString((At=(pt=C.meteo)==null?void 0:pt.current)==null?void 0:At.direction),1)):(e.openBlock(),e.createElementBlock("span",WD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Tt=(Vt=C.meteo)==null?void 0:Vt.current)==null?void 0:Tt.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(C.cFactor,1)),1)],2)}),128))])])):e.createCommentVNode("",!0)])]),t[29]||(t[29]=e.createElementVNode("div",{class:"section"},[e.createElementVNode("div",{class:"section-body footer"},[e.createElementVNode("div",null,[e.createTextVNode("Fleet Insight Limited "),e.createElementVNode("a",{href:"mailto:ops@fltins.com"},"ops@fltins.com")]),e.createElementVNode("div",{style:{"font-size":"11px","margin-top":"10px"}}," The waypoints and route map provided are intended for informational purposes only and should not be relied upon for actual navigation. Fleet Insight Limited assumes no liability for any direct/potential damage to vessels or cargo that may occur as a result of using this voyage plan for exact navigation. ")])],-1))])}const id=Be(fN,[["render",ZD],["__scopeId","data-v-cc81892d"]]),HD={install(o){o.component("RouteReport",td),o.component("FliPlanReport",id),o.component("OrmPlanReport",td)}},JD={install(o){o.component("IdmEditor",Jl)}},_D={install(o){o.component("IdmLat",wn)}},XD={install(o){o.component("IdmLng",On)}},KD={name:"PiLogo",props:{fill:{type:String,default:"#000000"}}},uD={class:"logo"},qD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1280.000000 1280.000000"},$D=["fill"];function vD(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("i",uD,[(e.openBlock(),e.createElementBlock("svg",qD,[e.createElementVNode("g",{transform:"translate(0.000000,1280.000000) scale(0.100000,-0.100000)",fill:l.fill,"fill-opacity":.6,stroke:"none"},t[0]||(t[0]=[e.createElementVNode("path",{d:`M4225 11533 c-100 -6 -311 -23 -335 -27 -14 -3 -59 -10 -100 -16
|
|
1
|
+
(function(W,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("@idm-plugin/geo"),require("moment"),require("vue"),require("echarts"),require("@wangeditor/editor-for-vue"),require("element-plus"),require("@idmui/tropical"),require("@element-plus/icons-vue"),require("axios"),require("mapbox-gl")):typeof define=="function"&&define.amd?define(["exports","@idm-plugin/geo","moment","vue","echarts","@wangeditor/editor-for-vue","element-plus","@idmui/tropical","@element-plus/icons-vue","axios","mapbox-gl"],v):(W=typeof globalThis<"u"?globalThis:W||self,v(W["idmui-report"]={},W["@idm-plugin/geo"],W.moment,W.Vue,W.echarts,W["@wangeditor/editor-for-vue"],W["element-plus"],W["@idmui/tropical"],W["@element-plus/icons-vue"],W.axios,W["mapbox-gl"]))})(this,function(W,v,H,e,Hs,nd,od,Js,Yn,bn,In){"use strict";function _s(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const s=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(t,l,s.get?s:{enumerable:!0,get:()=>o[l]})}}return t.default=o,Object.freeze(t)}const Qn=_s(Hs),iY="",Be=(o,t)=>{const l=o.__vccOpts||o;for(const[s,a]of t)l[s]=a;return l},Xs={name:"IdmBrand",props:{name:{type:String,default:""},issued:{type:String,default:""}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${(o?H(o):H()).utc().format(t)}`}}}},Ks={class:"section brand-section flex-space"},us={class:"report-box flex-space"},qs={class:"name flex-start"},$s={class:"flex-start",style:{"flex-wrap":"wrap",width:"200px"}},vs={class:"flex-start",style:{width:"100%"}},er={class:"label-block flex-evenly",style:{flex:"1"}},tr={class:"flex-end",style:{flex:"2"}};function lr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",Ks,[t[2]||(t[2]=e.createStaticVNode('<div class="logo-box flex-center" data-v-7679e32b><div class="logo" data-v-7679e32b><a href="https://fmp.idmwx.com" target="_blank" data-v-7679e32b><img src="https://img.idmwx.com/asset/orm/logo_300x180.png" data-v-7679e32b></a><a href="https://fmp.idmwx.com" target="_blank" style="text-decoration:none;" data-v-7679e32b><div class="brand" data-v-7679e32b><span style="text-decoration:underline;" data-v-7679e32b>Weather Routing</span><div class="company" data-v-7679e32b>Ocean Right Marine Service</div></div></a></div></div>',1)),e.createElementVNode("div",us,[e.createElementVNode("div",qs,e.toDisplayString(l.name),1),e.createElementVNode("div",$s,[e.createElementVNode("div",vs,[e.createElementVNode("div",er,[t[0]||(t[0]=e.createElementVNode("label",{class:"flex-end",style:{flex:"1"}},"Issued",-1)),e.createElementVNode("span",tr,e.toDisplayString(i.computeUTCTime(l.issued,"MMM-DD, YYYY")),1)])]),t[1]||(t[1]=e.createElementVNode("div",{class:"flex-start",style:{width:"100%"}},[e.createElementVNode("div",{class:"label-block flex-evenly",style:{flex:"1"}},[e.createElementVNode("label",{class:"flex-end",style:{flex:"1"}},"Mail to"),e.createElementVNode("a",{class:"flex-end",style:{flex:"2"},href:"mailto:op@ormwx.com"},"op@ormwx.com")])],-1))])])])}const Hl=Be(Xs,[["render",lr],["__scopeId","data-v-7679e32b"]]),or={name:"IdmLoading",props:{loading:{type:Boolean,default:!1},text:{type:String,default:"Loading..."}},emits:["timeout"],watch:{loading:{handler(){this.loading&&setTimeout(()=>{this.$emit("timeout",!1)},5e3)},immediate:!0}}},nr={key:0,class:"loading"};function ar(o,t,l,s,a,i){return l.loading?(e.openBlock(),e.createElementBlock("div",nr,[t[0]||(t[0]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",null,e.toDisplayString(l.text),1)])):e.createCommentVNode("",!0)}const hn=Be(or,[["render",ar]]),dY="",ir={name:"ORMPointReport",components:{IdmLoading:hn,IdmBrand:Hl},props:{report:{type:Object,default:()=>({})},showPrate:{type:Boolean,default:!1},showAcc:{type:Boolean,default:!0}},data(){return{echart:void 0,localTZ:"0",loading:!0}},computed:{computeLat(){return function(o){return v.LngLatHelper.lat2pretty(o,2)}},computeLng(){return function(o){return v.LngLatHelper.lng2pretty(o,2)}},computeLTime(){return function(o,t=8,l="MMM-DD/HHmm[LT]"){return`${H(o).utcOffset(t).format(l)}`}},computeTZ(){return function(o="0"){return v.LngLatHelper.prettyTimeZoneOffset(o)}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);height:1rem;width:1rem;margin-left:3px`}}},computeForm(){return function(o){var s,a,i,D,d,c,E,y,N,M;const t={};for(let V=0;V<((a=(s=o==null?void 0:o.extend)==null?void 0:s.data)==null?void 0:a.length);V++){const I=(i=o==null?void 0:o.extend)==null?void 0:i.data[V];if(V===0)I.precip.pacc=0;else{const T=(D=o==null?void 0:o.extend)==null?void 0:D.data[V-1],p=H(I.utc).utcOffset(this.localTZ),k=H(T.utc).utcOffset(this.localTZ),f=(d=T==null?void 0:T.precip)==null?void 0:d.prate,x=p.diff(k,"h"),z=this.roundPrecision(f*x,1);if(I.precip.pacc=z,z>0){const m=t[p.format("MMM-DD")],j=Math.floor(p.get("hour")/6);m?(m.pacc=this.roundPrecision(m.pacc+z,1),m[`${j}`]?m[`${j}`]+=z:(m[`${j}`]=z,m.colspan+=1)):(t[p.format("MMM-DD")]={pacc:z,colspan:1},t[p.format("MMM-DD")][`${j}`]=z)}}}o.paccInDays=t;let l=0;for(const V of Object.keys(t))l+=(c=t[V])==null?void 0:c.colspan,t[V].level=((E=t[V])==null?void 0:E.pacc)<10?"Light":((y=t[V])==null?void 0:y.pacc)<24.9?"Moderate":((N=t[V])==null?void 0:N.pacc)<49.9?"Heavy":((M=t[V])==null?void 0:M.pacc)<99.9?"Rainstorm":"HeavyRainstorm";return o.span=l,o}}},watch:{report:{handler(){var o,t,l,s;(t=(o=this.report)==null?void 0:o.extend)!=null&&t.data&&(this.loading=!1,this.localTZ=v.LngLatHelper.guessTimeZoneOffset((l=this.report)==null?void 0:l.lng,(s=this.report)==null?void 0:s.lat),this.$nextTick(()=>{this.initEchart()}))},immediate:!0}},methods:{initEchart(){var i,D,d;this.echart||(this.echart=e.markRaw(Qn.init(this.$refs.echart)));const o=[],t=[],l={dateTime:0,windSpeed:1,gusts:2,waveHeight:3,windDirection:4,windDegree:5,windScale:6,current:7,precip:8,visibility:9,temp:10};let s=4;(d=(D=(i=this.report)==null?void 0:i.extend)==null?void 0:D.data)==null||d.forEach(c=>{var y,N,M,V,I,T,p,k,f,x,z,m,j;const E=H(c.utc).utcOffset(this.localTZ).format("MMM-DD/HHmm[LT]");o.push(E),s=((N=(y=c.wave)==null?void 0:y.sig)==null?void 0:N.height)>s?(V=(M=c.wave)==null?void 0:M.sig)==null?void 0:V.height:s,t.push([E,(I=c.wind)==null?void 0:I.kts,(T=c.gusts)==null?void 0:T.kts,(k=(p=c.wave)==null?void 0:p.sig)==null?void 0:k.height,(f=c.wind)==null?void 0:f.direction,(x=c.wind)==null?void 0:x.degree,(z=c.wind)==null?void 0:z.scale,(m=c.current)==null?void 0:m.kts,(j=c.precip)==null?void 0:j.acc,this.roundPrecision(c.visibility/1852,0),c.temp])});const a={animation:!1,title:{text:"Weather Conditions",subtext:"Wind/Gusts/Sig.Wave/Visibility/Precip Acc",textStyle:{color:"#000000B3",fontWeight:"500"},left:"left"},legend:{show:!0,right:0},tooltip:{trigger:"axis"},grid:{bottom:35},xAxis:[{data:o}],yAxis:[{name:"Precip Acc (mm)",nameLocation:"middle",position:"left",nameGap:30,axisLine:{lineStyle:{color:"#f85c5c"}}},{name:"Visibility (nm)",nameLocation:"middle",position:"left",offset:45,nameGap:30,axisLine:{lineStyle:{color:"#de8600"}}},{name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:25,max:s,axisLine:{lineStyle:{color:"#015DD5"}},splitLine:{show:!1}},{name:"Wind Speed (kts)",nameLocation:"middle",position:"right",offset:40,nameGap:25,axisLine:{lineStyle:{color:"#0e6500"}}}],visualMap:{type:"piecewise",orient:"horizontal",left:"center",bottom:0,show:!1,pieces:[{gte:17,color:"#f85c5c",label:"≥ BF5"},{gte:11,lt:17,color:"#de8600",label:"BF4"},{lt:11,color:"#67c23a",label:"< BF4"}],seriesIndex:3,dimension:1},series:[{type:"bar",name:"Precip Acc",yAxisIndex:0,showSymbol:!1,encode:{x:l.dateTime,y:l.precip},lineStyle:{color:"#f85c5c",type:"solid"},itemStyle:{color:"#f85c5c"},data:t,z:4},{type:"line",name:"Visibility",yAxisIndex:1,showSymbol:!1,encode:{x:l.dateTime,y:l.visibility},lineStyle:{color:"#de8600",type:"solid"},itemStyle:{color:"#de8600"},data:t,z:3},{name:"Sig. Wave Height",type:"line",showSymbol:!1,yAxisIndex:2,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(88, 160, 253, 1)"},{offset:.5,color:"rgba(88, 160, 253, 0.7)"},{offset:1,color:"rgba(88, 160, 253, 0)"}]}},lineStyle:{color:"rgba(88, 160, 253, 1)"},itemStyle:{color:"rgba(88, 160, 253, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!1,yAxisIndex:3,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"#398626",type:"solid"},itemStyle:{color:"#398626"},data:t,z:2},{type:"line",name:"Gusts",showSymbol:!1,yAxisIndex:3,encode:{x:l.dateTime,y:l.gusts},lineStyle:{color:"#0e6500",type:"dashed"},itemStyle:{color:"#0e6500"},data:t,z:2}]};this.echart.setOption(a)}}},dr={class:"point-report"},sr={class:"section info-section"},rr={class:"flex-evenly"},cr={class:"flex-space label-block",style:{width:"100%"}},Nr={class:"flex-space label-block",style:{width:"100%"}},Dr={class:"flex-evenly"},Mr={class:"flex-space label-block",style:{width:"100%"}},gr={class:"flex-space label-block",style:{width:"100%"}},mr={class:"flex-end",style:{width:"180px"}},Er={class:"section echart-section"},yr={ref:"echart",class:"echart"},Ir={class:"section sample-section"},pr=["colspan"],Ar={key:0},Vr={key:1},Tr={width:"120px"},xr={key:0,class:"degree-box"},zr={key:1},Sr={key:0,class:"degree-box"},Cr={key:1},kr={key:0,class:"degree-box"},fr={key:1},jr={key:0,class:"degree-box"},Ur={key:1},br={key:0},Or={key:1};function wr(o,t,l,s,a,i){var c,E,y,N;const D=e.resolveComponent("IdmBrand"),d=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",dr,[e.createVNode(D,{name:"Point Weather Forecast"}),e.createVNode(d,{loading:a.loading},null,8,["loading"]),e.createElementVNode("div",sr,[e.createElementVNode("div",rr,[e.createElementVNode("div",cr,[t[0]||(t[0]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Position",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeLat((c=l.report)==null?void 0:c.lat).pretty)+" / "+e.toDisplayString(i.computeLng((E=l.report)==null?void 0:E.lng).pretty),1)]),e.createElementVNode("div",Nr,[t[1]||(t[1]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Issued (+00:00)",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeLTime(l.report.updatedAt,0,"YYYY, MMM-DD/HHmm[Z]")),1)])]),e.createElementVNode("div",Dr,[e.createElementVNode("div",Mr,[t[2]||(t[2]=e.createElementVNode("label",{class:"flex-end",style:{width:"180px"}},"Timezone",-1)),e.createElementVNode("span",null,e.toDisplayString(i.computeTZ(a.localTZ)),1)]),e.createElementVNode("div",gr,[e.createElementVNode("label",mr,"("+e.toDisplayString(i.computeTZ(a.localTZ))+")",1),e.createElementVNode("span",null,e.toDisplayString(i.computeLTime(l.report.updatedAt,a.localTZ,"YYYY, MMM-DD/HHmm[LT]")),1)])])]),e.createElementVNode("div",Er,[e.createElementVNode("div",yr,null,512)]),e.createElementVNode("div",Ir,[e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[3]||(t[3]=e.createElementVNode("th",{rowspan:"2"},"Date Time",-1)),t[4]||(t[4]=e.createElementVNode("th",{colspan:"4"},"Wind",-1)),t[5]||(t[5]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")],-1)),t[6]||(t[6]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[7]||(t[7]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[8]||(t[8]=e.createElementVNode("th",{colspan:"2"},"Current",-1)),e.createElementVNode("th",{colspan:l.showPrate&&l.showAcc?2:1},"Precip",8,pr),t[9]||(t[9]=e.createElementVNode("th",{colspan:"1"},"Visibility",-1)),t[10]||(t[10]=e.createElementVNode("th",{colspan:"1"},"Temp",-1))]),e.createElementVNode("tr",null,[t[11]||(t[11]=e.createElementVNode("th",null,"Dir",-1)),t[12]||(t[12]=e.createElementVNode("th",null,"Speed (kts)",-1)),t[13]||(t[13]=e.createElementVNode("th",null,"BF",-1)),t[14]||(t[14]=e.createElementVNode("th",null,"Gusts (kts)",-1)),t[15]||(t[15]=e.createElementVNode("th",null,"Dir",-1)),t[16]||(t[16]=e.createElementVNode("th",null,"Ht (m)",-1)),t[17]||(t[17]=e.createElementVNode("th",null,"Prd (s)",-1)),t[18]||(t[18]=e.createElementVNode("th",null,"Dir",-1)),t[19]||(t[19]=e.createElementVNode("th",null,"Hgt (m)",-1)),t[20]||(t[20]=e.createElementVNode("th",null,"Prd (s)",-1)),t[21]||(t[21]=e.createElementVNode("th",null,"Dir",-1)),t[22]||(t[22]=e.createElementVNode("th",null,"Speed (kts)",-1)),l.showPrate?(e.openBlock(),e.createElementBlock("th",Ar,"Rate (mm/h)")):e.createCommentVNode("",!0),l.showAcc?(e.openBlock(),e.createElementBlock("th",Vr,"Acc (mm)")):e.createCommentVNode("",!0),t[23]||(t[23]=e.createElementVNode("th",null,"Dist (nm)",-1)),t[24]||(t[24]=e.createElementVNode("th",null,"°C",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((N=(y=l.report)==null?void 0:y.extend)==null?void 0:N.data,(M,V)=>{var I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de;return e.openBlock(),e.createElementBlock("tr",{key:V},[e.createElementVNode("td",Tr,e.toDisplayString(i.computeLTime(M.utc,a.localTZ)),1),e.createElementVNode("td",null,[(I=M.wind)!=null&&I.kts?(e.openBlock(),e.createElementBlock("span",xr,[e.createTextVNode(e.toDisplayString((T=M.wind)==null?void 0:T.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((p=M.wind)==null?void 0:p.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",zr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((k=M.wind)==null?void 0:k.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString((f=M.wind)==null?void 0:f.scale),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((x=M.gusts)==null?void 0:x.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((m=(z=M.wave)==null?void 0:z.wd)==null?void 0:m.height,1)),1),e.createElementVNode("td",null,[(Q=(j=M.wave)==null?void 0:j.swell)!=null&&Q.height?(e.openBlock(),e.createElementBlock("span",Sr,[e.createTextVNode(e.toDisplayString((R=(B=M.wave)==null?void 0:B.swell)==null?void 0:R.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((U=(g=M.wave)==null?void 0:g.swell)==null?void 0:U.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",Cr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((w=(b=M.wave)==null?void 0:b.swell)==null?void 0:w.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((S=(h=M.wave)==null?void 0:h.swell)==null?void 0:S.period,1)),1),e.createElementVNode("td",null,[(F=(G=M.wave)==null?void 0:G.sig)!=null&&F.height?(e.openBlock(),e.createElementBlock("span",kr,[e.createTextVNode(e.toDisplayString((ee=(P=M.wave)==null?void 0:P.sig)==null?void 0:ee.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((le=(te=M.wave)==null?void 0:te.sig)==null?void 0:le.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",fr,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((ne=(oe=M.wave)==null?void 0:oe.sig)==null?void 0:ne.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Z=(n=M.wave)==null?void 0:n.sig)==null?void 0:Z.period,1)),1),e.createElementVNode("td",null,[(K=M.current)!=null&&K.kts?(e.openBlock(),e.createElementBlock("span",jr,[e.createTextVNode(e.toDisplayString((u=M.current)==null?void 0:u.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((q=M.current)==null?void 0:q.degree,!0))},"",4)])):(e.openBlock(),e.createElementBlock("span",Ur,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((ae=M.current)==null?void 0:ae.kts,1)),1),l.showPrate?(e.openBlock(),e.createElementBlock("td",br,e.toDisplayString(i.roundPrecision((ie=M.precip)==null?void 0:ie.prate,2)),1)):e.createCommentVNode("",!0),l.showAcc?(e.openBlock(),e.createElementBlock("td",Or,e.toDisplayString(i.roundPrecision((de=M.precip)==null?void 0:de.acc,2)),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(M.visibility/1852,0)||"-"),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(M.temp,1)),1)])}),128))])])])])}const ad=Be(ir,[["render",wr],["__scopeId","data-v-eb929a40"]]),Yr={install(o){o.component("ORMPointReport",ad)}},sY="",Qr={name:"IdmLng",props:{lng:{type:Number,default:void 0},label:{type:String,default:"Lng"}},data(){return{pretty:void 0}},watch:{lng:{handler(){if(this.lng!==void 0){const o=v.LngLatHelper.convertToStdLng(this.lng);this.pretty=v.LngLatHelper.lng2pretty(o).pretty}},immediate:!0}}},hr={class:"lng-box"},Br={key:0};function Rr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",hr,[l.label?(e.openBlock(),e.createElementBlock("span",Br,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0),e.createElementVNode("label",null,e.toDisplayString(a.pretty),1)])}const On=Be(Qr,[["render",Rr],["__scopeId","data-v-0d3c152f"]]),rY="",Fr={name:"IdmLat",props:{lat:{type:Number,default:void 0},label:{type:String,default:"Lat"}},data(){return{pretty:void 0}},watch:{lat:{handler(){this.lat!==void 0&&(this.pretty=v.LngLatHelper.lat2pretty(this.lat).pretty)},immediate:!0}}},Pr={class:"lat-box"},Gr={key:0};function Lr(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("div",Pr,[l.label?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(l.label),1)):e.createCommentVNode("",!0),e.createElementVNode("label",null,e.toDisplayString(a.pretty),1)])}const wn=Be(Fr,[["render",Lr],["__scopeId","data-v-3d953d12"]]),cY="",Wr={name:"IdmEditor",components:{Editor:nd.Editor,Toolbar:nd.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,l;o?(t=this.editor)==null||t.disable():(l=this.editor)==null||l.enable()}},modelValue:{handler(){var o;this.valueHtml=this.modelValue,(o=this.editor)==null||o.setHtml(this.valueHtml)}}},methods:{handleCreated(o){var 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()}}},Zr={class:"editor-box"};function Hr(o,t,l,s,a,i){const D=e.resolveComponent("Toolbar"),d=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",Zr,[e.withDirectives(e.createVNode(D,{editor:a.editor,"default-config":a.toolbarConfig,mode:a.mode,class:"toolbar"},null,8,["editor","default-config","mode"]),[[e.vShow,!l.disabled]]),e.createVNode(d,{modelValue:a.valueHtml,"onUpdate:modelValue":t[0]||(t[0]=c=>a.valueHtml=c),"default-config":a.editorConfig,mode:a.mode,class:"editor",style:e.normalizeStyle({height:l.height}),onOnCreated:i.handleCreated,onOnChange:i.handleChange,onOnBlur:i.handleBlur},null,8,["modelValue","default-config","mode","style","onOnCreated","onOnChange","onOnBlur"])])}const Jl=Be(Wr,[["render",Hr],["__scopeId","data-v-9854b172"]]),NY="",Jr={name:"OrmRouteReport",components:{Lng:On,Lat:wn,Editor:Jl,Brand:Hl,Loading:hn,ElTooltip:od.ElTooltip},props:{plan:{type:Object,default:()=>({})},weatherPrinciple:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:"",echart:void 0,speedIndex:0,loading:!0}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${H(o).utc().format(t)}`}},computeLTime(){return function(o,t,l){let s=0;return l&&t&&(s=v.LngLatHelper.guessTimeZoneOffset(t,l)),`${H(o).utcOffset(s).format("MMM-DD/HHmm")}LT`}},computeTimeDiff(){return function(o,t){var l,s,a,i,D;if(t===0)return"-";{const d=H((a=(s=(l=o==null?void 0:o.speeds)==null?void 0:l[t])==null?void 0:s.speed)==null?void 0:a.eta).diff(H((D=(i=o==null?void 0:o.speeds)==null?void 0:i[0])==null?void 0:D.speed.eta),"h",!0);return Math.round(d*100)/100}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMemo(){return function(o){return(o==null?void 0:o.memo)??"-"}},computeMajorPoints(){return function(o,t){const l=[];if(t.length)return t.forEach(s=>{l.push(s),s.suspend&&(o!=null&&o.useRouteParam)&&l.push({etd:s.etd,eta:s.etd,isResume:!0,memo:`Stoppage: ${s.suspend}hrs`})}),l}},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);margin-left:3px;`}}},computeDay(){return function(o,t=0){var i,D,d,c;const l=(c=(d=(D=(i=o==null?void 0:o.speeds)==null?void 0:i[t])==null?void 0:D.speed)==null?void 0:d.sample)==null?void 0:c.hours,s=l[0],a=l[l.length-1];return Math.round(H(a.eta).diff(H(s.eta),"day",!0)*10)/10}},computeSuspend(){return function(o){var l,s;let t=0;return(s=(l=o==null?void 0:o.sample)==null?void 0:l.wps)==null||s.forEach(a=>{t+=a.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}`}}},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=e.markRaw(Qn.init(this.$refs.echart))),this.renderEchart()},renderEchart(){var c,E,y,N,M,V,I;const o=[],t=[],l={dateTime:0,windSpeed:1,waveHeight:2,windDirection:3,windDegree:4,windScale:5,currentFactor:6,weatherFactor:7,speed:8},s={};["W","WSW","SW","SSW","S","SSE","SE","ESE","E","ENE","NE","NNE","N","NNW","NW","WNW"].forEach((T,p)=>{s[T]=Math.PI/8*p});const i=18;let D=4;(V=(M=(N=(y=(E=(c=this.plan)==null?void 0:c.speeds)==null?void 0:E[this.speedIndex])==null?void 0:y.speed)==null?void 0:N.sample)==null?void 0:M.hours)==null||V.forEach(T=>{var k,f,x,z,m,j,Q,B,R,g;const p=T.meteo;if(p){const U=H(p.utc).utc().format("MMM-DD/HHmm[Z]");o.push(U),D=Math.ceil(((f=(k=p.wave)==null?void 0:k.sig)==null?void 0:f.height)>D?(z=(x=p.wave)==null?void 0:x.sig)==null?void 0:z.height:D),t.push([U,(m=p.wind)==null?void 0:m.kts,(Q=(j=p.wave)==null?void 0:j.sig)==null?void 0:Q.height,(B=p.wind)==null?void 0:B.direction,(R=p.wind)==null?void 0:R.degree,(g=p.wind)==null?void 0:g.scale,T.cFactor,T.wFactor,T.speed])}});const d={animation:!1,title:{text:"Weather Conditions & Speed Analysis",textStyle:{color:"#000000B3",fontWeight:"500"},left:"left"},tooltip:{trigger:"axis"},legend:{show:!0,right:0},grid:{bottom:40},xAxis:[{data:o,boundaryGap:!1}],yAxis:[{name:"Wind Speed (kts)",nameLocation:"middle",position:"left",nameGap:35,minInterval:5,axisLine:{lineStyle:{color:"#000000B3"}}},{type:"value",name:"Sig. Wave Height (m)",nameLocation:"middle",position:"right",nameGap:35,max:D,min:0,minInterval:1,axisLine:{lineStyle:{color:"#015DD5"}},splitLine:{show:!1}},{name:"Current Factor (kts)",nameLocation:"middle",position:"left",offset:50,nameGap:35,axisLine:{lineStyle:{color:"#da2e2ecc"}},splitLine:{show:!0},alignTicks:!0},{name:"SOG (kts)",nameLocation:"middle",position:"right",offset:50,nameGap:35,axisLine:{lineStyle:{color:"#398626"}},splitLine:{show:!0}}],visualMap:{show:!1,type:"piecewise",orient:"horizontal",left:"center",bottom:0,pieces:[{gte:22,color:"#f85c5c",label:"≥ BF6"},{gte:17,lt:22,color:"#de8600",label:"BF5"},{lt:17,color:"#67c23a",label:"≤ BF4"}],seriesIndex:2,dimension:1},series:[{name:"Sig. Wave Height",type:"line",showSymbol:!0,yAxisIndex:1,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:"rgba(88, 160, 253, 1)"},{offset:.5,color:"rgba(88, 160, 253, 0.7)"},{offset:1,color:"rgba(88, 160, 253, 0)"}]}},lineStyle:{color:"rgba(88, 160, 253, 1)"},itemStyle:{color:"rgba(88, 160, 253, 1)"},encode:{x:l.dateTime,y:l.waveHeight},data:t,z:1},{name:"Wind Speed",type:"line",showSymbol:!0,yAxisIndex:0,encode:{x:l.dateTime,y:l.windSpeed},lineStyle:{color:"#000000B3",type:"dashed"},itemStyle:{color:"#000000B3"},data:t,z:2},{type:"custom",yAxisIndex:0,renderItem:(T,p)=>{const k=p.coord([p.value(l.dateTime),p.value(l.windSpeed)]);return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-i/2,y:-i/2,width:i,height:i},rotation:s[p.value(l.windDirection)],position:k,style:p.style({stroke:"#555",lineWidth:1})}},encode:{x:l.dateTime,y:l.windSpeed},data:t,z:10},{name:"Current Factor",type:"line",yAxisIndex:2,showSymbol:!0,encode:{x:l.dateTime,y:l.currentFactor},lineStyle:{color:"#da2e2ecc",type:"dotted"},itemStyle:{color:"#da2e2ecc"},data:t,z:3},{name:"SOG",type:"line",yAxisIndex:3,showSymbol:!0,encode:{x:l.dateTime,y:l.speed},lineStyle:{color:"#398626",type:"solid"},itemStyle:{color:"#398626"},data:t,z:4}]};(I=this.echart)==null||I.setOption(d)}}},_r={class:"voyage-plan"},Xr={class:"plan-report"},Kr={class:"section voyage-section flex-space"},ur={class:"flex-end",style:{width:"50%","flex-wrap":"wrap"}},qr={class:"flex-start label-block",style:{width:"100%"}},$r={style:{"text-transform":"uppercase"},class:"text-ellipsis"},vr={class:"flex-start label-block",style:{width:"100%"}},ec={class:"flex-end text-ellipsis",style:{"text-transform":"uppercase"}},tc={class:"flex-start label-block",style:{width:"100%"}},lc={class:"flex-end"},oc={class:"flex-end",style:{width:"50%","flex-wrap":"wrap"}},nc={class:"flex-start label-block",style:{width:"100%"}},ac={key:0,class:"flex-end",style:{flex:"1"}},ic={key:1,class:"flex-end",style:{flex:"1"}},dc={class:"flex-end",style:{width:"120px"}},sc={class:"flex-space label-block",style:{width:"100%"}},rc={key:0,class:"flex-end",style:{flex:"1"}},cc={key:1,class:"flex-end",style:{flex:"1"}},Nc={class:"flex-end",style:{width:"120px"}},Dc={class:"flex-space label-block",style:{width:"100%"}},Mc={class:"flex-end",style:{"text-transform":"uppercase"}},gc={class:"section chart-section"},mc={class:"flex-center"},Ec=["src"],yc={class:"legends"},Ic={class:"legend"},pc={key:0,class:"legend"},Ac={key:1,class:"legend"},Vc={key:1,class:"empty"},Tc={class:"section comparison-section"},xc={key:0},zc={colspan:"3"},Sc={rowspan:"2"},Cc={rowspan:"2"},kc={rowspan:"1"},fc={key:0},jc={rowspan:"2"},Uc={rowspan:"2"},bc={rowspan:"2"},Oc={rowspan:"2"},wc={key:0},Yc={rowspan:"2"},Qc={rowspan:"2"},hc={rowspan:"2"},Bc={rowspan:"1"},Rc={key:0},Fc={class:"section waypoint-section"},Pc={class:"header-block flex-start"},Gc={class:"title"},Lc={key:0,class:"flex-end",style:{flex:"1"}},Wc=["onClick"],Zc={class:"advisory"},Hc=["innerHTML"],Jc={class:"major-waypoint"},_c={class:"major-body"},Xc={class:"cell-item flex",style:{flex:"1.5"}},Kc={key:0,class:"flex-center"},uc={key:1,class:"flex-center"},qc={key:0},$c={class:"cell-item flex"},vc={key:0,class:"cell-item flex offset"},eN={key:1,class:"cell-item flex nbsp"},tN={key:2,class:"cell-item flex offset"},lN={key:3,class:"cell-item flex nbsp"},oN={key:4,class:"cell-item flex offset"},nN={key:5,class:"cell-item flex nbsp"},aN={key:6,class:"cell-item flex offset"},iN={key:7,class:"cell-item flex nbsp"},dN={class:"section forecast-section"},sN={class:"header-block flex-start"},rN={class:"title"},cN={key:0,class:"flex-end",style:{flex:"1"}},NN=["onClick"],DN={class:"echart-block"},MN={ref:"echart",class:"echart"},gN={class:"tips forecast-model",style:{margin:"10px auto","text-align":"left"}},mN=["colspan"],EN={key:0},yN={class:"flex-center"},IN={key:0,class:"degree-box"},pN={key:1},AN={key:0},VN={key:0,class:"degree-box"},TN={key:1},xN={key:0,class:"degree-box"},zN={key:1},SN={key:0,class:"degree-box"},CN={key:1};function kN(o,t,l,s,a,i){var M,V,I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de,Ne,_,re,De,Me,se,ge,me,Ee,ye,Ie,Te,xe,ze,Se,Ce,ke,fe,je,Ue,pe,Oe,we,be,C,Ve,Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je,ue,qe,$e,ve,et,tt,at,it,dt,st,rt,ct,Nt,Dt,Mt,gt,mt,Et,yt,It,pt,At,Vt,Tt,zt,St,Ct,kt,ft,jt,Ut,bt,Ot,wt,Yt,Qt,ht,Bt,Rt,Ft,Pt,Gt,Lt,Wt,Zt,Ht,Jt,_t;const D=e.resolveComponent("Brand"),d=e.resolveComponent("Loading"),c=e.resolveComponent("Lat"),E=e.resolveComponent("Lng"),y=e.resolveComponent("ElTooltip"),N=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",_r,[e.createElementVNode("div",Xr,[e.createVNode(D,{name:"Voyage Planning",issued:(M=l.plan)==null?void 0:M.updatedAt},null,8,["issued"]),e.createVNode(d,{loading:a.loading,onTimeout:t[0]||(t[0]=A=>a.loading=!1)},null,8,["loading"]),e.createElementVNode("div",Kr,[e.createElementVNode("div",ur,[e.createElementVNode("div",qr,[t[8]||(t[8]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Prepare for",-1)),e.createElementVNode("span",$r,e.toDisplayString((T=(I=(V=l.plan)==null?void 0:V.voyage)==null?void 0:I.company)==null?void 0:T.name),1)]),e.createElementVNode("div",vr,[t[9]||(t[9]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Vessel",-1)),e.createElementVNode("span",ec,e.toDisplayString((f=(k=(p=l.plan)==null?void 0:p.voyage)==null?void 0:k.vessel)==null?void 0:f.name)+" ("+e.toDisplayString((j=(m=(z=(x=l.plan)==null?void 0:x.voyage)==null?void 0:z.vessel)==null?void 0:m.vesselType)==null?void 0:j.name)+")",1)]),e.createElementVNode("div",tc,[t[10]||(t[10]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Voyage No.",-1)),e.createElementVNode("span",lc,e.toDisplayString((B=(Q=l.plan)==null?void 0:Q.voyage)==null?void 0:B.number),1)])]),e.createElementVNode("div",oc,[e.createElementVNode("div",nc,[t[12]||(t[12]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"From",-1)),(U=(g=(R=l.plan)==null?void 0:R.leg)==null?void 0:g.departure)!=null&&U.name?(e.openBlock(),e.createElementBlock("span",ac,e.toDisplayString((w=(b=l.plan)==null?void 0:b.leg)==null?void 0:w.departure.name),1)):(e.openBlock(),e.createElementBlock("div",ic,[e.createVNode(c,{lat:(G=(S=(h=l.plan)==null?void 0:h.leg)==null?void 0:S.departure)==null?void 0:G.lat,label:""},null,8,["lat"]),t[11]||(t[11]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:(ee=(P=(F=l.plan)==null?void 0:F.leg)==null?void 0:P.departure)==null?void 0:ee.lng,label:""},null,8,["lng"])])),e.createElementVNode("span",dc,e.toDisplayString(i.computeUTCTime(((oe=(le=(te=l.plan)==null?void 0:te.leg)==null?void 0:le.departure)==null?void 0:oe.atd)||((Z=(n=(ne=l.plan)==null?void 0:ne.leg)==null?void 0:n.departure)==null?void 0:Z.etd)||((ae=(q=(u=(K=l.plan)==null?void 0:K.speeds)==null?void 0:u[a.speedIndex])==null?void 0:q.speed)==null?void 0:ae.etd),"MMM-DD/HHmm[Z]")),1)]),e.createElementVNode("div",sc,[t[14]||(t[14]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"To",-1)),(Ne=(de=(ie=l.plan)==null?void 0:ie.leg)==null?void 0:de.destination)!=null&&Ne.name?(e.openBlock(),e.createElementBlock("span",rc,e.toDisplayString((De=(re=(_=l.plan)==null?void 0:_.leg)==null?void 0:re.destination)==null?void 0:De.name),1)):(e.openBlock(),e.createElementBlock("div",cc,[e.createVNode(c,{lat:(ge=(se=(Me=l.plan)==null?void 0:Me.leg)==null?void 0:se.destination)==null?void 0:ge.lat,label:""},null,8,["lat"]),t[13]||(t[13]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:(ye=(Ee=(me=l.plan)==null?void 0:me.leg)==null?void 0:Ee.destination)==null?void 0:ye.lng,label:""},null,8,["lng"])])),e.createElementVNode("span",Nc,e.toDisplayString(i.computeUTCTime(((ze=(xe=(Te=(Ie=l.plan)==null?void 0:Ie.speeds)==null?void 0:Te[a.speedIndex])==null?void 0:xe.speed)==null?void 0:ze.ata)||((fe=(ke=(Ce=(Se=l.plan)==null?void 0:Se.speeds)==null?void 0:Ce[a.speedIndex])==null?void 0:ke.speed)==null?void 0:fe.eta),"MMM-DD/HHmm[Z]")),1)]),e.createElementVNode("div",Dc,[t[15]||(t[15]=e.createElementVNode("label",{class:"flex-end",style:{width:"140px"}},"Load Condition",-1)),e.createElementVNode("span",Mc,e.toDisplayString((Ue=(je=l.plan)==null?void 0:je.voyage)==null?void 0:Ue.loadCondition),1)])])]),e.createElementVNode("div",gc,[t[22]||(t[22]=e.createElementVNode("div",{class:"header-block flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Weather chart")],-1)),(pe=l.plan)!=null&&pe.chartUrl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",mc,[e.createElementVNode("img",{src:l.plan.chartUrl},null,8,Ec)]),e.createElementVNode("div",yc,[t[19]||(t[19]=e.createStaticVNode('<div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-dangerous);" data-v-36eb67b3></label><span data-v-36eb67b3>Dangerous</span></div><div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-severe);" data-v-36eb67b3></label><span data-v-36eb67b3>Severe</span></div><div class="legend" data-v-36eb67b3><label style="background-color:var(--idm-heavy);" data-v-36eb67b3></label><span data-v-36eb67b3>Heavy</span></div>',3)),e.createElementVNode("div",Ic,[t[16]||(t[16]=e.createElementVNode("b",{class:"route1"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[1]||(t[1]=A=>{a.speedIndex=0,i.renderEchart()})},e.toDisplayString((Ve=(C=(be=(we=(Oe=l.plan)==null?void 0:Oe.speeds)==null?void 0:we[0])==null?void 0:be.speed)==null?void 0:C.lane)==null?void 0:Ve.name),1)]),((Ge=(Ye=l.plan)==null?void 0:Ye.speeds)==null?void 0:Ge.length)>1?(e.openBlock(),e.createElementBlock("div",pc,[t[17]||(t[17]=e.createElementVNode("b",{class:"route2"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[2]||(t[2]=A=>{a.speedIndex=1,i.renderEchart()})},e.toDisplayString((r=(Ze=(We=(Y=(Le=l.plan)==null?void 0:Le.speeds)==null?void 0:Y[1])==null?void 0:We.speed)==null?void 0:Ze.lane)==null?void 0:r.name),1)])):e.createCommentVNode("",!0),((Ae=($=l.plan)==null?void 0:$.speeds)==null?void 0:Ae.length)>2?(e.openBlock(),e.createElementBlock("div",Ac,[t[18]||(t[18]=e.createElementVNode("b",{class:"route3"},null,-1)),e.createElementVNode("span",{class:"btn",onClick:t[3]||(t[3]=A=>{a.speedIndex=2,i.renderEchart()})},e.toDisplayString((He=(Fe=(ce=(Re=(L=l.plan)==null?void 0:L.speeds)==null?void 0:Re[2])==null?void 0:ce.speed)==null?void 0:Fe.lane)==null?void 0:He.name),1)])):e.createCommentVNode("",!0)])],64)):(e.openBlock(),e.createElementBlock("div",Vc,[e.createElementVNode("span",null,[t[20]||(t[20]=e.createTextVNode("Weather chart in cooking ")),e.createElementVNode("span",{class:"btn",onClick:t[4]||(t[4]=(...A)=>i.handleRefresh&&i.handleRefresh(...A))},"Refresh"),t[21]||(t[21]=e.createTextVNode(" later please"))])]))]),e.createElementVNode("div",Tc,[(ue=(Je=l.plan)==null?void 0:Je.speeds)!=null&&ue.length?(e.openBlock(),e.createElementBlock("table",xc,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[26]||(t[26]=e.createElementVNode("th",{rowspan:"2",colspan:"2"},"Route",-1)),t[27]||(t[27]=e.createElementVNode("th",null,"SPD (kts)",-1)),t[28]||(t[28]=e.createElementVNode("th",{clospan:"2"},"DTG (nm)",-1)),t[29]||(t[29]=e.createElementVNode("th",null,"ETA (LT)",-1)),t[30]||(t[30]=e.createElementVNode("th",{rowspan:"2"},"Stoppage (h)",-1)),t[31]||(t[31]=e.createElementVNode("th",{rowspan:"2"},"Diff (h)",-1)),t[32]||(t[32]=e.createElementVNode("th",{colspan:"2"},"Cons (mt)",-1)),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:($e=(qe=l.weatherPrinciple)==null?void 0:qe.dangerous)==null?void 0:$e.pretty},{default:e.withCtx(()=>t[23]||(t[23]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Dangerous",-1)])),_:1},8,["content"])]),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:(et=(ve=l.weatherPrinciple)==null?void 0:ve.severe)==null?void 0:et.pretty},{default:e.withCtx(()=>t[24]||(t[24]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Severe",-1)])),_:1},8,["content"])]),e.createElementVNode("th",null,[e.createVNode(y,{effect:"light",placement:"top",trigger:"hover",width:300,content:(at=(tt=l.weatherPrinciple)==null?void 0:tt.heavy)==null?void 0:at.pretty},{default:e.withCtx(()=>t[25]||(t[25]=[e.createElementVNode("p",{style:{cursor:"pointer"}},"Heavy",-1)])),_:1},8,["content"])])]),e.createElementVNode("tr",null,[t[33]||(t[33]=e.createElementVNode("th",null,"CP Cons (mt)",-1)),t[34]||(t[34]=e.createElementVNode("th",null,"TTG (h)",-1)),t[35]||(t[35]=e.createElementVNode("th",null,"Avg.Spd / Wx / Cur.Factor (kts)",-1)),t[36]||(t[36]=e.createElementVNode("th",null,"*FO",-1)),t[37]||(t[37]=e.createElementVNode("th",null,"*DO/GO",-1)),e.createElementVNode("th",zc,"*days (with in the next "+e.toDisplayString(i.computeDay(l.plan,0))+" days)",1)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((it=l.plan)==null?void 0:it.speeds,(A,Qe)=>{var _e,Xe,lt,O,Xt,Kt,ut,qt,$t,vt,el,tl,ll,ol,nl,al,il,dl,sl,rl,cl,Nl,Dl,Ml,gl,ml,El,yl,Il,pl,Al,Vl,Tl,xl;return e.openBlock(),e.createElementBlock(e.Fragment,{key:Qe},[e.createElementVNode("tr",null,[e.createElementVNode("td",Sc,e.toDisplayString(Qe+1),1),e.createElementVNode("td",Cc,e.toDisplayString((Xe=(_e=A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),1),e.createElementVNode("td",null,e.toDisplayString(`${((lt=A.speed)==null?void 0:lt.label)??"CP"} ${((O=A.speed)==null?void 0:O.v0)??((Kt=(Xt=A.speed)==null?void 0:Xt.cpCopy)==null?void 0:Kt.speed)}`),1),e.createElementVNode("td",kc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((ut=A.speed)==null?void 0:ut.distance,0)),1),($t=(qt=A.speed)==null?void 0:qt.eca)!=null&&$t.distance?(e.openBlock(),e.createElementBlock("span",fc," ("+e.toDisplayString(i.roundPrecision(A.speed.eca.distance,0))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,[e.createElementVNode("b",null,e.toDisplayString(i.computeLTime((vt=A.speed)==null?void 0:vt.eta,(ll=(tl=(el=l.plan)==null?void 0:el.leg)==null?void 0:tl.destination)==null?void 0:ll.lng,(al=(nl=(ol=l.plan)==null?void 0:ol.leg)==null?void 0:nl.destination)==null?void 0:al.lat)),1),e.createTextVNode(" ["+e.toDisplayString(i.computeUTCTime((il=A.speed)==null?void 0:il.eta))+"] ",1)]),e.createElementVNode("td",jc,e.toDisplayString(i.computeSuspend(A.speed)),1),e.createElementVNode("td",Uc,e.toDisplayString(i.computeTimeDiff(l.plan,Qe)),1),e.createElementVNode("td",bc,e.toDisplayString(i.roundPrecision((dl=A.speed)==null?void 0:dl.totalFoCons,3)),1),e.createElementVNode("td",Oc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((sl=A.speed)==null?void 0:sl.totalDgoCons,3)),1),(cl=(rl=A.speed)==null?void 0:rl.eca)!=null&&cl.totalDgoCons?(e.openBlock(),e.createElementBlock("span",wc," + "+e.toDisplayString(i.roundPrecision(A.speed.eca.totalDgoCons,3))+"*",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",Yc,e.toDisplayString(i.roundPrecision(((Nl=A.speed)==null?void 0:Nl.dangerous)/24,2)),1),e.createElementVNode("td",Qc,e.toDisplayString(i.roundPrecision(((Dl=A.speed)==null?void 0:Dl.severe)/24,2)),1),e.createElementVNode("td",hc,e.toDisplayString(i.roundPrecision(((Ml=A.speed)==null?void 0:Ml.heavy)/24,2)),1)]),e.createElementVNode("tr",null,[e.createElementVNode("td",null,e.toDisplayString((ml=(gl=A.speed)==null?void 0:gl.cpCopy)==null?void 0:ml.fo)+" FO / "+e.toDisplayString((yl=(El=A.speed)==null?void 0:El.cpCopy)==null?void 0:yl.dgo)+" DO",1),e.createElementVNode("td",Bc,[e.createElementVNode("span",null,e.toDisplayString(i.roundPrecision((Il=A.speed)==null?void 0:Il.totalHrs,1)),1),(Al=(pl=A.speed)==null?void 0:pl.eca)!=null&&Al.hours?(e.openBlock(),e.createElementBlock("span",Rc," ("+e.toDisplayString(i.roundPrecision(A.speed.eca.hours,1))+" in ECA)",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Vl=A.speed)==null?void 0:Vl.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((Tl=A.speed)==null?void 0:Tl.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((xl=A.speed)==null?void 0:xl.cFactor,2)),1)])],64)}),128))])])):e.createCommentVNode("",!0),t[38]||(t[38]=e.createElementVNode("div",{class:"tips"},[e.createTextVNode(" * Please note the climatology data was used for days that extend beyond the available forecast."),e.createElementVNode("br"),e.createTextVNode(" * Fuel consumption was calculated only based on CP terms, and does not reflect actual consumption. "),e.createElementVNode("br"),e.createTextVNode(" * DO/GO consumption includes daily consumption and eca consumption. ")],-1))]),e.createElementVNode("div",Fc,[e.createElementVNode("div",Pc,[t[39]||(t[39]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",Gc,"Advisory & Major Waypoint of Route "+e.toDisplayString((ct=(rt=(st=(dt=l.plan.speeds)==null?void 0:dt[a.speedIndex])==null?void 0:st.speed)==null?void 0:rt.lane)==null?void 0:ct.name),1),((Dt=(Nt=l.plan)==null?void 0:Nt.speeds)==null?void 0:Dt.length)>1?(e.openBlock(),e.createElementBlock("div",Lc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Mt=l.plan)==null?void 0:Mt.speeds,(A,Qe)=>{var _e,Xe;return e.openBlock(),e.createElementBlock("div",{key:Qe,class:"route-item",onClick:lt=>{a.speedIndex=Qe,i.renderEchart()}},e.toDisplayString((Xe=(_e=A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),9,Wc)}),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zc,[a.editable?(e.openBlock(),e.createBlock(N,{key:0,modelValue:a.advisory,"onUpdate:modelValue":t[5]||(t[5]=A=>a.advisory=A),class:"editor",height:"120px",onBlur:t[6]||(t[6]=A=>i.handleCommit(A))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",onDblclick:t[7]||(t[7]=(...A)=>i.handleEdit&&i.handleEdit(...A)),innerHTML:a.advisory},null,40,Hc))]),e.createElementVNode("div",Jc,[t[41]||(t[41]=e.createStaticVNode('<div class="major-header" data-v-36eb67b3><div class="cell-item flex" style="flex:1.5;" data-v-36eb67b3>Major waypoint</div><div class="cell-item flex" data-v-36eb67b3>Time</div><div class="cell-item flex" data-v-36eb67b3>Nav</div><div class="cell-item flex" data-v-36eb67b3>Dist</div><div class="cell-item flex" data-v-36eb67b3>SOG/COG</div><div class="cell-item flex" data-v-36eb67b3>Memo</div></div>',1)),e.createElementVNode("div",_c,[(mt=(gt=l.plan)==null?void 0:gt.speeds)!=null&&mt.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.computeMajorPoints((pt=(It=(yt=(Et=l.plan)==null?void 0:Et.speeds)==null?void 0:yt[a.speedIndex])==null?void 0:It.speed)==null?void 0:pt.argv,(St=(zt=(Tt=(Vt=(At=l.plan)==null?void 0:At.speeds)==null?void 0:Vt[a.speedIndex])==null?void 0:Tt.speed)==null?void 0:zt.sample)==null?void 0:St.wps),(A,Qe)=>(e.openBlock(),e.createElementBlock("div",{key:Qe,class:"cell-row"},[e.createElementVNode("div",Xc,[A.isResume?(e.openBlock(),e.createElementBlock("div",Kc,"Resume")):(e.openBlock(),e.createElementBlock("div",uc,[e.createVNode(c,{lat:A.lat,label:""},null,8,["lat"]),t[40]||(t[40]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(E,{lng:A.lng,label:""},null,8,["lng"]),A.pilot?(e.openBlock(),e.createElementBlock("span",qc," [P]")):e.createCommentVNode("",!0)]))]),e.createElementVNode("div",$c,e.toDisplayString(i.computeUTCTime(A.eta)),1),Qe?(e.openBlock(),e.createElementBlock("div",vc,e.toDisplayString(i.computeNav(A)),1)):(e.openBlock(),e.createElementBlock("div",eN)),Qe?(e.openBlock(),e.createElementBlock("div",tN,e.toDisplayString(i.roundPrecision(A.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",lN)),Qe?(e.openBlock(),e.createElementBlock("div",oN,e.toDisplayString(i.roundPrecision(A.avgSpd??A.speed,2))+" / "+e.toDisplayString(i.roundPrecision(A.bearing,0)),1)):(e.openBlock(),e.createElementBlock("div",nN)),Qe?(e.openBlock(),e.createElementBlock("div",aN,e.toDisplayString(i.computeMemo(A)),1)):(e.openBlock(),e.createElementBlock("div",iN))]))),128)):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",dN,[(kt=(Ct=l.plan)==null?void 0:Ct.speeds)!=null&&kt.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",sN,[t[42]||(t[42]=e.createElementVNode("i",{class:"iconfont"},"",-1)),e.createElementVNode("div",rN," Weather Forecast for the Next "+e.toDisplayString(i.computeDay(l.plan,a.speedIndex))+" Days of Route "+e.toDisplayString((Ot=(bt=(Ut=(jt=(ft=l.plan)==null?void 0:ft.speeds)==null?void 0:jt[a.speedIndex])==null?void 0:Ut.speed)==null?void 0:bt.lane)==null?void 0:Ot.name),1),((Yt=(wt=l.plan)==null?void 0:wt.speeds)==null?void 0:Yt.length)>1?(e.openBlock(),e.createElementBlock("div",cN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Qt=l.plan)==null?void 0:Qt.speeds,(A,Qe)=>{var _e,Xe;return e.openBlock(),e.createElementBlock("div",{key:Qe,class:"route-item",onClick:lt=>{a.speedIndex=Qe,i.renderEchart()}},e.toDisplayString((Xe=(_e=A==null?void 0:A.speed)==null?void 0:_e.lane)==null?void 0:Xe.name),9,NN)}),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",DN,[e.createElementVNode("div",MN,null,512)]),e.createElementVNode("div",gN,e.toDisplayString(i.computeModel((Rt=(Bt=(ht=l.plan)==null?void 0:ht.speeds)==null?void 0:Bt[a.speedIndex])==null?void 0:Rt.speed)),1),e.createElementVNode("table",null,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[t[43]||(t[43]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createTextVNode("UTC")],-1)),t[44]||(t[44]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createTextVNode("(lat/lon)")],-1)),e.createElementVNode("th",{colspan:(Pt=(Ft=l.plan)==null?void 0:Ft.voyage)!=null&&Pt.sendRptWithBF?3:2},"Wind",8,mN),t[45]||(t[45]=e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")],-1)),t[46]||(t[46]=e.createElementVNode("th",{colspan:"3"},"Swell",-1)),t[47]||(t[47]=e.createElementVNode("th",{colspan:"3"},"Sig",-1)),t[48]||(t[48]=e.createElementVNode("th",{colspan:"3"},"Current",-1))]),e.createElementVNode("tr",null,[t[49]||(t[49]=e.createElementVNode("th",null,"Dir",-1)),t[50]||(t[50]=e.createElementVNode("th",null,"Speed (kts)",-1)),(Lt=(Gt=l.plan)==null?void 0:Gt.voyage)!=null&&Lt.sendRptWithBF?(e.openBlock(),e.createElementBlock("th",EN,"BF")):e.createCommentVNode("",!0),t[51]||(t[51]=e.createElementVNode("th",null,"Dir",-1)),t[52]||(t[52]=e.createElementVNode("th",null,"Ht (m)",-1)),t[53]||(t[53]=e.createElementVNode("th",null,"Prd (s)",-1)),t[54]||(t[54]=e.createElementVNode("th",null,"Dir",-1)),t[55]||(t[55]=e.createElementVNode("th",null,"Hgt (m)",-1)),t[56]||(t[56]=e.createElementVNode("th",null,"Prd (s)",-1)),t[57]||(t[57]=e.createElementVNode("th",null,"Dir",-1)),t[58]||(t[58]=e.createElementVNode("th",null,"Speed (kts)",-1)),t[59]||(t[59]=e.createElementVNode("th",null,"Factor (kts)",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((_t=(Jt=(Ht=(Zt=(Wt=l.plan)==null?void 0:Wt.speeds)==null?void 0:Zt[a.speedIndex])==null?void 0:Ht.speed)==null?void 0:Jt.sample)==null?void 0:_t.hours,(A,Qe)=>{var _e,Xe,lt,O,Xt,Kt,ut,qt,$t,vt,el,tl,ll,ol,nl,al,il,dl,sl,rl,cl,Nl,Dl,Ml,gl,ml,El,yl,Il,pl,Al,Vl,Tl,xl,Sl,Cl,kl,fl,jl,Ul,bl,Ol,wl,Yl,Ql,hl,Bl,Rl,Fl,Pl,Gl,Ll,Wl;return e.openBlock(),e.createElementBlock("tr",{key:Qe,class:e.normalizeClass(A.isDangerous?"dangerous":A.isSevere?"severe":A.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(A.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",yN,[e.createVNode(c,{lat:A.lat,label:""},null,8,["lat"]),t[60]||(t[60]=e.createElementVNode("span",null,"/",-1)),e.createVNode(E,{lng:A.lng,label:""},null,8,["lng"])])]),e.createElementVNode("td",null,[(Xe=(_e=A.meteo)==null?void 0:_e.wind)!=null&&Xe.kts?(e.openBlock(),e.createElementBlock("span",IN,[e.createTextVNode(e.toDisplayString((O=(lt=A.meteo)==null?void 0:lt.wind)==null?void 0:O.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Kt=(Xt=A.meteo)==null?void 0:Xt.wind)==null?void 0:Kt.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",pN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((qt=(ut=A.meteo)==null?void 0:ut.wind)==null?void 0:qt.kts,1)),1),(vt=($t=l.plan)==null?void 0:$t.voyage)!=null&&vt.sendRptWithBF?(e.openBlock(),e.createElementBlock("td",AN,e.toDisplayString((tl=(el=A.meteo)==null?void 0:el.wind)==null?void 0:tl.scale),1)):e.createCommentVNode("",!0),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((nl=(ol=(ll=A.meteo)==null?void 0:ll.wave)==null?void 0:ol.wd)==null?void 0:nl.height,1)),1),e.createElementVNode("td",null,[(dl=(il=(al=A.meteo)==null?void 0:al.wave)==null?void 0:il.swell)!=null&&dl.height?(e.openBlock(),e.createElementBlock("span",VN,[e.createTextVNode(e.toDisplayString((cl=(rl=(sl=A.meteo)==null?void 0:sl.wave)==null?void 0:rl.swell)==null?void 0:cl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Ml=(Dl=(Nl=A.meteo)==null?void 0:Nl.wave)==null?void 0:Dl.swell)==null?void 0:Ml.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",TN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((El=(ml=(gl=A.meteo)==null?void 0:gl.wave)==null?void 0:ml.swell)==null?void 0:El.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((pl=(Il=(yl=A.meteo)==null?void 0:yl.wave)==null?void 0:Il.swell)==null?void 0:pl.period,1)),1),e.createElementVNode("td",null,[(Tl=(Vl=(Al=A.meteo)==null?void 0:Al.wave)==null?void 0:Vl.sig)!=null&&Tl.height?(e.openBlock(),e.createElementBlock("span",xN,[e.createTextVNode(e.toDisplayString((Cl=(Sl=(xl=A.meteo)==null?void 0:xl.wave)==null?void 0:Sl.sig)==null?void 0:Cl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((jl=(fl=(kl=A.meteo)==null?void 0:kl.wave)==null?void 0:fl.sig)==null?void 0:jl.degree,!1))},"",4)])):(e.openBlock(),e.createElementBlock("span",zN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ol=(bl=(Ul=A.meteo)==null?void 0:Ul.wave)==null?void 0:bl.sig)==null?void 0:Ol.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ql=(Yl=(wl=A.meteo)==null?void 0:wl.wave)==null?void 0:Yl.sig)==null?void 0:Ql.period,1)),1),e.createElementVNode("td",null,[(Bl=(hl=A.meteo)==null?void 0:hl.current)!=null&&Bl.kts?(e.openBlock(),e.createElementBlock("span",SN,[e.createTextVNode(e.toDisplayString((Fl=(Rl=A.meteo)==null?void 0:Rl.current)==null?void 0:Fl.direction),1),e.createElementVNode("i",{class:"iconfont",style:e.normalizeStyle(i.computeDegree((Gl=(Pl=A.meteo)==null?void 0:Pl.current)==null?void 0:Gl.degree,!0))},"",4)])):(e.openBlock(),e.createElementBlock("span",CN,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Wl=(Ll=A.meteo)==null?void 0:Ll.current)==null?void 0:Wl.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(A.cFactor,1)),1)],2)}),128))])])],64)):e.createCommentVNode("",!0),t[61]||(t[61]=e.createElementVNode("div",{class:"tips",style:{"text-align":"justify"}},[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. All the material is an advisory provided so as to assist the Master in making the final route decision. ")],-1))])])])}const td=Be(Jr,[["render",kN],["__scopeId","data-v-36eb67b3"]]),DY="",fN={name:"RouteReport",components:{Lng:On,Lat:wn,Editor:Jl},props:{plan:{type:Object,default:()=>({})},editorDisabled:{type:Boolean,default:()=>!1}},emits:["commit","refresh"],data(){return{editable:!1,advisory:""}},computed:{computeUTCTime(){return function(o,t="MMM-DD/HHmm[Z]"){return`${H(o).utc().format(t)}`}},computeLTime(){return function(o,t){const l=H(o);return l.utcOffset(t),`${l.format("MMM-DD/HHmm")}LT`}},computeUTCOffset(){var o,t,l,s,a;return(a=(s=(l=(t=(o=this.plan)==null?void 0:o.leg)==null?void 0:t.destination)==null?void 0:l.port)==null?void 0:s.timezone)==null?void 0:a.UtcCurrentOffset},computeTimeDiff(){return function(o,t){var l,s,a;if(t===0)return"-";{const i=H((s=(l=o==null?void 0:o.speeds[t])==null?void 0:l.speed)==null?void 0:s.eta).diff(H((a=o==null?void 0:o.speeds[0])==null?void 0:a.speed.eta),"h",!0);return Math.round(i*10)/10}}},computeNav(){return function(o){return o.gcToPrevious?"GC":"RL"}},roundPrecision(){return function(o,t=4){if(typeof o=="number"){const l=Number("1".padEnd(t+1,"0"));return Math.round(o*l)/l}else return"-"}},computeMapChart(){var o;return((o=this.plan)==null?void 0:o.chartUrl)||"//oss.idmwx.com/asset/route-report_example.png"},computeDegree(){return function(o,t){o=o%360;for(let l=0;l<17;l++)if(l*22.5+o+11.25>=360){let s=(16-l)*22.5;return t||(s=s+180),`transform:rotate(${s}deg);margin-left:3px;`}}},computeDay(){return function(o){var a,i,D;const t=(D=(i=(a=o==null?void 0:o.speeds[0])==null?void 0:a.speed)==null?void 0:i.sample)==null?void 0:D.hours,l=t[0],s=t[t.length-1];return H(s.eta).diff(H(l.eta),"day")}}},watch:{plan:{handler(){var o,t;(o=this.plan)!=null&&o.id&&(this.advisory=((t=this.plan)==null?void 0:t.advisory)||"Pls find the following major waypoints for your safe navigation.")},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}}},jN={class:"route-report"},UN={class:"section"},bN={class:"section-body basics"},ON={class:"flex-space section-row"},wN={class:"flex-start"},YN={class:"flex-start"},QN={class:"flex-start"},hN={class:"flex-start flex"},BN={key:0,class:"flex"},RN={key:1,class:"flex-space flex"},FN={class:"time flex"},PN={class:"flex-space section-row"},GN={class:"flex-start"},LN={class:"flex-start"},WN={class:"flex-start"},ZN={class:"flex-start flex"},HN={key:0,class:"flex"},JN={key:1,class:"flex-space"},_N={class:"time flex"},XN={class:"flex-space section-row"},KN={class:"flex-start"},uN={class:"flex-start"},qN={class:"flex-start"},$N={class:"flex-start flex"},vN={class:"section",style:{"border-bottom":"2px dashed var(--fli-border-color-dark)"}},eD={class:"section-body detail"},tD={class:"flex-space",style:{"align-items":"stretch"}},lD={class:"chart"},oD=["src"],nD={key:1,class:"empty flex-center"},aD={class:"route flex",style:{"justify-content":"space-between"}},iD={class:"suggestion"},dD=["innerHTML"],sD={class:"flex-start legends"},rD={key:0,class:"legend"},cD={key:1,class:"legend"},ND={class:"section"},DD={class:"section-body comparison"},MD={class:"container"},gD={key:0},mD={class:"section",style:{"page-break-inside":"avoid"}},ED={class:"section-body sample"},yD={class:"major-waypoints"},ID={class:"container"},pD={class:"body"},AD={class:"cell-item flexM"},VD={class:"flex-center"},TD={class:"cell-item flexL"},xD={key:0,class:"flex-center"},zD={key:1},SD={class:"cell-item flex"},CD={key:0,class:"cell-item flex offset"},kD={key:1,class:"cell-item flex nbsp"},fD={key:2,class:"cell-item flex offset"},jD={key:3,class:"cell-item flex nbsp"},UD={key:4,class:"cell-item flex offset"},bD={key:5,class:"cell-item flex nbsp"},OD={class:"section"},wD={class:"section-body sample"},YD={key:0},QD={class:"flex-center"},hD={key:0,class:"degree-box"},BD={key:1},RD={key:0,class:"degree-box"},FD={key:1},PD={key:0,class:"degree-box"},GD={key:1},LD={key:0,class:"degree-box"},WD={key:1};function ZD(o,t,l,s,a,i){var E,y,N,M,V,I,T,p,k,f,x,z,m,j,Q,B,R,g,U,b,w,h,S,G,F,P,ee,te,le,oe,ne,n,Z,K,u,q,ae,ie,de,Ne,_,re,De,Me,se,ge,me,Ee,ye,Ie,Te,xe,ze,Se,Ce,ke,fe,je,Ue,pe,Oe,we,be;const D=e.resolveComponent("Lat"),d=e.resolveComponent("Lng"),c=e.resolveComponent("Editor");return e.openBlock(),e.createElementBlock("div",jN,[t[28]||(t[28]=e.createElementVNode("div",{class:"brand"},[e.createElementVNode("img",{class:"bgImg",src:"https://img.idmwx.com/asset/fli_bg.jpeg"})],-1)),e.createElementVNode("div",UN,[t[12]||(t[12]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Voyage Basics")],-1)),e.createElementVNode("div",bN,[e.createElementVNode("div",ON,[e.createElementVNode("div",wN,[t[4]||(t[4]=e.createElementVNode("label",{class:"flex-end"},"Company Name",-1)),e.createElementVNode("div",YN,e.toDisplayString((N=(y=(E=l.plan)==null?void 0:E.voyage)==null?void 0:y.company)==null?void 0:N.name),1)]),e.createElementVNode("div",QN,[t[6]||(t[6]=e.createElementVNode("label",{class:"flex-end"},"Departure Port",-1)),e.createElementVNode("div",hN,[(I=(V=(M=l.plan)==null?void 0:M.leg)==null?void 0:V.departure)!=null&&I.name?(e.openBlock(),e.createElementBlock("div",BN,e.toDisplayString((p=(T=l.plan)==null?void 0:T.leg)==null?void 0:p.departure.name),1)):(e.openBlock(),e.createElementBlock("div",RN,[e.createVNode(D,{lat:(x=(f=(k=l.plan)==null?void 0:k.leg)==null?void 0:f.departure)==null?void 0:x.lat,label:""},null,8,["lat"]),t[5]||(t[5]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:(j=(m=(z=l.plan)==null?void 0:z.leg)==null?void 0:m.departure)==null?void 0:j.lng,label:""},null,8,["lng"])])),e.createElementVNode("div",FN,e.toDisplayString(i.computeUTCTime(((R=(B=(Q=l.plan)==null?void 0:Q.leg)==null?void 0:B.departure)==null?void 0:R.atd)||((b=(U=(g=l.plan)==null?void 0:g.leg)==null?void 0:U.departure)==null?void 0:b.etd),"MMMM-DD, HHmm[Z]")),1)])])]),e.createElementVNode("div",PN,[e.createElementVNode("div",GN,[t[7]||(t[7]=e.createElementVNode("label",{class:"flex-end"},"Vessel Name",-1)),e.createElementVNode("div",LN,e.toDisplayString((S=(h=(w=l.plan)==null?void 0:w.voyage)==null?void 0:h.vessel)==null?void 0:S.name),1)]),e.createElementVNode("div",WN,[t[9]||(t[9]=e.createElementVNode("label",{class:"flex-end"},"Arrival Port",-1)),e.createElementVNode("div",ZN,[(P=(F=(G=l.plan)==null?void 0:G.leg)==null?void 0:F.destination)!=null&&P.name?(e.openBlock(),e.createElementBlock("div",HN,e.toDisplayString((te=(ee=l.plan)==null?void 0:ee.leg)==null?void 0:te.destination.name),1)):(e.openBlock(),e.createElementBlock("div",JN,[e.createVNode(D,{lat:(ne=(oe=(le=l.plan)==null?void 0:le.leg)==null?void 0:oe.destination)==null?void 0:ne.lat,label:""},null,8,["lat"]),t[8]||(t[8]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:(K=(Z=(n=l.plan)==null?void 0:n.leg)==null?void 0:Z.destination)==null?void 0:K.lng,label:""},null,8,["lng"])])),e.createElementVNode("div",_N,e.toDisplayString(i.computeUTCTime(((ae=(q=(u=l.plan)==null?void 0:u.speeds)==null?void 0:q[0])==null?void 0:ae.speed.ata)||((de=(ie=l.plan)==null?void 0:ie.speeds)==null?void 0:de[0].speed.eta),"MMMM-DD, HHmm[Z]")),1)])])]),e.createElementVNode("div",XN,[e.createElementVNode("div",KN,[t[10]||(t[10]=e.createElementVNode("label",{class:"flex-end"},"Report Created",-1)),e.createElementVNode("div",uN,e.toDisplayString(i.computeUTCTime((Ne=l.plan)==null?void 0:Ne.createdAt,"MMMM-DD, HHmm[Z]")),1)]),e.createElementVNode("div",qN,[t[11]||(t[11]=e.createElementVNode("label",{class:"flex-end"},"Voyage Condition",-1)),e.createElementVNode("div",$N,[e.createElementVNode("div",null,e.toDisplayString((re=(_=l.plan)==null?void 0:_.voyage)==null?void 0:re.loadCondition),1)])])])])]),e.createElementVNode("div",vN,[t[19]||(t[19]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Details")],-1)),e.createElementVNode("div",eD,[e.createElementVNode("div",tD,[e.createElementVNode("div",lD,[(De=l.plan)!=null&&De.chartUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:(Me=l.plan)==null?void 0:Me.chartUrl},null,8,oD)):(e.openBlock(),e.createElementBlock("div",nD,[t[13]||(t[13]=e.createTextVNode("waiting for weather map, ")),e.createElementVNode("b",{onClick:t[0]||(t[0]=(...C)=>i.handleRefresh&&i.handleRefresh(...C))},"Refresh"),t[14]||(t[14]=e.createTextVNode("later please"))]))]),e.createElementVNode("div",aD,[e.createElementVNode("div",null,[t[15]||(t[15]=e.createElementVNode("div",{class:"title"},"ROUTE REMARKS",-1)),e.createElementVNode("div",iD,[a.editable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:a.advisory,"onUpdate:modelValue":t[1]||(t[1]=C=>a.advisory=C),class:"editor",height:"120px",onBlur:t[2]||(t[2]=C=>i.handleCommit(C))},null,8,["modelValue"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"txt",onDblclick:t[3]||(t[3]=(...C)=>i.handleEdit&&i.handleEdit(...C)),innerHTML:a.advisory},null,40,dD))])]),e.createElementVNode("div",sD,[t[18]||(t[18]=e.createStaticVNode('<div class="legend" data-v-cc81892d><label style="background-color:var(--idm-severe);" data-v-cc81892d></label><span data-v-cc81892d>Dangerous</span></div><div class="legend" data-v-cc81892d><label style="background-color:var(--idm-heavy);" data-v-cc81892d></label><span data-v-cc81892d>Severe</span></div><div class="legend" data-v-cc81892d><b class="route1" data-v-cc81892d></b><span data-v-cc81892d>Route 1</span></div>',3)),((ge=(se=l.plan)==null?void 0:se.speeds)==null?void 0:ge.length)>1?(e.openBlock(),e.createElementBlock("div",rD,t[16]||(t[16]=[e.createElementVNode("b",{class:"route2"},null,-1),e.createElementVNode("span",null,"Route 2",-1)]))):e.createCommentVNode("",!0),((Ee=(me=l.plan)==null?void 0:me.speeds)==null?void 0:Ee.length)>2?(e.openBlock(),e.createElementBlock("div",cD,t[17]||(t[17]=[e.createElementVNode("b",{class:"route3"},null,-1),e.createElementVNode("span",null,"Route 3",-1)]))):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("div",ND,[t[21]||(t[21]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Summary")],-1)),e.createElementVNode("div",DD,[e.createElementVNode("div",MD,[(Ie=(ye=l.plan)==null?void 0:ye.speeds)!=null&&Ie.length?(e.openBlock(),e.createElementBlock("table",gD,[t[20]||(t[20]=e.createElementVNode("thead",null,[e.createElementVNode("tr"),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Route"),e.createElementVNode("th",null,"TTL Dist (nm)"),e.createElementVNode("th",null,"SPD (kts)"),e.createElementVNode("th",null,"CP Cons (mt)"),e.createElementVNode("th",null,"ETA (UTC)"),e.createElementVNode("th",null,"Avg.Spd / Wx / Cur.Factor (kts)"),e.createElementVNode("th",null,"TTL Cons (mt)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((Te=l.plan)==null?void 0:Te.speeds,(C,Ve)=>{var Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je;return e.openBlock(),e.createElementBlock("tr",{key:Ve},[e.createElementVNode("td",null,"Route "+e.toDisplayString(Ve+1),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ye=C.speed)==null?void 0:Ye.distance,0)),1),e.createElementVNode("td",null,e.toDisplayString(`${((Ge=C.speed)==null?void 0:Ge.label)??"CP"} ${((Le=C.speed)==null?void 0:Le.v0)??((We=(Y=C.speed)==null?void 0:Y.cpCopy)==null?void 0:We.speed)}`),1),e.createElementVNode("td",null,e.toDisplayString((r=(Ze=C.speed)==null?void 0:Ze.cpCopy)==null?void 0:r.fo)+" FO / "+e.toDisplayString((Ae=($=C.speed)==null?void 0:$.cpCopy)==null?void 0:Ae.dgo)+" DO",1),e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime((L=C.speed)==null?void 0:L.eta)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Re=C.speed)==null?void 0:Re.avgSpeed,2))+" / "+e.toDisplayString(i.roundPrecision((ce=C.speed)==null?void 0:ce.wxFactor,2))+" / "+e.toDisplayString(i.roundPrecision((Fe=C.speed)==null?void 0:Fe.cFactor,2)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((He=C.speed)==null?void 0:He.totalFoCons,3))+" FO /"+e.toDisplayString(i.roundPrecision((Je=C.speed)==null?void 0:Je.totalDgoCons,3))+" DO",1)])}),128))])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",mD,[t[24]||(t[24]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Major Waypoint")],-1)),e.createElementVNode("div",ED,[e.createElementVNode("div",yD,[e.createElementVNode("div",ID,[t[23]||(t[23]=e.createStaticVNode('<div class="header" data-v-cc81892d><div class="cell-item flexM" data-v-cc81892d>Major waypoint</div><div class="cell-item flexL" data-v-cc81892d>Name</div><div class="cell-item flex" data-v-cc81892d>Time</div><div class="cell-item flex" data-v-cc81892d>Nav</div><div class="cell-item flex" data-v-cc81892d>Dist</div><div class="cell-item flex" data-v-cc81892d>SOG</div></div>',1)),e.createElementVNode("div",pD,[(ze=(xe=l.plan)==null?void 0:xe.speeds)!=null&&ze.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList((fe=(ke=(Ce=(Se=l.plan)==null?void 0:Se.speeds[0])==null?void 0:Ce.speed)==null?void 0:ke.sample)==null?void 0:fe.wps,(C,Ve)=>(e.openBlock(),e.createElementBlock("div",{key:Ve,class:"cell-row"},[e.createElementVNode("div",AD,[e.createElementVNode("div",VD,[e.createVNode(D,{lat:C.lat,label:""},null,8,["lat"]),t[22]||(t[22]=e.createElementVNode("span",{style:{"margin-right":"3px"}},",",-1)),e.createVNode(d,{lng:C.lng,label:""},null,8,["lng"])])]),e.createElementVNode("div",TD,[C.name?(e.openBlock(),e.createElementBlock("span",xD,e.toDisplayString(C.name),1)):(e.openBlock(),e.createElementBlock("span",zD,"-"))]),e.createElementVNode("div",SD,e.toDisplayString(i.computeUTCTime(C.eta)),1),Ve?(e.openBlock(),e.createElementBlock("div",CD,e.toDisplayString(i.computeNav(C)),1)):(e.openBlock(),e.createElementBlock("div",kD)),Ve?(e.openBlock(),e.createElementBlock("div",fD,e.toDisplayString(i.roundPrecision(C.distanceFromStart,1)),1)):(e.openBlock(),e.createElementBlock("div",jD)),Ve?(e.openBlock(),e.createElementBlock("div",UD,e.toDisplayString(i.roundPrecision(C.avgSpd??C.speed,1)),1)):(e.openBlock(),e.createElementBlock("div",bD))]))),128)):e.createCommentVNode("",!0)])])])])]),e.createElementVNode("div",OD,[t[27]||(t[27]=e.createElementVNode("div",{class:"section-header flex-start"},[e.createElementVNode("i",{class:"iconfont"},""),e.createElementVNode("div",{class:"title"},"Route Forecast")],-1)),e.createElementVNode("div",wD,[(Ue=(je=l.plan)==null?void 0:je.speeds)!=null&&Ue.length?(e.openBlock(),e.createElementBlock("table",YD,[t[26]||(t[26]=e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Date Time "),e.createElementVNode("br"),e.createTextVNode("(UTC)")]),e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Position "),e.createElementVNode("br"),e.createTextVNode("(lat/lon)")]),e.createElementVNode("th",{colspan:"2"},"Wind"),e.createElementVNode("th",{rowspan:"2"},[e.createTextVNode("Sea HT "),e.createElementVNode("br"),e.createTextVNode("(m)")]),e.createElementVNode("th",{colspan:"3"},"Swell"),e.createElementVNode("th",{colspan:"3"},"Sig"),e.createElementVNode("th",{colspan:"3"},"Current")]),e.createElementVNode("tr",null,[e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Speed (kts)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Ht (m)"),e.createElementVNode("th",null,"Prd (s)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Hgt (m)"),e.createElementVNode("th",null,"Prd (s)"),e.createElementVNode("th",null,"Dir"),e.createElementVNode("th",null,"Speed (kts)"),e.createElementVNode("th",null,"Factor (kts)")])],-1)),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((be=(we=(Oe=(pe=l.plan)==null?void 0:pe.speeds[0])==null?void 0:Oe.speed)==null?void 0:we.sample)==null?void 0:be.hours,(C,Ve)=>{var Ye,Ge,Le,Y,We,Ze,r,$,Ae,L,Re,ce,Fe,He,Je,ue,qe,$e,ve,et,tt,at,it,dt,st,rt,ct,Nt,Dt,Mt,gt,mt,Et,yt,It,pt,At,Vt,Tt;return e.openBlock(),e.createElementBlock("tr",{key:Ve,class:e.normalizeClass(C.isDangerous?"dangerous":C.isSevere?"severe":C.isHeavy?"heavy":"")},[e.createElementVNode("td",null,e.toDisplayString(i.computeUTCTime(C.eta)),1),e.createElementVNode("td",null,[e.createElementVNode("div",QD,[e.createVNode(D,{lat:C.lat,label:""},null,8,["lat"]),t[25]||(t[25]=e.createElementVNode("span",null,"/",-1)),e.createVNode(d,{lng:C.lng,label:""},null,8,["lng"])])]),e.createElementVNode("td",null,[(Ge=(Ye=C.meteo)==null?void 0:Ye.wind)!=null&&Ge.kts?(e.openBlock(),e.createElementBlock("span",hD,e.toDisplayString((Y=(Le=C.meteo)==null?void 0:Le.wind)==null?void 0:Y.direction),1)):(e.openBlock(),e.createElementBlock("span",BD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ze=(We=C.meteo)==null?void 0:We.wind)==null?void 0:Ze.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Ae=($=(r=C.meteo)==null?void 0:r.wave)==null?void 0:$.wd)==null?void 0:Ae.height,1)),1),e.createElementVNode("td",null,[(ce=(Re=(L=C.meteo)==null?void 0:L.wave)==null?void 0:Re.swell)!=null&&ce.height?(e.openBlock(),e.createElementBlock("span",RD,e.toDisplayString((Je=(He=(Fe=C.meteo)==null?void 0:Fe.wave)==null?void 0:He.swell)==null?void 0:Je.direction),1)):(e.openBlock(),e.createElementBlock("span",FD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(($e=(qe=(ue=C.meteo)==null?void 0:ue.wave)==null?void 0:qe.swell)==null?void 0:$e.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((tt=(et=(ve=C.meteo)==null?void 0:ve.wave)==null?void 0:et.swell)==null?void 0:tt.period,1)),1),e.createElementVNode("td",null,[(dt=(it=(at=C.meteo)==null?void 0:at.wave)==null?void 0:it.sig)!=null&&dt.height?(e.openBlock(),e.createElementBlock("span",PD,e.toDisplayString((ct=(rt=(st=C.meteo)==null?void 0:st.wave)==null?void 0:rt.sig)==null?void 0:ct.direction),1)):(e.openBlock(),e.createElementBlock("span",GD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Mt=(Dt=(Nt=C.meteo)==null?void 0:Nt.wave)==null?void 0:Dt.sig)==null?void 0:Mt.height,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Et=(mt=(gt=C.meteo)==null?void 0:gt.wave)==null?void 0:mt.sig)==null?void 0:Et.period,1)),1),e.createElementVNode("td",null,[(It=(yt=C.meteo)==null?void 0:yt.current)!=null&&It.kts?(e.openBlock(),e.createElementBlock("span",LD,e.toDisplayString((At=(pt=C.meteo)==null?void 0:pt.current)==null?void 0:At.direction),1)):(e.openBlock(),e.createElementBlock("span",WD,"-"))]),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision((Tt=(Vt=C.meteo)==null?void 0:Vt.current)==null?void 0:Tt.kts,1)),1),e.createElementVNode("td",null,e.toDisplayString(i.roundPrecision(C.cFactor,1)),1)],2)}),128))])])):e.createCommentVNode("",!0)])]),t[29]||(t[29]=e.createElementVNode("div",{class:"section"},[e.createElementVNode("div",{class:"section-body footer"},[e.createElementVNode("div",null,[e.createTextVNode("Fleet Insight Limited "),e.createElementVNode("a",{href:"mailto:ops@fltins.com"},"ops@fltins.com")]),e.createElementVNode("div",{style:{"font-size":"11px","margin-top":"10px"}}," The waypoints and route map provided are intended for informational purposes only and should not be relied upon for actual navigation. Fleet Insight Limited assumes no liability for any direct/potential damage to vessels or cargo that may occur as a result of using this voyage plan for exact navigation. ")])],-1))])}const id=Be(fN,[["render",ZD],["__scopeId","data-v-cc81892d"]]),HD={install(o){o.component("RouteReport",td),o.component("FliPlanReport",id),o.component("OrmPlanReport",td)}},JD={install(o){o.component("IdmEditor",Jl)}},_D={install(o){o.component("IdmLat",wn)}},XD={install(o){o.component("IdmLng",On)}},KD={name:"PiLogo",props:{fill:{type:String,default:"#000000"}}},uD={class:"logo"},qD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1280.000000 1280.000000"},$D=["fill"];function vD(o,t,l,s,a,i){return e.openBlock(),e.createElementBlock("i",uD,[(e.openBlock(),e.createElementBlock("svg",qD,[e.createElementVNode("g",{transform:"translate(0.000000,1280.000000) scale(0.100000,-0.100000)",fill:l.fill,"fill-opacity":.6,stroke:"none"},t[0]||(t[0]=[e.createElementVNode("path",{d:`M4225 11533 c-100 -6 -311 -23 -335 -27 -14 -3 -59 -10 -100 -16
|
|
2
2
|
-408 -60 -813 -229 -1110 -465 -98 -77 -307 -287 -393 -395 -37 -47 -74 -93
|
|
3
3
|
-82 -102 -7 -9 -22 -29 -32 -45 -9 -15 -20 -30 -23 -33 -16 -13 -139 -202
|
|
4
4
|
-225 -345 -94 -157 -256 -467 -330 -635 -21 -47 -48 -108 -60 -136 -71 -158
|