@leabankab/component-library 8.12.0 → 8.13.0

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/tailwind.css CHANGED
@@ -293,3 +293,130 @@
293
293
  --ease-standard: var(--lea-easing-standard);
294
294
  --ease-spring: var(--lea-easing-spring);
295
295
  }
296
+
297
+ /*
298
+ * The looks of Button (solid, primary, md) and Input (label outside the
299
+ * field), for markup the app doesn't render itself, such as a form from a
300
+ * third party. Put them on the elements, or on a parent through a variant:
301
+ *
302
+ * <div class="[&_input]:lea-input [&_button]:lea-button">
303
+ *
304
+ * Where the app renders the markup, use the components.
305
+ */
306
+ @utility lea-button {
307
+ display: inline-flex;
308
+ min-height: 2.75rem;
309
+ box-sizing: border-box;
310
+ flex-shrink: 0;
311
+ align-items: center;
312
+ justify-content: center;
313
+ gap: var(--lea-spacing);
314
+ padding-block: var(--lea-spacing-0-5);
315
+ padding-inline: var(--lea-spacing-2-5);
316
+ margin: 0;
317
+ border: 1px solid transparent;
318
+ border-radius: var(--lea-radius-full);
319
+ background-color: var(--lea-palette-primary-base);
320
+ color: var(--lea-palette-primary-contrast);
321
+ cursor: pointer;
322
+ font-family: inherit;
323
+ font-size: var(--lea-text-label-lg-font-size);
324
+ font-weight: var(--lea-text-label-lg-font-weight);
325
+ letter-spacing: var(--lea-text-label-lg-letter-spacing);
326
+ line-height: var(--lea-text-label-lg-line-height);
327
+ text-align: center;
328
+ text-decoration: none;
329
+ transition:
330
+ background-color var(--lea-duration-normal) var(--lea-easing-standard),
331
+ color var(--lea-duration-normal) var(--lea-easing-standard);
332
+ user-select: none;
333
+ -webkit-tap-highlight-color: transparent;
334
+
335
+ &:focus-visible {
336
+ outline: 2px solid var(--lea-palette-text-base);
337
+ outline-offset: 0.125rem;
338
+ }
339
+
340
+ @media (hover: hover) {
341
+ &:hover:not(:disabled, [aria-disabled="true"]) {
342
+ background-color: var(--lea-palette-primary-hover);
343
+ }
344
+ }
345
+
346
+ &:disabled,
347
+ &[aria-disabled="true"] {
348
+ background-color: var(--lea-color-neutral-200);
349
+ color: var(--lea-color-neutral-600);
350
+ cursor: not-allowed;
351
+ }
352
+
353
+ @media (prefers-reduced-motion: reduce) {
354
+ transition-duration: 0.01ms;
355
+ }
356
+ }
357
+
358
+ @utility lea-input {
359
+ display: block;
360
+ width: 100%;
361
+ min-width: 0;
362
+ box-sizing: border-box;
363
+ /* 54px tall, the height of every single-line field, with the text centred. */
364
+ padding-block: calc(
365
+ (var(--lea-spacing) * 6.75 - var(--lea-text-body-md-line-height) * 1em) / 2
366
+ );
367
+ padding-inline: calc(var(--lea-spacing) * 1.75);
368
+ margin: 0;
369
+ border: 0;
370
+ border-radius: var(--lea-radius-xl);
371
+ appearance: none;
372
+ background-color: transparent;
373
+ box-shadow: inset 0 0 0 1px var(--lea-color-neutral-300);
374
+ color: var(--lea-palette-text-base);
375
+ font-family: inherit;
376
+ font-size: var(--lea-text-body-md-font-size);
377
+ font-weight: var(--lea-text-body-md-font-weight);
378
+ letter-spacing: var(--lea-text-body-md-letter-spacing);
379
+ line-height: var(--lea-text-body-md-line-height);
380
+ /* The 2px border of the focused field is the focus indicator. */
381
+ outline: none;
382
+
383
+ &::placeholder {
384
+ color: var(--lea-palette-text-muted);
385
+ opacity: 1;
386
+ }
387
+
388
+ @media (hover: hover) {
389
+ &:hover:not(:focus, :disabled, [aria-invalid="true"]) {
390
+ box-shadow: inset 0 0 0 2px var(--lea-palette-border-strong);
391
+ }
392
+ }
393
+
394
+ &:focus {
395
+ box-shadow: inset 0 0 0 2px var(--lea-palette-border-accent);
396
+ }
397
+
398
+ /* After focus, so an invalid field stays red in every state. */
399
+ &[aria-invalid="true"] {
400
+ box-shadow: inset 0 0 0 2px var(--lea-palette-status-error-base);
401
+ }
402
+
403
+ &:disabled {
404
+ color: var(--lea-palette-text-muted);
405
+ cursor: not-allowed;
406
+ }
407
+
408
+ /* Keeps the browser's autofill tint off the field, under the border. */
409
+ &:-webkit-autofill {
410
+ box-shadow:
411
+ inset 0 0 0 1px var(--lea-color-neutral-300),
412
+ inset 0 0 0 100px var(--lea-palette-bg-base);
413
+ caret-color: var(--lea-palette-text-base);
414
+ -webkit-text-fill-color: var(--lea-palette-text-base);
415
+ }
416
+
417
+ &:-webkit-autofill:focus {
418
+ box-shadow:
419
+ inset 0 0 0 2px var(--lea-palette-border-accent),
420
+ inset 0 0 0 100px var(--lea-palette-bg-base);
421
+ }
422
+ }
@@ -2,21 +2,28 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  export type ArrowRevealLinkProps = useRender.ComponentProps<"a"> & {
3
3
  /**
4
4
  * `"md"`: the header's menus, 16px, the arrow growing in on hover. `"lg"`:
5
- * the `SideNav`, 18px, underlined on hover, the arrow before the link to
6
- * the current page (`aria-current="page"`) only.
5
+ * the `SideNav`, 18px, underlined on hover, the arrow before the
6
+ * `marked` link only.
7
7
  * @default "md"
8
8
  */
9
9
  size?: "md" | "lg";
10
+ /**
11
+ * `lg` only: the arrow shows before this link, and grows in when it is
12
+ * set. `SideNav` marks the current page's link, and a link as soon as it
13
+ * is clicked.
14
+ */
15
+ marked?: boolean;
10
16
  };
11
17
  /**
12
18
  * Internal: Figma's `.ArrowRevealLink`. At `md`, the links of the header's
13
19
  * menus: a plain 16px link whose purple arrow grows in on hover while the
14
20
  * text turns purple and steps aside, as the website's `DropdownLink`. At
15
21
  * `lg`, the links of `SideNav`: 18px, underlined on hover, and the arrow
16
- * marks the current page, as the website's `SidebarLink`. Not exported.
22
+ * marks the current page (`marked`), as the website's `SidebarLink`. Not
23
+ * exported.
17
24
  *
18
25
  * Renders an `<a>`, or the element passed to `render`: a router link, or the
19
26
  * `NavigationMenu.Link` of the desktop menu, which renders the page's own
20
27
  * link in turn.
21
28
  */
