ocearo-ui 2.1.2 → 2.1.4

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.
Files changed (99) hide show
  1. package/404.html +1 -1
  2. package/CHANGELOG.md +364 -0
  3. package/README.fr.md +28 -31
  4. package/README.md +28 -31
  5. package/__next.__PAGE__.txt +3 -3
  6. package/__next._full.txt +3 -3
  7. package/__next._tree.txt +2 -2
  8. package/_next/static/chunks/01ij-cuy61l35.js +1 -0
  9. package/_next/static/chunks/047e3x_ahxnrl.js +1 -0
  10. package/_next/static/chunks/0ath9h2eo-m4-.js +1 -0
  11. package/_next/static/chunks/0bxzs0khjn1uj.js +1 -0
  12. package/_next/static/chunks/0ejjon45nq_-h.js +9 -0
  13. package/_next/static/chunks/{1quvj-861o57h.js → 0kdc_niwgmx_8.js} +1 -1
  14. package/_next/static/chunks/{1bvrvkcwf3ge-.js → 0ngl63fz0a-bo.js} +1 -1
  15. package/_next/static/chunks/0ucob1nu_x8bl.js +1 -0
  16. package/_next/static/chunks/0wi5jop1ihbm6.js +2 -0
  17. package/_next/static/chunks/18e6nw0w7akkb.js +180 -0
  18. package/_next/static/chunks/18vlmqe7txbmt.js +1 -0
  19. package/_next/static/chunks/{3utjjgdhnlx86.js → 192c42s2wc7qe.js} +1 -1
  20. package/_next/static/chunks/1_twx50ejqan5.js +1 -0
  21. package/_next/static/chunks/1na56snuhu-pc.js +346 -0
  22. package/_next/static/chunks/1vchkqgn-xw-o.js +1 -0
  23. package/_next/static/chunks/20p1hr--2grl8.js +9 -0
  24. package/_next/static/chunks/2393lwi8kee3m.js +48 -0
  25. package/_next/static/chunks/25v2cwta2fy-7.js +393 -0
  26. package/_next/static/chunks/28wfa6j-9g_qc.js +1 -0
  27. package/_next/static/chunks/290k3k__vbum2.js +121 -0
  28. package/_next/static/chunks/2cecf_xnd_9em.js +1 -0
  29. package/_next/static/chunks/2die6btm3_mhq.js +1 -0
  30. package/_next/static/chunks/2hm43avzk8_jb.js +503 -0
  31. package/_next/static/chunks/2ijx7rln4jshb.css +3 -0
  32. package/_next/static/chunks/2q_bl16zedyyo.js +503 -0
  33. package/_next/static/chunks/2xntuu6mzh41s.js +1 -0
  34. package/_next/static/chunks/30p1dpgmonstj.js +1 -0
  35. package/_next/static/chunks/31p7nz0hfuym7.js +1 -0
  36. package/_next/static/chunks/{1e-w_-usen7fy.js → 34nhy77liurum.js} +2 -2
  37. package/_next/static/chunks/37g-wmrgbgd6h.js +739 -0
  38. package/_next/static/chunks/{18_i6mf6hb_c7.js → 395ffa6t18601.js} +1 -1
  39. package/_next/static/chunks/3bai186_bv3i_.js +1 -0
  40. package/_next/static/chunks/3h_m2s30sr9mt.js +430 -0
  41. package/_next/static/chunks/3j453-2u58qbv.js +1 -0
  42. package/_next/static/chunks/3k-r-4veivdjr.js +1 -0
  43. package/_next/static/chunks/3yz0mxxv4vrfg.js +1 -0
  44. package/_not-found/__next._full.txt +2 -2
  45. package/_not-found/__next._not-found.__PAGE__.txt +2 -2
  46. package/_not-found/__next._tree.txt +2 -2
  47. package/_not-found.html +1 -1
  48. package/_not-found.txt +2 -2
  49. package/boats/boats.json +11 -19
  50. package/boats/windsurf/assets/license.txt +6 -8
  51. package/boats/windsurf/assets/rider.glb +0 -0
  52. package/boats/wingfoil/assets/license.txt +9 -0
  53. package/boats/wingfoil/assets/rider.glb +0 -0
  54. package/guide/bathymetry.jpg +0 -0
  55. package/guide/weather.jpg +0 -0
  56. package/index.html +1 -1
  57. package/index.txt +3 -3
  58. package/package.json +27 -5
  59. package/settings/__next._full.txt +3 -3
  60. package/settings/__next._tree.txt +2 -2
  61. package/settings/__next.settings.__PAGE__.txt +3 -3
  62. package/settings.html +1 -1
  63. package/settings.txt +3 -3
  64. package/_next/static/chunks/0-19-ljntm5ig.js +0 -1
  65. package/_next/static/chunks/0-g-ujyrfgutp.js +0 -2
  66. package/_next/static/chunks/0-jqvc-r0kh0c.js +0 -1
  67. package/_next/static/chunks/05do10p9ldt1p.js +0 -409
  68. package/_next/static/chunks/0c91q-13wh8hk.js +0 -1
  69. package/_next/static/chunks/0fv1wwxeyagln.js +0 -446
  70. package/_next/static/chunks/0jucaltuccn03.js +0 -1
  71. package/_next/static/chunks/0m7wbuocx-b4_.js +0 -9
  72. package/_next/static/chunks/0o7hu-sypv2u9.js +0 -1
  73. package/_next/static/chunks/0ujzg6ofy2r73.js +0 -1
  74. package/_next/static/chunks/162bfkgcudvew.js +0 -9
  75. package/_next/static/chunks/1bo0ke8gjc1c2.js +0 -1
  76. package/_next/static/chunks/1do-2zwq3ws0f.js +0 -346
  77. package/_next/static/chunks/1ho2ekxa9io1_.js +0 -1
  78. package/_next/static/chunks/1m3-nchdgcxy1.css +0 -3
  79. package/_next/static/chunks/271ys-u920uqd.js +0 -564
  80. package/_next/static/chunks/2_iau6x7s0vil.js +0 -1131
  81. package/_next/static/chunks/2ab6q6u6uo_bf.js +0 -1
  82. package/_next/static/chunks/2pt-apz8_pa4j.js +0 -1
  83. package/_next/static/chunks/2rnpgrmuyhpkd.js +0 -119
  84. package/_next/static/chunks/2w71oj1brox5z.js +0 -1
  85. package/_next/static/chunks/3e5jmzthktu9w.js +0 -1
  86. package/_next/static/chunks/3r8nellt-dsed.js +0 -1
  87. package/_next/static/chunks/3wwn1rti8oc_r.js +0 -1
  88. package/_next/static/chunks/41odv061mfm6t.js +0 -1
  89. package/boats/optimist/Scene.jsx +0 -28
  90. package/boats/optimist/assets/license.txt +0 -11
  91. package/boats/optimist/assets/scene-transformed.glb +0 -0
  92. package/boats/sailboat/Scene.jsx +0 -21
  93. package/boats/sailboat/assets/license.txt +0 -10
  94. package/boats/sailboat/assets/scene-transformed.glb +0 -0
  95. package/boats/windsurf/Scene.jsx +0 -22
  96. package/boats/windsurf/assets/scene-transformed.glb +0 -0
  97. /package/_next/static/{m52l9mE01yTljNwbWjYQ7 → 0nycI4RUzRHiehQwdbDCp}/_buildManifest.js +0 -0
  98. /package/_next/static/{m52l9mE01yTljNwbWjYQ7 → 0nycI4RUzRHiehQwdbDCp}/_clientMiddlewareManifest.js +0 -0
  99. /package/_next/static/{m52l9mE01yTljNwbWjYQ7 → 0nycI4RUzRHiehQwdbDCp}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44188,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.i(85269);var a=e.i(22831),l=e.i(49721),i=e.i(68757),n=e.i(83646),d=e.i(83402),o=e.i(5941);let r=[0,.5,1].map(e=>{let{r:t,g:s,b:a}=(0,o.tensionToColor)(e);return`rgb(${Math.round(255*t)}, ${Math.round(255*s)}, ${Math.round(255*a)})`}),c=({kind:e,colors:s})=>{let[a,l,i]=s;return"chevrons"===e?(0,t.jsxs)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"0",y:"2",width:"28",height:"10",rx:"2",fill:a,opacity:"0.35"}),[4,13,22].map(e=>(0,t.jsx)("path",{d:`M${e} 4 l4 3 l-4 3`,stroke:a,strokeWidth:"2",fill:"none"},e))]}):"bands"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:[a,l,i].filter(Boolean).map((e,s,a)=>(0,t.jsx)("rect",{x:28/a.length*s,y:"4",width:28/a.length,height:"6",fill:e},e))}):"dashed"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("line",{x1:"1",y1:"7",x2:"27",y2:"7",stroke:a,strokeWidth:"2",strokeDasharray:"4 3"})}):"hull"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2 7 Q8 1 22 2 L26 7 L22 12 Q8 13 2 7 Z",fill:a,stroke:l,strokeWidth:"1"})}):"arrow"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 7 H20 M15 2 L21 7 L15 12",stroke:a,strokeWidth:"2.5",fill:"none"})}):null},x=()=>{let{t:e}=(0,a.useTranslation)(),{scene:t,accent:s}=(0,n.default)();return[{kind:"chevrons",colors:[t.route],label:e("legend.route")},{kind:"bands",colors:[t.wakeGood,t.wakeFair,t.wakeBad],label:e("legend.wake")},{kind:"bands",colors:[t.laylinePort,t.laylineStarboard],label:e("legend.laylines")},{kind:"dashed",colors:[t.compass],label:e("legend.isochrones")},{kind:"hull",colors:[t.ghost,t.ghost],label:e("legend.ghost")},{kind:"hull",colors:[t.vessel,t.vessel],label:e("legend.vessel")},{kind:"hull",colors:[t.vesselDanger,t.vesselDanger],label:e("legend.danger")},{kind:"hull",colors:[t.vesselYields,t.vesselYields],label:e("legend.yields")},{kind:"hull",colors:[t.vesselClose,t.vesselClose],label:e("legend.close")},{kind:"dashed",colors:[t.vesselDanger],label:e("legend.cpa")},{kind:"hull",colors:[t.giveWay,t.giveWay],label:e("legend.giveWay")},{kind:"dashed",colors:[t.target],label:e("legend.advice")},{kind:"bands",colors:[s],label:e("legend.trim")},{kind:"bands",colors:r,label:e("legend.loads")}]},h=({className:e="gap-1 text-caption"})=>{let s=x();return(0,t.jsx)("ul",{className:`flex flex-col text-hud-main leading-tight ${e}`,children:s.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"shrink-0 w-7 flex justify-center",children:(0,t.jsx)(c,{kind:e.kind,colors:e.colors})}),(0,t.jsx)("span",{children:e.label})]},e.label))})};e.s(["LegendList",0,h,"default",0,()=>{let{t:e}=(0,a.useTranslation)(),[n,o]=(0,s.useState)(()=>!0===d.default.get("sceneLegendOpen")),r=()=>{d.default.set("sceneLegendOpen",!n),o(!n)};return n?(0,t.jsxs)("div",{className:"relative z-40 px-3 py-2 max-w-[19rem] max-h-[45vh] overflow-y-auto select-none rounded-2xl bg-hud-bg/90 backdrop-blur shadow-soft",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("span",{className:"text-caption font-semibold uppercase tracking-widest text-hud-muted",children:e("legend.title")}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":e("common.close"),className:"text-hud-muted hover:text-hud-main px-1",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faXmark})})]}),(0,t.jsx)(h,{})]}):(0,t.jsxs)("button",{type:"button",onClick:r,className:"hud-halo flex items-center gap-2 px-2 py-1 text-caption font-semibold uppercase tracking-widest text-hud-muted hover:text-hud-main",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faCircleInfo}),e("legend.title")]})},"useLegendRows",0,x])},5941,e=>{"use strict";let t=[1,.8,.6];function s(e){return t[Math.min(Math.max(e,0),2)]}function a(e,t){return Math.max(.05,Math.min(1,1-.6*e-.3*t))}function l(e,t){return Math.PI/6*Math.max(0,1-1.9438444924574*t/30)*(1-e)}function i(e,t,s){let a=Math.min(1,1.9438444924574*(e.tws||0)/30),l=t.tension||.5;switch(s){case"mainSheet":return Math.min(1,.5*a+.3*l+.3*t.mainCar);case"jibSheet":return Math.min(1,.5*a+.3*l+.3*t.jibCar);case"vang":return Math.min(1,.6*a+.4*l);case"cunningham":return Math.min(1,.4*a+.6*l);case"backstay":return Math.min(1,Math.max(0,1-Math.abs(Math.atan2(Math.sin(e.awa||0),Math.cos(e.awa||0)))/Math.PI)*a*.9+.3*l);default:return l}}function n(e){let t=Math.max(0,Math.min(1,e));if(t<=.5){let e=2*t;return{r:e,g:1-.3*e,b:0}}return{r:1,g:.7*(1-(t-.5)*2),b:0}}e.s(["getReefHeightFactor",0,s,"tensionToColor",0,n,"updateSailTrim",0,function({tws:e=0,twa:t=0,awa:d=0,mainCar:o=.5,jibCar:r=.5,tension:c=.5}){let x,h=(x=1.9438444924574*e)>25?2:+(x>18),u=s(h),m=a(o,c),g=a(r,c),p=l(o,e),b=l(r,e),f={tws:e,twa:t,awa:d},y={mainCar:o,jibCar:r,tension:c},j={mainSheet:i(f,y,"mainSheet"),jibSheet:i(f,y,"jibSheet"),vang:i(f,y,"vang"),cunningham:i(f,y,"cunningham"),backstay:i(f,y,"backstay")},v={mainSheet:n(j.mainSheet),jibSheet:n(j.jibSheet),vang:n(j.vang),cunningham:n(j.cunningham),backstay:n(j.backstay)};return{reefLevel:h,reefHeightFactor:u,mainCamber:m,jibCamber:g,mainTwist:p,jibTwist:b,tensions:j,tensionColors:v}}])},70546,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.i(85269);var a=e.i(22831),l=e.i(49721),i=e.i(68757);let n=[{id:"start",steps:["connect","demo","views","phone","settings"]},{id:"view",image:"hero.jpg",spots:[{id:"toolbar",x:13.5,y:3},{id:"speed",x:6.5,y:10},{id:"values",x:6,y:23},{id:"legend",x:6,y:33},{id:"sky",x:90,y:3},{id:"sails",x:49,y:33},{id:"ais",x:79,y:29.5},{id:"compass",x:60,y:66},{id:"wake",x:50,y:85},{id:"depth",x:13.5,y:84},{id:"tide",x:82,y:83},{id:"bottom",x:12.8,y:96},{id:"readings",x:94,y:97},{id:"shortcuts",x:50,y:96}]},{id:"route",image:"polars.jpg",spots:[{id:"toggles",x:15,y:3},{id:"waypoint",x:9,y:35},{id:"route",x:40.6,y:33},{id:"isochrones",x:58,y:32},{id:"laylines",x:19,y:48},{id:"wake",x:43,y:87}]},{id:"traffic",image:"traffic.jpg",spots:[{id:"toggle",x:22,y:3.5},{id:"banner",x:50,y:9},{id:"yields",x:34,y:26},{id:"tags",x:57.5,y:21},{id:"danger",x:45,y:45.5},{id:"advice",x:33,y:87}]},{id:"anchor",image:"anchor.jpg",spots:[{id:"button",x:5,y:3.5},{id:"position",x:11,y:8},{id:"values",x:3.5,y:37},{id:"alarm",x:91,y:64},{id:"swing",x:37.5,y:60.5},{id:"track",x:47.5,y:57},{id:"anchorPoint",x:61,y:59}]},{id:"parking",image:"parking.jpg",spots:[{id:"button",x:7.8,y:3.5},{id:"berth",x:50,y:31},{id:"path",x:49,y:41},{id:"wind",x:42,y:64},{id:"depth",x:6,y:81},{id:"guidance",x:40,y:84},{id:"types",x:66,y:90}]},{id:"bathymetry",image:"bathymetry.jpg",spots:[{id:"button",x:11.4,y:3},{id:"coast",x:69,y:7},{id:"soundings",x:36,y:22.5},{id:"seabed",x:19,y:67},{id:"keel",x:51.5,y:86}]},{id:"weather",image:"weather.jpg",spots:[{id:"button",x:11.4,y:3},{id:"slider",x:51,y:6.7},{id:"map",x:39,y:28},{id:"wind",x:75,y:44}]},{id:"mob",image:"mob.jpg",spots:[{id:"button",x:12.75,y:96},{id:"alert",x:66,y:6},{id:"marker",x:75,y:59},{id:"drift",x:68,y:63.5},{id:"return",x:61,y:55.5}]},{id:"dashboard",image:"dashboard.jpg",spots:[{id:"view",x:20,y:44},{id:"radar",x:60,y:39},{id:"range",x:75,y:5},{id:"tactical",x:60,y:79},{id:"weather",x:90,y:24},{id:"course",x:90,y:62}]},{id:"logbook",image:"logbook.jpg",spots:[{id:"tabs",x:69,y:6.3},{id:"add",x:93,y:12},{id:"entries",x:69,y:30}]},{id:"legend",legend:!0}];var d=e.i(44188),o=e.i(83402);let r=e=>Math.min(97,Math.max(3,e)),c=({n:e,x:s,y:a,active:l,label:i,onClick:n})=>(0,t.jsxs)("button",{type:"button",onClick:n,"aria-label":`${e}. ${i}`,"aria-pressed":l,className:`absolute -translate-x-1/2 -translate-y-1/2 rounded-full flex items-center justify-center font-bold leading-none shadow-soft transition-transform duration-200
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44188,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.i(85269);var a=e.i(22831),l=e.i(49721),i=e.i(68757),n=e.i(83646),d=e.i(83402),o=e.i(5941);let r=[0,.5,1].map(e=>{let{r:t,g:s,b:a}=(0,o.tensionToColor)(e);return`rgb(${Math.round(255*t)}, ${Math.round(255*s)}, ${Math.round(255*a)})`}),c=({kind:e,colors:s})=>{let[a,l,i]=s;return"chevrons"===e?(0,t.jsxs)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"0",y:"2",width:"28",height:"10",rx:"2",fill:a,opacity:"0.35"}),[4,13,22].map(e=>(0,t.jsx)("path",{d:`M${e} 4 l4 3 l-4 3`,stroke:a,strokeWidth:"2",fill:"none"},e))]}):"bands"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:[a,l,i].filter(Boolean).map((e,s,a)=>(0,t.jsx)("rect",{x:28/a.length*s,y:"4",width:28/a.length,height:"6",fill:e},e))}):"dashed"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("line",{x1:"1",y1:"7",x2:"27",y2:"7",stroke:a,strokeWidth:"2",strokeDasharray:"4 3"})}):"hull"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M2 7 Q8 1 22 2 L26 7 L22 12 Q8 13 2 7 Z",fill:a,stroke:l,strokeWidth:"1"})}):"arrow"===e?(0,t.jsx)("svg",{width:"28",height:"14",viewBox:"0 0 28 14","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 7 H20 M15 2 L21 7 L15 12",stroke:a,strokeWidth:"2.5",fill:"none"})}):null},x=()=>{let{t:e}=(0,a.useTranslation)(),{scene:t,accent:s}=(0,n.default)();return[{kind:"chevrons",colors:[t.route],label:e("legend.route")},{kind:"bands",colors:[t.wakeGood,t.wakeFair,t.wakeBad],label:e("legend.wake")},{kind:"bands",colors:[t.laylinePort,t.laylineStarboard],label:e("legend.laylines")},{kind:"dashed",colors:[t.compass],label:e("legend.isochrones")},{kind:"hull",colors:[t.ghost,t.ghost],label:e("legend.ghost")},{kind:"hull",colors:[t.vessel,t.vessel],label:e("legend.vessel")},{kind:"hull",colors:[t.vesselDanger,t.vesselDanger],label:e("legend.danger")},{kind:"hull",colors:[t.vesselYields,t.vesselYields],label:e("legend.yields")},{kind:"hull",colors:[t.vesselClose,t.vesselClose],label:e("legend.close")},{kind:"dashed",colors:[t.vesselDanger],label:e("legend.cpa")},{kind:"hull",colors:[t.giveWay,t.giveWay],label:e("legend.giveWay")},{kind:"dashed",colors:[t.target],label:e("legend.advice")},{kind:"bands",colors:[s],label:e("legend.trim")},{kind:"bands",colors:r,label:e("legend.loads")}]},h=({className:e="gap-1 text-caption"})=>{let s=x();return(0,t.jsx)("ul",{className:`flex flex-col text-hud-main leading-tight ${e}`,children:s.map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"shrink-0 w-7 flex justify-center",children:(0,t.jsx)(c,{kind:e.kind,colors:e.colors})}),(0,t.jsx)("span",{children:e.label})]},e.label))})};e.s(["LegendList",0,h,"default",0,()=>{let{t:e}=(0,a.useTranslation)(),[n,o]=(0,s.useState)(()=>!0===d.default.get("sceneLegendOpen")),r=()=>{d.default.set("sceneLegendOpen",!n),o(!n)};return n?(0,t.jsxs)("div",{className:"relative z-40 px-3 py-2 max-w-[19rem] max-h-[45vh] overflow-y-auto select-none rounded-2xl bg-hud-bg/90 backdrop-blur shadow-soft",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("span",{className:"text-caption font-semibold uppercase tracking-widest text-hud-muted",children:e("legend.title")}),(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":e("common.close"),className:"text-hud-muted hover:text-hud-main px-1",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faXmark})})]}),(0,t.jsx)(h,{})]}):(0,t.jsxs)("button",{type:"button",onClick:r,className:"hud-halo flex items-center gap-2 px-2 py-1 text-caption font-semibold uppercase tracking-widest text-hud-muted hover:text-hud-main",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faCircleInfo}),e("legend.title")]})},"useLegendRows",0,x])},5941,e=>{"use strict";let t=[1,.8,.6];function s(e){return t[Math.min(Math.max(e,0),2)]}function a(e,t){return Math.max(.05,Math.min(1,1-.6*e-.3*t))}function l(e,t){return Math.PI/6*Math.max(0,1-1.9438444924574*t/30)*(1-e)}function i(e,t,s){let a=Math.min(1,1.9438444924574*(e.tws||0)/30),l=t.tension||.5;switch(s){case"mainSheet":return Math.min(1,.5*a+.3*l+.3*t.mainCar);case"jibSheet":return Math.min(1,.5*a+.3*l+.3*t.jibCar);case"vang":return Math.min(1,.6*a+.4*l);case"cunningham":return Math.min(1,.4*a+.6*l);case"backstay":return Math.min(1,Math.max(0,1-Math.abs(Math.atan2(Math.sin(e.awa||0),Math.cos(e.awa||0)))/Math.PI)*a*.9+.3*l);default:return l}}function n(e){let t=Math.max(0,Math.min(1,e));if(t<=.5){let e=2*t;return{r:e,g:1-.3*e,b:0}}return{r:1,g:.7*(1-(t-.5)*2),b:0}}e.s(["getReefHeightFactor",0,s,"tensionToColor",0,n,"updateSailTrim",0,function({tws:e=0,twa:t=0,awa:d=0,mainCar:o=.5,jibCar:r=.5,tension:c=.5}){let x,h=(x=1.9438444924574*e)>25?2:+(x>18),u=s(h),m=a(o,c),g=a(r,c),b=l(o,e),p=l(r,e),f={tws:e,twa:t,awa:d},y={mainCar:o,jibCar:r,tension:c},j={mainSheet:i(f,y,"mainSheet"),jibSheet:i(f,y,"jibSheet"),vang:i(f,y,"vang"),cunningham:i(f,y,"cunningham"),backstay:i(f,y,"backstay")},v={mainSheet:n(j.mainSheet),jibSheet:n(j.jibSheet),vang:n(j.vang),cunningham:n(j.cunningham),backstay:n(j.backstay)};return{reefLevel:h,reefHeightFactor:u,mainCamber:m,jibCamber:g,mainTwist:b,jibTwist:p,tensions:j,tensionColors:v}}])},70546,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.i(85269);var a=e.i(22831),l=e.i(49721),i=e.i(68757);let n=[{id:"start",steps:["connect","demo","views","phone","settings"]},{id:"view",image:"hero.jpg",spots:[{id:"toolbar",x:13.5,y:3},{id:"speed",x:6.5,y:10},{id:"values",x:6,y:23},{id:"legend",x:6,y:33},{id:"sky",x:90,y:3},{id:"sails",x:49,y:33},{id:"ais",x:79,y:29.5},{id:"compass",x:60,y:66},{id:"wake",x:50,y:85},{id:"depth",x:13.5,y:84},{id:"tide",x:82,y:83},{id:"bottom",x:12.8,y:96},{id:"readings",x:94,y:97},{id:"shortcuts",x:50,y:96}]},{id:"route",image:"polars.jpg",spots:[{id:"toggles",x:15,y:3},{id:"waypoint",x:9,y:35},{id:"route",x:40.6,y:33},{id:"isochrones",x:58,y:32},{id:"laylines",x:19,y:48},{id:"wake",x:43,y:87}]},{id:"traffic",image:"traffic.jpg",spots:[{id:"toggle",x:22,y:3.5},{id:"banner",x:50,y:9},{id:"yields",x:34,y:26},{id:"tags",x:57.5,y:21},{id:"danger",x:45,y:45.5},{id:"advice",x:33,y:87}]},{id:"anchor",image:"anchor.jpg",spots:[{id:"button",x:5,y:3.5},{id:"position",x:11,y:8},{id:"values",x:3.5,y:37},{id:"alarm",x:91,y:64},{id:"swing",x:37.5,y:60.5},{id:"track",x:47.5,y:57},{id:"anchorPoint",x:61,y:59}]},{id:"parking",image:"parking.jpg",spots:[{id:"button",x:7.8,y:3.5},{id:"berth",x:50,y:31},{id:"path",x:49,y:41},{id:"wind",x:42,y:64},{id:"depth",x:6,y:81},{id:"guidance",x:40,y:84},{id:"types",x:66,y:90}]},{id:"bathymetry",image:"bathymetry.jpg",spots:[{id:"button",x:17.1,y:4.6},{id:"coast",x:25.8,y:11.8},{id:"soundings",x:76.5,y:14.4},{id:"seabed",x:34.4,y:77.8},{id:"keel",x:52.5,y:57.5}]},{id:"weather",image:"weather.jpg",spots:[{id:"button",x:20.6,y:4.6},{id:"slider",x:50,y:10},{id:"wind",x:76.6,y:16},{id:"current",x:34,y:45.8}]},{id:"mob",image:"mob.jpg",spots:[{id:"button",x:12.75,y:96},{id:"alert",x:66,y:6},{id:"marker",x:75,y:59},{id:"drift",x:68,y:63.5},{id:"return",x:61,y:55.5}]},{id:"dashboard",image:"dashboard.jpg",spots:[{id:"view",x:20,y:44},{id:"radar",x:60,y:39},{id:"range",x:75,y:5},{id:"tactical",x:60,y:79},{id:"weather",x:90,y:24},{id:"course",x:90,y:62}]},{id:"logbook",image:"logbook.jpg",spots:[{id:"tabs",x:69,y:6.3},{id:"add",x:93,y:12},{id:"entries",x:69,y:30}]},{id:"legend",legend:!0}];var d=e.i(44188),o=e.i(83402);let r=e=>Math.min(97,Math.max(3,e)),c=({n:e,x:s,y:a,active:l,label:i,onClick:n})=>(0,t.jsxs)("button",{type:"button",onClick:n,"aria-label":`${e}. ${i}`,"aria-pressed":l,className:`absolute -translate-x-1/2 -translate-y-1/2 rounded-full flex items-center justify-center font-bold leading-none shadow-soft transition-transform duration-200
2
2
  w-6 h-6 text-[11px] sm:w-7 sm:h-7 sm:text-xs ring-2 ring-white
3
- ${l?"bg-oYellow text-black scale-125 z-10":"bg-oBlue text-white hover:scale-110"}`,style:{left:`${r(s)}%`,top:`${r(a)}%`},children:[l&&(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-oYellow animate-ping opacity-60","aria-hidden":"true"}),(0,t.jsx)("span",{className:"relative",children:e})]}),x=({section:e,base:n})=>{let{t:d}=(0,a.useTranslation)(),[o,r]=(0,s.useState)(0),x=(t,s)=>`guide.${e.id}.spots.${t.id}.${s}`,h=e.spots[o];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("figure",{className:"relative w-full mx-auto rounded-xl overflow-visible bg-hud-elevated",style:{maxWidth:"calc(60vh * 16 / 9)"},children:[(0,t.jsx)("img",{src:`${n}/${e.image}`,alt:d(`guide.${e.id}.title`),className:"w-full h-auto rounded-xl block select-none",draggable:!1}),e.spots.map((e,s)=>(0,t.jsx)(c,{n:s+1,x:e.x,y:e.y,active:s===o,label:d(x(e,"title")),onClick:()=>r(s)},e.id))]}),(0,t.jsxs)("div",{className:"mt-3 mx-auto rounded-xl border border-hud bg-hud-elevated px-4 py-3 flex items-start gap-3",style:{maxWidth:"calc(60vh * 16 / 9)"},"aria-live":"polite",children:[(0,t.jsx)("span",{className:"shrink-0 w-7 h-7 rounded-full bg-oYellow text-black text-xs font-bold flex items-center justify-center",children:o+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-label font-semibold text-hud-main",children:d(x(h,"title"))}),(0,t.jsx)("p",{className:"text-label text-hud-secondary mt-0.5",children:d(x(h,"text"))})]}),(0,t.jsxs)("div",{className:"shrink-0 flex gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>r((o+e.spots.length-1)%e.spots.length),"aria-label":d("guide.previousSpot"),className:"w-8 h-8 rounded-lg text-hud-secondary hover:text-hud-main tesla-hover",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronLeft})}),(0,t.jsx)("button",{type:"button",onClick:()=>r((o+1)%e.spots.length),"aria-label":d("guide.nextSpot"),className:"w-8 h-8 rounded-lg text-hud-secondary hover:text-hud-main tesla-hover",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronRight})})]})]}),(0,t.jsx)("ol",{className:"mt-4 grid gap-2 lg:grid-cols-2",children:e.spots.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>r(s),className:`w-full text-left flex items-start gap-3 rounded-xl px-3 py-2 transition-colors ${s===o?"bg-hud-elevated":"tesla-hover"}`,children:[(0,t.jsx)("span",{className:`shrink-0 mt-0.5 w-6 h-6 rounded-full text-[11px] font-bold flex items-center justify-center ${s===o?"bg-oYellow text-black":"bg-oBlue text-white"}`,children:s+1}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-label font-semibold text-hud-main",children:d(x(e,"title"))}),(0,t.jsx)("span",{className:"block text-label text-hud-secondary",children:d(x(e,"text"))})]})]})},e.id))})]})},h=({section:e})=>{let{t:s}=(0,a.useTranslation)();return(0,t.jsx)("ol",{className:"grid gap-3",children:e.steps.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-3 rounded-xl bg-hud-elevated px-4 py-3",children:[(0,t.jsx)("span",{className:"shrink-0 mt-0.5 w-6 h-6 rounded-full bg-oBlue text-white text-[11px] font-bold flex items-center justify-center",children:a+1}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-label font-semibold text-hud-main",children:s(`guide.start.steps.${e}.title`)}),(0,t.jsx)("span",{className:"block text-label text-hud-secondary",children:s(`guide.start.steps.${e}.text`)})]})]},e))})},u=({base:e="./guide"})=>{let{t:r}=(0,a.useTranslation)(),[c,u]=(0,s.useState)(()=>{let e=n.findIndex(e=>e.id===o.default.get("guideSection"));return e>=0?e:0}),m=(0,s.useRef)(null),g=n[c];(0,s.useEffect)(()=>{o.default.set("guideSection",g.id),m.current?.scrollTo({top:0})},[g.id]);let p=n[c-1],b=n[c+1];return(0,t.jsxs)("div",{className:"flex flex-col h-full min-h-0",children:[(0,t.jsx)("nav",{className:"flex gap-1 px-2 py-2 border-b border-hud overflow-x-auto scrollbar-hide shrink-0","aria-label":r("guide.tab"),children:n.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:()=>u(s),"aria-current":s===c,className:`shrink-0 px-3 py-1.5 rounded-full text-caption font-semibold uppercase tracking-wide whitespace-nowrap transition-colors ${s===c?"bg-oBlue text-white":"text-hud-secondary tesla-hover"}`,children:r(`guide.${e.id}.title`)},e.id))}),(0,t.jsx)("div",{ref:m,className:"flex-1 min-h-0 overflow-y-auto",children:(0,t.jsxs)("article",{className:"max-w-5xl mx-auto px-4 py-4",children:[(0,t.jsx)("h2",{className:"text-value font-semibold text-hud-main",children:r(`guide.${g.id}.title`)}),(0,t.jsx)("p",{className:"text-label text-hud-secondary mt-1 mb-4",children:r(`guide.${g.id}.intro`)}),g.image&&(0,t.jsx)(x,{section:g,base:e},g.id),g.steps&&(0,t.jsx)(h,{section:g}),g.legend&&(0,t.jsx)("div",{className:"rounded-xl bg-hud-elevated px-4 py-3",children:(0,t.jsx)(d.LegendList,{className:"gap-2 text-label"})}),(0,t.jsxs)("div",{className:"flex justify-between gap-2 mt-6",children:[p?(0,t.jsxs)("button",{type:"button",onClick:()=>u(c-1),className:"px-3 py-2 rounded-xl text-label text-hud-secondary hover:text-hud-main tesla-hover",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronLeft,className:"mr-2"}),r(`guide.${p.id}.title`)]}):(0,t.jsx)("span",{}),b&&(0,t.jsxs)("button",{type:"button",onClick:()=>u(c+1),className:"px-3 py-2 rounded-xl text-label font-semibold text-oBlue tesla-hover",children:[r(`guide.${b.id}.title`),(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronRight,className:"ml-2"})]})]})]})})]})},m={guide:!0},g=e=>e.guide?"guide":e.file||e.url;e.s(["default",0,({path:e})=>{let[n,d]=(0,s.useState)([]),[o,r]=(0,s.useState)(m),[c,x]=(0,s.useState)(!1),{t:h}=(0,a.useTranslation)();(0,s.useEffect)(()=>{(async()=>{try{let t=await fetch(`${e}/index.json`);if(!t.ok)throw Error("Network response was not ok");d(await t.json())}catch(e){console.warn("Manuals: cannot list the documents:",e.message),x(!0)}})()},[e]);let p=[{...m,title:h("guide.tab")},...n],b=o.file?`${e}/${o.file}`:null,f=o.file?.toLowerCase().endsWith(".pdf");return(0,t.jsxs)("div",{className:"flex flex-col h-full bg-rightPaneBg overflow-hidden",children:[(0,t.jsx)("div",{className:"flex border-b border-hud bg-hud-bg overflow-x-auto scrollbar-hide shrink-0",children:p.map(e=>(0,t.jsxs)("button",{onClick:()=>r(e),className:`flex-1 py-3 px-3 text-caption font-semibold uppercase flex items-center justify-center transition-all duration-500 whitespace-nowrap ${g(o)===g(e)?"text-oGreen border-b-2 border-oGreen bg-hud-bg":"text-hud-secondary hover:text-hud-main tesla-hover"}`,children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:e.guide?i.faBookOpen:e.url?i.faGlobe:i.faFileAlt,className:"mr-2"}),e.title]},g(e)))}),(0,t.jsxs)("div",{className:"flex-grow min-h-0 bg-hud-bg text-hud-main flex flex-col",children:[o.guide&&(0,t.jsx)(u,{}),b&&f&&(0,t.jsxs)("a",{href:b,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 self-end m-2 px-3 py-1.5 rounded-lg text-caption font-semibold uppercase tracking-wide text-oBlue tesla-hover",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faArrowUpRightFromSquare,className:"mr-2"}),h("manual.openNewTab")]}),b&&(0,t.jsx)("iframe",{src:b,title:o.title,className:"flex-1 w-full border-0"}),o.url&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-6 text-center",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faGlobe,className:"text-4xl text-hud-muted"}),(0,t.jsx)("div",{className:"text-value font-semibold text-hud-main",children:o.title}),(0,t.jsx)("p",{className:"text-label text-hud-secondary max-w-md",children:h("manual.online")}),(0,t.jsxs)("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 rounded-xl bg-oBlue text-white text-label font-semibold",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faArrowUpRightFromSquare,className:"mr-2"}),h("manual.openNewTab")]})]}),c&&!o.guide&&(0,t.jsx)("div",{className:"text-label text-hud-secondary p-6 text-center",children:h("manual.unavailable")})]})]})}],70546)},23298,function(e){e.n(e.i(70546))},83646,e=>{"use strict";var t=e.i(67561);e.s(["default",0,()=>(0,t.useOcearoContext)().tokens])}]);
3
+ ${l?"bg-oYellow text-black scale-125 z-10":"bg-oBlue text-white hover:scale-110"}`,style:{left:`${r(s)}%`,top:`${r(a)}%`},children:[l&&(0,t.jsx)("span",{className:"absolute inset-0 rounded-full bg-oYellow animate-ping opacity-60","aria-hidden":"true"}),(0,t.jsx)("span",{className:"relative",children:e})]}),x=({section:e,base:n})=>{let{t:d}=(0,a.useTranslation)(),[o,r]=(0,s.useState)(0),x=(t,s)=>`guide.${e.id}.spots.${t.id}.${s}`,h=e.spots[o];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("figure",{className:"relative w-full mx-auto rounded-xl overflow-visible bg-hud-elevated",style:{maxWidth:"calc(60vh * 16 / 9)"},children:[(0,t.jsx)("img",{src:`${n}/${e.image}`,alt:d(`guide.${e.id}.title`),className:"w-full h-auto rounded-xl block select-none",draggable:!1}),e.spots.map((e,s)=>(0,t.jsx)(c,{n:s+1,x:e.x,y:e.y,active:s===o,label:d(x(e,"title")),onClick:()=>r(s)},e.id))]}),(0,t.jsxs)("div",{className:"mt-3 mx-auto rounded-xl border border-hud bg-hud-elevated px-4 py-3 flex items-start gap-3",style:{maxWidth:"calc(60vh * 16 / 9)"},"aria-live":"polite",children:[(0,t.jsx)("span",{className:"shrink-0 w-7 h-7 rounded-full bg-oYellow text-black text-xs font-bold flex items-center justify-center",children:o+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-label font-semibold text-hud-main",children:d(x(h,"title"))}),(0,t.jsx)("p",{className:"text-label text-hud-secondary mt-0.5",children:d(x(h,"text"))})]}),(0,t.jsxs)("div",{className:"shrink-0 flex gap-1",children:[(0,t.jsx)("button",{type:"button",onClick:()=>r((o+e.spots.length-1)%e.spots.length),"aria-label":d("guide.previousSpot"),className:"w-8 h-8 rounded-lg text-hud-secondary hover:text-hud-main tesla-hover",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronLeft})}),(0,t.jsx)("button",{type:"button",onClick:()=>r((o+1)%e.spots.length),"aria-label":d("guide.nextSpot"),className:"w-8 h-8 rounded-lg text-hud-secondary hover:text-hud-main tesla-hover",children:(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronRight})})]})]}),(0,t.jsx)("ol",{className:"mt-4 grid gap-2 lg:grid-cols-2",children:e.spots.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",onClick:()=>r(s),className:`w-full text-left flex items-start gap-3 rounded-xl px-3 py-2 transition-colors ${s===o?"bg-hud-elevated":"tesla-hover"}`,children:[(0,t.jsx)("span",{className:`shrink-0 mt-0.5 w-6 h-6 rounded-full text-[11px] font-bold flex items-center justify-center ${s===o?"bg-oYellow text-black":"bg-oBlue text-white"}`,children:s+1}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-label font-semibold text-hud-main",children:d(x(e,"title"))}),(0,t.jsx)("span",{className:"block text-label text-hud-secondary",children:d(x(e,"text"))})]})]})},e.id))})]})},h=({section:e})=>{let{t:s}=(0,a.useTranslation)();return(0,t.jsx)("ol",{className:"grid gap-3",children:e.steps.map((e,a)=>(0,t.jsxs)("li",{className:"flex items-start gap-3 rounded-xl bg-hud-elevated px-4 py-3",children:[(0,t.jsx)("span",{className:"shrink-0 mt-0.5 w-6 h-6 rounded-full bg-oBlue text-white text-[11px] font-bold flex items-center justify-center",children:a+1}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block text-label font-semibold text-hud-main",children:s(`guide.start.steps.${e}.title`)}),(0,t.jsx)("span",{className:"block text-label text-hud-secondary",children:s(`guide.start.steps.${e}.text`)})]})]},e))})},u=({base:e="./guide"})=>{let{t:r}=(0,a.useTranslation)(),[c,u]=(0,s.useState)(()=>{let e=n.findIndex(e=>e.id===o.default.get("guideSection"));return e>=0?e:0}),m=(0,s.useRef)(null),g=n[c];(0,s.useEffect)(()=>{o.default.set("guideSection",g.id),m.current?.scrollTo({top:0})},[g.id]);let b=n[c-1],p=n[c+1];return(0,t.jsxs)("div",{className:"flex flex-col h-full min-h-0",children:[(0,t.jsx)("nav",{className:"flex gap-1 px-2 py-2 border-b border-hud overflow-x-auto scrollbar-hide shrink-0","aria-label":r("guide.tab"),children:n.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:()=>u(s),"aria-current":s===c,className:`shrink-0 px-3 py-1.5 rounded-full text-caption font-semibold uppercase tracking-wide whitespace-nowrap transition-colors ${s===c?"bg-oBlue text-white":"text-hud-secondary tesla-hover"}`,children:r(`guide.${e.id}.title`)},e.id))}),(0,t.jsx)("div",{ref:m,className:"flex-1 min-h-0 overflow-y-auto",children:(0,t.jsxs)("article",{className:"max-w-5xl mx-auto px-4 py-4",children:[(0,t.jsx)("h2",{className:"text-value font-semibold text-hud-main",children:r(`guide.${g.id}.title`)}),(0,t.jsx)("p",{className:"text-label text-hud-secondary mt-1 mb-4",children:r(`guide.${g.id}.intro`)}),g.image&&(0,t.jsx)(x,{section:g,base:e},g.id),g.steps&&(0,t.jsx)(h,{section:g}),g.legend&&(0,t.jsx)("div",{className:"rounded-xl bg-hud-elevated px-4 py-3",children:(0,t.jsx)(d.LegendList,{className:"gap-2 text-label"})}),(0,t.jsxs)("div",{className:"flex justify-between gap-2 mt-6",children:[b?(0,t.jsxs)("button",{type:"button",onClick:()=>u(c-1),className:"px-3 py-2 rounded-xl text-label text-hud-secondary hover:text-hud-main tesla-hover",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronLeft,className:"mr-2"}),r(`guide.${b.id}.title`)]}):(0,t.jsx)("span",{}),p&&(0,t.jsxs)("button",{type:"button",onClick:()=>u(c+1),className:"px-3 py-2 rounded-xl text-label font-semibold text-oBlue tesla-hover",children:[r(`guide.${p.id}.title`),(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faChevronRight,className:"ml-2"})]})]})]})})]})},m={guide:!0},g=e=>e.guide?"guide":e.file||e.url;e.s(["default",0,({path:e})=>{let[n,d]=(0,s.useState)([]),[o,r]=(0,s.useState)(m),[c,x]=(0,s.useState)(!1),{t:h}=(0,a.useTranslation)();(0,s.useEffect)(()=>{(async()=>{try{let t=await fetch(`${e}/index.json`);if(!t.ok)throw Error("Network response was not ok");d(await t.json())}catch(e){console.warn("Manuals: cannot list the documents:",e.message),x(!0)}})()},[e]);let b=[{...m,title:h("guide.tab")},...n],p=o.file?`${e}/${o.file}`:null,f=o.file?.toLowerCase().endsWith(".pdf");return(0,t.jsxs)("div",{className:"flex flex-col h-full bg-rightPaneBg overflow-hidden",children:[(0,t.jsx)("div",{className:"flex border-b border-hud bg-hud-bg overflow-x-auto scrollbar-hide shrink-0",children:b.map(e=>(0,t.jsxs)("button",{onClick:()=>r(e),className:`flex-1 py-3 px-3 text-caption font-semibold uppercase flex items-center justify-center transition-all duration-500 whitespace-nowrap ${g(o)===g(e)?"text-oGreen border-b-2 border-oGreen bg-hud-bg":"text-hud-secondary hover:text-hud-main tesla-hover"}`,children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:e.guide?i.faBookOpen:e.url?i.faGlobe:i.faFileAlt,className:"mr-2"}),e.title]},g(e)))}),(0,t.jsxs)("div",{className:"flex-grow min-h-0 bg-hud-bg text-hud-main flex flex-col",children:[o.guide&&(0,t.jsx)(u,{}),p&&f&&(0,t.jsxs)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"shrink-0 self-end m-2 px-3 py-1.5 rounded-lg text-caption font-semibold uppercase tracking-wide text-oBlue tesla-hover",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faArrowUpRightFromSquare,className:"mr-2"}),h("manual.openNewTab")]}),p&&(0,t.jsx)("iframe",{src:p,title:o.title,className:"flex-1 w-full border-0"}),o.url&&(0,t.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-6 text-center",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faGlobe,className:"text-4xl text-hud-muted"}),(0,t.jsx)("div",{className:"text-value font-semibold text-hud-main",children:o.title}),(0,t.jsx)("p",{className:"text-label text-hud-secondary max-w-md",children:h("manual.online")}),(0,t.jsxs)("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2 rounded-xl bg-oBlue text-white text-label font-semibold",children:[(0,t.jsx)(l.FontAwesomeIcon,{icon:i.faArrowUpRightFromSquare,className:"mr-2"}),h("manual.openNewTab")]})]}),c&&!o.guide&&(0,t.jsx)("div",{className:"text-label text-hud-secondary p-6 text-center",children:h("manual.unavailable")})]})]})}],70546)},23298,function(e){e.n(e.i(70546))},83646,e=>{"use strict";var t=e.i(67561);e.s(["default",0,()=>(0,t.useOcearoContext)().tokens])}]);