@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.
|
@@ -1356,7 +1356,7 @@ img.ProseMirror-separator {
|
|
|
1356
1356
|
*/const qr=new Map,jf={set(t,e,n){qr.has(t)||qr.set(t,new Map);const r=qr.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 qr.has(t)&&qr.get(t).get(e)||null},remove(t,e){if(!qr.has(t))return;const n=qr.get(t);n.delete(e),n.size===0&&qr.delete(t)}},XM=1e6,qM=1e3,zf="transitionend",m5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),eL=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),tL=t=>{do t+=Math.floor(Math.random()*XM);while(document.getElementById(t));return t},nL=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))*qM)},g5=t=>{t.dispatchEvent(new Event(zf))},vr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),eo=t=>vr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(m5(t)):null,Mi=t=>{if(!vr(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},to=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",y5=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?y5(t.parentNode):null},pc=()=>{},na=t=>{t.offsetHeight},v5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Uf=[],rL=t=>{document.readyState==="loading"?(Uf.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Uf)e()}),Uf.push(t)):t()},yn=()=>document.documentElement.dir==="rtl",vn=t=>{rL(()=>{const e=v5();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)}})},en=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,b5=(t,e,n=!0)=>{if(!n){en(t);return}const r=5,o=nL(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(zf,s),en(t))};e.addEventListener(zf,s),setTimeout(()=>{i||g5(e)},o)},Hf=(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))])},oL=/[^.]*(?=\..*)\.|.*/,iL=/\..*/,sL=/::\d+$/,Wf={};let C5=1;const E5={mouseenter:"mouseover",mouseleave:"mouseout"},aL=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 S5(t,e){return e&&`${e}::${C5++}`||t.uidEvent||C5++}function _5(t){const e=S5(t);return t.uidEvent=e,Wf[e]=Wf[e]||{},Wf[e]}function lL(t,e){return function n(r){return Yf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function cL(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 Yf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function w5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function k5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=T5(t);return aL.has(i)||(i=t),[r,o,i]}function A5(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=k5(e,n,r);e in E5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const l=_5(t),d=l[c]||(l[c]={}),u=w5(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=S5(s,e.replace(oL,"")),h=i?cL(t,n,s):lL(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function Kf(t,e,n,r,o){const i=w5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function dL(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Kf(t,e,n,s.callable,s.delegationSelector)}function T5(t){return t=t.replace(iL,""),E5[t]||t}const de={on(t,e,n,r){A5(t,e,n,r,!1)},one(t,e,n,r){A5(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=k5(e,n,r),c=s!==e,l=_5(t),d=l[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;Kf(t,l,s,i,o?n:null);return}if(u)for(const f of Object.keys(l))dL(t,l,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(sL,"");(!c||e.includes(p))&&Kf(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=v5(),o=T5(e),i=e!==o;let s=null,c=!0,l=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=Yf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),l&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Yf(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 I5(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 Gf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const br={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Gf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Gf(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]=I5(t.dataset[r])}return e},getDataAttribute(t,e){return I5(t.getAttribute(`data-bs-${Gf(e)}`))}};class ra{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=vr(n)?br.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vr(n)?br.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=vr(i)?"element":eL(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const uL="5.3.0";class $n extends ra{constructor(e,n){super(),e=eo(e),e&&(this._element=e,this._config=this._getConfig(n),jf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){b5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return jf.get(eo(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return uL}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 Qf=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 m5(e)},Ne={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=>!to(n)&&Mi(n))},getSelectorFromElement(t){const e=Qf(t);return e&&Ne.findOne(e)?e:null},getElementFromSelector(t){const e=Qf(t);return e?Ne.findOne(e):null},getMultipleElementsFromSelector(t){const e=Qf(t);return e?Ne.find(e):[]}},mc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),to(this))return;const i=Ne.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},fL="alert",x5=".bs.alert",hL=`close${x5}`,pL=`closed${x5}`,mL="fade",gL="show";class gc extends $n{static get NAME(){return fL}close(){if(de.trigger(this._element,hL).defaultPrevented)return;this._element.classList.remove(gL);const n=this._element.classList.contains(mL);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,pL),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=gc.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)}})}}mc(gc,"close"),vn(gc);const yL="button",vL=".bs.button",bL=".data-api",CL="active",O5='[data-bs-toggle="button"]',EL=`click${vL}${bL}`;class yc extends $n{static get NAME(){return yL}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CL))}static jQueryInterface(e){return this.each(function(){const n=yc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,EL,O5,t=>{t.preventDefault();const e=t.target.closest(O5);yc.getOrCreateInstance(e).toggle()}),vn(yc);const SL="swipe",Li=".bs.swipe",_L=`touchstart${Li}`,wL=`touchmove${Li}`,kL=`touchend${Li}`,AL=`pointerdown${Li}`,TL=`pointerup${Li}`,IL="touch",xL="pen",OL="pointer-event",NL=40,ML={endCallback:null,leftCallback:null,rightCallback:null},LL={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class vc extends ra{constructor(e,n){super(),this._element=e,!(!e||!vc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ML}static get DefaultType(){return LL}static get NAME(){return SL}dispose(){de.off(this._element,Li)}_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(),en(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<=NL)return;const n=e/this._deltaX;this._deltaX=0,n&&en(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,AL,e=>this._start(e)),de.on(this._element,TL,e=>this._end(e)),this._element.classList.add(OL)):(de.on(this._element,_L,e=>this._start(e)),de.on(this._element,wL,e=>this._move(e)),de.on(this._element,kL,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===xL||e.pointerType===IL)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const DL="carousel",no=".bs.carousel",N5=".data-api",PL="ArrowLeft",BL="ArrowRight",$L=500,oa="next",Di="prev",Pi="left",bc="right",RL=`slide${no}`,Zf=`slid${no}`,VL=`keydown${no}`,FL=`mouseenter${no}`,jL=`mouseleave${no}`,zL=`dragstart${no}`,UL=`load${no}${N5}`,HL=`click${no}${N5}`,M5="carousel",Cc="active",WL="slide",KL="carousel-item-end",YL="carousel-item-start",GL="carousel-item-next",QL="carousel-item-prev",L5=".active",D5=".carousel-item",ZL=L5+D5,JL=".carousel-item img",XL=".carousel-indicators",qL="[data-bs-slide], [data-bs-slide-to]",eD='[data-bs-ride="carousel"]',tD={[PL]:bc,[BL]:Pi},nD={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},rD={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ia extends $n{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ne.findOne(XL,this._element),this._addEventListeners(),this._config.ride===M5&&this.cycle()}static get Default(){return nD}static get DefaultType(){return rD}static get NAME(){return DL}next(){this._slide(oa)}nextWhenVisible(){!document.hidden&&Mi(this._element)&&this.next()}prev(){this._slide(Di)}pause(){this._isSliding&&g5(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){de.one(this._element,Zf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Zf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?oa:Di;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&&de.on(this._element,VL,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,FL,()=>this.pause()),de.on(this._element,jL,()=>this._maybeEnableCycle())),this._config.touch&&vc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ne.find(JL,this._element))de.on(r,zL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Pi)),rightCallback:()=>this._slide(this._directionToOrder(bc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$L+this._config.interval))}};this._swipeHelper=new vc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=tD[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=Ne.findOne(L5,this._indicatorsElement);n.classList.remove(Cc),n.removeAttribute("aria-current");const r=Ne.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Cc),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===oa,i=n||Hf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(RL).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?YL:KL,f=o?GL:QL;i.classList.add(f),na(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Cc),r.classList.remove(Cc,f,u),this._isSliding=!1,c(Zf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(WL)}_getActive(){return Ne.findOne(ZL,this._element)}_getItems(){return Ne.find(D5,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return yn()?e===Pi?Di:oa:e===Pi?oa:Di}_orderToDirection(e){return yn()?e===Di?Pi:bc:e===Di?bc:Pi}static jQueryInterface(e){return this.each(function(){const n=ia.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]()}})}}de.on(document,HL,qL,function(t){const e=Ne.getElementFromSelector(this);if(!e||!e.classList.contains(M5))return;t.preventDefault();const n=ia.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(br.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,UL,()=>{const t=Ne.find(eD);for(const e of t)ia.getOrCreateInstance(e)}),vn(ia);const oD="collapse",sa=".bs.collapse",iD=".data-api",sD=`show${sa}`,aD=`shown${sa}`,lD=`hide${sa}`,cD=`hidden${sa}`,dD=`click${sa}${iD}`,Jf="show",Bi="collapse",Ec="collapsing",uD="collapsed",fD=`:scope .${Bi} .${Bi}`,hD="collapse-horizontal",pD="width",mD="height",gD=".collapse.show, .collapse.collapsing",Xf='[data-bs-toggle="collapse"]',yD={parent:null,toggle:!0},vD={parent:"(null|element)",toggle:"boolean"};class aa extends $n{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ne.find(Xf);for(const o of r){const i=Ne.getSelectorFromElement(o),s=Ne.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 yD}static get DefaultType(){return vD}static get NAME(){return oD}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(gD).filter(c=>c!==this._element).map(c=>aa.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,sD).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(Bi),this._element.classList.add(Ec),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi,Jf),this._element.style[r]="",de.trigger(this._element,aD)},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()||de.trigger(this._element,lD).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,na(this._element),this._element.classList.add(Ec),this._element.classList.remove(Bi,Jf);for(const o of this._triggerArray){const i=Ne.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi),de.trigger(this._element,cD)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Jf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=eo(e.parent),e}_getDimension(){return this._element.classList.contains(hD)?pD:mD}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Xf);for(const n of e){const r=Ne.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ne.find(fD,this._config.parent);return Ne.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(uD,!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=aa.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,dD,Xf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Ne.getMultipleElementsFromSelector(this))aa.getOrCreateInstance(e,{toggle:!1}).toggle()}),vn(aa);const P5="dropdown",Bo=".bs.dropdown",qf=".data-api",bD="Escape",B5="Tab",CD="ArrowUp",$5="ArrowDown",ED=2,SD=`hide${Bo}`,_D=`hidden${Bo}`,wD=`show${Bo}`,kD=`shown${Bo}`,R5=`click${Bo}${qf}`,V5=`keydown${Bo}${qf}`,AD=`keyup${Bo}${qf}`,$i="show",TD="dropup",ID="dropend",xD="dropstart",OD="dropup-center",ND="dropdown-center",$o='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',MD=`${$o}.${$i}`,Sc=".dropdown-menu",LD=".navbar",DD=".navbar-nav",PD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",BD=yn()?"top-end":"top-start",$D=yn()?"top-start":"top-end",RD=yn()?"bottom-end":"bottom-start",VD=yn()?"bottom-start":"bottom-end",FD=yn()?"left-start":"right-start",jD=yn()?"right-start":"left-start",zD="top",UD="bottom",HD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},WD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xn extends $n{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ne.next(this._element,Sc)[0]||Ne.prev(this._element,Sc)[0]||Ne.findOne(Sc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return HD}static get DefaultType(){return WD}static get NAME(){return P5}toggle(){return this._isShown()?this.hide():this.show()}show(){if(to(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,wD,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(DD))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",pc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),de.trigger(this._element,kD,e)}}hide(){if(to(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(!de.trigger(this._element,SD,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",pc);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),br.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,_D,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${P5.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:vr(this._config.reference)?e=eo(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=xl(e,this._menu,n)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains(ID))return FD;if(e.classList.contains(xD))return jD;if(e.classList.contains(OD))return zD;if(e.classList.contains(ND))return UD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(TD)?n?$D:BD:n?VD:RD}_detectNavbar(){return this._element.closest(LD)!==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")&&(br.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...en(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Ne.find(PD,this._menu).filter(o=>Mi(o));r.length&&Hf(r,n,e===$5,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Xn.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===ED||e.type==="keyup"&&e.key!==B5)return;const n=Ne.find(MD);for(const r of n){const o=Xn.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===B5||/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===bD,o=[CD,$5].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches($o)?this:Ne.prev(this,$o)[0]||Ne.next(this,$o)[0]||Ne.findOne($o,e.delegateTarget.parentNode),s=Xn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,V5,$o,Xn.dataApiKeydownHandler),de.on(document,V5,Sc,Xn.dataApiKeydownHandler),de.on(document,R5,Xn.clearMenus),de.on(document,AD,Xn.clearMenus),de.on(document,R5,$o,function(t){t.preventDefault(),Xn.getOrCreateInstance(this).toggle()}),vn(Xn);const F5="backdrop",KD="fade",j5="show",z5=`mousedown.bs.${F5}`,YD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},GD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class U5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return YD}static get DefaultType(){return GD}static get NAME(){return F5}show(e){if(!this._config.isVisible){en(e);return}this._append();const n=this._getElement();this._config.isAnimated&&na(n),n.classList.add(j5),this._emulateAnimation(()=>{en(e)})}hide(e){if(!this._config.isVisible){en(e);return}this._getElement().classList.remove(j5),this._emulateAnimation(()=>{this.dispose(),en(e)})}dispose(){this._isAppended&&(de.off(this._element,z5),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(KD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=eo(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,z5,()=>{en(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){b5(e,this._getElement(),this._config.isAnimated)}}const QD="focustrap",_c=".bs.focustrap",ZD=`focusin${_c}`,JD=`keydown.tab${_c}`,XD="Tab",qD="forward",H5="backward",eP={autofocus:!0,trapElement:null},tP={autofocus:"boolean",trapElement:"element"};class W5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return eP}static get DefaultType(){return tP}static get NAME(){return QD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,_c),de.on(document,ZD,e=>this._handleFocusin(e)),de.on(document,JD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,_c))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ne.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===H5?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===XD&&(this._lastTabNavDirection=e.shiftKey?H5:qD)}}const K5=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Y5=".sticky-top",wc="padding-right",G5="margin-right";class eh{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,wc,n=>n+e),this._setElementAttributes(K5,wc,n=>n+e),this._setElementAttributes(Y5,G5,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,wc),this._resetElementAttributes(K5,wc),this._resetElementAttributes(Y5,G5)}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&&br.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=br.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}br.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(vr(e)){n(e);return}for(const r of Ne.find(e,this._element))n(r)}}const nP="modal",bn=".bs.modal",rP=".data-api",oP="Escape",iP=`hide${bn}`,sP=`hidePrevented${bn}`,Q5=`hidden${bn}`,Z5=`show${bn}`,aP=`shown${bn}`,lP=`resize${bn}`,cP=`click.dismiss${bn}`,dP=`mousedown.dismiss${bn}`,uP=`keydown.dismiss${bn}`,fP=`click${bn}${rP}`,J5="modal-open",hP="fade",X5="show",th="modal-static",pP=".modal.show",mP=".modal-dialog",gP=".modal-body",yP='[data-bs-toggle="modal"]',vP={backdrop:!0,focus:!0,keyboard:!0},bP={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ro extends $n{constructor(e,n){super(e,n),this._dialog=Ne.findOne(mP,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new eh,this._addEventListeners()}static get Default(){return vP}static get DefaultType(){return bP}static get NAME(){return nP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Z5,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(J5),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,iP).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(X5),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,bn),de.off(this._dialog,bn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new U5({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new W5({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=Ne.findOne(gP,this._dialog);n&&(n.scrollTop=0),na(this._element),this._element.classList.add(X5);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,aP,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,uP,e=>{if(e.key===oP){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,lP,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,dP,e=>{de.one(this._element,cP,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(J5),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Q5)})}_isAnimated(){return this._element.classList.contains(hP)}_triggerBackdropTransition(){if(de.trigger(this._element,sP).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(th)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(th),this._queueCallback(()=>{this._element.classList.remove(th),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=yn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=yn()?"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=ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,fP,yP,function(t){const e=Ne.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Z5,o=>{o.defaultPrevented||de.one(e,Q5,()=>{Mi(this)&&this.focus()})});const n=Ne.findOne(pP);n&&ro.getInstance(n).hide(),ro.getOrCreateInstance(e).toggle(this)}),mc(ro),vn(ro);const CP="offcanvas",Cr=".bs.offcanvas",q5=".data-api",EP=`load${Cr}${q5}`,SP="Escape",ev="show",tv="showing",nv="hiding",_P="offcanvas-backdrop",rv=".offcanvas.show",wP=`show${Cr}`,kP=`shown${Cr}`,AP=`hide${Cr}`,ov=`hidePrevented${Cr}`,iv=`hidden${Cr}`,TP=`resize${Cr}`,IP=`click${Cr}${q5}`,xP=`keydown.dismiss${Cr}`,OP='[data-bs-toggle="offcanvas"]',NP={backdrop:!0,keyboard:!0,scroll:!1},MP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class oo extends $n{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return NP}static get DefaultType(){return MP}static get NAME(){return CP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,wP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new eh().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(tv);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ev),this._element.classList.remove(tv),de.trigger(this._element,kP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,AP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nv),this._backdrop.hide();const n=()=>{this._element.classList.remove(ev,nv),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new eh().reset(),de.trigger(this._element,iv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,ov);return}this.hide()},n=!!this._config.backdrop;return new U5({className:_P,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new W5({trapElement:this._element})}_addEventListeners(){de.on(this._element,xP,e=>{if(e.key===SP){if(this._config.keyboard){this.hide();return}de.trigger(this._element,ov)}})}static jQueryInterface(e){return this.each(function(){const n=oo.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)}})}}de.on(document,IP,OP,function(t){const e=Ne.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),to(this))return;de.one(e,iv,()=>{Mi(this)&&this.focus()});const n=Ne.findOne(rv);n&&n!==e&&oo.getInstance(n).hide(),oo.getOrCreateInstance(e).toggle(this)}),de.on(window,EP,()=>{for(const t of Ne.find(rv))oo.getOrCreateInstance(t).show()}),de.on(window,TP,()=>{for(const t of Ne.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&oo.getOrCreateInstance(t).hide()}),mc(oo),vn(oo);const sv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},LP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),DP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?LP.has(n)?!!DP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function BP(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),d=[].concat(e["*"]||[],e[c]||[]);for(const u of l)PP(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const $P="TemplateFactory",RP={allowList:sv,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},VP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},FP={entry:"(string|element|function|null)",selector:"(string|element)"};class jP extends ra{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return RP}static get DefaultType(){return VP}static get NAME(){return $P}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},FP)}_setContent(e,n,r){const o=Ne.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(vr(n)){this._putElementInTemplate(eo(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?BP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return en(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const zP="tooltip",UP=new Set(["sanitize","allowList","sanitizeFn"]),nh="fade",HP="modal",kc="show",WP=".tooltip-inner",av=`.${HP}`,lv="hide.bs.modal",la="hover",rh="focus",KP="click",YP="manual",GP="hide",QP="hidden",ZP="show",JP="shown",XP="inserted",qP="click",eB="focusin",tB="focusout",nB="mouseenter",rB="mouseleave",oB={AUTO:"auto",TOP:"top",RIGHT:yn()?"left":"right",BOTTOM:"bottom",LEFT:yn()?"right":"left"},iB={allowList:sv,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"},sB={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 $n{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 iB}static get DefaultType(){return sB}static get NAME(){return zP}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),de.off(this._element.closest(av),lv,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=de.trigger(this._element,this.constructor.eventName(ZP)),r=(y5(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),de.trigger(this._element,this.constructor.eventName(XP))),this._popper=this._createPopper(o),o.classList.add(kc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",pc);const s=()=>{de.trigger(this._element,this.constructor.eventName(JP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(GP)).defaultPrevented)return;if(this._getTipElement().classList.remove(kc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",pc);this._activeTrigger[KP]=!1,this._activeTrigger[rh]=!1,this._activeTrigger[la]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(QP)))};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(nh,kc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=tL(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(nh),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new jP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[WP]: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(nh)}_isShown(){return this.tip&&this.tip.classList.contains(kc)}_createPopper(e){const n=en(this._config.placement,[this,e,this._element]),r=oB[n.toUpperCase()];return xl(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 en(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,...en(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(qP),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==YP){const r=n===la?this.constructor.eventName(nB):this.constructor.eventName(eB),o=n===la?this.constructor.eventName(rB):this.constructor.eventName(tB);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?rh:la]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?rh:la]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(av),lv,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=br.getDataAttributes(this._element);for(const r of Object.keys(n))UP.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:eo(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]()}})}}vn(qn);const aB="popover",lB=".popover-header",cB=".popover-body",dB={...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"},uB={...qn.DefaultType,content:"(null|string|element|function)"};class Ro extends qn{static get Default(){return dB}static get DefaultType(){return uB}static get NAME(){return aB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lB]:this._getTitle(),[cB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}vn(Ro);const fB="scrollspy",oh=".bs.scrollspy",hB=".data-api",pB=`activate${oh}`,cv=`click${oh}`,mB=`load${oh}${hB}`,gB="dropdown-item",Ri="active",yB='[data-bs-spy="scroll"]',ih="[href]",vB=".nav, .list-group",dv=".nav-link",bB=`${dv}, .nav-item > ${dv}, .list-group-item`,CB=".dropdown",EB=".dropdown-toggle",SB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},_B={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ac extends $n{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 SB}static get DefaultType(){return _B}static get NAME(){return fB}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=eo(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&&(de.off(this._config.target,cv),de.on(this._config.target,cv,ih,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=Ne.find(ih,this._config.target);for(const n of e){if(!n.hash||to(n))continue;const r=Ne.findOne(decodeURI(n.hash),this._element);Mi(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(Ri),this._activateParents(e),de.trigger(this._element,pB,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(gB)){Ne.findOne(EB,e.closest(CB)).classList.add(Ri);return}for(const n of Ne.parents(e,vB))for(const r of Ne.prev(n,bB))r.classList.add(Ri)}_clearActiveClass(e){e.classList.remove(Ri);const n=Ne.find(`${ih}.${Ri}`,e);for(const r of n)r.classList.remove(Ri)}static jQueryInterface(e){return this.each(function(){const n=Ac.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]()}})}}de.on(window,mB,()=>{for(const t of Ne.find(yB))Ac.getOrCreateInstance(t)}),vn(Ac);const wB="tab",Vo=".bs.tab",kB=`hide${Vo}`,AB=`hidden${Vo}`,TB=`show${Vo}`,IB=`shown${Vo}`,xB=`click${Vo}`,OB=`keydown${Vo}`,NB=`load${Vo}`,MB="ArrowLeft",uv="ArrowRight",LB="ArrowUp",fv="ArrowDown",Fo="active",hv="fade",sh="show",DB="dropdown",PB=".dropdown-toggle",BB=".dropdown-menu",ah=":not(.dropdown-toggle)",$B='.list-group, .nav, [role="tablist"]',RB=".nav-item, .list-group-item",VB=`.nav-link${ah}, .list-group-item${ah}, [role="tab"]${ah}`,pv='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',lh=`${VB}, ${pv}`,FB=`.${Fo}[data-bs-toggle="tab"], .${Fo}[data-bs-toggle="pill"], .${Fo}[data-bs-toggle="list"]`;class Vi extends $n{constructor(e){super(e),this._parent=this._element.closest($B),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,OB,n=>this._keydown(n)))}static get NAME(){return wB}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,kB,{relatedTarget:e}):null;de.trigger(e,TB,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Fo),this._activate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(sh);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,IB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_deactivate(e,n){if(!e)return;e.classList.remove(Fo),e.blur(),this._deactivate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(sh);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,AB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_keydown(e){if(![MB,uv,LB,fv].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[uv,fv].includes(e.key),r=Hf(this._getChildren().filter(o=>!to(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Vi.getOrCreateInstance(r).show())}_getChildren(){return Ne.find(lh,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=Ne.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(DB))return;const o=(i,s)=>{const c=Ne.findOne(i,r);c&&c.classList.toggle(s,n)};o(PB,Fo),o(BB,sh),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Fo)}_getInnerElement(e){return e.matches(lh)?e:Ne.findOne(lh,e)}_getOuterElement(e){return e.closest(RB)||e}static jQueryInterface(e){return this.each(function(){const n=Vi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,xB,pv,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!to(this)&&Vi.getOrCreateInstance(this).show()}),de.on(window,NB,()=>{for(const t of Ne.find(FB))Vi.getOrCreateInstance(t)}),vn(Vi);const jB="toast",io=".bs.toast",zB=`mouseover${io}`,UB=`mouseout${io}`,HB=`focusin${io}`,WB=`focusout${io}`,KB=`hide${io}`,YB=`hidden${io}`,GB=`show${io}`,QB=`shown${io}`,ZB="fade",mv="hide",Tc="show",Ic="showing",JB={animation:"boolean",autohide:"boolean",delay:"number"},XB={animation:!0,autohide:!0,delay:5e3};class Fi extends $n{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return XB}static get DefaultType(){return JB}static get NAME(){return jB}show(){if(de.trigger(this._element,GB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ZB);const n=()=>{this._element.classList.remove(Ic),de.trigger(this._element,QB),this._maybeScheduleHide()};this._element.classList.remove(mv),na(this._element),this._element.classList.add(Tc,Ic),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,KB).defaultPrevented)return;const n=()=>{this._element.classList.add(mv),this._element.classList.remove(Ic,Tc),de.trigger(this._element,YB)};this._element.classList.add(Ic),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tc),super.dispose()}isShown(){return this._element.classList.contains(Tc)}_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(){de.on(this._element,zB,e=>this._onInteraction(e,!0)),de.on(this._element,UB,e=>this._onInteraction(e,!1)),de.on(this._element,HB,e=>this._onInteraction(e,!0)),de.on(this._element,WB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Fi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}mc(Fi),vn(Fi);function gv(t,e){return e.value||t.getAttribute("title")||""}const jo={mounted:(t,e)=>{const n=gv(t,e);n&&t.setAttribute("title",n),new qn(t)},updated:(t,e)=>{const n=qn.getInstance(t);n&&n.dispose();const r=gv(t,e);r&&t.setAttribute("title",r),new qn(t)},unmounted:t=>{const e=qn.getInstance(t);e&&e.dispose()}},qB={key:0,class:"pills-list__wrapper"},e$={class:"pills-list__ul"},t$={class:"bd-markdown-editor__menu-bottom"},n$={key:0,class:"vr"},yv=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:Ff.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=co(n,"modelValue",e),i=[jN,zN,UN,hM.configure({placeholder:n.placeholder}),OM,fM.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===Ff.FULL&&i.push(vM,_M,wM,kM,TM,xM);const s=FN({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")),d=a.computed(()=>g("italic")),u=a.computed(()=>g("underline")),f=a.computed(()=>g("bulletList")),h=a.computed(()=>g("orderedList")),p=a.computed(()=>g("link")),m=a.computed(()=>n.variant===Ff.FULL),g=P=>s.value&&s.value.isActive(P)?"active":null,y=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!1):null),C=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},b=P=>{e("action",{name:"image-attachment",obj:P})},v=a.computed(()=>{if(!s.value)return!1;const{from:P,to:j}=s.value.state.selection;return P!==j}),k=a.computed(()=>v.value?"Voeg een link toe":"Selecteer eerst tekst"),_=a.ref(!1),O=a.ref(""),L=a.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",_.value=!0},z=P=>{if(_.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=()=>{_.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(VN),{editor:a.unref(s)},null,8,["editor"]),P.pills?(a.openBlock(),a.createElementBlock("div",qB,[a.createElementVNode("ul",e$,[(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(ja,a.normalizeProps(a.guardReactiveProps(K)),null,16)]))),128))])])):a.createCommentVNode("",!0),a.renderSlot(P.$slots,"default"),y.value?(a.openBlock(),a.createBlock(ea,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):a.createCommentVNode("",!0),C.value?(a.openBlock(),a.createBlock(ta,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:b},null,8,["files"])):a.createCommentVNode("",!0),a.createElementVNode("div",t$,[a.createVNode(ze,{variant:"light",type:"button",onClick:r},{default:a.withCtx(()=>[a.createVNode(a.unref(_r))]),_:1}),m.value?(a.openBlock(),a.createElementBlock("div",n$)):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{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(Dc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:2,variant:"light",type:"button",class:a.normalizeClass(d.value),onClick:j[1]||(j[1]=K=>a.unref(s).chain().focus().toggleItalic().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Kc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:3,variant:"light",type:"button",class:a.normalizeClass(u.value),onClick:j[2]||(j[2]=K=>a.unref(s).chain().focus().toggleUnderline().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(qc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{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(Pc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{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(Gc))]),_:1},8,["class"])):a.createCommentVNode("",!0),a.withDirectives((a.openBlock(),a.createElementBlock("span",null,[m.value?(a.openBlock(),a.createBlock(ze,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:a.normalizeClass(p.value),onClick:N,disabled:!v.value},{default:a.withCtx(()=>[a.createVNode(a.unref(ma))]),_:1},8,["class","disabled"])):a.createCommentVNode("",!0)])),[[a.unref(jo),k.value]])]),_.value?(a.openBlock(),a.createBlock(PM,{key:3,previousUrl:O.value,onSubmit:z,onCancel:V},null,8,["previousUrl"])):a.createCommentVNode("",!0)],2),a.createVNode(Va,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),r$={class:"header"},o$=a.createElementVNode("div",null,"Menu",-1),i$={class:"icon-close-wrapper"},s$={class:"navbar"},a$={class:"nav navbar-nav w-100"},l$={class:"nav-item"},c$={class:"nav-item"},ch=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",r$,[o$,a.createElementVNode("div",i$,[a.createVNode(ha,{onClick:o})])]),a.createElementVNode("nav",s$,[a.createElementVNode("ul",a$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,l=>(a.openBlock(),a.createElementBlock("li",l$,[a.createVNode(ao,a.mergeProps({class:"nav-link"},l,{onClick:o}),null,16)]))),256)),a.renderSlot(s.$slots,"special-options"),a.createElementVNode("li",c$,[a.createVNode(ao,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),d$={class:"bd-user"},u$={class:"bd-user__information"},f$={class:"text-break"},h$={class:"overflow-x-hidden"},vv=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",d$,[e.hideImage?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Ki,a.mergeProps({key:0},e.img,{size:"sm"}),null,16)),a.createElementVNode("div",u$,[a.createElementVNode("header",null,[a.createElementVNode("h5",f$,a.toDisplayString(e.name),1),a.renderSlot(r.$slots,"header-extra")]),a.createElementVNode("span",h$,a.toDisplayString(n.value),1)])]))}}),p$={class:"bd-chat-cloud-card"},m$={class:"bd-chat-cloud-card__header"},g$={class:"bd-chat-cloud-card__body"},y$=["innerHTML"],v$={class:"bd-chat-cloud-card__footer"},b$={key:0,class:"pills-list__wrapper"},C$={class:"pills-list__ul"},bv=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":Be),o=a.computed(()=>Po(n.apiUrl,n.files,!1)),i=a.computed(()=>Po(n.apiUrl,n.files,!0)),s=()=>{e("action","copy-message")},c=l=>{e("show-attachment",l)};return(l,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-chat-cloud",r.value])},[a.createVNode(Ki,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),a.createElementVNode("div",p$,[a.createElementVNode("div",m$,[a.renderSlot(l.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(l.headerTitle),1)]),a.createVNode(ze,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:a.withCtx(()=>[a.createTextVNode(" kopieer ")]),_:1})]),a.createElementVNode("div",g$,[a.renderSlot(l.$slots,"body",{},()=>[a.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,y$)])]),a.createElementVNode("div",v$,[a.renderSlot(l.$slots,"footer",{},()=>[l.pills?(a.openBlock(),a.createElementBlock("div",b$,[a.createElementVNode("ul",C$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.pills,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:f,class:"pills-list__li"},[a.createVNode(ja,a.normalizeProps(a.guardReactiveProps(u)),null,16)]))),128))])])):a.createCommentVNode("",!0),o.value&&o.value.length>0?(a.openBlock(),a.createBlock(ea,{key:1,files:o.value},null,8,["files"])):a.createCommentVNode("",!0),i.value&&i.value.length>0?(a.openBlock(),a.createBlock(ta,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):a.createCommentVNode("",!0)])])])],2))}}),E$=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]=d=>{o(),i()})},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.active&&!r.value?(a.openBlock(),a.createBlock(a.unref(Qc),{key:0})):n.active&&r.value?(a.openBlock(),a.createBlock(a.unref(Zc),{key:1})):(a.openBlock(),a.createBlock(a.unref(Jc),{key:2}))],2))}}),S$={class:"bd-table"},_$={key:0,class:"table"},w$={key:1},k$=["onClick"],A$={key:0},T$={key:1,class:"empty-text"},Cv=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 y=m.toString(),C=g.toString();return y.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})},d=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return a.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(a.openBlock(),a.createElementBlock("div",S$,[r.items&&r.items.length>0?(a.openBlock(),a.createElementBlock("table",_$,[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(E$,{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=>d(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(a.openBlock(),a.createElementBlock("th",w$,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",A$,[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,k$))),256))])])):(a.openBlock(),a.createElementBlock("p",T$,a.toDisplayString(r.emptyText),1))]))}}),I$=["id"],x$={key:0,class:"toast-body__title"},O$={class:"actions"},N$=["textContent"],M$=["textContent"],L$={class:"icon-wrapper"},D$=["textContent"],P$=["textContent"],Ev=3e4,Sv=5e3,_v=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":Be,o.value?"is-handled--success":Be,n.canceled?"is-handled--canceled":Be].join(" "):Be),d=a.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),u=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 v={autohide:!0,delay:Ev+Sv};s=Fi.getOrCreateInstance(b,v),s.show(),i=window.setTimeout(h,Ev)}};a.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),y()},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),y()},y=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),Sv)},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",x$,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",L$,[a.createVNode(ua)]),a.createElementVNode("div",null,[a.createElementVNode("p",{textContent:a.toDisplayString(d.value),class:"title"},null,8,D$),a.createElementVNode("p",{textContent:a.toDisplayString(u.value)},null,8,P$)])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Wd,{value:E.contactInfoReceiver},null,8,["value"]),a.createElementVNode("div",O$,[a.createVNode(ze,{variant:"danger",class:"text-center",onClick:p},{default:a.withCtx(()=>[a.createVNode(Bc),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.rejectVideoCall)},null,8,N$)]),_:1}),a.createVNode(ze,{variant:"success",class:"text-center",onClick:g},{default:a.withCtx(()=>[a.createVNode(ua),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.acceptVideoCall)},null,8,M$)]),_:1})])],64))],2)],8,I$))}}),dh=a.defineComponent({__name:"BDDropdown",props:{size:{default:Mt.MD},variant:{default:ya.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}=Wo(),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(),d=()=>{c.value.classList.remove("show"),l.value.classList.remove("show"),l.value.removeAttribute("aria-expanded")};return(u,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:d}),[a.renderSlot(u.$slots,"default")],16)]))}}),B$={class:"row bd-header"},$$={class:"col logo-mix"},R$=["src"],V$=a.createElementVNode("div",null,"Menu",-1),F$={key:1,class:"col header-options"},j$={class:"col bd-btn-settings"},z$={key:2},uh=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 u=[];return n.isEmbedded||(n.headerOptions&&(u=u.concat(n.headerOptions)),n.dropdownOptions&&(u=u.concat(n.dropdownOptions))),u}),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,d=()=>i.value=!1;return(u,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("nav",B$,[a.createElementVNode("div",$$,[a.createVNode(Nc,{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,R$)):a.createCommentVNode("",!0)]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:l},[V$,a.createVNode(Yc)])),o.value?(a.openBlock(),a.createElementBlock("div",F$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.headerOptions,h=>(a.openBlock(),a.createBlock(ze,{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",j$,[n.isEmbedded?a.createCommentVNode("",!0):a.renderSlot(u.$slots,"profile-side",{key:0}),n.profileImageSrc?(a.openBlock(),a.createBlock(Ki,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):a.createCommentVNode("",!0),n.isEmbedded?(a.openBlock(),a.createElementBlock("span",z$,a.toDisplayString(n.dropdownMenuTitle),1)):a.createCommentVNode("",!0),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(dh,{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(za,a.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(a.openBlock(),a.createBlock(za,{key:0,text:"Uitloggen",onClick:c})):a.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ch,{key:0,active:i.value,options:r.value,onHide:d,onSignout:c},{"special-options":a.withCtx(()=>[a.renderSlot(u.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),U$="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",wv=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 fh(){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 H$=(t,e,n)=>{const{OnWindowLoaded:r}=fh(),o="lkj298fhGGJihge",i=a.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await wv(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await wv(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function kv(t){const{OnWindowLoaded:e}=fh();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=Ro.getInstance(t.value);c&&c.hide()})};a.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;Ro.getInstance(t.value)||new Ro(t.value)};e(o),a.watch(t,o),a.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=Ro.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const W$=["data-bs-title","data-bs-content"],K$=["title"],Y$={key:0,class:"number-circle",textContent:1},G$=a.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var u;return(u=e.getNotification)==null?void 0:u.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=H$("notificationsRead",e.userId,n),i=a.ref();kv(i);const s=a.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),y=new Date;return y>=m&&y<=g}),c=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.tooltip}),l=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.title}),d=a.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
|
|
1357
1357
|
<p>${f}</p>
|
|
1358
1358
|
<a href='${h}' target='_blank'>${p}</a>
|
|
1359
|
-
`});return(u,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":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:U$,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,K$),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",Y$)):a.createCommentVNode("",!0)],8,W$)):a.createCommentVNode("",!0)}}),Q$={class:"profile-side"},Z$=["href"],J$={class:"nav-item"},X$=["textContent"],Av=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Pt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(uh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",Q$,[a.createVNode(G$,{"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(da),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,Z$)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",J$,[a.createVNode(ao,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(da)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,X$)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),q$={class:"modal-dialog"},eR={class:"modal-content"},tR={class:"modal-header"},nR={class:"modal-title"},rR=["src"],oR=a.createElementVNode("span",null,"Sluiten",-1),iR={class:"modal-body"},sR={key:0,class:"modal-footer"},aR=["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",q$,[a.createElementVNode("div",eR,[a.createElementVNode("div",tR,[a.createElementVNode("h2",nR,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,rR)):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},[oR,a.createVNode(a.unref(ha))]))]),a.createElementVNode("div",iR,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",sR,[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,aR)),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=ro.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=ro.getInstance(o);i&&i.hide()}}}};function ca(t=void 0){const e=c=>i("Succesvol",c,ti.SUCCESS),n=c=>i("Waarschuwing",c,ti.WARNING),r=c=>i("Informatie",c,ti.INFO),o=c=>i("Mislukt",c,ti.DANGER);function i(c,l,d){const u=`toast-${vp()}`,f={id:u,variant:d,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(Ud,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Fi.getOrCreateInstance(y,t).show(),s(y))}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 d=new MutationObserver(l),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:lR}=ca();function hh(t){const e=a.ref(null),n=(l,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?u=l.response.data.filter(h=>Fa(h.ErrorMessage)&&h.ErrorMessage!==Be):l.response.data.ErrorMessage?u=[l.response.data.ErrorMessage]:u=null,Fa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(l),s(e)},r=l=>{if(t==null)return;const u=new URL(l.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&lR(f)}},o=a.ref(null),i=a.ref(""),s=l=>{lk(l.value)?o.value=l.value.map(d=>Fa(d)?d:d.ErrorMessage):Fa(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const cR={key:0},dR={key:1},uR={class:"bd-form-field"},fR={class:"bd-form-field"},Tv=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}=ca(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:d,ResetServerErrors:u}=hh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Be;const p=a.ref(),m=a.ref(null),g=a.ref(),y=a.ref(),C=a.ref(null),E=a.computed(()=>y.value==null||y.value==""),b=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!y.value){C.value=!1;return}const N={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},_=()=>{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,y.value=void 0,C.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Be)),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:v,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(lo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",cR,[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(wr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",dR,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",uR,[a.createVNode(Lr,{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(ze,{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(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",fR,[g.value?(a.openBlock(),a.createBlock(Lr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":z[1]||(z[1]=V=>y.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"]))}}),Iv=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),d=a.ref(null),{showModal:u,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=()=>{d.value=setInterval(C,1e3),r(d.value)},y=()=>{d.value&&clearInterval(d.value)},C=()=>{s.value=Zt().diff(n(),"m"),c.value=Zt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},b=()=>{o(),y(),s.value=null,c.value=null,g()},v=()=>{y(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{l.value?v():b()},_=()=>{v()},O=()=>{l.value?v():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},xv=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}=Iv(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}`),d=a.computed(()=>e.hideCancelButton||n.value),u=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":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.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"]))}}),Ov={__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:()=>ak(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(d,u)=>(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"]))}},Nv={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Pt(),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(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(ze,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(wr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=d=>o.value=d),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"]))}},Mv=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}=Pt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),d=a.computed(()=>o("attachmentUploadModal.submitButton")),u=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(y,C)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createVNode(Qd,{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 hR=Object.defineProperty,pR=Object.defineProperties,mR=Object.getOwnPropertyDescriptors,Lv=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,Dv=(t,e,n)=>e in t?hR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ji=(t,e)=>{for(var n in e||(e={}))gR.call(e,n)&&Dv(t,n,e[n]);if(Lv)for(var n of Lv(e))yR.call(e,n)&&Dv(t,n,e[n]);return t},Pv=(t,e)=>pR(t,mR(e));const vR={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}}}},bR={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}}},CR={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}}},ph=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ER={},SR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_R=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),wR=[_R];function kR(t,e){return a.openBlock(),a.createElementBlock("svg",SR,wR)}const AR=ph(ER,[["render",kR]]),TR={},IR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},xR=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),OR=[xR];function NR(t,e){return a.openBlock(),a.createElementBlock("svg",IR,OR)}const MR=ph(TR,[["render",NR]]),Bv={Deselect:AR,OpenIndicator:MR},LR={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 DR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let PR=0;function BR(){return++PR}const $R={components:ji({},Bv),directives:{appendToBody:LR},mixins:[vR,bR,CR],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
|
+
`});return(u,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":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:U$,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,K$),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",Y$)):a.createCommentVNode("",!0)],8,W$)):a.createCommentVNode("",!0)}}),Q$={class:"profile-side"},Z$=["href"],J$={class:"nav-item"},X$=["textContent"],Av=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Pt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(uh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",Q$,[a.createVNode(G$,{"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(da),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,Z$)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",J$,[a.createVNode(ao,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(da)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,X$)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),q$={class:"modal-dialog"},eR={class:"modal-content"},tR={class:"modal-header"},nR={class:"modal-title"},rR=["src"],oR=a.createElementVNode("span",null,"Sluiten",-1),iR={class:"modal-body"},sR={key:0,class:"modal-footer"},aR=["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",q$,[a.createElementVNode("div",eR,[a.createElementVNode("div",tR,[a.createElementVNode("h2",nR,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,rR)):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},[oR,a.createVNode(a.unref(ha))]))]),a.createElementVNode("div",iR,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",sR,[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,aR)),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=ro.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=ro.getInstance(o);i&&i.hide()}}}};function ca(t=void 0){const e=c=>i("Succesvol",c,ti.SUCCESS),n=c=>i("Waarschuwing",c,ti.WARNING),r=c=>i("Informatie",c,ti.INFO),o=c=>i("Mislukt",c,ti.DANGER);function i(c,l,d){const u=`toast-${vp()}`,f={id:u,variant:d,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(Ud,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Fi.getOrCreateInstance(y,t).show(),s(y))}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 d=new MutationObserver(l),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:lR}=ca();function hh(t){const e=a.ref(null),n=(l,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?u=l.response.data.filter(h=>Fa(h.ErrorMessage)&&h.ErrorMessage!==Be):l.response.data.ErrorMessage?u=[l.response.data.ErrorMessage]:u=null,Fa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(l),s(e)},r=l=>{if(t==null)return;const u=new URL(l.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&lR(f)}},o=a.ref(null),i=a.ref(""),s=l=>{lk(l.value)?o.value=l.value.map(d=>Fa(d)?d:d.ErrorMessage):Fa(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const cR={key:0},dR={key:1},uR={class:"bd-form-field"},fR={class:"bd-form-field"},Tv=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}=ca(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:d,ResetServerErrors:u}=hh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Be;const p=a.ref(),m=a.ref(null),g=a.ref(),y=a.ref(),C=a.ref(null),E=a.computed(()=>y.value==null||y.value==""),b=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!y.value){C.value=!1;return}const N={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},_=()=>{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,y.value=void 0,C.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Be)),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:v,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(lo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",cR,[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(wr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",dR,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",uR,[a.createVNode(Lr,{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(ze,{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(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",fR,[g.value?(a.openBlock(),a.createBlock(Lr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":z[1]||(z[1]=V=>y.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"]))}}),Iv=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),d=a.ref(null),{showModal:u,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=()=>{d.value=setInterval(C,1e3),r(d.value)},y=()=>{d.value&&clearInterval(d.value)},C=()=>{s.value=Zt().diff(n(),"m"),c.value=Zt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},b=()=>{o(),y(),s.value=null,c.value=null,g()},v=()=>{y(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{l.value?v():b()},_=()=>{v()},O=()=>{l.value?v():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},xv=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}=Iv(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}`),d=a.computed(()=>e.hideCancelButton||n.value),u=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":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.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"]))}}),Ov={__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:()=>ak(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(d,u)=>(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"]))}},Nv={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Pt(),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(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(ze,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(wr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=d=>o.value=d),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"]))}},Mv=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}=Pt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),d=a.computed(()=>o("attachmentUploadModal.submitButton")),u=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,y)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createVNode(Qd,{modelValue:c.value,"onUpdate:modelValue":y[0]||(y[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 hR=Object.defineProperty,pR=Object.defineProperties,mR=Object.getOwnPropertyDescriptors,Lv=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,Dv=(t,e,n)=>e in t?hR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ji=(t,e)=>{for(var n in e||(e={}))gR.call(e,n)&&Dv(t,n,e[n]);if(Lv)for(var n of Lv(e))yR.call(e,n)&&Dv(t,n,e[n]);return t},Pv=(t,e)=>pR(t,mR(e));const vR={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}}}},bR={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}}},CR={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}}},ph=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ER={},SR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_R=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),wR=[_R];function kR(t,e){return a.openBlock(),a.createElementBlock("svg",SR,wR)}const AR=ph(ER,[["render",kR]]),TR={},IR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},xR=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),OR=[xR];function NR(t,e){return a.openBlock(),a.createElementBlock("svg",IR,OR)}const MR=ph(TR,[["render",NR]]),Bv={Deselect:AR,OpenIndicator:MR},LR={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 DR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let PR=0;function BR(){return++PR}const $R={components:ji({},Bv),directives:{appendToBody:LR},mixins:[vR,bR,CR],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)}.
|
|
1360
1360
|
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:DR(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.
|
|
1361
1361
|
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:()=>BR()}},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:ji({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:Pv(ji({},t),{deselect:this.deselect}),footer:Pv(ji({},t),{deselect:this.deselect})}},childComponents(){return ji(ji({},Bv),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)}}},RR=["dir"],VR=["id","aria-expanded","aria-owns"],FR={ref:"selectedOptions",class:"vs__selected-options"},jR=["disabled","title","aria-label","onClick"],zR={ref:"actions",class:"vs__actions"},UR=["disabled"],HR={class:"vs__spinner"},WR=["id"],KR=["id","aria-selected","onMouseover","onClick"],YR={key:0,class:"vs__no-options"},GR=a.createTextVNode(" Sorry, no matching options. "),QR=["id"];function ZR(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",FR,[(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:d=>o.deselectButtons[l]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,jR)):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",zR,[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,UR),[[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",HR,"Loading...",512),[[a.vShow,t.mutableLoading]])])],512)],40,VR),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:d=>n.selectable(c)?t.typeAheadPointer=l:null,onClick:a.withModifiers(d=>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,KR))),128)),i.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",YR,[a.renderSlot(t.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(i.scope.noOptions)),()=>[GR])])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(i.scope.listFooter)))],40,WR)),[[s]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,QR))]),_:3},8,["name"]),a.renderSlot(t.$slots,"footer",a.normalizeProps(a.guardReactiveProps(i.scope.footer)))],10,RR)}const JR=ph($R,[["render",ZR]]),Lz="",XR=t=>typeof t=="number",qR=12,eV=["textContent"],tV=["textContent"],nV={key:0,class:"content-library-card__body"},rV=["textContent"],oV={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}=Pt(),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,eV),n.subtitle?(a.openBlock(),a.createElementBlock("small",{key:0,textContent:a.toDisplayString(n.subtitle)},null,8,tV)):a.createCommentVNode("",!0)])]),n.showBody?(a.openBlock(),a.createElementBlock("div",nV,[a.renderSlot(c.$slots,"default",{},()=>[a.createElementVNode("p",{textContent:a.toDisplayString(n.description),class:"content-library-card__description"},null,8,rV)])])):a.createCommentVNode("",!0),n.showFooter?(a.openBlock(),a.createElementBlock("footer",oV,[a.renderSlot(c.$slots,"footer",{},()=>[a.createVNode(ze,{variant:"secondary",onClick:i},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCard.insert")),1)]),_:1}),a.createVNode(ze,{title:o.value,variant:"icon",onClick:s},{default:a.withCtx(()=>[a.createVNode(Uc)]),_:1},8,["title"])])])):a.createCommentVNode("",!0)],2))}}),iV=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))}}),sV={class:"content-library-card-image__titles"},aV=["textContent"],lV=["textContent"],cV=["src"],dV=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",sV,[a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,aV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.subtitle)},null,8,lV)]),a.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,cV)]),_:1},16))}}),uV=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))}}),$v=t=>t.replace(/<\/?[^>]+(>|$)/g,Be),Rv=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),fV=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),hV={class:"content-library-card-message-template__tag"},pV=["textContent"],mV=["textContent"],gV=["textContent"],yV=["id"],vV=["innerHTML"],bV={class:"collapsed-hide"},CV={class:"collapsed-show"},EV={key:2,class:"edit-btn-group"},SV={key:3,class:"attachment-occurence"},_V={class:"number-icon"},wV=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}=Pt(),o=a.ref(null),i=a.ref(!1),s=a.ref(!1),c=a.computed(()=>`collapse-preview-${n.item.itemId}`),l=a.computed(()=>a0(n.item.files)?null:n.item.files.length),d=a.computed(()=>n.variant==="insert"),u=a.computed(()=>n.variant==="edit"),f=a.computed(()=>n.variant==="shared"),h=a.computed(()=>s.value?Be:"content-library-card-not-collapsable"),p=a.computed(()=>n.item.text?fV(n.item.text):Be),m=a.computed(()=>Po(n.apiUrl,n.item.files,!1)),g=a.computed(()=>Po(n.apiUrl,n.item.files,!0)),y=()=>{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=k=>{e("show-attachment",k)},b=()=>{e("on-change",n.item.itemId)},v=()=>{e("delete",n.item.itemId)};return a.watch(()=>n.item,()=>{o.value&&a.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),a.onMounted(()=>{a.nextTick(()=>{y()})}),(k,_)=>(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",hV,[a.createElementVNode("span",{textContent:a.toDisplayString(t.item.category)},null,8,pV)]),a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,mV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.practitionerName)},null,8,gV)]),footer:a.withCtx(()=>[d.value?(a.openBlock(),a.createBlock(ze,{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(ze,{key:1,variant:"icon",title:a.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:a.withCtx(()=>[a.createVNode(Wc)]),_:1},8,["title"])),[[a.unref(jo)]]):a.createCommentVNode("",!0),u.value?(a.openBlock(),a.createElementBlock("div",EV,[a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:b},{default:a.withCtx(()=>[a.createVNode(zc)]),_:1},8,["title"]),a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:v},{default:a.withCtx(()=>[a.createVNode(Fc)]),_:1},8,["title"])])):a.createCommentVNode("",!0),l.value?(a.openBlock(),a.createElementBlock("div",SV,[a.createVNode(_r),a.createElementVNode("div",_V,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,vV),t.item.files?(a.openBlock(),a.createBlock(ea,{key:0,"no-download":!0,files:m.value},null,8,["files"])):a.createCommentVNode("",!0),t.item.files?(a.openBlock(),a.createBlock(ta,{key:1,"no-download":!0,files:g.value,onShow:E},null,8,["files"])):a.createCommentVNode("",!0)],8,yV),s.value?(a.openBlock(),a.createBlock(ze,{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",bV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),a.createElementVNode("span",CV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):a.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),Dz="",kV={class:"content-library-overview"},AV=Ce({__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}=Pt(),o={BDContentLibraryCardBasic:iV,BDContentLibraryCardImage:dV,BDContentLibraryCardTitle:uV,BDContentLibraryCardMessageTemplate:wV},i=a.computed(()=>a0(n.items)),s=a.computed(()=>Math.floor(qR/n.cols)),c=f=>{e("on-insert",f)},l=f=>{e("on-change",f)},d=f=>{e("delete",f)},u=f=>{e("show-attachment",f)};return(f,h)=>(a.openBlock(),a.createElementBlock("div",kV,[a.createVNode(wn,null,{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(Tt,{key:0,sm:12},{default:a.withCtx(()=>[a.createVNode(lo,{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:d,onShowAttachment:u}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-de8a1bfb"]]),TV={class:"content-library-template"},IV={class:"number-of-messages"},xV=["src"],OV=["src"],NV=["id"],MV={class:"collapse-button-container"},LV={class:"collapsed-show"},DV={class:"collapsed-hide"},mh=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}=Pt(),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(()=>Hd(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=a.computed(()=>n.provider&&Hd(n.provider.items)?n.provider.items:[]),l=a.computed(()=>n.provider&&Hd(n.provider.filters)),d=a.computed(()=>{let j=0;return n.provider&&XR(n.provider.totalNumber)&&(j=n.provider.totalNumber),j===1?`${j} ${r("contentLibraryTemplate.message")}`:`${j} ${r("contentLibraryTemplate.messages")}`}),u=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})),y=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,"-"),v=()=>{e("create")},k=j=>{e("on-insert",j)},_=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",TV,[a.createVNode(wn,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",IV,a.toDisplayString(d.value),1),j.showAddButton?(a.openBlock(),a.createBlock(ze,{key:0,class:"d-md-none",onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16),a.createVNode(Tt,a.mergeProps(y.value,{class:"content-library-header"}),{default:a.withCtx(()=>[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(Tt,a.mergeProps(C.value,{class:"search-block"}),{default:a.withCtx(()=>[a.createVNode(Lr,{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(ze,{key:0,onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),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(JR),{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(fa)],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,xV)):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,OV)):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(nd,{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(Ss,{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(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=ee=>o.value.selectedFilters=ee),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(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=ee=>o.value.selectedFilters=ee),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,NV),a.createElementVNode("div",MV,[a.createVNode(ze,{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(Mc,{class:"collapsed-show"}),a.createElementVNode("span",LV,a.toDisplayString(a.unref(r)("contentLibraryTemplate.more")),1),a.createVNode(Lc,{class:"collapsed-hide"}),a.createElementVNode("span",DV,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(ze,{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(AV,{items:c.value,cols:p.value,onOnInsert:k,onOnChange:_,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),a.createVNode(wn,{class:"content-library-pagination"},{default:a.withCtx(()=>[u.value?(a.openBlock(),a.createBlock(zd,{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})]))}}),Vv={__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:Be});a.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},l=()=>{e("cancel")},d=h=>{e("show-attachment",h)},u=()=>{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:u},{default:a.withCtx(()=>[a.createVNode(mh,{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:d,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var PV=Object.defineProperty,BV=(t,e,n)=>e in t?PV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fv=(t,e,n)=>(BV(t,typeof e!="symbol"?e+"":e,n),n);class $V{constructor(){Fv(this,"seed",0),Fv(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 RV="Failed to copy value to clipboard. Unknown type.",VV={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(RV,e),""}return t}},FV="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",jV={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=FV,e}},zi={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await zi.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=jV.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=VV.asString(e);if(zi.writeClipboardExecCommand(n))return!0;await zi.writeClipboard(n)}};new $V;const{showSuccessToast:gh}=ca(),zV=(t,e,n)=>{const r=`${e}
|
|
1362
1362
|
${t.AfzenderNaam}: \r${t.Datum} \r${$v(Rv(t.Tekst))}`;zi.copy(r).then(()=>gh(n))},jv=(t,e,n)=>{const r=t.filter(i=>i.selected).map(i=>`${i.AfzenderNaam}: \r${i.Datum}\r${$v(Rv(i.Tekst))}`).join(`
|
package/dist/locales/nl.json
CHANGED
|
@@ -9,12 +9,11 @@
|
|
|
9
9
|
"attachmentUploadModal": {
|
|
10
10
|
"title": "Bijlage toevoegen",
|
|
11
11
|
"submitButton": "Toevoegen",
|
|
12
|
-
"infoMessage": "Kies je bestand",
|
|
12
|
+
"infoMessage": "Kies je bestand.",
|
|
13
13
|
"addAttachmentButton": "Bijlage toevoegen",
|
|
14
14
|
"errorMessage": "Fout opgetreden",
|
|
15
15
|
"fileTooBigErrorMessage": "Bestand is te groot.",
|
|
16
|
-
"fileSizeExceededMessage": "Bestanden mogen maximaal 10 MB groot zijn."
|
|
17
|
-
"officeDocumentsNotSupportedByMobileMessage": "Bestandstypes: .docx (Word), .doc (Word), .xls (Excel), .xlsx (Excel) worden niet standaard ondersteund op de mobiele telefoon. Deze kunnen alleen worden bekeken als de bijbehorende app is geïnstalleerd op de mobiele telefoon of als de patiënt BeterDichtbij gebruikt op een computer."
|
|
16
|
+
"fileSizeExceededMessage": "Bestanden mogen maximaal 10 MB groot zijn."
|
|
18
17
|
},
|
|
19
18
|
"contentLibraryCard": {
|
|
20
19
|
"insert": "Invoegen"
|
package/dist/scss/_header.scss
CHANGED