22
- export declare function ArrowRevealLink({ render, className, children, size, ...rest }: ArrowRevealLinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
29
+ export declare function ArrowRevealLink({ render, className, children, size, marked, ...rest }: ArrowRevealLinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
@@ -14,7 +14,8 @@ export type CalculatorProps = Omit<useRender.ComponentProps<"div">, "ref" | "chi
14
14
  header?: ReactNode;
15
15
  /**
16
16
  * The inputs, in the panel: `Slider`s with `color="contrast"`, each with
17
- * its `label`, `min`, `max`, `step`, `format` and `locale`.
17
+ * its `label`, `min`, `max`, `step`, and `format` and `locale` or, for a
18
+ * unit such as "kr/måned", `formatValue`.
18
19
  */
19
20
  children: ReactNode;
20
21
  /**
@@ -2,6 +2,12 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import { ReactElement, ReactNode, Ref } from 'react';
3
3
  import { SurfaceRoles } from '../../components/color-roles';
4
4
  export type ExpandingCardsItemSurface = SurfaceRoles<"base" | "subtle" | "muted" | "contrast" | "contrast-accent">;
5
+ /**
6
+ * How a photo behind the whole card follows the card as it opens in the
7
+ * row: `"zoom"` crops it to the card, so it grows as the card widens;
8
+ * `"expand"` keeps it at the open card's size, so opening uncovers its sides.
9
+ */
10
+ export type ExpandingCardsItemImageMotion = "zoom" | "expand";
5
11
  /** `alt` is required with a photo, `""` when it is decoration. */
6
12
  type ExpandingCardsItemImage = {
7
13
  /** The photo: the whole card while it is closed, half of it open. */
@@ -13,10 +19,28 @@ type ExpandingCardsItemImage = {
13
19
  * `next/image` with `fill`. Its own props win over `src` and `alt`.
14
20
  */
15
21
  imageRender?: ReactElement;
22
+ /**
23
+ * The photo fills the whole card, open as well as closed, and the
24
+ * title, text and action sit in a box of the card's colour at its
25
+ * bottom-start corner, 16px in.
26
+ * @default false
27
+ */
28
+ imageAsBackground?: boolean;
29
+ /**
30
+ * With `imageAsBackground`, how the photo follows the card as it
31
+ * opens in the row: `"zoom"` keeps it cropped to the card, so it
32
+ * grows as the card widens; `"expand"` keeps it the size of the open
33
+ * card and centred, so opening uncovers its sides without scaling it.
34
+ * The same outside the row, where every card is open.
35
+ * @default "zoom"
36
+ */
37
+ imageMotion?: ExpandingCardsItemImageMotion;
16
38
  } | {
17
39
  src?: undefined;
18
40
  alt?: undefined;
19
41
  imageRender?: undefined;
42
+ imageAsBackground?: undefined;
43
+ imageMotion?: undefined;
20
44
  };
21
45
  export type ExpandingCardsItemProps = Omit<useRender.ComponentProps<"div">, "ref" | "title" | "children"> & ExpandingCardsItemImage & {
22
46
  /** The rendered element: the `<div>`, or the element passed to `render`. */
@@ -31,8 +55,9 @@ export type ExpandingCardsItemProps = Omit<useRender.ComponentProps<"div">, "ref
31
55
  /** The text under the title. A string becomes one paragraph. */
32
56
  text?: ReactNode;
33
57
  /**
34
- * The call to action: an `ActionButton`. While the card is closed it
35
- * shows only its arrow, with the label kept for screen readers.
58
+ * The call to action: an `ActionButton`, or a component of the app's
59
+ * own that renders one. While the card is closed it shows only its
60
+ * arrow, with the label kept for screen readers.
36
61
  */
37
62
  action?: ReactNode;
38
63
  /**
@@ -64,6 +89,12 @@ export type ExpandingCardsItemProps = Omit<useRender.ComponentProps<"div">, "ref
64
89
  * screen readers, and focusing the button opens the card. Below 640px the
65
90
  * photo is on top at 2 : 1. Outside `ExpandingCards` the card is always
66
91
  * open. At least 280px tall; it grows with its text.
92
+ *
93
+ * With `imageAsBackground` the photo fills the card open as well, and the
94
+ * text sits in a box of the card's colour in the start half, 16px from the
95
+ * card's edges; closed, the box fades with the text. `imageMotion` picks
96
+ * whether the photo zooms as the card opens or only shows more of itself.
97
+ * Below 640px the box sits at the bottom, under a 2 : 1 view of the photo.
67
98
  */
68
- export declare function ExpandingCardsItem({ title, titleRender, text, action, src, alt, imageRender, surface, render, ref, className, ...rest }: ExpandingCardsItemProps): ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
99
+ export declare function ExpandingCardsItem({ title, titleRender, text, action, src, alt, imageRender, imageAsBackground, imageMotion, surface, render, ref, className, ...rest }: ExpandingCardsItemProps): ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
69
100
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { PanelProps } from '../../index';
3
3
  export type PaymentFeatureImagePosition = "start" | "end";
4
- /** A logo in the row at the top. */
4
+ /** A logo in the row at the top: 48px tall, 32px below 768px. */
5
5
  export type PaymentFeatureLogo = {
6
6
  /** The logo file. */
7
7
  src: string;
@@ -77,9 +77,10 @@ export type PaymentFeatureProps = Omit<PanelProps, "title" | "children" | "size"
77
77
  *
78
78
  * From 1024px the text column is at most 560px and the photo, at most 435px
79
79
  * wide, sits at the end of the other column; below 1024px they stack 32px
80
- * apart. The logos are up to 48px tall (32px below 768px) with a line between
81
- * them, and wrap on a narrow screen. Put it on a coloured section: the panel
82
- * is white.
80
+ * apart. The logos are 48px tall (32px below 768px), as wide as their ratio
81
+ * makes them, with a line between them, and wrap on a narrow screen. An SVG
82
+ * logo needs only a `viewBox`. Put it on a coloured section: the panel is
83
+ * white.
83
84
  */
84
85
  export declare function PaymentFeature({ logos, title, titleRender, text, actions, priceExample, src, alt, imageRender, imagePosition, className, ...rest }: PaymentFeatureProps): import("react").JSX.Element;
85
86
  export {};
@@ -51,7 +51,10 @@ export type SideNavProps = Omit<ComponentProps<"div">, "children"> & {
51
51
  * panel, and stays in view while the page scrolls (32 from the top); below
52
52
  * 1024px it is a block over the panel, 32 apart. The sidebar is a `nav`
53
53
  * named by `label`; the link to this page is marked `aria-current="page"`
54
- * and has a purple arrow before it, the others underline on hover. The panel
55
- * is a `Panel size="sm"`: what is in it stacks 16 apart.
54
+ * and has a purple arrow before it, the others underline on hover. A click
55
+ * on another link moves the arrow there at once (it grows in over 0.2s),
56
+ * before the next page arrives; `aria-current` stays on this page until
57
+ * `items` says otherwise. The panel is a `Panel size="sm"`: what is in it
58
+ * stacks 16 apart.
56
59
  */
57
60
  export declare function SideNav({ items, label, breadcrumbs, children, className, ...rest }: SideNavProps): import("react").JSX.Element;
package/dist/website.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});require('./website.css');let e=require("@base-ui/react/use-render"),t=require("lucide-react"),n=require("react/jsx-runtime"),r=require("react"),i=require("./component-library.umd.js"),a=require("@base-ui/react/navigation-menu"),o=require("@base-ui/react/collapsible"),s=require("@base-ui/react/drawer");function c({className:e,id:t,children:r}){return typeof r==`string`||typeof r==`number`?(0,n.jsx)(`p`,{className:e,id:t,children:r}):(0,n.jsx)(`div`,{className:e,id:t,children:r})}var l={AlertBanner:`_AlertBanner_11ase_11`,Icon:`_Icon_11ase_67`,Content:`_Content_11ase_81`,Title:`_Title_11ase_90`,Text:`_Text_11ase_97`};function u({render:t,children:n}){return(0,e.useRender)({render:t,defaultTagName:`h2`,props:{className:l.Title,children:n}})}function d({title:e,text:r,titleRender:i,icon:a,color:o=`error`,className:s,...d}){let f=a===void 0?(0,n.jsx)(t.TriangleAlert,{}):a;return(0,n.jsxs)(`div`,{...d,className:[l.AlertBanner,s].filter(Boolean).join(` `),"data-color":o,children:[f!=null&&f!==!1&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:l.Icon,children:f}),(0,n.jsxs)(`div`,{className:l.Content,children:[e!=null&&(0,n.jsx)(u,{render:i,children:e}),r!=null&&(0,n.jsx)(c,{className:l.Text,children:r})]})]})}var f=(e,t)=>n=>[e,typeof t==`function`?t(n):t].filter(Boolean).join(` `),p={BrandLetters:`_BrandLetters_1ygg1_9`,Letters:`_Letters_1ygg1_17`,Letter:`_Letter_1ygg1_17`,Video:`_Video_1ygg1_48`},m=(0,i.createTranslation)({play:{no:`Spill av videoene`,se:`Spela upp videorna`,fi:`Toista videot`,es:`Reproducir los vídeos`},pause:{no:`Sett videoene på pause`,se:`Pausa videorna`,fi:`Keskeytä videot`,es:`Pausar los vídeos`}}),h=`(prefers-reduced-motion: reduce)`,g=[`L`,`E`,`A`];function _({videos:a,render:o,ref:s,className:c,...l}){let u=m(),d=(0,r.useRef)([]),[_,v]=(0,r.useState)(!1),y=e=>{for(let t of d.current)t&&e(t)},b=e=>{e.muted=!0,e.play().catch(()=>{})};(0,r.useEffect)(()=>{let e=window.matchMedia(h);e.matches||y(b);let t=e=>{e.matches&&y(e=>e.pause())};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let x=()=>v(d.current.some(e=>e!=null&&!e.paused)),S=()=>{y(_?e=>e.pause():b)};return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{...l,className:f(p.BrandLetters,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:p.Letters,children:g.map((e,t)=>(0,n.jsx)(`div`,{className:p.Letter,"data-letter":e,children:(0,n.jsx)(`video`,{ref:e=>{d.current[t]=e},className:p.Video,src:a[t].src,poster:a[t].poster,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0,onPlay:x,onPause:x})},e))}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":_?u.pause:u.play,onClick:S,children:_?(0,n.jsx)(t.Pause,{"aria-hidden":!0}):(0,n.jsx)(t.Play,{"aria-hidden":!0})})]})}})}var v={Calculator:`_Calculator_1mamd_12`,Body:`_Body_1mamd_26`,Panel:`_Panel_1mamd_41`,Summary:`_Summary_1mamd_55`,Results:`_Results_1mamd_64`,Result:`_Result_1mamd_64`,Label:`_Label_1mamd_77`,Value:`_Value_1mamd_78`,Actions:`_Actions_1mamd_95`,Price:`_Price_1mamd_103`};function y({header:t,results:r,action:i,priceExample:a,render:o,ref:s,className:c,children:l,...u}){return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{...u,className:f(v.Calculator,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsxs)(`div`,{className:v.Body,children:[(0,n.jsx)(`div`,{className:v.Panel,children:l}),(0,n.jsxs)(`div`,{className:v.Summary,children:[r.length>0&&(0,n.jsx)(`dl`,{className:v.Results,"aria-live":`polite`,children:r.map((e,t)=>(0,n.jsxs)(`div`,{className:v.Result,children:[(0,n.jsx)(`dt`,{className:v.Label,children:e.label}),(0,n.jsx)(`dd`,{className:v.Value,children:e.value})]},t))}),(i!=null||a!=null)&&(0,n.jsxs)(`div`,{className:v.Actions,children:[i,a!=null&&(0,n.jsx)(`p`,{className:v.Price,children:a})]})]})]})]})}})}var b={Carousel:`_Carousel_17a24_14`,Viewport:`_Viewport_17a24_31`,Track:`_Track_17a24_66`,Slide:`_Slide_17a24_94`,Controls:`_Controls_17a24_100`,VisuallyHidden:`_VisuallyHidden_17a24_109`},x={fast:`0.15s`,normal:`0.2s`,emphasis:`0.3s`},S=`(prefers-reduced-motion: reduce)`,C=150,w=parseFloat(x.emphasis)*1e3;function ee(e){let t=(e,t,n)=>3*t*e*(1-e)**2+3*n*e**2*(1-e)+e**3,n=0,r=1;for(let i=0;i<20;i+=1){let i=(n+r)/2;t(i,.42,.58)<e?n=i:r=i}return t((n+r)/2,0,1)}function te(e,t){let n=(0,r.useRef)([0]),i=(0,r.useRef)(void 0),a=(0,r.useRef)(void 0),[o,s]=(0,r.useState)(()=>({pageCount:Math.max(1,t-1),page:0,settledPage:0,atStart:!0,atEnd:t<=2,overflowing:t>2,moved:!1})),c=(0,r.useCallback)((t,r=!1)=>{let i=e.current;if(!i)return;let a=i.scrollLeft,o=Math.max(0,i.scrollWidth-i.clientWidth),c=n.current,l=0;for(let e=1;e<c.length;e+=1)Math.abs(c[e]-a)<Math.abs(c[l]-a)&&(l=e);s(e=>{let n={pageCount:c.length,page:l,settledPage:t?l:e.settledPage,atStart:a<=1,atEnd:a>=o-1,overflowing:o>1,moved:e.moved||r};return Object.keys(n).every(t=>n[t]===e[t])?e:n})},[e]),l=(0,r.useCallback)(()=>{let t=e.current;if(!t)return;let r=Math.max(0,t.scrollWidth-t.clientWidth),i=Array.from(t.children),a=i[0]?.offsetLeft??0,o=[];for(let e of i){let t=Math.min(Math.max(0,e.offsetLeft-a),r);(o.length===0||t-o[o.length-1]>1)&&o.push(t)}n.current=o.length>0?o:[0],c(!0)},[c,e]),u=(0,r.useCallback)(()=>{a.current&&(cancelAnimationFrame(a.current.frame),a.current=void 0,e.current?.style.removeProperty(`scroll-snap-type`))},[e]);(0,r.useEffect)(()=>{let t=e.current;if(!t)return;l();let n=()=>{c(!1,!0),clearTimeout(i.current),i.current=setTimeout(()=>c(!0),C)},r=new ResizeObserver(l),a=[`pointerdown`,`touchstart`,`wheel`,`keydown`];t.addEventListener(`scroll`,n,{passive:!0});for(let e of a)t.addEventListener(e,u,{passive:!0});return r.observe(t),()=>{t.removeEventListener(`scroll`,n);for(let e of a)t.removeEventListener(e,u);r.disconnect(),clearTimeout(i.current),u()}},[l,c,t,u,e]);let d=(0,r.useCallback)(t=>{let r=e.current;if(!r)return;let i=n.current,o=i[Math.min(i.length-1,Math.max(0,t))];if(a.current?.to===o)return;u();let s=r.scrollLeft;if(window.matchMedia(S).matches||Math.abs(o-s)<1){r.scrollTo({left:o,behavior:`instant`});return}r.style.setProperty(`scroll-snap-type`,`none`);let c=performance.now(),l=e=>{let t=Math.min(1,(e-c)/w);r.scrollTo({left:s+(o-s)*ee(t),behavior:`instant`}),t<1?a.current={frame:requestAnimationFrame(l),to:o}:(a.current=void 0,r.style.removeProperty(`scroll-snap-type`))};a.current={frame:requestAnimationFrame(l),to:o}},[u,e]);return{...o,goTo:d}}var ne=(0,i.createTranslation)({carousel:{no:`karusell`,se:`karusell`,fi:`karuselli`,es:`carrusel`},previous:{no:`Forrige`,se:`Föregående`,fi:`Edellinen`,es:`Anterior`},next:{no:`Neste`,se:`Nästa`,fi:`Seuraava`,es:`Siguiente`},status:{no:`Side {page} av {count}`,se:`Sida {page} av {count}`,fi:`Sivu {page}/{count}`,es:`Página {page} de {count}`}});function T({getItemLabel:a,render:o,ref:s,className:c,children:l,...u}){let d=ne(),p=(0,r.useRef)(null),m=r.Children.toArray(l),{pageCount:h,page:g,settledPage:_,atStart:v,atEnd:y,overflowing:x,moved:S,goTo:C}=te(p,m.length);return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{role:`region`,"aria-roledescription":d.carousel,...u,className:f(b.Carousel,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:b.Viewport,"data-at-start":v||void 0,"data-at-end":y||void 0,children:(0,n.jsx)(`ul`,{ref:p,className:b.Track,tabIndex:x?0:void 0,children:m.map((e,t)=>(0,n.jsx)(`li`,{className:b.Slide,children:e},t))})}),h>1&&(0,n.jsxs)(`div`,{className:b.Controls,children:[(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":d.previous,disabled:g===0,focusableWhenDisabled:!0,onClick:()=>C(g-1),children:(0,n.jsx)(t.ChevronLeft,{"aria-hidden":!0})}),(0,n.jsx)(i.PaginationDots,{count:h,value:g+1,onValueChange:e=>C(e-1),getItemLabel:a}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":d.next,disabled:g===h-1,focusableWhenDisabled:!0,onClick:()=>C(g+1),children:(0,n.jsx)(t.ChevronRight,{"aria-hidden":!0})}),(0,n.jsx)(`span`,{role:`status`,className:b.VisuallyHidden,children:S&&d.status.replace(`{page}`,String(_+1)).replace(`{count}`,String(h))})]})]})}})}var E={CtaBanner:`_CtaBanner_vkp5c_7`,Title:`_Title_vkp5c_15`,Content:`_Content_vkp5c_24`,Text:`_Text_vkp5c_32`,Action:`_Action_vkp5c_48`,Price:`_Price_vkp5c_53`};function re({title:t,titleRender:r,text:i,action:a,priceExample:o,render:s,ref:l,className:u,...d}){let p=(0,e.useRender)({render:r,defaultTagName:`h2`,props:{className:E.Title,children:t}}),m=i!=null||a!=null||o!=null;return(0,e.useRender)({render:s,ref:l,defaultTagName:`div`,props:{...d,"data-has-content":m||void 0,className:f(E.CtaBanner,u)({}),children:(0,n.jsxs)(n.Fragment,{children:[p,m&&(0,n.jsxs)(`div`,{className:E.Content,children:[i!=null&&(0,n.jsx)(c,{className:E.Text,children:i}),a!=null&&(0,n.jsx)(`div`,{className:E.Action,children:a}),o!=null&&(0,n.jsx)(`p`,{className:E.Price,children:o})]})]})}})}var ie=(0,r.createContext)({open:!0}),D={ExpandingCards:`_ExpandingCards_14pq8_19`,List:`_List_14pq8_23`,Item:`_Item_14pq8_32`},ae=`(min-width: 1312px)`,oe={open:!0},se={open:!1},ce=e=>{let t=window.matchMedia(ae);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},le=()=>(0,r.useSyncExternalStore)(ce,()=>window.matchMedia(ae).matches,()=>!0);function ue({defaultOpen:t=`first`,render:i,ref:a,className:o,children:s,...c}){let l=r.Children.toArray(s),u=le(),[d,p]=(0,r.useState)(()=>t===`last`?Math.max(0,l.length-1):0);return(0,e.useRender)({render:i,ref:a,defaultTagName:`div`,props:{...c,className:f(D.ExpandingCards,o)({}),children:(0,n.jsx)(`ul`,{className:D.List,style:{"--expanding-cards-count":l.length},children:l.map((e,t)=>(0,n.jsx)(`li`,{className:D.Item,"data-open":t===d||void 0,onPointerEnter:()=>p(t),onFocus:()=>p(t),children:(0,n.jsx)(ie.Provider,{value:!u||t===d?oe:se,children:e})},t))})}})}var O={ExpandingCardsItem:`_ExpandingCardsItem_1v7ai_17`,Content:`_Content_1v7ai_53`,Title:`_Title_1v7ai_70`,Text:`_Text_1v7ai_81`,Action:`_Action_1v7ai_99`,Photo:`_Photo_1v7ai_110`,Image:`_Image_1v7ai_117`};function de({title:t,titleRender:a,text:o,action:s,src:l,alt:u,imageRender:d,surface:p=`base`,render:m,ref:h,className:g,..._}){let{open:v}=(0,r.useContext)(ie),y=(0,e.useRender)({render:a,defaultTagName:`h2`,props:{className:O.Title,children:t}}),b=(0,e.useRender)({enabled:l!=null,render:d,defaultTagName:`img`,props:{src:l,alt:u,className:O.Image}}),x=(0,r.isValidElement)(s)&&s.type===i.ActionButton?(0,r.cloneElement)(s,{iconOnly:!v}):s;return(0,e.useRender)({render:m,ref:h,defaultTagName:`div`,props:{..._,"data-surface":p,"data-open":v||void 0,"data-image":l!=null||void 0,className:f(O.ExpandingCardsItem,g)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:O.Content,children:[y,o!=null&&(0,n.jsx)(c,{className:O.Text,children:o}),s!=null&&(0,n.jsx)(`div`,{className:O.Action,children:x})]}),b!=null&&(0,n.jsx)(`div`,{className:O.Photo,children:b})]})}})}var k={Hero:`_Hero_1ik22_8`,Background:`_Background_1ik22_24`,Image:`_Image_1ik22_30`,Container:`_Container_1ik22_37`,Box:`_Box_1ik22_45`,Title:`_Title_1ik22_50`,Text:`_Text_1ik22_59`,Action:`_Action_1ik22_75`,Price:`_Price_1ik22_80`};function fe({src:t,alt:r,imageRender:a,title:o,titleRender:s,text:l,action:u,priceExample:d,render:p,ref:m,className:h,...g}){let _=(0,e.useRender)({render:s,defaultTagName:`h1`,props:{className:k.Title,children:o}}),v=(0,e.useRender)({render:a,defaultTagName:`img`,props:{src:t,alt:r,className:k.Image}});return(0,e.useRender)({render:p,ref:m,defaultTagName:`section`,props:{...g,className:f(k.Hero,h)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:k.Container,children:(0,n.jsxs)(i.Panel,{className:k.Box,children:[_,l!=null&&(0,n.jsx)(c,{className:k.Text,children:l}),u!=null&&(0,n.jsx)(`div`,{className:k.Action,children:u}),d!=null&&(0,n.jsx)(`p`,{className:k.Price,children:d})]})}),(0,n.jsx)(`div`,{className:k.Background,children:v})]})}})}var A={HeroServiceGrid:`_HeroServiceGrid_yr3eo_8`,Cards:`_Cards_yr3eo_15`,Item:`_Item_yr3eo_26`,Featured:`_Featured_yr3eo_51`};function pe({src:t,alt:a,imageRender:o,action:s,imagePosition:c=`start`,render:l,ref:u,className:d,children:p,...m}){let h=r.Children.toArray(p);return(0,e.useRender)({render:l,ref:u,defaultTagName:`div`,props:{...m,"data-image-position":c,className:f(A.HeroServiceGrid,d)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FeaturedImage,{className:A.Featured,src:t,alt:a,imageRender:o,action:s}),h.length>0&&(0,n.jsx)(`ul`,{className:A.Cards,children:h.map((e,t)=>(0,n.jsx)(`li`,{className:A.Item,children:e},t))})]})}})}var j={NavigationGrid:`_NavigationGrid_ocatr_9`,Title:`_Title_ocatr_16`,List:`_List_ocatr_25`,Item:`_Item_ocatr_35`};function me({title:t,titleRender:i,render:a,ref:o,className:s,children:c,...l}){let u=r.Children.toArray(c),d=u.length>=3&&u.length%2==1,p=(0,e.useRender)({enabled:t!=null,render:i,defaultTagName:`h2`,props:{className:j.Title,children:t}});return(0,e.useRender)({render:a,ref:o,defaultTagName:`div`,props:{...l,className:f(j.NavigationGrid,s)({}),children:(0,n.jsxs)(n.Fragment,{children:[p,(0,n.jsx)(`ul`,{className:j.List,"data-odd":d||void 0,children:u.map((e,t)=>(0,n.jsx)(`li`,{className:j.Item,children:e},t))})]})}})}var M={PartnerList:`_PartnerList_9o9wx_7`,List:`_List_9o9wx_11`,Controls:`_Controls_9o9wx_19`,VisuallyHidden:`_VisuallyHidden_9o9wx_29`},he=(0,i.createTranslation)({previous:{no:`Forrige side`,se:`Föregående sida`,fi:`Edellinen sivu`,es:`Página anterior`},next:{no:`Neste side`,se:`Nästa sida`,fi:`Seuraava sivu`,es:`Página siguiente`},status:{no:`Side {page} av {count}`,se:`Sida {page} av {count}`,fi:`Sivu {page}/{count}`,es:`Página {page} de {count}`},collation:{no:`nb`,se:`sv`,fi:`fi`,es:`es`}});function ge({items:a,pageSize:o=9,value:s,defaultValue:c=1,onValueChange:l,render:u,ref:d,className:p,...m}){let h=he(),[g,_]=(0,r.useState)(c),v=(0,r.useMemo)(()=>{let e=new Intl.Collator(h.collation,{sensitivity:`base`});return[...a].sort((t,n)=>e.compare(t.name,n.name))},[a,h.collation]),y=Math.max(1,Math.floor(o)),b=Math.max(1,Math.ceil(v.length/y)),x=Math.min(b,Math.max(1,s??g)),S=(x-1)*y,C=e=>{let t=Math.min(b,Math.max(1,e));s===void 0&&_(t),t!==x&&l?.(t)};return(0,e.useRender)({enabled:v.length>0,render:u,ref:d,defaultTagName:`div`,props:{...m,className:f(M.PartnerList,p)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`ul`,{className:M.List,children:v.slice(S,S+y).map(({name:e,content:t,...r},a)=>(0,n.jsx)(i.PartnerRow,{...r,render:(0,n.jsx)(`li`,{}),children:t},`${S+a}-${e}`))}),b>1&&(0,n.jsxs)(`div`,{className:M.Controls,children:[(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":h.previous,disabled:x===1,focusableWhenDisabled:!0,onClick:()=>C(x-1),children:(0,n.jsx)(t.ChevronLeft,{"aria-hidden":!0})}),(0,n.jsx)(i.PaginationDots,{count:b,value:x,onValueChange:C}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":h.next,disabled:x===b,focusableWhenDisabled:!0,onClick:()=>C(x+1),children:(0,n.jsx)(t.ChevronRight,{"aria-hidden":!0})}),(0,n.jsx)(`span`,{role:`status`,className:M.VisuallyHidden,children:h.status.replace(`{page}`,String(x)).replace(`{count}`,String(b))})]})]})}})}var N={Grid:`_Grid_1vukg_10`,Content:`_Content_1vukg_17`,Logos:`_Logos_1vukg_28`,LogoItem:`_LogoItem_1vukg_38`,Logo:`_Logo_1vukg_28`,Text:`_Text_1vukg_60`,Title:`_Title_1vukg_66`,Description:`_Description_1vukg_75`,Actions:`_Actions_1vukg_91`,Price:`_Price_1vukg_98`,Media:`_Media_1vukg_106`,PaymentFeature:`_PaymentFeature_1vukg_111`,Image:`_Image_1vukg_115`};function _e({logos:t,title:r,titleRender:a,text:o,actions:s,priceExample:l,src:u,alt:d,imageRender:f,imagePosition:p=`end`,className:m,...h}){let g=(0,e.useRender)({render:a,defaultTagName:`h2`,props:{className:N.Title,children:r}}),_=(0,e.useRender)({enabled:u!=null,render:f,defaultTagName:`img`,props:{src:u,alt:d,className:N.Image}});return(0,n.jsx)(i.Panel,{...h,className:[N.PaymentFeature,m].filter(Boolean).join(` `),"data-image-position":p,"data-has-image":_!=null||void 0,children:(0,n.jsxs)(`div`,{className:N.Grid,children:[(0,n.jsxs)(`div`,{className:N.Content,children:[t!=null&&t.length>0&&(0,n.jsx)(`ul`,{className:N.Logos,children:t.map((e,t)=>(0,n.jsx)(ve,{...e},t))}),(0,n.jsxs)(`div`,{className:N.Text,children:[g,o!=null&&(0,n.jsx)(c,{className:N.Description,children:o})]}),s!=null&&(0,n.jsx)(`div`,{className:N.Actions,children:s}),l!=null&&(0,n.jsx)(`p`,{className:N.Price,children:l})]}),_!=null&&(0,n.jsx)(`div`,{className:N.Media,children:_})]})})}function ve({src:t,alt:r,imageRender:i}){let a=(0,e.useRender)({render:i,defaultTagName:`img`,props:{src:t,alt:r,className:N.Logo}});return(0,n.jsx)(`li`,{className:N.LogoItem,children:a})}var P={PromoGrid:`_PromoGrid_1l2yi_10`,Featured:`_Featured_1l2yi_19`,Content:`_Content_1l2yi_23`,Photos:`_Photos_1l2yi_31`,Photo:`_Photo_1l2yi_31`,Block:`_Block_1l2yi_51`,Title:`_Title_1l2yi_63`,Subtitle:`_Subtitle_1l2yi_73`};function ye({src:t,alt:r,imageRender:a,action:o,images:s,title:l,titleRender:u,subtitle:d,imagePosition:p=`start`,render:m,ref:h,className:g,..._}){let v=(0,e.useRender)({render:u,defaultTagName:`h2`,props:{className:P.Title,children:l}});return(0,e.useRender)({render:m,ref:h,defaultTagName:`div`,props:{..._,"data-image-position":p,className:f(P.PromoGrid,g)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FeaturedImage,{className:P.Featured,src:t,alt:r,imageRender:a,action:o}),(0,n.jsxs)(`div`,{className:P.Content,children:[s!=null&&s.length>0&&(0,n.jsx)(`div`,{className:P.Photos,"data-count":s.length,children:s.map((e,t)=>(0,n.jsx)(be,{...e},t))}),(0,n.jsxs)(`div`,{className:P.Block,children:[v,d!=null&&(0,n.jsx)(c,{className:P.Subtitle,children:d})]})]})]})}})}function be({src:t,alt:n,imageRender:r}){return(0,e.useRender)({render:r,defaultTagName:`img`,props:{src:t,alt:n,className:P.Photo}})}var xe={Section:`_Section_f8rp9_11`,Content:`_Content_f8rp9_60`};function Se({surface:t=`base`,spacingTop:r=`lg`,spacingBottom:i=`lg`,width:a=`full`,render:o,ref:s,className:c,children:l,...u}){return(0,e.useRender)({render:o,ref:s,defaultTagName:`section`,props:{...u,"data-surface":t,"data-spacing-top":r,"data-spacing-bottom":i,className:f(xe.Section,c)({}),children:(0,n.jsx)(`div`,{className:xe.Content,"data-width":a,children:l})}})}var F={SectionHeader:`_SectionHeader_11mff_8`,Text:`_Text_11mff_17`,Eyebrow:`_Eyebrow_11mff_25`,Title:`_Title_11mff_33`,Subtitle:`_Subtitle_11mff_49`,Actions:`_Actions_11mff_67`,Price:`_Price_11mff_75`};function Ce({eyebrow:t,title:r,titleRender:i,titleSize:a=`lg`,subtitle:o,actions:s,priceExample:l,render:u,ref:d,className:p,...m}){let h=(0,e.useRender)({render:i,defaultTagName:`h2`,props:{className:F.Title,children:r}});return(0,e.useRender)({render:u,ref:d,defaultTagName:`div`,props:{...m,"data-title-size":a,className:f(F.SectionHeader,p)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:F.Text,children:[t!=null&&(0,n.jsx)(`p`,{className:F.Eyebrow,children:t}),h,o!=null&&(0,n.jsx)(c,{className:F.Subtitle,children:o})]}),s!=null&&(0,n.jsx)(`div`,{className:F.Actions,children:s}),l!=null&&(0,n.jsx)(`p`,{className:F.Price,children:l})]})}})}var I={ServiceCardGrid:`_ServiceCardGrid_nutvc_9`,List:`_List_nutvc_13`,Item:`_Item_nutvc_23`};function we({render:t,ref:i,className:a,children:o,...s}){let c=r.Children.toArray(o);return(0,e.useRender)({render:t,ref:i,defaultTagName:`div`,props:{...s,className:f(I.ServiceCardGrid,a)({}),children:(0,n.jsx)(`ul`,{className:I.List,"data-count":c.length,children:c.map((e,t)=>(0,n.jsx)(`li`,{className:I.Item,children:e},t))})}})}var L={ArrowRevealLink:`_ArrowRevealLink_140ct_2`,Arrow:`_Arrow_140ct_2`,Text:`_Text_140ct_40`};function R({render:r,className:i,children:a,size:o=`md`,...s}){return(0,e.useRender)({render:r,defaultTagName:`a`,props:{...s,"data-size":o===`md`?void 0:o,className:f(L.ArrowRevealLink,i)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:L.Arrow,children:(0,n.jsx)(t.ArrowRight,{})}),(0,n.jsx)(`span`,{className:L.Text,children:a})]})}})}var z={SideNav:`_SideNav_1ha5v_6`,Sidebar:`_Sidebar_1ha5v_29`,List:`_List_1ha5v_44`,Content:`_Content_1ha5v_61`},Te=(0,i.createTranslation)({navigation:{no:`Sidemeny`,se:`Sidomeny`,fi:`Sivuvalikko`,es:`Menú lateral`}});function Ee({items:e,label:t,breadcrumbs:r,children:a,className:o,...s}){let c=Te();return(0,n.jsxs)(`div`,{...s,className:[z.SideNav,o].filter(Boolean).join(` `),children:[(0,n.jsx)(`nav`,{className:z.Sidebar,"aria-label":t??c.navigation,children:(0,n.jsx)(`ul`,{className:z.List,children:e.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{size:`lg`,href:e.href,render:e.render,"aria-current":e.current?`page`:void 0,children:e.label})},t))})}),(0,n.jsxs)(i.Panel,{size:`sm`,className:z.Content,children:[r,a]})]})}var B=`M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z`,V=`M19.9154 8.69625H7.82613H7.82609V0.238281C6.90195 0.443203 6.02582 0.775352 5.21738 1.21648V8.69617V8.69621H0.0846484C0.0289844 9.1232 0 9.55852 0 10.0006C0 10.4427 0.0289844 10.878 0.0846484 11.3049H5.21734H5.21738V18.7846C6.02582 19.2257 6.90195 19.558 7.82609 19.7629V11.305V11.305H19.9154C19.9709 10.878 20 10.4427 20 10.0006C20 9.55852 19.9709 9.1232 19.9154 8.69625V8.69625Z`;function H({children:e,...t}){return(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,"aria-hidden":!0,focusable:`false`,...t,children:e})}function De(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#F0F0F0`}),(0,n.jsx)(`path`,{d:`M0.34375 12.6094C0.922344 14.7562 2.19754 16.6169 3.9123 17.9345V12.6094H0.34375Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M9.12891 19.9626C9.41555 19.9873 9.70543 20.0007 9.99848 20.0007C14.6188 20.0007 18.5065 16.867 19.654 12.6094H9.12891V19.9626Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M19.654 7.39129C18.5065 3.13363 14.6188 0 9.99848 0C9.70543 0 9.41555 0.0133594 9.12891 0.0380469V7.39129H19.654Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M3.9123 2.06641C2.19754 3.38398 0.922344 5.24465 0.34375 7.39148H3.9123V2.06641Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:V,fill:`#0052B4`})]})}function Oe(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#FFDA44`}),(0,n.jsx)(`path`,{d:`M7.82816 8.69566H19.9174C19.2782 3.78914 15.0828 0 10.002 0C9.25539 0 8.52809 0.0825391 7.82812 0.237695V8.69566H7.82816Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M5.21867 8.69848V1.21875C2.47281 2.71695 0.507148 5.46504 0.0859375 8.69852H5.21867V8.69848Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M5.21863 11.3047H0.0859375C0.507148 14.5382 2.47281 17.2863 5.21867 18.7844L5.21863 11.3047Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M7.82812 11.3047V19.7627C8.52809 19.9178 9.25539 20.0004 10.002 20.0004C15.0828 20.0004 19.2782 16.2112 19.9174 11.3047H7.82812V11.3047Z`,fill:`#0052B4`})]})}function ke(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#F0F0F0`}),(0,n.jsx)(`path`,{d:V,fill:`#0052B4`})]})}function Ae(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:`M0 10.0002C0 11.2234 0.220039 12.3951 0.621992 13.4784L10 14.348L19.378 13.4784C19.78 12.3951 20 11.2234 20 10.0002C20 8.77695 19.78 7.60523 19.378 6.52191L10 5.65234L0.621992 6.52191C0.220039 7.60523 0 8.77695 0 10.0002H0Z`,fill:`#FFDA44`}),(0,n.jsx)(`path`,{d:`M19.3771 6.52176C17.9642 2.71379 14.2987 0 9.9991 0C5.69945 0 2.03402 2.71379 0.621094 6.52176H19.3771Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M0.621094 13.4766C2.03402 17.2845 5.69945 19.9983 9.9991 19.9983C14.2987 19.9983 17.9642 17.2845 19.3771 13.4766H0.621094Z`,fill:`#D80027`})]})}function U({href:t,render:n,...r}){return(0,e.useRender)({render:n,defaultTagName:`a`,props:t==null?r:{...r,href:t}})}var W=e=>e.groups!=null&&e.groups.length>0,G=e=>e.href!=null||e.render!=null,K={SiteFooter:`_SiteFooter_o2ixe_7`,Content:`_Content_o2ixe_23`,Main:`_Main_o2ixe_32`,Home:`_Home_o2ixe_46`,Columns:`_Columns_o2ixe_64`,Column:`_Column_o2ixe_64`,Title:`_Title_o2ixe_94`,Links:`_Links_o2ixe_108`,Social:`_Social_o2ixe_109`,Link:`_Link_o2ixe_108`,SocialIcon:`_SocialIcon_o2ixe_147`,Market:`_Market_o2ixe_161`,Divider:`_Divider_o2ixe_165`,CookieSettings:`_CookieSettings_o2ixe_176`,Copyright:`_Copyright_o2ixe_192`},je=(0,i.createTranslation)({market:{no:`Marked`,se:`Marknad`,fi:`Markkina`,es:`Mercado`},social:{no:`Sosiale medier`,se:`Sociala medier`,fi:`Sosiaalinen media`,es:`Redes sociales`},cookieSettings:{no:`Cookie-innstillinger`,se:`Cookieinställningar`,fi:`Evästeasetukset`,es:`Configuración de cookies`},collation:{no:`nb`,se:`sv`,fi:`fi`,es:`es`}}),q=(0,i.createTranslation)({navigation:{no:`Hovedmeny`,se:`Huvudmeny`,fi:`Päävalikko`,es:`Menú principal`},menu:{no:`Meny`,se:`Meny`,fi:`Valikko`,es:`Menú`},closeMenu:{no:`Lukk meny`,se:`Stäng menyn`,fi:`Sulje valikko`,es:`Cerrar menú`},home:{no:`Lea Bank, forside`,se:`Lea Bank, startsida`,fi:`Lea Bank, etusivu`,es:`Lea Bank, página de inicio`}}),J={no:{name:`Norge`,flag:(0,n.jsx)(De,{})},se:{name:`Sverige`,flag:(0,n.jsx)(Oe,{})},fi:{name:`Suomi`,flag:(0,n.jsx)(ke,{})},es:{name:`España`,flag:(0,n.jsx)(Ae,{})}},Me=[`no`,`se`,`fi`,`es`];function Y({render:t,id:n,children:r}){return(0,e.useRender)({render:t,defaultTagName:`h2`,props:{id:n,className:K.Title,children:r}})}function Ne({market:e,render:t}){let a=je(),o=(0,r.useId)(),s=e.options??Me,c=(0,r.useMemo)(()=>{let e=new Intl.Collator(a.collation,{sensitivity:`base`});return[...s].sort((t,n)=>e.compare(J[t].name,J[n].name)).map(e=>({value:e,label:J[e].name,icon:J[e].flag}))},[s,a.collation]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y,{render:t,id:o,children:e.title??a.market}),(0,n.jsx)(i.Select,{size:`sm`,"aria-labelledby":o,options:c,value:e.value,onValueChange:e.onValueChange,className:K.Market})]})}function Pe({logo:e,homeRender:t,columns:r=[],market:i,social:a,onOpenCookieSettings:o,copyright:s,titleRender:l,className:u,...d}){let f=je(),p=q(),m=o!=null||s!=null;return(0,n.jsx)(`footer`,{...d,className:[K.SiteFooter,u].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{className:K.Content,children:[(0,n.jsxs)(`div`,{className:K.Main,children:[(0,n.jsx)(U,{href:t==null?`/`:void 0,render:t,className:K.Home,"aria-label":p.home,children:e}),(0,n.jsxs)(`div`,{className:K.Columns,children:[r.map((e,t)=>(0,n.jsxs)(`div`,{className:K.Column,children:[(0,n.jsx)(Y,{render:l,children:e.title}),e.links.length>0&&(0,n.jsx)(`ul`,{className:K.Links,children:e.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(U,{href:e.href,render:e.render,className:K.Link,children:e.label})},t))})]},t)),(i!=null||a!=null)&&(0,n.jsxs)(`div`,{className:K.Column,children:[i!=null&&(0,n.jsx)(Ne,{market:i,render:l}),a!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y,{render:l,children:a.title??f.social}),(0,n.jsx)(`ul`,{className:K.Social,children:a.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsxs)(U,{href:e.href,render:e.render,className:K.Link,children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:K.SocialIcon,children:e.icon}),e.label]})},t))})]})]})]})]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:K.Divider}),o!=null&&(0,n.jsx)(`button`,{type:`button`,className:K.CookieSettings,onClick:o,children:f.cookieSettings}),s!=null&&(0,n.jsx)(c,{className:K.Copyright,children:s})]})]})})}var X={SiteHeader:`_SiteHeader_dcn2t_9`,Bar:`_Bar_dcn2t_19`,BarContent:`_BarContent_dcn2t_24`,Home:`_Home_dcn2t_40`,Actions:`_Actions_dcn2t_57`,Account:`_Account_dcn2t_64`,MenuButton:`_MenuButton_dcn2t_80`,Action:`_Action_dcn2t_57`,Nav:`_Nav_dcn2t_121`,Pill:`_Pill_dcn2t_128`,Cta:`_Cta_dcn2t_129`,List:`_List_dcn2t_136`,Item:`_Item_dcn2t_148`,Chevron:`_Chevron_dcn2t_189`,Positioner:`_Positioner_dcn2t_263`,Popup:`_Popup_dcn2t_291`,Viewport:`_Viewport_dcn2t_311`,Content:`_Content_dcn2t_319`,Group:`_Group_dcn2t_339`,GroupTitle:`_GroupTitle_dcn2t_348`,Links:`_Links_dcn2t_355`,Separator:`_Separator_dcn2t_370`,CtaArrow:`_CtaArrow_dcn2t_402`,Backdrop:`_Backdrop_dcn2t_410`,DrawerViewport:`_DrawerViewport_dcn2t_424`,MenuPopup:`_MenuPopup_dcn2t_439`,MenuTop:`_MenuTop_dcn2t_479`,MenuContent:`_MenuContent_dcn2t_486`,MenuList:`_MenuList_dcn2t_499`,Row:`_Row_dcn2t_506`,RowChevron:`_RowChevron_dcn2t_545`,SubmenuPanel:`_SubmenuPanel_dcn2t_556`,Submenu:`_Submenu_dcn2t_556`,Parent:`_Parent_dcn2t_577`},Fe=`(min-width: 1312px)`;function Ie({item:e,open:r,onOpenChange:i}){let a=e.groups.flatMap(e=>e.links),s=e.groups.flatMap(e=>e.cta==null?[]:[e.cta]);return(0,n.jsxs)(o.Collapsible.Root,{open:r,onOpenChange:i,children:[(0,n.jsxs)(o.Collapsible.Trigger,{className:X.Row,children:[e.label,(0,n.jsx)(t.ChevronDown,{"aria-hidden":!0,className:X.RowChevron})]}),(0,n.jsx)(o.Collapsible.Panel,{className:X.SubmenuPanel,children:(0,n.jsxs)(`div`,{className:X.Submenu,children:[(G(e)||a.length>0)&&(0,n.jsxs)(`ul`,{className:X.Links,children:[G(e)&&(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{className:X.Parent,href:e.href,render:e.render,children:e.label})}),a.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{href:e.href,render:e.render,children:e.label})},t))]}),s.length>0&&a.length>0&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:X.Separator}),s.map((e,r)=>(0,n.jsxs)(U,{className:X.Cta,href:e.href,render:e.render,children:[(0,n.jsx)(`span`,{children:e.label}),(0,n.jsx)(t.ArrowUpRight,{"aria-hidden":!0,className:X.CtaArrow})]},r))]})})]})}function Le({items:e}){let t=q(),[i,a]=(0,r.useState)(null);return(0,n.jsx)(`nav`,{"aria-label":t.navigation,children:(0,n.jsx)(`ul`,{className:X.MenuList,children:e.map((e,t)=>(0,n.jsx)(`li`,{children:W(e)?(0,n.jsx)(Ie,{item:e,open:i===t,onOpenChange:e=>a(e?t:null)}):(0,n.jsx)(U,{className:X.Row,href:e.href,render:e.render,children:e.label})},t))})})}function Re({items:e,home:a,account:o}){let c=q(),[l,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!l)return;let e=window.matchMedia(Fe),t=()=>{e.matches&&u(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[l]),(0,n.jsxs)(s.Drawer.Root,{open:l,onOpenChange:u,swipeDirection:`up`,children:[(0,n.jsx)(s.Drawer.Trigger,{className:X.MenuButton,"aria-label":c.menu,children:(0,n.jsx)(t.Menu,{"aria-hidden":!0})}),(0,n.jsxs)(s.Drawer.Portal,{children:[(0,n.jsx)(s.Drawer.Backdrop,{className:X.Backdrop}),(0,n.jsx)(s.Drawer.Viewport,{className:X.DrawerViewport,children:(0,n.jsxs)(s.Drawer.Popup,{className:X.MenuPopup,"aria-label":c.menu,onClick:e=>{e.target instanceof Element&&e.target.closest(`a`)&&u(!1)},children:[(0,n.jsxs)(`div`,{className:X.MenuTop,children:[(0,n.jsx)(`div`,{className:X.Bar,children:(0,n.jsxs)(`div`,{className:X.BarContent,children:[(0,n.jsx)(s.Drawer.Close,{className:X.MenuButton,"aria-label":c.closeMenu,children:(0,n.jsx)(t.X,{"aria-hidden":!0})}),a,o&&(0,n.jsx)(`div`,{className:X.Actions,children:o})]})}),(0,n.jsx)(i.BrandDivider,{size:`sm`})]}),(0,n.jsx)(s.Drawer.Content,{className:X.MenuContent,children:(0,n.jsx)(Le,{items:e})})]})})]})]})}function ze({group:e}){let i=(0,r.useId)(),o=e.title!=null,s=e.links.length>0;return(0,n.jsxs)(`div`,{className:X.Group,children:[o&&(0,n.jsx)(`p`,{id:i,className:X.GroupTitle,children:e.title}),s&&(0,n.jsx)(`ul`,{className:X.Links,"aria-labelledby":o?i:void 0,children:e.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{render:(0,n.jsx)(a.NavigationMenu.Link,{closeOnClick:!0,href:e.href,render:e.render}),children:e.label})},t))}),e.cta!=null&&s&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:X.Separator}),e.cta!=null&&(0,n.jsxs)(a.NavigationMenu.Link,{closeOnClick:!0,className:X.Cta,href:e.cta.href,render:e.cta.render,children:[(0,n.jsx)(`span`,{children:e.cta.label}),(0,n.jsx)(t.ArrowUpRight,{"aria-hidden":!0,className:X.CtaArrow})]})]})}function Be({item:e,value:r,end:i,onFocus:o}){return(0,n.jsx)(a.NavigationMenu.Item,{value:r,className:X.Item,"data-end":i||void 0,onFocus:()=>o(r),children:W(e)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.NavigationMenu.Trigger,{className:X.Pill,children:[e.label,(0,n.jsx)(a.NavigationMenu.Icon,{className:X.Chevron,children:(0,n.jsx)(t.ChevronDown,{})})]}),(0,n.jsx)(a.NavigationMenu.Content,{keepMounted:!0,className:X.Content,children:e.groups.map((e,t)=>(0,n.jsx)(ze,{group:e},t))})]}):(0,n.jsx)(a.NavigationMenu.Link,{closeOnClick:!0,className:X.Pill,href:e.href,render:e.render,children:e.label})})}function Ve({logo:e,homeRender:o,items:s,endItems:c=[],account:l,action:u,className:d,...f}){let p=q(),[m,h]=(0,r.useState)(null),g=e=>{m!=null&&m!==e&&h(null)},_=(0,n.jsx)(U,{href:o==null?`/`:void 0,render:o,className:X.Home,"aria-label":p.home,children:e}),v=l!=null&&(0,n.jsx)(U,{href:l.href,render:l.render,className:X.Account,"aria-label":l.label,children:l.icon??(0,n.jsx)(t.CircleUserRound,{"aria-hidden":!0})});return(0,n.jsxs)(`header`,{...f,className:[X.SiteHeader,d].filter(Boolean).join(` `),children:[(0,n.jsx)(`div`,{className:X.Bar,children:(0,n.jsxs)(`div`,{className:X.BarContent,children:[(0,n.jsx)(Re,{items:[...s,...c],home:_,account:v}),_,(0,n.jsxs)(a.NavigationMenu.Root,{className:X.Nav,"aria-label":p.navigation,closeDelay:150,value:m,onValueChange:h,children:[(0,n.jsx)(a.NavigationMenu.List,{className:X.List,children:[...s,...c].map((e,t)=>(0,n.jsx)(Be,{item:e,value:`item-${t}`,end:c.length>0&&t===s.length,onFocus:g},t))}),(0,n.jsx)(a.NavigationMenu.Portal,{children:(0,n.jsx)(a.NavigationMenu.Positioner,{className:X.Positioner,side:`bottom`,align:`start`,sideOffset:8,collisionPadding:16,children:(0,n.jsx)(a.NavigationMenu.Popup,{className:X.Popup,render:(0,n.jsx)(`div`,{}),children:(0,n.jsx)(a.NavigationMenu.Viewport,{className:X.Viewport})})})})]}),(v||u!=null)&&(0,n.jsxs)(`div`,{className:X.Actions,children:[v,u!=null&&(0,n.jsx)(`div`,{className:X.Action,children:u})]})]})}),(0,n.jsx)(i.BrandDivider,{size:`sm`})]})}var Z={SplitContent:`_SplitContent_16c8f_11`,Grid:`_Grid_16c8f_19`,Text:`_Text_16c8f_26`,Title:`_Title_16c8f_33`,Description:`_Description_16c8f_42`,Media:`_Media_16c8f_58`,Image:`_Image_16c8f_67`,Actions:`_Actions_16c8f_75`,Price:`_Price_16c8f_82`};function He({title:t,titleRender:r,text:i,src:a,alt:o,imageRender:s,imagePosition:l=`end`,action:u,priceExample:d,render:p,ref:m,className:h,...g}){let _=(0,e.useRender)({render:r,defaultTagName:`h2`,props:{className:Z.Title,children:t}}),v=(0,e.useRender)({enabled:a!=null,render:s,defaultTagName:`img`,props:{src:a,alt:o,className:Z.Image}});return(0,e.useRender)({render:p,ref:m,defaultTagName:`div`,props:{...g,"data-image-position":l,"data-has-image":v!=null||void 0,className:f(Z.SplitContent,h)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:Z.Grid,children:[(0,n.jsxs)(`div`,{className:Z.Text,children:[_,i!=null&&(0,n.jsx)(c,{className:Z.Description,children:i})]}),v!=null&&(0,n.jsx)(`div`,{className:Z.Media,children:v})]}),(u!=null||d!=null)&&(0,n.jsxs)(`div`,{className:Z.Actions,children:[u,d!=null&&(0,n.jsx)(`p`,{className:Z.Price,children:d})]})]})}})}var Q={Stats:`_Stats_1o0ef_16`,List:`_List_1o0ef_25`,Bar:`_Bar_1o0ef_33`,Stat:`_Stat_1o0ef_16`,Number:`_Number_1o0ef_59`,Labels:`_Labels_1o0ef_69`,Title:`_Title_1o0ef_77`,Text:`_Text_1o0ef_85`,Actions:`_Actions_1o0ef_95`,Price:`_Price_1o0ef_103`};function Ue({header:t,items:i,titleRender:a,action:o,priceExample:s,render:c,ref:l,className:u,...d}){return(0,e.useRender)({render:c,ref:l,defaultTagName:`div`,props:{...d,className:f(Q.Stats,u)({}),children:(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsxs)(`ul`,{className:Q.List,children:[i.map((e,t)=>(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(`li`,{"aria-hidden":!0,className:Q.Bar}),(0,n.jsx)(We,{...e,titleRender:a})]},t)),(0,n.jsx)(`li`,{"aria-hidden":!0,className:Q.Bar})]}),(o!=null||s!=null)&&(0,n.jsxs)(`div`,{className:Q.Actions,children:[o,s!=null&&(0,n.jsx)(`p`,{className:Q.Price,children:s})]})]})}})}function We({number:t,title:r,text:i,titleRender:a}){let o=(0,e.useRender)({enabled:r!=null,render:a,defaultTagName:`h3`,props:{className:Q.Title,children:r}});return(0,n.jsxs)(`li`,{className:Q.Stat,children:[(0,n.jsx)(`p`,{className:Q.Number,children:t}),(o!=null||i!=null)&&(0,n.jsxs)(`div`,{className:Q.Labels,children:[o,i!=null&&(0,n.jsx)(`p`,{className:Q.Text,children:i})]})]})}var $={Testimonials:`_Testimonials_13hpt_11`,Featured:`_Featured_13hpt_18`,Video:`_Video_13hpt_31`,Quote:`_Quote_13hpt_36`,Blockquote:`_Blockquote_13hpt_44`,Person:`_Person_13hpt_72`,Name:`_Name_13hpt_81`,Meta:`_Meta_13hpt_88`,Still:`_Still_13hpt_124`,Play:`_Play_13hpt_133`,DialogViewport:`_DialogViewport_13hpt_143`,DialogPopup:`_DialogPopup_13hpt_143`,DialogVideo:`_DialogVideo_13hpt_149`,Close:`_Close_13hpt_157`},Ge=(0,i.createTranslation)({reviews:{no:`Kundeomtaler`,se:`Kundomdömen`,fi:`Asiakasarviot`,es:`Opiniones de clientes`},play:{no:`Spill av video`,se:`Spela upp video`,fi:`Toista video`,es:`Reproducir vídeo`},video:{no:`Video fra kunde`,se:`Video från kund`,fi:`Asiakkaan video`,es:`Vídeo de un cliente`},close:{no:`Lukk video`,se:`Stäng video`,fi:`Sulje video`,es:`Cerrar vídeo`},captionsLanguage:{no:`nb`,se:`sv`,fi:`fi`,es:`es`},captionsLabel:{no:`Norsk`,se:`Svenska`,fi:`Suomi`,es:`Español`}});function Ke({title:a,titleRender:o,subtitle:s,quote:c,name:l,meta:u,rating:d,videoSrc:p,videoPoster:m,videoCaptions:h,videoPosition:g=`start`,render:_,ref:v,className:y,children:b,...x}){let S=Ge(),C=(0,r.useId)(),w=c!=null||l!=null,ee=r.Children.toArray(b).length>0;return(0,e.useRender)({render:_,ref:v,defaultTagName:`div`,props:{...x,className:f($.Testimonials,y)({}),children:(0,n.jsxs)(n.Fragment,{children:[a!=null&&(0,n.jsx)(Ce,{title:a,titleRender:(0,r.cloneElement)(o??(0,n.jsx)(`h2`,{}),{id:C}),subtitle:s}),(w||p!=null)&&(0,n.jsxs)(`div`,{className:$.Featured,"data-video":p!=null||void 0,"data-video-position":g,children:[w&&(0,n.jsxs)(`figure`,{className:$.Quote,children:[d!=null&&(0,n.jsx)(i.StarRating,{rating:d}),c!=null&&(0,n.jsx)(`blockquote`,{className:$.Blockquote,children:typeof c==`string`||typeof c==`number`?(0,n.jsx)(`p`,{children:c}):c}),(l!=null||u!=null)&&(0,n.jsxs)(`figcaption`,{className:$.Person,children:[l!=null&&(0,n.jsx)(`span`,{className:$.Name,children:l}),u!=null&&(0,n.jsx)(`span`,{className:$.Meta,children:u})]})]}),p!=null&&(0,n.jsxs)(`div`,{className:$.Video,children:[m==null?(0,n.jsx)(`video`,{className:$.Still,src:`${p}#t=0.1`,preload:`metadata`,muted:!0,playsInline:!0,"aria-hidden":!0,tabIndex:-1}):(0,n.jsx)(`img`,{className:$.Still,src:m,alt:``}),(0,n.jsxs)(i.Dialog.Root,{children:[(0,n.jsx)(i.Dialog.Trigger,{render:(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":S.play,className:$.Play,children:(0,n.jsx)(t.Play,{"aria-hidden":!0})})}),(0,n.jsxs)(i.Dialog.Portal,{children:[(0,n.jsx)(i.Dialog.Backdrop,{}),(0,n.jsx)(i.Dialog.Viewport,{className:$.DialogViewport,children:(0,n.jsxs)(i.Dialog.Popup,{size:`lg`,"aria-label":S.video,className:$.DialogPopup,children:[(0,n.jsx)(i.Dialog.Close,{render:(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":S.close,className:$.Close,children:(0,n.jsx)(t.X,{"aria-hidden":!0})})}),(0,n.jsx)(`video`,{className:$.DialogVideo,src:p,controls:!0,autoPlay:!0,playsInline:!0,children:h!=null&&(0,n.jsx)(`track`,{kind:`captions`,src:h,srcLang:S.captionsLanguage,label:S.captionsLabel,default:!0})})]})})]})]})]})]}),ee&&(0,n.jsx)(T,{...a==null?{"aria-label":S.reviews}:{"aria-labelledby":C},children:b})]})}})}exports.AlertBanner=d,exports.BrandLetters=_,exports.Calculator=y,exports.Carousel=T,exports.CtaBanner=re,exports.ExpandingCards=ue,exports.ExpandingCardsItem=de,exports.Hero=fe,exports.HeroServiceGrid=pe,exports.NavigationGrid=me,exports.PartnerList=ge,exports.PaymentFeature=_e,exports.PromoGrid=ye,exports.Section=Se,exports.SectionHeader=Ce,exports.ServiceCardGrid=we,exports.SideNav=Ee,exports.SiteFooter=Pe,exports.SiteHeader=Ve,exports.SplitContent=He,exports.Stats=Ue,exports.Testimonials=Ke;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});require('./website.css');let e=require("@base-ui/react/use-render"),t=require("lucide-react"),n=require("react/jsx-runtime"),r=require("react"),i=require("./component-library.umd.js"),a=require("@base-ui/react/navigation-menu"),o=require("@base-ui/react/collapsible"),s=require("@base-ui/react/drawer");function c({className:e,id:t,children:r}){return typeof r==`string`||typeof r==`number`?(0,n.jsx)(`p`,{className:e,id:t,children:r}):(0,n.jsx)(`div`,{className:e,id:t,children:r})}var l={AlertBanner:`_AlertBanner_11ase_11`,Icon:`_Icon_11ase_67`,Content:`_Content_11ase_81`,Title:`_Title_11ase_90`,Text:`_Text_11ase_97`};function u({render:t,children:n}){return(0,e.useRender)({render:t,defaultTagName:`h2`,props:{className:l.Title,children:n}})}function d({title:e,text:r,titleRender:i,icon:a,color:o=`error`,className:s,...d}){let f=a===void 0?(0,n.jsx)(t.TriangleAlert,{}):a;return(0,n.jsxs)(`div`,{...d,className:[l.AlertBanner,s].filter(Boolean).join(` `),"data-color":o,children:[f!=null&&f!==!1&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:l.Icon,children:f}),(0,n.jsxs)(`div`,{className:l.Content,children:[e!=null&&(0,n.jsx)(u,{render:i,children:e}),r!=null&&(0,n.jsx)(c,{className:l.Text,children:r})]})]})}var f=(e,t)=>n=>[e,typeof t==`function`?t(n):t].filter(Boolean).join(` `),p={BrandLetters:`_BrandLetters_1ygg1_9`,Letters:`_Letters_1ygg1_17`,Letter:`_Letter_1ygg1_17`,Video:`_Video_1ygg1_48`},m=(0,i.createTranslation)({play:{no:`Spill av videoene`,se:`Spela upp videorna`,fi:`Toista videot`,es:`Reproducir los vídeos`},pause:{no:`Sett videoene på pause`,se:`Pausa videorna`,fi:`Keskeytä videot`,es:`Pausar los vídeos`}}),h=`(prefers-reduced-motion: reduce)`,g=[`L`,`E`,`A`];function _({videos:a,render:o,ref:s,className:c,...l}){let u=m(),d=(0,r.useRef)([]),[_,v]=(0,r.useState)(!1),y=e=>{for(let t of d.current)t&&e(t)},b=e=>{e.muted=!0,e.play().catch(()=>{})};(0,r.useEffect)(()=>{let e=window.matchMedia(h);e.matches||y(b);let t=e=>{e.matches&&y(e=>e.pause())};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let x=()=>v(d.current.some(e=>e!=null&&!e.paused)),S=()=>{y(_?e=>e.pause():b)};return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{...l,className:f(p.BrandLetters,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:p.Letters,children:g.map((e,t)=>(0,n.jsx)(`div`,{className:p.Letter,"data-letter":e,children:(0,n.jsx)(`video`,{ref:e=>{d.current[t]=e},className:p.Video,src:a[t].src,poster:a[t].poster,muted:!0,loop:!0,playsInline:!0,"aria-hidden":!0,onPlay:x,onPause:x})},e))}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":_?u.pause:u.play,onClick:S,children:_?(0,n.jsx)(t.Pause,{"aria-hidden":!0}):(0,n.jsx)(t.Play,{"aria-hidden":!0})})]})}})}var v={Calculator:`_Calculator_1mamd_12`,Body:`_Body_1mamd_26`,Panel:`_Panel_1mamd_41`,Summary:`_Summary_1mamd_55`,Results:`_Results_1mamd_64`,Result:`_Result_1mamd_64`,Label:`_Label_1mamd_77`,Value:`_Value_1mamd_78`,Actions:`_Actions_1mamd_95`,Price:`_Price_1mamd_103`};function y({header:t,results:r,action:i,priceExample:a,render:o,ref:s,className:c,children:l,...u}){return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{...u,className:f(v.Calculator,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsxs)(`div`,{className:v.Body,children:[(0,n.jsx)(`div`,{className:v.Panel,children:l}),(0,n.jsxs)(`div`,{className:v.Summary,children:[r.length>0&&(0,n.jsx)(`dl`,{className:v.Results,"aria-live":`polite`,children:r.map((e,t)=>(0,n.jsxs)(`div`,{className:v.Result,children:[(0,n.jsx)(`dt`,{className:v.Label,children:e.label}),(0,n.jsx)(`dd`,{className:v.Value,children:e.value})]},t))}),(i!=null||a!=null)&&(0,n.jsxs)(`div`,{className:v.Actions,children:[i,a!=null&&(0,n.jsx)(`p`,{className:v.Price,children:a})]})]})]})]})}})}var b={Carousel:`_Carousel_17a24_14`,Viewport:`_Viewport_17a24_31`,Track:`_Track_17a24_66`,Slide:`_Slide_17a24_94`,Controls:`_Controls_17a24_100`,VisuallyHidden:`_VisuallyHidden_17a24_109`},x={fast:`0.15s`,normal:`0.2s`,emphasis:`0.3s`},S=`(prefers-reduced-motion: reduce)`,C=150,w=parseFloat(x.emphasis)*1e3;function ee(e){let t=(e,t,n)=>3*t*e*(1-e)**2+3*n*e**2*(1-e)+e**3,n=0,r=1;for(let i=0;i<20;i+=1){let i=(n+r)/2;t(i,.42,.58)<e?n=i:r=i}return t((n+r)/2,0,1)}function te(e,t){let n=(0,r.useRef)([0]),i=(0,r.useRef)(void 0),a=(0,r.useRef)(void 0),[o,s]=(0,r.useState)(()=>({pageCount:Math.max(1,t-1),page:0,settledPage:0,atStart:!0,atEnd:t<=2,overflowing:t>2,moved:!1})),c=(0,r.useCallback)((t,r=!1)=>{let i=e.current;if(!i)return;let a=i.scrollLeft,o=Math.max(0,i.scrollWidth-i.clientWidth),c=n.current,l=0;for(let e=1;e<c.length;e+=1)Math.abs(c[e]-a)<Math.abs(c[l]-a)&&(l=e);s(e=>{let n={pageCount:c.length,page:l,settledPage:t?l:e.settledPage,atStart:a<=1,atEnd:a>=o-1,overflowing:o>1,moved:e.moved||r};return Object.keys(n).every(t=>n[t]===e[t])?e:n})},[e]),l=(0,r.useCallback)(()=>{let t=e.current;if(!t)return;let r=Math.max(0,t.scrollWidth-t.clientWidth),i=Array.from(t.children),a=i[0]?.offsetLeft??0,o=[];for(let e of i){let t=Math.min(Math.max(0,e.offsetLeft-a),r);(o.length===0||t-o[o.length-1]>1)&&o.push(t)}n.current=o.length>0?o:[0],c(!0)},[c,e]),u=(0,r.useCallback)(()=>{a.current&&(cancelAnimationFrame(a.current.frame),a.current=void 0,e.current?.style.removeProperty(`scroll-snap-type`))},[e]);(0,r.useEffect)(()=>{let t=e.current;if(!t)return;l();let n=()=>{c(!1,!0),clearTimeout(i.current),i.current=setTimeout(()=>c(!0),C)},r=new ResizeObserver(l),a=[`pointerdown`,`touchstart`,`wheel`,`keydown`];t.addEventListener(`scroll`,n,{passive:!0});for(let e of a)t.addEventListener(e,u,{passive:!0});return r.observe(t),()=>{t.removeEventListener(`scroll`,n);for(let e of a)t.removeEventListener(e,u);r.disconnect(),clearTimeout(i.current),u()}},[l,c,t,u,e]);let d=(0,r.useCallback)(t=>{let r=e.current;if(!r)return;let i=n.current,o=i[Math.min(i.length-1,Math.max(0,t))];if(a.current?.to===o)return;u();let s=r.scrollLeft;if(window.matchMedia(S).matches||Math.abs(o-s)<1){r.scrollTo({left:o,behavior:`instant`});return}r.style.setProperty(`scroll-snap-type`,`none`);let c=performance.now(),l=e=>{let t=Math.min(1,(e-c)/w);r.scrollTo({left:s+(o-s)*ee(t),behavior:`instant`}),t<1?a.current={frame:requestAnimationFrame(l),to:o}:(a.current=void 0,r.style.removeProperty(`scroll-snap-type`))};a.current={frame:requestAnimationFrame(l),to:o}},[u,e]);return{...o,goTo:d}}var ne=(0,i.createTranslation)({carousel:{no:`karusell`,se:`karusell`,fi:`karuselli`,es:`carrusel`},previous:{no:`Forrige`,se:`Föregående`,fi:`Edellinen`,es:`Anterior`},next:{no:`Neste`,se:`Nästa`,fi:`Seuraava`,es:`Siguiente`},status:{no:`Side {page} av {count}`,se:`Sida {page} av {count}`,fi:`Sivu {page}/{count}`,es:`Página {page} de {count}`}});function T({getItemLabel:a,render:o,ref:s,className:c,children:l,...u}){let d=ne(),p=(0,r.useRef)(null),m=r.Children.toArray(l),{pageCount:h,page:g,settledPage:_,atStart:v,atEnd:y,overflowing:x,moved:S,goTo:C}=te(p,m.length);return(0,e.useRender)({render:o,ref:s,defaultTagName:`div`,props:{role:`region`,"aria-roledescription":d.carousel,...u,className:f(b.Carousel,c)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:b.Viewport,"data-at-start":v||void 0,"data-at-end":y||void 0,children:(0,n.jsx)(`ul`,{ref:p,className:b.Track,tabIndex:x?0:void 0,children:m.map((e,t)=>(0,n.jsx)(`li`,{className:b.Slide,children:e},t))})}),h>1&&(0,n.jsxs)(`div`,{className:b.Controls,children:[(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":d.previous,disabled:g===0,focusableWhenDisabled:!0,onClick:()=>C(g-1),children:(0,n.jsx)(t.ChevronLeft,{"aria-hidden":!0})}),(0,n.jsx)(i.PaginationDots,{count:h,value:g+1,onValueChange:e=>C(e-1),getItemLabel:a}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":d.next,disabled:g===h-1,focusableWhenDisabled:!0,onClick:()=>C(g+1),children:(0,n.jsx)(t.ChevronRight,{"aria-hidden":!0})}),(0,n.jsx)(`span`,{role:`status`,className:b.VisuallyHidden,children:S&&d.status.replace(`{page}`,String(_+1)).replace(`{count}`,String(h))})]})]})}})}var E={CtaBanner:`_CtaBanner_vkp5c_7`,Title:`_Title_vkp5c_15`,Content:`_Content_vkp5c_24`,Text:`_Text_vkp5c_32`,Action:`_Action_vkp5c_48`,Price:`_Price_vkp5c_53`};function re({title:t,titleRender:r,text:i,action:a,priceExample:o,render:s,ref:l,className:u,...d}){let p=(0,e.useRender)({render:r,defaultTagName:`h2`,props:{className:E.Title,children:t}}),m=i!=null||a!=null||o!=null;return(0,e.useRender)({render:s,ref:l,defaultTagName:`div`,props:{...d,"data-has-content":m||void 0,className:f(E.CtaBanner,u)({}),children:(0,n.jsxs)(n.Fragment,{children:[p,m&&(0,n.jsxs)(`div`,{className:E.Content,children:[i!=null&&(0,n.jsx)(c,{className:E.Text,children:i}),a!=null&&(0,n.jsx)(`div`,{className:E.Action,children:a}),o!=null&&(0,n.jsx)(`p`,{className:E.Price,children:o})]})]})}})}var ie=(0,r.createContext)({open:!0}),D={ExpandingCards:`_ExpandingCards_s83zm_19`,List:`_List_s83zm_23`,Item:`_Item_s83zm_32`},ae=`(min-width: 1312px)`,oe={open:!0},se={open:!1},ce=e=>{let t=window.matchMedia(ae);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},le=()=>(0,r.useSyncExternalStore)(ce,()=>window.matchMedia(ae).matches,()=>!0);function ue({defaultOpen:t=`first`,render:i,ref:a,className:o,children:s,...c}){let l=r.Children.toArray(s),u=le(),[d,p]=(0,r.useState)(()=>t===`last`?Math.max(0,l.length-1):0);return(0,e.useRender)({render:i,ref:a,defaultTagName:`div`,props:{...c,className:f(D.ExpandingCards,o)({}),children:(0,n.jsx)(`ul`,{className:D.List,style:{"--expanding-cards-count":l.length},children:l.map((e,t)=>(0,n.jsx)(`li`,{className:D.Item,"data-open":t===d||void 0,onPointerEnter:()=>p(t),onFocus:()=>p(t),children:(0,n.jsx)(ie.Provider,{value:!u||t===d?oe:se,children:e})},t))})}})}var O={ExpandingCardsItem:`_ExpandingCardsItem_qsobf_25`,Content:`_Content_qsobf_61`,Title:`_Title_qsobf_78`,Text:`_Text_qsobf_89`,Action:`_Action_qsobf_107`,Photo:`_Photo_qsobf_118`,Image:`_Image_qsobf_125`};function de({title:t,titleRender:a,text:o,action:s,src:l,alt:u,imageRender:d,imageAsBackground:p=!1,imageMotion:m=`zoom`,surface:h=`base`,render:g,ref:_,className:v,...y}){let{open:b}=(0,r.useContext)(ie),x=(0,e.useRender)({render:a,defaultTagName:`h2`,props:{className:O.Title,children:t}}),S=(0,e.useRender)({enabled:l!=null,render:d,defaultTagName:`img`,props:{src:l,alt:u,className:O.Image}}),C=l!=null&&p;return(0,e.useRender)({render:g,ref:_,defaultTagName:`div`,props:{...y,"data-surface":h,"data-open":b||void 0,"data-image":l!=null||void 0,"data-image-as-background":C||void 0,"data-image-motion":C?m:void 0,className:f(O.ExpandingCardsItem,v)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:O.Content,children:[x,o!=null&&(0,n.jsx)(c,{className:O.Text,children:o}),s!=null&&(0,n.jsx)(`div`,{className:O.Action,children:(0,n.jsx)(i.ActionButtonProvider,{iconOnly:!b,children:s})})]}),S!=null&&(0,n.jsx)(`div`,{className:O.Photo,children:S})]})}})}var k={Hero:`_Hero_1ik22_8`,Background:`_Background_1ik22_24`,Image:`_Image_1ik22_30`,Container:`_Container_1ik22_37`,Box:`_Box_1ik22_45`,Title:`_Title_1ik22_50`,Text:`_Text_1ik22_59`,Action:`_Action_1ik22_75`,Price:`_Price_1ik22_80`};function fe({src:t,alt:r,imageRender:a,title:o,titleRender:s,text:l,action:u,priceExample:d,render:p,ref:m,className:h,...g}){let _=(0,e.useRender)({render:s,defaultTagName:`h1`,props:{className:k.Title,children:o}}),v=(0,e.useRender)({render:a,defaultTagName:`img`,props:{src:t,alt:r,className:k.Image}});return(0,e.useRender)({render:p,ref:m,defaultTagName:`section`,props:{...g,className:f(k.Hero,h)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`div`,{className:k.Container,children:(0,n.jsxs)(i.Panel,{className:k.Box,children:[_,l!=null&&(0,n.jsx)(c,{className:k.Text,children:l}),u!=null&&(0,n.jsx)(`div`,{className:k.Action,children:u}),d!=null&&(0,n.jsx)(`p`,{className:k.Price,children:d})]})}),(0,n.jsx)(`div`,{className:k.Background,children:v})]})}})}var A={HeroServiceGrid:`_HeroServiceGrid_yr3eo_8`,Cards:`_Cards_yr3eo_15`,Item:`_Item_yr3eo_26`,Featured:`_Featured_yr3eo_51`};function pe({src:t,alt:a,imageRender:o,action:s,imagePosition:c=`start`,render:l,ref:u,className:d,children:p,...m}){let h=r.Children.toArray(p);return(0,e.useRender)({render:l,ref:u,defaultTagName:`div`,props:{...m,"data-image-position":c,className:f(A.HeroServiceGrid,d)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FeaturedImage,{className:A.Featured,src:t,alt:a,imageRender:o,action:s}),h.length>0&&(0,n.jsx)(`ul`,{className:A.Cards,children:h.map((e,t)=>(0,n.jsx)(`li`,{className:A.Item,children:e},t))})]})}})}var j={NavigationGrid:`_NavigationGrid_ocatr_9`,Title:`_Title_ocatr_16`,List:`_List_ocatr_25`,Item:`_Item_ocatr_35`};function me({title:t,titleRender:i,render:a,ref:o,className:s,children:c,...l}){let u=r.Children.toArray(c),d=u.length>=3&&u.length%2==1,p=(0,e.useRender)({enabled:t!=null,render:i,defaultTagName:`h2`,props:{className:j.Title,children:t}});return(0,e.useRender)({render:a,ref:o,defaultTagName:`div`,props:{...l,className:f(j.NavigationGrid,s)({}),children:(0,n.jsxs)(n.Fragment,{children:[p,(0,n.jsx)(`ul`,{className:j.List,"data-odd":d||void 0,children:u.map((e,t)=>(0,n.jsx)(`li`,{className:j.Item,children:e},t))})]})}})}var M={PartnerList:`_PartnerList_9o9wx_7`,List:`_List_9o9wx_11`,Controls:`_Controls_9o9wx_19`,VisuallyHidden:`_VisuallyHidden_9o9wx_29`},he=(0,i.createTranslation)({previous:{no:`Forrige side`,se:`Föregående sida`,fi:`Edellinen sivu`,es:`Página anterior`},next:{no:`Neste side`,se:`Nästa sida`,fi:`Seuraava sivu`,es:`Página siguiente`},status:{no:`Side {page} av {count}`,se:`Sida {page} av {count}`,fi:`Sivu {page}/{count}`,es:`Página {page} de {count}`},collation:{no:`nb`,se:`sv`,fi:`fi`,es:`es`}});function ge({items:a,pageSize:o=9,value:s,defaultValue:c=1,onValueChange:l,render:u,ref:d,className:p,...m}){let h=he(),[g,_]=(0,r.useState)(c),v=(0,r.useMemo)(()=>{let e=new Intl.Collator(h.collation,{sensitivity:`base`});return[...a].sort((t,n)=>e.compare(t.name,n.name))},[a,h.collation]),y=Math.max(1,Math.floor(o)),b=Math.max(1,Math.ceil(v.length/y)),x=Math.min(b,Math.max(1,s??g)),S=(x-1)*y,C=e=>{let t=Math.min(b,Math.max(1,e));s===void 0&&_(t),t!==x&&l?.(t)};return(0,e.useRender)({enabled:v.length>0,render:u,ref:d,defaultTagName:`div`,props:{...m,className:f(M.PartnerList,p)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`ul`,{className:M.List,children:v.slice(S,S+y).map(({name:e,content:t,...r},a)=>(0,n.jsx)(i.PartnerRow,{...r,render:(0,n.jsx)(`li`,{}),children:t},`${S+a}-${e}`))}),b>1&&(0,n.jsxs)(`div`,{className:M.Controls,children:[(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":h.previous,disabled:x===1,focusableWhenDisabled:!0,onClick:()=>C(x-1),children:(0,n.jsx)(t.ChevronLeft,{"aria-hidden":!0})}),(0,n.jsx)(i.PaginationDots,{count:b,value:x,onValueChange:C}),(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":h.next,disabled:x===b,focusableWhenDisabled:!0,onClick:()=>C(x+1),children:(0,n.jsx)(t.ChevronRight,{"aria-hidden":!0})}),(0,n.jsx)(`span`,{role:`status`,className:M.VisuallyHidden,children:h.status.replace(`{page}`,String(x)).replace(`{count}`,String(b))})]})]})}})}var N={Grid:`_Grid_1inyv_10`,Content:`_Content_1inyv_17`,Logos:`_Logos_1inyv_28`,LogoItem:`_LogoItem_1inyv_38`,Logo:`_Logo_1inyv_28`,Text:`_Text_1inyv_65`,Title:`_Title_1inyv_71`,Description:`_Description_1inyv_80`,Actions:`_Actions_1inyv_96`,Price:`_Price_1inyv_103`,Media:`_Media_1inyv_111`,PaymentFeature:`_PaymentFeature_1inyv_116`,Image:`_Image_1inyv_120`};function _e({logos:t,title:r,titleRender:a,text:o,actions:s,priceExample:l,src:u,alt:d,imageRender:f,imagePosition:p=`end`,className:m,...h}){let g=(0,e.useRender)({render:a,defaultTagName:`h2`,props:{className:N.Title,children:r}}),_=(0,e.useRender)({enabled:u!=null,render:f,defaultTagName:`img`,props:{src:u,alt:d,className:N.Image}});return(0,n.jsx)(i.Panel,{...h,className:[N.PaymentFeature,m].filter(Boolean).join(` `),"data-image-position":p,"data-has-image":_!=null||void 0,children:(0,n.jsxs)(`div`,{className:N.Grid,children:[(0,n.jsxs)(`div`,{className:N.Content,children:[t!=null&&t.length>0&&(0,n.jsx)(`ul`,{className:N.Logos,children:t.map((e,t)=>(0,n.jsx)(ve,{...e},t))}),(0,n.jsxs)(`div`,{className:N.Text,children:[g,o!=null&&(0,n.jsx)(c,{className:N.Description,children:o})]}),s!=null&&(0,n.jsx)(`div`,{className:N.Actions,children:s}),l!=null&&(0,n.jsx)(`p`,{className:N.Price,children:l})]}),_!=null&&(0,n.jsx)(`div`,{className:N.Media,children:_})]})})}function ve({src:t,alt:r,imageRender:i}){let a=(0,e.useRender)({render:i,defaultTagName:`img`,props:{src:t,alt:r,className:N.Logo}});return(0,n.jsx)(`li`,{className:N.LogoItem,children:a})}var P={PromoGrid:`_PromoGrid_1l2yi_10`,Featured:`_Featured_1l2yi_19`,Content:`_Content_1l2yi_23`,Photos:`_Photos_1l2yi_31`,Photo:`_Photo_1l2yi_31`,Block:`_Block_1l2yi_51`,Title:`_Title_1l2yi_63`,Subtitle:`_Subtitle_1l2yi_73`};function ye({src:t,alt:r,imageRender:a,action:o,images:s,title:l,titleRender:u,subtitle:d,imagePosition:p=`start`,render:m,ref:h,className:g,..._}){let v=(0,e.useRender)({render:u,defaultTagName:`h2`,props:{className:P.Title,children:l}});return(0,e.useRender)({render:m,ref:h,defaultTagName:`div`,props:{..._,"data-image-position":p,className:f(P.PromoGrid,g)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FeaturedImage,{className:P.Featured,src:t,alt:r,imageRender:a,action:o}),(0,n.jsxs)(`div`,{className:P.Content,children:[s!=null&&s.length>0&&(0,n.jsx)(`div`,{className:P.Photos,"data-count":s.length,children:s.map((e,t)=>(0,n.jsx)(be,{...e},t))}),(0,n.jsxs)(`div`,{className:P.Block,children:[v,d!=null&&(0,n.jsx)(c,{className:P.Subtitle,children:d})]})]})]})}})}function be({src:t,alt:n,imageRender:r}){return(0,e.useRender)({render:r,defaultTagName:`img`,props:{src:t,alt:n,className:P.Photo}})}var xe={Section:`_Section_f8rp9_11`,Content:`_Content_f8rp9_60`};function Se({surface:t=`base`,spacingTop:r=`lg`,spacingBottom:i=`lg`,width:a=`full`,render:o,ref:s,className:c,children:l,...u}){return(0,e.useRender)({render:o,ref:s,defaultTagName:`section`,props:{...u,"data-surface":t,"data-spacing-top":r,"data-spacing-bottom":i,className:f(xe.Section,c)({}),children:(0,n.jsx)(`div`,{className:xe.Content,"data-width":a,children:l})}})}var F={SectionHeader:`_SectionHeader_11mff_8`,Text:`_Text_11mff_17`,Eyebrow:`_Eyebrow_11mff_25`,Title:`_Title_11mff_33`,Subtitle:`_Subtitle_11mff_49`,Actions:`_Actions_11mff_67`,Price:`_Price_11mff_75`};function Ce({eyebrow:t,title:r,titleRender:i,titleSize:a=`lg`,subtitle:o,actions:s,priceExample:l,render:u,ref:d,className:p,...m}){let h=(0,e.useRender)({render:i,defaultTagName:`h2`,props:{className:F.Title,children:r}});return(0,e.useRender)({render:u,ref:d,defaultTagName:`div`,props:{...m,"data-title-size":a,className:f(F.SectionHeader,p)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:F.Text,children:[t!=null&&(0,n.jsx)(`p`,{className:F.Eyebrow,children:t}),h,o!=null&&(0,n.jsx)(c,{className:F.Subtitle,children:o})]}),s!=null&&(0,n.jsx)(`div`,{className:F.Actions,children:s}),l!=null&&(0,n.jsx)(`p`,{className:F.Price,children:l})]})}})}var I={ServiceCardGrid:`_ServiceCardGrid_nutvc_9`,List:`_List_nutvc_13`,Item:`_Item_nutvc_23`};function we({render:t,ref:i,className:a,children:o,...s}){let c=r.Children.toArray(o);return(0,e.useRender)({render:t,ref:i,defaultTagName:`div`,props:{...s,className:f(I.ServiceCardGrid,a)({}),children:(0,n.jsx)(`ul`,{className:I.List,"data-count":c.length,children:c.map((e,t)=>(0,n.jsx)(`li`,{className:I.Item,children:e},t))})}})}var L={ArrowRevealLink:`_ArrowRevealLink_zq26l_2`,Arrow:`_Arrow_zq26l_2`,Text:`_Text_zq26l_40`};function R({render:r,className:i,children:a,size:o=`md`,marked:s=!1,...c}){return(0,e.useRender)({render:r,defaultTagName:`a`,props:{...c,"data-size":o===`md`?void 0:o,"data-marked":s?``:void 0,className:f(L.ArrowRevealLink,i)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:L.Arrow,children:(0,n.jsx)(t.ArrowRight,{})}),(0,n.jsx)(`span`,{className:L.Text,children:a})]})}})}var z={SideNav:`_SideNav_1ha5v_6`,Sidebar:`_Sidebar_1ha5v_29`,List:`_List_1ha5v_44`,Content:`_Content_1ha5v_61`},Te=(0,i.createTranslation)({navigation:{no:`Sidemeny`,se:`Sidomeny`,fi:`Sivuvalikko`,es:`Menú lateral`}});function Ee({items:e,label:t,breadcrumbs:a,children:o,className:s,...c}){let l=Te(),u=e.findIndex(e=>e.current),[d,f]=(0,r.useState)(null);d&&d.from!==u&&f(null);let p=d?.index??u;return(0,r.useEffect)(()=>{let e=e=>{e.persisted&&f(null)};return window.addEventListener(`pageshow`,e),()=>window.removeEventListener(`pageshow`,e)},[]),(0,n.jsxs)(`div`,{...c,className:[z.SideNav,s].filter(Boolean).join(` `),children:[(0,n.jsx)(`nav`,{className:z.Sidebar,"aria-label":t??l.navigation,children:(0,n.jsx)(`ul`,{className:z.List,children:e.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{size:`lg`,href:e.href,render:e.render,"aria-current":e.current?`page`:void 0,marked:t===p,onClick:e=>{De(e)&&f({index:t,from:u})},children:e.label})},t))})}),(0,n.jsxs)(i.Panel,{size:`sm`,className:z.Content,children:[a,o]})]})}function De(e){let t=e.currentTarget,n=t.getAttribute(`target`);return!e.defaultPrevented&&e.button===0&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&(!n||n===`_self`)&&!t.hasAttribute(`download`)}var B=`M10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20Z`,V=`M19.9154 8.69625H7.82613H7.82609V0.238281C6.90195 0.443203 6.02582 0.775352 5.21738 1.21648V8.69617V8.69621H0.0846484C0.0289844 9.1232 0 9.55852 0 10.0006C0 10.4427 0.0289844 10.878 0.0846484 11.3049H5.21734H5.21738V18.7846C6.02582 19.2257 6.90195 19.558 7.82609 19.7629V11.305V11.305H19.9154C19.9709 10.878 20 10.4427 20 10.0006C20 9.55852 19.9709 9.1232 19.9154 8.69625V8.69625Z`;function H({children:e,...t}){return(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,"aria-hidden":!0,focusable:`false`,...t,children:e})}function Oe(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#F0F0F0`}),(0,n.jsx)(`path`,{d:`M0.34375 12.6094C0.922344 14.7562 2.19754 16.6169 3.9123 17.9345V12.6094H0.34375Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M9.12891 19.9626C9.41555 19.9873 9.70543 20.0007 9.99848 20.0007C14.6188 20.0007 18.5065 16.867 19.654 12.6094H9.12891V19.9626Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M19.654 7.39129C18.5065 3.13363 14.6188 0 9.99848 0C9.70543 0 9.41555 0.0133594 9.12891 0.0380469V7.39129H19.654Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M3.9123 2.06641C2.19754 3.38398 0.922344 5.24465 0.34375 7.39148H3.9123V2.06641Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:V,fill:`#0052B4`})]})}function ke(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#FFDA44`}),(0,n.jsx)(`path`,{d:`M7.82816 8.69566H19.9174C19.2782 3.78914 15.0828 0 10.002 0C9.25539 0 8.52809 0.0825391 7.82812 0.237695V8.69566H7.82816Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M5.21867 8.69848V1.21875C2.47281 2.71695 0.507148 5.46504 0.0859375 8.69852H5.21867V8.69848Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M5.21863 11.3047H0.0859375C0.507148 14.5382 2.47281 17.2863 5.21867 18.7844L5.21863 11.3047Z`,fill:`#0052B4`}),(0,n.jsx)(`path`,{d:`M7.82812 11.3047V19.7627C8.52809 19.9178 9.25539 20.0004 10.002 20.0004C15.0828 20.0004 19.2782 16.2112 19.9174 11.3047H7.82812V11.3047Z`,fill:`#0052B4`})]})}function Ae(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:B,fill:`#F0F0F0`}),(0,n.jsx)(`path`,{d:V,fill:`#0052B4`})]})}function je(e){return(0,n.jsxs)(H,{...e,children:[(0,n.jsx)(`path`,{d:`M0 10.0002C0 11.2234 0.220039 12.3951 0.621992 13.4784L10 14.348L19.378 13.4784C19.78 12.3951 20 11.2234 20 10.0002C20 8.77695 19.78 7.60523 19.378 6.52191L10 5.65234L0.621992 6.52191C0.220039 7.60523 0 8.77695 0 10.0002H0Z`,fill:`#FFDA44`}),(0,n.jsx)(`path`,{d:`M19.3771 6.52176C17.9642 2.71379 14.2987 0 9.9991 0C5.69945 0 2.03402 2.71379 0.621094 6.52176H19.3771Z`,fill:`#D80027`}),(0,n.jsx)(`path`,{d:`M0.621094 13.4766C2.03402 17.2845 5.69945 19.9983 9.9991 19.9983C14.2987 19.9983 17.9642 17.2845 19.3771 13.4766H0.621094Z`,fill:`#D80027`})]})}function U({href:t,render:n,...r}){return(0,e.useRender)({render:n,defaultTagName:`a`,props:t==null?r:{...r,href:t}})}var W=e=>e.groups!=null&&e.groups.length>0,G=e=>e.href!=null||e.render!=null,K={SiteFooter:`_SiteFooter_o2ixe_7`,Content:`_Content_o2ixe_23`,Main:`_Main_o2ixe_32`,Home:`_Home_o2ixe_46`,Columns:`_Columns_o2ixe_64`,Column:`_Column_o2ixe_64`,Title:`_Title_o2ixe_94`,Links:`_Links_o2ixe_108`,Social:`_Social_o2ixe_109`,Link:`_Link_o2ixe_108`,SocialIcon:`_SocialIcon_o2ixe_147`,Market:`_Market_o2ixe_161`,Divider:`_Divider_o2ixe_165`,CookieSettings:`_CookieSettings_o2ixe_176`,Copyright:`_Copyright_o2ixe_192`},Me=(0,i.createTranslation)({market:{no:`Marked`,se:`Marknad`,fi:`Markkina`,es:`Mercado`},social:{no:`Sosiale medier`,se:`Sociala medier`,fi:`Sosiaalinen media`,es:`Redes sociales`},cookieSettings:{no:`Cookie-innstillinger`,se:`Cookieinställningar`,fi:`Evästeasetukset`,es:`Configuración de cookies`},collation:{no:`nb`,se:`sv`,fi:`fi`,es:`es`}}),q=(0,i.createTranslation)({navigation:{no:`Hovedmeny`,se:`Huvudmeny`,fi:`Päävalikko`,es:`Menú principal`},menu:{no:`Meny`,se:`Meny`,fi:`Valikko`,es:`Menú`},closeMenu:{no:`Lukk meny`,se:`Stäng menyn`,fi:`Sulje valikko`,es:`Cerrar menú`},home:{no:`Lea Bank, forside`,se:`Lea Bank, startsida`,fi:`Lea Bank, etusivu`,es:`Lea Bank, página de inicio`}}),J={no:{name:`Norge`,flag:(0,n.jsx)(Oe,{})},se:{name:`Sverige`,flag:(0,n.jsx)(ke,{})},fi:{name:`Suomi`,flag:(0,n.jsx)(Ae,{})},es:{name:`España`,flag:(0,n.jsx)(je,{})}},Ne=[`no`,`se`,`fi`,`es`];function Y({render:t,id:n,children:r}){return(0,e.useRender)({render:t,defaultTagName:`h2`,props:{id:n,className:K.Title,children:r}})}function Pe({market:e,render:t}){let a=Me(),o=(0,r.useId)(),s=e.options??Ne,c=(0,r.useMemo)(()=>{let e=new Intl.Collator(a.collation,{sensitivity:`base`});return[...s].sort((t,n)=>e.compare(J[t].name,J[n].name)).map(e=>({value:e,label:J[e].name,icon:J[e].flag}))},[s,a.collation]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y,{render:t,id:o,children:e.title??a.market}),(0,n.jsx)(i.Select,{size:`sm`,"aria-labelledby":o,options:c,value:e.value,onValueChange:e.onValueChange,className:K.Market})]})}function Fe({logo:e,homeRender:t,columns:r=[],market:i,social:a,onOpenCookieSettings:o,copyright:s,titleRender:l,className:u,...d}){let f=Me(),p=q(),m=o!=null||s!=null;return(0,n.jsx)(`footer`,{...d,className:[K.SiteFooter,u].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{className:K.Content,children:[(0,n.jsxs)(`div`,{className:K.Main,children:[(0,n.jsx)(U,{href:t==null?`/`:void 0,render:t,className:K.Home,"aria-label":p.home,children:e}),(0,n.jsxs)(`div`,{className:K.Columns,children:[r.map((e,t)=>(0,n.jsxs)(`div`,{className:K.Column,children:[(0,n.jsx)(Y,{render:l,children:e.title}),e.links.length>0&&(0,n.jsx)(`ul`,{className:K.Links,children:e.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(U,{href:e.href,render:e.render,className:K.Link,children:e.label})},t))})]},t)),(i!=null||a!=null)&&(0,n.jsxs)(`div`,{className:K.Column,children:[i!=null&&(0,n.jsx)(Pe,{market:i,render:l}),a!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Y,{render:l,children:a.title??f.social}),(0,n.jsx)(`ul`,{className:K.Social,children:a.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsxs)(U,{href:e.href,render:e.render,className:K.Link,children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:K.SocialIcon,children:e.icon}),e.label]})},t))})]})]})]})]}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`span`,{"aria-hidden":!0,className:K.Divider}),o!=null&&(0,n.jsx)(`button`,{type:`button`,className:K.CookieSettings,onClick:o,children:f.cookieSettings}),s!=null&&(0,n.jsx)(c,{className:K.Copyright,children:s})]})]})})}var X={SiteHeader:`_SiteHeader_dcn2t_9`,Bar:`_Bar_dcn2t_19`,BarContent:`_BarContent_dcn2t_24`,Home:`_Home_dcn2t_40`,Actions:`_Actions_dcn2t_57`,Account:`_Account_dcn2t_64`,MenuButton:`_MenuButton_dcn2t_80`,Action:`_Action_dcn2t_57`,Nav:`_Nav_dcn2t_121`,Pill:`_Pill_dcn2t_128`,Cta:`_Cta_dcn2t_129`,List:`_List_dcn2t_136`,Item:`_Item_dcn2t_148`,Chevron:`_Chevron_dcn2t_189`,Positioner:`_Positioner_dcn2t_263`,Popup:`_Popup_dcn2t_291`,Viewport:`_Viewport_dcn2t_311`,Content:`_Content_dcn2t_319`,Group:`_Group_dcn2t_339`,GroupTitle:`_GroupTitle_dcn2t_348`,Links:`_Links_dcn2t_355`,Separator:`_Separator_dcn2t_370`,CtaArrow:`_CtaArrow_dcn2t_402`,Backdrop:`_Backdrop_dcn2t_410`,DrawerViewport:`_DrawerViewport_dcn2t_424`,MenuPopup:`_MenuPopup_dcn2t_439`,MenuTop:`_MenuTop_dcn2t_479`,MenuContent:`_MenuContent_dcn2t_486`,MenuList:`_MenuList_dcn2t_499`,Row:`_Row_dcn2t_506`,RowChevron:`_RowChevron_dcn2t_545`,SubmenuPanel:`_SubmenuPanel_dcn2t_556`,Submenu:`_Submenu_dcn2t_556`,Parent:`_Parent_dcn2t_577`},Ie=`(min-width: 1312px)`;function Le({item:e,open:r,onOpenChange:i}){let a=e.groups.flatMap(e=>e.links),s=e.groups.flatMap(e=>e.cta==null?[]:[e.cta]);return(0,n.jsxs)(o.Collapsible.Root,{open:r,onOpenChange:i,children:[(0,n.jsxs)(o.Collapsible.Trigger,{className:X.Row,children:[e.label,(0,n.jsx)(t.ChevronDown,{"aria-hidden":!0,className:X.RowChevron})]}),(0,n.jsx)(o.Collapsible.Panel,{className:X.SubmenuPanel,children:(0,n.jsxs)(`div`,{className:X.Submenu,children:[(G(e)||a.length>0)&&(0,n.jsxs)(`ul`,{className:X.Links,children:[G(e)&&(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{className:X.Parent,href:e.href,render:e.render,children:e.label})}),a.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{href:e.href,render:e.render,children:e.label})},t))]}),s.length>0&&a.length>0&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:X.Separator}),s.map((e,r)=>(0,n.jsxs)(U,{className:X.Cta,href:e.href,render:e.render,children:[(0,n.jsx)(`span`,{children:e.label}),(0,n.jsx)(t.ArrowUpRight,{"aria-hidden":!0,className:X.CtaArrow})]},r))]})})]})}function Re({items:e}){let t=q(),[i,a]=(0,r.useState)(null);return(0,n.jsx)(`nav`,{"aria-label":t.navigation,children:(0,n.jsx)(`ul`,{className:X.MenuList,children:e.map((e,t)=>(0,n.jsx)(`li`,{children:W(e)?(0,n.jsx)(Le,{item:e,open:i===t,onOpenChange:e=>a(e?t:null)}):(0,n.jsx)(U,{className:X.Row,href:e.href,render:e.render,children:e.label})},t))})})}function ze({items:e,home:a,account:o}){let c=q(),[l,u]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!l)return;let e=window.matchMedia(Ie),t=()=>{e.matches&&u(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[l]),(0,n.jsxs)(s.Drawer.Root,{open:l,onOpenChange:u,swipeDirection:`up`,children:[(0,n.jsx)(s.Drawer.Trigger,{className:X.MenuButton,"aria-label":c.menu,children:(0,n.jsx)(t.Menu,{"aria-hidden":!0})}),(0,n.jsxs)(s.Drawer.Portal,{children:[(0,n.jsx)(s.Drawer.Backdrop,{className:X.Backdrop}),(0,n.jsx)(s.Drawer.Viewport,{className:X.DrawerViewport,children:(0,n.jsxs)(s.Drawer.Popup,{className:X.MenuPopup,"aria-label":c.menu,onClick:e=>{e.target instanceof Element&&e.target.closest(`a`)&&u(!1)},children:[(0,n.jsxs)(`div`,{className:X.MenuTop,children:[(0,n.jsx)(`div`,{className:X.Bar,children:(0,n.jsxs)(`div`,{className:X.BarContent,children:[(0,n.jsx)(s.Drawer.Close,{className:X.MenuButton,"aria-label":c.closeMenu,children:(0,n.jsx)(t.X,{"aria-hidden":!0})}),a,o&&(0,n.jsx)(`div`,{className:X.Actions,children:o})]})}),(0,n.jsx)(i.BrandDivider,{size:`sm`})]}),(0,n.jsx)(s.Drawer.Content,{className:X.MenuContent,children:(0,n.jsx)(Re,{items:e})})]})})]})]})}function Be({group:e}){let i=(0,r.useId)(),o=e.title!=null,s=e.links.length>0;return(0,n.jsxs)(`div`,{className:X.Group,children:[o&&(0,n.jsx)(`p`,{id:i,className:X.GroupTitle,children:e.title}),s&&(0,n.jsx)(`ul`,{className:X.Links,"aria-labelledby":o?i:void 0,children:e.links.map((e,t)=>(0,n.jsx)(`li`,{children:(0,n.jsx)(R,{render:(0,n.jsx)(a.NavigationMenu.Link,{closeOnClick:!0,href:e.href,render:e.render}),children:e.label})},t))}),e.cta!=null&&s&&(0,n.jsx)(`span`,{"aria-hidden":!0,className:X.Separator}),e.cta!=null&&(0,n.jsxs)(a.NavigationMenu.Link,{closeOnClick:!0,className:X.Cta,href:e.cta.href,render:e.cta.render,children:[(0,n.jsx)(`span`,{children:e.cta.label}),(0,n.jsx)(t.ArrowUpRight,{"aria-hidden":!0,className:X.CtaArrow})]})]})}function Ve({item:e,value:r,end:i,onFocus:o}){return(0,n.jsx)(a.NavigationMenu.Item,{value:r,className:X.Item,"data-end":i||void 0,onFocus:()=>o(r),children:W(e)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.NavigationMenu.Trigger,{className:X.Pill,children:[e.label,(0,n.jsx)(a.NavigationMenu.Icon,{className:X.Chevron,children:(0,n.jsx)(t.ChevronDown,{})})]}),(0,n.jsx)(a.NavigationMenu.Content,{keepMounted:!0,className:X.Content,children:e.groups.map((e,t)=>(0,n.jsx)(Be,{group:e},t))})]}):(0,n.jsx)(a.NavigationMenu.Link,{closeOnClick:!0,className:X.Pill,href:e.href,render:e.render,children:e.label})})}function He({logo:e,homeRender:o,items:s,endItems:c=[],account:l,action:u,className:d,...f}){let p=q(),[m,h]=(0,r.useState)(null),g=e=>{m!=null&&m!==e&&h(null)},_=(0,n.jsx)(U,{href:o==null?`/`:void 0,render:o,className:X.Home,"aria-label":p.home,children:e}),v=l!=null&&(0,n.jsx)(U,{href:l.href,render:l.render,className:X.Account,"aria-label":l.label,children:l.icon??(0,n.jsx)(t.CircleUserRound,{"aria-hidden":!0})});return(0,n.jsxs)(`header`,{...f,className:[X.SiteHeader,d].filter(Boolean).join(` `),children:[(0,n.jsx)(`div`,{className:X.Bar,children:(0,n.jsxs)(`div`,{className:X.BarContent,children:[(0,n.jsx)(ze,{items:[...s,...c],home:_,account:v}),_,(0,n.jsxs)(a.NavigationMenu.Root,{className:X.Nav,"aria-label":p.navigation,closeDelay:150,value:m,onValueChange:h,children:[(0,n.jsx)(a.NavigationMenu.List,{className:X.List,children:[...s,...c].map((e,t)=>(0,n.jsx)(Ve,{item:e,value:`item-${t}`,end:c.length>0&&t===s.length,onFocus:g},t))}),(0,n.jsx)(a.NavigationMenu.Portal,{children:(0,n.jsx)(a.NavigationMenu.Positioner,{className:X.Positioner,side:`bottom`,align:`start`,sideOffset:8,collisionPadding:16,children:(0,n.jsx)(a.NavigationMenu.Popup,{className:X.Popup,render:(0,n.jsx)(`div`,{}),children:(0,n.jsx)(a.NavigationMenu.Viewport,{className:X.Viewport})})})})]}),(v||u!=null)&&(0,n.jsxs)(`div`,{className:X.Actions,children:[v,u!=null&&(0,n.jsx)(`div`,{className:X.Action,children:u})]})]})}),(0,n.jsx)(i.BrandDivider,{size:`sm`})]})}var Z={SplitContent:`_SplitContent_16c8f_11`,Grid:`_Grid_16c8f_19`,Text:`_Text_16c8f_26`,Title:`_Title_16c8f_33`,Description:`_Description_16c8f_42`,Media:`_Media_16c8f_58`,Image:`_Image_16c8f_67`,Actions:`_Actions_16c8f_75`,Price:`_Price_16c8f_82`};function Ue({title:t,titleRender:r,text:i,src:a,alt:o,imageRender:s,imagePosition:l=`end`,action:u,priceExample:d,render:p,ref:m,className:h,...g}){let _=(0,e.useRender)({render:r,defaultTagName:`h2`,props:{className:Z.Title,children:t}}),v=(0,e.useRender)({enabled:a!=null,render:s,defaultTagName:`img`,props:{src:a,alt:o,className:Z.Image}});return(0,e.useRender)({render:p,ref:m,defaultTagName:`div`,props:{...g,"data-image-position":l,"data-has-image":v!=null||void 0,className:f(Z.SplitContent,h)({}),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(`div`,{className:Z.Grid,children:[(0,n.jsxs)(`div`,{className:Z.Text,children:[_,i!=null&&(0,n.jsx)(c,{className:Z.Description,children:i})]}),v!=null&&(0,n.jsx)(`div`,{className:Z.Media,children:v})]}),(u!=null||d!=null)&&(0,n.jsxs)(`div`,{className:Z.Actions,children:[u,d!=null&&(0,n.jsx)(`p`,{className:Z.Price,children:d})]})]})}})}var Q={Stats:`_Stats_1o0ef_16`,List:`_List_1o0ef_25`,Bar:`_Bar_1o0ef_33`,Stat:`_Stat_1o0ef_16`,Number:`_Number_1o0ef_59`,Labels:`_Labels_1o0ef_69`,Title:`_Title_1o0ef_77`,Text:`_Text_1o0ef_85`,Actions:`_Actions_1o0ef_95`,Price:`_Price_1o0ef_103`};function We({header:t,items:i,titleRender:a,action:o,priceExample:s,render:c,ref:l,className:u,...d}){return(0,e.useRender)({render:c,ref:l,defaultTagName:`div`,props:{...d,className:f(Q.Stats,u)({}),children:(0,n.jsxs)(n.Fragment,{children:[t,(0,n.jsxs)(`ul`,{className:Q.List,children:[i.map((e,t)=>(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(`li`,{"aria-hidden":!0,className:Q.Bar}),(0,n.jsx)(Ge,{...e,titleRender:a})]},t)),(0,n.jsx)(`li`,{"aria-hidden":!0,className:Q.Bar})]}),(o!=null||s!=null)&&(0,n.jsxs)(`div`,{className:Q.Actions,children:[o,s!=null&&(0,n.jsx)(`p`,{className:Q.Price,children:s})]})]})}})}function Ge({number:t,title:r,text:i,titleRender:a}){let o=(0,e.useRender)({enabled:r!=null,render:a,defaultTagName:`h3`,props:{className:Q.Title,children:r}});return(0,n.jsxs)(`li`,{className:Q.Stat,children:[(0,n.jsx)(`p`,{className:Q.Number,children:t}),(o!=null||i!=null)&&(0,n.jsxs)(`div`,{className:Q.Labels,children:[o,i!=null&&(0,n.jsx)(`p`,{className:Q.Text,children:i})]})]})}var $={Testimonials:`_Testimonials_13hpt_11`,Featured:`_Featured_13hpt_18`,Video:`_Video_13hpt_31`,Quote:`_Quote_13hpt_36`,Blockquote:`_Blockquote_13hpt_44`,Person:`_Person_13hpt_72`,Name:`_Name_13hpt_81`,Meta:`_Meta_13hpt_88`,Still:`_Still_13hpt_124`,Play:`_Play_13hpt_133`,DialogViewport:`_DialogViewport_13hpt_143`,DialogPopup:`_DialogPopup_13hpt_143`,DialogVideo:`_DialogVideo_13hpt_149`,Close:`_Close_13hpt_157`},Ke=(0,i.createTranslation)({reviews:{no:`Kundeomtaler`,se:`Kundomdömen`,fi:`Asiakasarviot`,es:`Opiniones de clientes`},play:{no:`Spill av video`,se:`Spela upp video`,fi:`Toista video`,es:`Reproducir vídeo`},video:{no:`Video fra kunde`,se:`Video från kund`,fi:`Asiakkaan video`,es:`Vídeo de un cliente`},close:{no:`Lukk video`,se:`Stäng video`,fi:`Sulje video`,es:`Cerrar vídeo`},captionsLanguage:{no:`nb`,se:`sv`,fi:`fi`,es:`es`},captionsLabel:{no:`Norsk`,se:`Svenska`,fi:`Suomi`,es:`Español`}});function qe({title:a,titleRender:o,subtitle:s,quote:c,name:l,meta:u,rating:d,videoSrc:p,videoPoster:m,videoCaptions:h,videoPosition:g=`start`,render:_,ref:v,className:y,children:b,...x}){let S=Ke(),C=(0,r.useId)(),w=c!=null||l!=null,ee=r.Children.toArray(b).length>0;return(0,e.useRender)({render:_,ref:v,defaultTagName:`div`,props:{...x,className:f($.Testimonials,y)({}),children:(0,n.jsxs)(n.Fragment,{children:[a!=null&&(0,n.jsx)(Ce,{title:a,titleRender:(0,r.cloneElement)(o??(0,n.jsx)(`h2`,{}),{id:C}),subtitle:s}),(w||p!=null)&&(0,n.jsxs)(`div`,{className:$.Featured,"data-video":p!=null||void 0,"data-video-position":g,children:[w&&(0,n.jsxs)(`figure`,{className:$.Quote,children:[d!=null&&(0,n.jsx)(i.StarRating,{rating:d}),c!=null&&(0,n.jsx)(`blockquote`,{className:$.Blockquote,children:typeof c==`string`||typeof c==`number`?(0,n.jsx)(`p`,{children:c}):c}),(l!=null||u!=null)&&(0,n.jsxs)(`figcaption`,{className:$.Person,children:[l!=null&&(0,n.jsx)(`span`,{className:$.Name,children:l}),u!=null&&(0,n.jsx)(`span`,{className:$.Meta,children:u})]})]}),p!=null&&(0,n.jsxs)(`div`,{className:$.Video,children:[m==null?(0,n.jsx)(`video`,{className:$.Still,src:`${p}#t=0.1`,preload:`metadata`,muted:!0,playsInline:!0,"aria-hidden":!0,tabIndex:-1}):(0,n.jsx)(`img`,{className:$.Still,src:m,alt:``}),(0,n.jsxs)(i.Dialog.Root,{children:[(0,n.jsx)(i.Dialog.Trigger,{render:(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":S.play,className:$.Play,children:(0,n.jsx)(t.Play,{"aria-hidden":!0})})}),(0,n.jsxs)(i.Dialog.Portal,{children:[(0,n.jsx)(i.Dialog.Backdrop,{}),(0,n.jsx)(i.Dialog.Viewport,{className:$.DialogViewport,children:(0,n.jsxs)(i.Dialog.Popup,{size:`lg`,"aria-label":S.video,className:$.DialogPopup,children:[(0,n.jsx)(i.Dialog.Close,{render:(0,n.jsx)(i.IconButton,{variant:`elevated`,color:`secondary`,"aria-label":S.close,className:$.Close,children:(0,n.jsx)(t.X,{"aria-hidden":!0})})}),(0,n.jsx)(`video`,{className:$.DialogVideo,src:p,controls:!0,autoPlay:!0,playsInline:!0,children:h!=null&&(0,n.jsx)(`track`,{kind:`captions`,src:h,srcLang:S.captionsLanguage,label:S.captionsLabel,default:!0})})]})})]})]})]})]}),ee&&(0,n.jsx)(T,{...a==null?{"aria-label":S.reviews}:{"aria-labelledby":C},children:b})]})}})}exports.AlertBanner=d,exports.BrandLetters=_,exports.Calculator=y,exports.Carousel=T,exports.CtaBanner=re,exports.ExpandingCards=ue,exports.ExpandingCardsItem=de,exports.Hero=fe,exports.HeroServiceGrid=pe,exports.NavigationGrid=me,exports.PartnerList=ge,exports.PaymentFeature=_e,exports.PromoGrid=ye,exports.Section=Se,exports.SectionHeader=Ce,exports.ServiceCardGrid=we,exports.SideNav=Ee,exports.SiteFooter=Fe,exports.SiteHeader=He,exports.SplitContent=Ue,exports.Stats=We,exports.Testimonials=qe;
2
2
  //# sourceMappingURL=website.cjs.map