accomadesc 0.1.25 → 0.1.27

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.
@@ -18,7 +18,6 @@
18
18
  } & I18nFacade = $props();
19
19
 
20
20
  let allTranslations = $state(supportedLangs);
21
-
22
21
  const pathForLang = (lang: string) => {
23
22
  const pathElements = currentPath.split('/');
24
23
  //initial slash results in empty string real first element
@@ -4,7 +4,16 @@
4
4
  import Hamburger from './Hamburger.svelte';
5
5
  import PageHeader from './PageHeader.svelte';
6
6
  import PageFooter from './PageFooter.svelte';
7
- import type { PageProps, Section as SectionI, I18nFacade } from './types.js';
7
+ import {
8
+ type Nav,
9
+ type PageProps,
10
+ type Section as SectionI,
11
+ type I18nFacade,
12
+ } from './types.js';
13
+ import NavItem from './NavItem.svelte';
14
+ import { fade } from 'svelte/transition';
15
+ import Icon from './basic/Icon.svelte';
16
+ import { page } from '$app/state';
8
17
 
9
18
  let {
10
19
  hero,
@@ -16,6 +25,7 @@
16
25
  nav,
17
26
  showFooter = true,
18
27
  fixedHamburger = true,
28
+ navbarOverHamburger = true,
19
29
  translateFunc,
20
30
  formatMoneyFunc,
21
31
  formatDateFunc,
@@ -28,7 +38,25 @@
28
38
 
29
39
  let pageTitle = hero && hero.title ? hero.title : header ? header : title;
30
40
 
41
+ let langSelectorOpen = $state(false);
42
+ let allTranslations = $state(supportedLangs);
43
+
44
+ let currentPath = $derived(page.url.pathname);
45
+ const pathForLang = (lang: string) => {
46
+ const pathElements = currentPath.split('/');
47
+ //initial slash results in empty string real first element
48
+ if (pathElements.length == 1) return `/${lang}`;
49
+
50
+ const firstElement = pathElements[1];
51
+ if (allTranslations?.includes(firstElement)) {
52
+ return ['', lang, ...pathElements.slice(2)].join('/');
53
+ } else {
54
+ return ['', lang, ...pathElements.slice(1)].join('/');
55
+ }
56
+ };
57
+
31
58
  let hamburgerOpen = $state(false);
59
+ let pageWidth = $state(0);
32
60
  </script>
33
61
 
34
62
  <svelte:head>
@@ -40,10 +68,47 @@
40
68
  >
41
69
  </svelte:head>
42
70
 
43
- <div class="page-wrapper">
71
+ {#snippet navbar(nav: Nav)}
72
+ <div class="nav" transition:fade>
73
+ {#each nav.main as n}
74
+ {#if n.path && !n.sub}
75
+ <div class="link-wrapper">
76
+ <NavItem {n} {currentLang} {translateFunc} />
77
+ </div>
78
+ {/if}
79
+ {/each}
80
+ {#if supportedLangs && supportedLangs.length > 1}
81
+ <div class="langs-switcher" style="display:flex; gap: 0.2rem;">
82
+ {#each supportedLangs as l}
83
+ {#if l == currentLang}
84
+ <div class="flag-wrapper disabled">
85
+ <Icon iconName={l} height="1.5rem" width="1.5rem" />
86
+ </div>
87
+ {:else}
88
+ <div class="flag-wrapper">
89
+ <a
90
+ onclick={() => (updateCurrentLang ? updateCurrentLang(l) : '')}
91
+ href={pathForLang(l)}
92
+ >
93
+ <Icon iconName={l} height="1.5rem" width="1.5rem" />
94
+ </a>
95
+ </div>
96
+ {/if}
97
+ {/each}
98
+ </div>
99
+ {/if}
100
+ </div>
101
+ {/snippet}
102
+
103
+ <div class="page-wrapper" bind:clientWidth={pageWidth}>
44
104
  {#if hero}
45
105
  <header class="hero-image">
46
106
  <Photo photoPath={hero.photoPath} alt="Hero Image" eager={true} />
107
+ {#if nav && navbarOverHamburger && pageWidth > 799}
108
+ <div class="hero-nav-wrapper">
109
+ {@render navbar(nav)}
110
+ </div>
111
+ {/if}
47
112
  </header>
48
113
 
49
114
  <div class="floating-title">
@@ -53,6 +118,9 @@
53
118
  {#if title}
54
119
  <PageHeader {title} {slug} {logoLink} {translateFunc} />
55
120
  {/if}
121
+ {#if nav && navbarOverHamburger && pageWidth > 799}
122
+ {@render navbar(nav)}
123
+ {/if}
56
124
  {#if header}
57
125
  <h1>{@html translateFunc ? translateFunc(header) : ''}</h1>
58
126
  {/if}
@@ -83,16 +151,45 @@
83
151
  {/if}
84
152
 
85
153
  {#if nav}
86
- <div class="ham-wrapper" class:fixed={fixedHamburger || hamburgerOpen}>
87
- <Hamburger
88
- {nav}
89
- {translateFunc}
90
- {currentLang}
91
- {supportedLangs}
92
- {updateCurrentLang}
93
- bind:isMenuOpen={hamburgerOpen}
94
- />
95
- </div>
154
+ {#if !navbarOverHamburger || pageWidth < 800}
155
+ <div class="ham-wrapper" class:fixed={fixedHamburger || hamburgerOpen}>
156
+ <Hamburger
157
+ {nav}
158
+ {translateFunc}
159
+ {currentLang}
160
+ {supportedLangs}
161
+ {updateCurrentLang}
162
+ bind:isMenuOpen={hamburgerOpen}
163
+ />
164
+ </div>
165
+ {/if}
166
+ {/if}
167
+
168
+ {#if langSelectorOpen && allTranslations && allTranslations.length > 1}
169
+ <fieldset class="lang-selector" transition:fade>
170
+ <legend>{translateFunc ? translateFunc('lang') : ''}</legend>
171
+
172
+ {#each allTranslations as langKey}
173
+ <a
174
+ class="lang-link"
175
+ rel="alternate"
176
+ onclick={() => (updateCurrentLang ? updateCurrentLang(langKey) : '')}
177
+ href={pathForLang(langKey)}
178
+ hreflang={langKey}
179
+ >
180
+ <div class="radio-wrapper">
181
+ <input
182
+ type="radio"
183
+ name="language"
184
+ id={langKey}
185
+ value={langKey}
186
+ checked={langKey === currentLang}
187
+ />
188
+ <label for={langKey}>{translateFunc ? translateFunc(langKey) : ''}</label>
189
+ </div>
190
+ </a>
191
+ {/each}
192
+ </fieldset>
96
193
  {/if}
97
194
  </div>
98
195
 
@@ -180,6 +277,21 @@
180
277
  position: fixed;
181
278
  }
182
279
 
280
+ .nav {
281
+ display: flex;
282
+ flex-direction: row;
283
+ justify-content: space-around;
284
+ flex-wrap: wrap;
285
+ flex-grow: 3;
286
+ background-color: var(--header-bg-color);
287
+ padding-bottom: 1rem;
288
+ }
289
+
290
+ .nav :global(*) {
291
+ background-color: var(--header-bg-color);
292
+ color: var(--footer-font-color);
293
+ }
294
+
183
295
  .page-wrapper {
184
296
  display: flex;
185
297
  flex-direction: column;
@@ -188,4 +300,17 @@
188
300
 
189
301
  background-color: var(--main-bg-color);
190
302
  }
303
+
304
+ .disabled {
305
+ filter: grayscale();
306
+ }
307
+
308
+ .hero-nav-wrapper {
309
+ position: absolute;
310
+ right: 0;
311
+ left: 0;
312
+ padding-top: 1rem;
313
+ background-color: var(--header-bg-color);
314
+ bottom: -3rem;
315
+ }
191
316
  </style>
@@ -1,4 +1,4 @@
1
- import type { PageProps, I18nFacade } from './types.js';
1
+ import { type PageProps, type I18nFacade } from './types.js';
2
2
  type $$ComponentProps = PageProps & I18nFacade;
3
3
  declare const PageComponent: import("svelte").Component<$$ComponentProps, {}, "">;
4
4
  type PageComponent = ReturnType<typeof PageComponent>;
@@ -37,7 +37,7 @@
37
37
  }
38
38
 
39
39
  .text-wrapper {
40
- min-height: 12rem;
40
+ min-height: 10rem;
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  align-items: center;
@@ -185,32 +185,6 @@ export const getIcon = (name, color = 'black') => {
185
185
  <path d="M23.25 7.5H27.6494C27.6986 7.50005 27.7468 7.48554 27.7878 7.45831C27.8289 7.43107 27.8609 7.39233 27.88 7.34693C27.8991 7.30153 27.9044 7.2515 27.8952 7.20312C27.8859 7.15475 27.8626 7.11018 27.8281 7.075L22.9281 2.0925C22.8933 2.05714 22.8487 2.03295 22.8001 2.023C22.7515 2.01305 22.701 2.01779 22.6551 2.03663C22.6092 2.05546 22.5699 2.08753 22.5423 2.12876C22.5147 2.16999 22.5 2.2185 22.5 2.26813V6.75C22.5 6.94892 22.579 7.13968 22.7197 7.28033C22.8603 7.42099 23.0511 7.5 23.25 7.5Z" fill="${color}"/>
186
186
  <path d="M23.25 9.5C22.5224 9.49444 21.8261 9.20293 21.3116 8.6884C20.7971 8.17388 20.5056 7.47763 20.5 6.75V1H13.75C12.7558 1.00116 11.8026 1.39662 11.0996 2.09963C10.3966 2.80264 10.0012 3.75579 10 4.75V7H12.6325C12.9685 7.00134 13.3009 7.06907 13.6107 7.19928C13.9205 7.32949 14.2014 7.51962 14.4375 7.75875L21.26 14.6962C21.736 15.1792 22.0017 15.8307 21.9994 16.5088V25H25.315C27.3469 25 28.9994 23.3175 28.9994 21.25V9.5H23.25Z" fill="${color}"/>
187
187
  </svg>
188
- `,
189
- de: `
190
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" viewBox="0 0 64 64">
191
- <path fill="#3e4347" d="M31.9 2C18.8 2 7.7 10.4 3.6 22h56.6C56.1 10.4 45 2 31.9 2z"/>
192
- <path fill="#ffe62e" d="M31.9 62c13.1 0 24.2-8.3 28.3-20H3.6c4.1 11.7 15.2 20 28.3 20z"/>
193
- <path fill="#ed4c5c" d="M3.6 22c-1.1 3.1-1.7 6.5-1.7 10s.6 6.9 1.7 10h56.6c1.1-3.1 1.7-6.5 1.7-10s-.6-6.9-1.7-10H3.6"/>
194
- </svg>
195
- `,
196
- en: `
197
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="100%" height="100%" preserveAspectRatio="xMidYMid meet" viewBox="0 0 64 64">
198
- <path fill="#ed4c5c" d="M48 6.6C43.3 3.7 37.9 2 32 2v4.6h16z"/>
199
- <path fill="#fff" d="M32 11.2h21.6C51.9 9.5 50 7.9 48 6.6H32v4.6z"/>
200
- <path fill="#ed4c5c" d="M32 15.8h25.3c-1.1-1.7-2.3-3.2-3.6-4.6H32v4.6z"/>
201
- <path fill="#fff" d="M32 20.4h27.7c-.7-1.6-1.5-3.2-2.4-4.6H32v4.6"/>
202
- <path fill="#ed4c5c" d="M32 25h29.2c-.4-1.6-.9-3.1-1.5-4.6H32V25z"/>
203
- <path fill="#fff" d="M32 29.7h29.9c-.1-1.6-.4-3.1-.7-4.6H32v4.6"/>
204
- <path fill="#ed4c5c" d="M61.9 29.7H32V32H2c0 .8 0 1.5.1 2.3h59.8c.1-.8.1-1.5.1-2.3c0-.8 0-1.6-.1-2.3"/>
205
- <path fill="#fff" d="M2.8 38.9h58.4c.4-1.5.6-3 .7-4.6H2.1c.1 1.5.4 3.1.7 4.6"/>
206
- <path fill="#ed4c5c" d="M4.3 43.5h55.4c.6-1.5 1.1-3 1.5-4.6H2.8c.4 1.6.9 3.1 1.5 4.6"/>
207
- <path fill="#fff" d="M6.7 48.1h50.6c.9-1.5 1.7-3 2.4-4.6H4.3c.7 1.6 1.5 3.1 2.4 4.6"/>
208
- <path fill="#ed4c5c" d="M10.3 52.7h43.4c1.3-1.4 2.6-3 3.6-4.6H6.7c1 1.7 2.3 3.2 3.6 4.6"/>
209
- <path fill="#fff" d="M15.9 57.3h32.2c2.1-1.3 3.9-2.9 5.6-4.6H10.3c1.7 1.8 3.6 3.3 5.6 4.6"/>
210
- <path fill="#ed4c5c" d="M32 62c5.9 0 11.4-1.7 16.1-4.7H15.9c4.7 3 10.2 4.7 16.1 4.7"/>
211
- <path fill="#428bc1" d="M16 6.6c-2.1 1.3-4 2.9-5.7 4.6c-1.4 1.4-2.6 3-3.6 4.6c-.9 1.5-1.8 3-2.4 4.6c-.6 1.5-1.1 3-1.5 4.6c-.4 1.5-.6 3-.7 4.6c-.1.8-.1 1.6-.1 2.4h30V2c-5.9 0-11.3 1.7-16 4.6"/>
212
- <path fill="#fff" d="m25 3l.5 1.5H27l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm4 6l.5 1.5H31l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H23l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm4 6l.5 1.5H27l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H19l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H11l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm20 6l.5 1.5H31l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H23l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H15l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm12 6l.5 1.5H27l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H19l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm-8 0l.5 1.5H11l-1.2 1l.4 1.5l-1.2-.9l-1.2.9l.4-1.5l-1.2-1h1.5zm2.8-14l1.2-.9l1.2.9l-.5-1.5l1.2-1h-1.5L13 9l-.5 1.5h-1.4l1.2.9l-.5 1.6m-8 12l1.2-.9l1.2.9l-.5-1.5l1.2-1H5.5L5 21l-.5 1.5h-1c0 .1-.1.2-.1.3l.8.6l-.4 1.6"/>
213
- </svg>
214
188
  `,
215
189
  password: `
216
190
  <svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -417,11 +391,14 @@ export const getIcon = (name, color = 'black') => {
417
391
  prev: `
418
392
  <svg width="100%" height="100%" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
419
393
  <path d="M12.5334 16H13.3334C13.7112 16 14.0276 16.128 14.2827 16.384C14.5378 16.64 14.6658 16.9565 14.6667 17.3334C14.6676 17.7102 14.5396 18.0271 14.2827 18.284C14.0258 18.5409 13.7094 18.6685 13.3334 18.6667H9.33337C8.95559 18.6667 8.63871 18.5387 8.38271 18.2827C8.12671 18.0267 7.99915 17.7102 8.00004 17.3334V13.3334C8.00004 12.9556 8.12804 12.6391 8.38404 12.384C8.64004 12.1289 8.95648 12.0009 9.33337 12C9.71026 11.9991 10.0267 12.1271 10.2827 12.384C10.5387 12.6409 10.6667 12.9574 10.6667 13.3334V14.0667C11.3778 13.2222 12.2276 12.5556 13.216 12.0667C14.2045 11.5778 15.288 11.3334 16.4667 11.3334C18.3112 11.3334 19.9058 11.8836 21.2507 12.984C22.5956 14.0845 23.456 15.4676 23.832 17.1334C23.9209 17.5334 23.8431 17.8889 23.5987 18.2C23.3543 18.5111 23.0436 18.6667 22.6667 18.6667C22.2898 18.6667 21.9618 18.528 21.6827 18.2507C21.4036 17.9734 21.2094 17.6454 21.1 17.2667C20.7889 16.3111 20.2111 15.528 19.3667 14.9174C18.5223 14.3067 17.5556 14.0009 16.4667 14C15.6667 14 14.9223 14.1836 14.2334 14.5507C13.5445 14.9178 12.9778 15.4009 12.5334 16ZM16 29.3334C17.8445 29.3334 19.5778 28.9831 21.2 28.2827C22.8223 27.5822 24.2334 26.6325 25.4334 25.4334C26.6334 24.2342 27.5831 22.8231 28.2827 21.2C28.9823 19.5769 29.3325 17.8436 29.3334 16C29.3343 14.1565 28.984 12.4231 28.2827 10.8C27.5814 9.17691 26.6316 7.7658 25.4334 6.56669C24.2351 5.36758 22.824 4.4178 21.2 3.71735C19.576 3.01691 17.8427 2.66669 16 2.66669C14.1574 2.66669 12.424 3.01691 10.8 3.71735C9.17604 4.4178 7.76493 5.36758 6.5667 6.56669C5.36848 7.7658 4.41826 9.17691 3.71604 10.8C3.01382 12.4231 2.66404 14.1565 2.6667 16C2.66937 17.8436 3.01959 19.5769 3.71737 21.2C4.41515 22.8231 5.36493 24.2342 6.5667 25.4334C7.76848 26.6325 9.17959 27.5827 10.8 28.284C12.4205 28.9854 14.1538 29.3351 16 29.3334ZM16 26.6667C13.0223 26.6667 10.5 25.6334 8.43337 23.5667C6.36671 21.5 5.33337 18.9778 5.33337 16C5.33337 13.0222 6.36671 10.5 8.43337 8.43335C10.5 6.36669 13.0223 5.33335 16 5.33335C18.9778 5.33335 21.5 6.36669 23.5667 8.43335C25.6334 10.5 26.6667 13.0222 26.6667 16C26.6667 18.9778 25.6334 21.5 23.5667 23.5667C21.5 25.6334 18.9778 26.6667 16 26.6667Z" fill="${color}"/>
420
- </svg>
421
- `,
394
+ </svg>`,
422
395
  target: `
423
- <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 16 16"><path fill="${color}" d="M8 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2M4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0M8 6a2 2 0 1 0 0 4a2 2 0 0 0 0-4M2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8m6-4.5a4.5 4.5 0 1 0 0 9a4.5 4.5 0 0 0 0-9"/></svg>
424
- `,
396
+ <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 16 16"><path fill="${color}" d="M8 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2M4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0M8 6a2 2 0 1 0 0 4a2 2 0 0 0 0-4M2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8m6-4.5a4.5 4.5 0 1 0 0 9a4.5 4.5 0 0 0 0-9"/></svg>`,
397
+ en: `<svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36 4.95C32.475 2.775 28.425 1.5 24 1.5V4.95H36Z" fill="#ED4C5C"/><path d="M24 8.4H40.2C38.925 7.125 37.5 5.925 36 4.95H24V8.4Z" fill="white"/><path d="M24 11.85H42.975C42.15 10.575 41.25 9.44999 40.275 8.39999H24V11.85Z" fill="#ED4C5C"/><path d="M24 15.3H44.775C44.25 14.1 43.65 12.9 42.975 11.85H24V15.3Z" fill="white"/><path d="M24 18.75H45.9C45.6 17.55 45.225 16.425 44.775 15.3H24V18.75Z" fill="#ED4C5C"/><path d="M24 22.275H46.425C46.35 21.075 46.125 19.95 45.9 18.825H24V22.275Z" fill="white"/><path d="M46.425 22.275H24V24H1.5C1.5 24.6 1.5 25.125 1.575 25.725H46.425C46.5 25.125 46.5 24.6 46.5 24C46.5 23.4 46.5 22.8 46.425 22.275Z" fill="#ED4C5C"/><path d="M2.10001 29.175H45.9C46.2 28.05 46.35 26.925 46.425 25.725H1.57501C1.65001 26.85 1.87501 28.05 2.10001 29.175Z" fill="white"/><path d="M3.22501 32.625H44.775C45.225 31.5 45.6 30.375 45.9 29.175H2.10001C2.40001 30.375 2.77501 31.5 3.22501 32.625Z" fill="#ED4C5C"/><path d="M5.02501 36.075H42.975C43.65 34.95 44.25 33.825 44.775 32.625H3.22501C3.75001 33.825 4.35001 34.95 5.02501 36.075Z" fill="white"/><path d="M7.72499 39.525H40.275C41.25 38.475 42.225 37.275 42.975 36.075H5.02499C5.77499 37.35 6.74999 38.475 7.72499 39.525Z" fill="#ED4C5C"/><path d="M11.925 42.975H36.075C37.65 42 39 40.8 40.275 39.525H7.72501C9.00001 40.875 10.425 42 11.925 42.975Z" fill="white"/><path d="M24 46.5C28.425 46.5 32.55 45.225 36.075 42.975H11.925C15.45 45.225 19.575 46.5 24 46.5Z" fill="#ED4C5C"/><path d="M12 4.95C10.425 5.925 9 7.125 7.725 8.4C6.675 9.45 5.775 10.65 5.025 11.85C4.35 12.975 3.675 14.1 3.225 15.3C2.775 16.425 2.4 17.55 2.1 18.75C1.8 19.875 1.65 21 1.575 22.2C1.5 22.8 1.5 23.4 1.5 24H24V1.5C19.575 1.5 15.525 2.775 12 4.95Z" fill="#428BC1"/><path d="M18.75 2.25L19.125 3.375H20.25L19.35 4.125L19.65 5.25L18.75 4.575L17.85 5.25L18.15 4.125L17.25 3.375H18.375L18.75 2.25ZM21.75 6.75L22.125 7.875H23.25L22.35 8.625L22.65 9.75L21.75 9.075L20.85 9.75L21.15 8.625L20.25 7.875H21.375L21.75 6.75ZM15.75 6.75L16.125 7.875H17.25L16.35 8.625L16.65 9.75L15.75 9.075L14.85 9.75L15.15 8.625L14.25 7.875H15.375L15.75 6.75ZM18.75 11.25L19.125 12.375H20.25L19.35 13.125L19.65 14.25L18.75 13.575L17.85 14.25L18.15 13.125L17.25 12.375H18.375L18.75 11.25ZM12.75 11.25L13.125 12.375H14.25L13.35 13.125L13.65 14.25L12.75 13.575L11.85 14.25L12.15 13.125L11.25 12.375H12.375L12.75 11.25ZM6.74999 11.25L7.12499 12.375H8.24999L7.34999 13.125L7.64999 14.25L6.74999 13.575L5.84999 14.25L6.14999 13.125L5.24999 12.375H6.37499L6.74999 11.25ZM21.75 15.75L22.125 16.875H23.25L22.35 17.625L22.65 18.75L21.75 18.075L20.85 18.75L21.15 17.625L20.25 16.875H21.375L21.75 15.75ZM15.75 15.75L16.125 16.875H17.25L16.35 17.625L16.65 18.75L15.75 18.075L14.85 18.75L15.15 17.625L14.25 16.875H15.375L15.75 15.75ZM9.74999 15.75L10.125 16.875H11.25L10.35 17.625L10.65 18.75L9.74999 18.075L8.84999 18.75L9.14999 17.625L8.24999 16.875H9.37499L9.74999 15.75ZM18.75 20.25L19.125 21.375H20.25L19.35 22.125L19.65 23.25L18.75 22.575L17.85 23.25L18.15 22.125L17.25 21.375H18.375L18.75 20.25ZM12.75 20.25L13.125 21.375H14.25L13.35 22.125L13.65 23.25L12.75 22.575L11.85 23.25L12.15 22.125L11.25 21.375H12.375L12.75 20.25ZM6.74999 20.25L7.12499 21.375H8.24999L7.34999 22.125L7.64999 23.25L6.74999 22.575L5.84999 23.25L6.14999 22.125L5.24999 21.375H6.37499L6.74999 20.25ZM8.84999 9.75L9.74999 9.075L10.65 9.75L10.275 8.625L11.175 7.875H10.05L9.74999 6.75L9.37499 7.875H8.32499L9.22499 8.55L8.84999 9.75ZM2.84999 18.75L3.74999 18.075L4.64999 18.75L4.27499 17.625L5.17499 16.875H4.12499L3.74999 15.75L3.37499 16.875H2.62499C2.62499 16.95 2.54999 17.025 2.54999 17.1L3.14999 17.55L2.84999 18.75Z" fill="white"/></svg>`,
398
+ de: `<svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.925 1.5C14.1 1.5 5.77501 7.8 2.70001 16.5H45.15C42.075 7.8 33.75 1.5 23.925 1.5Z" fill="#3E4347"/><path d="M23.925 46.5C33.75 46.5 42.075 40.275 45.15 31.5H2.70001C5.77501 40.275 14.1 46.5 23.925 46.5Z" fill="#FFE62E"/><path d="M2.69999 16.5C1.87499 18.825 1.42499 21.375 1.42499 24C1.42499 26.625 1.87499 29.175 2.69999 31.5H45.15C45.975 29.175 46.425 26.625 46.425 24C46.425 21.375 45.975 18.825 45.15 16.5H2.69999Z" fill="#ED4C5C"/></svg>`,
399
+ fr: `<svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1.42499 24C1.42499 33.825 7.72499 42.15 16.425 45.225V2.775C7.72499 5.85 1.42499 14.175 1.42499 24Z" fill="#428BC1"/><path d="M46.425 24C46.425 14.175 40.2 5.85 31.425 2.775V45.225C40.2 42.15 46.425 33.825 46.425 24Z" fill="#ED4C5C"/><path d="M16.425 45.225C18.75 46.05 21.3 46.5 23.925 46.5C26.55 46.5 29.1 46.05 31.425 45.225V2.775C29.1 1.95 26.625 1.5 23.925 1.5C21.225 1.5 18.75 1.95 16.425 2.775V45.225Z" fill="white"/></svg>`,
400
+ es: `<svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 24C1.5 28.425 2.775 32.55 4.95 36H42.975C45.15 32.55 46.425 28.425 46.425 24C46.425 19.575 45.15 15.45 42.975 12H4.95C2.775 15.45 1.5 19.575 1.5 24Z" fill="#FFCE31"/><path d="M43.05 12C39.075 5.7 32.025 1.5 24 1.5C15.975 1.5 8.92501 5.7 4.95001 12H43.05ZM4.95001 36C8.92501 42.3 15.975 46.5 24 46.5C32.025 46.5 39.075 42.3 43.05 36H4.95001Z" fill="#ED4C5C"/><path d="M6.89999 21.525H9.29999V22.875H6.89999V21.525ZM6.89999 31.425H9.37499V32.7H6.89999V31.425Z" fill="#C8B100"/><path d="M6.67499 29.325C6.44999 29.475 6.29999 29.625 6.29999 29.7C6.29999 29.775 6.37499 29.85 6.52499 29.925C6.67499 30 6.82499 30.15 6.74999 30.3C6.89999 30.15 6.97499 30 6.97499 29.85C6.97499 29.625 6.82499 29.4 6.67499 29.325Z" fill="#ED4C5C"/><path d="M7.27499 22.875H8.99999V31.425H7.27499V22.875Z" fill="white"/><path d="M10.8 26.025C10.425 25.875 9.75001 25.725 9.00001 25.725C8.77501 25.725 8.47501 25.725 8.17501 25.8C7.12501 25.95 6.30001 26.4 6.37501 26.7L6.00001 25.875C5.92501 25.5 6.82501 25.05 7.95001 24.825C8.32501 24.75 8.70001 24.75 9.00001 24.75C9.75001 24.75 10.425 24.825 10.8 24.975V26.025Z" fill="#ED4C5C"/><path d="M7.27501 27.15C6.82501 27.15 6.45001 27 6.45001 26.775C6.45001 26.625 6.60001 26.4 6.90001 26.25H7.35001L7.27501 27.15ZM9.00001 26.475C9.30001 26.55 9.52501 26.625 9.67501 26.7C9.75001 26.775 9.45001 27.075 9.00001 27.3V26.475Z" fill="#ED4C5C"/><path d="M6.15 28.8C6.075 28.65 6.6 28.35 7.275 28.125C7.575 28.05 7.8 27.9 8.175 27.75C9.075 27.375 9.825 26.85 9.675 26.7L9.825 27.6C9.9 27.75 9.3 28.2 8.4 28.65C8.1 28.8 7.575 29.025 7.275 29.1C6.75 29.25 6.3 29.55 6.3 29.625L6.15 28.8Z" fill="#ED4C5C"/><path d="M23.025 21.525H25.425V22.875H23.025V21.525ZM22.95 31.425H25.425V32.7H22.95V31.425Z" fill="#C8B100"/><path d="M25.65 29.325C25.875 29.475 26.025 29.625 26.025 29.7C26.025 29.775 25.95 29.85 25.8 29.925C25.65 30.075 25.5 30.3 25.575 30.375C25.425 30.225 25.35 30.075 25.35 29.925C25.35 29.625 25.5 29.4 25.65 29.325Z" fill="#ED4C5C"/><path d="M23.325 22.875H25.05V31.425H23.325V22.875Z" fill="white"/><path d="M21.525 26.025C21.9 25.875 22.575 25.725 23.325 25.725C23.55 25.725 23.85 25.725 24.15 25.8C25.2 25.95 26.025 26.4 25.95 26.7L26.325 25.8C26.4 25.425 25.5 24.975 24.375 24.75H23.325C22.575 24.75 21.9 24.825 21.525 24.975V26.025Z" fill="#ED4C5C"/><path d="M25.05 27.15C25.5 27.15 25.875 27 25.875 26.775C25.875 26.625 25.725 26.4 25.425 26.25H24.975L25.05 27.15ZM23.325 26.475C23.025 26.55 22.8 26.625 22.65 26.7C22.575 26.775 22.875 27.075 23.325 27.3V26.475Z" fill="#ED4C5C"/><path d="M26.175 28.8C26.25 28.65 25.725 28.35 25.05 28.125C24.75 28.05 24.525 27.9 24.15 27.75C23.25 27.375 22.5 26.85 22.65 26.7L22.5 27.6C22.425 27.75 23.025 28.2 23.925 28.65C24.225 28.8 24.75 29.025 25.05 29.1C25.575 29.25 26.025 29.625 25.95 29.7L26.175 28.8ZM16.125 16.725C17.55 16.725 20.475 17.025 21.525 18.075C20.4 20.775 18.6 19.65 16.125 19.65C13.725 19.65 11.85 20.775 10.725 18.075C11.775 17.025 14.625 16.725 16.125 16.725Z" fill="#ED4C5C"/><path d="M19.8 19.725C18.9 19.2 17.55 19.125 16.125 19.125C14.7 19.125 13.35 19.275 12.45 19.725L12.75 21C13.575 21.225 14.775 21.375 16.125 21.375C17.475 21.375 18.6 21.225 19.5 21L19.8 19.725ZM21.075 16.5C20.775 16.275 20.175 16.05 19.65 16.05C19.425 16.05 19.2 16.05 18.975 16.125C18.975 16.125 18.525 15.525 17.475 15.525C17.1 15.525 16.8 15.6 16.5 15.75V15.675C16.425 15.525 16.275 15.375 16.125 15.375C15.975 15.375 15.75 15.6 15.75 15.75V15.825C15.45 15.675 15.15 15.6 14.775 15.6C13.725 15.6 13.275 16.275 13.275 16.2C13.05 16.125 12.825 16.125 12.6 16.125C9.15001 16.125 10.875 18.45 10.875 18.45L11.25 18C10.425 16.95 11.175 16.35 12.675 16.35C12.9 16.35 13.05 16.35 13.2 16.425C12.675 17.175 13.65 17.85 13.65 17.85L13.875 17.475C13.35 17.1 13.275 15.825 14.775 15.825C15.15 15.825 15.45 15.9 15.75 16.125C15.75 16.2 15.675 17.25 15.6 17.4L16.2 17.925L16.8 17.4C16.725 17.175 16.65 16.2 16.65 16.125C16.875 15.975 17.25 15.825 17.625 15.825C19.2 15.825 19.2 17.1 18.525 17.475L18.75 17.85C18.75 17.85 19.575 17.175 19.2 16.425C19.35 16.425 19.575 16.35 19.725 16.35C21.525 16.35 21.6 17.7 21.15 18L21.45 18.45C21.3 18.45 22.125 17.4 21.075 16.5Z" fill="#C8B100"/><path d="M15.675 15.075C15.675 14.85 15.9 14.625 16.125 14.625C16.425 14.625 16.575 14.85 16.575 15.075C16.575 15.3 16.35 15.525 16.125 15.525C15.9 15.525 15.675 15.3 15.675 15.075Z" fill="#005BBF"/><path d="M15.975 13.8V14.025H15.75V14.25H15.975V15H15.675V15.225H16.575L16.65 15.075L16.575 15H16.275V14.25H16.5V14.025H16.275V13.8H15.975Z" fill="#C8B100"/><path d="M16.125 21.225C14.925 21.225 13.875 21.075 13.05 20.85C13.875 20.625 14.925 20.475 16.125 20.475C17.325 20.475 18.375 20.625 19.2 20.85C18.45 21.075 17.325 21.225 16.125 21.225Z" fill="#ED4C5C"/><path d="M16.2 34.2C14.775 34.2 13.425 33.825 12.225 33.3C11.325 32.85 10.8 32.025 10.8 31.05V27.45H21.6V31.05C21.6 32.025 21 32.925 20.175 33.3C18.975 33.9 17.625 34.2 16.2 34.2ZM16.125 21.45H21.525V27.45H16.125V21.45Z" fill="white"/><path d="M16.2 31.05C16.2 32.475 15 33.6 13.5 33.6C12 33.6 10.8 32.475 10.8 31.05V27.45H16.2V31.05Z" fill="#ED4C5C"/><path d="M11.925 33.15C12.075 33.225 12.3 33.375 12.6 33.45V27.3H12L11.925 33.15ZM10.725 30.975C10.725 31.725 11.025 32.325 11.325 32.625V27.3H10.725V30.975Z" fill="#C8B100"/><path d="M13.125 33.6H13.725V27.3H13.125V33.6Z" fill="#C7B500"/><path d="M14.325 33.45C14.55 33.375 14.85 33.225 15 33.15V27.3H14.4L14.325 33.45Z" fill="#C8B100"/><path d="M10.725 21.45H16.125V27.45H10.725V21.45Z" fill="#ED4C5C"/><path d="M15.6 32.625C15.9 32.4 16.125 31.875 16.2 31.275V27.375H15.6V32.625Z" fill="#C8B100"/><path d="M21.6 27.45V31.05C21.6 32.475 20.4 33.6 18.9 33.6C17.4 33.6 16.2 32.475 16.2 31.05V27.45H21.6ZM19.65 22.5C19.875 22.95 19.875 24.075 19.2 23.85C19.35 23.925 19.425 24.45 19.65 24.75C20.025 25.2 20.475 24.825 20.4 24.3C20.25 23.475 20.325 22.95 20.475 22.125C20.475 22.2 20.85 22.2 21 22.05C20.925 22.275 20.85 22.575 21 22.575C20.85 22.8 20.475 23.175 20.4 23.4C20.325 23.925 21.15 24.9 20.25 25.125C19.65 25.275 20.025 25.725 20.25 25.95C20.25 25.95 19.95 26.925 20.1 26.85C19.5 27.075 19.65 26.55 19.65 26.55C19.95 25.65 19.125 25.575 19.2 25.425C18.45 25.35 19.275 26.1 18.6 26.1C18.45 26.1 18.15 26.25 18.15 26.25C17.325 26.175 17.775 25.425 18.075 25.5C18.3 25.575 18.525 25.95 18.525 25.425C18.525 25.425 18.15 24.825 19.125 24.825C18.75 24.825 18.525 24.525 18.375 24.15C18.225 24.225 18 24.6 17.175 24.675C17.175 24.675 16.95 23.85 17.175 24C17.475 24.15 17.625 24.15 17.925 23.85C17.775 23.625 16.875 23.325 17.025 22.8C17.025 22.65 17.475 22.425 17.475 22.425C17.4 22.8 17.625 23.175 18.075 23.175C18.675 23.25 18.45 23.025 18.525 22.875C18.6 22.725 19.05 22.95 18.9 22.575C18.9 22.5 18.375 22.425 18.525 22.2C18.825 21.825 19.275 22.125 19.65 22.5ZM16.2 33.45L16.05 33.075L16.2 32.625L16.35 33.075L16.2 33.45Z" fill="#ED4C5C"/><path d="M12.375 22.725V23.1H12.525V23.4H12.15V24.15H12.375V25.8H11.925V26.625H15V25.8H14.625V24.15H14.775V23.4H14.4V23.1H14.625V22.725H13.875V23.1H14.025V23.4H13.65V22.5H13.875V22.125H13.05V22.5H13.275V23.4H12.9V23.1H13.05V22.725H12.375ZM20.85 31.95V28.2H16.95V31.95L18.75 32.775H18.975L20.85 31.95ZM18.75 28.5V29.775L17.475 28.5H18.75ZM17.175 28.575L18.675 30.075L17.175 31.575V28.575ZM17.325 31.875L18.75 30.45V32.55L17.325 31.875ZM18.975 32.475V30.375L20.4 31.8L18.975 32.475ZM20.55 31.575L19.05 30.075L20.55 28.575V31.575ZM18.975 28.5H20.25L18.975 29.775V28.5Z" fill="#C8B100"/><path d="M14.4 27.375C14.4 26.25 15.15 25.425 16.125 25.425C17.1 25.425 17.85 26.325 17.85 27.375C17.85 28.425 17.1 29.325 16.125 29.325C15.15 29.325 14.4 28.5 14.4 27.375Z" fill="#ED4C5C"/><path d="M14.925 27.375C14.925 26.55 15.45 25.95 16.125 25.95C16.8 25.95 17.325 26.625 17.325 27.375C17.325 28.2 16.8 28.8 16.125 28.8C15.525 28.875 14.925 28.2 14.925 27.375Z" fill="#005BBF"/><path d="M15.6 26.4L15.3 27.225L15.525 27.3L15.375 27.6H15.825L15.675 27.3L15.9 27.225L15.6 26.4ZM16.725 26.4L16.425 27.225L16.65 27.3L16.5 27.6H16.95L16.875 27.3L17.1 27.225L16.725 26.4ZM16.2 27.375L15.825 28.2L16.05 28.275L15.975 28.575H16.35L16.275 28.275L16.5 28.2L16.2 27.375Z" fill="#C8B100"/></svg>`,
401
+ pl: `<svg width="100%" height="100%" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 1.5C36.45 1.5 46.5 11.55 46.5 24H1.5C1.5 11.55 11.55 1.5 24 1.5Z" fill="#F9F9F9"/><path d="M24 46.5C11.55 46.5 1.5 36.45 1.5 24H46.5C46.5 36.45 36.45 46.5 24 46.5Z" fill="#ED4C5C"/></svg>`,
425
402
  };
426
403
  return svgs[name];
427
404
  };
package/dist/index.d.ts CHANGED
@@ -24,6 +24,6 @@ import Text from './Text.svelte';
24
24
  import Weather from './Weather.svelte';
25
25
  import PageComponent from './PageComponent.svelte';
26
26
  export type { OccuplanTranslations } from './occuplan/state.svelte.ts';
27
- export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, Block, PageProps, Nav as NavI, FormatSpec, FormatTemplateName, SiteConfig, SiteFonts, SiteTranslation, FontSpec, } from './types.js';
27
+ export type { GridPhoto, LeafletMap as LeafletMapI, LeafletMapContent, Calendar as CalendarI, CalendarContent, CalendarAvailable as CalendarAvailableI, CalendarAvailableContent, CalendarGrid as CalendarGridI, CalendarGridContent, CalendarRows as CalendarRowsI, CalendarRowsContent, Text as TextI, TextContent, Weather as WeatherI, WeatherContent, Photo as PhotoI, PhotoContent, PhotoGallery as PhotoGalleryI, PhotoGalleryContent, Pricing as PricingI, PricingContent, PricingShort as PricingShortI, PricingShortContent, PricingEntry, PricingRange, PricingColumn, StaticRangeDate, StaticPricingRange, AmenitiesCore as AmenitiesCoreI, AmenitiesCoreContent, AccoCard as AccoCardI, AccoCardContent, ContactForm as ContactFormI, ContactFormContent, BookingRequest as BookingRequestI, BookingRequestContent, CardContent, AccoDescription as AccoDescriptionI, AccoDescriptionContent, Section as SectionI, I18nFacade, Block, PageProps, Nav as NavI, FormatSpec, FormatTemplateName, SiteConfig, SiteFonts, SiteTranslation, FontSpec, Hero, } from './types.js';
28
28
  export { PRICING_COLUMNS, isAccoCard, isText, isPhoto, isGallery, isLeafletMap, isWeather, isAmenitiesCore, isCalendarAvailable, isCalendar, isCalendarGrid, isCalendarRows, isPricing, isPricingShort, isAccoDescription, isBookingRequest, isContactForm, } from './types.js';
29
29
  export { randomID, randomName, Avatar, Button, Icon, Spinner, TextInput, AccoCard, AccoDescription, AmenitiesCore, Calendar, CalendarAvailable, LeafletMap, Photo, PhotoGallery, Pricing, PricingShort, Section, Text, Weather, BookingRequest, ContactForm, CalendarRows, CalendarGrid, Notes, PageComponent, };
package/dist/types.d.ts CHANGED
@@ -340,6 +340,7 @@ export interface PageProps {
340
340
  header?: string;
341
341
  showFooter?: boolean;
342
342
  fixedHamburger?: boolean;
343
+ navbarOverHamburger?: boolean;
343
344
  content?: Section[];
344
345
  }
345
346
  export interface NavItem {
@@ -376,6 +377,14 @@ export interface I18nFacade {
376
377
  formatDateFunc?: (d: DateTime | string) => string;
377
378
  updateCurrentLang?: (lang: string) => void;
378
379
  }
380
+ export interface Lang {
381
+ flag: string;
382
+ short: string;
383
+ englishName: string;
384
+ locale: string;
385
+ active: boolean;
386
+ }
387
+ export declare const Languages: Record<string, Lang>;
379
388
  export declare const isAccoCard: (b: Block) => b is AccoCard;
380
389
  export declare const isText: (b: Block) => b is Text;
381
390
  export declare const isPhoto: (b: Block) => b is Photo;
package/dist/types.js CHANGED
@@ -27,6 +27,47 @@ export const FORMAT_TEMPLATE_NAMES = [
27
27
  'size',
28
28
  'bed',
29
29
  ];
30
+ export const Languages = {
31
+ en: {
32
+ active: true,
33
+ short: 'en',
34
+ englishName: 'English',
35
+ locale: 'en-US',
36
+ flag: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M36 4.95C32.475 2.775 28.425 1.5 24 1.5V4.95H36Z" fill="#ED4C5C"/><path d="M24 8.4H40.2C38.925 7.125 37.5 5.925 36 4.95H24V8.4Z" fill="white"/><path d="M24 11.85H42.975C42.15 10.575 41.25 9.44999 40.275 8.39999H24V11.85Z" fill="#ED4C5C"/><path d="M24 15.3H44.775C44.25 14.1 43.65 12.9 42.975 11.85H24V15.3Z" fill="white"/><path d="M24 18.75H45.9C45.6 17.55 45.225 16.425 44.775 15.3H24V18.75Z" fill="#ED4C5C"/><path d="M24 22.275H46.425C46.35 21.075 46.125 19.95 45.9 18.825H24V22.275Z" fill="white"/><path d="M46.425 22.275H24V24H1.5C1.5 24.6 1.5 25.125 1.575 25.725H46.425C46.5 25.125 46.5 24.6 46.5 24C46.5 23.4 46.5 22.8 46.425 22.275Z" fill="#ED4C5C"/><path d="M2.10001 29.175H45.9C46.2 28.05 46.35 26.925 46.425 25.725H1.57501C1.65001 26.85 1.87501 28.05 2.10001 29.175Z" fill="white"/><path d="M3.22501 32.625H44.775C45.225 31.5 45.6 30.375 45.9 29.175H2.10001C2.40001 30.375 2.77501 31.5 3.22501 32.625Z" fill="#ED4C5C"/><path d="M5.02501 36.075H42.975C43.65 34.95 44.25 33.825 44.775 32.625H3.22501C3.75001 33.825 4.35001 34.95 5.02501 36.075Z" fill="white"/><path d="M7.72499 39.525H40.275C41.25 38.475 42.225 37.275 42.975 36.075H5.02499C5.77499 37.35 6.74999 38.475 7.72499 39.525Z" fill="#ED4C5C"/><path d="M11.925 42.975H36.075C37.65 42 39 40.8 40.275 39.525H7.72501C9.00001 40.875 10.425 42 11.925 42.975Z" fill="white"/><path d="M24 46.5C28.425 46.5 32.55 45.225 36.075 42.975H11.925C15.45 45.225 19.575 46.5 24 46.5Z" fill="#ED4C5C"/><path d="M12 4.95C10.425 5.925 9 7.125 7.725 8.4C6.675 9.45 5.775 10.65 5.025 11.85C4.35 12.975 3.675 14.1 3.225 15.3C2.775 16.425 2.4 17.55 2.1 18.75C1.8 19.875 1.65 21 1.575 22.2C1.5 22.8 1.5 23.4 1.5 24H24V1.5C19.575 1.5 15.525 2.775 12 4.95Z" fill="#428BC1"/><path d="M18.75 2.25L19.125 3.375H20.25L19.35 4.125L19.65 5.25L18.75 4.575L17.85 5.25L18.15 4.125L17.25 3.375H18.375L18.75 2.25ZM21.75 6.75L22.125 7.875H23.25L22.35 8.625L22.65 9.75L21.75 9.075L20.85 9.75L21.15 8.625L20.25 7.875H21.375L21.75 6.75ZM15.75 6.75L16.125 7.875H17.25L16.35 8.625L16.65 9.75L15.75 9.075L14.85 9.75L15.15 8.625L14.25 7.875H15.375L15.75 6.75ZM18.75 11.25L19.125 12.375H20.25L19.35 13.125L19.65 14.25L18.75 13.575L17.85 14.25L18.15 13.125L17.25 12.375H18.375L18.75 11.25ZM12.75 11.25L13.125 12.375H14.25L13.35 13.125L13.65 14.25L12.75 13.575L11.85 14.25L12.15 13.125L11.25 12.375H12.375L12.75 11.25ZM6.74999 11.25L7.12499 12.375H8.24999L7.34999 13.125L7.64999 14.25L6.74999 13.575L5.84999 14.25L6.14999 13.125L5.24999 12.375H6.37499L6.74999 11.25ZM21.75 15.75L22.125 16.875H23.25L22.35 17.625L22.65 18.75L21.75 18.075L20.85 18.75L21.15 17.625L20.25 16.875H21.375L21.75 15.75ZM15.75 15.75L16.125 16.875H17.25L16.35 17.625L16.65 18.75L15.75 18.075L14.85 18.75L15.15 17.625L14.25 16.875H15.375L15.75 15.75ZM9.74999 15.75L10.125 16.875H11.25L10.35 17.625L10.65 18.75L9.74999 18.075L8.84999 18.75L9.14999 17.625L8.24999 16.875H9.37499L9.74999 15.75ZM18.75 20.25L19.125 21.375H20.25L19.35 22.125L19.65 23.25L18.75 22.575L17.85 23.25L18.15 22.125L17.25 21.375H18.375L18.75 20.25ZM12.75 20.25L13.125 21.375H14.25L13.35 22.125L13.65 23.25L12.75 22.575L11.85 23.25L12.15 22.125L11.25 21.375H12.375L12.75 20.25ZM6.74999 20.25L7.12499 21.375H8.24999L7.34999 22.125L7.64999 23.25L6.74999 22.575L5.84999 23.25L6.14999 22.125L5.24999 21.375H6.37499L6.74999 20.25ZM8.84999 9.75L9.74999 9.075L10.65 9.75L10.275 8.625L11.175 7.875H10.05L9.74999 6.75L9.37499 7.875H8.32499L9.22499 8.55L8.84999 9.75ZM2.84999 18.75L3.74999 18.075L4.64999 18.75L4.27499 17.625L5.17499 16.875H4.12499L3.74999 15.75L3.37499 16.875H2.62499C2.62499 16.95 2.54999 17.025 2.54999 17.1L3.14999 17.55L2.84999 18.75Z" fill="white"/>
37
+ </svg>
38
+ `,
39
+ },
40
+ de: {
41
+ active: true,
42
+ short: 'de',
43
+ englishName: 'German',
44
+ locale: 'de-DE',
45
+ flag: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.925 1.5C14.1 1.5 5.77501 7.8 2.70001 16.5H45.15C42.075 7.8 33.75 1.5 23.925 1.5Z" fill="#3E4347"/><path d="M23.925 46.5C33.75 46.5 42.075 40.275 45.15 31.5H2.70001C5.77501 40.275 14.1 46.5 23.925 46.5Z" fill="#FFE62E"/><path d="M2.69999 16.5C1.87499 18.825 1.42499 21.375 1.42499 24C1.42499 26.625 1.87499 29.175 2.69999 31.5H45.15C45.975 29.175 46.425 26.625 46.425 24C46.425 21.375 45.975 18.825 45.15 16.5H2.69999Z" fill="#ED4C5C"/></svg>`,
46
+ },
47
+ fr: {
48
+ active: true,
49
+ short: 'fr',
50
+ englishName: 'French',
51
+ locale: 'fr-FR',
52
+ flag: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M1.42499 24C1.42499 33.825 7.72499 42.15 16.425 45.225V2.775C7.72499 5.85 1.42499 14.175 1.42499 24Z" fill="#428BC1"/><path d="M46.425 24C46.425 14.175 40.2 5.85 31.425 2.775V45.225C40.2 42.15 46.425 33.825 46.425 24Z" fill="#ED4C5C"/><path d="M16.425 45.225C18.75 46.05 21.3 46.5 23.925 46.5C26.55 46.5 29.1 46.05 31.425 45.225V2.775C29.1 1.95 26.625 1.5 23.925 1.5C21.225 1.5 18.75 1.95 16.425 2.775V45.225Z" fill="white"/>
53
+ </svg>
54
+ `,
55
+ },
56
+ es: {
57
+ active: true,
58
+ short: 'es',
59
+ englishName: 'Spanish',
60
+ locale: 'es-ES',
61
+ flag: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.5 24C1.5 28.425 2.775 32.55 4.95 36H42.975C45.15 32.55 46.425 28.425 46.425 24C46.425 19.575 45.15 15.45 42.975 12H4.95C2.775 15.45 1.5 19.575 1.5 24Z" fill="#FFCE31"/><path d="M43.05 12C39.075 5.7 32.025 1.5 24 1.5C15.975 1.5 8.92501 5.7 4.95001 12H43.05ZM4.95001 36C8.92501 42.3 15.975 46.5 24 46.5C32.025 46.5 39.075 42.3 43.05 36H4.95001Z" fill="#ED4C5C"/><path d="M6.89999 21.525H9.29999V22.875H6.89999V21.525ZM6.89999 31.425H9.37499V32.7H6.89999V31.425Z" fill="#C8B100"/><path d="M6.67499 29.325C6.44999 29.475 6.29999 29.625 6.29999 29.7C6.29999 29.775 6.37499 29.85 6.52499 29.925C6.67499 30 6.82499 30.15 6.74999 30.3C6.89999 30.15 6.97499 30 6.97499 29.85C6.97499 29.625 6.82499 29.4 6.67499 29.325Z" fill="#ED4C5C"/><path d="M7.27499 22.875H8.99999V31.425H7.27499V22.875Z" fill="white"/><path d="M10.8 26.025C10.425 25.875 9.75001 25.725 9.00001 25.725C8.77501 25.725 8.47501 25.725 8.17501 25.8C7.12501 25.95 6.30001 26.4 6.37501 26.7L6.00001 25.875C5.92501 25.5 6.82501 25.05 7.95001 24.825C8.32501 24.75 8.70001 24.75 9.00001 24.75C9.75001 24.75 10.425 24.825 10.8 24.975V26.025Z" fill="#ED4C5C"/><path d="M7.27501 27.15C6.82501 27.15 6.45001 27 6.45001 26.775C6.45001 26.625 6.60001 26.4 6.90001 26.25H7.35001L7.27501 27.15ZM9.00001 26.475C9.30001 26.55 9.52501 26.625 9.67501 26.7C9.75001 26.775 9.45001 27.075 9.00001 27.3V26.475Z" fill="#ED4C5C"/><path d="M6.15 28.8C6.075 28.65 6.6 28.35 7.275 28.125C7.575 28.05 7.8 27.9 8.175 27.75C9.075 27.375 9.825 26.85 9.675 26.7L9.825 27.6C9.9 27.75 9.3 28.2 8.4 28.65C8.1 28.8 7.575 29.025 7.275 29.1C6.75 29.25 6.3 29.55 6.3 29.625L6.15 28.8Z" fill="#ED4C5C"/><path d="M23.025 21.525H25.425V22.875H23.025V21.525ZM22.95 31.425H25.425V32.7H22.95V31.425Z" fill="#C8B100"/><path d="M25.65 29.325C25.875 29.475 26.025 29.625 26.025 29.7C26.025 29.775 25.95 29.85 25.8 29.925C25.65 30.075 25.5 30.3 25.575 30.375C25.425 30.225 25.35 30.075 25.35 29.925C25.35 29.625 25.5 29.4 25.65 29.325Z" fill="#ED4C5C"/><path d="M23.325 22.875H25.05V31.425H23.325V22.875Z" fill="white"/><path d="M21.525 26.025C21.9 25.875 22.575 25.725 23.325 25.725C23.55 25.725 23.85 25.725 24.15 25.8C25.2 25.95 26.025 26.4 25.95 26.7L26.325 25.8C26.4 25.425 25.5 24.975 24.375 24.75H23.325C22.575 24.75 21.9 24.825 21.525 24.975V26.025Z" fill="#ED4C5C"/><path d="M25.05 27.15C25.5 27.15 25.875 27 25.875 26.775C25.875 26.625 25.725 26.4 25.425 26.25H24.975L25.05 27.15ZM23.325 26.475C23.025 26.55 22.8 26.625 22.65 26.7C22.575 26.775 22.875 27.075 23.325 27.3V26.475Z" fill="#ED4C5C"/><path d="M26.175 28.8C26.25 28.65 25.725 28.35 25.05 28.125C24.75 28.05 24.525 27.9 24.15 27.75C23.25 27.375 22.5 26.85 22.65 26.7L22.5 27.6C22.425 27.75 23.025 28.2 23.925 28.65C24.225 28.8 24.75 29.025 25.05 29.1C25.575 29.25 26.025 29.625 25.95 29.7L26.175 28.8ZM16.125 16.725C17.55 16.725 20.475 17.025 21.525 18.075C20.4 20.775 18.6 19.65 16.125 19.65C13.725 19.65 11.85 20.775 10.725 18.075C11.775 17.025 14.625 16.725 16.125 16.725Z" fill="#ED4C5C"/><path d="M19.8 19.725C18.9 19.2 17.55 19.125 16.125 19.125C14.7 19.125 13.35 19.275 12.45 19.725L12.75 21C13.575 21.225 14.775 21.375 16.125 21.375C17.475 21.375 18.6 21.225 19.5 21L19.8 19.725ZM21.075 16.5C20.775 16.275 20.175 16.05 19.65 16.05C19.425 16.05 19.2 16.05 18.975 16.125C18.975 16.125 18.525 15.525 17.475 15.525C17.1 15.525 16.8 15.6 16.5 15.75V15.675C16.425 15.525 16.275 15.375 16.125 15.375C15.975 15.375 15.75 15.6 15.75 15.75V15.825C15.45 15.675 15.15 15.6 14.775 15.6C13.725 15.6 13.275 16.275 13.275 16.2C13.05 16.125 12.825 16.125 12.6 16.125C9.15001 16.125 10.875 18.45 10.875 18.45L11.25 18C10.425 16.95 11.175 16.35 12.675 16.35C12.9 16.35 13.05 16.35 13.2 16.425C12.675 17.175 13.65 17.85 13.65 17.85L13.875 17.475C13.35 17.1 13.275 15.825 14.775 15.825C15.15 15.825 15.45 15.9 15.75 16.125C15.75 16.2 15.675 17.25 15.6 17.4L16.2 17.925L16.8 17.4C16.725 17.175 16.65 16.2 16.65 16.125C16.875 15.975 17.25 15.825 17.625 15.825C19.2 15.825 19.2 17.1 18.525 17.475L18.75 17.85C18.75 17.85 19.575 17.175 19.2 16.425C19.35 16.425 19.575 16.35 19.725 16.35C21.525 16.35 21.6 17.7 21.15 18L21.45 18.45C21.3 18.45 22.125 17.4 21.075 16.5Z" fill="#C8B100"/><path d="M15.675 15.075C15.675 14.85 15.9 14.625 16.125 14.625C16.425 14.625 16.575 14.85 16.575 15.075C16.575 15.3 16.35 15.525 16.125 15.525C15.9 15.525 15.675 15.3 15.675 15.075Z" fill="#005BBF"/><path d="M15.975 13.8V14.025H15.75V14.25H15.975V15H15.675V15.225H16.575L16.65 15.075L16.575 15H16.275V14.25H16.5V14.025H16.275V13.8H15.975Z" fill="#C8B100"/><path d="M16.125 21.225C14.925 21.225 13.875 21.075 13.05 20.85C13.875 20.625 14.925 20.475 16.125 20.475C17.325 20.475 18.375 20.625 19.2 20.85C18.45 21.075 17.325 21.225 16.125 21.225Z" fill="#ED4C5C"/><path d="M16.2 34.2C14.775 34.2 13.425 33.825 12.225 33.3C11.325 32.85 10.8 32.025 10.8 31.05V27.45H21.6V31.05C21.6 32.025 21 32.925 20.175 33.3C18.975 33.9 17.625 34.2 16.2 34.2ZM16.125 21.45H21.525V27.45H16.125V21.45Z" fill="white"/><path d="M16.2 31.05C16.2 32.475 15 33.6 13.5 33.6C12 33.6 10.8 32.475 10.8 31.05V27.45H16.2V31.05Z" fill="#ED4C5C"/><path d="M11.925 33.15C12.075 33.225 12.3 33.375 12.6 33.45V27.3H12L11.925 33.15ZM10.725 30.975C10.725 31.725 11.025 32.325 11.325 32.625V27.3H10.725V30.975Z" fill="#C8B100"/><path d="M13.125 33.6H13.725V27.3H13.125V33.6Z" fill="#C7B500"/><path d="M14.325 33.45C14.55 33.375 14.85 33.225 15 33.15V27.3H14.4L14.325 33.45Z" fill="#C8B100"/><path d="M10.725 21.45H16.125V27.45H10.725V21.45Z" fill="#ED4C5C"/><path d="M15.6 32.625C15.9 32.4 16.125 31.875 16.2 31.275V27.375H15.6V32.625Z" fill="#C8B100"/><path d="M21.6 27.45V31.05C21.6 32.475 20.4 33.6 18.9 33.6C17.4 33.6 16.2 32.475 16.2 31.05V27.45H21.6ZM19.65 22.5C19.875 22.95 19.875 24.075 19.2 23.85C19.35 23.925 19.425 24.45 19.65 24.75C20.025 25.2 20.475 24.825 20.4 24.3C20.25 23.475 20.325 22.95 20.475 22.125C20.475 22.2 20.85 22.2 21 22.05C20.925 22.275 20.85 22.575 21 22.575C20.85 22.8 20.475 23.175 20.4 23.4C20.325 23.925 21.15 24.9 20.25 25.125C19.65 25.275 20.025 25.725 20.25 25.95C20.25 25.95 19.95 26.925 20.1 26.85C19.5 27.075 19.65 26.55 19.65 26.55C19.95 25.65 19.125 25.575 19.2 25.425C18.45 25.35 19.275 26.1 18.6 26.1C18.45 26.1 18.15 26.25 18.15 26.25C17.325 26.175 17.775 25.425 18.075 25.5C18.3 25.575 18.525 25.95 18.525 25.425C18.525 25.425 18.15 24.825 19.125 24.825C18.75 24.825 18.525 24.525 18.375 24.15C18.225 24.225 18 24.6 17.175 24.675C17.175 24.675 16.95 23.85 17.175 24C17.475 24.15 17.625 24.15 17.925 23.85C17.775 23.625 16.875 23.325 17.025 22.8C17.025 22.65 17.475 22.425 17.475 22.425C17.4 22.8 17.625 23.175 18.075 23.175C18.675 23.25 18.45 23.025 18.525 22.875C18.6 22.725 19.05 22.95 18.9 22.575C18.9 22.5 18.375 22.425 18.525 22.2C18.825 21.825 19.275 22.125 19.65 22.5ZM16.2 33.45L16.05 33.075L16.2 32.625L16.35 33.075L16.2 33.45Z" fill="#ED4C5C"/><path d="M12.375 22.725V23.1H12.525V23.4H12.15V24.15H12.375V25.8H11.925V26.625H15V25.8H14.625V24.15H14.775V23.4H14.4V23.1H14.625V22.725H13.875V23.1H14.025V23.4H13.65V22.5H13.875V22.125H13.05V22.5H13.275V23.4H12.9V23.1H13.05V22.725H12.375ZM20.85 31.95V28.2H16.95V31.95L18.75 32.775H18.975L20.85 31.95ZM18.75 28.5V29.775L17.475 28.5H18.75ZM17.175 28.575L18.675 30.075L17.175 31.575V28.575ZM17.325 31.875L18.75 30.45V32.55L17.325 31.875ZM18.975 32.475V30.375L20.4 31.8L18.975 32.475ZM20.55 31.575L19.05 30.075L20.55 28.575V31.575ZM18.975 28.5H20.25L18.975 29.775V28.5Z" fill="#C8B100"/><path d="M14.4 27.375C14.4 26.25 15.15 25.425 16.125 25.425C17.1 25.425 17.85 26.325 17.85 27.375C17.85 28.425 17.1 29.325 16.125 29.325C15.15 29.325 14.4 28.5 14.4 27.375Z" fill="#ED4C5C"/><path d="M14.925 27.375C14.925 26.55 15.45 25.95 16.125 25.95C16.8 25.95 17.325 26.625 17.325 27.375C17.325 28.2 16.8 28.8 16.125 28.8C15.525 28.875 14.925 28.2 14.925 27.375Z" fill="#005BBF"/><path d="M15.6 26.4L15.3 27.225L15.525 27.3L15.375 27.6H15.825L15.675 27.3L15.9 27.225L15.6 26.4ZM16.725 26.4L16.425 27.225L16.65 27.3L16.5 27.6H16.95L16.875 27.3L17.1 27.225L16.725 26.4ZM16.2 27.375L15.825 28.2L16.05 28.275L15.975 28.575H16.35L16.275 28.275L16.5 28.2L16.2 27.375Z" fill="#C8B100"/></svg>`,
62
+ },
63
+ pl: {
64
+ active: true,
65
+ short: 'pl',
66
+ englishName: 'Polish',
67
+ locale: 'pl-PL',
68
+ flag: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 1.5C36.45 1.5 46.5 11.55 46.5 24H1.5C1.5 11.55 11.55 1.5 24 1.5Z" fill="#F9F9F9"/><path d="M24 46.5C11.55 46.5 1.5 36.45 1.5 24H46.5C46.5 36.45 36.45 46.5 24 46.5Z" fill="#ED4C5C"/></svg>`,
69
+ },
70
+ };
30
71
  export const isAccoCard = (b) => {
31
72
  if (!b)
32
73
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -46,7 +46,7 @@
46
46
  "prettier": "^3.4.2",
47
47
  "prettier-plugin-svelte": "^3.3.3",
48
48
  "publint": "^0.3.2",
49
- "svelte": "^5.19.2",
49
+ "svelte": "^5.19.6",
50
50
  "svelte-check": "^4.1.4",
51
51
  "typescript": "^5.7.3",
52
52
  "vite": "^6.0.11",