loon-bulma-react 2024.0.26 → 2024.0.28

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
@@ -67,10 +67,10 @@ var $l__default = /*#__PURE__*/_interopDefault($l);
67
67
  var Xl__default = /*#__PURE__*/_interopDefault(Xl);
68
68
  var $c__default = /*#__PURE__*/_interopDefault($c);
69
69
 
70
- var or=(s=>(s.Primary="#0089b6",s.Info="#3b59ec",s.Link="2f47bc",s.Success="#519c43",s.Danger="#d91000",s.Warning="#eea720",s.Light="#f5f5f5",s.Dark="#363636",s))(or||{});function ki({ratio:e="1by1",children:t,caption:n,className:o=""}){let r=`image is-${e} ${o}`.trim();return jsxRuntime.jsxs("figure",{className:r,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}function Oi({id:e,children:t,className:n="",styles:o}){let r=`block ${n}`.trim();return jsxRuntime.jsx("div",{className:r,style:o,id:e,children:t})}function Bt({id:e,children:t,className:n="",styles:o={},itemRef:r}){return jsxRuntime.jsx("div",{className:`bulma-box ${n}`.trim(),style:o,id:e,ref:r,children:t})}var Hi=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Li=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),ao=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Ji=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Fi=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),_i=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e});function ke({icon:e,errorMessage:t,hasFocus:n,infoData:o,inputId:r,helpTag:i=void 0}){let a,l,s="control",c=()=>{if(r){let u=document.getElementById(r);u&&u.focus();}};return e&&typeof e=="string"?a=jsxRuntime.jsx("span",{className:"icon is-left",children:jsxRuntime.jsx("i",{className:e,children:" "})}):e&&typeof e!="string"&&(a=jsxRuntime.jsxs("span",{className:"icon is-left",children:[" ",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:e})]})),e&&(s+=" has-icons-left"),!n||!o?t===""?l=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):l=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes}):n&&o&&(l=_e(o,c,i)),l&&(s+=" has-icons-right",l=jsxRuntime.jsx("span",{className:"icon is-right",children:l})),[s,a,l]}function _e(e,t,n){return typeof e=="function"?jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{className:"has-text-info is-clickable",icon:freeSolidSvgIcons.faCircleInfo,onClick:()=>{e(n),t();}}):jsxRuntime.jsx(zi__default.default,{overlay:e,placement:"right",align:{offSet:[8,8]},trigger:"hover",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{className:"has-text-info is-clickable",icon:freeSolidSvgIcons.faCircleInfo})})}function Tt(e){return e==="c"?" is-centered":e==="r"?" is-right":" is-left"}function oe(e){return e==="c"?" has-text-centered":e==="r"?" has-text-right":" has-text-left"}function ar(e){return e==="c"?" is-grouped-centered":e==="r"?" is-grouped-right":" is-grouped-left"}function B(e){return e==="s"?" is-small":e==="m"?" is-normal":e==="l"?" is-medium":" is-large"}function sr(e){return e==="s"?"sm":e==="m"?"1x":e==="l"?"2x":"3x"}function so(e,t){return e==="s"?t?" is-normal":" are-small":e==="m"?t?" is-medium":" are-medium":e==="l"?t?" is-large":" are-large":t?" is-normal":" are-small"}function U(e){return e==="w"?" is-warning":e==="l"?" is-link":e==="d"?" is-danger":e==="i"?" is-info":e==="s"?" is-success":e==="p"?" is-primary":e==="dark"?" is-dark":e==="light"?" is-light":e?.startsWith("is-")?` ${e}`:" is-primary"}function Yt(e,t,n){let o="p";return e.evtColor?o=typeof e.evtColor=="function"?e.evtColor(t):e.evtColor:n?.evtColor&&(o=n.evtColor(e,t)),o==="p"?o="#0089b6":o==="i"?o="#3b59ec":o==="l"?o="2f47bc":o==="d"?o="#d91000":o==="s"?o="#519c43":o==="w"?o="#eea720":o==="dark"?o="#363636":o==="light"&&(o="#f5f5f5"),o+=t?"aa":"ff",o}function Cn(e,t,n){let o="p";return n?.today?.bgColor&&(o=n.today.bgColor(t,e)),o==="p"?o="#0089b6":o==="i"?o="#3b59ec":o==="l"?o="2f47bc":o==="d"?o="#d91000":o==="s"?o="#519c43":o==="w"?o="#eea720":o==="dark"?o="#363636":o==="light"&&(o="#f5f5f5"),o}var Pe=({children:e,title:t,style:n,itemRef:o,className:r="",color:i="dark"})=>{let a=`border-box ${r}`.trim();return a+=U(i),jsxRuntime.jsxs("div",{style:n,className:a,ref:o,children:[t&&jsxRuntime.jsx(ao,{size:5,className:"border-box-title",children:t}),jsxRuntime.jsx("div",{className:"border-box-content",children:e})]})};Pe.Primary=e=>jsxRuntime.jsx(Pe,{color:"p",...e});Pe.Link=e=>jsxRuntime.jsx(Pe,{color:"l",...e});Pe.Info=e=>jsxRuntime.jsx(Pe,{color:"i",...e});Pe.Warning=e=>jsxRuntime.jsx(Pe,{color:"w",...e});Pe.Danger=e=>jsxRuntime.jsx(Pe,{color:"d",...e});Pe.Success=e=>jsxRuntime.jsx(Pe,{color:"s",...e});Pe.Light=e=>jsxRuntime.jsx(Pe,{color:"light",...e});Pe.Dark=e=>jsxRuntime.jsx(Pe,{color:"dark",...e});function Ui({children:e,id:t,gap:n="3",multiline:o,centered:r,className:i,styles:a,itemRef:l}){let s="columns";return n==="s"?n="1":n==="m"?n="3":n==="l"?n="5":n==="xl"&&(n="7"),n!=="3"&&(s+=` is-${n} is-variable`),o&&(s+=" is-multiline"),r&&(s+=" is-centered"),i&&(s+=` ${i}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:s,style:a,id:t,ref:l,children:e})}var ie=({children:e,className:t,styles:n,id:o,itemRef:r})=>jsxRuntime.jsx("div",{className:t,id:o,ref:r,children:jsxRuntime.jsx("div",{style:n,children:e})}),St=e=>{let t="column ";return typeof e.narrow=="boolean"?t+="is-narrow":e.narrow&&(t+=`is-narrow-${e.narrow}`),t=`${t} ${e.className??""}`.trim(),jsxRuntime.jsx(ie,{...e,className:t})};St.Full=e=>jsxRuntime.jsx(ie,{...e,className:`column is-full ${e.className??""}`.trim()});St.Half=e=>jsxRuntime.jsx(ie,{...e,className:`column is-half ${e.className??""}`.trim()});St.Thirds={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-third ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-thirds ${e.className??""}`.trim()})};St.Quarters={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-quarter ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-quarters ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-three-quarters ${e.className??""}`.trim()})};St.Fifths={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-fifth ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-fifths ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-three-fifths ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(ie,{...e,className:`column is-four-fifths ${e.className??""}`.trim()})};St.Twelves={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-1 ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-2 ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-3 ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(ie,{...e,className:`column is-4 ${e.className??""}`.trim()}),Five:e=>jsxRuntime.jsx(ie,{...e,className:`column is-5 ${e.className??""}`.trim()}),Six:e=>jsxRuntime.jsx(ie,{...e,className:`column is-6 ${e.className??""}`.trim()}),Seven:e=>jsxRuntime.jsx(ie,{...e,className:`column is-7 ${e.className??""}`.trim()}),Eight:e=>jsxRuntime.jsx(ie,{...e,className:`column is-8 ${e.className??""}`.trim()}),Nine:e=>jsxRuntime.jsx(ie,{...e,className:`column is-9 ${e.className??""}`.trim()}),Ten:e=>jsxRuntime.jsx(ie,{...e,className:`column is-10 ${e.className??""}`.trim()}),Eleven:e=>jsxRuntime.jsx(ie,{...e,className:`column is-11 ${e.className??""}`.trim()}),Twelve:e=>jsxRuntime.jsx(ie,{...e,className:`column is-12 ${e.className??""}`.trim()})};St.displayName="Column";var lt=({className:e,children:t,styles:n,size:o="s",id:r,itemRef:i})=>{let a="container";return o==="m"?a+=" is-widescreen":o==="l"?a+=" is-fullhd":(o==="xl"||o==="fluid")&&(a+=" is-fluid"),e&&(a+=" "+e),jsxRuntime.jsx("div",{className:a,style:n,id:r,ref:i,children:t})};lt.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"s",children:t});lt.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"m",children:t});lt.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"l",children:t});lt.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"xl",children:t});function Gi({size:e="m",className:t="",styles:n,id:o,children:r,itemRef:i}){let a=`content ${B(e)} ${t}`.trim();return jsxRuntime.jsx("div",{className:a,style:n,id:o,ref:i,children:r})}function Yi({children:e,alignment:t="l",className:n,styles:o,id:r,itemRef:i}){let a="container",l="footer mt-6";return a+=oe(t),n&&(l+=` ${n}`),l=l.trim(),jsxRuntime.jsx("footer",{className:l,style:o,id:r,ref:i,children:jsxRuntime.jsx("div",{className:a,children:e})})}var Pn=({children:e,heroColorFor:t,size:n="s",itemRef:o,id:r})=>{let i="hero is-bold";i+=t?` is-${t}`:" is-primary",i+=B(n);let a=Le__default.default.Children.map(e??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],l=>l);return jsxRuntime.jsx("header",{className:i,id:r,ref:o,children:a})},lo=({children:e})=>{let[t,n]=Le__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})})]})})};lo.Button=({children:e,title:t,onClick:n})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,onClick:n,children:e});lo.Link=({children:e,title:t,to:n,target:o="_blank",rel:r="noopener"})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,href:n,target:o,rel:r,children:e});Pn.Head=lo;Pn.Body=({children:e})=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e})});var co=({children:e,narrow:t=!1})=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:`tabs is-boxed ${t?"is-narrow":"is-fullwidth"} container`,children:e})});co.NavList=({children:e})=>jsxRuntime.jsx("ul",{children:e});co.NavItem=({children:e,to:t,active:n=void 0,target:o="_blank",title:r,rel:i="noopener"})=>jsxRuntime.jsx("li",{className:n?"is-active":void 0,title:r,children:jsxRuntime.jsx("a",{href:t,target:o,rel:i,className:"tab",children:e})});Pn.Foot=co;function Zi({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:r,isRounded:i,src:a}){let l=`image is-${e}`;return e==="square"&&(l=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:r,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:l,children:[jsxRuntime.jsx("img",{className:i&&e==="square"?"is-rounded":void 0,src:a,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function ji({children:e,className:t,styles:n,id:o,itemRef:r}){let i="section";return t&&(i+=` ${t}`),jsxRuntime.jsx("section",{className:i,style:n,id:o,ref:r,children:e})}var ta=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,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${i} ${a}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let o=Le__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]),r=Le__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.wrap,n,t]);return jsxRuntime.jsx("div",{className:"lbr-flex-horizontal",style:r,id:e.id,ref:e.itemRef,children:Le__default.default.Children.toArray(e.children).map((i,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:i},a))})},na=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,i=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${i}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let o=Le__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.maxHeight,n,t]);return jsxRuntime.jsx("div",{className:"lbr-flex-vertical",style:o,id:e.id,ref:e.itemRef,children:Le__default.default.Children.toArray(e.children).map((r,i)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:r},i))})},oa={Horizontal:ta,Vertical:na};function Qt({alignment:e="l",autoComplete:t="off",optionListId:n=void 0,autofocus:o=!1,disabled:r=!1,errorMessage:i="",infoMessage:a=void 0,form:l=void 0,helpTag:s,id:c,inputRef:u,keyboardType:p="text",max:m,min:f,name:d,pattern:g=void 0,placeholder:y,readonly:h=!1,required:S=!1,size:v="m",spellCheck:T=!1,step:R=1,title:P,type:E="text",value:N,className:L="",styles:K={},onBlur:x,onChange:C,onFocus:D,onKeyDown:O,onKeyUp:F,onValueChanged:H}){let I=M=>{r||(H&&H(M.target.value),C&&C(M));},A=i?"input is-danger":"input";return A+=B(v),A+=oe(e),h&&(A+=" is-static"),L&&(A+=` ${L.trim()}`),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:A,pattern:g,id:c??d,ref:u,name:d,value:N,spellCheck:T,autoComplete:t,required:S,type:E,title:P,max:m,maxLength:typeof m=="number"?m:void 0,minLength:typeof f=="number"?f:void 0,min:f,step:R,readOnly:h,autoFocus:o,form:l,inputMode:p,placeholder:y,disabled:r,style:K,list:n,onKeyDown:O,onKeyUp:F,onBlur:x,onChange:I,onFocus:M=>D&&D(M,s)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(N)}),a&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof a=="string"?a:a(N)})]})}function le({direction:e="v",errorMessage:t="",showRequiredOnLabel:n=!1,icon:o=freeSolidSvgIcons.faKeyboard,id:r,label:i,labelHidden:a=!1,name:l,required:s=!1,loading:c=!1,size:u="m",value:p,infoData:m,helpTag:f,optionList:d=[],onBlur:g,onFocus:y,...h}){let S=x=>{R(!0),m?setTimeout(()=>{let C=document.getElementById(r??l);document.activeElement!==C&&(E(!1),g&&g(x));},ge):(g&&g(x),E(!1));},v=x=>{E(!0),y&&y(x);},[T,R]=Le__default.default.useState(!1),[P,E]=Le__default.default.useState(!1),[N,L,K]=ke({icon:o,errorMessage:t,hasFocus:P,inputId:r??l,infoData:m,helpTag:f});return jsxRuntime.jsx(ce,{size:u,inputId:r??l,label:i??l,direction:e,required:s,labelHidden:a,showRequiredOnLabel:n,controlClassName:N,loading:c,children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Qt,{required:s,name:l,size:u,onBlur:S,id:r,value:p,onFocus:v,optionListId:d&&d.length>0?`${r??l}-option-list-id`:void 0,helpTag:f,...h,errorMessage:t}),d&&d.length>0&&jsxRuntime.jsx("datalist",{id:`${r??l}-option-list-id`,children:d.map(x=>typeof x=="string"?jsxRuntime.jsx("option",{value:x},x):jsxRuntime.jsx("option",{value:x.value,children:x.label},x.value))}),L,K]})})}function ce({children:e,controlClassName:t="control",direction:n,showRequiredOnLabel:o=!1,inputId:r,label:i,labelHidden:a=!1,required:l,size:s,loading:c=!1,infoData:u,setHovered:p=m=>{}}){let m=B(s),f=`label ${m} ${a?"is-sr-only":""}`.trim();return t=` ${t} ${m} ${c?"is-loading":""}`.trim(),n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal","data-testid":"input-container",onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),children:[jsxRuntime.jsx("div",{className:`field-label ${m} ${a?"is-sr-only":""}`,children:jsxRuntime.jsxs("label",{className:f,htmlFor:r,children:[i,o&&l&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"}),u]})}),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","data-testid":"input-container",onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),children:[jsxRuntime.jsxs("label",{className:f,htmlFor:r,children:[i,o&&l&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"}),u]}),jsxRuntime.jsx("div",{className:t,children:e})]})}var ge=333;function fp(e=2e3){let[t,n]=Le__default.default.useState(null),[o,r]=Le__default.default.useState(!1),[i,a]=Le__default.default.useState(null),l=u=>{clearTimeout(i),a(setTimeout(()=>r(!1),e)),r(u);};return {copy:u=>{"clipboard"in navigator?navigator.clipboard.writeText(u).then(()=>l(!0)).catch(p=>n(p)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{r(!1),n(null),clearTimeout(i);},error:t,copied:o}}function pr(e,t={leading:!1,delay:500}){let[n,o]=Le__default.default.useState(e),r=Le__default.default.useRef(!1),i=Le__default.default.useRef(void 0),a=Le__default.default.useRef(!1),l=()=>window.clearTimeout(i.current);return Le__default.default.useEffect(()=>{r.current&&(!a.current&&t.leading?(a.current=!0,o(e)):(l(),i.current=window.setTimeout(()=>{a.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),Le__default.default.useEffect(()=>(r.current=!0,l),[]),[n,l]}function hp(e,t={leading:!1,delay:500}){let[n,o]=Le__default.default.useState(e),r=Le__default.default.useRef(null),i=Le__default.default.useRef(!0),a=()=>window.clearTimeout(r.current??void 0);return Le__default.default.useEffect(()=>a,[]),[n,s=>{a(),i.current&&t.leading?o(s):r.current=window.setTimeout(()=>{i.current=!0,o(s);},t.delay),i.current=!1;}]}function aa(e){let t=e.toLowerCase().split("+").map(i=>i.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"],r=t.find(i=>!o.includes(i));return {...n,key:r}}function sa(e,t){let{alt:n,ctrl:o,meta:r,mod:i,shift:a,key:l}=e,{altKey:s,ctrlKey:c,metaKey:u,shiftKey:p,key:m}=t;return n!==s||i&&!c&&!u||o!==c||r!==u||a!==p?!1:!!(l&&(m.toLowerCase()===l.toLowerCase()||t.code.replace("Key","").toLowerCase()===l.toLowerCase()))}function mr(e){return t=>sa(aa(e),t)}function bp(e){return t=>{e.forEach(([n,o])=>{mr(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function la(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function vp(e){Le__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,r])=>{mr(o)(n)&&la(n)&&(n.preventDefault(),r(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function En(e){try{return JSON.parse(e)}catch(t){let n=t;throw new Error(`'deserializeJSON()' failed to deserialize the value: ${n.message}`,{...n})}}function xn(e){try{return JSON.stringify(e)}catch(t){let n=t;throw new Error(`serializeJSON() failed to serialize the value: ${n.message}`,{...n})}}function Np({key:e,initialValue:t,deserialize:n=En,serialize:o=xn}){let[r,i]=Le__default.default.useState(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?n(s):t}catch(s){return console.error(`useLocalStoredState failed to get the value: ${s.message}`),t}}),a=Le__default.default.useCallback(s=>{try{let c=s instanceof Function?s(r):s;i(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[e,o,r]),l=Le__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[e]);return [r,a,l]}function dr({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){let[r,i]=Le__default.default.useState(t!==void 0?t:n),a=l=>{i(l),o?.(l);};return e!==void 0?[e,o,!0]:[r,a,!1]}function bt(e,t){let n=t-e+1;return Array.from({length:n},(o,r)=>r+e)}var Rn="dots";function fr({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:r=1,onChange:i}){let a=Math.max(Math.trunc(e),0),[l,s]=dr({value:o,onChange:i,defaultValue:r,finalValue:r}),c=g=>{g<=0?s(1):g>a?s(a):s(g);},u=()=>c(l+1),p=()=>c(l-1),m=()=>c(1),f=()=>c(a);return {range:Le__default.default.useMemo(()=>{if(t*2+3+n*2>=a)return bt(1,a);let y=Math.max(l-t,n),h=Math.min(l+t,a-n),S=y>n+2,v=h<a-(n+1);if(!S&&v){let T=t*2+n+2;return [...bt(1,T),Rn,...bt(a-(n-1),a)]}if(S&&!v){let T=n+1+2*t;return [...bt(1,n),Rn,...bt(a-T,a)]}return [...bt(1,n),Rn,...bt(y,h),Rn,...bt(a-n+1,a)]},[a,t,l,n]),active:l,total:a,setPage:c,next:u,prev:p,first:m,last:f}}function ma(e,t){let[n,o]=Le__default.default.useState(e);return [n,i=>{o(typeof i<"u"?i:a=>a===t[0]?t[1]:t[0]);}]}function gr(e=!1){return ma(e,[!0,!1])}function Jp(e,t){let[n,o]=t?t(e):[!0,""],[r,i]=Le__default.default.useState(e??void 0),[a,l]=Le__default.default.useState(n),[s,c]=Le__default.default.useState(o),[u,p]=Le__default.default.useState(n?e:void 0);return [{value:r,lastValidValue:u,valid:a,invalidMsg:s},f=>{let[d,g]=t?t(f):[!0,""];d&&p(f),l(d),c(g),i(f);}]}function zp({key:e,initialValue:t,deserialize:n=En,serialize:o=xn}){let[r,i]=Le__default.default.useState(()=>{if(typeof window>"u")return t;try{let s=window.sessionStorage.getItem(e);return s?n(s):t}catch(s){return console.error(`useSessionStoredState failed to get the value: ${s.message}`),t}}),a=Le__default.default.useCallback(s=>{try{let c=s instanceof Function?s(r):s;i(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[e,o,r]),l=Le__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[e]);return [r,a,l]}var hr=["mousedown","touchstart"];function vt(e,t,n){let o=Le__default.default.useRef();return Le__default.default.useEffect(()=>{let r=i=>{let{target:a}=i??{};if(Array.isArray(n)){let l=a?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(a)&&a.tagName!=="HTML";n.every(c=>!!c&&!i.composedPath().includes(c))&&!l&&e();}else o.current&&!o.current.contains(a)&&e();};return (t||hr).forEach(i=>document.addEventListener(i,r)),()=>{(t||hr).forEach(i=>document.removeEventListener(i,r));}},[o,e,n,t]),o}function Tr(e,t,n){Le__default.default.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t,n]);}function Gp({duration:e=500,axis:t="y",onScrollFinish:n,offset:o=0,cancelable:r=!0,isList:i=!1}={}){let a=Le__default.default.useRef(0),l=Le__default.default.useRef(0),s=Le__default.default.useRef(!1),c=Le__default.default.useRef(null),u=Le__default.default.useRef(null),p=()=>{a.current&&cancelAnimationFrame(a.current);},m=Le__default.default.useCallback(({alignment:d="start"}={})=>{s.current=!1,a.current&&p();let g=v=>v<.5?2*v*v:-1+(4-2*v)*v,y=fa({parent:c.current,axis:t})??0,h=da({parent:c.current,target:u.current,axis:t,alignment:d,offset:o,isList:i})-(c.current?0:y);function S(){l.current===0&&(l.current=performance.now());let T=performance.now()-l.current,R=e===0?1:T/e,P=y+h*g(R);ga({parent:c.current,axis:t,distance:P}),!s.current&&R<1?a.current=requestAnimationFrame(S):(typeof n=="function"&&n(),l.current=0,a.current=0,p());}S();},[t,e,i,o,n]),f=()=>{r&&(s.current=!0);};return Tr("wheel",f,{passive:!0}),Tr("touchmove",f,{passive:!0}),Le__default.default.useEffect(()=>p,[]),{scrollableRef:c,targetRef:u,scrollIntoView:m,cancel:p}}var da=({axis:e,target:t,parent:n,alignment:o,offset:r,isList:i})=>{if(!t||!n&&typeof document>"u")return 0;let a=!!n,s=(n||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),u=p=>c[p]-s[p];if(e==="y"){let p=u("top");if(p===0)return 0;if(o==="start"){let f=p-r;return f<=c.height*(i?0:1)||!i?f:0}let m=a?s.height:window.innerHeight;if(o==="end"){let f=p+r-m+c.height;return f>=-c.height*(i?0:1)||!i?f:0}return o==="center"?p-m/2+c.height/2:0}if(e==="x"){let p=u("left");if(p===0)return 0;if(o==="start"){let f=p-r;return f<=c.width||!i?f:0}let m=a?s.width:window.innerWidth;if(o==="end"){let f=p+r-m+c.width;return f>=-c.width||!i?f:0}return o==="center"?p-m/2+c.width/2:0}return 0},fa=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;let n=e==="y"?"scrollTop":"scrollLeft";if(t)return t[n];let{body:o,documentElement:r}=document;return o[n]+r[n]},ga=({axis:e,parent:t,distance:n})=>{if(!t&&typeof document>"u")return;let o=e==="y"?"scrollTop":"scrollLeft";if(t)t[o]=n;else {let{body:r,documentElement:i}=document;r[o]=n,i[o]=n;}};function ya(e){return JSON.parse(e)}function Sr(e){return JSON.stringify(e)}function Yp(){function e({url:i,init:a}){return fetch(i,a).then(l=>{if(l.ok)return l.text();throw new Error(`${l.status}: ${l.statusText}`)}).then(l=>l)}function t({url:i,deserializer:a=ya}){return fetch(i).then(l=>{if(l.ok)return l.text();throw new Error(`${l.status}: ${l.statusText}`)}).then(a)}function n({url:i,body:a,headers:l={"Content-Type":"application/json"},serializer:s=Sr}){return fetch(i,{method:"POST",headers:l,body:s(a)}).then(c=>{if(c.ok)return c.text();throw new Error(`${c.status}: ${c.statusText}`)})}function o({url:i,body:a,headers:l={"Content-Type":"application/json"},serializer:s=Sr}){return fetch(i,{method:"PUT",headers:l,body:s(a)}).then(c=>{if(c.ok)return c.text();throw new Error(`${c.status}: ${c.statusText}`)})}function r({url:i}){return fetch(i,{method:"DELETE"}).then(a=>a.text()).then(a=>a)}return {ftch:e,get:t,post:n,put:o,del:r}}function Ie({color:e,size:t="m",rotation:n=0,icon:o,flip:r=void 0,animate:i=void 0}){let a=sr(t),l="icon";return l+=B(t),l+=e?U(e).replace(/^ is-/," has-text-"):"",typeof o=="string"?jsxRuntime.jsx("span",{className:l,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:l,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:a,rotation:n===0?void 0:n,flip:r,spin:i==="spin",pulse:i==="pulse"})})}function ho({icon:e,size:t="m",color:n,rotation:o=0,flip:r=void 0,animate:i=void 0,allowWrap:a=!1,children:l}){let s="icon-text";return s+=n?U(n).replace(/^ is-/," has-text-"):"",jsxRuntime.jsxs("span",{className:s,role:"icon-with-text",style:{flexWrap:a?void 0:"nowrap"},children:[jsxRuntime.jsx(Ie,{icon:e,size:t,color:n,rotation:o,flip:r,animate:i}),jsxRuntime.jsx("span",{children:l})]})}function ha({colors:e=[],icons:t,sizes:n=["s","m"]}){let o=Le__default.default.useMemo(()=>n&&n.length>=t.length?[...n]:Array(t.length).fill("s"),[n,t]),r=Le__default.default.useMemo(()=>e&&e.length>=t.length?[...e]:Array(t.length).fill("p"),[e,t]),i=u=>U(u).replace(/^ is-/," has-text-"),a=u=>{switch(u){case"s":return "fa-stack-1x";case"m":return "fa-stack-2x";case"l":return "fa-stack-3x";case"xl":return "fa-stack-4x";default:return "fa-stack-1x"}},l="icon";o[1]==="s"?l+=" is-small":o[1]==="m"?l+=" is-medium":o[1]==="l"&&(l+=" is-large");let s="fa-stack fa-layers";o[0]==="s"?s+=" fa-sm":o[0]==="m"?s+=" fa-md":o[0]==="l"?s+=" fa-lg":o[0]==="xl"&&(s+=" fa-xl");let c=Le__default.default.useMemo(()=>t.map((u,p)=>{let m=` ${a(o[p])} ${i(r[p])}`;return typeof u=="string"?jsxRuntime.jsx("i",{className:`${u} ${m}`},p):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:u,className:m},p)}),[t,r,o]);return jsxRuntime.jsx("span",{className:l,children:jsxRuntime.jsx("span",{className:s,style:{verticalAlign:"top"},children:c})})}function To({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:r=!1,hidePrev:i=!1,hideNext:a=!1,hideNumbers:l=!1,set:s=f=>{},first:c=()=>{},last:u=()=>{},prev:p=()=>{},next:m=()=>{}}){let f="pagination";return f+=B(n),jsxRuntime.jsx("div",{className:f,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})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:p,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!l&&e.map((d,g)=>d==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},d+g):d!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${d}`,onClick:()=>s(d),children:d})},d):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${d}`,onClick:()=>s(d),children:d})},d)),!a&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:m,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:u,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}var $=class e{static DEFAULT_LOCALE=locale.nl;static MAX_DATE_NUM=864e13;static MAX_DATE=new Date(e.MAX_DATE_NUM);_date;_locale;constructor(t,n){this._date=new Date(t),this._locale=n,Object.freeze(this);}numPad(t,n){return t.toString().padStart(n,"0")}valueOf(){return this._date.valueOf()}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 eraShort(){return dateFns.formatDate(this._date,"GG",{locale:this._locale})}get eraLong(){return dateFns.formatDate(this._date,"GGGG",{locale:this._locale})}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get tzOffsetShort(){return dateFns.formatDate(this._date,"x",{locale:this._locale})}get tzOffsetLong(){return dateFns.formatDate(this._date,"OOOO",{locale:this._locale})}get timezoneOffset(){let t=this.tzOffsetShort,n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return `${this.numPad(this.hour,2)}:${this.numPad(this.minute,2)}`}get timeHMS(){return `${this.numPad(this.hour,2)}:${this.numPad(this.minute,2)}:${this.numPad(this.sec,2)}`}get monthLong(){return dateFns.formatDate(this._date,"MMMM",{locale:this._locale})}get monthShort(){return dateFns.formatDate(this._date,"MMM",{locale:this._locale})}get dayLong(){return dateFns.formatDate(this._date,"EEEE",{locale:this._locale})}get dayShort(){return dateFns.formatDate(this._date,"EEEEEE",{locale:this._locale})}get dateLong(){return dateFns.formatDate(this._date,"EEEE d MMMM y",{locale:this._locale})}get dateShort(){return `${this.numPad(this.day,2)}-${this.numPad(this.month,2)}-${this.numPad(this.year,4)}`}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 e.from({...o,...t},n)}startOf(t){switch(t){case"year":return e.from({year:this.year,month:0,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return e.fromDate(new Date(this.year,n*3,1),this._locale).set({hour:0,minute:0,second:0,millisecond:0},this._locale)}case"month":return e.from({year:this.year,month:this.month,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"week":{let n=new Date(this.JSDate),o=n.getDate()-n.getDay()+(n.getDay()===0?-6:1);return e.fromDate(new Date(n.setDate(o)),this._locale).set({hour:0,minute:0,second:0,millisecond:0})}case"day":return e.from({year:this.year,month:this.month,day:this.day,hour:0,minute:0,second:0,millisecond:0},this._locale);case"hour":return e.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:0,second:0,millisecond:0},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.startOf()`)}}endOf(t){switch(t){case"year":return e.from({year:this.year,month:12,day:31,hour:23,minute:59,second:59,millisecond:999},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return e.fromDate(new Date(this.year,n*3+3,0),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"month":return e.from({year:this.year,month:this.month,day:this.daysInMonth,hour:23,minute:59,second:59,millisecond:999},this._locale);case"week":{let n=new Date(this.JSDate),o=this.JSDate.getDate()-(n.getDay()-1)+6;return e.fromDate(new Date(n.setDate(o)),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"day":return e.from({year:this.year,month:this.month,day:this.day,hour:23,minute:59,second:59,millisecond:999},this._locale);case"hour":return e.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:59,second:59,millisecond:999},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.endOf()`)}}plus({years:t,months:n,weeks:o,days:r,hours:i,minutes:a,seconds:l,milliseconds:s}){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))),r&&(c=new Date(c.setDate(c.getDate()+r))),i&&(c=new Date(c.setHours(c.getHours()+i))),a&&(c=new Date(c.setMinutes(c.getMinutes()+a))),l&&(c=new Date(c.setSeconds(c.getSeconds()+l))),s&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+s))),e.fromDate(c,this._locale)}isBetween(t,n=[!1,!1]){let o=(typeof n=="boolean"?n:n?.[0])??!1,r=(typeof n=="boolean"?n:n?.[1])??!1,[i,a]=t.sort((l,s)=>l.valueOf()-s.valueOf());return i.valueOf()===a.valueOf()?this._date.valueOf()===i.valueOf():o&&r?i<=this._date&&this._date<=a:o&&!r?i<=this._date&&this._date<a:!o&&r?i<this._date&&this._date<=a:i<this._date&&this._date<a}isBefore(t,n=!1){return n?this._date.valueOf()<=t.valueOf():this._date.valueOf()<t.valueOf()}isAfter(t,n=!1){return n?this._date.valueOf()>=t.valueOf():this._date.valueOf()>t.valueOf()}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 e)return this._date.valueOf()===t.valueOf();if(t instanceof Date)return this._date.valueOf()===t.valueOf();if(typeof t=="number")return this._date.valueOf()===t;throw new Error("invalid type")}clone(){return e.fromMillis(this.valueOf(),this.locale)}static now(t=e.DEFAULT_LOCALE){return new e(new Date,t)}static epoch(t=e.DEFAULT_LOCALE){return new e(new Date(0),t)}static fromDate(t,n=e.DEFAULT_LOCALE){return new e(new Date(t),n)}static from(t,n=e.DEFAULT_LOCALE){let o=new Date,{year:r,month:i,day:a,hour:l,minute:s,second:c,millisecond:u}={year:t.year??o.getFullYear(),month:t.month!==void 0?t.month===0?1:t.month:o.getMonth()+1,day:t.day??o.getDate(),hour:t.hour??o.getHours(),minute:t.minute??o.getMinutes(),second:t.second??o.getSeconds(),millisecond:t.millisecond??o.getMilliseconds()};if(i>12||i<1)throw new RangeError(`month value should be between 1 and 12, got ${i}`);if(a>31||a<1)throw new RangeError(`day value should be between 1 and 31, got ${i}`);if(l>23||l<0)throw new RangeError(`hour value should be between 0 and 23, got ${l}`);if(s>59||s<0)throw new RangeError(`minute value should be between 0 and 59, got ${s}`);if(c>59||c<0)throw new RangeError(`second value should be between 0 and 59, got ${c}`);if(u>999||u<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${u}`);return new e(new Date(r,i-1,a,l,s,c,u),n)}static fromISO(t,n=e.DEFAULT_LOCALE){let o=new Date(Date.parse(t));return new e(new Date(o),n)}static fromUTC(t,n=e.DEFAULT_LOCALE){let o=new Date(Date.parse(t));return new e(new Date(o),n)}static fromMillis(t,n=e.DEFAULT_LOCALE){let o=typeof t=="string"?+t:t;if(isNaN(o))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(o>e.MAX_DATE_NUM||o<-e.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new e(new Date(o),n)}toFormat(t){return dateFns.formatDate(this._date,t,{locale:this._locale})}};var vr=class{_jsd1;_jsd2;constructor(t,n=$.now()){this._jsd1=t instanceof Date?$.fromDate(t):t.clone(),this._jsd2=n instanceof Date?$.fromDate(n):n.clone();}get ms(){return Math.abs(this._jsd2.valueOf()-this._jsd1.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={},r=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([a,l])=>{if(t.includes(a)){let s=0;for(;n>=r;)s++,n-=r;Object.assign(o,{[a]:s});}r/=l;}),Object.assign(o,{rest:n}),o}};function Rm(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 r=0,i=9;for(let a of o.split(""))r+=parseInt(a)*i,i=i!==2?i-1:-1;r%11===0&&n.push(o);}return [n.length>0,n]}return [!!t,[]]}function Cr([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function wn(e){e.startsWith("#")||(e=`#${e}`);let t=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e),n=t?parseInt(t[1],16):0,o=t?parseInt(t[2],16):0,r=t?parseInt(t[3],16):0,i=t?parseInt(t[4],16):0;return [n,o,r,i]}function Pr([e,t,n]){let o=n/100,r=t*Math.min(o,1-o)/100,i=a=>{let l=(a+e/30)%12,s=o-r*Math.max(Math.min(l-3,9-l,1),-1);return Math.round(255*s).toString(16).padStart(2,"0")};return `#${i(0)}${i(8)}${i(4)}`}function Ir(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e),[n,o,r]=t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0];n/=255,o/=255,r/=255;let i=Math.max(n,o,r),a=Math.min(n,o,r),l=(i+a)/2,s=l,c=l;if(i!==a){let u=i-a;return s=c>.5?u/(2-i-a):u/(i+a),n===i?l=(o-r)/u+(o<r?6:0):o===i?l=(r-n)/u+2:r===i&&(l=(n-o)/u+4),[Math.round(360*(l/6)),Math.round(s*100),Math.round(c*100)]}else return [0,0,Math.round(c*100)]}function wm([e,t,n]){let o=e/255,r=t/255,i=n/255,a=Math.max(o,r,i),l=Math.min(o,r,i),s=(a+l)/2,c=s,u=s;if(a===l)return [0,0,Math.round(u*100)];let p=a-l;switch(c=u>=.5?p/(2-(a+l)):p/(a+l),a){case o:s=((r-i)/p+0)*60;break;case r:s=((i-o)/p+2)*60;break;case i:s=((o-r)/p+4)*60;break}return [Math.round(s),Math.round(c*100),Math.round(u*100)]}function Er([e,t,n]){t/=100,n/=100;let o=a=>(a+e/30)%12,r=t*Math.min(n,1-n),i=a=>n-r*Math.max(-1,Math.min(o(a)-3,Math.min(9-o(a),1)));return [Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))]}function So(e=["p","i","l","s","d","w","light","dark"]){let t=ct(0,e.length);return e[t]}function kn(e){return typeof e=="string"&&e.startsWith("#")&&(e.length===7||e.length===9)}function xr(e){return !(!Array.isArray(e)||e.length!==3&&e.length!==4||e.some(t=>typeof t!="number")||e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255)}function Rr(e){return !(!Array.isArray(e)||e.length!==3&&e.length!==4||e.some(t=>typeof t!="number")||e[0]<0||e[0]>360||e[1]<0||e[1]>100||e[2]<0||e[2]>100)}function Je(e){return typeof e=="string"&&!e.startsWith("#")&&(e=`#${e}`),kn(e)?Ea(e):xr(e)?Ra(e):Rr(e)?xa(e):typeof e=="string"?"#000000":[0,0,0]}function Ea(e){let[t=255,n=255,o=255]=wn(e),r=bo(t,n,o);return isNaN(r)||r>.179?"#000000":"#ffffff"}function xa(e){let[t=255,n=255,o=255]=Er(e),r=bo(t,n,o);return isNaN(r)?[0,0,0]:r>.179?[0,0,0]:[0,0,100]}function Ra([e=255,t=255,n=255]){let o=bo(e,t,n);return isNaN(o)?[0,0,0]:o>.179?[0,0,0]:[255,255,255]}function bo(e,t,n){let r=[e/255,t/255,n/255].map(a=>a<.03928?a/12.92:Math.pow((a+.055)/1.055,2.4));return .02126*r[0]+.7152*r[1]+.0722*r[2]}function Bm(e){try{e=e.toUpperCase().replaceAll(/[^A-Z0-9]/g,"");let t=e.match(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/);if(t){let n=Na.find(o=>o.code===t[1]);if(n){if(n.IBAN.length!==e.length)throw new Error("invalid length");{let o=(t[3]+t[1]+t[2]).replace(/[A-Z]/g,i=>(i.charCodeAt(0)-55).toString()),r=+o.slice(0,2);for(let i=2;i<o.length;i+=7)r=parseInt(r+o.substring(i,i+7),10)%97;return [r===1,r===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,`*${t.message}`]}}var Na=[{land:"Albanie",code:"AL",IBAN:"AL35202111090000000001234567"},{land:"Andorra",code:"AD",IBAN:"AD1400080001001234567890"},{land:"Azerbeidjan",code:"AZ",IBAN:"AZ96AZEJ00000000001234567890"},{land:"Bahrein",code:"BH",IBAN:"BH02CITI00001077181611"},{land:"Belgie",code:"BE",IBAN:"BE71096123456769"},{land:"Bosnie en Herzegovina",code:"BA",IBAN:"BA393385804800211234"},{land:"Brazilie",code:"BR",IBAN:"BR1500000000000010932840814P2"},{land:"Bulgarije",code:"BG",IBAN:"BG18RZBB91550123456789"},{land:"Costa Rica",code:"CR",IBAN:"CR23015108410026012345"},{land:"Croatie",code:"HR",IBAN:"HR1723600001101234565"},{land:"Cyprus",code:"CY",IBAN:"CY21002001950000357001234567"},{land:"Denemarken",code:"DK",IBAN:"DK9520000123456789"},{land:"Dominicaanse Republiek",code:"DO",IBAN:"DO22ACAU00000000000123456789"},{land:"Duitsland",code:"DE",IBAN:"DE91100000000123456789"},{land:"Egypte",code:"EG",IBAN:"EG800002000156789012345180002"},{land:"El Salvador",code:"SV",IBAN:"SV43ACAT00000000000000123123"},{land:"Estland",code:"EE",IBAN:"EE471000001020145685"},{land:"Faroe Eilanden",code:"FO",IBAN:"FO9264600123456789"},{land:"Finland",code:"FI",IBAN:"FI1410093000123458"},{land:"Frankrijk",code:"FR",IBAN:"FR7630006000011234567890189"},{land:"Georgie",code:"GE",IBAN:"GE60NB0000000123456789"},{land:"Gibraltar",code:"GI",IBAN:"GI04BARC000001234567890"},{land:"Griekenland",code:"GR",IBAN:"GR9608100010000001234567890"},{land:"Groenland",code:"GL",IBAN:"GL8964710123456789"},{land:"Guatemala",code:"GT",IBAN:"GT20AGRO00000000001234567890"},{land:"Hongarije",code:"HU",IBAN:"HU93116000060000000012345676"},{land:"Ierland",code:"IE",IBAN:"IE64IRCE92050112345678"},{land:"IJsland",code:"IS",IBAN:"IS030001121234561234567890"},{land:"Irak",code:"IQ",IBAN:"IQ20CBIQ861800101010500"},{land:"Israel",code:"IL",IBAN:"IL170108000000012612345"},{land:"Italie",code:"IT",IBAN:"IT60X0542811101000000123456"},{land:"Jordanie",code:"JO",IBAN:"JO71CBJO0000000000001234567890"},{land:"Kazakhstan",code:"KZ",IBAN:"KZ563190000012344567"},{land:"Kosovo",code:"XK",IBAN:"XK051212012345678906"},{land:"Kuweit",code:"KW",IBAN:"KW81CBKU0000000000001234560101"},{land:"Letland",code:"LV",IBAN:"LV97HABA0012345678910"},{land:"Libanon",code:"LB",IBAN:"LB92000700000000123123456123"},{land:"Liechtenstein",code:"LI",IBAN:"LI7408806123456789012"},{land:"Litouwen",code:"LT",IBAN:"LT601010012345678901"},{land:"Luxemburg",code:"LU",IBAN:"LU120010001234567891"},{land:"Britse Maagdeneilanden",code:"VG",IBAN:"VG21PACG0000000123456789"},{land:"Macedonie",code:"MK",IBAN:"MK07200002785123453"},{land:"Malta",code:"MT",IBAN:"MT31MALT01100000000000000000123"},{land:"Mauritanie",code:"MR",IBAN:"MR1300020001010000123456753"},{land:"Mauritius",code:"MU",IBAN:"MU43BOMM0101123456789101000MUR"},{land:"Moldavie",code:"MD",IBAN:"MD21EX000000000001234567"},{land:"Monaco",code:"MC",IBAN:"MC5810096180790123456789085"},{land:"Montenegro",code:"ME",IBAN:"ME25505000012345678951"},{land:"Nederland",code:"NL",IBAN:"NL02ABNA0123456789"},{land:"Noorwegen",code:"NO",IBAN:"NO8330001234567"},{land:"Oostenrijk",code:"AT",IBAN:"AT483200000012345864"},{land:"Pakistan",code:"PK",IBAN:"PK36SCBL0000001123456702"},{land:"Palestina",code:"PS",IBAN:"PS92PALS000000000400123456702"},{land:"Polen",code:"PL",IBAN:"PL10105000997603123456789123"},{land:"Portugal",code:"PT",IBAN:"PT50002700000001234567833"},{land:"Qatar",code:"QA",IBAN:"QA54QNBA000000000000693123456"},{land:"Roemenie",code:"RO",IBAN:"RO09BCYP0000001234567890"},{land:"Saint Lucia",code:"LC",IBAN:"LC14BOSL123456789012345678901234"},{land:"San Marino",code:"SM",IBAN:"SM76P0854009812123456789123"},{land:"Sao Tome en Principe",code:"ST",IBAN:"ST23000200000289355710148"},{land:"Saudi Arabie",code:"SA",IBAN:"SA4420000001234567891234"},{land:"Servie",code:"RS",IBAN:"RS35105008123123123173"},{land:"Seychellen",code:"SC",IBAN:"SC52BAHL01031234567890123456USD"},{land:"Slovenie",code:"SI",IBAN:"SI56192001234567892"},{land:"Slowakije",code:"SK",IBAN:"SK8975000000000012345671"},{land:"Spanje",code:"ES",IBAN:"ES7921000813610123456789"},{land:"Timor-Leste",code:"TL",IBAN:"TL380010012345678910106"},{land:"Tjechie",code:"CZ",IBAN:"CZ5508000000001234567899"},{land:"Tunesie",code:"TN",IBAN:"TN5904018104004942712345"},{land:"Turkije",code:"TR",IBAN:"TR320010009999901234567890"},{land:"Oekraine",code:"UA",IBAN:"UA903052992990004149123456789"},{land:"Verenigd Koninkrijk",code:"GB",IBAN:"GB98MIDL07009312345678"},{land:"Verenigde Arabische Emiraten",code:"AE",IBAN:"AE460090000000123456789"},{land:"Wit Rusland",code:"BY",IBAN:"BY86AKBB10100000002966000000"},{land:"Zweden",code:"SE",IBAN:"SE7280000810340009783242"},{land:"Zwitserland",code:"CH",IBAN:"CH5604835012345678009"}];function ct(e,t,n=!0){return Math.floor(Math.random()*(t-e+(n?1:-1)))+e+(n?0:1)}function Hm(e,t){return Math.random()*(t-e)+e}function Lm(e,t=2){if(t<1)return Math.round(e);let n=Math.pow(10,t);return Math.round(n*e)/n}var _m=(e=!1,t=!1)=>e===t?0:e?-1:1,$m=(e=$.fromMillis($.MAX_DATE_NUM),t=$.fromMillis($.MAX_DATE_NUM))=>e.valueOf()-t.valueOf(),Xm=(e="",t="")=>e<t?-1:e===t?0:1,Nr=(e=1/0,t=1/0)=>e<t?-1:e===t?0:1;var Fe=(e,t,...n)=>{let o=!!e&&!!t;return !n||n.length===0?o:o?Fe(o,n[0],...n.slice(1)):!1},Vm=(e,t,...n)=>!Fe(e,t,...n),$e=(e,t,...n)=>{let o=!!e||!!t;return !n||n.length===0?o:o?!0:$e(o,n[0],...n.slice(1))},Km=(e,t,...n)=>!$e(e,t,...n),Aa=(e,t,...n)=>{if(!n||n.length===0){let o=Fe(!!e,Ar(!!t)),r=Fe(!!t,Ar(!!e));return $e(o,r)}else return [e,t,...n].filter(Boolean).length===1},Um=(e,t,...n)=>!Aa(e,t,...n),Ar=e=>!e;function Wm(e,t,n){return n?e?t:n:e||t}function Gm({value:e,cases:t=[],defaultCase:n=void 0,compare:o=void 0}){t.find(([r])=>r===null)||(t=[...t,[null,n??null]]);for(let[r,i]of t){if(o&&o(e,r))return i;if(r===e)return i;if(typeof r=="number"&&isNaN(r)&&typeof e=="number"&&isNaN(e))return i;if(r===null&&e===null)return i;if(r===void 0&&e===void 0)return i}return t.find(([r])=>r===null)[1]}function Ym(e,t,n){let o={filler:" ",truncate:!1,...n};return (typeof e=="string"?e:e.toString()).padStart(t,o.fillChar).substring(0,o.truncate?t:void 0)}function Zm(e,t,n){let o={filler:" ",truncate:!1,...n};return (typeof e=="string"?e:e.toString()).padEnd(t,o.fillChar).substring(0,o.truncate?t:void 0)}function Qm(e,t,n){let o={fillChar:" ",truncate:!1,startSide:"l",...n},r=o.startSide==="l"||o.startSide==="left",i=typeof e=="string"?e:e.toString();for(;i.length<t;)i=r?`${o.fillChar}${i}`:`${i}${o.fillChar}`,i.length<t&&(i=r?`${i}${o.fillChar}`:`${o.fillChar}${i}`);return o.truncate?i.substring(0,t):i}function jm(e,t,n,o){let{formatCount:r=p=>p.toString(),suffix:i="",prefix:a="",onUndefined:l="geen",zeroIsMv:s=!0}={...o};e==null?e=NaN:Array.isArray(e)?e=e.length:typeof e=="string"&&(e=parseInt(e));let c=isNaN(e)?l:r(e),u=e===1;return s&&e===0?u=!1:!s&&e===0&&(u=!0),`${a}${(u?t:n).replaceAll("#",c)}${i}`.trim()}function Ma({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,narrow:r=!1,hoverable:i=!1,sticky:a="none",hidePagination:l=!1,hideSearch:s=!1,headerContent:c=void 0,footerContent:u=void 0,size:p="s",maxRows:m=20,searchPlaceholder:f="Zoek ...",rowIdentifier:d,onSearch:g=(P,E)=>E.filter(N=>JSON.stringify(N).toLowerCase().includes(P.toLowerCase())),onRowSelected:y,rowClass:h,renderWhenNoData:S=P=>P?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:v=(P,E,N)=>` ${P} van ${E}`,id:T,itemRef:R}){let P=t.sort((A,M)=>Nr(A.order??0,M.order??0)),[E,N]=Le__default.default.useState(()=>n||P.findIndex(A=>A.sort!==void 0)+1),[L,K]=Le__default.default.useState(""),[x]=pr(L,{delay:200}),C=[...x===""?e:g(x,e)];C.sort(P[Math.abs(E)-1]?.sort??(()=>0)),E<0&&C.reverse();let D=m===0?C.length:m,O=fr({total:Math.ceil(C.length/D)}),F=C.slice(((O.active??1)-1)*D,(O.active??1)*D),H="table is-striped";o&&(H+=" is-narrow"),r||(H+=" is-fullwidth"),i&&(H+=" is-hoverable"),a!=="none"&&(H+=" is-sticky");let I=T??ct(0,999999999999).toString();return O.active>O.total&&O.total>0&&O.setPage(O.total),jsxRuntime.jsxs("table",{className:H,id:I,ref:R,children:[jsxRuntime.jsx(La,{sticky:a,cols:P,size:p,searchValue:L,filterCount:C.length,dataCount:e.length,hideSearch:s,onSearchValueChanged:K,searchPlaceholder:f,infoMessage:v,sortColNum:E,onSortIndexChanged:N,tableID:I,children:c}),F.length>0&&jsxRuntime.jsx(Ha,{rows:F,rowIdentifier:d,cols:P,onRowSelected:y,rowClass:h}),F.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{role:"no-rows-to-show-row",children:jsxRuntime.jsx("td",{colSpan:P.length,children:S(L!=="")})})}),jsxRuntime.jsx(Ja,{size:p,cols:P,pagination:O,hidePagination:D===0?!0:l,children:u})]})}function Ha({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:r=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(i=>{let a=typeof o=="function"?o(i):o,l=typeof n=="function"?n(i):i[n];return jsxRuntime.jsx("tr",{role:"row",className:a,onClick:s=>r(i,s),children:t.map((s,c)=>{if(s.hidden)return null;let u;typeof s.cellIdentifier=="function"?u=s.cellIdentifier(i):s.cellIdentifier?u=i[s.cellIdentifier]:u=`${l}-${c}`;let p=typeof s.columnClass=="function"?s.columnClass(i):s.columnClass;return p+=oe(s.alignment??"l"),jsxRuntime.jsx("td",{className:p,children:typeof s.value=="function"?s.value(i):i[s.value]},u)})},l)})})}function La({children:e=void 0,searchValue:t,filterCount:n,dataCount:o,searchPlaceholder:r,cols:i,size:a,sortColNum:l,hideSearch:s,sticky:c,tableID:u,onSortIndexChanged:p,onSearchValueChanged:m,infoMessage:f}){let d=(h,S)=>{let v=S+1,T=i[S];T&&T.sort&&(Math.abs(l)===v?p(l*-1):l!==v&&p(v));},g=s?i.length:Math.ceil(i.filter(h=>!h.hidden).length/2),y=s?0:i.length-g;return jsxRuntime.jsxs("thead",{className:c==="all"?"is-sticky-head":void 0,children:[jsxRuntime.jsxs("tr",{role:"header-row",children:[jsxRuntime.jsx("th",{colSpan:g,children:e}),!s&&jsxRuntime.jsx("th",{colSpan:y,children:jsxRuntime.jsxs("div",{title:r,className:"control has-icons-left",children:[jsxRuntime.jsx(Qt,{size:a,type:"text",name:`lbr-datatable-search-${u}`,id:`lbr-datatable-search-${u}`,optionListId:`lbr-datatable-datalist-${u}`,placeholder:r,value:t,onValueChanged:m,infoMessage:f(n,o,t)}),jsxRuntime.jsx("span",{className:"icon is-small is-left",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSearch})})]})})]}),jsxRuntime.jsx("tr",{role:"header-row",className:c==="header"?"is-sticky-row":void 0,children:i.map((h,S)=>{if(h.hidden)return null;let v=h.sort!==void 0,T=Math.abs(l)-1===S,R;h.header||h.header===""?R=h.header:typeof h.value!="string"?R=h.value.toString():R=h.value;let P=oe(h.alignment??"l"),E=freeSolidSvgIcons.faSort;return T&&l>0?E=freeSolidSvgIcons.faSortUp:T&&l<0&&(E=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{role:"sort-col",style:{cursor:v?"pointer":void 0},className:P,onClick:N=>d(N,S),children:[v&&jsxRuntime.jsx(ho,{icon:E,children:R}),!v&&jsxRuntime.jsx("span",{children:R})]},S)})})]})}function Ja({size:e,children:t=void 0,hidePagination:n,cols:o,pagination:r}){return jsxRuntime.jsxs("tfoot",{children:[!n&&r.range.length>1&&jsxRuntime.jsx("tr",{role:"footer-row",children:jsxRuntime.jsx("td",{colSpan:o.filter(i=>!i.hidden).length,children:jsxRuntime.jsx(To,{size:e,range:r.range,currentPage:r.active,next:r.next,prev:r.prev,first:r.first,last:r.last,set:r.setPage})})}),t]})}var Oe=({color:e="i",className:t="",children:n})=>{let o="help";return o+=U(e),o=`${o} ${t}`.trim(),jsxRuntime.jsx("p",{className:o,children:n})};Oe.Info=e=>jsxRuntime.jsx(Oe,{color:"i",...e});Oe.Link=e=>jsxRuntime.jsx(Oe,{color:"l",...e});Oe.Primary=e=>jsxRuntime.jsx(Oe,{color:"p",...e});Oe.Danger=e=>jsxRuntime.jsx(Oe,{color:"d",...e});Oe.Success=e=>jsxRuntime.jsx(Oe,{color:"s",...e});Oe.Warning=e=>jsxRuntime.jsx(Oe,{color:"w",...e});function Fa({position:e="tr",color:t="l",title:n,children:o}){let r="badge";return r+=U(t),e==="tr"||e==="top-right"?r+=" is-top-right":e==="tl"||e==="top-left"?r+=" is-top-left":e==="tc"||e==="top-center"?r+=" is-top-center":e==="bl"||e==="bottom-left"?r+=" is-bottom-left":e==="br"||e==="bottom-right"?r+=" is-bottom-right":e==="bc"||e==="bottom-center"?r+=" is-bottom-center":e==="lc"||e==="left-center"?r+=" is-left-center":(e==="rc"||e==="right-center")&&(r+=" is-right-center"),jsxRuntime.jsx("span",{className:r,title:n,children:o})}function vo({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Xa({keys:e,separator:t,className:n=""}){let o=e.map((r,i)=>i===e.length-1?jsxRuntime.jsx(vo,{children:r},r):jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(vo,{children:r}),jsxRuntime.jsx("span",{children:t??"+"})]},r));return jsxRuntime.jsx("span",{className:n,children:o})}var je=({initialItem:e,children:t,className:n,style:o,onMenuItemClicked:r,itemRef:i})=>{let[a,l]=Le__default.default.useState(e??""),s=p=>{r(p),l(p);},c=Le__default.default.Children.map(t,p=>p.type===je.Item?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(Co,{...p.props,activeItem:a,onInternClick:s})}):p.type===je.ItemGroup?jsxRuntime.jsx(Ua,{...p.props,activeItem:a,onInternClick:s}):jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(kr,{...p.props,activeItem:a,onInternClick:s})})),u=`menu ${n}`.trim();return jsxRuntime.jsx("aside",{className:u,role:"menu",style:o,ref:i,children:c})};function Ua({label:e,children:t,activeItem:n,onInternClick:o}){return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e}),jsxRuntime.jsx("ul",{className:"menu-list",children:Le__default.default.Children.map(t,r=>r.type===je.Item?jsxRuntime.jsx(Co,{...r.props,activeItem:n,onInternClick:o}):r.type===je.ExpandableItem?jsxRuntime.jsx(kr,{...r.props,activeItem:n,onInternClick:o}):r)})]})}function kr({label:e,onClick:t,onInternClick:n,children:o,startExpanded:r,activeItem:i}){let[a,l]=Le__default.default.useState(r??!1),s=u=>{t&&t(e,u),l(!a);},c=Le__default.default.Children.map(o,u=>u.type===je.Item?jsxRuntime.jsx(Co,{...u.props,activeItem:i,onInternClick:n}):u);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:s,children:[jsxRuntime.jsx(Ie,{color:"i",size:"s",icon:a?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e]})]}),a&&jsxRuntime.jsx("ul",{children:c})]})}function Co({name:e,activeItem:t,children:n,onInternClick:o,onClick:r}){let i=l=>{r&&r(a,l),o(a);},a=e??Le__default.default.Children.toArray(n).filter(l=>typeof l=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:i,id:a,children:jsxRuntime.jsx("span",{className:t===a?"menu-list-item is-active":"menu-list-item",children:n})})}je.Item=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]});je.ItemGroup=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]});je.ExpandableItem=e=>jsxRuntime.jsx("div",{children:e.children});je.Label=({children:e})=>jsxRuntime.jsx("p",{className:"menu-label",children:e});var Be=({id:e,children:t,title:n=void 0,size:o="m",color:r="i",icon:i=void 0,collapsable:a=!1,startCollapsed:l=!1,itemRef:s,onDismiss:c})=>{let[u,p]=gr(!l),m="message";m+=B(o),m+=U(r);let f;i===void 0&&r==="w"?f=freeSolidSvgIcons.faExclamation:i===void 0&&r==="d"?f=freeSolidSvgIcons.faExclamationTriangle:i===void 0&&r==="s"?f=freeSolidSvgIcons.faCheck:i===void 0?f=freeSolidSvgIcons.faInfo:f=i;let d=$e(n,c,a);return jsxRuntime.jsxs("article",{className:m,id:e,ref:s,children:[d&&jsxRuntime.jsxs("div",{className:"message-header","data-testid":"message-header",onClick:()=>a&&p(),style:{cursor:a?"pointer":"default"},children:[jsxRuntime.jsxs("p",{children:[a&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("span",{className:"icon mr-1",children:[u&&jsxRuntime.jsx(Ie,{icon:freeSolidSvgIcons.faChevronCircleUp}),!u&&jsxRuntime.jsx(Ie,{icon:freeSolidSvgIcons.faChevronCircleDown})]})}),jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(Ie,{icon:f})}),n]}),c&&jsxRuntime.jsx("button",{className:"delete",onClick:c})]}),!a&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t}),a&&u&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t})]})};Be.Primary=e=>jsxRuntime.jsx(Be,{...e,color:"p"});Be.Success=e=>jsxRuntime.jsx(Be,{...e,color:"s"});Be.Danger=e=>jsxRuntime.jsx(Be,{...e,color:"d"});Be.Warning=e=>jsxRuntime.jsx(Be,{...e,color:"w"});Be.Info=e=>jsxRuntime.jsx(Be,{...e,color:"i"});Be.Link=e=>jsxRuntime.jsx(Be,{...e,color:"l"});var Lt=({id:e,size:t="m",children:n,onOpened:o,onDismiss:r,helpTag:i,disableOutsideClickDismiss:a=!1})=>{Le__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),o&&o(i),()=>document.documentElement.classList.remove("is-clipped")),[i,o]);let l=Le__default.default.useMemo(()=>{let u="800px";return t==="s"?u="600px":t==="m"?u="800px":t==="l"?u="1000px":t==="xl"?u="1200px":t==="max"?u="95%":typeof t=="string"&&(u=t),u},[t]),s=Le__default.default.Children.map(n,u=>u?u.type===Lt.Head?jsxRuntime.jsx(Dr,{...u.props}):u.type===Lt.Body?jsxRuntime.jsx(Po,{...u.props}):u.type===Lt.Foot?jsxRuntime.jsx(Or,{...u.props}):jsxRuntime.jsx(Po,{children:u}):null)?.sort((u,p)=>u.type.name==="InternHead"?-1:u.type.name==="InternBody"&&p.type.name==="InternHead"?1:u.type.name==="InternBody"&&p.type.name==="InternFoot"?-1:u.type.name==="InternFoot"?1:0),c=vt(()=>!a&&r&&r());return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",id:e,children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content modal-container bulma-box",style:{width:l},ref:c,children:s}),r&&jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:r})]})})},Dr=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",id:e,children:t}),Po=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",id:e,children:t}),Or=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",id:e,children:t});Lt.Head=Dr;Lt.Body=Po;Lt.Foot=Or;var we=({children:e,onDismiss:t,onClick:n,autoDismissAfter:o=-1,color:r="i",icon:i=void 0,id:a,itemRef:l})=>{let[s]=Le__default.default.useState(o>0?setTimeout(()=>c(null),o):null);Le__default.default.useEffect(()=>()=>s?clearTimeout(s):void 0,[s]);let c=m=>{s&&clearTimeout(s),t(m);},u=m=>{n?n(m):c(m);},p="notification";return p+=U(r),jsxRuntime.jsxs("article",{className:p,onClick:u,id:a,ref:l,children:[jsxRuntime.jsx("button",{className:"delete",onClick:c}),i&&jsxRuntime.jsx("span",{className:"icon is-medium",children:jsxRuntime.jsx(Ie,{icon:i})}),e]})};we.Primary=e=>jsxRuntime.jsx(we,{...e,color:"p"});we.Danger=e=>jsxRuntime.jsx(we,{...e,color:"d"});we.Warning=e=>jsxRuntime.jsx(we,{...e,color:"w"});we.Success=e=>jsxRuntime.jsx(we,{...e,color:"s"});we.Link=e=>jsxRuntime.jsx(we,{...e,color:"l"});we.Info=e=>jsxRuntime.jsx(we,{...e,color:"i"});function ns({color:e="i",size:t="m",prefix:n="",suffix:o="",max:r=100,value:i,title:a}){let l="progress";l+=B(t),l+=U(e);let s=i&&i!=="indeterminate"?`${n} ${i} ${o}`.trim():void 0,c=a?typeof a=="function"?a(i):a:s;return jsxRuntime.jsx("progress",{className:l,value:i==="indeterminate"?void 0:i,max:r,title:c,role:"progress",children:s})}function rs({rowIdentifier:e,columns:t,data:n,onRowSelected:o,tableRef:r,containerRef:i,id:a,hasFooter:l,...s}){let c=m=>m&&typeof m[0]=="string"?m.map(d=>({header:d,value:d})):m?m.map(d=>(!d.header&&d.header!==""&&typeof d.value=="string"&&(d.header=d.value),d)):Object.keys(n[0]).map(f=>({header:f,value:f})),u=(m,f)=>{o&&o(m,f);},p=c(t);return jsxRuntime.jsxs(re,{tableRef:r,containerRef:i,...s,children:[jsxRuntime.jsx(as,{columns:p}),jsxRuntime.jsx(is,{columns:p,data:n,rowIdentifier:e,onRowSelected:(m,f)=>u(m,f)}),l&&jsxRuntime.jsx(ss,{columns:p})]})}function is({columns:e,data:t,rowIdentifier:n,onRowSelected:o}){return jsxRuntime.jsx(re.Body,{children:t.map(r=>jsxRuntime.jsx(re.Row,{onClick:i=>o(r,i.currentTarget),children:e.map((i,a)=>jsxRuntime.jsx(re.Cell,{children:typeof i.value=="function"?i.value(r):r[n]},a))},typeof n=="function"?n(r):r[n]))})}function as({columns:e}){return jsxRuntime.jsx(re.Head,{children:jsxRuntime.jsx(re.Row,{children:e.map(t=>jsxRuntime.jsx(re.TH,{children:t.header},t.header))})})}function ss({columns:e}){return jsxRuntime.jsx(re.Foot,{children:jsxRuntime.jsx(re.Row,{children:e.map(t=>jsxRuntime.jsx(re.TH,{children:t.header},t.header))})})}var re=({id:e,containerRef:t,tableRef:n,scrollX:o=!1,striped:r=!1,bordered:i=!1,hoverable:a=!1,fullwidth:l=!1,narrow:s=!1,children:c,className:u=""})=>{let p="table";return r&&(p+=" is-striped"),i&&(p+=" is-bordered"),a&&(p+=" is-hoverable"),l&&(p+=" is-fullwidth"),s&&(p+=" is-narrow"),u&&(p+=` ${u}`),jsxRuntime.jsx("div",{ref:t,className:o?"table-container":void 0,children:jsxRuntime.jsx("table",{className:p,ref:n,id:e,children:c})})};re.Head=({children:e,className:t,...n})=>jsxRuntime.jsx("thead",{className:t,...n,children:e});re.Foot=({children:e,className:t,...n})=>jsxRuntime.jsx("tfoot",{className:t,...n,children:e});re.Body=({children:e,className:t,...n})=>jsxRuntime.jsx("tbody",{className:t,...n,children:e});re.Row=({children:e,className:t,...n})=>jsxRuntime.jsx("tr",{className:t,...n,children:e});re.Cell=({children:e,className:t,...n})=>jsxRuntime.jsx("td",{className:t,...n,children:e});re.HCell=({children:e,className:t,...n})=>jsxRuntime.jsx("th",{className:t,...n,children:e});re.ColGroup=({className:e,...t})=>jsxRuntime.jsx("colgroup",{className:e,...t});re.Col=e=>jsxRuntime.jsx("col",{...e});re.TR=re.Row;re.TD=re.Cell;re.TH=re.HCell;var Io=({size:e="m",id:t,itemRef:n,className:o,activeStepIndex:r,onChangeStep:i,children:a,freeStepChoice:l,stepChoice:s})=>{let[c,u]=Le__default.default.useState(r??0),p=d=>{i&&i(d),u(d);};Le__default.default.useEffect(()=>{u(r??0);},[r]);let m="steps is-animated";m+=B(e),m+=` ${o}`;let f=s??l??"neighbours";return jsxRuntime.jsx("div",{className:m,id:t,ref:n,children:Le__default.default.Children.map(a,(d,g)=>{if(d.type&&d.type===Io.Item){let y=!0;return f==="allowed"||f==="down"&&g<c||f==="up"&&g>c?y=!1:f==="neighbours"?y=g!==c+1&&g!==c-1:y=!0,jsxRuntime.jsx(cs,{...d.props,activeStep:c,stepKey:g,disabled:y,onClick:p},d.props.title)}else return d})})};Io.Item=e=>jsxRuntime.jsx(Le__default.default.Fragment,{children:e.title});function cs({disabled:e,stepKey:t,activeStep:n,status:o,marker:r,title:i,children:a,details:l,onClick:s}){let c=()=>{e||t===n||(s(t),p("active"));},[u,p]=Le__default.default.useState(o??"pending");Le__default.default.useEffect(function(){let g="pending";o==="error"?g="error":o==="completed"||n>t?g="completed":t===n&&(g="active"),p(g);},[o,t,n]);let m="step-item";n===t?m+=" is-active is-info":u==="error"?m+=" is-error is-danger":u==="completed"?m+=" is-completed is-success":m+=" is-pending";let f;return r?typeof r=="function"?f=r(u):f=r:f=jsxRuntime.jsx(Le__default.default.Fragment,{children:t+1}),jsxRuntime.jsxs("div",{className:m,onClick:c,title:i,children:[jsxRuntime.jsx("div",{className:"step-marker",children:f}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:a}),l&&jsxRuntime.jsx("p",{children:l})]})]})}var Hr=({id:e,activeTab:t,initialTab:n,size:o,alignment:r,fullwidth:i,children:a,onTabChange:l})=>{let[s,c]=Le__default.default.useState(t??n),u=(f,d)=>{d||(c(f),l(f));};Le__default.default.useEffect(()=>{t!==void 0&&c(s);},[s,t]);let p="tabs is-boxed";p+=B(o??"m"),p+=Tt(r??"l"),i&&(p+=" is-fullwidth");let m=Le__default.default.Children.map(a,(f,d)=>!f||f===""?null:jsxRuntime.jsx(us,{isActive:s?s===f?.props?.tabId:d===0,disabled:f?.props?.disabled??!1,onClick:()=>u(f?.props?.tabId,f?.props?.disabled),children:f}));return jsxRuntime.jsx("div",{className:p,id:e,children:jsxRuntime.jsx("ul",{children:m})})};function us({children:e,isActive:t,disabled:n=!1,onClick:o}){let r="";return t&&(r+="is-active"),n&&(r+=" is-disabled"),jsxRuntime.jsx("li",{role:"tab",className:r,onClick:o,children:e})}function ps({children:e,tabId:t,title:n,disabled:o=!1}){let r=Le__default.default.Children.map(e,i=>!i||i===""?null:i);return jsxRuntime.jsx("span",{title:n,id:t?.toString()||void 0,className:"tab",children:r})}Hr.Item=ps;function _t({children:e,color:t="l",size:n="s",light:o=!1,title:r,onDismiss:i}){let a={},l=p=>{a.backgroundColor=p,a.color=Je(p);},s=p=>{p.preventDefault(),i&&i(p);},c="tag is-rounded";c+=so(n,!0),kn(t)?l(t):c+=U(t),o&&(c+=" is-light");let u=null;if(i){let p="delete";n==="s"||n==="m"?p+=" is-small":n==="l"&&(p+=" is-normal"),u=jsxRuntime.jsx("button",{className:p,onClick:s,type:"button"});}return jsxRuntime.jsxs("span",{className:c,title:r,style:a,children:[e,u]})}function xo({children:e,merged:t=!1,size:n="s",alignment:o="l",className:r="",styles:i={},itemRef:a,id:l=void 0}){let s="tags";s+=so(n,!1),s+=Tt(o),t&&(s+=" has-addons"),s=`${s} ${r}`.trim();let c=Le__default.default.Children.map(e,u=>u&&u.type===_t&&!u.props.size?jsxRuntime.jsx(_t,{size:n,...u.props}):u);return jsxRuntime.jsx("div",{className:s,style:i,ref:a,id:l,children:c})}var Ro=({id:e,alignment:t="l",children:n,className:o})=>{let r="timeline";return t==="l"?r+=" is-ltr":t==="c"?r+=" is-centered":t==="r"&&(r+=" is-rtl"),r=`${r} ${o}`.trim(),jsxRuntime.jsx("div",{className:r,id:e,children:n})};Ro.Point=({children:e,color:t="l",size:n="s",title:o,onClick:r})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:r,children:jsxRuntime.jsx(_t,{color:t,size:n,title:o,children:e})});Ro.Item=({marker:e,heading:t,children:n,title:o,onClick:r})=>{let i="timeline-marker";return i+=U(e?.color??"light"),e?.icon&&(i+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:o,onClick:()=>r&&r(t),children:[jsxRuntime.jsx("div",{className:i,children:e?.icon&&jsxRuntime.jsx(Ie,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};var Xt=({children:e,id:t,itemRef:n,color:o,alignment:r="r",tag:i,onDismiss:a,onOpened:l})=>{Le__default.default.useEffect(()=>l&&l(i),[l,i]);let s="quickview is-active";r==="l"?s+=" is-left":r==="r"&&(s+=" is-right");let c=null,u=null,p=null;return Le__default.default.Children.forEach(e,m=>{if(Le__default.default.isValidElement(m))switch(m.type){case Xt.Header:c=jsxRuntime.jsx(Ao,{...m.props,onDismiss:a,color:o});break;case Xt.Body:u=jsxRuntime.jsx(wo,{...m.props});break;case Xt.Footer:p=jsxRuntime.jsx(Jr,{...m.props});break;default:u=jsxRuntime.jsx(wo,{children:m});break}}),jsxRuntime.jsxs("div",{id:t,className:s,ref:n,children:[c??jsxRuntime.jsx(Ao,{onDismiss:a}),u,p]})};function Ao({children:e,color:t="i",onDismiss:n}){let o="quickview-header";return o+=U(t),typeof e=="string"&&(e=jsxRuntime.jsx("h3",{className:"title is-4",children:e})),jsxRuntime.jsxs("header",{className:o,children:[e,jsxRuntime.jsx("button",{className:"delete",onClick:n,title:"close"})]})}var wo=({children:e})=>jsxRuntime.jsx("section",{className:"quickview-body",children:e}),Jr=({children:e})=>jsxRuntime.jsx("footer",{className:"quickview-footer",children:e});Xt.Header=Ao;Xt.Body=wo;Xt.Footer=Jr;var Y=({size:e="m",rounded:t=!1,alignment:n="l",value:o,initialValue:r,children:i,className:a,onToggle:l})=>{let[s,c]=Le__default.default.useState(o??r);Le__default.default.useEffect(()=>{o!==void 0&&s!==o&&c(o);},[o,s]);let u=d=>{s!=d&&(l&&l(d),c(d));},p=Le__default.default.useId(),m=Le__default.default.Children.map(i,(d,g)=>{let y=d.props?.identifier??Le__default.default.Children.map(d.props.children,h=>typeof h=="string"?h:typeof h.type=="string"?h.type:p)?.join("")??""+g;return d.type===_r?jsxRuntime.jsx(fs,{...d.props,toggled:s==y,identifier:y,onToggleClick:u}):d.type===$r?jsxRuntime.jsx(gs,{...d.props,identifier:y}):d}),f="tabs is-toggle";return f+=B(e),f+=Tt(n),t&&(f+=" is-toggle-rounded"),a&&(f+=" "+a),jsxRuntime.jsx("div",{className:f,children:jsxRuntime.jsx("ul",{children:m})})},_r=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function fs({disabled:e,title:t,toggled:n,children:o,identifier:r,onClick:i,onToggleClick:a}){let l="";return e&&(l+=" is-disabled"),n&&(l+=" is-active"),jsxRuntime.jsx("li",{title:t,className:l,onClick:()=>{i&&i(r),e||a(r);},id:r,children:jsxRuntime.jsx("span",{className:"tab",children:o})})}var $r=e=>jsxRuntime.jsx("button",{children:e.children});function gs({title:e,identifier:t,onToggle:n,toggled:o=!1,disabled:r=!1,children:i}){let[a,l]=Le__default.default.useState(o);Le__default.default.useEffect(()=>{o!==void 0&&l(o);},[o]);let s="";a&&(s+="is-active"),r&&(s+=" is-disabled");let c=()=>{r||(n&&n(!a,t),l(!a));};return jsxRuntime.jsx("li",{title:e,id:t,className:s,onClick:()=>c(),children:jsxRuntime.jsx("span",{className:"tab",children:i})})}Y.Item=_r;Y.OnOffItem=$r;var w=({color:e="p",size:t="m",loading:n=!1,disabled:o=!1,fullwidth:r=!1,type:i="button",isStatic:a=!1,helpTag:l,onClick:s,onFocus:c,children:u,value:p,...m})=>{let f=S=>{!n&&!o&&!a&&s&&s(S);},d=S=>{c&&c(S,l);},g="button";g+=B(t);let y={};a?g+=" is-static":e==="none"?g+=" is-none":g+=U(e),n&&(g+=" is-loading"),r&&(g+=" is-fullwidth",y={justifyContent:"center"});let h=Le__default.default.Children.map(u,S=>typeof S=="string"?jsxRuntime.jsx("span",{children:S}):S);return jsxRuntime.jsx("button",{style:y,className:g,type:i,disabled:o,onClick:f,onFocus:d,value:p,...m,children:h})};w.Static=e=>jsxRuntime.jsx(w,{...e,isStatic:!0});w.Primary=e=>jsxRuntime.jsx(w,{...e,color:"p"});w.Success=e=>jsxRuntime.jsx(w,{...e,color:"s"});w.Danger=e=>jsxRuntime.jsx(w,{...e,color:"d"});w.Warning=e=>jsxRuntime.jsx(w,{...e,color:"w"});w.Info=e=>jsxRuntime.jsx(w,{...e,color:"i"});w.Link=e=>jsxRuntime.jsx(w,{...e,color:"l"});w.Light=e=>jsxRuntime.jsx(w,{...e,color:"light"});w.Dark=e=>jsxRuntime.jsx(w,{...e,color:"dark"});function Mn({fullwidth:e=!1,children:t,color:n="l",onClick:o,...r}){let i=`link-button ${U(n)}`;return e&&(i+=" is-fullwidth"),jsxRuntime.jsx("button",{className:i,onClick:o,...r,children:t})}function hs({color:e="l",href:t,target:n="_blank",id:o,rel:r="noopener",children:i,...a}){let l=`link-button ${U(e)}`;return jsxRuntime.jsx("a",{className:l,href:t,target:n,id:o,rel:r,...a,children:i})}function Pt({unevenSize:e=!1,...t}){return e?jsxRuntime.jsx(Ts,{...t}):jsxRuntime.jsx(Ss,{...t})}function Ts({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0}){let r="field";return r+=t?" has-addons":" is-grouped",r+=ar(n),o&&(r+=` ${o}`),jsxRuntime.jsx("div",{className:r,children:Le__default.default.Children.map(e,i=>jsxRuntime.jsx("div",{className:"control",children:i}))})}function Ss({children:e,alignment:t="l",className:n=""}){let o="evenly-sized-buttons";o+=Tt(t),n&&(o+=` ${n}`);let r=Le__default.default.Children.map(e,i=>{if(Le__default.default.isValidElement(i)){if(i?.type===w)return jsxRuntime.jsx(w,{...i.props,fullwidth:!0});if(i?.type===w.Primary)return jsxRuntime.jsx(w.Primary,{...i.props,fullwidth:!0});if(i?.type===w.Info)return jsxRuntime.jsx(w.Info,{...i.props,fullwidth:!0});if(i?.type===w.Link)return jsxRuntime.jsx(w.Link,{...i.props,fullwidth:!0});if(i?.type===w.Success)return jsxRuntime.jsx(w.Success,{...i.props,fullwidth:!0});if(i?.type===w.Warning)return jsxRuntime.jsx(w.Warning,{...i.props,fullwidth:!0});if(i?.type===w.Danger)return jsxRuntime.jsx(w.Danger,{...i.props,fullwidth:!0});if(i?.type===w.Light)return jsxRuntime.jsx(w.Light,{...i.props,fullwidth:!0});if(i?.type===w.Dark)return jsxRuntime.jsx(w.Dark,{...i.props,fullwidth:!0});if(i?.type===Mn)return jsxRuntime.jsx(Mn,{...i.props,fullwidth:!0});if(i?.type==="button")return jsxRuntime.jsx("button",{...i.props,style:{...i.props.style,width:"100%"}})}else return null});return jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsx("div",{className:"evenly-sized-buttons-container",style:{display:"grid",direction:"ltr",gridTemplateColumns:`repeat(${Le__default.default.Children.count(e)}, 1fr) `,gap:"0.5rem",gridTemplateRows:"1fr",gridAutoFlow:"column"},children:r})})}var It={transition:"background-color .2s ease-in-out, color .2s ease-in-out",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"clip"},tt={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold"},tn={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},mt={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",paddingTop:"1em"},Ln={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em"},zr={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},Jn={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},Vr={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",marginBottom:"-2px",display:"inline-block",transition:"background-color .2s ease-in-out"};var vs=.2,Cs=.1;function Vt({className:e,children:t,style:n={},content:o=void 0,hideArrow:r=!1,triggers:i="hover",placement:a="rt",display:l="inline-block"}){let s=Le__default.default.useMemo(()=>({offSet:[8,8]}),[]),c=Le__default.default.useMemo(()=>({display:l}),[l]),u=Le__default.default.useMemo(()=>{let p="";return a==="r"?p="right":a==="t"?p="top":a==="b"?p="bottom":a==="l"?p="left":a==="lt"||a==="tl"?p="leftTop":a==="lb"||a==="bl"?p="leftBottom":a==="rt"||a==="tr"?p="rightTop":(a==="rb"||a==="br")&&(p="rightBottom"),p},[a]);return o?jsxRuntime.jsx("span",{className:e,style:n,children:jsxRuntime.jsx(zi__default.default,{placement:u,overlay:typeof o=="string"?jsxRuntime.jsx(jsxRuntime.Fragment,{children:o}):o,trigger:i,showArrow:!r,mouseEnterDelay:vs,mouseLeaveDelay:Cs,align:s,children:jsxRuntime.jsx("div",{style:c,children:t})})}):jsxRuntime.jsx("span",{className:e,style:n,children:t})}function gn({event:e,options:t,onClick:n,desc:o}){let[r,i]=Le__default.default.useState(!1),a=Le__default.default.useCallback(Je,[]),l=Le__default.default.useMemo(()=>{let c=Yt(e,r,t),u=a(c);return {...It,paddingLeft:"1em",backgroundColor:c,color:u,cursor:n?"pointer":"default"}},[e,r,n,t,a]),s=Le__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:s,onClick:c=>{c.preventDefault(),c.stopPropagation(),n&&n(e,c);},style:l,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:jsxRuntime.jsx(Vt,{placement:"rt",content:e.tooltip?jsxRuntime.jsx("span",{style:{maxWidth:"300px"},children:e.tooltip}):void 0,hideArrow:!0,children:jsxRuntime.jsx("span",{children:o(e,r)})})})}function dt({event:e,onClick:t,desc:n}){let[o,r]=Le__default.default.useState(!1),i=Le__default.default.useCallback(Je,[]),a=Le__default.default.useMemo(()=>{let s=o?"#f1f1f1":"#ffffff00",c=i(s);return {...It,backgroundColor:s,color:c,cursor:t?"pointer":"default"}},[o,t,i]),l=Le__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:s=>{s.preventDefault(),s.stopPropagation(),t&&t(e,s);},style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx(Vt,{style:{display:"inline-block"},placement:"rt",content:e.tooltip?jsxRuntime.jsx("div",{style:{maxWidth:"300px"},children:e.tooltip}):void 0,hideArrow:!0,children:jsxRuntime.jsx("span",{style:{overflowX:"clip"},className:"is-flex is-flex-wrap-nowrap is-align-content-left",children:n(e,o)})})})}function zn({evt:e,calendarType:t}){return jsxRuntime.jsx("span",{children:typeof e.title=="function"?e.title(t):e.title})}function xt({evt:e,options:t,calendarType:n,isHovered:o=!1}){let r=Le__default.default.useMemo(()=>{let i=Yt(e,o,t);return {...Vr,backgroundColor:i}},[e,t,o]);return jsxRuntime.jsxs("div",{style:{overflowX:"clip",textOverflow:"clip"},className:"is-flex is-align-content-center",children:[jsxRuntime.jsx("div",{className:"kleurblok is-flex-grow-0 is-flex-shrink-0 my-1",style:r}),jsxRuntime.jsx("strong",{children:e._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px",overflowX:"clip",textOverflow:"clip"},children:typeof e.title=="function"?e.title(n):e.title})]})}function Ur({events:e,onEventClick:t,options:n,calendarType:o}){let[r,i]=Le__default.default.useState(()=>e.slice(4)),[a,l]=Le__default.default.useState(!1),[s,c]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{i(e.slice(4));},[e]);let u=Le__default.default.useMemo(()=>({...It,backgroundColor:a?"#f4f4f4":"transparent",color:a?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em",cursor:"pointer"}),[a]),p=Le__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[]),m=()=>{c(!s),l(!1);};return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[s&&r.map(f=>f.allDay?jsxRuntime.jsx(gn,{desc:d=>jsxRuntime.jsx(zn,{evt:d,calendarType:o}),event:f,options:n?.allday,onClick:t},`${typeof f.id=="function"?f.id():f.id}`):jsxRuntime.jsx(dt,{desc:(d,g)=>jsxRuntime.jsx(xt,{evt:d,isHovered:g,options:n?.timed,calendarType:o}),event:f,options:n?.timed,onClick:t},`${typeof f.id=="function"?f.id():f.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:u,children:[!s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:p,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faChevronDown})}),jsxRuntime.jsxs("span",{children:["Nog ",r.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:p,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faChevronUp})}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}function Kn({options:e,date:t,onDayClick:n,onEventClick:o,events:r,calendarType:i,isCurrentMonth:a=!0}){let[l,s]=Le__default.default.useState(!1),c=Le__default.default.useCallback(Je,[]),u=Le__default.default.useMemo(()=>({...Ln,backgroundColor:a?"transparent":"#f8f8f8",color:a?"#888888":"#bbbbbb"}),[a]),p=Le__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let d=Cn(t,l,e),g=c(d);return {...Jn,backgroundColor:d,color:g}},[t,l,e,c]),m=(d,g)=>{o&&o(d,g);},f=(d,g)=>{n&&n(d,g);};return jsxRuntime.jsxs("div",{style:u,onClick:d=>f(t,d),children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{...zr,cursor:n?"pointer":"default",backgroundColor:l?"#f4f4f4":"transparent",color:a?"#555555":"#bbbbbb"},children:[jsxRuntime.jsx("span",{style:t.isToday?p:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:a?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:r.map((d,g)=>{let y=`${typeof d.id=="function"?d.id():d.id}`??g;return d.allDay&&g<4?jsxRuntime.jsx(gn,{desc:(h,S)=>jsxRuntime.jsx(zn,{evt:h,isHovered:S,options:e?.event?.allday,calendarType:i}),event:d,onClick:m},y):!d.allDay&&g<4?jsxRuntime.jsx(dt,{desc:h=>jsxRuntime.jsx(xt,{evt:h,options:e?.event?.timed,calendarType:i}),event:d,onClick:m},y):g===4&&r.length>5?jsxRuntime.jsx(Ur,{events:r,onEventClick:m,options:e?.event,calendarType:i},t.dateShort+"-more"):g===4&&d.allDay?jsxRuntime.jsx(gn,{desc:(h,S)=>jsxRuntime.jsx(zn,{evt:h,isHovered:S,options:e?.event?.allday,calendarType:i}),event:d,options:e?.event?.allday,onClick:m},y):g===4&&!d.allDay?jsxRuntime.jsx(dt,{desc:(h,S)=>jsxRuntime.jsx(xt,{evt:h,options:e?.event?.timed,isHovered:S,calendarType:i}),event:d,onClick:m},y):null})})]})}function Wr({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:r=[]}){let i=u=>{let p=Math.ceil(u.weekNr/52*13),m=u.clone();for(;Math.ceil(m.weekNr/52*13)===p;)m=m.plus({days:-1});let f=u.clone();for(;Math.ceil(f.weekNr/52*13)===p;)f=f.plus({days:1});m=m.plus({days:1}).startOf("day"),f=f.plus({days:-1}).endOf("day");let d=r.map(h=>(h.allDay===void 0&&(h.allDay=!1),h._startDateTime||(h._startDateTime=h.startDateTime instanceof Date?$.fromDate(h.startDateTime,t?.locale):h.startDateTime.clone()),h._endDateTime&&!h._endDateTime&&(h._endDateTime=h.endDateTime instanceof Date?$.fromDate(h._endDateTime,t?.locale):h.endDateTime?.clone()),h)).filter(h=>h._startDateTime.isBetween([m,f])),g=m.clone(),y=[];for(;g<=f;){if(l.has(g.weekDay)){let h=g.startOf("day"),S=g.endOf("day"),v=d.filter(T=>T._startDateTime.isBetween([h,S])).sort((T,R)=>T.allDay&&!R.allDay?-1:!T.allDay&&R.allDay?1:T._startDateTime.valueOf()-R._startDateTime.valueOf());y.push([g,v]);}g=g.plus({days:1});}return y},a=e instanceof Date?$.fromDate(e,t?.locale):e.clone(),l=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),s=i(a),c=Le__default.default.useMemo(()=>({...tn,gridTemplateColumns:`30px repeat(${l.size}, 1fr)`}),[l.size]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(xs,{visibleDays:l,viewDate:a}),jsxRuntime.jsx(Rs,{visibleDays:l,viewDate:a,datesWithEvents:s,options:t,onDayClick:o,onEventClick:n})]})})}function xs({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),r=t.endOf("week"),i=Array.from(e).sort(),a=0;for(;o<=r&&a<7;)i.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let l=Le__default.default.useMemo(()=>({...tt}),[]),s=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:l}),n.map(c=>jsxRuntime.jsx("div",{style:s,children:c},c))]})}function Rs({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:r}){let i=e.size,a=0;return jsxRuntime.jsx(Le__default.default.Fragment,{children:r.map(([l,s])=>(a==i&&(a=0),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Ns,{weekNr:l.weekNr}),jsxRuntime.jsx(Kn,{date:l,events:s,calendarType:"v",onEventClick:n,onDayClick:t,options:o},l.ISO)]},l.ISO)))})}function Ns({weekNr:e}){let t=Le__default.default.useMemo(()=>({...mt}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function Gr({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:r=[]}){let i=u=>{let p=u.startOf("month").startOf("week").startOf("day"),m=u.endOf("month").endOf("week").plus({days:1}).startOf("day"),f=r.map(y=>(y.allDay===void 0&&(y.allDay=!1),y._startDateTime||(y._startDateTime=y.startDateTime instanceof Date?$.fromDate(y.startDateTime,t?.locale):y.startDateTime.clone()),y._endDateTime&&!y._endDateTime&&(y._endDateTime=y.endDateTime instanceof Date?$.fromDate(y._endDateTime,t?.locale):y.endDateTime?.clone()),y)).filter(y=>y._startDateTime.isBetween([p,m])),d=p.clone(),g=[];for(;d<m;){if(a.has(d.weekDay)){let y=d.startOf("day"),h=d.endOf("day"),S=f.filter(v=>v._startDateTime.isBetween([y,h])).sort((v,T)=>v.allDay&&!T.allDay?-1:!v.allDay&&T.allDay?1:v._startDateTime.valueOf()-T._startDateTime.valueOf());g.push([d,S]);}d=d.plus({days:1});}return g},a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),l=e instanceof Date?$.fromDate(e,t?.locale):e.clone(),s=i(l),c=Le__default.default.useMemo(()=>({...tn,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[a.size]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(As,{visibleDays:a,viewDate:l}),jsxRuntime.jsx(ws,{visibleDays:a,viewDate:l,datesWithEvents:s,options:t,onDayClick:o,onEventClick:n})]})})}function As({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),r=t.endOf("week"),i=Array.from(e).sort(),a=0;for(;o<=r&&a<7;)i.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let l=Le__default.default.useMemo(()=>({...tt}),[]),s=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:l}),n.map(c=>jsxRuntime.jsx("div",{style:s,children:c},c))]})}function ws({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:r,viewDate:i}){let a=e.size,l=0;return jsxRuntime.jsx(Le__default.default.Fragment,{children:r.map(([s,c])=>(l===a&&(l=0),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[l++===0&&jsxRuntime.jsx(ks,{weekNr:s.weekNr}),jsxRuntime.jsx(Kn,{date:s,events:c,calendarType:"m",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:s.hasSame(i,"month")},s.ISO)]},s.ISO)))})}function ks({weekNr:e}){let t=Le__default.default.useMemo(()=>({...mt}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function qr({viewDate:e,days:t=65,alwaysStartOnMonday:n=!1,options:o,rows:r,rowIdentifier:i,dayHeader:a=Qr,rowHeader:l=Yr,rowLabel:s=Zr,onDayClick:c,onEventClick:u}){let p=g=>{let y=[],h=0,S=g.clone();for(;h<t;)m.has(S.weekDay)&&(y.push(S.clone()),h++),S=S.plus({days:1});return y},m=o?.visibleDays&&o?.visibleDays?.size!==0?o?.visibleDays:new Set([1,2,3,4,5,6,7]),f=n?(e instanceof Date?$.fromDate(e,o?.locale):e.clone()).startOf("week").startOf("day"):(e instanceof Date?$.fromDate(e,o?.locale):e.clone()).startOf("day"),d=p(f);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:"table is-planning is-fullwidth",children:[jsxRuntime.jsx(Os,{rowHeader:l,dayHeader:a,days:d}),jsxRuntime.jsx("tbody",{children:r?.map(g=>{let y=Array.isArray(g)?g[0]:g,h=typeof y!="object"?y:typeof i=="function"?i(y):y[i];return jsxRuntime.jsx(Bs,{row:g,days:d,rowLabel:s,options:o,onDayClick:c,onEventClick:u},h)})})]})})}function Os({days:e,dayHeader:t=Qr,rowHeader:n=Yr}){let o=typeof n=="function"?n():n;return jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{className:"planning-row",children:[jsxRuntime.jsx("td",{className:"first-col",children:o}),e.map(r=>jsxRuntime.jsx("td",{children:t(r)},r.valueOf()))]})})}function Bs({row:e,days:t,options:n,onDayClick:o,onEventClick:r,rowLabel:i=Zr}){let a=Array.isArray(e)?e[0]:e,l=(e[1]??[]).map(s=>(s.allDay===void 0&&(s.allDay=!1),s._startDateTime||(s._startDateTime=s.startDateTime instanceof Date?$.fromDate(s.startDateTime,n?.locale):s.startDateTime.clone()),s._endDateTime&&!s._endDateTime&&(s._endDateTime=s.endDateTime instanceof Date?$.fromDate(s._endDateTime,n?.locale):s.endDateTime?.clone()),s));return jsxRuntime.jsxs("tr",{className:"planning-row",children:[jsxRuntime.jsx("td",{className:"first-col",children:i(a,l)}),t.map(s=>{let c=l?.filter(u=>u._startDateTime?.year===s.year&&u._startDateTime.yearToDate===s.yearToDate)??[];return jsxRuntime.jsx("td",{onClick:u=>o&&o(s,a,u),children:jsxRuntime.jsx("div",{style:{width:"222px"},children:c.map((u,p)=>{let m=`${typeof u.id=="function"?u.id():u.id}`??p;return jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx(xt,{evt:f,options:n?.event?.timed,calendarType:"p"}),event:u,options:n?.event?.timed,onClick:r},m)})})},s.valueOf())})]})}var Yr=()=>jsxRuntime.jsx("div",{});function Zr(e,t){let n=jsxRuntime.jsx(jsxRuntime.Fragment,{});return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?n=jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):typeof e=="object"&&(n=jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(e,null,2)})),jsxRuntime.jsx("div",{children:n})}var Qr=e=>{let t=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs("div",{style:t,children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:e.dayLong}),jsxRuntime.jsxs("span",{children:[e.day," ",e.monthLong]})]},e.ISO)};function jr({options:e,events:t,date:n,onEventClick:o,onDayClick:r}){let i=Le__default.default.useMemo(()=>({...Ln}),[]);return jsxRuntime.jsx("div",{style:i,onClick:a=>r&&r(n.startOf("day"),a),children:t.map(a=>jsxRuntime.jsx(dt,{desc:(l,s)=>jsxRuntime.jsx(xt,{evt:l,options:e?.event?.allday,isHovered:s,calendarType:"w"}),event:a,options:e?.event?.allday,onClick:o},`${typeof a.id=="function"?a.id():a.id}`))})}function ei({hour:e}){let t=Le__default.default.useMemo(()=>({...mt,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,className:"time-slot",children:[e.toString().padStart(2,"0"),":00"]})}function ti({events:e,hour:t,date:n,onEventClick:o,onCellClick:r,options:i,lastVisibleHour:a}){let l=Le__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),s=Le__default.default.useRef(null),c=e.length!==0&&s.current?s.current?.offsetWidth/e.length:document.body.clientWidth/8;return jsxRuntime.jsx("div",{className:"hour-slot",style:l,ref:s,onClick:u=>{let p=n.clone().set({hour:t,minute:0,second:0,millisecond:0});r&&r(p,u);},children:e.map((u,p)=>jsxRuntime.jsx(Hs,{options:i?.event?.timed,event:u,lastVisibleHour:a??23,eventIndex:p,desc:m=>jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs(Vt,{content:m.tooltip?jsxRuntime.jsx("div",{style:{maxWidth:"300px"},children:m.tooltip}):void 0,placement:"rt",hideArrow:!0,children:[jsxRuntime.jsx("p",{children:jsxRuntime.jsxs("b",{children:[m._startDateTime.timeHM," - ",m._endDateTime?.timeHM]})}),jsxRuntime.jsx("p",{children:typeof m.title=="function"?m.title("w"):m.title})]})}),onClick:o,eventWidth:c},`${typeof u.id=="function"?u.id():u.id}`))})}function Hs({event:e,lastVisibleHour:t,options:n,eventWidth:o,eventIndex:r,onClick:i,desc:a}){let[l,s]=Le__default.default.useState(!1),c=Le__default.default.useCallback(Je,[]),u=Le__default.default.useRef(null),p=Le__default.default.useMemo(()=>{let m=Yt(e,l,n),f=c(m),d=e._startDateTime,g=e._endDateTime;g.hasSame(d,"day")||(g=d.endOf("day")),g.hour>t&&(g=g.set({hour:t,minute:59,second:59,millisecond:999}));let h=(g.valueOf()-d.valueOf())/1e3/60;return {...It,position:"absolute",backgroundColor:m,color:f,margin:"0",marginX:"2px",paddingLeft:"3px",marginTop:`${d.minute}px`,height:`${h<30?30:h}px`,width:o,lineHeight:"1.0em",overflow:"clip",marginLeft:`${r*(o??100/8)}px`,cursor:i?"pointer":"default"}},[e,l,n,c,t,o,r,i]);return jsxRuntime.jsxs("div",{className:"timed-event",ref:u,onClick:m=>{m.preventDefault(),m.stopPropagation(),i&&i(e,m);},style:p,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[jsxRuntime.jsx("div",{style:{overflow:"clip",textOverflow:"clip",position:"absolute",left:"3px",right:"3px",top:"3px"},children:a(e)})," "]})}function ni({viewDate:e,options:t,onEventClick:n,events:o,onDayClick:r}){let i=(p,m)=>{let f=p.startOf("week").startOf("day"),d=p.endOf("week").plus({days:1}).startOf("day"),g=(m??o??[]).map(T=>(T.allDay===void 0&&(T.allDay=!1),T._startDateTime||(T._startDateTime=T.startDateTime instanceof Date?$.fromDate(T.startDateTime,t?.locale):T.startDateTime.clone()),!T._endDateTime&&T.endDateTime?T._endDateTime=T.endDateTime instanceof Date?$.fromDate(T.endDateTime,t?.locale):T.endDateTime?.clone():T._endDateTime||(T._endDateTime=T._startDateTime.plus({hours:1})),T)).filter(T=>T._startDateTime.isBetween([f,d])),y=f.clone(),h=[];for(;y<d;){if(a.has(y.weekDay)){let T=y.startOf("day"),R=y.endOf("day"),P=g.filter(E=>E._startDateTime.isBetween([T,R])).sort((E,N)=>E.allDay&&!N.allDay?-1:!E.allDay&&N.allDay?1:E._startDateTime.valueOf()-N._startDateTime.valueOf());h.push([y,P]);}y=y.plus({days:1});}let S=h.map(([T,R])=>[T,R.filter(P=>P.allDay)]),v=h.map(([T,R])=>[T,R.filter(P=>!P.allDay)]);return {allday:S,timed:v}},a=Le__default.default.useMemo(()=>t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[t?.visibleDays]),l=e instanceof Date?$.fromDate(e,t?.locale):e.clone(),s=i(l),c=Le__default.default.useMemo(()=>({...tn,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${a.size}, 1fr)`}),[a]),u=Le__default.default.useMemo(()=>{let p=[],m=t?.firstHour??0,f=t?.lastHour??23;if(m>=f)throw new Error("BeginTime moet kleiner zijn dan endTime");for(;m<=f;)p.push(m++);return p},[t]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(Ls,{onDayClick:r,daysWithEvents:s.allday,options:t}),jsxRuntime.jsx("div",{style:{...mt,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),s.allday.map(([p,m])=>jsxRuntime.jsx(jr,{date:p,events:m,onEventClick:n,onDayClick:r,options:t},p.dayShort)),u.map(p=>jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(ei,{hour:p}),s.timed.map(([m,f])=>{let d=f.filter(g=>g._startDateTime.hour===p);return jsxRuntime.jsx(ti,{events:d,hour:p,date:m,onCellClick:r,onEventClick:n,options:t,lastVisibleHour:t?.lastHour??23},m.dayShort+"-"+p)})]},p)),jsxRuntime.jsx("div",{style:{...mt,paddingTop:"0",zIndex:1,height:"30px",borderBottom:"thin solid #e1e1e1"}})]})})}function Ls({onDayClick:e,daysWithEvents:t,options:n={}}){let o=Le__default.default.useMemo(()=>({...tt,cursor:e?"pointer":void 0}),[e]),r=Le__default.default.useMemo(()=>({...o}),[o]),i=Le__default.default.useCallback(Je,[]),a=Le__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let l=Cn(new Date,!1,n),s=i(l);return {...Jn,marginBottom:".5em",backgroundColor:l,color:s}},[n,i]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:t.map(([l])=>jsxRuntime.jsxs("div",{style:r,onClick:s=>e&&e(l,s),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:l.dayLong}),jsxRuntime.jsxs("span",{style:l.isToday?a:void 0,children:[l.day," ",l.monthLong]})]},l.ISO))})}var Js={Month:Gr,Week:ni,Fourweeks:Wr,Planning:qr};function Lo({id:e,label:t,name:n,size:o="m",direction:r="v",required:i=!1,showRequiredOnLabel:a=!1,value:l=!1,errorMessage:s="",labelHidden:c=!1,helpTag:u,infoData:p,onValueChanged:m,onBlur:f,onFocus:d,...g}){let[y,h]=Le__default.default.useState(!1),[S,v]=Le__default.default.useState(!1),T=N=>{p?setTimeout(()=>{let L=document.getElementById(e??n);document.activeElement!==L&&(v(!1),f&&f(N));},ge):(f&&f(N),v(!1));},R=(N,L)=>{d&&d(N,L),v(!0);},P=N=>{m&&m(N);},E=p&&(S||y)?jsxRuntime.jsx("span",{className:"mx-1",children:_e(p,()=>{},u)}):void 0;return jsxRuntime.jsxs(ce,{label:t??n,size:o,labelHidden:c,direction:r,required:i,inputId:e??n,showRequiredOnLabel:a,setHovered:h,children:[jsxRuntime.jsx(oi,{id:e,name:n,label:t,value:l,required:i,size:o,errorMessage:s,onValueChanged:P,onFocus:R,onBlur:T,...g}),E]})}function oi({helpTag:e,errorMessage:t="",infoMessage:n="",label:o,disabled:r=!1,keyboardType:i="text",title:a,name:l,value:s=!1,required:c=!1,spellCheck:u=!1,id:p,autoComplete:m="off",readonly:f=!1,autofocus:d=!1,form:g=void 0,inputRef:y,onBlur:h,onChange:S,onFocus:v,onKeyDown:T,onKeyUp:R,onValueChanged:P,size:E="m",alignment:N="l",color:L="dark",inverted:K=!1,rounded:x=!1}){let[C,D]=Le__default.default.useState(!1),O=I=>{C||D(!0),h&&h(I);},F=I=>{C||D(!0),P&&P(I.target.checked),S&&S(I);},H="is-checkradio";return H+=B(E),H+=oe(N),H+=U(L),f&&(H+=" is-static"),x&&(H+=" is-circle"),K&&(H+=" has-background-color"),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:H,id:p??l,ref:y,name:l,checked:s,spellCheck:u,autoComplete:m,required:c,title:a,readOnly:f,autoFocus:d,form:g,inputMode:i,disabled:r,onKeyDown:T,onKeyUp:R,onBlur:O,onChange:F,onFocus:I=>v&&v(I,e)}),jsxRuntime.jsx("label",{htmlFor:p??l,children:o??l}),C&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(s)}),!t&&n&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof n=="string"?n:n(s)})]})}function Ke({value:e,id:t,name:n,label:o,grouped:r=!1,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,multiple:c=!1,alignment:u="l",size:p="m",direction:m="v",options:f=[],children:d=void 0,helpTag:g,disabled:y=!1,keyboardType:h="text",title:S,spellCheck:v=!1,loading:T=!1,autoComplete:R="off",autofocus:P=!1,form:E=void 0,inputRef:N,labelHidden:L,icon:K=freeSolidSvgIcons.faCheckCircle,infoData:x,onBlur:C,onFocus:D,onChange:O,onKeyDown:F,onKeyUp:H,onValueChanged:I}){let[A,M]=Le__default.default.useState(!1),[J,W]=Le__default.default.useState(!1),Q=j=>{J||W(!0),x?setTimeout(()=>{let k=document.getElementById(t??n);document.activeElement!==k&&(M(!1),C&&C(j));},ge):(C&&C(j),M(!1));},ae=j=>{M(!0),D&&D(j,g);},se=j=>{if(J||W(!0),O&&O(j),c){let k=j.target.selectedOptions,fe=[];for(let z of k)fe.push(z.value);I&&I(fe);}else typeof e=="number"&&I?I(+j.target.value):I&&I(j.target.value);},te=Le__default.default.useCallback(j=>{if(!j.some(k=>typeof k!="string"&&typeof k!="number"))return j.map(k=>jsxRuntime.jsx(Ke.Option,{value:k,children:k},k));if(r){let k=[],fe=new Set;return j.forEach(z=>fe.add(typeof z=="string"||typeof z=="number"?"":z.group??"")),[...fe].sort().forEach(z=>{let he=[];j.forEach(X=>{typeof X=="string"||typeof X=="number"?z===""&&he.push(X):z===X.group&&he.push(X);}),k.push(jsxRuntime.jsx(Ke.OptGroup,{label:z,children:he.map(X=>{if(typeof X=="string")return jsxRuntime.jsx(Ke.Option,{value:X,children:X},X);{let{value:G,disabled:q,label:Z}=X;return jsxRuntime.jsx(Ke.Option,{value:G,disabled:q,children:Z??G},Z??G)}})},z));}),k}else return j.map(k=>{if(typeof k=="string")return jsxRuntime.jsx(Ke.Option,{value:k,children:k},k);if(typeof k=="number")return jsxRuntime.jsx(Ke.Option,{value:k,children:k},k);{let{value:fe,disabled:z,label:he}=k;return jsxRuntime.jsx(Ke.Option,{value:fe,disabled:z,children:he??fe},fe)}})},[r]),ne=l?"select is-danger":"select";ne+=B(p),ne+=oe(u),c!==!1&&(ne+=" is-multiple"),T&&(ne+=" is-loading");let ye=te(f),[be,ue,Re]=ke({icon:K,errorMessage:l,hasFocus:A,inputId:t??n,infoData:x,helpTag:g});return jsxRuntime.jsxs(ce,{inputId:t??n,label:o??n??t,direction:m,required:i,size:p,labelHidden:L,controlClassName:be,showRequiredOnLabel:a,children:[jsxRuntime.jsx("div",{className:ne,children:jsxRuntime.jsxs("select",{multiple:c!==!1,size:c===!1?void 0:c,value:e,className:ne,id:t??n,ref:N,name:n,spellCheck:v,autoComplete:R,required:i,title:S,autoFocus:P,form:E,inputMode:h,disabled:y,onFocus:ae,onBlur:Q,onKeyDown:F,onKeyUp:H,onChange:se,children:[d,ye]})}),ue,Re,J&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",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});Ke.Divider=({dividerChar:e="-",repeat:t=15})=>jsxRuntime.jsx("option",{disabled:!0,children:Array(t).join(e)});function ai(e,t,n){Le__default.default.useEffect(()=>{if(n.current&&t.current&&e>=0){e===0&&t.current.scrollTo({top:0});let o=n.current.childNodes,r=o&&o.length?o[e]:null;if(r&&r.getBoundingClientRect){let{height:i}=r.getBoundingClientRect(),{height:a}=t.current.getBoundingClientRect(),l=t.current.scrollTop,s=r.offsetTop<=l;r.offsetTop>=l&&r.offsetTop+i<=l+a||(s?t.current.scrollTo({top:r.offsetTop}):t.current.scrollTo({top:r.offsetTop-a+i}));}}},[e,n,t]);}var si=200,qn=Object.freeze({UP_ARROW:38,DOWN_ARROW:40,ENTER_KEY:13,ESCAPE_KEY:27});function Ks({value:e,options:t,id:n,name:o,label:r,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,alignment:c="l",size:u="m",direction:p="v",placeholder:m,helpTag:f,disabled:d=!1,loading:g=!1,autofocus:y=!1,labelHidden:h,icon:S=freeSolidSvgIcons.faCheckCircle,infoData:v,onValueChanged:T,onChange:R,onFocus:P,onBlur:E,onKeyDown:N,onKeyUp:L,onSearch:K=(C,D)=>C.toLowerCase().indexOf(JSON.stringify(D).toLowerCase())!==-1,formatLabel:x=C=>typeof C=="string"||typeof C=="number"||typeof C=="boolean"?`${C}`:JSON.stringify(C)}){let C=Le__default.default.useCallback(_=>_.map(pe=>x(pe)),[x]),[D,O]=Le__default.default.useState(C(t)),[F,H]=Le__default.default.useState(x(e)),[I,A]=Le__default.default.useReducer(Ws,Us),[M,J]=Le__default.default.useState(!1),[W,Q]=Le__default.default.useState(!1),[ae,se]=Le__default.default.useState(-1),[te,ne]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{O(C(t));},[t]),Le__default.default.useEffect(()=>{I.isFocused||H(x(e));let _=e?D.indexOf(x(e)):-1;A({type:"setFocusIndex",focusIndex:_}),se(_);},[e]),Le__default.default.useEffect(()=>{let pe=ye.current?.offsetParent?.getBoundingClientRect(),Ne=window.innerHeight-(pe?.top??0);Q(si>Ne&&(pe?.top??0)>Ne);},[I.isFocused]);let ye=Le__default.default.useRef(null),be=Le__default.default.useRef(null);ai(I.focusIndex,ye,be);let ue=_=>{v&&!M?setTimeout(()=>{let pe=document.getElementById(n??o);document.activeElement!==pe&&(A({type:"toggleFocus",isFocused:!1}),E&&E(_));},ge):(E&&E(_),A({type:"toggleFocus",isFocused:!1}));},Re=_=>{te||ne(!0),P&&P(_,f),A({type:"toggleFocus",isFocused:!0});},j=(_=I.focusIndex)=>{_!==-1&&H(D[_]),T&&T(t[_]);},k=()=>{D.forEach((_,pe)=>{_===t[I.focusIndex]&&A({type:"setFocusIndex",focusIndex:pe});});},fe=()=>{j(),A({type:"toggleFocus",isFocused:!1}),se(I.focusIndex),k(),O(D);},z=_=>{let pe=ye.current,Ne=I.focusIndex;switch(_.keyCode){case qn.DOWN_ARROW:{_.preventDefault(),I.isFocused?I.focusIndex>=t.length-1?(Ne=0,pe.scrollTop=0):Ne=I.focusIndex+1:A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:Ne}),ye.current=pe;break}case qn.UP_ARROW:{_.preventDefault(),I.isFocused?I.focusIndex<=0?(Ne=t.length-1,pe&&(pe.scrollTop=pe.scrollHeight)):Ne=I.focusIndex-1:A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:Ne}),ye.current=pe;break}case qn.ENTER_KEY:{_.preventDefault(),I.focusIndex>-1&&I.focusIndex<t.length&&fe();break}case qn.ESCAPE_KEY:{_.target.blur(),A({type:"toggleFocus",isFocused:!1});break}}N&&N(_);},he=_=>{if(_.length===0)O(C(t));else {let pe=t.filter(Ne=>K(_,Ne));O(C(pe));}},X=_=>{te||ne(!0),R&&R(_),H(_.target.value),he(_.target.value);},G=()=>{A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:D.indexOf(F.toString())});},q=_=>{A({type:"setFocusIndex",focusIndex:_});},Z=l?"input is-danger is-fullwidth":"input is-fullwidth";Z+=B(u),Z+=oe(c),g&&(Z+=" is-loading");let it={right:"1.5em"},[kt,Dt,Ot]=ke({icon:S,errorMessage:l,hasFocus:I.isFocused,inputId:n??o,infoData:v,helpTag:f});return jsxRuntime.jsxs(ce,{inputId:n??o,label:r??o??n,direction:p,required:i,size:u,labelHidden:h,controlClassName:kt,showRequiredOnLabel:a,children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("input",{role:"combobox",placeholder:m,value:F,className:Z,name:o,disabled:d,autoFocus:y,onChange:X,onClick:G,onKeyUp:L,onKeyDown:z,onFocus:Re,onBlur:ue}),jsxRuntime.jsx("div",{className:"bulma-box",style:{position:"absolute",width:"100%",opacity:I.isFocused?1:0,visibility:I.isFocused?"visible":"hidden",maxHeight:I.isFocused?si:0,overflowY:"auto",zIndex:5,bottom:W?"100%":void 0,top:W?void 0:"100%",marginBottom:W?"5px":void 0,marginTop:W?void 0:"5px"},ref:ye,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),children:jsxRuntime.jsx("ul",{ref:be,children:D.map((_,pe)=>{let Ne="combobox-listitem";return pe===ae&&(Ne+=" is-selected"),jsxRuntime.jsx("li",{className:Ne,onClick:()=>fe(),onMouseDown:V=>V.preventDefault(),onMouseEnter:()=>q(pe),children:_},_)})})}),Dt,jsxRuntime.jsx("span",{className:"icon is-right has-text-link",style:it,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:I.isFocused?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown})}),Ot]}),te&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}var Us={isFocused:!1,focusIndex:-1},Ws=(e,t)=>{switch(t.type){case"setFocusIndex":return {...e,focusIndex:t.focusIndex};case"toggleFocus":return {...e,isFocused:t.isFocused};default:return e}};var ci=200;function Qs({value:e,options:t,id:n,name:o,label:r,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,alignment:c="l",size:u="m",direction:p="v",placeholder:m,helpTag:f,disabled:d=!1,loading:g=!1,autofocus:y=!1,labelHidden:h,icon:S=freeSolidSvgIcons.faCheckCircle,infoData:v,onValueChanged:T,onFocus:R,onBlur:P,onKeyDown:E,onKeyUp:N,onSearch:L=(C,D)=>C.toLowerCase().indexOf(JSON.stringify(D).toLowerCase())!==-1,formatLabel:K=C=>typeof C=="string"||typeof C=="number"||typeof C=="boolean"?`${C}`:JSON.stringify(C),formatValue:x=C=>C.join(", ")}){let C=(G,q)=>{let Z=[];return G.forEach(it=>{let kt=q.findIndex(Dt=>JSON.stringify(Dt)===JSON.stringify(it));kt!==-1&&Z.push(kt);}),Z},[D,O]=Le__default.default.useState(""),[F,H]=Le__default.default.useState(!1),[I,A]=Le__default.default.useState(!1),[M,J]=Le__default.default.useState(C(e,t)),[W,Q]=Le__default.default.useState(!1),[ae,se]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{let q=te.current?.offsetParent?.getBoundingClientRect(),Z=window.innerHeight-(q?.top??0);se(ci>Z&&(q?.top??0)>Z);},[F]),Le__default.default.useEffect(()=>{J(C(e,t));},[e]);let te=Le__default.default.useRef(null),ne=Le__default.default.useRef(null),ye=G=>{v&&!W?setTimeout(()=>{let q=document.getElementById(n??o);document.activeElement!==q&&(H(!1),P&&P(G));},ge):W||(P&&P(G),H(!1));},be=G=>{let q=[];M.includes(G)?q=[...M.filter(Z=>Z!==G)]:q=[...M,G].sort(),J(q),T&&T(q.map(Z=>t[Z])),O("");},ue=G=>{F&&O(G.target.value);},Re=()=>{H(!0);},j=G=>{I||A(!0),R&&R(G,f),H(!0);},k=l?"input is-danger is-fullwidth":"input is-fullwidth";k+=B(u),k+=oe(c),g&&(k+=" is-loading");let[fe,z,he]=ke({icon:S,errorMessage:l,hasFocus:F,inputId:n??o,infoData:v,helpTag:f}),X={right:"1.5em"};return jsxRuntime.jsxs(ce,{inputId:n??o,label:r??o??n,direction:p,required:i,size:u,labelHidden:h,controlClassName:fe,showRequiredOnLabel:a,children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("input",{role:"combobox",placeholder:m,value:F?D:x(e),className:k,name:o,disabled:d,autoFocus:y,onChange:ue,onClick:Re,onKeyUp:N,onKeyDown:E,onFocus:j,onBlur:ye}),jsxRuntime.jsx("div",{className:"bulma-box",style:{position:"absolute",width:"100%",opacity:F?1:0,visibility:F?"visible":"hidden",maxHeight:F?ci:0,overflowY:"auto",zIndex:5,bottom:ae?"100%":void 0,top:ae?void 0:"100%",marginBottom:ae?"5px":void 0,marginTop:ae?void 0:"5px"},ref:te,onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:jsxRuntime.jsx("ul",{ref:ne,children:t.map((G,q)=>{let Z="combobox-listitem";return M.includes(q)&&(Z+=" is-selected"),F&&D!==""&&!L(D,G)&&(Z+=" is-hidden"),jsxRuntime.jsx("li",{className:Z,onClick:()=>be(q),onMouseDown:it=>it.preventDefault(),children:K(G)},K(G))})})}),z&&jsxRuntime.jsx("span",{className:"icon is-left",children:z}),jsxRuntime.jsx("span",{className:"icon is-right has-text-link",style:X,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:F?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown})}),he]}),I&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}function el({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:r,onRGBValueChanged:i,onHSLValueChanged:a,...l}){let s=u=>{r&&r(u),i&&i(wn(u)),a&&a(Ir(u));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(u=>{"0123456789ABCDEF".includes(u)||console.warn(`Ongeldig karakter "${u}" in hex-color '${e}'`);}),e.length===4?c=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?c=e:console.warn(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[u,p,m]=t;u<0||u>255?console.warn(`Ongeldige RGB-waarde, r = '${u}', moet tussen 0 en 255 ([${t}])`):p<0||p>255?console.warn(`Ongeldige RGB-waarde, g = '${p}', moet tussen 0 en 255 ([${t}])`):(m<0||m>255)&&console.warn(`Ongeldige RGB-waarde, b = '${m}', moet tussen 0 en 255 ([${t}])`),c=Cr([u,p,m]);}else if(n){let[u,p,m]=n;u<0||u>360?console.warn(`Ongeldige HSL-waarde, h = '${u}', moet tussen 0 en 360 ([${n}])`):p<0||p>100?console.warn(`Ongeldige HSL-waarde, s = '${p}', moet tussen 0 en 100 ([${n}])`):(m<0||m>100)&&console.warn(`Ongeldige HSL-waarde, l = '${m}', moet tussen 0 en 100 ([${n}])`),c=Pr([u,p,m]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(le,{icon:o,type:"color",value:c,onValueChanged:s,...l})})}function Fo({value:e,name:t,id:n,required:o,title:r,tooltip:i}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:r??i,required:o,type:"hidden",disabled:!0})}function _o({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:r,value:i,checked:a=!1,required:l=!1,spellCheck:s=!1,id:c,autoComplete:u="off",readonly:p=!1,autofocus:m=!1,form:f=void 0,inputRef:d,onBlur:g,onChange:y,onFocus:h,onKeyDown:S,onKeyUp:v,onValueChanged:T,size:R="m",alignment:P="l",itemsDirection:E="v",color:N="p",children:L=void 0}){let K=C=>{T&&T(i),y&&y(C);},x="is-checkradio";return x+=B(R),x+=oe(P),x+=U(N),p&&(x+=" is-static"),c||(c=r+"-"+i),jsxRuntime.jsxs("div",{style:{display:E==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:x,id:c,ref:d,name:r,checked:a,spellCheck:s,autoComplete:u,required:l,title:o,readOnly:p,autoFocus:m,form:f,inputMode:n,disabled:t,onKeyDown:S,onKeyUp:v,onBlur:g,onChange:K,onFocus:C=>h&&h(C,e)}),jsxRuntime.jsx("label",{htmlFor:c??r,children:L??r})]})}function mi({children:e=void 0,id:t,label:n,disabled:o=!1,labelHidden:r=!1,name:i,value:a,required:l=!1,showRequiredOnLabel:s=!1,size:c="m",direction:u="h",itemsDirection:p="h",alignment:m="l",errorMessage:f="",infoMessage:d=void 0,infoData:g,helpTag:y,onValueChanged:h,onBlur:S,onChange:v,onFocus:T,onKeyDown:R,onKeyUp:P}){let[E,N]=Le__default.default.useState(!1),[L,K]=Le__default.default.useState(!1),[x,C]=Le__default.default.useState(!1),D=M=>{K(!1),S&&S(M);},O=(M,J)=>{T&&T(M,J),K(!0);},F=M=>{E||N(!0),h&&h(M);},I=(M=>Le__default.default.Children.map(M,(J,W)=>{if(Le__default.default.isValidElement(J)&&J.type===di){let Q=!1;return typeof a=="string"||typeof a=="number"||typeof a=="boolean"?Q=a===J.props.value:a&&(Q=JSON.stringify(a)===JSON.stringify(J.props.value)),jsxRuntime.jsx(_o,{...J.props,disabled:o?!0:J.props.disabled,size:c,itemsDirection:p,alignment:m,direction:u,id:J.props.id??`${i}-option-${W}`,value:J.props.value,checked:Q,name:i,helpTag:J.props.helpTag??y,onValueChanged:F,onBlur:D,onKeyDown:R,onKeyUp:P,onChange:v,onFocus:O,children:J.props.children})}return J}))(e),A=Fe(g,$e(L,x))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(g,()=>{},y)}):void 0;return jsxRuntime.jsxs(ce,{labelHidden:r,label:n??i,required:l,inputId:"",direction:u,size:c,controlClassName:"control",showRequiredOnLabel:s,infoData:A,setHovered:C,children:[I,E&&f&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof f=="string"?f:f(a)}),d&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof d=="string"?d:d(a)})]})}function di({checked:e=!1,id:t,value:n,children:o,...r}){return jsxRuntime.jsx(_o,{checked:e,name:"",...r,id:t,value:n,children:o})}mi.Item=di;function ol({value:e=[],allowDuplicates:t=!1,disableRemove:n=!1,disabled:o=!1,id:r,name:i,label:a,color:l="p",direction:s="v",errorMessage:c="",infoMessage:u=void 0,showRequiredOnLabel:p=!1,icon:m=freeSolidSvgIcons.faKeyboard,labelHidden:f=!1,required:d=!1,loading:g=!1,size:y="m",alignment:h="l",autoComplete:S="off",optionListId:v=void 0,autofocus:T=!1,form:R=void 0,helpTag:P,keyboardType:E="text",maxLength:N,minLength:L,pattern:K=void 0,placeholder:x,readonly:C=!1,spellCheck:D=!1,title:O,className:F="",styles:H={},randomColors:I=void 0,maxTags:A=-1,infoData:M,onBlur:J,onFocus:W,onValueChanged:Q,onKeyDown:ae,onKeyUp:se}){let te=Le__default.default.useRef(null),[ne,ye]=Le__default.default.useState(!1),[be,ue]=Le__default.default.useState(!1),[Re,j]=Le__default.default.useState(""),[k,fe]=Le__default.default.useState(e),[z,he]=Le__default.default.useState(e.map(V=>l==="random"?So(I):l)),X=V=>{ye(!0),M?setTimeout(()=>{let at=document.getElementById(r??i);document.activeElement!==at&&(ue(!1),J&&J(V));},ge):(J&&J(V),ue(!1));},G=V=>{ye(!0),W&&W(V,P),ue(!0);},q=V=>{if(!o&&!(A>0&&k.length>=A)&&(V=V.trim(),V!=="")){if(t||!k.includes(V)){let at=[...k,V];fe(at),he([...z,l==="random"?So():l]),Q&&Q(at);}te?.current?.focus();}},Z=V=>{if(!o){if(!n){let at=k.indexOf(V),vn=k.filter(wi=>wi!==V);fe(vn),z.splice(at,1),he([...z]),Q&&Q(vn);}te?.current?.focus();}},it=V=>{o||(ye(!0),V.key==="Enter"&&Re.length>0?(V.preventDefault(),q(Re),j("")):(V.key==="Backspace"||V.key==="Delete")&&k.length>0&&Re.length===0?(V.preventDefault(),Z(k[k.length-1])):V.key==="Escape"&&(V.preventDefault(),j("")),ae&&ae(V));},kt=`tag-input ${be?"has-focus":""} ${c?"is-danger":""} ${F??""}`.trim();kt+=B(y);let Dt="transparent-input ml-1";Dt+=B(y),Dt+=oe(h);let Ot;y==="s"||y==="m"?Ot="s":y==="l"?Ot="m":y==="xl"&&(Ot="l");let[_,pe,Ne]=ke({icon:m,errorMessage:c,hasFocus:be,inputId:r??i,infoData:M,helpTag:P});return jsxRuntime.jsxs(ce,{size:y,inputId:r??i,label:a??i,direction:s,required:d,labelHidden:f,showRequiredOnLabel:p,controlClassName:_,loading:g,children:[jsxRuntime.jsxs("div",{className:kt,title:O,style:H,children:[jsxRuntime.jsx(xo,{styles:{verticalAlign:"center",marginTop:"22px"},children:k.map((V,at)=>jsxRuntime.jsx(_t,{size:Ot,light:o,onDismiss:n?void 0:vn=>{vn.preventDefault(),Z(V);},color:z[at],children:V},t?`${V}-${at}`:V))}),jsxRuntime.jsx("input",{className:Dt,name:`${i}-tags-input-name-field-IGNORE`,required:d,id:`${r??i}-tags-input-field-id-IGNORE`,value:Re,disabled:o,pattern:K,ref:te,spellCheck:D,autoComplete:S,type:"text",maxLength:typeof N=="number"?N:void 0,minLength:typeof L=="number"?L:void 0,readOnly:C,autoFocus:T,form:R,inputMode:E,placeholder:x,list:v,onKeyUp:se,onChange:V=>j(V.target.value),onKeyDown:it,onFocus:G,onBlur:X})]}),jsxRuntime.jsx(Fo,{name:i,id:r??i,value:`[${k.join(",")}]`}),pe,Ne,ne&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof c=="string"?c:c(e)}),u&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof u=="string"?u:u(e)})]})}function il({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
70
+ var or=(s=>(s.Primary="#0089b6",s.Info="#3b59ec",s.Link="2f47bc",s.Success="#519c43",s.Danger="#d91000",s.Warning="#eea720",s.Light="#f5f5f5",s.Dark="#363636",s))(or||{});function ki({ratio:e="1by1",children:t,caption:n,className:o=""}){let r=`image is-${e} ${o}`.trim();return jsxRuntime.jsxs("figure",{className:r,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}function Oi({id:e,children:t,className:n="",styles:o}){let r=`block ${n}`.trim();return jsxRuntime.jsx("div",{className:r,style:o,id:e,children:t})}function Bt({id:e,children:t,className:n="",styles:o={},itemRef:r}){return jsxRuntime.jsx("div",{className:`bulma-box ${n}`.trim(),style:o,id:e,ref:r,children:t})}var Hi=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Li=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),ao=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Ji=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),Fi=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e}),_i=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:r="",ariaRole:i="heading",className:a="",itemRef:l,...s})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":r,role:i,id:o,ref:l,...s,children:e});function ke({icon:e,errorMessage:t,hasFocus:n,infoData:o,inputId:r,helpTag:i=void 0}){let a,l,s="control",c=()=>{if(r){let u=document.getElementById(r);u&&u.focus();}};return e&&typeof e=="string"?a=jsxRuntime.jsx("span",{className:"icon is-left",children:jsxRuntime.jsx("i",{className:e,children:" "})}):e&&typeof e!="string"&&(a=jsxRuntime.jsxs("span",{className:"icon is-left",children:[" ",jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:e})]})),e&&(s+=" has-icons-left"),!n||!o?t===""?l=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):l=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes}):n&&o&&(l=_e(o,c,i)),l&&(s+=" has-icons-right",l=jsxRuntime.jsx("span",{className:"icon is-right",children:l})),[s,a,l]}function _e(e,t,n){return typeof e=="function"?jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{className:"has-text-info is-clickable",icon:freeSolidSvgIcons.faCircleInfo,onClick:()=>{e(n),t();}}):jsxRuntime.jsx(zi__default.default,{overlay:e,placement:"right",align:{offSet:[8,8]},trigger:"hover",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{className:"has-text-info is-clickable",icon:freeSolidSvgIcons.faCircleInfo})})}function Tt(e){return e==="c"?" is-centered":e==="r"?" is-right":" is-left"}function oe(e){return e==="c"?" has-text-centered":e==="r"?" has-text-right":" has-text-left"}function ar(e){return e==="c"?" is-grouped-centered":e==="r"?" is-grouped-right":" is-grouped-left"}function M(e){return e==="s"?" is-small":e==="m"?" is-normal":e==="l"?" is-medium":" is-large"}function sr(e){return e==="s"?"sm":e==="m"?"1x":e==="l"?"2x":"3x"}function so(e,t){return e==="s"?t?" is-normal":" are-small":e==="m"?t?" is-medium":" are-medium":e==="l"?t?" is-large":" are-large":t?" is-normal":" are-small"}function U(e){return e==="w"?" is-warning":e==="l"?" is-link":e==="d"?" is-danger":e==="i"?" is-info":e==="s"?" is-success":e==="p"?" is-primary":e==="dark"?" is-dark":e==="light"?" is-light":e?.startsWith("is-")?` ${e}`:" is-primary"}function Yt(e,t,n){let o="p";return e.evtColor?o=typeof e.evtColor=="function"?e.evtColor(t):e.evtColor:n?.evtColor&&(o=n.evtColor(e,t)),o==="p"?o="#0089b6":o==="i"?o="#3b59ec":o==="l"?o="2f47bc":o==="d"?o="#d91000":o==="s"?o="#519c43":o==="w"?o="#eea720":o==="dark"?o="#363636":o==="light"&&(o="#f5f5f5"),o+=t?"aa":"ff",o}function Cn(e,t,n){let o="p";return n?.today?.bgColor&&(o=n.today.bgColor(t,e)),o==="p"?o="#0089b6":o==="i"?o="#3b59ec":o==="l"?o="2f47bc":o==="d"?o="#d91000":o==="s"?o="#519c43":o==="w"?o="#eea720":o==="dark"?o="#363636":o==="light"&&(o="#f5f5f5"),o}var Pe=({children:e,title:t,style:n,itemRef:o,className:r="",color:i="dark"})=>{let a=`border-box ${r}`.trim();return a+=U(i),jsxRuntime.jsxs("div",{style:n,className:a,ref:o,children:[t&&jsxRuntime.jsx(ao,{size:5,className:"border-box-title",children:t}),jsxRuntime.jsx("div",{className:"border-box-content",children:e})]})};Pe.Primary=e=>jsxRuntime.jsx(Pe,{color:"p",...e});Pe.Link=e=>jsxRuntime.jsx(Pe,{color:"l",...e});Pe.Info=e=>jsxRuntime.jsx(Pe,{color:"i",...e});Pe.Warning=e=>jsxRuntime.jsx(Pe,{color:"w",...e});Pe.Danger=e=>jsxRuntime.jsx(Pe,{color:"d",...e});Pe.Success=e=>jsxRuntime.jsx(Pe,{color:"s",...e});Pe.Light=e=>jsxRuntime.jsx(Pe,{color:"light",...e});Pe.Dark=e=>jsxRuntime.jsx(Pe,{color:"dark",...e});function Ui({children:e,id:t,gap:n="3",multiline:o,centered:r,className:i,styles:a,itemRef:l}){let s="columns";return n==="s"?n="1":n==="m"?n="3":n==="l"?n="5":n==="xl"&&(n="7"),n!=="3"&&(s+=` is-${n} is-variable`),o&&(s+=" is-multiline"),r&&(s+=" is-centered"),i&&(s+=` ${i}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:s,style:a,id:t,ref:l,children:e})}var ie=({children:e,className:t,styles:n,id:o,itemRef:r})=>jsxRuntime.jsx("div",{className:t,id:o,ref:r,children:jsxRuntime.jsx("div",{style:n,children:e})}),St=e=>{let t="column ";return typeof e.narrow=="boolean"?t+="is-narrow":e.narrow&&(t+=`is-narrow-${e.narrow}`),t=`${t} ${e.className??""}`.trim(),jsxRuntime.jsx(ie,{...e,className:t})};St.Full=e=>jsxRuntime.jsx(ie,{...e,className:`column is-full ${e.className??""}`.trim()});St.Half=e=>jsxRuntime.jsx(ie,{...e,className:`column is-half ${e.className??""}`.trim()});St.Thirds={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-third ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-thirds ${e.className??""}`.trim()})};St.Quarters={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-quarter ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-quarters ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-three-quarters ${e.className??""}`.trim()})};St.Fifths={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-one-fifth ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-two-fifths ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-three-fifths ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(ie,{...e,className:`column is-four-fifths ${e.className??""}`.trim()})};St.Twelves={One:e=>jsxRuntime.jsx(ie,{...e,className:`column is-1 ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(ie,{...e,className:`column is-2 ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(ie,{...e,className:`column is-3 ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(ie,{...e,className:`column is-4 ${e.className??""}`.trim()}),Five:e=>jsxRuntime.jsx(ie,{...e,className:`column is-5 ${e.className??""}`.trim()}),Six:e=>jsxRuntime.jsx(ie,{...e,className:`column is-6 ${e.className??""}`.trim()}),Seven:e=>jsxRuntime.jsx(ie,{...e,className:`column is-7 ${e.className??""}`.trim()}),Eight:e=>jsxRuntime.jsx(ie,{...e,className:`column is-8 ${e.className??""}`.trim()}),Nine:e=>jsxRuntime.jsx(ie,{...e,className:`column is-9 ${e.className??""}`.trim()}),Ten:e=>jsxRuntime.jsx(ie,{...e,className:`column is-10 ${e.className??""}`.trim()}),Eleven:e=>jsxRuntime.jsx(ie,{...e,className:`column is-11 ${e.className??""}`.trim()}),Twelve:e=>jsxRuntime.jsx(ie,{...e,className:`column is-12 ${e.className??""}`.trim()})};St.displayName="Column";var lt=({className:e,children:t,styles:n,size:o="s",id:r,itemRef:i})=>{let a="container";return o==="m"?a+=" is-widescreen":o==="l"?a+=" is-fullhd":(o==="xl"||o==="fluid")&&(a+=" is-fluid"),e&&(a+=" "+e),jsxRuntime.jsx("div",{className:a,style:n,id:r,ref:i,children:t})};lt.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"s",children:t});lt.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"m",children:t});lt.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"l",children:t});lt.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(lt,{className:e,styles:n,size:"xl",children:t});function Gi({size:e="m",className:t="",styles:n,id:o,children:r,itemRef:i}){let a=`content ${M(e)} ${t}`.trim();return jsxRuntime.jsx("div",{className:a,style:n,id:o,ref:i,children:r})}function Yi({children:e,alignment:t="l",className:n,styles:o,id:r,itemRef:i}){let a="container",l="footer mt-6";return a+=oe(t),n&&(l+=` ${n}`),l=l.trim(),jsxRuntime.jsx("footer",{className:l,style:o,id:r,ref:i,children:jsxRuntime.jsx("div",{className:a,children:e})})}var Pn=({children:e,heroColorFor:t,size:n="s",itemRef:o,id:r})=>{let i="hero is-bold";i+=t?` is-${t}`:" is-primary",i+=M(n);let a=Le__default.default.Children.map(e??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],l=>l);return jsxRuntime.jsx("header",{className:i,id:r,ref:o,children:a})},lo=({children:e})=>{let[t,n]=Le__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})})]})})};lo.Button=({children:e,title:t,onClick:n})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,onClick:n,children:e});lo.Link=({children:e,title:t,to:n,target:o="_blank",rel:r="noopener"})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,href:n,target:o,rel:r,children:e});Pn.Head=lo;Pn.Body=({children:e})=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e})});var co=({children:e,narrow:t=!1})=>jsxRuntime.jsx("div",{className:"hero-foot",children:jsxRuntime.jsx("nav",{className:`tabs is-boxed ${t?"is-narrow":"is-fullwidth"} container`,children:e})});co.NavList=({children:e})=>jsxRuntime.jsx("ul",{children:e});co.NavItem=({children:e,to:t,active:n=void 0,target:o="_blank",title:r,rel:i="noopener"})=>jsxRuntime.jsx("li",{className:n?"is-active":void 0,title:r,children:jsxRuntime.jsx("a",{href:t,target:o,rel:i,className:"tab",children:e})});Pn.Foot=co;function Zi({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:r,isRounded:i,src:a}){let l=`image is-${e}`;return e==="square"&&(l=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:r,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:l,children:[jsxRuntime.jsx("img",{className:i&&e==="square"?"is-rounded":void 0,src:a,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function ji({children:e,className:t,styles:n,id:o,itemRef:r}){let i="section";return t&&(i+=` ${t}`),jsxRuntime.jsx("section",{className:i,style:n,id:o,ref:r,children:e})}var ta=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,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${i} ${a}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let o=Le__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]),r=Le__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.wrap,n,t]);return jsxRuntime.jsx("div",{className:"lbr-flex-horizontal",style:r,id:e.id,ref:e.itemRef,children:Le__default.default.Children.toArray(e.children).map((i,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:i},a))})},na=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,i=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${i}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let o=Le__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.maxHeight,n,t]);return jsxRuntime.jsx("div",{className:"lbr-flex-vertical",style:o,id:e.id,ref:e.itemRef,children:Le__default.default.Children.toArray(e.children).map((r,i)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:r},i))})},oa={Horizontal:ta,Vertical:na};function Qt({alignment:e="l",autoComplete:t="off",optionListId:n=void 0,autofocus:o=!1,disabled:r=!1,errorMessage:i="",infoMessage:a=void 0,form:l=void 0,helpTag:s,id:c,inputRef:u,keyboardType:p="text",max:m,min:f,name:d,pattern:g=void 0,placeholder:y,readonly:h=!1,required:S=!1,size:v="m",spellCheck:T=!1,step:R=1,title:P,type:I="text",value:N,className:L="",styles:X={},onBlur:E,onChange:C,onFocus:O,onKeyDown:D,onKeyUp:B,onValueChanged:z}){let x=H=>{r||(z&&z(H.target.value),C&&C(H));},A=i?"input is-danger":"input";return A+=M(v),A+=oe(e),h&&(A+=" is-static"),L&&(A+=` ${L.trim()}`),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:A,pattern:g,id:c??d,ref:u,name:d,value:N,spellCheck:T,autoComplete:t,required:S,type:I,title:P,max:m,maxLength:typeof m=="number"?m:void 0,minLength:typeof f=="number"?f:void 0,min:f,step:R,readOnly:h,autoFocus:o,form:l,inputMode:p,placeholder:y,disabled:r,style:X,list:n,onKeyDown:D,onKeyUp:B,onBlur:E,onChange:x,onFocus:H=>O&&O(H,s)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof i=="string"?i:i(N)}),a&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof a=="string"?a:a(N)})]})}function le({direction:e="v",errorMessage:t="",showRequiredOnLabel:n=!1,icon:o=freeSolidSvgIcons.faKeyboard,id:r,label:i,labelHidden:a=!1,name:l,required:s=!1,loading:c=!1,size:u="m",value:p,infoData:m,helpTag:f,optionList:d=[],onBlur:g,onFocus:y,...h}){let S=E=>{R(!0),m?setTimeout(()=>{let C=document.getElementById(r??l);document.activeElement!==C&&(I(!1),g&&g(E));},ge):(g&&g(E),I(!1));},v=E=>{I(!0),y&&y(E);},[T,R]=Le__default.default.useState(!1),[P,I]=Le__default.default.useState(!1),[N,L,X]=ke({icon:o,errorMessage:t,hasFocus:P,inputId:r??l,infoData:m,helpTag:f});return jsxRuntime.jsx(ce,{size:u,inputId:r??l,label:i??l,direction:e,required:s,labelHidden:a,showRequiredOnLabel:n,controlClassName:N,loading:c,children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Qt,{required:s,name:l,size:u,onBlur:S,id:r,value:p,onFocus:v,optionListId:d&&d.length>0?`${r??l}-option-list-id`:void 0,helpTag:f,...h,errorMessage:t}),d&&d.length>0&&jsxRuntime.jsx("datalist",{id:`${r??l}-option-list-id`,children:d.map(E=>typeof E=="string"?jsxRuntime.jsx("option",{value:E},E):jsxRuntime.jsx("option",{value:E.value,children:E.label},E.value))}),L,X]})})}function ce({children:e,controlClassName:t="control",direction:n,showRequiredOnLabel:o=!1,inputId:r,label:i,labelHidden:a=!1,required:l,size:s,loading:c=!1,infoData:u,setHovered:p=m=>{}}){let m=M(s),f=`label ${m} ${a?"is-sr-only":""}`.trim();return t=` ${t} ${m} ${c?"is-loading":""}`.trim(),n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal","data-testid":"input-container",onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),children:[jsxRuntime.jsx("div",{className:`field-label ${m} ${a?"is-sr-only":""}`,children:jsxRuntime.jsxs("label",{className:f,htmlFor:r,children:[i,o&&l&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"}),u]})}),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","data-testid":"input-container",onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),children:[jsxRuntime.jsxs("label",{className:f,htmlFor:r,children:[i,o&&l&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"}),u]}),jsxRuntime.jsx("div",{className:t,children:e})]})}var ge=333;function fp(e=2e3){let[t,n]=Le__default.default.useState(null),[o,r]=Le__default.default.useState(!1),[i,a]=Le__default.default.useState(null),l=u=>{clearTimeout(i),a(setTimeout(()=>r(!1),e)),r(u);};return {copy:u=>{"clipboard"in navigator?navigator.clipboard.writeText(u).then(()=>l(!0)).catch(p=>n(p)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{r(!1),n(null),clearTimeout(i);},error:t,copied:o}}function pr(e,t={leading:!1,delay:500}){let[n,o]=Le__default.default.useState(e),r=Le__default.default.useRef(!1),i=Le__default.default.useRef(void 0),a=Le__default.default.useRef(!1),l=()=>window.clearTimeout(i.current);return Le__default.default.useEffect(()=>{r.current&&(!a.current&&t.leading?(a.current=!0,o(e)):(l(),i.current=window.setTimeout(()=>{a.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),Le__default.default.useEffect(()=>(r.current=!0,l),[]),[n,l]}function hp(e,t={leading:!1,delay:500}){let[n,o]=Le__default.default.useState(e),r=Le__default.default.useRef(null),i=Le__default.default.useRef(!0),a=()=>window.clearTimeout(r.current??void 0);return Le__default.default.useEffect(()=>a,[]),[n,s=>{a(),i.current&&t.leading?o(s):r.current=window.setTimeout(()=>{i.current=!0,o(s);},t.delay),i.current=!1;}]}function aa(e){let t=e.toLowerCase().split("+").map(i=>i.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"],r=t.find(i=>!o.includes(i));return {...n,key:r}}function sa(e,t){let{alt:n,ctrl:o,meta:r,mod:i,shift:a,key:l}=e,{altKey:s,ctrlKey:c,metaKey:u,shiftKey:p,key:m}=t;return n!==s||i&&!c&&!u||o!==c||r!==u||a!==p?!1:!!(l&&(m.toLowerCase()===l.toLowerCase()||t.code.replace("Key","").toLowerCase()===l.toLowerCase()))}function mr(e){return t=>sa(aa(e),t)}function bp(e){return t=>{e.forEach(([n,o])=>{mr(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function la(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function vp(e){Le__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,r])=>{mr(o)(n)&&la(n)&&(n.preventDefault(),r(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function En(e){try{return JSON.parse(e)}catch(t){let n=t;throw new Error(`'deserializeJSON()' failed to deserialize the value: ${n.message}`,{...n})}}function xn(e){try{return JSON.stringify(e)}catch(t){let n=t;throw new Error(`serializeJSON() failed to serialize the value: ${n.message}`,{...n})}}function Np({key:e,initialValue:t,deserialize:n=En,serialize:o=xn}){let[r,i]=Le__default.default.useState(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?n(s):t}catch(s){return console.error(`useLocalStoredState failed to get the value: ${s.message}`),t}}),a=Le__default.default.useCallback(s=>{try{let c=s instanceof Function?s(r):s;i(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[e,o,r]),l=Le__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[e]);return [r,a,l]}function dr({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){let[r,i]=Le__default.default.useState(t!==void 0?t:n),a=l=>{i(l),o?.(l);};return e!==void 0?[e,o,!0]:[r,a,!1]}function bt(e,t){let n=t-e+1;return Array.from({length:n},(o,r)=>r+e)}var Rn="dots";function fr({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:r=1,onChange:i}){let a=Math.max(Math.trunc(e),0),[l,s]=dr({value:o,onChange:i,defaultValue:r,finalValue:r}),c=g=>{g<=0?s(1):g>a?s(a):s(g);},u=()=>c(l+1),p=()=>c(l-1),m=()=>c(1),f=()=>c(a);return {range:Le__default.default.useMemo(()=>{if(t*2+3+n*2>=a)return bt(1,a);let y=Math.max(l-t,n),h=Math.min(l+t,a-n),S=y>n+2,v=h<a-(n+1);if(!S&&v){let T=t*2+n+2;return [...bt(1,T),Rn,...bt(a-(n-1),a)]}if(S&&!v){let T=n+1+2*t;return [...bt(1,n),Rn,...bt(a-T,a)]}return [...bt(1,n),Rn,...bt(y,h),Rn,...bt(a-n+1,a)]},[a,t,l,n]),active:l,total:a,setPage:c,next:u,prev:p,first:m,last:f}}function ma(e,t){let[n,o]=Le__default.default.useState(e);return [n,i=>{o(typeof i<"u"?i:a=>a===t[0]?t[1]:t[0]);}]}function gr(e=!1){return ma(e,[!0,!1])}function Jp(e,t){let[n,o]=t?t(e):[!0,""],[r,i]=Le__default.default.useState(e??void 0),[a,l]=Le__default.default.useState(n),[s,c]=Le__default.default.useState(o),[u,p]=Le__default.default.useState(n?e:void 0);return [{value:r,lastValidValue:u,valid:a,invalidMsg:s},f=>{let[d,g]=t?t(f):[!0,""];d&&p(f),l(d),c(g),i(f);}]}function zp({key:e,initialValue:t,deserialize:n=En,serialize:o=xn}){let[r,i]=Le__default.default.useState(()=>{if(typeof window>"u")return t;try{let s=window.sessionStorage.getItem(e);return s?n(s):t}catch(s){return console.error(`useSessionStoredState failed to get the value: ${s.message}`),t}}),a=Le__default.default.useCallback(s=>{try{let c=s instanceof Function?s(r):s;i(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[e,o,r]),l=Le__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[e]);return [r,a,l]}var hr=["mousedown","touchstart"];function vt(e,t,n){let o=Le__default.default.useRef();return Le__default.default.useEffect(()=>{let r=i=>{let{target:a}=i??{};if(Array.isArray(n)){let l=a?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(a)&&a.tagName!=="HTML";n.every(c=>!!c&&!i.composedPath().includes(c))&&!l&&e();}else o.current&&!o.current.contains(a)&&e();};return (t||hr).forEach(i=>document.addEventListener(i,r)),()=>{(t||hr).forEach(i=>document.removeEventListener(i,r));}},[o,e,n,t]),o}function Tr(e,t,n){Le__default.default.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t,n]);}function Gp({duration:e=500,axis:t="y",onScrollFinish:n,offset:o=0,cancelable:r=!0,isList:i=!1}={}){let a=Le__default.default.useRef(0),l=Le__default.default.useRef(0),s=Le__default.default.useRef(!1),c=Le__default.default.useRef(null),u=Le__default.default.useRef(null),p=()=>{a.current&&cancelAnimationFrame(a.current);},m=Le__default.default.useCallback(({alignment:d="start"}={})=>{s.current=!1,a.current&&p();let g=v=>v<.5?2*v*v:-1+(4-2*v)*v,y=fa({parent:c.current,axis:t})??0,h=da({parent:c.current,target:u.current,axis:t,alignment:d,offset:o,isList:i})-(c.current?0:y);function S(){l.current===0&&(l.current=performance.now());let T=performance.now()-l.current,R=e===0?1:T/e,P=y+h*g(R);ga({parent:c.current,axis:t,distance:P}),!s.current&&R<1?a.current=requestAnimationFrame(S):(typeof n=="function"&&n(),l.current=0,a.current=0,p());}S();},[t,e,i,o,n]),f=()=>{r&&(s.current=!0);};return Tr("wheel",f,{passive:!0}),Tr("touchmove",f,{passive:!0}),Le__default.default.useEffect(()=>p,[]),{scrollableRef:c,targetRef:u,scrollIntoView:m,cancel:p}}var da=({axis:e,target:t,parent:n,alignment:o,offset:r,isList:i})=>{if(!t||!n&&typeof document>"u")return 0;let a=!!n,s=(n||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),u=p=>c[p]-s[p];if(e==="y"){let p=u("top");if(p===0)return 0;if(o==="start"){let f=p-r;return f<=c.height*(i?0:1)||!i?f:0}let m=a?s.height:window.innerHeight;if(o==="end"){let f=p+r-m+c.height;return f>=-c.height*(i?0:1)||!i?f:0}return o==="center"?p-m/2+c.height/2:0}if(e==="x"){let p=u("left");if(p===0)return 0;if(o==="start"){let f=p-r;return f<=c.width||!i?f:0}let m=a?s.width:window.innerWidth;if(o==="end"){let f=p+r-m+c.width;return f>=-c.width||!i?f:0}return o==="center"?p-m/2+c.width/2:0}return 0},fa=({axis:e,parent:t})=>{if(!t&&typeof document>"u")return 0;let n=e==="y"?"scrollTop":"scrollLeft";if(t)return t[n];let{body:o,documentElement:r}=document;return o[n]+r[n]},ga=({axis:e,parent:t,distance:n})=>{if(!t&&typeof document>"u")return;let o=e==="y"?"scrollTop":"scrollLeft";if(t)t[o]=n;else {let{body:r,documentElement:i}=document;r[o]=n,i[o]=n;}};function ya(e){return JSON.parse(e)}function Sr(e){return JSON.stringify(e)}function Yp(){function e({url:i,init:a}){return fetch(i,a).then(l=>{if(l.ok)return l.text();throw new Error(`${l.status}: ${l.statusText}`)}).then(l=>l)}function t({url:i,deserializer:a=ya}){return fetch(i).then(l=>{if(l.ok)return l.text();throw new Error(`${l.status}: ${l.statusText}`)}).then(a)}function n({url:i,body:a,headers:l={"Content-Type":"application/json"},serializer:s=Sr}){return fetch(i,{method:"POST",headers:l,body:s(a)}).then(c=>{if(c.ok)return c.text();throw new Error(`${c.status}: ${c.statusText}`)})}function o({url:i,body:a,headers:l={"Content-Type":"application/json"},serializer:s=Sr}){return fetch(i,{method:"PUT",headers:l,body:s(a)}).then(c=>{if(c.ok)return c.text();throw new Error(`${c.status}: ${c.statusText}`)})}function r({url:i}){return fetch(i,{method:"DELETE"}).then(a=>a.text()).then(a=>a)}return {ftch:e,get:t,post:n,put:o,del:r}}function Ie({color:e,size:t="m",rotation:n=0,icon:o,flip:r=void 0,animate:i=void 0}){let a=sr(t),l="icon";return l+=M(t),l+=e?U(e).replace(/^ is-/," has-text-"):"",typeof o=="string"?jsxRuntime.jsx("span",{className:l,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:l,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:a,rotation:n===0?void 0:n,flip:r,spin:i==="spin",pulse:i==="pulse"})})}function ho({icon:e,size:t="m",color:n,rotation:o=0,flip:r=void 0,animate:i=void 0,allowWrap:a=!1,children:l}){let s="icon-text";return s+=n?U(n).replace(/^ is-/," has-text-"):"",jsxRuntime.jsxs("span",{className:s,role:"icon-with-text",style:{flexWrap:a?void 0:"nowrap"},children:[jsxRuntime.jsx(Ie,{icon:e,size:t,color:n,rotation:o,flip:r,animate:i}),jsxRuntime.jsx("span",{children:l})]})}function ha({colors:e=[],icons:t,sizes:n=["s","m"]}){let o=Le__default.default.useMemo(()=>n&&n.length>=t.length?[...n]:Array(t.length).fill("s"),[n,t]),r=Le__default.default.useMemo(()=>e&&e.length>=t.length?[...e]:Array(t.length).fill("p"),[e,t]),i=u=>U(u).replace(/^ is-/," has-text-"),a=u=>{switch(u){case"s":return "fa-stack-1x";case"m":return "fa-stack-2x";case"l":return "fa-stack-3x";case"xl":return "fa-stack-4x";default:return "fa-stack-1x"}},l="icon";o[1]==="s"?l+=" is-small":o[1]==="m"?l+=" is-medium":o[1]==="l"&&(l+=" is-large");let s="fa-stack fa-layers";o[0]==="s"?s+=" fa-sm":o[0]==="m"?s+=" fa-md":o[0]==="l"?s+=" fa-lg":o[0]==="xl"&&(s+=" fa-xl");let c=Le__default.default.useMemo(()=>t.map((u,p)=>{let m=` ${a(o[p])} ${i(r[p])}`;return typeof u=="string"?jsxRuntime.jsx("i",{className:`${u} ${m}`},p):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:u,className:m},p)}),[t,r,o]);return jsxRuntime.jsx("span",{className:l,children:jsxRuntime.jsx("span",{className:s,style:{verticalAlign:"top"},children:c})})}function To({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:r=!1,hidePrev:i=!1,hideNext:a=!1,hideNumbers:l=!1,set:s=f=>{},first:c=()=>{},last:u=()=>{},prev:p=()=>{},next:m=()=>{}}){let f="pagination";return f+=M(n),jsxRuntime.jsx("div",{className:f,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})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:p,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!l&&e.map((d,g)=>d==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},d+g):d!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${d}`,onClick:()=>s(d),children:d})},d):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${d}`,onClick:()=>s(d),children:d})},d)),!a&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:m,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:u,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}var _=class e{static DEFAULT_LOCALE=locale.nl;static MAX_DATE_NUM=864e13;static MAX_DATE=new Date(e.MAX_DATE_NUM);_date;_locale;constructor(t,n){this._date=new Date(t),this._locale=n,Object.freeze(this);}numPad(t,n){return t.toString().padStart(n,"0")}valueOf(){return this._date.valueOf()}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 eraShort(){return dateFns.formatDate(this._date,"GG",{locale:this._locale})}get eraLong(){return dateFns.formatDate(this._date,"GGGG",{locale:this._locale})}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get tzOffsetShort(){return dateFns.formatDate(this._date,"x",{locale:this._locale})}get tzOffsetLong(){return dateFns.formatDate(this._date,"OOOO",{locale:this._locale})}get timezoneOffset(){let t=this.tzOffsetShort,n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return `${this.numPad(this.hour,2)}:${this.numPad(this.minute,2)}`}get timeHMS(){return `${this.numPad(this.hour,2)}:${this.numPad(this.minute,2)}:${this.numPad(this.sec,2)}`}get monthLong(){return dateFns.formatDate(this._date,"MMMM",{locale:this._locale})}get monthShort(){return dateFns.formatDate(this._date,"MMM",{locale:this._locale})}get dayLong(){return dateFns.formatDate(this._date,"EEEE",{locale:this._locale})}get dayShort(){return dateFns.formatDate(this._date,"EEEEEE",{locale:this._locale})}get dateLong(){return dateFns.formatDate(this._date,"EEEE d MMMM y",{locale:this._locale})}get dateShort(){return `${this.numPad(this.day,2)}-${this.numPad(this.month,2)}-${this.numPad(this.year,4)}`}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 e.from({...o,...t},n)}startOf(t){switch(t){case"year":return e.from({year:this.year,month:0,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return e.fromDate(new Date(this.year,n*3,1),this._locale).set({hour:0,minute:0,second:0,millisecond:0},this._locale)}case"month":return e.from({year:this.year,month:this.month,day:1,hour:0,minute:0,second:0,millisecond:0},this._locale);case"week":{let n=new Date(this.JSDate),o=n.getDate()-n.getDay()+(n.getDay()===0?-6:1);return e.fromDate(new Date(n.setDate(o)),this._locale).set({hour:0,minute:0,second:0,millisecond:0})}case"day":return e.from({year:this.year,month:this.month,day:this.day,hour:0,minute:0,second:0,millisecond:0},this._locale);case"hour":return e.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:0,second:0,millisecond:0},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.startOf()`)}}endOf(t){switch(t){case"year":return e.from({year:this.year,month:12,day:31,hour:23,minute:59,second:59,millisecond:999},this._locale);case"quarter":{let n=Math.floor(this._date.getMonth()/3);return e.fromDate(new Date(this.year,n*3+3,0),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"month":return e.from({year:this.year,month:this.month,day:this.daysInMonth,hour:23,minute:59,second:59,millisecond:999},this._locale);case"week":{let n=new Date(this.JSDate),o=this.JSDate.getDate()-(n.getDay()-1)+6;return e.fromDate(new Date(n.setDate(o)),this._locale).set({hour:23,minute:59,second:59,millisecond:999},this._locale)}case"day":return e.from({year:this.year,month:this.month,day:this.day,hour:23,minute:59,second:59,millisecond:999},this._locale);case"hour":return e.from({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:59,second:59,millisecond:999},this._locale);default:throw new Error(`${t} is not a valid period for JSDateTime.endOf()`)}}plus({years:t,months:n,weeks:o,days:r,hours:i,minutes:a,seconds:l,milliseconds:s}){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))),r&&(c=new Date(c.setDate(c.getDate()+r))),i&&(c=new Date(c.setHours(c.getHours()+i))),a&&(c=new Date(c.setMinutes(c.getMinutes()+a))),l&&(c=new Date(c.setSeconds(c.getSeconds()+l))),s&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+s))),e.fromDate(c,this._locale)}isBetween(t,n=[!1,!1]){let o=(typeof n=="boolean"?n:n?.[0])??!1,r=(typeof n=="boolean"?n:n?.[1])??!1,[i,a]=t.sort((l,s)=>l.valueOf()-s.valueOf());return i.valueOf()===a.valueOf()?this._date.valueOf()===i.valueOf():o&&r?i<=this._date&&this._date<=a:o&&!r?i<=this._date&&this._date<a:!o&&r?i<this._date&&this._date<=a:i<this._date&&this._date<a}isBefore(t,n=!1){return n?this._date.valueOf()<=t.valueOf():this._date.valueOf()<t.valueOf()}isAfter(t,n=!1){return n?this._date.valueOf()>=t.valueOf():this._date.valueOf()>t.valueOf()}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 e)return this._date.valueOf()===t.valueOf();if(t instanceof Date)return this._date.valueOf()===t.valueOf();if(typeof t=="number")return this._date.valueOf()===t;throw new Error("invalid type")}clone(){return e.fromMillis(this.valueOf(),this.locale)}static now(t=e.DEFAULT_LOCALE){return new e(new Date,t)}static epoch(t=e.DEFAULT_LOCALE){return new e(new Date(0),t)}static fromDate(t,n=e.DEFAULT_LOCALE){return new e(new Date(t),n)}static from(t,n=e.DEFAULT_LOCALE){let o=new Date,{year:r,month:i,day:a,hour:l,minute:s,second:c,millisecond:u}={year:t.year??o.getFullYear(),month:t.month!==void 0?t.month===0?1:t.month:o.getMonth()+1,day:t.day??o.getDate(),hour:t.hour??o.getHours(),minute:t.minute??o.getMinutes(),second:t.second??o.getSeconds(),millisecond:t.millisecond??o.getMilliseconds()};if(i>12||i<1)throw new RangeError(`month value should be between 1 and 12, got ${i}`);if(a>31||a<1)throw new RangeError(`day value should be between 1 and 31, got ${i}`);if(l>23||l<0)throw new RangeError(`hour value should be between 0 and 23, got ${l}`);if(s>59||s<0)throw new RangeError(`minute value should be between 0 and 59, got ${s}`);if(c>59||c<0)throw new RangeError(`second value should be between 0 and 59, got ${c}`);if(u>999||u<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${u}`);return new e(new Date(r,i-1,a,l,s,c,u),n)}static fromISO(t,n=e.DEFAULT_LOCALE){let o=new Date(Date.parse(t));return new e(new Date(o),n)}static fromUTC(t,n=e.DEFAULT_LOCALE){let o=new Date(Date.parse(t));return new e(new Date(o),n)}static fromMillis(t,n=e.DEFAULT_LOCALE){let o=typeof t=="string"?+t:t;if(isNaN(o))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(o>e.MAX_DATE_NUM||o<-e.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new e(new Date(o),n)}toFormat(t){return dateFns.formatDate(this._date,t,{locale:this._locale})}};var vr=class{_jsd1;_jsd2;constructor(t,n=_.now()){this._jsd1=t instanceof Date?_.fromDate(t):t.clone(),this._jsd2=n instanceof Date?_.fromDate(n):n.clone();}get ms(){return Math.abs(this._jsd2.valueOf()-this._jsd1.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={},r=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([a,l])=>{if(t.includes(a)){let s=0;for(;n>=r;)s++,n-=r;Object.assign(o,{[a]:s});}r/=l;}),Object.assign(o,{rest:n}),o}};function Rm(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 r=0,i=9;for(let a of o.split(""))r+=parseInt(a)*i,i=i!==2?i-1:-1;r%11===0&&n.push(o);}return [n.length>0,n]}return [!!t,[]]}function Cr([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function wn(e){e.startsWith("#")||(e=`#${e}`);let t=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e),n=t?parseInt(t[1],16):0,o=t?parseInt(t[2],16):0,r=t?parseInt(t[3],16):0,i=t?parseInt(t[4],16):0;return [n,o,r,i]}function Pr([e,t,n]){let o=n/100,r=t*Math.min(o,1-o)/100,i=a=>{let l=(a+e/30)%12,s=o-r*Math.max(Math.min(l-3,9-l,1),-1);return Math.round(255*s).toString(16).padStart(2,"0")};return `#${i(0)}${i(8)}${i(4)}`}function Ir(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e),[n,o,r]=t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0];n/=255,o/=255,r/=255;let i=Math.max(n,o,r),a=Math.min(n,o,r),l=(i+a)/2,s=l,c=l;if(i!==a){let u=i-a;return s=c>.5?u/(2-i-a):u/(i+a),n===i?l=(o-r)/u+(o<r?6:0):o===i?l=(r-n)/u+2:r===i&&(l=(n-o)/u+4),[Math.round(360*(l/6)),Math.round(s*100),Math.round(c*100)]}else return [0,0,Math.round(c*100)]}function wm([e,t,n]){let o=e/255,r=t/255,i=n/255,a=Math.max(o,r,i),l=Math.min(o,r,i),s=(a+l)/2,c=s,u=s;if(a===l)return [0,0,Math.round(u*100)];let p=a-l;switch(c=u>=.5?p/(2-(a+l)):p/(a+l),a){case o:s=((r-i)/p+0)*60;break;case r:s=((i-o)/p+2)*60;break;case i:s=((o-r)/p+4)*60;break}return [Math.round(s),Math.round(c*100),Math.round(u*100)]}function Er([e,t,n]){t/=100,n/=100;let o=a=>(a+e/30)%12,r=t*Math.min(n,1-n),i=a=>n-r*Math.max(-1,Math.min(o(a)-3,Math.min(9-o(a),1)));return [Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))]}function So(e=["p","i","l","s","d","w","light","dark"]){let t=ct(0,e.length);return e[t]}function kn(e){return typeof e=="string"&&e.startsWith("#")&&(e.length===7||e.length===9)}function xr(e){return !(!Array.isArray(e)||e.length!==3&&e.length!==4||e.some(t=>typeof t!="number")||e[0]<0||e[0]>255||e[1]<0||e[1]>255||e[2]<0||e[2]>255)}function Rr(e){return !(!Array.isArray(e)||e.length!==3&&e.length!==4||e.some(t=>typeof t!="number")||e[0]<0||e[0]>360||e[1]<0||e[1]>100||e[2]<0||e[2]>100)}function Je(e){return typeof e=="string"&&!e.startsWith("#")&&(e=`#${e}`),kn(e)?Ea(e):xr(e)?Ra(e):Rr(e)?xa(e):typeof e=="string"?"#000000":[0,0,0]}function Ea(e){let[t=255,n=255,o=255]=wn(e),r=bo(t,n,o);return isNaN(r)||r>.179?"#000000":"#ffffff"}function xa(e){let[t=255,n=255,o=255]=Er(e),r=bo(t,n,o);return isNaN(r)?[0,0,0]:r>.179?[0,0,0]:[0,0,100]}function Ra([e=255,t=255,n=255]){let o=bo(e,t,n);return isNaN(o)?[0,0,0]:o>.179?[0,0,0]:[255,255,255]}function bo(e,t,n){let r=[e/255,t/255,n/255].map(a=>a<.03928?a/12.92:Math.pow((a+.055)/1.055,2.4));return .02126*r[0]+.7152*r[1]+.0722*r[2]}function Bm(e){try{e=e.toUpperCase().replaceAll(/[^A-Z0-9]/g,"");let t=e.match(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/);if(t){let n=Na.find(o=>o.code===t[1]);if(n){if(n.IBAN.length!==e.length)throw new Error("invalid length");{let o=(t[3]+t[1]+t[2]).replace(/[A-Z]/g,i=>(i.charCodeAt(0)-55).toString()),r=+o.slice(0,2);for(let i=2;i<o.length;i+=7)r=parseInt(r+o.substring(i,i+7),10)%97;return [r===1,r===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,`*${t.message}`]}}var Na=[{land:"Albanie",code:"AL",IBAN:"AL35202111090000000001234567"},{land:"Andorra",code:"AD",IBAN:"AD1400080001001234567890"},{land:"Azerbeidjan",code:"AZ",IBAN:"AZ96AZEJ00000000001234567890"},{land:"Bahrein",code:"BH",IBAN:"BH02CITI00001077181611"},{land:"Belgie",code:"BE",IBAN:"BE71096123456769"},{land:"Bosnie en Herzegovina",code:"BA",IBAN:"BA393385804800211234"},{land:"Brazilie",code:"BR",IBAN:"BR1500000000000010932840814P2"},{land:"Bulgarije",code:"BG",IBAN:"BG18RZBB91550123456789"},{land:"Costa Rica",code:"CR",IBAN:"CR23015108410026012345"},{land:"Croatie",code:"HR",IBAN:"HR1723600001101234565"},{land:"Cyprus",code:"CY",IBAN:"CY21002001950000357001234567"},{land:"Denemarken",code:"DK",IBAN:"DK9520000123456789"},{land:"Dominicaanse Republiek",code:"DO",IBAN:"DO22ACAU00000000000123456789"},{land:"Duitsland",code:"DE",IBAN:"DE91100000000123456789"},{land:"Egypte",code:"EG",IBAN:"EG800002000156789012345180002"},{land:"El Salvador",code:"SV",IBAN:"SV43ACAT00000000000000123123"},{land:"Estland",code:"EE",IBAN:"EE471000001020145685"},{land:"Faroe Eilanden",code:"FO",IBAN:"FO9264600123456789"},{land:"Finland",code:"FI",IBAN:"FI1410093000123458"},{land:"Frankrijk",code:"FR",IBAN:"FR7630006000011234567890189"},{land:"Georgie",code:"GE",IBAN:"GE60NB0000000123456789"},{land:"Gibraltar",code:"GI",IBAN:"GI04BARC000001234567890"},{land:"Griekenland",code:"GR",IBAN:"GR9608100010000001234567890"},{land:"Groenland",code:"GL",IBAN:"GL8964710123456789"},{land:"Guatemala",code:"GT",IBAN:"GT20AGRO00000000001234567890"},{land:"Hongarije",code:"HU",IBAN:"HU93116000060000000012345676"},{land:"Ierland",code:"IE",IBAN:"IE64IRCE92050112345678"},{land:"IJsland",code:"IS",IBAN:"IS030001121234561234567890"},{land:"Irak",code:"IQ",IBAN:"IQ20CBIQ861800101010500"},{land:"Israel",code:"IL",IBAN:"IL170108000000012612345"},{land:"Italie",code:"IT",IBAN:"IT60X0542811101000000123456"},{land:"Jordanie",code:"JO",IBAN:"JO71CBJO0000000000001234567890"},{land:"Kazakhstan",code:"KZ",IBAN:"KZ563190000012344567"},{land:"Kosovo",code:"XK",IBAN:"XK051212012345678906"},{land:"Kuweit",code:"KW",IBAN:"KW81CBKU0000000000001234560101"},{land:"Letland",code:"LV",IBAN:"LV97HABA0012345678910"},{land:"Libanon",code:"LB",IBAN:"LB92000700000000123123456123"},{land:"Liechtenstein",code:"LI",IBAN:"LI7408806123456789012"},{land:"Litouwen",code:"LT",IBAN:"LT601010012345678901"},{land:"Luxemburg",code:"LU",IBAN:"LU120010001234567891"},{land:"Britse Maagdeneilanden",code:"VG",IBAN:"VG21PACG0000000123456789"},{land:"Macedonie",code:"MK",IBAN:"MK07200002785123453"},{land:"Malta",code:"MT",IBAN:"MT31MALT01100000000000000000123"},{land:"Mauritanie",code:"MR",IBAN:"MR1300020001010000123456753"},{land:"Mauritius",code:"MU",IBAN:"MU43BOMM0101123456789101000MUR"},{land:"Moldavie",code:"MD",IBAN:"MD21EX000000000001234567"},{land:"Monaco",code:"MC",IBAN:"MC5810096180790123456789085"},{land:"Montenegro",code:"ME",IBAN:"ME25505000012345678951"},{land:"Nederland",code:"NL",IBAN:"NL02ABNA0123456789"},{land:"Noorwegen",code:"NO",IBAN:"NO8330001234567"},{land:"Oostenrijk",code:"AT",IBAN:"AT483200000012345864"},{land:"Pakistan",code:"PK",IBAN:"PK36SCBL0000001123456702"},{land:"Palestina",code:"PS",IBAN:"PS92PALS000000000400123456702"},{land:"Polen",code:"PL",IBAN:"PL10105000997603123456789123"},{land:"Portugal",code:"PT",IBAN:"PT50002700000001234567833"},{land:"Qatar",code:"QA",IBAN:"QA54QNBA000000000000693123456"},{land:"Roemenie",code:"RO",IBAN:"RO09BCYP0000001234567890"},{land:"Saint Lucia",code:"LC",IBAN:"LC14BOSL123456789012345678901234"},{land:"San Marino",code:"SM",IBAN:"SM76P0854009812123456789123"},{land:"Sao Tome en Principe",code:"ST",IBAN:"ST23000200000289355710148"},{land:"Saudi Arabie",code:"SA",IBAN:"SA4420000001234567891234"},{land:"Servie",code:"RS",IBAN:"RS35105008123123123173"},{land:"Seychellen",code:"SC",IBAN:"SC52BAHL01031234567890123456USD"},{land:"Slovenie",code:"SI",IBAN:"SI56192001234567892"},{land:"Slowakije",code:"SK",IBAN:"SK8975000000000012345671"},{land:"Spanje",code:"ES",IBAN:"ES7921000813610123456789"},{land:"Timor-Leste",code:"TL",IBAN:"TL380010012345678910106"},{land:"Tjechie",code:"CZ",IBAN:"CZ5508000000001234567899"},{land:"Tunesie",code:"TN",IBAN:"TN5904018104004942712345"},{land:"Turkije",code:"TR",IBAN:"TR320010009999901234567890"},{land:"Oekraine",code:"UA",IBAN:"UA903052992990004149123456789"},{land:"Verenigd Koninkrijk",code:"GB",IBAN:"GB98MIDL07009312345678"},{land:"Verenigde Arabische Emiraten",code:"AE",IBAN:"AE460090000000123456789"},{land:"Wit Rusland",code:"BY",IBAN:"BY86AKBB10100000002966000000"},{land:"Zweden",code:"SE",IBAN:"SE7280000810340009783242"},{land:"Zwitserland",code:"CH",IBAN:"CH5604835012345678009"}];function ct(e,t,n=!0){return Math.floor(Math.random()*(t-e+(n?1:-1)))+e+(n?0:1)}function Hm(e,t){return Math.random()*(t-e)+e}function Lm(e,t=2){if(t<1)return Math.round(e);let n=Math.pow(10,t);return Math.round(n*e)/n}var _m=(e=!1,t=!1)=>e===t?0:e?-1:1,$m=(e=_.fromMillis(_.MAX_DATE_NUM),t=_.fromMillis(_.MAX_DATE_NUM))=>e.valueOf()-t.valueOf(),Xm=(e="",t="")=>e<t?-1:e===t?0:1,Nr=(e=1/0,t=1/0)=>e<t?-1:e===t?0:1;var Fe=(e,t,...n)=>{let o=!!e&&!!t;return !n||n.length===0?o:o?Fe(o,n[0],...n.slice(1)):!1},Vm=(e,t,...n)=>!Fe(e,t,...n),$e=(e,t,...n)=>{let o=!!e||!!t;return !n||n.length===0?o:o?!0:$e(o,n[0],...n.slice(1))},Km=(e,t,...n)=>!$e(e,t,...n),Aa=(e,t,...n)=>{if(!n||n.length===0){let o=Fe(!!e,Ar(!!t)),r=Fe(!!t,Ar(!!e));return $e(o,r)}else return [e,t,...n].filter(Boolean).length===1},Um=(e,t,...n)=>!Aa(e,t,...n),Ar=e=>!e;function Wm(e,t,n){return n?e?t:n:e||t}function Gm({value:e,cases:t=[],defaultCase:n=void 0,compare:o=void 0}){t.find(([r])=>r===null)||(t=[...t,[null,n??null]]);for(let[r,i]of t){if(o&&o(e,r))return i;if(r===e)return i;if(typeof r=="number"&&isNaN(r)&&typeof e=="number"&&isNaN(e))return i;if(r===null&&e===null)return i;if(r===void 0&&e===void 0)return i}return t.find(([r])=>r===null)[1]}function Ym(e,t,n){let o={filler:" ",truncate:!1,...n};return (typeof e=="string"?e:e.toString()).padStart(t,o.fillChar).substring(0,o.truncate?t:void 0)}function Zm(e,t,n){let o={filler:" ",truncate:!1,...n};return (typeof e=="string"?e:e.toString()).padEnd(t,o.fillChar).substring(0,o.truncate?t:void 0)}function Qm(e,t,n){let o={fillChar:" ",truncate:!1,startSide:"l",...n},r=o.startSide==="l"||o.startSide==="left",i=typeof e=="string"?e:e.toString();for(;i.length<t;)i=r?`${o.fillChar}${i}`:`${i}${o.fillChar}`,i.length<t&&(i=r?`${i}${o.fillChar}`:`${o.fillChar}${i}`);return o.truncate?i.substring(0,t):i}function jm(e,t,n,o){let{formatCount:r=p=>p.toString(),suffix:i="",prefix:a="",onUndefined:l="geen",zeroIsMv:s=!0}={...o};e==null?e=NaN:Array.isArray(e)?e=e.length:typeof e=="string"&&(e=parseInt(e));let c=isNaN(e)?l:r(e),u=e===1;return s&&e===0?u=!1:!s&&e===0&&(u=!0),`${a}${(u?t:n).replaceAll("#",c)}${i}`.trim()}function Ma({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,narrow:r=!1,hoverable:i=!1,sticky:a="none",hidePagination:l=!1,hideSearch:s=!1,headerContent:c=void 0,footerContent:u=void 0,size:p="s",maxRows:m=20,searchPlaceholder:f="Zoek ...",rowIdentifier:d,onSearch:g=(P,I)=>I.filter(N=>JSON.stringify(N).toLowerCase().includes(P.toLowerCase())),onRowSelected:y,rowClass:h,renderWhenNoData:S=P=>P?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:v=(P,I,N)=>` ${P} van ${I}`,id:T,itemRef:R}){let P=t.sort((A,H)=>Nr(A.order??0,H.order??0)),[I,N]=Le__default.default.useState(()=>n||P.findIndex(A=>A.sort!==void 0)+1),[L,X]=Le__default.default.useState(""),[E]=pr(L,{delay:200}),C=[...E===""?e:g(E,e)];C.sort(P[Math.abs(I)-1]?.sort??(()=>0)),I<0&&C.reverse();let O=m===0?C.length:m,D=fr({total:Math.ceil(C.length/O)}),B=C.slice(((D.active??1)-1)*O,(D.active??1)*O),z="table is-striped";o&&(z+=" is-narrow"),r||(z+=" is-fullwidth"),i&&(z+=" is-hoverable"),a!=="none"&&(z+=" is-sticky");let x=T??ct(0,999999999999).toString();return D.active>D.total&&D.total>0&&D.setPage(D.total),jsxRuntime.jsxs("table",{className:z,id:x,ref:R,children:[jsxRuntime.jsx(La,{sticky:a,cols:P,size:p,searchValue:L,filterCount:C.length,dataCount:e.length,hideSearch:s,onSearchValueChanged:X,searchPlaceholder:f,infoMessage:v,sortColNum:I,onSortIndexChanged:N,tableID:x,children:c}),B.length>0&&jsxRuntime.jsx(Ha,{rows:B,rowIdentifier:d,cols:P,onRowSelected:y,rowClass:h}),B.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{role:"no-rows-to-show-row",children:jsxRuntime.jsx("td",{colSpan:P.length,children:S(L!=="")})})}),jsxRuntime.jsx(Ja,{size:p,cols:P,pagination:D,hidePagination:O===0?!0:l,children:u})]})}function Ha({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:r=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(i=>{let a=typeof o=="function"?o(i):o,l=typeof n=="function"?n(i):i[n];return jsxRuntime.jsx("tr",{role:"row",className:a,onClick:s=>r(i,s),children:t.map((s,c)=>{if(s.hidden)return null;let u;typeof s.cellIdentifier=="function"?u=s.cellIdentifier(i):s.cellIdentifier?u=i[s.cellIdentifier]:u=`${l}-${c}`;let p=typeof s.columnClass=="function"?s.columnClass(i):s.columnClass;return p+=oe(s.alignment??"l"),jsxRuntime.jsx("td",{className:p,children:typeof s.value=="function"?s.value(i):i[s.value]},u)})},l)})})}function La({children:e=void 0,searchValue:t,filterCount:n,dataCount:o,searchPlaceholder:r,cols:i,size:a,sortColNum:l,hideSearch:s,sticky:c,tableID:u,onSortIndexChanged:p,onSearchValueChanged:m,infoMessage:f}){let d=(h,S)=>{let v=S+1,T=i[S];T&&T.sort&&(Math.abs(l)===v?p(l*-1):l!==v&&p(v));},g=s?i.length:Math.ceil(i.filter(h=>!h.hidden).length/2),y=s?0:i.length-g;return jsxRuntime.jsxs("thead",{className:c==="all"?"is-sticky-head":void 0,children:[jsxRuntime.jsxs("tr",{role:"header-row",children:[jsxRuntime.jsx("th",{colSpan:g,children:e}),!s&&jsxRuntime.jsx("th",{colSpan:y,children:jsxRuntime.jsxs("div",{title:r,className:"control has-icons-left",children:[jsxRuntime.jsx(Qt,{size:a,type:"text",name:`lbr-datatable-search-${u}`,id:`lbr-datatable-search-${u}`,optionListId:`lbr-datatable-datalist-${u}`,placeholder:r,value:t,onValueChanged:m,infoMessage:f(n,o,t)}),jsxRuntime.jsx("span",{className:"icon is-small is-left",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSearch})})]})})]}),jsxRuntime.jsx("tr",{role:"header-row",className:c==="header"?"is-sticky-row":void 0,children:i.map((h,S)=>{if(h.hidden)return null;let v=h.sort!==void 0,T=Math.abs(l)-1===S,R;h.header||h.header===""?R=h.header:typeof h.value!="string"?R=h.value.toString():R=h.value;let P=oe(h.alignment??"l"),I=freeSolidSvgIcons.faSort;return T&&l>0?I=freeSolidSvgIcons.faSortUp:T&&l<0&&(I=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{role:"sort-col",style:{cursor:v?"pointer":void 0},className:P,onClick:N=>d(N,S),children:[v&&jsxRuntime.jsx(ho,{icon:I,children:R}),!v&&jsxRuntime.jsx("span",{children:R})]},S)})})]})}function Ja({size:e,children:t=void 0,hidePagination:n,cols:o,pagination:r}){return jsxRuntime.jsxs("tfoot",{children:[!n&&r.range.length>1&&jsxRuntime.jsx("tr",{role:"footer-row",children:jsxRuntime.jsx("td",{colSpan:o.filter(i=>!i.hidden).length,children:jsxRuntime.jsx(To,{size:e,range:r.range,currentPage:r.active,next:r.next,prev:r.prev,first:r.first,last:r.last,set:r.setPage})})}),t]})}var Oe=({color:e="i",className:t="",children:n})=>{let o="help";return o+=U(e),o=`${o} ${t}`.trim(),jsxRuntime.jsx("p",{className:o,children:n})};Oe.Info=e=>jsxRuntime.jsx(Oe,{color:"i",...e});Oe.Link=e=>jsxRuntime.jsx(Oe,{color:"l",...e});Oe.Primary=e=>jsxRuntime.jsx(Oe,{color:"p",...e});Oe.Danger=e=>jsxRuntime.jsx(Oe,{color:"d",...e});Oe.Success=e=>jsxRuntime.jsx(Oe,{color:"s",...e});Oe.Warning=e=>jsxRuntime.jsx(Oe,{color:"w",...e});function Fa({position:e="tr",color:t="l",title:n,children:o}){let r="badge";return r+=U(t),e==="tr"||e==="top-right"?r+=" is-top-right":e==="tl"||e==="top-left"?r+=" is-top-left":e==="tc"||e==="top-center"?r+=" is-top-center":e==="bl"||e==="bottom-left"?r+=" is-bottom-left":e==="br"||e==="bottom-right"?r+=" is-bottom-right":e==="bc"||e==="bottom-center"?r+=" is-bottom-center":e==="lc"||e==="left-center"?r+=" is-left-center":(e==="rc"||e==="right-center")&&(r+=" is-right-center"),jsxRuntime.jsx("span",{className:r,title:n,children:o})}function vo({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function Xa({keys:e,separator:t,className:n=""}){let o=e.map((r,i)=>i===e.length-1?jsxRuntime.jsx(vo,{children:r},r):jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(vo,{children:r}),jsxRuntime.jsx("span",{children:t??"+"})]},r));return jsxRuntime.jsx("span",{className:n,children:o})}var je=({initialItem:e,children:t,className:n,style:o,onMenuItemClicked:r,itemRef:i})=>{let[a,l]=Le__default.default.useState(e??""),s=p=>{r(p),l(p);},c=Le__default.default.Children.map(t,p=>p.type===je.Item?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(Co,{...p.props,activeItem:a,onInternClick:s})}):p.type===je.ItemGroup?jsxRuntime.jsx(Ua,{...p.props,activeItem:a,onInternClick:s}):jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(kr,{...p.props,activeItem:a,onInternClick:s})})),u=`menu ${n}`.trim();return jsxRuntime.jsx("aside",{className:u,role:"menu",style:o,ref:i,children:c})};function Ua({label:e,children:t,activeItem:n,onInternClick:o}){return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e}),jsxRuntime.jsx("ul",{className:"menu-list",children:Le__default.default.Children.map(t,r=>r.type===je.Item?jsxRuntime.jsx(Co,{...r.props,activeItem:n,onInternClick:o}):r.type===je.ExpandableItem?jsxRuntime.jsx(kr,{...r.props,activeItem:n,onInternClick:o}):r)})]})}function kr({label:e,onClick:t,onInternClick:n,children:o,startExpanded:r,activeItem:i}){let[a,l]=Le__default.default.useState(r??!1),s=u=>{t&&t(e,u),l(!a);},c=Le__default.default.Children.map(o,u=>u.type===je.Item?jsxRuntime.jsx(Co,{...u.props,activeItem:i,onInternClick:n}):u);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:s,children:[jsxRuntime.jsx(Ie,{color:"i",size:"s",icon:a?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e]})]}),a&&jsxRuntime.jsx("ul",{children:c})]})}function Co({name:e,activeItem:t,children:n,onInternClick:o,onClick:r}){let i=l=>{r&&r(a,l),o(a);},a=e??Le__default.default.Children.toArray(n).filter(l=>typeof l=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:i,id:a,children:jsxRuntime.jsx("span",{className:t===a?"menu-list-item is-active":"menu-list-item",children:n})})}je.Item=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]});je.ItemGroup=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]});je.ExpandableItem=e=>jsxRuntime.jsx("div",{children:e.children});je.Label=({children:e})=>jsxRuntime.jsx("p",{className:"menu-label",children:e});var Be=({id:e,children:t,title:n=void 0,size:o="m",color:r="i",icon:i=void 0,collapsable:a=!1,startCollapsed:l=!1,itemRef:s,onDismiss:c})=>{let[u,p]=gr(!l),m="message";m+=M(o),m+=U(r);let f;i===void 0&&r==="w"?f=freeSolidSvgIcons.faExclamation:i===void 0&&r==="d"?f=freeSolidSvgIcons.faExclamationTriangle:i===void 0&&r==="s"?f=freeSolidSvgIcons.faCheck:i===void 0?f=freeSolidSvgIcons.faInfo:f=i;let d=$e(n,c,a);return jsxRuntime.jsxs("article",{className:m,id:e,ref:s,children:[d&&jsxRuntime.jsxs("div",{className:"message-header","data-testid":"message-header",onClick:()=>a&&p(),style:{cursor:a?"pointer":"default"},children:[jsxRuntime.jsxs("p",{children:[a&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("span",{className:"icon mr-1",children:[u&&jsxRuntime.jsx(Ie,{icon:freeSolidSvgIcons.faChevronCircleUp}),!u&&jsxRuntime.jsx(Ie,{icon:freeSolidSvgIcons.faChevronCircleDown})]})}),jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(Ie,{icon:f})}),n]}),c&&jsxRuntime.jsx("button",{className:"delete",onClick:c})]}),!a&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t}),a&&u&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t})]})};Be.Primary=e=>jsxRuntime.jsx(Be,{...e,color:"p"});Be.Success=e=>jsxRuntime.jsx(Be,{...e,color:"s"});Be.Danger=e=>jsxRuntime.jsx(Be,{...e,color:"d"});Be.Warning=e=>jsxRuntime.jsx(Be,{...e,color:"w"});Be.Info=e=>jsxRuntime.jsx(Be,{...e,color:"i"});Be.Link=e=>jsxRuntime.jsx(Be,{...e,color:"l"});var Lt=({id:e,size:t="m",children:n,onOpened:o,onDismiss:r,helpTag:i,disableOutsideClickDismiss:a=!1})=>{Le__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),o&&o(i),()=>document.documentElement.classList.remove("is-clipped")),[i,o]);let l=Le__default.default.useMemo(()=>{let u="800px";return t==="s"?u="600px":t==="m"?u="800px":t==="l"?u="1000px":t==="xl"?u="1200px":t==="max"?u="95%":typeof t=="string"&&(u=t),u},[t]),s=Le__default.default.Children.map(n,u=>u?u.type===Lt.Head?jsxRuntime.jsx(Dr,{...u.props}):u.type===Lt.Body?jsxRuntime.jsx(Po,{...u.props}):u.type===Lt.Foot?jsxRuntime.jsx(Or,{...u.props}):jsxRuntime.jsx(Po,{children:u}):null)?.sort((u,p)=>u.type.name==="InternHead"?-1:u.type.name==="InternBody"&&p.type.name==="InternHead"?1:u.type.name==="InternBody"&&p.type.name==="InternFoot"?-1:u.type.name==="InternFoot"?1:0),c=vt(()=>!a&&r&&r());return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",id:e,children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content modal-container bulma-box",style:{width:l},ref:c,children:s}),r&&jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:r})]})})},Dr=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",id:e,children:t}),Po=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",id:e,children:t}),Or=({id:e,children:t})=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",id:e,children:t});Lt.Head=Dr;Lt.Body=Po;Lt.Foot=Or;var we=({children:e,onDismiss:t,onClick:n,autoDismissAfter:o=-1,color:r="i",icon:i=void 0,id:a,itemRef:l})=>{let[s]=Le__default.default.useState(o>0?setTimeout(()=>c(null),o):null);Le__default.default.useEffect(()=>()=>s?clearTimeout(s):void 0,[s]);let c=m=>{s&&clearTimeout(s),t(m);},u=m=>{n?n(m):c(m);},p="notification";return p+=U(r),jsxRuntime.jsxs("article",{className:p,onClick:u,id:a,ref:l,children:[jsxRuntime.jsx("button",{className:"delete",onClick:c}),i&&jsxRuntime.jsx("span",{className:"icon is-medium",children:jsxRuntime.jsx(Ie,{icon:i})}),e]})};we.Primary=e=>jsxRuntime.jsx(we,{...e,color:"p"});we.Danger=e=>jsxRuntime.jsx(we,{...e,color:"d"});we.Warning=e=>jsxRuntime.jsx(we,{...e,color:"w"});we.Success=e=>jsxRuntime.jsx(we,{...e,color:"s"});we.Link=e=>jsxRuntime.jsx(we,{...e,color:"l"});we.Info=e=>jsxRuntime.jsx(we,{...e,color:"i"});function ns({color:e="i",size:t="m",prefix:n="",suffix:o="",max:r=100,value:i,title:a}){let l="progress";l+=M(t),l+=U(e);let s=i&&i!=="indeterminate"?`${n} ${i} ${o}`.trim():void 0,c=a?typeof a=="function"?a(i):a:s;return jsxRuntime.jsx("progress",{className:l,value:i==="indeterminate"?void 0:i,max:r,title:c,role:"progress",children:s})}function rs({rowIdentifier:e,columns:t,data:n,onRowSelected:o,tableRef:r,containerRef:i,id:a,hasFooter:l,...s}){let c=m=>m&&typeof m[0]=="string"?m.map(d=>({header:d,value:d})):m?m.map(d=>(!d.header&&d.header!==""&&typeof d.value=="string"&&(d.header=d.value),d)):Object.keys(n[0]).map(f=>({header:f,value:f})),u=(m,f)=>{o&&o(m,f);},p=c(t);return jsxRuntime.jsxs(re,{tableRef:r,containerRef:i,...s,children:[jsxRuntime.jsx(as,{columns:p}),jsxRuntime.jsx(is,{columns:p,data:n,rowIdentifier:e,onRowSelected:(m,f)=>u(m,f)}),l&&jsxRuntime.jsx(ss,{columns:p})]})}function is({columns:e,data:t,rowIdentifier:n,onRowSelected:o}){return jsxRuntime.jsx(re.Body,{children:t.map(r=>jsxRuntime.jsx(re.Row,{onClick:i=>o(r,i.currentTarget),children:e.map((i,a)=>jsxRuntime.jsx(re.Cell,{children:typeof i.value=="function"?i.value(r):r[n]},a))},typeof n=="function"?n(r):r[n]))})}function as({columns:e}){return jsxRuntime.jsx(re.Head,{children:jsxRuntime.jsx(re.Row,{children:e.map(t=>jsxRuntime.jsx(re.TH,{children:t.header},t.header))})})}function ss({columns:e}){return jsxRuntime.jsx(re.Foot,{children:jsxRuntime.jsx(re.Row,{children:e.map(t=>jsxRuntime.jsx(re.TH,{children:t.header},t.header))})})}var re=({id:e,containerRef:t,tableRef:n,scrollX:o=!1,striped:r=!1,bordered:i=!1,hoverable:a=!1,fullwidth:l=!1,narrow:s=!1,children:c,className:u=""})=>{let p="table";return r&&(p+=" is-striped"),i&&(p+=" is-bordered"),a&&(p+=" is-hoverable"),l&&(p+=" is-fullwidth"),s&&(p+=" is-narrow"),u&&(p+=` ${u}`),jsxRuntime.jsx("div",{ref:t,className:o?"table-container":void 0,children:jsxRuntime.jsx("table",{className:p,ref:n,id:e,children:c})})};re.Head=({children:e,className:t,...n})=>jsxRuntime.jsx("thead",{className:t,...n,children:e});re.Foot=({children:e,className:t,...n})=>jsxRuntime.jsx("tfoot",{className:t,...n,children:e});re.Body=({children:e,className:t,...n})=>jsxRuntime.jsx("tbody",{className:t,...n,children:e});re.Row=({children:e,className:t,...n})=>jsxRuntime.jsx("tr",{className:t,...n,children:e});re.Cell=({children:e,className:t,...n})=>jsxRuntime.jsx("td",{className:t,...n,children:e});re.HCell=({children:e,className:t,...n})=>jsxRuntime.jsx("th",{className:t,...n,children:e});re.ColGroup=({className:e,...t})=>jsxRuntime.jsx("colgroup",{className:e,...t});re.Col=e=>jsxRuntime.jsx("col",{...e});re.TR=re.Row;re.TD=re.Cell;re.TH=re.HCell;var Io=({size:e="m",id:t,itemRef:n,className:o,activeStepIndex:r,onChangeStep:i,children:a,freeStepChoice:l,stepChoice:s})=>{let[c,u]=Le__default.default.useState(r??0),p=d=>{i&&i(d),u(d);};Le__default.default.useEffect(()=>{u(r??0);},[r]);let m="steps is-animated";m+=M(e),m+=` ${o}`;let f=s??l??"neighbours";return jsxRuntime.jsx("div",{className:m,id:t,ref:n,children:Le__default.default.Children.map(a,(d,g)=>{if(d.type&&d.type===Io.Item){let y=!0;return f==="allowed"||f==="down"&&g<c||f==="up"&&g>c?y=!1:f==="neighbours"?y=g!==c+1&&g!==c-1:y=!0,jsxRuntime.jsx(cs,{...d.props,activeStep:c,stepKey:g,disabled:y,onClick:p},d.props.title)}else return d})})};Io.Item=e=>jsxRuntime.jsx(Le__default.default.Fragment,{children:e.title});function cs({disabled:e,stepKey:t,activeStep:n,status:o,marker:r,title:i,children:a,details:l,onClick:s}){let c=()=>{e||t===n||(s(t),p("active"));},[u,p]=Le__default.default.useState(o??"pending");Le__default.default.useEffect(function(){let g="pending";o==="error"?g="error":o==="completed"||n>t?g="completed":t===n&&(g="active"),p(g);},[o,t,n]);let m="step-item";n===t?m+=" is-active is-info":u==="error"?m+=" is-error is-danger":u==="completed"?m+=" is-completed is-success":m+=" is-pending";let f;return r?typeof r=="function"?f=r(u):f=r:f=jsxRuntime.jsx(Le__default.default.Fragment,{children:t+1}),jsxRuntime.jsxs("div",{className:m,onClick:c,title:i,children:[jsxRuntime.jsx("div",{className:"step-marker",children:f}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:a}),l&&jsxRuntime.jsx("p",{children:l})]})]})}var Hr=({id:e,activeTab:t,initialTab:n,size:o,alignment:r,fullwidth:i,children:a,onTabChange:l})=>{let[s,c]=Le__default.default.useState(t??n),u=(f,d)=>{d||(c(f),l(f));};Le__default.default.useEffect(()=>{t!==void 0&&c(s);},[s,t]);let p="tabs is-boxed";p+=M(o??"m"),p+=Tt(r??"l"),i&&(p+=" is-fullwidth");let m=Le__default.default.Children.map(a,(f,d)=>!f||f===""?null:jsxRuntime.jsx(us,{isActive:s?s===f?.props?.tabId:d===0,disabled:f?.props?.disabled??!1,onClick:()=>u(f?.props?.tabId,f?.props?.disabled),children:f}));return jsxRuntime.jsx("div",{className:p,id:e,children:jsxRuntime.jsx("ul",{children:m})})};function us({children:e,isActive:t,disabled:n=!1,onClick:o}){let r="";return t&&(r+="is-active"),n&&(r+=" is-disabled"),jsxRuntime.jsx("li",{role:"tab",className:r,onClick:o,children:e})}function ps({children:e,tabId:t,title:n,disabled:o=!1}){let r=Le__default.default.Children.map(e,i=>!i||i===""?null:i);return jsxRuntime.jsx("span",{title:n,id:t?.toString()||void 0,className:"tab",children:r})}Hr.Item=ps;function _t({children:e,color:t="l",size:n="s",light:o=!1,title:r,onDismiss:i}){let a={},l=p=>{a.backgroundColor=p,a.color=Je(p);},s=p=>{p.preventDefault(),i&&i(p);},c="tag is-rounded";c+=so(n,!0),kn(t)?l(t):c+=U(t),o&&(c+=" is-light");let u=null;if(i){let p="delete";n==="s"||n==="m"?p+=" is-small":n==="l"&&(p+=" is-normal"),u=jsxRuntime.jsx("button",{className:p,onClick:s,type:"button"});}return jsxRuntime.jsxs("span",{className:c,title:r,style:a,children:[e,u]})}function xo({children:e,merged:t=!1,size:n="s",alignment:o="l",className:r="",styles:i={},itemRef:a,id:l=void 0}){let s="tags";s+=so(n,!1),s+=Tt(o),t&&(s+=" has-addons"),s=`${s} ${r}`.trim();let c=Le__default.default.Children.map(e,u=>u&&u.type===_t&&!u.props.size?jsxRuntime.jsx(_t,{size:n,...u.props}):u);return jsxRuntime.jsx("div",{className:s,style:i,ref:a,id:l,children:c})}var Ro=({id:e,alignment:t="l",children:n,className:o})=>{let r="timeline";return t==="l"?r+=" is-ltr":t==="c"?r+=" is-centered":t==="r"&&(r+=" is-rtl"),r=`${r} ${o}`.trim(),jsxRuntime.jsx("div",{className:r,id:e,children:n})};Ro.Point=({children:e,color:t="l",size:n="s",title:o,onClick:r})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:r,children:jsxRuntime.jsx(_t,{color:t,size:n,title:o,children:e})});Ro.Item=({marker:e,heading:t,children:n,title:o,onClick:r})=>{let i="timeline-marker";return i+=U(e?.color??"light"),e?.icon&&(i+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:o,onClick:()=>r&&r(t),children:[jsxRuntime.jsx("div",{className:i,children:e?.icon&&jsxRuntime.jsx(Ie,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};var Xt=({children:e,id:t,itemRef:n,color:o,alignment:r="r",tag:i,onDismiss:a,onOpened:l})=>{Le__default.default.useEffect(()=>l&&l(i),[l,i]);let s="quickview is-active";r==="l"?s+=" is-left":r==="r"&&(s+=" is-right");let c=null,u=null,p=null;return Le__default.default.Children.forEach(e,m=>{if(Le__default.default.isValidElement(m))switch(m.type){case Xt.Header:c=jsxRuntime.jsx(Ao,{...m.props,onDismiss:a,color:o});break;case Xt.Body:u=jsxRuntime.jsx(wo,{...m.props});break;case Xt.Footer:p=jsxRuntime.jsx(Jr,{...m.props});break;default:u=jsxRuntime.jsx(wo,{children:m});break}}),jsxRuntime.jsxs("div",{id:t,className:s,ref:n,children:[c??jsxRuntime.jsx(Ao,{onDismiss:a}),u,p]})};function Ao({children:e,color:t="i",onDismiss:n}){let o="quickview-header";return o+=U(t),typeof e=="string"&&(e=jsxRuntime.jsx("h3",{className:"title is-4",children:e})),jsxRuntime.jsxs("header",{className:o,children:[e,jsxRuntime.jsx("button",{className:"delete",onClick:n,title:"close"})]})}var wo=({children:e})=>jsxRuntime.jsx("section",{className:"quickview-body",children:e}),Jr=({children:e})=>jsxRuntime.jsx("footer",{className:"quickview-footer",children:e});Xt.Header=Ao;Xt.Body=wo;Xt.Footer=Jr;var Y=({size:e="m",rounded:t=!1,alignment:n="l",value:o,initialValue:r,children:i,className:a,onToggle:l})=>{let[s,c]=Le__default.default.useState(o??r);Le__default.default.useEffect(()=>{o!==void 0&&s!==o&&c(o);},[o,s]);let u=d=>{s!=d&&(l&&l(d),c(d));},p=Le__default.default.useId(),m=Le__default.default.Children.map(i,(d,g)=>{let y=d.props?.identifier??Le__default.default.Children.map(d.props.children,h=>typeof h=="string"?h:typeof h.type=="string"?h.type:p)?.join("")??""+g;return d.type===_r?jsxRuntime.jsx(fs,{...d.props,toggled:s==y,identifier:y,onToggleClick:u}):d.type===$r?jsxRuntime.jsx(gs,{...d.props,identifier:y}):d}),f="tabs is-toggle";return f+=M(e),f+=Tt(n),t&&(f+=" is-toggle-rounded"),a&&(f+=" "+a),jsxRuntime.jsx("div",{className:f,children:jsxRuntime.jsx("ul",{children:m})})},_r=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function fs({disabled:e,title:t,toggled:n,children:o,identifier:r,onClick:i,onToggleClick:a}){let l="";return e&&(l+=" is-disabled"),n&&(l+=" is-active"),jsxRuntime.jsx("li",{title:t,className:l,onClick:()=>{i&&i(r),e||a(r);},id:r,children:jsxRuntime.jsx("span",{className:"tab",children:o})})}var $r=e=>jsxRuntime.jsx("button",{children:e.children});function gs({title:e,identifier:t,onToggle:n,toggled:o=!1,disabled:r=!1,children:i}){let[a,l]=Le__default.default.useState(o);Le__default.default.useEffect(()=>{o!==void 0&&l(o);},[o]);let s="";a&&(s+="is-active"),r&&(s+=" is-disabled");let c=()=>{r||(n&&n(!a,t),l(!a));};return jsxRuntime.jsx("li",{title:e,id:t,className:s,onClick:()=>c(),children:jsxRuntime.jsx("span",{className:"tab",children:i})})}Y.Item=_r;Y.OnOffItem=$r;var w=({color:e="p",size:t="m",loading:n=!1,disabled:o=!1,fullwidth:r=!1,type:i="button",isStatic:a=!1,helpTag:l,onClick:s,onFocus:c,children:u,value:p,...m})=>{let f=S=>{!n&&!o&&!a&&s&&s(S);},d=S=>{c&&c(S,l);},g="button";g+=M(t);let y={};a?g+=" is-static":e==="none"?g+=" is-none":g+=U(e),n&&(g+=" is-loading"),r&&(g+=" is-fullwidth",y={justifyContent:"center"});let h=Le__default.default.Children.map(u,S=>typeof S=="string"?jsxRuntime.jsx("span",{children:S}):S);return jsxRuntime.jsx("button",{style:y,className:g,type:i,disabled:o,onClick:f,onFocus:d,value:p,...m,children:h})};w.Static=e=>jsxRuntime.jsx(w,{...e,isStatic:!0});w.Primary=e=>jsxRuntime.jsx(w,{...e,color:"p"});w.Success=e=>jsxRuntime.jsx(w,{...e,color:"s"});w.Danger=e=>jsxRuntime.jsx(w,{...e,color:"d"});w.Warning=e=>jsxRuntime.jsx(w,{...e,color:"w"});w.Info=e=>jsxRuntime.jsx(w,{...e,color:"i"});w.Link=e=>jsxRuntime.jsx(w,{...e,color:"l"});w.Light=e=>jsxRuntime.jsx(w,{...e,color:"light"});w.Dark=e=>jsxRuntime.jsx(w,{...e,color:"dark"});function Mn({fullwidth:e=!1,children:t,color:n="l",onClick:o,...r}){let i=`link-button ${U(n)}`;return e&&(i+=" is-fullwidth"),jsxRuntime.jsx("button",{className:i,onClick:o,...r,children:t})}function hs({color:e="l",href:t,target:n="_blank",id:o,rel:r="noopener",children:i,...a}){let l=`link-button ${U(e)}`;return jsxRuntime.jsx("a",{className:l,href:t,target:n,id:o,rel:r,...a,children:i})}function Pt({unevenSize:e=!1,...t}){return e?jsxRuntime.jsx(Ts,{...t}):jsxRuntime.jsx(Ss,{...t})}function Ts({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0}){let r="field";return r+=t?" has-addons":" is-grouped",r+=ar(n),o&&(r+=` ${o}`),jsxRuntime.jsx("div",{className:r,children:Le__default.default.Children.map(e,i=>jsxRuntime.jsx("div",{className:"control",children:i}))})}function Ss({children:e,alignment:t="l",className:n=""}){let o="evenly-sized-buttons";o+=Tt(t),n&&(o+=` ${n}`);let r=Le__default.default.Children.map(e,i=>{if(Le__default.default.isValidElement(i)){if(i?.type===w)return jsxRuntime.jsx(w,{...i.props,fullwidth:!0});if(i?.type===w.Primary)return jsxRuntime.jsx(w.Primary,{...i.props,fullwidth:!0});if(i?.type===w.Info)return jsxRuntime.jsx(w.Info,{...i.props,fullwidth:!0});if(i?.type===w.Link)return jsxRuntime.jsx(w.Link,{...i.props,fullwidth:!0});if(i?.type===w.Success)return jsxRuntime.jsx(w.Success,{...i.props,fullwidth:!0});if(i?.type===w.Warning)return jsxRuntime.jsx(w.Warning,{...i.props,fullwidth:!0});if(i?.type===w.Danger)return jsxRuntime.jsx(w.Danger,{...i.props,fullwidth:!0});if(i?.type===w.Light)return jsxRuntime.jsx(w.Light,{...i.props,fullwidth:!0});if(i?.type===w.Dark)return jsxRuntime.jsx(w.Dark,{...i.props,fullwidth:!0});if(i?.type===Mn)return jsxRuntime.jsx(Mn,{...i.props,fullwidth:!0});if(i?.type==="button")return jsxRuntime.jsx("button",{...i.props,style:{...i.props.style,width:"100%"}})}else return null});return jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsx("div",{className:"evenly-sized-buttons-container",style:{display:"grid",direction:"ltr",gridTemplateColumns:`repeat(${Le__default.default.Children.count(e)}, 1fr) `,gap:"0.5rem",gridTemplateRows:"1fr",gridAutoFlow:"column"},children:r})})}var It={transition:"background-color .2s ease-in-out, color .2s ease-in-out",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"clip"},tt={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold"},tn={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},mt={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",paddingTop:"1em"},Ln={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em"},zr={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},Jn={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},Vr={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",marginBottom:"-2px",display:"inline-block",transition:"background-color .2s ease-in-out"};var vs=.2,Cs=.1;function Vt({className:e,children:t,style:n={},content:o=void 0,hideArrow:r=!1,triggers:i="hover",placement:a="rt",display:l="inline-block"}){let s=Le__default.default.useMemo(()=>({offSet:[8,8]}),[]),c=Le__default.default.useMemo(()=>({display:l}),[l]),u=Le__default.default.useMemo(()=>{let p="";return a==="r"?p="right":a==="t"?p="top":a==="b"?p="bottom":a==="l"?p="left":a==="lt"||a==="tl"?p="leftTop":a==="lb"||a==="bl"?p="leftBottom":a==="rt"||a==="tr"?p="rightTop":(a==="rb"||a==="br")&&(p="rightBottom"),p},[a]);return o?jsxRuntime.jsx("span",{className:e,style:n,children:jsxRuntime.jsx(zi__default.default,{placement:u,overlay:typeof o=="string"?jsxRuntime.jsx(jsxRuntime.Fragment,{children:o}):o,trigger:i,showArrow:!r,mouseEnterDelay:vs,mouseLeaveDelay:Cs,align:s,children:jsxRuntime.jsx("div",{style:c,children:t})})}):jsxRuntime.jsx("span",{className:e,style:n,children:t})}function gn({event:e,options:t,onClick:n,desc:o}){let[r,i]=Le__default.default.useState(!1),a=Le__default.default.useCallback(Je,[]),l=Le__default.default.useMemo(()=>{let c=Yt(e,r,t),u=a(c);return {...It,paddingLeft:"1em",backgroundColor:c,color:u,cursor:n?"pointer":"default"}},[e,r,n,t,a]),s=Le__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:s,onClick:c=>{c.preventDefault(),c.stopPropagation(),n&&n(e,c);},style:l,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),children:jsxRuntime.jsx(Vt,{placement:"rt",content:e.tooltip?jsxRuntime.jsx("span",{style:{maxWidth:"300px"},children:e.tooltip}):void 0,hideArrow:!0,children:jsxRuntime.jsx("span",{children:o(e,r)})})})}function dt({event:e,onClick:t,desc:n}){let[o,r]=Le__default.default.useState(!1),i=Le__default.default.useCallback(Je,[]),a=Le__default.default.useMemo(()=>{let s=o?"#f1f1f1":"#ffffff00",c=i(s);return {...It,backgroundColor:s,color:c,cursor:t?"pointer":"default"}},[o,t,i]),l=Le__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:s=>{s.preventDefault(),s.stopPropagation(),t&&t(e,s);},style:a,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx(Vt,{style:{display:"inline-block"},placement:"rt",content:e.tooltip?jsxRuntime.jsx("div",{style:{maxWidth:"300px"},children:e.tooltip}):void 0,hideArrow:!0,children:jsxRuntime.jsx("span",{style:{overflowX:"clip"},className:"is-flex is-flex-wrap-nowrap is-align-content-left",children:n(e,o)})})})}function zn({evt:e,calendarType:t}){return jsxRuntime.jsx("span",{children:typeof e.title=="function"?e.title(t):e.title})}function xt({evt:e,options:t,calendarType:n,isHovered:o=!1}){let r=Le__default.default.useMemo(()=>{let i=Yt(e,o,t);return {...Vr,backgroundColor:i}},[e,t,o]);return jsxRuntime.jsxs("div",{style:{overflowX:"clip",textOverflow:"clip"},className:"is-flex is-align-content-center",children:[jsxRuntime.jsx("div",{className:"kleurblok is-flex-grow-0 is-flex-shrink-0 my-1",style:r}),jsxRuntime.jsx("strong",{children:e._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px",overflowX:"clip",textOverflow:"clip"},children:typeof e.title=="function"?e.title(n):e.title})]})}function Ur({events:e,onEventClick:t,options:n,calendarType:o}){let[r,i]=Le__default.default.useState(()=>e.slice(4)),[a,l]=Le__default.default.useState(!1),[s,c]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{i(e.slice(4));},[e]);let u=Le__default.default.useMemo(()=>({...It,backgroundColor:a?"#f4f4f4":"transparent",color:a?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em",cursor:"pointer"}),[a]),p=Le__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[]),m=()=>{c(!s),l(!1);};return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[s&&r.map(f=>f.allDay?jsxRuntime.jsx(gn,{desc:d=>jsxRuntime.jsx(zn,{evt:d,calendarType:o}),event:f,options:n?.allday,onClick:t},`${typeof f.id=="function"?f.id():f.id}`):jsxRuntime.jsx(dt,{desc:(d,g)=>jsxRuntime.jsx(xt,{evt:d,isHovered:g,options:n?.timed,calendarType:o}),event:f,options:n?.timed,onClick:t},`${typeof f.id=="function"?f.id():f.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:u,children:[!s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:p,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faChevronDown})}),jsxRuntime.jsxs("span",{children:["Nog ",r.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:p,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faChevronUp})}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}function Kn({options:e,date:t,onDayClick:n,onEventClick:o,events:r,calendarType:i,isCurrentMonth:a=!0}){let[l,s]=Le__default.default.useState(!1),c=Le__default.default.useCallback(Je,[]),u=Le__default.default.useMemo(()=>({...Ln,backgroundColor:a?"transparent":"#f8f8f8",color:a?"#888888":"#bbbbbb"}),[a]),p=Le__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let d=Cn(t,l,e),g=c(d);return {...Jn,backgroundColor:d,color:g}},[t,l,e,c]),m=(d,g)=>{o&&o(d,g);},f=(d,g)=>{n&&n(d,g);};return jsxRuntime.jsxs("div",{style:u,onClick:d=>f(t,d),children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),style:{...zr,cursor:n?"pointer":"default",backgroundColor:l?"#f4f4f4":"transparent",color:a?"#555555":"#bbbbbb"},children:[jsxRuntime.jsx("span",{style:t.isToday?p:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:a?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:r.map((d,g)=>{let y=`${typeof d.id=="function"?d.id():d.id}`??g;return d.allDay&&g<4?jsxRuntime.jsx(gn,{desc:(h,S)=>jsxRuntime.jsx(zn,{evt:h,isHovered:S,options:e?.event?.allday,calendarType:i}),event:d,onClick:m},y):!d.allDay&&g<4?jsxRuntime.jsx(dt,{desc:h=>jsxRuntime.jsx(xt,{evt:h,options:e?.event?.timed,calendarType:i}),event:d,onClick:m},y):g===4&&r.length>5?jsxRuntime.jsx(Ur,{events:r,onEventClick:m,options:e?.event,calendarType:i},t.dateShort+"-more"):g===4&&d.allDay?jsxRuntime.jsx(gn,{desc:(h,S)=>jsxRuntime.jsx(zn,{evt:h,isHovered:S,options:e?.event?.allday,calendarType:i}),event:d,options:e?.event?.allday,onClick:m},y):g===4&&!d.allDay?jsxRuntime.jsx(dt,{desc:(h,S)=>jsxRuntime.jsx(xt,{evt:h,options:e?.event?.timed,isHovered:S,calendarType:i}),event:d,onClick:m},y):null})})]})}function Wr({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:r=[]}){let i=u=>{let p=Math.ceil(u.weekNr/52*13),m=u.clone();for(;Math.ceil(m.weekNr/52*13)===p;)m=m.plus({days:-1});let f=u.clone();for(;Math.ceil(f.weekNr/52*13)===p;)f=f.plus({days:1});m=m.plus({days:1}).startOf("day"),f=f.plus({days:-1}).endOf("day");let d=r.map(h=>(h.allDay===void 0&&(h.allDay=!1),h._startDateTime||(h._startDateTime=h.startDateTime instanceof Date?_.fromDate(h.startDateTime,t?.locale):h.startDateTime.clone()),h._endDateTime&&!h._endDateTime&&(h._endDateTime=h.endDateTime instanceof Date?_.fromDate(h._endDateTime,t?.locale):h.endDateTime?.clone()),h)).filter(h=>h._startDateTime.isBetween([m,f])),g=m.clone(),y=[];for(;g<=f;){if(l.has(g.weekDay)){let h=g.startOf("day"),S=g.endOf("day"),v=d.filter(T=>T._startDateTime.isBetween([h,S])).sort((T,R)=>T.allDay&&!R.allDay?-1:!T.allDay&&R.allDay?1:T._startDateTime.valueOf()-R._startDateTime.valueOf());y.push([g,v]);}g=g.plus({days:1});}return y},a=e instanceof Date?_.fromDate(e,t?.locale):e.clone(),l=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),s=i(a),c=Le__default.default.useMemo(()=>({...tn,gridTemplateColumns:`30px repeat(${l.size}, 1fr)`}),[l.size]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(xs,{visibleDays:l,viewDate:a}),jsxRuntime.jsx(Rs,{visibleDays:l,viewDate:a,datesWithEvents:s,options:t,onDayClick:o,onEventClick:n})]})})}function xs({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),r=t.endOf("week"),i=Array.from(e).sort(),a=0;for(;o<=r&&a<7;)i.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let l=Le__default.default.useMemo(()=>({...tt}),[]),s=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:l}),n.map(c=>jsxRuntime.jsx("div",{style:s,children:c},c))]})}function Rs({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:r}){let i=e.size,a=0;return jsxRuntime.jsx(Le__default.default.Fragment,{children:r.map(([l,s])=>(a==i&&(a=0),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Ns,{weekNr:l.weekNr}),jsxRuntime.jsx(Kn,{date:l,events:s,calendarType:"v",onEventClick:n,onDayClick:t,options:o},l.ISO)]},l.ISO)))})}function Ns({weekNr:e}){let t=Le__default.default.useMemo(()=>({...mt}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function Gr({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:r=[]}){let i=u=>{let p=u.startOf("month").startOf("week").startOf("day"),m=u.endOf("month").endOf("week").plus({days:1}).startOf("day"),f=r.map(y=>(y.allDay===void 0&&(y.allDay=!1),y._startDateTime||(y._startDateTime=y.startDateTime instanceof Date?_.fromDate(y.startDateTime,t?.locale):y.startDateTime.clone()),y._endDateTime&&!y._endDateTime&&(y._endDateTime=y.endDateTime instanceof Date?_.fromDate(y._endDateTime,t?.locale):y.endDateTime?.clone()),y)).filter(y=>y._startDateTime.isBetween([p,m])),d=p.clone(),g=[];for(;d<m;){if(a.has(d.weekDay)){let y=d.startOf("day"),h=d.endOf("day"),S=f.filter(v=>v._startDateTime.isBetween([y,h])).sort((v,T)=>v.allDay&&!T.allDay?-1:!v.allDay&&T.allDay?1:v._startDateTime.valueOf()-T._startDateTime.valueOf());g.push([d,S]);}d=d.plus({days:1});}return g},a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),l=e instanceof Date?_.fromDate(e,t?.locale):e.clone(),s=i(l),c=Le__default.default.useMemo(()=>({...tn,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[a.size]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(As,{visibleDays:a,viewDate:l}),jsxRuntime.jsx(ws,{visibleDays:a,viewDate:l,datesWithEvents:s,options:t,onDayClick:o,onEventClick:n})]})})}function As({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),r=t.endOf("week"),i=Array.from(e).sort(),a=0;for(;o<=r&&a<7;)i.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let l=Le__default.default.useMemo(()=>({...tt}),[]),s=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:l}),n.map(c=>jsxRuntime.jsx("div",{style:s,children:c},c))]})}function ws({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:r,viewDate:i}){let a=e.size,l=0;return jsxRuntime.jsx(Le__default.default.Fragment,{children:r.map(([s,c])=>(l===a&&(l=0),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[l++===0&&jsxRuntime.jsx(ks,{weekNr:s.weekNr}),jsxRuntime.jsx(Kn,{date:s,events:c,calendarType:"m",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:s.hasSame(i,"month")},s.ISO)]},s.ISO)))})}function ks({weekNr:e}){let t=Le__default.default.useMemo(()=>({...mt}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function qr({viewDate:e,days:t=65,alwaysStartOnMonday:n=!1,options:o,rows:r,rowIdentifier:i,dayHeader:a=Qr,rowHeader:l=Yr,rowLabel:s=Zr,onDayClick:c,onEventClick:u}){let p=g=>{let y=[],h=0,S=g.clone();for(;h<t;)m.has(S.weekDay)&&(y.push(S.clone()),h++),S=S.plus({days:1});return y},m=o?.visibleDays&&o?.visibleDays?.size!==0?o?.visibleDays:new Set([1,2,3,4,5,6,7]),f=n?(e instanceof Date?_.fromDate(e,o?.locale):e.clone()).startOf("week").startOf("day"):(e instanceof Date?_.fromDate(e,o?.locale):e.clone()).startOf("day"),d=p(f);return jsxRuntime.jsx("div",{className:"table-container",children:jsxRuntime.jsxs("table",{className:"table is-planning is-fullwidth",children:[jsxRuntime.jsx(Os,{rowHeader:l,dayHeader:a,days:d}),jsxRuntime.jsx("tbody",{children:r?.map(g=>{let y=Array.isArray(g)?g[0]:g,h=typeof y!="object"?y:typeof i=="function"?i(y):y[i];return jsxRuntime.jsx(Bs,{row:g,days:d,rowLabel:s,options:o,onDayClick:c,onEventClick:u},h)})})]})})}function Os({days:e,dayHeader:t=Qr,rowHeader:n=Yr}){let o=typeof n=="function"?n():n;return jsxRuntime.jsx("thead",{children:jsxRuntime.jsxs("tr",{className:"planning-row",children:[jsxRuntime.jsx("td",{className:"first-col",children:o}),e.map(r=>jsxRuntime.jsx("td",{children:t(r)},r.valueOf()))]})})}function Bs({row:e,days:t,options:n,onDayClick:o,onEventClick:r,rowLabel:i=Zr}){let a=Array.isArray(e)?e[0]:e,l=(e[1]??[]).map(s=>(s.allDay===void 0&&(s.allDay=!1),s._startDateTime||(s._startDateTime=s.startDateTime instanceof Date?_.fromDate(s.startDateTime,n?.locale):s.startDateTime.clone()),s._endDateTime&&!s._endDateTime&&(s._endDateTime=s.endDateTime instanceof Date?_.fromDate(s._endDateTime,n?.locale):s.endDateTime?.clone()),s));return jsxRuntime.jsxs("tr",{className:"planning-row",children:[jsxRuntime.jsx("td",{className:"first-col",children:i(a,l)}),t.map(s=>{let c=l?.filter(u=>u._startDateTime?.year===s.year&&u._startDateTime.yearToDate===s.yearToDate)??[];return jsxRuntime.jsx("td",{onClick:u=>o&&o(s,a,u),children:jsxRuntime.jsx("div",{style:{width:"222px"},children:c.map((u,p)=>{let m=`${typeof u.id=="function"?u.id():u.id}`??p;return jsxRuntime.jsx(dt,{desc:f=>jsxRuntime.jsx(xt,{evt:f,options:n?.event?.timed,calendarType:"p"}),event:u,options:n?.event?.timed,onClick:r},m)})})},s.valueOf())})]})}var Yr=()=>jsxRuntime.jsx("div",{});function Zr(e,t){let n=jsxRuntime.jsx(jsxRuntime.Fragment,{});return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?n=jsxRuntime.jsx(jsxRuntime.Fragment,{children:e}):typeof e=="object"&&(n=jsxRuntime.jsx(jsxRuntime.Fragment,{children:JSON.stringify(e,null,2)})),jsxRuntime.jsx("div",{children:n})}var Qr=e=>{let t=Le__default.default.useMemo(()=>({...tt}),[]);return jsxRuntime.jsxs("div",{style:t,children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:e.dayLong}),jsxRuntime.jsxs("span",{children:[e.day," ",e.monthLong]})]},e.ISO)};function jr({options:e,events:t,date:n,onEventClick:o,onDayClick:r}){let i=Le__default.default.useMemo(()=>({...Ln}),[]);return jsxRuntime.jsx("div",{style:i,onClick:a=>r&&r(n.startOf("day"),a),children:t.map(a=>jsxRuntime.jsx(dt,{desc:(l,s)=>jsxRuntime.jsx(xt,{evt:l,options:e?.event?.allday,isHovered:s,calendarType:"w"}),event:a,options:e?.event?.allday,onClick:o},`${typeof a.id=="function"?a.id():a.id}`))})}function ei({hour:e}){let t=Le__default.default.useMemo(()=>({...mt,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,className:"time-slot",children:[e.toString().padStart(2,"0"),":00"]})}function ti({events:e,hour:t,date:n,onEventClick:o,onCellClick:r,options:i,lastVisibleHour:a}){let l=Le__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),s=Le__default.default.useRef(null),c=e.length!==0&&s.current?s.current?.offsetWidth/e.length:document.body.clientWidth/8;return jsxRuntime.jsx("div",{className:"hour-slot",style:l,ref:s,onClick:u=>{let p=n.clone().set({hour:t,minute:0,second:0,millisecond:0});r&&r(p,u);},children:e.map((u,p)=>jsxRuntime.jsx(Hs,{options:i?.event?.timed,event:u,lastVisibleHour:a??23,eventIndex:p,desc:m=>jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs(Vt,{content:m.tooltip?jsxRuntime.jsx("div",{style:{maxWidth:"300px"},children:m.tooltip}):void 0,placement:"rt",hideArrow:!0,children:[jsxRuntime.jsx("p",{children:jsxRuntime.jsxs("b",{children:[m._startDateTime.timeHM," - ",m._endDateTime?.timeHM]})}),jsxRuntime.jsx("p",{children:typeof m.title=="function"?m.title("w"):m.title})]})}),onClick:o,eventWidth:c},`${typeof u.id=="function"?u.id():u.id}`))})}function Hs({event:e,lastVisibleHour:t,options:n,eventWidth:o,eventIndex:r,onClick:i,desc:a}){let[l,s]=Le__default.default.useState(!1),c=Le__default.default.useCallback(Je,[]),u=Le__default.default.useRef(null),p=Le__default.default.useMemo(()=>{let m=Yt(e,l,n),f=c(m),d=e._startDateTime,g=e._endDateTime;g.hasSame(d,"day")||(g=d.endOf("day")),g.hour>t&&(g=g.set({hour:t,minute:59,second:59,millisecond:999}));let h=(g.valueOf()-d.valueOf())/1e3/60;return {...It,position:"absolute",backgroundColor:m,color:f,margin:"0",marginX:"2px",paddingLeft:"3px",marginTop:`${d.minute}px`,height:`${h<30?30:h}px`,width:o,lineHeight:"1.0em",overflow:"clip",marginLeft:`${r*(o??100/8)}px`,cursor:i?"pointer":"default"}},[e,l,n,c,t,o,r,i]);return jsxRuntime.jsxs("div",{className:"timed-event",ref:u,onClick:m=>{m.preventDefault(),m.stopPropagation(),i&&i(e,m);},style:p,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:[jsxRuntime.jsx("div",{style:{overflow:"clip",textOverflow:"clip",position:"absolute",left:"3px",right:"3px",top:"3px"},children:a(e)})," "]})}function ni({viewDate:e,options:t,onEventClick:n,events:o,onDayClick:r}){let i=(p,m)=>{let f=p.startOf("week").startOf("day"),d=p.endOf("week").plus({days:1}).startOf("day"),g=(m??o??[]).map(T=>(T.allDay===void 0&&(T.allDay=!1),T._startDateTime||(T._startDateTime=T.startDateTime instanceof Date?_.fromDate(T.startDateTime,t?.locale):T.startDateTime.clone()),!T._endDateTime&&T.endDateTime?T._endDateTime=T.endDateTime instanceof Date?_.fromDate(T.endDateTime,t?.locale):T.endDateTime?.clone():T._endDateTime||(T._endDateTime=T._startDateTime.plus({hours:1})),T)).filter(T=>T._startDateTime.isBetween([f,d])),y=f.clone(),h=[];for(;y<d;){if(a.has(y.weekDay)){let T=y.startOf("day"),R=y.endOf("day"),P=g.filter(I=>I._startDateTime.isBetween([T,R])).sort((I,N)=>I.allDay&&!N.allDay?-1:!I.allDay&&N.allDay?1:I._startDateTime.valueOf()-N._startDateTime.valueOf());h.push([y,P]);}y=y.plus({days:1});}let S=h.map(([T,R])=>[T,R.filter(P=>P.allDay)]),v=h.map(([T,R])=>[T,R.filter(P=>!P.allDay)]);return {allday:S,timed:v}},a=Le__default.default.useMemo(()=>t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[t?.visibleDays]),l=e instanceof Date?_.fromDate(e,t?.locale):e.clone(),s=i(l),c=Le__default.default.useMemo(()=>({...tn,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${a.size}, 1fr)`}),[a]),u=Le__default.default.useMemo(()=>{let p=[],m=t?.firstHour??0,f=t?.lastHour??23;if(m>=f)throw new Error("BeginTime moet kleiner zijn dan endTime");for(;m<=f;)p.push(m++);return p},[t]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(Ls,{onDayClick:r,daysWithEvents:s.allday,options:t}),jsxRuntime.jsx("div",{style:{...mt,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),s.allday.map(([p,m])=>jsxRuntime.jsx(jr,{date:p,events:m,onEventClick:n,onDayClick:r,options:t},p.dayShort)),u.map(p=>jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(ei,{hour:p}),s.timed.map(([m,f])=>{let d=f.filter(g=>g._startDateTime.hour===p);return jsxRuntime.jsx(ti,{events:d,hour:p,date:m,onCellClick:r,onEventClick:n,options:t,lastVisibleHour:t?.lastHour??23},m.dayShort+"-"+p)})]},p)),jsxRuntime.jsx("div",{style:{...mt,paddingTop:"0",zIndex:1,height:"30px",borderBottom:"thin solid #e1e1e1"}})]})})}function Ls({onDayClick:e,daysWithEvents:t,options:n={}}){let o=Le__default.default.useMemo(()=>({...tt,cursor:e?"pointer":void 0}),[e]),r=Le__default.default.useMemo(()=>({...o}),[o]),i=Le__default.default.useCallback(Je,[]),a=Le__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let l=Cn(new Date,!1,n),s=i(l);return {...Jn,marginBottom:".5em",backgroundColor:l,color:s}},[n,i]);return jsxRuntime.jsx(Le__default.default.Fragment,{children:t.map(([l])=>jsxRuntime.jsxs("div",{style:r,onClick:s=>e&&e(l,s),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:l.dayLong}),jsxRuntime.jsxs("span",{style:l.isToday?a:void 0,children:[l.day," ",l.monthLong]})]},l.ISO))})}var Js={Month:Gr,Week:ni,Fourweeks:Wr,Planning:qr};function Lo({id:e,label:t,name:n,size:o="m",direction:r="v",required:i=!1,showRequiredOnLabel:a=!1,value:l=!1,errorMessage:s="",labelHidden:c=!1,helpTag:u,infoData:p,onValueChanged:m,onBlur:f,onFocus:d,...g}){let[y,h]=Le__default.default.useState(!1),[S,v]=Le__default.default.useState(!1),T=N=>{p?setTimeout(()=>{let L=document.getElementById(e??n);document.activeElement!==L&&(v(!1),f&&f(N));},ge):(f&&f(N),v(!1));},R=(N,L)=>{d&&d(N,L),v(!0);},P=N=>{m&&m(N);},I=p&&(S||y)?jsxRuntime.jsx("span",{className:"mx-1",children:_e(p,()=>{},u)}):void 0;return jsxRuntime.jsxs(ce,{label:t??n,size:o,labelHidden:c,direction:r,required:i,inputId:e??n,showRequiredOnLabel:a,setHovered:h,children:[jsxRuntime.jsx(oi,{id:e,name:n,label:t,value:l,required:i,size:o,errorMessage:s,onValueChanged:P,onFocus:R,onBlur:T,...g}),I]})}function oi({helpTag:e,errorMessage:t="",infoMessage:n="",label:o,disabled:r=!1,keyboardType:i="text",title:a,name:l,value:s=!1,required:c=!1,spellCheck:u=!1,id:p,autoComplete:m="off",readonly:f=!1,autofocus:d=!1,form:g=void 0,inputRef:y,onBlur:h,onChange:S,onFocus:v,onKeyDown:T,onKeyUp:R,onValueChanged:P,size:I="m",alignment:N="l",color:L="dark"}){let[X,E]=Le__default.default.useState(!1),C=B=>{X||E(!0),h&&h(B);},O=B=>{X||E(!0),P&&P(B.target.checked),S&&S(B);},D="is-checkradio";return D+=M(I),D+=oe(N),D+=U(L),f&&(D+=" is-static"),jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:D,id:p??l,ref:y,name:l,checked:s,spellCheck:u,autoComplete:m,required:c,title:a,readOnly:f,autoFocus:d,form:g,inputMode:i,disabled:r,onKeyDown:T,onKeyUp:R,onBlur:C,onChange:O,onFocus:B=>v&&v(B,e)}),jsxRuntime.jsx("label",{htmlFor:p??l,children:o??l}),X&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(s)}),!t&&n&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof n=="string"?n:n(s)})]})}function Ke({value:e,id:t,name:n,label:o,grouped:r=!1,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,multiple:c=!1,alignment:u="l",size:p="m",direction:m="v",options:f=[],children:d=void 0,helpTag:g,disabled:y=!1,keyboardType:h="text",title:S,spellCheck:v=!1,loading:T=!1,autoComplete:R="off",autofocus:P=!1,form:I=void 0,inputRef:N,labelHidden:L,icon:X=freeSolidSvgIcons.faCheckCircle,infoData:E,onBlur:C,onFocus:O,onChange:D,onKeyDown:B,onKeyUp:z,onValueChanged:x}){let[A,H]=Le__default.default.useState(!1),[J,W]=Le__default.default.useState(!1),Q=j=>{J||W(!0),E?setTimeout(()=>{let k=document.getElementById(t??n);document.activeElement!==k&&(H(!1),C&&C(j));},ge):(C&&C(j),H(!1));},ae=j=>{H(!0),O&&O(j,g);},se=j=>{if(J||W(!0),D&&D(j),c){let k=j.target.selectedOptions,fe=[];for(let V of k)fe.push(V.value);x&&x(fe);}else typeof e=="number"&&x?x(+j.target.value):x&&x(j.target.value);},te=Le__default.default.useCallback(j=>{if(!j.some(k=>typeof k!="string"&&typeof k!="number"))return j.map(k=>jsxRuntime.jsx(Ke.Option,{value:k,children:k},k));if(r){let k=[],fe=new Set;return j.forEach(V=>fe.add(typeof V=="string"||typeof V=="number"?"":V.group??"")),[...fe].sort().forEach(V=>{let he=[];j.forEach($=>{typeof $=="string"||typeof $=="number"?V===""&&he.push($):V===$.group&&he.push($);}),k.push(jsxRuntime.jsx(Ke.OptGroup,{label:V,children:he.map($=>{if(typeof $=="string")return jsxRuntime.jsx(Ke.Option,{value:$,children:$},$);{let{value:G,disabled:q,label:Z}=$;return jsxRuntime.jsx(Ke.Option,{value:G,disabled:q,children:Z??G},Z??G)}})},V));}),k}else return j.map(k=>{if(typeof k=="string")return jsxRuntime.jsx(Ke.Option,{value:k,children:k},k);if(typeof k=="number")return jsxRuntime.jsx(Ke.Option,{value:k,children:k},k);{let{value:fe,disabled:V,label:he}=k;return jsxRuntime.jsx(Ke.Option,{value:fe,disabled:V,children:he??fe},fe)}})},[r]),ne=l?"select is-danger":"select";ne+=M(p),ne+=oe(u),c!==!1&&(ne+=" is-multiple"),T&&(ne+=" is-loading");let ye=te(f),[be,ue,Re]=ke({icon:X,errorMessage:l,hasFocus:A,inputId:t??n,infoData:E,helpTag:g});return jsxRuntime.jsxs(ce,{inputId:t??n,label:o??n??t,direction:m,required:i,size:p,labelHidden:L,controlClassName:be,showRequiredOnLabel:a,children:[jsxRuntime.jsx("div",{className:ne,children:jsxRuntime.jsxs("select",{multiple:c!==!1,size:c===!1?void 0:c,value:e,className:ne,id:t??n,ref:N,name:n,spellCheck:v,autoComplete:R,required:i,title:S,autoFocus:P,form:I,inputMode:h,disabled:y,onFocus:ae,onBlur:Q,onKeyDown:B,onKeyUp:z,onChange:se,children:[d,ye]})}),ue,Re,J&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",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});Ke.Divider=({dividerChar:e="-",repeat:t=15})=>jsxRuntime.jsx("option",{disabled:!0,children:Array(t).join(e)});function ai(e,t,n){Le__default.default.useEffect(()=>{if(n.current&&t.current&&e>=0){e===0&&t.current.scrollTo({top:0});let o=n.current.childNodes,r=o&&o.length?o[e]:null;if(r&&r.getBoundingClientRect){let{height:i}=r.getBoundingClientRect(),{height:a}=t.current.getBoundingClientRect(),l=t.current.scrollTop,s=r.offsetTop<=l;r.offsetTop>=l&&r.offsetTop+i<=l+a||(s?t.current.scrollTo({top:r.offsetTop}):t.current.scrollTo({top:r.offsetTop-a+i}));}}},[e,n,t]);}var si=200,qn=Object.freeze({UP_ARROW:38,DOWN_ARROW:40,ENTER_KEY:13,ESCAPE_KEY:27});function Ks({value:e,options:t,id:n,name:o,label:r,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,alignment:c="l",size:u="m",direction:p="v",placeholder:m,helpTag:f,disabled:d=!1,loading:g=!1,autofocus:y=!1,labelHidden:h,icon:S=freeSolidSvgIcons.faCheckCircle,infoData:v,onValueChanged:T,onChange:R,onFocus:P,onBlur:I,onKeyDown:N,onKeyUp:L,onSearch:X=(C,O)=>C.toLowerCase().indexOf(JSON.stringify(O).toLowerCase())!==-1,formatLabel:E=C=>typeof C=="string"||typeof C=="number"||typeof C=="boolean"?`${C}`:JSON.stringify(C)}){let C=Le__default.default.useCallback(F=>F.map(pe=>E(pe)),[E]),[O,D]=Le__default.default.useState(C(t)),[B,z]=Le__default.default.useState(E(e)),[x,A]=Le__default.default.useReducer(Ws,Us),[H,J]=Le__default.default.useState(!1),[W,Q]=Le__default.default.useState(!1),[ae,se]=Le__default.default.useState(-1),[te,ne]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{D(C(t));},[t]),Le__default.default.useEffect(()=>{x.isFocused||z(E(e));let F=e?O.indexOf(E(e)):-1;A({type:"setFocusIndex",focusIndex:F}),se(F);},[e]),Le__default.default.useEffect(()=>{let pe=ye.current?.offsetParent?.getBoundingClientRect(),Ne=window.innerHeight-(pe?.top??0);Q(si>Ne&&(pe?.top??0)>Ne);},[x.isFocused]);let ye=Le__default.default.useRef(null),be=Le__default.default.useRef(null);ai(x.focusIndex,ye,be);let ue=F=>{v&&!H?setTimeout(()=>{let pe=document.getElementById(n??o);document.activeElement!==pe&&(A({type:"toggleFocus",isFocused:!1}),I&&I(F));},ge):(I&&I(F),A({type:"toggleFocus",isFocused:!1}));},Re=F=>{te||ne(!0),P&&P(F,f),A({type:"toggleFocus",isFocused:!0});},j=(F=x.focusIndex)=>{F!==-1&&z(O[F]),T&&T(t[F]);},k=()=>{O.forEach((F,pe)=>{F===t[x.focusIndex]&&A({type:"setFocusIndex",focusIndex:pe});});},fe=()=>{j(),A({type:"toggleFocus",isFocused:!1}),se(x.focusIndex),k(),D(O);},V=F=>{let pe=ye.current,Ne=x.focusIndex;switch(F.keyCode){case qn.DOWN_ARROW:{F.preventDefault(),x.isFocused?x.focusIndex>=t.length-1?(Ne=0,pe.scrollTop=0):Ne=x.focusIndex+1:A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:Ne}),ye.current=pe;break}case qn.UP_ARROW:{F.preventDefault(),x.isFocused?x.focusIndex<=0?(Ne=t.length-1,pe&&(pe.scrollTop=pe.scrollHeight)):Ne=x.focusIndex-1:A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:Ne}),ye.current=pe;break}case qn.ENTER_KEY:{F.preventDefault(),x.focusIndex>-1&&x.focusIndex<t.length&&fe();break}case qn.ESCAPE_KEY:{F.target.blur(),A({type:"toggleFocus",isFocused:!1});break}}N&&N(F);},he=F=>{if(F.length===0)D(C(t));else {let pe=t.filter(Ne=>X(F,Ne));D(C(pe));}},$=F=>{te||ne(!0),R&&R(F),z(F.target.value),he(F.target.value);},G=()=>{A({type:"toggleFocus",isFocused:!0}),A({type:"setFocusIndex",focusIndex:O.indexOf(B.toString())});},q=F=>{A({type:"setFocusIndex",focusIndex:F});},Z=l?"input is-danger is-fullwidth":"input is-fullwidth";Z+=M(u),Z+=oe(c),g&&(Z+=" is-loading");let it={right:"1.5em"},[kt,Dt,Ot]=ke({icon:S,errorMessage:l,hasFocus:x.isFocused,inputId:n??o,infoData:v,helpTag:f});return jsxRuntime.jsxs(ce,{inputId:n??o,label:r??o??n,direction:p,required:i,size:u,labelHidden:h,controlClassName:kt,showRequiredOnLabel:a,children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("input",{role:"combobox",placeholder:m,value:B,className:Z,name:o,disabled:d,autoFocus:y,onChange:$,onClick:G,onKeyUp:L,onKeyDown:V,onFocus:Re,onBlur:ue}),jsxRuntime.jsx("div",{className:"bulma-box",style:{position:"absolute",width:"100%",opacity:x.isFocused?1:0,visibility:x.isFocused?"visible":"hidden",maxHeight:x.isFocused?si:0,overflowY:"auto",zIndex:5,bottom:W?"100%":void 0,top:W?void 0:"100%",marginBottom:W?"5px":void 0,marginTop:W?void 0:"5px"},ref:ye,onMouseEnter:()=>J(!0),onMouseLeave:()=>J(!1),children:jsxRuntime.jsx("ul",{ref:be,children:O.map((F,pe)=>{let Ne="combobox-listitem";return pe===ae&&(Ne+=" is-selected"),jsxRuntime.jsx("li",{className:Ne,onClick:()=>fe(),onMouseDown:K=>K.preventDefault(),onMouseEnter:()=>q(pe),children:F},F)})})}),Dt,jsxRuntime.jsx("span",{className:"icon is-right has-text-link",style:it,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:x.isFocused?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown})}),Ot]}),te&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}var Us={isFocused:!1,focusIndex:-1},Ws=(e,t)=>{switch(t.type){case"setFocusIndex":return {...e,focusIndex:t.focusIndex};case"toggleFocus":return {...e,isFocused:t.isFocused};default:return e}};var ci=200;function Qs({value:e,options:t,id:n,name:o,label:r,required:i=!1,showRequiredOnLabel:a=!1,errorMessage:l="",infoMessage:s=void 0,alignment:c="l",size:u="m",direction:p="v",placeholder:m,helpTag:f,disabled:d=!1,loading:g=!1,autofocus:y=!1,labelHidden:h,icon:S=freeSolidSvgIcons.faCheckCircle,infoData:v,onValueChanged:T,onFocus:R,onBlur:P,onKeyDown:I,onKeyUp:N,onSearch:L=(C,O)=>C.toLowerCase().indexOf(JSON.stringify(O).toLowerCase())!==-1,formatLabel:X=C=>typeof C=="string"||typeof C=="number"||typeof C=="boolean"?`${C}`:JSON.stringify(C),formatValue:E=C=>C.join(", ")}){let C=(G,q)=>{let Z=[];return G.forEach(it=>{let kt=q.findIndex(Dt=>JSON.stringify(Dt)===JSON.stringify(it));kt!==-1&&Z.push(kt);}),Z},[O,D]=Le__default.default.useState(""),[B,z]=Le__default.default.useState(!1),[x,A]=Le__default.default.useState(!1),[H,J]=Le__default.default.useState(C(e,t)),[W,Q]=Le__default.default.useState(!1),[ae,se]=Le__default.default.useState(!1);Le__default.default.useEffect(()=>{let q=te.current?.offsetParent?.getBoundingClientRect(),Z=window.innerHeight-(q?.top??0);se(ci>Z&&(q?.top??0)>Z);},[B]),Le__default.default.useEffect(()=>{J(C(e,t));},[e]);let te=Le__default.default.useRef(null),ne=Le__default.default.useRef(null),ye=G=>{v&&!W?setTimeout(()=>{let q=document.getElementById(n??o);document.activeElement!==q&&(z(!1),P&&P(G));},ge):W||(P&&P(G),z(!1));},be=G=>{let q=[];H.includes(G)?q=[...H.filter(Z=>Z!==G)]:q=[...H,G].sort(),J(q),T&&T(q.map(Z=>t[Z])),D("");},ue=G=>{B&&D(G.target.value);},Re=()=>{z(!0);},j=G=>{x||A(!0),R&&R(G,f),z(!0);},k=l?"input is-danger is-fullwidth":"input is-fullwidth";k+=M(u),k+=oe(c),g&&(k+=" is-loading");let[fe,V,he]=ke({icon:S,errorMessage:l,hasFocus:B,inputId:n??o,infoData:v,helpTag:f}),$={right:"1.5em"};return jsxRuntime.jsxs(ce,{inputId:n??o,label:r??o??n,direction:p,required:i,size:u,labelHidden:h,controlClassName:fe,showRequiredOnLabel:a,children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("input",{role:"combobox",placeholder:m,value:B?O:E(e),className:k,name:o,disabled:d,autoFocus:y,onChange:ue,onClick:Re,onKeyUp:N,onKeyDown:I,onFocus:j,onBlur:ye}),jsxRuntime.jsx("div",{className:"bulma-box",style:{position:"absolute",width:"100%",opacity:B?1:0,visibility:B?"visible":"hidden",maxHeight:B?ci:0,overflowY:"auto",zIndex:5,bottom:ae?"100%":void 0,top:ae?void 0:"100%",marginBottom:ae?"5px":void 0,marginTop:ae?void 0:"5px"},ref:te,onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:jsxRuntime.jsx("ul",{ref:ne,children:t.map((G,q)=>{let Z="combobox-listitem";return H.includes(q)&&(Z+=" is-selected"),B&&O!==""&&!L(O,G)&&(Z+=" is-hidden"),jsxRuntime.jsx("li",{className:Z,onClick:()=>be(q),onMouseDown:it=>it.preventDefault(),children:X(G)},X(G))})})}),V&&jsxRuntime.jsx("span",{className:"icon is-left",children:V}),jsxRuntime.jsx("span",{className:"icon is-right has-text-link",style:$,children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:B?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown})}),he]}),x&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}function el({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:r,onRGBValueChanged:i,onHSLValueChanged:a,...l}){let s=u=>{r&&r(u),i&&i(wn(u)),a&&a(Ir(u));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(u=>{"0123456789ABCDEF".includes(u)||console.warn(`Ongeldig karakter "${u}" in hex-color '${e}'`);}),e.length===4?c=`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.length===7?c=e:console.warn(`Ongeldige hex-color '${e}: Lengte moet 4 of 7 zijn'`);else if(t){let[u,p,m]=t;u<0||u>255?console.warn(`Ongeldige RGB-waarde, r = '${u}', moet tussen 0 en 255 ([${t}])`):p<0||p>255?console.warn(`Ongeldige RGB-waarde, g = '${p}', moet tussen 0 en 255 ([${t}])`):(m<0||m>255)&&console.warn(`Ongeldige RGB-waarde, b = '${m}', moet tussen 0 en 255 ([${t}])`),c=Cr([u,p,m]);}else if(n){let[u,p,m]=n;u<0||u>360?console.warn(`Ongeldige HSL-waarde, h = '${u}', moet tussen 0 en 360 ([${n}])`):p<0||p>100?console.warn(`Ongeldige HSL-waarde, s = '${p}', moet tussen 0 en 100 ([${n}])`):(m<0||m>100)&&console.warn(`Ongeldige HSL-waarde, l = '${m}', moet tussen 0 en 100 ([${n}])`),c=Pr([u,p,m]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(le,{icon:o,type:"color",value:c,onValueChanged:s,...l})})}function Fo({value:e,name:t,id:n,required:o,title:r,tooltip:i}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:r??i,required:o,type:"hidden",disabled:!0})}function _o({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:r,value:i,checked:a=!1,required:l=!1,spellCheck:s=!1,id:c,autoComplete:u="off",readonly:p=!1,autofocus:m=!1,form:f=void 0,inputRef:d,onBlur:g,onChange:y,onFocus:h,onKeyDown:S,onKeyUp:v,onValueChanged:T,size:R="m",alignment:P="l",itemsDirection:I="v",color:N="p",children:L=void 0}){let X=C=>{T&&T(i),y&&y(C);},E="is-checkradio";return E+=M(R),E+=oe(P),E+=U(N),p&&(E+=" is-static"),c||(c=r+"-"+i),jsxRuntime.jsxs("div",{style:{display:I==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:E,id:c,ref:d,name:r,checked:a,spellCheck:s,autoComplete:u,required:l,title:o,readOnly:p,autoFocus:m,form:f,inputMode:n,disabled:t,onKeyDown:S,onKeyUp:v,onBlur:g,onChange:X,onFocus:C=>h&&h(C,e)}),jsxRuntime.jsx("label",{htmlFor:c??r,children:L??r})]})}function mi({children:e=void 0,id:t,label:n,disabled:o=!1,labelHidden:r=!1,name:i,value:a,required:l=!1,showRequiredOnLabel:s=!1,size:c="m",direction:u="h",itemsDirection:p="h",alignment:m="l",errorMessage:f="",infoMessage:d=void 0,infoData:g,helpTag:y,onValueChanged:h,onBlur:S,onChange:v,onFocus:T,onKeyDown:R,onKeyUp:P}){let[I,N]=Le__default.default.useState(!1),[L,X]=Le__default.default.useState(!1),[E,C]=Le__default.default.useState(!1),O=H=>{X(!1),S&&S(H);},D=(H,J)=>{T&&T(H,J),X(!0);},B=H=>{I||N(!0),h&&h(H);},x=(H=>Le__default.default.Children.map(H,(J,W)=>{if(Le__default.default.isValidElement(J)&&J.type===di){let Q=!1;return typeof a=="string"||typeof a=="number"||typeof a=="boolean"?Q=a===J.props.value:a&&(Q=JSON.stringify(a)===JSON.stringify(J.props.value)),jsxRuntime.jsx(_o,{...J.props,disabled:o?!0:J.props.disabled,size:c,itemsDirection:p,alignment:m,direction:u,id:J.props.id??`${i}-option-${W}`,value:J.props.value,checked:Q,name:i,helpTag:J.props.helpTag??y,onValueChanged:B,onBlur:O,onKeyDown:R,onKeyUp:P,onChange:v,onFocus:D,children:J.props.children})}return J}))(e),A=Fe(g,$e(L,E))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(g,()=>{},y)}):void 0;return jsxRuntime.jsxs(ce,{labelHidden:r,label:n??i,required:l,inputId:"",direction:u,size:c,controlClassName:"control",showRequiredOnLabel:s,infoData:A,setHovered:C,children:[x,I&&f&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof f=="string"?f:f(a)}),d&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof d=="string"?d:d(a)})]})}function di({checked:e=!1,id:t,value:n,children:o,...r}){return jsxRuntime.jsx(_o,{checked:e,name:"",...r,id:t,value:n,children:o})}mi.Item=di;function ol({value:e=[],allowDuplicates:t=!1,disableRemove:n=!1,disabled:o=!1,id:r,name:i,label:a,color:l="p",direction:s="v",errorMessage:c="",infoMessage:u=void 0,showRequiredOnLabel:p=!1,icon:m=freeSolidSvgIcons.faKeyboard,labelHidden:f=!1,required:d=!1,loading:g=!1,size:y="m",alignment:h="l",autoComplete:S="off",optionListId:v=void 0,autofocus:T=!1,form:R=void 0,helpTag:P,keyboardType:I="text",maxLength:N,minLength:L,pattern:X=void 0,placeholder:E,readonly:C=!1,spellCheck:O=!1,title:D,className:B="",styles:z={},randomColors:x=void 0,maxTags:A=-1,infoData:H,onBlur:J,onFocus:W,onValueChanged:Q,onKeyDown:ae,onKeyUp:se}){let te=Le__default.default.useRef(null),[ne,ye]=Le__default.default.useState(!1),[be,ue]=Le__default.default.useState(!1),[Re,j]=Le__default.default.useState(""),[k,fe]=Le__default.default.useState(e),[V,he]=Le__default.default.useState(e.map(K=>l==="random"?So(x):l)),$=K=>{ye(!0),H?setTimeout(()=>{let at=document.getElementById(r??i);document.activeElement!==at&&(ue(!1),J&&J(K));},ge):(J&&J(K),ue(!1));},G=K=>{ye(!0),W&&W(K,P),ue(!0);},q=K=>{if(!o&&!(A>0&&k.length>=A)&&(K=K.trim(),K!=="")){if(t||!k.includes(K)){let at=[...k,K];fe(at),he([...V,l==="random"?So():l]),Q&&Q(at);}te?.current?.focus();}},Z=K=>{if(!o){if(!n){let at=k.indexOf(K),vn=k.filter(wi=>wi!==K);fe(vn),V.splice(at,1),he([...V]),Q&&Q(vn);}te?.current?.focus();}},it=K=>{o||(ye(!0),K.key==="Enter"&&Re.length>0?(K.preventDefault(),q(Re),j("")):(K.key==="Backspace"||K.key==="Delete")&&k.length>0&&Re.length===0?(K.preventDefault(),Z(k[k.length-1])):K.key==="Escape"&&(K.preventDefault(),j("")),ae&&ae(K));},kt=`tag-input ${be?"has-focus":""} ${c?"is-danger":""} ${B??""}`.trim();kt+=M(y);let Dt="transparent-input ml-1";Dt+=M(y),Dt+=oe(h);let Ot;y==="s"||y==="m"?Ot="s":y==="l"?Ot="m":y==="xl"&&(Ot="l");let[F,pe,Ne]=ke({icon:m,errorMessage:c,hasFocus:be,inputId:r??i,infoData:H,helpTag:P});return jsxRuntime.jsxs(ce,{size:y,inputId:r??i,label:a??i,direction:s,required:d,labelHidden:f,showRequiredOnLabel:p,controlClassName:F,loading:g,children:[jsxRuntime.jsxs("div",{className:kt,title:D,style:z,children:[jsxRuntime.jsx(xo,{styles:{verticalAlign:"center",marginTop:"22px"},children:k.map((K,at)=>jsxRuntime.jsx(_t,{size:Ot,light:o,onDismiss:n?void 0:vn=>{vn.preventDefault(),Z(K);},color:V[at],children:K},t?`${K}-${at}`:K))}),jsxRuntime.jsx("input",{className:Dt,name:`${i}-tags-input-name-field-IGNORE`,required:d,id:`${r??i}-tags-input-field-id-IGNORE`,value:Re,disabled:o,pattern:X,ref:te,spellCheck:O,autoComplete:S,type:"text",maxLength:typeof N=="number"?N:void 0,minLength:typeof L=="number"?L:void 0,readOnly:C,autoFocus:T,form:R,inputMode:I,placeholder:E,list:v,onKeyUp:se,onChange:K=>j(K.target.value),onKeyDown:it,onFocus:G,onBlur:$})]}),jsxRuntime.jsx(Fo,{name:i,id:r??i,value:`[${k.join(",")}]`}),pe,Ne,ne&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof c=="string"?c:c(e)}),u&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof u=="string"?u:u(e)})]})}function il({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
71
71
  ]+@[^@ \r
72
72
  ]+.[^@ \r
73
- ]+`,autoComplete:o="email",onValueChanged:r,...i}){return jsxRuntime.jsx(le,{icon:t,type:"email",autoComplete:o,pattern:n,value:e,onValueChanged:l=>{r&&r(l);},...i})}function ll({value:e,icon:t=freeSolidSvgIcons.faPhone,pattern:n=void 0,autoComplete:o="tel",onValueChanged:r,...i}){let a=l=>{r&&r(l);};return n==="mobiel"?n="/^(((\\+31|0|0031)6){1}[1-9]{1}[0-9]{7})$/i":n==="vast"&&(n="/^(((0)[1-9]{2}[0-9][-]?[1-9][0-9]{5})|((\\+31|0|0031)[1-9][0-9][-]?[1-9][0-9]{6}))$/"),jsxRuntime.jsx(le,{icon:t,type:"tel",autoComplete:o,pattern:n,value:e,onValueChanged:a,...i})}function pl({value:e,icon:t=freeSolidSvgIcons.faGlobe,pattern:n="^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",autoComplete:o="url",onValueChanged:r,...i}){return jsxRuntime.jsx(le,{icon:t,type:"url",autoComplete:o,pattern:n,value:e,onValueChanged:l=>{r&&r(l);},...i})}function gl({value:e,autoComplete:t="current-password",icon:n=freeSolidSvgIcons.faKey,name:o,id:r,label:i,required:a=!1,showRequiredOnLabel:l=!1,labelHidden:s=!1,size:c="m",direction:u="v",revealPasswordAllowed:p=!1,revealPasswordMsg:m="Toon wachtwoord",iconRevealed:f=freeSolidSvgIcons.faEye,errorMessage:d="",infoMessage:g,infoData:y,helpTag:h,onValueChanged:S,onBlur:v,onFocus:T,...R}){let[P,E]=Le__default.default.useState(!1),[N,L]=Le__default.default.useState(!1),[K,x]=Le__default.default.useState(!1),C=A=>{S&&S(A);},D=A=>{L(!0),y?setTimeout(()=>{let M=document.getElementById(r??o);document.activeElement!==M&&(x(!1),v&&v(A));},ge):(v&&v(A),x(!1));},O=A=>{T&&T(A,h),x(!0);},[F,H,I]=ke({icon:n,errorMessage:d,hasFocus:K,inputId:r??o,infoData:y,helpTag:h});return jsxRuntime.jsxs(ce,{inputId:r??o,label:i??o??r,direction:u,required:a,size:c,labelHidden:s,showRequiredOnLabel:l,controlClassName:F,children:[jsxRuntime.jsx(Qt,{size:c,name:o,id:r,required:a,autoComplete:t,type:P?"text":"password",value:e,onValueChanged:C,onBlur:D,onFocus:O,...R}),H,I,d&&N&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(e)}),g&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof g=="string"?g:g(e)}),p&&jsxRuntime.jsx(Lo,{size:c,direction:u,value:P,onValueChanged:E,label:m,labelHidden:!0,name:`cb-${o}-reveal-pw`})]})}function uc({content:e="",hideTagSelector:t=!1,hideAlignment:n=!1,hideLists:o=!1,hideLines:r=!1,hideFontColor:i=!1,hideHighlightColor:a=!1,hideUndoRedo:l=!1,hideFontStyling:s=!1,hideTables:c=!1,autoUrlConversion:u=!1,size:p="s",id:m,onChangeHtml:f,onChangeText:d,onChangeJson:g}){let y=m??`editor-${ct(0,999999999999)}`,h=react.useEditor({onUpdate({editor:S}){f&&f(S.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>")),d&&d(S.getText()),g&&g(S.getJSON());},extensions:[bl__default.default,El__default.default,xl__default.default.configure(),Rl__default.default.configure(),Al__default.default.configure(),Nl__default.default.configure(),extensionColor.Color.configure({types:[yi__default.default.name,hi__default.default.name]}),vl__default.default.configure(),Il__default.default.configure(),Ml__default.default.configure({autolink:u,openOnClick:u,linkOnPaste:u,HTMLAttributes:{target:"_blank"}}),Bl__default.default.configure({allowBase64:!0}),Cl__default.default.configure(),Pl__default.default.configure(),yi__default.default.configure(),$l__default.default.configure({multicolor:!0}),wl__default.default.configure({keepMarks:!0}),kl__default.default.configure({keepMarks:!0}),hi__default.default.configure(),Ol__default.default.configure(),_l__default.default.configure(),Xl__default.default.configure(),Dl__default.default.configure({types:["heading","paragraph"]}),Hl__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),Ll__default.default.configure(),Jl__default.default.configure(),Fl__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(pc,{editor:h,size:p,id:y,hideAlignment:n,hideFontColor:i,hideHighlightColor:a,hideFontStyling:s,hideLists:o,hideLines:r,hideTables:c,hideTagSelector:t,hideUndoRedo:l}),jsxRuntime.jsx("div",{className:"editor",children:jsxRuntime.jsx(react.EditorContent,{editor:h,className:"content p-1"})})]})}function pc({editor:e,size:t,id:n,hideTagSelector:o,hideAlignment:r,hideFontColor:i,hideHighlightColor:a,hideFontStyling:l,hideLists:s,hideLines:c,hideTables:u,hideUndoRedo:p}){let m=g=>g.reduce((y,h,S,v)=>(S<v.length-1?y.push(h,jsxRuntime.jsx(Ti,{mx:1},ct(0,999999999))):y.push(h),y),[]),f=Le__default.default.useMemo(()=>{let g=[];return l||g.push(jsxRuntime.jsx(mc,{size:t,editor:e,id:n},"1")),r||g.push(jsxRuntime.jsx(yc,{size:t,editor:e,id:n},"2")),c||g.push(jsxRuntime.jsx(Sc,{size:t,editor:e,id:n},"3")),s||g.push(jsxRuntime.jsx(hc,{size:t,editor:e,id:n},"4")),p||g.push(jsxRuntime.jsx(Tc,{size:t,editor:e,id:n},"5")),u||g.push(jsxRuntime.jsx(bc,{size:t,editor:e,id:n},"6")),g},[l,t,e,n,r,c,s,p,u]),d=Le__default.default.useMemo(()=>{let g=[];return i||g.push(jsxRuntime.jsx(gc,{editor:e,size:t,id:n},"1")),a||g.push(jsxRuntime.jsx(fc,{editor:e,size:t,id:n},"2")),o||g.push(jsxRuntime.jsx(dc,{editor:e,size:t,id:n},"3")),g},[n,t,e,i,a,o]);return e?jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:m(d)}),jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:m(f)})]}):jsxRuntime.jsx(Le__default.default.Fragment,{})}function mc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Bold (ctrl + B)",onToggle:()=>e.chain().focus().toggleBold().run(),toggled:e.isActive("bold"),disabled:!e.can().chain().focus().toggleBold().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBold})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Italic (ctrl + I)",onToggle:()=>e.chain().focus().toggleItalic().run(),toggled:e.isActive("italic"),disabled:!e.can().chain().focus().toggleItalic().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faItalic})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Underline (ctrl + U)",onToggle:()=>e.chain().focus().toggleUnderline().run(),toggled:e.isActive("underline"),disabled:!e.can().chain().focus().toggleUnderline().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faUnderline})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Strikethrough",onToggle:()=>e.chain().focus().toggleStrike().run(),toggled:e.isActive("strike"),disabled:!e.can().chain().focus().toggleStrike().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faStrikethrough})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Subscript",onToggle:()=>e.chain().focus().toggleSubscript().run(),toggled:e.isActive("subscript"),disabled:!e.can().chain().focus().toggleSubscript().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSubscript})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Superscript",onToggle:()=>e.chain().focus().toggleSuperscript().run(),toggled:e.isActive("superscript"),disabled:!e.can().chain().focus().toggleSuperscript().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSuperscript})})]})}function dc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState("paragraph"),i=Le__default.default.useMemo(()=>[{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}],[]),a=s=>{if(s==="paragraph")e.chain().focus().setParagraph().run(),r("paragraph");else if(s.startsWith("heading-")){let c=+s.replace("heading-","");e.chain().focus().toggleHeading({level:c}).run(),r(s);}};Le__default.default.useEffect(()=>{e.isActive("paragraph")?r("paragraph"):i.forEach(s=>{e.isActive("heading",{level:s.level})&&r(`heading-${s.level}`);});},[e,i]);let l="select ";return t==="s"?l+="is-small":t==="m"?l+="is-normal":t==="l"?l+="is-medium":t==="xl"&&(l+="is-large"),jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsxs("select",{name:`select-paragraph-or-heading-type-${n}`,id:`select-paragraph-or-heading-type-${n}`,value:o,onChange:s=>a(s.target.value),children:[jsxRuntime.jsx("option",{value:"",disabled:!0,children:"Selecteer type"}),jsxRuntime.jsx("option",{value:"paragraph",children:"paragraph"}),i.map(s=>jsxRuntime.jsx("option",{value:`heading-${s.level}`,children:s.name},s.name))]})})}function fc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState(e.getAttributes("textStyle").backgroundColor);Le__default.default.useEffect(()=>{r(e.getAttributes("highlight").color);},[e]);let i="input ";return t==="s"?i+="is-small":t==="m"?i+="is-normal":t==="l"?i+="is-medium":t==="xl"&&(i+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(w.Static,{size:t,children:jsxRuntime.jsx(Ie,{color:o,icon:freeSolidSvgIcons.faPaintRoller})})}),jsxRuntime.jsx("input",{name:`color-input-highlight-${n}`,id:`color-input-highlight-${n}`,className:i,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().toggleHighlight({color:a.target.value}).run(),value:o})]})}function gc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState(e.getAttributes("textStyle").color);Le__default.default.useEffect(()=>{r(e.getAttributes("textStyle").color);},[e]);let i="input ";return t==="s"?i+="is-small":t==="m"?i+="is-normal":t==="l"?i+="is-medium":t==="xl"&&(i+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(w.Static,{size:t,children:jsxRuntime.jsx(Ie,{color:o,icon:freeSolidSvgIcons.faFont})})}),jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx("input",{name:`color-input-text-${n}`,id:`color-input-text-${n}`,className:i,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().setColor(a.target.value).run(),value:o})})]})}function yc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Align left (ctrl + shift + L)",onToggle:()=>e.chain().focus().setTextAlign("left").run(),toggled:e.isActive({textAlign:"left"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignLeft})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Align center (ctrl + shift + E)",onToggle:()=>e.chain().focus().setTextAlign("center").run(),toggled:e.isActive({textAlign:"center"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignCenter})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Align right (ctrl + shift + R)",onToggle:()=>e.chain().focus().setTextAlign("right").run(),toggled:e.isActive({textAlign:"right"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignRight})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Justify (ctrl + shift + J)",onToggle:()=>e.chain().focus().setTextAlign("justify").run(),toggled:e.isActive({textAlign:"justify"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignJustify})})]})}function hc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Lijst met punten (unordered)",onToggle:()=>e.chain().focus().toggleBulletList().run(),toggled:e.isActive("bulletList"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListUl})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Lijst met nummers (ordered)",onToggle:()=>e.chain().focus().toggleOrderedList().run(),toggled:e.isActive("orderedList"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListOl})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Indent dit listitem",onToggle:()=>e.chain().focus().sinkListItem("listItem").run(),disabled:!e.can().sinkListItem("listItem"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faIndent})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Outdent dit listitem",onToggle:()=>e.chain().focus().liftListItem("listItem").run(),disabled:!e.can().liftListItem("listItem"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faOutdent})})]})}function Tc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"undo ( ctrl + z )",onToggle:()=>e.chain().focus().undo().run(),disabled:!e.can().chain().focus().undo().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateLeft})}),jsxRuntime.jsx(Y.OnOffItem,{title:"redo ( ctrl + shift + z )",onToggle:()=>e.chain().focus().redo().run(),disabled:!e.can().chain().focus().redo().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateRight})})]})}function Sc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().setHorizontalRule().run(),title:"Voeg een tussenlijn toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faGripLines})}),jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().setHardBreak().run(),title:"Voeg een extra witregel toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlusMinus})})]})}function bc({editor:e,size:t}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{size:t,children:jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),title:"Nieuwe tabel",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable})})}),jsxRuntime.jsx(Ti,{})]})}var Ti=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function Cc({value:e,label:t,errorMessage:n="",infoMessage:o=void 0,helpTag:r,id:i,name:a,spellCheck:l=!0,required:s=!1,showRequiredOnLabel:c=!1,autoComplete:u="off",placeholder:p,disabled:m=!1,form:f=void 0,readonly:d=!1,autofocus:g=!1,inputRef:y=void 0,max:h,min:S,title:v,size:T="m",alignment:R="l",direction:P="v",cols:E,rows:N=4,labelHidden:L=!1,loading:K=!1,infoData:x,onValueChanged:C,onChange:D,onBlur:O,onFocus:F,onKeyDown:H,onKeyUp:I}){let[A,M]=Le__default.default.useState(!1),[J,W]=Le__default.default.useState(!1),Q=ue=>{O&&O(ue),x?setTimeout(()=>{let Re=document.getElementById(i??a);document.activeElement!==Re&&(W(!1),O&&O(ue));},ge):(O&&O(ue),W(!1));},ae=ue=>{M(!0),F&&F(ue,r),W(!0);},se=ue=>{A||M(!0),D&&D(ue),C&&C(ue.target.value);},te=`textarea ${B(T)} ${oe(R)}`.trim(),ne=S?typeof S=="number"?S:+S:void 0,ye=h?typeof h=="number"?h:+h:void 0,be=Fe(x,J)?jsxRuntime.jsx("span",{className:"mx-1",children:_e(x,()=>{},r)}):void 0;return jsxRuntime.jsxs(ce,{label:t??a,required:s,labelHidden:L,inputId:i??a,direction:P,size:T,loading:K,showRequiredOnLabel:c,infoData:be,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:te,value:e,id:i??a,name:a,spellCheck:l,required:s,autoComplete:u,placeholder:p,disabled:m,form:f,readOnly:d,autoFocus:g,ref:y,maxLength:ye,minLength:ne,title:v,rows:N,cols:E,onChange:se,onBlur:Q,onFocus:ae,onKeyDown:H,onKeyUp:I}),A&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(e)}),o&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof o=="string"?o:o(e)})]})}function bi(){let e=Le__default.default.useRef(null),[t,n]=Le__default.default.useState(0),[o,r]=Le__default.default.useState(0),i=Le__default.default.useCallback((a=0)=>{if(e.current){let{selectionStart:l,selectionEnd:s}=e.current;n(l+a),r(s+a);}},[]);return Le__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,o);}),{start:t,end:o,ref:e,updateCaret:i}}function Xo({value:e="",characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:o,...r}){let{ref:i,updateCaret:a}=bi();return jsxRuntime.jsx(le,{inputRef:i,icon:n,type:"text",value:e,onValueChanged:s=>{if(t){let c=s;if(t==="0-9")c=s.replaceAll(/[^0-9]/g,"");else if(t==="a-z")c=s.toLowerCase().replaceAll(/[^a-z]/g,"");else if(t==="A-Z")c=s.toUpperCase().replaceAll(/[^A-Z]/g,"");else if(t==="a-Z")c=s.replaceAll(/[^a-zA-Z]/g,"");else if(t==="0-Z")c=s.replaceAll(/[^0-9a-zA-Z]/g,"");else if(typeof t=="string"){let u=t??"";c=s.split("").reduce((p,m)=>u.includes(m)?p+m:p,"");}else t instanceof RegExp&&(c=s.replaceAll(new RegExp(t,"g"),""));s=c;}o&&o(s),a();},...r})}function Rc({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...o}){let r=l=>{let s=l!==""?+l:NaN;n&&n(s),a(l);},[i,a]=Le__default.default.useState(e?.toString()??"");return Le__default.default.useEffect(()=>{e&&!isNaN(+e)?a(e.toString()):e===0?a("0"):e&&isNaN(+e)?a(""):e||a("");},[e]),jsxRuntime.jsx(le,{icon:t,type:"number",value:i,onValueChanged:r,...o})}function Ac({value:e,min:t=0,max:n=100,step:o=1,prefix:r="",suffix:i="",helpTag:a,errorMessage:l="",infoMessage:s=void 0,label:c,disabled:u=!1,title:p,name:m,size:f="m",required:d=!1,showRequiredOnLabel:g=!1,id:y,readonly:h=!1,form:S=void 0,inputRef:v,onBlur:T,onChange:R,onFocus:P,onKeyDown:E,onKeyUp:N,onValueChanged:L,direction:K="v",labelHidden:x=!1,infoData:C}){let[D,O]=Le__default.default.useState(!1),[F,H]=Le__default.default.useState(!1),[I,A]=Le__default.default.useState(!1),M=se=>{C?setTimeout(()=>{let te=document.getElementById(y??m);document.activeElement!==te&&(A(!1),T&&T(se));},ge):(T&&T(se),A(!1));},J=se=>{O(!0),P&&P(se,a),A(!0);},W=se=>{u||(D||O(!0),R&&R(se),L&&L(se.target.valueAsNumber));},Q=Le__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t,"--min-text":`"${r}${t}${i}"`,"--max":n,"--max-text":`"${r}${n}${i}"`,"--value":e,"--text-value":`${r}${e}${i}`}),[e,r,i,n,t]),ae=Fe(C,$e(I,F))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(C,()=>{},a)}):void 0;return jsxRuntime.jsxs(ce,{label:c??m,direction:K,labelHidden:x,required:d,showRequiredOnLabel:g,inputId:y??m,size:f,controlClassName:"control",setHovered:H,infoData:ae,children:[jsxRuntime.jsxs("div",{className:"range-slider",style:Q,children:[jsxRuntime.jsx("input",{type:"range",name:m,id:y??m,min:t,max:n,value:e,step:o,disabled:u,required:d,readOnly:h,form:S,ref:v,title:p,onBlur:M,onChange:W,onKeyDown:E,onKeyUp:N,onFocus:J}),jsxRuntime.jsxs("output",{children:[r,e,i]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),D&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}function kc({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:o,onJSDateTimeValueChanged:r,...i}){let a=s=>{n&&n(s),o&&o(new Date(s)),r&&r($.fromISO(s));},l="";return typeof e=="string"?l=e.length>10?e.substring(0,10):e:e instanceof Date?l=e.toISOString().substring(0,10):e instanceof $&&(l=e.ISO.substring(0,10)),jsxRuntime.jsx(le,{icon:t,type:"date",value:l,onValueChanged:a,...i})}function Bc({value:e,step:t=void 0,useSecAndMillis:n="none",icon:o=freeSolidSvgIcons.faCalendarDay,onValueChanged:r,onDateValueChanged:i,onJSDateTimeValueChanged:a,...l}){let s=p=>{if(p){if(typeof p=="string")return p}else return "";let m=p instanceof Date?$.fromDate(p):p,f=n==="both"?"yyyy-MM-dd'T'HH:mm:ss.SSS":n==="seconds"?"yyyy-MM-dd'T'HH:mm:ss":"yyyy-MM-dd'T'HH:mm";return m.toFormat(f)},c=p=>{if(p!==""&&(r&&r(p),i||a)){let m=$.fromISO(p);i&&i(m.JSDate),a&&a(m);}},u=s(e);return jsxRuntime.jsx(le,{step:t??n!=="none"?1:60,icon:o,type:"datetime-local",value:u,onValueChanged:c,...l})}function Lc({value:e,useSeconds:t=!1,useMillis:n=!1,icon:o=freeSolidSvgIcons.faClockFour,onValueChanged:r,onDateValueChanged:i,onJSDateTimeValueChanged:a,...l}){let s=p=>{if(p){if(typeof p=="string")return p}else return "";let m=[0,0,void 0,void 0];return p instanceof Date?(m[0]=p.getHours(),m[1]=p.getMinutes(),t&&(m[2]=p.getSeconds())):(m[0]=p.hour,m[1]=p.minute,t&&(m[2]=p.second)),m.filter(f=>!!f).map(f=>f?.toString().padStart(2,"0")).join(":")},c=p=>{if(r&&r(p),i||a){let m=parseInt(p.substring(0,2)),f=parseInt(p.substring(3,5)),d=parseInt(p.substring(6,8))??0,g=$.from({hour:m,minute:f,second:isNaN(d)?0:d});i&&i(g.JSDate),a&&a(g);}},u=s(e);return jsxRuntime.jsx(le,{step:t?1:60,icon:o,type:"time",value:u,onValueChanged:c,...l})}function Fc({labelHidden:e=!1,multiple:t=!1,placeholder:n,helpTag:o,errorMessage:r="",infoMessage:i=void 0,label:a,disabled:l=!1,keyboardType:s="none",title:c,name:u,required:p=!1,showRequiredOnLabel:m=!1,spellCheck:f=!1,id:d,autoComplete:g="off",max:y,min:h,readonly:S=!1,pattern:v=void 0,autofocus:T=!1,form:R=void 0,inputRef:P,onBlur:E,onChange:N,onFocus:L,onKeyDown:K,onKeyUp:x,onValueChanged:C,size:D="m",alignment:O="l",direction:F="v",value:H={files:[],path:""},icon:I=freeSolidSvgIcons.faFileUpload,boxed:A=!1,accept:M,capture:J=!1,noFilesTxt:W="Geen bestand(en) geselecteerd",chooseFileTxt:Q="Kies een bestand",infoData:ae,formatter:se=te=>te.files.length>0?te.files.map(ne=>ne.name).join(", "):W}){let[te,ne]=Le__default.default.useState(!1),[ye,be]=Le__default.default.useState(!1),[ue,Re]=Le__default.default.useState(!1),j=q=>{te||ne(!0),ae?setTimeout(()=>{let Z=document.getElementById(d??u);document.activeElement!==Z&&(be(!1),E&&E(q));},ge):(E&&E(q),be(!1));},k=q=>{ne(!0),L&&L(q,o),be(!0);},fe=q=>{let Z=Array.from(q.target.files??[]),it=q.target.value;te||ne(!0),N&&N(q),C&&C({files:Z,path:it});},z="file has-name";A?z+=" is-boxed":z+=" is-fullwidth",z+=B(D),z+=oe(O);let he=se(H),X,G=Fe(ae,$e(ye,ue))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(ae,()=>{},o)}):void 0;return I&&typeof I=="string"?X=jsxRuntime.jsx("i",{className:I}):I&&typeof I!="string"&&(X=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:I})),jsxRuntime.jsx(ce,{inputId:d??u,label:a??u,direction:F,labelHidden:e,required:p,size:D,showRequiredOnLabel:m,infoData:G,setHovered:Re,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:z,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:v,id:d??u,ref:P,accept:typeof M=="string"?M:M?.join(","),capture:J,name:u,value:"",spellCheck:f,autoComplete:g,required:p,type:"file",inputMode:s,title:c,multiple:t,max:y,maxLength:typeof y=="number"?y:void 0,minLength:typeof h=="number"?h:void 0,min:h,readOnly:S,autoFocus:T,form:R,placeholder:n,disabled:l,onKeyDown:K,onKeyUp:x,onBlur:j,onChange:fe,onFocus:k}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:X&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faFileUpload})}),jsxRuntime.jsx("span",{className:"file-label",children:Q??u})]}),jsxRuntime.jsx("span",{className:"file-name",children:he??W??""})]}),te&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof r=="string"?r:r(he)}),i&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof i=="string"?i:i(he)})]})})}function Xc({placeholder:e,helpTag:t,errorMessage:n="",infoMessage:o=void 0,label:r,disabled:i=!1,title:a,name:l,value:s=0,required:c=!1,showRequiredOnLabel:u=!1,spellCheck:p=!1,id:m,autoComplete:f="off",max:d,min:g,inputRef:y=void 0,readonly:h=!1,step:S=1,autofocus:v=!1,infoData:T,form:R=void 0,onBlur:P,onChange:E,onFocus:N,onKeyDown:L,onKeyUp:K,onValueChanged:x,size:C="m",alignment:D="l",direction:O="v",labelHidden:F=!1,loading:H=!1,icon:I=freeSolidSvgIcons.faCoins,suffix:A="",prefix:M="\u20AC ",decimalScale:J=2,decimalSeparator:W=",",groupSeparator:Q="."}){let[ae,se]=Le__default.default.useState(!1),[te,ne]=Le__default.default.useState(!1),[ye,be]=Le__default.default.useState(s.toString());Le__default.default.useEffect(()=>{be(s.toString());},[s]);let ue=X=>{ae||se(!0),T?setTimeout(()=>{let G=document.getElementById(m??l);document.activeElement!==G&&(ne(!1),P&&P(X));},ge):(P&&P(X),ne(!1));},Re=X=>{ne(!0),N&&N(X,t);},j=X=>{ae||se(!0),(!X||X==="")&&(X="0"),!X?.endsWith(W)&&x&&x(X?parseFloat(X.replace(W,".")):NaN),be(X??"");},k=n?"input is-danger":"input";k+=B(C),k+=oe(D),h&&(k+=" is-static");let[fe,z,he]=ke({icon:I,errorMessage:n,hasFocus:te,inputId:m??l,infoData:T,helpTag:t});return Q===W&&console.warn(`De groupSeparator en de decimalSeparator mogen NIET hetzelfde zijn: ('${Q}' === '${W}')`),jsxRuntime.jsxs(ce,{inputId:m??l,label:r??l??m,size:C,labelHidden:F,loading:H,direction:O,required:c,showRequiredOnLabel:u,controlClassName:fe,children:[jsxRuntime.jsx($c__default.default,{className:k,id:m??l,name:l,autoComplete:f,placeholder:e,disabled:i,spellCheck:p,required:c,groupSeparator:Q,decimalSeparator:W,decimalScale:J,decimalsLimit:J,value:ye,min:g,max:d,step:S,title:a,autoFocus:v,form:R,ref:y,suffix:A,prefix:M,onKeyDown:L,onKeyUp:K,onFocus:Re,onBlur:ue,onChange:E,onValueChange:j}),ae&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(s)}),o&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof o=="string"?o:o(s)}),z&&jsxRuntime.jsx("span",{className:"icon is-left",children:z}),he&&jsxRuntime.jsx("span",{className:"icon is-right",children:he})]})}function Kc({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarWeek,onValueChanged:r,...i}){let a=s=>{r&&r(s);},l="";if(e){let[s="0",c="1"]=e.split("-W");+c>53||+c<1?console.warn('WeekInput value should contain a valid week number, like "2021-W01"'):l=`${s}-W${c.padStart(2,"0")}`;}return jsxRuntime.jsx(le,{min:t,max:n,icon:o,type:"week",value:l,onValueChanged:a,...i})}function Gc({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarDays,onValueChanged:r,...i}){let a=s=>{r&&r(s);},l="";if(e){let[s="0",c="1"]=e.split("-");+c>12||+c<1?console.warn('MonthInput value should contain a valid month number (01-12), like "2021-01"'):l=`${s}-${c.padStart(2,"0")}`;}return jsxRuntime.jsx(le,{min:t,max:n,icon:o,type:"month",value:l,onValueChanged:a,...i})}function Yc(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 Ei({next:e,clearTime:t,del:n,defaultDismissTime:o=5e3,location:r,width:i="25%"}){let[a,l]=Le__default.default.useReducer(Yc,[]),[s,c]=Le__default.default.useState(void 0),[u,p]=Le__default.default.useState(void 0),[m,f]=Le__default.default.useState(t);Le__default.default.useEffect(()=>{e&&e.id!=s&&(c(e.id),l({type:"add",item:e}));},[s,e]),Le__default.default.useEffect(()=>{t!=m&&(l({type:"clear",item:void 0}),f(t));},[t,m]),Le__default.default.useEffect(()=>{if(n!=u){let g=a.find(y=>y.id===n);l({type:"remove",item:g}),p(n);}},[n,u,a]);let d="notifications-container"+(r&&r==="bottom"?" at-bottom":" at-top");return jsxRuntime.jsx("div",{className:d,"data-testid":"notifier-container",style:{width:i},children:a.map(g=>{let y=g.dismissAfter??g.dismissAfter??o;return jsxRuntime.jsx(we,{autoDismissAfter:y,color:g.color??"i",onDismiss:()=>l({type:"remove",item:g}),onClick:h=>g.onClick?g.onClick(g):l({type:"remove",item:g}),children:g.content},g.id)})})}var Uo=Le__default.default.createContext(null);Uo.displayName="NotifierContext";var _v=e=>{let[t,n]=Le__default.default.useState(void 0),[o,r]=Le__default.default.useState(void 0),[i,a]=Le__default.default.useState(new Date),l=Le__default.default.useCallback(p=>(p.id==null&&(p.id=Math.floor(Math.random()*1e7)),n(p),p.id),[n]),s=Le__default.default.useCallback(p=>{r(p);},[r]),c=Le__default.default.useCallback(()=>{n(void 0),r(void 0),a(new Date);},[r]),u={notify:l,remove:s,clear:c};return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(Ei,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:o,clearTime:i,location:e.location??"top"}),jsxRuntime.jsx(Uo.Provider,{value:u,children:e.children})]})};function $v(){let e=Le__default.default.useContext(Uo);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var Wo,qo=Le__default.default.createContext(null);qo.displayName="ConfirmContext";function Ri({children:e}){let[t,n]=Le__default.default.useReducer(Qc,eo);return jsxRuntime.jsxs(qo.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(eu,{}),e]})}var eo={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function Qc(e=eo,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 eo;default:return eo}}function jc(e="OK",t="Annuleren",n=void 0){let o=Le__default.default.useContext(qo);if(!o)throw new Error("useConfirm must be used inside a ConfirmProvider or DialogsProvider");let r=()=>{l(),Wo(!0);},i=()=>{l(),Wo(!1);},a=s=>(o.setState({...o.state,type:"SHOW",payload:{content:s},ok:e,cancel:t,others:n}),new Promise(function(c){Wo=c;})),l=()=>{o.setState({type:"HIDE",payload:void 0});};return {confirm:a,onConfirm:r,onCancel:i,confirmState:o.state}}function eu(){let{onConfirm:e,onCancel:t,confirmState:n}=jc(),o=vt(()=>t());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",ref:o,children:jsxRuntime.jsxs(Bt,{children:[typeof n.content=="string"&&jsxRuntime.jsx("p",{children:n?.content}),typeof n.content!="string"&&n?.content,jsxRuntime.jsxs(Pt,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(w.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(w.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}var no={show:!1,content:"",submit:"Ok",cancel:"Annuleren",value:"",inputProps:{name:"prompt-input",label:""}},Yo,Qo=Le__default.default.createContext(null);Qo.displayName="PromptContext";function Ni({children:e}){let[t,n]=Le__default.default.useReducer(tu,no);return jsxRuntime.jsxs(Qo.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(ou,{}),e]})}function tu(e=no,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,submit:t.ok??"Ok",cancel:t.cancel??"Annuleren",inputProps:t.payload?.inputProps?{...t.payload.inputProps}:e.inputProps};case"HIDE":return no;case"UPDATE":return {...e,value:t.payload?.value??""};default:return no}}function nu(e="OK",t="Annuleren",n={name:`prompt-input-${ct(0,999999)}`,label:""}){let o=Le__default.default.useContext(Qo);if(!o)throw new Error("usePrompt must be used inside a PromptProvider or DialogsProvider");let r=()=>{s(),Yo(o.state.value);},i=()=>{s(),Yo("");},a=c=>{o.setState({...o.state,type:"UPDATE",payload:{value:c}});},l=c=>(o.setState({...o.state,type:"SHOW",payload:{content:c,inputProps:{...o.state.inputProps,...n}},ok:e,cancel:t}),new Promise(function(u){Yo=u;})),s=()=>{o.setState({type:"HIDE",payload:void 0});};return {prompt:l,onSubmit:r,onCancel:i,onUpdate:a,promptState:o.state}}function ou(){let{onSubmit:e,onCancel:t,onUpdate:n,promptState:o}=nu(),r=vt(()=>t());return o.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",ref:r,children:jsxRuntime.jsxs(Bt,{children:[typeof o.content=="string"&&jsxRuntime.jsx("p",{children:o?.content}),typeof o.content!="string"&&o?.content,jsxRuntime.jsx(Xo,{...o.inputProps,value:o.value,onValueChanged:n}),jsxRuntime.jsxs(Pt,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(w.Success,{onClick:e,children:o.submit}),jsxRuntime.jsx(w.Danger,{onClick:t,children:o.cancel})]})]})})]}):null}var jo,tr=Le__default.default.createContext(null);tr.displayName="ActionSheetContext";function Ai({children:e}){let[t,n]=Le__default.default.useReducer(ru,ro);return jsxRuntime.jsxs(tr.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(au,{}),e]})}var ro={show:!1,content:"",buttons:[]};function ru(e=ro,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,buttons:t.buttons};case"HIDE":return ro;case"UPDATE":return {...e,value:t.payload?.value};default:return ro}}function iu(e=[]){let t=Le__default.default.useContext(tr);if(!t)throw new Error("useConfirm must be used inside a ConfirmProvider or DialogsProvider");let n=i=>{r(),jo(typeof i=="string"?i:i.value);},o=i=>(t.setState({...t.state,type:"SHOW",payload:{content:i},buttons:e}),new Promise(function(a){jo=a;})),r=()=>{t.setState({...t.state,type:"HIDE",payload:void 0});};return {actionSheet:o,onAction:n,actionSheetState:t.state}}function au(){let{onAction:e,actionSheetState:t}=iu(),n=vt(()=>e(""));return t.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",ref:n,children:jsxRuntime.jsxs(Bt,{children:[typeof t.content=="string"&&jsxRuntime.jsx("p",{children:t?.content}),typeof t.content!="string"&&t?.content,jsxRuntime.jsx(Pt,{alignment:"c",className:"mt-6",children:t.buttons.map(o=>{let r=typeof o!="string"&&o.color?o.color:"p",i=typeof o!="string"&&o.icon?o.icon:void 0,a="";return typeof o=="string"?a=o:typeof o.txt=="string"?a=o.txt:typeof o.txt=="function"?a=o.txt(o.value):a=JSON.stringify(o.value),jsxRuntime.jsxs(w,{onClick:()=>e(o),color:r,children:[i&&jsxRuntime.jsx(Ie,{icon:i}),a]},a)})})]})})]}):null}function dC({children:e}){return jsxRuntime.jsx(Ri,{children:jsxRuntime.jsx(Ni,{children:jsxRuntime.jsx(Ai,{children:e})})})}
73
+ ]+`,autoComplete:o="email",onValueChanged:r,...i}){return jsxRuntime.jsx(le,{icon:t,type:"email",autoComplete:o,pattern:n,value:e,onValueChanged:l=>{r&&r(l);},...i})}function ll({value:e,icon:t=freeSolidSvgIcons.faPhone,pattern:n=void 0,autoComplete:o="tel",onValueChanged:r,...i}){let a=l=>{r&&r(l);};return n==="mobiel"?n="/^(((\\+31|0|0031)6){1}[1-9]{1}[0-9]{7})$/i":n==="vast"&&(n="/^(((0)[1-9]{2}[0-9][-]?[1-9][0-9]{5})|((\\+31|0|0031)[1-9][0-9][-]?[1-9][0-9]{6}))$/"),jsxRuntime.jsx(le,{icon:t,type:"tel",autoComplete:o,pattern:n,value:e,onValueChanged:a,...i})}function pl({value:e,icon:t=freeSolidSvgIcons.faGlobe,pattern:n="^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",autoComplete:o="url",onValueChanged:r,...i}){return jsxRuntime.jsx(le,{icon:t,type:"url",autoComplete:o,pattern:n,value:e,onValueChanged:l=>{r&&r(l);},...i})}function gl({value:e,autoComplete:t="current-password",icon:n=freeSolidSvgIcons.faKey,name:o,id:r,label:i,required:a=!1,showRequiredOnLabel:l=!1,labelHidden:s=!1,size:c="m",direction:u="v",revealPasswordAllowed:p=!1,revealPasswordMsg:m="Toon wachtwoord",iconRevealed:f=freeSolidSvgIcons.faEye,errorMessage:d="",infoMessage:g,infoData:y,helpTag:h,onValueChanged:S,onBlur:v,onFocus:T,...R}){let[P,I]=Le__default.default.useState(!1),[N,L]=Le__default.default.useState(!1),[X,E]=Le__default.default.useState(!1),C=A=>{S&&S(A);},O=A=>{L(!0),y?setTimeout(()=>{let H=document.getElementById(r??o);document.activeElement!==H&&(E(!1),v&&v(A));},ge):(v&&v(A),E(!1));},D=A=>{T&&T(A,h),E(!0);},[B,z,x]=ke({icon:n,errorMessage:d,hasFocus:X,inputId:r??o,infoData:y,helpTag:h});return jsxRuntime.jsxs(ce,{inputId:r??o,label:i??o??r,direction:u,required:a,size:c,labelHidden:s,showRequiredOnLabel:l,controlClassName:B,children:[jsxRuntime.jsx(Qt,{size:c,name:o,id:r,required:a,autoComplete:t,type:P?"text":"password",value:e,onValueChanged:C,onBlur:O,onFocus:D,...R}),z,x,d&&N&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof d=="string"?d:d(e)}),g&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof g=="string"?g:g(e)}),p&&jsxRuntime.jsx(Lo,{size:c,direction:u,value:P,onValueChanged:I,label:m,labelHidden:!0,name:`cb-${o}-reveal-pw`})]})}function uc({content:e="",hideTagSelector:t=!1,hideAlignment:n=!1,hideLists:o=!1,hideLines:r=!1,hideFontColor:i=!1,hideHighlightColor:a=!1,hideUndoRedo:l=!1,hideFontStyling:s=!1,hideTables:c=!1,autoUrlConversion:u=!1,size:p="s",id:m,onChangeHtml:f,onChangeText:d,onChangeJson:g}){let y=m??`editor-${ct(0,999999999999)}`,h=react.useEditor({onUpdate({editor:S}){f&&f(S.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>")),d&&d(S.getText()),g&&g(S.getJSON());},extensions:[bl__default.default,El__default.default,xl__default.default.configure(),Rl__default.default.configure(),Al__default.default.configure(),Nl__default.default.configure(),extensionColor.Color.configure({types:[yi__default.default.name,hi__default.default.name]}),vl__default.default.configure(),Il__default.default.configure(),Ml__default.default.configure({autolink:u,openOnClick:u,linkOnPaste:u,HTMLAttributes:{target:"_blank"}}),Bl__default.default.configure({allowBase64:!0}),Cl__default.default.configure(),Pl__default.default.configure(),yi__default.default.configure(),$l__default.default.configure({multicolor:!0}),wl__default.default.configure({keepMarks:!0}),kl__default.default.configure({keepMarks:!0}),hi__default.default.configure(),Ol__default.default.configure(),_l__default.default.configure(),Xl__default.default.configure(),Dl__default.default.configure({types:["heading","paragraph"]}),Hl__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),Ll__default.default.configure(),Jl__default.default.configure(),Fl__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(pc,{editor:h,size:p,id:y,hideAlignment:n,hideFontColor:i,hideHighlightColor:a,hideFontStyling:s,hideLists:o,hideLines:r,hideTables:c,hideTagSelector:t,hideUndoRedo:l}),jsxRuntime.jsx("div",{className:"editor",children:jsxRuntime.jsx(react.EditorContent,{editor:h,className:"content p-1"})})]})}function pc({editor:e,size:t,id:n,hideTagSelector:o,hideAlignment:r,hideFontColor:i,hideHighlightColor:a,hideFontStyling:l,hideLists:s,hideLines:c,hideTables:u,hideUndoRedo:p}){let m=g=>g.reduce((y,h,S,v)=>(S<v.length-1?y.push(h,jsxRuntime.jsx(Ti,{mx:1},ct(0,999999999))):y.push(h),y),[]),f=Le__default.default.useMemo(()=>{let g=[];return l||g.push(jsxRuntime.jsx(mc,{size:t,editor:e,id:n},"1")),r||g.push(jsxRuntime.jsx(yc,{size:t,editor:e,id:n},"2")),c||g.push(jsxRuntime.jsx(Sc,{size:t,editor:e,id:n},"3")),s||g.push(jsxRuntime.jsx(hc,{size:t,editor:e,id:n},"4")),p||g.push(jsxRuntime.jsx(Tc,{size:t,editor:e,id:n},"5")),u||g.push(jsxRuntime.jsx(bc,{size:t,editor:e,id:n},"6")),g},[l,t,e,n,r,c,s,p,u]),d=Le__default.default.useMemo(()=>{let g=[];return i||g.push(jsxRuntime.jsx(gc,{editor:e,size:t,id:n},"1")),a||g.push(jsxRuntime.jsx(fc,{editor:e,size:t,id:n},"2")),o||g.push(jsxRuntime.jsx(dc,{editor:e,size:t,id:n},"3")),g},[n,t,e,i,a,o]);return e?jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:m(d)}),jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:m(f)})]}):jsxRuntime.jsx(Le__default.default.Fragment,{})}function mc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Bold (ctrl + B)",onToggle:()=>e.chain().focus().toggleBold().run(),toggled:e.isActive("bold"),disabled:!e.can().chain().focus().toggleBold().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBold})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Italic (ctrl + I)",onToggle:()=>e.chain().focus().toggleItalic().run(),toggled:e.isActive("italic"),disabled:!e.can().chain().focus().toggleItalic().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faItalic})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Underline (ctrl + U)",onToggle:()=>e.chain().focus().toggleUnderline().run(),toggled:e.isActive("underline"),disabled:!e.can().chain().focus().toggleUnderline().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faUnderline})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Strikethrough",onToggle:()=>e.chain().focus().toggleStrike().run(),toggled:e.isActive("strike"),disabled:!e.can().chain().focus().toggleStrike().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faStrikethrough})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Subscript",onToggle:()=>e.chain().focus().toggleSubscript().run(),toggled:e.isActive("subscript"),disabled:!e.can().chain().focus().toggleSubscript().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSubscript})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Superscript",onToggle:()=>e.chain().focus().toggleSuperscript().run(),toggled:e.isActive("superscript"),disabled:!e.can().chain().focus().toggleSuperscript().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faSuperscript})})]})}function dc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState("paragraph"),i=Le__default.default.useMemo(()=>[{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}],[]),a=s=>{if(s==="paragraph")e.chain().focus().setParagraph().run(),r("paragraph");else if(s.startsWith("heading-")){let c=+s.replace("heading-","");e.chain().focus().toggleHeading({level:c}).run(),r(s);}};Le__default.default.useEffect(()=>{e.isActive("paragraph")?r("paragraph"):i.forEach(s=>{e.isActive("heading",{level:s.level})&&r(`heading-${s.level}`);});},[e,i]);let l="select ";return t==="s"?l+="is-small":t==="m"?l+="is-normal":t==="l"?l+="is-medium":t==="xl"&&(l+="is-large"),jsxRuntime.jsx("div",{className:l,children:jsxRuntime.jsxs("select",{name:`select-paragraph-or-heading-type-${n}`,id:`select-paragraph-or-heading-type-${n}`,value:o,onChange:s=>a(s.target.value),children:[jsxRuntime.jsx("option",{value:"",disabled:!0,children:"Selecteer type"}),jsxRuntime.jsx("option",{value:"paragraph",children:"paragraph"}),i.map(s=>jsxRuntime.jsx("option",{value:`heading-${s.level}`,children:s.name},s.name))]})})}function fc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState(e.getAttributes("textStyle").backgroundColor);Le__default.default.useEffect(()=>{r(e.getAttributes("highlight").color);},[e]);let i="input ";return t==="s"?i+="is-small":t==="m"?i+="is-normal":t==="l"?i+="is-medium":t==="xl"&&(i+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(w.Static,{size:t,children:jsxRuntime.jsx(Ie,{color:o,icon:freeSolidSvgIcons.faPaintRoller})})}),jsxRuntime.jsx("input",{name:`color-input-highlight-${n}`,id:`color-input-highlight-${n}`,className:i,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().toggleHighlight({color:a.target.value}).run(),value:o})]})}function gc({editor:e,size:t,id:n}){let[o,r]=Le__default.default.useState(e.getAttributes("textStyle").color);Le__default.default.useEffect(()=>{r(e.getAttributes("textStyle").color);},[e]);let i="input ";return t==="s"?i+="is-small":t==="m"?i+="is-normal":t==="l"?i+="is-medium":t==="xl"&&(i+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(w.Static,{size:t,children:jsxRuntime.jsx(Ie,{color:o,icon:freeSolidSvgIcons.faFont})})}),jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx("input",{name:`color-input-text-${n}`,id:`color-input-text-${n}`,className:i,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().setColor(a.target.value).run(),value:o})})]})}function yc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Align left (ctrl + shift + L)",onToggle:()=>e.chain().focus().setTextAlign("left").run(),toggled:e.isActive({textAlign:"left"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignLeft})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Align center (ctrl + shift + E)",onToggle:()=>e.chain().focus().setTextAlign("center").run(),toggled:e.isActive({textAlign:"center"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignCenter})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Align right (ctrl + shift + R)",onToggle:()=>e.chain().focus().setTextAlign("right").run(),toggled:e.isActive({textAlign:"right"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignRight})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Justify (ctrl + shift + J)",onToggle:()=>e.chain().focus().setTextAlign("justify").run(),toggled:e.isActive({textAlign:"justify"}),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faAlignJustify})})]})}function hc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"Lijst met punten (unordered)",onToggle:()=>e.chain().focus().toggleBulletList().run(),toggled:e.isActive("bulletList"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListUl})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Lijst met nummers (ordered)",onToggle:()=>e.chain().focus().toggleOrderedList().run(),toggled:e.isActive("orderedList"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faListOl})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Indent dit listitem",onToggle:()=>e.chain().focus().sinkListItem("listItem").run(),disabled:!e.can().sinkListItem("listItem"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faIndent})}),jsxRuntime.jsx(Y.OnOffItem,{title:"Outdent dit listitem",onToggle:()=>e.chain().focus().liftListItem("listItem").run(),disabled:!e.can().liftListItem("listItem"),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faOutdent})})]})}function Tc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{title:"undo ( ctrl + z )",onToggle:()=>e.chain().focus().undo().run(),disabled:!e.can().chain().focus().undo().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateLeft})}),jsxRuntime.jsx(Y.OnOffItem,{title:"redo ( ctrl + shift + z )",onToggle:()=>e.chain().focus().redo().run(),disabled:!e.can().chain().focus().redo().run(),children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faRotateRight})})]})}function Sc({editor:e,size:t}){return jsxRuntime.jsxs(Y,{size:t,children:[jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().setHorizontalRule().run(),title:"Voeg een tussenlijn toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faGripLines})}),jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().setHardBreak().run(),title:"Voeg een extra witregel toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlusMinus})})]})}function bc({editor:e,size:t}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Y,{size:t,children:jsxRuntime.jsx(Y.OnOffItem,{onToggle:()=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),title:"Nieuwe tabel",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTable})})}),jsxRuntime.jsx(Ti,{})]})}var Ti=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function Cc({value:e,label:t,errorMessage:n="",infoMessage:o=void 0,helpTag:r,id:i,name:a,spellCheck:l=!0,required:s=!1,showRequiredOnLabel:c=!1,autoComplete:u="off",placeholder:p,disabled:m=!1,form:f=void 0,readonly:d=!1,autofocus:g=!1,inputRef:y=void 0,max:h,min:S,title:v,size:T="m",alignment:R="l",direction:P="v",cols:I,rows:N=4,labelHidden:L=!1,loading:X=!1,infoData:E,onValueChanged:C,onChange:O,onBlur:D,onFocus:B,onKeyDown:z,onKeyUp:x}){let[A,H]=Le__default.default.useState(!1),[J,W]=Le__default.default.useState(!1),Q=ue=>{D&&D(ue),E?setTimeout(()=>{let Re=document.getElementById(i??a);document.activeElement!==Re&&(W(!1),D&&D(ue));},ge):(D&&D(ue),W(!1));},ae=ue=>{H(!0),B&&B(ue,r),W(!0);},se=ue=>{A||H(!0),O&&O(ue),C&&C(ue.target.value);},te=`textarea ${M(T)} ${oe(R)}`.trim(),ne=S?typeof S=="number"?S:+S:void 0,ye=h?typeof h=="number"?h:+h:void 0,be=Fe(E,J)?jsxRuntime.jsx("span",{className:"mx-1",children:_e(E,()=>{},r)}):void 0;return jsxRuntime.jsxs(ce,{label:t??a,required:s,labelHidden:L,inputId:i??a,direction:P,size:T,loading:X,showRequiredOnLabel:c,infoData:be,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:te,value:e,id:i??a,name:a,spellCheck:l,required:s,autoComplete:u,placeholder:p,disabled:m,form:f,readOnly:d,autoFocus:g,ref:y,maxLength:ye,minLength:ne,title:v,rows:N,cols:I,onChange:se,onBlur:Q,onFocus:ae,onKeyDown:z,onKeyUp:x}),A&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(e)}),o&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof o=="string"?o:o(e)})]})}function bi(){let e=Le__default.default.useRef(null),[t,n]=Le__default.default.useState(0),[o,r]=Le__default.default.useState(0),i=Le__default.default.useCallback((a=0)=>{if(e.current){let{selectionStart:l,selectionEnd:s}=e.current;n(l+a),r(s+a);}},[]);return Le__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,o);}),{start:t,end:o,ref:e,updateCaret:i}}function Xo({value:e="",characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:o,...r}){let{ref:i,updateCaret:a}=bi();return jsxRuntime.jsx(le,{inputRef:i,icon:n,type:"text",value:e,onValueChanged:s=>{if(t){let c=s;if(t==="0-9")c=s.replaceAll(/[^0-9]/g,"");else if(t==="a-z")c=s.toLowerCase().replaceAll(/[^a-z]/g,"");else if(t==="A-Z")c=s.toUpperCase().replaceAll(/[^A-Z]/g,"");else if(t==="a-Z")c=s.replaceAll(/[^a-zA-Z]/g,"");else if(t==="0-Z")c=s.replaceAll(/[^0-9a-zA-Z]/g,"");else if(typeof t=="string"){let u=t??"";c=s.split("").reduce((p,m)=>u.includes(m)?p+m:p,"");}else t instanceof RegExp&&(c=s.replaceAll(new RegExp(t,"g"),""));s=c;}o&&o(s),a();},...r})}function Rc({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...o}){let r=l=>{let s=l!==""?+l:NaN;n&&n(s),a(l);},[i,a]=Le__default.default.useState(e?.toString()??"");return Le__default.default.useEffect(()=>{e&&!isNaN(+e)?a(e.toString()):e===0?a("0"):e&&isNaN(+e)?a(""):e||a("");},[e]),jsxRuntime.jsx(le,{icon:t,type:"number",value:i,onValueChanged:r,...o})}function Ac({value:e,min:t=0,max:n=100,step:o=1,prefix:r="",suffix:i="",helpTag:a,errorMessage:l="",infoMessage:s=void 0,label:c,disabled:u=!1,title:p,name:m,size:f="m",required:d=!1,showRequiredOnLabel:g=!1,id:y,readonly:h=!1,form:S=void 0,inputRef:v,onBlur:T,onChange:R,onFocus:P,onKeyDown:I,onKeyUp:N,onValueChanged:L,direction:X="v",labelHidden:E=!1,infoData:C}){let[O,D]=Le__default.default.useState(!1),[B,z]=Le__default.default.useState(!1),[x,A]=Le__default.default.useState(!1),H=se=>{C?setTimeout(()=>{let te=document.getElementById(y??m);document.activeElement!==te&&(A(!1),T&&T(se));},ge):(T&&T(se),A(!1));},J=se=>{D(!0),P&&P(se,a),A(!0);},W=se=>{u||(O||D(!0),R&&R(se),L&&L(se.target.valueAsNumber));},Q=Le__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t,"--min-text":`"${r}${t}${i}"`,"--max":n,"--max-text":`"${r}${n}${i}"`,"--value":e,"--text-value":`${r}${e}${i}`}),[e,r,i,n,t]),ae=Fe(C,$e(x,B))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(C,()=>{},a)}):void 0;return jsxRuntime.jsxs(ce,{label:c??m,direction:X,labelHidden:E,required:d,showRequiredOnLabel:g,inputId:y??m,size:f,controlClassName:"control",setHovered:z,infoData:ae,children:[jsxRuntime.jsxs("div",{className:"range-slider",style:Q,children:[jsxRuntime.jsx("input",{type:"range",name:m,id:y??m,min:t,max:n,value:e,step:o,disabled:u,required:d,readOnly:h,form:S,ref:v,title:p,onBlur:H,onChange:W,onKeyDown:I,onKeyUp:N,onFocus:J}),jsxRuntime.jsxs("output",{children:[r,e,i]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),O&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof l=="string"?l:l(e)}),s&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof s=="string"?s:s(e)})]})}function kc({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:o,onJSDateTimeValueChanged:r,...i}){let a=s=>{n&&n(s),o&&o(new Date(s)),r&&r(_.fromISO(s));},l="";return typeof e=="string"?l=e.length>10?e.substring(0,10):e:e instanceof Date?l=e.toISOString().substring(0,10):e instanceof _&&(l=e.ISO.substring(0,10)),jsxRuntime.jsx(le,{icon:t,type:"date",value:l,onValueChanged:a,...i})}function Bc({value:e,step:t=void 0,useSecAndMillis:n="none",icon:o=freeSolidSvgIcons.faCalendarDay,onValueChanged:r,onDateValueChanged:i,onJSDateTimeValueChanged:a,...l}){let s=p=>{if(p){if(typeof p=="string")return p}else return "";let m=p instanceof Date?_.fromDate(p):p,f=n==="both"?"yyyy-MM-dd'T'HH:mm:ss.SSS":n==="seconds"?"yyyy-MM-dd'T'HH:mm:ss":"yyyy-MM-dd'T'HH:mm";return m.toFormat(f)},c=p=>{if(p!==""&&(r&&r(p),i||a)){let m=_.fromISO(p);i&&i(m.JSDate),a&&a(m);}},u=s(e);return jsxRuntime.jsx(le,{step:t??n!=="none"?1:60,icon:o,type:"datetime-local",value:u,onValueChanged:c,...l})}function Lc({value:e,useSeconds:t=!1,useMillis:n=!1,icon:o=freeSolidSvgIcons.faClockFour,onValueChanged:r,onDateValueChanged:i,onJSDateTimeValueChanged:a,...l}){let s=p=>{if(p){if(typeof p=="string")return p}else return "";let m=[0,0,void 0,void 0];return p instanceof Date?(m[0]=p.getHours(),m[1]=p.getMinutes(),t&&(m[2]=p.getSeconds())):(m[0]=p.hour,m[1]=p.minute,t&&(m[2]=p.second)),m.filter(f=>!!f).map(f=>f?.toString().padStart(2,"0")).join(":")},c=p=>{if(r&&r(p),i||a){let m=parseInt(p.substring(0,2)),f=parseInt(p.substring(3,5)),d=parseInt(p.substring(6,8))??0,g=_.from({hour:m,minute:f,second:isNaN(d)?0:d});i&&i(g.JSDate),a&&a(g);}},u=s(e);return jsxRuntime.jsx(le,{step:t?1:60,icon:o,type:"time",value:u,onValueChanged:c,...l})}function Fc({labelHidden:e=!1,multiple:t=!1,placeholder:n,helpTag:o,errorMessage:r="",infoMessage:i=void 0,label:a,disabled:l=!1,keyboardType:s="none",title:c,name:u,required:p=!1,showRequiredOnLabel:m=!1,spellCheck:f=!1,id:d,autoComplete:g="off",max:y,min:h,readonly:S=!1,pattern:v=void 0,autofocus:T=!1,form:R=void 0,inputRef:P,onBlur:I,onChange:N,onFocus:L,onKeyDown:X,onKeyUp:E,onValueChanged:C,size:O="m",alignment:D="l",direction:B="v",value:z={files:[],path:""},icon:x=freeSolidSvgIcons.faFileUpload,boxed:A=!1,accept:H,capture:J=!1,noFilesTxt:W="Geen bestand(en) geselecteerd",chooseFileTxt:Q="Kies een bestand",infoData:ae,formatter:se=te=>te.files.length>0?te.files.map(ne=>ne.name).join(", "):W}){let[te,ne]=Le__default.default.useState(!1),[ye,be]=Le__default.default.useState(!1),[ue,Re]=Le__default.default.useState(!1),j=q=>{te||ne(!0),ae?setTimeout(()=>{let Z=document.getElementById(d??u);document.activeElement!==Z&&(be(!1),I&&I(q));},ge):(I&&I(q),be(!1));},k=q=>{ne(!0),L&&L(q,o),be(!0);},fe=q=>{let Z=Array.from(q.target.files??[]),it=q.target.value;te||ne(!0),N&&N(q),C&&C({files:Z,path:it});},V="file has-name";A?V+=" is-boxed":V+=" is-fullwidth",V+=M(O),V+=oe(D);let he=se(z),$,G=Fe(ae,$e(ye,ue))?jsxRuntime.jsx("span",{className:"mx-1",children:_e(ae,()=>{},o)}):void 0;return x&&typeof x=="string"?$=jsxRuntime.jsx("i",{className:x}):x&&typeof x!="string"&&($=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:x})),jsxRuntime.jsx(ce,{inputId:d??u,label:a??u,direction:B,labelHidden:e,required:p,size:O,showRequiredOnLabel:m,infoData:G,setHovered:Re,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:V,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:v,id:d??u,ref:P,accept:typeof H=="string"?H:H?.join(","),capture:J,name:u,value:"",spellCheck:f,autoComplete:g,required:p,type:"file",inputMode:s,title:c,multiple:t,max:y,maxLength:typeof y=="number"?y:void 0,minLength:typeof h=="number"?h:void 0,min:h,readOnly:S,autoFocus:T,form:R,placeholder:n,disabled:l,onKeyDown:X,onKeyUp:E,onBlur:j,onChange:fe,onFocus:k}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:$&&jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faFileUpload})}),jsxRuntime.jsx("span",{className:"file-label",children:Q??u})]}),jsxRuntime.jsx("span",{className:"file-name",children:he??W??""})]}),te&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof r=="string"?r:r(he)}),i&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof i=="string"?i:i(he)})]})})}function Xc({placeholder:e,helpTag:t,errorMessage:n="",infoMessage:o=void 0,label:r,disabled:i=!1,title:a,name:l,value:s=0,required:c=!1,showRequiredOnLabel:u=!1,spellCheck:p=!1,id:m,autoComplete:f="off",max:d,min:g,inputRef:y=void 0,readonly:h=!1,step:S=1,autofocus:v=!1,infoData:T,form:R=void 0,onBlur:P,onChange:I,onFocus:N,onKeyDown:L,onKeyUp:X,onValueChanged:E,size:C="m",alignment:O="l",direction:D="v",labelHidden:B=!1,loading:z=!1,icon:x=freeSolidSvgIcons.faCoins,suffix:A="",prefix:H="\u20AC ",decimalScale:J=2,decimalSeparator:W=",",groupSeparator:Q="."}){let[ae,se]=Le__default.default.useState(!1),[te,ne]=Le__default.default.useState(!1),[ye,be]=Le__default.default.useState(s.toString());Le__default.default.useEffect(()=>{be(s.toString());},[s]);let ue=$=>{ae||se(!0),T?setTimeout(()=>{let G=document.getElementById(m??l);document.activeElement!==G&&(ne(!1),P&&P($));},ge):(P&&P($),ne(!1));},Re=$=>{ne(!0),N&&N($,t);},j=$=>{ae||se(!0),(!$||$==="")&&($="0"),!$?.endsWith(W)&&E&&E($?parseFloat($.replace(W,".")):NaN),be($??"");},k=n?"input is-danger":"input";k+=M(C),k+=oe(O),h&&(k+=" is-static");let[fe,V,he]=ke({icon:x,errorMessage:n,hasFocus:te,inputId:m??l,infoData:T,helpTag:t});return Q===W&&console.warn(`De groupSeparator en de decimalSeparator mogen NIET hetzelfde zijn: ('${Q}' === '${W}')`),jsxRuntime.jsxs(ce,{inputId:m??l,label:r??l??m,size:C,labelHidden:B,loading:z,direction:D,required:c,showRequiredOnLabel:u,controlClassName:fe,children:[jsxRuntime.jsx($c__default.default,{className:k,id:m??l,name:l,autoComplete:f,placeholder:e,disabled:i,spellCheck:p,required:c,groupSeparator:Q,decimalSeparator:W,decimalScale:J,decimalsLimit:J,value:ye,min:g,max:d,step:S,title:a,autoFocus:v,form:R,ref:y,suffix:A,prefix:H,onKeyDown:L,onKeyUp:X,onFocus:Re,onBlur:ue,onChange:I,onValueChange:j}),ae&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(s)}),o&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof o=="string"?o:o(s)}),V&&jsxRuntime.jsx("span",{className:"icon is-left",children:V}),he&&jsxRuntime.jsx("span",{className:"icon is-right",children:he})]})}function Kc({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarWeek,onValueChanged:r,...i}){let a=s=>{r&&r(s);},l="";if(e){let[s="0",c="1"]=e.split("-W");+c>53||+c<1?console.warn('WeekInput value should contain a valid week number, like "2021-W01"'):l=`${s}-W${c.padStart(2,"0")}`;}return jsxRuntime.jsx(le,{min:t,max:n,icon:o,type:"week",value:l,onValueChanged:a,...i})}function Gc({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarDays,onValueChanged:r,...i}){let a=s=>{r&&r(s);},l="";if(e){let[s="0",c="1"]=e.split("-");+c>12||+c<1?console.warn('MonthInput value should contain a valid month number (01-12), like "2021-01"'):l=`${s}-${c.padStart(2,"0")}`;}return jsxRuntime.jsx(le,{min:t,max:n,icon:o,type:"month",value:l,onValueChanged:a,...i})}function Yc(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 Ei({next:e,clearTime:t,del:n,defaultDismissTime:o=5e3,location:r,width:i="25%"}){let[a,l]=Le__default.default.useReducer(Yc,[]),[s,c]=Le__default.default.useState(void 0),[u,p]=Le__default.default.useState(void 0),[m,f]=Le__default.default.useState(t);Le__default.default.useEffect(()=>{e&&e.id!=s&&(c(e.id),l({type:"add",item:e}));},[s,e]),Le__default.default.useEffect(()=>{t!=m&&(l({type:"clear",item:void 0}),f(t));},[t,m]),Le__default.default.useEffect(()=>{if(n!=u){let g=a.find(y=>y.id===n);l({type:"remove",item:g}),p(n);}},[n,u,a]);let d="notifications-container"+(r&&r==="bottom"?" at-bottom":" at-top");return jsxRuntime.jsx("div",{className:d,"data-testid":"notifier-container",style:{width:i},children:a.map(g=>{let y=g.dismissAfter??g.dismissAfter??o;return jsxRuntime.jsx(we,{autoDismissAfter:y,color:g.color??"i",onDismiss:()=>l({type:"remove",item:g}),onClick:h=>g.onClick?g.onClick(g):l({type:"remove",item:g}),children:g.content},g.id)})})}var Uo=Le__default.default.createContext(null);Uo.displayName="NotifierContext";var _v=e=>{let[t,n]=Le__default.default.useState(void 0),[o,r]=Le__default.default.useState(void 0),[i,a]=Le__default.default.useState(new Date),l=Le__default.default.useCallback(p=>(p.id==null&&(p.id=Math.floor(Math.random()*1e7)),n(p),p.id),[n]),s=Le__default.default.useCallback(p=>{r(p);},[r]),c=Le__default.default.useCallback(()=>{n(void 0),r(void 0),a(new Date);},[r]),u={notify:l,remove:s,clear:c};return jsxRuntime.jsxs(Le__default.default.Fragment,{children:[jsxRuntime.jsx(Ei,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:o,clearTime:i,location:e.location??"top"}),jsxRuntime.jsx(Uo.Provider,{value:u,children:e.children})]})};function $v(){let e=Le__default.default.useContext(Uo);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var Wo,qo=Le__default.default.createContext(null);qo.displayName="ConfirmContext";function Ri({children:e}){let[t,n]=Le__default.default.useReducer(Qc,eo);return jsxRuntime.jsxs(qo.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(eu,{}),e]})}var eo={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function Qc(e=eo,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 eo;default:return eo}}function jc(e="OK",t="Annuleren",n=void 0){let o=Le__default.default.useContext(qo);if(!o)throw new Error("useConfirm must be used inside a ConfirmProvider or DialogsProvider");let r=()=>{l(),Wo(!0);},i=()=>{l(),Wo(!1);},a=s=>(o.setState({...o.state,type:"SHOW",payload:{content:s},ok:e,cancel:t,others:n}),new Promise(function(c){Wo=c;})),l=()=>{o.setState({type:"HIDE",payload:void 0});};return {confirm:a,onConfirm:r,onCancel:i,confirmState:o.state}}function eu(){let{onConfirm:e,onCancel:t,confirmState:n}=jc(),o=vt(()=>t());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",ref:o,children:jsxRuntime.jsxs(Bt,{children:[typeof n.content=="string"&&jsxRuntime.jsx("p",{children:n?.content}),typeof n.content!="string"&&n?.content,jsxRuntime.jsxs(Pt,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(w.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(w.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}var no={show:!1,content:"",submit:"Ok",cancel:"Annuleren",value:"",inputProps:{name:"prompt-input",label:""}},Yo,Qo=Le__default.default.createContext(null);Qo.displayName="PromptContext";function Ni({children:e}){let[t,n]=Le__default.default.useReducer(tu,no);return jsxRuntime.jsxs(Qo.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(ou,{}),e]})}function tu(e=no,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,submit:t.ok??"Ok",cancel:t.cancel??"Annuleren",inputProps:t.payload?.inputProps?{...t.payload.inputProps}:e.inputProps};case"HIDE":return no;case"UPDATE":return {...e,value:t.payload?.value??""};default:return no}}function nu(e="OK",t="Annuleren",n={name:`prompt-input-${ct(0,999999)}`,label:""}){let o=Le__default.default.useContext(Qo);if(!o)throw new Error("usePrompt must be used inside a PromptProvider or DialogsProvider");let r=()=>{s(),Yo(o.state.value);},i=()=>{s(),Yo("");},a=c=>{o.setState({...o.state,type:"UPDATE",payload:{value:c}});},l=c=>(o.setState({...o.state,type:"SHOW",payload:{content:c,inputProps:{...o.state.inputProps,...n}},ok:e,cancel:t}),new Promise(function(u){Yo=u;})),s=()=>{o.setState({type:"HIDE",payload:void 0});};return {prompt:l,onSubmit:r,onCancel:i,onUpdate:a,promptState:o.state}}function ou(){let{onSubmit:e,onCancel:t,onUpdate:n,promptState:o}=nu(),r=vt(()=>t());return o.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",ref:r,children:jsxRuntime.jsxs(Bt,{children:[typeof o.content=="string"&&jsxRuntime.jsx("p",{children:o?.content}),typeof o.content!="string"&&o?.content,jsxRuntime.jsx(Xo,{...o.inputProps,value:o.value,onValueChanged:n}),jsxRuntime.jsxs(Pt,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(w.Success,{onClick:e,children:o.submit}),jsxRuntime.jsx(w.Danger,{onClick:t,children:o.cancel})]})]})})]}):null}var jo,tr=Le__default.default.createContext(null);tr.displayName="ActionSheetContext";function Ai({children:e}){let[t,n]=Le__default.default.useReducer(ru,ro);return jsxRuntime.jsxs(tr.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(au,{}),e]})}var ro={show:!1,content:"",buttons:[]};function ru(e=ro,t){switch(t.type){case"SHOW":return {...e,show:!0,content:t.payload?.content,buttons:t.buttons};case"HIDE":return ro;case"UPDATE":return {...e,value:t.payload?.value};default:return ro}}function iu(e=[]){let t=Le__default.default.useContext(tr);if(!t)throw new Error("useConfirm must be used inside a ConfirmProvider or DialogsProvider");let n=i=>{r(),jo(typeof i=="string"?i:i.value);},o=i=>(t.setState({...t.state,type:"SHOW",payload:{content:i},buttons:e}),new Promise(function(a){jo=a;})),r=()=>{t.setState({...t.state,type:"HIDE",payload:void 0});};return {actionSheet:o,onAction:n,actionSheetState:t.state}}function au(){let{onAction:e,actionSheetState:t}=iu(),n=vt(()=>e(""));return t.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",ref:n,children:jsxRuntime.jsxs(Bt,{children:[typeof t.content=="string"&&jsxRuntime.jsx("p",{children:t?.content}),typeof t.content!="string"&&t?.content,jsxRuntime.jsx(Pt,{alignment:"c",className:"mt-6",children:t.buttons.map(o=>{let r=typeof o!="string"&&o.color?o.color:"p",i=typeof o!="string"&&o.icon?o.icon:void 0,a="";return typeof o=="string"?a=o:typeof o.txt=="string"?a=o.txt:typeof o.txt=="function"?a=o.txt(o.value):a=JSON.stringify(o.value),jsxRuntime.jsxs(w,{onClick:()=>e(o),color:r,children:[i&&jsxRuntime.jsx(Ie,{icon:i}),a]},a)})})]})})]}):null}function dC({children:e}){return jsxRuntime.jsx(Ri,{children:jsxRuntime.jsx(Ni,{children:jsxRuntime.jsx(Ai,{children:e})})})}
74
74
 
75
75
  exports.AND = Fe;
76
76
  exports.ActionSheetProvider = Ai;
@@ -120,7 +120,7 @@ exports.IconText = ho;
120
120
  exports.Image = Zi;
121
121
  exports.Indicator = Fa;
122
122
  exports.Input = le;
123
- exports.JSDateTime = $;
123
+ exports.JSDateTime = _;
124
124
  exports.JSDuration = vr;
125
125
  exports.Kbd = vo;
126
126
  exports.Kbds = Xa;