loon-bulma-react 2023.1.3 → 2023.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +143 -141
- package/dist/index.d.ts +480 -313
- package/dist/index.js +31 -31
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,158 +1,160 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var ae = require('react');
|
|
5
5
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
6
6
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
7
7
|
var react = require('@tiptap/react');
|
|
8
8
|
var extensionColor = require('@tiptap/extension-color');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
9
|
+
var Qr = require('@tiptap/extension-document');
|
|
10
|
+
var Ro = require('@tiptap/extension-text-style');
|
|
11
|
+
var jr = require('@tiptap/extension-subscript');
|
|
12
|
+
var ea = require('@tiptap/extension-superscript');
|
|
13
|
+
var ta = require('@tiptap/extension-heading');
|
|
14
|
+
var na = require('@tiptap/extension-paragraph');
|
|
15
|
+
var oa = require('@tiptap/extension-text');
|
|
16
|
+
var ia = require('@tiptap/extension-bold');
|
|
17
|
+
var ra = require('@tiptap/extension-italic');
|
|
18
|
+
var aa = require('@tiptap/extension-strike');
|
|
19
|
+
var sa = require('@tiptap/extension-underline');
|
|
20
|
+
var la = require('@tiptap/extension-bullet-list');
|
|
21
|
+
var ca = require('@tiptap/extension-ordered-list');
|
|
22
|
+
var Mo = require('@tiptap/extension-list-item');
|
|
23
|
+
var ma = require('@tiptap/extension-text-align');
|
|
24
|
+
var ua = require('@tiptap/extension-history');
|
|
25
|
+
var da = require('@tiptap/extension-image');
|
|
26
|
+
var pa = require('@tiptap/extension-link');
|
|
27
|
+
var fa = require('@tiptap/extension-table');
|
|
28
|
+
var ga = require('@tiptap/extension-table-cell');
|
|
29
|
+
var ha = require('@tiptap/extension-table-header');
|
|
30
|
+
var ya = require('@tiptap/extension-table-row');
|
|
31
|
+
var Ta = require('@tiptap/extension-hard-break');
|
|
32
|
+
var ba = require('@tiptap/extension-highlight');
|
|
33
|
+
var Sa = require('@tiptap/extension-horizontal-rule');
|
|
34
|
+
var As = require('react-currency-input-field');
|
|
35
35
|
|
|
36
36
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
38
|
+
var ae__default = /*#__PURE__*/_interopDefault(ae);
|
|
39
|
+
var Qr__default = /*#__PURE__*/_interopDefault(Qr);
|
|
40
|
+
var Ro__default = /*#__PURE__*/_interopDefault(Ro);
|
|
41
|
+
var jr__default = /*#__PURE__*/_interopDefault(jr);
|
|
42
|
+
var ea__default = /*#__PURE__*/_interopDefault(ea);
|
|
43
|
+
var ta__default = /*#__PURE__*/_interopDefault(ta);
|
|
44
|
+
var na__default = /*#__PURE__*/_interopDefault(na);
|
|
45
|
+
var oa__default = /*#__PURE__*/_interopDefault(oa);
|
|
46
|
+
var ia__default = /*#__PURE__*/_interopDefault(ia);
|
|
47
|
+
var ra__default = /*#__PURE__*/_interopDefault(ra);
|
|
48
|
+
var aa__default = /*#__PURE__*/_interopDefault(aa);
|
|
49
|
+
var sa__default = /*#__PURE__*/_interopDefault(sa);
|
|
50
|
+
var la__default = /*#__PURE__*/_interopDefault(la);
|
|
51
|
+
var ca__default = /*#__PURE__*/_interopDefault(ca);
|
|
52
|
+
var Mo__default = /*#__PURE__*/_interopDefault(Mo);
|
|
53
|
+
var ma__default = /*#__PURE__*/_interopDefault(ma);
|
|
54
|
+
var ua__default = /*#__PURE__*/_interopDefault(ua);
|
|
55
|
+
var da__default = /*#__PURE__*/_interopDefault(da);
|
|
56
|
+
var pa__default = /*#__PURE__*/_interopDefault(pa);
|
|
57
|
+
var fa__default = /*#__PURE__*/_interopDefault(fa);
|
|
58
|
+
var ga__default = /*#__PURE__*/_interopDefault(ga);
|
|
59
|
+
var ha__default = /*#__PURE__*/_interopDefault(ha);
|
|
60
|
+
var ya__default = /*#__PURE__*/_interopDefault(ya);
|
|
61
|
+
var Ta__default = /*#__PURE__*/_interopDefault(Ta);
|
|
62
|
+
var ba__default = /*#__PURE__*/_interopDefault(ba);
|
|
63
|
+
var Sa__default = /*#__PURE__*/_interopDefault(Sa);
|
|
64
|
+
var As__default = /*#__PURE__*/_interopDefault(As);
|
|
65
65
|
|
|
66
|
-
var _i=Object.defineProperty;var Wi=(e,t,n)=>t in e?_i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(Wi(e,typeof t!="symbol"?t+"":t,n),n);var at=(r=>(r.Primary="#0089b6",r.Info="#3b59ec",r.Link="2f47bc",r.Success="#519c43",r.Danger="#d91000",r.Warning="#eea720",r))(at||{});function Gi({ratio:e,children:t,caption:n,className:i=""}){let o=`image is-${e} ${i}`.trim();return jsxRuntime.jsxs("figure",{className:o,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}var Vt=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:`bulma-box ${t??""}`.trim(),style:n,children:e});function qi({children:e,gap:t,multiline:n,centered:i,className:o,styles:a}){let r="columns";return t&&(r+=` is-${t} is-variable`),n&&(r+=" is-multiline"),i&&(r+=" is-centered"),o&&(r+=` ${o}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:r,style:a,children:e})}var F=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:t,style:n,children:e}),Ne=e=>{let t="column ";return typeof e.narrow=="boolean"?t+="is-narrow":e.narrow&&(t+=`is-narrow-${e.narrow}`),e.className&&(t+=` ${e.className}`),jsxRuntime.jsx(F,{...e,className:t})};Ne.Full=e=>jsxRuntime.jsx(F,{...e,className:`column is-full ${e.className}`,styles:e.styles});Ne.Half=e=>jsxRuntime.jsx(F,{...e,className:`column is-half ${e.className}`,styles:e.styles});Ne.Thirds={One:e=>jsxRuntime.jsx(F,{...e,className:`column is-one-third ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(F,{...e,className:`column is-two-thirds ${e.className}`,styles:e.styles})};Ne.Quarters={One:e=>jsxRuntime.jsx(F,{...e,className:`column is-one-quarter ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(F,{...e,className:`column is-two-quarters ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(F,{...e,className:`column is-three-quarters ${e.className}`,styles:e.styles})};Ne.Fifths={One:e=>jsxRuntime.jsx(F,{...e,className:`column is-one-fifth ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(F,{...e,className:`column is-two-fifths ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(F,{...e,className:`column is-three-fifths ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(F,{...e,className:`column is-four-fifths ${e.className}`,styles:e.styles})};Ne.Twelves={One:e=>jsxRuntime.jsx(F,{...e,className:`column is-1 ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(F,{...e,className:`column is-2 ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(F,{...e,className:`column is-3 ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(F,{...e,className:`column is-4 ${e.className}`,styles:e.styles}),Five:e=>jsxRuntime.jsx(F,{...e,className:`column is-5 ${e.className}`,styles:e.styles}),Six:e=>jsxRuntime.jsx(F,{...e,className:`column is-6 ${e.className}`,styles:e.styles}),Seven:e=>jsxRuntime.jsx(F,{...e,className:`column is-7 ${e.className}`,styles:e.styles}),Eight:e=>jsxRuntime.jsx(F,{...e,className:`column is-8 ${e.className}`,styles:e.styles}),Nine:e=>jsxRuntime.jsx(F,{...e,className:`column is-9 ${e.className}`,styles:e.styles}),Ten:e=>jsxRuntime.jsx(F,{...e,className:`column is-10 ${e.className}`,styles:e.styles}),Eleven:e=>jsxRuntime.jsx(F,{...e,className:`column is-11 ${e.className}`,styles:e.styles}),Twelve:e=>jsxRuntime.jsx(F,{...e,className:`column is-12 ${e.className}`,styles:e.styles})};Ne.displayName="Column";var yt=({className:e,children:t,styles:n})=>{let i="container";return e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};yt.Wide=({className:e,children:t,styles:n})=>{let i="container is-widescreen ";return e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};yt.Widest=({className:e,children:t,styles:n})=>{let i="container is-fullhd ";return e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};yt.Max=({className:e,children:t,styles:n})=>{let i="container is-fluid ";return e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};function Yi({size:e,className:t,styles:n,children:i}){let o="content ";return e==="s"?o+="is-small":e==="l"?o+="is-medium":e==="xl"&&(o+="is-large"),t&&(o+=" "+t),jsxRuntime.jsx("div",{className:o,style:n,children:i})}function ji({children:e,alignment:t,className:n,styles:i}){let o="container",a="footer mt-6";return t==="l"?o+=" has-text-left":t==="r"?o+=" has-text-right":o+=" has-text-centered",n&&(a+=` ${n}`),jsxRuntime.jsx("footer",{className:a,style:i,children:jsxRuntime.jsx("div",{className:o,children:e})})}var St=e=>{let t="hero is-bold";t+=e.heroColorFor?` is-${e.heroColorFor}`:" is-primary",e.size==="s"?t+=" is-small":e.size==="l"?t+=" is-medium":e.size==="xl"&&(t+=" is-large");let n=te__default.default.Children.map(e.children??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],i=>i);return jsxRuntime.jsx("header",{className:t,children:n})},_t=e=>{let[t,n]=te__default.default.useState(!1);return jsxRuntime.jsx("div",{className:"hero-head",children:jsxRuntime.jsxs("nav",{className:"navbar container",children:[jsxRuntime.jsx("div",{className:"navbar-brand",children:jsxRuntime.jsxs("span",{className:t?"navbar-burger is-active":"navbar-burger",role:"menu-toggle-mobile","data-target":"hero-header-menu",onClick:()=>n(!t),children:[jsxRuntime.jsx("span",{}),jsxRuntime.jsx("span",{}),jsxRuntime.jsx("span",{})]})}),jsxRuntime.jsx("div",{id:"hero-header-menu",className:t?"navbar-menu is-active":"navbar-menu",children:jsxRuntime.jsx("div",{className:"navbar-end",children:e.children})})]})})};_t.Button=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,onClick:e.onClick,children:e.children});_t.Link=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,href:e.to,target:e.target??"_blank",rel:e.rel??"noopener",children:e.children});St.Head=_t;St.Body=e=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e.children})});var Wt=e=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:"tabs is-boxed is-fullwidth container",children:e.children})});Wt.NavList=e=>jsxRuntime.jsx("ul",{children:e.children});Wt.NavItem=e=>jsxRuntime.jsx("li",{className:e.active?"is-active":void 0,title:e.tooltip,children:jsxRuntime.jsx("a",{href:e.to,target:e.target??"_blank",rel:e.rel??"noopener",children:e.children})});St.Foot=Wt;function eo({ratio:e,imgWidth:t="128",alt:n,figCaption:i,className:o,isRounded:a,src:r}){let s=`image is-${e}`;return e==="square"&&(s=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:o,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:s,children:[jsxRuntime.jsx("img",{className:a&&e==="square"?"is-rounded":void 0,src:r,alt:n}),i&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:i})]})})}function no({children:e,className:t,styles:n}){let i="section";return t&&(i+=` ${t}`),jsxRuntime.jsx("section",{className:i,style:n,children:e})}var oo=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let a=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,r=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${a} ${r}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let i=te__default.default.useMemo(()=>({maxWidth:typeof e.maxItemWidth=="number"?`${e.maxItemWidth}px`:e.maxItemWidth||null,minWidth:typeof e.minItemWidth=="number"?`${e.minItemWidth}px`:e.minItemWidth||null}),[e.maxItemWidth,e.minItemWidth]),o=te__default.default.useMemo(()=>({display:"flex",flexDirection:e.reverse?"row-reverse":"row",flexWrap:e.wrap?"wrap":"nowrap",justifyContent:n,alignItems:"center",alignContent:"center",gap:t,overflowX:e.wrap?"hidden":"auto",paddingBottom:"22px"}),[e.reverse,e.alignment,e.wrap]);return jsxRuntime.jsx("div",{className:"lbr-flex-horizontal",style:o,children:te__default.default.Children.toArray(e.children).map((a,r)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:i,children:a},r))})},ao=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let o=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${o} ${a}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let i=te__default.default.useMemo(()=>({display:"flex",flexDirection:e.reverse?"column-reverse":"column",flexWrap:e.wrap?"wrap":"nowrap",justifyContent:n,alignItems:"stretch",alignContent:"stretch",gap:t,overflowY:e.wrap?"hidden":"auto",maxHeight:typeof e.maxHeight=="number"||!isNaN(+(e.maxHeight||NaN))?`${e.maxHeight}px`:e.maxHeight}),[e.reverse,e.wrap,e.alignment,e.gap,e.maxHeight]);return jsxRuntime.jsx("div",{className:"lbr-flex-vertical",style:i,children:te__default.default.Children.toArray(e.children).map((o,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:o},a))})},ro={Horizontal:oo,Vertical:ao};function Jl(e=2e3){let[t,n]=te__default.default.useState(null),[i,o]=te__default.default.useState(!1),[a,r]=te__default.default.useState(null),s=u=>{clearTimeout(a),r(setTimeout(()=>o(!1),e)),o(u);};return {copy:u=>{"clipboard"in navigator?navigator.clipboard.writeText(u).then(()=>s(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{o(!1),n(null),clearTimeout(a);},error:t,copied:i}}function Ln(e,t={leading:!1,delay:500}){let[n,i]=te__default.default.useState(e),o=te__default.default.useRef(!1),a=te__default.default.useRef(void 0),r=te__default.default.useRef(!1),s=()=>window.clearTimeout(a.current);return te__default.default.useEffect(()=>{o.current&&(!r.current&&t.leading?(r.current=!0,i(e)):(s(),a.current=window.setTimeout(()=>{r.current=!1,i(e);},t.delay)));},[e,t.leading,t.delay]),te__default.default.useEffect(()=>(o.current=!0,s),[]),[n,s]}function lo(e){let t=e.toLowerCase().split("+").map(a=>a.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},i=["alt","ctrl","meta","shift","mod"],o=t.find(a=>!i.includes(a));return {...n,key:o}}function co(e,t){let{alt:n,ctrl:i,meta:o,mod:a,shift:r,key:s}=e,{altKey:l,ctrlKey:c,metaKey:u,shiftKey:d,key:m}=t;if(n!==l)return !1;if(a){if(!c&&!u)return !1}else if(i!==c||o!==u)return !1;return r!==d?!1:!!(s&&(m.toLowerCase()===s.toLowerCase()||t.code.replace("Key","").toLowerCase()===s.toLowerCase()))}function Hn(e){return t=>co(lo(e),t)}function $l(e){return t=>{e.forEach(([n,i])=>{Hn(n)(t.nativeEvent)&&(t.preventDefault(),i(t));});}}function uo(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Xl(e){te__default.default.useEffect(()=>{let t=n=>{e.forEach(([i,o])=>{Hn(i)(n)&&uo(n)&&(n.preventDefault(),o(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function vt(e){try{return JSON.parse(e)}catch(t){throw new Error(`useLocalState failed to deserialize the value: ${t.message}`)}}function Ct(e){try{return JSON.stringify(e)}catch(t){throw new Error(`serializeJSON() failed to serialize the value: ${t.message}`)}}function Ul({key:e,initialValue:t,deserialize:n=vt,serialize:i=Ct}){let[o,a]=te__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.localStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useLocalStoredState failed to get the value: ${l.message}`),t}}),r=te__default.default.useCallback(l=>{try{let c=l instanceof Function?l(o):l;a(c),typeof window<"u"&&window.localStorage.setItem(e,i(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[]),s=te__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[]);return [o,r,s]}function Fn({value:e,defaultValue:t,finalValue:n,rule:i,onChange:o,onValueUpdate:a}){let r=i(e),s=te__default.default.useRef("initial"),l=i(t)?t:n,[c,u]=te__default.default.useState(l),d=r?e:c;!r&&s.current==="controlled"&&(d=n),s.current=r?"controlled":"uncontrolled";let m=s.current,g=p=>{typeof o=="function"&&o(p),m==="uncontrolled"&&u(p);};return te__default.default.useEffect(()=>{m==="uncontrolled"&&u(d),typeof a=="function"&&a(d);},[m,d]),[d,g,s.current]}var It="dots";function Xn({total:e,siblings:t=1,boundaries:n=1,page:i,initialPage:o=1,onChange:a}){let[r,s]=Fn({value:i,onChange:a,defaultValue:o,finalValue:o,rule:f=>typeof f=="number"&&f<=e}),l=f=>{f<=0?s(1):f>e?s(e):s(f);},c=()=>l((r??0)+1),u=()=>l((r??0)-1),d=()=>l(1),m=()=>l(e),g=te__default.default.useCallback((f,y)=>{let C=y-f+1;return Array.from({length:C},(b,T)=>T+f)},[]);return {range:te__default.default.useMemo(()=>{if(t*2+3+n*2>=e)return g(1,e);let y=Math.max((r??0)-t,n),C=Math.min((r??0)+t,e-n),b=y>n+2,T=C<e-(n+1);if(!b&&T){let x=t*2+n+2;return [...g(1,x),It,...g(e-(n-1),e)]}if(b&&!T){let x=n+1+2*t;return [...g(1,n),It,...g(e-x,e)]}return [...g(1,n),It,...g(y,C),It,...g(e-n+1,e)]},[e,t,r]),active:r,setPage:l,next:c,prev:u,first:d,last:m}}function po(e,t){let[n,i]=te__default.default.useState(e);return [n,a=>{i(typeof a<"u"?a:r=>r===t[0]?t[1]:t[0]);}]}function nc(e=!1){return po(e,[!0,!1])}function ac(e,t){let[n,i]=t?t(e):[!0,""],[o,a]=te__default.default.useState(e??void 0),[r,s]=te__default.default.useState(n),[l,c]=te__default.default.useState(i),[u,d]=te__default.default.useState(n?e:void 0);return [{value:o,lastValidValue:u,valid:r,invalidMsg:l},g=>{let[p,f]=t?t(g):[!0,""];p&&d(g),s(p),c(f),a(g);}]}function uc({key:e,initialValue:t,deserialize:n=vt,serialize:i=Ct}){let[o,a]=te__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.sessionStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useSessionStoredState failed to get the value: ${l.message}`),t}}),r=te__default.default.useCallback(l=>{try{let c=l instanceof Function?l(o):l;a(c),typeof window<"u"&&window.sessionStorage.setItem(e,i(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[]),s=te__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[]);return [o,r,s]}function To(e,t){switch(t.type){case"SET":let n=t.value;return {...e,items:[...n.items],filteredItems:[...n.filteredItems],visibleItems:[...n.filteredItems].splice(0,n.maxRows),currentPage:1,maxRows:n.maxRows,headers:n.headers.map(Yt),sort:t.sort};case"SORT":return {...e,sort:t.sort,filteredItems:[...t.value],visibleItems:[...e.filteredItems].splice(t.value*e.maxRows,e.maxRows)};case"SEARCH":return {...e,currentPage:1,filteredItems:[...t.value],visibleItems:[...t.value].splice(0,e.maxRows)};case"PAGE":return {...e,visibleItems:[...e.filteredItems].splice((t.value-1)*e.maxRows,e.maxRows),currentPage:t.value}}}function So({fullwidth:e,bordered:t,narrow:n,striped:i,hoverable:o,defaultSortCol:a,data:r,maxRows:s,columns:l,rowIdentifier:c,headerContent:u,searchPlaceholder:d,onSearch:m,rowClasses:g,onRowSelected:p,onNoRowsToRender:f}){let y="table";e&&(y+=" is-fullwidth"),t&&(y+=" is-bordered"),n&&(y+=" is-narrow"),i&&(y+=" is-striped"),o&&(y+=" is-hoverable");let[C,b]=te__default.default.useState(""),T=a??"";if(T===""){let v=l.filter(S=>!!S.sort)[0];v.header?T=v.header:typeof v.value=="string"&&(T=v.value);}let x=()=>({filteredItems:[...r],items:[...r],visibleItems:[...r].splice(0,s??r.length),maxRows:s??r.length,currentPage:1,headers:l,sort:T}),[I,P]=te__default.default.useReducer(To,{},x);te__default.default.useEffect(()=>{let v={items:r,filteredItems:[],visibleItems:[...r].splice(0,s??r.length),maxRows:s||r.length,currentPage:1,headers:l.map(Yt),sort:I.sort};v.filteredItems=C===""?r:R(C,{items:r,headers:l.map(Yt)});let S=!1;if(v.sort){S=v.sort.endsWith("-reverse");let D=N(v.sort.replace("-reverse",""),v.filteredItems);v.filteredItems=S?D.reverse():D;}P({type:"SET",value:v,sort:S?v.sort+"-reverse":v.sort});},[r,l,s]);let A=v=>P({type:"PAGE",value:v}),k=v=>{let S=I.sort==v,D=N(v,I.filteredItems);P({type:"SORT",value:S?D.reverse():D,sort:S?v+"-reverse":v});},N=te__default.default.useCallback((v,S)=>{let D=I.headers.find(M=>M.header==v&&M.sort);if(D){if(typeof D.sort=="function")return S.sort(D.sort);if(D.sort)try{return xo(D,S)}catch(M){console.error(`DataTable Sorting Error: ${M.message}`);}}else return S;return S},[I.headers]),O=v=>{let S=m?m(v,I.items):R(v);b(v),P({type:"SEARCH",value:S});},R=te__default.default.useCallback((v,S)=>{let D=Po(v),M=S?.items??I.items,W=S?.headers??I.headers;return M.filter(he=>{for(let de of W){let X=null;if(typeof de.value=="function"?(X=de.value(he),typeof X!="string"&&(X=X.toString())):typeof de.value=="string"&&(X=he[de.value],X&&typeof X!="string"&&(X=X.toString())),typeof X=="string"&&D&&D.test(X))return !0;if(typeof X=="string"&&X.toLowerCase().includes(v.toLowerCase()))return !0}return !1})},[]),L=(v,S)=>{p&&p(v,S);},J=Xn({total:Math.ceil(I.filteredItems.length/I.maxRows),onChange:v=>v&&A(v),page:I.currentPage});return jsxRuntime.jsxs(te__default.default.Fragment,{children:[(d||u)&&jsxRuntime.jsx(Co,{content:u,placeholder:d,onSearchTermChanged:v=>O(v)}),I.filteredItems.length!==r.length&&jsxRuntime.jsxs("p",{className:"help is-link px-6",children:["Toon ",I.filteredItems.length," van de ",r.length," rijen"]}),I.visibleItems.length===0&&f&&f(C!==""),I.visibleItems.length>0&&jsxRuntime.jsxs("table",{className:y,children:[jsxRuntime.jsx(vo,{titles:I.headers,onSort:v=>k(v),currentSort:I.sort}),jsxRuntime.jsx(bo,{columns:I.headers,data:I.visibleItems,rowClasses:g,rowIdentifier:c,onRowSelected:(v,S)=>L(v,S)})]}),I.maxRows<I.filteredItems.length&&jsxRuntime.jsx(Io,{pagination:J})]})}function bo({columns:e,data:t,rowIdentifier:n,rowClasses:i,onRowSelected:o}){let[a]=Ln(t,{delay:200});return jsxRuntime.jsx("tbody",{children:a.map((r,s)=>{let l=typeof i=="function"?i(r,s):i;return jsxRuntime.jsx("tr",{className:l,onClick:c=>o(r,c.currentTarget),children:e.map((c,u)=>{let d=typeof c.value=="string"?r[c.value].toString():typeof c.value=="function"&&c.value(r),m="left";c.alignment==="r"?m="right":c.alignment==="c"&&(m="center");let g=c.columnClasses?c.columnClasses(r,u):void 0;return jsxRuntime.jsx("td",{className:g,align:m,children:d},u)})},typeof n=="function"?n(r):r[n])})})}function vo({titles:e,onSort:t,currentSort:n}){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{role:"tableheader",children:e.map((i,o)=>{let a="left";i.alignment==="r"?a="right":i.alignment==="c"&&(a="center");let r=i.header?i.header+"-"+o:o;return i.sort&&i.header?jsxRuntime.jsxs("th",{role:"sort",className:"is-sortable",align:a,onClick:()=>t(i.header),children:[jsxRuntime.jsxs("span",{className:"icon",children:[n===i.header&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSortDown}),n===i.header+"-reverse"&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSortUp}),n!==i.header&&n!=i.header+"-reverse"&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSort})]}),jsxRuntime.jsx("span",{children:i.header})]},r):jsxRuntime.jsx("th",{align:a,children:i.header},r)})})})}function Co({placeholder:e,content:t,onSearchTermChanged:n}){return jsxRuntime.jsxs("div",{className:"datatable-header is-flex flex-direction-row is-flex-wrap-wrap is-justify-content-space-evenly is-align-items-stretch mx-3",children:[jsxRuntime.jsx("div",{className:"is-flex-grow-1 is-flex-shrink-1",children:t}),jsxRuntime.jsx("div",{className:"is-flex-grow-1 is-flex-shrink-1"}),e&&jsxRuntime.jsxs("div",{className:"field is-flex-grow-1 is-flex-shrink-1 ml-3",children:[jsxRuntime.jsx("label",{className:"is-sr-only",htmlFor:"datatable-search-field",children:"Zoek in tabel"}),jsxRuntime.jsxs("div",{className:"control has-icons-left is-expanded",children:[jsxRuntime.jsx("span",{className:"icon is-left",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{size:"sm",icon:freeSolidSvgIcons.faSearch})}),jsxRuntime.jsx("input",{id:"datatable-search-field",style:{minWidth:"200px"},className:"input is-fullwidth is-rounded",placeholder:e,onChange:i=>n(i.target.value)})]})]})]})}function Io({pagination:e}){let t=0;return jsxRuntime.jsx("div",{className:"datatable-footer pagination is-centered is-small px-6 mb-3",role:"pagination",children:jsxRuntime.jsx("div",{className:"pagination-list",children:e.range.map(n=>n==="dots"?jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"},n+t++):jsxRuntime.jsx("button",{className:"pagination-link",onClick:()=>e.setPage(n),children:n},n))})})}function Po(e){return e.startsWith("/")&&e.endsWith("/")?new RegExp(e.replaceAll("/","")):null}function Yt(e){return !e.header&&typeof e.value=="string"?e.header=e.value:e.header||(e.header="",e.sort=!1),e}function xo(e,t){return t.sort((n,i)=>{let o="",a="";if(typeof e.value=="function")o=e.value(n),a=e.value(i);else if(typeof e.value=="string")o=n[e.value],a=i[e.value];else throw new Error("[V] Voor sortering van JSX-elementen MOET je een eigen functie gebruiken");switch(typeof o){case"boolean":return o===a?0:o?-1:1;case"number":return +o-+a;case"string":return o<a?-1:o>a?1:0;default:throw new Error("[A, B] Voor sortering van JSX-elementen MOET je een eigen functie gebruiken")}})}var Te=({color:e,size:t,rotation:n,icon:i,flip:o,animate:a})=>{let r="icon",s="1x";switch(e==="s"?r+=" has-text-success":e==="d"?r+=" has-text-danger":e==="w"?r+=" has-text-warning":e==="p"?r+=" has-text-primary":e==="i"?r+=" has-text-info":e==="l"&&(r+=" has-text-link"),t){case"s":s="sm",r+=" is-small";break;case"m":s="1x",r+=" is-normal";break;case"l":s="2x",r+=" is-medium";break;case"xl":s="3x",r+=" is-large";break;default:s="1x",r+=" is-normal";break}return typeof i=="string"?jsxRuntime.jsx("span",{className:r,role:"icon",children:jsxRuntime.jsx("i",{className:i})}):jsxRuntime.jsx("span",{className:r,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:i,size:s,rotation:n,flip:o,spin:a==="spin",pulse:a==="pulse"})})},Ao=({icon:e,size:t,color:n,rotation:i,flip:o,animate:a,children:r})=>{let s="icon-text";return n==="s"?s+=" has-text-success":n==="d"?s+=" has-text-danger":n==="w"?s+=" has-text-warning":n==="p"?s+=" has-text-primary":s+=" has-text-link",jsxRuntime.jsxs("span",{className:s,role:"icon-with-text",children:[jsxRuntime.jsx(Te,{icon:e,size:t,color:n,rotation:i,flip:o,animate:a}),jsxRuntime.jsx("span",{children:r})]})};function ko({label:e,className:t,position:n,color:i,tooltip:o,children:a}){let r="indicator";return n==="tl"||n==="top-left"?r+=" is-top-left":n==="tc"||n==="top-center"?r+=" is-top-center":n==="bl"||n==="bottom-left"?r+=" is-bottom-left":n==="br"||n==="bottom-right"?r+=" is-bottom-right":n==="bc"||n==="bottom-center"?r+=" is-bottom-center":n==="lc"||n==="left-center"?r+=" is-left-center":n==="rc"||n==="right-center"?r+=" is-right-center":r+=" is-top-right",i==="p"?r+=" is-primary":i==="i"?r+=" is-info":i==="w"?r+=" is-warning":i==="d"?r+=" is-danger":i==="s"?r+=" is-success":r+=" is-link",jsxRuntime.jsxs("div",{className:t,children:[jsxRuntime.jsx("div",{className:r,title:o,children:e}),a]})}function Qt({children:e,className:t}){let n=`kbd ${t??""}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Mo({keys:e,separator:t,className:n}){let i=e.map((o,a)=>a===e.length-1?jsxRuntime.jsx(Qt,{children:o},o):jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx(Qt,{children:o}),jsxRuntime.jsx("span",{children:t??"+"})]},o));return jsxRuntime.jsx("span",{className:n,children:i})}var Nt=e=>{let[t,n]=te__default.default.useState(e.initialItem??""),i=a=>{e.onMenuItemClicked(a),n(a);},o=te__default.default.Children.map(e.children,a=>a.type===Wn?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(jt,{...a.props,activeItem:t,onInternClick:i})}):a.type===zn?jsxRuntime.jsx(Lo,{...a.props,activeItem:t,onInternClick:i}):a.type===Vn?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(_n,{...a.props,activeItem:t,onInternClick:i})}):a);return jsxRuntime.jsx("aside",{className:"menu",role:"menu",children:o})},zn=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]}),Lo=e=>jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e.label}),jsxRuntime.jsx("ul",{className:"menu-list",children:te__default.default.Children.map(e.children,t=>t.type.name=="MenuItem"?jsxRuntime.jsx(jt,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t.type.name=="ExpandableMenuItem"?jsxRuntime.jsx(_n,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t)})]}),Vn=e=>jsxRuntime.jsx("div",{children:e.children}),_n=e=>{let[t,n]=te__default.default.useState(e.startExpanded??!1),i=a=>{e.onClick&&e.onClick(e.label,a),n(!t);},o=te__default.default.Children.map(e.children,a=>a.type.name=="MenuItem"?jsxRuntime.jsx(jt,{...a.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):a);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:i,children:[jsxRuntime.jsx(Te,{color:"i",size:"s",icon:t?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e.label]})]}),t&&jsxRuntime.jsx("ul",{children:o})]})},Wn=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]}),jt=e=>{let t=e.name??te__default.default.Children.toArray(e.children).filter(n=>typeof n=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:()=>e.onInternClick(t),id:t,children:jsxRuntime.jsx("span",{className:e.activeItem==t?"menu-list-item is-active":"menu-list-item",children:e.children})})};Nt.Item=Wn;Nt.ItemGroup=zn;Nt.ExpandableItem=Vn;var ie=({children:e,title:t,size:n,color:i})=>{let o="message",a=freeSolidSvgIcons.faInfo;switch(i){case"s":o+=" is-success",a=freeSolidSvgIcons.faCheck;break;case"d":o+=" is-danger",a=freeSolidSvgIcons.faExclamationTriangle;break;case"w":o+=" is-warning",a=freeSolidSvgIcons.faExclamation;break;case"p":o+=" is-primary",a=freeSolidSvgIcons.faInfo;break;case"l":o+=" is-link",a=freeSolidSvgIcons.faInfo;break;default:o+=" is-info",a=freeSolidSvgIcons.faInfo;break}return n==="s"?o+=" is-small":n==="l"?o+=" is-medium":n==="xl"&&(o+=" is-large"),jsxRuntime.jsxs("article",{className:o,children:[t&&jsxRuntime.jsx(Xo,{title:t,icon:a}),jsxRuntime.jsx(zo,{hasHeader:!!t,icon:a,size:n,children:e})]})},Xo=({title:e,icon:t})=>jsxRuntime.jsx("div",{className:"message-header","data-testid":"message-header",children:jsxRuntime.jsxs("p",{children:[jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t})}),e]})}),zo=({children:e,hasHeader:t,icon:n,size:i})=>{let o="icon";return i==="s"?o+=" mr-1 is-small":i==="l"||i==="xl"?o+=" is-large":o+=" mr-1 is-medium",jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t?e:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:o,style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n})}),e]})})};ie.Primary=e=>jsxRuntime.jsx(ie,{...e,color:"p"});ie.Success=e=>jsxRuntime.jsx(ie,{...e,color:"s"});ie.Danger=e=>jsxRuntime.jsx(ie,{...e,color:"d"});ie.Warning=e=>jsxRuntime.jsx(ie,{...e,color:"w"});ie.Info=e=>jsxRuntime.jsx(ie,{...e,color:"i"});ie.Link=e=>jsxRuntime.jsx(ie,{...e,color:"l"});var V=(e,t=!1,...n)=>{(t||process.env.NODE_ENV=="development")&&console.warn(`[loon-react-bulma] ${e}`,n);};var Et=e=>{let t=a=>e.onDismiss(a);te__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),()=>document.documentElement.classList.remove("is-clipped")),[]);let n=e.size??"m",i="800px";n==="s"?i="600px":n==="m"?i="800px":n==="l"?i="1000px":n==="xl"?i="1200px":i=n;let o=te__default.default.Children.map(e.children,a=>a?a.type===Kn?jsxRuntime.jsx(Vo,{...a.props}):a.type===Un?jsxRuntime.jsx(nn,{...a.props}):a.type===qn?jsxRuntime.jsx(_o,{...a.props}):jsxRuntime.jsx(nn,{children:a}):null)?.sort((a,r)=>a.type.name==="InternHead"?-1:a.type.name==="InternBody"&&r.type.name==="InternHead"?1:a.type.name==="InternBody"&&r.type.name==="InternFoot"?-1:a.type.name==="InternFoot"?1:0);return !o||o?.length===0?V("<Modal> A Modal needs at least one child"):o.filter(a=>a.type===nn).length>1&&V("<Modal> A modal should have only one body. Wrap multiple children into a <Modal.Body>-tag."),jsxRuntime.jsx(te__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content bulma-box modal-container","data-testid":"modal-content",style:{width:i},children:o}),jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:a=>t(a)})]})})},Kn=e=>jsxRuntime.jsx("div",{children:e.children}),Vo=e=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e.children}),Un=e=>jsxRuntime.jsx("div",{children:e.children}),nn=e=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e.children}),qn=e=>jsxRuntime.jsx("div",{children:e.children}),_o=e=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e.children});Et.Head=Kn;Et.Body=Un;Et.Foot=qn;var ae=({children:e,onDismiss:t,autoDismissAfter:n,color:i})=>{let o=n&&n>0?setTimeout(()=>r(null),n):null,[a]=te__default.default.useState(o);te__default.default.useEffect(()=>()=>a?clearTimeout(a):void 0,[a]);let r=c=>{a&&clearTimeout(a),t(c);},s="notification is-light",l=freeSolidSvgIcons.faInfo;switch(i){case"s":s+=" is-success",l=freeSolidSvgIcons.faCheck;break;case"d":s+=" is-danger",l=freeSolidSvgIcons.faExclamationTriangle;break;case"w":s+=" is-warning",l=freeSolidSvgIcons.faExclamation;break;case"p":s+=" is-primary",l=freeSolidSvgIcons.faInfo;break;case"l":s+=" is-link",l=freeSolidSvgIcons.faInfo;break;default:s+=" is-info",l=freeSolidSvgIcons.faInfo;break}return jsxRuntime.jsxs("article",{className:s,children:[jsxRuntime.jsx(Zo,{color:i??"i",onDismiss:c=>r(c)}),jsxRuntime.jsx(Yo,{icon:l,children:e})]})};function Zo({color:e,onDismiss:t}){let[n,i]=te__default.default.useState(!1),o="icon";return e==="s"?o+=n?" has-text-success-dark":" has-text-success":e==="d"?o+=n?" has-text-danger-dark":" has-text-danger":e==="w"?o+=n?" has-text-warning-dark":" has-text-warning":e==="p"?o+=n?" has-text-primary-dark":" has-text-primary":e==="l"?o+=n?" has-text-link-dark":" has-text-link":o+=n?" has-text-info-dark":" has-text-info",jsxRuntime.jsx("button",{className:"notification-close",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onClick:a=>t(a),children:jsxRuntime.jsx("span",{className:o,role:"close-icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimesCircle,size:"lg"})})})}function Yo({children:e,icon:t}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t})}),e]})}ae.Primary=e=>jsxRuntime.jsx(ae,{...e,color:"p"});ae.Danger=e=>jsxRuntime.jsx(ae,{...e,color:"d"});ae.Warning=e=>jsxRuntime.jsx(ae,{...e,color:"w"});ae.Success=e=>jsxRuntime.jsx(ae,{...e,color:"s"});ae.Link=e=>jsxRuntime.jsx(ae,{...e,color:"l"});ae.Info=e=>jsxRuntime.jsx(ae,{...e,color:"i"});function Qo({color:e,size:t,extension:n,max:i,value:o}){let a="progress";return t==="s"?a+=" is-small":t==="l"?a+=" is-medium":t==="xl"?a+=" is-large":a+=" is-normal",e==="s"?a+=" is-success":e==="p"?a+=" is-primary":e==="d"?a+=" is-danger":e==="l"?a+=" is-link":e==="w"?a+=" is-warning":a+=" is-info",jsxRuntime.jsx("progress",{className:a,value:o,max:i||100,title:`${o??""}${n??""}`,children:o})}function ea(e){let t="table";e.bordered&&(t+=" is-bordered"),e.narrow&&(t+=" is-narrow"),e.striped&&(t+=" is-striped"),e.hoverable&&(t+=" is-hoverable"),e.fullwidth&&(t+=" is-fullwidth");let n=e.rowIdentifier,i=(a,r)=>{e.onRowSelected&&e.onRowSelected(a,r);},o=oa(e.columns,e.data[0]);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:t,children:[jsxRuntime.jsx(na,{titles:o}),jsxRuntime.jsx(ta,{columns:o,data:e.data,rowIdentifier:n,onRowSelected:(a,r)=>i(a,r)}),e.hasFooter&&jsxRuntime.jsx(ia,{titles:o})]})})}function ta(e){return jsxRuntime.jsx("tbody",{children:e.data.map((t,n)=>jsxRuntime.jsx("tr",{onClick:i=>e.onRowSelected(t,i.currentTarget),children:e.columns.map((i,o)=>{let a=typeof i.value=="string"?t[i.value]:i.value(t);return jsxRuntime.jsx("td",{children:a},o)})},typeof e.rowIdentifier=="function"?e.rowIdentifier(t):e.rowIdentifier?t[e.rowIdentifier]:n))})}function na(e){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function ia(e){return jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function oa(e,t){return e&&typeof e[0]=="string"?e.map(i=>({header:i,value:i})):e?e.map(i=>(!i.header&&i.header!=""&&typeof i.value=="string"&&(i.header=i.value),i)):Object.keys(t).map(n=>({header:n,value:n}))}var an=e=>{let[t,n]=te__default.default.useState(e.activeStepIndex??0),i=r=>{e.onChangeStep&&e.onChangeStep(r),n(r);};te__default.default.useEffect(()=>{n(e.activeStepIndex??e.activeStep??0);},[e.activeStepIndex]);let o="";e.size==="s"?o="is-small":e.size==="l"?o="is-medium":e.size==="xl"&&(o="is-large");let a=`steps is-animated ${o} ${e.className??""}`.trim();return jsxRuntime.jsx("div",{className:a,children:te__default.default.Children.map(e.children,(r,s)=>{if(r.type&&r.type==an.Item){let l=!0;return e.freeStepChoice==="allowed"||e.freeStepChoice==="down"&&s<t||e.freeStepChoice==="up"&&s>t?l=!1:l=s!=t+1&&s!=t-1,jsxRuntime.jsx(ra,{...r.props,activeStep:t,stepKey:s,disabled:l,onClick:i},r.props.title)}else return r})})};an.Item=e=>jsxRuntime.jsx(te__default.default.Fragment,{children:e.title});function ra(e){let t=()=>{e.disabled||e.stepKey==e.activeStep||(e.onClick(e.stepKey),i("active"));},[n,i]=te__default.default.useState(e.status??"pending");te__default.default.useEffect(function(){let s="pending";e.status==="error"?s="error":e.status==="completed"||e.activeStep>e.stepKey?s="completed":e.stepKey===e.activeStep&&(s="active"),i(s);},[e.status,e.stepKey,e.activeStep]);let o="step-item";e.activeStep===e.stepKey?o+=" is-active is-info":n==="error"?o+=" is-error is-danger":n==="completed"?o+=" is-completed is-success":o+=" is-pending";let a;return e.marker?typeof e.marker=="function"?a=e.marker(n):a=e.marker:a=jsxRuntime.jsx(te__default.default.Fragment,{children:e.stepKey+1}),jsxRuntime.jsxs("div",{className:o,onClick:t,title:e.tooltip,children:[jsxRuntime.jsx("div",{className:"step-marker",children:a}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:e.title}),e.details&&jsxRuntime.jsx("p",{children:e.details})]})]})}var jn=e=>{let[t,n]=te__default.default.useState(e.activeTab??e.initialTab),i=u=>{n(u),e.onTabChange(u);};te__default.default.useEffect(()=>{e.activeTab!==void 0&&n(e.activeTab);},[e.activeTab]);let{size:o,alignment:a,fullwidth:r,styling:s}=e,l="tabs";o==="s"?l+=" is-small":o==="l"?l+=" is-medium":o==="xl"&&(l+=" is-large"),s==="boxed"?l+=" is-boxed":s==="toggle"&&(l+=" is-toggle"),a==="c"?l+=" is-centered":a==="r"&&(l+=" is-right"),l+=r?" is-fullwidth":"";let c=te__default.default.Children.map(e.children,(u,d)=>jsxRuntime.jsx(sa,{isActive:t?t==u.props.tabId:d==0,onClick:()=>i(u.props.tabId),children:u}));return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx("ul",{children:c})})};function sa({children:e,isActive:t,onClick:n}){return jsxRuntime.jsx("li",{role:"tab",className:t?"is-active":void 0,onClick:n,children:e})}function la({children:e,tabId:t,tooltip:n}){let i=te__default.default.Children.map(e,o=>!o||o===""?null:o);return jsxRuntime.jsx("a",{title:n||void 0,id:t?.toString()||void 0,children:i})}jn.Item=la;function rn({children:e,color:t="l",size:n,light:i,rounded:o,tooltip:a,onDismiss:r}){let s=te__default.default.useMemo(()=>{let c="tag";return c+=i?" is-light":"",c+=o?" is-rounded":"",t==="p"?c+=" is-primary":t==="l"?c+=" is-link":t==="i"?c+=" is-info":t==="d"?c+=" is-danger":t==="w"?c+=" is-warning":t==="s"?c+=" is-success":t==="dark"?c+=" is-dark":t==="light"?c+=" is-light":c+=` ${t}`,n==="m"?c+=" is-medium":n==="l"&&(c+=" is-large"),c},[i,o,t,n]),l=c=>r&&r(c);return jsxRuntime.jsxs("span",{className:s,title:a,children:[e,r&&jsxRuntime.jsx("button",{className:"delete",onClick:c=>l(c)})]})}function ua({children:e,merged:t,size:n,alignment:i,className:o}){let a="tags";return n==="m"?a+=" are-medium":n==="l"&&(a+=" are-large"),i==="r"?a+=" is-right":i==="c"&&(a+=" is-centered"),t&&(a+=" has-addons"),a=`${a} ${o}`.trim(),jsxRuntime.jsx("div",{className:a,children:e})}var sn=({alignment:e,children:t,className:n})=>{let i="is-left";return e==="r"?i="is-rtl":e==="c"&&(i="is-centered"),n=`timeline ${i} ${n}`,jsxRuntime.jsx("div",{className:n,children:t})};sn.Point=({children:e,color:t,size:n,tooltip:i,onClick:o})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:o,children:jsxRuntime.jsx(rn,{color:t??"l",size:n,tooltip:i,light:!0,rounded:!0,children:e})});sn.Item=({marker:e,heading:t,children:n,tooltip:i,onClick:o})=>{let a="timeline-marker";return e?.color==="p"?a+=" is-primary":e?.color==="l"?a+=" is-link":e?.color==="i"?a+=" is-info":e?.color==="s"?a+=" is-success":e?.color==="d"?a+=" is-danger":e?.color==="w"&&(a+=" is-warning"),e?.icon&&(a+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:i,onClick:()=>o&&o(t),children:[jsxRuntime.jsx("div",{className:a,children:e?.icon&&jsxRuntime.jsx(Te,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};function ni(e){let t=e.bulmaSize??3,n=typeof e.headingSize=="string"?+e.headingSize.replace("h",""):e.headingSize,i=e.headingSize?n:t,o=`title is-${t}`,a=e.children??e.txt;if(!a)throw Error('Title moet children OF txt="..." hebben');switch(i){case 1:return jsxRuntime.jsx("h1",{className:o,children:a});case 2:return jsxRuntime.jsx("h2",{className:o,children:a});case 4:return jsxRuntime.jsx("h4",{className:o,children:a});case 5:return jsxRuntime.jsx("h5",{className:o,children:a});case 6:return jsxRuntime.jsx("h6",{className:o,children:a});default:return jsxRuntime.jsx("h3",{className:o,children:a})}}function ii(e){let t=e.bulmaSize??5,n=typeof e.headingSize=="string"?+e.headingSize.replace("h",""):e.headingSize,i=e.headingSize?n:t,o=`subtitle is-${t}`,a=e.children??e.txt;if(!a)throw Error('Subtitle moet children OF txt="..." hebben.');switch(i){case 1:return jsxRuntime.jsx("h1",{className:o,children:a});case 2:return jsxRuntime.jsx("h2",{className:o,children:a});case 3:return jsxRuntime.jsx("h3",{className:o,children:a});case 4:return jsxRuntime.jsx("h4",{className:o,children:a});case 6:return jsxRuntime.jsx("h6",{className:o,children:a});default:return jsxRuntime.jsx("h3",{className:o,children:a})}}function da({bulmaSize:e,headingSize:t,titleTxt:n,subtitleTxt:i,className:o}){let a=parseInt(`${e??3}`),s=(typeof t=="string"?+t.replace("h",""):t)||a;return jsxRuntime.jsxs("div",{className:o,children:[jsxRuntime.jsx(ni,{txt:n,bulmaSize:a,headingSize:s}),jsxRuntime.jsx(ii,{txt:i,bulmaSize:a+2,headingSize:s+1})]})}var ln=e=>{let{size:t,alignment:n}=e,[i,o]=te__default.default.useState(e.value??e.initialValue);te__default.default.useEffect(()=>{e.value!=null&&i!=e.value&&o(e.value);},[e.value]);let a=l=>{i!=l&&(e.onToggle&&e.onToggle(l),o(l));},r=te__default.default.Children.map(e.children,(l,c)=>{let u=l.props?.identifier??te__default.default.Children.map(l.props.children,d=>typeof d=="string"?d:typeof d.type=="string"?d.type:d)?.join("")??""+c;return l.type===oi?jsxRuntime.jsx(fa,{...l.props,toggled:i==u,identifier:u,onColor:l.props.onColor,offColor:l.props.onColor,light:e.light??!0,outlined:e.outlined??!1,rounded:e.rounded,onToggleClick:a}):l.type===ai?jsxRuntime.jsx(ga,{...l.props,identifier:u,outlined:e.outlined??!1,light:e.light??!0,rounded:e.rounded??!0,offColor:l.props.offColor??e.offColor,onColor:l.props.onColor??e.onColor}):l}),s="buttons has-addons";return t==="m"?s+=" are-normal":t==="l"?s+=" are-medium":t==="xl"?s+=" are-large":s+=" are-small",n==="c"?s+=" is-centered":n==="r"?s+=" is-right":s+=" is-left",e.className&&(s+=" "+e.className),jsxRuntime.jsx("div",{className:s,children:r})},oi=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function fa(e){let t=e.toggled?e.onColor??"s":e.offColor??"d",n="";t==="i"?n=" is-info":t==="p"?n=" is-primary":t==="d"?n=" is-danger":t==="s"?n=" is-success":t==="w"&&(n=" is-warning");let i=`button ${n}`;return e.outlined&&(i+=" is-outlined"),e.light&&(i+=" is-light"),e.rounded&&(i+=" is-rounded"),e.toggled&&(i+=" is-toggled"),jsxRuntime.jsx("button",{disabled:e.disabled,title:e.tooltip,className:i,onClick:()=>e.onToggleClick(e.identifier),children:e.children})}var ai=e=>jsxRuntime.jsx("button",{disabled:e.disabled});function ga(e){let[t,n]=te__default.default.useState(e.toggled);te__default.default.useEffect(()=>{e.toggled!=null&&n(e.toggled);},[e.toggled]);let i=t?e.onColor??"s":e.offColor??"d",o="button";i==="i"?o+=" is-info":i==="p"?o+=" is-primary":i==="d"?o+=" is-danger":i==="s"?o+=" is-success":i==="w"&&(o+=" is-warning"),e.rounded&&(o+=" is-rounded"),e.light&&(o+=" is-light"),e.outlined&&(o+=" is-outlined"),t&&(o+=" is-toggled");let a=()=>{e.onToggle&&e.onToggle(!t,e.identifier),n(!t);};return jsxRuntime.jsx("button",{disabled:e.disabled,title:e.tooltip,id:e.identifier,className:o,onClick:()=>a(),children:e.children})}ln.Item=oi;ln.OnOffItem=ai;var cn=({children:e,hasAddons:t,alignment:n,className:i})=>{let o="field";return o+=t?" has-addons":" is-grouped",n==="c"?o+=" is-grouped-centered":n==="r"?o+=" is-grouped-right":o+=" is-grouped-left",i&&(o+=" "+i),jsxRuntime.jsx("div",{className:o,children:te__default.default.Children.map(e,a=>jsxRuntime.jsx("div",{className:"control",children:a}))})};var K=({color:e="p",size:t,rounded:n,loading:i,disabled:o,type:a,styling:r,onClick:s,children:l,tooltip:c,id:u})=>{let d=te__default.default.useMemo(()=>{let p="button";return r==="static"||r==="s"?p+=" is-static":(e==="p"?p+=" is-primary":e==="i"?p+=" is-info":e==="l"?p+=" is-link":e==="d"?p+=" is-danger":e==="s"?p+=" is-success":e==="w"?p+=" is-warning":p+=` ${e}`,r==="light"||r==="l"?p+=" is-light":r==="outlined"||r==="o"?p+=" is-outlined":r==="inverted"||r==="i"?p+=" is-inverted":(r==="light-outlined"||r==="lo")&&(p+=" is-light is-outlined")),t==="s"?p+=" is-small":t==="l"?p+=" is-medium":t==="xl"&&(p+=" is-large"),n&&(p+=" is-rounded"),i&&(p+=" is-loading"),p},[e,r,t,n,i]),m=p=>{i||o||r==="static"||s&&s(p);},g=te__default.default.Children.map(l,p=>typeof p=="string"?jsxRuntime.jsx("span",{children:p}):p);return jsxRuntime.jsx("button",{className:d,type:a??"button",disabled:o,onClick:p=>m(p),title:c,id:u,children:g})};K.Static=e=>jsxRuntime.jsx(K,{...e,styling:"static",children:e.children});K.Primary=e=>jsxRuntime.jsx(K,{...e,color:"p",styling:e.styling??"default",children:e.children});K.Success=e=>jsxRuntime.jsx(K,{...e,color:"s",styling:e.styling??"default",children:e.children});K.Danger=e=>jsxRuntime.jsx(K,{...e,color:"d",styling:e.styling??"default",children:e.children});K.Warning=e=>jsxRuntime.jsx(K,{...e,color:"w",styling:e.styling??"default",children:e.children});K.Info=e=>jsxRuntime.jsx(K,{...e,color:"i",styling:e.styling??"default",children:e.children});K.Link=e=>jsxRuntime.jsx(K,{...e,color:"l",styling:e.styling??"default",children:e.children});var ya=({children:e,onClick:t,tooltip:n,id:i})=>jsxRuntime.jsx("button",{className:"link-button",onClick:o=>t(o),title:n,id:i,children:e}),Ta=({href:e,target:t,tooltip:n,id:i,rel:o,children:a})=>jsxRuntime.jsx("a",{className:"link-button",href:e,target:t??"_blank",title:n,id:i,rel:o??"noopener",children:a});var E=class{IGNORE_SIGN="^";_date;_locale;formatOptions={};constructor(t,n,i={}){this._date=new Date(t),this._locale=n,this.formatOptions={...E.defaultFormatOptions,timeZone:E.defaultTimezone,...i},Object.freeze(this);}toString(t=this.formatOptions){return this.intlDtf(t)}valueOf(){return this._date.valueOf()}intlDtf(t=this.formatOptions){return new Intl.DateTimeFormat(this._locale,{...t,timeZone:this.formatOptions.timeZone}).format(this._date)}get info(){return {year:{isLeapYear:this.isLeapYear,days:this.daysInYear,hours:this.daysInYear*24,minutes:this.daysInYear*24*60,seconds:this.daysInYear*24*60*60,milliseconds:this.daysInYear*24*60*60*1e3},month:{days:this.daysInMonth,hours:this.daysInMonth*24,minutes:this.daysInMonth*24*60,seconds:this.daysInMonth*24*60*60,milliseconds:this.daysInMonth*24*60*60*1e3}}}get isLeapYear(){let t=this._date.getFullYear();return t%4===0&&t%100!==0||t%400===0}get isAM(){return this._date.getHours()<12}get isPM(){return !this.isAM}get isDST(){let t=new Date(this._date.getFullYear(),0,1).getTimezoneOffset(),n=new Date(this._date.getFullYear(),6,1).getTimezoneOffset();return Math.max(t,n)!==this._date.getTimezoneOffset()}get isToday(){let t=new Date;return this._date.getDate()===t.getDate()&&this._date.getMonth()===t.getMonth()&&this._date.getFullYear()===t.getFullYear()}get JSDate(){return new Date(this._date)}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get timezoneLong(){return this.intlDtf({timeZoneName:"long"}).replaceAll(/[^A-Z\s-]/gi,"").replace("--","").trim()}get timezoneShort(){return this.intlDtf({timeZoneName:"short"}).replaceAll(/[^A-Z]/g,"")}get timezoneOffsetShortStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("+");return t.substring(n)}get timezoneOffsetLongStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("GMT");return t.substring(n)}get timezoneOffset(){let t=this.intlDtf({timeZoneName:"shortOffset"}),n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return this.intlDtf({hour:"2-digit",minute:"2-digit"})}get timeHMS(){return this.intlDtf({hour:"2-digit",minute:"2-digit",second:"2-digit"})}get monthLong(){return this.intlDtf({month:"long"})}get monthShort(){return this.intlDtf({month:"short"})}get dayLong(){return this.intlDtf({weekday:"long"})}get dayShort(){return this.intlDtf({weekday:"short"})}get dateLong(){return `${this.dayLong} ${this.day} ${this.monthLong} ${this.year}`}get dateShort(){return this.intlDtf({day:"2-digit",month:"2-digit",year:"numeric"})}get yr(){return this.year}get year(){return this._date.getFullYear()}get qr(){return this.quarter}get quarter(){return Math.floor(this._date.getMonth()/3+1)}get m(){return this.month}get month(){return this._date.getMonth()+1}get d(){return this.day}get day(){return this._date.getDate()}get weekDay(){return this._date.getDay()===0?7:this._date.getDay()}get hr(){return this.hour}get hour(){return this._date.getHours()}get min(){return this.minute}get minute(){return this._date.getMinutes()}get sec(){return this.second}get second(){return this._date.getSeconds()}get ms(){return this.millisecond}get millisecond(){return this._date.getMilliseconds()}get weekNr(){let t=new Date(Date.UTC(this._date.getFullYear(),this._date.getMonth(),this._date.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-n.getTime())/864e5+1)/7)}get millis(){return this.valueOf()}get daysInMonth(){return new Date(this._date.getFullYear(),this._date.getMonth()+1,0).getDate()}get daysInYear(){return this.isLeapYear?366:365}get yearToDate(){let n=[0,31,59,90,120,151,181,212,243,273,304,334][this._date.getMonth()]+this._date.getDate();return this.isLeapYear&&this.month>2?n+1:n}set(t,n=this._locale){let i={year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,millisecond:this.millisecond};return E.from({...i,...t},n)}startOf(t){switch(t){case"year":return E.from({year:this.year,month:0,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return E.fromDate(new Date(this.year,n*3,1),this._locale).set({hour:0,minute:0,second:0,millisecond:0},this._locale)}case"month":return E.from({year:this.year,month:this.month,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"week":{let n=new Date(this.JSDate),i=n.getDate()-n.getDay()+(n.getDay()===0?-6:1);return E.fromDate(new Date(n.setDate(i)),this._locale).set({hour:0,minute:0,second:0,millisecond:0})}case"day":return E.from({year:this.year,month:this.month,day:this.day,hour:0,minute:0,second:0,millisecond:0},this._locale);case"hour":return E.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:0,second:0,millisecond:0},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.startOf()`)}}endOf(t){switch(t){case"year":return E.from({year:this.year,month:12,day:31,hour:23,minute:59,second:59,millisecond:999},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return E.fromDate(new Date(this.year,n*3+3,0),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"month":return E.from({year:this.year,month:this.month,day:this.daysInMonth,hour:23,minute:59,second:59,millisecond:999},this._locale);case"week":{let n=new Date(this.JSDate),i=this.JSDate.getDate()-(n.getDay()-1)+6;return E.fromDate(new Date(n.setDate(i)),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"day":return E.from({year:this.year,month:this.month,day:this.day,hour:23,minute:59,second:59,millisecond:999},this._locale);case"hour":return E.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:59,second:59,millisecond:999},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.endOf()`)}}plus({years:t,months:n,weeks:i,days:o,hours:a,minutes:r,seconds:s,milliseconds:l}){let c=new Date(this.JSDate);return t&&(c=new Date(c.setFullYear(c.getFullYear()+t))),n&&(c=new Date(c.setMonth(c.getMonth()+n))),i&&(c=new Date(c.setDate(c.getDate()+i*7))),o&&(c=new Date(c.setDate(c.getDate()+o))),a&&(c=new Date(c.setHours(c.getHours()+a))),r&&(c=new Date(c.setMinutes(c.getMinutes()+r))),s&&(c=new Date(c.setSeconds(c.getSeconds()+s))),l&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+l))),E.fromDate(c,this._locale)}isBetween(t,n){let i=(typeof n=="boolean"?n:n?.[0])??!1,o=(typeof n=="boolean"?n:n?.[1])??!1,[a,r]=t.sort((s,l)=>s.valueOf()-l.valueOf());if(a.valueOf()===r.valueOf())throw new Error("dates must be different");return i&&o?a<=this._date&&this._date<=r:i&&!o?a<=this._date&&this._date<r:!i&&o?a<this._date&&this._date<=r:a<this._date&&this._date<r}isBefore(t,n=!1){return n?this._date>=t:this._date>t}isAfter(t,n=!1){return n?this._date<=t:this._date<t}hasSame(t,n="millisecond"){let i=new Date(t.valueOf());switch(n){case"year":return this.yr===i.getFullYear();case"month":return this.yr===i.getFullYear()&&this.m-1===i.getMonth();case"day":return this.yr===i.getFullYear()&&this.m-1===i.getMonth()&&this.d===i.getDate();case"hour":return this.yr===i.getFullYear()&&this.m-1===i.getMonth()&&this.d===i.getDate()&&this.hr===i.getHours();case"minute":return this.yr===i.getFullYear()&&this.m-1===i.getMonth()&&this.d===i.getDate()&&this.hr===i.getHours()&&this.min===i.getMinutes();case"second":return this.yr===i.getFullYear()&&this.m-1===i.getMonth()&&this.d===i.getDate()&&this.hr===i.getHours()&&this.min===i.getMinutes()&&this.sec===i.getSeconds();case"millisecond":return this.valueOf()===i.valueOf();default:throw new Error(`invalid period '${n}' for hasSame()`)}}equals(t){if(t instanceof E)return this._date.valueOf()===t.valueOf();if(t instanceof Date)return this._date.valueOf()===t.valueOf();if(typeof t=="number")return this._date.valueOf()===t;throw new Error("invalid type")}clone(){return E.fromMillis(this.valueOf(),this.locale)}static now(t=E.defaultLocale,n={}){return new E(new Date,t,n)}static epoch(t=E.defaultLocale,n={}){return new E(new Date(0),t,n)}static fromDate(t,n=E.defaultLocale,i={}){return new E(t,n,i)}static from(t,n=E.defaultLocale,i={}){let o=new Date,{year:a,month:r,day:s,hour:l,minute:c,second:u,millisecond:d}={year:t.year??o.getFullYear(),month:t.month!=null?t.month==0?1:t.month:o.getMonth()+1,day:t.day??o.getDate(),hour:t.hour??o.getHours(),minute:t.minute??o.getMinutes(),second:t.second??o.getSeconds(),millisecond:t.millisecond??o.getMilliseconds()};if(r>12||r<1)throw new RangeError(`month value should be between 1 and 12, got ${r}`);if(l>23||l<0)throw new RangeError(`hour value should be between 0 and 23, got ${l}`);if(c>59||c<0)throw new RangeError(`minute value should be between 0 and 59, got ${c}`);if(u>59||u<0)throw new RangeError(`second value should be between 0 and 59, got ${u}`);if(d>999||d<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${d}`);let m=new Date(a,r,0),g=m.getDate();if(s>g||s<1)throw new RangeError(`day value should be between 1 and ${g} for ${m.toLocaleString(n,{month:"short"})} ${a}, got ${s}`);return new E(new Date(a,r-1,s,l,c,u,d),n,i)}static fromISO(t,n=E.defaultLocale,i={}){let o=new Date(Date.parse(t));return new E(o,n,i)}static fromUTC(t,n=E.defaultLocale,i={}){let o=new Date(Date.parse(t));return new E(o,n,i)}static fromMillis(t,n=E.defaultLocale,i={}){let o=typeof t=="string"?+t:t;if(isNaN(o))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(o>E.MAX_DATE_NUM||o<-E.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new E(new Date(o),n,i)}toFormat(t){if(typeof t!="string")return this.intlDtf(t);let n=this.formatBuilder(t);return n.includes("[y4]")&&(n=n.replaceAll("[y4]",this.yr+"")),n.includes("[y2]")&&(n=n.replaceAll("[y2]",this.yr.toString().substring(2))),n.includes("[m4]")&&(n=n.replaceAll("[m4]",this.monthLong)),n.includes("[m3]")&&(n=n.replaceAll("[m3]",this.monthShort)),n.includes("[m2]")&&(n=n.replaceAll("[m2]",this.intlDtf({month:"2-digit"}))),n.includes("[m1]")&&(n=n.replaceAll("[m1]",this.intlDtf({month:"numeric"}))),n.includes("[d4]")&&(n=n.replaceAll("[d4]",this.dayLong)),n.includes("[d3]")&&(n=n.replaceAll("[d3]",this.dayShort)),n.includes("[d2]")&&(n=n.replaceAll("[d2]",this.intlDtf({day:"2-digit"}))),n.includes("[d1]")&&(n=n.replaceAll("[d1]",this.day+"")),n.includes("[h2]")&&(n=n.replaceAll("[h2]",this.hr>12?`${this.hr-12<10?"0":""}${this.hr-12}`:`${this.hr<10?"0":""}${this.hr}`)),n.includes("[h1]")&&(n=n.replaceAll("[h1]",this.hr>12?(this.hr-12).toString():this.hr.toString())),n.includes("[H2]")&&(n=n.replaceAll("[H2]",`${this.hr<10?"0":""}${this.hr}`)),n.includes("[H1]")&&(n=n.replaceAll("[H1]",this.hr.toString())),n.includes("[M2]")&&(n=n.replaceAll("[M2]",`${this.minute<10?"0":""}${this.minute}`)),n.includes("[M1]")&&(n=n.replaceAll("[M1]",this.minute+"")),n.includes("[s2]")&&(n=n.replaceAll("[s2]",`${this.second<10?"0":""}${this.second}`)),n.includes("[s1]")&&(n=n.replaceAll("[s1]",this.second+"")),n.includes("[S3]")&&(n=n.replaceAll("[S3]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S2]")&&(n=n.replaceAll("[S2]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S1]")&&(n=n.replaceAll("[S1]",this.millisecond+"")),n.includes("[W2]")&&(n=n.replaceAll("[W2]",this.weekNr+"")),n.includes("[t2]")&&(n=n.replaceAll("[t2]",this.isAM?"AM":"PM")),n.includes("[t1]")&&(n=n.replaceAll("[t1]",this.isAM?"A":"P")),n.includes("[Z2]")&&(n=n.replaceAll("[Z2]",this.timezoneLong)),n.includes("[Z1]")&&(n=n.replaceAll("[Z1]",this.timezoneShort)),n.includes("[O3]")&&(n=n.replaceAll("[O3]",this.timezoneOffsetLongStr)),n.includes("[O2]")&&(n=n.replaceAll("[O2]",this.timezoneOffsetShortStr.replace("GMT",""))),n.includes("[O1]")&&(n=n.replaceAll("[O1]",this.timezoneOffset>0?`+${this.timezoneOffset}`:this.timezoneOffset<0?`${this.timezoneOffset}`:"")),n.replaceAll(this.IGNORE_SIGN,"").trim()}formatBuilder(t){let n="",i="",o=0,a=!1,r="ymdhHMsSWtZO";return (t+" ").split("").forEach(s=>{i===""?o=1:!a&&s===i&&r.includes(s)?o++:!a&&s===i&&!r.includes(s)?(o++,n+=i):a?a&&(n+=i,o=1):(n+=r.includes(i)?`[${i}${o}]`:i,o=1),s===this.IGNORE_SIGN&&(a=!a),i=s;}),n}},w=E;xe(w,"defaultLocale",Intl.DateTimeFormat().resolvedOptions().locale),xe(w,"defaultTimezone",Intl.DateTimeFormat().resolvedOptions().timeZone),xe(w,"MAX_DATE_NUM",864e13),xe(w,"MAX_DATE",new Date(E.MAX_DATE_NUM)),xe(w,"defaultFormatOptions",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});var ci=class{jsdate1;jsdate2;constructor(t,n=w.now()){this.jsdate1=t instanceof Date?w.fromDate(t):t.clone(),this.jsdate2=n instanceof Date?w.fromDate(n):n.clone();}get ms(){return Math.abs(this.jsdate2.valueOf()-this.jsdate1.valueOf())}get inMillis(){return this.ms}get inSeconds(){return Math.floor(this.ms/1e3)}get inMinutes(){return Math.floor(this.ms/(1e3*60))}get inHours(){return Math.floor(this.ms/(1e3*60*60))}get inDays(){return Math.floor(this.ms/(1e3*60*60*24))}get inWeeks(){return Math.floor(this.ms/(1e3*60*60*24*7))}get inAllTypes(){return {milliseconds:this.inMillis,seconds:this.inSeconds,minutes:this.inMinutes,hours:this.inHours,days:this.inDays,weeks:this.inWeeks}}differenceIn(t){let n=this.ms,i={},o=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([r,s])=>{if(t.includes(r)){let l=0;for(;n>=o;)l++,n-=o;Object.assign(i,{[r]:l});}o/=s;}),Object.assign(i,{rest:n}),i}};function Ou(e){e=e.replaceAll(/[^0-9a-zA-Z]/g,"");let t=e.match(/[0-9]{9}/g);if(t){let n=[];for(let i of t){let o=0,a=9;for(let r of i.split(""))o+=parseInt(r)*a,a=a!==2?a-1:-1;o%11===0&&n.push(i);}return [n.length>0,n]}return [!1,[]]}function fe(e){let t=typeof e!="string",n;typeof e=="string"?n=Sa(e):n=e;let[i=255,o=255,a=255]=n,s=[i/255,o/255,a/255].map(c=>c<.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)),l=.02126*s[0]+.7152*s[1]+.0722*s[2];return isNaN(l)?[0,0,0]:l>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function Sa(e){let t="#";if(e.startsWith("#")||(e="#"+e),!/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)|(^#[0-9A-F]{4}$)/i.test(e))throw new Error("Invalid hex-color: "+e);e.length===4?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===5?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===7?t=e:e.length===9&&(t=e.substring(0,7));let i=parseInt(t.substring(1,3),16),o=parseInt(t.substring(3,5),16),a=parseInt(t.substring(5,7),16),r=parseInt(t.substring(7,9),16);return [i,o,a,r]}function Fu(e){try{e=e.toUpperCase().replaceAll(/[^A-Z0-9]/g,"");let t=e.match(new RegExp(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/));if(t){let n=ba.find(i=>i.code===t[1]);if(n){if(n.length!==e.length)throw new Error("invalid length");{let i=(t[3]+t[1]+t[2]).replace(/[A-Z]/g,a=>(a.charCodeAt(0)-55).toString()),o=+i.slice(0,2);for(let a=2;a<i.length;a+=7)o=parseInt(o+i.substring(a,a+7),10)%97;return [o===1,o===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,t.message]}}var ba=[{land:"Albanie",code:"AL",length:28,IBAN:"AL35202111090000000001234567"},{land:"Andorra",code:"AD",length:24,IBAN:"AD1400080001001234567890"},{land:"Azerbeidjan",code:"AZ",length:28,IBAN:"AZ96AZEJ00000000001234567890"},{land:"Bahrein",code:"BH",length:22,IBAN:"BH02CITI00001077181611"},{land:"Belgie",code:"BE",length:16,IBAN:"BE71096123456769"},{land:"Bosnie en Herzegovina",code:"BA",length:20,IBAN:"BA393385804800211234"},{land:"Brazilie",code:"BR",length:29,IBAN:"BR1500000000000010932840814P2"},{land:"Bulgarije",code:"BG",length:22,IBAN:"BG18RZBB91550123456789"},{land:"Costa Rica",code:"CR",length:22,IBAN:"CR23015108410026012345"},{land:"Croatie",code:"HR",length:21,IBAN:"HR1723600001101234565"},{land:"Cyprus",code:"CY",length:28,IBAN:"CY21002001950000357001234567"},{land:"Denemarken",code:"DK",length:18,IBAN:"DK9520000123456789"},{land:"Dominicaanse Republiek",code:"DO",length:28,IBAN:"DO22ACAU00000000000123456789"},{land:"Duitsland",code:"DE",length:22,IBAN:"DE91100000000123456789"},{land:"Egypte",code:"EG",length:29,IBAN:"EG800002000156789012345180002"},{land:"El Salvador",code:"SV",length:28,IBAN:"SV43ACAT00000000000000123123"},{land:"Estland",code:"EE",length:20,IBAN:"EE471000001020145685"},{land:"Faroe Eilanden",code:"FO",length:18,IBAN:"FO9264600123456789"},{land:"Finland",code:"FI",length:18,IBAN:"FI1410093000123458"},{land:"Frankrijk",code:"FR",length:27,IBAN:"FR7630006000011234567890189"},{land:"Georgie",code:"GE",length:22,IBAN:"GE60NB0000000123456789"},{land:"Gibraltar",code:"GI",length:23,IBAN:"GI04BARC000001234567890"},{land:"Griekenland",code:"GR",length:27,IBAN:"GR9608100010000001234567890"},{land:"Groenland",code:"GL",length:18,IBAN:"GL8964710123456789"},{land:"Guatemala",code:"GT",length:28,IBAN:"GT20AGRO00000000001234567890"},{land:"Hongarije",code:"HU",length:28,IBAN:"HU93116000060000000012345676"},{land:"Ierland",code:"IE",length:22,IBAN:"IE64IRCE92050112345678"},{land:"IJsland",code:"IS",length:26,IBAN:"IS030001121234561234567890"},{land:"Irak",code:"IQ",length:23,IBAN:"IQ20CBIQ861800101010500"},{land:"Israel",code:"IL",length:23,IBAN:"IL170108000000012612345"},{land:"Italie",code:"IT",length:27,IBAN:"IT60X0542811101000000123456"},{land:"Jordanie",code:"JO",length:30,IBAN:"JO71CBJO0000000000001234567890"},{land:"Kazakhstan",code:"KZ",length:20,IBAN:"KZ563190000012344567"},{land:"Kosovo",code:"XK",length:20,IBAN:"XK051212012345678906"},{land:"Kuweit",code:"KW",length:30,IBAN:"KW81CBKU0000000000001234560101"},{land:"Letland",code:"LV",length:21,IBAN:"LV97HABA0012345678910"},{land:"Libanon",code:"LB",length:28,IBAN:"LB92000700000000123123456123"},{land:"Liechtenstein",code:"LI",length:21,IBAN:"LI7408806123456789012"},{land:"Litouwen",code:"LT",length:20,IBAN:"LT601010012345678901"},{land:"Luxemburg",code:"LU",length:20,IBAN:"LU120010001234567891"},{land:"Britse Maagdeneilanden",code:"VG",length:24,IBAN:"VG21PACG0000000123456789"},{land:"Macedonie",code:"MK",length:19,IBAN:"MK07200002785123453"},{land:"Malta",code:"MT",length:31,IBAN:"MT31MALT01100000000000000000123"},{land:"Mauritanie",code:"MR",length:27,IBAN:"MR1300020001010000123456753"},{land:"Mauritius",code:"MU",length:30,IBAN:"MU43BOMM0101123456789101000MUR"},{land:"Moldavie",code:"MD",length:24,IBAN:"MD21EX000000000001234567"},{land:"Monaco",code:"MC",length:27,IBAN:"MC5810096180790123456789085"},{land:"Montenegro",code:"ME",length:22,IBAN:"ME25505000012345678951"},{land:"Nederland",code:"NL",length:18,IBAN:"NL02ABNA0123456789"},{land:"Noorwegen",code:"NO",length:15,IBAN:"NO8330001234567"},{land:"Oostenrijk",code:"AT",length:20,IBAN:"AT483200000012345864"},{land:"Pakistan",code:"PK",length:24,IBAN:"PK36SCBL0000001123456702"},{land:"Palestina",code:"PS",length:29,IBAN:"PS92PALS000000000400123456702"},{land:"Polen",code:"PL",length:28,IBAN:"PL10105000997603123456789123"},{land:"Portugal",code:"PT",length:25,IBAN:"PT50002700000001234567833"},{land:"Qatar",code:"QA",length:29,IBAN:"QA54QNBA000000000000693123456"},{land:"Roemenie",code:"RO",length:24,IBAN:"RO09BCYP0000001234567890"},{land:"Saint Lucia",code:"LC",length:32,IBAN:"LC14BOSL123456789012345678901234"},{land:"San Marino",code:"SM",length:27,IBAN:"SM76P0854009812123456789123"},{land:"Sao Tome en Principe",code:"ST",length:25,IBAN:"ST23000200000289355710148"},{land:"Saudi Arabie",code:"SA",length:24,IBAN:"SA4420000001234567891234"},{land:"Servie",code:"RS",length:22,IBAN:"RS35105008123123123173"},{land:"Seychellen",code:"SC",length:31,IBAN:"SC52BAHL01031234567890123456USD"},{land:"Slovenie",code:"SI",length:19,IBAN:"SI56192001234567892"},{land:"Slowakije",code:"SK",length:24,IBAN:"SK8975000000000012345671"},{land:"Spanje",code:"ES",length:24,IBAN:"ES7921000813610123456789"},{land:"Timor-Leste",code:"TL",length:23,IBAN:"TL380010012345678910106"},{land:"Tjechie",code:"CZ",length:24,IBAN:"CZ5508000000001234567899"},{land:"Tunesie",code:"TN",length:24,IBAN:"TN5904018104004942712345"},{land:"Turkije",code:"TR",length:26,IBAN:"TR320010009999901234567890"},{land:"Oekraine",code:"UA",length:29,IBAN:"UA903052992990004149123456789"},{land:"Verenigd Koninkrijk",code:"GB",length:22,IBAN:"GB98MIDL07009312345678"},{land:"Verenigde Arabische Emiraten",code:"AE",length:23,IBAN:"AE460090000000123456789"},{land:"Wit Rusland",code:"BY",length:28,IBAN:"BY86AKBB10100000002966000000"},{land:"Zweden",code:"SE",length:24,IBAN:"SE7280000810340009783242"},{land:"Zwitserland",code:"CH",length:21,IBAN:"CH5604835012345678009"}];var Ee={transition:"background-color .2s ease-in-out, color .2s ease-in-out",fontSize:"0.7em",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"ellipsis"},ke={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},Ze={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},we={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",color:"#888",paddingTop:"1em"},Dt={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em",color:"#888"},ui={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},Rt={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},mi={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function ct({event:e,options:t,onClick:n,desc:i}){let[o,a]=te__default.default.useState(!1),r=te__default.default.useCallback(fe,[]),s=te__default.default.useMemo(()=>{let c="p";e.evtColor?c=typeof e.evtColor=="function"?e.evtColor(o):e.evtColor:t?.evtColor&&(c=t.evtColor(e,o)),c==="p"?c="#0089b6":c==="i"?c="#3b59ec":c==="l"?c="2f47bc":c==="d"?c="#d91000":c==="s"?c="#519c43":c==="w"&&(c="#eea720"),c+=o?"aa":"ff";let u=r(c);return {...Ee,paddingLeft:"1em",backgroundColor:c,color:u,cursor:n?"pointer":"default"}},[e,o]),l=te__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:c=>n&&n(e,c),style:s,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:jsxRuntime.jsx("span",{children:i(e)})})}function ze({event:e,options:t,onClick:n,desc:i}){let[o,a]=te__default.default.useState(!1),r=te__default.default.useCallback(fe,[]),s=te__default.default.useMemo(()=>{let u=o?"#f1f1f1":"#ffffff00",d=r(u);return {...Ee,backgroundColor:u,color:d,cursor:n?"pointer":"default"}},[o]),l=te__default.default.useMemo(()=>{let u="p";return e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(o):e.evtColor:t?.evtColor&&(u=t.evtColor(e,o)),u==="p"?u="#0089b6":u==="i"?u="#3b59ec":u==="l"?u="2f47bc":u==="d"?u="#d91000":u==="s"?u="#519c43":u==="w"&&(u="#eea720"),{...mi,backgroundColor:u}},[e,o]),c=te__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:c,onClick:u=>n&&n(e,u),style:s,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[jsxRuntime.jsx("span",{style:l}),i(e)]})}function pi({events:e,onEventClick:t,options:n}){let[i,o]=te__default.default.useState(()=>e.slice(4)),[a,r]=te__default.default.useState(!1),[s,l]=te__default.default.useState(!1);te.useEffect(()=>{o(e.slice(4));},[e]);let c=te__default.default.useMemo(()=>({...Ee,backgroundColor:a?"#f4f4f4":"transparent",color:a?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em"}),[a]),u=te__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[e]),d=()=>{l(!s),r(!1);};return jsxRuntime.jsxs(te__default.default.Fragment,{children:[s&&i.map(m=>m.allDay?jsxRuntime.jsx(ct,{desc:g=>jsxRuntime.jsx("span",{children:typeof g.title=="string"?g.title:g.title()}),event:m,options:n?.allday,onClick:t},`${typeof m.id=="function"?m.id():m.id}`):jsxRuntime.jsx(ze,{desc:g=>jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:g.startDateTime.timeHM}),jsxRuntime.jsx("span",{children:typeof g.title=="string"?g.title:g.title()})]}),event:m,options:n?.timed,onClick:t},`${typeof m.id=="function"?m.id():m.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),style:c,children:[!s&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:u}),jsxRuntime.jsxs("span",{children:["Nog ",i.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:u}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var se=class extends te__default.default.Component{state={active:!1};show=()=>this.setState({active:!0});hide=()=>this.setState({active:!1});render(){let{content:t,children:n,color:i,display:o}=this.props,{active:a}=this.state;if(t){let r="tooltip is-bottom",s="tooltip-arrow";return i==="p"?(r+=" is-primary",s+=" is-primary"):i==="i"?(r+=" is-info",s+=" is-info"):i==="l"?(r+=" is-link",s+=" is-link"):i==="d"?(r+=" is-danger",s+=" is-danger"):i==="s"?(r+=" is-success",s+=" is-success"):i==="w"?(r+=" is-warning",s+=" is-warning"):(r+=` ${i}`,s+=` ${i}`),jsxRuntime.jsxs("div",{className:o==="block"?"tooltip-wrapper-block":"tooltip-wrapper-inline",onMouseEnter:this.show,onMouseLeave:this.hide,children:[n,a&&jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:r,children:t}),jsxRuntime.jsx("div",{className:s})]})]})}else return jsxRuntime.jsx(te__default.default.Fragment,{children:n})}};xe(se,"defaultProps",{position:"bottom",color:"l",content:void 0,display:"inline"});function Bt({options:e,date:t,onDayClick:n,onEventClick:i,events:o,tooltipColor:a="is-light",isCurrentMonth:r=!0}){let[s,l]=te__default.default.useState(!1),c=te__default.default.useCallback(fe,[]),u=te__default.default.useMemo(()=>({...Dt,backgroundColor:r?"transparent":"#f8f8f8",color:r?"#888888":"#bbbbbb"}),[t,o]),d=te__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let m="p";e?.today?.bgColor&&(m=e.today.bgColor(s,t)),m==="p"?m="#0089b6":m==="i"?m="#3b59ec":m==="l"?m="2f47bc":m==="d"?m="#d91000":m==="s"?m="#519c43":m==="w"&&(m="#eea720");let g=c(m);return {...Rt,backgroundColor:m,color:g}},[t,s]);return jsxRuntime.jsxs("div",{style:u,children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...ui,cursor:n?"pointer":"default",backgroundColor:s?"#f4f4f4":"transparent",color:r?"#555555":"#bbbbbb"},onClick:m=>n&&n(t,m),children:[jsxRuntime.jsx("span",{style:t.isToday?d:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:r?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:o.map((m,g)=>{let p=`${typeof m.id=="function"?m.id():m.id}`??g;return m.allDay&&g<4?jsxRuntime.jsx(se,{display:"block",color:a,content:typeof m.description=="function"?m.description():m.description,children:jsxRuntime.jsx(ct,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:m,options:e?.event?.allday,onClick:i})},p):!m.allDay&&g<4?jsxRuntime.jsx(se,{display:"block",color:a,content:typeof m.description=="function"?m.description():m.description,children:jsxRuntime.jsx(ze,{desc:f=>jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:f.startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof f.title=="string"?f.title:f.title()})]}),event:m,options:e?.event?.timed,onClick:i})},p):g===4&&o.length>5?jsxRuntime.jsx(pi,{events:o,onEventClick:i,options:e?.event},t.dateShort+"-more"):g===4&&m.allDay?jsxRuntime.jsx(se,{display:"block",color:a,content:typeof m.description=="function"?m.description():m.description,children:jsxRuntime.jsx(ct,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:m,options:e?.event?.allday,onClick:i})},p):g===4&&!m.allDay?jsxRuntime.jsx(se,{display:"block",color:a,content:typeof m.description=="function"?m.description():m.description,children:jsxRuntime.jsx(ze,{desc:f=>jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:f.startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof f.title=="string"?f.title:f.title()})]}),event:m,options:e?.event?.timed,onClick:i})},p):null})})]})}function gi({viewDate:e,options:t,onEventClick:n,onDayClick:i,events:o}){let a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[r,s]=te__default.default.useState(e instanceof Date?w.fromDate(e,t?.locale):e.clone()),l=te__default.default.useCallback((m,g)=>{let p=Math.ceil(m.weekNr/52*13),f=m.clone();for(;Math.ceil(f.weekNr/52*13)===p;)f=f.plus({days:-1});let y=m.clone();for(;Math.ceil(y.weekNr/52*13)===p;)y=y.plus({days:1});f=f.plus({days:1}),y=y.plus({days:-1});let C=(g??o??[]).map(x=>(x.allDay=x.allDay||!x.endDateTime,x.startDateTime instanceof Date&&(x.startDateTime=w.fromDate(x.startDateTime,t?.locale)),x.endDateTime&&x.endDateTime instanceof Date&&(x.endDateTime=w.fromDate(x.endDateTime,t?.locale)),x)).filter(x=>x.startDateTime.isBetween([f,y])),b=f.clone(),T=[];for(;b<=y;){if(a.has(b.weekDay)){let x=b.startOf("day"),I=b.endOf("day"),P=C.filter(A=>A.startDateTime.isBetween([x,I])).sort((A,k)=>A.allDay&&!k.allDay?-1:!A.allDay&&k.allDay?1:A.startDateTime.valueOf()-k.startDateTime.valueOf());T.push([b,P]);}b=b.plus({days:1});}return T},[]),[c,u]=te__default.default.useState(l(r));te__default.default.useEffect(()=>{let m=e instanceof Date?w.fromDate(e,t?.locale):e.clone();s(m),u(l(m,o));},[e,o,t?.locale]);let d=te__default.default.useMemo(()=>({...Ze,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[t?.visibleDays]);return jsxRuntime.jsx(te__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx(Pa,{visibleDays:a,viewDate:r}),jsxRuntime.jsx(xa,{visibleDays:a,viewDate:r,datesWithEvents:c,options:t,onDayClick:i,onEventClick:n})]})})}function Pa({visibleDays:e,viewDate:t}){let n=[],i=t.startOf("week"),o=t.endOf("week"),a=Array.from(e).sort(),r=0;for(;i<=o&&r<7;)a.includes(i.weekDay)&&n.push(i.dayLong),i=i.plus({days:1}),r++;let s=te__default.default.useMemo(()=>({...ke}),[]),l=te__default.default.useMemo(()=>({...ke}),[]);return jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function xa({visibleDays:e,onDayClick:t,onEventClick:n,options:i,datesWithEvents:o}){let a=e.size,r=0;return jsxRuntime.jsx(te__default.default.Fragment,{children:o.map(([s,l])=>(r==a&&(r=0),jsxRuntime.jsxs(te__default.default.Fragment,{children:[r++===0&&jsxRuntime.jsx(Na,{weekNr:s.weekNr}),jsxRuntime.jsx(Bt,{date:s,events:l,tooltipColor:i?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:i},s.ISO)]},s.ISO)))})}function Na({weekNr:e}){let t=te__default.default.useMemo(()=>({...we}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function hi({viewDate:e,options:t,onEventClick:n,onDayClick:i,events:o}){let a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[r,s]=te__default.default.useState(e instanceof Date?w.fromDate(e,t?.locale):e.clone()),l=te__default.default.useCallback((m,g)=>{let p=m.startOf("month").startOf("week").startOf("day"),f=m.endOf("month").endOf("week").plus({days:1}).startOf("day"),y=(g??o??[]).map(T=>(T.allDay=T.allDay||!T.endDateTime,T.startDateTime instanceof Date&&(T.startDateTime=w.fromDate(T.startDateTime,t?.locale)),T.endDateTime&&T.endDateTime instanceof Date&&(T.endDateTime=w.fromDate(T.endDateTime,t?.locale)),T)).filter(T=>T.startDateTime.isBetween([p,f])),C=p.clone(),b=[];for(;C<f;){if(a.has(C.weekDay)){let T=C.startOf("day"),x=C.endOf("day"),I=y.filter(P=>P.startDateTime.isBetween([T,x])).sort((P,A)=>P.allDay&&!A.allDay?-1:!P.allDay&&A.allDay?1:P.startDateTime.valueOf()-A.startDateTime.valueOf());b.push([C,I]);}C=C.plus({days:1});}return b},[]),[c,u]=te__default.default.useState(l(r,o));te__default.default.useEffect(()=>{let m=e instanceof Date?w.fromDate(e,t?.locale):e.clone();s(m),u(l(m,o));},[e,o,t?.locale]);let d=te__default.default.useMemo(()=>({...Ze,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[t?.visibleDays]);return jsxRuntime.jsx(te__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx(Aa,{visibleDays:a,viewDate:r}),jsxRuntime.jsx(Ea,{visibleDays:a,viewDate:r,datesWithEvents:c,options:t,onDayClick:i,onEventClick:n})]})})}function Aa({visibleDays:e,viewDate:t}){let n=[],i=t.startOf("week"),o=t.endOf("week"),a=Array.from(e).sort(),r=0;for(;i<=o&&r<7;)a.includes(i.weekDay)&&n.push(i.dayLong),i=i.plus({days:1}),r++;let s=te__default.default.useMemo(()=>({...ke}),[]),l=te__default.default.useMemo(()=>({...ke}),[]);return jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Ea({visibleDays:e,onDayClick:t,onEventClick:n,options:i,datesWithEvents:o,viewDate:a}){let r=e.size,s=0;return jsxRuntime.jsx(te__default.default.Fragment,{children:o.map(([l,c])=>(s===r&&(s=0),jsxRuntime.jsxs(te__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(ka,{weekNr:l.weekNr}),jsxRuntime.jsx(Bt,{date:l,events:c,tooltipColor:i?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:i,isCurrentMonth:l.hasSame(a,"month")},l.ISO)]},l.ISO)))})}function ka({weekNr:e}){let t=te__default.default.useMemo(()=>({...we}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function yi({options:e,events:t,onEventClick:n,tooltipColor:i}){let o=te__default.default.useMemo(()=>({...Dt}),[]);return jsxRuntime.jsx("div",{style:o,children:t.map(a=>jsxRuntime.jsx(se,{display:"block",color:i,content:typeof a.description=="function"?a.description():a.description,children:jsxRuntime.jsx(ze,{desc:r=>jsxRuntime.jsx("span",{children:typeof r.title=="function"?r.title():r.title}),event:a,options:e?.event?.allday,onClick:n})},`${typeof a.id=="function"?a.id():a.id}`))})}function Ti({hour:e}){let t=te__default.default.useMemo(()=>({...we,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function Si({events:e,onEventClick:t,options:n,tooltipColor:i}){let o=te__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),a=te__default.default.useRef(null),r=e.length!==0&&a.current?.offsetWidth?a.current.offsetWidth/e.length:0;return jsxRuntime.jsx("div",{style:o,ref:a,children:e.map((s,l)=>jsxRuntime.jsx(Da,{tooltipColor:i,options:n?.event?.timed,event:s,eventIndex:l,desc:c=>{let u=typeof c.title=="function"?c.title():c.title;return u.length>80&&(u=u.substring(0,80)+"..."),jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("div",{children:jsxRuntime.jsx("b",{children:c.startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:u})]})},onClick:t,eventWidth:r},`${typeof s.id=="function"?s.id():s.id}`))})}function Da({event:e,options:t,eventWidth:n,eventIndex:i,tooltipColor:o,onClick:a,desc:r}){let[s,l]=te__default.default.useState(!1),c=te__default.default.useCallback(fe,[]),u=te__default.default.useRef(null),d=te__default.default.useMemo(()=>{let m="p";e.evtColor?m=typeof e.evtColor=="function"?e.evtColor(s):e.evtColor:t?.evtColor&&(m=t.evtColor(e,s)),m==="p"?m="#0089b6":m==="i"?m="#3b59ec":m==="l"?m="2f47bc":m==="d"?m="#d91000":m==="s"?m="#519c43":m==="w"&&(m="#eea720"),m+=s?"aa":"ff";let g=c(m),p=e.startDateTime,f=e.endDateTime;f.hasSame(p,"day")||(f=p.endOf("day"));let C=(f.valueOf()-p.valueOf())/1e3/60;return {...Ee,position:"absolute",backgroundColor:m,color:g,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${p.minute}px`,height:`${C<30?30:C}px`,width:n,lineHeight:"1.05em",overflow:"visible",marginLeft:`${i*n}px`,cursor:a?"pointer":"default"}},[e,s,n,i]);return jsxRuntime.jsx("div",{ref:u,onClick:m=>a&&a(e,m),style:d,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:jsxRuntime.jsx(se,{display:"block",color:o,content:typeof e.description=="function"?e.description():e.description,children:jsxRuntime.jsx("span",{style:{overflow:"clip",textOverflow:"ellipsis",position:"absolute",left:"3px",right:"3px",top:"3px"},children:r(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function vi({viewDate:e,options:t,onEventClick:n,events:i,onDayClick:o}){let[a]=te__default.default.useState(t?.visibleDays??new Set([1,2,3,4,5,6,7])),[r,s]=te__default.default.useState(e instanceof Date?w.fromDate(e,t?.locale):e.clone()),l=te__default.default.useCallback((g,p)=>{let f=g.startOf("week").startOf("day"),y=g.endOf("week").plus({days:1}).startOf("day"),C=(p??i??[]).map(P=>(P.allDay=P.allDay||!P.endDateTime,P.startDateTime instanceof Date&&(P.startDateTime=w.fromDate(P.startDateTime,t?.locale)),P.endDateTime&&P.endDateTime instanceof Date&&(P.endDateTime=w.fromDate(P.endDateTime,t?.locale)),P)).filter(P=>P.startDateTime.isBetween([f,y])),b=f.clone(),T=[];for(;b<y;){if(a.has(b.weekDay)){let P=b.startOf("day"),A=b.endOf("day"),k=C.filter(N=>N.startDateTime.isBetween([P,A])).sort((N,O)=>N.allDay&&!O.allDay?-1:!N.allDay&&O.allDay?1:N.startDateTime.valueOf()-O.startDateTime.valueOf());T.push([b,k]);}b=b.plus({days:1});}let x=T.map(([P,A])=>[P,A.filter(k=>k.allDay)]),I=T.map(([P,A])=>[P,A.filter(k=>!k.allDay)]);return {allday:x,timed:I}},[]),[c,u]=te__default.default.useState(l(r));te__default.default.useEffect(()=>{let g=e instanceof Date?w.fromDate(e,t?.locale):e.clone();s(g),u(l(g,i));},[e,i,t?.visibleDays,t?.locale]);let d=te__default.default.useMemo(()=>({...Ze,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${a.size}, 1fr)`}),[t?.visibleDays]),m=te__default.default.useMemo(()=>Array.from(Array(24).keys()),[]);return jsxRuntime.jsx(te__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(Ra,{onDayClick:o,daysWithEvents:c.allday,options:t}),jsxRuntime.jsx("div",{style:{...we,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),c.allday.map(([g,p])=>jsxRuntime.jsx(yi,{events:p,onEventClick:n,options:t,tooltipColor:t?.tooltipColor??"is-light"},g.dayShort)),m.map(g=>jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx(Ti,{hour:g}),c.timed.map(([p,f])=>{let y=f.filter(C=>C.startDateTime.hour===g);return jsxRuntime.jsx(Si,{tooltipColor:t?.tooltipColor??"is-light",events:y,onEventClick:n,options:t},p.dayShort+"-"+g)})]},g))]})})}function Ra({onDayClick:e,daysWithEvents:t,options:n={}}){let i=te__default.default.useMemo(()=>({...ke,cursor:e?"pointer":void 0}),[e]),o=te__default.default.useMemo(()=>({...i}),[]),a=te__default.default.useCallback(fe,[]),r=te__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let s="p";n?.today?.bgColor&&(s=n.today.bgColor(!1)),s==="p"?s="#113670":s==="i"?s="#3b59ec":s==="l"?s="#2f47bc":s==="d"?s="#d91000":s==="s"?s="#519c43":s==="w"&&(s="#eea720");let l=a(s);return {...Rt,marginBottom:".5em",backgroundColor:s,color:l}},[]);return jsxRuntime.jsx(te__default.default.Fragment,{children:t.map(([s])=>jsxRuntime.jsxs("div",{style:o,onClick:l=>e&&e(s,l),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:s.dayLong}),jsxRuntime.jsxs("span",{style:s.isToday?r:void 0,children:[s.day," ",s.monthLong]})]},s.ISO))})}var Ma={Month:hi,Week:vi,Fourweeks:gi};function La({placeholder:e,helpTag:t,errorMessage:n="",label:i,disabled:o=!1,keyboardType:a="text",type:r="text",title:s,name:l,value:c,required:u=!1,spellCheck:d=!1,id:m,autoComplete:g="off",max:p,min:f,readonly:y=!1,step:C=1,pattern:b=void 0,autofocus:T=!1,form:x=void 0,inputRef:I,onBlur:P,onChange:A,onFocus:k,onKeyDown:N,onKeyUp:O,onValueChanged:R,size:L="m",alignment:J="l"}){let v=D=>{R&&R(D.target.value),A&&A(D);},S=n?"input is-danger":"input";return L==="s"?S+=" is-small":L==="l"?S+=" is-medium":L==="xl"&&(S+=" is-large"),J==="l"?S+=" has-text-left":J==="c"?S+=" has-text-centered":J==="r"&&(S+=" has-text-right"),y&&(S+=" is-static"),jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:S,pattern:b,id:m??l??i,ref:I,name:l,value:c,spellCheck:d,autoComplete:g,required:u,type:r,title:s,max:p,maxLength:typeof p=="number"?p:void 0,minLength:typeof f=="number"?f:void 0,min:f,step:C,readOnly:y,autoFocus:T,form:x,inputMode:a,placeholder:e,disabled:o,onKeyDown:N,onKeyUp:O,onBlur:P,onChange:v,onFocus:D=>k&&k(D,t)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(c)})]})}function z({errorMessage:e="",label:t,labelHidden:n=!1,name:i,required:o=!1,id:a,icon:r=freeSolidSvgIcons.faKeyboard,direction:s="h",onBlur:l,...c}){let u=y=>{m(!0),l&&l(y);},[d,m]=te__default.default.useState(!1),g;r&&(typeof r=="string"?g=jsxRuntime.jsx("i",{className:r}):g=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:r}));let p;return e&&(e===""?p=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):p=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(le,{inputId:a??i,label:t??i??a,direction:s,required:o,controlClassName:`control ${r?"has-icons-left":""} ${e!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(La,{required:o,name:i,onBlur:u,id:a,...c,errorMessage:d?e:""}),g&&jsxRuntime.jsx("span",{className:"icon is-left",children:g}),p&&jsxRuntime.jsx("span",{className:"icon is-right",children:p})]})}function le({id:e,label:t,labelHidden:n=!1,inputId:i,children:o,required:a,size:r="m",direction:s="h",controlClassName:l="control"}){let c="is-normal";r==="s"?c+=" is-small":r==="l"?c+=" is-medium":r==="xl"&&(c+=" is-large");let u=`label ${c} ${n?"is-sr-only":""}`;return s==="horizontal"||s==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal",id:e,children:[jsxRuntime.jsx("div",{className:`field-label ${c}`,children:jsxRuntime.jsxs("label",{className:u,htmlFor:i,children:[t,a&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"})]})}),jsxRuntime.jsx("div",{className:"field-body",children:jsxRuntime.jsx("div",{className:"field",children:jsxRuntime.jsx("div",{className:l,children:o})})})]}):jsxRuntime.jsxs("div",{className:"field",id:e,children:[jsxRuntime.jsxs("label",{className:u,htmlFor:i,children:[t,a&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:l,children:o})]})}function hn({id:e,label:t,name:n,direction:i="h",required:o=!1,value:a=!1,errorMessage:r="",labelHidden:s=!1,onValueChanged:l,onBlur:c,...u}){let d=f=>{p(!0),c&&c(f);},m=f=>{l&&l(f);},[g,p]=te__default.default.useState(!1);return jsxRuntime.jsx(le,{inputId:e??n,label:t??n??e,labelHidden:s,direction:i,required:o,controlClassName:"control",children:jsxRuntime.jsx(Ii,{id:e??n,name:n,label:t,value:a,required:o,errorMessage:g?r:"",onValueChanged:m,onBlur:d,...u})})}function Ii({placeholder:e,helpTag:t,errorMessage:n="",label:i,disabled:o=!1,keyboardType:a="text",title:r,name:s,value:l=!1,required:c=!1,spellCheck:u=!1,id:d,autoComplete:m="off",max:g,min:p,readonly:f=!1,autofocus:y=!1,form:C=void 0,inputRef:b,onBlur:T,onChange:x,onFocus:I,onKeyDown:P,onKeyUp:A,onValueChanged:k,size:N="m",alignment:O="l",color:R="p",styling:L="normal"}){let[J,v]=te__default.default.useState(!1),S=W=>{J||v(!0),T&&T(W);},D=W=>{k&&k(W.target.checked),x&&x(W);},M="is-checkradio";return N==="s"?M+=" is-small":N==="l"?M+=" is-medium":N==="xl"&&(M+=" is-large"),R==="w"?M+=" is-warning":R==="l"?M+=" is-link":R==="d"?M+=" is-danger":R==="i"?M+=" is-info":R==="s"?M+=" is-success":R==="p"?M+=" is-primary":M+=` ${R}`,L==="rounded"?M+=" is-circle":L==="noborder"?M+=" has-no-border":L==="colored"?M+=" has-background-color":L==="blocky"&&(M+=" is-blocky"),O==="c"?M+=" has-text-centered":O==="r"&&(M+=" has-text-right"),f&&(M+=" is-static"),jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:M,id:d??s??i,ref:b,name:s,checked:l,spellCheck:u,autoComplete:m,required:c,title:r,max:g,maxLength:typeof g=="number"?g:void 0,minLength:typeof p=="number"?p:void 0,min:p,readOnly:f,autoFocus:y,form:C,inputMode:a,placeholder:e,disabled:o,onKeyDown:P,onKeyUp:A,onBlur:S,onChange:D,onFocus:W=>I&&I(W,t)}),typeof i=="string"?jsxRuntime.jsx("label",{htmlFor:d??s,children:i??s}):i,J&&n&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(l)})]})}var et=({stateError:e,outsideError:t,touched:n})=>t?jsxRuntime.jsx("p",{className:"help is-danger pl-3",children:t}):n&&e?jsxRuntime.jsx("p",{className:"help is-danger pl-3",children:e}):null;var Lt=({label:e,children:t,error:n,size:i,direction:o})=>o==="horizontal"||o==="h"?jsxRuntime.jsx(Fa,{label:e,error:n,size:i??"m",children:t}):jsxRuntime.jsx($a,{label:e,error:n,size:i??"m",children:t}),Fa=({label:e,children:t,error:n,size:i})=>{let o="is-normal";i==="s"?o+=" is-small":i==="l"?o+=" is-medium":i==="xl"&&(o+=" is-large");let a=`label ${o}`;return e?.hidden&&(a+=" is-sr-only"),jsxRuntime.jsxs("div",{className:"field is-horizontal",children:[jsxRuntime.jsx("div",{className:`field-label ${o}`,children:jsxRuntime.jsx("label",{className:a,htmlFor:e?.id,children:e?.txt})}),jsxRuntime.jsx("div",{className:"field-body",children:jsxRuntime.jsxs("div",{className:"field",children:[t,n]})})]})},$a=({label:e,children:t,error:n,size:i})=>{let o="is-normal";i==="s"?o+=" is-small":i==="l"?o+=" is-medium":i==="xl"&&(o+=" is-large");let a=`label ${o}`;return e?.hidden&&(a+=" is-sr-only"),jsxRuntime.jsxs("div",{className:"field",children:[jsxRuntime.jsx("label",{className:a,htmlFor:e?.id,children:e?.txt}),t,n]})};function Ft(e){return e.length==0?[]:typeof e[0]=="string"?e.map(n=>jsxRuntime.jsx("option",{value:n,children:n},n)):"value"in e[0]?e.map(n=>jsxRuntime.jsx("option",{value:n.value,disabled:n.disabled,children:n.label||n.value},n.value)):e.map(n=>jsxRuntime.jsx("optgroup",{label:n.label,children:n.selectOptions.map(i=>jsxRuntime.jsx("option",{value:i.value,disabled:i.disabled,children:i.label||i.value},i.value))},n.label))}function Xa(e,t){switch(t.type){case"SET":let n=Ni(t.value,e.description,t.validation);return {...e,value:t.value,validation:t.validation,invalidMsg:n,valid:n===""};case"CHANGE":return {...e,value:t.value,touched:!0,invalidMsg:t.invalidMsg,valid:t.invalidMsg===""};case"TOUCH":return {...e,touched:t.touched}}}function za(e){let[t,n]=te__default.default.useReducer(Xa,{description:e.label??e.name,value:e.value??"",invalidMsg:"",valid:!1,touched:!1,validation:e.validation}),i="";e.errorMessage&&(i=typeof e.errorMessage=="string"?e.errorMessage:e.errorMessage(t.value));let o=!t.valid&&t.touched||i?"select is-danger is-fullwidth":"select is-fullwidth";e.size==="s"?o+=" is-small":e.size==="l"?o+=" is-medium":e.size==="xl"&&(o+=" is-large"),e.textAlign==="c"?o+=" has-text-centered":e.textAlign==="r"&&(o+=" has-text-right");let a=c=>{if(!e.disabled){let u=Ni(c,t.description,t.validation);e.onValueChanged&&e.onValueChanged(c,u==""),n({type:"CHANGE",value:c,invalidMsg:u});}};te__default.default.useEffect(()=>{n({type:"SET",value:e.value??"",validation:e.validation});},[e.value,e.validation]);let r=Ft(e.options),s={txt:e.label??e.name,id:e.id??e.name,hidden:e.labelHidden??!1},l=jsxRuntime.jsx(et,{stateError:t.invalidMsg,touched:t.touched,outsideError:i});return jsxRuntime.jsx(Lt,{size:e.size,label:s,error:l,direction:e.direction??"h",children:jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsxs("select",{onChange:c=>a(c.target.value),onBlur:()=>!t.touched&&n({type:"TOUCH",touched:!0}),onFocus:c=>e.onFocus&&e.onFocus(c,e.helpTag),disabled:e.disabled,required:t.validation?.required,value:t.value,id:e.id??e.name,children:[e.placeholder&&jsxRuntime.jsx("option",{disabled:!0,value:e.placeholder,children:e.placeholder}),r]})})})})}function Ni(e,t,n){return n?.required&&!e?`${t} is verplicht`:n?.onValidate?n.onValidate(e):""}function _a(e,t){switch(t.type){case"SET":let n=Ei(t.value,e.description,t.validation);return {...e,value:t.value,validation:t.validation,invalidMsg:n,valid:n===""};case"CHANGE":return {...e,value:t.value,touched:!0,invalidMsg:t.invalidMsg,valid:t.invalidMsg===""};case"TOUCH":return {...e,touched:t.touched,focused:!1};case"FOCUS":return {...e,focused:t.focus}}}function Wa(e){let[t,n]=te__default.default.useReducer(_a,{description:e.label??e.name,value:e.value??[],invalidMsg:"",valid:!1,focused:!1,touched:!1,validation:e.validation}),i=e.label??e.name,o=e.rows??6,a="";e.errorMessage&&(a=typeof e.errorMessage=="string"?e.errorMessage:e.errorMessage(t.value));let r=!t.valid&&t.touched||a?"select is-danger is-fullwidth is-multiple":"select is-fullwidth is-multiple";e.size==="s"?r+=" is-small":e.size==="l"?r+=" is-medium":e.size==="xl"&&(r+=" is-large"),e.textAlign==="c"?r+=" has-text-centered":e.textAlign==="r"&&(r+=" has-text-right"),te__default.default.useEffect(()=>{n({type:"SET",value:e.value??[],validation:e.validation});},[e.value,e.validation]);let s=Ft(e.options),l=u=>{if(!e.disabled){let d=[];for(let g=0;g<u.length;g++)d.push(u[g].value);let m=Ei(d,t.description,t.validation);e.onValueChanged&&e.onValueChanged(d,m==""),n({type:"CHANGE",value:d,invalidMsg:m});}},c=jsxRuntime.jsx(et,{stateError:t.invalidMsg,touched:t.touched,outsideError:a});return jsxRuntime.jsx(te__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"field",title:e.tooltip,children:[jsxRuntime.jsx("label",{className:`label ${e.labelHidden?"is-sr-only":""}`,htmlFor:e.id??e.name,children:i}),jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx("div",{className:r,children:jsxRuntime.jsxs("select",{multiple:!0,required:t.validation?.required,id:e.id??e.name,size:o,disabled:e.disabled,onFocus:u=>{n({type:"FOCUS",focus:!0}),e.onFocus&&e.onFocus(u,e.helpTag);},onChange:u=>l(u.target.selectedOptions),onBlur:()=>{!t.touched&&n({type:"TOUCH",touched:!0}),n({type:"FOCUS",focus:!1});},defaultValue:t.value,children:[e.placeholder&&jsxRuntime.jsx("option",{disabled:!0,value:"",children:e.placeholder}),s]})})}),c]})})}function Ei(e,t,n){return n?.required&&(!e||e.length==0)?`${t} is verplicht`:n?.min&&e.length<n.min?`${t} moet minimaal uit ${n.min} geselecteerde opties betaan`:n?.max&&e.length>n.max?`${t} mag maximaal uit ${n.min} geselecteerde opties bestaan`:n?.onValidate?n.onValidate(e):""}function Ka({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:i=freeSolidSvgIcons.faPalette,onHexValueChanged:o,onRGBValueChanged:a,onHSLValueChanged:r,...s}){let l=(p,f,y)=>`#${p.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${y.toString(16).padStart(2,"0")}`,c=p=>{let f=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(p);return f?[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]:[0,0,0]},u=(p,f,y)=>{let C=y/100,b=f*Math.min(C,1-C)/100,T=x=>{let I=(x+p/30)%12,P=C-b*Math.max(Math.min(I-3,9-I,1),-1);return Math.round(255*P).toString(16).padStart(2,"0")};return `#${T(0)}${T(8)}${T(4)}`},d=p=>{let[f,y,C]=c(p);f/=255,y/=255,C/=255;let b=Math.max(f,y,C),T=Math.min(f,y,C),x=(b+T)/2,I=x,P=x;if(b!==T){let A=b-T;return I=P>.5?A/(2-b-T):A/(b+T),f===b?x=(y-C)/A+(y<C?6:0):y===b?x=(C-f)/A+2:C===b&&(x=(f-y)/A+4),[Math.round(360*(x/6)),Math.round(I*100),Math.round(P*100)]}else return [0,0,P]},m=p=>{o&&o(p),a&&a(c(p)),r&&r(d(p));},g="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(p=>{"0123456789ABCDEF".includes(p)||V(`Ongeldige hex-color '${e}'`);}),e.length===4?g=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?g=e:V(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[p,f,y]=t;(p<0||p>255)&&V(`Ongeldige RGB-waarde, r = '${p}', moet tussen 0 en 255`),(f<0||f>255)&&V(`Ongeldige RGB-waarde, g = '${f}', moet tussen 0 en 255`),(y<0||y>255)&&V(`Ongeldige RGB-waarde, b = '${y}', moet tussen 0 en 255`),g=l(p,f,y);}else if(n){let[p,f,y]=n;(p<0||p>360)&&V(`Ongeldige HSL-waarde, h = '${p}', moet tussen 0 en 360`),(f<0||f>100)&&V(`Ongeldige HSL-waarde, s = '${f}', moet tussen 0 en 100`),(y<0||y>100)&&V(`Ongeldige HSL-waarde, l = '${y}', moet tussen 0 en 100`),g=u(p,f,y);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(z,{icon:i,type:"color",value:g,onValueChanged:m,...s})})}function Ua({value:e,name:t,id:n,required:i,title:o,tooltip:a}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:o??a,required:i,type:"hidden",disabled:!0})}function bn({placeholder:e,helpTag:t,label:n,disabled:i=!1,keyboardType:o="text",title:a,name:r,value:s,checked:l=!1,required:c=!1,spellCheck:u=!1,id:d,autoComplete:m="off",max:g,min:p,readonly:f=!1,autofocus:y=!1,form:C=void 0,inputRef:b,onBlur:T,onChange:x,onFocus:I,onKeyDown:P,onKeyUp:A,onValueChanged:k,size:N="m",alignment:O="l",itemsDirection:R="h",color:L="p",styling:J="normal"}){let v=D=>{k&&k(s),x&&x(D);},S="is-checkradio";return N==="s"?S+=" is-small":N==="l"?S+=" is-medium":N==="xl"&&(S+=" is-large"),L==="w"?S+=" is-warning":L==="l"?S+=" is-link":L==="d"?S+=" is-danger":L==="i"?S+=" is-info":L==="s"?S+=" is-success":L==="p"?S+=" is-primary":S+=` ${L}`,J==="rounded"?S+=" is-circle":J==="noborder"?S+=" has-no-border":J==="colored"?S+=" has-background-color":J==="blocky"&&(S+=" is-blocky"),O==="c"?S+=" has-text-centered":O==="r"&&(S+=" has-text-right"),f&&(S+=" is-static"),jsxRuntime.jsxs("div",{style:{display:R==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:S,id:d??r??n,ref:b,name:r,checked:l,spellCheck:u,autoComplete:m,required:c,title:a,max:g,maxLength:typeof g=="number"?g:void 0,minLength:typeof p=="number"?p:void 0,min:p,readOnly:f,autoFocus:y,form:C,inputMode:o,placeholder:e,disabled:i,onKeyDown:P,onKeyUp:A,onBlur:T,onChange:v,onFocus:D=>I&&I(D,t)}),typeof n=="string"?jsxRuntime.jsx("label",{htmlFor:d??r,children:n??r}):n]})}function wi({children:e=void 0,id:t,label:n,name:i,value:o,required:a=!1,helpTag:r,size:s="m",direction:l="h",itemsDirection:c="h",alignment:u="l",errorMessage:d,onValueChanged:m,onBlur:g,onChange:p,onFocus:f,onKeyDown:y,onKeyUp:C}){let[b,T]=te__default.default.useState(!1),x=k=>{b||T(!0),g&&g(k);},I=k=>{m&&m(k);},A=(k=>te__default.default.Children.map(k,(N,O)=>{if(te__default.default.isValidElement(N)&&N.type===Di){let R=!1;return typeof o=="string"||typeof o=="number"||typeof o=="boolean"?R=o===N.props.value:o&&(R=JSON.stringify(o)===JSON.stringify(N.props.value)),jsxRuntime.jsx(bn,{...N.props,size:s,itemsDirection:c,alignment:u,direction:l,id:N.props.id??`${i}-option-${O}`,value:N.props.value,checked:R,label:N.props.children,name:i,onValueChanged:I,onBlur:x,onKeyDown:y,onKeyUp:C,onChange:p,onFocus:L=>{T(!0),f&&f(L,r);}})}return N}))(e);return jsxRuntime.jsxs(le,{label:n??i,required:a,inputId:"",direction:l,children:[A,b&&d&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(o)})]})}function Di({checked:e=!1,id:t,value:n,children:i,...o}){return jsxRuntime.jsx(bn,{label:i,checked:e,name:"",...o,id:t,value:n})}wi.Item=Di;function Ya({value:e,icon:t=freeSolidSvgIcons.faAt,onValueChanged:n,pattern:i=`[^@ \r
|
|
66
|
+
var Xo=Object.defineProperty;var $o=(e,t,n)=>t in e?Xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ee=(e,t,n)=>($o(e,typeof t!="symbol"?t+"":t,n),n);var at=(a=>(a.Primary="#0089b6",a.Info="#3b59ec",a.Link="2f47bc",a.Success="#519c43",a.Danger="#d91000",a.Warning="#eea720",a))(at||{});function zo({ratio:e,children:t,caption:n,className:o=""}){let i=`image is-${e} ${o}`.trim();return jsxRuntime.jsxs("figure",{className:i,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}var Xt=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:`bulma-box ${t??""}`.trim(),style:n,children:e});function _o({children:e,gap:t,multiline:n,centered:o,className:i,styles:r}){let a="columns";return t&&(a+=` is-${t} is-variable`),n&&(a+=" is-multiline"),o&&(a+=" is-centered"),i&&(a+=` ${i}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:a,style:r,children:e})}var X=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:t,style:n,children:e}),we=e=>{let t="column ";return typeof e.narrow=="boolean"?t+="is-narrow":e.narrow&&(t+=`is-narrow-${e.narrow}`),e.className&&(t+=` ${e.className}`),jsxRuntime.jsx(X,{...e,className:t})};we.Full=e=>jsxRuntime.jsx(X,{...e,className:`column is-full ${e.className}`,styles:e.styles});we.Half=e=>jsxRuntime.jsx(X,{...e,className:`column is-half ${e.className}`,styles:e.styles});we.Thirds={One:e=>jsxRuntime.jsx(X,{...e,className:`column is-one-third ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(X,{...e,className:`column is-two-thirds ${e.className}`,styles:e.styles})};we.Quarters={One:e=>jsxRuntime.jsx(X,{...e,className:`column is-one-quarter ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(X,{...e,className:`column is-two-quarters ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(X,{...e,className:`column is-three-quarters ${e.className}`,styles:e.styles})};we.Fifths={One:e=>jsxRuntime.jsx(X,{...e,className:`column is-one-fifth ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(X,{...e,className:`column is-two-fifths ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(X,{...e,className:`column is-three-fifths ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(X,{...e,className:`column is-four-fifths ${e.className}`,styles:e.styles})};we.Twelves={One:e=>jsxRuntime.jsx(X,{...e,className:`column is-1 ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(X,{...e,className:`column is-2 ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(X,{...e,className:`column is-3 ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(X,{...e,className:`column is-4 ${e.className}`,styles:e.styles}),Five:e=>jsxRuntime.jsx(X,{...e,className:`column is-5 ${e.className}`,styles:e.styles}),Six:e=>jsxRuntime.jsx(X,{...e,className:`column is-6 ${e.className}`,styles:e.styles}),Seven:e=>jsxRuntime.jsx(X,{...e,className:`column is-7 ${e.className}`,styles:e.styles}),Eight:e=>jsxRuntime.jsx(X,{...e,className:`column is-8 ${e.className}`,styles:e.styles}),Nine:e=>jsxRuntime.jsx(X,{...e,className:`column is-9 ${e.className}`,styles:e.styles}),Ten:e=>jsxRuntime.jsx(X,{...e,className:`column is-10 ${e.className}`,styles:e.styles}),Eleven:e=>jsxRuntime.jsx(X,{...e,className:`column is-11 ${e.className}`,styles:e.styles}),Twelve:e=>jsxRuntime.jsx(X,{...e,className:`column is-12 ${e.className}`,styles:e.styles})};we.displayName="Column";var yt=({className:e,children:t,styles:n})=>{let o="container";return e&&(o+=" "+e),jsxRuntime.jsx("div",{className:o,style:n,children:t})};yt.Wide=({className:e,children:t,styles:n})=>{let o="container is-widescreen ";return e&&(o+=" "+e),jsxRuntime.jsx("div",{className:o,style:n,children:t})};yt.Widest=({className:e,children:t,styles:n})=>{let o="container is-fullhd ";return e&&(o+=" "+e),jsxRuntime.jsx("div",{className:o,style:n,children:t})};yt.Max=({className:e,children:t,styles:n})=>{let o="container is-fluid ";return e&&(o+=" "+e),jsxRuntime.jsx("div",{className:o,style:n,children:t})};function Go({size:e,className:t,styles:n,children:o}){let i="content ";return e==="s"?i+="is-small":e==="l"?i+="is-medium":e==="xl"&&(i+="is-large"),t&&(i+=" "+t),jsxRuntime.jsx("div",{className:i,style:n,children:o})}function Zo({children:e,alignment:t,className:n,styles:o}){let i="container",r="footer mt-6";return t==="l"?i+=" has-text-left":t==="r"?i+=" has-text-right":i+=" has-text-centered",n&&(r+=` ${n}`),jsxRuntime.jsx("footer",{className:r,style:o,children:jsxRuntime.jsx("div",{className:i,children:e})})}var bt=e=>{let t="hero is-bold";t+=e.heroColorFor?` is-${e.heroColorFor}`:" is-primary",e.size==="s"?t+=" is-small":e.size==="l"?t+=" is-medium":e.size==="xl"&&(t+=" is-large");let n=ae__default.default.Children.map(e.children??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],o=>o);return jsxRuntime.jsx("header",{className:t,children:n})},$t=e=>{let[t,n]=ae__default.default.useState(!1);return jsxRuntime.jsx("div",{className:"hero-head",children:jsxRuntime.jsxs("nav",{className:"navbar container",children:[jsxRuntime.jsx("div",{className:"navbar-brand",children:jsxRuntime.jsxs("span",{className:t?"navbar-burger is-active":"navbar-burger",role:"menu-toggle-mobile","data-target":"hero-header-menu",onClick:()=>n(!t),children:[jsxRuntime.jsx("span",{}),jsxRuntime.jsx("span",{}),jsxRuntime.jsx("span",{})]})}),jsxRuntime.jsx("div",{id:"hero-header-menu",className:t?"navbar-menu is-active":"navbar-menu",children:jsxRuntime.jsx("div",{className:"navbar-end",children:e.children})})]})})};$t.Button=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,onClick:e.onClick,children:e.children});$t.Link=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,href:e.to,target:e.target??"_blank",rel:e.rel??"noopener",children:e.children});bt.Head=$t;bt.Body=e=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e.children})});var zt=e=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:"tabs is-boxed is-fullwidth container",children:e.children})});zt.NavList=e=>jsxRuntime.jsx("ul",{children:e.children});zt.NavItem=e=>jsxRuntime.jsx("li",{className:e.active?"is-active":void 0,title:e.tooltip,children:jsxRuntime.jsx("a",{href:e.to,target:e.target??"_blank",rel:e.rel??"noopener",children:e.children})});bt.Foot=zt;function Yo({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:i,isRounded:r,src:a}){let s=`image is-${e}`;return e==="square"&&(s=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:i,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:s,children:[jsxRuntime.jsx("img",{className:r&&e==="square"?"is-rounded":void 0,src:a,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function Qo({children:e,className:t,styles:n}){let o="section";return t&&(o+=` ${t}`),jsxRuntime.jsx("section",{className:o,style:n,children:e})}var ei=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let r=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${a}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let o=ae__default.default.useMemo(()=>({maxWidth:typeof e.maxItemWidth=="number"?`${e.maxItemWidth}px`:e.maxItemWidth||null,minWidth:typeof e.minItemWidth=="number"?`${e.minItemWidth}px`:e.minItemWidth||null}),[e.maxItemWidth,e.minItemWidth]),i=ae__default.default.useMemo(()=>({display:"flex",flexDirection:e.reverse?"row-reverse":"row",flexWrap:e.wrap?"wrap":"nowrap",justifyContent:n,alignItems:"center",alignContent:"center",gap:t,overflowX:e.wrap?"hidden":"auto",paddingBottom:"22px"}),[e.reverse,e.alignment,e.wrap]);return jsxRuntime.jsx("div",{className:"lbr-flex-horizontal",style:i,children:ae__default.default.Children.toArray(e.children).map((r,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:r},a))})},ti=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let i=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,r=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${i} ${r}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let o=ae__default.default.useMemo(()=>({display:"flex",flexDirection:e.reverse?"column-reverse":"column",flexWrap:e.wrap?"wrap":"nowrap",justifyContent:n,alignItems:"stretch",alignContent:"stretch",gap:t,overflowY:e.wrap?"hidden":"auto",maxHeight:typeof e.maxHeight=="number"||!isNaN(+(e.maxHeight||NaN))?`${e.maxHeight}px`:e.maxHeight}),[e.reverse,e.wrap,e.alignment,e.gap,e.maxHeight]);return jsxRuntime.jsx("div",{className:"lbr-flex-vertical",style:o,children:ae__default.default.Children.toArray(e.children).map((i,r)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:i},r))})},ni={Horizontal:ei,Vertical:ti};function Cl(e=2e3){let[t,n]=ae__default.default.useState(null),[o,i]=ae__default.default.useState(!1),[r,a]=ae__default.default.useState(null),s=m=>{clearTimeout(r),a(setTimeout(()=>i(!1),e)),i(m);};return {copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>s(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{i(!1),n(null),clearTimeout(r);},error:t,copied:o}}function Bn(e,t={leading:!1,delay:500}){let[n,o]=ae__default.default.useState(e),i=ae__default.default.useRef(!1),r=ae__default.default.useRef(void 0),a=ae__default.default.useRef(!1),s=()=>window.clearTimeout(r.current);return ae__default.default.useEffect(()=>{i.current&&(!a.current&&t.leading?(a.current=!0,o(e)):(s(),r.current=window.setTimeout(()=>{a.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),ae__default.default.useEffect(()=>(i.current=!0,s),[]),[n,s]}function ii(e){let t=e.toLowerCase().split("+").map(r=>r.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},o=["alt","ctrl","meta","shift","mod"],i=t.find(r=>!o.includes(r));return {...n,key:i}}function ri(e,t){let{alt:n,ctrl:o,meta:i,mod:r,shift:a,key:s}=e,{altKey:c,ctrlKey:l,metaKey:m,shiftKey:d,key:u}=t;if(n!==c)return !1;if(r){if(!l&&!m)return !1}else if(o!==l||i!==m)return !1;return a!==d?!1:!!(s&&(u.toLowerCase()===s.toLowerCase()||t.code.replace("Key","").toLowerCase()===s.toLowerCase()))}function Jn(e){return t=>ri(ii(e),t)}function kl(e){return t=>{e.forEach(([n,o])=>{Jn(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function ai(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Al(e){ae__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,i])=>{Jn(o)(n)&&ai(n)&&(n.preventDefault(),i(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function vt(e){try{return JSON.parse(e)}catch(t){throw new Error(`useLocalState failed to deserialize the value: ${t.message}`)}}function Ct(e){try{return JSON.stringify(e)}catch(t){throw new Error(`serializeJSON() failed to serialize the value: ${t.message}`)}}function Jl({key:e,initialValue:t,deserialize:n=vt,serialize:o=Ct}){let[i,r]=ae__default.default.useState(()=>{if(typeof window>"u")return t;try{let c=window.localStorage.getItem(e);return c?n(c):t}catch(c){return console.error(`useLocalStoredState failed to get the value: ${c.message}`),t}}),a=ae__default.default.useCallback(c=>{try{let l=c instanceof Function?c(i):c;r(l),typeof window<"u"&&window.localStorage.setItem(e,o(l));}catch(l){console.error(`useLocalStoredState failed to store the value: ${l.message}`);}},[]),s=ae__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[]);return [i,a,s]}function On({value:e,defaultValue:t,finalValue:n,rule:o,onChange:i,onValueUpdate:r}){let a=o(e),s=ae__default.default.useRef("initial"),c=o(t)?t:n,[l,m]=ae__default.default.useState(c),d=a?e:l;!a&&s.current==="controlled"&&(d=n),s.current=a?"controlled":"uncontrolled";let u=s.current,p=g=>{typeof i=="function"&&i(g),u==="uncontrolled"&&m(g);};return ae__default.default.useEffect(()=>{u==="uncontrolled"&&m(d),typeof r=="function"&&r(d);},[u,d]),[d,p,s.current]}var Pt="dots";function Hn({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:i=1,onChange:r}){let[a,s]=On({value:o,onChange:r,defaultValue:i,finalValue:i,rule:h=>typeof h=="number"&&h<=e}),c=h=>{h<=0?s(1):h>e?s(e):s(h);},l=()=>c((a??0)+1),m=()=>c((a??0)-1),d=()=>c(1),u=()=>c(e),p=ae__default.default.useCallback((h,T)=>{let v=T-h+1;return Array.from({length:v},(I,S)=>S+h)},[]);return {range:ae__default.default.useMemo(()=>{if(t*2+3+n*2>=e)return p(1,e);let T=Math.max((a??0)-t,n),v=Math.min((a??0)+t,e-n),I=T>n+2,S=v<e-(n+1);if(!I&&S){let x=t*2+n+2;return [...p(1,x),Pt,...p(e-(n-1),e)]}if(I&&!S){let x=n+1+2*t;return [...p(1,n),Pt,...p(e-x,e)]}return [...p(1,n),Pt,...p(T,v),Pt,...p(e-n+1,e)]},[e,t,a]),active:a,setPage:c,next:l,prev:m,first:d,last:u}}function li(e,t){let[n,o]=ae__default.default.useState(e);return [n,r=>{o(typeof r<"u"?r:a=>a===t[0]?t[1]:t[0]);}]}function Vl(e=!1){return li(e,[!0,!1])}function Kl(e,t){let[n,o]=t?t(e):[!0,""],[i,r]=ae__default.default.useState(e??void 0),[a,s]=ae__default.default.useState(n),[c,l]=ae__default.default.useState(o),[m,d]=ae__default.default.useState(n?e:void 0);return [{value:i,lastValidValue:m,valid:a,invalidMsg:c},p=>{let[g,h]=t?t(p):[!0,""];g&&d(p),s(g),l(h),r(p);}]}function ql({key:e,initialValue:t,deserialize:n=vt,serialize:o=Ct}){let[i,r]=ae__default.default.useState(()=>{if(typeof window>"u")return t;try{let c=window.sessionStorage.getItem(e);return c?n(c):t}catch(c){return console.error(`useSessionStoredState failed to get the value: ${c.message}`),t}}),a=ae__default.default.useCallback(c=>{try{let l=c instanceof Function?c(i):c;r(l),typeof window<"u"&&window.sessionStorage.setItem(e,o(l));}catch(l){console.error(`useSessionStoredState failed to store the value: ${l.message}`);}},[]),s=ae__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[]);return [i,a,s]}function pi(e,t){switch(t.type){case"SET":let n=t.value;return {...e,items:[...n.items],filteredItems:[...n.filteredItems],visibleItems:[...n.filteredItems].splice(0,n.maxRows),currentPage:1,maxRows:n.maxRows,headers:n.headers.map(Ut),sort:t.sort};case"SORT":return {...e,sort:t.sort,filteredItems:[...t.value],visibleItems:[...e.filteredItems].splice(t.value*e.maxRows,e.maxRows)};case"SEARCH":return {...e,currentPage:1,filteredItems:[...t.value],visibleItems:[...t.value].splice(0,e.maxRows)};case"PAGE":return {...e,visibleItems:[...e.filteredItems].splice((t.value-1)*e.maxRows,e.maxRows),currentPage:t.value}}}function fi({fullwidth:e,bordered:t,narrow:n,striped:o,hoverable:i,defaultSortCol:r,data:a,maxRows:s,columns:c,rowIdentifier:l,headerContent:m,searchPlaceholder:d,onSearch:u,rowClasses:p,onRowSelected:g,onNoRowsToRender:h}){let T="table";e&&(T+=" is-fullwidth"),t&&(T+=" is-bordered"),n&&(T+=" is-narrow"),o&&(T+=" is-striped"),i&&(T+=" is-hoverable");let[v,I]=ae__default.default.useState(""),S=r??"";if(S===""){let f=c.filter(k=>!!k.sort)[0];f.header?S=f.header:typeof f.value=="string"&&(S=f.value);}let x=()=>({filteredItems:[...a],items:[...a],visibleItems:[...a].splice(0,s??a.length),maxRows:s??a.length,currentPage:1,headers:c,sort:S}),[C,b]=ae__default.default.useReducer(pi,{},x);ae__default.default.useEffect(()=>{let f={items:a,filteredItems:[],visibleItems:[...a].splice(0,s??a.length),maxRows:s||a.length,currentPage:1,headers:c.map(Ut),sort:C.sort};f.filteredItems=v===""?a:L(v,{items:a,headers:c.map(Ut)});let k=!1;if(f.sort){k=f.sort.endsWith("-reverse");let H=N(f.sort.replace("-reverse",""),f.filteredItems);f.filteredItems=k?H.reverse():H;}b({type:"SET",value:f,sort:k?f.sort+"-reverse":f.sort});},[a,c,s]);let D=f=>b({type:"PAGE",value:f}),P=f=>{let k=C.sort==f,H=N(f,C.filteredItems);b({type:"SORT",value:k?H.reverse():H,sort:k?f+"-reverse":f});},N=ae__default.default.useCallback((f,k)=>{let H=C.headers.find(te=>te.header==f&&te.sort);if(H){if(typeof H.sort=="function")return k.sort(H.sort);if(H.sort)try{return Si(H,k)}catch(te){console.error(`DataTable Sorting Error: ${te.message}`);}}else return k;return k},[C.headers]),A=f=>{let k=u?u(f,C.items):L(f);I(f),b({type:"SEARCH",value:k});},L=ae__default.default.useCallback((f,k)=>{let H=bi(f),te=k?.items??C.items,ne=k?.headers??C.headers;return te.filter(ye=>{for(let fe of ne){let M=null;if(typeof fe.value=="function"?(M=fe.value(ye),typeof M!="string"&&(M=M.toString())):typeof fe.value=="string"&&(M=ye[fe.value],M&&typeof M!="string"&&(M=M.toString())),typeof M=="string"&&H&&H.test(M))return !0;if(typeof M=="string"&&M.toLowerCase().includes(f.toLowerCase()))return !0}return !1})},[]),E=(f,k)=>{g&&g(f,k);},z=Hn({total:Math.ceil(C.filteredItems.length/C.maxRows),onChange:f=>f&&D(f),page:C.currentPage});return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[(d||m)&&jsxRuntime.jsx(yi,{content:m,placeholder:d,onSearchTermChanged:f=>A(f)}),C.filteredItems.length!==a.length&&jsxRuntime.jsxs("p",{className:"help is-link px-6",children:["Toon ",C.filteredItems.length," van de ",a.length," rijen"]}),C.visibleItems.length===0&&h&&h(v!==""),C.visibleItems.length>0&&jsxRuntime.jsxs("table",{className:T,children:[jsxRuntime.jsx(hi,{titles:C.headers,onSort:f=>P(f),currentSort:C.sort}),jsxRuntime.jsx(gi,{columns:C.headers,data:C.visibleItems,rowClasses:p,rowIdentifier:l,onRowSelected:(f,k)=>E(f,k)})]}),C.maxRows<C.filteredItems.length&&jsxRuntime.jsx(Ti,{pagination:z})]})}function gi({columns:e,data:t,rowIdentifier:n,rowClasses:o,onRowSelected:i}){let[r]=Bn(t,{delay:200});return jsxRuntime.jsx("tbody",{children:r.map((a,s)=>{let c=typeof o=="function"?o(a,s):o;return jsxRuntime.jsx("tr",{className:c,onClick:l=>i(a,l.currentTarget),children:e.map((l,m)=>{let d=typeof l.value=="string"?a[l.value].toString():typeof l.value=="function"&&l.value(a),u="left";l.alignment==="r"?u="right":l.alignment==="c"&&(u="center");let p=l.columnClasses?l.columnClasses(a,m):void 0;return jsxRuntime.jsx("td",{className:p,align:u,children:d},m)})},typeof n=="function"?n(a):a[n])})})}function hi({titles:e,onSort:t,currentSort:n}){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{role:"tableheader",children:e.map((o,i)=>{let r="left";o.alignment==="r"?r="right":o.alignment==="c"&&(r="center");let a=o.header?o.header+"-"+i:i;return o.sort&&o.header?jsxRuntime.jsxs("th",{role:"sort",className:"is-sortable",align:r,onClick:()=>t(o.header),children:[jsxRuntime.jsxs("span",{className:"icon",children:[n===o.header&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSortDown}),n===o.header+"-reverse"&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSortUp}),n!==o.header&&n!=o.header+"-reverse"&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSort})]}),jsxRuntime.jsx("span",{children:o.header})]},a):jsxRuntime.jsx("th",{align:r,children:o.header},a)})})})}function yi({placeholder:e,content:t,onSearchTermChanged:n}){return jsxRuntime.jsxs("div",{className:"datatable-header is-flex flex-direction-row is-flex-wrap-wrap is-justify-content-space-evenly is-align-items-stretch mx-3",children:[jsxRuntime.jsx("div",{className:"is-flex-grow-1 is-flex-shrink-1",children:t}),jsxRuntime.jsx("div",{className:"is-flex-grow-1 is-flex-shrink-1"}),e&&jsxRuntime.jsxs("div",{className:"field is-flex-grow-1 is-flex-shrink-1 ml-3",children:[jsxRuntime.jsx("label",{className:"is-sr-only",htmlFor:"datatable-search-field",children:"Zoek in tabel"}),jsxRuntime.jsxs("div",{className:"control has-icons-left is-expanded",children:[jsxRuntime.jsx("span",{className:"icon is-left",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{size:"sm",icon:freeSolidSvgIcons.faSearch})}),jsxRuntime.jsx("input",{id:"datatable-search-field",style:{minWidth:"200px"},className:"input is-fullwidth is-rounded",placeholder:e,onChange:o=>n(o.target.value)})]})]})]})}function Ti({pagination:e}){let t=0;return jsxRuntime.jsx("div",{className:"datatable-footer pagination is-centered is-small px-6 mb-3",role:"pagination",children:jsxRuntime.jsx("div",{className:"pagination-list",children:e.range.map(n=>n==="dots"?jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"},n+t++):jsxRuntime.jsx("button",{className:"pagination-link",onClick:()=>e.setPage(n),children:n},n))})})}function bi(e){return e.startsWith("/")&&e.endsWith("/")?new RegExp(e.replaceAll("/","")):null}function Ut(e){return !e.header&&typeof e.value=="string"?e.header=e.value:e.header||(e.header="",e.sort=!1),e}function Si(e,t){return t.sort((n,o)=>{let i="",r="";if(typeof e.value=="function")i=e.value(n),r=e.value(o);else if(typeof e.value=="string")i=n[e.value],r=o[e.value];else throw new Error("[V] Voor sortering van JSX-elementen MOET je een eigen functie gebruiken");switch(typeof i){case"boolean":return i===r?0:i?-1:1;case"number":return +i-+r;case"string":return i<r?-1:i>r?1:0;default:throw new Error("[A, B] Voor sortering van JSX-elementen MOET je een eigen functie gebruiken")}})}var Se=({color:e,size:t,rotation:n,icon:o,flip:i,animate:r})=>{let a="icon",s="1x";switch(e==="s"?a+=" has-text-success":e==="d"?a+=" has-text-danger":e==="w"?a+=" has-text-warning":e==="p"?a+=" has-text-primary":e==="i"?a+=" has-text-info":e==="l"&&(a+=" has-text-link"),t){case"s":s="sm",a+=" is-small";break;case"m":s="1x",a+=" is-normal";break;case"l":s="2x",a+=" is-medium";break;case"xl":s="3x",a+=" is-large";break;default:s="1x",a+=" is-normal";break}return typeof o=="string"?jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:s,rotation:n,flip:i,spin:r==="spin",pulse:r==="pulse"})})},Ci=({icon:e,size:t,color:n,rotation:o,flip:i,animate:r,children:a})=>{let s="icon-text";return n==="s"?s+=" has-text-success":n==="d"?s+=" has-text-danger":n==="w"?s+=" has-text-warning":n==="p"?s+=" has-text-primary":s+=" has-text-link",jsxRuntime.jsxs("span",{className:s,role:"icon-with-text",children:[jsxRuntime.jsx(Se,{icon:e,size:t,color:n,rotation:o,flip:i,animate:r}),jsxRuntime.jsx("span",{children:a})]})};function Ii({label:e,className:t,position:n,color:o,tooltip:i,children:r}){let a="indicator";return n==="tl"||n==="top-left"?a+=" is-top-left":n==="tc"||n==="top-center"?a+=" is-top-center":n==="bl"||n==="bottom-left"?a+=" is-bottom-left":n==="br"||n==="bottom-right"?a+=" is-bottom-right":n==="bc"||n==="bottom-center"?a+=" is-bottom-center":n==="lc"||n==="left-center"?a+=" is-left-center":n==="rc"||n==="right-center"?a+=" is-right-center":a+=" is-top-right",o==="p"?a+=" is-primary":o==="i"?a+=" is-info":o==="w"?a+=" is-warning":o==="d"?a+=" is-danger":o==="s"?a+=" is-success":a+=" is-link",jsxRuntime.jsxs("div",{className:t,children:[jsxRuntime.jsx("div",{className:a,title:i,children:e}),r]})}function Zt({children:e,className:t}){let n=`kbd ${t??""}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Ai({keys:e,separator:t,className:n}){let o=e.map((i,r)=>r===e.length-1?jsxRuntime.jsx(Zt,{children:i},i):jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Zt,{children:i}),jsxRuntime.jsx("span",{children:t??"+"})]},i));return jsxRuntime.jsx("span",{className:n,children:o})}var Nt=e=>{let[t,n]=ae__default.default.useState(e.initialItem??""),o=r=>{e.onMenuItemClicked(r),n(r);},i=ae__default.default.Children.map(e.children,r=>r.type===zn?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(Yt,{...r.props,activeItem:t,onInternClick:o})}):r.type===Fn?jsxRuntime.jsx(Ri,{...r.props,activeItem:t,onInternClick:o}):r.type===Xn?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx($n,{...r.props,activeItem:t,onInternClick:o})}):r);return jsxRuntime.jsx("aside",{className:"menu",role:"menu",children:i})},Fn=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]}),Ri=e=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e.label}),jsxRuntime.jsx("ul",{className:"menu-list",children:ae__default.default.Children.map(e.children,t=>t.type.name=="MenuItem"?jsxRuntime.jsx(Yt,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t.type.name=="ExpandableMenuItem"?jsxRuntime.jsx($n,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t)})]}),Xn=e=>jsxRuntime.jsx("div",{children:e.children}),$n=e=>{let[t,n]=ae__default.default.useState(e.startExpanded??!1),o=r=>{e.onClick&&e.onClick(e.label,r),n(!t);},i=ae__default.default.Children.map(e.children,r=>r.type.name=="MenuItem"?jsxRuntime.jsx(Yt,{...r.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):r);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:o,children:[jsxRuntime.jsx(Se,{color:"i",size:"s",icon:t?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e.label]})]}),t&&jsxRuntime.jsx("ul",{children:i})]})},zn=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]}),Yt=e=>{let t=e.name??ae__default.default.Children.toArray(e.children).filter(n=>typeof n=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:()=>e.onInternClick(t),id:t,children:jsxRuntime.jsx("span",{className:e.activeItem==t?"menu-list-item is-active":"menu-list-item",children:e.children})})};Nt.Item=zn;Nt.ItemGroup=Fn;Nt.ExpandableItem=Xn;var le=({children:e,title:t,size:n,color:o})=>{let i="message",r=freeSolidSvgIcons.faInfo;switch(o){case"s":i+=" is-success",r=freeSolidSvgIcons.faCheck;break;case"d":i+=" is-danger",r=freeSolidSvgIcons.faExclamationTriangle;break;case"w":i+=" is-warning",r=freeSolidSvgIcons.faExclamation;break;case"p":i+=" is-primary",r=freeSolidSvgIcons.faInfo;break;case"l":i+=" is-link",r=freeSolidSvgIcons.faInfo;break;default:i+=" is-info",r=freeSolidSvgIcons.faInfo;break}return n==="s"?i+=" is-small":n==="l"?i+=" is-medium":n==="xl"&&(i+=" is-large"),jsxRuntime.jsxs("article",{className:i,children:[t&&jsxRuntime.jsx(Oi,{title:t,icon:r}),jsxRuntime.jsx(Li,{hasHeader:!!t,icon:r,size:n,children:e})]})},Oi=({title:e,icon:t})=>jsxRuntime.jsx("div",{className:"message-header","data-testid":"message-header",children:jsxRuntime.jsxs("p",{children:[jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t})}),e]})}),Li=({children:e,hasHeader:t,icon:n,size:o})=>{let i="icon";return o==="s"?i+=" mr-1 is-small":o==="l"||o==="xl"?i+=" is-large":i+=" mr-1 is-medium",jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t?e:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:i,style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n})}),e]})})};le.Primary=e=>jsxRuntime.jsx(le,{...e,color:"p"});le.Success=e=>jsxRuntime.jsx(le,{...e,color:"s"});le.Danger=e=>jsxRuntime.jsx(le,{...e,color:"d"});le.Warning=e=>jsxRuntime.jsx(le,{...e,color:"w"});le.Info=e=>jsxRuntime.jsx(le,{...e,color:"i"});le.Link=e=>jsxRuntime.jsx(le,{...e,color:"l"});var W=(e,t=!1,...n)=>{(t||process.env.NODE_ENV=="development")&&console.warn(`[loon-react-bulma] ${e}`,n);};var At=e=>{let t=r=>e.onDismiss(r);ae__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),()=>document.documentElement.classList.remove("is-clipped")),[]);let n=e.size??"m",o="800px";n==="s"?o="600px":n==="m"?o="800px":n==="l"?o="1000px":n==="xl"?o="1200px":o=n;let i=ae__default.default.Children.map(e.children,r=>r?r.type===Wn?jsxRuntime.jsx(Hi,{...r.props}):r.type===_n?jsxRuntime.jsx(jt,{...r.props}):r.type===Kn?jsxRuntime.jsx(Fi,{...r.props}):jsxRuntime.jsx(jt,{children:r}):null)?.sort((r,a)=>r.type.name==="InternHead"?-1:r.type.name==="InternBody"&&a.type.name==="InternHead"?1:r.type.name==="InternBody"&&a.type.name==="InternFoot"?-1:r.type.name==="InternFoot"?1:0);return !i||i?.length===0?W("<Modal> A Modal needs at least one child"):i.filter(r=>r.type===jt).length>1&&W("<Modal> A modal should have only one body. Wrap multiple children into a <Modal.Body>-tag."),jsxRuntime.jsx(ae__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content bulma-box modal-container","data-testid":"modal-content",style:{width:o},children:i}),jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:r=>t(r)})]})})},Wn=e=>jsxRuntime.jsx("div",{children:e.children}),Hi=e=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e.children}),_n=e=>jsxRuntime.jsx("div",{children:e.children}),jt=e=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e.children}),Kn=e=>jsxRuntime.jsx("div",{children:e.children}),Fi=e=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e.children});At.Head=Wn;At.Body=_n;At.Foot=Kn;var me=({children:e,onDismiss:t,autoDismissAfter:n,color:o})=>{let i=n&&n>0?setTimeout(()=>a(null),n):null,[r]=ae__default.default.useState(i);ae__default.default.useEffect(()=>()=>r?clearTimeout(r):void 0,[r]);let a=l=>{r&&clearTimeout(r),t(l);},s="notification is-light",c=freeSolidSvgIcons.faInfo;switch(o){case"s":s+=" is-success",c=freeSolidSvgIcons.faCheck;break;case"d":s+=" is-danger",c=freeSolidSvgIcons.faExclamationTriangle;break;case"w":s+=" is-warning",c=freeSolidSvgIcons.faExclamation;break;case"p":s+=" is-primary",c=freeSolidSvgIcons.faInfo;break;case"l":s+=" is-link",c=freeSolidSvgIcons.faInfo;break;default:s+=" is-info",c=freeSolidSvgIcons.faInfo;break}return jsxRuntime.jsxs("article",{className:s,children:[jsxRuntime.jsx(_i,{color:o??"i",onDismiss:l=>a(l)}),jsxRuntime.jsx(Ki,{icon:c,children:e})]})};function _i({color:e,onDismiss:t}){let[n,o]=ae__default.default.useState(!1),i="icon";return e==="s"?i+=n?" has-text-success-dark":" has-text-success":e==="d"?i+=n?" has-text-danger-dark":" has-text-danger":e==="w"?i+=n?" has-text-warning-dark":" has-text-warning":e==="p"?i+=n?" has-text-primary-dark":" has-text-primary":e==="l"?i+=n?" has-text-link-dark":" has-text-link":i+=n?" has-text-info-dark":" has-text-info",jsxRuntime.jsx("button",{className:"notification-close",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:r=>t(r),children:jsxRuntime.jsx("span",{className:i,role:"close-icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimesCircle,size:"lg"})})})}function Ki({children:e,icon:t}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t})}),e]})}me.Primary=e=>jsxRuntime.jsx(me,{...e,color:"p"});me.Danger=e=>jsxRuntime.jsx(me,{...e,color:"d"});me.Warning=e=>jsxRuntime.jsx(me,{...e,color:"w"});me.Success=e=>jsxRuntime.jsx(me,{...e,color:"s"});me.Link=e=>jsxRuntime.jsx(me,{...e,color:"l"});me.Info=e=>jsxRuntime.jsx(me,{...e,color:"i"});function Gi({color:e,size:t,extension:n,max:o,value:i}){let r="progress";return t==="s"?r+=" is-small":t==="l"?r+=" is-medium":t==="xl"?r+=" is-large":r+=" is-normal",e==="s"?r+=" is-success":e==="p"?r+=" is-primary":e==="d"?r+=" is-danger":e==="l"?r+=" is-link":e==="w"?r+=" is-warning":r+=" is-info",jsxRuntime.jsx("progress",{className:r,value:i,max:o||100,title:`${i??""}${n??""}`,children:i})}function Zi(e){let t="table";e.bordered&&(t+=" is-bordered"),e.narrow&&(t+=" is-narrow"),e.striped&&(t+=" is-striped"),e.hoverable&&(t+=" is-hoverable"),e.fullwidth&&(t+=" is-fullwidth");let n=e.rowIdentifier,o=(r,a)=>{e.onRowSelected&&e.onRowSelected(r,a);},i=ji(e.columns,e.data[0]);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:t,children:[jsxRuntime.jsx(qi,{titles:i}),jsxRuntime.jsx(Yi,{columns:i,data:e.data,rowIdentifier:n,onRowSelected:(r,a)=>o(r,a)}),e.hasFooter&&jsxRuntime.jsx(Qi,{titles:i})]})})}function Yi(e){return jsxRuntime.jsx("tbody",{children:e.data.map((t,n)=>jsxRuntime.jsx("tr",{onClick:o=>e.onRowSelected(t,o.currentTarget),children:e.columns.map((o,i)=>{let r=typeof o.value=="string"?t[o.value]:o.value(t);return jsxRuntime.jsx("td",{children:r},i)})},typeof e.rowIdentifier=="function"?e.rowIdentifier(t):e.rowIdentifier?t[e.rowIdentifier]:n))})}function qi(e){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function Qi(e){return jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function ji(e,t){return e&&typeof e[0]=="string"?e.map(o=>({header:o,value:o})):e?e.map(o=>(!o.header&&o.header!=""&&typeof o.value=="string"&&(o.header=o.value),o)):Object.keys(t).map(n=>({header:n,value:n}))}var tn=e=>{let[t,n]=ae__default.default.useState(e.activeStepIndex??0),o=a=>{e.onChangeStep&&e.onChangeStep(a),n(a);};ae__default.default.useEffect(()=>{n(e.activeStepIndex??e.activeStep??0);},[e.activeStepIndex]);let i="";e.size==="s"?i="is-small":e.size==="l"?i="is-medium":e.size==="xl"&&(i="is-large");let r=`steps is-animated ${i} ${e.className??""}`.trim();return jsxRuntime.jsx("div",{className:r,children:ae__default.default.Children.map(e.children,(a,s)=>{if(a.type&&a.type==tn.Item){let c=!0;return e.freeStepChoice==="allowed"||e.freeStepChoice==="down"&&s<t||e.freeStepChoice==="up"&&s>t?c=!1:c=s!=t+1&&s!=t-1,jsxRuntime.jsx(tr,{...a.props,activeStep:t,stepKey:s,disabled:c,onClick:o},a.props.title)}else return a})})};tn.Item=e=>jsxRuntime.jsx(ae__default.default.Fragment,{children:e.title});function tr(e){let t=()=>{e.disabled||e.stepKey==e.activeStep||(e.onClick(e.stepKey),o("active"));},[n,o]=ae__default.default.useState(e.status??"pending");ae__default.default.useEffect(function(){let s="pending";e.status==="error"?s="error":e.status==="completed"||e.activeStep>e.stepKey?s="completed":e.stepKey===e.activeStep&&(s="active"),o(s);},[e.status,e.stepKey,e.activeStep]);let i="step-item";e.activeStep===e.stepKey?i+=" is-active is-info":n==="error"?i+=" is-error is-danger":n==="completed"?i+=" is-completed is-success":i+=" is-pending";let r;return e.marker?typeof e.marker=="function"?r=e.marker(n):r=e.marker:r=jsxRuntime.jsx(ae__default.default.Fragment,{children:e.stepKey+1}),jsxRuntime.jsxs("div",{className:i,onClick:t,title:e.tooltip,children:[jsxRuntime.jsx("div",{className:"step-marker",children:r}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:e.title}),e.details&&jsxRuntime.jsx("p",{children:e.details})]})]})}var Yn=e=>{let[t,n]=ae__default.default.useState(e.activeTab??e.initialTab),o=m=>{n(m),e.onTabChange(m);};ae__default.default.useEffect(()=>{e.activeTab!==void 0&&n(e.activeTab);},[e.activeTab]);let{size:i,alignment:r,fullwidth:a,styling:s}=e,c="tabs";i==="s"?c+=" is-small":i==="l"?c+=" is-medium":i==="xl"&&(c+=" is-large"),s==="boxed"?c+=" is-boxed":s==="toggle"&&(c+=" is-toggle"),r==="c"?c+=" is-centered":r==="r"&&(c+=" is-right"),c+=a?" is-fullwidth":"";let l=ae__default.default.Children.map(e.children,(m,d)=>jsxRuntime.jsx(nr,{isActive:t?t==m.props.tabId:d==0,onClick:()=>o(m.props.tabId),children:m}));return jsxRuntime.jsx("div",{className:c,children:jsxRuntime.jsx("ul",{children:l})})};function nr({children:e,isActive:t,onClick:n}){return jsxRuntime.jsx("li",{role:"tab",className:t?"is-active":void 0,onClick:n,children:e})}function or({children:e,tabId:t,tooltip:n}){let o=ae__default.default.Children.map(e,i=>!i||i===""?null:i);return jsxRuntime.jsx("a",{title:n||void 0,id:t?.toString()||void 0,children:o})}Yn.Item=or;function nn({children:e,color:t="l",size:n,light:o,rounded:i,tooltip:r,onDismiss:a}){let s=ae__default.default.useMemo(()=>{let l="tag";return l+=o?" is-light":"",l+=i?" is-rounded":"",t==="p"?l+=" is-primary":t==="l"?l+=" is-link":t==="i"?l+=" is-info":t==="d"?l+=" is-danger":t==="w"?l+=" is-warning":t==="s"?l+=" is-success":t==="dark"?l+=" is-dark":t==="light"?l+=" is-light":l+=` ${t}`,n==="m"?l+=" is-medium":n==="l"&&(l+=" is-large"),l},[o,i,t,n]),c=l=>a&&a(l);return jsxRuntime.jsxs("span",{className:s,title:r,children:[e,a&&jsxRuntime.jsx("button",{className:"delete",onClick:l=>c(l)})]})}function rr({children:e,merged:t,size:n,alignment:o,className:i}){let r="tags";return n==="m"?r+=" are-medium":n==="l"&&(r+=" are-large"),o==="r"?r+=" is-right":o==="c"&&(r+=" is-centered"),t&&(r+=" has-addons"),r=`${r} ${i}`.trim(),jsxRuntime.jsx("div",{className:r,children:e})}var on=({alignment:e,children:t,className:n})=>{let o="is-left";return e==="r"?o="is-rtl":e==="c"&&(o="is-centered"),n=`timeline ${o} ${n}`,jsxRuntime.jsx("div",{className:n,children:t})};on.Point=({children:e,color:t,size:n,tooltip:o,onClick:i})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:i,children:jsxRuntime.jsx(nn,{color:t??"l",size:n,tooltip:o,light:!0,rounded:!0,children:e})});on.Item=({marker:e,heading:t,children:n,tooltip:o,onClick:i})=>{let r="timeline-marker";return e?.color==="p"?r+=" is-primary":e?.color==="l"?r+=" is-link":e?.color==="i"?r+=" is-info":e?.color==="s"?r+=" is-success":e?.color==="d"?r+=" is-danger":e?.color==="w"&&(r+=" is-warning"),e?.icon&&(r+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:o,onClick:()=>i&&i(t),children:[jsxRuntime.jsx("div",{className:r,children:e?.icon&&jsxRuntime.jsx(Se,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};function jn(e){let t=e.bulmaSize??3,n=typeof e.headingSize=="string"?+e.headingSize.replace("h",""):e.headingSize,o=e.headingSize?n:t,i=`title is-${t}`,r=e.children??e.txt;if(!r)throw Error('Title moet children OF txt="..." hebben');switch(o){case 1:return jsxRuntime.jsx("h1",{className:i,children:r});case 2:return jsxRuntime.jsx("h2",{className:i,children:r});case 4:return jsxRuntime.jsx("h4",{className:i,children:r});case 5:return jsxRuntime.jsx("h5",{className:i,children:r});case 6:return jsxRuntime.jsx("h6",{className:i,children:r});default:return jsxRuntime.jsx("h3",{className:i,children:r})}}function eo(e){let t=e.bulmaSize??5,n=typeof e.headingSize=="string"?+e.headingSize.replace("h",""):e.headingSize,o=e.headingSize?n:t,i=`subtitle is-${t}`,r=e.children??e.txt;if(!r)throw Error('Subtitle moet children OF txt="..." hebben.');switch(o){case 1:return jsxRuntime.jsx("h1",{className:i,children:r});case 2:return jsxRuntime.jsx("h2",{className:i,children:r});case 3:return jsxRuntime.jsx("h3",{className:i,children:r});case 4:return jsxRuntime.jsx("h4",{className:i,children:r});case 6:return jsxRuntime.jsx("h6",{className:i,children:r});default:return jsxRuntime.jsx("h3",{className:i,children:r})}}function sr({bulmaSize:e,headingSize:t,titleTxt:n,subtitleTxt:o,className:i}){let r=parseInt(`${e??3}`),s=(typeof t=="string"?+t.replace("h",""):t)||r;return jsxRuntime.jsxs("div",{className:i,children:[jsxRuntime.jsx(jn,{txt:n,bulmaSize:r,headingSize:s}),jsxRuntime.jsx(eo,{txt:o,bulmaSize:r+2,headingSize:s+1})]})}var rn=e=>{let{size:t,alignment:n}=e,[o,i]=ae__default.default.useState(e.value??e.initialValue);ae__default.default.useEffect(()=>{e.value!=null&&o!=e.value&&i(e.value);},[e.value]);let r=c=>{o!=c&&(e.onToggle&&e.onToggle(c),i(c));},a=ae__default.default.Children.map(e.children,(c,l)=>{let m=c.props?.identifier??ae__default.default.Children.map(c.props.children,d=>typeof d=="string"?d:typeof d.type=="string"?d.type:d)?.join("")??""+l;return c.type===to?jsxRuntime.jsx(cr,{...c.props,toggled:o==m,identifier:m,onColor:c.props.onColor,offColor:c.props.onColor,light:e.light??!0,outlined:e.outlined??!1,rounded:e.rounded,onToggleClick:r}):c.type===no?jsxRuntime.jsx(mr,{...c.props,identifier:m,outlined:e.outlined??!1,light:e.light??!0,rounded:e.rounded??!0,offColor:c.props.offColor??e.offColor,onColor:c.props.onColor??e.onColor}):c}),s="buttons has-addons";return t==="m"?s+=" are-normal":t==="l"?s+=" are-medium":t==="xl"?s+=" are-large":s+=" are-small",n==="c"?s+=" is-centered":n==="r"?s+=" is-right":s+=" is-left",e.className&&(s+=" "+e.className),jsxRuntime.jsx("div",{className:s,children:a})},to=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function cr(e){let t=e.toggled?e.onColor??"s":e.offColor??"d",n="";t==="i"?n=" is-info":t==="p"?n=" is-primary":t==="d"?n=" is-danger":t==="s"?n=" is-success":t==="w"&&(n=" is-warning");let o=`button ${n}`;return e.outlined&&(o+=" is-outlined"),e.light&&(o+=" is-light"),e.rounded&&(o+=" is-rounded"),e.toggled&&(o+=" is-toggled"),jsxRuntime.jsx("button",{disabled:e.disabled,title:e.tooltip,className:o,onClick:()=>e.onToggleClick(e.identifier),children:e.children})}var no=e=>jsxRuntime.jsx("button",{disabled:e.disabled});function mr(e){let[t,n]=ae__default.default.useState(e.toggled);ae__default.default.useEffect(()=>{e.toggled!=null&&n(e.toggled);},[e.toggled]);let o=t?e.onColor??"s":e.offColor??"d",i="button";o==="i"?i+=" is-info":o==="p"?i+=" is-primary":o==="d"?i+=" is-danger":o==="s"?i+=" is-success":o==="w"&&(i+=" is-warning"),e.rounded&&(i+=" is-rounded"),e.light&&(i+=" is-light"),e.outlined&&(i+=" is-outlined"),t&&(i+=" is-toggled");let r=()=>{e.onToggle&&e.onToggle(!t,e.identifier),n(!t);};return jsxRuntime.jsx("button",{disabled:e.disabled,title:e.tooltip,id:e.identifier,className:i,onClick:()=>r(),children:e.children})}rn.Item=to;rn.OnOffItem=no;var an=({children:e,hasAddons:t,alignment:n,className:o})=>{let i="field";return i+=t?" has-addons":" is-grouped",n==="c"?i+=" is-grouped-centered":n==="r"?i+=" is-grouped-right":i+=" is-grouped-left",o&&(i+=" "+o),jsxRuntime.jsx("div",{className:i,children:ae__default.default.Children.map(e,r=>jsxRuntime.jsx("div",{className:"control",children:r}))})};var Z=({color:e="p",size:t,rounded:n,loading:o,disabled:i,type:r,styling:a,onClick:s,children:c,tooltip:l,id:m})=>{let d=ae__default.default.useMemo(()=>{let g="button";return a==="static"||a==="s"?g+=" is-static":(e==="p"?g+=" is-primary":e==="i"?g+=" is-info":e==="l"?g+=" is-link":e==="d"?g+=" is-danger":e==="s"?g+=" is-success":e==="w"?g+=" is-warning":g+=` ${e}`,a==="light"||a==="l"?g+=" is-light":a==="outlined"||a==="o"?g+=" is-outlined":a==="inverted"||a==="i"?g+=" is-inverted":(a==="light-outlined"||a==="lo")&&(g+=" is-light is-outlined")),t==="s"?g+=" is-small":t==="l"?g+=" is-medium":t==="xl"&&(g+=" is-large"),n&&(g+=" is-rounded"),o&&(g+=" is-loading"),g},[e,a,t,n,o]),u=g=>{o||i||a==="static"||s&&s(g);},p=ae__default.default.Children.map(c,g=>typeof g=="string"?jsxRuntime.jsx("span",{children:g}):g);return jsxRuntime.jsx("button",{className:d,type:r??"button",disabled:i,onClick:g=>u(g),title:l,id:m,children:p})};Z.Static=e=>jsxRuntime.jsx(Z,{...e,styling:"static",children:e.children});Z.Primary=e=>jsxRuntime.jsx(Z,{...e,color:"p",styling:e.styling??"default",children:e.children});Z.Success=e=>jsxRuntime.jsx(Z,{...e,color:"s",styling:e.styling??"default",children:e.children});Z.Danger=e=>jsxRuntime.jsx(Z,{...e,color:"d",styling:e.styling??"default",children:e.children});Z.Warning=e=>jsxRuntime.jsx(Z,{...e,color:"w",styling:e.styling??"default",children:e.children});Z.Info=e=>jsxRuntime.jsx(Z,{...e,color:"i",styling:e.styling??"default",children:e.children});Z.Link=e=>jsxRuntime.jsx(Z,{...e,color:"l",styling:e.styling??"default",children:e.children});var dr=({children:e,onClick:t,tooltip:n,id:o})=>jsxRuntime.jsx("button",{className:"link-button",onClick:i=>t(i),title:n,id:o,children:e}),pr=({href:e,target:t,tooltip:n,id:o,rel:i,children:r})=>jsxRuntime.jsx("a",{className:"link-button",href:e,target:t??"_blank",title:n,id:o,rel:i??"noopener",children:r});var w=class{IGNORE_SIGN="^";_date;_locale;formatOptions={};constructor(t,n,o={}){this._date=new Date(t),this._locale=n,this.formatOptions={...w.defaultFormatOptions,timeZone:w.defaultTimezone,...o},Object.freeze(this);}toString(t=this.formatOptions){return this.intlDtf(t)}valueOf(){return this._date.valueOf()}intlDtf(t=this.formatOptions){return new Intl.DateTimeFormat(this._locale,{...t,timeZone:this.formatOptions.timeZone}).format(this._date)}get info(){return {year:{isLeapYear:this.isLeapYear,days:this.daysInYear,hours:this.daysInYear*24,minutes:this.daysInYear*24*60,seconds:this.daysInYear*24*60*60,milliseconds:this.daysInYear*24*60*60*1e3},month:{days:this.daysInMonth,hours:this.daysInMonth*24,minutes:this.daysInMonth*24*60,seconds:this.daysInMonth*24*60*60,milliseconds:this.daysInMonth*24*60*60*1e3}}}get isLeapYear(){let t=this._date.getFullYear();return t%4===0&&t%100!==0||t%400===0}get isAM(){return this._date.getHours()<12}get isPM(){return !this.isAM}get isDST(){let t=new Date(this._date.getFullYear(),0,1).getTimezoneOffset(),n=new Date(this._date.getFullYear(),6,1).getTimezoneOffset();return Math.max(t,n)!==this._date.getTimezoneOffset()}get isToday(){let t=new Date;return this._date.getDate()===t.getDate()&&this._date.getMonth()===t.getMonth()&&this._date.getFullYear()===t.getFullYear()}get JSDate(){return new Date(this._date)}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get timezoneLong(){return this.intlDtf({timeZoneName:"long"}).replaceAll(/[^A-Z\s-]/gi,"").replace("--","").trim()}get timezoneShort(){return this.intlDtf({timeZoneName:"short"}).replaceAll(/[^A-Z]/g,"")}get timezoneOffsetShortStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("+");return t.substring(n)}get timezoneOffsetLongStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("GMT");return t.substring(n)}get timezoneOffset(){let t=this.intlDtf({timeZoneName:"shortOffset"}),n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return this.intlDtf({hour:"2-digit",minute:"2-digit"})}get timeHMS(){return this.intlDtf({hour:"2-digit",minute:"2-digit",second:"2-digit"})}get monthLong(){return this.intlDtf({month:"long"})}get monthShort(){return this.intlDtf({month:"short"})}get dayLong(){return this.intlDtf({weekday:"long"})}get dayShort(){return this.intlDtf({weekday:"short"})}get dateLong(){return `${this.dayLong} ${this.day} ${this.monthLong} ${this.year}`}get dateShort(){return this.intlDtf({day:"2-digit",month:"2-digit",year:"numeric"})}get yr(){return this.year}get year(){return this._date.getFullYear()}get qr(){return this.quarter}get quarter(){return Math.floor(this._date.getMonth()/3+1)}get m(){return this.month}get month(){return this._date.getMonth()+1}get d(){return this.day}get day(){return this._date.getDate()}get weekDay(){return this._date.getDay()===0?7:this._date.getDay()}get hr(){return this.hour}get hour(){return this._date.getHours()}get min(){return this.minute}get minute(){return this._date.getMinutes()}get sec(){return this.second}get second(){return this._date.getSeconds()}get ms(){return this.millisecond}get millisecond(){return this._date.getMilliseconds()}get weekNr(){let t=new Date(Date.UTC(this._date.getFullYear(),this._date.getMonth(),this._date.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-n.getTime())/864e5+1)/7)}get millis(){return this.valueOf()}get daysInMonth(){return new Date(this._date.getFullYear(),this._date.getMonth()+1,0).getDate()}get daysInYear(){return this.isLeapYear?366:365}get yearToDate(){let n=[0,31,59,90,120,151,181,212,243,273,304,334][this._date.getMonth()]+this._date.getDate();return this.isLeapYear&&this.month>2?n+1:n}set(t,n=this._locale){let o={year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,millisecond:this.millisecond};return w.from({...o,...t},n)}startOf(t){switch(t){case"year":return w.from({year:this.year,month:0,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return w.fromDate(new Date(this.year,n*3,1),this._locale).set({hour:0,minute:0,second:0,millisecond:0},this._locale)}case"month":return w.from({year:this.year,month:this.month,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"week":{let n=new Date(this.JSDate),o=n.getDate()-n.getDay()+(n.getDay()===0?-6:1);return w.fromDate(new Date(n.setDate(o)),this._locale).set({hour:0,minute:0,second:0,millisecond:0})}case"day":return w.from({year:this.year,month:this.month,day:this.day,hour:0,minute:0,second:0,millisecond:0},this._locale);case"hour":return w.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:0,second:0,millisecond:0},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.startOf()`)}}endOf(t){switch(t){case"year":return w.from({year:this.year,month:12,day:31,hour:23,minute:59,second:59,millisecond:999},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return w.fromDate(new Date(this.year,n*3+3,0),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"month":return w.from({year:this.year,month:this.month,day:this.daysInMonth,hour:23,minute:59,second:59,millisecond:999},this._locale);case"week":{let n=new Date(this.JSDate),o=this.JSDate.getDate()-(n.getDay()-1)+6;return w.fromDate(new Date(n.setDate(o)),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"day":return w.from({year:this.year,month:this.month,day:this.day,hour:23,minute:59,second:59,millisecond:999},this._locale);case"hour":return w.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:59,second:59,millisecond:999},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.endOf()`)}}plus({years:t,months:n,weeks:o,days:i,hours:r,minutes:a,seconds:s,milliseconds:c}){let l=new Date(this.JSDate);return t&&(l=new Date(l.setFullYear(l.getFullYear()+t))),n&&(l=new Date(l.setMonth(l.getMonth()+n))),o&&(l=new Date(l.setDate(l.getDate()+o*7))),i&&(l=new Date(l.setDate(l.getDate()+i))),r&&(l=new Date(l.setHours(l.getHours()+r))),a&&(l=new Date(l.setMinutes(l.getMinutes()+a))),s&&(l=new Date(l.setSeconds(l.getSeconds()+s))),c&&(l=new Date(l.setMilliseconds(l.getMilliseconds()+c))),w.fromDate(l,this._locale)}isBetween(t,n){let o=(typeof n=="boolean"?n:n?.[0])??!1,i=(typeof n=="boolean"?n:n?.[1])??!1,[r,a]=t.sort((s,c)=>s.valueOf()-c.valueOf());if(r.valueOf()===a.valueOf())throw new Error("dates must be different");return o&&i?r<=this._date&&this._date<=a:o&&!i?r<=this._date&&this._date<a:!o&&i?r<this._date&&this._date<=a:r<this._date&&this._date<a}isBefore(t,n=!1){return n?this._date>=t:this._date>t}isAfter(t,n=!1){return n?this._date<=t:this._date<t}hasSame(t,n="millisecond"){let o=new Date(t.valueOf());switch(n){case"year":return this.yr===o.getFullYear();case"month":return this.yr===o.getFullYear()&&this.m-1===o.getMonth();case"day":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate();case"hour":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours();case"minute":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes();case"second":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes()&&this.sec===o.getSeconds();case"millisecond":return this.valueOf()===o.valueOf();default:throw new Error(`invalid period '${n}' for hasSame()`)}}equals(t){if(t instanceof w)return this._date.valueOf()===t.valueOf();if(t instanceof Date)return this._date.valueOf()===t.valueOf();if(typeof t=="number")return this._date.valueOf()===t;throw new Error("invalid type")}clone(){return w.fromMillis(this.valueOf(),this.locale)}static now(t=w.defaultLocale,n={}){return new w(new Date,t,n)}static epoch(t=w.defaultLocale,n={}){return new w(new Date(0),t,n)}static fromDate(t,n=w.defaultLocale,o={}){return new w(t,n,o)}static from(t,n=w.defaultLocale,o={}){let i=new Date,{year:r,month:a,day:s,hour:c,minute:l,second:m,millisecond:d}={year:t.year??i.getFullYear(),month:t.month!=null?t.month==0?1:t.month:i.getMonth()+1,day:t.day??i.getDate(),hour:t.hour??i.getHours(),minute:t.minute??i.getMinutes(),second:t.second??i.getSeconds(),millisecond:t.millisecond??i.getMilliseconds()};if(a>12||a<1)throw new RangeError(`month value should be between 1 and 12, got ${a}`);if(c>23||c<0)throw new RangeError(`hour value should be between 0 and 23, got ${c}`);if(l>59||l<0)throw new RangeError(`minute value should be between 0 and 59, got ${l}`);if(m>59||m<0)throw new RangeError(`second value should be between 0 and 59, got ${m}`);if(d>999||d<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${d}`);let u=new Date(r,a,0),p=u.getDate();if(s>p||s<1)throw new RangeError(`day value should be between 1 and ${p} for ${u.toLocaleString(n,{month:"short"})} ${r}, got ${s}`);return new w(new Date(r,a-1,s,c,l,m,d),n,o)}static fromISO(t,n=w.defaultLocale,o={}){let i=new Date(Date.parse(t));return new w(i,n,o)}static fromUTC(t,n=w.defaultLocale,o={}){let i=new Date(Date.parse(t));return new w(i,n,o)}static fromMillis(t,n=w.defaultLocale,o={}){let i=typeof t=="string"?+t:t;if(isNaN(i))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(i>w.MAX_DATE_NUM||i<-w.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new w(new Date(i),n,o)}toFormat(t){if(typeof t!="string")return this.intlDtf(t);let n=this.formatBuilder(t);return n.includes("[y4]")&&(n=n.replaceAll("[y4]",this.yr+"")),n.includes("[y2]")&&(n=n.replaceAll("[y2]",this.yr.toString().substring(2))),n.includes("[m4]")&&(n=n.replaceAll("[m4]",this.monthLong)),n.includes("[m3]")&&(n=n.replaceAll("[m3]",this.monthShort)),n.includes("[m2]")&&(n=n.replaceAll("[m2]",this.intlDtf({month:"2-digit"}))),n.includes("[m1]")&&(n=n.replaceAll("[m1]",this.intlDtf({month:"numeric"}))),n.includes("[d4]")&&(n=n.replaceAll("[d4]",this.dayLong)),n.includes("[d3]")&&(n=n.replaceAll("[d3]",this.dayShort)),n.includes("[d2]")&&(n=n.replaceAll("[d2]",this.intlDtf({day:"2-digit"}))),n.includes("[d1]")&&(n=n.replaceAll("[d1]",this.day+"")),n.includes("[h2]")&&(n=n.replaceAll("[h2]",this.hr>12?`${this.hr-12<10?"0":""}${this.hr-12}`:`${this.hr<10?"0":""}${this.hr}`)),n.includes("[h1]")&&(n=n.replaceAll("[h1]",this.hr>12?(this.hr-12).toString():this.hr.toString())),n.includes("[H2]")&&(n=n.replaceAll("[H2]",`${this.hr<10?"0":""}${this.hr}`)),n.includes("[H1]")&&(n=n.replaceAll("[H1]",this.hr.toString())),n.includes("[M2]")&&(n=n.replaceAll("[M2]",`${this.minute<10?"0":""}${this.minute}`)),n.includes("[M1]")&&(n=n.replaceAll("[M1]",this.minute+"")),n.includes("[s2]")&&(n=n.replaceAll("[s2]",`${this.second<10?"0":""}${this.second}`)),n.includes("[s1]")&&(n=n.replaceAll("[s1]",this.second+"")),n.includes("[S3]")&&(n=n.replaceAll("[S3]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S2]")&&(n=n.replaceAll("[S2]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S1]")&&(n=n.replaceAll("[S1]",this.millisecond+"")),n.includes("[W2]")&&(n=n.replaceAll("[W2]",this.weekNr+"")),n.includes("[t2]")&&(n=n.replaceAll("[t2]",this.isAM?"AM":"PM")),n.includes("[t1]")&&(n=n.replaceAll("[t1]",this.isAM?"A":"P")),n.includes("[Z2]")&&(n=n.replaceAll("[Z2]",this.timezoneLong)),n.includes("[Z1]")&&(n=n.replaceAll("[Z1]",this.timezoneShort)),n.includes("[O3]")&&(n=n.replaceAll("[O3]",this.timezoneOffsetLongStr)),n.includes("[O2]")&&(n=n.replaceAll("[O2]",this.timezoneOffsetShortStr.replace("GMT",""))),n.includes("[O1]")&&(n=n.replaceAll("[O1]",this.timezoneOffset>0?`+${this.timezoneOffset}`:this.timezoneOffset<0?`${this.timezoneOffset}`:"")),n.replaceAll(this.IGNORE_SIGN,"").trim()}formatBuilder(t){let n="",o="",i=0,r=!1,a="ymdhHMsSWtZO";return (t+" ").split("").forEach(s=>{o===""?i=1:!r&&s===o&&a.includes(s)?i++:!r&&s===o&&!a.includes(s)?(i++,n+=o):r?r&&(n+=o,i=1):(n+=a.includes(o)?`[${o}${i}]`:o,i=1),s===this.IGNORE_SIGN&&(r=!r),o=s;}),n}},R=w;Ee(R,"defaultLocale",Intl.DateTimeFormat().resolvedOptions().locale),Ee(R,"defaultTimezone",Intl.DateTimeFormat().resolvedOptions().timeZone),Ee(R,"MAX_DATE_NUM",864e13),Ee(R,"MAX_DATE",new Date(w.MAX_DATE_NUM)),Ee(R,"defaultFormatOptions",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});var ao=class{jsdate1;jsdate2;constructor(t,n=R.now()){this.jsdate1=t instanceof Date?R.fromDate(t):t.clone(),this.jsdate2=n instanceof Date?R.fromDate(n):n.clone();}get ms(){return Math.abs(this.jsdate2.valueOf()-this.jsdate1.valueOf())}get inMillis(){return this.ms}get inSeconds(){return Math.floor(this.ms/1e3)}get inMinutes(){return Math.floor(this.ms/(1e3*60))}get inHours(){return Math.floor(this.ms/(1e3*60*60))}get inDays(){return Math.floor(this.ms/(1e3*60*60*24))}get inWeeks(){return Math.floor(this.ms/(1e3*60*60*24*7))}get inAllTypes(){return {milliseconds:this.inMillis,seconds:this.inSeconds,minutes:this.inMinutes,hours:this.inHours,days:this.inDays,weeks:this.inWeeks}}differenceIn(t){let n=this.ms,o={},i=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([a,s])=>{if(t.includes(a)){let c=0;for(;n>=i;)c++,n-=i;Object.assign(o,{[a]:c});}i/=s;}),Object.assign(o,{rest:n}),o}};function Pm(e){e=e.replaceAll(/[^0-9a-zA-Z]/g,"");let t=e.match(/[0-9]{9}/g);if(t){let n=[];for(let o of t){let i=0,r=9;for(let a of o.split(""))i+=parseInt(a)*r,r=r!==2?r-1:-1;i%11===0&&n.push(o);}return [n.length>0,n]}return [!1,[]]}function be(e){let t=typeof e!="string",n;typeof e=="string"?n=fr(e):n=e;let[o=255,i=255,r=255]=n,s=[o/255,i/255,r/255].map(l=>l<.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)),c=.02126*s[0]+.7152*s[1]+.0722*s[2];return isNaN(c)?[0,0,0]:c>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function fr(e){let t="#";if(e.startsWith("#")||(e="#"+e),!/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)|(^#[0-9A-F]{4}$)/i.test(e))throw new Error("Invalid hex-color: "+e);e.length===4?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===5?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===7?t=e:e.length===9&&(t=e.substring(0,7));let o=parseInt(t.substring(1,3),16),i=parseInt(t.substring(3,5),16),r=parseInt(t.substring(5,7),16),a=parseInt(t.substring(7,9),16);return [o,i,r,a]}function Nm(e){try{e=e.toUpperCase().replaceAll(/[^A-Z0-9]/g,"");let t=e.match(new RegExp(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/));if(t){let n=gr.find(o=>o.code===t[1]);if(n){if(n.length!==e.length)throw new Error("invalid length");{let o=(t[3]+t[1]+t[2]).replace(/[A-Z]/g,r=>(r.charCodeAt(0)-55).toString()),i=+o.slice(0,2);for(let r=2;r<o.length;r+=7)i=parseInt(i+o.substring(r,r+7),10)%97;return [i===1,i===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,t.message]}}var gr=[{land:"Albanie",code:"AL",length:28,IBAN:"AL35202111090000000001234567"},{land:"Andorra",code:"AD",length:24,IBAN:"AD1400080001001234567890"},{land:"Azerbeidjan",code:"AZ",length:28,IBAN:"AZ96AZEJ00000000001234567890"},{land:"Bahrein",code:"BH",length:22,IBAN:"BH02CITI00001077181611"},{land:"Belgie",code:"BE",length:16,IBAN:"BE71096123456769"},{land:"Bosnie en Herzegovina",code:"BA",length:20,IBAN:"BA393385804800211234"},{land:"Brazilie",code:"BR",length:29,IBAN:"BR1500000000000010932840814P2"},{land:"Bulgarije",code:"BG",length:22,IBAN:"BG18RZBB91550123456789"},{land:"Costa Rica",code:"CR",length:22,IBAN:"CR23015108410026012345"},{land:"Croatie",code:"HR",length:21,IBAN:"HR1723600001101234565"},{land:"Cyprus",code:"CY",length:28,IBAN:"CY21002001950000357001234567"},{land:"Denemarken",code:"DK",length:18,IBAN:"DK9520000123456789"},{land:"Dominicaanse Republiek",code:"DO",length:28,IBAN:"DO22ACAU00000000000123456789"},{land:"Duitsland",code:"DE",length:22,IBAN:"DE91100000000123456789"},{land:"Egypte",code:"EG",length:29,IBAN:"EG800002000156789012345180002"},{land:"El Salvador",code:"SV",length:28,IBAN:"SV43ACAT00000000000000123123"},{land:"Estland",code:"EE",length:20,IBAN:"EE471000001020145685"},{land:"Faroe Eilanden",code:"FO",length:18,IBAN:"FO9264600123456789"},{land:"Finland",code:"FI",length:18,IBAN:"FI1410093000123458"},{land:"Frankrijk",code:"FR",length:27,IBAN:"FR7630006000011234567890189"},{land:"Georgie",code:"GE",length:22,IBAN:"GE60NB0000000123456789"},{land:"Gibraltar",code:"GI",length:23,IBAN:"GI04BARC000001234567890"},{land:"Griekenland",code:"GR",length:27,IBAN:"GR9608100010000001234567890"},{land:"Groenland",code:"GL",length:18,IBAN:"GL8964710123456789"},{land:"Guatemala",code:"GT",length:28,IBAN:"GT20AGRO00000000001234567890"},{land:"Hongarije",code:"HU",length:28,IBAN:"HU93116000060000000012345676"},{land:"Ierland",code:"IE",length:22,IBAN:"IE64IRCE92050112345678"},{land:"IJsland",code:"IS",length:26,IBAN:"IS030001121234561234567890"},{land:"Irak",code:"IQ",length:23,IBAN:"IQ20CBIQ861800101010500"},{land:"Israel",code:"IL",length:23,IBAN:"IL170108000000012612345"},{land:"Italie",code:"IT",length:27,IBAN:"IT60X0542811101000000123456"},{land:"Jordanie",code:"JO",length:30,IBAN:"JO71CBJO0000000000001234567890"},{land:"Kazakhstan",code:"KZ",length:20,IBAN:"KZ563190000012344567"},{land:"Kosovo",code:"XK",length:20,IBAN:"XK051212012345678906"},{land:"Kuweit",code:"KW",length:30,IBAN:"KW81CBKU0000000000001234560101"},{land:"Letland",code:"LV",length:21,IBAN:"LV97HABA0012345678910"},{land:"Libanon",code:"LB",length:28,IBAN:"LB92000700000000123123456123"},{land:"Liechtenstein",code:"LI",length:21,IBAN:"LI7408806123456789012"},{land:"Litouwen",code:"LT",length:20,IBAN:"LT601010012345678901"},{land:"Luxemburg",code:"LU",length:20,IBAN:"LU120010001234567891"},{land:"Britse Maagdeneilanden",code:"VG",length:24,IBAN:"VG21PACG0000000123456789"},{land:"Macedonie",code:"MK",length:19,IBAN:"MK07200002785123453"},{land:"Malta",code:"MT",length:31,IBAN:"MT31MALT01100000000000000000123"},{land:"Mauritanie",code:"MR",length:27,IBAN:"MR1300020001010000123456753"},{land:"Mauritius",code:"MU",length:30,IBAN:"MU43BOMM0101123456789101000MUR"},{land:"Moldavie",code:"MD",length:24,IBAN:"MD21EX000000000001234567"},{land:"Monaco",code:"MC",length:27,IBAN:"MC5810096180790123456789085"},{land:"Montenegro",code:"ME",length:22,IBAN:"ME25505000012345678951"},{land:"Nederland",code:"NL",length:18,IBAN:"NL02ABNA0123456789"},{land:"Noorwegen",code:"NO",length:15,IBAN:"NO8330001234567"},{land:"Oostenrijk",code:"AT",length:20,IBAN:"AT483200000012345864"},{land:"Pakistan",code:"PK",length:24,IBAN:"PK36SCBL0000001123456702"},{land:"Palestina",code:"PS",length:29,IBAN:"PS92PALS000000000400123456702"},{land:"Polen",code:"PL",length:28,IBAN:"PL10105000997603123456789123"},{land:"Portugal",code:"PT",length:25,IBAN:"PT50002700000001234567833"},{land:"Qatar",code:"QA",length:29,IBAN:"QA54QNBA000000000000693123456"},{land:"Roemenie",code:"RO",length:24,IBAN:"RO09BCYP0000001234567890"},{land:"Saint Lucia",code:"LC",length:32,IBAN:"LC14BOSL123456789012345678901234"},{land:"San Marino",code:"SM",length:27,IBAN:"SM76P0854009812123456789123"},{land:"Sao Tome en Principe",code:"ST",length:25,IBAN:"ST23000200000289355710148"},{land:"Saudi Arabie",code:"SA",length:24,IBAN:"SA4420000001234567891234"},{land:"Servie",code:"RS",length:22,IBAN:"RS35105008123123123173"},{land:"Seychellen",code:"SC",length:31,IBAN:"SC52BAHL01031234567890123456USD"},{land:"Slovenie",code:"SI",length:19,IBAN:"SI56192001234567892"},{land:"Slowakije",code:"SK",length:24,IBAN:"SK8975000000000012345671"},{land:"Spanje",code:"ES",length:24,IBAN:"ES7921000813610123456789"},{land:"Timor-Leste",code:"TL",length:23,IBAN:"TL380010012345678910106"},{land:"Tjechie",code:"CZ",length:24,IBAN:"CZ5508000000001234567899"},{land:"Tunesie",code:"TN",length:24,IBAN:"TN5904018104004942712345"},{land:"Turkije",code:"TR",length:26,IBAN:"TR320010009999901234567890"},{land:"Oekraine",code:"UA",length:29,IBAN:"UA903052992990004149123456789"},{land:"Verenigd Koninkrijk",code:"GB",length:22,IBAN:"GB98MIDL07009312345678"},{land:"Verenigde Arabische Emiraten",code:"AE",length:23,IBAN:"AE460090000000123456789"},{land:"Wit Rusland",code:"BY",length:28,IBAN:"BY86AKBB10100000002966000000"},{land:"Zweden",code:"SE",length:24,IBAN:"SE7280000810340009783242"},{land:"Zwitserland",code:"CH",length:21,IBAN:"CH5604835012345678009"}];function so([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function sn(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function lo([e,t,n]){let o=n/100,i=t*Math.min(o,1-o)/100,r=a=>{let s=(a+e/30)%12,c=o-i*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*c).toString(16).padStart(2,"0")};return `#${r(0)}${r(8)}${r(4)}`}function co(e){let[t,n,o]=sn(e);t/=255,n/=255,o/=255;let i=Math.max(t,n,o),r=Math.min(t,n,o),a=(i+r)/2,s=a,c=a;if(i!==r){let l=i-r;return s=c>.5?l/(2-i-r):l/(i+r),t===i?a=(n-o)/l+(n<o?6:0):n===i?a=(o-t)/l+2:o===i&&(a=(t-n)/l+4),[Math.round(360*(a/6)),Math.round(s*100),Math.round(c*100)]}else return [0,0,c]}var Re={transition:"background-color .2s ease-in-out, color .2s ease-in-out",fontSize:"0.7em",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"ellipsis"},Me={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},et={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},Be={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",color:"#888",paddingTop:"1em"},Dt={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em",color:"#888"},mo={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},Rt={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},uo={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function mt({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),a=ae__default.default.useCallback(be,[]),s=ae__default.default.useMemo(()=>{let l="p";e.evtColor?l=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(l=t.evtColor(e,i)),l==="p"?l="#0089b6":l==="i"?l="#3b59ec":l==="l"?l="2f47bc":l==="d"?l="#d91000":l==="s"?l="#519c43":l==="w"&&(l="#eea720"),l+=i?"aa":"ff";let m=a(l);return {...Re,paddingLeft:"1em",backgroundColor:l,color:m,cursor:n?"pointer":"default"}},[e,i]),c=ae__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:c,onClick:l=>n&&n(e,l),style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx("span",{children:o(e)})})}function Ge({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),a=ae__default.default.useCallback(be,[]),s=ae__default.default.useMemo(()=>{let m=i?"#f1f1f1":"#ffffff00",d=a(m);return {...Re,backgroundColor:m,color:d,cursor:n?"pointer":"default"}},[i]),c=ae__default.default.useMemo(()=>{let m="p";return e.evtColor?m=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(m=t.evtColor(e,i)),m==="p"?m="#0089b6":m==="i"?m="#3b59ec":m==="l"?m="2f47bc":m==="d"?m="#d91000":m==="s"?m="#519c43":m==="w"&&(m="#eea720"),{...uo,backgroundColor:m}},[e,i]),l=ae__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:l,onClick:m=>n&&n(e,m),style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[jsxRuntime.jsx("span",{style:c}),o(e)]})}function fo({events:e,onEventClick:t,options:n}){let[o,i]=ae__default.default.useState(()=>e.slice(4)),[r,a]=ae__default.default.useState(!1),[s,c]=ae__default.default.useState(!1);ae.useEffect(()=>{i(e.slice(4));},[e]);let l=ae__default.default.useMemo(()=>({...Re,backgroundColor:r?"#f4f4f4":"transparent",color:r?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em"}),[r]),m=ae__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[e]),d=()=>{c(!s),a(!1);};return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[s&&o.map(u=>u.allDay?jsxRuntime.jsx(mt,{desc:p=>jsxRuntime.jsx("span",{children:typeof p.title=="string"?p.title:p.title()}),event:u,options:n?.allday,onClick:t},`${typeof u.id=="function"?u.id():u.id}`):jsxRuntime.jsx(Ge,{desc:p=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:p.startDateTime.timeHM}),jsxRuntime.jsx("span",{children:typeof p.title=="string"?p.title:p.title()})]}),event:u,options:n?.timed,onClick:t},`${typeof u.id=="function"?u.id():u.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:l,children:[!s&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsxs("span",{children:["Nog ",o.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var de=class extends ae__default.default.Component{state={active:!1};show=()=>this.setState({active:!0});hide=()=>this.setState({active:!1});render(){let{content:t,children:n,color:o,display:i}=this.props,{active:r}=this.state;if(t){let a="tooltip is-bottom",s="tooltip-arrow";return o==="p"?(a+=" is-primary",s+=" is-primary"):o==="i"?(a+=" is-info",s+=" is-info"):o==="l"?(a+=" is-link",s+=" is-link"):o==="d"?(a+=" is-danger",s+=" is-danger"):o==="s"?(a+=" is-success",s+=" is-success"):o==="w"?(a+=" is-warning",s+=" is-warning"):(a+=` ${o}`,s+=` ${o}`),jsxRuntime.jsxs("div",{className:i==="block"?"tooltip-wrapper-block":"tooltip-wrapper-inline",onMouseEnter:this.show,onMouseLeave:this.hide,children:[n,r&&jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:a,children:t}),jsxRuntime.jsx("div",{className:s})]})]})}else return jsxRuntime.jsx(ae__default.default.Fragment,{children:n})}};Ee(de,"defaultProps",{position:"bottom",color:"l",content:void 0,display:"inline"});function Bt({options:e,date:t,onDayClick:n,onEventClick:o,events:i,tooltipColor:r="is-light",isCurrentMonth:a=!0}){let[s,c]=ae__default.default.useState(!1),l=ae__default.default.useCallback(be,[]),m=ae__default.default.useMemo(()=>({...Dt,backgroundColor:a?"transparent":"#f8f8f8",color:a?"#888888":"#bbbbbb"}),[t,i]),d=ae__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let u="p";e?.today?.bgColor&&(u=e.today.bgColor(s,t)),u==="p"?u="#0089b6":u==="i"?u="#3b59ec":u==="l"?u="2f47bc":u==="d"?u="#d91000":u==="s"?u="#519c43":u==="w"&&(u="#eea720");let p=l(u);return {...Rt,backgroundColor:u,color:p}},[t,s]);return jsxRuntime.jsxs("div",{style:m,children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),style:{...mo,cursor:n?"pointer":"default",backgroundColor:s?"#f4f4f4":"transparent",color:a?"#555555":"#bbbbbb"},onClick:u=>n&&n(t,u),children:[jsxRuntime.jsx("span",{style:t.isToday?d:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:a?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:i.map((u,p)=>{let g=`${typeof u.id=="function"?u.id():u.id}`??p;return u.allDay&&p<4?jsxRuntime.jsx(de,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(mt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:u,options:e?.event?.allday,onClick:o})},g):!u.allDay&&p<4?jsxRuntime.jsx(de,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ge,{desc:h=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h.startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:u,options:e?.event?.timed,onClick:o})},g):p===4&&i.length>5?jsxRuntime.jsx(fo,{events:i,onEventClick:o,options:e?.event},t.dateShort+"-more"):p===4&&u.allDay?jsxRuntime.jsx(de,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(mt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:u,options:e?.event?.allday,onClick:o})},g):p===4&&!u.allDay?jsxRuntime.jsx(de,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ge,{desc:h=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h.startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:u,options:e?.event?.timed,onClick:o})},g):null})})]})}function ho({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i}){let r=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[a,s]=ae__default.default.useState(e instanceof Date?R.fromDate(e,t?.locale):e.clone()),c=ae__default.default.useCallback((u,p)=>{let g=Math.ceil(u.weekNr/52*13),h=u.clone();for(;Math.ceil(h.weekNr/52*13)===g;)h=h.plus({days:-1});let T=u.clone();for(;Math.ceil(T.weekNr/52*13)===g;)T=T.plus({days:1});h=h.plus({days:1}),T=T.plus({days:-1});let v=(p??i??[]).map(x=>(x.allDay=x.allDay||!x.endDateTime,x.startDateTime instanceof Date&&(x.startDateTime=R.fromDate(x.startDateTime,t?.locale)),x.endDateTime&&x.endDateTime instanceof Date&&(x.endDateTime=R.fromDate(x.endDateTime,t?.locale)),x)).filter(x=>x.startDateTime.isBetween([h,T])),I=h.clone(),S=[];for(;I<=T;){if(r.has(I.weekDay)){let x=I.startOf("day"),C=I.endOf("day"),b=v.filter(D=>D.startDateTime.isBetween([x,C])).sort((D,P)=>D.allDay&&!P.allDay?-1:!D.allDay&&P.allDay?1:D.startDateTime.valueOf()-P.startDateTime.valueOf());S.push([I,b]);}I=I.plus({days:1});}return S},[]),[l,m]=ae__default.default.useState(c(a));ae__default.default.useEffect(()=>{let u=e instanceof Date?R.fromDate(e,t?.locale):e.clone();s(u),m(c(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...et,gridTemplateColumns:`30px repeat(${r.size}, 1fr)`}),[t?.visibleDays]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx(br,{visibleDays:r,viewDate:a}),jsxRuntime.jsx(Sr,{visibleDays:r,viewDate:a,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function br({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=ae__default.default.useMemo(()=>({...Me}),[]),c=ae__default.default.useMemo(()=>({...Me}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(l=>jsxRuntime.jsx("div",{style:c,children:l},l))]})}function Sr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i}){let r=e.size,a=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([s,c])=>(a==r&&(a=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(vr,{weekNr:s.weekNr}),jsxRuntime.jsx(Bt,{date:s,events:c,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o},s.ISO)]},s.ISO)))})}function vr({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function yo({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i}){let r=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[a,s]=ae__default.default.useState(e instanceof Date?R.fromDate(e,t?.locale):e.clone()),c=ae__default.default.useCallback((u,p)=>{let g=u.startOf("month").startOf("week").startOf("day"),h=u.endOf("month").endOf("week").plus({days:1}).startOf("day"),T=(p??i??[]).map(S=>(S.allDay=S.allDay||!S.endDateTime,S.startDateTime instanceof Date&&(S.startDateTime=R.fromDate(S.startDateTime,t?.locale)),S.endDateTime&&S.endDateTime instanceof Date&&(S.endDateTime=R.fromDate(S.endDateTime,t?.locale)),S)).filter(S=>S.startDateTime.isBetween([g,h])),v=g.clone(),I=[];for(;v<h;){if(r.has(v.weekDay)){let S=v.startOf("day"),x=v.endOf("day"),C=T.filter(b=>b.startDateTime.isBetween([S,x])).sort((b,D)=>b.allDay&&!D.allDay?-1:!b.allDay&&D.allDay?1:b.startDateTime.valueOf()-D.startDateTime.valueOf());I.push([v,C]);}v=v.plus({days:1});}return I},[]),[l,m]=ae__default.default.useState(c(a,i));ae__default.default.useEffect(()=>{let u=e instanceof Date?R.fromDate(e,t?.locale):e.clone();s(u),m(c(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...et,gridTemplateColumns:`30px repeat(${r.size}, 1fr)`}),[t?.visibleDays]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx(Cr,{visibleDays:r,viewDate:a}),jsxRuntime.jsx(Pr,{visibleDays:r,viewDate:a,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function Cr({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=ae__default.default.useMemo(()=>({...Me}),[]),c=ae__default.default.useMemo(()=>({...Me}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(l=>jsxRuntime.jsx("div",{style:c,children:l},l))]})}function Pr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i,viewDate:r}){let a=e.size,s=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([c,l])=>(s===a&&(s=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(Ir,{weekNr:c.weekNr}),jsxRuntime.jsx(Bt,{date:c,events:l,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:c.hasSame(r,"month")},c.ISO)]},c.ISO)))})}function Ir({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function To({options:e,events:t,onEventClick:n,tooltipColor:o}){let i=ae__default.default.useMemo(()=>({...Dt}),[]);return jsxRuntime.jsx("div",{style:i,children:t.map(r=>jsxRuntime.jsx(de,{display:"block",color:o,content:typeof r.description=="function"?r.description():r.description,children:jsxRuntime.jsx(Ge,{desc:a=>jsxRuntime.jsx("span",{children:typeof a.title=="function"?a.title():a.title}),event:r,options:e?.event?.allday,onClick:n})},`${typeof r.id=="function"?r.id():r.id}`))})}function bo({hour:e}){let t=ae__default.default.useMemo(()=>({...Be,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function So({events:e,onEventClick:t,options:n,tooltipColor:o}){let i=ae__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),r=ae__default.default.useRef(null),a=e.length!==0&&r.current?.offsetWidth?r.current.offsetWidth/e.length:0;return jsxRuntime.jsx("div",{style:i,ref:r,children:e.map((s,c)=>jsxRuntime.jsx(Nr,{tooltipColor:o,options:n?.event?.timed,event:s,eventIndex:c,desc:l=>{let m=typeof l.title=="function"?l.title():l.title;return m.length>80&&(m=m.substring(0,80)+"..."),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{children:jsxRuntime.jsx("b",{children:l.startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:m})]})},onClick:t,eventWidth:a},`${typeof s.id=="function"?s.id():s.id}`))})}function Nr({event:e,options:t,eventWidth:n,eventIndex:o,tooltipColor:i,onClick:r,desc:a}){let[s,c]=ae__default.default.useState(!1),l=ae__default.default.useCallback(be,[]),m=ae__default.default.useRef(null),d=ae__default.default.useMemo(()=>{let u="p";e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(s):e.evtColor:t?.evtColor&&(u=t.evtColor(e,s)),u==="p"?u="#0089b6":u==="i"?u="#3b59ec":u==="l"?u="2f47bc":u==="d"?u="#d91000":u==="s"?u="#519c43":u==="w"&&(u="#eea720"),u+=s?"aa":"ff";let p=l(u),g=e.startDateTime,h=e.endDateTime;h.hasSame(g,"day")||(h=g.endOf("day"));let v=(h.valueOf()-g.valueOf())/1e3/60;return {...Re,position:"absolute",backgroundColor:u,color:p,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${g.minute}px`,height:`${v<30?30:v}px`,width:n,lineHeight:"1.05em",overflow:"visible",marginLeft:`${o*n}px`,cursor:r?"pointer":"default"}},[e,s,n,o]);return jsxRuntime.jsx("div",{ref:m,onClick:u=>r&&r(e,u),style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:jsxRuntime.jsx(de,{display:"block",color:i,content:typeof e.description=="function"?e.description():e.description,children:jsxRuntime.jsx("span",{style:{overflow:"clip",textOverflow:"ellipsis",position:"absolute",left:"3px",right:"3px",top:"3px"},children:a(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function Co({viewDate:e,options:t,onEventClick:n,events:o,onDayClick:i}){let[r]=ae__default.default.useState(t?.visibleDays??new Set([1,2,3,4,5,6,7])),[a,s]=ae__default.default.useState(e instanceof Date?R.fromDate(e,t?.locale):e.clone()),c=ae__default.default.useCallback((p,g)=>{let h=p.startOf("week").startOf("day"),T=p.endOf("week").plus({days:1}).startOf("day"),v=(g??o??[]).map(b=>(b.allDay=b.allDay||!b.endDateTime,b.startDateTime instanceof Date&&(b.startDateTime=R.fromDate(b.startDateTime,t?.locale)),b.endDateTime&&b.endDateTime instanceof Date&&(b.endDateTime=R.fromDate(b.endDateTime,t?.locale)),b)).filter(b=>b.startDateTime.isBetween([h,T])),I=h.clone(),S=[];for(;I<T;){if(r.has(I.weekDay)){let b=I.startOf("day"),D=I.endOf("day"),P=v.filter(N=>N.startDateTime.isBetween([b,D])).sort((N,A)=>N.allDay&&!A.allDay?-1:!N.allDay&&A.allDay?1:N.startDateTime.valueOf()-A.startDateTime.valueOf());S.push([I,P]);}I=I.plus({days:1});}let x=S.map(([b,D])=>[b,D.filter(P=>P.allDay)]),C=S.map(([b,D])=>[b,D.filter(P=>!P.allDay)]);return {allday:x,timed:C}},[]),[l,m]=ae__default.default.useState(c(a));ae__default.default.useEffect(()=>{let p=e instanceof Date?R.fromDate(e,t?.locale):e.clone();s(p),m(c(p,o));},[e,o,t?.visibleDays,t?.locale]);let d=ae__default.default.useMemo(()=>({...et,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${r.size}, 1fr)`}),[t?.visibleDays]),u=ae__default.default.useMemo(()=>Array.from(Array(24).keys()),[]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:d,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(kr,{onDayClick:i,daysWithEvents:l.allday,options:t}),jsxRuntime.jsx("div",{style:{...Be,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),l.allday.map(([p,g])=>jsxRuntime.jsx(To,{events:g,onEventClick:n,options:t,tooltipColor:t?.tooltipColor??"is-light"},p.dayShort)),u.map(p=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(bo,{hour:p}),l.timed.map(([g,h])=>{let T=h.filter(v=>v.startDateTime.hour===p);return jsxRuntime.jsx(So,{tooltipColor:t?.tooltipColor??"is-light",events:T,onEventClick:n,options:t},g.dayShort+"-"+p)})]},p))]})})}function kr({onDayClick:e,daysWithEvents:t,options:n={}}){let o=ae__default.default.useMemo(()=>({...Me,cursor:e?"pointer":void 0}),[e]),i=ae__default.default.useMemo(()=>({...o}),[]),r=ae__default.default.useCallback(be,[]),a=ae__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let s="p";n?.today?.bgColor&&(s=n.today.bgColor(!1)),s==="p"?s="#113670":s==="i"?s="#3b59ec":s==="l"?s="#2f47bc":s==="d"?s="#d91000":s==="s"?s="#519c43":s==="w"&&(s="#eea720");let c=r(s);return {...Rt,marginBottom:".5em",backgroundColor:s,color:c}},[]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:t.map(([s])=>jsxRuntime.jsxs("div",{style:i,onClick:c=>e&&e(s,c),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:s.dayLong}),jsxRuntime.jsxs("span",{style:s.isToday?a:void 0,children:[s.day," ",s.monthLong]})]},s.ISO))})}var Ar={Month:yo,Week:Co,Fourweeks:ho};function Rr({alignment:e="l",autoComplete:t="off",autofocus:n=!1,disabled:o=!1,errorMessage:i="",form:r=void 0,helpTag:a,id:s,inputRef:c,keyboardType:l="text",max:m,min:d,name:u,pattern:p=void 0,placeholder:g,readonly:h=!1,required:T=!1,size:v="m",spellCheck:I=!1,step:S=1,title:x,type:C="text",value:b,onBlur:D,onChange:P,onFocus:N,onKeyDown:A,onKeyUp:L,onValueChanged:E}){let z=k=>{E&&E(k.target.value),P&&P(k);},f=i?"input is-danger":"input";return v==="s"?f+=" is-small":v==="l"?f+=" is-medium":v==="xl"&&(f+=" is-large"),e==="l"?f+=" has-text-left":e==="c"?f+=" has-text-centered":e==="r"&&(f+=" has-text-right"),h&&(f+=" is-static"),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:f,pattern:p,id:s??u,ref:c,name:u,value:b,spellCheck:I,autoComplete:t,required:T,type:C,title:x,max:m,maxLength:typeof m=="number"?m:void 0,minLength:typeof d=="number"?d:void 0,min:d,step:S,readOnly:h,autoFocus:n,form:r,inputMode:l,placeholder:g,disabled:o,onKeyDown:A,onKeyUp:L,onBlur:D,onChange:z,onFocus:k=>N&&N(k,a)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(b)})]})}function V({direction:e="h",errorMessage:t="",icon:n=freeSolidSvgIcons.faKeyboard,id:o,label:i,labelHidden:r=!1,name:a,required:s=!1,size:c="m",onBlur:l,...m}){let d=v=>{p(!0),l&&l(v);},[u,p]=ae__default.default.useState(!1),g;n&&(typeof n=="string"?g=jsxRuntime.jsx("i",{className:n}):g=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n}));let h;return t&&(t===""?h=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):h=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(ee,{id:o??a,size:c,inputId:o??a,label:i??a??o,direction:e,required:s,controlClassName:`control ${n?"has-icons-left":""} ${t!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(Rr,{required:s,name:a,size:c,onBlur:d,id:o,...m,errorMessage:u?t:""}),g&&jsxRuntime.jsx("span",{className:"icon is-left",children:g}),h&&jsxRuntime.jsx("span",{className:"icon is-right",children:h})]})}function ee({children:e,controlClassName:t="control",direction:n="h",id:o,inputId:i=void 0,label:r,labelHidden:a=!1,required:s,size:c}){let l="is-normal";c==="s"?l+=" is-small":c==="l"?l+=" is-medium":c==="xl"&&(l+=" is-large");let m=`label ${l} ${a?"is-sr-only":""}`;return n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal",id:o,children:[jsxRuntime.jsx("div",{className:`field-label ${l}`,children:jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,s&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"})]})}),jsxRuntime.jsx("div",{className:"field-body",children:jsxRuntime.jsx("div",{className:"field",children:jsxRuntime.jsx("div",{className:t,children:e})})})]}):jsxRuntime.jsxs("div",{className:"field",id:o,children:[jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,s&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:t,children:e})]})}function fn({id:e,label:t,name:n,size:o="m",direction:i="h",required:r=!1,value:a=!1,errorMessage:s="",labelHidden:c=!1,onValueChanged:l,onBlur:m,...d}){let u=T=>{h(!0),m&&m(T);},p=T=>{console.log(T),l&&l(T);},[g,h]=ae__default.default.useState(!1);return jsxRuntime.jsx(ee,{label:t??n,size:o,labelHidden:c,direction:i,required:r,inputId:e??n,children:jsxRuntime.jsx(Io,{id:e,name:n,label:t,value:a,required:r,size:o,errorMessage:g?s:"",onValueChanged:p,onBlur:u,...d})})}function Io({helpTag:e,errorMessage:t="",label:n,disabled:o=!1,keyboardType:i="text",title:r,name:a,value:s=!1,required:c=!1,spellCheck:l=!1,id:m,autoComplete:d="off",readonly:u=!1,autofocus:p=!1,form:g=void 0,inputRef:h,onBlur:T,onChange:v,onFocus:I,onKeyDown:S,onKeyUp:x,onValueChanged:C,size:b="m",alignment:D="l",color:P="p",styling:N="normal"}){let[A,L]=ae__default.default.useState(!1),E=k=>{A||L(!0),T&&T(k);},z=k=>{C&&C(k.target.checked),v&&v(k);},f="is-checkradio";return b==="s"?f+=" is-small":b==="l"?f+=" is-medium":b==="xl"&&(f+=" is-large"),P==="w"?f+=" is-warning":P==="l"?f+=" is-link":P==="d"?f+=" is-danger":P==="i"?f+=" is-info":P==="s"?f+=" is-success":P==="p"?f+=" is-primary":f+=` ${P}`,N==="rounded"?f+=" is-circle":N==="noborder"?f+=" has-no-border":N==="colored"?f+=" has-background-color":N==="blocky"&&(f+=" is-blocky"),D==="c"?f+=" has-text-centered":D==="r"&&(f+=" has-text-right"),u&&(f+=" is-static"),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:f,id:m??a,ref:h,name:a,checked:s,spellCheck:l,autoComplete:d,required:c,title:r,readOnly:u,autoFocus:p,form:g,inputMode:i,disabled:o,onKeyDown:S,onKeyUp:x,onBlur:E,onChange:z,onFocus:k=>I&&I(k,e)}),jsxRuntime.jsx("label",{htmlFor:m??a,children:n??a}),A&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(s)})]})}function xe({value:e,id:t,name:n,label:o,grouped:i=!1,required:r=!1,errorMessage:a="",multiple:s=!1,alignment:c="l",size:l="m",direction:m="h",options:d=[],children:u=void 0,placeholder:p,helpTag:g,disabled:h=!1,keyboardType:T="text",title:v,spellCheck:I=!1,autoComplete:S="off",autofocus:x=!1,form:C=void 0,inputRef:b,labelHidden:D,icon:P=freeSolidSvgIcons.faCheckCircle,onBlur:N,onFocus:A,onChange:L,onKeyDown:E,onKeyUp:z,onValueChanged:f}){let[k,H]=ae__default.default.useState(!1),te=F=>{H(!0),N&&N(F);},ne=F=>{A&&A(F,g);},ye=F=>{if(L&&L(F),s){let J=F.target.selectedOptions,K=[];for(let se of J)K.push(se.value);f&&f(K);}else f&&f(F.target.value);},fe=ae__default.default.useCallback(F=>{if(!F.some(J=>typeof J!="string"))return F.map(J=>jsxRuntime.jsx(xe.Option,{value:J,children:J},J));if(i){let J=[],K=new Set;return F.forEach(se=>K.add(typeof se=="string"?"":se.group??"")),[...K].sort().forEach(se=>{let $e=[];F.forEach(Te=>{typeof Te=="string"?se===""&&$e.push(Te):se===Te.group&&$e.push(Te);}),J.push(jsxRuntime.jsx(xe.OptGroup,{label:se,children:$e.map(Te=>{if(typeof Te=="string")return jsxRuntime.jsx(xe.Option,{value:Te,children:Te},Te);{let{value:Ft,disabled:Fo,label:En}=Te;return jsxRuntime.jsx(xe.Option,{value:Ft,disabled:Fo,children:En??Ft},En??Ft)}})},se));}),J}else return F.map(J=>{if(typeof J=="string")return jsxRuntime.jsx(xe.Option,{value:J,children:J},J);{let{value:K,disabled:se,label:$e}=J;return jsxRuntime.jsx(xe.Option,{value:K,disabled:se,children:$e??K},K)}})},[]),M=a?"select is-danger is-fullwidth":"select is-fullwidth";l==="s"?M+=" is-small":l==="l"?M+=" is-medium":l==="xl"&&(M+=" is-large"),c==="c"?M+=" has-text-centered":c==="r"&&(M+=" has-text-right"),s!==!1&&(M+=" is-multiple");let q=P?"control has-icons-left":"control",G;P&&(typeof P=="string"?G=jsxRuntime.jsx("i",{className:P}):G=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:P}));let Ae=fe(d);return jsxRuntime.jsxs(ee,{inputId:t??n,id:t??n,label:o??n??t,direction:m,required:r,size:l,labelHidden:D,controlClassName:q,children:[jsxRuntime.jsx("div",{className:M,children:jsxRuntime.jsxs("select",{multiple:s!==!1,size:s===!1?void 0:s,value:e,className:M,id:t??n??o,ref:b,name:n,spellCheck:I,autoComplete:S,required:r,title:v,autoFocus:x,form:C,inputMode:T,placeholder:p,disabled:h,onFocus:ne,onBlur:te,onKeyDown:E,onKeyUp:z,onChange:ye,children:[u,Ae]})}),G&&jsxRuntime.jsx("span",{className:"icon is-left",children:G}),k&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof a=="string"?a:a(e)})]})}xe.Option=({value:e="",disabled:t=!1,id:n="",children:o})=>jsxRuntime.jsx("option",{value:e,disabled:t,id:n,children:o});xe.OptGroup=({label:e,children:t,disabled:n})=>jsxRuntime.jsx("optgroup",{label:e,disabled:n,children:t});function Lr({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:i,onRGBValueChanged:r,onHSLValueChanged:a,...s}){let c=m=>{i&&i(m),r&&r(sn(m)),a&&a(co(m));},l="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(m=>{"0123456789ABCDEF".includes(m)||W(`Ongeldige hex-color '${e}'`);}),e.length===4?l=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?l=e:W(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[m,d,u]=t;(m<0||m>255)&&W(`Ongeldige RGB-waarde, r = '${m}', moet tussen 0 en 255`),(d<0||d>255)&&W(`Ongeldige RGB-waarde, g = '${d}', moet tussen 0 en 255`),(u<0||u>255)&&W(`Ongeldige RGB-waarde, b = '${u}', moet tussen 0 en 255`),l=so([m,d,u]);}else if(n){let[m,d,u]=n;(m<0||m>360)&&W(`Ongeldige HSL-waarde, h = '${m}', moet tussen 0 en 360`),(d<0||d>100)&&W(`Ongeldige HSL-waarde, s = '${d}', moet tussen 0 en 100`),(u<0||u>100)&&W(`Ongeldige HSL-waarde, l = '${u}', moet tussen 0 en 100`),l=lo([m,d,u]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(V,{icon:o,type:"color",value:l,onValueChanged:c,...s})})}function Hr({value:e,name:t,id:n,required:o,title:i,tooltip:r}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:i??r,required:o,type:"hidden",disabled:!0})}function hn({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:i,value:r,checked:a=!1,required:s=!1,spellCheck:c=!1,id:l,autoComplete:m="off",readonly:d=!1,autofocus:u=!1,form:p=void 0,inputRef:g,onBlur:h,onChange:T,onFocus:v,onKeyDown:I,onKeyUp:S,onValueChanged:x,size:C="m",alignment:b="l",itemsDirection:D="h",color:P="p",styling:N="normal",children:A=void 0}){let L=z=>{x&&x(r),T&&T(z);},E="is-checkradio";return C==="s"?E+=" is-small":C==="l"?E+=" is-medium":C==="xl"&&(E+=" is-large"),P==="w"?E+=" is-warning":P==="l"?E+=" is-link":P==="d"?E+=" is-danger":P==="i"?E+=" is-info":P==="s"?E+=" is-success":P==="p"?E+=" is-primary":E+=` ${P}`,N==="rounded"?E+=" is-circle":N==="noborder"?E+=" has-no-border":N==="colored"?E+=" has-background-color":N==="blocky"&&(E+=" is-blocky"),b==="c"?E+=" has-text-centered":b==="r"&&(E+=" has-text-right"),d&&(E+=" is-static"),l||(l=i+"-"+r),jsxRuntime.jsxs("div",{style:{display:D==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:E,id:l,ref:g,name:i,checked:a,spellCheck:c,autoComplete:m,required:s,title:o,readOnly:d,autoFocus:u,form:p,inputMode:n,disabled:t,onKeyDown:I,onKeyUp:S,onBlur:h,onChange:L,onFocus:z=>v&&v(z,e)}),jsxRuntime.jsx("label",{htmlFor:l??i,children:A??i})]})}function Ao({children:e=void 0,id:t,label:n,labelHidden:o=!1,name:i,value:r,required:a=!1,size:s="m",direction:c="h",itemsDirection:l="h",alignment:m="l",errorMessage:d="",onValueChanged:u,onBlur:p,onChange:g,onFocus:h,onKeyDown:T,onKeyUp:v,...I}){let[S,x]=ae__default.default.useState(!1),C=N=>{S||x(!0),p&&p(N);},b=N=>{u&&u(N);},P=(N=>ae__default.default.Children.map(N,(A,L)=>{if(ae__default.default.isValidElement(A)&&A.type===Eo){let E=!1;return typeof r=="string"||typeof r=="number"||typeof r=="boolean"?E=r===A.props.value:r&&(E=JSON.stringify(r)===JSON.stringify(A.props.value)),jsxRuntime.jsx(hn,{...A.props,size:s,itemsDirection:l,alignment:m,direction:c,id:A.props.id??`${i}-option-${L}`,value:A.props.value,checked:E,name:i,onValueChanged:b,onBlur:C,onKeyDown:T,onKeyUp:v,onChange:g,onFocus:h,children:A.props.children})}return A}))(e);return jsxRuntime.jsxs(ee,{labelHidden:o,label:n??i,required:a,inputId:"",direction:c,size:s,id:t??i,controlClassName:"control",children:[P,S&&d&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(r)})]})}function Eo({checked:e=!1,id:t,value:n,children:o,...i}){return jsxRuntime.jsx(hn,{checked:e,name:"",...i,id:t,value:n,children:o})}Ao.Item=Eo;function $r({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
|
|
67
67
|
]+@[^@ \r
|
|
68
68
|
]+.[^@ \r
|
|
69
|
-
]+`,...o}){return jsxRuntime.jsx(z,{icon:t,type:"email",pattern:i,value:e,onValueChanged:r=>{n&&n(r);},...o})}function nr({value:e,icon:t=freeSolidSvgIcons.faKey,name:n,size:i,direction:o,revealPasswordAllowed:a=!1,revealPasswordMsg:r="Toon wachtwoord",iconRevealed:s=freeSolidSvgIcons.faEye,onValueChanged:l,...c}){let[u,d]=te__default.default.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(z,{size:i,icon:u?s??t:t,direction:o,name:n,type:u?"text":"password",value:e,onValueChanged:g=>{l&&l(g);},...c}),a&&jsxRuntime.jsx(hn,{size:i,direction:o,onValueChanged:d,label:r,labelHidden:!0,name:`cb-${n}-reveal-pw`})]})}function ns({content:e="",onChangeHtml:t,onChangeText:n,onChangeJson:i}){let o=react.useEditor({onUpdate({editor:a}){t&&t(a.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>")),n&&n(a.getText()),i&&i(a.getJSON());},extensions:[lr__default.default,pr__default.default,fr__default.default.configure(),gr__default.default.configure(),yr__default.default.configure(),hr__default.default.configure(),extensionColor.Color.configure({types:[Bi__default.default.name,Ji__default.default.name]}),cr__default.default.configure(),dr__default.default.configure(),Ir__default.default.configure({autolink:!0,openOnClick:!0,linkOnPaste:!0,HTMLAttributes:{target:"_blank"}}),Cr__default.default.configure({allowBase64:!0}),ur__default.default.configure(),mr__default.default.configure(),Bi__default.default.configure(),kr__default.default.configure({multicolor:!0}),Tr__default.default.configure({keepMarks:!0}),Sr__default.default.configure({keepMarks:!0}),Ji__default.default.configure(),vr__default.default.configure(),Er__default.default.configure(),wr__default.default.configure(),br__default.default.configure({types:["heading","paragraph"]}),Pr__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),xr__default.default.configure(),Nr__default.default.configure(),Ar__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(is,{editor:o}),jsxRuntime.jsx("div",{className:"",children:jsxRuntime.jsx(react.EditorContent,{editor:o,className:"content p-0"})})]})}function is({editor:e}){if(!e)return jsxRuntime.jsx(te__default.default.Fragment,{});let t="button is-small is-primary is-light",n="button is-small is-primary is-inverted";return jsxRuntime.jsxs("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap",children:[jsxRuntime.jsx(os,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ie,{mx:3}),jsxRuntime.jsx(as,{editor:e,classNameInactive:n}),jsxRuntime.jsx(Ie,{mx:3}),jsxRuntime.jsx(rs,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ie,{mx:3}),jsxRuntime.jsx(ss,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ie,{mx:3}),jsxRuntime.jsx(ls,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ie,{mx:3}),jsxRuntime.jsx(cs,{editor:e,classNameActive:t,classnameInactive:n})]})}function os({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Bold (ctrl + B)",onClick:()=>e.chain().focus().toggleBold().run(),disabled:!e.can().chain().focus().toggleBold().run(),className:e.isActive("bold")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBold})}),jsxRuntime.jsx("button",{title:"Italic (ctrl + I)",onClick:()=>e.chain().focus().toggleItalic().run(),disabled:!e.can().chain().focus().toggleItalic().run(),className:e.isActive("italic")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faItalic})}),jsxRuntime.jsx("button",{title:"Underline (ctrl + U)",onClick:()=>e.chain().focus().toggleUnderline().run(),disabled:!e.can().chain().focus().toggleUnderline().run(),className:e.isActive("underline")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faUnderline})}),jsxRuntime.jsx("button",{title:"Strikethrough (ctrl + shift + X)",onClick:()=>e.chain().focus().toggleStrike().run(),disabled:!e.can().chain().focus().toggleStrike().run(),className:e.isActive("strike")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faStrikethrough})}),jsxRuntime.jsx("button",{title:"Subscript (ctrl + ,)",onClick:()=>{e.chain().focus().toggleSubscript().run(),e.chain().focus().unsetSuperscript().run();},disabled:!e.can().chain().focus().toggleSubscript().run(),className:e.isActive("subscript")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSubscript})}),jsxRuntime.jsx("button",{title:"Superscript (ctrl + .)",onClick:()=>{e.chain().focus().toggleSuperscript().run(),e.chain().focus().unsetSubscript().run();},disabled:!e.can().chain().focus().toggleSuperscript().run(),className:e.isActive("superscript")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSuperscript})})]})}function as({editor:e,classNameInactive:t}){let n=[{name:"heading 1",level:1},{name:"heading 2",level:2},{name:"heading 3",level:3},{name:"heading 4",level:4},{name:"heading 5",level:5},{name:"heading 6",level:6}],[i,o]=te__default.default.useState("paragraph"),[a,r]=te__default.default.useState(e.getAttributes("textStyle").color),[s,l]=te__default.default.useState(e.getAttributes("textStyle").backgroundColor),c=u=>{if(u==="paragraph")e.chain().focus().setParagraph().run(),o("paragraph");else if(u.startsWith("heading-")){let d=+u.replace("heading-","");e.chain().focus().toggleHeading({level:d}).run(),o(u);}};return te__default.default.useEffect(()=>{e.isActive("paragraph")?o("paragraph"):n.forEach(u=>{e.isActive("heading",{level:u.level})&&o(`heading-${u.level}`);}),r(e.getAttributes("textStyle").color),l(e.getAttributes("highlight").color);}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("span",{className:"mx-1",children:[jsxRuntime.jsx(Te,{color:a,icon:freeSolidSvgIcons.faFont}),jsxRuntime.jsx("input",{className:"input is-small",style:{width:"5em"},name:"input is-small",type:"color",onInput:u=>e.chain().focus().setColor(u.target.value).run(),value:a})]}),jsxRuntime.jsxs("span",{className:"mx-1",children:[jsxRuntime.jsx(Te,{color:s,icon:freeSolidSvgIcons.faPaintRoller}),jsxRuntime.jsx("input",{name:"color-input-highlight",style:{width:"5em"},className:"input is-small",type:"color",onInput:u=>e.chain().focus().toggleHighlight({color:u.target.value}).run(),value:s})]}),jsxRuntime.jsx("button",{onClick:()=>{e.chain().focus().unsetHighlight().run(),e.chain().focus().unsetColor().run();},className:t,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTextSlash})}),jsxRuntime.jsx("div",{className:"select is-small",children:jsxRuntime.jsxs("select",{name:"select-paragraph-or-heading-type",value:i,onChange:u=>c(u.target.value),children:[jsxRuntime.jsx("option",{value:"",disabled:!0,children:"Selecteer type"}),jsxRuntime.jsx("option",{value:"paragraph",children:"paragraph"}),n.map(u=>jsxRuntime.jsx("option",{value:`heading-${u.level}`,children:u.name},u.name))]})})]})}function rs({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Align left (ctrl + shift + L)",onClick:()=>e.chain().focus().setTextAlign("left").run(),className:e.isActive({textAlign:"left"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignLeft})}),jsxRuntime.jsx("button",{title:"Align center (ctrl + shift + E)",onClick:()=>e.chain().focus().setTextAlign("center").run(),className:e.isActive({textAlign:"center"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignCenter})}),jsxRuntime.jsx("button",{title:"Align right (ctrl + shift + R)",onClick:()=>e.chain().focus().setTextAlign("right").run(),className:e.isActive({textAlign:"right"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignRight})}),jsxRuntime.jsx("button",{title:"Justify (ctrl + shift + J)",onClick:()=>e.chain().focus().setTextAlign("justify").run(),className:e.isActive({textAlign:"justify"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignJustify})})]})}function ss({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Lijst met punten (unordered)",onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListUl})}),jsxRuntime.jsx("button",{title:"Lijst met nummers (ordered)",onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListOl})}),jsxRuntime.jsx("button",{title:"Splits dit list-item in 2 items",onClick:()=>e.chain().focus().splitListItem("listItem").run(),disabled:!e.can().splitListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faArrowsDownToLine})}),jsxRuntime.jsx("button",{title:"Indent dit listitem",onClick:()=>e.chain().focus().sinkListItem("listItem").run(),disabled:!e.can().sinkListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faIndent})}),jsxRuntime.jsx("button",{title:"Outdent dit listitem",onClick:()=>e.chain().focus().liftListItem("listItem").run(),disabled:!e.can().liftListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faOutdent})})]})}function ls({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().setHorizontalRule().run(),className:n,title:"Voeg een tussenlijn toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faGripLines})}),jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().setHardBreak().run(),className:n,title:"Voeg een extra witregel toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlusMinus})})]}),jsxRuntime.jsx(Ie,{}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"TODO: Voeg een link toe (werkt niet, typ de link gewoon uit)",className:n,onClick:()=>{let i=e.getAttributes("link").href,o=window.prompt("URL",i);if(o!==null){if(o===""){e.chain().focus().extendMarkRange("link").unsetLink().run();return}e.chain().focus().extendMarkRange("link").setLink({href:o}).run();}},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faLink})}),jsxRuntime.jsx("button",{title:"TODO: Voeg een afbeelding toe (werkt niet, prak hem er met HTML in)",className:n,onClick:()=>{let i=window.prompt("URL");i&&e.chain().focus().setImage({src:i}).run();},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faImage})})]}),jsxRuntime.jsx(Ie,{}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"undo ( ctrl + z )",onClick:()=>e.chain().focus().undo().run(),disabled:!e.can().chain().focus().undo().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateLeft})}),jsxRuntime.jsx("button",{title:"redo ( ctrl + shift + z )",onClick:()=>e.chain().focus().redo().run(),disabled:!e.can().chain().focus().redo().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateRight})}),jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().fixTables().run(),className:n,title:"fix problemen (?)",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBugSlash})})]})]})}function cs({editor:e,classnameInactive:t}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),className:t,title:"Nieuwe tabel",children:[jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable}),jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteTable().run(),className:t,title:"verwijder tabel",children:[jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable}),jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]}),jsxRuntime.jsx(Ie,{mx:1}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().addColumnAfter().run(),className:t,title:"nieuwe kolom",children:["Col",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteColumn().run(),className:t,title:"verwijder kolom",children:["Col",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]}),jsxRuntime.jsx(Ie,{mx:1}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().addRowAfter().run(),className:t,title:"nieuwe rij",children:["Row",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteRow().run(),className:t,title:"verwijder rij",children:["Row",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]})]})}var Ie=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function ms({value:e,label:t,errorMessage:n="",helpTag:i,id:o,name:a,spellCheck:r=!0,required:s=!1,autoComplete:l="off",placeholder:c,disabled:u=!1,form:d=void 0,readonly:m=!1,autofocus:g=!1,inputRef:p=void 0,max:f,min:y,title:C,size:b,alignment:T,direction:x="h",cols:I,rows:P,labelHidden:A=!1,onValueChanged:k,onChange:N,onBlur:O,onFocus:R,onKeyDown:L,onKeyUp:J}){let[v,S]=te__default.default.useState(!1),D=ne=>{S(!0),O&&O(ne);},M=ne=>{N&&N(ne),k&&k(ne.target.value);},W="is-normal";b==="s"?W+=" is-small":b==="l"?W+=" is-medium":b==="xl"&&(W+=" is-large");let de=`textarea ${W} ${T}`.trim(),X=y?typeof y=="number"?y:+y:void 0,Y=f?typeof f=="number"?f:+f:void 0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(le,{label:t??a??o,required:s,labelHidden:A,inputId:o??a,direction:x,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:de,value:e,id:o??a??t,name:a,spellCheck:r,required:s,autoComplete:l,placeholder:c,disabled:u,form:d,readOnly:m,autoFocus:g,ref:p,maxLength:Y,minLength:X,title:C,rows:P,cols:I,onChange:M,onBlur:D,onFocus:ne=>R&&R(ne,i),onKeyDown:L,onKeyUp:J}),v&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(e)})]})})}function Li(){let e=te__default.default.useRef(null),[t,n]=te__default.default.useState(0),[i,o]=te__default.default.useState(0),a=te__default.default.useCallback(()=>{if(e.current){let{selectionStart:r,selectionEnd:s}=e.current;n(r),o(s);}},[]);return te__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,i);}),{start:t,end:i,ref:e,updateCaret:a}}function gs({value:e,characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:i,...o}){let{ref:a,updateCaret:r}=Li();return jsxRuntime.jsx(z,{inputRef:a,icon:n,type:"text",value:e,onValueChanged:l=>{if(t){let c=l;if(t==="0-9")c=l.replaceAll(/[^0-9]/g,"");else if(t==="a-z")c=l.toLowerCase().replaceAll(/[^a-z]/g,"");else if(t==="A-Z")c=l.toUpperCase().replaceAll(/[^A-Z]/g,"");else if(t==="a-Z")c=l.replaceAll(/[^a-zA-Z]/g,"");else if(t==="0-Z")c=l.replaceAll(/[^0-9a-zA-Z]/g,"");else if(typeof t=="string"){let u=t??"";c=l.split("").reduce((d,m)=>u.includes(m)?d+m:d,"");}else t instanceof RegExp&&(c=l.replaceAll(new RegExp(t,"g"),""));l=c;}i&&i(l),r();},...o})}function Ts({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...i}){let o=a=>{n&&n(typeof a=="number"?a:+a);};return jsxRuntime.jsx(z,{icon:t,type:"number",value:isNaN(e??NaN)?"":e,onValueChanged:o,...i})}function bs({value:e,min:t=0,max:n=100,step:i=1,unit:o="",helpTag:a,errorMessage:r="",label:s,disabled:l=!1,title:c,name:u,required:d=!1,id:m,readonly:g=!1,form:p=void 0,inputRef:f,onBlur:y,onChange:C,onFocus:b,onKeyDown:T,onKeyUp:x,onValueChanged:I,direction:P="h",labelHidden:A=!1}){let k=J=>{O(!0),y&&y(J);},[N,O]=te__default.default.useState(!1),R=J=>{C&&C(J),I&&I(J.target.valueAsNumber);},L=te__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t,"--min-text":`"${t}${o}"`,"--max":n,"--max-text":`"${n}${o}"`,"--value":e,"--text-value":`${e}${o}`}),[e,o]);return jsxRuntime.jsxs(le,{label:s??u,direction:P,labelHidden:A,required:d,inputId:m??u,controlClassName:"control",children:[jsxRuntime.jsxs("div",{className:"range-slider",style:L,children:[jsxRuntime.jsx("input",{type:"range",name:u,id:m??u,min:t,max:n,value:e,step:i,disabled:l,required:d,readOnly:g,form:p,ref:f,title:c,onBlur:k,onChange:R,onKeyDown:T,onKeyUp:x,onFocus:J=>b&&b(J,a)}),jsxRuntime.jsxs("output",{children:[e,o]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),N&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof r=="string"?r:r(e)})]})}var vs=(e,t)=>{switch(t.type){case"SET":let n=Fi(t.valueA,t.valueB,e.description,t.validation);return {...e,valueA:t.valueA,valueB:t.valueB,validation:t.validation,invalidMsg:n,valid:n===""};case"CHANGE":return {...e,valueA:t.valueA,valueB:t.valueB,touched:!0,invalidMsg:t.invalidMsg,valid:t.invalidMsg===""};case"TOUCH":return {...e,touched:t.touched}}};function Cs(e){te__default.default.useEffect(()=>{console.error("De <MultiRangeInput> werkt niet helemaal zoals het hoort. Gebruik hem voorlopig maar even niet");},[]);let[t,n]=te__default.default.useReducer(vs,{description:e.label||e.name,valueA:e.value?e.value[0]:+(e.validation?.min??"0"),valueB:e.value?e.value[1]:+(e.validation?.max??"100"),invalidMsg:"",valid:!1,touched:!1,validation:e.validation}),i=te__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t.validation?.min??0,"--min-text":`"${t.validation?.min??0}${e.unit}"`,"--max":t.validation?.max??100,"--max-text":`"${t.validation?.max??100}${e.unit}"`,"--value-a":t.valueA,"--value-b":t.valueB,"--text-value-a":`${t.valueA}${e.unit}`,"--text-value-b":`${t.valueB}${e.unit}`}),[t.valueA,t.valueB,t.validation?.min,t.validation?.max,e.value,e.unit]),o=(s,l)=>{if(!e.disabled){let c=parseFloat(l),u=s==="A"?c:t.valueA,d=s==="B"?c:t.valueB,m=Fi(u,d,t.description,t.validation);e.onValueChanged&&e.onValueChanged([u,d],m===""),n({type:"CHANGE",valueA:u,valueB:d,invalidMsg:m});}};te__default.default.useEffect(()=>{let[s,l]=e.value??[+(e.validation?.min??0),+(e.validation?.max??100)];n({type:"SET",valueA:s,valueB:l,validation:e.validation});},[e.value,e.validation]);let a="";e.errorMessage&&(a=typeof e.errorMessage=="string"?e.errorMessage:e.errorMessage([t.valueA,t.valueB]));let r=jsxRuntime.jsx(et,{stateError:t.invalidMsg,touched:t.touched,outsideError:a});return jsxRuntime.jsx(Lt,{size:"m",error:r,direction:e.direction??"h",children:jsxRuntime.jsx("div",{className:"field",title:e.tooltip,children:jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsxs("div",{className:"range-slider flat",style:i,children:[jsxRuntime.jsx("input",{type:"hidden",name:e.name,value:JSON.stringify([t.valueA,t.valueB]),id:e.id??e.name}),jsxRuntime.jsx("input",{type:"range",name:e.name+"_A",id:e.id+"_A",min:t.validation?.min??0,max:t.validation?.max??100,value:t.valueA,step:e.step,required:t.validation?.required,disabled:e.disabled,onBlur:()=>!t.touched&&n({type:"TOUCH",touched:!0}),onChange:s=>o("A",s.target.value),onFocus:s=>e.onFocus&&e.onFocus(s,e.helpTag?e.helpTag[0]:void 0)}),jsxRuntime.jsx("output",{id:e.id+"_out_A",children:`${t.valueA}${e.unit}`}),jsxRuntime.jsx("input",{type:"range",name:e.name+"_B",id:e.id+"_B",min:t.validation?.min??0,max:t.validation?.max??100,value:t.valueB,step:e.step,required:t.validation?.required,disabled:e.disabled,onBlur:()=>!t.touched&&n({type:"TOUCH",touched:!0}),onChange:s=>o("B",s.target.value),onFocus:s=>e.onFocus&&e.onFocus(s,e.helpTag?e.helpTag[1]:void 0)}),jsxRuntime.jsx("output",{id:e.id+"_out_B",children:`${t.valueB}${e.unit}`}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]})})})})}function Fi(e,t,n,i){let o=Math.abs(e-t);return i?.minDiff&&i.minDiff>=o?`Het verschil in ${n} tussen de 2 waarden moet minstens ${i.minDiff} zijn`:i?.maxDiff&&i.maxDiff<=o?`Het verschil in ${n} tussen de 2 waarden moet maximaal ${i.maxDiff} zijn`:i?.onValidate?i.onValidate([e,t]):""}function xs({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:i,onJSDateTimeValueChanged:o,...a}){let r=l=>{n&&n(l),i&&i(new Date(l)),o&&o(w.fromISO(l));},s="";return typeof e=="string"?s=e.length>10?e.substring(0,10):e:e instanceof Date?s=e.toISOString().substring(0,10):e instanceof w&&(s=e.ISO.substring(0,10)),jsxRuntime.jsx(z,{icon:t,type:"date",value:s,onValueChanged:r,...a})}function Es({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faCalendarDay,onValueChanged:i,onDateValueChanged:o,onJSDateTimeValueChanged:a,...r}){let s=u=>{if(u){if(typeof u=="string")return u}else return "";let d;return u instanceof Date?d=w.fromDate(u):d=u,`${d.yr.toString().padStart(4,"0")}-${d.m.toString().padStart(2,"0")}-${d.d.toString().padStart(2,"0")} ${d.hr.toString().padStart(2,"0")}:${d.min.toString().padStart(2,"0")}:${d.sec.toString().padStart(2,"0")}`},l=u=>{if(i&&i(u),u!==""&&(o||a)){let d=w.fromISO(u);console.log(d),o&&o(d.JSDate),a&&a(d);}},c=s(e);return jsxRuntime.jsx(z,{step:t?1:60,icon:n,type:"datetime-local",value:c,onValueChanged:l,...r})}function Ds({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faClockFour,onValueChanged:i,onDateValueChanged:o,onJSDateTimeValueChanged:a,...r}){let s=u=>{if(u){if(typeof u=="string")return u}else return "";let d=[0,0,void 0];return u instanceof Date?(d[0]=u.getHours(),d[1]=u.getMinutes(),t&&(d[2]=u.getSeconds())):(d[0]=u.hour,d[1]=u.minute,t&&(d[2]=u.second)),d.filter(m=>!!m).map(m=>m?.toString().padStart(2,"0")).join(":")},l=u=>{if(i&&i(u),o||a){let d=w.from({hour:parseInt(u.substring(0,2)),minute:parseInt(u.substring(3,5)),second:parseInt(u.substring(6,8))??0});o&&o(d.JSDate),a&&a(d);}},c=s(e);return jsxRuntime.jsx(z,{step:t?1:60,icon:n,type:"time",value:c,onValueChanged:l,...r})}function Os({multiple:e=!1,placeholder:t,helpTag:n,errorMessage:i="",label:o,disabled:a=!1,keyboardType:r="none",title:s,name:l,required:c=!1,spellCheck:u=!1,id:d,autoComplete:m="off",max:g,min:p,readonly:f=!1,pattern:y=void 0,autofocus:C=!1,form:b=void 0,inputRef:T,onBlur:x,onChange:I,onFocus:P,onKeyDown:A,onKeyUp:k,onValueChanged:N,size:O="m",alignment:R="l",direction:L="h",value:J={files:[],path:""},icon:v=freeSolidSvgIcons.faFileUpload,boxed:S=!1,accept:D,capture:M=!1,noFilesTxt:W="Geen bestand(en) geselecteerd",chooseFileTxt:he="Kies een bestand",formatter:de=X=>X.files.length>0?X.files.map(Y=>Y.name).join(", "):W}){let X=ye=>{_e(!0),x&&x(ye);},Y=ye=>{let zi=Array.from(ye.target.files??[]),Vi=ye.target.value;I&&I(ye),N&&N({files:zi,path:Vi});},[ne,_e]=te__default.default.useState(!1),pe="file has-name";S?pe+=" is-boxed":pe+=" is-fullwidth",O==="s"?pe+=" is-small":O==="l"?pe+=" is-medium":O==="xl"&&(pe+=" is-large"),R==="l"?pe+=" has-text-left":R==="c"?pe+=" has-text-centered":R==="r"&&(pe+=" has-text-right");let me=de(J);return jsxRuntime.jsx(le,{inputId:d??l,label:o??l??d,direction:L,required:c,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:pe,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:y,id:d??l,ref:T,accept:typeof D=="string"?D:D?.join(","),capture:M,name:l,value:"",spellCheck:u,autoComplete:m,required:c,type:"file",inputMode:r,title:s,multiple:e,max:g,maxLength:typeof g=="number"?g:void 0,minLength:typeof p=="number"?p:void 0,min:p,readOnly:f,autoFocus:C,form:b,placeholder:t,disabled:a,onKeyDown:A,onKeyUp:k,onBlur:X,onChange:Y,onFocus:ye=>P&&P(ye,n)}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:typeof v=="string"?jsxRuntime.jsx("i",{className:"icon"}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:v})}),jsxRuntime.jsx("span",{className:"file-label",children:he??l})]}),jsxRuntime.jsx("span",{className:"file-name",children:me??W??""})]}),ne&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(me)})]})})}function zs({placeholder:e,helpTag:t,errorMessage:n="",label:i,disabled:o=!1,title:a,name:r,value:s,required:l=!1,spellCheck:c=!1,id:u,autoComplete:d="off",max:m,min:g,readonly:p=!1,step:f=1,autofocus:y=!1,form:C=void 0,inputRef:b,onBlur:T,onChange:x,onFocus:I,onKeyDown:P,onKeyUp:A,onValueChanged:k,size:N="m",alignment:O="l",direction:R="h",labelHidden:L=!1,icon:J=freeSolidSvgIcons.faCoins,suffix:v="",prefix:S="\u20AC ",decimalScale:D=2,decimalSeparator:M=","}){let W=me=>{de(!0),T&&T(me);},[he,de]=te__default.default.useState(!1),X=me=>{let ye=parseFloat(me.replace(",","."));k&&k([ye,me]);},Y=n?"input is-danger":"input";N==="s"?Y+=" is-small":N==="l"?Y+=" is-medium":N==="xl"&&(Y+=" is-large"),O==="l"?Y+=" has-text-left":O==="c"?Y+=" has-text-centered":O==="r"&&(Y+=" has-text-right"),p&&(Y+=" is-static");let ne;J&&(typeof J=="string"?ne=jsxRuntime.jsx("i",{className:J}):ne=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:J}));let _e;return n&&(n===""?_e=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):_e=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(le,{inputId:u??r,label:i??r??u,labelHidden:L,direction:R,required:l,controlClassName:`control ${J?"has-icons-left":""} ${n!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(Xs__default.default,{className:Y,id:u??r,name:r,autoComplete:d,placeholder:e,disabled:o,spellCheck:c,required:l,decimalSeparator:M,value:typeof s=="number"?s.toString():s[1],min:g,max:m,step:f,title:a,autoFocus:y,form:C,ref:b,decimalScale:D,decimalsLimit:2,suffix:v,prefix:S,onKeyDown:P,onKeyUp:A,onFocus:me=>I&&I(me,t),onBlur:W,onChange:x,onValueChange:me=>X(me??"0")}),he&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(s)}),ne&&jsxRuntime.jsx("span",{className:"icon is-left",children:ne}),_e&&jsxRuntime.jsx("span",{className:"icon is-right",children:_e})]})}function Ws({value:e,min:t="",max:n="",icon:i=freeSolidSvgIcons.faCalendarWeek,onValueChanged:o,...a}){let r=l=>{o&&o(l);},s="";if(e){let[l=void 0,c=void 0]=e.split("-W");l?c?+c>53||+c<0?V('WeekInput value should contain a valid week number, like "2021-W01"'):s=e:V('WeekInput value should contain a week number, like "2021-W01"'):V('WeekInput value should contain a year, like "2021-W01"');}return jsxRuntime.jsx(z,{min:t,max:n,icon:i,type:"week",value:s,onValueChanged:r,...a})}function Us({value:e,min:t="",max:n="",icon:i=freeSolidSvgIcons.faCalendarDays,onValueChanged:o,...a}){let r=l=>{o&&o(l);},s="";if(e){let[l=void 0,c=void 0]=e.split("-");l?c?+c>12||+c<0?V('MonthInput value should contain a valid week number, like "2021-01"'):s=e:V('MonthInput value should contain a week number, like "2021-01"'):V('MonthInput value should contain a year, like "2021-01"');}return jsxRuntime.jsx(z,{min:t,max:n,icon:i,type:"month",value:s,onValueChanged:r,...a})}function el(e,t){switch(t.type){case"add":return [...e,t.item];case"remove":return e.filter(n=>t.item.id!=n.id);case"clear":return []}}function $i(e){let[t,n]=te__default.default.useReducer(el,[]),[i,o]=te__default.default.useState(void 0),[a,r]=te__default.default.useState(void 0),[s,l]=te__default.default.useState(e.clearTime);te__default.default.useEffect(()=>{e.next&&e.next.id!=i&&(o(e.next.id),n({type:"add",item:e.next}));},[e.next]),te__default.default.useEffect(()=>{e.clearTime!=s&&(n({type:"clear",item:void 0}),l(e.clearTime));},[e.clearTime]),te__default.default.useEffect(()=>{if(e.del!=a){let u=t.find(d=>d.id===e.del);n({type:"remove",item:u}),r(e.del);}},[e.del]);let c="notifications-container"+(e.location&&e.location==="bottom"?" at-bottom":" at-top");return jsxRuntime.jsx("div",{className:c,"data-testid":"notifier-container",children:t.map(u=>{let d=u.dismissAfter??u.dismissAfter??e.defaultDismissTime??5e3;return jsxRuntime.jsx(tl,{dismissAfter:d,type:u.type,onClick:m=>u.onClick&&u.onClick(m),onDismiss:()=>n({type:"remove",item:u}),children:u.content},u.id)})})}function tl({children:e,dismissAfter:t,type:n,onDismiss:i,onClick:o}){te__default.default.useEffect(()=>{let l=t>0?setTimeout(()=>{i();},t):null;return ()=>{l&&clearTimeout(l);}},[]);let a=l=>{o&&o(l),i();},r="notification";n==="s"?r+=" is-success":n==="w"?r+=" is-warning":n==="d"?r+=" is-danger":n==="p"?r+=" is-primary":n==="l"?r+=" is-link":r+=" is-info";let s=freeSolidSvgIcons.faInfo;return n==="s"?s=freeSolidSvgIcons.faCheck:n==="w"?s=freeSolidSvgIcons.faExclamation:n==="d"?s=freeSolidSvgIcons.faExclamationTriangle:n==="p"?s=freeSolidSvgIcons.faInfo:n==="l"&&(s=freeSolidSvgIcons.faInfo),jsxRuntime.jsx("div",{onClick:l=>a(l),className:r,style:{zIndex:9999,position:"relative",cursor:o&&"pointer",marginBottom:"0.5em",boxShadow:"2px 2px 20px -4px #333 "},children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:s})}),e]})})}var kn=te__default.default.createContext(null);kn.displayName="NotifierContext";var Oy=e=>{let[t,n]=te__default.default.useState(void 0),[i,o]=te__default.default.useState(void 0),[a,r]=te__default.default.useState(new Date),s=te__default.default.useCallback(d=>(d.id==null&&(d.id=Math.floor(Math.random()*1e7)),n(d),d.id),[n]),l=te__default.default.useCallback(d=>{o(d);},[o]),c=te__default.default.useCallback(()=>{n(void 0),o(void 0),r(new Date);},[o]),u={notify:s,remove:l,clear:c};return jsxRuntime.jsxs(te__default.default.Fragment,{children:[jsxRuntime.jsx($i,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:i,clearTime:a,location:e.location??"top"}),jsxRuntime.jsx(kn.Provider,{value:u,children:e.children})]})};function Ly(){let e=te__default.default.useContext(kn);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var wn,Rn=te__default.default.createContext(null);Rn.displayName="ConfirmContext";function Vy({children:e}){let[t,n]=te__default.default.useReducer(ol,Xt);return jsxRuntime.jsxs(Rn.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(rl,{}),e]})}var Xt={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function ol(e=Xt,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,ok:t.ok??"Ok",cancel:t.cancel??"Annuleren",others:t.others};case"HIDE":return Xt;default:return Xt}}function al(e="OK",t="Annuleren",n=void 0){let i=te__default.default.useContext(Rn);if(!i)throw new Error("useConfirm must be used inside a ConfirmProvider");let o=()=>{s(),wn(!0);},a=()=>{s(),wn(!1);},r=l=>(i.setState({...i.state,type:"SHOW",payload:{content:l},ok:e,cancel:t,others:n}),new Promise(function(c){wn=c;})),s=()=>{i.setState({type:"HIDE",payload:void 0});};return {confirm:r,onConfirm:o,onCancel:a,confirmState:i.state}}function rl(){let{onConfirm:e,onCancel:t,confirmState:n}=al();return n.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",children:jsxRuntime.jsxs(Vt,{children:[typeof n.content=="string"&&jsxRuntime.jsx("p",{children:n?.content}),typeof n.content!="string"&&n?.content,jsxRuntime.jsxs(cn,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(K.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(K.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}
|
|
69
|
+
]+`,autoComplete:o="email",onValueChanged:i,...r}){return jsxRuntime.jsx(V,{icon:t,type:"email",autoComplete:o,pattern:n,value:e,onValueChanged:s=>{i&&i(s);},...r})}function Kr({value:e,autoComplete:t="current-password",icon:n=freeSolidSvgIcons.faKey,name:o,size:i,direction:r,revealPasswordAllowed:a=!1,revealPasswordMsg:s="Toon wachtwoord",iconRevealed:c=freeSolidSvgIcons.faEye,onValueChanged:l,...m}){let[d,u]=ae__default.default.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(V,{size:i,icon:d?c??n:n,direction:r,name:o,autoComplete:t,type:d?"text":"password",value:e,onValueChanged:g=>{l&&l(g);},...m}),a&&jsxRuntime.jsx(fn,{size:i,direction:r,onValueChanged:u,label:s,labelHidden:!0,name:`cb-${o}-reveal-pw`})]})}function Ka({content:e="",onChangeHtml:t,onChangeText:n,onChangeJson:o}){let i=react.useEditor({onUpdate({editor:r}){t&&t(r.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>")),n&&n(r.getText()),o&&o(r.getJSON());},extensions:[Qr__default.default,oa__default.default,ia__default.default.configure(),ra__default.default.configure(),sa__default.default.configure(),aa__default.default.configure(),extensionColor.Color.configure({types:[Ro__default.default.name,Mo__default.default.name]}),jr__default.default.configure(),na__default.default.configure(),pa__default.default.configure({autolink:!0,openOnClick:!0,linkOnPaste:!0,HTMLAttributes:{target:"_blank"}}),da__default.default.configure({allowBase64:!0}),ea__default.default.configure(),ta__default.default.configure(),Ro__default.default.configure(),ba__default.default.configure({multicolor:!0}),la__default.default.configure({keepMarks:!0}),ca__default.default.configure({keepMarks:!0}),Mo__default.default.configure(),ua__default.default.configure(),Ta__default.default.configure(),Sa__default.default.configure(),ma__default.default.configure({types:["heading","paragraph"]}),fa__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),ga__default.default.configure(),ha__default.default.configure(),ya__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Ga,{editor:i}),jsxRuntime.jsx("div",{className:"",children:jsxRuntime.jsx(react.EditorContent,{editor:i,className:"content p-0"})})]})}function Ga({editor:e}){if(!e)return jsxRuntime.jsx(ae__default.default.Fragment,{});let t="button is-small is-primary is-light",n="button is-small is-primary is-inverted";return jsxRuntime.jsxs("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap",children:[jsxRuntime.jsx(Ua,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ne,{mx:3}),jsxRuntime.jsx(Za,{editor:e,classNameInactive:n}),jsxRuntime.jsx(Ne,{mx:3}),jsxRuntime.jsx(Ya,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ne,{mx:3}),jsxRuntime.jsx(qa,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ne,{mx:3}),jsxRuntime.jsx(Qa,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ne,{mx:3}),jsxRuntime.jsx(ja,{editor:e,classNameActive:t,classnameInactive:n})]})}function Ua({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Bold (ctrl + B)",onClick:()=>e.chain().focus().toggleBold().run(),disabled:!e.can().chain().focus().toggleBold().run(),className:e.isActive("bold")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBold})}),jsxRuntime.jsx("button",{title:"Italic (ctrl + I)",onClick:()=>e.chain().focus().toggleItalic().run(),disabled:!e.can().chain().focus().toggleItalic().run(),className:e.isActive("italic")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faItalic})}),jsxRuntime.jsx("button",{title:"Underline (ctrl + U)",onClick:()=>e.chain().focus().toggleUnderline().run(),disabled:!e.can().chain().focus().toggleUnderline().run(),className:e.isActive("underline")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faUnderline})}),jsxRuntime.jsx("button",{title:"Strikethrough (ctrl + shift + X)",onClick:()=>e.chain().focus().toggleStrike().run(),disabled:!e.can().chain().focus().toggleStrike().run(),className:e.isActive("strike")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faStrikethrough})}),jsxRuntime.jsx("button",{title:"Subscript (ctrl + ,)",onClick:()=>{e.chain().focus().toggleSubscript().run(),e.chain().focus().unsetSuperscript().run();},disabled:!e.can().chain().focus().toggleSubscript().run(),className:e.isActive("subscript")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSubscript})}),jsxRuntime.jsx("button",{title:"Superscript (ctrl + .)",onClick:()=>{e.chain().focus().toggleSuperscript().run(),e.chain().focus().unsetSubscript().run();},disabled:!e.can().chain().focus().toggleSuperscript().run(),className:e.isActive("superscript")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSuperscript})})]})}function Za({editor:e,classNameInactive:t}){let n=[{name:"heading 1",level:1},{name:"heading 2",level:2},{name:"heading 3",level:3},{name:"heading 4",level:4},{name:"heading 5",level:5},{name:"heading 6",level:6}],[o,i]=ae__default.default.useState("paragraph"),[r,a]=ae__default.default.useState(e.getAttributes("textStyle").color),[s,c]=ae__default.default.useState(e.getAttributes("textStyle").backgroundColor),l=m=>{if(m==="paragraph")e.chain().focus().setParagraph().run(),i("paragraph");else if(m.startsWith("heading-")){let d=+m.replace("heading-","");e.chain().focus().toggleHeading({level:d}).run(),i(m);}};return ae__default.default.useEffect(()=>{e.isActive("paragraph")?i("paragraph"):n.forEach(m=>{e.isActive("heading",{level:m.level})&&i(`heading-${m.level}`);}),a(e.getAttributes("textStyle").color),c(e.getAttributes("highlight").color);}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("span",{className:"mx-1",children:[jsxRuntime.jsx(Se,{color:r,icon:freeSolidSvgIcons.faFont}),jsxRuntime.jsx("input",{className:"input is-small",style:{width:"5em"},name:"input is-small",type:"color",onInput:m=>e.chain().focus().setColor(m.target.value).run(),value:r})]}),jsxRuntime.jsxs("span",{className:"mx-1",children:[jsxRuntime.jsx(Se,{color:s,icon:freeSolidSvgIcons.faPaintRoller}),jsxRuntime.jsx("input",{name:"color-input-highlight",style:{width:"5em"},className:"input is-small",type:"color",onInput:m=>e.chain().focus().toggleHighlight({color:m.target.value}).run(),value:s})]}),jsxRuntime.jsx("button",{onClick:()=>{e.chain().focus().unsetHighlight().run(),e.chain().focus().unsetColor().run();},className:t,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTextSlash})}),jsxRuntime.jsx("div",{className:"select is-small",children:jsxRuntime.jsxs("select",{name:"select-paragraph-or-heading-type",value:o,onChange:m=>l(m.target.value),children:[jsxRuntime.jsx("option",{value:"",disabled:!0,children:"Selecteer type"}),jsxRuntime.jsx("option",{value:"paragraph",children:"paragraph"}),n.map(m=>jsxRuntime.jsx("option",{value:`heading-${m.level}`,children:m.name},m.name))]})})]})}function Ya({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Align left (ctrl + shift + L)",onClick:()=>e.chain().focus().setTextAlign("left").run(),className:e.isActive({textAlign:"left"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignLeft})}),jsxRuntime.jsx("button",{title:"Align center (ctrl + shift + E)",onClick:()=>e.chain().focus().setTextAlign("center").run(),className:e.isActive({textAlign:"center"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignCenter})}),jsxRuntime.jsx("button",{title:"Align right (ctrl + shift + R)",onClick:()=>e.chain().focus().setTextAlign("right").run(),className:e.isActive({textAlign:"right"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignRight})}),jsxRuntime.jsx("button",{title:"Justify (ctrl + shift + J)",onClick:()=>e.chain().focus().setTextAlign("justify").run(),className:e.isActive({textAlign:"justify"})?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignJustify})})]})}function qa({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"Lijst met punten (unordered)",onClick:()=>e.chain().focus().toggleBulletList().run(),className:e.isActive("bulletList")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListUl})}),jsxRuntime.jsx("button",{title:"Lijst met nummers (ordered)",onClick:()=>e.chain().focus().toggleOrderedList().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListOl})}),jsxRuntime.jsx("button",{title:"Splits dit list-item in 2 items",onClick:()=>e.chain().focus().splitListItem("listItem").run(),disabled:!e.can().splitListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faArrowsDownToLine})}),jsxRuntime.jsx("button",{title:"Indent dit listitem",onClick:()=>e.chain().focus().sinkListItem("listItem").run(),disabled:!e.can().sinkListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faIndent})}),jsxRuntime.jsx("button",{title:"Outdent dit listitem",onClick:()=>e.chain().focus().liftListItem("listItem").run(),disabled:!e.can().liftListItem("listItem"),className:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faOutdent})})]})}function Qa({editor:e,classNameActive:t,classnameInactive:n}){return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().setHorizontalRule().run(),className:n,title:"Voeg een tussenlijn toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faGripLines})}),jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().setHardBreak().run(),className:n,title:"Voeg een extra witregel toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlusMinus})})]}),jsxRuntime.jsx(Ne,{}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"TODO: Voeg een link toe (werkt niet, typ de link gewoon uit)",className:n,onClick:()=>{let o=e.getAttributes("link").href,i=window.prompt("URL",o);if(i!==null){if(i===""){e.chain().focus().extendMarkRange("link").unsetLink().run();return}e.chain().focus().extendMarkRange("link").setLink({href:i}).run();}},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faLink})}),jsxRuntime.jsx("button",{title:"TODO: Voeg een afbeelding toe (werkt niet, prak hem er met HTML in)",className:n,onClick:()=>{let o=window.prompt("URL");o&&e.chain().focus().setImage({src:o}).run();},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faImage})})]}),jsxRuntime.jsx(Ne,{}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{title:"undo ( ctrl + z )",onClick:()=>e.chain().focus().undo().run(),disabled:!e.can().chain().focus().undo().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateLeft})}),jsxRuntime.jsx("button",{title:"redo ( ctrl + shift + z )",onClick:()=>e.chain().focus().redo().run(),disabled:!e.can().chain().focus().redo().run(),className:e.isActive("orderedlist")?t:n,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateRight})}),jsxRuntime.jsx("button",{onClick:()=>e.chain().focus().fixTables().run(),className:n,title:"fix problemen (?)",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBugSlash})})]})]})}function ja({editor:e,classnameInactive:t}){return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),className:t,title:"Nieuwe tabel",children:[jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable}),jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteTable().run(),className:t,title:"verwijder tabel",children:[jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable}),jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]}),jsxRuntime.jsx(Ne,{mx:1}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().addColumnAfter().run(),className:t,title:"nieuwe kolom",children:["Col",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteColumn().run(),className:t,title:"verwijder kolom",children:["Col",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]}),jsxRuntime.jsx(Ne,{mx:1}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().addRowAfter().run(),className:t,title:"nieuwe rij",children:["Row",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlus})]}),jsxRuntime.jsxs("button",{onClick:()=>e.chain().focus().deleteRow().run(),className:t,title:"verwijder rij",children:["Row",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faMinus})]})]})}var Ne=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function ts({value:e,label:t,errorMessage:n="",helpTag:o,id:i,name:r,spellCheck:a=!0,required:s=!1,autoComplete:c="off",placeholder:l,disabled:m=!1,form:d=void 0,readonly:u=!1,autofocus:p=!1,inputRef:g=void 0,max:h,min:T,title:v,size:I="m",alignment:S,direction:x="h",cols:C,rows:b=4,labelHidden:D=!1,onValueChanged:P,onChange:N,onBlur:A,onFocus:L,onKeyDown:E,onKeyUp:z}){let[f,k]=ae__default.default.useState(!1),H=G=>{k(!0),A&&A(G);},te=G=>{N&&N(G),P&&P(G.target.value);},ne="";I==="s"?ne+=" is-small":I==="m"?ne+=" is-normal":I==="l"?ne+=" is-medium":I==="xl"&&(ne+=" is-large");let fe=`textarea ${ne} ${S}`.trim(),M=T?typeof T=="number"?T:+T:void 0,q=h?typeof h=="number"?h:+h:void 0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(ee,{id:i??r,label:t??r,required:s,labelHidden:D,inputId:i??r,direction:x,size:I,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:fe,value:e,id:i??r??t,name:r,spellCheck:a,required:s,autoComplete:c,placeholder:l,disabled:m,form:d,readOnly:u,autoFocus:p,ref:g,maxLength:q,minLength:M,title:v,rows:b,cols:C,onChange:te,onBlur:H,onFocus:G=>L&&L(G,o),onKeyDown:E,onKeyUp:z}),f&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(e)})]})})}function Jo(){let e=ae__default.default.useRef(null),[t,n]=ae__default.default.useState(0),[o,i]=ae__default.default.useState(0),r=ae__default.default.useCallback(()=>{if(e.current){let{selectionStart:a,selectionEnd:s}=e.current;n(a),i(s);}},[]);return ae__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,o);}),{start:t,end:o,ref:e,updateCaret:r}}function rs({value:e,characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:o,...i}){let{ref:r,updateCaret:a}=Jo();return jsxRuntime.jsx(V,{inputRef:r,icon:n,type:"text",value:e,onValueChanged:c=>{if(t){let l=c;if(t==="0-9")l=c.replaceAll(/[^0-9]/g,"");else if(t==="a-z")l=c.toLowerCase().replaceAll(/[^a-z]/g,"");else if(t==="A-Z")l=c.toUpperCase().replaceAll(/[^A-Z]/g,"");else if(t==="a-Z")l=c.replaceAll(/[^a-zA-Z]/g,"");else if(t==="0-Z")l=c.replaceAll(/[^0-9a-zA-Z]/g,"");else if(typeof t=="string"){let m=t??"";l=c.split("").reduce((d,u)=>m.includes(u)?d+u:d,"");}else t instanceof RegExp&&(l=c.replaceAll(new RegExp(t,"g"),""));c=l;}o&&o(c),a();},...i})}function ls({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...o}){let i=r=>{n&&n(typeof r=="number"?r:+r);};return jsxRuntime.jsx(V,{icon:t,type:"number",value:isNaN(e??NaN)?"":e,onValueChanged:i,...o})}function ms({value:e,min:t=0,max:n=100,step:o=1,prefix:i="",suffix:r="",helpTag:a,errorMessage:s="",label:c,disabled:l=!1,title:m,name:d,required:u=!1,id:p,readonly:g=!1,form:h=void 0,inputRef:T,onBlur:v,onChange:I,onFocus:S,onKeyDown:x,onKeyUp:C,onValueChanged:b,direction:D="h",labelHidden:P=!1}){let N=f=>{L(!0),v&&v(f);},[A,L]=ae__default.default.useState(!1),E=f=>{I&&I(f),b&&b(f.target.valueAsNumber);},z=ae__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t,"--min-text":`"${r}${t}${r}"`,"--max":n,"--max-text":`"${r}${n}${r}"`,"--value":e,"--text-value":`${r}${e}${r}`}),[e,r,i]);return jsxRuntime.jsxs(ee,{id:p??d,label:c??d,direction:D,labelHidden:P,required:u,inputId:p??d,size:"m",controlClassName:"control",children:[jsxRuntime.jsxs("div",{className:"range-slider",style:z,children:[jsxRuntime.jsx("input",{type:"range",name:d,id:p??d,min:t,max:n,value:e,step:o,disabled:l,required:u,readOnly:g,form:h,ref:T,title:m,onBlur:N,onChange:E,onKeyDown:x,onKeyUp:C,onFocus:f=>S&&S(f,a)}),jsxRuntime.jsxs("output",{children:[i,e,r]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),A&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)})]})}function ds({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:o,onJSDateTimeValueChanged:i,...r}){let a=c=>{n&&n(c),o&&o(new Date(c)),i&&i(R.fromISO(c));},s="";return typeof e=="string"?s=e.length>10?e.substring(0,10):e:e instanceof Date?s=e.toISOString().substring(0,10):e instanceof R&&(s=e.ISO.substring(0,10)),jsxRuntime.jsx(V,{icon:t,type:"date",value:s,onValueChanged:a,...r})}function gs({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faCalendarDay,onValueChanged:o,onDateValueChanged:i,onJSDateTimeValueChanged:r,...a}){let s=m=>{if(m){if(typeof m=="string")return m}else return "";let d;return m instanceof Date?d=R.fromDate(m):d=m,`${d.yr.toString().padStart(4,"0")}-${d.m.toString().padStart(2,"0")}-${d.d.toString().padStart(2,"0")} ${d.hr.toString().padStart(2,"0")}:${d.min.toString().padStart(2,"0")}:${d.sec.toString().padStart(2,"0")}`},c=m=>{if(o&&o(m),m!==""&&(i||r)){let d=R.fromISO(m);console.log(d),i&&i(d.JSDate),r&&r(d);}},l=s(e);return jsxRuntime.jsx(V,{step:t?1:60,icon:n,type:"datetime-local",value:l,onValueChanged:c,...a})}function Ts({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faClockFour,onValueChanged:o,onDateValueChanged:i,onJSDateTimeValueChanged:r,...a}){let s=m=>{if(m){if(typeof m=="string")return m}else return "";let d=[0,0,void 0];return m instanceof Date?(d[0]=m.getHours(),d[1]=m.getMinutes(),t&&(d[2]=m.getSeconds())):(d[0]=m.hour,d[1]=m.minute,t&&(d[2]=m.second)),d.filter(u=>!!u).map(u=>u?.toString().padStart(2,"0")).join(":")},c=m=>{if(o&&o(m),i||r){let d=R.from({hour:parseInt(m.substring(0,2)),minute:parseInt(m.substring(3,5)),second:parseInt(m.substring(6,8))??0});i&&i(d.JSDate),r&&r(d);}},l=s(e);return jsxRuntime.jsx(V,{step:t?1:60,icon:n,type:"time",value:l,onValueChanged:c,...a})}function Ps({multiple:e=!1,placeholder:t,helpTag:n,errorMessage:o="",label:i,disabled:r=!1,keyboardType:a="none",title:s,name:c,required:l=!1,spellCheck:m=!1,id:d,autoComplete:u="off",max:p,min:g,readonly:h=!1,pattern:T=void 0,autofocus:v=!1,form:I=void 0,inputRef:S,onBlur:x,onChange:C,onFocus:b,onKeyDown:D,onKeyUp:P,onValueChanged:N,size:A="m",alignment:L="l",direction:E="h",value:z={files:[],path:""},icon:f=freeSolidSvgIcons.faFileUpload,boxed:k=!1,accept:H,capture:te=!1,noFilesTxt:ne="Geen bestand(en) geselecteerd",chooseFileTxt:ye="Kies een bestand",formatter:fe=M=>M.files.length>0?M.files.map(q=>q.name).join(", "):ne}){let M=K=>{Ae(!0),x&&x(K);},q=K=>{let se=Array.from(K.target.files??[]),$e=K.target.value;C&&C(K),N&&N({files:se,path:$e});},[G,Ae]=ae__default.default.useState(!1),F="file has-name";k?F+=" is-boxed":F+=" is-fullwidth",A==="s"?F+=" is-small":A==="l"?F+=" is-medium":A==="xl"&&(F+=" is-large"),L==="l"?F+=" has-text-left":L==="c"?F+=" has-text-centered":L==="r"&&(F+=" has-text-right");let J=fe(z);return jsxRuntime.jsx(ee,{id:d??c,inputId:d??c,label:i??c??d,direction:E,required:l,size:A,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:F,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:T,id:d??c,ref:S,accept:typeof H=="string"?H:H?.join(","),capture:te,name:c,value:"",spellCheck:m,autoComplete:u,required:l,type:"file",inputMode:a,title:s,multiple:e,max:p,maxLength:typeof p=="number"?p:void 0,minLength:typeof g=="number"?g:void 0,min:g,readOnly:h,autoFocus:v,form:I,placeholder:t,disabled:r,onKeyDown:D,onKeyUp:P,onBlur:M,onChange:q,onFocus:K=>b&&b(K,n)}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:typeof f=="string"?jsxRuntime.jsx("i",{className:"icon"}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:f})}),jsxRuntime.jsx("span",{className:"file-label",children:ye??c})]}),jsxRuntime.jsx("span",{className:"file-name",children:J??ne??""})]}),G&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof o=="string"?o:o(J)})]})})}function Es({placeholder:e,helpTag:t,errorMessage:n="",label:o,disabled:i=!1,title:r,name:a,value:s=["0",0],required:c=!1,spellCheck:l=!1,id:m,autoComplete:d="off",max:u,min:p,readonly:g=!1,step:h=1,autofocus:T=!1,form:v=void 0,inputRef:I,onBlur:S,onChange:x,onFocus:C,onKeyDown:b,onKeyUp:D,onValueChanged:P,size:N="m",alignment:A="l",direction:L="h",labelHidden:E=!1,icon:z=freeSolidSvgIcons.faCoins,suffix:f="",prefix:k="\u20AC ",decimalScale:H=2,decimalSeparator:te=","}){let ne=J=>{fe(!0),S&&S(J);},[ye,fe]=ae__default.default.useState(!1),M=J=>{let K=parseFloat(J.replace(",","."));P&&P([J,K]);},q=n?"input is-danger":"input";N==="s"?q+=" is-small":N==="l"?q+=" is-medium":N==="xl"&&(q+=" is-large"),A==="l"?q+=" has-text-left":A==="c"?q+=" has-text-centered":A==="r"&&(q+=" has-text-right"),g&&(q+=" is-static");let G;z&&(typeof z=="string"?G=jsxRuntime.jsx("i",{className:z}):G=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:z}));let Ae;return n&&(n===""?Ae=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):Ae=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(ee,{id:m??a,inputId:m??a,label:o??a??m,size:N,labelHidden:E,direction:L,required:c,controlClassName:`control ${z?"has-icons-left":""} ${n!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(As__default.default,{className:q,id:m??a,name:a,autoComplete:d,placeholder:e,disabled:i,spellCheck:l,required:c,decimalSeparator:te,value:typeof s=="string"?s:s[1],min:p,max:u,step:h,title:r,autoFocus:T,form:v,ref:I,decimalScale:H,decimalsLimit:2,suffix:f,prefix:k,onKeyDown:b,onKeyUp:D,onFocus:J=>C&&C(J,t),onBlur:ne,onChange:x,onValueChange:J=>M(J??"0")}),ye&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(s)}),G&&jsxRuntime.jsx("span",{className:"icon is-left",children:G}),Ae&&jsxRuntime.jsx("span",{className:"icon is-right",children:Ae})]})}function Rs({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarWeek,onValueChanged:i,...r}){let a=c=>{i&&i(c);},s="";if(e){let[c=void 0,l=void 0]=e.split("-W");c?l?+l>53||+l<0?W('WeekInput value should contain a valid week number, like "2021-W01"'):s=e:W('WeekInput value should contain a week number, like "2021-W01"'):W('WeekInput value should contain a year, like "2021-W01"');}return jsxRuntime.jsx(V,{min:t,max:n,icon:o,type:"week",value:s,onValueChanged:a,...r})}function Js({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarDays,onValueChanged:i,...r}){let a=c=>{i&&i(c);},s="";if(e){let[c=void 0,l=void 0]=e.split("-");c?l?+l>12||+l<0?W('MonthInput value should contain a valid week number, like "2021-01"'):s=e:W('MonthInput value should contain a week number, like "2021-01"'):W('MonthInput value should contain a year, like "2021-01"');}return jsxRuntime.jsx(V,{min:t,max:n,icon:o,type:"month",value:s,onValueChanged:a,...r})}function $s(e,t){switch(t.type){case"add":return [...e,t.item];case"remove":return e.filter(n=>t.item.id!=n.id);case"clear":return []}}function Lo(e){let[t,n]=ae__default.default.useReducer($s,[]),[o,i]=ae__default.default.useState(void 0),[r,a]=ae__default.default.useState(void 0),[s,c]=ae__default.default.useState(e.clearTime);ae__default.default.useEffect(()=>{e.next&&e.next.id!=o&&(i(e.next.id),n({type:"add",item:e.next}));},[e.next]),ae__default.default.useEffect(()=>{e.clearTime!=s&&(n({type:"clear",item:void 0}),c(e.clearTime));},[e.clearTime]),ae__default.default.useEffect(()=>{if(e.del!=r){let m=t.find(d=>d.id===e.del);n({type:"remove",item:m}),a(e.del);}},[e.del]);let l="notifications-container"+(e.location&&e.location==="bottom"?" at-bottom":" at-top");return jsxRuntime.jsx("div",{className:l,"data-testid":"notifier-container",children:t.map(m=>{let d=m.dismissAfter??m.dismissAfter??e.defaultDismissTime??5e3;return jsxRuntime.jsx(zs,{dismissAfter:d,type:m.type,onClick:u=>m.onClick&&m.onClick(u),onDismiss:()=>n({type:"remove",item:m}),children:m.content},m.id)})})}function zs({children:e,dismissAfter:t,type:n,onDismiss:o,onClick:i}){ae__default.default.useEffect(()=>{let c=t>0?setTimeout(()=>{o();},t):null;return ()=>{c&&clearTimeout(c);}},[]);let r=c=>{i&&i(c),o();},a="notification";n==="s"?a+=" is-success":n==="w"?a+=" is-warning":n==="d"?a+=" is-danger":n==="p"?a+=" is-primary":n==="l"?a+=" is-link":a+=" is-info";let s=freeSolidSvgIcons.faInfo;return n==="s"?s=freeSolidSvgIcons.faCheck:n==="w"?s=freeSolidSvgIcons.faExclamation:n==="d"?s=freeSolidSvgIcons.faExclamationTriangle:n==="p"?s=freeSolidSvgIcons.faInfo:n==="l"&&(s=freeSolidSvgIcons.faInfo),jsxRuntime.jsx("div",{onClick:c=>r(c),className:a,style:{zIndex:9999,position:"relative",cursor:i&&"pointer",marginBottom:"0.5em",boxShadow:"2px 2px 20px -4px #333 "},children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:s})}),e]})})}var xn=ae__default.default.createContext(null);xn.displayName="NotifierContext";var vh=e=>{let[t,n]=ae__default.default.useState(void 0),[o,i]=ae__default.default.useState(void 0),[r,a]=ae__default.default.useState(new Date),s=ae__default.default.useCallback(d=>(d.id==null&&(d.id=Math.floor(Math.random()*1e7)),n(d),d.id),[n]),c=ae__default.default.useCallback(d=>{i(d);},[i]),l=ae__default.default.useCallback(()=>{n(void 0),i(void 0),a(new Date);},[i]),m={notify:s,remove:c,clear:l};return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Lo,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:o,clearTime:r,location:e.location??"top"}),jsxRuntime.jsx(xn.Provider,{value:m,children:e.children})]})};function Ch(){let e=ae__default.default.useContext(xn);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var Nn,An=ae__default.default.createContext(null);An.displayName="ConfirmContext";function Ah({children:e}){let[t,n]=ae__default.default.useReducer(_s,Lt);return jsxRuntime.jsxs(An.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(Gs,{}),e]})}var Lt={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function _s(e=Lt,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,ok:t.ok??"Ok",cancel:t.cancel??"Annuleren",others:t.others};case"HIDE":return Lt;default:return Lt}}function Ks(e="OK",t="Annuleren",n=void 0){let o=ae__default.default.useContext(An);if(!o)throw new Error("useConfirm must be used inside a ConfirmProvider");let i=()=>{s(),Nn(!0);},r=()=>{s(),Nn(!1);},a=c=>(o.setState({...o.state,type:"SHOW",payload:{content:c},ok:e,cancel:t,others:n}),new Promise(function(l){Nn=l;})),s=()=>{o.setState({type:"HIDE",payload:void 0});};return {confirm:a,onConfirm:i,onCancel:r,confirmState:o.state}}function Gs(){let{onConfirm:e,onCancel:t,confirmState:n}=Ks();return n.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",children:jsxRuntime.jsxs(Xt,{children:[typeof n.content=="string"&&jsxRuntime.jsx("p",{children:n?.content}),typeof n.content!="string"&&n?.content,jsxRuntime.jsxs(an,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(Z.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(Z.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}
|
|
70
70
|
|
|
71
|
-
exports.AspectRatio =
|
|
72
|
-
exports.Box =
|
|
73
|
-
exports.Button =
|
|
74
|
-
exports.ButtonGroup =
|
|
75
|
-
exports.CB =
|
|
76
|
-
exports.Calendar =
|
|
77
|
-
exports.CheckBox =
|
|
78
|
-
exports.ColorInput =
|
|
79
|
-
exports.Column =
|
|
80
|
-
exports.Columns =
|
|
81
|
-
exports.ConfirmProvider =
|
|
71
|
+
exports.AspectRatio = zo;
|
|
72
|
+
exports.Box = Xt;
|
|
73
|
+
exports.Button = Z;
|
|
74
|
+
exports.ButtonGroup = an;
|
|
75
|
+
exports.CB = Io;
|
|
76
|
+
exports.Calendar = Ar;
|
|
77
|
+
exports.CheckBox = fn;
|
|
78
|
+
exports.ColorInput = Lr;
|
|
79
|
+
exports.Column = we;
|
|
80
|
+
exports.Columns = _o;
|
|
81
|
+
exports.ConfirmProvider = Ah;
|
|
82
82
|
exports.Container = yt;
|
|
83
|
-
exports.Content =
|
|
84
|
-
exports.CurrencyInput =
|
|
85
|
-
exports.DOTS =
|
|
86
|
-
exports.DataTable =
|
|
87
|
-
exports.DateInput =
|
|
88
|
-
exports.DateTimeInput =
|
|
83
|
+
exports.Content = Go;
|
|
84
|
+
exports.CurrencyInput = Es;
|
|
85
|
+
exports.DOTS = Pt;
|
|
86
|
+
exports.DataTable = fi;
|
|
87
|
+
exports.DateInput = ds;
|
|
88
|
+
exports.DateTimeInput = gs;
|
|
89
89
|
exports.DefinedHexColors = at;
|
|
90
|
-
exports.EmailInput =
|
|
91
|
-
exports.FileInput =
|
|
92
|
-
exports.Footer =
|
|
93
|
-
exports.Hero =
|
|
94
|
-
exports.HiddenInput =
|
|
95
|
-
exports.IbanDetailsPerLand =
|
|
96
|
-
exports.Icon =
|
|
97
|
-
exports.IconText =
|
|
98
|
-
exports.Image =
|
|
99
|
-
exports.Indicator =
|
|
100
|
-
exports.Input =
|
|
101
|
-
exports.JSDateTime =
|
|
102
|
-
exports.JSDuration =
|
|
103
|
-
exports.Kbd =
|
|
104
|
-
exports.Kbds =
|
|
105
|
-
exports.Link =
|
|
106
|
-
exports.LinkButton =
|
|
90
|
+
exports.EmailInput = $r;
|
|
91
|
+
exports.FileInput = Ps;
|
|
92
|
+
exports.Footer = Zo;
|
|
93
|
+
exports.Hero = bt;
|
|
94
|
+
exports.HiddenInput = Hr;
|
|
95
|
+
exports.IbanDetailsPerLand = gr;
|
|
96
|
+
exports.Icon = Se;
|
|
97
|
+
exports.IconText = Ci;
|
|
98
|
+
exports.Image = Yo;
|
|
99
|
+
exports.Indicator = Ii;
|
|
100
|
+
exports.Input = V;
|
|
101
|
+
exports.JSDateTime = R;
|
|
102
|
+
exports.JSDuration = ao;
|
|
103
|
+
exports.Kbd = Zt;
|
|
104
|
+
exports.Kbds = Ai;
|
|
105
|
+
exports.Link = pr;
|
|
106
|
+
exports.LinkButton = dr;
|
|
107
107
|
exports.Menu = Nt;
|
|
108
|
-
exports.Message =
|
|
109
|
-
exports.Modal =
|
|
110
|
-
exports.MonthInput =
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.
|
|
132
|
-
exports.
|
|
133
|
-
exports.
|
|
134
|
-
exports.
|
|
135
|
-
exports.
|
|
136
|
-
exports.
|
|
137
|
-
exports.
|
|
138
|
-
exports.
|
|
139
|
-
exports.
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
145
|
-
exports.
|
|
146
|
-
exports.
|
|
147
|
-
exports.
|
|
148
|
-
exports.
|
|
149
|
-
exports.
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
152
|
-
exports.
|
|
153
|
-
exports.
|
|
154
|
-
exports.
|
|
155
|
-
exports.
|
|
156
|
-
exports.
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
108
|
+
exports.Message = le;
|
|
109
|
+
exports.Modal = At;
|
|
110
|
+
exports.MonthInput = Js;
|
|
111
|
+
exports.Notification = me;
|
|
112
|
+
exports.Notifier = Lo;
|
|
113
|
+
exports.NotifierProvider = vh;
|
|
114
|
+
exports.NumberInput = ls;
|
|
115
|
+
exports.PasswordInput = Kr;
|
|
116
|
+
exports.ProgressBar = Gi;
|
|
117
|
+
exports.RB = hn;
|
|
118
|
+
exports.RadioGroup = Ao;
|
|
119
|
+
exports.RangeInput = ms;
|
|
120
|
+
exports.ScrollArea = ni;
|
|
121
|
+
exports.Section = Qo;
|
|
122
|
+
exports.Select = xe;
|
|
123
|
+
exports.SimpleTable = Zi;
|
|
124
|
+
exports.Steps = tn;
|
|
125
|
+
exports.Subtitle = eo;
|
|
126
|
+
exports.TabBar = Yn;
|
|
127
|
+
exports.Tag = nn;
|
|
128
|
+
exports.Tags = rr;
|
|
129
|
+
exports.TextArea = ts;
|
|
130
|
+
exports.TextEditor = Ka;
|
|
131
|
+
exports.TextInput = rs;
|
|
132
|
+
exports.TimeInput = Ts;
|
|
133
|
+
exports.TimeLine = on;
|
|
134
|
+
exports.Title = jn;
|
|
135
|
+
exports.TitleWithSubtitle = sr;
|
|
136
|
+
exports.ToggleBar = rn;
|
|
137
|
+
exports.Tooltip = de;
|
|
138
|
+
exports.WeekInput = Rs;
|
|
139
|
+
exports.calculateTxtColor = be;
|
|
140
|
+
exports.getHotkeyHandler = kl;
|
|
141
|
+
exports.getHotkeyMatcher = Jn;
|
|
142
|
+
exports.hasBSN = Pm;
|
|
143
|
+
exports.hexToHSL = co;
|
|
144
|
+
exports.hexToRGB = sn;
|
|
145
|
+
exports.hslToHex = lo;
|
|
146
|
+
exports.isIBAN = Nm;
|
|
147
|
+
exports.parseHotkey = ii;
|
|
148
|
+
exports.rgbToHex = so;
|
|
149
|
+
exports.useBoolToggle = Vl;
|
|
150
|
+
exports.useClipboard = Cl;
|
|
151
|
+
exports.useConfirm = Ks;
|
|
152
|
+
exports.useDebouncedValue = Bn;
|
|
153
|
+
exports.useHotkeys = Al;
|
|
154
|
+
exports.useLocalStoredState = Jl;
|
|
155
|
+
exports.useNotifier = Ch;
|
|
156
|
+
exports.usePagination = Hn;
|
|
157
|
+
exports.useSessionStoredState = ql;
|
|
158
|
+
exports.useToggle = li;
|
|
159
|
+
exports.useUncontrolled = On;
|
|
160
|
+
exports.useValidatedState = Kl;
|