loon-bulma-react 2023.2.11 → 2023.2.12
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 +4 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var Fa__default = /*#__PURE__*/_interopDefault(Fa);
|
|
|
63
63
|
var $a__default = /*#__PURE__*/_interopDefault($a);
|
|
64
64
|
var Gs__default = /*#__PURE__*/_interopDefault(Gs);
|
|
65
65
|
|
|
66
|
-
var Tt=(l=>(l.Primary="#0089b6",l.Info="#3b59ec",l.Link="2f47bc",l.Success="#519c43",l.Danger="#d91000",l.Warning="#eea720",l.Light="#f5f5f5",l.Dark="#363636",l))(Tt||{});function Zo({ratio:e="1by1",children:t,caption:n,className:o=""}){let i=`image is-${e} ${o}`.trim();return jsxRuntime.jsxs("figure",{className:i,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}function Qo({id:e,children:t,className:n="",styles:o}){let i=`block ${n}`.trim();return jsxRuntime.jsx("div",{className:i,style:o,id:e,children:t})}function Qt({id:e,children:t,className:n="",styles:o={},itemRef:i}){return jsxRuntime.jsx("div",{className:`bulma-box ${n}`.trim(),style:o,id:e,ref:i,children:t})}function ti({children:e,id:t,gap:n="3",multiline:o,centered:i,className:r,styles:a,itemRef:s}){let l="columns";return n==="s"?n="1":n==="m"?n="3":n==="l"?n="5":n==="xl"&&(n="7"),n!=="3"&&(l+=` is-${n} is-variable`),o&&(l+=" is-multiline"),i&&(l+=" is-centered"),r&&(l+=` ${r}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:l,style:a,id:t,ref:s,children:e})}var _=({children:e,className:t,styles:n,id:o,itemRef:i})=>jsxRuntime.jsx("div",{className:t,id:o,ref:i,children:jsxRuntime.jsx("div",{style:n,children:e})}),_e=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(_,{...e,className:t})};_e.Full=e=>jsxRuntime.jsx(_,{...e,className:`column is-full ${e.className??""}`.trim()});_e.Half=e=>jsxRuntime.jsx(_,{...e,className:`column is-half ${e.className??""}`.trim()});_e.Thirds={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-third ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-thirds ${e.className??""}`.trim()})};_e.Quarters={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-quarter ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-quarters ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-three-quarters ${e.className??""}`.trim()})};_e.Fifths={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-fifth ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-fifths ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-three-fifths ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(_,{...e,className:`column is-four-fifths ${e.className??""}`.trim()})};_e.Twelves={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-1 ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-2 ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-3 ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(_,{...e,className:`column is-4 ${e.className??""}`.trim()}),Five:e=>jsxRuntime.jsx(_,{...e,className:`column is-5 ${e.className??""}`.trim()}),Six:e=>jsxRuntime.jsx(_,{...e,className:`column is-6 ${e.className??""}`.trim()}),Seven:e=>jsxRuntime.jsx(_,{...e,className:`column is-7 ${e.className??""}`.trim()}),Eight:e=>jsxRuntime.jsx(_,{...e,className:`column is-8 ${e.className??""}`.trim()}),Nine:e=>jsxRuntime.jsx(_,{...e,className:`column is-9 ${e.className??""}`.trim()}),Ten:e=>jsxRuntime.jsx(_,{...e,className:`column is-10 ${e.className??""}`.trim()}),Eleven:e=>jsxRuntime.jsx(_,{...e,className:`column is-11 ${e.className??""}`.trim()}),Twelve:e=>jsxRuntime.jsx(_,{...e,className:`column is-12 ${e.className??""}`.trim()})};_e.displayName="Column";var Oe=({className:e,children:t,styles:n,size:o="s",id:i,itemRef:r})=>{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:i,ref:r,children:t})};Oe.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(Oe,{className:e,styles:n,size:"s",children:t});Oe.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(Oe,{className:e,styles:n,size:"m",children:t});Oe.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(Oe,{className:e,styles:n,size:"l",children:t});Oe.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(Oe,{className:e,styles:n,size:"xl",children:t});function oi({size:e="m",className:t,styles:n,id:o,children:i,itemRef:r}){let a="content ";return e==="s"?a+="is-small":e==="m"?a+="is-normal":e==="l"?a+="is-medium":e==="xl"&&(a+="is-large"),t&&(a+=" "+t),jsxRuntime.jsx("div",{className:a,style:n,id:o,ref:r,children:i})}function ri({children:e,alignment:t="l",className:n,styles:o,id:i,itemRef:r}){let a="container",s="footer mt-6";return t==="l"?a+=" has-text-left":t==="r"?a+=" has-text-right":a+=" has-text-centered",n&&(s+=` ${n}`),s=s.trim(),jsxRuntime.jsx("footer",{className:s,style:o,id:i,ref:r,children:jsxRuntime.jsx("div",{className:a,children:e})})}var wt=({children:e,heroColorFor:t,size:n,itemRef:o,id:i})=>{let r="hero is-bold";r+=t?` is-${t}`:" is-primary",n==="s"?r+=" is-small":n==="l"?r+=" is-medium":n==="xl"&&(r+=" is-large");let a=Ie__default.default.Children.map(e??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],s=>s);return jsxRuntime.jsx("header",{className:r,id:i,ref:o,children:a})},jt=({children:e})=>{let[t,n]=Ie__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})})]})})};jt.Button=({children:e,title:t,onClick:n})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,onClick:n,children:e});jt.Link=({children:e,title:t,to:n,target:o="_blank",rel:i="noopener"})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,href:n,target:o,rel:i,children:e});wt.Head=jt;wt.Body=({children:e})=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e})});var en=({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})});en.NavList=({children:e})=>jsxRuntime.jsx("ul",{children:e});en.NavItem=({children:e,to:t,active:n=void 0,target:o="_blank",title:i,rel:r="noopener"})=>jsxRuntime.jsx("li",{className:n?"is-active":void 0,title:i,children:jsxRuntime.jsx("a",{href:t,target:o,rel:r,className:"tab",children:e})});wt.Foot=en;function ai({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:i,isRounded:r,src:a}){let s=`image is-${e}`;return e==="square"&&(s=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:i,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:s,children:[jsxRuntime.jsx("img",{className:r&&e==="square"?"is-rounded":void 0,src:a,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function li({children:e,className:t,styles:n,id:o,itemRef:i}){let r="section";return t&&(r+=` ${t}`),jsxRuntime.jsx("section",{className:r,style:n,id:o,ref:i,children:e})}var mi=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let r=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${a}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let o=Ie__default.default.useMemo(()=>({maxWidth:typeof e.maxItemWidth=="number"?`${e.maxItemWidth}px`:e.maxItemWidth||null,minWidth:typeof e.minItemWidth=="number"?`${e.minItemWidth}px`:e.minItemWidth||null}),[e.maxItemWidth,e.minItemWidth]),i=Ie__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:i,id:e.id,ref:e.itemRef,children:Ie__default.default.Children.toArray(e.children).map((r,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:r},a))})},pi=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let i=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,r=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${i} ${r}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let o=Ie__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:Ie__default.default.Children.toArray(e.children).map((i,r)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:i},r))})},di={Horizontal:mi,Vertical:pi};function on({alignment:e="l",autoComplete:t="off",optionListId:n=void 0,autofocus:o=!1,disabled:i=!1,errorMessage:r="",infoMessage:a=void 0,form:s=void 0,helpTag:l,id:c,inputRef:d,keyboardType:m="text",max:p,min:u,name:f,pattern:g=void 0,placeholder:y,readonly:h=!1,required:v=!1,size:b="m",spellCheck:T=!1,step:P=1,title:C,type:A="text",value:N,className:H="",styles:V={},onBlur:I,onChange:x,onFocus:O,onKeyDown:B,onKeyUp:ae,onValueChanged:R}){let k=oe=>{i||(R&&R(oe.target.value),x&&x(oe));},X=r?"input is-danger":"input";return b==="s"?X+=" is-small":b==="l"?X+=" is-medium":b==="xl"&&(X+=" is-large"),e==="l"?X+=" has-text-left":e==="c"?X+=" has-text-centered":e==="r"&&(X+=" has-text-right"),h&&(X+=" is-static"),H&&(X+=` ${H}`),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:X,pattern:g,id:c??f,ref:d,name:f,value:N,spellCheck:T,autoComplete:t,required:v,type:A,title:C,max:p,maxLength:typeof p=="number"?p:void 0,minLength:typeof u=="number"?u:void 0,min:u,step:P,readOnly:h,autoFocus:o,form:s,inputMode:m,placeholder:y,disabled:i,style:V,list:n,onKeyDown:B,onKeyUp:ae,onBlur:I,onChange:k,onFocus:oe=>O&&O(oe,l)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof r=="string"?r:r(N)}),a&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof a=="string"?a:a(N)})]})}function F({direction:e="v",errorMessage:t="",showRequiredOnLabel:n=!1,icon:o=freeSolidSvgIcons.faKeyboard,id:i,label:r,labelHidden:a=!1,name:s,required:l=!1,loading:c=!1,size:d="m",value:m,optionList:p=[],onBlur:u,...f}){let g=P=>{h(!0),u&&u(P);},[y,h]=Ie__default.default.useState(!1),v;o&&(typeof o=="string"?v=jsxRuntime.jsx("i",{className:o}):v=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o}));let b;return t&&(typeof t=="string"?b=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t===""?freeSolidSvgIcons.faCheck:freeSolidSvgIcons.faTimes}):b=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t(m)===""?freeSolidSvgIcons.faCheck:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(ce,{size:d,inputId:i??s,label:r??s,direction:e,required:l,showRequiredOnLabel:n,controlClassName:`control ${o?"has-icons-left":""} ${t!==void 0?"has-icons-right":""}`,loading:c,children:[jsxRuntime.jsx(on,{required:l,name:s,size:d,onBlur:g,id:i,value:m,optionListId:p&&p.length>0?`${i??s}-option-list-id`:void 0,...f,errorMessage:t}),p&&p.length>0&&jsxRuntime.jsx("datalist",{id:`${i??s}-option-list-id`,children:p.map(P=>typeof P=="string"?jsxRuntime.jsx("option",{value:P},P):jsxRuntime.jsx("option",{value:P.value,children:P.label},P.value))}),v&&jsxRuntime.jsx("span",{className:"icon is-left",children:v}),b&&jsxRuntime.jsx("span",{className:"icon is-right",children:b})]})}function ce({children:e,controlClassName:t="control",direction:n,showRequiredOnLabel:o=!1,inputId:i,label:r,labelHidden:a=!1,required:s,size:l,loading:c=!1}){let d="is-normal";l==="s"?d+=" is-small":l==="l"?d+=" is-medium":l==="xl"&&(d+=" is-large");let m=`label ${d} ${a?"is-sr-only":""}`;return t=c?`${t} is-loading `:t,l==="xl"?t=`${t} is-large`:l==="l"?t=`${t} is-medium`:l==="s"?t=`${t} is-small`:t=`${t} is-normal`,n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal","data-testid":"input-container",children:[jsxRuntime.jsx("div",{className:`field-label ${d}`,children:jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,o&&s&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"})]})}),jsxRuntime.jsx("div",{className:"field-body",children:jsxRuntime.jsx("div",{className:"field",children:jsxRuntime.jsx("div",{className:t,children:e})})})]}):jsxRuntime.jsxs("div",{className:"field","data-testid":"input-container",children:[jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,o&&s&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:t,children:e})]})}function Xl(e=2e3){let[t,n]=Ie__default.default.useState(null),[o,i]=Ie__default.default.useState(!1),[r,a]=Ie__default.default.useState(null),s=d=>{clearTimeout(r),a(setTimeout(()=>i(!1),e)),i(d);};return {copy:d=>{"clipboard"in navigator?navigator.clipboard.writeText(d).then(()=>s(!0)).catch(m=>n(m)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{i(!1),n(null),clearTimeout(r);},error:t,copied:o}}function Kn(e,t={leading:!1,delay:500}){let[n,o]=Ie__default.default.useState(e),i=Ie__default.default.useRef(!1),r=Ie__default.default.useRef(void 0),a=Ie__default.default.useRef(!1),s=()=>window.clearTimeout(r.current);return Ie__default.default.useEffect(()=>{i.current&&(!a.current&&t.leading?(a.current=!0,o(e)):(s(),r.current=window.setTimeout(()=>{a.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),Ie__default.default.useEffect(()=>(i.current=!0,s),[]),[n,s]}function zl(e,t={leading:!1,delay:500}){let[n,o]=Ie__default.default.useState(e),i=Ie__default.default.useRef(null),r=Ie__default.default.useRef(!0),a=()=>window.clearTimeout(i.current??void 0);return Ie__default.default.useEffect(()=>a,[]),[n,l=>{a(),r.current&&t.leading?o(l):i.current=window.setTimeout(()=>{r.current=!0,o(l);},t.delay),r.current=!1;}]}function gi(e){let t=e.toLowerCase().split("+").map(r=>r.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},o=["alt","ctrl","meta","shift","mod"],i=t.find(r=>!o.includes(r));return {...n,key:i}}function yi(e,t){let{alt:n,ctrl:o,meta:i,mod:r,shift:a,key:s}=e,{altKey:l,ctrlKey:c,metaKey:d,shiftKey:m,key:p}=t;if(n!==l)return !1;if(r){if(!c&&!d)return !1}else if(o!==c||i!==d)return !1;return a!==m?!1:!!(s&&(p.toLowerCase()===s.toLowerCase()||t.code.replace("Key","").toLowerCase()===s.toLowerCase()))}function Wn(e){return t=>yi(gi(e),t)}function Gl(e){return t=>{e.forEach(([n,o])=>{Wn(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function hi(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Ul(e){Ie__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,i])=>{Wn(o)(n)&&hi(n)&&(n.preventDefault(),i(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function Dt(e){try{return JSON.parse(e)}catch(t){let n=t;throw new Error(`'deserializeJSON()' failed to deserialize the value: ${n.message}`,{...n})}}function Ot(e){try{return JSON.stringify(e)}catch(t){let n=t;throw new Error(`serializeJSON() failed to serialize the value: ${n.message}`,{...n})}}function tc({key:e,initialValue:t,deserialize:n=Dt,serialize:o=Ot}){let[i,r]=Ie__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.localStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useLocalStoredState failed to get the value: ${l.message}`),t}}),a=Ie__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[e,o,i]),s=Ie__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[e]);return [i,a,s]}function Gn({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){let[i,r]=Ie__default.default.useState(t!==void 0?t:n),a=s=>{r(s),o?.(s);};return e!==void 0?[e,o,!0]:[i,a,!1]}var Mt="dots";function Un({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:i=1,onChange:r=()=>{}}){let a=Math.max(Math.trunc(e),0),[s,l]=Gn({value:o,onChange:r,defaultValue:i,finalValue:i}),c=g=>{g<=0?l(1):g>a?l(a):l(g);},d=()=>c(s+1),m=()=>c(s-1),p=()=>c(1),u=()=>c(a);return {range:Ie__default.default.useMemo(()=>{if(t*2+3+n*2>=a)return Ve(1,a);let y=Math.max(s-t,n),h=Math.min(s+t,a-n),v=y>n+2,b=h<a-(n+1);if(!v&&b){let T=t*2+n+2;return [...Ve(1,T),Mt,...Ve(a-(n-1),a)]}if(v&&!b){let T=n+1+2*t;return [...Ve(1,n),Mt,...Ve(a-T,a)]}return [...Ve(1,n),Mt,...Ve(y,h),Mt,...Ve(a-n+1,a)]},[a,t,s,n]),active:s,setPage:c,next:d,prev:m,first:p,last:u}}function Ve(e,t){let n=t-e+1;return Array.from({length:n},(o,i)=>i+e)}function vi(e,t){let[n,o]=Ie__default.default.useState(e);return [n,r=>{o(typeof r<"u"?r:a=>a===t[0]?t[1]:t[0]);}]}function qn(e=!1){return vi(e,[!0,!1])}function pc(e,t){let[n,o]=t?t(e):[!0,""],[i,r]=Ie__default.default.useState(e??void 0),[a,s]=Ie__default.default.useState(n),[l,c]=Ie__default.default.useState(o),[d,m]=Ie__default.default.useState(n?e:void 0);return [{value:i,lastValidValue:d,valid:a,invalidMsg:l},u=>{let[f,g]=t?t(u):[!0,""];f&&m(u),s(f),c(g),r(u);}]}function yc({key:e,initialValue:t,deserialize:n=Dt,serialize:o=Ot}){let[i,r]=Ie__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.sessionStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useSessionStoredState failed to get the value: ${l.message}`),t}}),a=Ie__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[e,o,i]),s=Ie__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[e]);return [i,a,s]}var Yn=["mousedown","touchstart"];function Sc(e,t,n){let o=Ie__default.default.useRef();return Ie__default.default.useEffect(()=>{let i=r=>{let{target:a}=r??{};if(Array.isArray(n)){let s=a?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(a)&&a.tagName!=="HTML";n.every(c=>!!c&&!r.composedPath().includes(c))&&!s&&e();}else o.current&&!o.current.contains(a)&&e();};return (t||Yn).forEach(r=>document.addEventListener(r,i)),()=>{(t||Yn).forEach(r=>document.removeEventListener(r,i));}},[o,e,n,t]),o}function Qn(e,t,n){Ie__default.default.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t,n]);}function Pc({duration:e=500,axis:t="y",onScrollFinish:n,offset:o=0,cancelable:i=!0,isList:r=!1}={}){let a=Ie__default.default.useRef(0),s=Ie__default.default.useRef(0),l=Ie__default.default.useRef(!1),c=Ie__default.default.useRef(null),d=Ie__default.default.useRef(null),m=()=>{a.current&&cancelAnimationFrame(a.current);},p=Ie__default.default.useCallback(({alignment:f="start"}={})=>{l.current=!1,a.current&&m();let g=b=>b<.5?2*b*b:-1+(4-2*b)*b,y=Ci({parent:c.current,axis:t})??0,h=Pi({parent:c.current,target:d.current,axis:t,alignment:f,offset:o,isList:r})-(c.current?0:y);function v(){s.current===0&&(s.current=performance.now());let T=performance.now()-s.current,P=e===0?1:T/e,C=y+h*g(P);Ii({parent:c.current,axis:t,distance:C}),!l.current&&P<1?a.current=requestAnimationFrame(v):(typeof n=="function"&&n(),s.current=0,a.current=0,m());}v();},[t,e,r,o,n]),u=()=>{i&&(l.current=!0);};return Qn("wheel",u,{passive:!0}),Qn("touchmove",u,{passive:!0}),Ie__default.default.useEffect(()=>m,[]),{scrollableRef:c,targetRef:d,scrollIntoView:p,cancel:m}}var Pi=({axis:e,target:t,parent:n,alignment:o,offset:i,isList:r})=>{if(!t||!n&&typeof document>"u")return 0;let a=!!n,l=(n||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),d=m=>c[m]-l[m];if(e==="y"){let m=d("top");if(m===0)return 0;if(o==="start"){let u=m-i;return u<=c.height*(r?0:1)||!r?u:0}let p=a?l.height:window.innerHeight;if(o==="end"){let u=m+i-p+c.height;return u>=-c.height*(r?0:1)||!r?u:0}return o==="center"?m-p/2+c.height/2:0}if(e==="x"){let m=d("left");if(m===0)return 0;if(o==="start"){let u=m-i;return u<=c.width||!r?u:0}let p=a?l.width:window.innerWidth;if(o==="end"){let u=m+i-p+c.width;return u>=-c.width||!r?u:0}return o==="center"?m-p/2+c.width/2:0}return 0},Ci=({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:i}=document;return o[n]+i[n]},Ii=({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:i,documentElement:r}=document;i[o]=n,r[o]=n;}};function me({color:e,size:t="m",rotation:n=0,icon:o,flip:i=void 0,animate:r=void 0}){let a="icon",s="1x";switch(e==="s"?a+=" has-text-success":e==="d"?a+=" has-text-danger":e==="w"?a+=" has-text-warning":e==="p"?a+=" has-text-primary":e==="i"?a+=" has-text-info":e==="l"?a+=" has-text-link":e==="dark"?a+=" has-text-dark":e==="light"?a+=" has-text-light":e?.startsWith("is-")&&(a+=` ${e?.replace("is-","has-text-")}`),t){case"s":s="sm",a+=" is-small";break;case"m":s="1x",a+=" is-normal";break;case"l":s="2x",a+=" is-medium";break;case"xl":s="3x",a+=" is-large";break}return typeof o=="string"?jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:s,rotation:n===0?void 0:n,flip:i,spin:r==="spin",pulse:r==="pulse"})})}function cn({icon:e,size:t="m",color:n,rotation:o=0,flip:i=void 0,animate:r=void 0,allowWrap:a=!1,children:s}){let l="icon-text";return n==="s"?l+=" has-text-success":n==="d"?l+=" has-text-danger":n==="w"?l+=" has-text-warning":n==="p"?l+=" has-text-primary":n==="i"?l+=" has-text-info":n==="l"&&(l+=" has-text-link"),jsxRuntime.jsxs("span",{className:l,role:"icon-with-text",style:{flexWrap:a?void 0:"nowrap"},children:[jsxRuntime.jsx(me,{icon:e,size:t,color:n,rotation:o,flip:i,animate:r}),jsxRuntime.jsx("span",{children:s})]})}function Ei({colors:e=[],icons:t,sizes:n=[]}){let o=Ie__default.default.useMemo(()=>n&&n.length>=t.length?[...n]:Array(t.length).fill("s"),[n,t]),i=Ie__default.default.useMemo(()=>e&&e.length>=t.length?[...e]:Array(t.length).fill("p"),[e,t]),r=l=>l==="s"?" has-text-success":l==="d"?" has-text-danger":l==="w"?" has-text-warning":l==="p"?" has-text-primary":l==="i"?" has-text-info":l==="l"?" has-text-link":l==="dark"?" has-text-dark":l==="light"?" has-text-light":l?.startsWith("is-")?` ${l?.replace("is-","has-text-")}`:"p",a=l=>{switch(l){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"}},s=Ie__default.default.useMemo(()=>t.map((l,c)=>{let d=`${a(o[c])} ${r(i[c])}`;return typeof l=="string"?jsxRuntime.jsx("i",{className:`${l} ${d}`}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:l,className:d})}),[t,i,o]);return jsxRuntime.jsx("span",{className:"icon-stack",role:"icons",children:jsxRuntime.jsx("span",{className:"fa-stack",children:s})})}function mn({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:i=!1,hidePrev:r=!1,hideNext:a=!1,hideNumbers:s=!1,set:l=u=>{},first:c=()=>{},last:d=()=>{},prev:m=()=>{},next:p=()=>{}}){let u="pagination";return n==="s"?u+=" is-small":n==="m"?u+=" is-normal":n==="l"?u+=" is-medium":n==="xl"&&(u+=" is-large"),jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsxs("ul",{className:"pagination-list",children:[!o&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"eerste pagina",onClick:c,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardFast})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:m,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!s&&e.map((f,g)=>f==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},f+g):f!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${f}`,onClick:()=>l(f),children:f})},f):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${f}`,onClick:()=>l(f),children:f})},f)),!a&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:p,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:d,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}var D=class e{static DEFAULT_LOCALE=Intl.DateTimeFormat().resolvedOptions().locale;static DEFAULT_TIMEZONE=Intl.DateTimeFormat().resolvedOptions().timeZone;static MAX_DATE_NUM=864e13;static MAX_DATE=new Date(e.MAX_DATE_NUM);static defaultFormatOptions={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};IGNORE_SIGN="^";_date;_locale;formatOptions={};constructor(t,n,o={}){this._date=new Date(t),this._locale=n,this.formatOptions={...e.defaultFormatOptions,timeZone:e.DEFAULT_TIMEZONE,...o},Object.freeze(this);}toString(t=this.formatOptions){return this.intlDtf(t)}valueOf(){return this._date.valueOf()}intlDtf(t=this.formatOptions){return new Intl.DateTimeFormat(this._locale,{...t,timeZone:this.formatOptions.timeZone}).format(this._date)}get info(){return {year:{isLeapYear:this.isLeapYear,days:this.daysInYear,hours:this.daysInYear*24,minutes:this.daysInYear*24*60,seconds:this.daysInYear*24*60*60,milliseconds:this.daysInYear*24*60*60*1e3},month:{days:this.daysInMonth,hours:this.daysInMonth*24,minutes:this.daysInMonth*24*60,seconds:this.daysInMonth*24*60*60,milliseconds:this.daysInMonth*24*60*60*1e3}}}get isLeapYear(){let t=this._date.getFullYear();return t%4===0&&t%100!==0||t%400===0}get isAM(){return this._date.getHours()<12}get isPM(){return !this.isAM}get isDST(){let t=new Date(this._date.getFullYear(),0,1).getTimezoneOffset(),n=new Date(this._date.getFullYear(),6,1).getTimezoneOffset();return Math.max(t,n)!==this._date.getTimezoneOffset()}get isToday(){let t=new Date;return this._date.getDate()===t.getDate()&&this._date.getMonth()===t.getMonth()&&this._date.getFullYear()===t.getFullYear()}get JSDate(){return new Date(this._date)}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get timezoneLong(){return this.intlDtf({timeZoneName:"long"}).replaceAll(/[^A-Z\s-]/gi,"").replace("--","").trim()}get timezoneShort(){return this.intlDtf({timeZoneName:"short"}).replaceAll(/[^A-Z]/g,"")}get timezoneOffsetShortStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("+");return t.substring(n)}get timezoneOffsetLongStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("GMT");return t.substring(n)}get timezoneOffset(){let t=this.intlDtf({timeZoneName:"shortOffset"}),n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return this.intlDtf({hour:"2-digit",minute:"2-digit"})}get timeHMS(){return this.intlDtf({hour:"2-digit",minute:"2-digit",second:"2-digit"})}get monthLong(){return this.intlDtf({month:"long"})}get monthShort(){return this.intlDtf({month:"short"})}get dayLong(){return this.intlDtf({weekday:"long"})}get dayShort(){return this.intlDtf({weekday:"short"})}get dateLong(){return `${this.dayLong} ${this.day} ${this.monthLong} ${this.year}`}get dateShort(){return this.intlDtf({day:"2-digit",month:"2-digit",year:"numeric"})}get yr(){return this.year}get year(){return this._date.getFullYear()}get qr(){return this.quarter}get quarter(){return Math.floor(this._date.getMonth()/3+1)}get m(){return this.month}get month(){return this._date.getMonth()+1}get d(){return this.day}get day(){return this._date.getDate()}get weekDay(){return this._date.getDay()===0?7:this._date.getDay()}get hr(){return this.hour}get hour(){return this._date.getHours()}get min(){return this.minute}get minute(){return this._date.getMinutes()}get sec(){return this.second}get second(){return this._date.getSeconds()}get ms(){return this.millisecond}get millisecond(){return this._date.getMilliseconds()}get weekNr(){let t=new Date(Date.UTC(this._date.getFullYear(),this._date.getMonth(),this._date.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-n.getTime())/864e5+1)/7)}get millis(){return this.valueOf()}get daysInMonth(){return new Date(this._date.getFullYear(),this._date.getMonth()+1,0).getDate()}get daysInYear(){return this.isLeapYear?366:365}get yearToDate(){let n=[0,31,59,90,120,151,181,212,243,273,304,334][this._date.getMonth()]+this._date.getDate();return this.isLeapYear&&this.month>2?n+1:n}set(t,n=this._locale){let o={year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,millisecond:this.millisecond};return 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:i,hours:r,minutes:a,seconds:s,milliseconds:l}){let c=new Date(this.JSDate);return t&&(c=new Date(c.setFullYear(c.getFullYear()+t))),n&&(c=new Date(c.setMonth(c.getMonth()+n))),o&&(c=new Date(c.setDate(c.getDate()+o*7))),i&&(c=new Date(c.setDate(c.getDate()+i))),r&&(c=new Date(c.setHours(c.getHours()+r))),a&&(c=new Date(c.setMinutes(c.getMinutes()+a))),s&&(c=new Date(c.setSeconds(c.getSeconds()+s))),l&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+l))),e.fromDate(c,this._locale)}isBetween(t,n){let o=(typeof n=="boolean"?n:n?.[0])??!1,i=(typeof n=="boolean"?n:n?.[1])??!1,[r,a]=t.sort((s,l)=>s.valueOf()-l.valueOf());if(r.valueOf()===a.valueOf())throw new Error("dates must be different");return o&&i?r<=this._date&&this._date<=a:o&&!i?r<=this._date&&this._date<a:!o&&i?r<this._date&&this._date<=a:r<this._date&&this._date<a}isBefore(t,n=!1){return n?this._date>=t:this._date>t}isAfter(t,n=!1){return n?this._date<=t:this._date<t}hasSame(t,n="millisecond"){let o=new Date(t.valueOf());switch(n){case"year":return this.yr===o.getFullYear();case"month":return this.yr===o.getFullYear()&&this.m-1===o.getMonth();case"day":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate();case"hour":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours();case"minute":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes();case"second":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes()&&this.sec===o.getSeconds();case"millisecond":return this.valueOf()===o.valueOf();default:throw new Error(`invalid period '${n}' for hasSame()`)}}equals(t){if(t instanceof 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,n={}){return new e(new Date,t,n)}static epoch(t=e.DEFAULT_LOCALE,n={}){return new e(new Date(0),t,n)}static fromDate(t,n=e.DEFAULT_LOCALE,o={}){return new e(t,n,o)}static from(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date,{year:r,month:a,day:s,hour:l,minute:c,second:d,millisecond:m}={year:t.year??i.getFullYear(),month:t.month!=null?t.month==0?1:t.month:i.getMonth()+1,day:t.day??i.getDate(),hour:t.hour??i.getHours(),minute:t.minute??i.getMinutes(),second:t.second??i.getSeconds(),millisecond:t.millisecond??i.getMilliseconds()};if(a>12||a<1)throw new RangeError(`month value should be between 1 and 12, got ${a}`);if(l>23||l<0)throw new RangeError(`hour value should be between 0 and 23, got ${l}`);if(c>59||c<0)throw new RangeError(`minute value should be between 0 and 59, got ${c}`);if(d>59||d<0)throw new RangeError(`second value should be between 0 and 59, got ${d}`);if(m>999||m<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${m}`);let p=new Date(r,a,0),u=p.getDate();if(s>u||s<1)throw new RangeError(`day value should be between 1 and ${u} for ${p.toLocaleString(n,{month:"short"})} ${r}, got ${s}`);return new e(new Date(r,a-1,s,l,c,d,m),n,o)}static fromISO(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date(Date.parse(t));return new e(i,n,o)}static fromUTC(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date(Date.parse(t));return new e(i,n,o)}static fromMillis(t,n=e.DEFAULT_LOCALE,o={}){let i=typeof t=="string"?+t:t;if(isNaN(i))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(i>e.MAX_DATE_NUM||i<-e.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new e(new Date(i),n,o)}toFormat(t){if(typeof t!="string")return this.intlDtf(t);let n=this.formatBuilder(t);return n.includes("[y4]")&&(n=n.replaceAll("[y4]",this.yr+"")),n.includes("[y2]")&&(n=n.replaceAll("[y2]",this.yr.toString().substring(2))),n.includes("[m4]")&&(n=n.replaceAll("[m4]",this.monthLong)),n.includes("[m3]")&&(n=n.replaceAll("[m3]",this.monthShort)),n.includes("[m2]")&&(n=n.replaceAll("[m2]",this.intlDtf({month:"2-digit"}))),n.includes("[m1]")&&(n=n.replaceAll("[m1]",this.intlDtf({month:"numeric"}))),n.includes("[d4]")&&(n=n.replaceAll("[d4]",this.dayLong)),n.includes("[d3]")&&(n=n.replaceAll("[d3]",this.dayShort)),n.includes("[d2]")&&(n=n.replaceAll("[d2]",this.intlDtf({day:"2-digit"}))),n.includes("[d1]")&&(n=n.replaceAll("[d1]",this.day+"")),n.includes("[h2]")&&(n=n.replaceAll("[h2]",this.hr>12?`${this.hr-12<10?"0":""}${this.hr-12}`:`${this.hr<10?"0":""}${this.hr}`)),n.includes("[h1]")&&(n=n.replaceAll("[h1]",this.hr>12?(this.hr-12).toString():this.hr.toString())),n.includes("[H2]")&&(n=n.replaceAll("[H2]",`${this.hr<10?"0":""}${this.hr}`)),n.includes("[H1]")&&(n=n.replaceAll("[H1]",this.hr.toString())),n.includes("[M2]")&&(n=n.replaceAll("[M2]",`${this.minute<10?"0":""}${this.minute}`)),n.includes("[M1]")&&(n=n.replaceAll("[M1]",this.minute+"")),n.includes("[s2]")&&(n=n.replaceAll("[s2]",`${this.second<10?"0":""}${this.second}`)),n.includes("[s1]")&&(n=n.replaceAll("[s1]",this.second+"")),n.includes("[S3]")&&(n=n.replaceAll("[S3]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S2]")&&(n=n.replaceAll("[S2]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S1]")&&(n=n.replaceAll("[S1]",this.millisecond+"")),n.includes("[W2]")&&(n=n.replaceAll("[W2]",this.weekNr+"")),n.includes("[t2]")&&(n=n.replaceAll("[t2]",this.isAM?"AM":"PM")),n.includes("[t1]")&&(n=n.replaceAll("[t1]",this.isAM?"A":"P")),n.includes("[Z2]")&&(n=n.replaceAll("[Z2]",this.timezoneLong)),n.includes("[Z1]")&&(n=n.replaceAll("[Z1]",this.timezoneShort)),n.includes("[O3]")&&(n=n.replaceAll("[O3]",this.timezoneOffsetLongStr)),n.includes("[O2]")&&(n=n.replaceAll("[O2]",this.timezoneOffsetShortStr.replace("GMT",""))),n.includes("[O1]")&&(n=n.replaceAll("[O1]",this.timezoneOffset>0?`+${this.timezoneOffset}`:this.timezoneOffset<0?`${this.timezoneOffset}`:"")),n.replaceAll(this.IGNORE_SIGN,"").trim()}formatBuilder(t){let n="",o="",i=0,r=!1,a="ymdhHMsSWtZO";return (t+" ").split("").forEach(s=>{o===""?i=1:!r&&s===o&&a.includes(s)?i++:!r&&s===o&&!a.includes(s)?(i++,n+=o):r?r&&(n+=o,i=1):(n+=a.includes(o)?`[${o}${i}]`:o,i=1),s===this.IGNORE_SIGN&&(r=!r),o=s;}),n}};var eo=class{_jsd1;_jsd2;constructor(t,n=D.now()){this._jsd1=t instanceof Date?D.fromDate(t):t.clone(),this._jsd2=n instanceof Date?D.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={},i=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([a,s])=>{if(t.includes(a)){let l=0;for(;n>=i;)l++,n-=i;Object.assign(o,{[a]:l});}i/=s;}),Object.assign(o,{rest:n}),o}};function Gc(e){e=e.replaceAll(/[^0-9a-zA-Z]/g,"");let t=e.match(/[0-9]{9}/g);if(t){let n=[];for(let o of t){let i=0,r=9;for(let a of o.split(""))i+=parseInt(a)*r,r=r!==2?r-1:-1;i%11===0&&n.push(o);}return [n.length>0,n]}return [!!t,[]]}function Re(e){let t=typeof e!="string",n;typeof e=="string"?n=Di(e):n=e;let[o=255,i=255,r=255]=n,s=[o/255,i/255,r/255].map(c=>c<.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)),l=.02126*s[0]+.7152*s[1]+.0722*s[2];return isNaN(l)?[0,0,0]:l>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function Di(e){let t="#";if(e.startsWith("#")||(e="#"+e),!/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)|(^#[0-9A-F]{4}$)/i.test(e))throw new Error("Invalid hex-color: "+e);e.length===4?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===5?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===7?t=e:e.length===9&&(t=e.substring(0,7));let o=parseInt(t.substring(1,3),16),i=parseInt(t.substring(3,5),16),r=parseInt(t.substring(5,7),16),a=parseInt(t.substring(7,9),16);return [o,i,r,a]}function Zc(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=Oi.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,r=>(r.charCodeAt(0)-55).toString()),i=+o.slice(0,2);for(let r=2;r<o.length;r+=7)i=parseInt(i+o.substring(r,r+7),10)%97;return [i===1,i===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,t.message]}}var Oi=[{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 to([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function no(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function oo([e,t,n]){let o=n/100,i=t*Math.min(o,1-o)/100,r=a=>{let s=(a+e/30)%12,l=o-i*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return `#${r(0)}${r(8)}${r(4)}`}function io(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e),[n,o,i]=t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0];n/=255,o/=255,i/=255;let r=Math.max(n,o,i),a=Math.min(n,o,i),s=(r+a)/2,l=s,c=s;if(r!==a){let d=r-a;return l=c>.5?d/(2-r-a):d/(r+a),n===r?s=(o-i)/d+(o<i?6:0):o===r?s=(i-n)/d+2:i===r&&(s=(n-o)/d+4),[Math.round(360*(s/6)),Math.round(l*100),Math.round(c*100)]}else return [0,0,Math.round(c*100)]}function Qc(e){let[t,n,o]=e,i=t/255,r=n/255,a=o/255,s=Math.max(i,r,a),l=Math.min(i,r,a),c=(s+l)/2,d=c,m=c;if(s===l)return [0,0,Math.round(m*100)];let p=s-l;switch(d=m>=.5?p/(2-(s+l)):p/(s+l),s){case i:c=((r-a)/p+0)*60;break;case r:c=((a-i)/p+2)*60;break;case a:c=((i-r)/p+4)*60;break}return [Math.round(c),Math.round(d*100),Math.round(m*100)]}function jc(e){let[t,n,o]=e;n/=100,o/=100;let i=s=>(s+t/30)%12,r=n*Math.min(o,1-o),a=s=>o-r*Math.max(-1,Math.min(i(s)-3,Math.min(9-i(s),1)));return [255*a(0),255*a(8),255*a(4)]}function vt(e,t,n=!0){return Math.floor(Math.random()*(t-e+(n?1:-1)))+e+(n?0:1)}function tm(e,t){return Math.random()*(t-e)+e}function nm(e,t=2){if(t<1)return Math.round(e);let n=Math.pow(10,t);return Math.round(n*e)/n}var rm=(e=!1,t=!1)=>e===t?0:e?-1:1,am=(e=D.fromMillis(D.MAX_DATE_NUM),t=D.fromMillis(D.MAX_DATE_NUM))=>e.valueOf()-t.valueOf(),sm=(e="",t="")=>e<t?-1:e===t?0:1,ro=(e=1/0,t=1/0)=>e<t?-1:e===t?0:1;function Hi({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,narrow:i=!1,hoverable:r=!1,sticky:a="none",hidePagination:s=!1,hideSearch:l=!1,headerContent:c=void 0,footerContent:d=void 0,size:m="s",maxRows:p=20,searchPlaceholder:u="Zoek ...",rowIdentifier:f,onSearch:g=(C,A)=>A.filter(N=>JSON.stringify(N).toLowerCase().includes(C.toLowerCase())),onRowSelected:y,rowClass:h,renderWhenNoData:v=C=>C?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:b=(C,A,N)=>` ${C} van ${A}`,id:T,itemRef:P}){let C=t.sort((fe,Q)=>ro(fe.order??0,Q.order??0)),A=fe=>{ie(1),I(fe);},[N,H]=Ie__default.default.useState(()=>n||C.findIndex(fe=>fe.sort!==void 0)+1),[V,I]=Ie__default.default.useState(""),[x]=Kn(V,{delay:100}),O=[...V===""?e:g(x,e)];O.sort(C[Math.abs(N)-1]?.sort??(()=>0)),N<0&&O.reverse();let B=p===0?O.length:p,{range:ae,active:R,next:k,prev:X,first:oe,last:ue,setPage:ie}=Un({total:Math.ceil(O.length/B)}),se=O.slice(((R??1)-1)*B,(R??1)*B),U="table is-striped";o&&(U+=" is-narrow"),i||(U+=" is-fullwidth"),r&&(U+=" is-hoverable"),a!=="none"&&(U+=" is-sticky");let K=T??vt(0,999999999999).toString();return jsxRuntime.jsxs("table",{className:U,id:K,ref:P,children:[jsxRuntime.jsx(Fi,{sticky:a,cols:C,size:m,searchValue:V,filterCount:O.length,dataCount:e.length,hideSearch:l,onSearchValueChanged:A,searchPlaceholder:u,infoMessage:b,sortColNum:N,onSortIndexChanged:H,tableID:K,children:c}),se.length>0&&jsxRuntime.jsx(Ji,{rows:se,rowIdentifier:f,cols:C,onRowSelected:y,rowClass:h}),se.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{role:"no-rows-to-show-row",children:jsxRuntime.jsx("td",{colSpan:C.length,children:v(V!=="")})})}),jsxRuntime.jsx($i,{size:m,cols:C,currentPage:R??1,hidePagination:B===0?!0:s,range:ae,next:k,prev:X,first:oe,last:ue,set:ie,children:d})]})}function Ji({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:i=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(r=>{let a=typeof o=="function"?o(r):o,s=typeof n=="function"?n(r):r[n];return jsxRuntime.jsx("tr",{role:"row",className:a,onClick:l=>i(r,l),children:t.map((l,c)=>{if(l.hidden)return null;let d;typeof l.cellIdentifier=="function"?d=l.cellIdentifier(r):l.cellIdentifier?d=r[l.cellIdentifier]:d=`${s}-${c}`;let m=typeof l.columnClass=="function"?l.columnClass(r):l.columnClass;return l.alignment==="l"?m+=" has-text-left":l.alignment==="c"?m+=" has-text-centered":l.alignment==="r"&&(m+=" has-text-right"),jsxRuntime.jsx("td",{className:m,children:typeof l.value=="function"?l.value(r):r[l.value]},d)})},s)})})}function Fi({children:e=void 0,searchValue:t,filterCount:n,dataCount:o,searchPlaceholder:i,cols:r,size:a,sortColNum:s,hideSearch:l,sticky:c,tableID:d,onSortIndexChanged:m,onSearchValueChanged:p,infoMessage:u}){let f=(h,v)=>{let b=v+1,T=r[v];T&&T.sort&&(Math.abs(s)===b?m(s*-1):s!==b&&m(b));},g=l?r.length:Math.ceil(r.filter(h=>!h.hidden).length/2),y=l?0:r.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}),!l&&jsxRuntime.jsx("th",{colSpan:y,children:jsxRuntime.jsx(on,{size:a,type:"text",name:`lbr-datatable-search-${d}`,placeholder:i,value:t,onValueChanged:p,infoMessage:u(n,o,t)})})]}),jsxRuntime.jsx("tr",{role:"header-row",className:c==="header"?"is-sticky-row":void 0,children:r.map((h,v)=>{if(h.hidden)return null;let b=h.sort!==void 0,T=Math.abs(s)-1===v,P;h.header||h.header===""?P=h.header:typeof h.value!="string"?P=h.value.toString():P=h.value;let C="";h.alignment==="l"?C+=" has-text-left":h.alignment==="c"?C+=" has-text-centered":h.alignment==="r"&&(C+=" has-text-right");let A=freeSolidSvgIcons.faSort;return T&&s>0?A=freeSolidSvgIcons.faSortUp:T&&s<0&&(A=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{role:"sort-col",style:{cursor:b?"pointer":void 0},className:C,onClick:N=>f(N,v),children:[b&&jsxRuntime.jsx(cn,{icon:A,children:P}),!b&&jsxRuntime.jsx("span",{children:P})]},v)})})]})}function $i({size:e,children:t=void 0,hidePagination:n,cols:o,range:i,currentPage:r,next:a,prev:s,first:l,last:c,set:d}){return jsxRuntime.jsxs("tfoot",{children:[!n&&i.length>1&&jsxRuntime.jsx("tr",{role:"footer-row",children:jsxRuntime.jsx("td",{colSpan:o.filter(m=>!m.hidden).length,children:jsxRuntime.jsx(mn,{size:e,range:i,currentPage:r,next:a,prev:s,first:l,last:c,set:d})})}),t]})}var Te=({color:e="i",className:t="",children:n})=>{let o="help";return e==="p"?o+=" is-primary":e==="i"?o+=" is-info":e==="l"?o+=" is-link":e==="d"?o+=" is-danger":e==="s"?o+=" is-success":e==="w"?o+=" is-warning":e.startsWith("is-")&&(o+=` ${e}`),o=`${o} ${t}`.trim(),jsxRuntime.jsx("p",{className:o,children:n})};Te.Info=e=>jsxRuntime.jsx(Te,{color:"i",...e});Te.Link=e=>jsxRuntime.jsx(Te,{color:"l",...e});Te.Primary=e=>jsxRuntime.jsx(Te,{color:"p",...e});Te.Danger=e=>jsxRuntime.jsx(Te,{color:"d",...e});Te.Success=e=>jsxRuntime.jsx(Te,{color:"s",...e});Te.Warning=e=>jsxRuntime.jsx(Te,{color:"w",...e});function Xi({position:e="tr",color:t="l",title:n,children:o}){let i="badge";return e==="tr"||e==="top-right"?i+=" is-top-right":e==="tl"||e==="top-left"?i+=" is-top-left":e==="tc"||e==="top-center"?i+=" is-top-center":e==="bl"||e==="bottom-left"?i+=" is-bottom-left":e==="br"||e==="bottom-right"?i+=" is-bottom-right":e==="bc"||e==="bottom-center"?i+=" is-bottom-center":e==="lc"||e==="left-center"?i+=" is-left-center":(e==="rc"||e==="right-center")&&(i+=" is-right-center"),t==="p"?i+=" is-primary":t==="l"?i+=" is-link":t==="i"?i+=" is-info":t==="w"?i+=" is-warning":t==="d"?i+=" is-danger":t==="s"?i+=" is-success":t==="dark"?i+=" is-dark":t==="light"?i+=" is-light":t.startsWith("is-")&&(i+=` ${t}`),jsxRuntime.jsx("span",{className:i,title:n,children:o})}function pn({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function zi({keys:e,separator:t,className:n=""}){let o=e.map((i,r)=>r===e.length-1?jsxRuntime.jsx(pn,{children:i},i):jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx(pn,{children:i}),jsxRuntime.jsx("span",{children:t??"+"})]},i));return jsxRuntime.jsx("span",{className:n,children:o})}var Pe=({initialItem:e,children:t,className:n,style:o,onMenuItemClicked:i,itemRef:r})=>{let[a,s]=Ie__default.default.useState(e??""),l=m=>{i(m),s(m);},c=Ie__default.default.Children.map(t,m=>m.type===Pe.Item?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(dn,{...m.props,activeItem:a,onInternClick:l})}):m.type===Pe.ItemGroup?jsxRuntime.jsx(Ui,{...m.props,activeItem:a,onInternClick:l}):m.type===Pe.ExpandableItem?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(so,{...m.props,activeItem:a,onInternClick:l})}):m),d=`menu ${n}`.trim();return jsxRuntime.jsx("aside",{className:d,role:"menu",style:o,ref:r,children:c})};function Ui({label:e,children:t,activeItem:n,onInternClick:o}){return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e}),jsxRuntime.jsx("ul",{className:"menu-list",children:Ie__default.default.Children.map(t,i=>i.type===Pe.Item?jsxRuntime.jsx(dn,{...i.props,activeItem:n,onInternClick:o}):i.type===Pe.ExpandableItem?jsxRuntime.jsx(so,{...i.props,activeItem:n,onInternClick:o}):i)})]})}function so({label:e,onClick:t,onInternClick:n,children:o,startExpanded:i,activeItem:r}){let[a,s]=Ie__default.default.useState(i??!1),l=d=>{t&&t(e,d),s(!a);},c=Ie__default.default.Children.map(o,d=>d.type===Pe.Item?jsxRuntime.jsx(dn,{...d.props,activeItem:r,onInternClick:n}):d);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:l,children:[jsxRuntime.jsx(me,{color:"i",size:"s",icon:a?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e]})]}),a&&jsxRuntime.jsx("ul",{children:c})]})}function dn({name:e,activeItem:t,children:n,onInternClick:o,onClick:i}){let r=s=>{i&&i(a,s),o(a);},a=e??Ie__default.default.Children.toArray(n).filter(s=>typeof s=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:r,id:a,children:jsxRuntime.jsx("span",{className:t===a?"menu-list-item is-active":"menu-list-item",children:n})})}Pe.Item=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]});Pe.ItemGroup=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]});Pe.ExpandableItem=e=>jsxRuntime.jsx("div",{children:e.children});Pe.Label=({children:e})=>jsxRuntime.jsx("p",{className:"menu-label",children:e});var Se=({id:e,children:t,title:n,size:o="m",color:i="i",icon:r=void 0,collapsable:a=!1,startCollapsed:s=!1,itemRef:l,onDismiss:c})=>{let[d,m]=qn(!s),p="message";i==="i"?p+=" is-info":i==="s"?p+=" is-success":i==="w"?p+=" is-warning":i==="d"?p+=" is-danger":i==="l"?p+=" is-link":i==="p"&&(p+=" is-primary");let u;return r===void 0&&i==="w"?u=freeSolidSvgIcons.faExclamation:r===void 0&&i==="d"?u=freeSolidSvgIcons.faExclamationTriangle:r===void 0&&i==="s"?u=freeSolidSvgIcons.faCheck:r===void 0?u=freeSolidSvgIcons.faInfo:u=r,o==="s"?p+=" is-small":o==="m"?p+=" is-normal":o==="l"?p+=" is-medium":o==="xl"&&(p+=" is-large"),jsxRuntime.jsxs("article",{className:p,id:e,ref:l,children:[jsxRuntime.jsxs("div",{className:"message-header","data-testid":"message-header",onClick:()=>a&&m(),style:{cursor:a?"pointer":"default"},children:[jsxRuntime.jsxs("p",{children:[a&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("span",{className:"icon mr-1",children:[d&&jsxRuntime.jsx(me,{icon:freeSolidSvgIcons.faChevronCircleUp}),!d&&jsxRuntime.jsx(me,{icon:freeSolidSvgIcons.faChevronCircleDown})]})}),jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(me,{icon:u})}),n]}),c&&jsxRuntime.jsx("button",{className:"delete"})]}),!a&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t}),a&&d&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t})]})};Se.Primary=e=>jsxRuntime.jsx(Se,{...e,color:"p"});Se.Success=e=>jsxRuntime.jsx(Se,{...e,color:"s"});Se.Danger=e=>jsxRuntime.jsx(Se,{...e,color:"d"});Se.Warning=e=>jsxRuntime.jsx(Se,{...e,color:"w"});Se.Info=e=>jsxRuntime.jsx(Se,{...e,color:"i"});Se.Link=e=>jsxRuntime.jsx(Se,{...e,color:"l"});var et=({size:e="m",itemRef:t,children:n,onOpened:o,onDismiss:i,helpTag:r})=>{Ie__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),o&&o(r),()=>document.documentElement.classList.remove("is-clipped")),[r,o]);let a="800px";e==="s"?a="600px":e==="m"?a="800px":e==="l"?a="1000px":e==="xl"?a="1200px":typeof e=="string"&&(a=e);let s=Ie__default.default.Children.map(n,l=>l?l.type===et.Head?jsxRuntime.jsx(nr,{...l.props}):l.type===et.Body?jsxRuntime.jsx(fn,{...l.props}):l.type===et.Foot?jsxRuntime.jsx(or,{...l.props}):jsxRuntime.jsx(fn,{children:l}):null)?.sort((l,c)=>l.type.name==="InternHead"?-1:l.type.name==="InternBody"&&c.type.name==="InternHead"?1:l.type.name==="InternBody"&&c.type.name==="InternFoot"?-1:l.type.name==="InternFoot"?1:0);return !s||s?.length===0?console.warn("<Modal> A Modal needs at least one child"):s.filter(l=>l.type===fn).length>1&&console.warn("<Modal> A modal should have only one body. Wrap multiple children into a <Modal.Body>-tag."),jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content bulma-box modal-container","data-testid":"modal-content",style:{width:a},ref:t,children:s}),jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:i})]})})},nr=({children:e})=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e}),fn=({children:e})=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e}),or=({children:e})=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e});et.Head=({children:e})=>jsxRuntime.jsx("div",{children:e});et.Body=({children:e})=>jsxRuntime.jsx("div",{children:e});et.Foot=({children:e})=>jsxRuntime.jsx("div",{children:e});var pe=({children:e,onDismiss:t,onClick:n,autoDismissAfter:o=-1,color:i="i",icon:r=void 0,id:a,itemRef:s})=>{let l=o>0?setTimeout(()=>d(null),o):null,[c]=Ie__default.default.useState(l);Ie__default.default.useEffect(()=>()=>c?clearTimeout(c):void 0,[c]);let d=f=>{c&&clearTimeout(c),t(f);},m=f=>{n?n(f):d(f);},p="notification";i==="i"?p+=" is-info":i==="s"?p+=" is-success":i==="w"?p+=" is-warning":i==="d"?p+=" is-danger":i==="l"?p+=" is-link":i==="p"&&(p+=" is-primary");let u;return r?u=r:i==="s"?u=freeSolidSvgIcons.faCheck:i==="w"?u=freeSolidSvgIcons.faExclamation:i==="d"?u=freeSolidSvgIcons.faExclamationTriangle:u=freeSolidSvgIcons.faInfo,jsxRuntime.jsxs("article",{className:p,onClick:m,id:a,ref:s,children:[jsxRuntime.jsx("button",{className:"delete",onClick:d}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(me,{icon:u})}),e]})]})};pe.Primary=e=>jsxRuntime.jsx(pe,{...e,color:"p"});pe.Danger=e=>jsxRuntime.jsx(pe,{...e,color:"d"});pe.Warning=e=>jsxRuntime.jsx(pe,{...e,color:"w"});pe.Success=e=>jsxRuntime.jsx(pe,{...e,color:"s"});pe.Link=e=>jsxRuntime.jsx(pe,{...e,color:"l"});pe.Info=e=>jsxRuntime.jsx(pe,{...e,color:"i"});function cr({color:e="i",size:t="m",prefix:n="",suffix:o="",max:i=100,value:r,title:a}){let s="progress";t==="s"?s+=" is-small":t==="m"?s+=" is-normal":t==="l"?s+=" is-medium":t==="xl"&&(s+=" is-large"),e==="s"?s+=" is-success":e==="i"?s+=" is-info":e==="p"?s+=" is-primary":e==="d"?s+=" is-danger":e==="l"?s+=" is-link":e==="w"?s+=" is-warning":e==="dark"?s+=" is-dark":e==="light"?s+=" is-light":e.startsWith("is-")&&(s+=` ${e}`);let l=r&&r!=="indeterminate"?`${n} ${r} ${o}`.trim():void 0,c=a?typeof a=="function"?a(r):a:l;return jsxRuntime.jsx("progress",{className:s,value:r==="indeterminate"?void 0:r,max:i,title:c,role:"progress",children:l})}function pr({rowIdentifier:e,columns:t,data:n,onRowSelected:o,tableRef:i,containerRef:r,id:a,hasFooter:s,...l}){let c=p=>p&&typeof p[0]=="string"?p.map(f=>({header:f,value:f})):p?p.map(f=>(!f.header&&f.header!==""&&typeof f.value=="string"&&(f.header=f.value),f)):Object.keys(n[0]).map(u=>({header:u,value:u})),d=(p,u)=>{o&&o(p,u);},m=c(t);return jsxRuntime.jsxs($,{tableRef:i,containerRef:r,...l,children:[jsxRuntime.jsx(ur,{columns:m}),jsxRuntime.jsx(dr,{columns:m,data:n,rowIdentifier:e,onRowSelected:(p,u)=>d(p,u)}),s&&jsxRuntime.jsx(fr,{columns:m})]})}function dr({columns:e,data:t,rowIdentifier:n,onRowSelected:o}){return jsxRuntime.jsx($.Body,{children:t.map(i=>jsxRuntime.jsx($.Row,{onClick:r=>o(i,r.currentTarget),children:e.map((r,a)=>jsxRuntime.jsx($.Cell,{children:typeof r.value=="function"?r.value(i):i[n]},a))},typeof n=="function"?n(i):i[n]))})}function ur({columns:e}){return jsxRuntime.jsx($.Head,{children:jsxRuntime.jsx($.Row,{children:e.map(t=>jsxRuntime.jsx($.TH,{children:t.header},t.header))})})}function fr({columns:e}){return jsxRuntime.jsx($.Foot,{children:jsxRuntime.jsx($.Row,{children:e.map(t=>jsxRuntime.jsx($.TH,{children:t.header},t.header))})})}var $=({id:e,containerRef:t,tableRef:n,scrollX:o=!1,striped:i=!1,bordered:r=!1,hoverable:a=!1,fullwidth:s=!1,narrow:l=!1,children:c,className:d=""})=>{let m="table";return i&&(m+=" is-striped"),r&&(m+=" is-bordered"),a&&(m+=" is-hoverable"),s&&(m+=" is-fullwidth"),l&&(m+=" is-narrow"),d&&(m+=` ${d}`),jsxRuntime.jsx("div",{ref:t,className:o?"table-container":void 0,children:jsxRuntime.jsx("table",{className:m,ref:n,id:e,children:c})})};$.Head=({children:e,className:t,...n})=>jsxRuntime.jsx("thead",{className:t,...n,children:e});$.Foot=({children:e,className:t,...n})=>jsxRuntime.jsx("tfoot",{className:t,...n,children:e});$.Body=({children:e,className:t,...n})=>jsxRuntime.jsx("tbody",{className:t,...n,children:e});$.Row=({children:e,className:t,...n})=>jsxRuntime.jsx("tr",{className:t,...n,children:e});$.Cell=({children:e,className:t,...n})=>jsxRuntime.jsx("td",{className:t,...n,children:e});$.HCell=({children:e,className:t,...n})=>jsxRuntime.jsx("th",{className:t,...n,children:e});$.ColGroup=({className:e,...t})=>jsxRuntime.jsx("colgroup",{className:e,...t});$.Col=e=>jsxRuntime.jsx("col",{...e});$.TR=$.Row;$.TD=$.Cell;$.TH=$.HCell;var gn=({size:e="m",id:t,itemRef:n,className:o,activeStepIndex:i,onChangeStep:r,children:a,freeStepChoice:s})=>{let[l,c]=Ie__default.default.useState(i??0),d=p=>{r&&r(p),c(p);};Ie__default.default.useEffect(()=>{c(i??0);},[i]);let m="steps is-animated";return e==="s"?m+=" is-small":e==="m"?m+=" is-normal":e==="l"?m+=" is-medium":e==="xl"&&(m+=" is-large"),m+=` ${o}`,jsxRuntime.jsx("div",{className:m,id:t,ref:n,children:Ie__default.default.Children.map(a,(p,u)=>{if(p.type&&p.type===gn.Item){let f=!0;return s==="allowed"||s==="down"&&u<l||s==="up"&&u>l?f=!1:f=u!=l+1&&u!=l-1,jsxRuntime.jsx(yr,{...p.props,activeStep:l,stepKey:u,disabled:f,onClick:d},p.props.title)}else return p})})};gn.Item=e=>jsxRuntime.jsx(Ie__default.default.Fragment,{children:e.title});function yr({disabled:e,stepKey:t,activeStep:n,status:o,marker:i,title:r,children:a,details:s,onClick:l}){let c=()=>{e||t===n||(l(t),m("active"));},[d,m]=Ie__default.default.useState(o??"pending");Ie__default.default.useEffect(function(){let g="pending";o==="error"?g="error":o==="completed"||n>t?g="completed":t===n&&(g="active"),m(g);},[o,t,n]);let p="step-item";n===t?p+=" is-active is-info":d==="error"?p+=" is-error is-danger":d==="completed"?p+=" is-completed is-success":p+=" is-pending";let u;return i?typeof i=="function"?u=i(d):u=i:u=jsxRuntime.jsx(Ie__default.default.Fragment,{children:t+1}),jsxRuntime.jsxs("div",{className:p,onClick:c,title:r,children:[jsxRuntime.jsx("div",{className:"step-marker",children:u}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:a}),s&&jsxRuntime.jsx("p",{children:s})]})]})}var po=({id:e,activeTab:t,initialTab:n,size:o,alignment:i,fullwidth:r,children:a,onTabChange:s})=>{let[l,c]=Ie__default.default.useState(t??n),d=(u,f)=>{f||(c(u),s(u));};Ie__default.default.useEffect(()=>{t!==void 0&&c(l);},[l,t]);let m="tabs is-boxed";o==="s"?m+=" is-small":o==="l"?m+=" is-medium":o==="xl"&&(m+=" is-large"),i==="c"?m+=" is-centered":i==="r"&&(m+=" is-right"),m+=r?" is-fullwidth":"";let p=Ie__default.default.Children.map(a,(u,f)=>jsxRuntime.jsx(hr,{isActive:l?l===u.props.tabId:f===0,disabled:u.props.disabled,onClick:()=>d(u.props.tabId,u.props.disabled),children:u}));return jsxRuntime.jsx("div",{className:m,id:e,children:jsxRuntime.jsx("ul",{children:p})})};function hr({children:e,isActive:t,disabled:n=!1,onClick:o}){let i="";return t&&(i+="is-active"),n&&(i+=" is-disabled"),jsxRuntime.jsx("li",{role:"tab",className:i,onClick:o,children:e})}function Tr({children:e,tabId:t,title:n,disabled:o=!1}){let i=Ie__default.default.Children.map(e,r=>!r||r===""?null:r);return jsxRuntime.jsx("span",{title:n,id:t?.toString()||void 0,className:"tab",children:i})}po.Item=Tr;function Et({children:e,color:t="l",size:n=void 0,light:o=!1,title:i,onDismiss:r}){let a="tag is-rounded";o&&(a+=" is-light"),t==="p"?a+=" is-primary":t==="l"?a+=" is-link":t==="i"?a+=" is-info":t==="d"?a+=" is-danger":t==="w"?a+=" is-warning":t==="s"?a+=" is-success":t==="dark"?a+=" is-dark":t==="light"?a+=" is-light":t.startsWith("is-")&&(a+=` ${t}`),n||(n="s"),n==="s"?a+=" is-normal":n==="m"?a+=" is-medium":n==="l"&&(a+=" is-large");let s="delete";return r&&n==="s"?s+=" is-small":r&&n==="m"?s+=" is-ismall":r&&n==="l"&&(s+=" is-normal"),jsxRuntime.jsxs("span",{className:a,title:i,children:[e,r&&jsxRuntime.jsx("button",{className:s,onClick:c=>r&&r(c)})]})}function br({children:e,merged:t=!1,size:n="s",alignment:o="l",className:i="",styles:r={},itemRef:a,id:s=void 0}){let l="tags";n==="s"?l+=" are-small":n==="m"?l+=" are-medium":n==="l"&&(l+=" are-large"),o==="l"?l+=" is-left":o==="r"?l+=" is-right":o==="c"&&(l+=" is-centered"),t&&(l+=" has-addons"),l=`${l} ${i}`.trim();let c=Ie__default.default.Children.map(e,d=>d.type===Et&&!d.props.size?jsxRuntime.jsx(Et,{size:n,...d.props}):d);return jsxRuntime.jsx("div",{className:l,style:r,ref:a,id:s,children:c})}var hn=({id:e,alignment:t="l",children:n,className:o})=>{let i="timeline";return t==="l"?i+=" is-ltr":t==="c"?i+=" is-centered":t==="r"&&(i+=" is-rtl"),i=`${i} ${i}`.trim(),jsxRuntime.jsx("div",{className:i,id:e,children:n})};hn.Point=({children:e,color:t="l",size:n="s",title:o,onClick:i})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:i,children:jsxRuntime.jsx(Et,{color:t,size:n,title:o,children:e})});hn.Item=({marker:e,heading:t,children:n,title:o,onClick:i})=>{let r="timeline-marker";return e?.color==="p"?r+=" is-primary":e?.color==="l"?r+=" is-link":e?.color==="i"?r+=" is-info":e?.color==="s"?r+=" is-success":e?.color==="d"?r+=" is-danger":e?.color==="w"?r+=" is-warning":e?.color==="light"?r+=" is-light":e?.color==="dark"&&(r+=" is-dark"),e?.icon&&(r+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:o,onClick:()=>i&&i(t),children:[jsxRuntime.jsx("div",{className:r,children:e?.icon&&jsxRuntime.jsx(me,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};var Pr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Cr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Ir=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Er=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),xr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Nr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e});var it=({children:e,id:t,itemRef:n,color:o,alignment:i="r",tag:r,onDismiss:a,onOpened:s})=>{Ie__default.default.useEffect(()=>s&&s(r),[s,r]);let l="quickview is-active";i==="l"?l+=" is-left":i==="r"&&(l+=" is-right");let c=null,d=null,m=null;return Ie__default.default.Children.forEach(e,p=>{if(Ie__default.default.isValidElement(p))switch(p.type){case it.Header:c=jsxRuntime.jsx(Sn,{...p.props,onDismiss:a,color:o});break;case it.Body:d=jsxRuntime.jsx(bn,{...p.props});break;case it.Footer:m=jsxRuntime.jsx(fo,{...p.props});break;default:d=jsxRuntime.jsx(bn,{children:p});break}}),jsxRuntime.jsxs("div",{id:t,className:l,ref:n,children:[c??jsxRuntime.jsx(Sn,{onDismiss:a}),d,m]})};function Sn({children:e,color:t="i",onDismiss:n}){let o="quickview-header";return t==="i"?o+=" is-info":t==="s"?o+=" is-success":t==="w"?o+=" is-warning":t==="d"?o+=" is-danger":t==="l"?o+=" is-link":t==="p"&&(o+=" is-primary"),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 bn=({children:e})=>jsxRuntime.jsx("section",{className:"quickview-body",children:e}),fo=({children:e})=>jsxRuntime.jsx("footer",{className:"quickview-footer",children:e});it.Header=Sn;it.Body=bn;it.Footer=fo;var M=({size:e="m",rounded:t=!1,alignment:n="l",value:o,initialValue:i,children:r,className:a,onToggle:s})=>{let[l,c]=Ie__default.default.useState(o??i);Ie__default.default.useEffect(()=>{o!==void 0&&l!==o&&c(o);},[o,l]);let d=f=>{l!=f&&(s&&s(f),c(f));},m=Ie__default.default.useId(),p=Ie__default.default.Children.map(r,(f,g)=>{let y=f.props?.identifier??Ie__default.default.Children.map(f.props.children,h=>typeof h=="string"?h:typeof h.type=="string"?h.type:m)?.join("")??""+g;return f.type===yo?jsxRuntime.jsx(Rr,{...f.props,toggled:l==y,identifier:y,onToggleClick:d}):f.type===ho?jsxRuntime.jsx(Ar,{...f.props,identifier:y}):f}),u="tabs is-toggle";return t&&(u+=" is-toggle-rounded"),e==="s"?u+=" is-small":e==="m"?u+=" is-normal":e==="l"?u+=" is-medium":e==="xl"&&(u+=" is-large"),n==="l"&&(u+=" is-left"),n==="c"?u+=" is-centered":n==="r"&&(u+=" is-right"),a&&(u+=" "+a),jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx("ul",{children:p})})},yo=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function Rr({disabled:e,title:t,toggled:n,children:o,identifier:i,onClick:r,onToggleClick:a}){let s="";return e&&(s+=" is-disabled"),n&&(s+=" is-active"),jsxRuntime.jsx("li",{title:t,className:s,onClick:()=>{r&&r(i),e||a(i);},id:i,children:jsxRuntime.jsx("span",{className:"tab",children:o})})}var ho=e=>jsxRuntime.jsx("button",{children:e.children});function Ar({title:e,identifier:t,onToggle:n,toggled:o=!1,disabled:i,children:r}){let[a,s]=Ie__default.default.useState(o);Ie__default.default.useEffect(()=>{o!==void 0&&s(o);},[o]);let l="";a&&(l+="is-active"),i&&(l+=" is-disabled");let c=()=>{i||(n&&n(!a,t),s(!a));};return jsxRuntime.jsx("li",{title:e,id:t,className:l,onClick:()=>c(),children:jsxRuntime.jsx("span",{className:"tab",children:r})})}M.Item=yo;M.OnOffItem=ho;var E=({color:e="p",size:t="m",loading:n=!1,disabled:o=!1,fullwidth:i=!1,type:r="button",styling:a="default",isStatic:s=!1,helpTag:l,onClick:c,onFocus:d,children:m,value:p,...u})=>{let f=b=>{n||o||a==="static"||a==="s"||c&&c(b);},g=b=>{d&&d(b,l);},y="button",h={};s||a==="static"||a==="s"?y+=" is-static":e==="p"?y+=" is-primary":e==="i"?y+=" is-info":e==="l"?y+=" is-link":e==="d"?y+=" is-danger":e==="s"?y+=" is-success":e==="w"?y+=" is-warning":e==="light"?y+=" is-light":e==="dark"?y+=" is-dark":e==="none"?y+="":y+=` ${e}`,t==="s"?y+=" is-small":t==="m"?y+=" is-normal":t==="l"?y+=" is-medium":t==="xl"&&(y+=" is-large"),n&&(y+=" is-loading"),i&&(y+=" is-fullwidth",h={justifyContent:"center"});let v=Ie__default.default.Children.map(m,b=>typeof b=="string"?jsxRuntime.jsx("span",{children:b}):b);return jsxRuntime.jsx("button",{style:h,className:y,type:r,disabled:o,onClick:f,onFocus:g,value:p,...u,children:v})};E.Static=e=>jsxRuntime.jsx(E,{...e,isStatic:!0});E.Primary=e=>jsxRuntime.jsx(E,{...e,color:"p"});E.Success=e=>jsxRuntime.jsx(E,{...e,color:"s"});E.Danger=e=>jsxRuntime.jsx(E,{...e,color:"d"});E.Warning=e=>jsxRuntime.jsx(E,{...e,color:"w"});E.Info=e=>jsxRuntime.jsx(E,{...e,color:"i"});E.Link=e=>jsxRuntime.jsx(E,{...e,color:"l"});E.Light=e=>jsxRuntime.jsx(E,{...e,color:"light"});E.Dark=e=>jsxRuntime.jsx(E,{...e,color:"dark"});function Ft({fullwidth:e=!1,children:t,color:n="l",onClick:o,...i}){let r="link-button";return n==="l"?r+=" is-link":n==="p"?r+=" is-primary":n==="s"?r+=" is-success":n==="d"?r+=" is-danger":n==="w"?r+=" is-warning":n==="i"&&(r+=" is-info"),e&&(r+=" is-fullwidth"),jsxRuntime.jsx("button",{className:r,onClick:o,...i,children:t})}function kr({color:e="l",href:t,target:n="_blank",id:o,rel:i="noopener",children:r,...a}){let s="link-button";return e==="l"?s+=" is-link":e==="p"?s+=" is-primary":e==="s"?s+=" is-success":e==="d"?s+=" is-danger":e==="w"?s+=" is-warning":e==="i"&&(s+=" is-info"),jsxRuntime.jsx("a",{className:s,href:t,target:n,id:o,rel:i,...a,children:r})}function $t({unevenSize:e=!1,...t}){return e?jsxRuntime.jsx(Dr,{...t}):jsxRuntime.jsx(Or,{...t})}function Dr({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0}){let i="field";return i+=t?" has-addons":" is-grouped",n==="l"?i+=" is-grouped-left":n==="c"?i+=" is-grouped-centered":n==="r"&&(i+=" is-grouped-right"),o&&(i+=` ${o}`),jsxRuntime.jsx("div",{className:i,children:Ie__default.default.Children.map(e,r=>jsxRuntime.jsx("div",{className:"control",children:r}))})}function Or({children:e,alignment:t="l",className:n=""}){let o="evenly-sized-buttons";t==="l"&&(o+=" is-left"),t==="c"?o+=" is-centered":t==="r"&&(o+=" is-right"),n&&(o+=` ${n}`);let i=Ie__default.default.Children.map(e,r=>r?.type===E?jsxRuntime.jsx(E,{...r.props,fullwidth:!0}):r?.type===E.Primary?jsxRuntime.jsx(E.Primary,{...r.props,fullwidth:!0}):r?.type===E.Info?jsxRuntime.jsx(E.Info,{...r.props,fullwidth:!0}):r?.type===E.Link?jsxRuntime.jsx(E.Link,{...r.props,fullwidth:!0}):r?.type===E.Success?jsxRuntime.jsx(E.Success,{...r.props,fullwidth:!0}):r?.type===E.Warning?jsxRuntime.jsx(E.Warning,{...r.props,fullwidth:!0}):r?.type===E.Danger?jsxRuntime.jsx(E.Danger,{...r.props,fullwidth:!0}):r?.type===E.Light?jsxRuntime.jsx(E.Light,{...r.props,fullwidth:!0}):r?.type===E.Dark?jsxRuntime.jsx(E.Dark,{...r.props,fullwidth:!0}):r?.type===Ft?jsxRuntime.jsx(Ft,{...r.props,fullwidth:!0}):r?.type==="button"?jsxRuntime.jsx("button",{...r.props,style:{...r.props.style,width:"100%"}}):null);return jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsx("div",{className:"evenly-sized-buttons-container",style:{display:"grid",direction:"ltr",gridTemplateColumns:`repeat(${Ie__default.default.Children.count(e)}, 1fr) `,gap:"0.5rem",gridTemplateRows:"1fr",gridAutoFlow:"column"},children:i})})}var Ke={transition:"background-color .2s ease-in-out, color .2s ease-in-out",fontSize:"0.7em",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"ellipsis"},We={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},dt={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},Le={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",color:"#888",paddingTop:"1em"},Xt={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em",color:"#888"},So={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},_t={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},bo={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function xt({event:e,options:t,onClick:n,desc:o}){let[i,r]=Ie__default.default.useState(!1),a=Ie__default.default.useCallback(Re,[]),s=Ie__default.default.useMemo(()=>{let c="p";e.evtColor?c=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(c=t.evtColor(e,i)),c==="p"?c="#0089b6":c==="i"?c="#3b59ec":c==="l"?c="2f47bc":c==="d"?c="#d91000":c==="s"?c="#519c43":c==="w"?c="#eea720":c==="dark"?c="#363636":c==="light"&&(c="#f5f5f5"),c+=i?"aa":"ff";let d=a(c);return {...Ke,paddingLeft:"1em",backgroundColor:c,color:d,cursor:n?"pointer":"default"}},[e,i,n,t,a]),l=Ie__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:c=>{c.preventDefault(),c.stopPropagation(),n&&n(e,c);},style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx("span",{children:o(e)})})}function at({event:e,options:t,onClick:n,desc:o}){let[i,r]=Ie__default.default.useState(!1),a=Ie__default.default.useCallback(Re,[]),s=Ie__default.default.useMemo(()=>{let d=i?"#f1f1f1":"#ffffff00",m=a(d);return {...Ke,backgroundColor:d,color:m,cursor:n?"pointer":"default"}},[i,n,a]),l=Ie__default.default.useMemo(()=>{let d="p";return e.evtColor?d=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(d=t.evtColor(e,i)),d==="p"?d="#0089b6":d==="i"?d="#3b59ec":d==="l"?d="2f47bc":d==="d"?d="#d91000":d==="s"?d="#519c43":d==="w"?d="#eea720":d==="dark"?d="#363636":d==="light"&&(d="#f5f5f5"),{...bo,backgroundColor:d}},[e,i,t]),c=Ie__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:c,onClick:d=>{d.preventDefault(),d.stopPropagation(),n&&n(e,d);},style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[jsxRuntime.jsx("span",{style:l}),o(e)]})}function Po({events:e,onEventClick:t,options:n}){let[o,i]=Ie__default.default.useState(()=>e.slice(4)),[r,a]=Ie__default.default.useState(!1),[s,l]=Ie__default.default.useState(!1);Ie.useEffect(()=>{i(e.slice(4));},[e]);let c=Ie__default.default.useMemo(()=>({...Ke,backgroundColor:r?"#f4f4f4":"transparent",color:r?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em"}),[r]),d=Ie__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[]),m=()=>{l(!s),a(!1);};return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[s&&o.map(p=>p.allDay?jsxRuntime.jsx(xt,{desc:u=>jsxRuntime.jsx("span",{children:typeof u.title=="string"?u.title:u.title()}),event:p,options:n?.allday,onClick:t},`${typeof p.id=="function"?p.id():p.id}`):jsxRuntime.jsx(at,{desc:u=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:u._startDateTime.timeHM}),jsxRuntime.jsx("span",{children:typeof u.title=="string"?u.title:u.title()})]}),event:p,options:n?.timed,onClick:t},`${typeof p.id=="function"?p.id():p.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:c,children:[!s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:d}),jsxRuntime.jsxs("span",{children:["Nog ",o.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:d}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var ve=class extends Ie__default.default.Component{static defaultProps={position:"bottom",color:"l",content:void 0,display:"inline"};state={active:!1};show=()=>this.setState({active:!0});hide=()=>this.setState({active:!1});render(){let{content:t,children:n,color:o,display:i}=this.props,{active:r}=this.state;if(t){let a="tooltip is-bottom",s="tooltip-arrow";return o==="p"?(a+=" is-primary",s+=" is-primary"):o==="i"?(a+=" is-info",s+=" is-info"):o==="l"?(a+=" is-link",s+=" is-link"):o==="d"?(a+=" is-danger",s+=" is-danger"):o==="s"?(a+=" is-success",s+=" is-success"):o==="w"?(a+=" is-warning",s+=" is-warning"):(a+=` ${o}`,s+=` ${o}`),jsxRuntime.jsxs("div",{className:i==="block"?"tooltip-wrapper-block":"tooltip-wrapper-inline",onMouseEnter:this.show,onMouseLeave:this.hide,children:[n,r&&jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:a,children:t}),jsxRuntime.jsx("div",{className:s})]})]})}else return jsxRuntime.jsx(Ie__default.default.Fragment,{children:n})}};function zt({options:e,date:t,onDayClick:n,onEventClick:o,events:i,tooltipColor:r="is-light",isCurrentMonth:a=!0}){let[s,l]=Ie__default.default.useState(!1),c=Ie__default.default.useCallback(Re,[]),d=Ie__default.default.useMemo(()=>({...Xt,backgroundColor:a?"transparent":"#f8f8f8",color:a?"#888888":"#bbbbbb"}),[a]),m=Ie__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let f="p";e?.today?.bgColor&&(f=e.today.bgColor(s,t)),f==="p"?f="#0089b6":f==="i"?f="#3b59ec":f==="l"?f="2f47bc":f==="d"?f="#d91000":f==="s"?f="#519c43":f==="w"?f="#eea720":f==="dark"?f="#363636":f==="light"&&(f="#f5f5f5");let g=c(f);return {..._t,backgroundColor:f,color:g}},[t,s,e?.today,c]),p=(f,g)=>{o&&o(f,g);},u=(f,g)=>{n&&n(f,g);};return jsxRuntime.jsxs("div",{style:d,onClick:f=>u(t,f),children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...So,cursor:n?"pointer":"default",backgroundColor:s?"#f4f4f4":"transparent",color:a?"#555555":"#bbbbbb"},children:[jsxRuntime.jsx("span",{style:t.isToday?m:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:a?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:i.map((f,g)=>{let y=`${typeof f.id=="function"?f.id():f.id}`??g;return f.allDay&&g<4?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(xt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:f,options:e?.event?.allday,onClick:p})},y):!f.allDay&&g<4?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(at,{desc:h=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:f,options:e?.event?.timed,onClick:p})},y):g===4&&i.length>5?jsxRuntime.jsx(Po,{events:i,onEventClick:p,options:e?.event},t.dateShort+"-more"):g===4&&f.allDay?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(xt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:f,options:e?.event?.allday,onClick:p})},y):g===4&&!f.allDay?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(at,{desc:h=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:f,options:e?.event?.timed,onClick:p})},y):null})})]})}function Io({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i=[]}){let r=d=>{let m=Math.ceil(d.weekNr/52*13),p=d.clone();for(;Math.ceil(p.weekNr/52*13)===m;)p=p.plus({days:-1});let u=d.clone();for(;Math.ceil(u.weekNr/52*13)===m;)u=u.plus({days:1});p=p.plus({days:1}),u=u.plus({days:-1});let f=i.map(h=>(h.allDay===void 0&&(h.allDay=!1),h._startDateTime||(h._startDateTime=h.startDateTime instanceof Date?D.fromDate(h.startDateTime,t?.locale):h.startDateTime.clone()),h._endDateTime&&!h._endDateTime&&(h._endDateTime=h.endDateTime instanceof Date?D.fromDate(h._endDateTime,t?.locale):h.endDateTime?.clone()),h)).filter(h=>h._startDateTime.isBetween([p,u])),g=p.clone(),y=[];for(;g<=u;){if(s.has(g.weekDay)){let h=g.startOf("day"),v=g.endOf("day"),b=f.filter(T=>T._startDateTime.isBetween([h,v])).sort((T,P)=>T.allDay&&!P.allDay?-1:!T.allDay&&P.allDay?1:T._startDateTime.valueOf()-P._startDateTime.valueOf());y.push([g,b]);}g=g.plus({days:1});}return y},a=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),s=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),l=r(a),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateColumns:`30px repeat(${s.size}, 1fr)`}),[s.size]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(Hr,{visibleDays:s,viewDate:a}),jsxRuntime.jsx(Jr,{visibleDays:s,viewDate:a,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function Hr({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=Ie__default.default.useMemo(()=>({...We}),[]),l=Ie__default.default.useMemo(()=>({...We}),[]);return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Jr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i}){let r=e.size,a=0;return jsxRuntime.jsx(Ie__default.default.Fragment,{children:i.map(([s,l])=>(a==r&&(a=0),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Fr,{weekNr:s.weekNr}),jsxRuntime.jsx(zt,{date:s,events:l,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o},s.ISO)]},s.ISO)))})}function Fr({weekNr:e}){let t=Ie__default.default.useMemo(()=>({...Le}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function Eo({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i=[]}){let r=d=>{let m=d.startOf("month").startOf("week").startOf("day"),p=d.endOf("month").endOf("week").plus({days:1}).startOf("day"),u=i.map(y=>(y.allDay===void 0&&(y.allDay=!1),y._startDateTime||(y._startDateTime=y.startDateTime instanceof Date?D.fromDate(y.startDateTime,t?.locale):y.startDateTime.clone()),y._endDateTime&&!y._endDateTime&&(y._endDateTime=y.endDateTime instanceof Date?D.fromDate(y._endDateTime,t?.locale):y.endDateTime?.clone()),y)).filter(y=>y._startDateTime.isBetween([m,p])),f=m.clone(),g=[];for(;f<p;){if(a.has(f.weekDay)){let y=f.startOf("day"),h=f.endOf("day"),v=u.filter(b=>b._startDateTime.isBetween([y,h])).sort((b,T)=>b.allDay&&!T.allDay?-1:!b.allDay&&T.allDay?1:b._startDateTime.valueOf()-T._startDateTime.valueOf());g.push([f,v]);}f=f.plus({days:1});}return g},a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),s=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),l=r(s),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[a.size]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx($r,{visibleDays:a,viewDate:s}),jsxRuntime.jsx(Xr,{visibleDays:a,viewDate:s,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function $r({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=Ie__default.default.useMemo(()=>({...We}),[]),l=Ie__default.default.useMemo(()=>({...We}),[]);return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Xr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i,viewDate:r}){let a=e.size,s=0;return jsxRuntime.jsx(Ie__default.default.Fragment,{children:i.map(([l,c])=>(s===a&&(s=0),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(_r,{weekNr:l.weekNr}),jsxRuntime.jsx(zt,{date:l,events:c,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:l.hasSame(r,"month")},l.ISO)]},l.ISO)))})}function _r({weekNr:e}){let t=Ie__default.default.useMemo(()=>({...Le}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function xo({options:e,events:t,date:n,onEventClick:o,onDayClick:i,tooltipColor:r}){let a=Ie__default.default.useMemo(()=>({...Xt}),[]);return jsxRuntime.jsx("div",{style:a,onClick:s=>i&&i(n.startOf("day"),s),children:t.map(s=>jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof s.description=="function"?s.description():s.description,children:jsxRuntime.jsx(at,{desc:l=>jsxRuntime.jsx("span",{children:typeof l.title=="function"?l.title():l.title}),event:s,options:e?.event?.allday,onClick:o})},`${typeof s.id=="function"?s.id():s.id}`))})}function No({hour:e}){let t=Ie__default.default.useMemo(()=>({...Le,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function Ro({events:e,hour:t,date:n,onEventClick:o,onCellClick:i,options:r,tooltipColor:a,lastVisibleHour:s}){let l=Ie__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),c=Ie__default.default.useRef(null),d=e.length!==0&&c.current?c.current?.offsetWidth/e.length:document.body.clientWidth/8;return jsxRuntime.jsx("div",{style:l,ref:c,onClick:m=>{let p=n.clone().set({hour:t,minute:0,second:0,millisecond:0});i&&i(p,m);},children:e.map((m,p)=>jsxRuntime.jsx(zr,{tooltipColor:a,options:r?.event?.timed,event:m,lastVisibleHour:s??23,eventIndex:p,desc:u=>{let f=typeof u.title=="function"?u.title():u.title;return f.length>80&&(f=f.substring(0,80)+"..."),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{children:jsxRuntime.jsx("b",{children:u._startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:f})]})},onClick:o,eventWidth:d},`${typeof m.id=="function"?m.id():m.id}`))})}function zr({event:e,lastVisibleHour:t,options:n,eventWidth:o,eventIndex:i,tooltipColor:r,onClick:a,desc:s}){let[l,c]=Ie__default.default.useState(!1),d=Ie__default.default.useCallback(Re,[]),m=Ie__default.default.useRef(null),p=Ie__default.default.useMemo(()=>{let u="p";e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(l):e.evtColor:n?.evtColor&&(u=n.evtColor(e,l)),u==="p"?u="#0089b6":u==="i"?u="#3b59ec":u==="l"?u="2f47bc":u==="d"?u="#d91000":u==="s"?u="#519c43":u==="w"?u="#eea720":u==="light"?u="#f5f5f5":u==="dark"&&(u="#363636"),u+=l?"aa":"ff";let f=d(u),g=e._startDateTime,y=e._endDateTime;y.hasSame(g,"day")||(y=g.endOf("day")),y.hour>t&&(y=y.set({hour:t,minute:59,second:59,millisecond:999}));let v=(y.valueOf()-g.valueOf())/1e3/60;return {...Ke,position:"absolute",backgroundColor:u,color:f,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${g.minute}px`,height:`${v<30?30:v}px`,width:o,lineHeight:"1.05em",overflow:"visible",marginLeft:`${i*(o??100/8)}px`,cursor:a?"pointer":"default"}},[e,l,n,d,t,o,i,a]);return jsxRuntime.jsx("div",{ref:m,onClick:u=>{u.preventDefault(),u.stopPropagation(),a&&a(e,u);},style:p,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof e.description=="function"?e.description():e.description,children:jsxRuntime.jsx("span",{style:{overflow:"clip",textOverflow:"ellipsis",position:"absolute",left:"3px",right:"3px",top:"3px"},children:s(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function wo({viewDate:e,options:t,onEventClick:n,events:o,onDayClick:i}){let r=(m,p)=>{let u=m.startOf("week").startOf("day"),f=m.endOf("week").plus({days:1}).startOf("day"),g=(p??o??[]).map(T=>(T.allDay===void 0&&(T.allDay=!1),T._startDateTime||(T._startDateTime=T.startDateTime instanceof Date?D.fromDate(T.startDateTime,t?.locale):T.startDateTime.clone()),!T._endDateTime&&T._endDateTime?T._endDateTime=T.endDateTime instanceof Date?D.fromDate(T._endDateTime,t?.locale):T.endDateTime?.clone():T._endDateTime||(T._endDateTime=T._startDateTime.plus({hours:1})),T)).filter(T=>T._startDateTime.isBetween([u,f])),y=u.clone(),h=[];for(;y<f;){if(a.has(y.weekDay)){let T=y.startOf("day"),P=y.endOf("day"),C=g.filter(A=>A._startDateTime.isBetween([T,P])).sort((A,N)=>A.allDay&&!N.allDay?-1:!A.allDay&&N.allDay?1:A._startDateTime.valueOf()-N._startDateTime.valueOf());h.push([y,C]);}y=y.plus({days:1});}let v=h.map(([T,P])=>[T,P.filter(C=>C.allDay)]),b=h.map(([T,P])=>[T,P.filter(C=>!C.allDay)]);return {allday:v,timed:b}},a=Ie__default.default.useMemo(()=>t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[t?.visibleDays]),s=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),l=r(s),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${a.size}, 1fr)`}),[a]),d=Ie__default.default.useMemo(()=>{let m=[],p=t?.firstHour??0,u=t?.lastHour??23;if(p>=u)throw new Error("BeginTime moet kleiner zijn dan endTime");for(;p<=u;)m.push(p++);return m},[t]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(Kr,{onDayClick:i,daysWithEvents:l.allday,options:t}),jsxRuntime.jsx("div",{style:{...Le,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),l.allday.map(([m,p])=>jsxRuntime.jsx(xo,{date:m,events:p,onEventClick:n,onDayClick:i,options:t,tooltipColor:t?.tooltipColor??"is-light"},m.dayShort)),d.map(m=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx(No,{hour:m}),l.timed.map(([p,u])=>{let f=u.filter(g=>g._startDateTime.hour===m);return jsxRuntime.jsx(Ro,{tooltipColor:t?.tooltipColor??"is-light",events:f,hour:m,date:p,onCellClick:i,onEventClick:n,options:t,lastVisibleHour:t?.lastHour??23},p.dayShort+"-"+m)})]},m)),jsxRuntime.jsx("div",{style:{...Le,paddingTop:"0",zIndex:1,height:"30px",borderBottom:"thin solid #e1e1e1"}})]})})}function Kr({onDayClick:e,daysWithEvents:t,options:n={}}){let o=Ie__default.default.useMemo(()=>({...We,cursor:e?"pointer":void 0}),[e]),i=Ie__default.default.useMemo(()=>({...o}),[o]),r=Ie__default.default.useCallback(Re,[]),a=Ie__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let s="p";n?.today?.bgColor&&(s=n.today.bgColor(!1)),s==="p"?s="#113670":s==="i"?s="#3b59ec":s==="l"?s="#2f47bc":s==="d"?s="#d91000":s==="s"?s="#519c43":s==="w"&&(s="#eea720");let l=r(s);return {..._t,marginBottom:".5em",backgroundColor:s,color:l}},[n.today,r]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:t.map(([s])=>jsxRuntime.jsxs("div",{style:i,onClick:l=>e&&e(s,l),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:s.dayLong}),jsxRuntime.jsxs("span",{style:s.isToday?a:void 0,children:[s.day," ",s.monthLong]})]},s.ISO))})}var Wr={Month:Eo,Week:wo,Fourweeks:Io};function xn({id:e,label:t,name:n,size:o="m",direction:i="v",required:r=!1,showRequiredOnLabel:a=!1,value:s=!1,errorMessage:l="",labelHidden:c=!1,onValueChanged:d,onBlur:m,...p}){return jsxRuntime.jsx(ce,{label:t??n,size:o,labelHidden:c,direction:i,required:r,inputId:e??n,showRequiredOnLabel:a,children:jsxRuntime.jsx(Do,{id:e,name:n,label:t,value:s,required:r,size:o,errorMessage:l,onValueChanged:g=>{d&&d(g);},onBlur:g=>{m&&m(g);},...p})})}function Do({helpTag:e,errorMessage:t="",infoMessage:n="",label:o,disabled:i=!1,keyboardType:r="text",title:a,name:s,value:l=!1,required:c=!1,spellCheck:d=!1,id:m,autoComplete:p="off",readonly:u=!1,autofocus:f=!1,form:g=void 0,inputRef:y,onBlur:h,onChange:v,onFocus:b,onKeyDown:T,onKeyUp:P,onValueChanged:C,size:A="m",alignment:N="l",color:H="p",inverted:V=!1,rounded:I=!1}){let[x,O]=Ie__default.default.useState(!1),B=k=>{x||O(!0),h&&h(k);},ae=k=>{x||O(!0),C&&C(k.target.checked),v&&v(k);},R="is-checkradio";return A==="s"?R+=" is-small":A==="l"?R+=" is-medium":A==="xl"&&(R+=" is-large"),H==="w"?R+=" is-warning":H==="l"?R+=" is-link":H==="d"?R+=" is-danger":H==="i"?R+=" is-info":H==="s"?R+=" is-success":H==="p"?R+=" is-primary":R+=` ${H}`,N==="l"?R+=" has-text-left":N==="c"?R+=" has-text-centered":N==="r"&&(R+=" has-text-right"),u&&(R+=" is-static"),I&&(R+=" is-circle"),V&&(R+=" has-background-color"),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:R,id:m??s,ref:y,name:s,checked:l,spellCheck:d,autoComplete:p,required:c,title:a,readOnly:u,autoFocus:f,form:g,inputMode:r,disabled:i,onKeyDown:T,onKeyUp:P,onBlur:B,onChange:ae,onFocus:k=>b&&b(k,e)}),jsxRuntime.jsx("label",{htmlFor:m??s,children:o??s}),x&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(l)}),!t&&n&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof n=="string"?n:n(l)})]})}function De({value:e,id:t,name:n,label:o,grouped:i=!1,required:r=!1,showRequiredOnLabel:a=!1,errorMessage:s="",infoMessage:l=void 0,multiple:c=!1,alignment:d="l",size:m="m",direction:p="v",options:u=[],children:f=void 0,placeholder:g,helpTag:y,disabled:h=!1,keyboardType:v="text",title:b,spellCheck:T=!1,loading:P=!1,autoComplete:C="off",autofocus:A=!1,form:N=void 0,inputRef:H,labelHidden:V,icon:I=freeSolidSvgIcons.faCheckCircle,onBlur:x,onFocus:O,onChange:B,onKeyDown:ae,onKeyUp:R,onValueChanged:k}){let[X,oe]=Ie__default.default.useState(!1),ue=L=>{X||oe(!0),x&&x(L);},ie=L=>{O&&O(L,y);},se=L=>{if(X||oe(!0),B&&B(L),c){let w=L.target.selectedOptions,re=[];for(let j of w)re.push(j.value);k&&k(re);}else typeof e=="number"&&k?k(+L.target.value):k&&k(L.target.value);},U=Ie__default.default.useCallback(L=>{if(!L.some(w=>typeof w!="string"&&typeof w!="number"))return L.map(w=>jsxRuntime.jsx(De.Option,{value:w,children:w},w));if(i){let w=[],re=new Set;return L.forEach(j=>re.add(typeof j=="string"||typeof j=="number"?"":j.group??"")),[...re].sort().forEach(j=>{let le=[];L.forEach(be=>{typeof be=="string"||typeof be=="number"?j===""&&le.push(be):j===be.group&&le.push(be);}),w.push(jsxRuntime.jsx(De.OptGroup,{label:j,children:le.map(be=>{if(typeof be=="string")return jsxRuntime.jsx(De.Option,{value:be,children:be},be);{let{value:Yt,disabled:qo,label:Hn}=be;return jsxRuntime.jsx(De.Option,{value:Yt,disabled:qo,children:Hn??Yt},Hn??Yt)}})},j));}),w}else return L.map(w=>{if(typeof w=="string")return jsxRuntime.jsx(De.Option,{value:w,children:w},w);if(typeof w=="number")return jsxRuntime.jsx(De.Option,{value:w,children:w},w);{let{value:re,disabled:j,label:le}=w;return jsxRuntime.jsx(De.Option,{value:re,disabled:j,children:le??re},re)}})},[i]),K=s?"select is-danger is-fullwidth":"select is-fullwidth";m==="s"?K+=" is-small":m==="l"?K+=" is-medium":m==="xl"&&(K+=" is-large"),d==="c"?K+=" has-text-centered":d==="r"&&(K+=" has-text-right"),c!==!1&&(K+=" is-multiple"),P&&(K+=" is-loading");let fe=I?"control has-icons-left":"control",Q;I&&(typeof I=="string"?Q=jsxRuntime.jsx("i",{className:I}):Q=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:I}));let he=U(u);return jsxRuntime.jsxs(ce,{inputId:t??n,label:o??n??t,direction:p,required:r,size:m,labelHidden:V,controlClassName:fe,showRequiredOnLabel:a,children:[jsxRuntime.jsx("div",{className:K,children:jsxRuntime.jsxs("select",{multiple:c!==!1,size:c===!1?void 0:c,value:e,className:K,id:t??n??o,ref:H,name:n,spellCheck:T,autoComplete:C,required:r,title:b,autoFocus:A,form:N,inputMode:v,placeholder:g,disabled:h,onFocus:ie,onBlur:ue,onKeyDown:ae,onKeyUp:R,onChange:se,children:[f,he]})}),Q&&jsxRuntime.jsx("span",{className:"icon is-left",children:Q}),X&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)}),l&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof l=="string"?l:l(e)})]})}De.Option=({value:e="",disabled:t=!1,id:n="",children:o})=>jsxRuntime.jsx("option",{value:e,disabled:t,id:n,children:o});De.OptGroup=({label:e,children:t,disabled:n})=>jsxRuntime.jsx("optgroup",{label:e,disabled:n,children:t});function Yr({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:i,onRGBValueChanged:r,onHSLValueChanged:a,...s}){let l=d=>{i&&i(d),r&&r(no(d)),a&&a(io(d));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(d=>{"0123456789ABCDEF".includes(d)||console.warn(`Ongeldig karakter "${d}" 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[d,m,p]=t;d<0||d>255?console.warn(`Ongeldige RGB-waarde, r = '${d}', moet tussen 0 en 255 ([${t}])`):m<0||m>255?console.warn(`Ongeldige RGB-waarde, g = '${m}', moet tussen 0 en 255 ([${t}])`):(p<0||p>255)&&console.warn(`Ongeldige RGB-waarde, b = '${p}', moet tussen 0 en 255 ([${t}])`),c=to([d,m,p]);}else if(n){let[d,m,p]=n;d<0||d>360?console.warn(`Ongeldige HSL-waarde, h = '${d}', moet tussen 0 en 360 ([${n}])`):m<0||m>100?console.warn(`Ongeldige HSL-waarde, s = '${m}', moet tussen 0 en 100 ([${n}])`):(p<0||p>100)&&console.warn(`Ongeldige HSL-waarde, l = '${p}', moet tussen 0 en 100 ([${n}])`),c=oo([d,m,p]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(F,{icon:o,type:"color",value:c,onValueChanged:l,...s})})}function Qr({value:e,name:t,id:n,required:o,title:i,tooltip:r}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:i??r,required:o,type:"hidden",disabled:!0})}function Rn({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:i,value:r,checked:a=!1,required:s=!1,spellCheck:l=!1,id:c,autoComplete:d="off",readonly:m=!1,autofocus:p=!1,form:u=void 0,inputRef:f,onBlur:g,onChange:y,onFocus:h,onKeyDown:v,onKeyUp:b,onValueChanged:T,size:P="m",alignment:C="l",itemsDirection:A="v",color:N="p",children:H=void 0}){let V=x=>{T&&T(r),y&&y(x);},I="is-checkradio";return P==="s"?I+=" is-small":P==="l"?I+=" is-medium":P==="xl"&&(I+=" is-large"),N==="w"?I+=" is-warning":N==="l"?I+=" is-link":N==="d"?I+=" is-danger":N==="i"?I+=" is-info":N==="s"?I+=" is-success":N==="p"?I+=" is-primary":I+=` ${N}`,C==="c"?I+=" has-text-centered":C==="r"&&(I+=" has-text-right"),m&&(I+=" is-static"),c||(c=i+"-"+r),jsxRuntime.jsxs("div",{style:{display:A==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:I,id:c,ref:f,name:i,checked:a,spellCheck:l,autoComplete:d,required:s,title:o,readOnly:m,autoFocus:p,form:u,inputMode:n,disabled:t,onKeyDown:v,onKeyUp:b,onBlur:g,onChange:V,onFocus:x=>h&&h(x,e)}),jsxRuntime.jsx("label",{htmlFor:c??i,children:H??i})]})}function Lo({children:e=void 0,id:t,label:n,disabled:o=!1,labelHidden:i=!1,name:r,value:a,required:s=!1,showRequiredOnLabel:l=!1,size:c="m",direction:d="h",itemsDirection:m="h",alignment:p="l",errorMessage:u="",infoMessage:f=void 0,onValueChanged:g,onBlur:y,onChange:h,onFocus:v,onKeyDown:b,onKeyUp:T}){let[P,C]=Ie__default.default.useState(!1),A=I=>{P||C(!0),y&&y(I);},N=I=>{P||C(!0),g&&g(I);},V=(I=>Ie__default.default.Children.map(I,(x,O)=>{if(Ie__default.default.isValidElement(x)&&x.type===Ho){let B=!1;return typeof a=="string"||typeof a=="number"||typeof a=="boolean"?B=a===x.props.value:a&&(B=JSON.stringify(a)===JSON.stringify(x.props.value)),jsxRuntime.jsx(Rn,{...x.props,disabled:o?!0:x.props.disabled,size:c,itemsDirection:m,alignment:p,direction:d,id:x.props.id??`${r}-option-${O}`,value:x.props.value,checked:B,name:r,onValueChanged:N,onBlur:A,onKeyDown:b,onKeyUp:T,onChange:h,onFocus:v,children:x.props.children})}return x}))(e);return jsxRuntime.jsxs(ce,{labelHidden:i,label:n??r,required:s,inputId:"",direction:d,size:c,controlClassName:"control",showRequiredOnLabel:l,children:[V,P&&u&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof u=="string"?u:u(a)}),f&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof f=="string"?f:f(a)})]})}function Ho({checked:e=!1,id:t,value:n,children:o,...i}){return jsxRuntime.jsx(Rn,{checked:e,name:"",...i,id:t,value:n,children:o})}Lo.Item=Ho;function ta({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
|
|
66
|
+
var Tt=(l=>(l.Primary="#0089b6",l.Info="#3b59ec",l.Link="2f47bc",l.Success="#519c43",l.Danger="#d91000",l.Warning="#eea720",l.Light="#f5f5f5",l.Dark="#363636",l))(Tt||{});function Zo({ratio:e="1by1",children:t,caption:n,className:o=""}){let i=`image is-${e} ${o}`.trim();return jsxRuntime.jsxs("figure",{className:i,children:[n&&n.placement==="top"&&jsxRuntime.jsx("figcaption",{children:n.text}),t,n&&n.placement==="bottom"&&jsxRuntime.jsx("figcaption",{children:n.text})]})}function Qo({id:e,children:t,className:n="",styles:o}){let i=`block ${n}`.trim();return jsxRuntime.jsx("div",{className:i,style:o,id:e,children:t})}function Qt({id:e,children:t,className:n="",styles:o={},itemRef:i}){return jsxRuntime.jsx("div",{className:`bulma-box ${n}`.trim(),style:o,id:e,ref:i,children:t})}function ti({children:e,id:t,gap:n="3",multiline:o,centered:i,className:r,styles:a,itemRef:s}){let l="columns";return n==="s"?n="1":n==="m"?n="3":n==="l"?n="5":n==="xl"&&(n="7"),n!=="3"&&(l+=` is-${n} is-variable`),o&&(l+=" is-multiline"),i&&(l+=" is-centered"),r&&(l+=` ${r}`),jsxRuntime.jsx("div",{"data-testid":"columns",className:l,style:a,id:t,ref:s,children:e})}var _=({children:e,className:t,styles:n,id:o,itemRef:i})=>jsxRuntime.jsx("div",{className:t,id:o,ref:i,children:jsxRuntime.jsx("div",{style:n,children:e})}),_e=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(_,{...e,className:t})};_e.Full=e=>jsxRuntime.jsx(_,{...e,className:`column is-full ${e.className??""}`.trim()});_e.Half=e=>jsxRuntime.jsx(_,{...e,className:`column is-half ${e.className??""}`.trim()});_e.Thirds={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-third ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-thirds ${e.className??""}`.trim()})};_e.Quarters={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-quarter ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-quarters ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-three-quarters ${e.className??""}`.trim()})};_e.Fifths={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-one-fifth ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-two-fifths ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-three-fifths ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(_,{...e,className:`column is-four-fifths ${e.className??""}`.trim()})};_e.Twelves={One:e=>jsxRuntime.jsx(_,{...e,className:`column is-1 ${e.className??""}`.trim()}),Two:e=>jsxRuntime.jsx(_,{...e,className:`column is-2 ${e.className??""}`.trim()}),Three:e=>jsxRuntime.jsx(_,{...e,className:`column is-3 ${e.className??""}`.trim()}),Four:e=>jsxRuntime.jsx(_,{...e,className:`column is-4 ${e.className??""}`.trim()}),Five:e=>jsxRuntime.jsx(_,{...e,className:`column is-5 ${e.className??""}`.trim()}),Six:e=>jsxRuntime.jsx(_,{...e,className:`column is-6 ${e.className??""}`.trim()}),Seven:e=>jsxRuntime.jsx(_,{...e,className:`column is-7 ${e.className??""}`.trim()}),Eight:e=>jsxRuntime.jsx(_,{...e,className:`column is-8 ${e.className??""}`.trim()}),Nine:e=>jsxRuntime.jsx(_,{...e,className:`column is-9 ${e.className??""}`.trim()}),Ten:e=>jsxRuntime.jsx(_,{...e,className:`column is-10 ${e.className??""}`.trim()}),Eleven:e=>jsxRuntime.jsx(_,{...e,className:`column is-11 ${e.className??""}`.trim()}),Twelve:e=>jsxRuntime.jsx(_,{...e,className:`column is-12 ${e.className??""}`.trim()})};_e.displayName="Column";var De=({className:e,children:t,styles:n,size:o="s",id:i,itemRef:r})=>{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:i,ref:r,children:t})};De.Default=({className:e,children:t,styles:n})=>jsxRuntime.jsx(De,{className:e,styles:n,size:"s",children:t});De.Wide=({className:e,children:t,styles:n})=>jsxRuntime.jsx(De,{className:e,styles:n,size:"m",children:t});De.Widest=({className:e,children:t,styles:n})=>jsxRuntime.jsx(De,{className:e,styles:n,size:"l",children:t});De.Max=({className:e,children:t,styles:n})=>jsxRuntime.jsx(De,{className:e,styles:n,size:"xl",children:t});function oi({size:e="m",className:t,styles:n,id:o,children:i,itemRef:r}){let a="content ";return e==="s"?a+="is-small":e==="m"?a+="is-normal":e==="l"?a+="is-medium":e==="xl"&&(a+="is-large"),t&&(a+=" "+t),jsxRuntime.jsx("div",{className:a,style:n,id:o,ref:r,children:i})}function ri({children:e,alignment:t="l",className:n,styles:o,id:i,itemRef:r}){let a="container",s="footer mt-6";return t==="l"?a+=" has-text-left":t==="r"?a+=" has-text-right":a+=" has-text-centered",n&&(s+=` ${n}`),s=s.trim(),jsxRuntime.jsx("footer",{className:s,style:o,id:i,ref:r,children:jsxRuntime.jsx("div",{className:a,children:e})})}var wt=({children:e,heroColorFor:t,size:n,itemRef:o,id:i})=>{let r="hero is-bold";r+=t?` is-${t}`:" is-primary",n==="s"?r+=" is-small":n==="l"?r+=" is-medium":n==="xl"&&(r+=" is-large");let a=Ie__default.default.Children.map(e??[jsxRuntime.jsx("div",{className:"hero-body",children:" "})],s=>s);return jsxRuntime.jsx("header",{className:r,id:i,ref:o,children:a})},jt=({children:e})=>{let[t,n]=Ie__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})})]})})};jt.Button=({children:e,title:t,onClick:n})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,onClick:n,children:e});jt.Link=({children:e,title:t,to:n,target:o="_blank",rel:i="noopener"})=>jsxRuntime.jsx("a",{className:"navbar-item",title:t,href:n,target:o,rel:i,children:e});wt.Head=jt;wt.Body=({children:e})=>jsxRuntime.jsx("div",{className:"hero-body",children:jsxRuntime.jsx("div",{className:"container",children:e})});var en=({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})});en.NavList=({children:e})=>jsxRuntime.jsx("ul",{children:e});en.NavItem=({children:e,to:t,active:n=void 0,target:o="_blank",title:i,rel:r="noopener"})=>jsxRuntime.jsx("li",{className:n?"is-active":void 0,title:i,children:jsxRuntime.jsx("a",{href:t,target:o,rel:r,className:"tab",children:e})});wt.Foot=en;function ai({ratio:e,imgWidth:t="128",alt:n,figCaption:o,className:i,isRounded:r,src:a}){let s=`image is-${e}`;return e==="square"&&(s=`image is-${t}x${t}`),jsxRuntime.jsx("div",{className:i,style:e==="square"?void 0:{width:t},children:jsxRuntime.jsxs("figure",{className:s,children:[jsxRuntime.jsx("img",{className:r&&e==="square"?"is-rounded":void 0,src:a,alt:n}),o&&jsxRuntime.jsx("figcaption",{className:"help is-info",children:o})]})})}function li({children:e,className:t,styles:n,id:o,itemRef:i}){let r="section";return t&&(r+=` ${t}`),jsxRuntime.jsx("section",{className:r,style:n,id:o,ref:i,children:e})}var mi=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let r=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,a=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${r} ${a}`;}let n="flex-start";e.alignment==="c"?n="center":e.alignment==="r"&&(n="flex-end");let o=Ie__default.default.useMemo(()=>({maxWidth:typeof e.maxItemWidth=="number"?`${e.maxItemWidth}px`:e.maxItemWidth||null,minWidth:typeof e.minItemWidth=="number"?`${e.minItemWidth}px`:e.minItemWidth||null}),[e.maxItemWidth,e.minItemWidth]),i=Ie__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:i,id:e.id,ref:e.itemRef,children:Ie__default.default.Children.toArray(e.children).map((r,a)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",style:o,children:r},a))})},pi=e=>{let t="0px";if(typeof e.gap=="number")t=e.gap+"px";else if(typeof e.gap=="string"&&!isNaN(+e.gap))t=e.gap+"px";else if(typeof e.gap=="string")t=e.gap;else if(e.gap){let i=typeof e.gap.row=="number"?e.gap.row+"px":e.gap.row,r=typeof e.gap.col=="number"?e.gap.col+"px":e.gap.col;t=`${i} ${r}`;}let n="flex-start";e.alignment==="c"&&(n="center"),e.alignment==="r"&&(n="flex-end");let o=Ie__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:Ie__default.default.Children.toArray(e.children).map((i,r)=>jsxRuntime.jsx("div",{className:"lbr-flex-item",children:i},r))})},di={Horizontal:mi,Vertical:pi};function on({alignment:e="l",autoComplete:t="off",optionListId:n=void 0,autofocus:o=!1,disabled:i=!1,errorMessage:r="",infoMessage:a=void 0,form:s=void 0,helpTag:l,id:c,inputRef:d,keyboardType:m="text",max:p,min:u,name:f,pattern:g=void 0,placeholder:y,readonly:h=!1,required:v=!1,size:b="m",spellCheck:T=!1,step:P=1,title:C,type:A="text",value:N,className:H="",styles:V={},onBlur:I,onChange:x,onFocus:O,onKeyDown:B,onKeyUp:ae,onValueChanged:R}){let k=oe=>{i||(R&&R(oe.target.value),x&&x(oe));},X=r?"input is-danger":"input";return b==="s"?X+=" is-small":b==="l"?X+=" is-medium":b==="xl"&&(X+=" is-large"),e==="l"?X+=" has-text-left":e==="c"?X+=" has-text-centered":e==="r"&&(X+=" has-text-right"),h&&(X+=" is-static"),H&&(X+=` ${H}`),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("input",{className:X,pattern:g,id:c??f,ref:d,name:f,value:N,spellCheck:T,autoComplete:t,required:v,type:A,title:C,max:p,maxLength:typeof p=="number"?p:void 0,minLength:typeof u=="number"?u:void 0,min:u,step:P,readOnly:h,autoFocus:o,form:s,inputMode:m,placeholder:y,disabled:i,style:V,list:n,onKeyDown:B,onKeyUp:ae,onBlur:I,onChange:k,onFocus:oe=>O&&O(oe,l)}),jsxRuntime.jsx("p",{className:"help is-danger",children:typeof r=="string"?r:r(N)}),a&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof a=="string"?a:a(N)})]})}function F({direction:e="v",errorMessage:t="",showRequiredOnLabel:n=!1,icon:o=freeSolidSvgIcons.faKeyboard,id:i,label:r,labelHidden:a=!1,name:s,required:l=!1,loading:c=!1,size:d="m",value:m,optionList:p=[],onBlur:u,...f}){let g=P=>{h(!0),u&&u(P);},[y,h]=Ie__default.default.useState(!1),v;o&&(typeof o=="string"?v=jsxRuntime.jsx("i",{className:o}):v=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o}));let b;return t&&(typeof t=="string"?b=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t===""?freeSolidSvgIcons.faCheck:freeSolidSvgIcons.faTimes}):b=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:t(m)===""?freeSolidSvgIcons.faCheck:freeSolidSvgIcons.faTimes})),jsxRuntime.jsxs(ce,{size:d,inputId:i??s,label:r??s,direction:e,required:l,showRequiredOnLabel:n,controlClassName:`control ${o?"has-icons-left":""} ${t!==void 0?"has-icons-right":""}`,loading:c,children:[jsxRuntime.jsx(on,{required:l,name:s,size:d,onBlur:g,id:i,value:m,optionListId:p&&p.length>0?`${i??s}-option-list-id`:void 0,...f,errorMessage:t}),p&&p.length>0&&jsxRuntime.jsx("datalist",{id:`${i??s}-option-list-id`,children:p.map(P=>typeof P=="string"?jsxRuntime.jsx("option",{value:P},P):jsxRuntime.jsx("option",{value:P.value,children:P.label},P.value))}),v&&jsxRuntime.jsx("span",{className:"icon is-left",children:v}),b&&jsxRuntime.jsx("span",{className:"icon is-right",children:b})]})}function ce({children:e,controlClassName:t="control",direction:n,showRequiredOnLabel:o=!1,inputId:i,label:r,labelHidden:a=!1,required:s,size:l,loading:c=!1}){let d="is-normal";l==="s"?d+=" is-small":l==="l"?d+=" is-medium":l==="xl"&&(d+=" is-large");let m=`label ${d} ${a?"is-sr-only":""}`;return t=c?`${t} is-loading `:t,l==="xl"?t=`${t} is-large`:l==="l"?t=`${t} is-medium`:l==="s"?t=`${t} is-small`:t=`${t} is-normal`,n==="horizontal"||n==="h"?jsxRuntime.jsxs("div",{className:"field is-horizontal","data-testid":"input-container",children:[jsxRuntime.jsx("div",{className:`field-label ${d}`,children:jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,o&&s&&jsxRuntime.jsx("span",{className:"has-text-danger",children:"*"})]})}),jsxRuntime.jsx("div",{className:"field-body",children:jsxRuntime.jsx("div",{className:"field",children:jsxRuntime.jsx("div",{className:t,children:e})})})]}):jsxRuntime.jsxs("div",{className:"field","data-testid":"input-container",children:[jsxRuntime.jsxs("label",{className:m,htmlFor:i,children:[r,o&&s&&jsxRuntime.jsx("span",{className:"has-text-danger ",children:"*"})]}),jsxRuntime.jsx("div",{className:t,children:e})]})}function Xl(e=2e3){let[t,n]=Ie__default.default.useState(null),[o,i]=Ie__default.default.useState(!1),[r,a]=Ie__default.default.useState(null),s=d=>{clearTimeout(r),a(setTimeout(()=>i(!1),e)),i(d);};return {copy:d=>{"clipboard"in navigator?navigator.clipboard.writeText(d).then(()=>s(!0)).catch(m=>n(m)):n(new Error("useClipboard: navigator.clipboard is not supported"));},reset:()=>{i(!1),n(null),clearTimeout(r);},error:t,copied:o}}function Kn(e,t={leading:!1,delay:500}){let[n,o]=Ie__default.default.useState(e),i=Ie__default.default.useRef(!1),r=Ie__default.default.useRef(void 0),a=Ie__default.default.useRef(!1),s=()=>window.clearTimeout(r.current);return Ie__default.default.useEffect(()=>{i.current&&(!a.current&&t.leading?(a.current=!0,o(e)):(s(),r.current=window.setTimeout(()=>{a.current=!1,o(e);},t.delay)));},[e,t.leading,t.delay]),Ie__default.default.useEffect(()=>(i.current=!0,s),[]),[n,s]}function zl(e,t={leading:!1,delay:500}){let[n,o]=Ie__default.default.useState(e),i=Ie__default.default.useRef(null),r=Ie__default.default.useRef(!0),a=()=>window.clearTimeout(i.current??void 0);return Ie__default.default.useEffect(()=>a,[]),[n,l=>{a(),r.current&&t.leading?o(l):i.current=window.setTimeout(()=>{r.current=!0,o(l);},t.delay),r.current=!1;}]}function gi(e){let t=e.toLowerCase().split("+").map(r=>r.trim()),n={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},o=["alt","ctrl","meta","shift","mod"],i=t.find(r=>!o.includes(r));return {...n,key:i}}function yi(e,t){let{alt:n,ctrl:o,meta:i,mod:r,shift:a,key:s}=e,{altKey:l,ctrlKey:c,metaKey:d,shiftKey:m,key:p}=t;if(n!==l)return !1;if(r){if(!c&&!d)return !1}else if(o!==c||i!==d)return !1;return a!==m?!1:!!(s&&(p.toLowerCase()===s.toLowerCase()||t.code.replace("Key","").toLowerCase()===s.toLowerCase()))}function Wn(e){return t=>yi(gi(e),t)}function Gl(e){return t=>{e.forEach(([n,o])=>{Wn(n)(t.nativeEvent)&&(t.preventDefault(),o(t));});}}function hi(e){return e.target instanceof HTMLElement?!["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName):!0}function Ul(e){Ie__default.default.useEffect(()=>{let t=n=>{e.forEach(([o,i])=>{Wn(o)(n)&&hi(n)&&(n.preventDefault(),i(n));});};return document.documentElement.addEventListener("keydown",t),()=>document.documentElement.removeEventListener("keydown",t)},[e]);}function Dt(e){try{return JSON.parse(e)}catch(t){let n=t;throw new Error(`'deserializeJSON()' failed to deserialize the value: ${n.message}`,{...n})}}function Ot(e){try{return JSON.stringify(e)}catch(t){let n=t;throw new Error(`serializeJSON() failed to serialize the value: ${n.message}`,{...n})}}function tc({key:e,initialValue:t,deserialize:n=Dt,serialize:o=Ot}){let[i,r]=Ie__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.localStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useLocalStoredState failed to get the value: ${l.message}`),t}}),a=Ie__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.localStorage.setItem(e,o(c));}catch(c){console.error(`useLocalStoredState failed to store the value: ${c.message}`);}},[e,o,i]),s=Ie__default.default.useCallback(()=>{typeof window<"u"&&window.localStorage.removeItem(e);},[e]);return [i,a,s]}function Gn({value:e,defaultValue:t,finalValue:n,onChange:o=()=>{}}){let[i,r]=Ie__default.default.useState(t!==void 0?t:n),a=s=>{r(s),o?.(s);};return e!==void 0?[e,o,!0]:[i,a,!1]}var Mt="dots";function Un({total:e,siblings:t=1,boundaries:n=1,page:o,initialPage:i=1,onChange:r=()=>{}}){let a=Math.max(Math.trunc(e),0),[s,l]=Gn({value:o,onChange:r,defaultValue:i,finalValue:i}),c=g=>{g<=0?l(1):g>a?l(a):l(g);},d=()=>c(s+1),m=()=>c(s-1),p=()=>c(1),u=()=>c(a);return {range:Ie__default.default.useMemo(()=>{if(t*2+3+n*2>=a)return Ve(1,a);let y=Math.max(s-t,n),h=Math.min(s+t,a-n),v=y>n+2,b=h<a-(n+1);if(!v&&b){let T=t*2+n+2;return [...Ve(1,T),Mt,...Ve(a-(n-1),a)]}if(v&&!b){let T=n+1+2*t;return [...Ve(1,n),Mt,...Ve(a-T,a)]}return [...Ve(1,n),Mt,...Ve(y,h),Mt,...Ve(a-n+1,a)]},[a,t,s,n]),active:s,setPage:c,next:d,prev:m,first:p,last:u}}function Ve(e,t){let n=t-e+1;return Array.from({length:n},(o,i)=>i+e)}function vi(e,t){let[n,o]=Ie__default.default.useState(e);return [n,r=>{o(typeof r<"u"?r:a=>a===t[0]?t[1]:t[0]);}]}function qn(e=!1){return vi(e,[!0,!1])}function pc(e,t){let[n,o]=t?t(e):[!0,""],[i,r]=Ie__default.default.useState(e??void 0),[a,s]=Ie__default.default.useState(n),[l,c]=Ie__default.default.useState(o),[d,m]=Ie__default.default.useState(n?e:void 0);return [{value:i,lastValidValue:d,valid:a,invalidMsg:l},u=>{let[f,g]=t?t(u):[!0,""];f&&m(u),s(f),c(g),r(u);}]}function yc({key:e,initialValue:t,deserialize:n=Dt,serialize:o=Ot}){let[i,r]=Ie__default.default.useState(()=>{if(typeof window>"u")return t;try{let l=window.sessionStorage.getItem(e);return l?n(l):t}catch(l){return console.error(`useSessionStoredState failed to get the value: ${l.message}`),t}}),a=Ie__default.default.useCallback(l=>{try{let c=l instanceof Function?l(i):l;r(c),typeof window<"u"&&window.sessionStorage.setItem(e,o(c));}catch(c){console.error(`useSessionStoredState failed to store the value: ${c.message}`);}},[e,o,i]),s=Ie__default.default.useCallback(()=>{typeof window<"u"&&window.sessionStorage.removeItem(e);},[e]);return [i,a,s]}var Yn=["mousedown","touchstart"];function Sc(e,t,n){let o=Ie__default.default.useRef();return Ie__default.default.useEffect(()=>{let i=r=>{let{target:a}=r??{};if(Array.isArray(n)){let s=a?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(a)&&a.tagName!=="HTML";n.every(c=>!!c&&!r.composedPath().includes(c))&&!s&&e();}else o.current&&!o.current.contains(a)&&e();};return (t||Yn).forEach(r=>document.addEventListener(r,i)),()=>{(t||Yn).forEach(r=>document.removeEventListener(r,i));}},[o,e,n,t]),o}function Qn(e,t,n){Ie__default.default.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t,n]);}function Pc({duration:e=500,axis:t="y",onScrollFinish:n,offset:o=0,cancelable:i=!0,isList:r=!1}={}){let a=Ie__default.default.useRef(0),s=Ie__default.default.useRef(0),l=Ie__default.default.useRef(!1),c=Ie__default.default.useRef(null),d=Ie__default.default.useRef(null),m=()=>{a.current&&cancelAnimationFrame(a.current);},p=Ie__default.default.useCallback(({alignment:f="start"}={})=>{l.current=!1,a.current&&m();let g=b=>b<.5?2*b*b:-1+(4-2*b)*b,y=Ci({parent:c.current,axis:t})??0,h=Pi({parent:c.current,target:d.current,axis:t,alignment:f,offset:o,isList:r})-(c.current?0:y);function v(){s.current===0&&(s.current=performance.now());let T=performance.now()-s.current,P=e===0?1:T/e,C=y+h*g(P);Ii({parent:c.current,axis:t,distance:C}),!l.current&&P<1?a.current=requestAnimationFrame(v):(typeof n=="function"&&n(),s.current=0,a.current=0,m());}v();},[t,e,r,o,n]),u=()=>{i&&(l.current=!0);};return Qn("wheel",u,{passive:!0}),Qn("touchmove",u,{passive:!0}),Ie__default.default.useEffect(()=>m,[]),{scrollableRef:c,targetRef:d,scrollIntoView:p,cancel:m}}var Pi=({axis:e,target:t,parent:n,alignment:o,offset:i,isList:r})=>{if(!t||!n&&typeof document>"u")return 0;let a=!!n,l=(n||document.body).getBoundingClientRect(),c=t.getBoundingClientRect(),d=m=>c[m]-l[m];if(e==="y"){let m=d("top");if(m===0)return 0;if(o==="start"){let u=m-i;return u<=c.height*(r?0:1)||!r?u:0}let p=a?l.height:window.innerHeight;if(o==="end"){let u=m+i-p+c.height;return u>=-c.height*(r?0:1)||!r?u:0}return o==="center"?m-p/2+c.height/2:0}if(e==="x"){let m=d("left");if(m===0)return 0;if(o==="start"){let u=m-i;return u<=c.width||!r?u:0}let p=a?l.width:window.innerWidth;if(o==="end"){let u=m+i-p+c.width;return u>=-c.width||!r?u:0}return o==="center"?m-p/2+c.width/2:0}return 0},Ci=({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:i}=document;return o[n]+i[n]},Ii=({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:i,documentElement:r}=document;i[o]=n,r[o]=n;}};function me({color:e,size:t="m",rotation:n=0,icon:o,flip:i=void 0,animate:r=void 0}){let a="icon",s="1x";switch(e==="s"?a+=" has-text-success":e==="d"?a+=" has-text-danger":e==="w"?a+=" has-text-warning":e==="p"?a+=" has-text-primary":e==="i"?a+=" has-text-info":e==="l"?a+=" has-text-link":e==="dark"?a+=" has-text-dark":e==="light"?a+=" has-text-light":e?.startsWith("is-")&&(a+=` ${e?.replace("is-","has-text-")}`),t){case"s":s="sm",a+=" is-small";break;case"m":s="1x",a+=" is-normal";break;case"l":s="2x",a+=" is-medium";break;case"xl":s="3x",a+=" is-large";break}return typeof o=="string"?jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx("i",{className:o})}):jsxRuntime.jsx("span",{className:a,role:"icon",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:o,size:s,rotation:n===0?void 0:n,flip:i,spin:r==="spin",pulse:r==="pulse"})})}function cn({icon:e,size:t="m",color:n,rotation:o=0,flip:i=void 0,animate:r=void 0,allowWrap:a=!1,children:s}){let l="icon-text";return n==="s"?l+=" has-text-success":n==="d"?l+=" has-text-danger":n==="w"?l+=" has-text-warning":n==="p"?l+=" has-text-primary":n==="i"?l+=" has-text-info":n==="l"&&(l+=" has-text-link"),jsxRuntime.jsxs("span",{className:l,role:"icon-with-text",style:{flexWrap:a?void 0:"nowrap"},children:[jsxRuntime.jsx(me,{icon:e,size:t,color:n,rotation:o,flip:i,animate:r}),jsxRuntime.jsx("span",{children:s})]})}function Ei({colors:e=[],icons:t,sizes:n=[]}){let o=Ie__default.default.useMemo(()=>n&&n.length>=t.length?[...n]:Array(t.length).fill("s"),[n,t]),i=Ie__default.default.useMemo(()=>e&&e.length>=t.length?[...e]:Array(t.length).fill("p"),[e,t]),r=l=>l==="s"?" has-text-success":l==="d"?" has-text-danger":l==="w"?" has-text-warning":l==="p"?" has-text-primary":l==="i"?" has-text-info":l==="l"?" has-text-link":l==="dark"?" has-text-dark":l==="light"?" has-text-light":l?.startsWith("is-")?` ${l?.replace("is-","has-text-")}`:"p",a=l=>{switch(l){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"}},s=Ie__default.default.useMemo(()=>t.map((l,c)=>{let d=` ${a(o[c])} ${r(i[c])}`;return typeof l=="string"?jsxRuntime.jsx("i",{className:`${l} ${d}`}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:l,className:d})}),[t,i,o]);return jsxRuntime.jsx("span",{className:"icon fa-stack",style:{verticalAlign:"top"},children:s})}function mn({range:e,currentPage:t,size:n="s",hideFirst:o=!1,hideLast:i=!1,hidePrev:r=!1,hideNext:a=!1,hideNumbers:s=!1,set:l=u=>{},first:c=()=>{},last:d=()=>{},prev:m=()=>{},next:p=()=>{}}){let u="pagination";return n==="s"?u+=" is-small":n==="m"?u+=" is-normal":n==="l"?u+=" is-medium":n==="xl"&&(u+=" is-large"),jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsxs("ul",{className:"pagination-list",children:[!o&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"eerste pagina",onClick:c,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardFast})})}),!r&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"vorige pagina",onClick:m,disabled:t===e[0],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faBackwardStep})})}),!s&&e.map((f,g)=>f==="dots"?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("span",{className:"pagination-ellipsis",children:"\u2026"})},f+g):f!==t?jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":`Goto page ${f}`,onClick:()=>l(f),children:f})},f):jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link is-current","aria-label":`Goto page ${f}`,onClick:()=>l(f),children:f})},f)),!a&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"volgende paginga",onClick:p,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardStep})})}),!i&&jsxRuntime.jsx("li",{children:jsxRuntime.jsx("button",{className:"pagination-link","aria-label":"laatste pagina",onClick:d,disabled:t===e[e.length-1],children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faForwardFast})})})]})})}var D=class e{static DEFAULT_LOCALE=Intl.DateTimeFormat().resolvedOptions().locale;static DEFAULT_TIMEZONE=Intl.DateTimeFormat().resolvedOptions().timeZone;static MAX_DATE_NUM=864e13;static MAX_DATE=new Date(e.MAX_DATE_NUM);static defaultFormatOptions={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};IGNORE_SIGN="^";_date;_locale;formatOptions={};constructor(t,n,o={}){this._date=new Date(t),this._locale=n,this.formatOptions={...e.defaultFormatOptions,timeZone:e.DEFAULT_TIMEZONE,...o},Object.freeze(this);}toString(t=this.formatOptions){return this.intlDtf(t)}valueOf(){return this._date.valueOf()}intlDtf(t=this.formatOptions){return new Intl.DateTimeFormat(this._locale,{...t,timeZone:this.formatOptions.timeZone}).format(this._date)}get info(){return {year:{isLeapYear:this.isLeapYear,days:this.daysInYear,hours:this.daysInYear*24,minutes:this.daysInYear*24*60,seconds:this.daysInYear*24*60*60,milliseconds:this.daysInYear*24*60*60*1e3},month:{days:this.daysInMonth,hours:this.daysInMonth*24,minutes:this.daysInMonth*24*60,seconds:this.daysInMonth*24*60*60,milliseconds:this.daysInMonth*24*60*60*1e3}}}get isLeapYear(){let t=this._date.getFullYear();return t%4===0&&t%100!==0||t%400===0}get isAM(){return this._date.getHours()<12}get isPM(){return !this.isAM}get isDST(){let t=new Date(this._date.getFullYear(),0,1).getTimezoneOffset(),n=new Date(this._date.getFullYear(),6,1).getTimezoneOffset();return Math.max(t,n)!==this._date.getTimezoneOffset()}get isToday(){let t=new Date;return this._date.getDate()===t.getDate()&&this._date.getMonth()===t.getMonth()&&this._date.getFullYear()===t.getFullYear()}get JSDate(){return new Date(this._date)}get ISO(){return this._date.toISOString()}get UTC(){return this._date.toUTCString()}get locale(){return this._locale}get timezoneLong(){return this.intlDtf({timeZoneName:"long"}).replaceAll(/[^A-Z\s-]/gi,"").replace("--","").trim()}get timezoneShort(){return this.intlDtf({timeZoneName:"short"}).replaceAll(/[^A-Z]/g,"")}get timezoneOffsetShortStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("+");return t.substring(n)}get timezoneOffsetLongStr(){let t=this.intlDtf({timeZoneName:"longOffset"}),n=t.indexOf("GMT");return t.substring(n)}get timezoneOffset(){let t=this.intlDtf({timeZoneName:"shortOffset"}),n=t.indexOf("+");return n<0&&(n=t.indexOf("-")),n<0?0:parseInt(t.substring(n))}get timeHM(){return this.intlDtf({hour:"2-digit",minute:"2-digit"})}get timeHMS(){return this.intlDtf({hour:"2-digit",minute:"2-digit",second:"2-digit"})}get monthLong(){return this.intlDtf({month:"long"})}get monthShort(){return this.intlDtf({month:"short"})}get dayLong(){return this.intlDtf({weekday:"long"})}get dayShort(){return this.intlDtf({weekday:"short"})}get dateLong(){return `${this.dayLong} ${this.day} ${this.monthLong} ${this.year}`}get dateShort(){return this.intlDtf({day:"2-digit",month:"2-digit",year:"numeric"})}get yr(){return this.year}get year(){return this._date.getFullYear()}get qr(){return this.quarter}get quarter(){return Math.floor(this._date.getMonth()/3+1)}get m(){return this.month}get month(){return this._date.getMonth()+1}get d(){return this.day}get day(){return this._date.getDate()}get weekDay(){return this._date.getDay()===0?7:this._date.getDay()}get hr(){return this.hour}get hour(){return this._date.getHours()}get min(){return this.minute}get minute(){return this._date.getMinutes()}get sec(){return this.second}get second(){return this._date.getSeconds()}get ms(){return this.millisecond}get millisecond(){return this._date.getMilliseconds()}get weekNr(){let t=new Date(Date.UTC(this._date.getFullYear(),this._date.getMonth(),this._date.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-n.getTime())/864e5+1)/7)}get millis(){return this.valueOf()}get daysInMonth(){return new Date(this._date.getFullYear(),this._date.getMonth()+1,0).getDate()}get daysInYear(){return this.isLeapYear?366:365}get yearToDate(){let n=[0,31,59,90,120,151,181,212,243,273,304,334][this._date.getMonth()]+this._date.getDate();return this.isLeapYear&&this.month>2?n+1:n}set(t,n=this._locale){let o={year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,millisecond:this.millisecond};return 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:i,hours:r,minutes:a,seconds:s,milliseconds:l}){let c=new Date(this.JSDate);return t&&(c=new Date(c.setFullYear(c.getFullYear()+t))),n&&(c=new Date(c.setMonth(c.getMonth()+n))),o&&(c=new Date(c.setDate(c.getDate()+o*7))),i&&(c=new Date(c.setDate(c.getDate()+i))),r&&(c=new Date(c.setHours(c.getHours()+r))),a&&(c=new Date(c.setMinutes(c.getMinutes()+a))),s&&(c=new Date(c.setSeconds(c.getSeconds()+s))),l&&(c=new Date(c.setMilliseconds(c.getMilliseconds()+l))),e.fromDate(c,this._locale)}isBetween(t,n){let o=(typeof n=="boolean"?n:n?.[0])??!1,i=(typeof n=="boolean"?n:n?.[1])??!1,[r,a]=t.sort((s,l)=>s.valueOf()-l.valueOf());if(r.valueOf()===a.valueOf())throw new Error("dates must be different");return o&&i?r<=this._date&&this._date<=a:o&&!i?r<=this._date&&this._date<a:!o&&i?r<this._date&&this._date<=a:r<this._date&&this._date<a}isBefore(t,n=!1){return n?this._date>=t:this._date>t}isAfter(t,n=!1){return n?this._date<=t:this._date<t}hasSame(t,n="millisecond"){let o=new Date(t.valueOf());switch(n){case"year":return this.yr===o.getFullYear();case"month":return this.yr===o.getFullYear()&&this.m-1===o.getMonth();case"day":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate();case"hour":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours();case"minute":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes();case"second":return this.yr===o.getFullYear()&&this.m-1===o.getMonth()&&this.d===o.getDate()&&this.hr===o.getHours()&&this.min===o.getMinutes()&&this.sec===o.getSeconds();case"millisecond":return this.valueOf()===o.valueOf();default:throw new Error(`invalid period '${n}' for hasSame()`)}}equals(t){if(t instanceof 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,n={}){return new e(new Date,t,n)}static epoch(t=e.DEFAULT_LOCALE,n={}){return new e(new Date(0),t,n)}static fromDate(t,n=e.DEFAULT_LOCALE,o={}){return new e(t,n,o)}static from(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date,{year:r,month:a,day:s,hour:l,minute:c,second:d,millisecond:m}={year:t.year??i.getFullYear(),month:t.month!=null?t.month==0?1:t.month:i.getMonth()+1,day:t.day??i.getDate(),hour:t.hour??i.getHours(),minute:t.minute??i.getMinutes(),second:t.second??i.getSeconds(),millisecond:t.millisecond??i.getMilliseconds()};if(a>12||a<1)throw new RangeError(`month value should be between 1 and 12, got ${a}`);if(l>23||l<0)throw new RangeError(`hour value should be between 0 and 23, got ${l}`);if(c>59||c<0)throw new RangeError(`minute value should be between 0 and 59, got ${c}`);if(d>59||d<0)throw new RangeError(`second value should be between 0 and 59, got ${d}`);if(m>999||m<0)throw new RangeError(`milliseconds value should be between 0 and 999, got ${m}`);let p=new Date(r,a,0),u=p.getDate();if(s>u||s<1)throw new RangeError(`day value should be between 1 and ${u} for ${p.toLocaleString(n,{month:"short"})} ${r}, got ${s}`);return new e(new Date(r,a-1,s,l,c,d,m),n,o)}static fromISO(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date(Date.parse(t));return new e(i,n,o)}static fromUTC(t,n=e.DEFAULT_LOCALE,o={}){let i=new Date(Date.parse(t));return new e(i,n,o)}static fromMillis(t,n=e.DEFAULT_LOCALE,o={}){let i=typeof t=="string"?+t:t;if(isNaN(i))throw new Error(`fromMillis() expects a numeric value, got "${t}"`);if(i>e.MAX_DATE_NUM||i<-e.MAX_DATE_NUM)throw new Error(`fromMillis() expects a numeric value, got "${t}"`);return new e(new Date(i),n,o)}toFormat(t){if(typeof t!="string")return this.intlDtf(t);let n=this.formatBuilder(t);return n.includes("[y4]")&&(n=n.replaceAll("[y4]",this.yr+"")),n.includes("[y2]")&&(n=n.replaceAll("[y2]",this.yr.toString().substring(2))),n.includes("[m4]")&&(n=n.replaceAll("[m4]",this.monthLong)),n.includes("[m3]")&&(n=n.replaceAll("[m3]",this.monthShort)),n.includes("[m2]")&&(n=n.replaceAll("[m2]",this.intlDtf({month:"2-digit"}))),n.includes("[m1]")&&(n=n.replaceAll("[m1]",this.intlDtf({month:"numeric"}))),n.includes("[d4]")&&(n=n.replaceAll("[d4]",this.dayLong)),n.includes("[d3]")&&(n=n.replaceAll("[d3]",this.dayShort)),n.includes("[d2]")&&(n=n.replaceAll("[d2]",this.intlDtf({day:"2-digit"}))),n.includes("[d1]")&&(n=n.replaceAll("[d1]",this.day+"")),n.includes("[h2]")&&(n=n.replaceAll("[h2]",this.hr>12?`${this.hr-12<10?"0":""}${this.hr-12}`:`${this.hr<10?"0":""}${this.hr}`)),n.includes("[h1]")&&(n=n.replaceAll("[h1]",this.hr>12?(this.hr-12).toString():this.hr.toString())),n.includes("[H2]")&&(n=n.replaceAll("[H2]",`${this.hr<10?"0":""}${this.hr}`)),n.includes("[H1]")&&(n=n.replaceAll("[H1]",this.hr.toString())),n.includes("[M2]")&&(n=n.replaceAll("[M2]",`${this.minute<10?"0":""}${this.minute}`)),n.includes("[M1]")&&(n=n.replaceAll("[M1]",this.minute+"")),n.includes("[s2]")&&(n=n.replaceAll("[s2]",`${this.second<10?"0":""}${this.second}`)),n.includes("[s1]")&&(n=n.replaceAll("[s1]",this.second+"")),n.includes("[S3]")&&(n=n.replaceAll("[S3]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S2]")&&(n=n.replaceAll("[S2]",this.millisecond<10?`00${this.millisecond}`:this.millisecond<100?`0${this.millisecond}`:this.millisecond+"")),n.includes("[S1]")&&(n=n.replaceAll("[S1]",this.millisecond+"")),n.includes("[W2]")&&(n=n.replaceAll("[W2]",this.weekNr+"")),n.includes("[t2]")&&(n=n.replaceAll("[t2]",this.isAM?"AM":"PM")),n.includes("[t1]")&&(n=n.replaceAll("[t1]",this.isAM?"A":"P")),n.includes("[Z2]")&&(n=n.replaceAll("[Z2]",this.timezoneLong)),n.includes("[Z1]")&&(n=n.replaceAll("[Z1]",this.timezoneShort)),n.includes("[O3]")&&(n=n.replaceAll("[O3]",this.timezoneOffsetLongStr)),n.includes("[O2]")&&(n=n.replaceAll("[O2]",this.timezoneOffsetShortStr.replace("GMT",""))),n.includes("[O1]")&&(n=n.replaceAll("[O1]",this.timezoneOffset>0?`+${this.timezoneOffset}`:this.timezoneOffset<0?`${this.timezoneOffset}`:"")),n.replaceAll(this.IGNORE_SIGN,"").trim()}formatBuilder(t){let n="",o="",i=0,r=!1,a="ymdhHMsSWtZO";return (t+" ").split("").forEach(s=>{o===""?i=1:!r&&s===o&&a.includes(s)?i++:!r&&s===o&&!a.includes(s)?(i++,n+=o):r?r&&(n+=o,i=1):(n+=a.includes(o)?`[${o}${i}]`:o,i=1),s===this.IGNORE_SIGN&&(r=!r),o=s;}),n}};var eo=class{_jsd1;_jsd2;constructor(t,n=D.now()){this._jsd1=t instanceof Date?D.fromDate(t):t.clone(),this._jsd2=n instanceof Date?D.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={},i=1e3*60*60*24*7;return [["weeks",7],["days",24],["hours",60],["minutes",60],["seconds",1e3],["milliseconds",0]].forEach(([a,s])=>{if(t.includes(a)){let l=0;for(;n>=i;)l++,n-=i;Object.assign(o,{[a]:l});}i/=s;}),Object.assign(o,{rest:n}),o}};function Gc(e){e=e.replaceAll(/[^0-9a-zA-Z]/g,"");let t=e.match(/[0-9]{9}/g);if(t){let n=[];for(let o of t){let i=0,r=9;for(let a of o.split(""))i+=parseInt(a)*r,r=r!==2?r-1:-1;i%11===0&&n.push(o);}return [n.length>0,n]}return [!!t,[]]}function Ne(e){let t=typeof e!="string",n;typeof e=="string"?n=Di(e):n=e;let[o=255,i=255,r=255]=n,s=[o/255,i/255,r/255].map(c=>c<.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)),l=.02126*s[0]+.7152*s[1]+.0722*s[2];return isNaN(l)?[0,0,0]:l>.179?t?[0,0,0]:"#000000":t?[255,255,255]:"#ffffff"}function Di(e){let t="#";if(e.startsWith("#")||(e="#"+e),!/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)|(^#[0-9A-F]{4}$)/i.test(e))throw new Error("Invalid hex-color: "+e);e.length===4?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===5?e.substring(1,5).split("").forEach(s=>t+=s+s):e.length===7?t=e:e.length===9&&(t=e.substring(0,7));let o=parseInt(t.substring(1,3),16),i=parseInt(t.substring(3,5),16),r=parseInt(t.substring(5,7),16),a=parseInt(t.substring(7,9),16);return [o,i,r,a]}function Zc(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=Oi.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,r=>(r.charCodeAt(0)-55).toString()),i=+o.slice(0,2);for(let r=2;r<o.length;r+=7)i=parseInt(i+o.substring(r,r+7),10)%97;return [i===1,i===1?n.land:"invalid restgetal"]}}else throw new Error("invalid landcode")}else throw new Error("invalid format")}catch(t){return [!1,t.message]}}var Oi=[{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 to([e,t,n]){return `#${e.toString(16).padStart(2,"0")}${t.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}`}function no(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]}function oo([e,t,n]){let o=n/100,i=t*Math.min(o,1-o)/100,r=a=>{let s=(a+e/30)%12,l=o-i*Math.max(Math.min(s-3,9-s,1),-1);return Math.round(255*l).toString(16).padStart(2,"0")};return `#${r(0)}${r(8)}${r(4)}`}function io(e){let t=/^#?([a-f\d]{1,2})([a-f\d]{1,2})([a-f\d]{1,2})$/i.exec(e),[n,o,i]=t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0];n/=255,o/=255,i/=255;let r=Math.max(n,o,i),a=Math.min(n,o,i),s=(r+a)/2,l=s,c=s;if(r!==a){let d=r-a;return l=c>.5?d/(2-r-a):d/(r+a),n===r?s=(o-i)/d+(o<i?6:0):o===r?s=(i-n)/d+2:i===r&&(s=(n-o)/d+4),[Math.round(360*(s/6)),Math.round(l*100),Math.round(c*100)]}else return [0,0,Math.round(c*100)]}function Qc(e){let[t,n,o]=e,i=t/255,r=n/255,a=o/255,s=Math.max(i,r,a),l=Math.min(i,r,a),c=(s+l)/2,d=c,m=c;if(s===l)return [0,0,Math.round(m*100)];let p=s-l;switch(d=m>=.5?p/(2-(s+l)):p/(s+l),s){case i:c=((r-a)/p+0)*60;break;case r:c=((a-i)/p+2)*60;break;case a:c=((i-r)/p+4)*60;break}return [Math.round(c),Math.round(d*100),Math.round(m*100)]}function jc(e){let[t,n,o]=e;n/=100,o/=100;let i=s=>(s+t/30)%12,r=n*Math.min(o,1-o),a=s=>o-r*Math.max(-1,Math.min(i(s)-3,Math.min(9-i(s),1)));return [255*a(0),255*a(8),255*a(4)]}function vt(e,t,n=!0){return Math.floor(Math.random()*(t-e+(n?1:-1)))+e+(n?0:1)}function tm(e,t){return Math.random()*(t-e)+e}function nm(e,t=2){if(t<1)return Math.round(e);let n=Math.pow(10,t);return Math.round(n*e)/n}var rm=(e=!1,t=!1)=>e===t?0:e?-1:1,am=(e=D.fromMillis(D.MAX_DATE_NUM),t=D.fromMillis(D.MAX_DATE_NUM))=>e.valueOf()-t.valueOf(),sm=(e="",t="")=>e<t?-1:e===t?0:1,ro=(e=1/0,t=1/0)=>e<t?-1:e===t?0:1;function Hi({data:e=[],columns:t=[],defaultSortColNum:n=void 0,compact:o=!1,narrow:i=!1,hoverable:r=!1,sticky:a="none",hidePagination:s=!1,hideSearch:l=!1,headerContent:c=void 0,footerContent:d=void 0,size:m="s",maxRows:p=20,searchPlaceholder:u="Zoek ...",rowIdentifier:f,onSearch:g=(C,A)=>A.filter(N=>JSON.stringify(N).toLowerCase().includes(C.toLowerCase())),onRowSelected:y,rowClass:h,renderWhenNoData:v=C=>C?jsxRuntime.jsx("div",{children:"No search results"}):jsxRuntime.jsx("div",{children:"No data"}),searchInfoMessage:b=(C,A,N)=>` ${C} van ${A}`,id:T,itemRef:P}){let C=t.sort((fe,Q)=>ro(fe.order??0,Q.order??0)),A=fe=>{ie(1),I(fe);},[N,H]=Ie__default.default.useState(()=>n||C.findIndex(fe=>fe.sort!==void 0)+1),[V,I]=Ie__default.default.useState(""),[x]=Kn(V,{delay:100}),O=[...V===""?e:g(x,e)];O.sort(C[Math.abs(N)-1]?.sort??(()=>0)),N<0&&O.reverse();let B=p===0?O.length:p,{range:ae,active:R,next:k,prev:X,first:oe,last:ue,setPage:ie}=Un({total:Math.ceil(O.length/B)}),se=O.slice(((R??1)-1)*B,(R??1)*B),U="table is-striped";o&&(U+=" is-narrow"),i||(U+=" is-fullwidth"),r&&(U+=" is-hoverable"),a!=="none"&&(U+=" is-sticky");let K=T??vt(0,999999999999).toString();return jsxRuntime.jsxs("table",{className:U,id:K,ref:P,children:[jsxRuntime.jsx(Fi,{sticky:a,cols:C,size:m,searchValue:V,filterCount:O.length,dataCount:e.length,hideSearch:l,onSearchValueChanged:A,searchPlaceholder:u,infoMessage:b,sortColNum:N,onSortIndexChanged:H,tableID:K,children:c}),se.length>0&&jsxRuntime.jsx(Ji,{rows:se,rowIdentifier:f,cols:C,onRowSelected:y,rowClass:h}),se.length===0&&jsxRuntime.jsx("tbody",{children:jsxRuntime.jsx("tr",{role:"no-rows-to-show-row",children:jsxRuntime.jsx("td",{colSpan:C.length,children:v(V!=="")})})}),jsxRuntime.jsx($i,{size:m,cols:C,currentPage:R??1,hidePagination:B===0?!0:s,range:ae,next:k,prev:X,first:oe,last:ue,set:ie,children:d})]})}function Ji({rows:e,cols:t,rowIdentifier:n,rowClass:o,onRowSelected:i=()=>{}}){return jsxRuntime.jsx("tbody",{children:e?.map(r=>{let a=typeof o=="function"?o(r):o,s=typeof n=="function"?n(r):r[n];return jsxRuntime.jsx("tr",{role:"row",className:a,onClick:l=>i(r,l),children:t.map((l,c)=>{if(l.hidden)return null;let d;typeof l.cellIdentifier=="function"?d=l.cellIdentifier(r):l.cellIdentifier?d=r[l.cellIdentifier]:d=`${s}-${c}`;let m=typeof l.columnClass=="function"?l.columnClass(r):l.columnClass;return l.alignment==="l"?m+=" has-text-left":l.alignment==="c"?m+=" has-text-centered":l.alignment==="r"&&(m+=" has-text-right"),jsxRuntime.jsx("td",{className:m,children:typeof l.value=="function"?l.value(r):r[l.value]},d)})},s)})})}function Fi({children:e=void 0,searchValue:t,filterCount:n,dataCount:o,searchPlaceholder:i,cols:r,size:a,sortColNum:s,hideSearch:l,sticky:c,tableID:d,onSortIndexChanged:m,onSearchValueChanged:p,infoMessage:u}){let f=(h,v)=>{let b=v+1,T=r[v];T&&T.sort&&(Math.abs(s)===b?m(s*-1):s!==b&&m(b));},g=l?r.length:Math.ceil(r.filter(h=>!h.hidden).length/2),y=l?0:r.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}),!l&&jsxRuntime.jsx("th",{colSpan:y,children:jsxRuntime.jsx(on,{size:a,type:"text",name:`lbr-datatable-search-${d}`,placeholder:i,value:t,onValueChanged:p,infoMessage:u(n,o,t)})})]}),jsxRuntime.jsx("tr",{role:"header-row",className:c==="header"?"is-sticky-row":void 0,children:r.map((h,v)=>{if(h.hidden)return null;let b=h.sort!==void 0,T=Math.abs(s)-1===v,P;h.header||h.header===""?P=h.header:typeof h.value!="string"?P=h.value.toString():P=h.value;let C="";h.alignment==="l"?C+=" has-text-left":h.alignment==="c"?C+=" has-text-centered":h.alignment==="r"&&(C+=" has-text-right");let A=freeSolidSvgIcons.faSort;return T&&s>0?A=freeSolidSvgIcons.faSortUp:T&&s<0&&(A=freeSolidSvgIcons.faSortDown),jsxRuntime.jsxs("th",{role:"sort-col",style:{cursor:b?"pointer":void 0},className:C,onClick:N=>f(N,v),children:[b&&jsxRuntime.jsx(cn,{icon:A,children:P}),!b&&jsxRuntime.jsx("span",{children:P})]},v)})})]})}function $i({size:e,children:t=void 0,hidePagination:n,cols:o,range:i,currentPage:r,next:a,prev:s,first:l,last:c,set:d}){return jsxRuntime.jsxs("tfoot",{children:[!n&&i.length>1&&jsxRuntime.jsx("tr",{role:"footer-row",children:jsxRuntime.jsx("td",{colSpan:o.filter(m=>!m.hidden).length,children:jsxRuntime.jsx(mn,{size:e,range:i,currentPage:r,next:a,prev:s,first:l,last:c,set:d})})}),t]})}var Te=({color:e="i",className:t="",children:n})=>{let o="help";return e==="p"?o+=" is-primary":e==="i"?o+=" is-info":e==="l"?o+=" is-link":e==="d"?o+=" is-danger":e==="s"?o+=" is-success":e==="w"?o+=" is-warning":e.startsWith("is-")&&(o+=` ${e}`),o=`${o} ${t}`.trim(),jsxRuntime.jsx("p",{className:o,children:n})};Te.Info=e=>jsxRuntime.jsx(Te,{color:"i",...e});Te.Link=e=>jsxRuntime.jsx(Te,{color:"l",...e});Te.Primary=e=>jsxRuntime.jsx(Te,{color:"p",...e});Te.Danger=e=>jsxRuntime.jsx(Te,{color:"d",...e});Te.Success=e=>jsxRuntime.jsx(Te,{color:"s",...e});Te.Warning=e=>jsxRuntime.jsx(Te,{color:"w",...e});function Xi({position:e="tr",color:t="l",title:n,children:o}){let i="badge";return e==="tr"||e==="top-right"?i+=" is-top-right":e==="tl"||e==="top-left"?i+=" is-top-left":e==="tc"||e==="top-center"?i+=" is-top-center":e==="bl"||e==="bottom-left"?i+=" is-bottom-left":e==="br"||e==="bottom-right"?i+=" is-bottom-right":e==="bc"||e==="bottom-center"?i+=" is-bottom-center":e==="lc"||e==="left-center"?i+=" is-left-center":(e==="rc"||e==="right-center")&&(i+=" is-right-center"),t==="p"?i+=" is-primary":t==="l"?i+=" is-link":t==="i"?i+=" is-info":t==="w"?i+=" is-warning":t==="d"?i+=" is-danger":t==="s"?i+=" is-success":t==="dark"?i+=" is-dark":t==="light"?i+=" is-light":t.startsWith("is-")&&(i+=` ${t}`),jsxRuntime.jsx("span",{className:i,title:n,children:o})}function pn({children:e,className:t=""}){let n=`kbd ${t}`.trim();return jsxRuntime.jsx("kbd",{className:n,children:e})}function zi({keys:e,separator:t,className:n=""}){let o=e.map((i,r)=>r===e.length-1?jsxRuntime.jsx(pn,{children:i},i):jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx(pn,{children:i}),jsxRuntime.jsx("span",{children:t??"+"})]},i));return jsxRuntime.jsx("span",{className:n,children:o})}var Pe=({initialItem:e,children:t,className:n,style:o,onMenuItemClicked:i,itemRef:r})=>{let[a,s]=Ie__default.default.useState(e??""),l=m=>{i(m),s(m);},c=Ie__default.default.Children.map(t,m=>m.type===Pe.Item?jsxRuntime.jsx("ul",{children:jsxRuntime.jsx(dn,{...m.props,activeItem:a,onInternClick:l})}):m.type===Pe.ItemGroup?jsxRuntime.jsx(Ui,{...m.props,activeItem:a,onInternClick:l}):m.type===Pe.ExpandableItem?jsxRuntime.jsx("ul",{className:"menu-list",children:jsxRuntime.jsx(so,{...m.props,activeItem:a,onInternClick:l})}):m),d=`menu ${n}`.trim();return jsxRuntime.jsx("aside",{className:d,role:"menu",style:o,ref:r,children:c})};function Ui({label:e,children:t,activeItem:n,onInternClick:o}){return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("p",{className:"menu-label",children:e}),jsxRuntime.jsx("ul",{className:"menu-list",children:Ie__default.default.Children.map(t,i=>i.type===Pe.Item?jsxRuntime.jsx(dn,{...i.props,activeItem:n,onInternClick:o}):i.type===Pe.ExpandableItem?jsxRuntime.jsx(so,{...i.props,activeItem:n,onInternClick:o}):i)})]})}function so({label:e,onClick:t,onInternClick:n,children:o,startExpanded:i,activeItem:r}){let[a,s]=Ie__default.default.useState(i??!1),l=d=>{t&&t(e,d),s(!a);},c=Ie__default.default.Children.map(o,d=>d.type===Pe.Item?jsxRuntime.jsx(dn,{...d.props,activeItem:r,onInternClick:n}):d);return jsxRuntime.jsxs("li",{children:[jsxRuntime.jsxs("span",{className:"menu-list-item",onClick:l,children:[jsxRuntime.jsx(me,{color:"i",size:"s",icon:a?freeSolidSvgIcons.faChevronUp:freeSolidSvgIcons.faChevronDown}),jsxRuntime.jsxs("span",{children:[" ",e]})]}),a&&jsxRuntime.jsx("ul",{children:c})]})}function dn({name:e,activeItem:t,children:n,onInternClick:o,onClick:i}){let r=s=>{i&&i(a,s),o(a);},a=e??Ie__default.default.Children.toArray(n).filter(s=>typeof s=="string")[0].toString();return jsxRuntime.jsx("li",{onClick:r,id:a,children:jsxRuntime.jsx("span",{className:t===a?"menu-list-item is-active":"menu-list-item",children:n})})}Pe.Item=({name:e,children:t})=>jsxRuntime.jsxs("span",{children:[e,t]});Pe.ItemGroup=({label:e,children:t})=>jsxRuntime.jsxs("div",{children:[e,t]});Pe.ExpandableItem=e=>jsxRuntime.jsx("div",{children:e.children});Pe.Label=({children:e})=>jsxRuntime.jsx("p",{className:"menu-label",children:e});var Se=({id:e,children:t,title:n,size:o="m",color:i="i",icon:r=void 0,collapsable:a=!1,startCollapsed:s=!1,itemRef:l,onDismiss:c})=>{let[d,m]=qn(!s),p="message";i==="i"?p+=" is-info":i==="s"?p+=" is-success":i==="w"?p+=" is-warning":i==="d"?p+=" is-danger":i==="l"?p+=" is-link":i==="p"&&(p+=" is-primary");let u;return r===void 0&&i==="w"?u=freeSolidSvgIcons.faExclamation:r===void 0&&i==="d"?u=freeSolidSvgIcons.faExclamationTriangle:r===void 0&&i==="s"?u=freeSolidSvgIcons.faCheck:r===void 0?u=freeSolidSvgIcons.faInfo:u=r,o==="s"?p+=" is-small":o==="m"?p+=" is-normal":o==="l"?p+=" is-medium":o==="xl"&&(p+=" is-large"),jsxRuntime.jsxs("article",{className:p,id:e,ref:l,children:[jsxRuntime.jsxs("div",{className:"message-header","data-testid":"message-header",onClick:()=>a&&m(),style:{cursor:a?"pointer":"default"},children:[jsxRuntime.jsxs("p",{children:[a&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("span",{className:"icon mr-1",children:[d&&jsxRuntime.jsx(me,{icon:freeSolidSvgIcons.faChevronCircleUp}),!d&&jsxRuntime.jsx(me,{icon:freeSolidSvgIcons.faChevronCircleDown})]})}),jsxRuntime.jsx("span",{className:"icon mr-3",children:jsxRuntime.jsx(me,{icon:u})}),n]}),c&&jsxRuntime.jsx("button",{className:"delete"})]}),!a&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t}),a&&d&&jsxRuntime.jsx("div",{className:"message-body","data-testid":"message-body",children:t})]})};Se.Primary=e=>jsxRuntime.jsx(Se,{...e,color:"p"});Se.Success=e=>jsxRuntime.jsx(Se,{...e,color:"s"});Se.Danger=e=>jsxRuntime.jsx(Se,{...e,color:"d"});Se.Warning=e=>jsxRuntime.jsx(Se,{...e,color:"w"});Se.Info=e=>jsxRuntime.jsx(Se,{...e,color:"i"});Se.Link=e=>jsxRuntime.jsx(Se,{...e,color:"l"});var et=({size:e="m",itemRef:t,children:n,onOpened:o,onDismiss:i,helpTag:r})=>{Ie__default.default.useEffect(()=>(document.documentElement.classList.add("is-clipped"),o&&o(r),()=>document.documentElement.classList.remove("is-clipped")),[r,o]);let a="800px";e==="s"?a="600px":e==="m"?a="800px":e==="l"?a="1000px":e==="xl"?a="1200px":typeof e=="string"&&(a=e);let s=Ie__default.default.Children.map(n,l=>l?l.type===et.Head?jsxRuntime.jsx(nr,{...l.props}):l.type===et.Body?jsxRuntime.jsx(fn,{...l.props}):l.type===et.Foot?jsxRuntime.jsx(or,{...l.props}):jsxRuntime.jsx(fn,{children:l}):null)?.sort((l,c)=>l.type.name==="InternHead"?-1:l.type.name==="InternBody"&&c.type.name==="InternHead"?1:l.type.name==="InternBody"&&c.type.name==="InternFoot"?-1:l.type.name==="InternFoot"?1:0);return !s||s?.length===0?console.warn("<Modal> A Modal needs at least one child"):s.filter(l=>l.type===fn).length>1&&console.warn("<Modal> A modal should have only one body. Wrap multiple children into a <Modal.Body>-tag."),jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"modal is-active","data-testid":"modal",children:[jsxRuntime.jsx("div",{className:"modal-background","data-testid":"modal-bg"}),jsxRuntime.jsx("div",{className:"modal-content bulma-box modal-container","data-testid":"modal-content",style:{width:a},ref:t,children:s}),jsxRuntime.jsx("button",{className:"modal-close is-large","aria-label":"close",onClick:i})]})})},nr=({children:e})=>jsxRuntime.jsx("div",{className:"modal-header","data-testid":"modal-header",children:e}),fn=({children:e})=>jsxRuntime.jsx("div",{className:"modal-body","data-testid":"modal-body",children:e}),or=({children:e})=>jsxRuntime.jsx("div",{className:"modal-footer","data-testid":"modal-footer",children:e});et.Head=({children:e})=>jsxRuntime.jsx("div",{children:e});et.Body=({children:e})=>jsxRuntime.jsx("div",{children:e});et.Foot=({children:e})=>jsxRuntime.jsx("div",{children:e});var pe=({children:e,onDismiss:t,onClick:n,autoDismissAfter:o=-1,color:i="i",icon:r=void 0,id:a,itemRef:s})=>{let l=o>0?setTimeout(()=>d(null),o):null,[c]=Ie__default.default.useState(l);Ie__default.default.useEffect(()=>()=>c?clearTimeout(c):void 0,[c]);let d=f=>{c&&clearTimeout(c),t(f);},m=f=>{n?n(f):d(f);},p="notification";i==="i"?p+=" is-info":i==="s"?p+=" is-success":i==="w"?p+=" is-warning":i==="d"?p+=" is-danger":i==="l"?p+=" is-link":i==="p"&&(p+=" is-primary");let u;return r?u=r:i==="s"?u=freeSolidSvgIcons.faCheck:i==="w"?u=freeSolidSvgIcons.faExclamation:i==="d"?u=freeSolidSvgIcons.faExclamationTriangle:u=freeSolidSvgIcons.faInfo,jsxRuntime.jsxs("article",{className:p,onClick:m,id:a,ref:s,children:[jsxRuntime.jsx("button",{className:"delete",onClick:d}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("span",{className:"icon is-medium mr-2",style:{float:"left"},children:jsxRuntime.jsx(me,{icon:u})}),e]})]})};pe.Primary=e=>jsxRuntime.jsx(pe,{...e,color:"p"});pe.Danger=e=>jsxRuntime.jsx(pe,{...e,color:"d"});pe.Warning=e=>jsxRuntime.jsx(pe,{...e,color:"w"});pe.Success=e=>jsxRuntime.jsx(pe,{...e,color:"s"});pe.Link=e=>jsxRuntime.jsx(pe,{...e,color:"l"});pe.Info=e=>jsxRuntime.jsx(pe,{...e,color:"i"});function cr({color:e="i",size:t="m",prefix:n="",suffix:o="",max:i=100,value:r,title:a}){let s="progress";t==="s"?s+=" is-small":t==="m"?s+=" is-normal":t==="l"?s+=" is-medium":t==="xl"&&(s+=" is-large"),e==="s"?s+=" is-success":e==="i"?s+=" is-info":e==="p"?s+=" is-primary":e==="d"?s+=" is-danger":e==="l"?s+=" is-link":e==="w"?s+=" is-warning":e==="dark"?s+=" is-dark":e==="light"?s+=" is-light":e.startsWith("is-")&&(s+=` ${e}`);let l=r&&r!=="indeterminate"?`${n} ${r} ${o}`.trim():void 0,c=a?typeof a=="function"?a(r):a:l;return jsxRuntime.jsx("progress",{className:s,value:r==="indeterminate"?void 0:r,max:i,title:c,role:"progress",children:l})}function pr({rowIdentifier:e,columns:t,data:n,onRowSelected:o,tableRef:i,containerRef:r,id:a,hasFooter:s,...l}){let c=p=>p&&typeof p[0]=="string"?p.map(f=>({header:f,value:f})):p?p.map(f=>(!f.header&&f.header!==""&&typeof f.value=="string"&&(f.header=f.value),f)):Object.keys(n[0]).map(u=>({header:u,value:u})),d=(p,u)=>{o&&o(p,u);},m=c(t);return jsxRuntime.jsxs($,{tableRef:i,containerRef:r,...l,children:[jsxRuntime.jsx(ur,{columns:m}),jsxRuntime.jsx(dr,{columns:m,data:n,rowIdentifier:e,onRowSelected:(p,u)=>d(p,u)}),s&&jsxRuntime.jsx(fr,{columns:m})]})}function dr({columns:e,data:t,rowIdentifier:n,onRowSelected:o}){return jsxRuntime.jsx($.Body,{children:t.map(i=>jsxRuntime.jsx($.Row,{onClick:r=>o(i,r.currentTarget),children:e.map((r,a)=>jsxRuntime.jsx($.Cell,{children:typeof r.value=="function"?r.value(i):i[n]},a))},typeof n=="function"?n(i):i[n]))})}function ur({columns:e}){return jsxRuntime.jsx($.Head,{children:jsxRuntime.jsx($.Row,{children:e.map(t=>jsxRuntime.jsx($.TH,{children:t.header},t.header))})})}function fr({columns:e}){return jsxRuntime.jsx($.Foot,{children:jsxRuntime.jsx($.Row,{children:e.map(t=>jsxRuntime.jsx($.TH,{children:t.header},t.header))})})}var $=({id:e,containerRef:t,tableRef:n,scrollX:o=!1,striped:i=!1,bordered:r=!1,hoverable:a=!1,fullwidth:s=!1,narrow:l=!1,children:c,className:d=""})=>{let m="table";return i&&(m+=" is-striped"),r&&(m+=" is-bordered"),a&&(m+=" is-hoverable"),s&&(m+=" is-fullwidth"),l&&(m+=" is-narrow"),d&&(m+=` ${d}`),jsxRuntime.jsx("div",{ref:t,className:o?"table-container":void 0,children:jsxRuntime.jsx("table",{className:m,ref:n,id:e,children:c})})};$.Head=({children:e,className:t,...n})=>jsxRuntime.jsx("thead",{className:t,...n,children:e});$.Foot=({children:e,className:t,...n})=>jsxRuntime.jsx("tfoot",{className:t,...n,children:e});$.Body=({children:e,className:t,...n})=>jsxRuntime.jsx("tbody",{className:t,...n,children:e});$.Row=({children:e,className:t,...n})=>jsxRuntime.jsx("tr",{className:t,...n,children:e});$.Cell=({children:e,className:t,...n})=>jsxRuntime.jsx("td",{className:t,...n,children:e});$.HCell=({children:e,className:t,...n})=>jsxRuntime.jsx("th",{className:t,...n,children:e});$.ColGroup=({className:e,...t})=>jsxRuntime.jsx("colgroup",{className:e,...t});$.Col=e=>jsxRuntime.jsx("col",{...e});$.TR=$.Row;$.TD=$.Cell;$.TH=$.HCell;var gn=({size:e="m",id:t,itemRef:n,className:o,activeStepIndex:i,onChangeStep:r,children:a,freeStepChoice:s})=>{let[l,c]=Ie__default.default.useState(i??0),d=p=>{r&&r(p),c(p);};Ie__default.default.useEffect(()=>{c(i??0);},[i]);let m="steps is-animated";return e==="s"?m+=" is-small":e==="m"?m+=" is-normal":e==="l"?m+=" is-medium":e==="xl"&&(m+=" is-large"),m+=` ${o}`,jsxRuntime.jsx("div",{className:m,id:t,ref:n,children:Ie__default.default.Children.map(a,(p,u)=>{if(p.type&&p.type===gn.Item){let f=!0;return s==="allowed"||s==="down"&&u<l||s==="up"&&u>l?f=!1:f=u!=l+1&&u!=l-1,jsxRuntime.jsx(yr,{...p.props,activeStep:l,stepKey:u,disabled:f,onClick:d},p.props.title)}else return p})})};gn.Item=e=>jsxRuntime.jsx(Ie__default.default.Fragment,{children:e.title});function yr({disabled:e,stepKey:t,activeStep:n,status:o,marker:i,title:r,children:a,details:s,onClick:l}){let c=()=>{e||t===n||(l(t),m("active"));},[d,m]=Ie__default.default.useState(o??"pending");Ie__default.default.useEffect(function(){let g="pending";o==="error"?g="error":o==="completed"||n>t?g="completed":t===n&&(g="active"),m(g);},[o,t,n]);let p="step-item";n===t?p+=" is-active is-info":d==="error"?p+=" is-error is-danger":d==="completed"?p+=" is-completed is-success":p+=" is-pending";let u;return i?typeof i=="function"?u=i(d):u=i:u=jsxRuntime.jsx(Ie__default.default.Fragment,{children:t+1}),jsxRuntime.jsxs("div",{className:p,onClick:c,title:r,children:[jsxRuntime.jsx("div",{className:"step-marker",children:u}),jsxRuntime.jsxs("div",{className:"step-details",children:[jsxRuntime.jsx("p",{className:"step-title",children:a}),s&&jsxRuntime.jsx("p",{children:s})]})]})}var po=({id:e,activeTab:t,initialTab:n,size:o,alignment:i,fullwidth:r,children:a,onTabChange:s})=>{let[l,c]=Ie__default.default.useState(t??n),d=(u,f)=>{f||(c(u),s(u));};Ie__default.default.useEffect(()=>{t!==void 0&&c(l);},[l,t]);let m="tabs is-boxed";o==="s"?m+=" is-small":o==="l"?m+=" is-medium":o==="xl"&&(m+=" is-large"),i==="c"?m+=" is-centered":i==="r"&&(m+=" is-right"),m+=r?" is-fullwidth":"";let p=Ie__default.default.Children.map(a,(u,f)=>jsxRuntime.jsx(hr,{isActive:l?l===u.props.tabId:f===0,disabled:u.props.disabled,onClick:()=>d(u.props.tabId,u.props.disabled),children:u}));return jsxRuntime.jsx("div",{className:m,id:e,children:jsxRuntime.jsx("ul",{children:p})})};function hr({children:e,isActive:t,disabled:n=!1,onClick:o}){let i="";return t&&(i+="is-active"),n&&(i+=" is-disabled"),jsxRuntime.jsx("li",{role:"tab",className:i,onClick:o,children:e})}function Tr({children:e,tabId:t,title:n,disabled:o=!1}){let i=Ie__default.default.Children.map(e,r=>!r||r===""?null:r);return jsxRuntime.jsx("span",{title:n,id:t?.toString()||void 0,className:"tab",children:i})}po.Item=Tr;function Et({children:e,color:t="l",size:n=void 0,light:o=!1,title:i,onDismiss:r}){let a="tag is-rounded";o&&(a+=" is-light"),t==="p"?a+=" is-primary":t==="l"?a+=" is-link":t==="i"?a+=" is-info":t==="d"?a+=" is-danger":t==="w"?a+=" is-warning":t==="s"?a+=" is-success":t==="dark"?a+=" is-dark":t==="light"?a+=" is-light":t.startsWith("is-")&&(a+=` ${t}`),n||(n="s"),n==="s"?a+=" is-normal":n==="m"?a+=" is-medium":n==="l"&&(a+=" is-large");let s="delete";return r&&n==="s"?s+=" is-small":r&&n==="m"?s+=" is-ismall":r&&n==="l"&&(s+=" is-normal"),jsxRuntime.jsxs("span",{className:a,title:i,children:[e,r&&jsxRuntime.jsx("button",{className:s,onClick:c=>r&&r(c)})]})}function br({children:e,merged:t=!1,size:n="s",alignment:o="l",className:i="",styles:r={},itemRef:a,id:s=void 0}){let l="tags";n==="s"?l+=" are-small":n==="m"?l+=" are-medium":n==="l"&&(l+=" are-large"),o==="l"?l+=" is-left":o==="r"?l+=" is-right":o==="c"&&(l+=" is-centered"),t&&(l+=" has-addons"),l=`${l} ${i}`.trim();let c=Ie__default.default.Children.map(e,d=>d.type===Et&&!d.props.size?jsxRuntime.jsx(Et,{size:n,...d.props}):d);return jsxRuntime.jsx("div",{className:l,style:r,ref:a,id:s,children:c})}var hn=({id:e,alignment:t="l",children:n,className:o})=>{let i="timeline";return t==="l"?i+=" is-ltr":t==="c"?i+=" is-centered":t==="r"&&(i+=" is-rtl"),i=`${i} ${i}`.trim(),jsxRuntime.jsx("div",{className:i,id:e,children:n})};hn.Point=({children:e,color:t="l",size:n="s",title:o,onClick:i})=>jsxRuntime.jsx("div",{className:"timeline-header",onClick:i,children:jsxRuntime.jsx(Et,{color:t,size:n,title:o,children:e})});hn.Item=({marker:e,heading:t,children:n,title:o,onClick:i})=>{let r="timeline-marker";return e?.color==="p"?r+=" is-primary":e?.color==="l"?r+=" is-link":e?.color==="i"?r+=" is-info":e?.color==="s"?r+=" is-success":e?.color==="d"?r+=" is-danger":e?.color==="w"?r+=" is-warning":e?.color==="light"?r+=" is-light":e?.color==="dark"&&(r+=" is-dark"),e?.icon&&(r+=" is-icon"),jsxRuntime.jsxs("div",{className:"timeline-item",title:o,onClick:()=>i&&i(t),children:[jsxRuntime.jsx("div",{className:r,children:e?.icon&&jsxRuntime.jsx(me,{icon:e.icon})}),jsxRuntime.jsxs("div",{className:"timeline-content",children:[t&&jsxRuntime.jsx("p",{className:"heading",children:t}),jsxRuntime.jsx("div",{children:n})]})]})};var Pr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h1",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Cr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h2",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Ir=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h3",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Er=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h4",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),xr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h5",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e}),Nr=({children:e,subtitle:t=!1,size:n,id:o,ariaLabeledBy:i="",ariaRole:r="heading",className:a="",itemRef:s,...l})=>jsxRuntime.jsx("h6",{className:`${t?"subtitle":"title"} is-${n!==void 0?n:t?5:3} ${a}`,"aria-labelledby":i,role:r,id:o,ref:s,...l,children:e});var it=({children:e,id:t,itemRef:n,color:o,alignment:i="r",tag:r,onDismiss:a,onOpened:s})=>{Ie__default.default.useEffect(()=>s&&s(r),[s,r]);let l="quickview is-active";i==="l"?l+=" is-left":i==="r"&&(l+=" is-right");let c=null,d=null,m=null;return Ie__default.default.Children.forEach(e,p=>{if(Ie__default.default.isValidElement(p))switch(p.type){case it.Header:c=jsxRuntime.jsx(Sn,{...p.props,onDismiss:a,color:o});break;case it.Body:d=jsxRuntime.jsx(bn,{...p.props});break;case it.Footer:m=jsxRuntime.jsx(fo,{...p.props});break;default:d=jsxRuntime.jsx(bn,{children:p});break}}),jsxRuntime.jsxs("div",{id:t,className:l,ref:n,children:[c??jsxRuntime.jsx(Sn,{onDismiss:a}),d,m]})};function Sn({children:e,color:t="i",onDismiss:n}){let o="quickview-header";return t==="i"?o+=" is-info":t==="s"?o+=" is-success":t==="w"?o+=" is-warning":t==="d"?o+=" is-danger":t==="l"?o+=" is-link":t==="p"&&(o+=" is-primary"),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 bn=({children:e})=>jsxRuntime.jsx("section",{className:"quickview-body",children:e}),fo=({children:e})=>jsxRuntime.jsx("footer",{className:"quickview-footer",children:e});it.Header=Sn;it.Body=bn;it.Footer=fo;var M=({size:e="m",rounded:t=!1,alignment:n="l",value:o,initialValue:i,children:r,className:a,onToggle:s})=>{let[l,c]=Ie__default.default.useState(o??i);Ie__default.default.useEffect(()=>{o!==void 0&&l!==o&&c(o);},[o,l]);let d=f=>{l!=f&&(s&&s(f),c(f));},m=Ie__default.default.useId(),p=Ie__default.default.Children.map(r,(f,g)=>{let y=f.props?.identifier??Ie__default.default.Children.map(f.props.children,h=>typeof h=="string"?h:typeof h.type=="string"?h.type:m)?.join("")??""+g;return f.type===yo?jsxRuntime.jsx(Rr,{...f.props,toggled:l==y,identifier:y,onToggleClick:d}):f.type===ho?jsxRuntime.jsx(Ar,{...f.props,identifier:y}):f}),u="tabs is-toggle";return t&&(u+=" is-toggle-rounded"),e==="s"?u+=" is-small":e==="m"?u+=" is-normal":e==="l"?u+=" is-medium":e==="xl"&&(u+=" is-large"),n==="l"&&(u+=" is-left"),n==="c"?u+=" is-centered":n==="r"&&(u+=" is-right"),a&&(u+=" "+a),jsxRuntime.jsx("div",{className:u,children:jsxRuntime.jsx("ul",{children:p})})},yo=e=>jsxRuntime.jsx("button",{disabled:e.disabled,children:e.children});function Rr({disabled:e,title:t,toggled:n,children:o,identifier:i,onClick:r,onToggleClick:a}){let s="";return e&&(s+=" is-disabled"),n&&(s+=" is-active"),jsxRuntime.jsx("li",{title:t,className:s,onClick:()=>{r&&r(i),e||a(i);},id:i,children:jsxRuntime.jsx("span",{className:"tab",children:o})})}var ho=e=>jsxRuntime.jsx("button",{children:e.children});function Ar({title:e,identifier:t,onToggle:n,toggled:o=!1,disabled:i,children:r}){let[a,s]=Ie__default.default.useState(o);Ie__default.default.useEffect(()=>{o!==void 0&&s(o);},[o]);let l="";a&&(l+="is-active"),i&&(l+=" is-disabled");let c=()=>{i||(n&&n(!a,t),s(!a));};return jsxRuntime.jsx("li",{title:e,id:t,className:l,onClick:()=>c(),children:jsxRuntime.jsx("span",{className:"tab",children:r})})}M.Item=yo;M.OnOffItem=ho;var E=({color:e="p",size:t="m",loading:n=!1,disabled:o=!1,fullwidth:i=!1,type:r="button",styling:a="default",isStatic:s=!1,helpTag:l,onClick:c,onFocus:d,children:m,value:p,...u})=>{let f=b=>{n||o||a==="static"||a==="s"||c&&c(b);},g=b=>{d&&d(b,l);},y="button",h={};s||a==="static"||a==="s"?y+=" is-static":e==="p"?y+=" is-primary":e==="i"?y+=" is-info":e==="l"?y+=" is-link":e==="d"?y+=" is-danger":e==="s"?y+=" is-success":e==="w"?y+=" is-warning":e==="light"?y+=" is-light":e==="dark"?y+=" is-dark":e==="none"?y+="":y+=` ${e}`,t==="s"?y+=" is-small":t==="m"?y+=" is-normal":t==="l"?y+=" is-medium":t==="xl"&&(y+=" is-large"),n&&(y+=" is-loading"),i&&(y+=" is-fullwidth",h={justifyContent:"center"});let v=Ie__default.default.Children.map(m,b=>typeof b=="string"?jsxRuntime.jsx("span",{children:b}):b);return jsxRuntime.jsx("button",{style:h,className:y,type:r,disabled:o,onClick:f,onFocus:g,value:p,...u,children:v})};E.Static=e=>jsxRuntime.jsx(E,{...e,isStatic:!0});E.Primary=e=>jsxRuntime.jsx(E,{...e,color:"p"});E.Success=e=>jsxRuntime.jsx(E,{...e,color:"s"});E.Danger=e=>jsxRuntime.jsx(E,{...e,color:"d"});E.Warning=e=>jsxRuntime.jsx(E,{...e,color:"w"});E.Info=e=>jsxRuntime.jsx(E,{...e,color:"i"});E.Link=e=>jsxRuntime.jsx(E,{...e,color:"l"});E.Light=e=>jsxRuntime.jsx(E,{...e,color:"light"});E.Dark=e=>jsxRuntime.jsx(E,{...e,color:"dark"});function Ft({fullwidth:e=!1,children:t,color:n="l",onClick:o,...i}){let r="link-button";return n==="l"?r+=" is-link":n==="p"?r+=" is-primary":n==="s"?r+=" is-success":n==="d"?r+=" is-danger":n==="w"?r+=" is-warning":n==="i"&&(r+=" is-info"),e&&(r+=" is-fullwidth"),jsxRuntime.jsx("button",{className:r,onClick:o,...i,children:t})}function kr({color:e="l",href:t,target:n="_blank",id:o,rel:i="noopener",children:r,...a}){let s="link-button";return e==="l"?s+=" is-link":e==="p"?s+=" is-primary":e==="s"?s+=" is-success":e==="d"?s+=" is-danger":e==="w"?s+=" is-warning":e==="i"&&(s+=" is-info"),jsxRuntime.jsx("a",{className:s,href:t,target:n,id:o,rel:i,...a,children:r})}function $t({unevenSize:e=!1,...t}){return e?jsxRuntime.jsx(Dr,{...t}):jsxRuntime.jsx(Or,{...t})}function Dr({children:e,hasAddons:t=!1,alignment:n="l",className:o=void 0}){let i="field";return i+=t?" has-addons":" is-grouped",n==="l"?i+=" is-grouped-left":n==="c"?i+=" is-grouped-centered":n==="r"&&(i+=" is-grouped-right"),o&&(i+=` ${o}`),jsxRuntime.jsx("div",{className:i,children:Ie__default.default.Children.map(e,r=>jsxRuntime.jsx("div",{className:"control",children:r}))})}function Or({children:e,alignment:t="l",className:n=""}){let o="evenly-sized-buttons";t==="l"&&(o+=" is-left"),t==="c"?o+=" is-centered":t==="r"&&(o+=" is-right"),n&&(o+=` ${n}`);let i=Ie__default.default.Children.map(e,r=>r?.type===E?jsxRuntime.jsx(E,{...r.props,fullwidth:!0}):r?.type===E.Primary?jsxRuntime.jsx(E.Primary,{...r.props,fullwidth:!0}):r?.type===E.Info?jsxRuntime.jsx(E.Info,{...r.props,fullwidth:!0}):r?.type===E.Link?jsxRuntime.jsx(E.Link,{...r.props,fullwidth:!0}):r?.type===E.Success?jsxRuntime.jsx(E.Success,{...r.props,fullwidth:!0}):r?.type===E.Warning?jsxRuntime.jsx(E.Warning,{...r.props,fullwidth:!0}):r?.type===E.Danger?jsxRuntime.jsx(E.Danger,{...r.props,fullwidth:!0}):r?.type===E.Light?jsxRuntime.jsx(E.Light,{...r.props,fullwidth:!0}):r?.type===E.Dark?jsxRuntime.jsx(E.Dark,{...r.props,fullwidth:!0}):r?.type===Ft?jsxRuntime.jsx(Ft,{...r.props,fullwidth:!0}):r?.type==="button"?jsxRuntime.jsx("button",{...r.props,style:{...r.props.style,width:"100%"}}):null);return jsxRuntime.jsx("div",{className:o,children:jsxRuntime.jsx("div",{className:"evenly-sized-buttons-container",style:{display:"grid",direction:"ltr",gridTemplateColumns:`repeat(${Ie__default.default.Children.count(e)}, 1fr) `,gap:"0.5rem",gridTemplateRows:"1fr",gridAutoFlow:"column"},children:i})})}var Ke={transition:"background-color .2s ease-in-out, color .2s ease-in-out",fontSize:"0.7em",height:"1.5em",margin:"6px 3px",borderRadius:"5px",textAlign:"start",paddingLeft:"3px",paddingRight:"3px",overflow:"clip",textOverflow:"ellipsis"},We={textAlign:"center",borderBottom:"1px solid #f1f1f1",fontWeight:"bold",color:"#888"},dt={display:"grid",gridTemplateRows:"30px repeat(6, minmax(170px, auto))",justifyItems:"stretch",alignItems:"stretch"},Le={backgroundColor:"#f1f1f1",borderRight:"2px solid #f1f1f1",borderTop:"thin solid #f1f1f1",textAlign:"center",fontSize:"0.7em",color:"#888",paddingTop:"1em"},Xt={borderRight:"thin solid #f1f1f1",borderBottom:"thin solid #f1f1f1",textAlign:"center",fontSize:"1.1em",color:"#888"},So={marginBottom:".5em",marginTop:".25em",verticalAlign:"middle",transition:"background-color .2s ease-in-out"},_t={borderRadius:"15px",padding:".25em .65em",transition:"background-color .2s ease-in-out, color .2s ease-in-out"},bo={width:"0.9em",height:"0.9em",borderRadius:"3px",marginRight:".5em",display:"inline-block",transition:"background-color .2s ease-in-out"};function xt({event:e,options:t,onClick:n,desc:o}){let[i,r]=Ie__default.default.useState(!1),a=Ie__default.default.useCallback(Ne,[]),s=Ie__default.default.useMemo(()=>{let c="p";e.evtColor?c=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(c=t.evtColor(e,i)),c==="p"?c="#0089b6":c==="i"?c="#3b59ec":c==="l"?c="2f47bc":c==="d"?c="#d91000":c==="s"?c="#519c43":c==="w"?c="#eea720":c==="dark"?c="#363636":c==="light"&&(c="#f5f5f5"),c+=i?"aa":"ff";let d=a(c);return {...Ke,paddingLeft:"1em",backgroundColor:c,color:d,cursor:n?"pointer":"default"}},[e,i,n,t,a]),l=Ie__default.default.useRef(null);return jsxRuntime.jsx("div",{ref:l,onClick:c=>{c.preventDefault(),c.stopPropagation(),n&&n(e,c);},style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:jsxRuntime.jsx("span",{children:o(e)})})}function at({event:e,options:t,onClick:n,desc:o}){let[i,r]=Ie__default.default.useState(!1),a=Ie__default.default.useCallback(Ne,[]),s=Ie__default.default.useMemo(()=>{let d=i?"#f1f1f1":"#ffffff00",m=a(d);return {...Ke,backgroundColor:d,color:m,cursor:n?"pointer":"default"}},[i,n,a]),l=Ie__default.default.useMemo(()=>{let d="p";return e.evtColor?d=typeof e.evtColor=="function"?e.evtColor(i):e.evtColor:t?.evtColor&&(d=t.evtColor(e,i)),d==="p"?d="#0089b6":d==="i"?d="#3b59ec":d==="l"?d="2f47bc":d==="d"?d="#d91000":d==="s"?d="#519c43":d==="w"?d="#eea720":d==="dark"?d="#363636":d==="light"&&(d="#f5f5f5"),{...bo,backgroundColor:d}},[e,i,t]),c=Ie__default.default.useRef(null);return jsxRuntime.jsxs("div",{ref:c,onClick:d=>{d.preventDefault(),d.stopPropagation(),n&&n(e,d);},style:s,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[jsxRuntime.jsx("span",{style:l}),o(e)]})}function Po({events:e,onEventClick:t,options:n}){let[o,i]=Ie__default.default.useState(()=>e.slice(4)),[r,a]=Ie__default.default.useState(!1),[s,l]=Ie__default.default.useState(!1);Ie.useEffect(()=>{i(e.slice(4));},[e]);let c=Ie__default.default.useMemo(()=>({...Ke,backgroundColor:r?"#f4f4f4":"transparent",color:r?"#3b59ec":"#000000",height:"1.5em",fontSize:"0.6em"}),[r]),d=Ie__default.default.useMemo(()=>({width:"0.9em",height:"0.9em",borderRadius:"3px",backgroundColor:"transparent",marginRight:".5em",display:"inline-block"}),[]),m=()=>{l(!s),a(!1);};return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[s&&o.map(p=>p.allDay?jsxRuntime.jsx(xt,{desc:u=>jsxRuntime.jsx("span",{children:typeof u.title=="string"?u.title:u.title()}),event:p,options:n?.allday,onClick:t},`${typeof p.id=="function"?p.id():p.id}`):jsxRuntime.jsx(at,{desc:u=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:u._startDateTime.timeHM}),jsxRuntime.jsx("span",{children:typeof u.title=="string"?u.title:u.title()})]}),event:p,options:n?.timed,onClick:t},`${typeof p.id=="function"?p.id():p.id}`)),jsxRuntime.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),style:c,children:[!s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:d}),jsxRuntime.jsxs("span",{children:["Nog ",o.length," ..."]})]}),s&&jsxRuntime.jsxs("div",{onClick:m,children:[jsxRuntime.jsx("span",{style:d}),jsxRuntime.jsx("span",{children:"Toon minder"})]})]})]})}var ve=class extends Ie__default.default.Component{static defaultProps={position:"bottom",color:"l",content:void 0,display:"inline"};state={active:!1};show=()=>this.setState({active:!0});hide=()=>this.setState({active:!1});render(){let{content:t,children:n,color:o,display:i}=this.props,{active:r}=this.state;if(t){let a="tooltip is-bottom",s="tooltip-arrow";return o==="p"?(a+=" is-primary",s+=" is-primary"):o==="i"?(a+=" is-info",s+=" is-info"):o==="l"?(a+=" is-link",s+=" is-link"):o==="d"?(a+=" is-danger",s+=" is-danger"):o==="s"?(a+=" is-success",s+=" is-success"):o==="w"?(a+=" is-warning",s+=" is-warning"):(a+=` ${o}`,s+=` ${o}`),jsxRuntime.jsxs("div",{className:i==="block"?"tooltip-wrapper-block":"tooltip-wrapper-inline",onMouseEnter:this.show,onMouseLeave:this.hide,children:[n,r&&jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:a,children:t}),jsxRuntime.jsx("div",{className:s})]})]})}else return jsxRuntime.jsx(Ie__default.default.Fragment,{children:n})}};function zt({options:e,date:t,onDayClick:n,onEventClick:o,events:i,tooltipColor:r="is-light",isCurrentMonth:a=!0}){let[s,l]=Ie__default.default.useState(!1),c=Ie__default.default.useCallback(Ne,[]),d=Ie__default.default.useMemo(()=>({...Xt,backgroundColor:a?"transparent":"#f8f8f8",color:a?"#888888":"#bbbbbb"}),[a]),m=Ie__default.default.useMemo(()=>{if(e?.today?.doNotMarkToday)return {};let f="p";e?.today?.bgColor&&(f=e.today.bgColor(s,t)),f==="p"?f="#0089b6":f==="i"?f="#3b59ec":f==="l"?f="2f47bc":f==="d"?f="#d91000":f==="s"?f="#519c43":f==="w"?f="#eea720":f==="dark"?f="#363636":f==="light"&&(f="#f5f5f5");let g=c(f);return {..._t,backgroundColor:f,color:g}},[t,s,e?.today,c]),p=(f,g)=>{o&&o(f,g);},u=(f,g)=>{n&&n(f,g);};return jsxRuntime.jsxs("div",{style:d,onClick:f=>u(t,f),children:[jsxRuntime.jsxs("div",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:{...So,cursor:n?"pointer":"default",backgroundColor:s?"#f4f4f4":"transparent",color:a?"#555555":"#bbbbbb"},children:[jsxRuntime.jsx("span",{style:t.isToday?m:void 0,children:t.day}),jsxRuntime.jsxs("span",{style:{color:a?"#777777":"#bbbbbb",fontSize:"0.66em"},children:[" ",t.monthLong]})]}),jsxRuntime.jsx("div",{children:i.map((f,g)=>{let y=`${typeof f.id=="function"?f.id():f.id}`??g;return f.allDay&&g<4?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(xt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:f,options:e?.event?.allday,onClick:p})},y):!f.allDay&&g<4?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(at,{desc:h=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:f,options:e?.event?.timed,onClick:p})},y):g===4&&i.length>5?jsxRuntime.jsx(Po,{events:i,onEventClick:p,options:e?.event},t.dateShort+"-more"):g===4&&f.allDay?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(xt,{desc:h=>jsxRuntime.jsx("span",{children:typeof h.title=="string"?h.title:h.title()}),event:f,options:e?.event?.allday,onClick:p})},y):g===4&&!f.allDay?jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof f.description=="function"?f.description():f.description,children:jsxRuntime.jsx(at,{desc:h=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("strong",{children:h._startDateTime.timeHM}),jsxRuntime.jsx("span",{style:{marginLeft:"3px"},children:typeof h.title=="string"?h.title:h.title()})]}),event:f,options:e?.event?.timed,onClick:p})},y):null})})]})}function Io({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i=[]}){let r=d=>{let m=Math.ceil(d.weekNr/52*13),p=d.clone();for(;Math.ceil(p.weekNr/52*13)===m;)p=p.plus({days:-1});let u=d.clone();for(;Math.ceil(u.weekNr/52*13)===m;)u=u.plus({days:1});p=p.plus({days:1}),u=u.plus({days:-1});let f=i.map(h=>(h.allDay===void 0&&(h.allDay=!1),h._startDateTime||(h._startDateTime=h.startDateTime instanceof Date?D.fromDate(h.startDateTime,t?.locale):h.startDateTime.clone()),h._endDateTime&&!h._endDateTime&&(h._endDateTime=h.endDateTime instanceof Date?D.fromDate(h._endDateTime,t?.locale):h.endDateTime?.clone()),h)).filter(h=>h._startDateTime.isBetween([p,u])),g=p.clone(),y=[];for(;g<=u;){if(s.has(g.weekDay)){let h=g.startOf("day"),v=g.endOf("day"),b=f.filter(T=>T._startDateTime.isBetween([h,v])).sort((T,P)=>T.allDay&&!P.allDay?-1:!T.allDay&&P.allDay?1:T._startDateTime.valueOf()-P._startDateTime.valueOf());y.push([g,b]);}g=g.plus({days:1});}return y},a=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),s=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),l=r(a),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateColumns:`30px repeat(${s.size}, 1fr)`}),[s.size]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx(Hr,{visibleDays:s,viewDate:a}),jsxRuntime.jsx(Jr,{visibleDays:s,viewDate:a,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function Hr({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=Ie__default.default.useMemo(()=>({...We}),[]),l=Ie__default.default.useMemo(()=>({...We}),[]);return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Jr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i}){let r=e.size,a=0;return jsxRuntime.jsx(Ie__default.default.Fragment,{children:i.map(([s,l])=>(a==r&&(a=0),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[a++===0&&jsxRuntime.jsx(Fr,{weekNr:s.weekNr}),jsxRuntime.jsx(zt,{date:s,events:l,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o},s.ISO)]},s.ISO)))})}function Fr({weekNr:e}){let t=Ie__default.default.useMemo(()=>({...Le}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function Eo({viewDate:e,options:t,onEventClick:n,onDayClick:o,events:i=[]}){let r=d=>{let m=d.startOf("month").startOf("week").startOf("day"),p=d.endOf("month").endOf("week").plus({days:1}).startOf("day"),u=i.map(y=>(y.allDay===void 0&&(y.allDay=!1),y._startDateTime||(y._startDateTime=y.startDateTime instanceof Date?D.fromDate(y.startDateTime,t?.locale):y.startDateTime.clone()),y._endDateTime&&!y._endDateTime&&(y._endDateTime=y.endDateTime instanceof Date?D.fromDate(y._endDateTime,t?.locale):y.endDateTime?.clone()),y)).filter(y=>y._startDateTime.isBetween([m,p])),f=m.clone(),g=[];for(;f<p;){if(a.has(f.weekDay)){let y=f.startOf("day"),h=f.endOf("day"),v=u.filter(b=>b._startDateTime.isBetween([y,h])).sort((b,T)=>b.allDay&&!T.allDay?-1:!b.allDay&&T.allDay?1:b._startDateTime.valueOf()-T._startDateTime.valueOf());g.push([f,v]);}f=f.plus({days:1});}return g},a=t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),s=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),l=r(s),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateColumns:`30px repeat(${a.size}, 1fr)`}),[a.size]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx($r,{visibleDays:a,viewDate:s}),jsxRuntime.jsx(Xr,{visibleDays:a,viewDate:s,datesWithEvents:l,options:t,onDayClick:o,onEventClick:n})]})})}function $r({visibleDays:e,viewDate:t}){let n=[],o=t.startOf("week"),i=t.endOf("week"),r=Array.from(e).sort(),a=0;for(;o<=i&&a<7;)r.includes(o.weekDay)&&n.push(o.dayLong),o=o.plus({days:1}),a++;let s=Ie__default.default.useMemo(()=>({...We}),[]),l=Ie__default.default.useMemo(()=>({...We}),[]);return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{style:s}),n.map(c=>jsxRuntime.jsx("div",{style:l,children:c},c))]})}function Xr({visibleDays:e,onDayClick:t,onEventClick:n,options:o,datesWithEvents:i,viewDate:r}){let a=e.size,s=0;return jsxRuntime.jsx(Ie__default.default.Fragment,{children:i.map(([l,c])=>(s===a&&(s=0),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[s++===0&&jsxRuntime.jsx(_r,{weekNr:l.weekNr}),jsxRuntime.jsx(zt,{date:l,events:c,tooltipColor:o?.tooltipColor??"is-light",onEventClick:n,onDayClick:t,options:o,isCurrentMonth:l.hasSame(r,"month")},l.ISO)]},l.ISO)))})}function _r({weekNr:e}){let t=Ie__default.default.useMemo(()=>({...Le}),[]);return jsxRuntime.jsx("div",{style:{...t,borderTopWidth:"0"},children:e})}function xo({options:e,events:t,date:n,onEventClick:o,onDayClick:i,tooltipColor:r}){let a=Ie__default.default.useMemo(()=>({...Xt}),[]);return jsxRuntime.jsx("div",{style:a,onClick:s=>i&&i(n.startOf("day"),s),children:t.map(s=>jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof s.description=="function"?s.description():s.description,children:jsxRuntime.jsx(at,{desc:l=>jsxRuntime.jsx("span",{children:typeof l.title=="function"?l.title():l.title}),event:s,options:e?.event?.allday,onClick:o})},`${typeof s.id=="function"?s.id():s.id}`))})}function No({hour:e}){let t=Ie__default.default.useMemo(()=>({...Le,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}),[]);return jsxRuntime.jsxs("div",{style:t,children:[e.toString().padStart(2,"0"),":00"]})}function Ro({events:e,hour:t,date:n,onEventClick:o,onCellClick:i,options:r,tooltipColor:a,lastVisibleHour:s}){let l=Ie__default.default.useMemo(()=>({maxHeight:"60px",overflow:"clip",borderBottom:"thin solid #f1f1f1",borderRight:"thin solid #f1f1f1",display:"flex",flexDirection:"row",flexWrap:"nowrap"}),[]),c=Ie__default.default.useRef(null),d=e.length!==0&&c.current?c.current?.offsetWidth/e.length:document.body.clientWidth/8;return jsxRuntime.jsx("div",{style:l,ref:c,onClick:m=>{let p=n.clone().set({hour:t,minute:0,second:0,millisecond:0});i&&i(p,m);},children:e.map((m,p)=>jsxRuntime.jsx(zr,{tooltipColor:a,options:r?.event?.timed,event:m,lastVisibleHour:s??23,eventIndex:p,desc:u=>{let f=typeof u.title=="function"?u.title():u.title;return f.length>80&&(f=f.substring(0,80)+"..."),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{children:jsxRuntime.jsx("b",{children:u._startDateTime.timeHM})}),jsxRuntime.jsx("div",{children:f})]})},onClick:o,eventWidth:d},`${typeof m.id=="function"?m.id():m.id}`))})}function zr({event:e,lastVisibleHour:t,options:n,eventWidth:o,eventIndex:i,tooltipColor:r,onClick:a,desc:s}){let[l,c]=Ie__default.default.useState(!1),d=Ie__default.default.useCallback(Ne,[]),m=Ie__default.default.useRef(null),p=Ie__default.default.useMemo(()=>{let u="p";e.evtColor?u=typeof e.evtColor=="function"?e.evtColor(l):e.evtColor:n?.evtColor&&(u=n.evtColor(e,l)),u==="p"?u="#0089b6":u==="i"?u="#3b59ec":u==="l"?u="2f47bc":u==="d"?u="#d91000":u==="s"?u="#519c43":u==="w"?u="#eea720":u==="light"?u="#f5f5f5":u==="dark"&&(u="#363636"),u+=l?"aa":"ff";let f=d(u),g=e._startDateTime,y=e._endDateTime;y.hasSame(g,"day")||(y=g.endOf("day")),y.hour>t&&(y=y.set({hour:t,minute:59,second:59,millisecond:999}));let v=(y.valueOf()-g.valueOf())/1e3/60;return {...Ke,position:"absolute",backgroundColor:u,color:f,margin:"0",marginX:"2px",paddingLeft:"3px",paddingTop:"3px",marginTop:`${g.minute}px`,height:`${v<30?30:v}px`,width:o,lineHeight:"1.05em",overflow:"visible",marginLeft:`${i*(o??100/8)}px`,cursor:a?"pointer":"default"}},[e,l,n,d,t,o,i,a]);return jsxRuntime.jsx("div",{ref:m,onClick:u=>{u.preventDefault(),u.stopPropagation(),a&&a(e,u);},style:p,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:jsxRuntime.jsx(ve,{display:"block",color:r,content:typeof e.description=="function"?e.description():e.description,children:jsxRuntime.jsx("span",{style:{overflow:"clip",textOverflow:"ellipsis",position:"absolute",left:"3px",right:"3px",top:"3px"},children:s(e)})},`${typeof e.id=="function"?e.id():e.id}`)},`${typeof e.id=="function"?e.id():e.id}`)}function wo({viewDate:e,options:t,onEventClick:n,events:o,onDayClick:i}){let r=(m,p)=>{let u=m.startOf("week").startOf("day"),f=m.endOf("week").plus({days:1}).startOf("day"),g=(p??o??[]).map(T=>(T.allDay===void 0&&(T.allDay=!1),T._startDateTime||(T._startDateTime=T.startDateTime instanceof Date?D.fromDate(T.startDateTime,t?.locale):T.startDateTime.clone()),!T._endDateTime&&T._endDateTime?T._endDateTime=T.endDateTime instanceof Date?D.fromDate(T._endDateTime,t?.locale):T.endDateTime?.clone():T._endDateTime||(T._endDateTime=T._startDateTime.plus({hours:1})),T)).filter(T=>T._startDateTime.isBetween([u,f])),y=u.clone(),h=[];for(;y<f;){if(a.has(y.weekDay)){let T=y.startOf("day"),P=y.endOf("day"),C=g.filter(A=>A._startDateTime.isBetween([T,P])).sort((A,N)=>A.allDay&&!N.allDay?-1:!A.allDay&&N.allDay?1:A._startDateTime.valueOf()-N._startDateTime.valueOf());h.push([y,C]);}y=y.plus({days:1});}let v=h.map(([T,P])=>[T,P.filter(C=>C.allDay)]),b=h.map(([T,P])=>[T,P.filter(C=>!C.allDay)]);return {allday:v,timed:b}},a=Ie__default.default.useMemo(()=>t?.visibleDays&&t?.visibleDays?.size!==0?t?.visibleDays:new Set([1,2,3,4,5,6,7]),[t?.visibleDays]),s=e instanceof Date?D.fromDate(e,t?.locale):e.clone(),l=r(s),c=Ie__default.default.useMemo(()=>({...dt,gridTemplateRows:"60px repeat(6, auto)",gridTemplateColumns:`40px repeat(${a.size}, 1fr)`}),[a]),d=Ie__default.default.useMemo(()=>{let m=[],p=t?.firstHour??0,u=t?.lastHour??23;if(p>=u)throw new Error("BeginTime moet kleiner zijn dan endTime");for(;p<=u;)m.push(p++);return m},[t]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:jsxRuntime.jsxs("div",{className:"lbr-grid-container",style:c,children:[jsxRuntime.jsx("div",{}),jsxRuntime.jsx(Kr,{onDayClick:i,daysWithEvents:l.allday,options:t}),jsxRuntime.jsx("div",{style:{...Le,paddingTop:"0",height:"60px",borderBottom:"thin solid #e1e1e1"}}),l.allday.map(([m,p])=>jsxRuntime.jsx(xo,{date:m,events:p,onEventClick:n,onDayClick:i,options:t,tooltipColor:t?.tooltipColor??"is-light"},m.dayShort)),d.map(m=>jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx(No,{hour:m}),l.timed.map(([p,u])=>{let f=u.filter(g=>g._startDateTime.hour===m);return jsxRuntime.jsx(Ro,{tooltipColor:t?.tooltipColor??"is-light",events:f,hour:m,date:p,onCellClick:i,onEventClick:n,options:t,lastVisibleHour:t?.lastHour??23},p.dayShort+"-"+m)})]},m)),jsxRuntime.jsx("div",{style:{...Le,paddingTop:"0",zIndex:1,height:"30px",borderBottom:"thin solid #e1e1e1"}})]})})}function Kr({onDayClick:e,daysWithEvents:t,options:n={}}){let o=Ie__default.default.useMemo(()=>({...We,cursor:e?"pointer":void 0}),[e]),i=Ie__default.default.useMemo(()=>({...o}),[o]),r=Ie__default.default.useCallback(Ne,[]),a=Ie__default.default.useMemo(()=>{if(n?.today?.doNotMarkToday)return {};let s="p";n?.today?.bgColor&&(s=n.today.bgColor(!1)),s==="p"?s="#113670":s==="i"?s="#3b59ec":s==="l"?s="#2f47bc":s==="d"?s="#d91000":s==="s"?s="#519c43":s==="w"&&(s="#eea720");let l=r(s);return {..._t,marginBottom:".5em",backgroundColor:s,color:l}},[n.today,r]);return jsxRuntime.jsx(Ie__default.default.Fragment,{children:t.map(([s])=>jsxRuntime.jsxs("div",{style:i,onClick:l=>e&&e(s,l),children:[jsxRuntime.jsx("div",{className:"help my-1 mx-0",style:{color:"#aaaaaa"},children:s.dayLong}),jsxRuntime.jsxs("span",{style:s.isToday?a:void 0,children:[s.day," ",s.monthLong]})]},s.ISO))})}var Wr={Month:Eo,Week:wo,Fourweeks:Io};function xn({id:e,label:t,name:n,size:o="m",direction:i="v",required:r=!1,showRequiredOnLabel:a=!1,value:s=!1,errorMessage:l="",labelHidden:c=!1,onValueChanged:d,onBlur:m,...p}){return jsxRuntime.jsx(ce,{label:t??n,size:o,labelHidden:c,direction:i,required:r,inputId:e??n,showRequiredOnLabel:a,children:jsxRuntime.jsx(Do,{id:e,name:n,label:t,value:s,required:r,size:o,errorMessage:l,onValueChanged:g=>{d&&d(g);},onBlur:g=>{m&&m(g);},...p})})}function Do({helpTag:e,errorMessage:t="",infoMessage:n="",label:o,disabled:i=!1,keyboardType:r="text",title:a,name:s,value:l=!1,required:c=!1,spellCheck:d=!1,id:m,autoComplete:p="off",readonly:u=!1,autofocus:f=!1,form:g=void 0,inputRef:y,onBlur:h,onChange:v,onFocus:b,onKeyDown:T,onKeyUp:P,onValueChanged:C,size:A="m",alignment:N="l",color:H="p",inverted:V=!1,rounded:I=!1}){let[x,O]=Ie__default.default.useState(!1),B=k=>{x||O(!0),h&&h(k);},ae=k=>{x||O(!0),C&&C(k.target.checked),v&&v(k);},R="is-checkradio";return A==="s"?R+=" is-small":A==="l"?R+=" is-medium":A==="xl"&&(R+=" is-large"),H==="w"?R+=" is-warning":H==="l"?R+=" is-link":H==="d"?R+=" is-danger":H==="i"?R+=" is-info":H==="s"?R+=" is-success":H==="p"?R+=" is-primary":R+=` ${H}`,N==="l"?R+=" has-text-left":N==="c"?R+=" has-text-centered":N==="r"&&(R+=" has-text-right"),u&&(R+=" is-static"),I&&(R+=" is-circle"),V&&(R+=" has-background-color"),jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("input",{type:"checkbox",className:R,id:m??s,ref:y,name:s,checked:l,spellCheck:d,autoComplete:p,required:c,title:a,readOnly:u,autoFocus:f,form:g,inputMode:r,disabled:i,onKeyDown:T,onKeyUp:P,onBlur:B,onChange:ae,onFocus:k=>b&&b(k,e)}),jsxRuntime.jsx("label",{htmlFor:m??s,children:o??s}),x&&t&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof t=="string"?t:t(l)}),!t&&n&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof n=="string"?n:n(l)})]})}function ke({value:e,id:t,name:n,label:o,grouped:i=!1,required:r=!1,showRequiredOnLabel:a=!1,errorMessage:s="",infoMessage:l=void 0,multiple:c=!1,alignment:d="l",size:m="m",direction:p="v",options:u=[],children:f=void 0,placeholder:g,helpTag:y,disabled:h=!1,keyboardType:v="text",title:b,spellCheck:T=!1,loading:P=!1,autoComplete:C="off",autofocus:A=!1,form:N=void 0,inputRef:H,labelHidden:V,icon:I=freeSolidSvgIcons.faCheckCircle,onBlur:x,onFocus:O,onChange:B,onKeyDown:ae,onKeyUp:R,onValueChanged:k}){let[X,oe]=Ie__default.default.useState(!1),ue=L=>{X||oe(!0),x&&x(L);},ie=L=>{O&&O(L,y);},se=L=>{if(X||oe(!0),B&&B(L),c){let w=L.target.selectedOptions,re=[];for(let j of w)re.push(j.value);k&&k(re);}else typeof e=="number"&&k?k(+L.target.value):k&&k(L.target.value);},U=Ie__default.default.useCallback(L=>{if(!L.some(w=>typeof w!="string"&&typeof w!="number"))return L.map(w=>jsxRuntime.jsx(ke.Option,{value:w,children:w},w));if(i){let w=[],re=new Set;return L.forEach(j=>re.add(typeof j=="string"||typeof j=="number"?"":j.group??"")),[...re].sort().forEach(j=>{let le=[];L.forEach(be=>{typeof be=="string"||typeof be=="number"?j===""&&le.push(be):j===be.group&&le.push(be);}),w.push(jsxRuntime.jsx(ke.OptGroup,{label:j,children:le.map(be=>{if(typeof be=="string")return jsxRuntime.jsx(ke.Option,{value:be,children:be},be);{let{value:Yt,disabled:qo,label:Hn}=be;return jsxRuntime.jsx(ke.Option,{value:Yt,disabled:qo,children:Hn??Yt},Hn??Yt)}})},j));}),w}else return L.map(w=>{if(typeof w=="string")return jsxRuntime.jsx(ke.Option,{value:w,children:w},w);if(typeof w=="number")return jsxRuntime.jsx(ke.Option,{value:w,children:w},w);{let{value:re,disabled:j,label:le}=w;return jsxRuntime.jsx(ke.Option,{value:re,disabled:j,children:le??re},re)}})},[i]),K=s?"select is-danger is-fullwidth":"select is-fullwidth";m==="s"?K+=" is-small":m==="l"?K+=" is-medium":m==="xl"&&(K+=" is-large"),d==="c"?K+=" has-text-centered":d==="r"&&(K+=" has-text-right"),c!==!1&&(K+=" is-multiple"),P&&(K+=" is-loading");let fe=I?"control has-icons-left":"control",Q;I&&(typeof I=="string"?Q=jsxRuntime.jsx("i",{className:I}):Q=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:I}));let he=U(u);return jsxRuntime.jsxs(ce,{inputId:t??n,label:o??n??t,direction:p,required:r,size:m,labelHidden:V,controlClassName:fe,showRequiredOnLabel:a,children:[jsxRuntime.jsx("div",{className:K,children:jsxRuntime.jsxs("select",{multiple:c!==!1,size:c===!1?void 0:c,value:e,className:K,id:t??n??o,ref:H,name:n,spellCheck:T,autoComplete:C,required:r,title:b,autoFocus:A,form:N,inputMode:v,placeholder:g,disabled:h,onFocus:ie,onBlur:ue,onKeyDown:ae,onKeyUp:R,onChange:se,children:[f,he]})}),Q&&jsxRuntime.jsx("span",{className:"icon is-left",children:Q}),X&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)}),l&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof l=="string"?l:l(e)})]})}ke.Option=({value:e="",disabled:t=!1,id:n="",children:o})=>jsxRuntime.jsx("option",{value:e,disabled:t,id:n,children:o});ke.OptGroup=({label:e,children:t,disabled:n})=>jsxRuntime.jsx("optgroup",{label:e,disabled:n,children:t});function Yr({hexValue:e=void 0,rgbValue:t=void 0,hslValue:n=void 0,icon:o=freeSolidSvgIcons.faPalette,onHexValueChanged:i,onRGBValueChanged:r,onHSLValueChanged:a,...s}){let l=d=>{i&&i(d),r&&r(no(d)),a&&a(io(d));},c="#000000";if(e)e.substring(1).toUpperCase().split("").forEach(d=>{"0123456789ABCDEF".includes(d)||console.warn(`Ongeldig karakter "${d}" 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[d,m,p]=t;d<0||d>255?console.warn(`Ongeldige RGB-waarde, r = '${d}', moet tussen 0 en 255 ([${t}])`):m<0||m>255?console.warn(`Ongeldige RGB-waarde, g = '${m}', moet tussen 0 en 255 ([${t}])`):(p<0||p>255)&&console.warn(`Ongeldige RGB-waarde, b = '${p}', moet tussen 0 en 255 ([${t}])`),c=to([d,m,p]);}else if(n){let[d,m,p]=n;d<0||d>360?console.warn(`Ongeldige HSL-waarde, h = '${d}', moet tussen 0 en 360 ([${n}])`):m<0||m>100?console.warn(`Ongeldige HSL-waarde, s = '${m}', moet tussen 0 en 100 ([${n}])`):(p<0||p>100)&&console.warn(`Ongeldige HSL-waarde, l = '${p}', moet tussen 0 en 100 ([${n}])`),c=oo([d,m,p]);}return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(F,{icon:o,type:"color",value:c,onValueChanged:l,...s})})}function Qr({value:e,name:t,id:n,required:o,title:i,tooltip:r}){return jsxRuntime.jsx("input",{"data-testid":"hidden-input",id:n??t,name:t,value:e,title:i??r,required:o,type:"hidden",disabled:!0})}function Rn({helpTag:e,disabled:t=!1,keyboardType:n="text",title:o,name:i,value:r,checked:a=!1,required:s=!1,spellCheck:l=!1,id:c,autoComplete:d="off",readonly:m=!1,autofocus:p=!1,form:u=void 0,inputRef:f,onBlur:g,onChange:y,onFocus:h,onKeyDown:v,onKeyUp:b,onValueChanged:T,size:P="m",alignment:C="l",itemsDirection:A="v",color:N="p",children:H=void 0}){let V=x=>{T&&T(r),y&&y(x);},I="is-checkradio";return P==="s"?I+=" is-small":P==="l"?I+=" is-medium":P==="xl"&&(I+=" is-large"),N==="w"?I+=" is-warning":N==="l"?I+=" is-link":N==="d"?I+=" is-danger":N==="i"?I+=" is-info":N==="s"?I+=" is-success":N==="p"?I+=" is-primary":I+=` ${N}`,C==="c"?I+=" has-text-centered":C==="r"&&(I+=" has-text-right"),m&&(I+=" is-static"),c||(c=i+"-"+r),jsxRuntime.jsxs("div",{style:{display:A==="v"?"block":"inline"},children:[jsxRuntime.jsx("input",{type:"radio",className:I,id:c,ref:f,name:i,checked:a,spellCheck:l,autoComplete:d,required:s,title:o,readOnly:m,autoFocus:p,form:u,inputMode:n,disabled:t,onKeyDown:v,onKeyUp:b,onBlur:g,onChange:V,onFocus:x=>h&&h(x,e)}),jsxRuntime.jsx("label",{htmlFor:c??i,children:H??i})]})}function Lo({children:e=void 0,id:t,label:n,disabled:o=!1,labelHidden:i=!1,name:r,value:a,required:s=!1,showRequiredOnLabel:l=!1,size:c="m",direction:d="h",itemsDirection:m="h",alignment:p="l",errorMessage:u="",infoMessage:f=void 0,onValueChanged:g,onBlur:y,onChange:h,onFocus:v,onKeyDown:b,onKeyUp:T}){let[P,C]=Ie__default.default.useState(!1),A=I=>{P||C(!0),y&&y(I);},N=I=>{P||C(!0),g&&g(I);},V=(I=>Ie__default.default.Children.map(I,(x,O)=>{if(Ie__default.default.isValidElement(x)&&x.type===Ho){let B=!1;return typeof a=="string"||typeof a=="number"||typeof a=="boolean"?B=a===x.props.value:a&&(B=JSON.stringify(a)===JSON.stringify(x.props.value)),jsxRuntime.jsx(Rn,{...x.props,disabled:o?!0:x.props.disabled,size:c,itemsDirection:m,alignment:p,direction:d,id:x.props.id??`${r}-option-${O}`,value:x.props.value,checked:B,name:r,onValueChanged:N,onBlur:A,onKeyDown:b,onKeyUp:T,onChange:h,onFocus:v,children:x.props.children})}return x}))(e);return jsxRuntime.jsxs(ce,{labelHidden:i,label:n??r,required:s,inputId:"",direction:d,size:c,controlClassName:"control",showRequiredOnLabel:l,children:[V,P&&u&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof u=="string"?u:u(a)}),f&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof f=="string"?f:f(a)})]})}function Ho({checked:e=!1,id:t,value:n,children:o,...i}){return jsxRuntime.jsx(Rn,{checked:e,name:"",...i,id:t,value:n,children:o})}Lo.Item=Ho;function ta({value:e,icon:t=freeSolidSvgIcons.faAt,pattern:n=`[^@ \r
|
|
67
67
|
]+@[^@ \r
|
|
68
68
|
]+.[^@ \r
|
|
69
69
|
]+`,autoComplete:o="email",onValueChanged:i,...r}){return jsxRuntime.jsx(F,{icon:t,type:"email",autoComplete:o,pattern:n,value:e,onValueChanged:s=>{i&&i(s);},...r})}function ia({value:e,icon:t=freeSolidSvgIcons.faPhone,pattern:n=void 0,autoComplete:o="tel",onValueChanged:i,...r}){let a=s=>{i&&i(s);};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(F,{icon:t,type:"tel",autoComplete:o,pattern:n,value:e,onValueChanged:a,...r})}function sa({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:i,...r}){return jsxRuntime.jsx(F,{icon:t,type:"url",autoComplete:o,pattern:n,value:e,onValueChanged:s=>{i&&i(s);},...r})}function da({value:e,autoComplete:t="current-password",icon:n=freeSolidSvgIcons.faKey,name:o,size:i,direction:r="v",revealPasswordAllowed:a=!1,revealPasswordMsg:s="Toon wachtwoord",iconRevealed:l=freeSolidSvgIcons.faEye,onValueChanged:c,...d}){let[m,p]=Ie__default.default.useState(!1);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(F,{size:i,icon:m?l??n:n,direction:r,name:o,autoComplete:t,type:m?"text":"password",value:e,onValueChanged:f=>{c&&c(f);},...d}),a&&jsxRuntime.jsx(xn,{size:i,direction:r,value:m,onValueChanged:p,label:s,labelHidden:!0,name:`cb-${o}-reveal-pw`})]})}function ls({content:e="",hideTagSelector:t=!1,hideAlignment:n=!1,hideLists:o=!1,hideLines:i=!1,hideFontColor:r=!1,hideHighlightColor:a=!1,hideUndoRedo:s=!1,hideFontStyling:l=!1,hideTables:c=!1,autoUrlConversion:d=!1,size:m="s",id:p,onChangeHtml:u,onChangeText:f,onChangeJson:g}){let y=p??`editor-${vt(0,999999999999)}`,h=react.useEditor({onUpdate({editor:v}){u&&u(v.getHTML().replaceAll(/<li><p>(.*?)<\/p><(\/?)(ol|li|ul)>/gi,"<li>$1<$2$3>")),f&&f(v.getText()),g&&g(v.getJSON());},extensions:[Ta__default.default,Ca__default.default,Ia__default.default.configure(),Ea__default.default.configure(),Na__default.default.configure(),xa__default.default.configure(),extensionColor.Color.configure({types:[$o__default.default.name,Xo__default.default.name]}),Sa__default.default.configure(),Pa__default.default.configure(),Oa__default.default.configure({autolink:d,openOnClick:d,linkOnPaste:d,HTMLAttributes:{target:"_blank"}}),Da__default.default.configure({allowBase64:!0}),ba__default.default.configure(),va__default.default.configure(),$o__default.default.configure(),Fa__default.default.configure({multicolor:!0}),Ra__default.default.configure({keepMarks:!0}),Aa__default.default.configure({keepMarks:!0}),Xo__default.default.configure(),ka__default.default.configure(),Ja__default.default.configure(),$a__default.default.configure(),wa__default.default.configure({types:["heading","paragraph"]}),Ma__default.default.configure({resizable:!0,HTMLAttributes:{class:"editor"}}),Ba__default.default.configure(),La__default.default.configure(),Ha__default.default.configure()],content:e});return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(cs,{editor:h,size:m,id:y,hideAlignment:n,hideFontColor:r,hideHighlightColor:a,hideFontStyling:l,hideLists:o,hideLines:i,hideTables:c,hideTagSelector:t,hideUndoRedo:s}),jsxRuntime.jsx("div",{className:"",children:jsxRuntime.jsx(react.EditorContent,{editor:h,className:"content p-0",style:{border:"thin solid #ddd",paddingLeft:"1px",minHeight:"5em",resize:"vertical"}})})]})}function cs({editor:e,size:t,id:n,hideTagSelector:o,hideAlignment:i,hideFontColor:r,hideHighlightColor:a,hideFontStyling:s,hideLists:l,hideLines:c,hideTables:d,hideUndoRedo:m}){let p=g=>g.reduce((y,h,v,b)=>(v<b.length-1?y.push(h,jsxRuntime.jsx(_o,{mx:1},vt(0,999999999))):y.push(h),y),[]),u=Ie__default.default.useMemo(()=>{let g=[];return s||g.push(jsxRuntime.jsx(ms,{size:t,editor:e,id:n},"1")),i||g.push(jsxRuntime.jsx(fs,{size:t,editor:e,id:n},"2")),c||g.push(jsxRuntime.jsx(hs,{size:t,editor:e,id:n},"3")),l||g.push(jsxRuntime.jsx(gs,{size:t,editor:e,id:n},"4")),m||g.push(jsxRuntime.jsx(ys,{size:t,editor:e,id:n},"5")),d||g.push(jsxRuntime.jsx(Ts,{size:t,editor:e,id:n},"6")),g},[s,t,e,n,i,c,l,m,d]),f=Ie__default.default.useMemo(()=>{let g=[];return r||g.push(jsxRuntime.jsx(us,{editor:e,size:t,id:n},"1")),a||g.push(jsxRuntime.jsx(ds,{editor:e,size:t,id:n},"2")),o||g.push(jsxRuntime.jsx(ps,{editor:e,size:t,id:n},"3")),g},[n,t,e,r,a,o]);return e?jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:p(f)}),jsxRuntime.jsx("div",{className:"is-flex is-flex-direction-row is-flex-wrap-wrap my-0 py-0",children:p(u)})]}):jsxRuntime.jsx(Ie__default.default.Fragment,{})}function ms({editor:e,size:t}){return jsxRuntime.jsxs(M,{size:t,children:[jsxRuntime.jsx(M.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(M.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(M.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(M.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(M.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(M.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 ps({editor:e,size:t,id:n}){let[o,i]=Ie__default.default.useState("paragraph"),r=Ie__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=l=>{if(l==="paragraph")e.chain().focus().setParagraph().run(),i("paragraph");else if(l.startsWith("heading-")){let c=+l.replace("heading-","");e.chain().focus().toggleHeading({level:c}).run(),i(l);}};Ie__default.default.useEffect(()=>{e.isActive("paragraph")?i("paragraph"):r.forEach(l=>{e.isActive("heading",{level:l.level})&&i(`heading-${l.level}`);});},[e,r]);let s="select ";return t==="s"?s+="is-small":t==="m"?s+="is-normal":t==="l"?s+="is-medium":t==="xl"&&(s+="is-large"),jsxRuntime.jsx("div",{className:s,children:jsxRuntime.jsxs("select",{name:`select-paragraph-or-heading-type-${n}`,id:`select-paragraph-or-heading-type-${n}`,value:o,onChange:l=>a(l.target.value),children:[jsxRuntime.jsx("option",{value:"",disabled:!0,children:"Selecteer type"}),jsxRuntime.jsx("option",{value:"paragraph",children:"paragraph"}),r.map(l=>jsxRuntime.jsx("option",{value:`heading-${l.level}`,children:l.name},l.name))]})})}function ds({editor:e,size:t,id:n}){let[o,i]=Ie__default.default.useState(e.getAttributes("textStyle").backgroundColor);Ie__default.default.useEffect(()=>{i(e.getAttributes("highlight").color);},[e]);let r="input ";return t==="s"?r+="is-small":t==="m"?r+="is-normal":t==="l"?r+="is-medium":t==="xl"&&(r+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(E.Static,{size:t,children:jsxRuntime.jsx(me,{color:o,icon:freeSolidSvgIcons.faPaintRoller})})}),jsxRuntime.jsx("input",{name:`color-input-highlight-${n}`,id:`color-input-highlight-${n}`,className:r,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().toggleHighlight({color:a.target.value}).run(),value:o})]})}function us({editor:e,size:t,id:n}){let[o,i]=Ie__default.default.useState(e.getAttributes("textStyle").color);Ie__default.default.useEffect(()=>{i(e.getAttributes("textStyle").color);},[e]);let r="input ";return t==="s"?r+="is-small":t==="m"?r+="is-normal":t==="l"?r+="is-medium":t==="xl"&&(r+="is-large"),jsxRuntime.jsxs("div",{className:"field has-addons",children:[jsxRuntime.jsx("div",{className:"control",children:jsxRuntime.jsx(E.Static,{size:t,children:jsxRuntime.jsx(me,{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:r,style:{width:"5em"},type:"color",onInput:a=>e.chain().focus().setColor(a.target.value).run(),value:o})})]})}function fs({editor:e,size:t}){return jsxRuntime.jsxs(M,{size:t,children:[jsxRuntime.jsx(M.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(M.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(M.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(M.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 gs({editor:e,size:t}){return jsxRuntime.jsxs(M,{size:t,children:[jsxRuntime.jsx(M.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(M.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(M.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(M.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 ys({editor:e,size:t}){return jsxRuntime.jsxs(M,{size:t,children:[jsxRuntime.jsx(M.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(M.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 hs({editor:e,size:t}){return jsxRuntime.jsxs(M,{size:t,children:[jsxRuntime.jsx(M.OnOffItem,{onToggle:()=>e.chain().focus().setHorizontalRule().run(),title:"Voeg een tussenlijn toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faGripLines})}),jsxRuntime.jsx(M.OnOffItem,{onToggle:()=>e.chain().focus().setHardBreak().run(),title:"Voeg een extra witregel toe",children:jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faPlusMinus})})]})}function Ts({editor:e,size:t}){return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{size:t,children:jsxRuntime.jsx(M.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(_o,{})]})}var _o=({mx:e=3})=>jsxRuntime.jsx("span",{className:`mx-${e}`});function vs({value:e,label:t,errorMessage:n="",infoMessage:o=void 0,helpTag:i,id:r,name:a,spellCheck:s=!0,required:l=!1,showRequiredOnLabel:c=!1,autoComplete:d="off",placeholder:m,disabled:p=!1,form:u=void 0,readonly:f=!1,autofocus:g=!1,inputRef:y=void 0,max:h,min:v,title:b,size:T="m",alignment:P,direction:C="v",cols:A,rows:N=4,labelHidden:H=!1,loading:V=!1,onValueChanged:I,onChange:x,onBlur:O,onFocus:B,onKeyDown:ae,onKeyUp:R}){let[k,X]=Ie__default.default.useState(!1),oe=Q=>{k||X(!0),O&&O(Q);},ue=Q=>{k||X(!0),x&&x(Q),I&&I(Q.target.value);},ie="";T==="s"?ie+=" is-small":T==="m"?ie+=" is-normal":T==="l"?ie+=" is-medium":T==="xl"&&(ie+=" is-large");let se="is-left";P==="c"?se="is-centered":P==="r"&&(se="is-right");let U=`textarea ${ie} ${se}`.trim(),K=v?typeof v=="number"?v:+v:void 0,fe=h?typeof h=="number"?h:+h:void 0;return jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs(ce,{label:t??a,required:l,labelHidden:H,inputId:r??a,direction:C,size:T,loading:V,showRequiredOnLabel:c,controlClassName:"control",children:[jsxRuntime.jsx("textarea",{className:U,value:e,id:r??a,name:a,spellCheck:s,required:l,autoComplete:d,placeholder:m,disabled:p,form:u,readOnly:f,autoFocus:g,ref:y,maxLength:fe,minLength:K,title:b,rows:N,cols:A,onChange:ue,onBlur:oe,onFocus:Q=>B&&B(Q,i),onKeyDown:ae,onKeyUp:R}),k&&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 Vo(){let e=Ie__default.default.useRef(null),[t,n]=Ie__default.default.useState(0),[o,i]=Ie__default.default.useState(0),r=Ie__default.default.useCallback((a=0)=>{if(e.current){let{selectionStart:s,selectionEnd:l}=e.current;n(s+a),i(l+a);}},[]);return Ie__default.default.useEffect(()=>{e.current&&e.current.setSelectionRange(t,o);}),{start:t,end:o,ref:e,updateCaret:r}}function Es({value:e="",characters:t=void 0,icon:n=freeSolidSvgIcons.faKeyboard,onValueChanged:o,...i}){let{ref:r,updateCaret:a}=Vo();return jsxRuntime.jsx(F,{inputRef:r,icon:n,type:"text",value:e,onValueChanged:l=>{if(t){let c=l;if(t==="0-9")c=l.replaceAll(/[^0-9]/g,"");else if(t==="a-z")c=l.toLowerCase().replaceAll(/[^a-z]/g,"");else if(t==="A-Z")c=l.toUpperCase().replaceAll(/[^A-Z]/g,"");else if(t==="a-Z")c=l.replaceAll(/[^a-zA-Z]/g,"");else if(t==="0-Z")c=l.replaceAll(/[^0-9a-zA-Z]/g,"");else if(typeof t=="string"){let d=t??"";c=l.split("").reduce((m,p)=>d.includes(p)?m+p:m,"");}else t instanceof RegExp&&(c=l.replaceAll(new RegExp(t,"g"),""));l=c;}o&&o(l),a();},...i})}function Rs({value:e,icon:t=freeSolidSvgIcons.faCalculator,onValueChanged:n,...o}){let i=s=>{let l=s!==""?+s:NaN;n&&n(l),a(s);},[r,a]=Ie__default.default.useState(e?.toString()??"");return Ie__default.default.useEffect(()=>{e&&!isNaN(+e)?a(e.toString()):e===0?a("0"):e&&isNaN(+e)?a(""):e||a("");},[e]),jsxRuntime.jsx(F,{icon:t,type:"number",value:r,onValueChanged:i,...o})}function ws({value:e,min:t=0,max:n=100,step:o=1,prefix:i="",suffix:r="",helpTag:a,errorMessage:s="",infoMessage:l=void 0,label:c,disabled:d=!1,title:m,name:p,size:u="m",required:f=!1,showRequiredOnLabel:g=!1,id:y,readonly:h=!1,form:v=void 0,inputRef:b,onBlur:T,onChange:P,onFocus:C,onKeyDown:A,onKeyUp:N,onValueChanged:H,direction:V="v",labelHidden:I=!1}){let x=k=>{O||B(!0),T&&T(k);},[O,B]=Ie__default.default.useState(!1),ae=k=>{d||(O||B(!0),P&&P(k),H&&H(k.target.valueAsNumber));},R=Ie__default.default.useMemo(()=>({width:"100%",marginTop:"1em","--min":t,"--min-text":`"${i}${t}${r}"`,"--max":n,"--max-text":`"${i}${n}${r}"`,"--value":e,"--text-value":`${i}${e}${r}`}),[e,i,r,n,t]);return jsxRuntime.jsxs(ce,{label:c??p,direction:V,labelHidden:I,required:f,showRequiredOnLabel:g,inputId:y??p,size:u,controlClassName:"control",children:[jsxRuntime.jsxs("div",{className:"range-slider",style:R,children:[jsxRuntime.jsx("input",{type:"range",name:p,id:y??p,min:t,max:n,value:e,step:o,disabled:d,required:f,readOnly:h,form:v,ref:b,title:m,onBlur:x,onChange:ae,onKeyDown:A,onKeyUp:N,onFocus:k=>C&&C(k,a)}),jsxRuntime.jsxs("output",{children:[i,e,r]}),jsxRuntime.jsx("div",{className:"range-slider__progress"})]}),O&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof s=="string"?s:s(e)}),l&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof l=="string"?l:l(e)})]})}function Ds({value:e,icon:t=freeSolidSvgIcons.faCalendarDay,onValueChanged:n,onDateValueChanged:o,onJSDateTimeValueChanged:i,...r}){let a=l=>{n&&n(l),o&&o(new Date(l)),i&&i(D.fromISO(l));},s="";return typeof e=="string"?s=e.length>10?e.substring(0,10):e:e instanceof Date?s=e.toISOString().substring(0,10):e instanceof D&&(s=e.ISO.substring(0,10)),jsxRuntime.jsx(F,{icon:t,type:"date",value:s,onValueChanged:a,...r})}function Bs({value:e,step:t=void 0,useSecAndMillis:n="none",icon:o=freeSolidSvgIcons.faCalendarDay,onValueChanged:i,onDateValueChanged:r,onJSDateTimeValueChanged:a,...s}){let l=m=>{if(m){if(typeof m=="string")return m}else return "";let p;m instanceof Date?p=D.fromDate(m):p=m;let u=(h,v)=>h.toString().padStart(v,"0"),f=`${u(p.yr,4)}-${u(p.m,2)}-${u(p.d,2)}`;f+=`T${u(p.hr,2)}:${u(p.min,2)}`;let g=n!=="none",y=n==="both";return g?f+=`:${u(p.sec,2)}`:f+=":00",g&&y?f+=`.${u(p.ms,3)}`:f+=".000",f},c=m=>{if(m!==""&&(i&&i(m),r||a)){let p=D.fromISO(m);r&&r(p.JSDate),a&&a(p);}},d=l(e);return jsxRuntime.jsx(F,{step:t??n!=="none"?1:60,icon:o,type:"datetime-local",value:d,onValueChanged:c,...s})}function Js({value:e,useSeconds:t=!1,useMillis:n=!1,icon:o=freeSolidSvgIcons.faClockFour,onValueChanged:i,onDateValueChanged:r,onJSDateTimeValueChanged:a,...s}){let l=m=>{if(m){if(typeof m=="string")return m}else return "";let p=[0,0,void 0,void 0];return m instanceof Date?(p[0]=m.getHours(),p[1]=m.getMinutes(),t&&(p[2]=m.getSeconds())):(p[0]=m.hour,p[1]=m.minute,t&&(p[2]=m.second)),p.filter(u=>!!u).map(u=>u?.toString().padStart(2,"0")).join(":")},c=m=>{if(i&&i(m),r||a){let p=parseInt(m.substring(0,2)),u=parseInt(m.substring(3,5)),f=parseInt(m.substring(6,8))??0,g=D.from({hour:p,minute:u,second:isNaN(f)?0:f});r&&r(g.JSDate),a&&a(g);}},d=l(e);return jsxRuntime.jsx(F,{step:t?1:60,icon:o,type:"time",value:d,onValueChanged:c,...s})}function Vs({multiple:e=!1,placeholder:t,helpTag:n,errorMessage:o="",infoMessage:i=void 0,label:r,disabled:a=!1,keyboardType:s="none",title:l,name:c,required:d=!1,showRequiredOnLabel:m=!1,spellCheck:p=!1,id:u,autoComplete:f="off",max:g,min:y,readonly:h=!1,pattern:v=void 0,autofocus:b=!1,form:T=void 0,inputRef:P,onBlur:C,onChange:A,onFocus:N,onKeyDown:H,onKeyUp:V,onValueChanged:I,size:x="m",alignment:O="l",direction:B="v",value:ae={files:[],path:""},icon:R=freeSolidSvgIcons.faFileUpload,boxed:k=!1,accept:X,capture:oe=!1,noFilesTxt:ue="Geen bestand(en) geselecteerd",chooseFileTxt:ie="Kies een bestand",formatter:se=U=>U.files.length>0?U.files.map(K=>K.name).join(", "):ue}){let[U,K]=Ie__default.default.useState(!1),fe=w=>{U||K(!0),C&&C(w);},Q=w=>{let re=Array.from(w.target.files??[]),j=w.target.value;U||K(!0),A&&A(w),I&&I({files:re,path:j});},he="file has-name";k?he+=" is-boxed":he+=" is-fullwidth",x==="s"?he+=" is-small":x==="l"?he+=" is-medium":x==="xl"&&(he+=" is-large"),O==="l"?he+=" has-text-left":O==="c"?he+=" has-text-centered":O==="r"&&(he+=" has-text-right");let L=se(ae);return jsxRuntime.jsx(ce,{inputId:u??c,label:r??c,direction:B,required:d,size:x,showRequiredOnLabel:m,controlClassName:"control",children:jsxRuntime.jsxs("div",{className:he,children:[jsxRuntime.jsxs("label",{className:"file-label",children:[jsxRuntime.jsx("input",{className:"file-input",pattern:v,id:u??c,ref:P,accept:typeof X=="string"?X:X?.join(","),capture:oe,name:c,value:"",spellCheck:p,autoComplete:f,required:d,type:"file",inputMode:s,title:l,multiple:e,max:g,maxLength:typeof g=="number"?g:void 0,minLength:typeof y=="number"?y:void 0,min:y,readOnly:h,autoFocus:b,form:T,placeholder:t,disabled:a,onKeyDown:H,onKeyUp:V,onBlur:fe,onChange:Q,onFocus:w=>N&&N(w,n)}),jsxRuntime.jsxs("span",{className:"file-cta",children:[jsxRuntime.jsx("span",{className:"file-icon",role:"icon",children:typeof R=="string"?jsxRuntime.jsx("i",{className:"icon"}):jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:R})}),jsxRuntime.jsx("span",{className:"file-label",children:ie??c})]}),jsxRuntime.jsx("span",{className:"file-name",children:L??ue??""})]}),U&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof o=="string"?o:o(L)}),i&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof i=="string"?i:i(L)})]})})}function Us({placeholder:e,helpTag:t,errorMessage:n="",infoMessage:o=void 0,label:i,disabled:r=!1,title:a,name:s,value:l=0,required:c=!1,showRequiredOnLabel:d=!1,spellCheck:m=!1,id:p,autoComplete:u="off",max:f,min:g,inputRef:y=void 0,readonly:h=!1,step:v=1,autofocus:b=!1,form:T=void 0,onBlur:P,onChange:C,onFocus:A,onKeyDown:N,onKeyUp:H,onValueChanged:V,size:I="m",alignment:x="l",direction:O="v",labelHidden:B=!1,loading:ae=!1,icon:R=freeSolidSvgIcons.faCoins,suffix:k="",prefix:X="\u20AC ",decimalScale:oe=2,decimalSeparator:ue=",",groupSeparator:ie="."}){let[se,U]=Ie__default.default.useState(!1),[K,fe]=Ie__default.default.useState(l.toString());Ie__default.default.useEffect(()=>{fe(l.toString());},[l]);let Q=le=>{se||U(!0),P&&P(le);},he=le=>{se||U(!0),le?.endsWith(ue)||V&&V(le?parseFloat(le.replace(ue,".")):NaN),fe(le??"");},L=n?"input is-danger":"input";I==="s"?L+=" is-small":I==="l"?L+=" is-medium":I==="xl"&&(L+=" is-large"),x==="l"?L+=" has-text-left":x==="c"?L+=" has-text-centered":x==="r"&&(L+=" has-text-right"),h&&(L+=" is-static");let w;R&&typeof R=="string"?w=jsxRuntime.jsx("i",{className:R}):R&&typeof R!="string"&&(w=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:R}));let re;n&&n===""?re=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faCheck}):n&&(re=jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon,{icon:freeSolidSvgIcons.faTimes}));let j=`control ${R?"has-icons-left":""} ${n!==void 0?"has-icons-right":""}`;return ie===ue&&console.warn(`De groupSeparator en de decimalSeparator mogen NIET hetzelfde zijn: ('${ie}' === '${ue}')`),jsxRuntime.jsxs(ce,{inputId:p??s,label:i??s??p,size:I,labelHidden:B,loading:ae,direction:O,required:c,showRequiredOnLabel:d,controlClassName:j,children:[jsxRuntime.jsx(Gs__default.default,{className:L,id:p??s,name:s,autoComplete:u,placeholder:e,disabled:r,spellCheck:m,required:c,groupSeparator:ie,decimalSeparator:ue,decimalScale:oe,decimalsLimit:oe,value:K,min:g,max:f,step:v,title:a,autoFocus:b,form:T,ref:y,suffix:k,prefix:X,onKeyDown:N,onKeyUp:H,onFocus:le=>A&&A(le,t),onBlur:Q,onChange:C,onValueChange:he}),se&&jsxRuntime.jsx("p",{className:"help is-danger",children:typeof n=="string"?n:n(l)}),o&&jsxRuntime.jsx("p",{className:"help is-info",children:typeof o=="string"?o:o(l)}),w&&jsxRuntime.jsx("span",{className:"icon is-left",children:w}),re&&jsxRuntime.jsx("span",{className:"icon is-right",children:re})]})}function Ys({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarWeek,onValueChanged:i,...r}){let a=l=>{i&&i(l);},s="";if(e){let[l="0",c="1"]=e.split("-W");+c>53||+c<1?console.warn('WeekInput value should contain a valid week number, like "2021-W01"'):s=`${l}-W${c.padStart(2,"0")}`;}return jsxRuntime.jsx(F,{min:t,max:n,icon:o,type:"week",value:s,onValueChanged:a,...r})}function el({value:e,min:t="",max:n="",icon:o=freeSolidSvgIcons.faCalendarDays,onValueChanged:i,...r}){let a=l=>{i&&i(l);},s="";if(e){let[l="0",c="1"]=e.split("-");+c>12||+c<1?console.warn('MonthInput value should contain a valid month number (01-12), like "2021-01"'):s=`${l}-${c.padStart(2,"0")}`;}return jsxRuntime.jsx(F,{min:t,max:n,icon:o,type:"month",value:s,onValueChanged:a,...r})}function nl(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 Go({next:e,clearTime:t,del:n,defaultDismissTime:o,location:i}){let[r,a]=Ie__default.default.useReducer(nl,[]),[s,l]=Ie__default.default.useState(void 0),[c,d]=Ie__default.default.useState(void 0),[m,p]=Ie__default.default.useState(t);Ie__default.default.useEffect(()=>{e&&e.id!=s&&(l(e.id),a({type:"add",item:e}));},[s,e]),Ie__default.default.useEffect(()=>{t!=m&&(a({type:"clear",item:void 0}),p(t));},[t,m]),Ie__default.default.useEffect(()=>{if(n!=c){let f=r.find(g=>g.id===n);a({type:"remove",item:f}),d(n);}},[n,c,r]);let u="notifications-container"+(i&&i==="bottom"?" at-bottom":" at-top");return jsxRuntime.jsx("div",{className:u,"data-testid":"notifier-container",children:r.map(f=>{let g=f.dismissAfter??f.dismissAfter??o??5e3;return jsxRuntime.jsx(pe,{autoDismissAfter:g,color:f.color??f.type,onDismiss:()=>a({type:"remove",item:f}),onClick:y=>f.onClick?f.onClick(f):a({type:"remove",item:f}),children:f.content},f.id)})})}var On=Ie__default.default.createContext(null);On.displayName="NotifierContext";var wh=e=>{let[t,n]=Ie__default.default.useState(void 0),[o,i]=Ie__default.default.useState(void 0),[r,a]=Ie__default.default.useState(new Date),s=Ie__default.default.useCallback(m=>(m.id==null&&(m.id=Math.floor(Math.random()*1e7)),n(m),m.id),[n]),l=Ie__default.default.useCallback(m=>{i(m);},[i]),c=Ie__default.default.useCallback(()=>{n(void 0),i(void 0),a(new Date);},[i]),d={notify:s,remove:l,clear:c};return jsxRuntime.jsxs(Ie__default.default.Fragment,{children:[jsxRuntime.jsx(Go,{defaultDismissTime:e.defaultAutoDismiss,next:t,del:o,clearTime:r,location:e.location??"top"}),jsxRuntime.jsx(On.Provider,{value:d,children:e.children})]})};function kh(){let e=Ie__default.default.useContext(On);if(!e)throw new Error("useNotifier must be used inside a NotifierProvider");return e}var Mn,Ln=Ie__default.default.createContext(null);Ln.displayName="ConfirmContext";function Hh({children:e}){let[t,n]=Ie__default.default.useReducer(il,qt);return jsxRuntime.jsxs(Ln.Provider,{value:{state:t,setState:n},children:[jsxRuntime.jsx(al,{}),e]})}var qt={show:!1,content:"",ok:"Ok",cancel:"Annuleren",others:void 0};function il(e=qt,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 qt;default:return qt}}function rl(e="OK",t="Annuleren",n=void 0){let o=Ie__default.default.useContext(Ln);if(!o)throw new Error("useConfirm must be used inside a ConfirmProvider");let i=()=>{s(),Mn(!0);},r=()=>{s(),Mn(!1);},a=l=>(o.setState({...o.state,type:"SHOW",payload:{content:l},ok:e,cancel:t,others:n}),new Promise(function(c){Mn=c;})),s=()=>{o.setState({type:"HIDE",payload:void 0});};return {confirm:a,onConfirm:i,onCancel:r,confirmState:o.state}}function al(){let{onConfirm:e,onCancel:t,confirmState:n}=rl();return n.show?jsxRuntime.jsxs("div",{className:"modal is-active",style:{zIndex:9999},children:[jsxRuntime.jsx("div",{className:"modal-background"}),jsxRuntime.jsx("div",{className:"modal-content",children:jsxRuntime.jsxs(Qt,{children:[typeof n.content=="string"&&jsxRuntime.jsx("p",{children:n?.content}),typeof n.content!="string"&&n?.content,jsxRuntime.jsxs($t,{alignment:"c",className:"mt-6",children:[jsxRuntime.jsx(E.Success,{onClick:e,children:n.ok}),jsxRuntime.jsx(E.Danger,{onClick:t,children:n.cancel}),n.others]})]})})]}):null}
|
|
@@ -81,7 +81,7 @@ exports.ColorInput = Yr;
|
|
|
81
81
|
exports.Column = _e;
|
|
82
82
|
exports.Columns = ti;
|
|
83
83
|
exports.ConfirmProvider = Hh;
|
|
84
|
-
exports.Container =
|
|
84
|
+
exports.Container = De;
|
|
85
85
|
exports.Content = oi;
|
|
86
86
|
exports.CurrencyInput = Us;
|
|
87
87
|
exports.DOTS = Mt;
|
|
@@ -131,7 +131,7 @@ exports.RadioGroup = Lo;
|
|
|
131
131
|
exports.RangeInput = ws;
|
|
132
132
|
exports.ScrollArea = di;
|
|
133
133
|
exports.Section = li;
|
|
134
|
-
exports.Select =
|
|
134
|
+
exports.Select = ke;
|
|
135
135
|
exports.SimpleTable = pr;
|
|
136
136
|
exports.Steps = gn;
|
|
137
137
|
exports.TabBar = po;
|
|
@@ -149,7 +149,7 @@ exports.Tooltip = ve;
|
|
|
149
149
|
exports.URLInput = sa;
|
|
150
150
|
exports.WeekInput = Ys;
|
|
151
151
|
exports.boolSort = rm;
|
|
152
|
-
exports.calculateTxtColor =
|
|
152
|
+
exports.calculateTxtColor = Ne;
|
|
153
153
|
exports.dateSort = am;
|
|
154
154
|
exports.getHotkeyHandler = Gl;
|
|
155
155
|
exports.getHotkeyMatcher = Wn;
|