@beterdichtbij/component-library 0.56.0 → 0.56.1

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.
@@ -1355,7 +1355,7 @@ img.ProseMirror-separator {
1355
1355
  */const _r=new Map,Cu={set(t,e,n){_r.has(t)||_r.set(t,new Map);const r=_r.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return _r.has(t)&&_r.get(t).get(e)||null},remove(t,e){if(!_r.has(t))return;const n=_r.get(t);n.delete(e),n.size===0&&_r.delete(t)}},jD=1e6,zD=1e3,Dd="transitionend",d5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),UD=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),HD=t=>{do t+=Math.floor(Math.random()*jD);while(document.getElementById(t));return t},WD=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),o=Number.parseFloat(n);return!r&&!o?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*zD)},f5=t=>{t.dispatchEvent(new Event(Dd))},mr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Yr=t=>mr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(d5(t)):null,Fi=t=>{if(!mr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},Gr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",h5=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h5(t.parentNode):null},Hl=()=>{},oa=t=>{t.offsetHeight},p5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Eu=[],KD=t=>{document.readyState==="loading"?(Eu.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Eu)e()}),Eu.push(t)):t()},Cn=()=>document.documentElement.dir==="rtl",Sn=t=>{KD(()=>{const e=p5();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Zt=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,m5=(t,e,n=!0)=>{if(!n){Zt(t);return}const r=5,o=WD(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(Dd,s),Zt(t))};e.addEventListener(Dd,s),setTimeout(()=>{i||f5(e)},o)},uh=(t,e,n,r)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[o-1]:t[0]:(i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},YD=/[^.]*(?=\..*)\.|.*/,GD=/\..*/,QD=/::\d+$/,Su={};let Um=1;const g5={mouseenter:"mouseover",mouseleave:"mouseout"},ZD=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function v5(t,e){return e&&`${e}::${Um++}`||t.uidEvent||Um++}function y5(t){const e=v5(t);return t.uidEvent=e,Su[e]=Su[e]||{},Su[e]}function JD(t,e){return function n(r){return dh(r,{delegateTarget:t}),n.oneOff&&ce.off(t,r.type,e),e.apply(t,[r])}}function XD(t,e,n){return function r(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const c of i)if(c===s)return dh(o,{delegateTarget:s}),r.oneOff&&ce.off(t,o.type,e,n),n.apply(s,[o])}}function b5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function C5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=E5(t);return ZD.has(i)||(i=t),[r,o,i]}function Hm(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=C5(e,n,r);e in g5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const l=y5(t),u=l[c]||(l[c]={}),d=b5(u,s,i?n:null);if(d){d.oneOff=d.oneOff&&o;return}const f=v5(s,e.replace(YD,"")),h=i?XD(t,n,s):JD(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,u[f]=h,t.addEventListener(c,h,i)}function Pd(t,e,n,r,o){const i=b5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function qD(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Pd(t,e,n,s.callable,s.delegationSelector)}function E5(t){return t=t.replace(GD,""),g5[t]||t}const ce={on(t,e,n,r){Hm(t,e,n,r,!1)},one(t,e,n,r){Hm(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=C5(e,n,r),c=s!==e,l=y5(t),u=l[s]||{},d=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Pd(t,l,s,i,o?n:null);return}if(d)for(const f of Object.keys(l))qD(t,l,f,e.slice(1));for(const[f,h]of Object.entries(u)){const p=f.replace(QD,"");(!c||e.includes(p))&&Pd(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=p5(),o=E5(e),i=e!==o;let s=null,c=!0,l=!0,u=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const d=dh(new Event(e,{bubbles:c,cancelable:!0}),n);return u&&d.preventDefault(),l&&t.dispatchEvent(d),d.defaultPrevented&&s&&s.preventDefault(),d}};function dh(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function Wm(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function wu(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const gr={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${wu(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${wu(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Wm(t.dataset[r])}return e},getDataAttribute(t,e){return Wm(t.getAttribute(`data-bs-${wu(e)}`))}};class ia{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=mr(n)?gr.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...mr(n)?gr.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,o]of Object.entries(n)){const i=e[r],s=mr(i)?"element":UD(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const eP="5.3.0";class Bn extends ia{constructor(e,n){super(),e=Yr(e),e&&(this._element=e,this._config=this._getConfig(n),Cu.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Cu.remove(this._element,this.constructor.DATA_KEY),ce.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){m5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Cu.get(Yr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return eP}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const ku=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return d5(e)},Oe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Gr(n)&&Fi(n))},getSelectorFromElement(t){const e=ku(t);return e&&Oe.findOne(e)?e:null},getElementFromSelector(t){const e=ku(t);return e?Oe.findOne(e):null},getMultipleElementsFromSelector(t){const e=ku(t);return e?Oe.find(e):[]}},Ac=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;ce.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Gr(this))return;const i=Oe.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},tP="alert",nP="bs.alert",S5=`.${nP}`,rP=`close${S5}`,oP=`closed${S5}`,iP="fade",sP="show";class _c extends Bn{static get NAME(){return tP}close(){if(ce.trigger(this._element,rP).defaultPrevented)return;this._element.classList.remove(sP);const n=this._element.classList.contains(iP);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),ce.trigger(this._element,oP),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=_c.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Ac(_c,"close");Sn(_c);const aP="button",lP="bs.button",cP=`.${lP}`,uP=".data-api",dP="active",Km='[data-bs-toggle="button"]',fP=`click${cP}${uP}`;class Tc extends Bn{static get NAME(){return aP}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(dP))}static jQueryInterface(e){return this.each(function(){const n=Tc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}ce.on(document,fP,Km,t=>{t.preventDefault();const e=t.target.closest(Km);Tc.getOrCreateInstance(e).toggle()});Sn(Tc);const hP="swipe",ji=".bs.swipe",pP=`touchstart${ji}`,mP=`touchmove${ji}`,gP=`touchend${ji}`,vP=`pointerdown${ji}`,yP=`pointerup${ji}`,bP="touch",CP="pen",EP="pointer-event",SP=40,wP={endCallback:null,leftCallback:null,rightCallback:null},kP={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Wl extends ia{constructor(e,n){super(),this._element=e,!(!e||!Wl.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return wP}static get DefaultType(){return kP}static get NAME(){return hP}dispose(){ce.off(this._element,ji)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Zt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=SP)return;const n=e/this._deltaX;this._deltaX=0,n&&Zt(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ce.on(this._element,vP,e=>this._start(e)),ce.on(this._element,yP,e=>this._end(e)),this._element.classList.add(EP)):(ce.on(this._element,pP,e=>this._start(e)),ce.on(this._element,mP,e=>this._move(e)),ce.on(this._element,gP,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===CP||e.pointerType===bP)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const AP="carousel",_P="bs.carousel",oo=`.${_P}`,w5=".data-api",TP="ArrowLeft",IP="ArrowRight",xP=500,Gi="next",Go="prev",oi="left",Va="right",OP=`slide${oo}`,Au=`slid${oo}`,NP=`keydown${oo}`,MP=`mouseenter${oo}`,LP=`mouseleave${oo}`,DP=`dragstart${oo}`,PP=`load${oo}${w5}`,BP=`click${oo}${w5}`,k5="carousel",Ta="active",RP="slide",$P="carousel-item-end",VP="carousel-item-start",FP="carousel-item-next",jP="carousel-item-prev",A5=".active",_5=".carousel-item",zP=A5+_5,UP=".carousel-item img",HP=".carousel-indicators",WP="[data-bs-slide], [data-bs-slide-to]",KP='[data-bs-ride="carousel"]',YP={[TP]:Va,[IP]:oi},GP={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},QP={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class sa extends Bn{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Oe.findOne(HP,this._element),this._addEventListeners(),this._config.ride===k5&&this.cycle()}static get Default(){return GP}static get DefaultType(){return QP}static get NAME(){return AP}next(){this._slide(Gi)}nextWhenVisible(){!document.hidden&&Fi(this._element)&&this.next()}prev(){this._slide(Go)}pause(){this._isSliding&&f5(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ce.one(this._element,Au,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){ce.one(this._element,Au,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Gi:Go;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ce.on(this._element,NP,e=>this._keydown(e)),this._config.pause==="hover"&&(ce.on(this._element,MP,()=>this.pause()),ce.on(this._element,LP,()=>this._maybeEnableCycle())),this._config.touch&&Wl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Oe.find(UP,this._element))ce.on(r,DP,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(oi)),rightCallback:()=>this._slide(this._directionToOrder(Va)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),xP+this._config.interval))}};this._swipeHelper=new Wl(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=YP[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Oe.findOne(A5,this._indicatorsElement);n.classList.remove(Ta),n.removeAttribute("aria-current");const r=Oe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Ta),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),o=e===Gi,i=n||uh(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>ce.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(OP).defaultPrevented||!r||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const d=o?VP:$P,f=o?FP:jP;i.classList.add(f),oa(i),r.classList.add(d),i.classList.add(d);const h=()=>{i.classList.remove(d,f),i.classList.add(Ta),r.classList.remove(Ta,f,d),this._isSliding=!1,c(Au)};this._queueCallback(h,r,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(RP)}_getActive(){return Oe.findOne(zP,this._element)}_getItems(){return Oe.find(_5,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Cn()?e===oi?Go:Gi:e===oi?Gi:Go}_orderToDirection(e){return Cn()?e===Go?oi:Va:e===Go?Va:oi}static jQueryInterface(e){return this.each(function(){const n=sa.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ce.on(document,BP,WP,function(t){const e=Oe.getElementFromSelector(this);if(!e||!e.classList.contains(k5))return;t.preventDefault();const n=sa.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(gr.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});ce.on(window,PP,()=>{const t=Oe.find(KP);for(const e of t)sa.getOrCreateInstance(e)});Sn(sa);const ZP="collapse",JP="bs.collapse",aa=`.${JP}`,XP=".data-api",qP=`show${aa}`,eB=`shown${aa}`,tB=`hide${aa}`,nB=`hidden${aa}`,rB=`click${aa}${XP}`,_u="show",ui="collapse",Ia="collapsing",oB="collapsed",iB=`:scope .${ui} .${ui}`,sB="collapse-horizontal",aB="width",lB="height",cB=".collapse.show, .collapse.collapsing",Bd='[data-bs-toggle="collapse"]',uB={parent:null,toggle:!0},dB={parent:"(null|element)",toggle:"boolean"};class Gs extends Bn{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Oe.find(Bd);for(const o of r){const i=Oe.getSelectorFromElement(o),s=Oe.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return uB}static get DefaultType(){return dB}static get NAME(){return ZP}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(cB).filter(c=>c!==this._element).map(c=>Gs.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||ce.trigger(this._element,qP).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(ui),this._element.classList.add(Ia),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ia),this._element.classList.add(ui,_u),this._element.style[r]="",ce.trigger(this._element,eB)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ce.trigger(this._element,tB).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,oa(this._element),this._element.classList.add(Ia),this._element.classList.remove(ui,_u);for(const o of this._triggerArray){const i=Oe.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ia),this._element.classList.add(ui),ce.trigger(this._element,nB)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(_u)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Yr(e.parent),e}_getDimension(){return this._element.classList.contains(sB)?aB:lB}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Bd);for(const n of e){const r=Oe.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Oe.find(iB,this._config.parent);return Oe.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(oB,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=Gs.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ce.on(document,rB,Bd,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Oe.getMultipleElementsFromSelector(this))Gs.getOrCreateInstance(e,{toggle:!1}).toggle()});Sn(Gs);const Ym="dropdown",fB="bs.dropdown",Vo=`.${fB}`,fh=".data-api",hB="Escape",Gm="Tab",pB="ArrowUp",Qm="ArrowDown",mB=2,gB=`hide${Vo}`,vB=`hidden${Vo}`,yB=`show${Vo}`,bB=`shown${Vo}`,T5=`click${Vo}${fh}`,I5=`keydown${Vo}${fh}`,CB=`keyup${Vo}${fh}`,ii="show",EB="dropup",SB="dropend",wB="dropstart",kB="dropup-center",AB="dropdown-center",yo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',_B=`${yo}.${ii}`,Fa=".dropdown-menu",TB=".navbar",IB=".navbar-nav",xB=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",OB=Cn()?"top-end":"top-start",NB=Cn()?"top-start":"top-end",MB=Cn()?"bottom-end":"bottom-start",LB=Cn()?"bottom-start":"bottom-end",DB=Cn()?"left-start":"right-start",PB=Cn()?"right-start":"left-start",BB="top",RB="bottom",$B={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},VB={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Zn extends Bn{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Oe.next(this._element,Fa)[0]||Oe.prev(this._element,Fa)[0]||Oe.findOne(Fa,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $B}static get DefaultType(){return VB}static get NAME(){return Ym}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Gr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ce.trigger(this._element,yB,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(IB))for(const r of[].concat(...document.body.children))ce.on(r,"mouseover",Hl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ii),this._element.classList.add(ii),ce.trigger(this._element,bB,e)}}hide(){if(Gr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ce.trigger(this._element,gB,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ce.off(r,"mouseover",Hl);this._popper&&this._popper.destroy(),this._menu.classList.remove(ii),this._element.classList.remove(ii),this._element.setAttribute("aria-expanded","false"),gr.removeDataAttribute(this._menu,"popper"),ce.trigger(this._element,vB,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!mr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Ym.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Wy>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:mr(this._config.reference)?e=Yr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=wc(e,this._menu,n)}_isShown(){return this._menu.classList.contains(ii)}_getPlacement(){const e=this._parent;if(e.classList.contains(SB))return DB;if(e.classList.contains(wB))return PB;if(e.classList.contains(kB))return BB;if(e.classList.contains(AB))return RB;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(EB)?n?NB:OB:n?LB:MB}_detectNavbar(){return this._element.closest(TB)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(gr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Zt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Oe.find(xB,this._menu).filter(o=>Fi(o));r.length&&uh(r,n,e===Qm,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Zn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===mB||e.type==="keyup"&&e.key!==Gm)return;const n=Oe.find(_B);for(const r of n){const o=Zn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Gm||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:o._element};e.type==="click"&&(c.clickEvent=e),o._completeHide(c)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===hB,o=[pB,Qm].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(yo)?this:Oe.prev(this,yo)[0]||Oe.next(this,yo)[0]||Oe.findOne(yo,e.delegateTarget.parentNode),s=Zn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ce.on(document,I5,yo,Zn.dataApiKeydownHandler);ce.on(document,I5,Fa,Zn.dataApiKeydownHandler);ce.on(document,T5,Zn.clearMenus);ce.on(document,CB,Zn.clearMenus);ce.on(document,T5,yo,function(t){t.preventDefault(),Zn.getOrCreateInstance(this).toggle()});Sn(Zn);const x5="backdrop",FB="fade",Zm="show",Jm=`mousedown.bs.${x5}`,jB={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},zB={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class O5 extends ia{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return jB}static get DefaultType(){return zB}static get NAME(){return x5}show(e){if(!this._config.isVisible){Zt(e);return}this._append();const n=this._getElement();this._config.isAnimated&&oa(n),n.classList.add(Zm),this._emulateAnimation(()=>{Zt(e)})}hide(e){if(!this._config.isVisible){Zt(e);return}this._getElement().classList.remove(Zm),this._emulateAnimation(()=>{this.dispose(),Zt(e)})}dispose(){this._isAppended&&(ce.off(this._element,Jm),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(FB),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Yr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ce.on(e,Jm,()=>{Zt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){m5(e,this._getElement(),this._config.isAnimated)}}const UB="focustrap",HB="bs.focustrap",Kl=`.${HB}`,WB=`focusin${Kl}`,KB=`keydown.tab${Kl}`,YB="Tab",GB="forward",Xm="backward",QB={autofocus:!0,trapElement:null},ZB={autofocus:"boolean",trapElement:"element"};class N5 extends ia{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return QB}static get DefaultType(){return ZB}static get NAME(){return UB}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ce.off(document,Kl),ce.on(document,WB,e=>this._handleFocusin(e)),ce.on(document,KB,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ce.off(document,Kl))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Oe.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Xm?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===YB&&(this._lastTabNavDirection=e.shiftKey?Xm:GB)}}const qm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",e0=".sticky-top",xa="padding-right",t0="margin-right";class Rd{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,xa,n=>n+e),this._setElementAttributes(qm,xa,n=>n+e),this._setElementAttributes(e0,t0,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,xa),this._resetElementAttributes(qm,xa),this._resetElementAttributes(e0,t0)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,n);const c=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${r(Number.parseFloat(c))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&gr.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=gr.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}gr.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(mr(e)){n(e);return}for(const r of Oe.find(e,this._element))n(r)}}const JB="modal",XB="bs.modal",En=`.${XB}`,qB=".data-api",eR="Escape",tR=`hide${En}`,nR=`hidePrevented${En}`,M5=`hidden${En}`,L5=`show${En}`,rR=`shown${En}`,oR=`resize${En}`,iR=`click.dismiss${En}`,sR=`mousedown.dismiss${En}`,aR=`keydown.dismiss${En}`,lR=`click${En}${qB}`,n0="modal-open",cR="fade",r0="show",Tu="modal-static",uR=".modal.show",dR=".modal-dialog",fR=".modal-body",hR='[data-bs-toggle="modal"]',pR={backdrop:!0,focus:!0,keyboard:!0},mR={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Qr extends Bn{constructor(e,n){super(e,n),this._dialog=Oe.findOne(dR,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Rd,this._addEventListeners()}static get Default(){return pR}static get DefaultType(){return mR}static get NAME(){return JB}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ce.trigger(this._element,L5,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(n0),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ce.trigger(this._element,tR).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(r0),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ce.off(window,En),ce.off(this._dialog,En),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new O5({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new N5({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Oe.findOne(fR,this._dialog);n&&(n.scrollTop=0),oa(this._element),this._element.classList.add(r0);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ce.trigger(this._element,rR,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ce.on(this._element,aR,e=>{if(e.key===eR){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ce.on(window,oR,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ce.on(this._element,sR,e=>{ce.one(this._element,iR,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(n0),this._resetAdjustments(),this._scrollBar.reset(),ce.trigger(this._element,M5)})}_isAnimated(){return this._element.classList.contains(cR)}_triggerBackdropTransition(){if(ce.trigger(this._element,nR).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tu)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tu),this._queueCallback(()=>{this._element.classList.remove(Tu),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const o=Cn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=Cn()?"paddingRight":"paddingLeft";this._element.style[o]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=Qr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}ce.on(document,lR,hR,function(t){const e=Oe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),ce.one(e,L5,o=>{o.defaultPrevented||ce.one(e,M5,()=>{Fi(this)&&this.focus()})});const n=Oe.findOne(uR);n&&Qr.getInstance(n).hide(),Qr.getOrCreateInstance(e).toggle(this)});Ac(Qr);Sn(Qr);const gR="offcanvas",vR="bs.offcanvas",Er=`.${vR}`,D5=".data-api",yR=`load${Er}${D5}`,bR="Escape",o0="show",i0="showing",s0="hiding",CR="offcanvas-backdrop",P5=".offcanvas.show",ER=`show${Er}`,SR=`shown${Er}`,wR=`hide${Er}`,a0=`hidePrevented${Er}`,B5=`hidden${Er}`,kR=`resize${Er}`,AR=`click${Er}${D5}`,_R=`keydown.dismiss${Er}`,TR='[data-bs-toggle="offcanvas"]',IR={backdrop:!0,keyboard:!0,scroll:!1},xR={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Zr extends Bn{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return IR}static get DefaultType(){return xR}static get NAME(){return gR}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ce.trigger(this._element,ER,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Rd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(i0);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(o0),this._element.classList.remove(i0),ce.trigger(this._element,SR,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ce.trigger(this._element,wR).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(s0),this._backdrop.hide();const n=()=>{this._element.classList.remove(o0,s0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Rd().reset(),ce.trigger(this._element,B5)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ce.trigger(this._element,a0);return}this.hide()},n=!!this._config.backdrop;return new O5({className:CR,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new N5({trapElement:this._element})}_addEventListeners(){ce.on(this._element,_R,e=>{if(e.key===bR){if(this._config.keyboard){this.hide();return}ce.trigger(this._element,a0)}})}static jQueryInterface(e){return this.each(function(){const n=Zr.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}ce.on(document,AR,TR,function(t){const e=Oe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Gr(this))return;ce.one(e,B5,()=>{Fi(this)&&this.focus()});const n=Oe.findOne(P5);n&&n!==e&&Zr.getInstance(n).hide(),Zr.getOrCreateInstance(e).toggle(this)});ce.on(window,yR,()=>{for(const t of Oe.find(P5))Zr.getOrCreateInstance(t).show()});ce.on(window,kR,()=>{for(const t of Oe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Zr.getOrCreateInstance(t).hide()});Ac(Zr);Sn(Zr);const OR=/^aria-[\w-]*$/i,R5={"*":["class","dir","id","lang","role",OR],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},NR=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),MR=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,LR=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?NR.has(n)?!!MR.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function DR(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const c=s.nodeName.toLowerCase();if(!Object.keys(e).includes(c)){s.remove();continue}const l=[].concat(...s.attributes),u=[].concat(e["*"]||[],e[c]||[]);for(const d of l)LR(d,u)||s.removeAttribute(d.nodeName)}return o.body.innerHTML}const PR="TemplateFactory",BR={allowList:R5,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},RR={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$R={entry:"(string|element|function|null)",selector:"(string|element)"};class VR extends ia{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return BR}static get DefaultType(){return RR}static get NAME(){return PR}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},$R)}_setContent(e,n,r){const o=Oe.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(mr(n)){this._putElementInTemplate(Yr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?DR(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Zt(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const FR="tooltip",jR=new Set(["sanitize","allowList","sanitizeFn"]),Iu="fade",zR="modal",Oa="show",UR=".tooltip-inner",l0=`.${zR}`,c0="hide.bs.modal",Qi="hover",xu="focus",HR="click",WR="manual",KR="hide",YR="hidden",GR="show",QR="shown",ZR="inserted",JR="click",XR="focusin",qR="focusout",e$="mouseenter",t$="mouseleave",n$={AUTO:"auto",TOP:"top",RIGHT:Cn()?"left":"right",BOTTOM:"bottom",LEFT:Cn()?"right":"left"},r$={allowList:R5,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},o$={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Qn extends Bn{constructor(e,n){if(typeof Wy>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return r$}static get DefaultType(){return o$}static get NAME(){return FR}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ce.off(this._element.closest(l0),c0,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ce.trigger(this._element,this.constructor.eventName(GR)),r=(h5(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ce.trigger(this._element,this.constructor.eventName(ZR))),this._popper=this._createPopper(o),o.classList.add(Oa),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))ce.on(c,"mouseover",Hl);const s=()=>{ce.trigger(this._element,this.constructor.eventName(QR)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ce.trigger(this._element,this.constructor.eventName(KR)).defaultPrevented)return;if(this._getTipElement().classList.remove(Oa),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ce.off(o,"mouseover",Hl);this._activeTrigger[HR]=!1,this._activeTrigger[xu]=!1,this._activeTrigger[Qi]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ce.trigger(this._element,this.constructor.eventName(YR)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(Iu,Oa),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=HD(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Iu),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new VR({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[UR]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Iu)}_isShown(){return this.tip&&this.tip.classList.contains(Oa)}_createPopper(e){const n=Zt(this._config.placement,[this,e,this._element]),r=n$[n.toUpperCase()];return wc(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Zt(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...Zt(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")ce.on(this._element,this.constructor.eventName(JR),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==WR){const r=n===Qi?this.constructor.eventName(e$):this.constructor.eventName(XR),o=n===Qi?this.constructor.eventName(t$):this.constructor.eventName(qR);ce.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?xu:Qi]=!0,s._enter()}),ce.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?xu:Qi]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ce.on(this._element.closest(l0),c0,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=gr.getDataAttributes(this._element);for(const r of Object.keys(n))jR.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Yr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=Qn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Sn(Qn);const i$="popover",s$=".popover-header",a$=".popover-body",l$={...Qn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},c$={...Qn.DefaultType,content:"(null|string|element|function)"};class bo extends Qn{static get Default(){return l$}static get DefaultType(){return c$}static get NAME(){return i$}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[s$]:this._getTitle(),[a$]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=bo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}Sn(bo);const u$="scrollspy",d$="bs.scrollspy",hh=`.${d$}`,f$=".data-api",h$=`activate${hh}`,u0=`click${hh}`,p$=`load${hh}${f$}`,m$="dropdown-item",Qo="active",g$='[data-bs-spy="scroll"]',Ou="[href]",v$=".nav, .list-group",d0=".nav-link",y$=".nav-item",b$=".list-group-item",C$=`${d0}, ${y$} > ${d0}, ${b$}`,E$=".dropdown",S$=".dropdown-toggle",w$={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},k$={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ic extends Bn{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return w$}static get DefaultType(){return k$}static get NAME(){return u$}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Yr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ce.off(this._config.target,u0),ce.on(this._config.target,u0,Ou,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Oe.find(Ou,this._config.target);for(const n of e){if(!n.hash||Gr(n))continue;const r=Oe.findOne(decodeURI(n.hash),this._element);Fi(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Qo),this._activateParents(e),ce.trigger(this._element,h$,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(m$)){Oe.findOne(S$,e.closest(E$)).classList.add(Qo);return}for(const n of Oe.parents(e,v$))for(const r of Oe.prev(n,C$))r.classList.add(Qo)}_clearActiveClass(e){e.classList.remove(Qo);const n=Oe.find(`${Ou}.${Qo}`,e);for(const r of n)r.classList.remove(Qo)}static jQueryInterface(e){return this.each(function(){const n=Ic.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ce.on(window,p$,()=>{for(const t of Oe.find(g$))Ic.getOrCreateInstance(t)});Sn(Ic);const A$="tab",_$="bs.tab",Fo=`.${_$}`,T$=`hide${Fo}`,I$=`hidden${Fo}`,x$=`show${Fo}`,O$=`shown${Fo}`,N$=`click${Fo}`,M$=`keydown${Fo}`,L$=`load${Fo}`,D$="ArrowLeft",f0="ArrowRight",P$="ArrowUp",h0="ArrowDown",Co="active",p0="fade",Nu="show",B$="dropdown",R$=".dropdown-toggle",$$=".dropdown-menu",Mu=":not(.dropdown-toggle)",V$='.list-group, .nav, [role="tablist"]',F$=".nav-item, .list-group-item",j$=`.nav-link${Mu}, .list-group-item${Mu}, [role="tab"]${Mu}`,$5='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Lu=`${j$}, ${$5}`,z$=`.${Co}[data-bs-toggle="tab"], .${Co}[data-bs-toggle="pill"], .${Co}[data-bs-toggle="list"]`;class Oi extends Bn{constructor(e){super(e),this._parent=this._element.closest(V$),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ce.on(this._element,M$,n=>this._keydown(n)))}static get NAME(){return A$}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?ce.trigger(n,T$,{relatedTarget:e}):null;ce.trigger(e,x$,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Co),this._activate(Oe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Nu);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ce.trigger(e,O$,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(p0))}_deactivate(e,n){if(!e)return;e.classList.remove(Co),e.blur(),this._deactivate(Oe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Nu);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ce.trigger(e,I$,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(p0))}_keydown(e){if(![D$,f0,P$,h0].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[f0,h0].includes(e.key),r=uh(this._getChildren().filter(o=>!Gr(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Oi.getOrCreateInstance(r).show())}_getChildren(){return Oe.find(Lu,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Oe.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(B$))return;const o=(i,s)=>{const c=Oe.findOne(i,r);c&&c.classList.toggle(s,n)};o(R$,Co),o($$,Nu),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Co)}_getInnerElement(e){return e.matches(Lu)?e:Oe.findOne(Lu,e)}_getOuterElement(e){return e.closest(F$)||e}static jQueryInterface(e){return this.each(function(){const n=Oi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ce.on(document,N$,$5,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Gr(this)&&Oi.getOrCreateInstance(this).show()});ce.on(window,L$,()=>{for(const t of Oe.find(z$))Oi.getOrCreateInstance(t)});Sn(Oi);const U$="toast",H$="bs.toast",io=`.${H$}`,W$=`mouseover${io}`,K$=`mouseout${io}`,Y$=`focusin${io}`,G$=`focusout${io}`,Q$=`hide${io}`,Z$=`hidden${io}`,J$=`show${io}`,X$=`shown${io}`,q$="fade",m0="hide",Na="show",Ma="showing",eV={animation:"boolean",autohide:"boolean",delay:"number"},tV={animation:!0,autohide:!0,delay:5e3};class zi extends Bn{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return tV}static get DefaultType(){return eV}static get NAME(){return U$}show(){if(ce.trigger(this._element,J$).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(q$);const n=()=>{this._element.classList.remove(Ma),ce.trigger(this._element,X$),this._maybeScheduleHide()};this._element.classList.remove(m0),oa(this._element),this._element.classList.add(Na,Ma),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||ce.trigger(this._element,Q$).defaultPrevented)return;const n=()=>{this._element.classList.add(m0),this._element.classList.remove(Ma,Na),ce.trigger(this._element,Z$)};this._element.classList.add(Ma),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Na),super.dispose()}isShown(){return this._element.classList.contains(Na)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ce.on(this._element,W$,e=>this._onInteraction(e,!0)),ce.on(this._element,K$,e=>this._onInteraction(e,!1)),ce.on(this._element,Y$,e=>this._onInteraction(e,!0)),ce.on(this._element,G$,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=zi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}Ac(zi);Sn(zi);function g0(t,e){return e.value||t.getAttribute("title")||""}const jo={mounted:(t,e)=>{const n=g0(t,e);n&&t.setAttribute("title",n),new Qn(t)},updated:(t,e)=>{const n=Qn.getInstance(t);n&&n.dispose();const r=g0(t,e);r&&t.setAttribute("title",r),new Qn(t)},unmounted:t=>{const e=Qn.getInstance(t);e&&e.dispose()}},nV={key:0,class:"pills-list__wrapper"},rV={class:"pills-list__ul"},oV={class:"bd-markdown-editor__menu-bottom"},iV={key:0,class:"vr"},V5=a.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:bu.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=()=>{e("upload")},o=$o(n,"modelValue",e),i=[xL,OL,NL,nD.configure({placeholder:n.placeholder}),bD,tD.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===bu.FULL&&i.push(aD,fD,hD,pD,gD,yD);const s=IL({content:o.value,extensions:i,onUpdate:({editor:P})=>{const{view:j,state:K}=P,{from:F,to:W}=j.state.selection;if(K.doc.textBetween(F-1,W,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:F-1,to:W}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:W,to:W}).run(),P.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",P.getHTML())}});a.watch(()=>n.modelValue,P=>{s.value.getHTML()!==P&&s.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const c=a.computed(()=>n.state===!1?"is-invalid":null),l=a.computed(()=>g("bold")),u=a.computed(()=>g("italic")),d=a.computed(()=>g("underline")),f=a.computed(()=>g("bulletList")),h=a.computed(()=>g("orderedList")),p=a.computed(()=>g("link")),m=a.computed(()=>n.variant===bu.FULL),g=P=>s.value&&s.value.isActive(P)?"active":null,v=a.computed(()=>n.files&&n.files.length>0?Ro(n.apiUrl,n.files,!1):null),C=a.computed(()=>n.files&&n.files.length>0?Ro(n.apiUrl,n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},b=P=>{e("action",{name:"image-attachment",obj:P})},y=a.computed(()=>{if(!s.value)return!1;const{from:P,to:j}=s.value.state.selection;return P!==j}),A=a.computed(()=>y.value?"Voeg een link toe":"Selecteer eerst tekst"),w=a.ref(!1),O=a.ref(""),L=a.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",w.value=!0},z=P=>{if(w.value=!1,!P){s.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),s.value.chain().focus().toggleLink({href:P}).run()},V=()=>{w.value=!1};return(P,j)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["bd-markdown-editor",c.value])},[a.createVNode(a.unref(TL),{editor:a.unref(s)},null,8,["editor"]),P.pills?(a.openBlock(),a.createElementBlock("div",nV,[a.createElementVNode("ul",rV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(P.pills,(K,F)=>(a.openBlock(),a.createElementBlock("li",{key:F,class:"pills-list__li"},[a.createVNode(ac,a.normalizeProps(a.guardReactiveProps(K)),null,16)]))),128))])])):a.createCommentVNode("",!0),a.renderSlot(P.$slots,"default"),v.value?(a.openBlock(),a.createBlock(na,{key:1,files:v.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):a.createCommentVNode("",!0),C.value?(a.openBlock(),a.createBlock(ra,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:b},null,8,["files"])):a.createCommentVNode("",!0),a.createElementVNode("div",oV,[a.createVNode(Ue,{variant:"light",type:"button",onClick:r},{default:a.withCtx(()=>[a.createVNode(a.unref(Hr))]),_:1}),m.value?(a.openBlock(),a.createElementBlock("div",iV)):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(Ue,{key:1,variant:"light",type:"button",class:a.normalizeClass(l.value),onClick:j[0]||(j[0]=K=>a.unref(s).chain().focus().toggleBold().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(jd))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(Ue,{key:2,variant:"light",type:"button",class:a.normalizeClass(u.value),onClick:j[1]||(j[1]=K=>a.unref(s).chain().focus().toggleItalic().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(qd))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(Ue,{key:3,variant:"light",type:"button",class:a.normalizeClass(d.value),onClick:j[2]||(j[2]=K=>a.unref(s).chain().focus().toggleUnderline().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(af))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(Ue,{key:4,variant:"light",type:"button",class:a.normalizeClass(f.value),onClick:j[3]||(j[3]=K=>a.unref(s).chain().focus().toggleBulletList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(zd))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(Ue,{key:5,variant:"light",type:"button",class:a.normalizeClass(h.value),onClick:j[4]||(j[4]=K=>a.unref(s).chain().focus().toggleOrderedList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(tf))]),_:1},8,["class"])):a.createCommentVNode("",!0),a.withDirectives((a.openBlock(),a.createElementBlock("span",null,[m.value?(a.openBlock(),a.createBlock(Ue,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:a.normalizeClass(p.value),onClick:N,disabled:!y.value},{default:a.withCtx(()=>[a.createVNode(a.unref(Zl))]),_:1},8,["class","disabled"])):a.createCommentVNode("",!0)])),[[a.unref(jo),A.value]])]),w.value?(a.openBlock(),a.createBlock(kD,{key:3,previousUrl:O.value,onSubmit:z,onCancel:V},null,8,["previousUrl"])):a.createCommentVNode("",!0)],2),a.createVNode(sc,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),sV={class:"header"},aV=a.createElementVNode("div",null,"Menu",-1),lV={class:"icon-close-wrapper"},cV={class:"navbar"},uV={class:"nav navbar-nav w-100"},dV={class:"nav-item"},fV={class:"nav-item"},ph=a.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=t,r=a.computed(()=>({active:n.active===!0,inactive:n.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-mobile-menu",r.value])},[a.createElementVNode("div",sV,[aV,a.createElementVNode("div",lV,[a.createVNode(Gl,{onClick:o})])]),a.createElementVNode("nav",cV,[a.createElementVNode("ul",uV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,l=>(a.openBlock(),a.createElementBlock("li",dV,[a.createVNode(Io,a.mergeProps({class:"nav-link"},l,{onClick:o}),null,16)]))),256)),a.renderSlot(s.$slots,"special-options"),a.createElementVNode("li",fV,[a.createVNode(Io,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),hV={class:"bd-user"},pV={class:"bd-user__information"},mV={class:"text-break"},gV={class:"overflow-x-hidden"},F5=a.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(t){const e=t,n=a.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(a.openBlock(),a.createElementBlock("div",hV,[e.hideImage?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Zs,a.mergeProps({key:0},e.img,{size:"sm"}),null,16)),a.createElementVNode("div",pV,[a.createElementVNode("header",null,[a.createElementVNode("h5",mV,a.toDisplayString(e.name),1),a.renderSlot(r.$slots,"header-extra")]),a.createElementVNode("span",gV,a.toDisplayString(n.value),1)])]))}}),vV={class:"bd-chat-cloud-card"},yV={class:"bd-chat-cloud-card__header"},bV={class:"bd-chat-cloud-card__body"},CV=["innerHTML"],EV={class:"bd-chat-cloud-card__footer"},SV={key:0,class:"pills-list__wrapper"},wV={class:"pills-list__ul"},j5=a.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=a.computed(()=>n.isSender?"sender":Pe),o=a.computed(()=>Ro(n.apiUrl,n.files,!1)),i=a.computed(()=>Ro(n.apiUrl,n.files,!0)),s=()=>{e("action","copy-message")},c=l=>{e("show-attachment",l)};return(l,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-chat-cloud",r.value])},[a.createVNode(Zs,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),a.createElementVNode("div",vV,[a.createElementVNode("div",yV,[a.renderSlot(l.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(l.headerTitle),1)]),a.createVNode(Ue,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:a.withCtx(()=>[a.createTextVNode(" kopieer ")]),_:1})]),a.createElementVNode("div",bV,[a.renderSlot(l.$slots,"body",{},()=>[a.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,CV)])]),a.createElementVNode("div",EV,[a.renderSlot(l.$slots,"footer",{},()=>[l.pills?(a.openBlock(),a.createElementBlock("div",SV,[a.createElementVNode("ul",wV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.pills,(d,f)=>(a.openBlock(),a.createElementBlock("li",{key:f,class:"pills-list__li"},[a.createVNode(ac,a.normalizeProps(a.guardReactiveProps(d)),null,16)]))),128))])])):a.createCommentVNode("",!0),o.value&&o.value.length>0?(a.openBlock(),a.createBlock(na,{key:1,files:o.value},null,8,["files"])):a.createCommentVNode("",!0),i.value&&i.value.length>0?(a.openBlock(),a.createBlock(ra,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):a.createCommentVNode("",!0)])])])],2))}}),kV=a.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=a.ref(n.sortDesc),o=()=>{n.active&&(r.value=!r.value)},i=()=>{if(!n.active)return;const c=r.value?"sortDesc":"sortAsc";e(c)},s=a.computed(()=>({"bd-table-sort":!0,active:n.active}));return a.watch(()=>n.active,(c,l)=>{c&&!l&&(r.value=!1,e("sortAsc"))}),i(),(c,l)=>(a.openBlock(),a.createElementBlock("th",{class:a.normalizeClass(s.value),onClick:l[0]||(l[0]=u=>{o(),i()})},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.active&&!r.value?(a.openBlock(),a.createBlock(a.unref(nf),{key:0})):n.active&&r.value?(a.openBlock(),a.createBlock(a.unref(rf),{key:1})):(a.openBlock(),a.createBlock(a.unref(of),{key:2}))],2))}}),AV={class:"bd-table"},_V={key:0,class:"table"},TV={key:1},IV=["onClick"],xV={key:0},OV={key:1,class:"empty-text"},z5=a.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(t,{expose:e,emit:n}){const r=t,o=a.ref(r.items),i=a.ref(r.sortBy),s=f=>i.value=f,c=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const v=m.toString(),C=g.toString();return v.localeCompare(C,void 0,{numeric:!0})},l=f=>{o.value=o.value.sort((p,m)=>c(f,p,m)),n("sort-changed",{sortBy:f,sortDesc:!1})},u=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},d=()=>{o.value=r.items};return a.watch(()=>r.items,f=>{o.value=f}),e({Refresh:d}),(f,h)=>(a.openBlock(),a.createElementBlock("div",AV,[r.items&&r.items.length>0?(a.openBlock(),a.createElementBlock("table",_V,[a.createElementVNode("thead",null,[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.fields,p=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[p.isVisible?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p.sortable?(a.openBlock(),a.createBlock(kV,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>l(p.key),onSortDesc:m=>u(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(a.openBlock(),a.createElementBlock("th",TV,a.toDisplayString(p.label),1))],64)):a.createCommentVNode("",!0)],64))),256))])]),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,p=>(a.openBlock(),a.createElementBlock("tr",{class:a.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>n("row-click",p)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.fields,m=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[m.isVisible?(a.openBlock(),a.createElementBlock("td",xV,[f.$slots.hasOwnProperty(m.key)?a.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(p[m.key]),1)],64))])):a.createCommentVNode("",!0)],64))),256))],10,IV))),256))])])):(a.openBlock(),a.createElementBlock("p",OV,a.toDisplayString(r.emptyText),1))]))}}),NV=["id"],MV={key:0,class:"toast-body__title"},LV={class:"actions"},DV=["textContent"],PV=["textContent"],BV={class:"icon-wrapper"},RV=["textContent"],$V=["textContent"],v0=3e4,y0=5e3,U5=a.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t;let r=a.ref(!1),o=a.ref(!1),i=null,s=null;const c=a.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),l=a.computed(()=>r.value?[r.value?"is-handled":Pe,o.value?"is-handled--success":Pe,n.canceled?"is-handled--canceled":Pe].join(" "):Pe),u=a.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),d=a.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:o.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));a.watch(()=>n.canceled,()=>{r.value=!0});const f=()=>{const E=c.value,b=document.querySelector(`#${E}`);if(b){b.addEventListener("hide.bs.toast",C);var y={autohide:!0,delay:v0+y0};s=zi.getOrCreateInstance(b,y),s.show(),i=window.setTimeout(h,v0)}};a.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),v()},m=()=>{r.value||(r.value=!0,e("reject-video-call",n.id))},g=()=>{r.value=!0,o.value=!0,e("accept-video-call",n.id),v()},v=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),y0)},C=()=>{r.value=!1,o.value=!1};return(E,b)=>(a.openBlock(),a.createElementBlock("div",{id:c.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[a.unref(r)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",MV,a.toDisplayString(n.localization.incomingVideoCall),1)),a.createElementVNode("div",{class:a.normalizeClass(["toast-body__main",l.value])},[a.unref(r)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",BV,[a.createVNode(za)]),a.createElementVNode("div",null,[a.createElementVNode("p",{textContent:a.toDisplayString(u.value),class:"title"},null,8,RV),a.createElementVNode("p",{textContent:a.toDisplayString(d.value)},null,8,$V)])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(wf,{value:E.contactInfoReceiver},null,8,["value"]),a.createElementVNode("div",LV,[a.createVNode(Ue,{variant:"danger",class:"text-center",onClick:p},{default:a.withCtx(()=>[a.createVNode(Ud),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.rejectVideoCall)},null,8,DV)]),_:1}),a.createVNode(Ue,{variant:"success",class:"text-center",onClick:g},{default:a.withCtx(()=>[a.createVNode(za),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.acceptVideoCall)},null,8,PV)]),_:1})])],64))],2)],8,NV))}}),mh=a.defineComponent({__name:"BDDropdown",props:{size:{default:Pt.MD},variant:{default:Jl.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(t){const e=t,{uniqueIdentifier:n}=Mi(),r=`__BD__DROPDOWN__${n.value}`,o=a.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=a.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=a.computed(()=>({"aria-labelledby":r})),c=a.ref(),l=a.ref(),u=()=>{c.value.classList.remove("show"),l.value.classList.remove("show"),l.value.removeAttribute("aria-expanded")};return(d,f)=>(a.openBlock(),a.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.toggleTag),a.mergeProps({ref_key:"dropdownToggle",ref:l,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(e.text),1)]),_:1},16)),a.createElementVNode("ul",a.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:u}),[a.renderSlot(d.$slots,"default")],16)]))}}),VV={class:"row bd-header"},FV={class:"col logo-mix"},jV=["src"],zV=a.createElementVNode("div",null,"Menu",-1),UV={key:1,class:"col header-options"},HV={class:"col bd-btn-settings"},WV={key:2},gh=a.defineComponent({__name:"BDHeader",props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:["click-logo","signout"],setup(t,{emit:e}){const n=t,r=a.computed(()=>{let d=[];return n.isEmbedded||(n.headerOptions&&(d=d.concat(n.headerOptions)),n.dropdownOptions&&(d=d.concat(n.dropdownOptions))),d}),o=a.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),i=a.ref(void 0),s=()=>{n.isEmbedded||e("click-logo")},c=()=>e("signout"),l=()=>i.value=!0,u=()=>i.value=!1;return(d,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("nav",VV,[a.createElementVNode("div",FV,[a.createVNode($d,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),n.organizationLogoSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,jV)):a.createCommentVNode("",!0)]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:l},[zV,a.createVNode(ef)])),o.value?(a.openBlock(),a.createElementBlock("div",UV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.headerOptions,h=>(a.openBlock(),a.createBlock(Ue,{class:"btn-header",to:h.to,variant:"neutral"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.text),1)]),_:2},1032,["to"]))),256))])):a.createCommentVNode("",!0),a.createElementVNode("div",HV,[n.isEmbedded?a.createCommentVNode("",!0):a.renderSlot(d.$slots,"profile-side",{key:0}),n.profileImageSrc?(a.openBlock(),a.createBlock(Zs,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):a.createCommentVNode("",!0),n.isEmbedded?(a.openBlock(),a.createElementBlock("span",WV,a.toDisplayString(n.dropdownMenuTitle),1)):a.createCommentVNode("",!0),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(mh,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.dropdownOptions,(h,p)=>(a.openBlock(),a.createBlock(Qa,a.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(a.openBlock(),a.createBlock(Qa,{key:0,text:"Uitloggen",onClick:c})):a.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ph,{key:0,active:i.value,options:r.value,onHide:u,onSignout:c},{"special-options":a.withCtx(()=>[a.renderSlot(d.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),KV="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",b0=async(t,e)=>{const n=t+e,o=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(i)).map(c=>c.toString(16).padStart(2,"0")).join("")};function vh(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{a.onMounted(()=>t().then(n))}}}const YV=(t,e,n)=>{const{OnWindowLoaded:r}=vh(),o="lkj298fhGGJihge",i=a.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const u=s(),d=localStorage.getItem(t),f=JSON.parse(d)||[],h=await b0(u,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const u=s(),d=await b0(u,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(d)||(h.push(d),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function H5(t){const{OnWindowLoaded:e}=vh();let n;const r=()=>{n=document.addEventListener("click",i=>{if(!i||!i.target)return;let s=null;if(i.target instanceof Element&&(s=i.target.closest(".popover")),s)return;const c=bo.getInstance(t.value);c&&c.hide()})};a.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;bo.getInstance(t.value)||new bo(t.value)};e(o),a.watch(t,o),a.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=bo.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const GV=["data-bs-title","data-bs-content"],QV=["title"],ZV={key:0,class:"number-circle",textContent:1},JV=a.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var d;return(d=e.getNotification)==null?void 0:d.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=YV("notificationsRead",e.userId,n),i=a.ref();H5(i);const s=a.computed(()=>{const d=e.getNotification;if(!d)return!1;const{isActive:f,startDate:h,endDate:p}=d;if(!f)return!1;const m=new Date(h),g=new Date(p),v=new Date;return v>=m&&v<=g}),c=a.computed(()=>{var d;return(d=e.getNotification)==null?void 0:d.tooltip}),l=a.computed(()=>{var d;return(d=e.getNotification)==null?void 0:d.title}),u=a.computed(()=>{const d=e.getNotification;if(!d)return"";const{text:f,linkUrl:h,linkText:p}=d;return`
1356
1356
  <p>${f}</p>
1357
1357
  <a href='${h}' target='_blank'>${p}</a>
1358
- `});return(d,f)=>s.value?(a.openBlock(),a.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":l.value,"data-bs-content":u.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:KV,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,QV),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",ZV)):a.createCommentVNode("",!0)],8,GV)):a.createCommentVNode("",!0)}}),XV={class:"profile-side"},qV=["href"],eF={class:"nav-item"},tF=["textContent"],W5=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Wt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(gh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",XV,[a.createVNode(JV,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(a.openBlock(),a.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[a.withDirectives(a.createVNode(a.unref(ja),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,qV)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",eF,[a.createVNode(Io,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(ja)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,tF)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),nF={class:"modal-dialog"},rF={class:"modal-content"},oF={class:"modal-header"},iF={class:"modal-title"},sF=["src"],aF=a.createElementVNode("span",null,"Sluiten",-1),lF={class:"modal-body"},cF={key:0,class:"modal-footer"},uF=["disabled"],Rn=a.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=a.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),tabindex:"-1"},[a.createElementVNode("div",nF,[a.createElementVNode("div",rF,[a.createElementVNode("div",oF,[a.createElementVNode("h2",iF,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,sF)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(n.title),1)]),a.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[aF,a.createVNode(a.unref(Gl))]))]),a.createElementVNode("div",lF,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",cF,[n.hideFooterSubmitButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},a.toDisplayString(n.submitButtonTitle),9,uF)),a.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},a.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),zo=t=>{const e=a.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Qr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=Qr.getInstance(o);i&&i.hide()}}}};function la(t=void 0){const e=c=>i("Succesvol",c,ai.SUCCESS),n=c=>i("Waarschuwing",c,ai.WARNING),r=c=>i("Informatie",c,ai.INFO),o=c=>i("Mislukt",c,ai.DANGER);function i(c,l,u){const d=`toast-${gg()}`,f={id:d,variant:u,title:c,text:l},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=a.h(Sf,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${d}`);v&&(zi.getOrCreateInstance(v,t).show(),s(v))}function s(c){function l(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const u=new MutationObserver(l),d={attributes:!0};u.observe(c,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:dF}=la();function yh(t){const e=a.ref(null),n=(l,u="serverErrors")=>{var f;let d=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?d=l.response.data.filter(h=>va(h.ErrorMessage)&&h.ErrorMessage!==Pe):l.response.data.ErrorMessage?d=[l.response.data.ErrorMessage]:d=null,va(u))e.value=d;else if(Array.isArray(u)){let h=e.value;for(let p=0;p<u.length;p++)p===u.length-1?h[u[p]]=d:h=h[u[p]]}r(l),s(e)},r=l=>{if(t==null)return;const d=new URL(l.request.responseURL).pathname;if(d in t.error){const f=t.error[d];f&&dF(f)}},o=a.ref(null),i=a.ref(""),s=l=>{F_(l.value)?o.value=l.value.map(u=>va(u)?u:u.ErrorMessage):va(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Pe}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const fF={key:0},hF={key:1},pF={class:"bd-form-field"},mF={class:"bd-form-field"},K5=a.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=la(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:u,ResetServerErrors:d}=yh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Pe;const p=a.ref(),m=a.ref(null),g=a.ref(),v=a.ref(),C=a.ref(null),E=a.computed(()=>v.value==null||v.value==""),b=()=>{if(m.value=null,d(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(A).catch(u)},y=()=>{if(!v.value){C.value=!1;return}const N={requestIdentifier:g.value,token:v.value};r.confirmPhoneNumberUpdate(N).then(w).catch(u)},A=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},w=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},O=N=>{h=N,p.value=h,m.value=null,g.value=void 0,v.value=void 0,C.value=null},L=()=>{O(h),d(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Pe)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:a.unref(s),errorMessages:a.unref(c),errorMessageText:a.unref(l),onSubmit:y,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(xo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",fF,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(V,P)=>(a.openBlock(),a.createElementBlock("li",{key:P},[a.createVNode(Jr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",hF,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",pF,[a.createVNode(Fr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":z[0]||(z[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:a.withCtx(()=>[a.createVNode(Ue,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:b},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),a.createVNode(Ue,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",mF,[g.value?(a.openBlock(),a.createBlock(Fr,{key:0,label:r.confirmationCodeLabel,modelValue:v.value,"onUpdate:modelValue":z[1]||(z[1]=V=>v.value=V),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):a.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Y5=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),u=a.ref(null),{showModal:d,closeModal:f}=zo("session-time-out-modal"),h=a.computed(()=>s.value&&t?t-(s.value+1):0),p=a.computed(()=>c.value?60-c.value:0),m=a.computed(()=>l.value),g=()=>{u.value=setInterval(C,1e3),r(u.value)},v=()=>{u.value&&clearInterval(u.value)},C=()=>{s.value=Xt().diff(n(),"m"),c.value=Xt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?d():f()},E=L=>{L.stopPropagation(),y()},b=()=>{o(),v(),s.value=null,c.value=null,g()},y=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},A=()=>{l.value?y():b()},w=()=>{y()},O=()=>{l.value?y():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",A),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:w,OnSubmit:O}},G5=a.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=Y5(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=a.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),l=a.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),u=a.computed(()=>e.hideCancelButton||n.value),d=a.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(a.openBlock(),a.createBlock(Rn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":d.value,size:"md",onSubmit:a.unref(s),onCancel:a.unref(i)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Q5={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=zo(n.modalId);let i=a.ref(null);e({Confirm:()=>V_(this,void 0,void 0,function*(){return o(),new Promise(u=>i.value=u)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(u,d)=>(a.openBlock(),a.createBlock(Rn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:l},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},Z5={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Wt(),r=a.ref(!1),o=a.ref(!1),i=()=>e("update:isConcluded",r.value),s=()=>e("update:isUnread",o.value);return(c,l)=>(a.openBlock(),a.createBlock(Rn,{id:"assign-conversation-modal",title:a.unref(n)("assignConversationModal.title"),submitButtonTitle:a.unref(n)("assignConversationModal.submitButton")},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"body"),a.createVNode(Ps,null,{default:a.withCtx(()=>[a.createVNode(Wr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(Ue,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(Jr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ps,null,{default:a.withCtx(()=>[a.createVNode(Wr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=u=>o.value=u),onChange:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),a.renderSlot(c.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},J5=a.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=zo("attachment-upload-modal"),{t:o}=Wt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),u=a.computed(()=>o("attachmentUploadModal.submitButton")),d=a.computed(()=>o("attachmentUploadModal.infoMessage")),f=a.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=a.computed(()=>o("attachmentUploadModal.errorMessage")),p=a.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=a.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage")),g=a.computed(()=>o("attachmentUploadModal.officeDocumentsNotSupportedByMobileMessage"));return(v,C)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":u.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(d.value),1),a.createVNode(kf,{modelValue:c.value,"onUpdate:modelValue":C[0]||(C[0]=E=>c.value=E),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),a.createElementVNode("p",null,a.toDisplayString(m.value),1),a.createElementVNode("p",null,a.toDisplayString(g.value),1)]),_:1},8,["title","submit-button-title"]))}});var gF=Object.defineProperty,vF=Object.defineProperties,yF=Object.getOwnPropertyDescriptors,C0=Object.getOwnPropertySymbols,bF=Object.prototype.hasOwnProperty,CF=Object.prototype.propertyIsEnumerable,E0=(t,e,n)=>e in t?gF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zo=(t,e)=>{for(var n in e||(e={}))bF.call(e,n)&&E0(t,n,e[n]);if(C0)for(var n of C0(e))CF.call(e,n)&&E0(t,n,e[n]);return t},S0=(t,e)=>vF(t,yF(e));const EF={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},SF={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},wF={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},bh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},kF={},AF={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_F=a.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),TF=[_F];function IF(t,e){return a.openBlock(),a.createElementBlock("svg",AF,TF)}const xF=bh(kF,[["render",IF]]),OF={},NF={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},MF=a.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),LF=[MF];function DF(t,e){return a.openBlock(),a.createElementBlock("svg",NF,LF)}const PF=bh(OF,[["render",DF]]),w0={Deselect:xF,OpenIndicator:PF},BF={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function RF(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let $F=0;function VF(){return++$F}const FF={components:Zo({},w0),directives:{appendToBody:BF},mixins:[EF,SF,wF],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
1358
+ `});return(d,f)=>s.value?(a.openBlock(),a.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":l.value,"data-bs-content":u.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:KV,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,QV),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",ZV)):a.createCommentVNode("",!0)],8,GV)):a.createCommentVNode("",!0)}}),XV={class:"profile-side"},qV=["href"],eF={class:"nav-item"},tF=["textContent"],W5=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Wt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(gh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",XV,[a.createVNode(JV,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(a.openBlock(),a.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[a.withDirectives(a.createVNode(a.unref(ja),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,qV)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",eF,[a.createVNode(Io,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(ja)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,tF)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),nF={class:"modal-dialog"},rF={class:"modal-content"},oF={class:"modal-header"},iF={class:"modal-title"},sF=["src"],aF=a.createElementVNode("span",null,"Sluiten",-1),lF={class:"modal-body"},cF={key:0,class:"modal-footer"},uF=["disabled"],Rn=a.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=a.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),tabindex:"-1"},[a.createElementVNode("div",nF,[a.createElementVNode("div",rF,[a.createElementVNode("div",oF,[a.createElementVNode("h2",iF,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,sF)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(n.title),1)]),a.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[aF,a.createVNode(a.unref(Gl))]))]),a.createElementVNode("div",lF,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",cF,[n.hideFooterSubmitButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},a.toDisplayString(n.submitButtonTitle),9,uF)),a.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},a.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),zo=t=>{const e=a.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Qr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=Qr.getInstance(o);i&&i.hide()}}}};function la(t=void 0){const e=c=>i("Succesvol",c,ai.SUCCESS),n=c=>i("Waarschuwing",c,ai.WARNING),r=c=>i("Informatie",c,ai.INFO),o=c=>i("Mislukt",c,ai.DANGER);function i(c,l,u){const d=`toast-${gg()}`,f={id:d,variant:u,title:c,text:l},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=a.h(Sf,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${d}`);v&&(zi.getOrCreateInstance(v,t).show(),s(v))}function s(c){function l(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const u=new MutationObserver(l),d={attributes:!0};u.observe(c,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:dF}=la();function yh(t){const e=a.ref(null),n=(l,u="serverErrors")=>{var f;let d=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?d=l.response.data.filter(h=>va(h.ErrorMessage)&&h.ErrorMessage!==Pe):l.response.data.ErrorMessage?d=[l.response.data.ErrorMessage]:d=null,va(u))e.value=d;else if(Array.isArray(u)){let h=e.value;for(let p=0;p<u.length;p++)p===u.length-1?h[u[p]]=d:h=h[u[p]]}r(l),s(e)},r=l=>{if(t==null)return;const d=new URL(l.request.responseURL).pathname;if(d in t.error){const f=t.error[d];f&&dF(f)}},o=a.ref(null),i=a.ref(""),s=l=>{F_(l.value)?o.value=l.value.map(u=>va(u)?u:u.ErrorMessage):va(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Pe}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const fF={key:0},hF={key:1},pF={class:"bd-form-field"},mF={class:"bd-form-field"},K5=a.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=la(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:u,ResetServerErrors:d}=yh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Pe;const p=a.ref(),m=a.ref(null),g=a.ref(),v=a.ref(),C=a.ref(null),E=a.computed(()=>v.value==null||v.value==""),b=()=>{if(m.value=null,d(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(A).catch(u)},y=()=>{if(!v.value){C.value=!1;return}const N={requestIdentifier:g.value,token:v.value};r.confirmPhoneNumberUpdate(N).then(w).catch(u)},A=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},w=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},O=N=>{h=N,p.value=h,m.value=null,g.value=void 0,v.value=void 0,C.value=null},L=()=>{O(h),d(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Pe)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:a.unref(s),errorMessages:a.unref(c),errorMessageText:a.unref(l),onSubmit:y,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(xo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",fF,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(V,P)=>(a.openBlock(),a.createElementBlock("li",{key:P},[a.createVNode(Jr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",hF,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",pF,[a.createVNode(Fr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":z[0]||(z[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:a.withCtx(()=>[a.createVNode(Ue,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:b},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),a.createVNode(Ue,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",mF,[g.value?(a.openBlock(),a.createBlock(Fr,{key:0,label:r.confirmationCodeLabel,modelValue:v.value,"onUpdate:modelValue":z[1]||(z[1]=V=>v.value=V),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):a.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Y5=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),u=a.ref(null),{showModal:d,closeModal:f}=zo("session-time-out-modal"),h=a.computed(()=>s.value&&t?t-(s.value+1):0),p=a.computed(()=>c.value?60-c.value:0),m=a.computed(()=>l.value),g=()=>{u.value=setInterval(C,1e3),r(u.value)},v=()=>{u.value&&clearInterval(u.value)},C=()=>{s.value=Xt().diff(n(),"m"),c.value=Xt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?d():f()},E=L=>{L.stopPropagation(),y()},b=()=>{o(),v(),s.value=null,c.value=null,g()},y=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},A=()=>{l.value?y():b()},w=()=>{y()},O=()=>{l.value?y():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",A),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:w,OnSubmit:O}},G5=a.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=Y5(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=a.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),l=a.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),u=a.computed(()=>e.hideCancelButton||n.value),d=a.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(a.openBlock(),a.createBlock(Rn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":d.value,size:"md",onSubmit:a.unref(s),onCancel:a.unref(i)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Q5={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=zo(n.modalId);let i=a.ref(null);e({Confirm:()=>V_(this,void 0,void 0,function*(){return o(),new Promise(u=>i.value=u)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(u,d)=>(a.openBlock(),a.createBlock(Rn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:l},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},Z5={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Wt(),r=a.ref(!1),o=a.ref(!1),i=()=>e("update:isConcluded",r.value),s=()=>e("update:isUnread",o.value);return(c,l)=>(a.openBlock(),a.createBlock(Rn,{id:"assign-conversation-modal",title:a.unref(n)("assignConversationModal.title"),submitButtonTitle:a.unref(n)("assignConversationModal.submitButton")},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"body"),a.createVNode(Ps,null,{default:a.withCtx(()=>[a.createVNode(Wr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=u=>r.value=u),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(Ue,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(Jr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ps,null,{default:a.withCtx(()=>[a.createVNode(Wr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=u=>o.value=u),onChange:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),a.renderSlot(c.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},J5=a.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=zo("attachment-upload-modal"),{t:o}=Wt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),u=a.computed(()=>o("attachmentUploadModal.submitButton")),d=a.computed(()=>o("attachmentUploadModal.infoMessage")),f=a.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=a.computed(()=>o("attachmentUploadModal.errorMessage")),p=a.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=a.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage"));return(g,v)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":u.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(d.value),1),a.createVNode(kf,{modelValue:c.value,"onUpdate:modelValue":v[0]||(v[0]=C=>c.value=C),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),a.createElementVNode("p",null,a.toDisplayString(m.value),1),a.renderSlot(g.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var gF=Object.defineProperty,vF=Object.defineProperties,yF=Object.getOwnPropertyDescriptors,C0=Object.getOwnPropertySymbols,bF=Object.prototype.hasOwnProperty,CF=Object.prototype.propertyIsEnumerable,E0=(t,e,n)=>e in t?gF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zo=(t,e)=>{for(var n in e||(e={}))bF.call(e,n)&&E0(t,n,e[n]);if(C0)for(var n of C0(e))CF.call(e,n)&&E0(t,n,e[n]);return t},S0=(t,e)=>vF(t,yF(e));const EF={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},SF={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},wF={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},bh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},kF={},AF={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_F=a.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),TF=[_F];function IF(t,e){return a.openBlock(),a.createElementBlock("svg",AF,TF)}const xF=bh(kF,[["render",IF]]),OF={},NF={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},MF=a.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),LF=[MF];function DF(t,e){return a.openBlock(),a.createElementBlock("svg",NF,LF)}const PF=bh(OF,[["render",DF]]),w0={Deselect:xF,OpenIndicator:PF},BF={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function RF(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let $F=0;function VF(){return++$F}const FF={components:Zo({},w0),directives:{appendToBody:BF},mixins:[EF,SF,wF],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
1359
1359
  https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:RF(t)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
1360
1360
  https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>VF()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:Zo({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:S0(Zo({},t),{deselect:this.deselect}),footer:S0(Zo({},t),{deselect:this.deselect})}},childComponents(){return Zo(Zo({},w0),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,e){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(e=>this.reduce(e)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const e=t.target!==this.searchEl;e&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(r=>r.contains(t.target)||r===t.target)){t.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(e=>this.optionComparator(e,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue(t){const e=r=>JSON.stringify(this.reduce(r))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(e);return n.length===1?n[0]:n.find(r=>this.optionComparator(r,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(e=>this.optionComparator(e,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const e=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>n[o]=e);const r=this.mapKeydown(n,this);if(typeof r[t.keyCode]=="function")return r[t.keyCode](t)}}},jF=["dir"],zF=["id","aria-expanded","aria-owns"],UF={ref:"selectedOptions",class:"vs__selected-options"},HF=["disabled","title","aria-label","onClick"],WF={ref:"actions",class:"vs__actions"},KF=["disabled"],YF={class:"vs__spinner"},GF=["id"],QF=["id","aria-selected","onMouseover","onClick"],ZF={key:0,class:"vs__no-options"},JF=a.createTextVNode(" Sorry, no matching options. "),XF=["id"];function qF(t,e,n,r,o,i){const s=a.resolveDirective("append-to-body");return a.openBlock(),a.createElementBlock("div",{dir:n.dir,class:a.normalizeClass(["v-select",i.stateClasses])},[a.renderSlot(t.$slots,"header",a.normalizeProps(a.guardReactiveProps(i.scope.header))),a.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=c=>i.toggleDropdown(c))},[a.createElementVNode("div",UF,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.selectedValue,(c,l)=>a.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[a.renderSlot(t.$slots,"selected-option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(a.openBlock(),a.createElementBlock("button",{key:0,ref_for:!0,ref:u=>o.deselectButtons[l]=u,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:u=>i.deselect(c)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,HF)):a.createCommentVNode("",!0)]))])),256)),a.renderSlot(t.$slots,"search",a.normalizeProps(a.guardReactiveProps(i.scope.search)),()=>[a.createElementVNode("input",a.mergeProps({class:"vs__search"},i.scope.search.attributes,a.toHandlers(i.scope.search.events)),null,16)])],512),a.createElementVNode("div",WF,[a.withDirectives(a.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...c)=>i.clearSelection&&i.clearSelection(...c))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,KF),[[a.vShow,i.showClearButton]]),a.renderSlot(t.$slots,"open-indicator",a.normalizeProps(a.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.OpenIndicator),a.normalizeProps(a.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),a.renderSlot(t.$slots,"spinner",a.normalizeProps(a.guardReactiveProps(i.scope.spinner)),()=>[a.withDirectives(a.createElementVNode("div",YF,"Loading...",512),[[a.vShow,t.mutableLoading]])])],512)],40,zF),a.createVNode(a.Transition,{name:n.transition},{default:a.withCtx(()=>[i.dropdownOpen?a.withDirectives((a.openBlock(),a.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=a.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[a.renderSlot(t.$slots,"list-header",a.normalizeProps(a.guardReactiveProps(i.scope.listHeader))),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.filteredOptions,(c,l)=>(a.openBlock(),a.createElementBlock("li",{id:`vs${n.uid}__option-${l}`,key:n.getOptionKey(c),role:"option",class:a.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&l===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":l===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":l===t.typeAheadPointer?!0:null,onMouseover:u=>n.selectable(c)?t.typeAheadPointer=l:null,onClick:a.withModifiers(u=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[a.renderSlot(t.$slots,"option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)])],42,QF))),128)),i.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",ZF,[a.renderSlot(t.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(i.scope.noOptions)),()=>[JF])])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(i.scope.listFooter)))],40,GF)),[[s]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,XF))]),_:3},8,["name"]),a.renderSlot(t.$slots,"footer",a.normalizeProps(a.guardReactiveProps(i.scope.footer)))],10,jF)}const ej=bh(FF,[["render",qF]]);const tj=t=>typeof t=="number",nj=12,rj=["textContent"],oj=["textContent"],ij={key:0,class:"content-library-card__body"},sj=["textContent"],aj={key:1},xc=a.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const n=t,{t:r}=Wt(),o=a.computed(()=>`Open ${n.provider} in nieuw venster`),i=()=>{e("on-insert",n.itemId)},s=()=>{window.open(n.uri,"_blank","noopener,noreferrer")};return(c,l)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass(["content-library-card",n.cardClass])},[a.createElementVNode("header",null,[a.renderSlot(c.$slots,"header",{},()=>[a.createElementVNode("h6",{textContent:a.toDisplayString(n.title)},null,8,rj),n.subtitle?(a.openBlock(),a.createElementBlock("small",{key:0,textContent:a.toDisplayString(n.subtitle)},null,8,oj)):a.createCommentVNode("",!0)])]),n.showBody?(a.openBlock(),a.createElementBlock("div",ij,[a.renderSlot(c.$slots,"default",{},()=>[a.createElementVNode("p",{textContent:a.toDisplayString(n.description),class:"content-library-card__description"},null,8,sj)])])):a.createCommentVNode("",!0),n.showFooter?(a.openBlock(),a.createElementBlock("footer",aj,[a.renderSlot(c.$slots,"footer",{},()=>[a.createVNode(Ue,{variant:"secondary",onClick:i},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCard.insert")),1)]),_:1}),a.createVNode(Ue,{title:o.value,variant:"icon",onClick:s},{default:a.withCtx(()=>[a.createVNode(Zd)]),_:1},8,["title"])])])):a.createCommentVNode("",!0)],2))}}),lj=a.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(xc,a.normalizeProps(a.guardReactiveProps(t.item)),null,16))}}),cj={class:"content-library-card-image__titles"},uj=["textContent"],dj=["textContent"],fj=["src"],hj=a.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:a.withCtx(()=>[a.createElementVNode("div",cj,[a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,uj),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.subtitle)},null,8,dj)]),a.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,fj)]),_:1},16))}}),pj=a.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.computed(()=>{const{itemId:r,title:o,subtitle:i,uri:s,provider:c}=e.item;return{itemId:r,title:o,subtitle:i,uri:s,provider:c}});return(r,o)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),X5=t=>t.replace(/<\/?[^>]+(>|$)/g,Pe),q5=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),mj=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),gj={class:"content-library-card-message-template__tag"},vj=["textContent"],yj=["textContent"],bj=["textContent"],Cj=["id"],Ej=["innerHTML"],Sj={class:"collapsed-hide"},wj={class:"collapsed-show"},kj={key:2,class:"edit-btn-group"},Aj={key:3,class:"attachment-occurence"},_j={class:"number-icon"},Tj=a.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}},apiUrl:{type:String,default:""}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const n=t,{t:r}=Wt(),o=a.ref(null),i=a.ref(!1),s=a.ref(!1),c=a.computed(()=>`collapse-preview-${n.item.itemId}`),l=a.computed(()=>zv(n.item.files)?null:n.item.files.length),u=a.computed(()=>n.variant==="insert"),d=a.computed(()=>n.variant==="edit"),f=a.computed(()=>n.variant==="shared"),h=a.computed(()=>s.value?Pe:"content-library-card-not-collapsable"),p=a.computed(()=>n.item.text?mj(n.item.text):Pe),m=a.computed(()=>Ro(n.apiUrl,n.item.files,!1)),g=a.computed(()=>Ro(n.apiUrl,n.item.files,!0)),v=()=>{o.value&&(s.value=i.value||o.value.scrollHeight>o.value.clientHeight||n.item.files&&n.item.files.length>0)},C=()=>{e("on-insert",n.item.itemId)},E=A=>{e("show-attachment",A)},b=()=>{e("on-change",n.item.itemId)},y=()=>{e("delete",n.item.itemId)};return a.watch(()=>n.item,()=>{o.value&&a.nextTick().then(()=>{v()})},{immediate:!0,deep:!0}),a.onMounted(()=>{a.nextTick(()=>{v()})}),(A,w)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(t.item,{cardClass:`content-library-card-message-template ${h.value}`,onOnInsert:C}),{header:a.withCtx(()=>[a.createElementVNode("div",gj,[a.createElementVNode("span",{textContent:a.toDisplayString(t.item.category)},null,8,vj)]),a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,yj),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.practitionerName)},null,8,bj)]),footer:a.withCtx(()=>[u.value?(a.openBlock(),a.createBlock(Ue,{key:0,variant:"secondary",onClick:C},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):a.createCommentVNode("",!0),f.value?a.withDirectives((a.openBlock(),a.createBlock(Ue,{key:1,variant:"icon",title:a.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:a.withCtx(()=>[a.createVNode(Xd)]),_:1},8,["title"])),[[a.unref(jo)]]):a.createCommentVNode("",!0),d.value?(a.openBlock(),a.createElementBlock("div",kj,[a.createVNode(Ue,{title:a.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:b},{default:a.withCtx(()=>[a.createVNode(Qd)]),_:1},8,["title"]),a.createVNode(Ue,{title:a.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:y},{default:a.withCtx(()=>[a.createVNode(Yd)]),_:1},8,["title"])])):a.createCommentVNode("",!0),l.value?(a.openBlock(),a.createElementBlock("div",Aj,[a.createVNode(Hr),a.createElementVNode("div",_j,a.toDisplayString(l.value),1)])):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.createElementVNode("div",{id:c.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:o},[a.createElementVNode("p",{class:"message-text",innerHTML:p.value},null,8,Ej),t.item.files?(a.openBlock(),a.createBlock(na,{key:0,"no-download":!0,files:m.value},null,8,["files"])):a.createCommentVNode("",!0),t.item.files?(a.openBlock(),a.createBlock(ra,{key:1,"no-download":!0,files:g.value,onShow:E},null,8,["files"])):a.createCommentVNode("",!0)],8,Cj),s.value?(a.openBlock(),a.createBlock(Ue,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${c.value}`},{default:a.withCtx(()=>[a.createElementVNode("span",Sj,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),a.createElementVNode("span",wj,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):a.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}});const Ij={class:"content-library-overview"},xj={__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const n=t,{t:r}=Wt(),o={BDContentLibraryCardBasic:lj,BDContentLibraryCardImage:hj,BDContentLibraryCardTitle:pj,BDContentLibraryCardMessageTemplate:Tj},i=a.computed(()=>zv(n.items)),s=a.computed(()=>Math.floor(nj/n.cols)),c=f=>{e("on-insert",f)},l=f=>{e("on-change",f)},u=f=>{e("delete",f)},d=f=>{e("show-attachment",f)};return(f,h)=>(a.openBlock(),a.createElementBlock("div",Ij,[a.createVNode(Tn,null,{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(Tt,{key:0,sm:12},{default:a.withCtx(()=>[a.createVNode(xo,{show:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,p=>(a.openBlock(),a.createBlock(Tt,{class:"card-container",key:p.itemId,sm:12,md:6,lg:s.value},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o[p.componentToRender]),a.mergeProps(p,{item:p,onOnInsert:c,onOnChange:l,onDelete:u,onShowAttachment:d}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},Oj=be(xj,[["__scopeId","data-v-de8a1bfb"]]),Nj={class:"content-library-template"},Mj={class:"number-of-messages"},Lj=["src"],Dj=["src"],Pj=["id"],Bj={class:"collapse-button-container"},Rj={class:"collapsed-show"},$j={class:"collapsed-hide"},Ch=a.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const n=t,{t:r}=Wt(),o=a.ref(n.modelValue);a.watch(()=>n.modelValue,j=>{o.value=j},{immediate:!0,deep:!0});const i=a.computed(()=>{var j,K;return(K=(j=n.modelValue)==null?void 0:j.provider)!=null&&K.SupportsSearch?r("contentLibraryTemplate.searchPlaceholderSearch"):r("contentLibraryTemplate.searchPlaceholder")}),s=a.computed(()=>Uc(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=a.computed(()=>n.provider&&Uc(n.provider.items)?n.provider.items:[]),l=a.computed(()=>n.provider&&Uc(n.provider.filters)),u=a.computed(()=>{let j=0;return n.provider&&tj(n.provider.totalNumber)&&(j=n.provider.totalNumber),j===1?`${j} ${r("contentLibraryTemplate.message")}`:`${j} ${r("contentLibraryTemplate.messages")}`}),d=a.computed(()=>n.provider&&n.provider.pageSize&&n.provider.totalNumber&&n.provider.pageSize<=n.provider.totalNumber),f=a.computed(()=>n.provider&&n.provider.totalNumber?n.provider.totalNumber:0),h=a.computed(()=>l.value?9:12),p=a.computed(()=>n.provider&&!l.value?3:2),m=a.computed(()=>n.showAddButton||s.value),g=a.computed(()=>({md:3,lg:3})),v=a.computed(()=>({md:9,lg:9})),C=a.computed(()=>({sm:12,md:12,lg:s.value?7:8,"offset-lg":m.value?0:3,"offset-md":m.value?0:3})),E=a.computed(()=>({sm:12,md:m.value?6:3,lg:s.value?5:4})),b=j=>j.replace(/\s/g,"-"),y=()=>{e("create")},A=j=>{e("on-insert",j)},w=j=>{e("on-change",j)},O=j=>{e("delete",j)},L=()=>{e("update","category")},N=()=>{o.value.currentPage=1,e("on-input",o.value)},z=()=>{e("on-input",o.value)},V=j=>{e("show-attachment",j)},P=j=>{e("provider-changed",j.value)};return(j,K)=>(a.openBlock(),a.createElementBlock("div",Nj,[a.createVNode(Tn,null,{default:a.withCtx(()=>[a.createVNode(Tt,a.mergeProps(g.value,{class:"content-library-header content-library-header__messages"}),{default:a.withCtx(()=>[a.createElementVNode("span",Mj,a.toDisplayString(u.value),1),j.showAddButton?(a.openBlock(),a.createBlock(Ue,{key:0,class:"d-md-none",onClick:y},{default:a.withCtx(()=>[a.createVNode(Ua),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16),a.createVNode(Tt,a.mergeProps(v.value,{class:"content-library-header"}),{default:a.withCtx(()=>[a.createVNode(Tn,null,{default:a.withCtx(()=>[a.createVNode(Tt,a.mergeProps(C.value,{class:"search-block"}),{default:a.withCtx(()=>[a.createVNode(Fr,{type:"text",modelValue:o.value.searchTerm,"onUpdate:modelValue":K[0]||(K[0]=F=>o.value.searchTerm=F),placeholder:i.value,delayTimeMs:500,class:"search-input",onInput:N,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),j.showAddButton?(a.openBlock(),a.createBlock(Tt,a.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:a.withCtx(()=>[j.showAddButton?(a.openBlock(),a.createBlock(Ue,{key:0,onClick:y},{default:a.withCtx(()=>[a.createVNode(Ua),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16)):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Tt,a.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:a.withCtx(()=>[a.createVNode(a.unref(ej),{modelValue:o.value.provider,"onUpdate:modelValue":K[1]||(K[1]=F=>o.value.provider=F),options:j.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":P},{"open-indicator":a.withCtx(({attributes:F})=>[a.createElementVNode("span",a.normalizeProps(a.guardReactiveProps(F)),[a.createVNode(Yl)],16)]),option:a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,Lj)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),"selected-option":a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,Dj)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),_:1},8,["modelValue","options"])]),_:1},16)):a.createCommentVNode("",!0)]),_:1})]),_:1},16),l.value?(a.openBlock(),a.createBlock(Tt,{key:0,md:12,lg:3,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(cf,{title:"Filter",showOn:"md"},{body:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.provider.filters,(F,W)=>(a.openBlock(),a.createBlock(Ps,{key:F.label,label:F.label},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.options,(Q,U)=>(a.openBlock(),a.createBlock(Wr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=q=>o.value.selectedFilters=q),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128)),F.moreOptions?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",{id:`collapse-${b(F.label)}`,class:"collapse"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.moreOptions,(Q,U)=>(a.openBlock(),a.createBlock(Wr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=q=>o.value.selectedFilters=q),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,Pj),a.createElementVNode("div",Bj,[a.createVNode(Ue,{class:a.normalizeClass(["collapse-button collapsed",{"collapse-button-last":j.provider.filters.length-1===W}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${b(F.label)}`},{default:a.withCtx(()=>[a.createVNode(Vd,{class:"collapsed-show"}),a.createElementVNode("span",Rj,a.toDisplayString(a.unref(r)("contentLibraryTemplate.more")),1),a.createVNode(Fd,{class:"collapsed-hide"}),a.createElementVNode("span",$j,a.toDisplayString(a.unref(r)("contentLibraryTemplate.less")),1)]),_:2},1032,["class","data-bs-target"])])],64)):a.createCommentVNode("",!0),F.label==="Categorieën"&&j.editCategory?(a.openBlock(),a.createBlock(Ue,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:L},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):a.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0),a.createVNode(Tt,{md:12,lg:h.value,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(Oj,{items:c.value,cols:p.value,onOnInsert:A,onOnChange:w,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),a.createVNode(Tn,{class:"content-library-pagination"},{default:a.withCtx(()=>[d.value?(a.openBlock(),a.createBlock(Ef,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":K[4]||(K[4]=F=>o.value.currentPage=F),totalRows:f.value,rowsPerPage:j.provider.pageSize,onClick:z,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),e3={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const n=t,{closeModal:r}=zo("content-library-modal"),o=a.ref(n.modelValue),i=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.img)!==null&&m!==void 0?m:null}),s=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.label)!==null&&m!==void 0?m:Pe});a.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},l=()=>{e("cancel")},u=h=>{e("show-attachment",h)},d=()=>{e("shown")},f=h=>{e("provider-changed",h)};return(h,p)=>(a.openBlock(),a.createBlock(Rn,{id:"content-library-modal","title-image":i.value,title:s.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:l,onShown:d},{default:a.withCtx(()=>[a.createVNode(Ch,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:c,onShowAttachment:u,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var Vj=Object.defineProperty,Fj=(t,e,n)=>e in t?Vj(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k0=(t,e,n)=>(Fj(t,typeof e!="symbol"?e+"":e,n),n);class jj{constructor(){k0(this,"seed",0),k0(this,"data",new Map)}id(){return Date.now().toString(26)+this.seed++}add(e,n=this.id()){return this.data.set(n,e),n}get(e){return this.data.get(e)}delete(e){this.delete(e)}}const zj="Failed to copy value to clipboard. Unknown type.",Uj={asString(t){if(t==null)return console.warn("Clipboard input is empty"),"";if(typeof t!="string")try{return JSON.stringify(t)}catch(e){return console.warn(zj,e),""}return t}},Hj="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",Wj={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=Hj,e}},mi={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await mi.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=Wj.createTextarea(t);if(document.body.appendChild(e),navigator.userAgent.match(/ipad|ipod|iphone/i)){e.contentEditable="true",e.readOnly=!0;const r=document.createRange();r.selectNodeContents(e);const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(r),e.setSelectionRange(0,999999))}else e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n},async copy(t){const e=typeof t=="function"?t():t,n=Uj.asString(e);if(mi.writeClipboardExecCommand(n))return!0;await mi.writeClipboard(n)}};new jj;const{showSuccessToast:Eh}=la(),Kj=(t,e,n)=>{const r=`${e}
1361
1361
  ${t.AfzenderNaam}: \r${t.Datum} \r${X5(q5(t.Tekst))}`;mi.copy(r).then(()=>Eh(n))},t3=(t,e,n)=>{const r=t.filter(i=>i.selected).map(i=>`${i.AfzenderNaam}: \r${i.Datum}\r${X5(q5(i.Tekst))}`).join(`