loon-bulma-react 2023.1.7 → 2023.1.8

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 CHANGED
@@ -63,7 +63,7 @@ var xa__default = /*#__PURE__*/_interopDefault(xa);
63
63
  var Na__default = /*#__PURE__*/_interopDefault(Na);
64
64
  var Bs__default = /*#__PURE__*/_interopDefault(Bs);
65
65
 
66
- var Vo=Object.defineProperty;var zo=(e,t,n)=>t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var De=(e,t,n)=>(zo(e,typeof t!="symbol"?t+"":t,n),n);var at=(s=>(s.Primary="#0089b6",s.Info="#3b59ec",s.Link="2f47bc",s.Success="#519c43",s.Danger="#d91000",s.Warning="#eea720",s))(at||{});function _o({ratio:e="1by1",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})]})}function $t({children:e,className:t="",styles:n={}}){return jsxRuntime.jsx("div",{className:`bulma-box ${t}`.trim(),style:n,children:e})}function Go({children:e,gap:t,multiline:n,centered:o,className:i,styles:r}){let s="columns";return t&&(s+=` is-${t} is-variable`),n&&(s+=" is-multiline"),o&&(s+=" is-centered"),i&&(s+=` ${i}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:s,style:r,children:e})}var H=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:t,style:n,children:e}),Re=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(H,{...e,className:t})};Re.Full=e=>jsxRuntime.jsx(H,{...e,className:`column is-full ${e.className}`,styles:e.styles});Re.Half=e=>jsxRuntime.jsx(H,{...e,className:`column is-half ${e.className}`,styles:e.styles});Re.Thirds={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-third ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-thirds ${e.className}`,styles:e.styles})};Re.Quarters={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-quarter ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-quarters ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-three-quarters ${e.className}`,styles:e.styles})};Re.Fifths={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-fifth ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-fifths ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-three-fifths ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(H,{...e,className:`column is-four-fifths ${e.className}`,styles:e.styles})};Re.Twelves={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-1 ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-2 ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-3 ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(H,{...e,className:`column is-4 ${e.className}`,styles:e.styles}),Five:e=>jsxRuntime.jsx(H,{...e,className:`column is-5 ${e.className}`,styles:e.styles}),Six:e=>jsxRuntime.jsx(H,{...e,className:`column is-6 ${e.className}`,styles:e.styles}),Seven:e=>jsxRuntime.jsx(H,{...e,className:`column is-7 ${e.className}`,styles:e.styles}),Eight:e=>jsxRuntime.jsx(H,{...e,className:`column is-8 ${e.className}`,styles:e.styles}),Nine:e=>jsxRuntime.jsx(H,{...e,className:`column is-9 ${e.className}`,styles:e.styles}),Ten:e=>jsxRuntime.jsx(H,{...e,className:`column is-10 ${e.className}`,styles:e.styles}),Eleven:e=>jsxRuntime.jsx(H,{...e,className:`column is-11 ${e.className}`,styles:e.styles}),Twelve:e=>jsxRuntime.jsx(H,{...e,className:`column is-12 ${e.className}`,styles:e.styles})};Re.displayName="Column";var ve=({className:e,children:t,styles:n,size:o="s"})=>{let i="container";return o==="m"?i+=" is-widescreen":o==="l"?i+=" is-fullhd":o==="xl"&&(i+=" is-fluid"),e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};ve.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"s",children:t});ve.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"m",children:t});ve.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"l",children:t});ve.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"xl",children:t});function Zo({size:e="m",className:t,styles:n,children:o}){let i="content ";return e==="s"?i+="is-small":e==="m"||e==="l"?i+="is-medium":e==="xl"&&(i+="is-large"),t&&(i+=" "+t),jsxRuntime.jsx("div",{className:i,style:n,children:o})}function qo({children:e,alignment:t="l",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}`),r=r.trim(),jsxRuntime.jsx("footer",{className:r,style:o,children:jsxRuntime.jsx("div",{className:i,children:e})})}var Tt=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})},Xt=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})})]})})};Xt.Button=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,onClick:e.onClick,children:e.children});Xt.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});Tt.Head=Xt;Tt.Body=e=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e.children})});var Vt=e=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:"tabs is-boxed is-fullwidth container",children:e.children})});Vt.NavList=e=>jsxRuntime.jsx("ul",{children:e.children});Vt.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})});Tt.Foot=Vt;function Qo({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:i,isRounded:r,src:s}){let a=`image is-${e}`;return e==="square"&&(a=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:i,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:a,children:[jsxRuntime.jsx("img",{className:r&&e==="square"?"is-rounded":void 0,src:s,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function ei({children:e,className:t,styles:n}){let o="section";return t&&(o+=` ${t}`),jsxRuntime.jsx("section",{className:o,style:n,children:e})}var ni=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,s=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${s}`;}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,s)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:r},s))})},oi=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))})},ii={Horizontal:ni,Vertical:oi};function Wt({alignment:e="l",autoComplete:t="off",autofocus:n=!1,disabled:o=!1,errorMessage:i="",infoMessage:r=void 0,form:s=void 0,helpTag:a,id:l,inputRef:c,keyboardType:m="text",max:d,min:u,name:p,pattern:h=void 0,placeholder:f,readonly:T=!1,required:C=!1,size:v="m",spellCheck:S=!1,step:y=1,title:N,type:b="text",value:k,className:P="",styles:A={},onBlur:E,onChange:M,onFocus:I,onKeyDown:F,onKeyUp:x,onValueChanged:K}){let se=U=>{K&&K(U.target.value),M&&M(U);},G=i?"input is-danger":"input";return v==="s"?G+=" is-small":v==="l"?G+=" is-medium":v==="xl"&&(G+=" is-large"),e==="l"?G+=" has-text-left":e==="c"?G+=" has-text-centered":e==="r"&&(G+=" has-text-right"),T&&(G+=" is-static"),P&&(G+=` ${P}`),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:G,pattern:h,id:l??p,ref:c,name:p,value:k,spellCheck:S,autoComplete:t,required:C,type:b,title:N,max:d,maxLength:typeof d=="number"?d:void 0,minLength:typeof u=="number"?u:void 0,min:u,step:y,readOnly:T,autoFocus:n,form:s,inputMode:m,placeholder:f,disabled:o,style:A,onKeyDown:F,onKeyUp:x,onBlur:E,onChange:se,onFocus:U=>I&&I(U,a)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(k)}),r&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof r=="string"?r:r(k)})]})}function $({direction:e="h",errorMessage:t="",icon:n=freeSolidSvgIcons.faKeyboard,id:o,label:i,labelHidden:r=!1,name:s,required:a=!1,size:l="m",onBlur:c,...m}){let d=C=>{p(!0),c&&c(C);},[u,p]=ae__default.default.useState(!1),h;n&&(typeof n=="string"?h=jsxRuntime.jsx("i",{className:n}):h=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n}));let f;return t&&(t===""?f=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):f=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(oe,{id:o??s,size:l,inputId:o??s,label:i??s??o,direction:e,required:a,controlClassName:`control ${n?"has-icons-left":""} ${t!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(Wt,{required:a,name:s,size:l,onBlur:d,id:o,...m,errorMessage:u?t:""}),h&&jsxRuntime.jsx("span",{className:"icon is-left",children:h}),f&&jsxRuntime.jsx("span",{className:"icon is-right",children:f})]})}function oe({children:e,controlClassName:t="control",direction:n="h",id:o,inputId:i=void 0,label:r,labelHidden:s=!1,required:a,size:l}){let c="is-normal";l==="s"?c+=" is-small":l==="l"?c+=" is-medium":l==="xl"&&(c+=" is-large");let m=`label ${c} ${s?"is-sr-only":""}`;return n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal",id:o,children:[jsxRuntime.jsx("div",{className:`field-label ${c}`,children:jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,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:t,children:e})})})]}):jsxRuntime.jsxs("div",{className:"field",id:o,children:[jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,a&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:t,children:e})]})}function Ml(e=2e3){let[t,n]=ae__default.default.useState(null),[o,i]=ae__default.default.useState(!1),[r,s]=ae__default.default.useState(null),a=m=>{clearTimeout(r),s(setTimeout(()=>i(!1),e)),i(m);};return {copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>a(!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 Ln(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),s=ae__default.default.useRef(!1),a=()=>window.clearTimeout(r.current);return ae__default.default.useEffect(()=>{i.current&&(!s.current&&t.leading?(s.current=!0,o(e)):(a(),r.current=window.setTimeout(()=>{s.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),ae__default.default.useEffect(()=>(i.current=!0,a),[]),[n,a]}function ci(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 mi(e,t){let{alt:n,ctrl:o,meta:i,mod:r,shift:s,key:a}=e,{altKey:l,ctrlKey:c,metaKey:m,shiftKey:d,key:u}=t;if(n!==l)return !1;if(r){if(!c&&!m)return !1}else if(o!==c||i!==m)return !1;return s!==d?!1:!!(a&&(u.toLowerCase()===a.toLowerCase()||t.code.replace("Key","").toLowerCase()===a.toLowerCase()))}function Hn(e){return t=>mi(ci(e),t)}function Hl(e){return t=>{e.forEach(([n,o])=>{Hn(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function ui(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Fl(e){ae__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,i])=>{Hn(o)(n)&&ui(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 Kl({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 l=window.localStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useLocalStoredState failed to get the value: ${l.message}`),t}}),s=ae__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[]),a=ae__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[]);return [i,s,a]}function Fn({value:e,defaultValue:t,finalValue:n,rule:o,onChange:i,onValueUpdate:r}){let s=o(e),a=ae__default.default.useRef("initial"),l=o(t)?t:n,[c,m]=ae__default.default.useState(l),d=s?e:c;!s&&a.current==="controlled"&&(d=n),a.current=s?"controlled":"uncontrolled";let u=a.current,p=h=>{typeof i=="function"&&i(h),u==="uncontrolled"&&m(h);};return ae__default.default.useEffect(()=>{u==="uncontrolled"&&m(d),typeof r=="function"&&r(d);},[u,d]),[d,p,a.current]}var Pt="dots";function Xn({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:i=1,onChange:r=()=>{}}){let[s,a]=Fn({value:o,onChange:r,defaultValue:i,finalValue:i,rule:f=>typeof f=="number"&&f<=e}),l=f=>{f<=0?a(1):f>e?a(e):a(f);},c=()=>l((s??0)+1),m=()=>l((s??0)-1),d=()=>l(1),u=()=>l(e),p=ae__default.default.useCallback((f,T)=>{let C=T-f+1;return Array.from({length:C},(v,S)=>S+f)},[]);return {range:ae__default.default.useMemo(()=>{if(t*2+3+n*2>=e)return p(1,e);let T=Math.max((s??0)-t,n),C=Math.min((s??0)+t,e-n),v=T>n+2,S=C<e-(n+1);if(!v&&S){let y=t*2+n+2;return [...p(1,y),Pt,...p(e-(n-1),e)]}if(v&&!S){let y=n+1+2*t;return [...p(1,n),Pt,...p(e-y,e)]}return [...p(1,n),Pt,...p(T,C),Pt,...p(e-n+1,e)]},[e,t,s]),active:s,setPage:l,next:c,prev:m,first:d,last:u}}function pi(e,t){let[n,o]=ae__default.default.useState(e);return [n,r=>{o(typeof r<"u"?r:s=>s===t[0]?t[1]:t[0]);}]}function ec(e=!1){return pi(e,[!0,!1])}function oc(e,t){let[n,o]=t?t(e):[!0,""],[i,r]=ae__default.default.useState(e??void 0),[s,a]=ae__default.default.useState(n),[l,c]=ae__default.default.useState(o),[m,d]=ae__default.default.useState(n?e:void 0);return [{value:i,lastValidValue:m,valid:s,invalidMsg:l},p=>{let[h,f]=t?t(p):[!0,""];h&&d(p),a(h),c(f),r(p);}]}function lc({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 l=window.sessionStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useSessionStoredState failed to get the value: ${l.message}`),t}}),s=ae__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[]),a=ae__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[]);return [i,s,a]}var Ce=({color:e="p",size:t="m",rotation:n=0,icon:o,flip:i=void 0,animate:r=void 0})=>{let s="icon",a="1x";switch(e==="s"?s+=" has-text-success":e==="d"?s+=" has-text-danger":e==="w"?s+=" has-text-warning":e==="p"?s+=" has-text-primary":e==="i"?s+=" has-text-info":e==="l"&&(s+=" has-text-link"),t){case"s":a="sm",s+=" is-small";break;case"m":a="1x",s+=" is-normal";break;case"l":a="2x",s+=" is-medium";break;case"xl":a="3x",s+=" is-large";break;default:a="1x",s+=" is-normal";break}return typeof o=="string"?jsxRuntime.jsx("span",{className:s,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:s,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:a,rotation:n===0?void 0:n,flip:i,spin:r==="spin",pulse:r==="pulse"})})},Yt=({icon:e,size:t="m",color:n="p",rotation:o=0,flip:i=void 0,animate:r=void 0,children:s})=>{let a="icon-text";return n==="s"?a+=" has-text-success":n==="d"?a+=" has-text-danger":n==="w"?a+=" has-text-warning":n==="p"?a+=" has-text-primary":n==="i"?a+=" has-text-info":a+=" has-text-link",jsxRuntime.jsxs("span",{className:a,role:"icon-with-text",children:[jsxRuntime.jsx(Ce,{icon:e,size:t,color:n,rotation:o,flip:i,animate:r}),jsxRuntime.jsx("span",{children:s})]})};function qt({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:i=!1,hidePrev:r=!1,hideNext:s=!1,hideNumbers:a=!1,set:l=p=>{},first:c=()=>{},last:m=()=>{},prev:d=()=>{},next:u=()=>{}}){let p="pagination";return n==="s"?p+=" is-small":n==="m"?p+=" is-normal":n==="l"?p+=" is-medium":n==="xl"&&(p+=" is-large"),jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsxs("ul",{className:"pagination-list",children:[!o&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"eerste pagina",onClick:c,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardFast})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:d,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!a&&e.map((h,f)=>h==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},h+f):h!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${h}`,onClick:()=>l(h),children:h})},h):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${h}`,onClick:()=>l(h),children:h})},h)),!s&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:u,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:m,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}function Ii({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,striped:i=!1,fullwidth:r=!1,bordered:s=!1,hoverable:a=!1,hidePagination:l=!1,hideSearch:c=!1,headerContent:m=void 0,footerContent:d=void 0,size:u="s",maxRows:p=20,searchPlaceholder:h="Zoek ...",rowIdentifier:f="id",onSearch:T=(N,b)=>b.filter(k=>JSON.stringify(k).includes(N)),onRowSelected:C,rowClass:v,renderWhenNoData:S=N=>N?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:y=(N,b,k)=>k===""?`Toon ${b} rijen`:`Toon ${N} van ${b} rijen`}){let N=X=>{ye(1),A(X);},[b,k]=ae__default.default.useState(()=>n||t.findIndex(X=>X.sort!==void 0)+1),[P,A]=ae__default.default.useState(""),[E]=Ln(P,{delay:100}),M=[...P===""?e:T(E,e)];M.sort(t[b-1]?.sort??(()=>0)),b<0&&M.reverse();let I=p===0?M.length:p,{range:F,active:x,next:K,prev:se,first:G,last:U,setPage:ye}=Xn({total:Math.ceil(M.length/I)}),be=M.slice(((x??1)-1)*I,(x??1)*I),J="table";return s&&(J+=" is-bordered"),o&&(J+=" is-narrow"),i&&(J+=" is-striped"),r&&(J+=" is-fullwidth"),a&&(J+=" is-hoverable"),jsxRuntime.jsxs("table",{className:J,children:[jsxRuntime.jsx(Ni,{cols:t,size:u,searchValue:P,filterCount:M.length,dataCount:e.length,hideSearch:c,onSearchValueChanged:N,searchPlaceholder:h,infoMessage:y,sortColNum:b,onSortIndexChanged:k,children:m}),be.length>0&&jsxRuntime.jsx(xi,{rows:be,rowIdentifier:f,cols:t,onRowSelected:C,rowClass:v}),be.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:t.length,children:S(P!=="")})})}),jsxRuntime.jsx(ki,{size:u,cols:t,currentPage:x??1,hidePagination:l,range:F,next:K,prev:se,first:G,last:U,set:ye,children:d})]})}function xi({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:i=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(r=>{let s=typeof o=="function"?o(r):o,a=typeof n=="function"?n(r):r[n];return jsxRuntime.jsx("tr",{className:s,onClick:l=>i(r,l),children:t.map((l,c)=>{let m;typeof l.cellIdentifier=="function"?m=l.cellIdentifier(r):l.cellIdentifier?m=r[l.cellIdentifier]:m=`${a}-${c}`;let d=typeof l.columnClass=="function"?l.columnClass(r):l.columnClass;return l.alignment==="l"?d+=" has-text-left":l.alignment==="c"?d+=" has-text-centered":l.alignment==="r"&&(d+=" has-text-right"),jsxRuntime.jsx("td",{className:d,children:typeof l.value=="function"?l.value(r):r[l.value]},m)})},a)})})}function Ni({children:e=void 0,searchValue:t="",filterCount:n,dataCount:o,searchPlaceholder:i,cols:r,size:s,sortColNum:a,hideSearch:l,onSortIndexChanged:c,onSearchValueChanged:m,infoMessage:d}){let u=(f,T)=>{let C=T+1,v=r[T];v&&v.sort&&(Math.abs(a)===C?c(a*-1):a!==C&&c(C));},p=l?r.length:Math.ceil(r.length/2),h=l?0:r.length-p;return jsxRuntime.jsxs("thead",{children:[jsxRuntime.jsxs("tr",{children:[jsxRuntime.jsx("th",{colSpan:p,children:e}),!l&&jsxRuntime.jsx("th",{colSpan:h,children:jsxRuntime.jsx(Wt,{size:s,type:"text",name:"loon-bulma-react-datatable-search-input",placeholder:i,value:t,onValueChanged:m,infoMessage:d(n,o,t)})})]}),jsxRuntime.jsx("tr",{children:r.map((f,T)=>{let C=f.sort!==void 0,v=Math.abs(a)-1===T,S;f.header||f.header===""?S=f.header:typeof f.value!="string"?S=f.value.toString():S=f.value;let y="";f.alignment==="l"?y+=" has-text-left":f.alignment==="c"?y+=" has-text-centered":f.alignment==="r"&&(y+=" has-text-right");let N=freeSolidSvgIcons.faSort;return v&&a>0?N=freeSolidSvgIcons.faSortUp:v&&a<0&&(N=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{style:{cursor:C?"pointer":void 0},className:y,onClick:b=>u(b,T),children:[C&&jsxRuntime.jsx(Yt,{icon:N,children:S}),!C&&jsxRuntime.jsx("span",{children:S})]},T)})})]})}function ki({size:e,children:t=void 0,hidePagination:n=!1,cols:o,range:i,currentPage:r,next:s,prev:a,first:l,last:c,set:m}){return jsxRuntime.jsxs("tfoot",{children:[!n&&jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:o.length,children:jsxRuntime.jsx(qt,{size:e,range:i,currentPage:r,next:s,prev:a,first:l,last:c,set:m})})}),t]})}function Ai({label:e,className:t,position:n="tr",color:o="l",title:i,tooltip:r,children:s}){let a="indicator";return n==="tl"||n==="top-left"?a+=" is-top-left":n==="tr"||n==="top-right"?a+=" is-top-right":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"),o==="p"?a+=" is-primary":o==="l"?a+=" is-link":o==="i"?a+=" is-info":o==="w"?a+=" is-warning":o==="d"?a+=" is-danger":o==="s"&&(a+=" is-success"),jsxRuntime.jsxs("div",{className:t,children:[jsxRuntime.jsx("div",{className:a,title:i??r,children:e}),s]})}function Qt({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Ri({keys:e,separator:t,className:n=""}){let o=e.map((i,r)=>r===e.length-1?jsxRuntime.jsx(Qt,{children:i},i):jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Qt,{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===Kn?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(jt,{...r.props,activeItem:t,onInternClick:o})}):r.type===zn?jsxRuntime.jsx(Ji,{...r.props,activeItem:t,onInternClick:o}):r.type===_n?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(Wn,{...r.props,activeItem:t,onInternClick:o})}):r);return jsxRuntime.jsx("aside",{className:"menu",role:"menu",children:i})},zn=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]}),Ji=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(jt,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t.type.name=="ExpandableMenuItem"?jsxRuntime.jsx(Wn,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t)})]}),_n=e=>jsxRuntime.jsx("div",{children:e.children}),Wn=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(jt,{...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(Ce,{color:"i",size:"s",icon:t?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e.label]})]}),t&&jsxRuntime.jsx("ul",{children:i})]})},Kn=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]}),jt=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=Kn;Nt.ItemGroup=zn;Nt.ExpandableItem=_n;var ce=({children:e,title:t,size:n="m",color:o="i"})=>{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==="m"?i+=" is-normal":n==="l"?i+=" is-medium":n==="xl"&&(i+=" is-large"),jsxRuntime.jsxs("article",{className:i,children:[t&&jsxRuntime.jsx($i,{title:t,icon:r}),jsxRuntime.jsx(Xi,{hasHeader:!!t,icon:r,size:n,children:e})]})},$i=({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]})});function Xi({children:e,hasHeader:t,icon:n=void 0,size:o="m"}){let i="icon";return o==="s"?i+=" mr-1 is-small":o==="m"?i+=" mr-1 is-medium":(o==="l"||o==="xl")&&(i+=" is-large"),jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t?e:jsxRuntime.jsxs("div",{children:[n&&jsxRuntime.jsx("span",{className:i,style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n})}),e]})})}ce.Primary=e=>jsxRuntime.jsx(ce,{...e,color:"p"});ce.Success=e=>jsxRuntime.jsx(ce,{...e,color:"s"});ce.Danger=e=>jsxRuntime.jsx(ce,{...e,color:"d"});ce.Warning=e=>jsxRuntime.jsx(ce,{...e,color:"w"});ce.Info=e=>jsxRuntime.jsx(ce,{...e,color:"i"});ce.Link=e=>jsxRuntime.jsx(ce,{...e,color:"l"});var z=(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===Un?jsxRuntime.jsx(Vi,{...r.props}):r.type===Zn?jsxRuntime.jsx(nn,{...r.props}):r.type===Yn?jsxRuntime.jsx(zi,{...r.props}):jsxRuntime.jsx(nn,{children:r}):null)?.sort((r,s)=>r.type.name==="InternHead"?-1:r.type.name==="InternBody"&&s.type.name==="InternHead"?1:r.type.name==="InternBody"&&s.type.name==="InternFoot"?-1:r.type.name==="InternFoot"?1:0);return !i||i?.length===0?z("<Modal> A Modal needs at least one child"):i.filter(r=>r.type===nn).length>1&&z("<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)})]})})},Un=e=>jsxRuntime.jsx("div",{children:e.children}),Vi=e=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e.children}),Zn=e=>jsxRuntime.jsx("div",{children:e.children}),nn=e=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e.children}),Yn=e=>jsxRuntime.jsx("div",{children:e.children}),zi=e=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e.children});At.Head=Un;At.Body=Zn;At.Foot=Yn;var ue=({children:e,onDismiss:t,autoDismissAfter:n=-1,color:o="i"})=>{let i=n>0?setTimeout(()=>s(null),n):null,[r]=ae__default.default.useState(i);ae__default.default.useEffect(()=>()=>r?clearTimeout(r):void 0,[r]);let s=c=>{r&&clearTimeout(r),t(c);},a="notification is-light",l=freeSolidSvgIcons.faInfo;switch(o){case"s":a+=" is-success",l=freeSolidSvgIcons.faCheck;break;case"d":a+=" is-danger",l=freeSolidSvgIcons.faExclamationTriangle;break;case"w":a+=" is-warning",l=freeSolidSvgIcons.faExclamation;break;case"p":a+=" is-primary",l=freeSolidSvgIcons.faInfo;break;case"l":a+=" is-link",l=freeSolidSvgIcons.faInfo;break;default:a+=" is-info",l=freeSolidSvgIcons.faInfo;break}return jsxRuntime.jsxs("article",{className:a,children:[jsxRuntime.jsx(Zi,{color:o??"i",onDismiss:c=>s(c)}),jsxRuntime.jsx(Yi,{icon:l,children:e})]})};function Zi({color:e="i",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:t,children:jsxRuntime.jsx("span",{className:i,role:"close-icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimesCircle,size:"lg"})})})}function Yi({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]})}ue.Primary=e=>jsxRuntime.jsx(ue,{...e,color:"p"});ue.Danger=e=>jsxRuntime.jsx(ue,{...e,color:"d"});ue.Warning=e=>jsxRuntime.jsx(ue,{...e,color:"w"});ue.Success=e=>jsxRuntime.jsx(ue,{...e,color:"s"});ue.Link=e=>jsxRuntime.jsx(ue,{...e,color:"l"});ue.Info=e=>jsxRuntime.jsx(ue,{...e,color:"i"});function qi({color:e="i",size:t="m",extension:n=" %",max:o=100,value:i}){let r="progress";return t==="s"?r+=" is-small":t==="m"?r+=" is-normal":t==="l"?r+=" is-medium":t==="xl"&&(r+=" is-large"),e==="s"?r+=" is-success":e==="i"?r+=" is-info":e==="p"?r+=" is-primary":e==="d"?r+=" is-danger":e==="l"?r+=" is-link":e==="w"&&(r+=" is-warning"),jsxRuntime.jsx("progress",{className:r,value:i,max:o||100,title:`${i??""}${n??""}`,children:i})}function ji(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,s)=>{e.onRowSelected&&e.onRowSelected(r,s);},i=or(e.columns,e.data[0]);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:t,children:[jsxRuntime.jsx(tr,{titles:i}),jsxRuntime.jsx(er,{columns:i,data:e.data,rowIdentifier:n,onRowSelected:(r,s)=>o(r,s)}),e.hasFooter&&jsxRuntime.jsx(nr,{titles:i})]})})}function er(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 tr(e){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function nr(e){return jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function or(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 rn=e=>{let[t,n]=ae__default.default.useState(e.activeStepIndex??0),o=s=>{e.onChangeStep&&e.onChangeStep(s),n(s);};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,(s,a)=>{if(s.type&&s.type==rn.Item){let l=!0;return e.freeStepChoice==="allowed"||e.freeStepChoice==="down"&&a<t||e.freeStepChoice==="up"&&a>t?l=!1:l=a!=t+1&&a!=t-1,jsxRuntime.jsx(rr,{...s.props,activeStep:t,stepKey:a,disabled:l,onClick:o},s.props.title)}else return s})})};rn.Item=e=>jsxRuntime.jsx(ae__default.default.Fragment,{children:e.title});function rr(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 a="pending";e.status==="error"?a="error":e.status==="completed"||e.activeStep>e.stepKey?a="completed":e.stepKey===e.activeStep&&(a="active"),o(a);},[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 eo=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:s,styling:a}=e,l="tabs";i==="s"?l+=" is-small":i==="l"?l+=" is-medium":i==="xl"&&(l+=" is-large"),a==="boxed"?l+=" is-boxed":a==="toggle"&&(l+=" is-toggle"),r==="c"?l+=" is-centered":r==="r"&&(l+=" is-right"),l+=s?" is-fullwidth":"";let c=ae__default.default.Children.map(e.children,(m,d)=>jsxRuntime.jsx(ar,{isActive:t?t==m.props.tabId:d==0,onClick:()=>o(m.props.tabId),children:m}));return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx("ul",{children:c})})};function ar({children:e,isActive:t,onClick:n}){return jsxRuntime.jsx("li",{role:"tab",className:t?"is-active":void 0,onClick:n,children:e})}function sr({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})}eo.Item=sr;function an({children:e,color:t="l",size:n="m",light:o=!1,rounded:i=!1,tooltip:r,title:s,onDismiss:a}){let l="tag";return o&&(l+=" is-light"),i&&(l+=" 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"),jsxRuntime.jsxs("span",{className:l,title:s??r,children:[e,a&&jsxRuntime.jsx("button",{className:"delete",onClick:m=>a&&a(m)})]})}function lr({children:e,merged:t=!1,size:n="m",alignment:o="l",className:i=""}){let r="tags";return n==="s"?r+=" are-small":n==="m"?r+=" are-medium":n==="l"&&(r+=" are-large"),o==="l"?r+=" is-left":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 sn=({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})};sn.Point=({children:e,color:t,size:n,tooltip:o,onClick:i})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:i,children:jsxRuntime.jsx(an,{color:t??"l",size:n,tooltip:o,light:!0,rounded:!0,children:e})});sn.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(Ce,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};function oo({bulmaSize:e=3,headingSize:t="h1",children:n,txt:o}){let i=typeof t=="string"?+t.replace("h",""):t,r=`title is-${e}`;if(n=n??o,!n)throw Error('Title moet children OF txt="..." hebben');if(i===1)return jsxRuntime.jsx("h1",{className:r,children:n});if(i===2)return jsxRuntime.jsx("h2",{className:r,children:n});if(i===3)return jsxRuntime.jsx("h3",{className:r,children:n});if(i===4)return jsxRuntime.jsx("h4",{className:r,children:n});if(i===5)return jsxRuntime.jsx("h5",{className:r,children:n});if(i===6)return jsxRuntime.jsx("h6",{className:r,children:n});throw Error("HeadingSize moet een waarde tussen 1 en 6 zijn")}function io({bulmaSize:e=5,headingSize:t="h2",children:n,txt:o}){let i=typeof t=="string"?+t.replace("h",""):t,r=`subtitle is-${e}`;if(n=n??o,!n)throw Error('Title moet children OF txt="..." hebben');if(i===1)return jsxRuntime.jsx("h1",{className:r,children:n});if(i===2)return jsxRuntime.jsx("h2",{className:r,children:n});if(i===3)return jsxRuntime.jsx("h3",{className:r,children:n});if(i===4)return jsxRuntime.jsx("h4",{className:r,children:n});if(i===5)return jsxRuntime.jsx("h5",{className:r,children:n});if(i===6)return jsxRuntime.jsx("h6",{className:r,children:n});throw Error("HeadingSize moet een waarde tussen 1 en 6 zijn")}function mr({bulmaSize:e=3,headingSize:t="h1",titleTxt:n,subtitleTxt:o,className:i}){let r=typeof e=="string"?+e:e,a=(typeof t=="string"?+t.replace("h",""):t)??r;return jsxRuntime.jsxs("div",{className:i,children:[jsxRuntime.jsx(oo,{bulmaSize:r,headingSize:a,children:n}),jsxRuntime.jsx(io,{bulmaSize:r+2,headingSize:a+1,children:o})]})}var ur=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),dr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),pr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),fr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),gr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),hr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e});var ln=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=l=>{o!=l&&(e.onToggle&&e.onToggle(l),i(l));},s=ae__default.default.Children.map(e.children,(l,c)=>{let m=l.props?.identifier??ae__default.default.Children.map(l.props.children,d=>typeof d=="string"?d:typeof d.type=="string"?d.type:d)?.join("")??""+c;return l.type===ro?jsxRuntime.jsx(br,{...l.props,toggled:o==m,identifier:m,onColor:l.props.onColor,offColor:l.props.onColor,light:e.light??!0,outlined:e.outlined??!1,rounded:e.rounded,onToggleClick:r}):l.type===ao?jsxRuntime.jsx(Tr,{...l.props,identifier:m,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}),a="buttons has-addons";return t==="m"?a+=" are-normal":t==="l"?a+=" are-medium":t==="xl"?a+=" are-large":a+=" are-small",n==="c"?a+=" is-centered":n==="r"?a+=" is-right":a+=" is-left",e.className&&(a+=" "+e.className),jsxRuntime.jsx("div",{className:a,children:s})},ro=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function br(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 ao=e=>jsxRuntime.jsx("button",{disabled:e.disabled});function Tr(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})}ln.Item=ro;ln.OnOffItem=ao;var cn=({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0})=>{let i="field";return i+=t?" has-addons":" is-grouped",n==="l"?i+=" is-grouped-left":n==="c"?i+=" is-grouped-centered":n==="r"&&(i+=" is-grouped-right"),o&&(i+=` ${o}`),jsxRuntime.jsx("div",{className:i,children:ae__default.default.Children.map(e,r=>jsxRuntime.jsx("div",{className:"control",children:r}))})};var j=({color:e="p",size:t="m",rounded:n=!1,loading:o,disabled:i,type:r="button",styling:s="default",helpTag:a,onClick:l,onFocus:c,children:m,tooltip:d,title:u,id:p,name:h,value:f,form:T,formAction:C})=>{let v=b=>{o||i||s==="static"||s==="s"||l&&l(b);},S=b=>{c&&c(b,a);},y="button";s==="static"||s==="s"?y+=" is-static":(e==="p"?y+=" is-primary":e==="i"?y+=" is-info":e==="l"?y+=" is-link":e==="d"?y+=" is-danger":e==="s"?y+=" is-success":e==="w"?y+=" is-warning":y+=` ${e}`,s==="light"||s==="l"?y+=" is-light":s==="outlined"||s==="o"?y+=" is-outlined":s==="inverted"||s==="i"?y+=" is-inverted":(s==="light-outlined"||s==="lo")&&(y+=" is-light is-outlined")),t==="s"?y+=" is-small":t==="m"?y+=" is-normal":t==="l"?y+=" is-medium":t==="xl"&&(y+=" is-large"),n&&(y+=" is-rounded"),o&&(y+=" is-loading");let N=ae__default.default.Children.map(m,b=>typeof b=="string"?jsxRuntime.jsx("span",{children:b}):b);return jsxRuntime.jsx("button",{form:T,formAction:C,className:y,type:r,disabled:i,onClick:v,onFocus:S,title:u??d,id:p,name:h,value:f,children:N})};j.Static=e=>jsxRuntime.jsx(j,{...e,styling:"s"});j.Primary=e=>jsxRuntime.jsx(j,{...e,color:"p"});j.Success=e=>jsxRuntime.jsx(j,{...e,color:"s"});j.Danger=e=>jsxRuntime.jsx(j,{...e,color:"d"});j.Warning=e=>jsxRuntime.jsx(j,{...e,color:"w"});j.Info=e=>jsxRuntime.jsx(j,{...e,color:"i"});j.Link=e=>jsxRuntime.jsx(j,{...e,color:"l"});var Cr=({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:s,seconds:a,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))),o&&(c=new Date(c.setDate(c.getDate()+o*7))),i&&(c=new Date(c.setDate(c.getDate()+i))),r&&(c=new Date(c.setHours(c.getHours()+r))),s&&(c=new Date(c.setMinutes(c.getMinutes()+s))),a&&(c=new Date(c.setSeconds(c.getSeconds()+a))),l&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+l))),w.fromDate(c,this._locale)}isBetween(t,n){let o=(typeof n=="boolean"?n:n?.[0])??!1,i=(typeof n=="boolean"?n:n?.[1])??!1,[r,s]=t.sort((a,l)=>a.valueOf()-l.valueOf());if(r.valueOf()===s.valueOf())throw new Error("dates must be different");return o&&i?r<=this._date&&this._date<=s:o&&!i?r<=this._date&&this._date<s:!o&&i?r<this._date&&this._date<=s:r<this._date&&this._date<s}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:s,day:a,hour:l,minute:c,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(s>12||s<1)throw new RangeError(`month value should be between 1 and 12, got ${s}`);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(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,s,0),p=u.getDate();if(a>p||a<1)throw new RangeError(`day value should be between 1 and ${p} for ${u.toLocaleString(n,{month:"short"})} ${r}, got ${a}`);return new w(new Date(r,s-1,a,l,c,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,s="ymdhHMsSWtZO";return (t+" ").split("").forEach(a=>{o===""?i=1:!r&&a===o&&s.includes(a)?i++:!r&&a===o&&!s.includes(a)?(i++,n+=o):r?r&&(n+=o,i=1):(n+=s.includes(o)?`[${o}${i}]`:o,i=1),a===this.IGNORE_SIGN&&(r=!r),o=a;}),n}},D=w;De(D,"defaultLocale",Intl.DateTimeFormat().resolvedOptions().locale),De(D,"defaultTimezone",Intl.DateTimeFormat().resolvedOptions().timeZone),De(D,"MAX_DATE_NUM",864e13),De(D,"MAX_DATE",new Date(w.MAX_DATE_NUM)),De(D,"defaultFormatOptions",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});var co=class{jsdate1;jsdate2;constructor(t,n=D.now()){this.jsdate1=t instanceof Date?D.fromDate(t):t.clone(),this.jsdate2=n instanceof Date?D.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(([s,a])=>{if(t.includes(s)){let l=0;for(;n>=i;)l++,n-=i;Object.assign(o,{[s]:l});}i/=a;}),Object.assign(o,{rest:n}),o}};function Fm(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 s of o.split(""))i+=parseInt(s)*r,r=r!==2?r-1:-1;i%11===0&&n.push(o);}return [n.length>0,n]}return [!1,[]]}function Se(e){let t=typeof e!="string",n;typeof e=="string"?n=Ir(e):n=e;let[o=255,i=255,r=255]=n,a=[o/255,i/255,r/255].map(c=>c<.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)),l=.02126*a[0]+.7152*a[1]+.0722*a[2];return isNaN(l)?[0,0,0]:l>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function Ir(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(a=>t+=a+a):e.length===5?e.substring(1,5).split("").forEach(a=>t+=a+a):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),s=parseInt(t.substring(7,9),16);return [o,i,r,s]}function Vm(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=xr.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 xr=[{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 mo([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function mn(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e);return console.log(e,t),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function uo([e,t,n]){let o=n/100,i=t*Math.min(o,1-o)/100,r=s=>{let a=(s+e/30)%12,l=o-i*Math.max(Math.min(a-3,9-a,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return `#${r(0)}${r(8)}${r(4)}`}function po(e){let[t,n,o]=mn(e);t/=255,n/=255,o/=255;let i=Math.max(t,n,o),r=Math.min(t,n,o),s=(i+r)/2,a=s,l=s;if(i!==r){let c=i-r;return a=l>.5?c/(2-i-r):c/(i+r),t===i?s=(n-o)/c+(n<o?6:0):n===i?s=(o-t)/c+2:o===i&&(s=(t-n)/c+4),[Math.round(360*(s/6)),Math.round(a*100),Math.round(l*100)]}else return [0,0,l]}var Me={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"},Be={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},tt={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},Oe={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"},fo={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"},go={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function dt({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),s=ae__default.default.useCallback(Se,[]),a=ae__default.default.useMemo(()=>{let c="p";e.evtColor?c=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(c=t.evtColor(e,i)),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+=i?"aa":"ff";let m=s(c);return {...Me,paddingLeft:"1em",backgroundColor:c,color:m,cursor:n?"pointer":"default"}},[e,i]),l=ae__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:c=>n&&n(e,c),style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx("span",{children:o(e)})})}function Ue({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),s=ae__default.default.useCallback(Se,[]),a=ae__default.default.useMemo(()=>{let m=i?"#f1f1f1":"#ffffff00",d=s(m);return {...Me,backgroundColor:m,color:d,cursor:n?"pointer":"default"}},[i]),l=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"),{...go,backgroundColor:m}},[e,i]),c=ae__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:c,onClick:m=>n&&n(e,m),style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[jsxRuntime.jsx("span",{style:l}),o(e)]})}function yo({events:e,onEventClick:t,options:n}){let[o,i]=ae__default.default.useState(()=>e.slice(4)),[r,s]=ae__default.default.useState(!1),[a,l]=ae__default.default.useState(!1);ae.useEffect(()=>{i(e.slice(4));},[e]);let c=ae__default.default.useMemo(()=>({...Me,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=()=>{l(!a),s(!1);};return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[a&&o.map(u=>u.allDay?jsxRuntime.jsx(dt,{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(Ue,{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:()=>s(!0),onMouseLeave:()=>s(!1),style:c,children:[!a&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsxs("span",{children:["Nog ",o.length," ..."]})]}),a&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var pe=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 s="tooltip is-bottom",a="tooltip-arrow";return o==="p"?(s+=" is-primary",a+=" is-primary"):o==="i"?(s+=" is-info",a+=" is-info"):o==="l"?(s+=" is-link",a+=" is-link"):o==="d"?(s+=" is-danger",a+=" is-danger"):o==="s"?(s+=" is-success",a+=" is-success"):o==="w"?(s+=" is-warning",a+=" is-warning"):(s+=` ${o}`,a+=` ${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:s,children:t}),jsxRuntime.jsx("div",{className:a})]})]})}else return jsxRuntime.jsx(ae__default.default.Fragment,{children:n})}};De(pe,"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:s=!0}){let[a,l]=ae__default.default.useState(!1),c=ae__default.default.useCallback(Se,[]),m=ae__default.default.useMemo(()=>({...Dt,backgroundColor:s?"transparent":"#f8f8f8",color:s?"#888888":"#bbbbbb"}),[t,i]),d=ae__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let u="p";e?.today?.bgColor&&(u=e.today.bgColor(a,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=c(u);return {...Rt,backgroundColor:u,color:p}},[t,a]);return jsxRuntime.jsxs("div",{style:m,children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...fo,cursor:n?"pointer":"default",backgroundColor:a?"#f4f4f4":"transparent",color:s?"#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:s?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:i.map((u,p)=>{let h=`${typeof u.id=="function"?u.id():u.id}`??p;return u.allDay&&p<4?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:u,options:e?.event?.allday,onClick:o})},h):!u.allDay&&p<4?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ue,{desc:f=>jsxRuntime.jsxs(ae__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:u,options:e?.event?.timed,onClick:o})},h):p===4&&i.length>5?jsxRuntime.jsx(yo,{events:i,onEventClick:o,options:e?.event},t.dateShort+"-more"):p===4&&u.allDay?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:u,options:e?.event?.allday,onClick:o})},h):p===4&&!u.allDay?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ue,{desc:f=>jsxRuntime.jsxs(ae__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:u,options:e?.event?.timed,onClick:o})},h):null})})]})}function To({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]),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((u,p)=>{let h=Math.ceil(u.weekNr/52*13),f=u.clone();for(;Math.ceil(f.weekNr/52*13)===h;)f=f.plus({days:-1});let T=u.clone();for(;Math.ceil(T.weekNr/52*13)===h;)T=T.plus({days:1});f=f.plus({days:1}),T=T.plus({days:-1});let C=(p??i??[]).map(y=>(y.allDay=y.allDay||!y.endDateTime,y.startDateTime instanceof Date&&(y.startDateTime=D.fromDate(y.startDateTime,t?.locale)),y.endDateTime&&y.endDateTime instanceof Date&&(y.endDateTime=D.fromDate(y.endDateTime,t?.locale)),y)).filter(y=>y.startDateTime.isBetween([f,T])),v=f.clone(),S=[];for(;v<=T;){if(r.has(v.weekDay)){let y=v.startOf("day"),N=v.endOf("day"),b=C.filter(k=>k.startDateTime.isBetween([y,N])).sort((k,P)=>k.allDay&&!P.allDay?-1:!k.allDay&&P.allDay?1:k.startDateTime.valueOf()-P.startDateTime.valueOf());S.push([v,b]);}v=v.plus({days:1});}return S},[]),[c,m]=ae__default.default.useState(l(s));ae__default.default.useEffect(()=>{let u=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(u),m(l(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Er,{visibleDays:r,viewDate:s}),jsxRuntime.jsx(wr,{visibleDays:r,viewDate:s,datesWithEvents:c,options:t,onDayClick:o,onEventClick:n})]})})}function Er({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),s=0;for(;o<=i&&s<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),s++;let a=ae__default.default.useMemo(()=>({...Be}),[]),l=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:a}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function wr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i}){let r=e.size,s=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([a,l])=>(s==r&&(s=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(Dr,{weekNr:a.weekNr}),jsxRuntime.jsx(Bt,{date:a,events:l,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o},a.ISO)]},a.ISO)))})}function Dr({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Oe}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function So({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]),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((u,p)=>{let h=u.startOf("month").startOf("week").startOf("day"),f=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=D.fromDate(S.startDateTime,t?.locale)),S.endDateTime&&S.endDateTime instanceof Date&&(S.endDateTime=D.fromDate(S.endDateTime,t?.locale)),S)).filter(S=>S.startDateTime.isBetween([h,f])),C=h.clone(),v=[];for(;C<f;){if(r.has(C.weekDay)){let S=C.startOf("day"),y=C.endOf("day"),N=T.filter(b=>b.startDateTime.isBetween([S,y])).sort((b,k)=>b.allDay&&!k.allDay?-1:!b.allDay&&k.allDay?1:b.startDateTime.valueOf()-k.startDateTime.valueOf());v.push([C,N]);}C=C.plus({days:1});}return v},[]),[c,m]=ae__default.default.useState(l(s,i));ae__default.default.useEffect(()=>{let u=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(u),m(l(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Rr,{visibleDays:r,viewDate:s}),jsxRuntime.jsx(Mr,{visibleDays:r,viewDate:s,datesWithEvents:c,options:t,onDayClick:o,onEventClick:n})]})})}function Rr({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),s=0;for(;o<=i&&s<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),s++;let a=ae__default.default.useMemo(()=>({...Be}),[]),l=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:a}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Mr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i,viewDate:r}){let s=e.size,a=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([l,c])=>(a===s&&(a=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Br,{weekNr:l.weekNr}),jsxRuntime.jsx(Bt,{date:l,events:c,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:l.hasSame(r,"month")},l.ISO)]},l.ISO)))})}function Br({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Oe}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function vo({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(pe,{display:"block",color:o,content:typeof r.description=="function"?r.description():r.description,children:jsxRuntime.jsx(Ue,{desc:s=>jsxRuntime.jsx("span",{children:typeof s.title=="function"?s.title():s.title}),event:r,options:e?.event?.allday,onClick:n})},`${typeof r.id=="function"?r.id():r.id}`))})}function Co({hour:e}){let t=ae__default.default.useMemo(()=>({...Oe,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function Po({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),s=e.length!==0&&r.current?.offsetWidth?r.current.offsetWidth/e.length:0;return jsxRuntime.jsx("div",{style:i,ref:r,children:e.map((a,l)=>jsxRuntime.jsx(Jr,{tooltipColor:o,options:n?.event?.timed,event:a,eventIndex:l,desc:c=>{let m=typeof c.title=="function"?c.title():c.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:c.startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:m})]})},onClick:t,eventWidth:s},`${typeof a.id=="function"?a.id():a.id}`))})}function Jr({event:e,options:t,eventWidth:n,eventIndex:o,tooltipColor:i,onClick:r,desc:s}){let[a,l]=ae__default.default.useState(!1),c=ae__default.default.useCallback(Se,[]),m=ae__default.default.useRef(null),d=ae__default.default.useMemo(()=>{let u="p";e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(a):e.evtColor:t?.evtColor&&(u=t.evtColor(e,a)),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+=a?"aa":"ff";let p=c(u),h=e.startDateTime,f=e.endDateTime;f.hasSame(h,"day")||(f=h.endOf("day"));let C=(f.valueOf()-h.valueOf())/1e3/60;return {...Me,position:"absolute",backgroundColor:u,color:p,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${h.minute}px`,height:`${C<30?30:C}px`,width:n,lineHeight:"1.05em",overflow:"visible",marginLeft:`${o*n}px`,cursor:r?"pointer":"default"}},[e,a,n,o]);return jsxRuntime.jsx("div",{ref:m,onClick:u=>r&&r(e,u),style:d,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:jsxRuntime.jsx(pe,{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:s(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function xo({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])),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((p,h)=>{let f=p.startOf("week").startOf("day"),T=p.endOf("week").plus({days:1}).startOf("day"),C=(h??o??[]).map(b=>(b.allDay=b.allDay||!b.endDateTime,b.startDateTime instanceof Date&&(b.startDateTime=D.fromDate(b.startDateTime,t?.locale)),b.endDateTime&&b.endDateTime instanceof Date&&(b.endDateTime=D.fromDate(b.endDateTime,t?.locale)),b)).filter(b=>b.startDateTime.isBetween([f,T])),v=f.clone(),S=[];for(;v<T;){if(r.has(v.weekDay)){let b=v.startOf("day"),k=v.endOf("day"),P=C.filter(A=>A.startDateTime.isBetween([b,k])).sort((A,E)=>A.allDay&&!E.allDay?-1:!A.allDay&&E.allDay?1:A.startDateTime.valueOf()-E.startDateTime.valueOf());S.push([v,P]);}v=v.plus({days:1});}let y=S.map(([b,k])=>[b,k.filter(P=>P.allDay)]),N=S.map(([b,k])=>[b,k.filter(P=>!P.allDay)]);return {allday:y,timed:N}},[]),[c,m]=ae__default.default.useState(l(s));ae__default.default.useEffect(()=>{let p=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(p),m(l(p,o));},[e,o,t?.visibleDays,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Lr,{onDayClick:i,daysWithEvents:c.allday,options:t}),jsxRuntime.jsx("div",{style:{...Oe,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),c.allday.map(([p,h])=>jsxRuntime.jsx(vo,{events:h,onEventClick:n,options:t,tooltipColor:t?.tooltipColor??"is-light"},p.dayShort)),u.map(p=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Co,{hour:p}),c.timed.map(([h,f])=>{let T=f.filter(C=>C.startDateTime.hour===p);return jsxRuntime.jsx(Po,{tooltipColor:t?.tooltipColor??"is-light",events:T,onEventClick:n,options:t},h.dayShort+"-"+p)})]},p))]})})}function Lr({onDayClick:e,daysWithEvents:t,options:n={}}){let o=ae__default.default.useMemo(()=>({...Be,cursor:e?"pointer":void 0}),[e]),i=ae__default.default.useMemo(()=>({...o}),[]),r=ae__default.default.useCallback(Se,[]),s=ae__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let a="p";n?.today?.bgColor&&(a=n.today.bgColor(!1)),a==="p"?a="#113670":a==="i"?a="#3b59ec":a==="l"?a="#2f47bc":a==="d"?a="#d91000":a==="s"?a="#519c43":a==="w"&&(a="#eea720");let l=r(a);return {...Rt,marginBottom:".5em",backgroundColor:a,color:l}},[]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:t.map(([a])=>jsxRuntime.jsxs("div",{style:i,onClick:l=>e&&e(a,l),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:a.dayLong}),jsxRuntime.jsxs("span",{style:a.isToday?s:void 0,children:[a.day," ",a.monthLong]})]},a.ISO))})}var Hr={Month:So,Week:xo,Fourweeks:To};function hn({id:e,label:t,name:n,size:o="m",direction:i="h",required:r=!1,value:s=!1,errorMessage:a="",labelHidden:l=!1,onValueChanged:c,onBlur:m,...d}){let u=T=>{f(!0),m&&m(T);},p=T=>{console.log(T),c&&c(T);},[h,f]=ae__default.default.useState(!1);return jsxRuntime.jsx(oe,{label:t??n,size:o,labelHidden:l,direction:i,required:r,inputId:e??n,children:jsxRuntime.jsx(No,{id:e,name:n,label:t,value:s,required:r,size:o,errorMessage:h?a:"",onValueChanged:p,onBlur:u,...d})})}function No({helpTag:e,errorMessage:t="",label:n,disabled:o=!1,keyboardType:i="text",title:r,name:s,value:a=!1,required:l=!1,spellCheck:c=!1,id:m,autoComplete:d="off",readonly:u=!1,autofocus:p=!1,form:h=void 0,inputRef:f,onBlur:T,onChange:C,onFocus:v,onKeyDown:S,onKeyUp:y,onValueChanged:N,size:b="m",alignment:k="l",color:P="p",styling:A="normal"}){let[E,M]=ae__default.default.useState(!1),I=K=>{E||M(!0),T&&T(K);},F=K=>{N&&N(K.target.checked),C&&C(K);},x="is-checkradio";return b==="s"?x+=" is-small":b==="l"?x+=" is-medium":b==="xl"&&(x+=" is-large"),P==="w"?x+=" is-warning":P==="l"?x+=" is-link":P==="d"?x+=" is-danger":P==="i"?x+=" is-info":P==="s"?x+=" is-success":P==="p"?x+=" is-primary":x+=` ${P}`,A==="rounded"?x+=" is-circle":A==="noborder"?x+=" has-no-border":A==="colored"?x+=" has-background-color":A==="blocky"&&(x+=" is-blocky"),k==="c"?x+=" has-text-centered":k==="r"&&(x+=" has-text-right"),u&&(x+=" is-static"),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:x,id:m??s,ref:f,name:s,checked:a,spellCheck:c,autoComplete:d,required:l,title:r,readOnly:u,autoFocus:p,form:h,inputMode:i,disabled:o,onKeyDown:S,onKeyUp:y,onBlur:I,onChange:F,onFocus:K=>v&&v(K,e)}),jsxRuntime.jsx("label",{htmlFor:m??s,children:n??s}),E&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(a)})]})}function ke({value:e,id:t,name:n,label:o,grouped:i=!1,required:r=!1,errorMessage:s="",multiple:a=!1,alignment:l="l",size:c="m",direction:m="h",options:d=[],children:u=void 0,placeholder:p,helpTag:h,disabled:f=!1,keyboardType:T="text",title:C,spellCheck:v=!1,autoComplete:S="off",autofocus:y=!1,form:N=void 0,inputRef:b,labelHidden:k,icon:P=freeSolidSvgIcons.faCheckCircle,onBlur:A,onFocus:E,onChange:M,onKeyDown:I,onKeyUp:F,onValueChanged:x}){let[K,se]=ae__default.default.useState(!1),G=L=>{se(!0),A&&A(L);},U=L=>{E&&E(L,h);},ye=L=>{if(M&&M(L),a){let B=L.target.selectedOptions,Z=[];for(let le of B)Z.push(le.value);x&&x(Z);}else x&&x(L.target.value);},be=ae__default.default.useCallback(L=>{if(!L.some(B=>typeof B!="string"))return L.map(B=>jsxRuntime.jsx(ke.Option,{value:B,children:B},B));if(i){let B=[],Z=new Set;return L.forEach(le=>Z.add(typeof le=="string"?"":le.group??"")),[...Z].sort().forEach(le=>{let Ve=[];L.forEach(Te=>{typeof Te=="string"?le===""&&Ve.push(Te):le===Te.group&&Ve.push(Te);}),B.push(jsxRuntime.jsx(ke.OptGroup,{label:le,children:Ve.map(Te=>{if(typeof Te=="string")return jsxRuntime.jsx(ke.Option,{value:Te,children:Te},Te);{let{value:Ft,disabled:Xo,label:Dn}=Te;return jsxRuntime.jsx(ke.Option,{value:Ft,disabled:Xo,children:Dn??Ft},Dn??Ft)}})},le));}),B}else return L.map(B=>{if(typeof B=="string")return jsxRuntime.jsx(ke.Option,{value:B,children:B},B);{let{value:Z,disabled:le,label:Ve}=B;return jsxRuntime.jsx(ke.Option,{value:Z,disabled:le,children:Ve??Z},Z)}})},[]),J=s?"select is-danger is-fullwidth":"select is-fullwidth";c==="s"?J+=" is-small":c==="l"?J+=" is-medium":c==="xl"&&(J+=" is-large"),l==="c"?J+=" has-text-centered":l==="r"&&(J+=" has-text-right"),a!==!1&&(J+=" is-multiple");let X=P?"control has-icons-left":"control",q;P&&(typeof P=="string"?q=jsxRuntime.jsx("i",{className:P}):q=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:P}));let we=be(d);return jsxRuntime.jsxs(oe,{inputId:t??n,id:t??n,label:o??n??t,direction:m,required:r,size:c,labelHidden:k,controlClassName:X,children:[jsxRuntime.jsx("div",{className:J,children:jsxRuntime.jsxs("select",{multiple:a!==!1,size:a===!1?void 0:a,value:e,className:J,id:t??n??o,ref:b,name:n,spellCheck:v,autoComplete:S,required:r,title:C,autoFocus:y,form:N,inputMode:T,placeholder:p,disabled:f,onFocus:U,onBlur:G,onKeyDown:I,onKeyUp:F,onChange:ye,children:[u,we]})}),q&&jsxRuntime.jsx("span",{className:"icon is-left",children:q}),K&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)})]})}ke.Option=({value:e="",disabled:t=!1,id:n="",children:o})=>jsxRuntime.jsx("option",{value:e,disabled:t,id:n,children:o});ke.OptGroup=({label:e,children:t,disabled:n})=>jsxRuntime.jsx("optgroup",{label:e,disabled:n,children:t});function zr({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:i,onRGBValueChanged:r,onHSLValueChanged:s,...a}){let l=m=>{i&&i(m),r&&r(mn(m)),s&&s(po(m));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(m=>{"0123456789ABCDEF".includes(m)||z(`Ongeldige hex-color '${e}'`);}),e.length===4?c=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?c=e:z(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[m,d,u]=t;(m<0||m>255)&&z(`Ongeldige RGB-waarde, r = '${m}', moet tussen 0 en 255`),(d<0||d>255)&&z(`Ongeldige RGB-waarde, g = '${d}', moet tussen 0 en 255`),(u<0||u>255)&&z(`Ongeldige RGB-waarde, b = '${u}', moet tussen 0 en 255`),c=mo([m,d,u]);}else if(n){let[m,d,u]=n;(m<0||m>360)&&z(`Ongeldige HSL-waarde, h = '${m}', moet tussen 0 en 360`),(d<0||d>100)&&z(`Ongeldige HSL-waarde, s = '${d}', moet tussen 0 en 100`),(u<0||u>100)&&z(`Ongeldige HSL-waarde, l = '${u}', moet tussen 0 en 100`),c=uo([m,d,u]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx($,{icon:o,type:"color",value:c,onValueChanged:l,...a})})}function _r({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 bn({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:i,value:r,checked:s=!1,required:a=!1,spellCheck:l=!1,id:c,autoComplete:m="off",readonly:d=!1,autofocus:u=!1,form:p=void 0,inputRef:h,onBlur:f,onChange:T,onFocus:C,onKeyDown:v,onKeyUp:S,onValueChanged:y,size:N="m",alignment:b="l",itemsDirection:k="h",color:P="p",styling:A="normal",children:E=void 0}){let M=F=>{y&&y(r),T&&T(F);},I="is-checkradio";return N==="s"?I+=" is-small":N==="l"?I+=" is-medium":N==="xl"&&(I+=" is-large"),P==="w"?I+=" is-warning":P==="l"?I+=" is-link":P==="d"?I+=" is-danger":P==="i"?I+=" is-info":P==="s"?I+=" is-success":P==="p"?I+=" is-primary":I+=` ${P}`,A==="rounded"?I+=" is-circle":A==="noborder"?I+=" has-no-border":A==="colored"?I+=" has-background-color":A==="blocky"&&(I+=" is-blocky"),b==="c"?I+=" has-text-centered":b==="r"&&(I+=" has-text-right"),d&&(I+=" is-static"),c||(c=i+"-"+r),jsxRuntime.jsxs("div",{style:{display:k==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:I,id:c,ref:h,name:i,checked:s,spellCheck:l,autoComplete:m,required:a,title:o,readOnly:d,autoFocus:u,form:p,inputMode:n,disabled:t,onKeyDown:v,onKeyUp:S,onBlur:f,onChange:M,onFocus:F=>C&&C(F,e)}),jsxRuntime.jsx("label",{htmlFor:c??i,children:E??i})]})}function wo({children:e=void 0,id:t,label:n,labelHidden:o=!1,name:i,value:r,required:s=!1,size:a="m",direction:l="h",itemsDirection:c="h",alignment:m="l",errorMessage:d="",onValueChanged:u,onBlur:p,onChange:h,onFocus:f,onKeyDown:T,onKeyUp:C,...v}){let[S,y]=ae__default.default.useState(!1),N=A=>{S||y(!0),p&&p(A);},b=A=>{u&&u(A);},P=(A=>ae__default.default.Children.map(A,(E,M)=>{if(ae__default.default.isValidElement(E)&&E.type===Do){let I=!1;return typeof r=="string"||typeof r=="number"||typeof r=="boolean"?I=r===E.props.value:r&&(I=JSON.stringify(r)===JSON.stringify(E.props.value)),jsxRuntime.jsx(bn,{...E.props,size:a,itemsDirection:c,alignment:m,direction:l,id:E.props.id??`${i}-option-${M}`,value:E.props.value,checked:I,name:i,onValueChanged:b,onBlur:N,onKeyDown:T,onKeyUp:C,onChange:h,onFocus:f,children:E.props.children})}return E}))(e);return jsxRuntime.jsxs(oe,{labelHidden:o,label:n??i,required:s,inputId:"",direction:l,size:a,id:t??i,controlClassName:"control",children:[P,S&&d&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(r)})]})}function Do({checked:e=!1,id:t,value:n,children:o,...i}){return jsxRuntime.jsx(bn,{checked:e,name:"",...i,id:t,value:n,children:o})}wo.Item=Do;function Gr({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
66
+ var Vo=Object.defineProperty;var zo=(e,t,n)=>t in e?Vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var De=(e,t,n)=>(zo(e,typeof t!="symbol"?t+"":t,n),n);var at=(s=>(s.Primary="#0089b6",s.Info="#3b59ec",s.Link="2f47bc",s.Success="#519c43",s.Danger="#d91000",s.Warning="#eea720",s))(at||{});function _o({ratio:e="1by1",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})]})}function $t({children:e,className:t="",styles:n={}}){return jsxRuntime.jsx("div",{className:`bulma-box ${t}`.trim(),style:n,children:e})}function Go({children:e,gap:t,multiline:n,centered:o,className:i,styles:r}){let s="columns";return t&&(s+=` is-${t} is-variable`),n&&(s+=" is-multiline"),o&&(s+=" is-centered"),i&&(s+=` ${i}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:s,style:r,children:e})}var H=({children:e,className:t,styles:n})=>jsxRuntime.jsx("div",{className:t,style:n,children:e}),Re=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(H,{...e,className:t})};Re.Full=e=>jsxRuntime.jsx(H,{...e,className:`column is-full ${e.className}`,styles:e.styles});Re.Half=e=>jsxRuntime.jsx(H,{...e,className:`column is-half ${e.className}`,styles:e.styles});Re.Thirds={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-third ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-thirds ${e.className}`,styles:e.styles})};Re.Quarters={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-quarter ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-quarters ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-three-quarters ${e.className}`,styles:e.styles})};Re.Fifths={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-one-fifth ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-two-fifths ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-three-fifths ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(H,{...e,className:`column is-four-fifths ${e.className}`,styles:e.styles})};Re.Twelves={One:e=>jsxRuntime.jsx(H,{...e,className:`column is-1 ${e.className}`,styles:e.styles}),Two:e=>jsxRuntime.jsx(H,{...e,className:`column is-2 ${e.className}`,styles:e.styles}),Three:e=>jsxRuntime.jsx(H,{...e,className:`column is-3 ${e.className}`,styles:e.styles}),Four:e=>jsxRuntime.jsx(H,{...e,className:`column is-4 ${e.className}`,styles:e.styles}),Five:e=>jsxRuntime.jsx(H,{...e,className:`column is-5 ${e.className}`,styles:e.styles}),Six:e=>jsxRuntime.jsx(H,{...e,className:`column is-6 ${e.className}`,styles:e.styles}),Seven:e=>jsxRuntime.jsx(H,{...e,className:`column is-7 ${e.className}`,styles:e.styles}),Eight:e=>jsxRuntime.jsx(H,{...e,className:`column is-8 ${e.className}`,styles:e.styles}),Nine:e=>jsxRuntime.jsx(H,{...e,className:`column is-9 ${e.className}`,styles:e.styles}),Ten:e=>jsxRuntime.jsx(H,{...e,className:`column is-10 ${e.className}`,styles:e.styles}),Eleven:e=>jsxRuntime.jsx(H,{...e,className:`column is-11 ${e.className}`,styles:e.styles}),Twelve:e=>jsxRuntime.jsx(H,{...e,className:`column is-12 ${e.className}`,styles:e.styles})};Re.displayName="Column";var ve=({className:e,children:t,styles:n,size:o="s"})=>{let i="container";return o==="m"?i+=" is-widescreen":o==="l"?i+=" is-fullhd":o==="xl"&&(i+=" is-fluid"),e&&(i+=" "+e),jsxRuntime.jsx("div",{className:i,style:n,children:t})};ve.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"s",children:t});ve.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"m",children:t});ve.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"l",children:t});ve.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(ve,{className:e,styles:n,size:"xl",children:t});function Zo({size:e="m",className:t,styles:n,children:o}){let i="content ";return e==="s"?i+="is-small":e==="m"||e==="l"?i+="is-medium":e==="xl"&&(i+="is-large"),t&&(i+=" "+t),jsxRuntime.jsx("div",{className:i,style:n,children:o})}function qo({children:e,alignment:t="l",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}`),r=r.trim(),jsxRuntime.jsx("footer",{className:r,style:o,children:jsxRuntime.jsx("div",{className:i,children:e})})}var Tt=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})},Xt=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})})]})})};Xt.Button=e=>jsxRuntime.jsx("a",{className:"navbar-item",title:e.tooltip,onClick:e.onClick,children:e.children});Xt.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});Tt.Head=Xt;Tt.Body=e=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e.children})});var Vt=e=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:"tabs is-boxed is-fullwidth container",children:e.children})});Vt.NavList=e=>jsxRuntime.jsx("ul",{children:e.children});Vt.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})});Tt.Foot=Vt;function Qo({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:i,isRounded:r,src:s}){let a=`image is-${e}`;return e==="square"&&(a=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:i,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:a,children:[jsxRuntime.jsx("img",{className:r&&e==="square"?"is-rounded":void 0,src:s,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function ei({children:e,className:t,styles:n}){let o="section";return t&&(o+=` ${t}`),jsxRuntime.jsx("section",{className:o,style:n,children:e})}var ni=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,s=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${s}`;}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,s)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:r},s))})},oi=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))})},ii={Horizontal:ni,Vertical:oi};function Wt({alignment:e="l",autoComplete:t="off",autofocus:n=!1,disabled:o=!1,errorMessage:i="",infoMessage:r=void 0,form:s=void 0,helpTag:a,id:l,inputRef:c,keyboardType:m="text",max:d,min:u,name:p,pattern:h=void 0,placeholder:f,readonly:T=!1,required:C=!1,size:v="m",spellCheck:S=!1,step:y=1,title:N,type:b="text",value:k,className:P="",styles:A={},onBlur:E,onChange:M,onFocus:I,onKeyDown:F,onKeyUp:x,onValueChanged:K}){let se=U=>{K&&K(U.target.value),M&&M(U);},G=i?"input is-danger":"input";return v==="s"?G+=" is-small":v==="l"?G+=" is-medium":v==="xl"&&(G+=" is-large"),e==="l"?G+=" has-text-left":e==="c"?G+=" has-text-centered":e==="r"&&(G+=" has-text-right"),T&&(G+=" is-static"),P&&(G+=` ${P}`),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:G,pattern:h,id:l??p,ref:c,name:p,value:k,spellCheck:S,autoComplete:t,required:C,type:b,title:N,max:d,maxLength:typeof d=="number"?d:void 0,minLength:typeof u=="number"?u:void 0,min:u,step:y,readOnly:T,autoFocus:n,form:s,inputMode:m,placeholder:f,disabled:o,style:A,onKeyDown:F,onKeyUp:x,onBlur:E,onChange:se,onFocus:U=>I&&I(U,a)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(k)}),r&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof r=="string"?r:r(k)})]})}function $({direction:e="h",errorMessage:t="",icon:n=freeSolidSvgIcons.faKeyboard,id:o,label:i,labelHidden:r=!1,name:s,required:a=!1,size:l="m",onBlur:c,...m}){let d=C=>{p(!0),c&&c(C);},[u,p]=ae__default.default.useState(!1),h;n&&(typeof n=="string"?h=jsxRuntime.jsx("i",{className:n}):h=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n}));let f;return t&&(t===""?f=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):f=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(oe,{id:o??s,size:l,inputId:o??s,label:i??s??o,direction:e,required:a,controlClassName:`control ${n?"has-icons-left":""} ${t!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(Wt,{required:a,name:s,size:l,onBlur:d,id:o,...m,errorMessage:u?t:""}),h&&jsxRuntime.jsx("span",{className:"icon is-left",children:h}),f&&jsxRuntime.jsx("span",{className:"icon is-right",children:f})]})}function oe({children:e,controlClassName:t="control",direction:n="h",id:o,inputId:i=void 0,label:r,labelHidden:s=!1,required:a,size:l}){let c="is-normal";l==="s"?c+=" is-small":l==="l"?c+=" is-medium":l==="xl"&&(c+=" is-large");let m=`label ${c} ${s?"is-sr-only":""}`;return n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal",id:o,children:[jsxRuntime.jsx("div",{className:`field-label ${c}`,children:jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,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:t,children:e})})})]}):jsxRuntime.jsxs("div",{className:"field",id:o,children:[jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,a&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:t,children:e})]})}function Ml(e=2e3){let[t,n]=ae__default.default.useState(null),[o,i]=ae__default.default.useState(!1),[r,s]=ae__default.default.useState(null),a=m=>{clearTimeout(r),s(setTimeout(()=>i(!1),e)),i(m);};return {copy:m=>{"clipboard"in navigator?navigator.clipboard.writeText(m).then(()=>a(!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 Ln(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),s=ae__default.default.useRef(!1),a=()=>window.clearTimeout(r.current);return ae__default.default.useEffect(()=>{i.current&&(!s.current&&t.leading?(s.current=!0,o(e)):(a(),r.current=window.setTimeout(()=>{s.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),ae__default.default.useEffect(()=>(i.current=!0,a),[]),[n,a]}function ci(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 mi(e,t){let{alt:n,ctrl:o,meta:i,mod:r,shift:s,key:a}=e,{altKey:l,ctrlKey:c,metaKey:m,shiftKey:d,key:u}=t;if(n!==l)return !1;if(r){if(!c&&!m)return !1}else if(o!==c||i!==m)return !1;return s!==d?!1:!!(a&&(u.toLowerCase()===a.toLowerCase()||t.code.replace("Key","").toLowerCase()===a.toLowerCase()))}function Hn(e){return t=>mi(ci(e),t)}function Hl(e){return t=>{e.forEach(([n,o])=>{Hn(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function ui(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Fl(e){ae__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,i])=>{Hn(o)(n)&&ui(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 Kl({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 l=window.localStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useLocalStoredState failed to get the value: ${l.message}`),t}}),s=ae__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[]),a=ae__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[]);return [i,s,a]}function Fn({value:e,defaultValue:t,finalValue:n,rule:o,onChange:i,onValueUpdate:r}){let s=o(e),a=ae__default.default.useRef("initial"),l=o(t)?t:n,[c,m]=ae__default.default.useState(l),d=s?e:c;!s&&a.current==="controlled"&&(d=n),a.current=s?"controlled":"uncontrolled";let u=a.current,p=h=>{typeof i=="function"&&i(h),u==="uncontrolled"&&m(h);};return ae__default.default.useEffect(()=>{u==="uncontrolled"&&m(d),typeof r=="function"&&r(d);},[u,d]),[d,p,a.current]}var Pt="dots";function Xn({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:i=1,onChange:r=()=>{}}){let[s,a]=Fn({value:o,onChange:r,defaultValue:i,finalValue:i,rule:f=>typeof f=="number"&&f<=e}),l=f=>{f<=0?a(1):f>e?a(e):a(f);},c=()=>l((s??0)+1),m=()=>l((s??0)-1),d=()=>l(1),u=()=>l(e),p=ae__default.default.useCallback((f,T)=>{let C=T-f+1;return Array.from({length:C},(v,S)=>S+f)},[]);return {range:ae__default.default.useMemo(()=>{if(t*2+3+n*2>=e)return p(1,e);let T=Math.max((s??0)-t,n),C=Math.min((s??0)+t,e-n),v=T>n+2,S=C<e-(n+1);if(!v&&S){let y=t*2+n+2;return [...p(1,y),Pt,...p(e-(n-1),e)]}if(v&&!S){let y=n+1+2*t;return [...p(1,n),Pt,...p(e-y,e)]}return [...p(1,n),Pt,...p(T,C),Pt,...p(e-n+1,e)]},[e,t,s]),active:s,setPage:l,next:c,prev:m,first:d,last:u}}function pi(e,t){let[n,o]=ae__default.default.useState(e);return [n,r=>{o(typeof r<"u"?r:s=>s===t[0]?t[1]:t[0]);}]}function ec(e=!1){return pi(e,[!0,!1])}function oc(e,t){let[n,o]=t?t(e):[!0,""],[i,r]=ae__default.default.useState(e??void 0),[s,a]=ae__default.default.useState(n),[l,c]=ae__default.default.useState(o),[m,d]=ae__default.default.useState(n?e:void 0);return [{value:i,lastValidValue:m,valid:s,invalidMsg:l},p=>{let[h,f]=t?t(p):[!0,""];h&&d(p),a(h),c(f),r(p);}]}function lc({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 l=window.sessionStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useSessionStoredState failed to get the value: ${l.message}`),t}}),s=ae__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[]),a=ae__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[]);return [i,s,a]}var Ce=({color:e="p",size:t="m",rotation:n=0,icon:o,flip:i=void 0,animate:r=void 0})=>{let s="icon",a="1x";switch(e==="s"?s+=" has-text-success":e==="d"?s+=" has-text-danger":e==="w"?s+=" has-text-warning":e==="p"?s+=" has-text-primary":e==="i"?s+=" has-text-info":e==="l"&&(s+=" has-text-link"),t){case"s":a="sm",s+=" is-small";break;case"m":a="1x",s+=" is-normal";break;case"l":a="2x",s+=" is-medium";break;case"xl":a="3x",s+=" is-large";break;default:a="1x",s+=" is-normal";break}return typeof o=="string"?jsxRuntime.jsx("span",{className:s,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:s,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:a,rotation:n===0?void 0:n,flip:i,spin:r==="spin",pulse:r==="pulse"})})},Yt=({icon:e,size:t="m",color:n="p",rotation:o=0,flip:i=void 0,animate:r=void 0,children:s})=>{let a="icon-text";return n==="s"?a+=" has-text-success":n==="d"?a+=" has-text-danger":n==="w"?a+=" has-text-warning":n==="p"?a+=" has-text-primary":n==="i"?a+=" has-text-info":a+=" has-text-link",jsxRuntime.jsxs("span",{className:a,role:"icon-with-text",children:[jsxRuntime.jsx(Ce,{icon:e,size:t,color:n,rotation:o,flip:i,animate:r}),jsxRuntime.jsx("span",{children:s})]})};function qt({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:i=!1,hidePrev:r=!1,hideNext:s=!1,hideNumbers:a=!1,set:l=p=>{},first:c=()=>{},last:m=()=>{},prev:d=()=>{},next:u=()=>{}}){let p="pagination";return n==="s"?p+=" is-small":n==="m"?p+=" is-normal":n==="l"?p+=" is-medium":n==="xl"&&(p+=" is-large"),jsxRuntime.jsx("div",{className:p,children:jsxRuntime.jsxs("ul",{className:"pagination-list",children:[!o&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"eerste pagina",onClick:c,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardFast})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:d,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!a&&e.map((h,f)=>h==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},h+f):h!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${h}`,onClick:()=>l(h),children:h})},h):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${h}`,onClick:()=>l(h),children:h})},h)),!s&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:u,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:m,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}function Ii({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,striped:i=!1,fullwidth:r=!1,bordered:s=!1,hoverable:a=!1,hidePagination:l=!1,hideSearch:c=!1,headerContent:m=void 0,footerContent:d=void 0,size:u="s",maxRows:p=20,searchPlaceholder:h="Zoek ...",rowIdentifier:f="id",onSearch:T=(N,b)=>b.filter(k=>JSON.stringify(k).includes(N)),onRowSelected:C,rowClass:v,renderWhenNoData:S=N=>N?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:y=(N,b,k)=>k===""?`Toon ${b} rijen`:`Toon ${N} van ${b} rijen`}){let N=X=>{ye(1),A(X);},[b,k]=ae__default.default.useState(()=>n||t.findIndex(X=>X.sort!==void 0)+1),[P,A]=ae__default.default.useState(""),[E]=Ln(P,{delay:100}),M=[...P===""?e:T(E,e)];M.sort(t[b-1]?.sort??(()=>0)),b<0&&M.reverse();let I=p===0?M.length:p,{range:F,active:x,next:K,prev:se,first:G,last:U,setPage:ye}=Xn({total:Math.ceil(M.length/I)}),be=M.slice(((x??1)-1)*I,(x??1)*I),J="table";return s&&(J+=" is-bordered"),o&&(J+=" is-narrow"),i&&(J+=" is-striped"),r&&(J+=" is-fullwidth"),a&&(J+=" is-hoverable"),jsxRuntime.jsxs("table",{className:J,children:[jsxRuntime.jsx(Ni,{cols:t,size:u,searchValue:P,filterCount:M.length,dataCount:e.length,hideSearch:c,onSearchValueChanged:N,searchPlaceholder:h,infoMessage:y,sortColNum:b,onSortIndexChanged:k,children:m}),be.length>0&&jsxRuntime.jsx(xi,{rows:be,rowIdentifier:f,cols:t,onRowSelected:C,rowClass:v}),be.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:t.length,children:S(P!=="")})})}),jsxRuntime.jsx(ki,{size:u,cols:t,currentPage:x??1,hidePagination:l,range:F,next:K,prev:se,first:G,last:U,set:ye,children:d})]})}function xi({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:i=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(r=>{let s=typeof o=="function"?o(r):o,a=typeof n=="function"?n(r):r[n];return jsxRuntime.jsx("tr",{className:s,onClick:l=>i(r,l),children:t.map((l,c)=>{let m;typeof l.cellIdentifier=="function"?m=l.cellIdentifier(r):l.cellIdentifier?m=r[l.cellIdentifier]:m=`${a}-${c}`;let d=typeof l.columnClass=="function"?l.columnClass(r):l.columnClass;return l.alignment==="l"?d+=" has-text-left":l.alignment==="c"?d+=" has-text-centered":l.alignment==="r"&&(d+=" has-text-right"),jsxRuntime.jsx("td",{className:d,children:typeof l.value=="function"?l.value(r):r[l.value]},m)})},a)})})}function Ni({children:e=void 0,searchValue:t="",filterCount:n,dataCount:o,searchPlaceholder:i,cols:r,size:s,sortColNum:a,hideSearch:l,onSortIndexChanged:c,onSearchValueChanged:m,infoMessage:d}){let u=(f,T)=>{let C=T+1,v=r[T];v&&v.sort&&(Math.abs(a)===C?c(a*-1):a!==C&&c(C));},p=l?r.length:Math.ceil(r.length/2),h=l?0:r.length-p;return jsxRuntime.jsxs("thead",{children:[jsxRuntime.jsxs("tr",{children:[jsxRuntime.jsx("th",{colSpan:p,children:e}),!l&&jsxRuntime.jsx("th",{colSpan:h,children:jsxRuntime.jsx(Wt,{size:s,type:"text",name:"loon-bulma-react-datatable-search-input",placeholder:i,value:t,onValueChanged:m,infoMessage:d(n,o,t)})})]}),jsxRuntime.jsx("tr",{children:r.map((f,T)=>{let C=f.sort!==void 0,v=Math.abs(a)-1===T,S;f.header||f.header===""?S=f.header:typeof f.value!="string"?S=f.value.toString():S=f.value;let y="";f.alignment==="l"?y+=" has-text-left":f.alignment==="c"?y+=" has-text-centered":f.alignment==="r"&&(y+=" has-text-right");let N=freeSolidSvgIcons.faSort;return v&&a>0?N=freeSolidSvgIcons.faSortUp:v&&a<0&&(N=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{style:{cursor:C?"pointer":void 0},className:y,onClick:b=>u(b,T),children:[C&&jsxRuntime.jsx(Yt,{icon:N,children:S}),!C&&jsxRuntime.jsx("span",{children:S})]},T)})})]})}function ki({size:e,children:t=void 0,hidePagination:n=!1,cols:o,range:i,currentPage:r,next:s,prev:a,first:l,last:c,set:m}){return jsxRuntime.jsxs("tfoot",{children:[!n&&i.length>1&&jsxRuntime.jsx("tr",{children:jsxRuntime.jsx("td",{colSpan:o.length,children:jsxRuntime.jsx(qt,{size:e,range:i,currentPage:r,next:s,prev:a,first:l,last:c,set:m})})}),t]})}function Ai({label:e,className:t,position:n="tr",color:o="l",title:i,tooltip:r,children:s}){let a="indicator";return n==="tl"||n==="top-left"?a+=" is-top-left":n==="tr"||n==="top-right"?a+=" is-top-right":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"),o==="p"?a+=" is-primary":o==="l"?a+=" is-link":o==="i"?a+=" is-info":o==="w"?a+=" is-warning":o==="d"?a+=" is-danger":o==="s"&&(a+=" is-success"),jsxRuntime.jsxs("div",{className:t,children:[jsxRuntime.jsx("div",{className:a,title:i??r,children:e}),s]})}function Qt({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Ri({keys:e,separator:t,className:n=""}){let o=e.map((i,r)=>r===e.length-1?jsxRuntime.jsx(Qt,{children:i},i):jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Qt,{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===Kn?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(jt,{...r.props,activeItem:t,onInternClick:o})}):r.type===zn?jsxRuntime.jsx(Ji,{...r.props,activeItem:t,onInternClick:o}):r.type===_n?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(Wn,{...r.props,activeItem:t,onInternClick:o})}):r);return jsxRuntime.jsx("aside",{className:"menu",role:"menu",children:i})},zn=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]}),Ji=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(jt,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t.type.name=="ExpandableMenuItem"?jsxRuntime.jsx(Wn,{...t.props,activeItem:e.activeItem,onInternClick:e.onInternClick}):t)})]}),_n=e=>jsxRuntime.jsx("div",{children:e.children}),Wn=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(jt,{...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(Ce,{color:"i",size:"s",icon:t?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e.label]})]}),t&&jsxRuntime.jsx("ul",{children:i})]})},Kn=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]}),jt=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=Kn;Nt.ItemGroup=zn;Nt.ExpandableItem=_n;var ce=({children:e,title:t,size:n="m",color:o="i"})=>{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==="m"?i+=" is-normal":n==="l"?i+=" is-medium":n==="xl"&&(i+=" is-large"),jsxRuntime.jsxs("article",{className:i,children:[t&&jsxRuntime.jsx($i,{title:t,icon:r}),jsxRuntime.jsx(Xi,{hasHeader:!!t,icon:r,size:n,children:e})]})},$i=({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]})});function Xi({children:e,hasHeader:t,icon:n=void 0,size:o="m"}){let i="icon";return o==="s"?i+=" mr-1 is-small":o==="m"?i+=" mr-1 is-medium":(o==="l"||o==="xl")&&(i+=" is-large"),jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t?e:jsxRuntime.jsxs("div",{children:[n&&jsxRuntime.jsx("span",{className:i,style:{float:"left"},children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:n})}),e]})})}ce.Primary=e=>jsxRuntime.jsx(ce,{...e,color:"p"});ce.Success=e=>jsxRuntime.jsx(ce,{...e,color:"s"});ce.Danger=e=>jsxRuntime.jsx(ce,{...e,color:"d"});ce.Warning=e=>jsxRuntime.jsx(ce,{...e,color:"w"});ce.Info=e=>jsxRuntime.jsx(ce,{...e,color:"i"});ce.Link=e=>jsxRuntime.jsx(ce,{...e,color:"l"});var z=(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===Un?jsxRuntime.jsx(Vi,{...r.props}):r.type===Zn?jsxRuntime.jsx(nn,{...r.props}):r.type===Yn?jsxRuntime.jsx(zi,{...r.props}):jsxRuntime.jsx(nn,{children:r}):null)?.sort((r,s)=>r.type.name==="InternHead"?-1:r.type.name==="InternBody"&&s.type.name==="InternHead"?1:r.type.name==="InternBody"&&s.type.name==="InternFoot"?-1:r.type.name==="InternFoot"?1:0);return !i||i?.length===0?z("<Modal> A Modal needs at least one child"):i.filter(r=>r.type===nn).length>1&&z("<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)})]})})},Un=e=>jsxRuntime.jsx("div",{children:e.children}),Vi=e=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e.children}),Zn=e=>jsxRuntime.jsx("div",{children:e.children}),nn=e=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e.children}),Yn=e=>jsxRuntime.jsx("div",{children:e.children}),zi=e=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e.children});At.Head=Un;At.Body=Zn;At.Foot=Yn;var ue=({children:e,onDismiss:t,autoDismissAfter:n=-1,color:o="i"})=>{let i=n>0?setTimeout(()=>s(null),n):null,[r]=ae__default.default.useState(i);ae__default.default.useEffect(()=>()=>r?clearTimeout(r):void 0,[r]);let s=c=>{r&&clearTimeout(r),t(c);},a="notification is-light",l=freeSolidSvgIcons.faInfo;switch(o){case"s":a+=" is-success",l=freeSolidSvgIcons.faCheck;break;case"d":a+=" is-danger",l=freeSolidSvgIcons.faExclamationTriangle;break;case"w":a+=" is-warning",l=freeSolidSvgIcons.faExclamation;break;case"p":a+=" is-primary",l=freeSolidSvgIcons.faInfo;break;case"l":a+=" is-link",l=freeSolidSvgIcons.faInfo;break;default:a+=" is-info",l=freeSolidSvgIcons.faInfo;break}return jsxRuntime.jsxs("article",{className:a,children:[jsxRuntime.jsx(Zi,{color:o??"i",onDismiss:c=>s(c)}),jsxRuntime.jsx(Yi,{icon:l,children:e})]})};function Zi({color:e="i",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:t,children:jsxRuntime.jsx("span",{className:i,role:"close-icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimesCircle,size:"lg"})})})}function Yi({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]})}ue.Primary=e=>jsxRuntime.jsx(ue,{...e,color:"p"});ue.Danger=e=>jsxRuntime.jsx(ue,{...e,color:"d"});ue.Warning=e=>jsxRuntime.jsx(ue,{...e,color:"w"});ue.Success=e=>jsxRuntime.jsx(ue,{...e,color:"s"});ue.Link=e=>jsxRuntime.jsx(ue,{...e,color:"l"});ue.Info=e=>jsxRuntime.jsx(ue,{...e,color:"i"});function qi({color:e="i",size:t="m",extension:n=" %",max:o=100,value:i}){let r="progress";return t==="s"?r+=" is-small":t==="m"?r+=" is-normal":t==="l"?r+=" is-medium":t==="xl"&&(r+=" is-large"),e==="s"?r+=" is-success":e==="i"?r+=" is-info":e==="p"?r+=" is-primary":e==="d"?r+=" is-danger":e==="l"?r+=" is-link":e==="w"&&(r+=" is-warning"),jsxRuntime.jsx("progress",{className:r,value:i,max:o||100,title:`${i??""}${n??""}`,children:i})}function ji(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,s)=>{e.onRowSelected&&e.onRowSelected(r,s);},i=or(e.columns,e.data[0]);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:t,children:[jsxRuntime.jsx(tr,{titles:i}),jsxRuntime.jsx(er,{columns:i,data:e.data,rowIdentifier:n,onRowSelected:(r,s)=>o(r,s)}),e.hasFooter&&jsxRuntime.jsx(nr,{titles:i})]})})}function er(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 tr(e){return jsxRuntime.jsx("thead",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function nr(e){return jsxRuntime.jsx("tfoot",{children:jsxRuntime.jsx("tr",{children:e.titles.map(t=>jsxRuntime.jsx("th",{children:t.header},t.header))})})}function or(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 rn=e=>{let[t,n]=ae__default.default.useState(e.activeStepIndex??0),o=s=>{e.onChangeStep&&e.onChangeStep(s),n(s);};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,(s,a)=>{if(s.type&&s.type==rn.Item){let l=!0;return e.freeStepChoice==="allowed"||e.freeStepChoice==="down"&&a<t||e.freeStepChoice==="up"&&a>t?l=!1:l=a!=t+1&&a!=t-1,jsxRuntime.jsx(rr,{...s.props,activeStep:t,stepKey:a,disabled:l,onClick:o},s.props.title)}else return s})})};rn.Item=e=>jsxRuntime.jsx(ae__default.default.Fragment,{children:e.title});function rr(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 a="pending";e.status==="error"?a="error":e.status==="completed"||e.activeStep>e.stepKey?a="completed":e.stepKey===e.activeStep&&(a="active"),o(a);},[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 eo=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:s,styling:a}=e,l="tabs";i==="s"?l+=" is-small":i==="l"?l+=" is-medium":i==="xl"&&(l+=" is-large"),a==="boxed"?l+=" is-boxed":a==="toggle"&&(l+=" is-toggle"),r==="c"?l+=" is-centered":r==="r"&&(l+=" is-right"),l+=s?" is-fullwidth":"";let c=ae__default.default.Children.map(e.children,(m,d)=>jsxRuntime.jsx(ar,{isActive:t?t==m.props.tabId:d==0,onClick:()=>o(m.props.tabId),children:m}));return jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsx("ul",{children:c})})};function ar({children:e,isActive:t,onClick:n}){return jsxRuntime.jsx("li",{role:"tab",className:t?"is-active":void 0,onClick:n,children:e})}function sr({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})}eo.Item=sr;function an({children:e,color:t="l",size:n="m",light:o=!1,rounded:i=!1,tooltip:r,title:s,onDismiss:a}){let l="tag";return o&&(l+=" is-light"),i&&(l+=" 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"),jsxRuntime.jsxs("span",{className:l,title:s??r,children:[e,a&&jsxRuntime.jsx("button",{className:"delete",onClick:m=>a&&a(m)})]})}function lr({children:e,merged:t=!1,size:n="m",alignment:o="l",className:i=""}){let r="tags";return n==="s"?r+=" are-small":n==="m"?r+=" are-medium":n==="l"&&(r+=" are-large"),o==="l"?r+=" is-left":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 sn=({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})};sn.Point=({children:e,color:t,size:n,tooltip:o,onClick:i})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:i,children:jsxRuntime.jsx(an,{color:t??"l",size:n,tooltip:o,light:!0,rounded:!0,children:e})});sn.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(Ce,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};function oo({bulmaSize:e=3,headingSize:t="h1",children:n,txt:o}){let i=typeof t=="string"?+t.replace("h",""):t,r=`title is-${e}`;if(n=n??o,!n)throw Error('Title moet children OF txt="..." hebben');if(i===1)return jsxRuntime.jsx("h1",{className:r,children:n});if(i===2)return jsxRuntime.jsx("h2",{className:r,children:n});if(i===3)return jsxRuntime.jsx("h3",{className:r,children:n});if(i===4)return jsxRuntime.jsx("h4",{className:r,children:n});if(i===5)return jsxRuntime.jsx("h5",{className:r,children:n});if(i===6)return jsxRuntime.jsx("h6",{className:r,children:n});throw Error("HeadingSize moet een waarde tussen 1 en 6 zijn")}function io({bulmaSize:e=5,headingSize:t="h2",children:n,txt:o}){let i=typeof t=="string"?+t.replace("h",""):t,r=`subtitle is-${e}`;if(n=n??o,!n)throw Error('Title moet children OF txt="..." hebben');if(i===1)return jsxRuntime.jsx("h1",{className:r,children:n});if(i===2)return jsxRuntime.jsx("h2",{className:r,children:n});if(i===3)return jsxRuntime.jsx("h3",{className:r,children:n});if(i===4)return jsxRuntime.jsx("h4",{className:r,children:n});if(i===5)return jsxRuntime.jsx("h5",{className:r,children:n});if(i===6)return jsxRuntime.jsx("h6",{className:r,children:n});throw Error("HeadingSize moet een waarde tussen 1 en 6 zijn")}function mr({bulmaSize:e=3,headingSize:t="h1",titleTxt:n,subtitleTxt:o,className:i}){let r=typeof e=="string"?+e:e,a=(typeof t=="string"?+t.replace("h",""):t)??r;return jsxRuntime.jsxs("div",{className:i,children:[jsxRuntime.jsx(oo,{bulmaSize:r,headingSize:a,children:n}),jsxRuntime.jsx(io,{bulmaSize:r+2,headingSize:a+1,children:o})]})}var ur=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),dr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),pr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),fr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),gr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e}),hr=({children:e,subtitle:t=!1,size:n=3,id:o,ariaLabeledBy:i="",ariaRole:r="heading"})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n}`,"aria-labelledby":i,role:r,id:o,children:e});var ln=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=l=>{o!=l&&(e.onToggle&&e.onToggle(l),i(l));},s=ae__default.default.Children.map(e.children,(l,c)=>{let m=l.props?.identifier??ae__default.default.Children.map(l.props.children,d=>typeof d=="string"?d:typeof d.type=="string"?d.type:d)?.join("")??""+c;return l.type===ro?jsxRuntime.jsx(br,{...l.props,toggled:o==m,identifier:m,onColor:l.props.onColor,offColor:l.props.onColor,light:e.light??!0,outlined:e.outlined??!1,rounded:e.rounded,onToggleClick:r}):l.type===ao?jsxRuntime.jsx(Tr,{...l.props,identifier:m,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}),a="buttons has-addons";return t==="m"?a+=" are-normal":t==="l"?a+=" are-medium":t==="xl"?a+=" are-large":a+=" are-small",n==="c"?a+=" is-centered":n==="r"?a+=" is-right":a+=" is-left",e.className&&(a+=" "+e.className),jsxRuntime.jsx("div",{className:a,children:s})},ro=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function br(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 ao=e=>jsxRuntime.jsx("button",{disabled:e.disabled});function Tr(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})}ln.Item=ro;ln.OnOffItem=ao;var cn=({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0})=>{let i="field";return i+=t?" has-addons":" is-grouped",n==="l"?i+=" is-grouped-left":n==="c"?i+=" is-grouped-centered":n==="r"&&(i+=" is-grouped-right"),o&&(i+=` ${o}`),jsxRuntime.jsx("div",{className:i,children:ae__default.default.Children.map(e,r=>jsxRuntime.jsx("div",{className:"control",children:r}))})};var j=({color:e="p",size:t="m",rounded:n=!1,loading:o,disabled:i,type:r="button",styling:s="default",helpTag:a,onClick:l,onFocus:c,children:m,tooltip:d,title:u,id:p,name:h,value:f,form:T,formAction:C})=>{let v=b=>{o||i||s==="static"||s==="s"||l&&l(b);},S=b=>{c&&c(b,a);},y="button";s==="static"||s==="s"?y+=" is-static":(e==="p"?y+=" is-primary":e==="i"?y+=" is-info":e==="l"?y+=" is-link":e==="d"?y+=" is-danger":e==="s"?y+=" is-success":e==="w"?y+=" is-warning":y+=` ${e}`,s==="light"||s==="l"?y+=" is-light":s==="outlined"||s==="o"?y+=" is-outlined":s==="inverted"||s==="i"?y+=" is-inverted":(s==="light-outlined"||s==="lo")&&(y+=" is-light is-outlined")),t==="s"?y+=" is-small":t==="m"?y+=" is-normal":t==="l"?y+=" is-medium":t==="xl"&&(y+=" is-large"),n&&(y+=" is-rounded"),o&&(y+=" is-loading");let N=ae__default.default.Children.map(m,b=>typeof b=="string"?jsxRuntime.jsx("span",{children:b}):b);return jsxRuntime.jsx("button",{form:T,formAction:C,className:y,type:r,disabled:i,onClick:v,onFocus:S,title:u??d,id:p,name:h,value:f,children:N})};j.Static=e=>jsxRuntime.jsx(j,{...e,styling:"s"});j.Primary=e=>jsxRuntime.jsx(j,{...e,color:"p"});j.Success=e=>jsxRuntime.jsx(j,{...e,color:"s"});j.Danger=e=>jsxRuntime.jsx(j,{...e,color:"d"});j.Warning=e=>jsxRuntime.jsx(j,{...e,color:"w"});j.Info=e=>jsxRuntime.jsx(j,{...e,color:"i"});j.Link=e=>jsxRuntime.jsx(j,{...e,color:"l"});var Cr=({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:s,seconds:a,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))),o&&(c=new Date(c.setDate(c.getDate()+o*7))),i&&(c=new Date(c.setDate(c.getDate()+i))),r&&(c=new Date(c.setHours(c.getHours()+r))),s&&(c=new Date(c.setMinutes(c.getMinutes()+s))),a&&(c=new Date(c.setSeconds(c.getSeconds()+a))),l&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+l))),w.fromDate(c,this._locale)}isBetween(t,n){let o=(typeof n=="boolean"?n:n?.[0])??!1,i=(typeof n=="boolean"?n:n?.[1])??!1,[r,s]=t.sort((a,l)=>a.valueOf()-l.valueOf());if(r.valueOf()===s.valueOf())throw new Error("dates must be different");return o&&i?r<=this._date&&this._date<=s:o&&!i?r<=this._date&&this._date<s:!o&&i?r<this._date&&this._date<=s:r<this._date&&this._date<s}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:s,day:a,hour:l,minute:c,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(s>12||s<1)throw new RangeError(`month value should be between 1 and 12, got ${s}`);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(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,s,0),p=u.getDate();if(a>p||a<1)throw new RangeError(`day value should be between 1 and ${p} for ${u.toLocaleString(n,{month:"short"})} ${r}, got ${a}`);return new w(new Date(r,s-1,a,l,c,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,s="ymdhHMsSWtZO";return (t+" ").split("").forEach(a=>{o===""?i=1:!r&&a===o&&s.includes(a)?i++:!r&&a===o&&!s.includes(a)?(i++,n+=o):r?r&&(n+=o,i=1):(n+=s.includes(o)?`[${o}${i}]`:o,i=1),a===this.IGNORE_SIGN&&(r=!r),o=a;}),n}},D=w;De(D,"defaultLocale",Intl.DateTimeFormat().resolvedOptions().locale),De(D,"defaultTimezone",Intl.DateTimeFormat().resolvedOptions().timeZone),De(D,"MAX_DATE_NUM",864e13),De(D,"MAX_DATE",new Date(w.MAX_DATE_NUM)),De(D,"defaultFormatOptions",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});var co=class{jsdate1;jsdate2;constructor(t,n=D.now()){this.jsdate1=t instanceof Date?D.fromDate(t):t.clone(),this.jsdate2=n instanceof Date?D.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(([s,a])=>{if(t.includes(s)){let l=0;for(;n>=i;)l++,n-=i;Object.assign(o,{[s]:l});}i/=a;}),Object.assign(o,{rest:n}),o}};function Fm(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 s of o.split(""))i+=parseInt(s)*r,r=r!==2?r-1:-1;i%11===0&&n.push(o);}return [n.length>0,n]}return [!1,[]]}function Se(e){let t=typeof e!="string",n;typeof e=="string"?n=Ir(e):n=e;let[o=255,i=255,r=255]=n,a=[o/255,i/255,r/255].map(c=>c<.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)),l=.02126*a[0]+.7152*a[1]+.0722*a[2];return isNaN(l)?[0,0,0]:l>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function Ir(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(a=>t+=a+a):e.length===5?e.substring(1,5).split("").forEach(a=>t+=a+a):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),s=parseInt(t.substring(7,9),16);return [o,i,r,s]}function Vm(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=xr.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 xr=[{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 mo([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function mn(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e);return console.log(e,t),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function uo([e,t,n]){let o=n/100,i=t*Math.min(o,1-o)/100,r=s=>{let a=(s+e/30)%12,l=o-i*Math.max(Math.min(a-3,9-a,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return `#${r(0)}${r(8)}${r(4)}`}function po(e){let[t,n,o]=mn(e);t/=255,n/=255,o/=255;let i=Math.max(t,n,o),r=Math.min(t,n,o),s=(i+r)/2,a=s,l=s;if(i!==r){let c=i-r;return a=l>.5?c/(2-i-r):c/(i+r),t===i?s=(n-o)/c+(n<o?6:0):n===i?s=(o-t)/c+2:o===i&&(s=(t-n)/c+4),[Math.round(360*(s/6)),Math.round(a*100),Math.round(l*100)]}else return [0,0,l]}var Me={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"},Be={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},tt={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},Oe={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"},fo={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"},go={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function dt({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),s=ae__default.default.useCallback(Se,[]),a=ae__default.default.useMemo(()=>{let c="p";e.evtColor?c=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(c=t.evtColor(e,i)),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+=i?"aa":"ff";let m=s(c);return {...Me,paddingLeft:"1em",backgroundColor:c,color:m,cursor:n?"pointer":"default"}},[e,i]),l=ae__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:c=>n&&n(e,c),style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx("span",{children:o(e)})})}function Ue({event:e,options:t,onClick:n,desc:o}){let[i,r]=ae__default.default.useState(!1),s=ae__default.default.useCallback(Se,[]),a=ae__default.default.useMemo(()=>{let m=i?"#f1f1f1":"#ffffff00",d=s(m);return {...Me,backgroundColor:m,color:d,cursor:n?"pointer":"default"}},[i]),l=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"),{...go,backgroundColor:m}},[e,i]),c=ae__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:c,onClick:m=>n&&n(e,m),style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[jsxRuntime.jsx("span",{style:l}),o(e)]})}function yo({events:e,onEventClick:t,options:n}){let[o,i]=ae__default.default.useState(()=>e.slice(4)),[r,s]=ae__default.default.useState(!1),[a,l]=ae__default.default.useState(!1);ae.useEffect(()=>{i(e.slice(4));},[e]);let c=ae__default.default.useMemo(()=>({...Me,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=()=>{l(!a),s(!1);};return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[a&&o.map(u=>u.allDay?jsxRuntime.jsx(dt,{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(Ue,{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:()=>s(!0),onMouseLeave:()=>s(!1),style:c,children:[!a&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsxs("span",{children:["Nog ",o.length," ..."]})]}),a&&jsxRuntime.jsxs("div",{onClick:d,children:[jsxRuntime.jsx("span",{style:m}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var pe=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 s="tooltip is-bottom",a="tooltip-arrow";return o==="p"?(s+=" is-primary",a+=" is-primary"):o==="i"?(s+=" is-info",a+=" is-info"):o==="l"?(s+=" is-link",a+=" is-link"):o==="d"?(s+=" is-danger",a+=" is-danger"):o==="s"?(s+=" is-success",a+=" is-success"):o==="w"?(s+=" is-warning",a+=" is-warning"):(s+=` ${o}`,a+=` ${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:s,children:t}),jsxRuntime.jsx("div",{className:a})]})]})}else return jsxRuntime.jsx(ae__default.default.Fragment,{children:n})}};De(pe,"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:s=!0}){let[a,l]=ae__default.default.useState(!1),c=ae__default.default.useCallback(Se,[]),m=ae__default.default.useMemo(()=>({...Dt,backgroundColor:s?"transparent":"#f8f8f8",color:s?"#888888":"#bbbbbb"}),[t,i]),d=ae__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let u="p";e?.today?.bgColor&&(u=e.today.bgColor(a,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=c(u);return {...Rt,backgroundColor:u,color:p}},[t,a]);return jsxRuntime.jsxs("div",{style:m,children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...fo,cursor:n?"pointer":"default",backgroundColor:a?"#f4f4f4":"transparent",color:s?"#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:s?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:i.map((u,p)=>{let h=`${typeof u.id=="function"?u.id():u.id}`??p;return u.allDay&&p<4?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:u,options:e?.event?.allday,onClick:o})},h):!u.allDay&&p<4?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ue,{desc:f=>jsxRuntime.jsxs(ae__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:u,options:e?.event?.timed,onClick:o})},h):p===4&&i.length>5?jsxRuntime.jsx(yo,{events:i,onEventClick:o,options:e?.event},t.dateShort+"-more"):p===4&&u.allDay?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx("span",{children:typeof f.title=="string"?f.title:f.title()}),event:u,options:e?.event?.allday,onClick:o})},h):p===4&&!u.allDay?jsxRuntime.jsx(pe,{display:"block",color:r,content:typeof u.description=="function"?u.description():u.description,children:jsxRuntime.jsx(Ue,{desc:f=>jsxRuntime.jsxs(ae__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:u,options:e?.event?.timed,onClick:o})},h):null})})]})}function To({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]),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((u,p)=>{let h=Math.ceil(u.weekNr/52*13),f=u.clone();for(;Math.ceil(f.weekNr/52*13)===h;)f=f.plus({days:-1});let T=u.clone();for(;Math.ceil(T.weekNr/52*13)===h;)T=T.plus({days:1});f=f.plus({days:1}),T=T.plus({days:-1});let C=(p??i??[]).map(y=>(y.allDay=y.allDay||!y.endDateTime,y.startDateTime instanceof Date&&(y.startDateTime=D.fromDate(y.startDateTime,t?.locale)),y.endDateTime&&y.endDateTime instanceof Date&&(y.endDateTime=D.fromDate(y.endDateTime,t?.locale)),y)).filter(y=>y.startDateTime.isBetween([f,T])),v=f.clone(),S=[];for(;v<=T;){if(r.has(v.weekDay)){let y=v.startOf("day"),N=v.endOf("day"),b=C.filter(k=>k.startDateTime.isBetween([y,N])).sort((k,P)=>k.allDay&&!P.allDay?-1:!k.allDay&&P.allDay?1:k.startDateTime.valueOf()-P.startDateTime.valueOf());S.push([v,b]);}v=v.plus({days:1});}return S},[]),[c,m]=ae__default.default.useState(l(s));ae__default.default.useEffect(()=>{let u=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(u),m(l(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Er,{visibleDays:r,viewDate:s}),jsxRuntime.jsx(wr,{visibleDays:r,viewDate:s,datesWithEvents:c,options:t,onDayClick:o,onEventClick:n})]})})}function Er({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),s=0;for(;o<=i&&s<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),s++;let a=ae__default.default.useMemo(()=>({...Be}),[]),l=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:a}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function wr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i}){let r=e.size,s=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([a,l])=>(s==r&&(s=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(Dr,{weekNr:a.weekNr}),jsxRuntime.jsx(Bt,{date:a,events:l,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o},a.ISO)]},a.ISO)))})}function Dr({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Oe}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function So({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]),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((u,p)=>{let h=u.startOf("month").startOf("week").startOf("day"),f=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=D.fromDate(S.startDateTime,t?.locale)),S.endDateTime&&S.endDateTime instanceof Date&&(S.endDateTime=D.fromDate(S.endDateTime,t?.locale)),S)).filter(S=>S.startDateTime.isBetween([h,f])),C=h.clone(),v=[];for(;C<f;){if(r.has(C.weekDay)){let S=C.startOf("day"),y=C.endOf("day"),N=T.filter(b=>b.startDateTime.isBetween([S,y])).sort((b,k)=>b.allDay&&!k.allDay?-1:!b.allDay&&k.allDay?1:b.startDateTime.valueOf()-k.startDateTime.valueOf());v.push([C,N]);}C=C.plus({days:1});}return v},[]),[c,m]=ae__default.default.useState(l(s,i));ae__default.default.useEffect(()=>{let u=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(u),m(l(u,i));},[e,i,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Rr,{visibleDays:r,viewDate:s}),jsxRuntime.jsx(Mr,{visibleDays:r,viewDate:s,datesWithEvents:c,options:t,onDayClick:o,onEventClick:n})]})})}function Rr({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),s=0;for(;o<=i&&s<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),s++;let a=ae__default.default.useMemo(()=>({...Be}),[]),l=ae__default.default.useMemo(()=>({...Be}),[]);return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:a}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Mr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i,viewDate:r}){let s=e.size,a=0;return jsxRuntime.jsx(ae__default.default.Fragment,{children:i.map(([l,c])=>(a===s&&(a=0),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Br,{weekNr:l.weekNr}),jsxRuntime.jsx(Bt,{date:l,events:c,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:l.hasSame(r,"month")},l.ISO)]},l.ISO)))})}function Br({weekNr:e}){let t=ae__default.default.useMemo(()=>({...Oe}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function vo({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(pe,{display:"block",color:o,content:typeof r.description=="function"?r.description():r.description,children:jsxRuntime.jsx(Ue,{desc:s=>jsxRuntime.jsx("span",{children:typeof s.title=="function"?s.title():s.title}),event:r,options:e?.event?.allday,onClick:n})},`${typeof r.id=="function"?r.id():r.id}`))})}function Co({hour:e}){let t=ae__default.default.useMemo(()=>({...Oe,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function Po({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),s=e.length!==0&&r.current?.offsetWidth?r.current.offsetWidth/e.length:0;return jsxRuntime.jsx("div",{style:i,ref:r,children:e.map((a,l)=>jsxRuntime.jsx(Jr,{tooltipColor:o,options:n?.event?.timed,event:a,eventIndex:l,desc:c=>{let m=typeof c.title=="function"?c.title():c.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:c.startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:m})]})},onClick:t,eventWidth:s},`${typeof a.id=="function"?a.id():a.id}`))})}function Jr({event:e,options:t,eventWidth:n,eventIndex:o,tooltipColor:i,onClick:r,desc:s}){let[a,l]=ae__default.default.useState(!1),c=ae__default.default.useCallback(Se,[]),m=ae__default.default.useRef(null),d=ae__default.default.useMemo(()=>{let u="p";e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(a):e.evtColor:t?.evtColor&&(u=t.evtColor(e,a)),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+=a?"aa":"ff";let p=c(u),h=e.startDateTime,f=e.endDateTime;f.hasSame(h,"day")||(f=h.endOf("day"));let C=(f.valueOf()-h.valueOf())/1e3/60;return {...Me,position:"absolute",backgroundColor:u,color:p,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${h.minute}px`,height:`${C<30?30:C}px`,width:n,lineHeight:"1.05em",overflow:"visible",marginLeft:`${o*n}px`,cursor:r?"pointer":"default"}},[e,a,n,o]);return jsxRuntime.jsx("div",{ref:m,onClick:u=>r&&r(e,u),style:d,onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),children:jsxRuntime.jsx(pe,{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:s(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function xo({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])),[s,a]=ae__default.default.useState(e instanceof Date?D.fromDate(e,t?.locale):e.clone()),l=ae__default.default.useCallback((p,h)=>{let f=p.startOf("week").startOf("day"),T=p.endOf("week").plus({days:1}).startOf("day"),C=(h??o??[]).map(b=>(b.allDay=b.allDay||!b.endDateTime,b.startDateTime instanceof Date&&(b.startDateTime=D.fromDate(b.startDateTime,t?.locale)),b.endDateTime&&b.endDateTime instanceof Date&&(b.endDateTime=D.fromDate(b.endDateTime,t?.locale)),b)).filter(b=>b.startDateTime.isBetween([f,T])),v=f.clone(),S=[];for(;v<T;){if(r.has(v.weekDay)){let b=v.startOf("day"),k=v.endOf("day"),P=C.filter(A=>A.startDateTime.isBetween([b,k])).sort((A,E)=>A.allDay&&!E.allDay?-1:!A.allDay&&E.allDay?1:A.startDateTime.valueOf()-E.startDateTime.valueOf());S.push([v,P]);}v=v.plus({days:1});}let y=S.map(([b,k])=>[b,k.filter(P=>P.allDay)]),N=S.map(([b,k])=>[b,k.filter(P=>!P.allDay)]);return {allday:y,timed:N}},[]),[c,m]=ae__default.default.useState(l(s));ae__default.default.useEffect(()=>{let p=e instanceof Date?D.fromDate(e,t?.locale):e.clone();a(p),m(l(p,o));},[e,o,t?.visibleDays,t?.locale]);let d=ae__default.default.useMemo(()=>({...tt,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(Lr,{onDayClick:i,daysWithEvents:c.allday,options:t}),jsxRuntime.jsx("div",{style:{...Oe,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),c.allday.map(([p,h])=>jsxRuntime.jsx(vo,{events:h,onEventClick:n,options:t,tooltipColor:t?.tooltipColor??"is-light"},p.dayShort)),u.map(p=>jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Co,{hour:p}),c.timed.map(([h,f])=>{let T=f.filter(C=>C.startDateTime.hour===p);return jsxRuntime.jsx(Po,{tooltipColor:t?.tooltipColor??"is-light",events:T,onEventClick:n,options:t},h.dayShort+"-"+p)})]},p))]})})}function Lr({onDayClick:e,daysWithEvents:t,options:n={}}){let o=ae__default.default.useMemo(()=>({...Be,cursor:e?"pointer":void 0}),[e]),i=ae__default.default.useMemo(()=>({...o}),[]),r=ae__default.default.useCallback(Se,[]),s=ae__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let a="p";n?.today?.bgColor&&(a=n.today.bgColor(!1)),a==="p"?a="#113670":a==="i"?a="#3b59ec":a==="l"?a="#2f47bc":a==="d"?a="#d91000":a==="s"?a="#519c43":a==="w"&&(a="#eea720");let l=r(a);return {...Rt,marginBottom:".5em",backgroundColor:a,color:l}},[]);return jsxRuntime.jsx(ae__default.default.Fragment,{children:t.map(([a])=>jsxRuntime.jsxs("div",{style:i,onClick:l=>e&&e(a,l),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:a.dayLong}),jsxRuntime.jsxs("span",{style:a.isToday?s:void 0,children:[a.day," ",a.monthLong]})]},a.ISO))})}var Hr={Month:So,Week:xo,Fourweeks:To};function hn({id:e,label:t,name:n,size:o="m",direction:i="h",required:r=!1,value:s=!1,errorMessage:a="",labelHidden:l=!1,onValueChanged:c,onBlur:m,...d}){let u=T=>{f(!0),m&&m(T);},p=T=>{console.log(T),c&&c(T);},[h,f]=ae__default.default.useState(!1);return jsxRuntime.jsx(oe,{label:t??n,size:o,labelHidden:l,direction:i,required:r,inputId:e??n,children:jsxRuntime.jsx(No,{id:e,name:n,label:t,value:s,required:r,size:o,errorMessage:h?a:"",onValueChanged:p,onBlur:u,...d})})}function No({helpTag:e,errorMessage:t="",label:n,disabled:o=!1,keyboardType:i="text",title:r,name:s,value:a=!1,required:l=!1,spellCheck:c=!1,id:m,autoComplete:d="off",readonly:u=!1,autofocus:p=!1,form:h=void 0,inputRef:f,onBlur:T,onChange:C,onFocus:v,onKeyDown:S,onKeyUp:y,onValueChanged:N,size:b="m",alignment:k="l",color:P="p",styling:A="normal"}){let[E,M]=ae__default.default.useState(!1),I=K=>{E||M(!0),T&&T(K);},F=K=>{N&&N(K.target.checked),C&&C(K);},x="is-checkradio";return b==="s"?x+=" is-small":b==="l"?x+=" is-medium":b==="xl"&&(x+=" is-large"),P==="w"?x+=" is-warning":P==="l"?x+=" is-link":P==="d"?x+=" is-danger":P==="i"?x+=" is-info":P==="s"?x+=" is-success":P==="p"?x+=" is-primary":x+=` ${P}`,A==="rounded"?x+=" is-circle":A==="noborder"?x+=" has-no-border":A==="colored"?x+=" has-background-color":A==="blocky"&&(x+=" is-blocky"),k==="c"?x+=" has-text-centered":k==="r"&&(x+=" has-text-right"),u&&(x+=" is-static"),jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:x,id:m??s,ref:f,name:s,checked:a,spellCheck:c,autoComplete:d,required:l,title:r,readOnly:u,autoFocus:p,form:h,inputMode:i,disabled:o,onKeyDown:S,onKeyUp:y,onBlur:I,onChange:F,onFocus:K=>v&&v(K,e)}),jsxRuntime.jsx("label",{htmlFor:m??s,children:n??s}),E&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(a)})]})}function ke({value:e,id:t,name:n,label:o,grouped:i=!1,required:r=!1,errorMessage:s="",multiple:a=!1,alignment:l="l",size:c="m",direction:m="h",options:d=[],children:u=void 0,placeholder:p,helpTag:h,disabled:f=!1,keyboardType:T="text",title:C,spellCheck:v=!1,autoComplete:S="off",autofocus:y=!1,form:N=void 0,inputRef:b,labelHidden:k,icon:P=freeSolidSvgIcons.faCheckCircle,onBlur:A,onFocus:E,onChange:M,onKeyDown:I,onKeyUp:F,onValueChanged:x}){let[K,se]=ae__default.default.useState(!1),G=L=>{se(!0),A&&A(L);},U=L=>{E&&E(L,h);},ye=L=>{if(M&&M(L),a){let B=L.target.selectedOptions,Z=[];for(let le of B)Z.push(le.value);x&&x(Z);}else x&&x(L.target.value);},be=ae__default.default.useCallback(L=>{if(!L.some(B=>typeof B!="string"))return L.map(B=>jsxRuntime.jsx(ke.Option,{value:B,children:B},B));if(i){let B=[],Z=new Set;return L.forEach(le=>Z.add(typeof le=="string"?"":le.group??"")),[...Z].sort().forEach(le=>{let Ve=[];L.forEach(Te=>{typeof Te=="string"?le===""&&Ve.push(Te):le===Te.group&&Ve.push(Te);}),B.push(jsxRuntime.jsx(ke.OptGroup,{label:le,children:Ve.map(Te=>{if(typeof Te=="string")return jsxRuntime.jsx(ke.Option,{value:Te,children:Te},Te);{let{value:Ft,disabled:Xo,label:Dn}=Te;return jsxRuntime.jsx(ke.Option,{value:Ft,disabled:Xo,children:Dn??Ft},Dn??Ft)}})},le));}),B}else return L.map(B=>{if(typeof B=="string")return jsxRuntime.jsx(ke.Option,{value:B,children:B},B);{let{value:Z,disabled:le,label:Ve}=B;return jsxRuntime.jsx(ke.Option,{value:Z,disabled:le,children:Ve??Z},Z)}})},[]),J=s?"select is-danger is-fullwidth":"select is-fullwidth";c==="s"?J+=" is-small":c==="l"?J+=" is-medium":c==="xl"&&(J+=" is-large"),l==="c"?J+=" has-text-centered":l==="r"&&(J+=" has-text-right"),a!==!1&&(J+=" is-multiple");let X=P?"control has-icons-left":"control",q;P&&(typeof P=="string"?q=jsxRuntime.jsx("i",{className:P}):q=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:P}));let we=be(d);return jsxRuntime.jsxs(oe,{inputId:t??n,id:t??n,label:o??n??t,direction:m,required:r,size:c,labelHidden:k,controlClassName:X,children:[jsxRuntime.jsx("div",{className:J,children:jsxRuntime.jsxs("select",{multiple:a!==!1,size:a===!1?void 0:a,value:e,className:J,id:t??n??o,ref:b,name:n,spellCheck:v,autoComplete:S,required:r,title:C,autoFocus:y,form:N,inputMode:T,placeholder:p,disabled:f,onFocus:U,onBlur:G,onKeyDown:I,onKeyUp:F,onChange:ye,children:[u,we]})}),q&&jsxRuntime.jsx("span",{className:"icon is-left",children:q}),K&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)})]})}ke.Option=({value:e="",disabled:t=!1,id:n="",children:o})=>jsxRuntime.jsx("option",{value:e,disabled:t,id:n,children:o});ke.OptGroup=({label:e,children:t,disabled:n})=>jsxRuntime.jsx("optgroup",{label:e,disabled:n,children:t});function zr({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:i,onRGBValueChanged:r,onHSLValueChanged:s,...a}){let l=m=>{i&&i(m),r&&r(mn(m)),s&&s(po(m));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(m=>{"0123456789ABCDEF".includes(m)||z(`Ongeldige hex-color '${e}'`);}),e.length===4?c=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?c=e:z(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[m,d,u]=t;(m<0||m>255)&&z(`Ongeldige RGB-waarde, r = '${m}', moet tussen 0 en 255`),(d<0||d>255)&&z(`Ongeldige RGB-waarde, g = '${d}', moet tussen 0 en 255`),(u<0||u>255)&&z(`Ongeldige RGB-waarde, b = '${u}', moet tussen 0 en 255`),c=mo([m,d,u]);}else if(n){let[m,d,u]=n;(m<0||m>360)&&z(`Ongeldige HSL-waarde, h = '${m}', moet tussen 0 en 360`),(d<0||d>100)&&z(`Ongeldige HSL-waarde, s = '${d}', moet tussen 0 en 100`),(u<0||u>100)&&z(`Ongeldige HSL-waarde, l = '${u}', moet tussen 0 en 100`),c=uo([m,d,u]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx($,{icon:o,type:"color",value:c,onValueChanged:l,...a})})}function _r({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 bn({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:i,value:r,checked:s=!1,required:a=!1,spellCheck:l=!1,id:c,autoComplete:m="off",readonly:d=!1,autofocus:u=!1,form:p=void 0,inputRef:h,onBlur:f,onChange:T,onFocus:C,onKeyDown:v,onKeyUp:S,onValueChanged:y,size:N="m",alignment:b="l",itemsDirection:k="h",color:P="p",styling:A="normal",children:E=void 0}){let M=F=>{y&&y(r),T&&T(F);},I="is-checkradio";return N==="s"?I+=" is-small":N==="l"?I+=" is-medium":N==="xl"&&(I+=" is-large"),P==="w"?I+=" is-warning":P==="l"?I+=" is-link":P==="d"?I+=" is-danger":P==="i"?I+=" is-info":P==="s"?I+=" is-success":P==="p"?I+=" is-primary":I+=` ${P}`,A==="rounded"?I+=" is-circle":A==="noborder"?I+=" has-no-border":A==="colored"?I+=" has-background-color":A==="blocky"&&(I+=" is-blocky"),b==="c"?I+=" has-text-centered":b==="r"&&(I+=" has-text-right"),d&&(I+=" is-static"),c||(c=i+"-"+r),jsxRuntime.jsxs("div",{style:{display:k==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:I,id:c,ref:h,name:i,checked:s,spellCheck:l,autoComplete:m,required:a,title:o,readOnly:d,autoFocus:u,form:p,inputMode:n,disabled:t,onKeyDown:v,onKeyUp:S,onBlur:f,onChange:M,onFocus:F=>C&&C(F,e)}),jsxRuntime.jsx("label",{htmlFor:c??i,children:E??i})]})}function wo({children:e=void 0,id:t,label:n,labelHidden:o=!1,name:i,value:r,required:s=!1,size:a="m",direction:l="h",itemsDirection:c="h",alignment:m="l",errorMessage:d="",onValueChanged:u,onBlur:p,onChange:h,onFocus:f,onKeyDown:T,onKeyUp:C,...v}){let[S,y]=ae__default.default.useState(!1),N=A=>{S||y(!0),p&&p(A);},b=A=>{u&&u(A);},P=(A=>ae__default.default.Children.map(A,(E,M)=>{if(ae__default.default.isValidElement(E)&&E.type===Do){let I=!1;return typeof r=="string"||typeof r=="number"||typeof r=="boolean"?I=r===E.props.value:r&&(I=JSON.stringify(r)===JSON.stringify(E.props.value)),jsxRuntime.jsx(bn,{...E.props,size:a,itemsDirection:c,alignment:m,direction:l,id:E.props.id??`${i}-option-${M}`,value:E.props.value,checked:I,name:i,onValueChanged:b,onBlur:N,onKeyDown:T,onKeyUp:C,onChange:h,onFocus:f,children:E.props.children})}return E}))(e);return jsxRuntime.jsxs(oe,{labelHidden:o,label:n??i,required:s,inputId:"",direction:l,size:a,id:t??i,controlClassName:"control",children:[P,S&&d&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(r)})]})}function Do({checked:e=!1,id:t,value:n,children:o,...i}){return jsxRuntime.jsx(bn,{checked:e,name:"",...i,id:t,value:n,children:o})}wo.Item=Do;function Gr({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
67
67
  ]+@[^@ \r
68
68
  ]+.[^@ \r
69
69
  ]+`,autoComplete:o="email",onValueChanged:i,...r}){return jsxRuntime.jsx($,{icon:t,type:"email",autoComplete:o,pattern:n,value:e,onValueChanged:a=>{i&&i(a);},...r})}function Qr({value:e,autoComplete:t="current-password",icon:n=freeSolidSvgIcons.faKey,name:o,size:i,direction:r,revealPasswordAllowed:s=!1,revealPasswordMsg:a="Toon wachtwoord",iconRevealed:l=freeSolidSvgIcons.faEye,onValueChanged:c,...m}){let[d,u]=ae__default.default.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx($,{size:i,icon:d?l??n:n,direction:r,name:o,autoComplete:t,type:d?"text":"password",value:e,onValueChanged:h=>{c&&c(h);},...m}),s&&jsxRuntime.jsx(hn,{size:i,direction:r,onValueChanged:u,label:a,labelHidden:!0,name:`cb-${o}-reveal-pw`})]})}function Qa({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:[ia__default.default,ca__default.default,ma__default.default.configure(),ua__default.default.configure(),pa__default.default.configure(),da__default.default.configure(),extensionColor.Color.configure({types:[Bo__default.default.name,Oo__default.default.name]}),ra__default.default.configure(),la__default.default.configure(),Ta__default.default.configure({autolink:!0,openOnClick:!0,linkOnPaste:!0,HTMLAttributes:{target:"_blank"}}),ba__default.default.configure({allowBase64:!0}),aa__default.default.configure(),sa__default.default.configure(),Bo__default.default.configure(),xa__default.default.configure({multicolor:!0}),fa__default.default.configure({keepMarks:!0}),ga__default.default.configure({keepMarks:!0}),Oo__default.default.configure(),ya__default.default.configure(),Ia__default.default.configure(),Na__default.default.configure(),ha__default.default.configure({types:["heading","paragraph"]}),Sa__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),va__default.default.configure(),Ca__default.default.configure(),Pa__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(ja,{editor:i}),jsxRuntime.jsx("div",{className:"",children:jsxRuntime.jsx(react.EditorContent,{editor:i,className:"content p-0"})})]})}function ja({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(es,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ae,{mx:3}),jsxRuntime.jsx(ts,{editor:e,classNameInactive:n}),jsxRuntime.jsx(Ae,{mx:3}),jsxRuntime.jsx(ns,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ae,{mx:3}),jsxRuntime.jsx(os,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ae,{mx:3}),jsxRuntime.jsx(is,{editor:e,classNameActive:t,classnameInactive:n}),jsxRuntime.jsx(Ae,{mx:3}),jsxRuntime.jsx(rs,{editor:e,classNameActive:t,classnameInactive:n})]})}function es({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 ts({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,s]=ae__default.default.useState(e.getAttributes("textStyle").color),[a,l]=ae__default.default.useState(e.getAttributes("textStyle").backgroundColor),c=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}`);}),s(e.getAttributes("textStyle").color),l(e.getAttributes("highlight").color);}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("span",{className:"mx-1",children:[jsxRuntime.jsx(Ce,{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(Ce,{color:a,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:a})]}),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=>c(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 ns({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 os({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 is({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(Ae,{}),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(Ae,{}),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 rs({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(Ae,{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(Ae,{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 Ae=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function ss({value:e,label:t,errorMessage:n="",helpTag:o,id:i,name:r,spellCheck:s=!0,required:a=!1,autoComplete:l="off",placeholder:c,disabled:m=!1,form:d=void 0,readonly:u=!1,autofocus:p=!1,inputRef:h=void 0,max:f,min:T,title:C,size:v="m",alignment:S,direction:y="h",cols:N,rows:b=4,labelHidden:k=!1,onValueChanged:P,onChange:A,onBlur:E,onFocus:M,onKeyDown:I,onKeyUp:F}){let[x,K]=ae__default.default.useState(!1),se=q=>{K(!0),E&&E(q);},G=q=>{A&&A(q),P&&P(q.target.value);},U="";v==="s"?U+=" is-small":v==="m"?U+=" is-normal":v==="l"?U+=" is-medium":v==="xl"&&(U+=" is-large");let be=`textarea ${U} ${S}`.trim(),J=T?typeof T=="number"?T:+T:void 0,X=f?typeof f=="number"?f:+f:void 0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(oe,{id:i??r,label:t??r,required:a,labelHidden:k,inputId:i??r,direction:y,size:v,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:be,value:e,id:i??r??t,name:r,spellCheck:s,required:a,autoComplete:l,placeholder:c,disabled:m,form:d,readOnly:u,autoFocus:p,ref:h,maxLength:X,minLength:J,title:C,rows:b,cols:N,onChange:G,onBlur:se,onFocus:q=>M&&M(q,o),onKeyDown:I,onKeyUp:F}),x&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(e)})]})})}function Lo(){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:s,selectionEnd:a}=e.current;n(s),i(a);}},[]);return ae__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,o);}),{start:t,end:o,ref:e,updateCaret:r}}function us({value:e,characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:o,...i}){let{ref:r,updateCaret:s}=Lo();return jsxRuntime.jsx($,{inputRef:r,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 m=t??"";c=l.split("").reduce((d,u)=>m.includes(u)?d+u:d,"");}else t instanceof RegExp&&(c=l.replaceAll(new RegExp(t,"g"),""));l=c;}o&&o(l),s();},...i})}function fs({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...o}){let i=r=>{n&&n(typeof r=="number"?r:+r);};return jsxRuntime.jsx($,{icon:t,type:"number",value:isNaN(e??NaN)?"":e,onValueChanged:i,...o})}function hs({value:e,min:t=0,max:n=100,step:o=1,prefix:i="",suffix:r="",helpTag:s,errorMessage:a="",label:l,disabled:c=!1,title:m,name:d,required:u=!1,id:p,readonly:h=!1,form:f=void 0,inputRef:T,onBlur:C,onChange:v,onFocus:S,onKeyDown:y,onKeyUp:N,onValueChanged:b,direction:k="h",labelHidden:P=!1}){let A=x=>{M(!0),C&&C(x);},[E,M]=ae__default.default.useState(!1),I=x=>{v&&v(x),b&&b(x.target.valueAsNumber);},F=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(oe,{id:p??d,label:l??d,direction:k,labelHidden:P,required:u,inputId:p??d,size:"m",controlClassName:"control",children:[jsxRuntime.jsxs("div",{className:"range-slider",style:F,children:[jsxRuntime.jsx("input",{type:"range",name:d,id:p??d,min:t,max:n,value:e,step:o,disabled:c,required:u,readOnly:h,form:f,ref:T,title:m,onBlur:A,onChange:I,onKeyDown:y,onKeyUp:N,onFocus:x=>S&&S(x,s)}),jsxRuntime.jsxs("output",{children:[i,e,r]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),E&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof a=="string"?a:a(e)})]})}function bs({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:o,onJSDateTimeValueChanged:i,...r}){let s=l=>{n&&n(l),o&&o(new Date(l)),i&&i(D.fromISO(l));},a="";return typeof e=="string"?a=e.length>10?e.substring(0,10):e:e instanceof Date?a=e.toISOString().substring(0,10):e instanceof D&&(a=e.ISO.substring(0,10)),jsxRuntime.jsx($,{icon:t,type:"date",value:a,onValueChanged:s,...r})}function vs({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faCalendarDay,onValueChanged:o,onDateValueChanged:i,onJSDateTimeValueChanged:r,...s}){let a=m=>{if(m){if(typeof m=="string")return m}else return "";let d;return m instanceof Date?d=D.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")}`},l=m=>{if(o&&o(m),m!==""&&(i||r)){let d=D.fromISO(m);console.log(d),i&&i(d.JSDate),r&&r(d);}},c=a(e);return jsxRuntime.jsx($,{step:t?1:60,icon:n,type:"datetime-local",value:c,onValueChanged:l,...s})}function Is({value:e,useSeconds:t=!1,icon:n=freeSolidSvgIcons.faClockFour,onValueChanged:o,onDateValueChanged:i,onJSDateTimeValueChanged:r,...s}){let a=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(":")},l=m=>{if(o&&o(m),i||r){let d=D.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);}},c=a(e);return jsxRuntime.jsx($,{step:t?1:60,icon:n,type:"time",value:c,onValueChanged:l,...s})}function Es({multiple:e=!1,placeholder:t,helpTag:n,errorMessage:o="",label:i,disabled:r=!1,keyboardType:s="none",title:a,name:l,required:c=!1,spellCheck:m=!1,id:d,autoComplete:u="off",max:p,min:h,readonly:f=!1,pattern:T=void 0,autofocus:C=!1,form:v=void 0,inputRef:S,onBlur:y,onChange:N,onFocus:b,onKeyDown:k,onKeyUp:P,onValueChanged:A,size:E="m",alignment:M="l",direction:I="h",value:F={files:[],path:""},icon:x=freeSolidSvgIcons.faFileUpload,boxed:K=!1,accept:se,capture:G=!1,noFilesTxt:U="Geen bestand(en) geselecteerd",chooseFileTxt:ye="Kies een bestand",formatter:be=J=>J.files.length>0?J.files.map(X=>X.name).join(", "):U}){let J=Z=>{we(!0),y&&y(Z);},X=Z=>{let le=Array.from(Z.target.files??[]),Ve=Z.target.value;N&&N(Z),A&&A({files:le,path:Ve});},[q,we]=ae__default.default.useState(!1),L="file has-name";K?L+=" is-boxed":L+=" is-fullwidth",E==="s"?L+=" is-small":E==="l"?L+=" is-medium":E==="xl"&&(L+=" is-large"),M==="l"?L+=" has-text-left":M==="c"?L+=" has-text-centered":M==="r"&&(L+=" has-text-right");let B=be(F);return jsxRuntime.jsx(oe,{id:d??l,inputId:d??l,label:i??l??d,direction:I,required:c,size:E,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:L,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:T,id:d??l,ref:S,accept:typeof se=="string"?se:se?.join(","),capture:G,name:l,value:"",spellCheck:m,autoComplete:u,required:c,type:"file",inputMode:s,title:a,multiple:e,max:p,maxLength:typeof p=="number"?p:void 0,minLength:typeof h=="number"?h:void 0,min:h,readOnly:f,autoFocus:C,form:v,placeholder:t,disabled:r,onKeyDown:k,onKeyUp:P,onBlur:J,onChange:X,onFocus:Z=>b&&b(Z,n)}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:typeof x=="string"?jsxRuntime.jsx("i",{className:"icon"}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:x})}),jsxRuntime.jsx("span",{className:"file-label",children:ye??l})]}),jsxRuntime.jsx("span",{className:"file-name",children:B??U??""})]}),q&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof o=="string"?o:o(B)})]})})}function Os({placeholder:e,helpTag:t,errorMessage:n="",label:o,disabled:i=!1,title:r,name:s,value:a=["0",0],required:l=!1,spellCheck:c=!1,id:m,autoComplete:d="off",max:u,min:p,readonly:h=!1,step:f=1,autofocus:T=!1,form:C=void 0,inputRef:v,onBlur:S,onChange:y,onFocus:N,onKeyDown:b,onKeyUp:k,onValueChanged:P,size:A="m",alignment:E="l",direction:M="h",labelHidden:I=!1,icon:F=freeSolidSvgIcons.faCoins,suffix:x="",prefix:K="\u20AC ",decimalScale:se=2,decimalSeparator:G=","}){let U=B=>{be(!0),S&&S(B);},[ye,be]=ae__default.default.useState(!1),J=B=>{let Z=parseFloat(B.replace(",","."));P&&P([B,Z]);},X=n?"input is-danger":"input";A==="s"?X+=" is-small":A==="l"?X+=" is-medium":A==="xl"&&(X+=" is-large"),E==="l"?X+=" has-text-left":E==="c"?X+=" has-text-centered":E==="r"&&(X+=" has-text-right"),h&&(X+=" is-static");let q;F&&(typeof F=="string"?q=jsxRuntime.jsx("i",{className:F}):q=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:F}));let we;return n&&(n===""?we=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):we=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(oe,{id:m??s,inputId:m??s,label:o??s??m,size:A,labelHidden:I,direction:M,required:l,controlClassName:`control ${F?"has-icons-left":""} ${n!==void 0?"has-icons-right":""}`,children:[jsxRuntime.jsx(Bs__default.default,{className:X,id:m??s,name:s,autoComplete:d,placeholder:e,disabled:i,spellCheck:c,required:l,decimalSeparator:G,value:typeof a=="string"?a:a[1],min:p,max:u,step:f,title:r,autoFocus:T,form:C,ref:v,decimalScale:se,decimalsLimit:2,suffix:x,prefix:K,onKeyDown:b,onKeyUp:k,onFocus:B=>N&&N(B,t),onBlur:U,onChange:y,onValueChange:B=>J(B??"0")}),ye&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(a)}),q&&jsxRuntime.jsx("span",{className:"icon is-left",children:q}),we&&jsxRuntime.jsx("span",{className:"icon is-right",children:we})]})}function Hs({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarWeek,onValueChanged:i,...r}){let s=l=>{i&&i(l);},a="";if(e){let[l=void 0,c=void 0]=e.split("-W");l?c?+c>53||+c<0?z('WeekInput value should contain a valid week number, like "2021-W01"'):a=e:z('WeekInput value should contain a week number, like "2021-W01"'):z('WeekInput value should contain a year, like "2021-W01"');}return jsxRuntime.jsx($,{min:t,max:n,icon:o,type:"week",value:a,onValueChanged:s,...r})}function Xs({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarDays,onValueChanged:i,...r}){let s=l=>{i&&i(l);},a="";if(e){let[l=void 0,c=void 0]=e.split("-");l?c?+c>12||+c<0?z('MonthInput value should contain a valid week number, like "2021-01"'):a=e:z('MonthInput value should contain a week number, like "2021-01"'):z('MonthInput value should contain a year, like "2021-01"');}return jsxRuntime.jsx($,{min:t,max:n,icon:o,type:"month",value:a,onValueChanged:s,...r})}function Gs(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 Fo(e){let[t,n]=ae__default.default.useReducer(Gs,[]),[o,i]=ae__default.default.useState(void 0),[r,s]=ae__default.default.useState(void 0),[a,l]=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!=a&&(n({type:"clear",item:void 0}),l(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}),s(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(m=>{let d=m.dismissAfter??m.dismissAfter??e.defaultDismissTime??5e3;return jsxRuntime.jsx(Us,{dismissAfter:d,type:m.type,onClick:u=>m.onClick&&m.onClick(u),onDismiss:()=>n({type:"remove",item:m}),children:m.content},m.id)})})}function Us({children:e,dismissAfter:t,type:n,onDismiss:o,onClick:i}){ae__default.default.useEffect(()=>{let l=t>0?setTimeout(()=>{o();},t):null;return ()=>{l&&clearTimeout(l);}},[]);let r=l=>{i&&i(l),o();},s="notification";n==="s"?s+=" is-success":n==="w"?s+=" is-warning":n==="d"?s+=" is-danger":n==="p"?s+=" is-primary":n==="l"?s+=" is-link":s+=" is-info";let a=freeSolidSvgIcons.faInfo;return n==="s"?a=freeSolidSvgIcons.faCheck:n==="w"?a=freeSolidSvgIcons.faExclamation:n==="d"?a=freeSolidSvgIcons.faExclamationTriangle:n==="p"?a=freeSolidSvgIcons.faInfo:n==="l"&&(a=freeSolidSvgIcons.faInfo),jsxRuntime.jsx("div",{onClick:l=>r(l),className:s,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:a})}),e]})})}var kn=ae__default.default.createContext(null);kn.displayName="NotifierContext";var Mh=e=>{let[t,n]=ae__default.default.useState(void 0),[o,i]=ae__default.default.useState(void 0),[r,s]=ae__default.default.useState(new Date),a=ae__default.default.useCallback(d=>(d.id==null&&(d.id=Math.floor(Math.random()*1e7)),n(d),d.id),[n]),l=ae__default.default.useCallback(d=>{i(d);},[i]),c=ae__default.default.useCallback(()=>{n(void 0),i(void 0),s(new Date);},[i]),m={notify:a,remove:l,clear:c};return jsxRuntime.jsxs(ae__default.default.Fragment,{children:[jsxRuntime.jsx(Fo,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:o,clearTime:r,location:e.location??"top"}),jsxRuntime.jsx(kn.Provider,{value:m,children:e.children})]})};function Bh(){let e=ae__default.default.useContext(kn);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var An,wn=ae__default.default.createContext(null);wn.displayName="ConfirmContext";function $h({children:e}){let[t,n]=ae__default.default.useReducer(qs,Lt);return jsxRuntime.jsxs(wn.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(js,{}),e]})}var Lt={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function qs(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 Qs(e="OK",t="Annuleren",n=void 0){let o=ae__default.default.useContext(wn);if(!o)throw new Error("useConfirm must be used inside a ConfirmProvider");let i=()=>{a(),An(!0);},r=()=>{a(),An(!1);},s=l=>(o.setState({...o.state,type:"SHOW",payload:{content:l},ok:e,cancel:t,others:n}),new Promise(function(c){An=c;})),a=()=>{o.setState({type:"HIDE",payload:void 0});};return {confirm:s,onConfirm:i,onCancel:r,confirmState:o.state}}function js(){let{onConfirm:e,onCancel:t,confirmState:n}=Qs();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($t,{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(j.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(j.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}