@beterdichtbij/component-library 0.66.0-beta.0 → 0.66.0-beta.2
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.
|
@@ -1169,7 +1169,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1169
1169
|
.p-splitbutton-raised {
|
|
1170
1170
|
box-shadow: dt('splitbutton.raised.shadow');
|
|
1171
1171
|
}
|
|
1172
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-splitbutton p-component`,{"p-splitbutton-raised":n.raised,"p-splitbutton-rounded":n.rounded,"p-splitbutton-fluid":t.hasFluid}]},pcButton:`p-splitbutton-button`,pcDropdown:`p-splitbutton-dropdown`}}),Dh={name:`SplitButton`,extends:{name:`BaseSplitButton`,extends:kp,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:`body`},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:Eh,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`click`],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch(`$refs.menu.visible`,function(t){e.isExpanded=t})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code===`ArrowDown`||e.code===`ArrowUp`)&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit(`click`,e)}},computed:{containerClass:function(){return[this.cx(`root`),this.class]},hasFluid:function(){return od(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Gm,PVSMenu:Ch,ChevronDownIcon:Rp}},Oh=[`data-p-severity`];function kh(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`PVSButton`),s=(0,u.resolveComponent)(`PVSMenu`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({class:a.containerClass,style:e.style},e.ptmi(`root`),{"data-p-severity":e.severity}),[(0,u.createVNode)(o,(0,u.mergeProps)({type:`button`,class:e.cx(`pcButton`),label:e.label,disabled:e.disabled,severity:e.severity,text:e.text,icon:e.icon,outlined:e.outlined,size:e.size,fluid:e.fluid,"aria-label":e.label,onClick:a.onDefaultButtonClick},e.buttonProps,{pt:e.ptm(`pcButton`),unstyled:e.unstyled}),(0,u.createSlots)({default:(0,u.withCtx)(function(){return[(0,u.renderSlot)(e.$slots,`default`)]}),_:2},[e.$slots.icon?{name:`icon`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`icon`,{class:(0,u.normalizeClass)(t.class)},function(){return[(0,u.createElementVNode)(`span`,(0,u.mergeProps)({class:[e.icon,t.class]},e.ptm(`pcButton`).icon,{"data-pc-section":`buttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`label`,`disabled`,`severity`,`text`,`icon`,`outlined`,`size`,`fluid`,`aria-label`,`onClick`,`pt`,`unstyled`]),(0,u.createVNode)(o,(0,u.mergeProps)({ref:`button`,type:`button`,class:e.cx(`pcDropdown`),disabled:e.disabled,"aria-haspopup":`true`,"aria-expanded":i.isExpanded,"aria-controls":i.isExpanded?e.$id+`_overlay`:void 0,onClick:a.onDropdownButtonClick,onKeydown:a.onDropdownKeydown,severity:e.severity,text:e.text,outlined:e.outlined,size:e.size,unstyled:e.unstyled},e.menuButtonProps,{pt:e.ptm(`pcDropdown`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,e.$slots.dropdownicon?`dropdownicon`:`menubuttonicon`,{class:(0,u.normalizeClass)(t.class)},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.menuButtonIcon||e.dropdownIcon?`span`:`ChevronDownIcon`),(0,u.mergeProps)({class:[e.dropdownIcon||e.menuButtonIcon,t.class]},e.ptm(`pcDropdown`).icon,{"data-pc-section":`menubuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-expanded`,`aria-controls`,`onClick`,`onKeydown`,`severity`,`text`,`outlined`,`size`,`unstyled`,`pt`]),(0,u.createVNode)(s,{ref:`menu`,id:e.$id+`_overlay`,model:e.model,popup:!0,autoZIndex:e.autoZIndex,baseZIndex:e.baseZIndex,appendTo:e.appendTo,unstyled:e.unstyled,pt:e.ptm(`pcMenu`)},(0,u.createSlots)({_:2},[e.$slots.menuitemicon?{name:`itemicon`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`menuitemicon`,{item:t.item,class:(0,u.normalizeClass)(t.class)})]}),key:`0`}:void 0,e.$slots.item?{name:`item`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`item`,{item:t.item,hasSubmenu:t.hasSubmenu,label:t.label,props:t.props})]}),key:`1`}:void 0]),1032,[`id`,`model`,`autoZIndex`,`baseZIndex`,`appendTo`,`unstyled`,`pt`])],16,Oh)}Dh.render=kh;var Ah=[`src`],jh={class:`menu-item`},Mh=[`src`],Nh={__name:`BDContentLibrarySplitButton`,props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:[`content-library`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=(0,u.computed)(()=>r.contentLibraryProviders.map(e=>({label:e.label||e.text,image:e.img,value:e.value,command:()=>i(`content-library`,e.value)}))),o=(0,u.computed)(()=>{let e=a.value;return e.length!==0&&r.isExternalOnly&&(e=e.slice(1)),e}),s=(0,u.computed)(()=>{let e=a.value;return r.isExternalOnly&&e.length>0?e[0].label:n(`contentLibrarySplitButton.messageTemplatesTitle`)}),c=(0,u.computed)(()=>{let e=a.value;return r.isExternalOnly&&e.length>0}),l=(0,u.computed)(()=>{let e=a.value;return e.length>0?e[0].image:``}),d=()=>{let e=a.value,t=`message-template`;r.isExternalOnly&&e.length>0&&(t=e[0].value),i(`content-library`,t)};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Dh),{class:`bd-content-library-split-button`,model:o.value,outlined:``,severity:`secondary`,onClick:d},{default:(0,u.withCtx)(()=>[c.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:l.value,alt:``},null,8,Ah)):((0,u.openBlock)(),(0,u.createBlock)(et,{key:1})),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(s.value),1)]),item:(0,u.withCtx)(({item:e})=>[(0,u.createElementVNode)(`div`,jh,[(0,u.createElementVNode)(`img`,{src:e.image,alt:``,class:`icon-image`},null,8,Mh),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.label),1)])]),_:1},8,[`model`]))}},Ph={date:``,displayTime:!0,format:`numeric`},Fh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Ih=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Fh()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),Lh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Rh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))})),zh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))})),Bh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Vh=l(Fh(),1);Ih();var Hh=l(Lh(),1),Uh=l(Rh(),1),Wh=l(zh(),1),Gh=l(Bh(),1);Vh.default.extend(Hh.default),Vh.default.locale(`nl`),Vh.default.extend(Uh.default),Vh.default.extend(Wh.default),Vh.default.extend(Gh.default);var Kh=e=>e?e.charAt(0).toUpperCase()+e.slice(1):``;function qh(e,t=(0,Vh.default)()){let n=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`],!0);if(!n.isValid())return``;let r=t.startOf(`day`);if(n.isSame(r,`day`))return`Vandaag`;let i=r.subtract(1,`day`);if(n.isSame(i,`day`))return`Gisteren`;let a=r.subtract(6,`day`);if(n.isSameOrAfter(a)&&n.isBefore(r))return Kh(n.format(`dddd`));let o=r.subtract(7,`day`);return n.isSame(o)||n.isSame(t,`year`)?n.format(`D MMMM`):n.format(`DD-MM-YYYY`)}function Jh(e,t=(0,Vh.default)()){let n=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`],!0),r=e.includes(` `)&&e.includes(`:`);if(!n.isValid())return``;let i=t.startOf(`day`);if(n.isSame(i,`day`))return r?n.format(`H:mm`):`Vandaag`;let a=i.subtract(1,`day`);if(n.isSame(a,`day`))return r?`Gisteren ${n.format(`H:mm`)}`:`Gisteren`;let o=i.subtract(6,`day`);if(n.isSameOrAfter(o)&&n.isBefore(i))return Kh(r?n.format(`dddd H:mm`):n.format(`dddd`));let s=i.subtract(7,`day`);return n.isSame(s)||n.isSame(t,`year`)?r?n.format(`D MMM H:mm`):n.format(`D MMMM`):n.format(`DD-MM-YYYY`)}function Yh(e){let t=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`,`YYYY-MM-DDTHH:mm:ss`],!0),n=e.includes(` `)&&e.includes(`:`);return t.isValid()?n&&t.isSame((0,Vh.default)(),`year`)?t.format(`DD-MM-YYYY H:mm`):t.format(`DD-MM-YYYY`):``}function Xh(e){let t=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`,`YYYY-MM-DDTHH:mm:ss`],!0);return t.isValid()?t.format(`DD-MM-YYYY`):``}var Zh={class:`bd-date`},Qh=(0,u.defineComponent)({__name:`BDDate`,props:{date:{},displayTime:{type:Boolean,default:Ph.displayTime},format:{default:Ph.format}},setup(e){let t=e,n=(0,u.computed)(()=>t.date?t.format===`textual`?t.displayTime?Jh(t.date):qh(t.date):(t.format,t.displayTime?Yh(t.date):Xh(t.date)):``);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`span`,Zh,(0,u.toDisplayString)(n.value),1))}}),$h=(0,u.defineComponent)({__name:`BDForm`,emits:[`submit`,`reset`],setup(e,{emit:t}){let n=t;function r(){n(`submit`)}function i(){n(`reset`)}return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`form`,{onSubmit:(0,u.withModifiers)(r,[`prevent`]),onReset:(0,u.withModifiers)(i,[`prevent`])},[(0,u.renderSlot)(e.$slots,`default`)],32))}}),eg=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var tg=e=>e!==void 0,ng=Object.prototype.toString,rg=e=>ng.call(e)===`[object Object]`,ig=()=>{};function ag(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function og(e,t={}){let n,r,i=ig,a=e=>{clearTimeout(e),i(),i=ig},o;return s=>{let c=(0,u.toValue)(e),l=(0,u.toValue)(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function sg(e){return Array.isArray(e)?e:[e]}function cg(e,t=200,n={}){return ag(og(t,n),e)}function lg(e,t,n){return(0,u.watch)(e,t,{...n,immediate:!0})}var ug=eg?window:void 0;eg&&window.document,eg&&window.navigator,eg&&window.location;function dg(e){let t=(0,u.toValue)(e);return t?.$el??t}function fg(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=(0,u.computed)(()=>{let t=sg((0,u.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return lg(()=>[n.value?.map(e=>dg(e))??[ug].filter(e=>e!=null),sg((0,u.toValue)(n.value?e[1]:e[0])),sg((0,u.unref)(n.value?e[2]:e[1])),(0,u.toValue)(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=rg(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function pg(e){return JSON.parse(JSON.stringify(e))}function mg(e,t={}){let{initialValue:n=!1,focusVisible:r=!1,preventScroll:i=!1}=t,a=(0,u.shallowRef)(!1),o=(0,u.computed)(()=>dg(e)),s={passive:!0};fg(o,`focus`,e=>{var t;(!r||(t=e.target).matches?.call(t,`:focus-visible`))&&(a.value=!0)},s),fg(o,`blur`,()=>a.value=!1,s);let c=(0,u.computed)({get:()=>a.value,set(e){var t,n;!e&&a.value?(t=o.value)==null||t.blur():e&&!a.value&&((n=o.value)==null||n.focus({preventScroll:i}))}});return(0,u.watch)(o,()=>{c.value=n},{immediate:!0,flush:`post`}),{focused:c}}function hg(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:d,shouldEmit:f}=r,p=(0,u.getCurrentInstance)(),m=n||p?.emit||(p==null||(i=p.$emit)==null?void 0:i.bind(p))||(p==null||(a=p.proxy)==null||(a=a.$emit)==null?void 0:a.bind(p?.proxy)),h=c;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>o?typeof o==`function`?o(e):pg(e):e,_=()=>tg(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(s){let n=(0,u.ref)(_()),r=!1;return(0,u.watch)(()=>e[t],e=>{r||(r=!0,n.value=g(e),(0,u.nextTick)(()=>r=!1))}),(0,u.watch)(n,n=>{!r&&(n!==e[t]||l)&&v(n)},{deep:l}),n}else return(0,u.computed)({get(){return _()},set(e){v(e)}})}var gg=[`value`,`true-value`,`false-value`,`data-checked`,`disabled`],_g=(0,u.defineComponent)({__name:`BDFormCheckbox`,props:{disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:[`update:modelValue`,`change`,`input`],setup(e,{emit:t}){let{uniqueIdentifier:n}=La(),r=e,i=t,a=hg(r,`modelValue`,i),o=`form-check-input-${n.value}`,s=(0,u.computed)(()=>[`form-check`,`bd-form-checkbox`]),c=(0,u.computed)(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),l=e=>i(`change`,e.target.value);return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>(0,u.isRef)(a)?a.value=e:null,id:o,class:(0,u.normalizeClass)(c.value),type:`checkbox`,value:e.value,"true-value":e.value,"false-value":e.uncheckedValue,"data-checked":(0,u.unref)(a)===e.value,disabled:r.disabled,onChange:l},null,42,gg),[[u.vModelCheckbox,(0,u.unref)(a)]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:o},[(0,u.renderSlot)(t.$slots,`default`)]),(0,u.renderSlot)(t.$slots,`last`)],2))}}),vg={class:`invalid-feedback bd-invalid-feedback`},yg=(0,u.defineComponent)({__name:`BDFormInvalidFeedback`,props:{state:{type:[Boolean,null],default:null},text:{default:``}},setup(e){let t=e;return(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,vg,[t.state?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(He),{key:0})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Jt),{key:1})),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.text),1)]))}}),bg=Object.defineProperty,xg=(e,t,n)=>t in e?bg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sg=(e,t,n)=>xg(e,typeof t==`symbol`?t:t+``,n),Cg={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},wg=(e,t,n)=>e.replaceAll(t,``).replace(n,`.`).replace(`..`,`.`).replace(/[^.\d]/g,``),Tg=(e,t,n)=>new Intl.NumberFormat(n.number?.locale??`en`,{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:`trunc`}),Eg=(e,t=!0,n)=>{let r=n.number?.unsigned!==!0&&e.startsWith(`-`)?`-`:``,i=n.number?.fraction??0,a=Tg(0,i,n),o=a.formatToParts(1000.12),s=o.find(e=>e.type===`group`)?.value??` `,c=o.find(e=>e.type===`decimal`)?.value??`.`,l=wg(e,s,c);if(Number.isNaN(parseFloat(l)))return r;let u=l.split(`.`);u[1]!=null&&u[1].length>=1&&(a=Tg(u[1].length<=i?u[1].length:i,i,n));let d=a.format(parseFloat(l));return t?i>0&&l.endsWith(`.`)&&!l.slice(0,-1).includes(`.`)&&(d+=c):d=wg(d,s,c),r+d},Dg=e=>JSON.parse(e.replaceAll(`'`,`"`)),Og=(e,t={})=>{let n={...t};e.dataset.maska!=null&&e.dataset.maska!==``&&(n.mask=Ag(e.dataset.maska)),e.dataset.maskaEager!=null&&(n.eager=kg(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(n.reversed=kg(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(n.tokensReplace=kg(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(n.tokens=jg(e.dataset.maskaTokens));let r={};return e.dataset.maskaNumberLocale!=null&&(r.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(r.unsigned=kg(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},kg=e=>e===``?!0:!!JSON.parse(e),Ag=e=>e.startsWith(`[`)&&e.endsWith(`]`)?Dg(e):e,jg=e=>{if(e.startsWith(`{`)&&e.endsWith(`}`))return Dg(e);let t={};return e.split(`|`).forEach(e=>{let n=e.split(`:`);t[n[0]]={pattern:Mg()?new RegExp(n[1],`u`):new RegExp(n[1]),optional:n[2]===`optional`,multiple:n[2]===`multiple`,repeated:n[2]===`repeated`}}),t},Mg=()=>{try{return!0}catch{return!1}},Ng=class{constructor(e={}){Sg(this,`opts`,{}),Sg(this,`memo`,new Map);let t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...Cg,...t.tokens};for(let e of Object.values(t.tokens))typeof e.pattern==`string`&&(e.pattern=Mg()?new RegExp(e.pattern,`u`):new RegExp(e.pattern))}else t.tokens=Cg;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((e,t)=>e.length-t.length):t.mask=t.mask[0]??``),t.mask===``&&(t.mask=null),this.opts=t}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){let t=this.findMask(String(e));if(this.opts.mask==null||t==null)return!1;let n=this.process(String(e),t).length;return typeof this.opts.mask==`string`?n>=this.opts.mask.length:n>=t.length}findMask(e){let t=this.opts.mask;if(t==null)return null;if(typeof t==`string`)return t;if(typeof t==`function`)return t(e);let n=this.process(e,t.slice(-1).pop()??``,!1);return t.find(t=>this.process(e,t,!1).length>=n.length)??``}escapeMask(e){let t=[],n=[];return e.split(``).forEach((r,i)=>{r===`!`&&e[i-1]!==`!`?n.push(i-n.length):t.push(r)}),{mask:t.join(``),escaped:n}}process(e,t,n=!0){if(this.opts.number!=null)return Eg(e,n,this.opts);if(t==null)return e;let r=`v=${e},mr=${t},m=${+!!n}`;if(this.memo.has(r))return this.memo.get(r);let{mask:i,escaped:a}=this.escapeMask(t),o=[],s=this.opts.tokens==null?{}:this.opts.tokens,c=this.isReversed()?-1:1,l=this.isReversed()?`unshift`:`push`,u=this.isReversed()?0:i.length-1,d=this.isReversed()?()=>h>-1&&g>-1:()=>h<i.length&&g<e.length,f=e=>!this.isReversed()&&e<=u||this.isReversed()&&e>=u,p,m=-1,h=this.isReversed()?i.length-1:0,g=this.isReversed()?e.length-1:0,_=!1;for(;d();){let t=i.charAt(h),r=s[t],d=r?.transform==null?e.charAt(g):r.transform(e.charAt(g));if(!a.includes(h)&&r!=null?(d.match(r.pattern)==null?r.multiple?_&&=(h+=c,g-=c,!1):d===p?p=void 0:r.optional&&(h+=c,g-=c):(o[l](d),r.repeated?(m===-1?m=h:h===u&&h!==m&&(h=m-c),u===m&&(h-=c)):r.multiple&&(_=!0,h-=c),h+=c),g+=c):(n&&!this.isEager()&&o[l](t),d===t&&!this.isEager()?g+=c:p=t,this.isEager()||(h+=c)),this.isEager())for(;f(h)&&(s[i.charAt(h)]==null||a.includes(h));){if(n){if(o[l](i.charAt(h)),e.charAt(g)===i.charAt(h)){h+=c,g+=c;continue}}else i.charAt(h)===e.charAt(g)&&(g+=c);h+=c}}return this.memo.set(r,o.join(``)),this.memo.get(r)}},Pg=class{constructor(e,t={}){Sg(this,`items`,new Map),Sg(this,`eventAbortController`),Sg(this,`onInput`,e=>{if(e instanceof CustomEvent&&e.type===`input`&&!e.isTrusted&&!e.bubbles)return;let t=e.target,n=this.items.get(t);if(n===void 0)return;let r=`inputType`in e&&e.inputType.startsWith(`delete`),i=n.isEager(),a=r&&i&&n.unmasked(t.value)===``?``:t.value;this.fixCursor(t,r,()=>this.setValue(t,a))}),this.options=t,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==``&&e.value!==this.processInput(e)?.masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){let t=this.getOptions(this.options);for(let n of e){if(!this.items.has(n)){let{signal:e}=this.eventAbortController;n.addEventListener(`input`,this.onInput,{capture:!0,signal:e})}let e=new Ng(Og(n,t));this.items.set(n,e),queueMicrotask(()=>this.updateValue(n)),n.selectionStart===null&&e.isEager()&&console.warn("Maska: input of `%s` type is not supported",n.type)}}getInputs(e){return typeof e==`string`?Array.from(document.querySelectorAll(e)):`length`in e?Array.from(e):[e]}getOptions(e){let{onMaska:t,preProcess:n,postProcess:r,...i}=e;return i}fixCursor(e,t,n){let r=e.selectionStart,i=e.value;if(n(),r===null||r===i.length&&!t)return;let a=e.value,o=i.slice(0,r),s=a.slice(0,r),c=this.processInput(e,o)?.unmasked,l=this.processInput(e,s)?.unmasked;if(c===void 0||l===void 0)return;let u=r;o!==s&&(u+=t?a.length-i.length:c.length-l.length),e.setSelectionRange(u,u)}setValue(e,t){let n=this.processInput(e,t);n!==void 0&&(e.value=n.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(e=>e(n)):this.options.onMaska(n)),e.dispatchEvent(new CustomEvent(`maska`,{detail:n})),e.dispatchEvent(new CustomEvent(`input`,{detail:n.masked})))}processInput(e,t){let n=this.items.get(e);if(n===void 0)return;let r=t??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let i=n.masked(r);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:n.unmasked(r),completed:n.completed(r)}}},Fg=new WeakMap,Ig=(e,t)=>{if(e.arg==null||e.instance==null)return;let n=`setup`in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:n&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Lg=(e,t)=>{var n;let r=e instanceof HTMLInputElement?e:e.querySelector(`input`);if(r==null||r?.type===`file`)return;let i={};if(t.value!=null&&(i=typeof t.value==`string`?{mask:t.value}:{...t.value}),t.arg!=null){let e=e=>{Ig(t,t.modifiers.unmasked?e.unmasked:t.modifiers.completed?e.completed:e.masked)};i.onMaska=i.onMaska==null?e:Array.isArray(i.onMaska)?[...i.onMaska,e]:[i.onMaska,e]}Fg.has(r)?(n=Fg.get(r))==null||n.update(i):Fg.set(r,new Pg(r,i))},Rg=[`value`,`type`],zg=(0,u.defineComponent)({__name:`BDFormInput`,props:{modelValue:{default:``},formGroupClass:{default:void 0},type:{default:`text`},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:Aa.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:[`update:modelValue`,`click`,`blur`,`enter`],setup(e,{emit:t}){let n=e,r=t,{uniqueIdentifier:i}=La(),a=hg(n,`modelValue`,r),o=`__BD__FORM__LABEL__${i.value}`,s=`__BD__FORM__GROUP__${i.value}`,c=`form-input-${n.label?n.label.replace(/ /g,`-`).toLowerCase():i.value}`,l=`validationFeedback${n.label?n.label.replace(/ /g,``):i.value}`,d=(0,u.computed)(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=(0,u.computed)(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),p=(0,u.computed)(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?l:null,"data-maska":n.mask})),m=cg(e=>{a.value=e.target.value},n.delayTimeMs);return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-form-input`,e.formGroupClass]),id:s},[(0,u.renderSlot)(t.$slots,`label`,{},()=>[e.label?((0,u.openBlock)(),(0,u.createElementBlock)(`label`,{key:0,for:c,id:o,class:(0,u.normalizeClass)([`form-label`,e.labelClass])},(0,u.toDisplayString)(e.label),3)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(e.formFieldClass)},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,(0,u.mergeProps)({value:e.modelValue,type:e.type,id:c,class:[`form-control`,d.value]},p.value,{onInput:n[0]||=(...e)=>(0,u.unref)(m)&&(0,u.unref)(m)(...e),onClick:n[1]||=e=>t.$emit(`click`),onBlur:n[2]||=e=>t.$emit(`blur`),onKeydown:n[3]||=(0,u.withKeys)(e=>t.$emit(`enter`),[`enter`])}),null,16,Rg),[[(0,u.unref)(Lg)]]),(0,u.renderSlot)(t.$slots,`default`)],2),(0,u.createVNode)(yg,{text:e.invalidFeedbackText,class:(0,u.normalizeClass)(f.value),state:e.state,id:l},null,8,[`text`,`class`,`state`])],2))}}),Bg=[`disabled`],Vg=[`label`],Hg=[`value`],Ug=[`value`],Wg=(0,u.defineComponent)({__name:`BDFormSelect`,props:{size:{default:Aa.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:``},state:{type:[Boolean,null],default:null}},emits:[`update:modelValue`,`change`,`input`],setup(e,{emit:t}){let n=e,r=t,i=hg(n,`modelValue`,r),a=(0,u.ref)(null),{focused:o}=mg(a,{initialValue:n.autofocus}),s=(0,u.computed)(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:[`xs`,`sm`,`lg`].includes(n.size)}));(0,u.watch)(()=>n.autofocus,e=>{e&&(o.value=!0)});let c=e=>{i.value=e.target.value,r(`input`,d(e.target.value))},l=e=>{r(`change`,d(e.target.value))},d=e=>{try{return JSON.parse(e)}catch{return e}};return(e,t)=>(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`select`,{class:(0,u.normalizeClass)(s.value),"onUpdate:modelValue":t[0]||=e=>(0,u.isRef)(i)?i.value=e:null,disabled:n.disabled,ref_key:`input`,ref:a,onInput:c,onChange:l},[(0,u.renderSlot)(e.$slots,`first`),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)(n.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`optgroup`,{label:e.label},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`option`,{value:JSON.stringify(e.value),key:e.value},(0,u.toDisplayString)(e.text),9,Hg))),128))],8,Vg))),256)):((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(n.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`option`,{value:e.value,key:e.value},(0,u.toDisplayString)(e.text),9,Ug))),128))],42,Bg)),[[u.vModelSelect,(0,u.unref)(i)]])}}),Gg={class:`input-group bd-input-group`},Kg=[`for`],qg=(0,u.defineComponent)({__name:`BDInputGroup`,props:{label:{default:void 0},labelForId:{default:void 0}},setup(e){let t=(0,u.useAttrs)(),n=e;return(e,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`fieldset`,Gg,[n.label?((0,u.openBlock)(),(0,u.createElementBlock)(`label`,{key:0,for:n.labelForId,class:`form-label`},(0,u.toDisplayString)(n.label),9,Kg)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)((0,u.unref)(t).class)},[(0,u.renderSlot)(e.$slots,`default`)],2)]))}}),Jg=e=>typeof e==`string`||e instanceof String,Yg={class:`bd-loader__spinner`},Xg={class:`spinner-border`,role:`status`},Zg={class:`visually-hidden`},Qg={key:0},$g={__name:`BDLoader`,props:{message:String,size:{type:String,default:`md`},stopAnimation:{type:Boolean,default:!1},isColleague:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,u.computed)(()=>t.stopAnimation?`bd-loader--static`:``),r=(0,u.computed)(()=>t.isColleague?`bd-loader--colleague`:``);return(t,i)=>{let a=(0,u.resolveComponent)(`icon-videocall`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-loader text-center`,[e.size,n.value,r.value]])},[(0,u.createElementVNode)(`div`,Yg,[(0,u.createVNode)(a),(0,u.createElementVNode)(`div`,Xg,[(0,u.createElementVNode)(`span`,Zg,(0,u.toDisplayString)(e.message),1)])]),e.message?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,Qg,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(e.message),1)])):(0,u.createCommentVNode)(``,!0)],2)}}},e_={};function t_(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,(0,u.mergeProps)({class:`bd-logo`},e.$attrs,{version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`}),[...t[0]||=[(0,u.createStaticVNode)(`<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>`,2)]],16)}var n_=g(e_,[[`render`,t_]]),r_={"aria-label":`Page navigation`,class:`bd-pagination`},i_={class:`page-item`},a_=[`data-page`],o_=[`data-page`],s_={class:`page-item`},c_=[`data-page`],l_=(0,u.defineComponent)({__name:`BDPagination`,props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:[`click`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=hg(n,`modelValue`,r),a=(0,u.ref)(Math.ceil(n.totalRows/n.rowsPerPage)),o=(0,u.ref)([]);(0,u.watch)([()=>n.totalRows,()=>n.rowsPerPage],()=>{a.value=Math.ceil(n.totalRows/n.rowsPerPage),o.value=f(i.value)}),(0,u.onMounted)(()=>{o.value=f(i.value)});let s=(0,u.computed)(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=e=>{let t=e.currentTarget.getAttribute(`data-page`),n=Number(t);isNaN(Number(n))||(i.value=n,o.value=f(n)),r(`click`,n)},l=(e,t,n)=>n<=t?n:e==1?6:e<=4?5:1,d=(e,t,n)=>n<=t?0:e==n?6:e>n-4?5:1,f=e=>{let t=[],n=l(e,7,a.value),r=a.value>7&&e>4,i=a.value>7&&e<a.value-3,o=r&&i,s=d(e,7,a.value);for(let e=1;e<=n;e++)t.push(e);if(r&&t.push(`...`),o)for(let n=e-1;n<=e+1;n++)t.push(n);i&&t.push(`...`);for(let e=1;e<=s;e++)t.push(a.value-s+e);return t};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,r_,[(0,u.createElementVNode)(`ul`,{class:(0,u.normalizeClass)([`pagination`,s.value])},[(0,u.withDirectives)((0,u.createElementVNode)(`li`,i_,[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,"aria-label":`Previous`,onClick:c,"data-page":(0,u.unref)(i)-1},[(0,u.createVNode)((0,u.unref)(Pe))],8,a_)],512),[[u.vShow,(0,u.unref)(i)>1]]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(o.value,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:(0,u.normalizeClass)([`page-item`,{active:(0,u.unref)(i)===e,disabled:typeof e==`string`}]),key:e},[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,onClick:c,"data-page":e},(0,u.toDisplayString)(e),9,o_)],2))),128)),(0,u.withDirectives)((0,u.createElementVNode)(`li`,s_,[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,"aria-label":`Next`,onClick:c,"data-page":(0,u.unref)(i)+1},[(0,u.createVNode)((0,u.unref)(Re))],8,c_)],512),[[u.vShow,(0,u.unref)(i)<a.value]])],2)]))}}),u_={class:`bd-pill`},d_=[`src`],f_={class:`bd-pill__description`},p_=[`href`],m_=[`id`,`textContent`,`title`],h_=[`id`,`textContent`,`title`],g_=(0,u.defineComponent)({__name:`BDPill`,props:{imgSrc:{default:``},uri:{default:``},uriDisplayName:{default:``},title:{default:``},subtitle:{default:``},showClose:{type:Boolean,default:!1}},emits:[`close`],setup(e,{emit:t}){let{uniqueIdentifier:n}=La(),r=e,i=(0,u.computed)(()=>r.uri),a=(0,u.computed)(()=>r.uriDisplayName===``?r.uri:r.uriDisplayName),o=(0,u.computed)(()=>r.imgSrc),s=(0,u.computed)(()=>r.title),c=(0,u.computed)(()=>r.subtitle),l=(0,u.computed)(()=>`bd-pill-title-${n.value}`),d=(0,u.computed)(()=>`bd-pill-subtitle-${n.value}`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,u_,[(0,u.createElementVNode)(`img`,{src:o.value,class:`bd-pill__logo`,alt:`logo-externe-partij`},null,8,d_),(0,u.createElementVNode)(`div`,f_,[(0,u.createElementVNode)(`a`,{href:i.value,class:`bd-pill__link`,target:`_blank`,rel:`noopener noreferrer`},[(0,u.createVNode)((0,u.unref)(Dn),{class:`bd-pill__icon-hyperlink`,style:{height:`12px`}}),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(a.value),1)],8,p_),(0,u.createElementVNode)(`span`,{class:`bd-pill__title`,id:l.value,textContent:(0,u.toDisplayString)(s.value),"data-bs-toggle":`tooltip`,title:s.value},null,8,m_),(0,u.createElementVNode)(`span`,{class:`bd-pill__subtitle`,id:d.value,textContent:(0,u.toDisplayString)(c.value),"data-bs-toggle":`tooltip`,title:c.value},null,8,h_)])]))}}),__={class:`bd-profile-picture`},v_=[`src`,`alt`],y_=(0,u.defineComponent)({__name:`BDProfileImage`,props:{src:{default:``},username:{default:null},size:{default:Aa.LG},linkText:{default:null}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>`${n.username?`${n.username}'s `:``}profielfoto`),a=()=>{r(`click`)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,__,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`rounded-circle`,n.size])},[(0,u.createElementVNode)(`img`,{src:n.src,alt:i.value},null,8,v_)],2),n.linkText?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`link`,onClick:a,textContent:(0,u.toDisplayString)(n.linkText)},null,8,[`textContent`])):(0,u.createCommentVNode)(``,!0)]))}}),b_={DANGER:`danger`,WARNING:`warning`,INFO:`info`,SUCCESS:`success`},x_=[`id`],S_={class:`toast-header`},C_={class:`toast-body`},w_=(0,u.defineComponent)({__name:`BDToast`,props:{id:{},variant:{default:b_.INFO},title:{default:``},text:{default:``}},setup(e){let t=e,n=(0,u.computed)(()=>({[`bd-toast-${t.variant}`]:!0})),r=(0,u.computed)(()=>t.variant!==b_.SUCCESS);return(e,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`toast bd-toast`,n.value]),role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,key:t.id,id:t.id},[(0,u.createElementVNode)(`div`,S_,[r.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Un),{key:0})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(He),{key:1})),(0,u.createElementVNode)(`h5`,null,(0,u.toDisplayString)(t.title),1),i[0]||=(0,u.createElementVNode)(`button`,{type:`button`,class:`btn-close`,"data-bs-dismiss":`toast`,"aria-label":`Close`},null,-1)]),(0,u.createElementVNode)(`div`,C_,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t.text),1)])],10,x_))}}),T_=e=>Array.isArray(e)&&e.length>0,E_=e=>Object.keys(e).map(t=>e[t]),D_=e=>Array.isArray(e)&&e.length>0,O_=e=>!e||Array.isArray(e)&&!e.length,k_={name:`BDUserInformation`,props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){let{name:e,profilePictureUri:t,extra:n,...r}=this.value,i=t&&this.showProfilePicture?(0,u.h)(`img`,{class:`bd-user-information__profile-picture`,src:t,alt:e}):null,a=[(0,u.h)(`h4`,null,e)];return this.$slots.default&&a.push(this.$slots.default()),(0,u.h)(`div`,{class:`bd-user-information`},[i,(0,u.h)(`div`,{class:`bd-user-information__detail`},[(0,u.h)(`div`,{class:`bd-user-information__header`},a),(0,u.h)(`small`,null,E_(r).filter(e=>e).join(` • `))])])}},A_={class:`bd-zoom-slider d-flex`},j_=[`max`],M_=(0,u.defineComponent)({__name:`BDZoomslider`,props:{modelValue:{},maxValue:{default:5}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=hg(n,`modelValue`,t);function i(){r.value!==0&&r.value--}function a(){r.value<n.maxValue&&r.value++}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,A_,[((0,u.openBlock)(),(0,u.createElementBlock)(`svg`,{class:`bd-zoom-slider-min-button`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,stroke:`#000000`,height:`20`,width:`20`,onClick:i},[...n[1]||=[(0,u.createElementVNode)(`g`,{transform:`matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)`},[(0,u.createElementVNode)(`path`,{d:`M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`0`})],-1)]])),(0,u.withDirectives)((0,u.createElementVNode)(`input`,{type:`range`,"onUpdate:modelValue":n[0]||=e=>(0,u.isRef)(r)?r.value=e:null,min:`0`,max:e.maxValue,class:`bd-zoom-slider-input`},null,8,j_),[[u.vModelText,(0,u.unref)(r)]]),((0,u.openBlock)(),(0,u.createElementBlock)(`svg`,{class:`bd-zoom-slider-plus-button`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,stroke:`#000000`,height:`20`,width:`20`,onClick:a},[...n[2]||=[(0,u.createElementVNode)(`g`,{transform:`matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)`},[(0,u.createElementVNode)(`path`,{d:`M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`0`})],-1)]]))]))}}),N_={class:`attachment-list`},P_={class:`attachment-link`},F_={key:1,class:`attachment-no-download`},I_=[`href`],L_=(0,u.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:t}){let n=t,r=e=>{n(`delete`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,N_,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,P_,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`remove`,onClick:e=>r(t),"aria-label":`verwijder`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),e.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,F_,[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:2,href:t.downloadUrl},[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)],8,I_))])]))),128))]))}}),R_={class:`attachment-list`},z_={class:`attachment`},B_=[`onClick`],V_=[`src`,`alt`],H_=[`onClick`],U_=[`href`],W_={class:`btn btn-light download-button-image`},G_=[`src`,`alt`],K_=(0,u.defineComponent)({__name:`BDImageAttachmentPreviewList`,props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`,`show`],setup(e,{emit:t}){let n=e,r=t,i=e=>{r(`delete`,e)},a=(e,t)=>{e.target&&e.target.className===`img-preview`&&r(`show`,t)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,R_,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,z_,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,u.withModifiers)(e=>i(t),[`prevent`])},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),n.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,onClick:e=>a(e,t)},[(0,u.createElementVNode)(`img`,{src:t.previewUrl,class:`img-preview`,alt:t.altName,loading:`lazy`},null,8,V_)],8,B_)):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,onClick:e=>a(e,t)},[n.fastDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,href:t.downloadUrl,class:`download-link`},[(0,u.createElementVNode)(`button`,W_,[(0,u.createVNode)((0,u.unref)(It))])],8,U_)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`img`,{src:t.previewUrl,alt:t.altName,class:`img-preview`,loading:`lazy`},null,8,G_)],8,H_))])]))),128))]))}}),q_=e=>e?.map(e=>e.CorrelationId),J_=e=>{if(e.Naam==null)return!1;let t=e.Naam.toLowerCase();return t.endsWith(`.png`)||t.endsWith(`.jpg`)||t.endsWith(`.jpeg`)||t.endsWith(`.gif`)},Y_=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,X_=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,Z_=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,Q_=(e,t)=>t?J_(e):!J_(e),$_=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>Q_(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:Y_(e,t),previewUrl:X_(e,t),fullImageUrl:Z_(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},ev={class:`bd-chat-cloud-card`},tv={class:`bd-chat-cloud-card__header`},nv={class:`bd-chat-cloud-card__body`},rv=[`innerHTML`],iv={class:`bd-chat-cloud-card__footer`},av={key:0,class:`pills-list__wrapper`},ov={class:`pills-list__ul`},sv=(0,u.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(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>n.isSender?`sender`:``),a=(0,u.computed)(()=>$_(n.apiUrl,n.files,!1)),o=(0,u.computed)(()=>$_(n.apiUrl,n.files,!0)),s=()=>{r(`action`,`copy-message`)},c=e=>{r(`show-attachment`,e)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-chat-cloud`,i.value])},[(0,u.createVNode)(y_,{src:n.src,username:n.username,size:`sm`},null,8,[`src`,`username`]),(0,u.createElementVNode)(`div`,ev,[(0,u.createElementVNode)(`div`,tv,[(0,u.renderSlot)(t.$slots,`header`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.headerTitle),1)]),(0,u.createVNode)(A,{variant:`outline-primary-dark`,size:`sm`,onClick:s},{default:(0,u.withCtx)(()=>[...r[0]||=[(0,u.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,u.createElementVNode)(`div`,nv,[(0,u.renderSlot)(t.$slots,`body`,{},()=>[(0,u.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:n.message},null,8,rv)])]),(0,u.createElementVNode)(`div`,iv,[(0,u.renderSlot)(t.$slots,`footer`,{},()=>[e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,av,[(0,u.createElementVNode)(`ul`,ov,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(g_,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),a.value&&a.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(L_,{key:1,files:a.value},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(K_,{key:2,"fast-download":!0,files:o.value,onShow:c},null,8,[`files`])):(0,u.createCommentVNode)(``,!0)])])])],2))}}),cv=(0,u.defineComponent)({__name:`BDDropdownItem`,props:{to:{default:``},target:{default:`_blank`},text:{default:void 0},rel:{default:`noopener noreferrer`}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=()=>{r(`click`)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,(0,u.mergeProps)({class:`bd-dropdown-item`},e.$attrs),[(0,u.createVNode)(ja,(0,u.mergeProps)({class:`dropdown-item`,onClick:i},n),{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,`default`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.text),1)])]),_:3},16)],16))}}),lv={class:`bd-file-upload-preview`},uv={class:`preview-details`},dv=[`src`,`alt`],fv={class:`filename`},pv={key:2,class:`mark-container pending`},mv={class:`mark-container success`},hv=(0,u.defineComponent)({__name:`BDFileUploadPreview`,props:{file:{},isPending:{type:Boolean}},emits:[`remove`],setup(e,{emit:t}){let n=e,r=t,i=()=>r(`remove`,n.file);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lv,[(0,u.createElementVNode)(`div`,uv,[n.file.previewUrl?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:n.file.previewUrl,class:`preview-image`,alt:n.file.UUID},null,8,dv)):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(dn),{key:1,class:`preview-icon`})),(0,u.createElementVNode)(`div`,fv,[(0,u.createElementVNode)(`small`,null,(0,u.toDisplayString)(n.file.name),1)]),n.isPending?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pv,[...t[1]||=[(0,u.createElementVNode)(`div`,{class:`spinner-border text-primary spinner-border-sm`,role:`status`},null,-1)]])):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:3},[(0,u.createVNode)(A,{class:`remove-button`,onClick:t[0]||=e=>i()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1}),(0,u.createElementVNode)(`div`,mv,[(0,u.createVNode)((0,u.unref)(He))])],64))])]))}}),gv={name:`PlusIcon`,extends:Lp};function _v(e){return xv(e)||bv(e)||yv(e)||vv()}function vv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1172
|
+
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-splitbutton p-component`,{"p-splitbutton-raised":n.raised,"p-splitbutton-rounded":n.rounded,"p-splitbutton-fluid":t.hasFluid}]},pcButton:`p-splitbutton-button`,pcDropdown:`p-splitbutton-dropdown`}}),Dh={name:`SplitButton`,extends:{name:`BaseSplitButton`,extends:kp,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:`body`},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:Eh,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`click`],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch(`$refs.menu.visible`,function(t){e.isExpanded=t})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code===`ArrowDown`||e.code===`ArrowUp`)&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit(`click`,e)}},computed:{containerClass:function(){return[this.cx(`root`),this.class]},hasFluid:function(){return od(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Gm,PVSMenu:Ch,ChevronDownIcon:Rp}},Oh=[`data-p-severity`];function kh(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`PVSButton`),s=(0,u.resolveComponent)(`PVSMenu`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({class:a.containerClass,style:e.style},e.ptmi(`root`),{"data-p-severity":e.severity}),[(0,u.createVNode)(o,(0,u.mergeProps)({type:`button`,class:e.cx(`pcButton`),label:e.label,disabled:e.disabled,severity:e.severity,text:e.text,icon:e.icon,outlined:e.outlined,size:e.size,fluid:e.fluid,"aria-label":e.label,onClick:a.onDefaultButtonClick},e.buttonProps,{pt:e.ptm(`pcButton`),unstyled:e.unstyled}),(0,u.createSlots)({default:(0,u.withCtx)(function(){return[(0,u.renderSlot)(e.$slots,`default`)]}),_:2},[e.$slots.icon?{name:`icon`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`icon`,{class:(0,u.normalizeClass)(t.class)},function(){return[(0,u.createElementVNode)(`span`,(0,u.mergeProps)({class:[e.icon,t.class]},e.ptm(`pcButton`).icon,{"data-pc-section":`buttonicon`}),null,16)]})]}),key:`0`}:void 0]),1040,[`class`,`label`,`disabled`,`severity`,`text`,`icon`,`outlined`,`size`,`fluid`,`aria-label`,`onClick`,`pt`,`unstyled`]),(0,u.createVNode)(o,(0,u.mergeProps)({ref:`button`,type:`button`,class:e.cx(`pcDropdown`),disabled:e.disabled,"aria-haspopup":`true`,"aria-expanded":i.isExpanded,"aria-controls":i.isExpanded?e.$id+`_overlay`:void 0,onClick:a.onDropdownButtonClick,onKeydown:a.onDropdownKeydown,severity:e.severity,text:e.text,outlined:e.outlined,size:e.size,unstyled:e.unstyled},e.menuButtonProps,{pt:e.ptm(`pcDropdown`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,e.$slots.dropdownicon?`dropdownicon`:`menubuttonicon`,{class:(0,u.normalizeClass)(t.class)},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.menuButtonIcon||e.dropdownIcon?`span`:`ChevronDownIcon`),(0,u.mergeProps)({class:[e.dropdownIcon||e.menuButtonIcon,t.class]},e.ptm(`pcDropdown`).icon,{"data-pc-section":`menubuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-expanded`,`aria-controls`,`onClick`,`onKeydown`,`severity`,`text`,`outlined`,`size`,`unstyled`,`pt`]),(0,u.createVNode)(s,{ref:`menu`,id:e.$id+`_overlay`,model:e.model,popup:!0,autoZIndex:e.autoZIndex,baseZIndex:e.baseZIndex,appendTo:e.appendTo,unstyled:e.unstyled,pt:e.ptm(`pcMenu`)},(0,u.createSlots)({_:2},[e.$slots.menuitemicon?{name:`itemicon`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`menuitemicon`,{item:t.item,class:(0,u.normalizeClass)(t.class)})]}),key:`0`}:void 0,e.$slots.item?{name:`item`,fn:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`item`,{item:t.item,hasSubmenu:t.hasSubmenu,label:t.label,props:t.props})]}),key:`1`}:void 0]),1032,[`id`,`model`,`autoZIndex`,`baseZIndex`,`appendTo`,`unstyled`,`pt`])],16,Oh)}Dh.render=kh;var Ah=[`src`],jh={class:`menu-item`},Mh=[`src`],Nh={__name:`BDContentLibrarySplitButton`,props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:[`content-library`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=(0,u.computed)(()=>r.contentLibraryProviders.map(e=>({label:e.label||e.text,image:e.img,value:e.value,command:()=>i(`content-library`,e.value)}))),o=(0,u.computed)(()=>{let e=a.value;return e.length!==0&&r.isExternalOnly&&(e=e.slice(1)),e}),s=(0,u.computed)(()=>{let e=a.value;return r.isExternalOnly&&e.length>0?e[0].label:n(`contentLibrarySplitButton.messageTemplatesTitle`)}),c=(0,u.computed)(()=>{let e=a.value;return r.isExternalOnly&&e.length>0}),l=(0,u.computed)(()=>{let e=a.value;return e.length>0?e[0].image:``}),d=()=>{let e=a.value,t=`message-template`;r.isExternalOnly&&e.length>0&&(t=e[0].value),i(`content-library`,t)};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Dh),{class:`bd-content-library-split-button`,model:o.value,outlined:``,severity:`secondary`,onClick:d},{default:(0,u.withCtx)(()=>[c.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:l.value,alt:``},null,8,Ah)):((0,u.openBlock)(),(0,u.createBlock)(et,{key:1})),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(s.value),1)]),item:(0,u.withCtx)(({item:e})=>[(0,u.createElementVNode)(`div`,jh,[(0,u.createElementVNode)(`img`,{src:e.image,alt:``,class:`icon-image`},null,8,Mh),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.label),1)])]),_:1},8,[`model`]))}},Ph={date:``,displayTime:!0,format:`numeric`},Fh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Ih=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Fh()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_nl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`nl`,weekdays:`zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag`.split(`_`),weekdaysShort:`zo._ma._di._wo._do._vr._za.`.split(`_`),weekdaysMin:`zo_ma_di_wo_do_vr_za`.split(`_`),months:`januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december`.split(`_`),monthsShort:`jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec`.split(`_`),ordinal:function(e){return`[`+e+(e===1||e===8||e>=20?`ste`:`de`)+`]`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD-MM-YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`over %s`,past:`%s geleden`,s:`een paar seconden`,m:`een minuut`,mm:`%d minuten`,h:`een uur`,hh:`%d uur`,d:`een dag`,dd:`%d dagen`,M:`een maand`,MM:`%d maanden`,y:`een jaar`,yy:`%d jaar`}};return n.default.locale(r,null,!0),r}))})),Lh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Rh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))})),zh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))})),Bh=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),Vh=l(Fh(),1);Ih();var Hh=l(Lh(),1),Uh=l(Rh(),1),Wh=l(zh(),1),Gh=l(Bh(),1);Vh.default.extend(Hh.default),Vh.default.locale(`nl`),Vh.default.extend(Uh.default),Vh.default.extend(Wh.default),Vh.default.extend(Gh.default);var Kh=e=>e?e.charAt(0).toUpperCase()+e.slice(1):``;function qh(e,t=(0,Vh.default)()){let n=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`],!0);if(!n.isValid())return``;let r=t.startOf(`day`);if(n.isSame(r,`day`))return`Vandaag`;let i=r.subtract(1,`day`);if(n.isSame(i,`day`))return`Gisteren`;let a=r.subtract(6,`day`);if(n.isSameOrAfter(a)&&n.isBefore(r))return Kh(n.format(`dddd`));let o=r.subtract(7,`day`);return n.isSame(o)||n.isSame(t,`year`)?n.format(`D MMMM`):n.format(`DD-MM-YYYY`)}function Jh(e,t=(0,Vh.default)()){let n=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`],!0),r=e.includes(` `)&&e.includes(`:`);if(!n.isValid())return``;let i=t.startOf(`day`);if(n.isSame(i,`day`))return r?n.format(`H:mm`):`Vandaag`;let a=i.subtract(1,`day`);if(n.isSame(a,`day`))return r?`Gisteren ${n.format(`H:mm`)}`:`Gisteren`;let o=i.subtract(6,`day`);if(n.isSameOrAfter(o)&&n.isBefore(i))return Kh(r?n.format(`dddd H:mm`):n.format(`dddd`));let s=i.subtract(7,`day`);return n.isSame(s)||n.isSame(t,`year`)?r?n.format(`D MMM H:mm`):n.format(`D MMMM`):n.format(`DD-MM-YYYY`)}function Yh(e){let t=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`,`YYYY-MM-DDTHH:mm:ss`],!0),n=e.includes(` `)&&e.includes(`:`);return t.isValid()?n&&t.isSame((0,Vh.default)(),`year`)?t.format(`DD-MM-YYYY H:mm`):t.format(`DD-MM-YYYY`):``}function Xh(e){let t=(0,Vh.default)(e,[`DD-MM-YYYY HH:mm`,`YYYY-MM-DD`,`DD-MM-YYYY`,`YYYY-MM-DDTHH:mm:ss`],!0);return t.isValid()?t.format(`DD-MM-YYYY`):``}var Zh={class:`bd-date`},Qh=(0,u.defineComponent)({__name:`BDDate`,props:{date:{},displayTime:{type:Boolean,default:Ph.displayTime},format:{default:Ph.format}},setup(e){let t=e,n=(0,u.computed)(()=>t.date?t.format===`textual`?t.displayTime?Jh(t.date):qh(t.date):(t.format,t.displayTime?Yh(t.date):Xh(t.date)):``);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`span`,Zh,(0,u.toDisplayString)(n.value),1))}}),$h=(0,u.defineComponent)({__name:`BDForm`,emits:[`submit`,`reset`],setup(e,{emit:t}){let n=t;function r(){n(`submit`)}function i(){n(`reset`)}return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`form`,{onSubmit:(0,u.withModifiers)(r,[`prevent`]),onReset:(0,u.withModifiers)(i,[`prevent`])},[(0,u.renderSlot)(e.$slots,`default`)],32))}}),eg=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var tg=e=>e!==void 0,ng=Object.prototype.toString,rg=e=>ng.call(e)===`[object Object]`,ig=()=>{};function ag(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return n}function og(e,t={}){let n,r,i=ig,a=e=>{clearTimeout(e),i(),i=ig},o;return s=>{let c=(0,u.toValue)(e),l=(0,u.toValue)(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function sg(e){return Array.isArray(e)?e:[e]}function cg(e,t=200,n={}){return ag(og(t,n),e)}function lg(e,t,n){return(0,u.watch)(e,t,{...n,immediate:!0})}var ug=eg?window:void 0;eg&&window.document,eg&&window.navigator,eg&&window.location;function dg(e){let t=(0,u.toValue)(e);return t?.$el??t}function fg(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=(0,u.computed)(()=>{let t=sg((0,u.toValue)(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return lg(()=>[n.value?.map(e=>dg(e))??[ug].filter(e=>e!=null),sg((0,u.toValue)(n.value?e[1]:e[0])),sg((0,u.unref)(n.value?e[2]:e[1])),(0,u.toValue)(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=rg(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function pg(e){return JSON.parse(JSON.stringify(e))}function mg(e,t={}){let{initialValue:n=!1,focusVisible:r=!1,preventScroll:i=!1}=t,a=(0,u.shallowRef)(!1),o=(0,u.computed)(()=>dg(e)),s={passive:!0};fg(o,`focus`,e=>{var t;(!r||(t=e.target).matches?.call(t,`:focus-visible`))&&(a.value=!0)},s),fg(o,`blur`,()=>a.value=!1,s);let c=(0,u.computed)({get:()=>a.value,set(e){var t,n;!e&&a.value?(t=o.value)==null||t.blur():e&&!a.value&&((n=o.value)==null||n.focus({preventScroll:i}))}});return(0,u.watch)(o,()=>{c.value=n},{immediate:!0,flush:`post`}),{focused:c}}function hg(e,t,n,r={}){var i,a;let{clone:o=!1,passive:s=!1,eventName:c,deep:l=!1,defaultValue:d,shouldEmit:f}=r,p=(0,u.getCurrentInstance)(),m=n||p?.emit||(p==null||(i=p.$emit)==null?void 0:i.bind(p))||(p==null||(a=p.proxy)==null||(a=a.$emit)==null?void 0:a.bind(p?.proxy)),h=c;t||=`modelValue`,h||=`update:${t.toString()}`;let g=e=>o?typeof o==`function`?o(e):pg(e):e,_=()=>tg(e[t])?g(e[t]):d,v=e=>{f?f(e)&&m(h,e):m(h,e)};if(s){let n=(0,u.ref)(_()),r=!1;return(0,u.watch)(()=>e[t],e=>{r||(r=!0,n.value=g(e),(0,u.nextTick)(()=>r=!1))}),(0,u.watch)(n,n=>{!r&&(n!==e[t]||l)&&v(n)},{deep:l}),n}else return(0,u.computed)({get(){return _()},set(e){v(e)}})}var gg=[`value`,`true-value`,`false-value`,`data-checked`,`disabled`],_g=(0,u.defineComponent)({__name:`BDFormCheckbox`,props:{disabled:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:[`update:modelValue`,`change`,`input`],setup(e,{emit:t}){let{uniqueIdentifier:n}=La(),r=e,i=t,a=hg(r,`modelValue`,i),o=`form-check-input-${n.value}`,s=(0,u.computed)(()=>[`form-check`,`bd-form-checkbox`]),c=(0,u.computed)(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),l=e=>i(`change`,e.target.value);return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>(0,u.isRef)(a)?a.value=e:null,id:o,class:(0,u.normalizeClass)(c.value),type:`checkbox`,value:e.value,"true-value":e.value,"false-value":e.uncheckedValue,"data-checked":(0,u.unref)(a)===e.value,disabled:r.disabled,onChange:l},null,42,gg),[[u.vModelCheckbox,(0,u.unref)(a)]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:o},[(0,u.renderSlot)(t.$slots,`default`)]),(0,u.renderSlot)(t.$slots,`last`)],2))}}),vg={class:`invalid-feedback bd-invalid-feedback`},yg=(0,u.defineComponent)({__name:`BDFormInvalidFeedback`,props:{state:{type:[Boolean,null],default:null},text:{default:``}},setup(e){let t=e;return(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,vg,[t.state?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(He),{key:0})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Jt),{key:1})),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.text),1)]))}}),bg=Object.defineProperty,xg=(e,t,n)=>t in e?bg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sg=(e,t,n)=>xg(e,typeof t==`symbol`?t:t+``,n),Cg={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},wg=(e,t,n)=>e.replaceAll(t,``).replace(n,`.`).replace(`..`,`.`).replace(/[^.\d]/g,``),Tg=(e,t,n)=>new Intl.NumberFormat(n.number?.locale??`en`,{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:`trunc`}),Eg=(e,t=!0,n)=>{let r=n.number?.unsigned!==!0&&e.startsWith(`-`)?`-`:``,i=n.number?.fraction??0,a=Tg(0,i,n),o=a.formatToParts(1000.12),s=o.find(e=>e.type===`group`)?.value??` `,c=o.find(e=>e.type===`decimal`)?.value??`.`,l=wg(e,s,c);if(Number.isNaN(parseFloat(l)))return r;let u=l.split(`.`);u[1]!=null&&u[1].length>=1&&(a=Tg(u[1].length<=i?u[1].length:i,i,n));let d=a.format(parseFloat(l));return t?i>0&&l.endsWith(`.`)&&!l.slice(0,-1).includes(`.`)&&(d+=c):d=wg(d,s,c),r+d},Dg=e=>JSON.parse(e.replaceAll(`'`,`"`)),Og=(e,t={})=>{let n={...t};e.dataset.maska!=null&&e.dataset.maska!==``&&(n.mask=Ag(e.dataset.maska)),e.dataset.maskaEager!=null&&(n.eager=kg(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(n.reversed=kg(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(n.tokensReplace=kg(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(n.tokens=jg(e.dataset.maskaTokens));let r={};return e.dataset.maskaNumberLocale!=null&&(r.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(r.unsigned=kg(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},kg=e=>e===``?!0:!!JSON.parse(e),Ag=e=>e.startsWith(`[`)&&e.endsWith(`]`)?Dg(e):e,jg=e=>{if(e.startsWith(`{`)&&e.endsWith(`}`))return Dg(e);let t={};return e.split(`|`).forEach(e=>{let n=e.split(`:`);t[n[0]]={pattern:Mg()?new RegExp(n[1],`u`):new RegExp(n[1]),optional:n[2]===`optional`,multiple:n[2]===`multiple`,repeated:n[2]===`repeated`}}),t},Mg=()=>{try{return!0}catch{return!1}},Ng=class{constructor(e={}){Sg(this,`opts`,{}),Sg(this,`memo`,new Map);let t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...Cg,...t.tokens};for(let e of Object.values(t.tokens))typeof e.pattern==`string`&&(e.pattern=Mg()?new RegExp(e.pattern,`u`):new RegExp(e.pattern))}else t.tokens=Cg;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((e,t)=>e.length-t.length):t.mask=t.mask[0]??``),t.mask===``&&(t.mask=null),this.opts=t}masked(e){return this.process(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){let t=this.findMask(String(e));if(this.opts.mask==null||t==null)return!1;let n=this.process(String(e),t).length;return typeof this.opts.mask==`string`?n>=this.opts.mask.length:n>=t.length}findMask(e){let t=this.opts.mask;if(t==null)return null;if(typeof t==`string`)return t;if(typeof t==`function`)return t(e);let n=this.process(e,t.slice(-1).pop()??``,!1);return t.find(t=>this.process(e,t,!1).length>=n.length)??``}escapeMask(e){let t=[],n=[];return e.split(``).forEach((r,i)=>{r===`!`&&e[i-1]!==`!`?n.push(i-n.length):t.push(r)}),{mask:t.join(``),escaped:n}}process(e,t,n=!0){if(this.opts.number!=null)return Eg(e,n,this.opts);if(t==null)return e;let r=`v=${e},mr=${t},m=${+!!n}`;if(this.memo.has(r))return this.memo.get(r);let{mask:i,escaped:a}=this.escapeMask(t),o=[],s=this.opts.tokens==null?{}:this.opts.tokens,c=this.isReversed()?-1:1,l=this.isReversed()?`unshift`:`push`,u=this.isReversed()?0:i.length-1,d=this.isReversed()?()=>h>-1&&g>-1:()=>h<i.length&&g<e.length,f=e=>!this.isReversed()&&e<=u||this.isReversed()&&e>=u,p,m=-1,h=this.isReversed()?i.length-1:0,g=this.isReversed()?e.length-1:0,_=!1;for(;d();){let t=i.charAt(h),r=s[t],d=r?.transform==null?e.charAt(g):r.transform(e.charAt(g));if(!a.includes(h)&&r!=null?(d.match(r.pattern)==null?r.multiple?_&&=(h+=c,g-=c,!1):d===p?p=void 0:r.optional&&(h+=c,g-=c):(o[l](d),r.repeated?(m===-1?m=h:h===u&&h!==m&&(h=m-c),u===m&&(h-=c)):r.multiple&&(_=!0,h-=c),h+=c),g+=c):(n&&!this.isEager()&&o[l](t),d===t&&!this.isEager()?g+=c:p=t,this.isEager()||(h+=c)),this.isEager())for(;f(h)&&(s[i.charAt(h)]==null||a.includes(h));){if(n){if(o[l](i.charAt(h)),e.charAt(g)===i.charAt(h)){h+=c,g+=c;continue}}else i.charAt(h)===e.charAt(g)&&(g+=c);h+=c}}return this.memo.set(r,o.join(``)),this.memo.get(r)}},Pg=class{constructor(e,t={}){Sg(this,`items`,new Map),Sg(this,`eventAbortController`),Sg(this,`onInput`,e=>{if(e instanceof CustomEvent&&e.type===`input`&&!e.isTrusted&&!e.bubbles)return;let t=e.target,n=this.items.get(t);if(n===void 0)return;let r=`inputType`in e&&e.inputType.startsWith(`delete`),i=n.isEager(),a=r&&i&&n.unmasked(t.value)===``?``:t.value;this.fixCursor(t,r,()=>this.setValue(t,a))}),this.options=t,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==``&&e.value!==this.processInput(e)?.masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){let t=this.getOptions(this.options);for(let n of e){if(!this.items.has(n)){let{signal:e}=this.eventAbortController;n.addEventListener(`input`,this.onInput,{capture:!0,signal:e})}let e=new Ng(Og(n,t));this.items.set(n,e),queueMicrotask(()=>this.updateValue(n)),n.selectionStart===null&&e.isEager()&&console.warn("Maska: input of `%s` type is not supported",n.type)}}getInputs(e){return typeof e==`string`?Array.from(document.querySelectorAll(e)):`length`in e?Array.from(e):[e]}getOptions(e){let{onMaska:t,preProcess:n,postProcess:r,...i}=e;return i}fixCursor(e,t,n){let r=e.selectionStart,i=e.value;if(n(),r===null||r===i.length&&!t)return;let a=e.value,o=i.slice(0,r),s=a.slice(0,r),c=this.processInput(e,o)?.unmasked,l=this.processInput(e,s)?.unmasked;if(c===void 0||l===void 0)return;let u=r;o!==s&&(u+=t?a.length-i.length:c.length-l.length),e.setSelectionRange(u,u)}setValue(e,t){let n=this.processInput(e,t);n!==void 0&&(e.value=n.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(e=>e(n)):this.options.onMaska(n)),e.dispatchEvent(new CustomEvent(`maska`,{detail:n})),e.dispatchEvent(new CustomEvent(`input`,{detail:n.masked})))}processInput(e,t){let n=this.items.get(e);if(n===void 0)return;let r=t??e.value;this.options.preProcess!=null&&(r=this.options.preProcess(r));let i=n.masked(r);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:n.unmasked(r),completed:n.completed(r)}}},Fg=new WeakMap,Ig=(e,t)=>{if(e.arg==null||e.instance==null)return;let n=`setup`in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:n&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},Lg=(e,t)=>{var n;let r=e instanceof HTMLInputElement?e:e.querySelector(`input`);if(r==null||r?.type===`file`)return;let i={};if(t.value!=null&&(i=typeof t.value==`string`?{mask:t.value}:{...t.value}),t.arg!=null){let e=e=>{Ig(t,t.modifiers.unmasked?e.unmasked:t.modifiers.completed?e.completed:e.masked)};i.onMaska=i.onMaska==null?e:Array.isArray(i.onMaska)?[...i.onMaska,e]:[i.onMaska,e]}Fg.has(r)?(n=Fg.get(r))==null||n.update(i):Fg.set(r,new Pg(r,i))},Rg=[`value`,`type`],zg=(0,u.defineComponent)({__name:`BDFormInput`,props:{modelValue:{default:``},formGroupClass:{default:void 0},type:{default:`text`},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:Aa.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:[`update:modelValue`,`click`,`blur`,`enter`],setup(e,{emit:t}){let n=e,r=t,{uniqueIdentifier:i}=La(),a=hg(n,`modelValue`,r),o=`__BD__FORM__LABEL__${i.value}`,s=`__BD__FORM__GROUP__${i.value}`,c=`form-input-${n.label?n.label.replace(/ /g,`-`).toLowerCase():i.value}`,l=`validationFeedback${n.label?n.label.replace(/ /g,``):i.value}`,d=(0,u.computed)(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=(0,u.computed)(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),p=(0,u.computed)(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?l:null,"data-maska":n.mask})),m=cg(e=>{a.value=e.target.value},n.delayTimeMs);return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-form-input`,e.formGroupClass]),id:s},[(0,u.renderSlot)(t.$slots,`label`,{},()=>[e.label?((0,u.openBlock)(),(0,u.createElementBlock)(`label`,{key:0,for:c,id:o,class:(0,u.normalizeClass)([`form-label`,e.labelClass])},(0,u.toDisplayString)(e.label),3)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(e.formFieldClass)},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,(0,u.mergeProps)({value:e.modelValue,type:e.type,id:c,class:[`form-control`,d.value]},p.value,{onInput:n[0]||=(...e)=>(0,u.unref)(m)&&(0,u.unref)(m)(...e),onClick:n[1]||=e=>t.$emit(`click`),onBlur:n[2]||=e=>t.$emit(`blur`),onKeydown:n[3]||=(0,u.withKeys)(e=>t.$emit(`enter`),[`enter`])}),null,16,Rg),[[(0,u.unref)(Lg)]]),(0,u.renderSlot)(t.$slots,`default`)],2),(0,u.createVNode)(yg,{text:e.invalidFeedbackText,class:(0,u.normalizeClass)(f.value),state:e.state,id:l},null,8,[`text`,`class`,`state`])],2))}}),Bg=[`disabled`],Vg=[`label`],Hg=[`value`],Ug=[`value`],Wg=(0,u.defineComponent)({__name:`BDFormSelect`,props:{size:{default:Aa.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:``},state:{type:[Boolean,null],default:null}},emits:[`update:modelValue`,`change`,`input`],setup(e,{emit:t}){let n=e,r=t,i=hg(n,`modelValue`,r),a=(0,u.ref)(null),{focused:o}=mg(a,{initialValue:n.autofocus}),s=(0,u.computed)(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:[`xs`,`sm`,`lg`].includes(n.size)}));(0,u.watch)(()=>n.autofocus,e=>{e&&(o.value=!0)});let c=e=>{i.value=e.target.value,r(`input`,d(e.target.value))},l=e=>{r(`change`,d(e.target.value))},d=e=>{try{return JSON.parse(e)}catch{return e}};return(e,t)=>(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createElementBlock)(`select`,{class:(0,u.normalizeClass)(s.value),"onUpdate:modelValue":t[0]||=e=>(0,u.isRef)(i)?i.value=e:null,disabled:n.disabled,ref_key:`input`,ref:a,onInput:c,onChange:l},[(0,u.renderSlot)(e.$slots,`first`),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)(n.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`optgroup`,{label:e.label},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`option`,{value:JSON.stringify(e.value),key:e.value},(0,u.toDisplayString)(e.text),9,Hg))),128))],8,Vg))),256)):((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(n.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`option`,{value:e.value,key:e.value},(0,u.toDisplayString)(e.text),9,Ug))),128))],42,Bg)),[[u.vModelSelect,(0,u.unref)(i)]])}}),Gg={class:`input-group bd-input-group`},Kg=[`for`],qg=(0,u.defineComponent)({__name:`BDInputGroup`,props:{label:{default:void 0},labelForId:{default:void 0}},setup(e){let t=(0,u.useAttrs)(),n=e;return(e,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`fieldset`,Gg,[n.label?((0,u.openBlock)(),(0,u.createElementBlock)(`label`,{key:0,for:n.labelForId,class:`form-label`},(0,u.toDisplayString)(n.label),9,Kg)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)((0,u.unref)(t).class)},[(0,u.renderSlot)(e.$slots,`default`)],2)]))}}),Jg=e=>typeof e==`string`||e instanceof String,Yg={class:`bd-loader__spinner`},Xg={class:`spinner-border`,role:`status`},Zg={class:`visually-hidden`},Qg={key:0},$g={__name:`BDLoader`,props:{message:String,size:{type:String,default:`md`},stopAnimation:{type:Boolean,default:!1},isColleague:{type:Boolean,default:!1}},setup(e){let t=e,n=(0,u.computed)(()=>t.stopAnimation?`bd-loader--static`:``),r=(0,u.computed)(()=>t.isColleague?`bd-loader--colleague`:``);return(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-loader text-center`,[e.size,n.value,r.value]])},[(0,u.createElementVNode)(`div`,Yg,[(0,u.createVNode)(la),(0,u.createElementVNode)(`div`,Xg,[(0,u.createElementVNode)(`span`,Zg,(0,u.toDisplayString)(e.message),1)])]),e.message?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,Qg,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(e.message),1)])):(0,u.createCommentVNode)(``,!0)],2))}},e_={};function t_(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,(0,u.mergeProps)({class:`bd-logo`},e.$attrs,{version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`}),[...t[0]||=[(0,u.createStaticVNode)(`<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>`,2)]],16)}var n_=g(e_,[[`render`,t_]]),r_={"aria-label":`Page navigation`,class:`bd-pagination`},i_={class:`page-item`},a_=[`data-page`],o_=[`data-page`],s_={class:`page-item`},c_=[`data-page`],l_=(0,u.defineComponent)({__name:`BDPagination`,props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:[`click`,`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=hg(n,`modelValue`,r),a=(0,u.ref)(Math.ceil(n.totalRows/n.rowsPerPage)),o=(0,u.ref)([]);(0,u.watch)([()=>n.totalRows,()=>n.rowsPerPage],()=>{a.value=Math.ceil(n.totalRows/n.rowsPerPage),o.value=f(i.value)}),(0,u.onMounted)(()=>{o.value=f(i.value)});let s=(0,u.computed)(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=e=>{let t=e.currentTarget.getAttribute(`data-page`),n=Number(t);isNaN(Number(n))||(i.value=n,o.value=f(n)),r(`click`,n)},l=(e,t,n)=>n<=t?n:e==1?6:e<=4?5:1,d=(e,t,n)=>n<=t?0:e==n?6:e>n-4?5:1,f=e=>{let t=[],n=l(e,7,a.value),r=a.value>7&&e>4,i=a.value>7&&e<a.value-3,o=r&&i,s=d(e,7,a.value);for(let e=1;e<=n;e++)t.push(e);if(r&&t.push(`...`),o)for(let n=e-1;n<=e+1;n++)t.push(n);i&&t.push(`...`);for(let e=1;e<=s;e++)t.push(a.value-s+e);return t};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,r_,[(0,u.createElementVNode)(`ul`,{class:(0,u.normalizeClass)([`pagination`,s.value])},[(0,u.withDirectives)((0,u.createElementVNode)(`li`,i_,[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,"aria-label":`Previous`,onClick:c,"data-page":(0,u.unref)(i)-1},[(0,u.createVNode)((0,u.unref)(Pe))],8,a_)],512),[[u.vShow,(0,u.unref)(i)>1]]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(o.value,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:(0,u.normalizeClass)([`page-item`,{active:(0,u.unref)(i)===e,disabled:typeof e==`string`}]),key:e},[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,onClick:c,"data-page":e},(0,u.toDisplayString)(e),9,o_)],2))),128)),(0,u.withDirectives)((0,u.createElementVNode)(`li`,s_,[(0,u.createElementVNode)(`a`,{class:`page-link d-flex justify-content-center align-items-center`,"aria-label":`Next`,onClick:c,"data-page":(0,u.unref)(i)+1},[(0,u.createVNode)((0,u.unref)(Re))],8,c_)],512),[[u.vShow,(0,u.unref)(i)<a.value]])],2)]))}}),u_={class:`bd-pill`},d_=[`src`],f_={class:`bd-pill__description`},p_=[`href`],m_=[`id`,`textContent`,`title`],h_=[`id`,`textContent`,`title`],g_=(0,u.defineComponent)({__name:`BDPill`,props:{imgSrc:{default:``},uri:{default:``},uriDisplayName:{default:``},title:{default:``},subtitle:{default:``},showClose:{type:Boolean,default:!1}},emits:[`close`],setup(e,{emit:t}){let{uniqueIdentifier:n}=La(),r=e,i=(0,u.computed)(()=>r.uri),a=(0,u.computed)(()=>r.uriDisplayName===``?r.uri:r.uriDisplayName),o=(0,u.computed)(()=>r.imgSrc),s=(0,u.computed)(()=>r.title),c=(0,u.computed)(()=>r.subtitle),l=(0,u.computed)(()=>`bd-pill-title-${n.value}`),d=(0,u.computed)(()=>`bd-pill-subtitle-${n.value}`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,u_,[(0,u.createElementVNode)(`img`,{src:o.value,class:`bd-pill__logo`,alt:`logo-externe-partij`},null,8,d_),(0,u.createElementVNode)(`div`,f_,[(0,u.createElementVNode)(`a`,{href:i.value,class:`bd-pill__link`,target:`_blank`,rel:`noopener noreferrer`},[(0,u.createVNode)((0,u.unref)(Dn),{class:`bd-pill__icon-hyperlink`,style:{height:`12px`}}),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(a.value),1)],8,p_),(0,u.createElementVNode)(`span`,{class:`bd-pill__title`,id:l.value,textContent:(0,u.toDisplayString)(s.value),"data-bs-toggle":`tooltip`,title:s.value},null,8,m_),(0,u.createElementVNode)(`span`,{class:`bd-pill__subtitle`,id:d.value,textContent:(0,u.toDisplayString)(c.value),"data-bs-toggle":`tooltip`,title:c.value},null,8,h_)])]))}}),__={class:`bd-profile-picture`},v_=[`src`,`alt`],y_=(0,u.defineComponent)({__name:`BDProfileImage`,props:{src:{default:``},username:{default:null},size:{default:Aa.LG},linkText:{default:null}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>`${n.username?`${n.username}'s `:``}profielfoto`),a=()=>{r(`click`)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,__,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`rounded-circle`,n.size])},[(0,u.createElementVNode)(`img`,{src:n.src,alt:i.value},null,8,v_)],2),n.linkText?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`link`,onClick:a,textContent:(0,u.toDisplayString)(n.linkText)},null,8,[`textContent`])):(0,u.createCommentVNode)(``,!0)]))}}),b_={DANGER:`danger`,WARNING:`warning`,INFO:`info`,SUCCESS:`success`},x_=[`id`],S_={class:`toast-header`},C_={class:`toast-body`},w_=(0,u.defineComponent)({__name:`BDToast`,props:{id:{},variant:{default:b_.INFO},title:{default:``},text:{default:``}},setup(e){let t=e,n=(0,u.computed)(()=>({[`bd-toast-${t.variant}`]:!0})),r=(0,u.computed)(()=>t.variant!==b_.SUCCESS);return(e,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`toast bd-toast`,n.value]),role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`,key:t.id,id:t.id},[(0,u.createElementVNode)(`div`,S_,[r.value?((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(Un),{key:0})):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(He),{key:1})),(0,u.createElementVNode)(`h5`,null,(0,u.toDisplayString)(t.title),1),i[0]||=(0,u.createElementVNode)(`button`,{type:`button`,class:`btn-close`,"data-bs-dismiss":`toast`,"aria-label":`Close`},null,-1)]),(0,u.createElementVNode)(`div`,C_,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t.text),1)])],10,x_))}}),T_=e=>Array.isArray(e)&&e.length>0,E_=e=>Object.keys(e).map(t=>e[t]),D_=e=>Array.isArray(e)&&e.length>0,O_=e=>!e||Array.isArray(e)&&!e.length,k_={name:`BDUserInformation`,props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){let{name:e,profilePictureUri:t,extra:n,...r}=this.value,i=t&&this.showProfilePicture?(0,u.h)(`img`,{class:`bd-user-information__profile-picture`,src:t,alt:e}):null,a=[(0,u.h)(`h4`,null,e)];return this.$slots.default&&a.push(this.$slots.default()),(0,u.h)(`div`,{class:`bd-user-information`},[i,(0,u.h)(`div`,{class:`bd-user-information__detail`},[(0,u.h)(`div`,{class:`bd-user-information__header`},a),(0,u.h)(`small`,null,E_(r).filter(e=>e).join(` • `))])])}},A_={class:`bd-zoom-slider d-flex`},j_=[`max`],M_=(0,u.defineComponent)({__name:`BDZoomslider`,props:{modelValue:{},maxValue:{default:5}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=hg(n,`modelValue`,t);function i(){r.value!==0&&r.value--}function a(){r.value<n.maxValue&&r.value++}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,A_,[((0,u.openBlock)(),(0,u.createElementBlock)(`svg`,{class:`bd-zoom-slider-min-button`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,stroke:`#000000`,height:`20`,width:`20`,onClick:i},[...n[1]||=[(0,u.createElementVNode)(`g`,{transform:`matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)`},[(0,u.createElementVNode)(`path`,{d:`M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`0`})],-1)]])),(0,u.withDirectives)((0,u.createElementVNode)(`input`,{type:`range`,"onUpdate:modelValue":n[0]||=e=>(0,u.isRef)(r)?r.value=e:null,min:`0`,max:e.maxValue,class:`bd-zoom-slider-input`},null,8,j_),[[u.vModelText,(0,u.unref)(r)]]),((0,u.openBlock)(),(0,u.createElementBlock)(`svg`,{class:`bd-zoom-slider-plus-button`,viewBox:`0 0 20 20`,xmlns:`http://www.w3.org/2000/svg`,fill:`#000000`,stroke:`#000000`,height:`20`,width:`20`,onClick:a},[...n[2]||=[(0,u.createElementVNode)(`g`,{transform:`matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)`},[(0,u.createElementVNode)(`path`,{d:`M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`0`})],-1)]]))]))}}),N_={class:`attachment-list`},P_={class:`attachment-link`},F_={key:1,class:`attachment-no-download`},I_=[`href`],L_=(0,u.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:t}){let n=t,r=e=>{n(`delete`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,N_,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,P_,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`remove`,onClick:e=>r(t),"aria-label":`verwijder`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),e.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,F_,[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:2,href:t.downloadUrl},[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(t.Naam.trim()),1)],8,I_))])]))),128))]))}}),R_={class:`attachment-list`},z_={class:`attachment`},B_=[`onClick`],V_=[`src`,`alt`],H_=[`onClick`],U_=[`href`],W_={class:`btn btn-light download-button-image`},G_=[`src`,`alt`],K_=(0,u.defineComponent)({__name:`BDImageAttachmentPreviewList`,props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`,`show`],setup(e,{emit:t}){let n=e,r=t,i=e=>{r(`delete`,e)},a=(e,t)=>{e.target&&e.target.className===`img-preview`&&r(`show`,t)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`ul`,R_,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.files,t=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{class:`attachment-list__item`,key:t.CorrelationId},[(0,u.createElementVNode)(`div`,z_,[e.showDelete?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,u.withModifiers)(e=>i(t),[`prevent`])},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1},8,[`onClick`])):(0,u.createCommentVNode)(``,!0),n.noDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,onClick:e=>a(e,t)},[(0,u.createElementVNode)(`img`,{src:t.previewUrl,class:`img-preview`,alt:t.altName,loading:`lazy`},null,8,V_)],8,B_)):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,onClick:e=>a(e,t)},[n.fastDownload?((0,u.openBlock)(),(0,u.createElementBlock)(`a`,{key:0,href:t.downloadUrl,class:`download-link`},[(0,u.createElementVNode)(`button`,W_,[(0,u.createVNode)((0,u.unref)(It))])],8,U_)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`img`,{src:t.previewUrl,alt:t.altName,class:`img-preview`,loading:`lazy`},null,8,G_)],8,H_))])]))),128))]))}}),q_=e=>e?.map(e=>e.CorrelationId),J_=e=>{if(e.Naam==null)return!1;let t=e.Naam.toLowerCase();return t.endsWith(`.png`)||t.endsWith(`.jpg`)||t.endsWith(`.jpeg`)||t.endsWith(`.gif`)},Y_=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,X_=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,Z_=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,Q_=(e,t)=>t?J_(e):!J_(e),$_=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>Q_(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:Y_(e,t),previewUrl:X_(e,t),fullImageUrl:Z_(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},ev={class:`bd-chat-cloud-card`},tv={class:`bd-chat-cloud-card__header`},nv={class:`bd-chat-cloud-card__body`},rv=[`innerHTML`],iv={class:`bd-chat-cloud-card__footer`},av={key:0,class:`pills-list__wrapper`},ov={class:`pills-list__ul`},sv=(0,u.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(e,{emit:t}){let n=e,r=t,i=(0,u.computed)(()=>n.isSender?`sender`:``),a=(0,u.computed)(()=>$_(n.apiUrl,n.files,!1)),o=(0,u.computed)(()=>$_(n.apiUrl,n.files,!0)),s=()=>{r(`action`,`copy-message`)},c=e=>{r(`show-attachment`,e)};return(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:(0,u.normalizeClass)([`bd-chat-cloud`,i.value])},[(0,u.createVNode)(y_,{src:n.src,username:n.username,size:`sm`},null,8,[`src`,`username`]),(0,u.createElementVNode)(`div`,ev,[(0,u.createElementVNode)(`div`,tv,[(0,u.renderSlot)(t.$slots,`header`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.headerTitle),1)]),(0,u.createVNode)(A,{variant:`outline-primary-dark`,size:`sm`,onClick:s},{default:(0,u.withCtx)(()=>[...r[0]||=[(0,u.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,u.createElementVNode)(`div`,nv,[(0,u.renderSlot)(t.$slots,`body`,{},()=>[(0,u.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:n.message},null,8,rv)])]),(0,u.createElementVNode)(`div`,iv,[(0,u.renderSlot)(t.$slots,`footer`,{},()=>[e.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,av,[(0,u.createElementVNode)(`ul`,ov,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(g_,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0),a.value&&a.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(L_,{key:1,files:a.value},null,8,[`files`])):(0,u.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,u.openBlock)(),(0,u.createBlock)(K_,{key:2,"fast-download":!0,files:o.value,onShow:c},null,8,[`files`])):(0,u.createCommentVNode)(``,!0)])])])],2))}}),cv=(0,u.defineComponent)({__name:`BDDropdownItem`,props:{to:{default:``},target:{default:`_blank`},text:{default:void 0},rel:{default:`noopener noreferrer`}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,i=()=>{r(`click`)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,(0,u.mergeProps)({class:`bd-dropdown-item`},e.$attrs),[(0,u.createVNode)(ja,(0,u.mergeProps)({class:`dropdown-item`,onClick:i},n),{default:(0,u.withCtx)(()=>[(0,u.renderSlot)(e.$slots,`default`,{},()=>[(0,u.createTextVNode)((0,u.toDisplayString)(n.text),1)])]),_:3},16)],16))}}),lv={class:`bd-file-upload-preview`},uv={class:`preview-details`},dv=[`src`,`alt`],fv={class:`filename`},pv={key:2,class:`mark-container pending`},mv={class:`mark-container success`},hv=(0,u.defineComponent)({__name:`BDFileUploadPreview`,props:{file:{},isPending:{type:Boolean}},emits:[`remove`],setup(e,{emit:t}){let n=e,r=t,i=()=>r(`remove`,n.file);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lv,[(0,u.createElementVNode)(`div`,uv,[n.file.previewUrl?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:n.file.previewUrl,class:`preview-image`,alt:n.file.UUID},null,8,dv)):((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(dn),{key:1,class:`preview-icon`})),(0,u.createElementVNode)(`div`,fv,[(0,u.createElementVNode)(`small`,null,(0,u.toDisplayString)(n.file.name),1)]),n.isPending?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pv,[...t[1]||=[(0,u.createElementVNode)(`div`,{class:`spinner-border text-primary spinner-border-sm`,role:`status`},null,-1)]])):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:3},[(0,u.createVNode)(A,{class:`remove-button`,onClick:t[0]||=e=>i()},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(mi))]),_:1}),(0,u.createElementVNode)(`div`,mv,[(0,u.createVNode)((0,u.unref)(He))])],64))])]))}}),gv={name:`PlusIcon`,extends:Lp};function _v(e){return xv(e)||bv(e)||yv(e)||vv()}function vv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1173
1173
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yv(e,t){if(e){if(typeof e==`string`)return Sv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sv(e,t):void 0}}function bv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function xv(e){if(Array.isArray(e))return Sv(e)}function Sv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cv(e,t,n,r,i,a){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,(0,u.mergeProps)({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),_v(t[0]||=[(0,u.createElementVNode)(`path`,{d:`M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z`,fill:`currentColor`},null,-1)]),16)}gv.render=Cv;var wv={name:`TimesIcon`,extends:Lp};function Tv(e){return kv(e)||Ov(e)||Dv(e)||Ev()}function Ev(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1174
1174
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dv(e,t){if(e){if(typeof e==`string`)return Av(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Av(e,t):void 0}}function Ov(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function kv(e){if(Array.isArray(e))return Av(e)}function Av(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jv(e,t,n,r,i,a){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,(0,u.mergeProps)({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Tv(t[0]||=[(0,u.createElementVNode)(`path`,{d:`M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z`,fill:`currentColor`},null,-1)]),16)}wv.render=jv;var Mv={name:`UploadIcon`,extends:Lp};function Nv(e){return Lv(e)||Iv(e)||Fv(e)||Pv()}function Pv(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1175
1175
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fv(e,t){if(e){if(typeof e==`string`)return Rv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rv(e,t):void 0}}function Iv(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Lv(e){if(Array.isArray(e))return Rv(e)}function Rv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zv(e,t,n,r,i,a){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,(0,u.mergeProps)({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),Nv(t[0]||=[(0,u.createElementVNode)(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z`,fill:`currentColor`},null,-1)]),16)}Mv.render=zv;var Bv=pp.extend({name:`message`,style:`
|
|
@@ -1692,7 +1692,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1692
1692
|
}
|
|
1693
1693
|
`,classes:{root:function(e){return[`p-fileupload p-fileupload-${e.props.mode} p-component`]},header:`p-fileupload-header`,pcChooseButton:`p-fileupload-choose-button`,pcUploadButton:`p-fileupload-upload-button`,pcCancelButton:`p-fileupload-cancel-button`,content:`p-fileupload-content`,fileList:`p-fileupload-file-list`,file:`p-fileupload-file`,fileThumbnail:`p-fileupload-file-thumbnail`,fileInfo:`p-fileupload-file-info`,fileName:`p-fileupload-file-name`,fileSize:`p-fileupload-file-size`,pcFileBadge:`p-fileupload-file-badge`,fileActions:`p-fileupload-file-actions`,pcFileRemoveButton:`p-fileupload-file-remove-button`,basicContent:`p-fileupload-basic-content`}}),py={name:`BaseFileUpload`,extends:kp,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:`advanced`},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:`{0}: Invalid file size, file size should be smaller than {1}.`},invalidFileTypeMessage:{type:String,default:`{0}: Invalid file type, allowed file types: {1}.`},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:`Maximum number of files exceeded, limit is {0} at most.`},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null,chooseButtonProps:{type:null,default:null},uploadButtonProps:{type:Object,default:function(){return{severity:`secondary`}}},cancelButtonProps:{type:Object,default:function(){return{severity:`secondary`}}}},style:fy,provide:function(){return{$pcFileUpload:this,$parentInstance:this}}},my={name:`FileContent`,hostName:`FileUpload`,extends:kp,emits:[`remove`],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:`warn`},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`}},components:{Button:Gm,Badge:om,TimesIcon:wv}},hy=[`alt`,`src`,`width`];function gy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Badge`),s=(0,u.resolveComponent)(`TimesIcon`),c=(0,u.resolveComponent)(`Button`);return(0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(n.files,function(t,r){return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:t.name+t.type+t.size,class:e.cx(`file`)},{ref_for:!0},e.ptm(`file`)),[(0,u.createElementVNode)(`img`,(0,u.mergeProps)({role:`presentation`,class:e.cx(`fileThumbnail`),alt:t.name,src:t.objectURL,width:n.previewWidth},{ref_for:!0},e.ptm(`fileThumbnail`)),null,16,hy),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileInfo`)},{ref_for:!0},e.ptm(`fileInfo`)),[(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileName`)},{ref_for:!0},e.ptm(`fileName`)),(0,u.toDisplayString)(t.name),17),(0,u.createElementVNode)(`span`,(0,u.mergeProps)({class:e.cx(`fileSize`)},{ref_for:!0},e.ptm(`fileSize`)),(0,u.toDisplayString)(a.formatSize(t.size)),17)],16),(0,u.createVNode)(o,{value:n.badgeValue,class:(0,u.normalizeClass)(e.cx(`pcFileBadge`)),severity:n.badgeSeverity,unstyled:e.unstyled,pt:e.ptm(`pcFileBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`]),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`fileActions`)},{ref_for:!0},e.ptm(`fileActions`)),[(0,u.createVNode)(c,{onClick:function(t){return e.$emit(`remove`,r)},text:``,rounded:``,severity:`danger`,class:(0,u.normalizeClass)(e.cx(`pcFileRemoveButton`)),unstyled:e.unstyled,pt:e.ptm(`pcFileRemoveButton`)},{icon:(0,u.withCtx)(function(i){return[n.templates.fileremoveicon?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(n.templates.fileremoveicon),{key:0,class:(0,u.normalizeClass)(i.class),file:t,index:r},null,8,[`class`,`file`,`index`])):((0,u.openBlock)(),(0,u.createBlock)(s,(0,u.mergeProps)({key:1,class:i.class,"aria-hidden":`true`},{ref_for:!0},e.ptm(`pcFileRemoveButton`).icon),null,16,[`class`]))]}),_:2},1032,[`onClick`,`class`,`unstyled`,`pt`])],16)],16)}),128)}my.render=gy;function _y(e){return by(e)||yy(e)||Sy(e)||vy()}function vy(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1694
1694
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yy(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function by(e){if(Array.isArray(e))return Cy(e)}function xy(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Sy(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1695
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Sy(e,t){if(e){if(typeof e==`string`)return Cy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cy(e,t):void 0}}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wy={name:`FileUpload`,extends:py,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=xy(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=xy(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,_y(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=xy(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=xy(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&wd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&Td(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&Td(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=_y(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=_y(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Gm,ProgressBar:oy,Message:Kv,FileContent:my,PlusIcon:gv,UploadIcon:Mv,TimesIcon:wv},directives:{ripple:Nm}},Ty=[`multiple`,`accept`,`disabled`],Ey=[`accept`,`disabled`,`multiple`];function Dy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Button`),s=(0,u.resolveComponent)(`ProgressBar`),c=(0,u.resolveComponent)(`Message`),l=(0,u.resolveComponent)(`FileContent`);return a.isAdvanced?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,onChange:t[0]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},multiple:e.multiple,accept:e.accept,disabled:a.chooseDisabled},e.ptm(`input`)),null,16,Ty),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,u.renderSlot)(e.$slots,`header`,{files:i.files,uploadedFiles:i.uploadedFiles,chooseCallback:a.choose,uploadCallback:a.uploader,clearCallback:a.clear},function(){return[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:a.choose,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:a.uploadButtonLabel,onClick:a.uploader,disabled:a.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,u.mergeProps)({class:[t.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),e.showCancelButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:a.cancelButtonLabel,onClick:a.clear,disabled:a.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,u.mergeProps)({class:[t.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0)]})],16),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:t[1]||=function(){return a.onDragEnter&&a.onDragEnter.apply(a,arguments)},onDragover:t[2]||=function(){return a.onDragOver&&a.onDragOver.apply(a,arguments)},onDragleave:t[3]||=function(){return a.onDragLeave&&a.onDragLeave.apply(a,arguments)},onDrop:t[4]||=function(){return a.onDrop&&a.onDrop.apply(a,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,u.renderSlot)(e.$slots,`content`,{files:i.files,uploadedFiles:i.uploadedFiles,removeUploadedFileCallback:a.removeUploadedFile,removeFileCallback:a.remove,progress:i.progress,messages:i.messages},function(){return[a.hasFiles?((0,u.openBlock)(),(0,u.createBlock)(s,{key:0,value:i.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),a.hasFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.files,onRemove:a.remove,badgeValue:a.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0),a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.uploadedFiles,onRemove:a.removeUploadedFile,badgeValue:a.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0)]}),e.$slots.empty&&!a.hasFiles&&!a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.normalizeProps)((0,u.mergeProps)({key:0},e.ptm(`empty`))),[(0,u.renderSlot)(e.$slots,`empty`)],16)):(0,u.createCommentVNode)(``,!0)],16)],16)):a.isBasic?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:a.onBasicUploaderClick,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,u.normalizeClass)(e.cx(`filelabel`)),files:i.files},function(){return[(0,u.createElementVNode)(`span`,{class:(0,u.normalizeClass)(e.cx(`filelabel`))},(0,u.toDisplayString)(a.basicFileChosenLabel),3)]}),(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:t[5]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},onFocus:t[6]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[7]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}},e.ptm(`input`)),null,16,Ey)],16)],16)):(0,u.createCommentVNode)(``,!0)}wy.render=Dy;var Oy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`}},ky={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`}},Ay=qu({legacy:!1,locale:`nl`,messages:{en:{...Oy},nl:{...ky}}}),jy=`bottom`,My=`right`,Ny=`left`,Py=`auto`,Fy=[`top`,jy,My,Ny],Iy=`start`,Ly=`clippingParents`,Ry=`viewport`,zy=`popper`,By=`reference`,Vy=Fy.reduce(function(e,t){return e.concat([t+`-`+Iy,t+`-end`])},[]),Hy=[].concat(Fy,[Py]).reduce(function(e,t){return e.concat([t,t+`-`+Iy,t+`-end`])},[]),Uy=`beforeRead`,Wy=`read`,Gy=`afterRead`,Ky=`beforeMain`,qy=`main`,Jy=`afterMain`,Yy=`beforeWrite`,Xy=`write`,Zy=`afterWrite`,Qy=[Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy];function $y(e){return e?(e.nodeName||``).toLowerCase():null}function eb(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tb(e){return e instanceof eb(e).Element||e instanceof Element}function nb(e){return e instanceof eb(e).HTMLElement||e instanceof HTMLElement}function rb(e){return typeof ShadowRoot>`u`?!1:e instanceof eb(e).ShadowRoot||e instanceof ShadowRoot}function ib(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!nb(i)||!$y(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ab(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!nb(r)||!$y(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ob={name:`applyStyles`,enabled:!0,phase:`write`,fn:ib,effect:ab,requires:[`computeStyles`]};function sb(e){return e.split(`-`)[0]}var cb=Math.max,lb=Math.min,ub=Math.round;function db(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function fb(){return!/^((?!chrome|android).)*safari/i.test(db())}function pb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&nb(e)&&(i=e.offsetWidth>0&&ub(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ub(r.height)/e.offsetHeight||1);var o=(tb(e)?eb(e):window).visualViewport,s=!fb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function mb(e){var t=pb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gb(e){return eb(e).getComputedStyle(e)}function _b(e){return[`table`,`td`,`th`].indexOf($y(e))>=0}function vb(e){return((tb(e)?e.ownerDocument:e.document)||window.document).documentElement}function yb(e){return $y(e)===`html`?e:e.assignedSlot||e.parentNode||(rb(e)?e.host:null)||vb(e)}function bb(e){return!nb(e)||gb(e).position===`fixed`?null:e.offsetParent}function xb(e){var t=/firefox/i.test(db());if(/Trident/i.test(db())&&nb(e)&&gb(e).position===`fixed`)return null;var n=yb(e);for(rb(n)&&(n=n.host);nb(n)&&[`html`,`body`].indexOf($y(n))<0;){var r=gb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Sb(e){for(var t=eb(e),n=bb(e);n&&_b(n)&&gb(n).position===`static`;)n=bb(n);return n&&($y(n)===`html`||$y(n)===`body`&&gb(n).position===`static`)?t:n||xb(e)||t}function Cb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function wb(e,t,n){return cb(e,lb(t,n))}function Tb(e,t,n){var r=wb(e,t,n);return r>n?n:r}function Eb(){return{top:0,right:0,bottom:0,left:0}}function Db(e){return Object.assign({},Eb(),e)}function Ob(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var kb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Db(typeof e==`number`?Ob(e,Fy):e)};function Ab(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=sb(n.placement),c=Cb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=kb(i.padding,n),d=mb(a),f=c===`y`?`top`:Ny,p=c===`y`?jy:My,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Sb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=wb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function jb(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||hb(t.elements.popper,r)&&(t.elements.arrow=r))}var Mb={name:`arrow`,enabled:!0,phase:`main`,fn:Ab,effect:jb,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Nb(e){return e.split(`-`)[1]}var Pb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Fb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ub(n*i)/i||0,y:ub(r*i)/i||0}}function Ib(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Ny,b=`top`,x=window;if(l){var S=Sb(n),C=`clientHeight`,w=`clientWidth`;if(S===eb(n)&&(S=vb(n),gb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=jy;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=My;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Pb),O=u===!0?Fb({x:p,y:h},eb(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Lb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:sb(t.placement),variation:Nb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ib(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ib(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Rb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Lb,data:{}},zb={passive:!0};function Bb(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=eb(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,zb)}),s&&c.addEventListener(`resize`,n.update,zb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,zb)}),s&&c.removeEventListener(`resize`,n.update,zb)}}var Vb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Bb,data:{}},Hb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ub(e){return e.replace(/left|right|bottom|top/g,function(e){return Hb[e]})}var Wb={start:`end`,end:`start`};function Gb(e){return e.replace(/start|end/g,function(e){return Wb[e]})}function Kb(e){var t=eb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qb(e){return pb(vb(e)).left+Kb(e).scrollLeft}function Jb(e,t){var n=eb(e),r=vb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=fb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+qb(e),y:c}}function Yb(e){var t=vb(e),n=Kb(e),r=e.ownerDocument?.body,i=cb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=cb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+qb(e),s=-n.scrollTop;return gb(r||t).direction===`rtl`&&(o+=cb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Xb(e){var t=gb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Zb(e){return[`html`,`body`,`#document`].indexOf($y(e))>=0?e.ownerDocument.body:nb(e)&&Xb(e)?e:Zb(yb(e))}function Qb(e,t){t===void 0&&(t=[]);var n=Zb(e),r=n===e.ownerDocument?.body,i=eb(n),a=r?[i].concat(i.visualViewport||[],Xb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Qb(yb(a)))}function $b(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ex(e,t){var n=pb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function tx(e,t,n){return t===`viewport`?$b(Jb(e,n)):tb(t)?ex(t,n):$b(Yb(vb(e)))}function nx(e){var t=Qb(yb(e)),n=[`absolute`,`fixed`].indexOf(gb(e).position)>=0&&nb(e)?Sb(e):e;return tb(n)?t.filter(function(e){return tb(e)&&hb(e,n)&&$y(e)!==`body`}):[]}function rx(e,t,n,r){var i=t===`clippingParents`?nx(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=tx(e,n,r);return t.top=cb(i.top,t.top),t.right=lb(i.right,t.right),t.bottom=lb(i.bottom,t.bottom),t.left=cb(i.left,t.left),t},tx(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ix(e){var t=e.reference,n=e.element,r=e.placement,i=r?sb(r):null,a=r?Nb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case jy:c={x:o,y:t.y+t.height};break;case My:c={x:t.x+t.width,y:s};break;case Ny:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Cb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Iy:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function ax(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ly:s,l=n.rootBoundary,u=l===void 0?Ry:l,d=n.elementContext,f=d===void 0?zy:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Db(typeof g==`number`?Ob(g,Fy):g),v=f===`popper`?By:zy,y=e.rects.popper,b=e.elements[m?v:f],x=rx(tb(b)?b:b.contextElement||vb(e.elements.popper),c,u,o),S=pb(e.elements.reference),C=ix({reference:S,element:y,strategy:`absolute`,placement:i}),w=$b(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function ox(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Hy:c,u=Nb(r),d=u?s?Vy:Vy.filter(function(e){return Nb(e)===u}):Fy,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=ax(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[sb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function sx(e){if(sb(e)===`auto`)return[];var t=Ub(e);return[Gb(e),t,Gb(t)]}function cx(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=sb(g)===g,v=c||(_||!m?[Ub(g)]:sx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(sb(n)===`auto`?ox(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=sb(E),O=Nb(E)===Iy,ee=[`top`,jy].indexOf(D)>=0,te=ee?`width`:`height`,ne=ax(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),k=ee?O?My:Ny:O?jy:`top`;b[te]>x[te]&&(k=Ub(k));var re=Ub(k),ie=[];if(a&&ie.push(ne[D]<=0),s&&ie.push(ne[k]<=0,ne[re]<=0),ie.every(function(e){return e})){w=E,C=!1;break}S.set(E,ie)}if(C)for(var ae=m?3:1,oe=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},se=ae;se>0&&oe(se)!==`break`;se--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var lx={name:`flip`,enabled:!0,phase:`main`,fn:cx,requiresIfExists:[`offset`],data:{_skip:!1}};function ux(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dx(e){return[`top`,My,jy,Ny].some(function(t){return e[t]>=0})}function fx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ax(t,{elementContext:`reference`}),s=ax(t,{altBoundary:!0}),c=ux(o,r),l=ux(s,i,a),u=dx(c),d=dx(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var px={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:fx};function mx(e,t,n){var r=sb(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function hx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Hy.reduce(function(e,n){return e[n]=mx(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var gx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:hx};function _x(e){var t=e.state,n=e.name;t.modifiersData[n]=ix({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var vx={name:`popperOffsets`,enabled:!0,phase:`read`,fn:_x,data:{}};function yx(e){return e===`x`?`y`:`x`}function bx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=ax(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=sb(t.placement),v=Nb(t.placement),y=!v,b=Cb(_),x=yx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:Ny,te=b===`y`?jy:My,ne=b===`y`?`height`:`width`,k=S[b],re=k+g[ee],ie=k-g[te],ae=p?-w[ne]/2:0,oe=v===`start`?C[ne]:w[ne],se=v===`start`?-w[ne]:-C[ne],ce=t.elements.arrow,le=p&&ce?mb(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Eb(),de=ue[ee],fe=ue[te],pe=wb(0,C[ne],le[ne]),me=y?C[ne]/2-ae-pe-de-E.mainAxis:oe-pe-de-E.mainAxis,he=y?-C[ne]/2+ae+pe+fe+E.mainAxis:se+pe+fe+E.mainAxis,ge=t.elements.arrow&&Sb(t.elements.arrow),_e=ge?b===`y`?ge.clientTop||0:ge.clientLeft||0:0,ve=D?.[b]??0,ye=k+me-ve-_e,be=k+he-ve,xe=wb(p?lb(re,ye):re,k,p?cb(ie,be):ie);S[b]=xe,O[b]=xe-k}if(s){var Se=b===`x`?`top`:Ny,Ce=b===`x`?jy:My,we=S[x],Te=x===`y`?`height`:`width`,Ee=we+g[Se],De=we-g[Ce],Oe=[`top`,Ny].indexOf(_)!==-1,ke=D?.[x]??0,Ae=Oe?Ee:we-C[Te]-w[Te]-ke+E.altAxis,je=Oe?we+C[Te]+w[Te]-ke-E.altAxis:De,Me=p&&Oe?Tb(Ae,we,je):wb(p?Ae:Ee,we,p?je:De);S[x]=Me,O[x]=Me-we}t.modifiersData[r]=O}}var xx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:bx,requiresIfExists:[`offset`]};function Sx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cx(e){return e===eb(e)||!nb(e)?Kb(e):Sx(e)}function wx(e){var t=e.getBoundingClientRect(),n=ub(t.width)/e.offsetWidth||1,r=ub(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tx(e,t,n){n===void 0&&(n=!1);var r=nb(t),i=nb(t)&&wx(t),a=vb(t),o=pb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(($y(t)!==`body`||Xb(a))&&(s=Cx(t)),nb(t)?(c=pb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=qb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Ex(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Dx(e){var t=Ex(e);return Qy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Ox(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function kx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ax={placement:`bottom`,modifiers:[],strategy:`absolute`};function jx(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Mx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ax:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Ax,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:tb(e)?Qb(e):e.contextElement?Qb(e.contextElement):[],popper:Qb(t)};var s=Dx(kx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(jx(t,n)){i.rects={reference:Tx(t,Sb(n),i.options.strategy===`fixed`),popper:mb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Ox(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!jx(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Nx=Mx(),Px=Mx({defaultModifiers:[Vb,vx,Rb,ob]}),Fx=Mx({defaultModifiers:[Vb,vx,Rb,ob,gx,lx,xx,Mb,px]}),Ix=s({afterMain:()=>Jy,afterRead:()=>Gy,afterWrite:()=>Zy,applyStyles:()=>ob,arrow:()=>Mb,auto:()=>Py,basePlacements:()=>Fy,beforeMain:()=>Ky,beforeRead:()=>Uy,beforeWrite:()=>Yy,bottom:()=>jy,clippingParents:()=>Ly,computeStyles:()=>Rb,createPopper:()=>Fx,createPopperBase:()=>Nx,createPopperLite:()=>Px,detectOverflow:()=>ax,end:()=>`end`,eventListeners:()=>Vb,flip:()=>lx,hide:()=>px,left:()=>Ny,main:()=>qy,modifierPhases:()=>Qy,offset:()=>gx,placements:()=>Hy,popper:()=>zy,popperGenerator:()=>Mx,popperOffsets:()=>vx,preventOverflow:()=>xx,read:()=>Wy,reference:()=>By,right:()=>My,start:()=>Iy,top:()=>`top`,variationPlacements:()=>Vy,viewport:()=>Ry,write:()=>Xy}),Lx=new Map,Rx={set(e,t,n){Lx.has(e)||Lx.set(e,new Map);let r=Lx.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return Lx.has(e)&&Lx.get(e).get(t)||null},remove(e,t){if(!Lx.has(e))return;let n=Lx.get(e);n.delete(t),n.size===0&&Lx.delete(e)}},zx=1e6,Bx=1e3,Vx=`transitionend`,Hx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Ux=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Wx=e=>{do e+=Math.floor(Math.random()*zx);while(document.getElementById(e));return e},Gx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Bx)},Kx=e=>{e.dispatchEvent(new Event(Vx))},qx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Jx=e=>qx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Hx(e)):null,Yx=e=>{if(!qx(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Xx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Zx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Zx(e.parentNode):null},Qx=()=>{},$x=e=>{e.offsetHeight},eS=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,tS=[],nS=e=>{document.readyState===`loading`?(tS.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of tS)e()}),tS.push(e)):e()},rS=()=>document.documentElement.dir===`rtl`,iS=e=>{nS(()=>{let t=eS();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},aS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,oS=(e,t,n=!0)=>{if(!n){aS(e);return}let r=Gx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Vx,a),aS(e))};t.addEventListener(Vx,a),setTimeout(()=>{i||Kx(t)},r)},sS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},cS=/[^.]*(?=\..*)\.|.*/,lS=/\..*/,uS=/::\d+$/,dS={},fS=1,pS={mouseenter:`mouseover`,mouseleave:`mouseout`},mS=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`.split(`.`));function hS(e,t){return t&&`${t}::${fS++}`||e.uidEvent||fS++}function gS(e){let t=hS(e);return e.uidEvent=t,dS[t]=dS[t]||{},dS[t]}function _S(e,t){return function n(r){return TS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function vS(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return TS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function yS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function bS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=wS(e);return mS.has(a)||(a=e),[r,i,a]}function xS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=bS(t,n,r);t in pS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=gS(e),l=c[s]||(c[s]={}),u=yS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=hS(o,t.replace(cS,``)),f=a?vS(e,n,o):_S(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function SS(e,t,n,r,i){let a=yS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function CS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&SS(e,t,n,o.callable,o.delegationSelector)}function wS(e){return e=e.replace(lS,``),pS[e]||e}var H={on(e,t,n,r){xS(e,t,n,r,!1)},one(e,t,n,r){xS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=bS(t,n,r),s=o!==t,c=gS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;SS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))CS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(uS,``);(!s||t.includes(i))&&SS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=eS(),i=t!==wS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=TS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function TS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function ES(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function DS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var OS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${DS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${DS(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=ES(e.dataset[r])}return t},getDataAttribute(e,t){return ES(e.getAttribute(`data-bs-${DS(t)}`))}},kS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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,t){let n=qx(t)?OS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...qx(t)?OS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=qx(t)?`element`:Ux(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},AS=`5.3.8`,jS=class extends kS{constructor(e,t){super(),e=Jx(e),e&&(this._element=e,this._config=this._getConfig(t),Rx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Rx.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){oS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Rx.get(Jx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return AS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},MS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Hx(e)).join(`,`):null},U={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Xx(e)&&Yx(e))},getSelectorFromElement(e){let t=MS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=MS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=MS(e);return t?U.find(t):[]}},NS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;H.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Xx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},PS=`alert`,FS=`.bs.alert`,IS=`close${FS}`,LS=`closed${FS}`,RS=`fade`,zS=`show`,BS=class e extends jS{static get NAME(){return PS}close(){if(H.trigger(this._element,IS).defaultPrevented)return;this._element.classList.remove(zS);let e=this._element.classList.contains(RS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,LS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};NS(BS,`close`),iS(BS);var VS=`button`,HS=`.bs.button`,US=`.data-api`,WS=`active`,GS=`[data-bs-toggle="button"]`,KS=`click${HS}${US}`,qS=class e extends jS{static get NAME(){return VS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(WS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,KS,GS,e=>{e.preventDefault();let t=e.target.closest(GS);qS.getOrCreateInstance(t).toggle()}),iS(qS);var JS=`swipe`,YS=`.bs.swipe`,XS=`touchstart${YS}`,ZS=`touchmove${YS}`,QS=`touchend${YS}`,$S=`pointerdown${YS}`,eC=`pointerup${YS}`,tC=`touch`,nC=`pen`,rC=`pointer-event`,iC=40,aC={endCallback:null,leftCallback:null,rightCallback:null},oC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},sC=class e extends kS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return aC}static get DefaultType(){return oC}static get NAME(){return JS}dispose(){H.off(this._element,YS)}_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(),aS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=iC)return;let t=e/this._deltaX;this._deltaX=0,t&&aS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,$S,e=>this._start(e)),H.on(this._element,eC,e=>this._end(e)),this._element.classList.add(rC)):(H.on(this._element,XS,e=>this._start(e)),H.on(this._element,ZS,e=>this._move(e)),H.on(this._element,QS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===nC||e.pointerType===tC)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},cC=`carousel`,lC=`.bs.carousel`,uC=`.data-api`,dC=`ArrowLeft`,fC=`ArrowRight`,pC=500,mC=`next`,hC=`prev`,gC=`left`,_C=`right`,vC=`slide${lC}`,yC=`slid${lC}`,bC=`keydown${lC}`,xC=`mouseenter${lC}`,SC=`mouseleave${lC}`,CC=`dragstart${lC}`,wC=`load${lC}${uC}`,TC=`click${lC}${uC}`,EC=`carousel`,DC=`active`,OC=`slide`,kC=`carousel-item-end`,AC=`carousel-item-start`,jC=`carousel-item-next`,MC=`carousel-item-prev`,NC=`.active`,PC=`.carousel-item`,FC=`.active.carousel-item`,IC=`.carousel-item img`,LC=`.carousel-indicators`,RC=`[data-bs-slide], [data-bs-slide-to]`,zC=`[data-bs-ride="carousel"]`,BC={[dC]:_C,[fC]:gC},VC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},HC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},UC=class e extends jS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(LC,this._element),this._addEventListeners(),this._config.ride===EC&&this.cycle()}static get Default(){return VC}static get DefaultType(){return HC}static get NAME(){return cC}next(){this._slide(mC)}nextWhenVisible(){!document.hidden&&Yx(this._element)&&this.next()}prev(){this._slide(hC)}pause(){this._isSliding&&Kx(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){H.one(this._element,yC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){H.one(this._element,yC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?mC:hC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&H.on(this._element,bC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,xC,()=>this.pause()),H.on(this._element,SC,()=>this._maybeEnableCycle())),this._config.touch&&sC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(IC,this._element))H.on(e,CC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(gC)),rightCallback:()=>this._slide(this._directionToOrder(_C)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),pC+this._config.interval))}};this._swipeHelper=new sC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=BC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=U.findOne(NC,this._indicatorsElement);t.classList.remove(DC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(DC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===mC,i=t||sS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>H.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(vC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?AC:kC,l=r?jC:MC;i.classList.add(l),$x(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(DC),n.classList.remove(DC,l,c),this._isSliding=!1,o(yC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(OC)}_getActive(){return U.findOne(FC,this._element)}_getItems(){return U.find(PC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return rS()?e===gC?hC:mC:e===gC?mC:hC}_orderToDirection(e){return rS()?e===hC?gC:_C:e===hC?_C:gC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,TC,RC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(EC))return;e.preventDefault();let n=UC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(OS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,wC,()=>{let e=U.find(zC);for(let t of e)UC.getOrCreateInstance(t)}),iS(UC);var WC=`collapse`,GC=`.bs.collapse`,KC=`.data-api`,qC=`show${GC}`,JC=`shown${GC}`,YC=`hide${GC}`,XC=`hidden${GC}`,ZC=`click${GC}${KC}`,QC=`show`,$C=`collapse`,ew=`collapsing`,tw=`collapsed`,nw=`:scope .${$C} .${$C}`,rw=`collapse-horizontal`,iw=`width`,aw=`height`,ow=`.collapse.show, .collapse.collapsing`,sw=`[data-bs-toggle="collapse"]`,cw={parent:null,toggle:!0},lw={parent:`(null|element)`,toggle:`boolean`},uw=class e extends jS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(sw);for(let e of n){let t=U.getSelectorFromElement(e),n=U.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return cw}static get DefaultType(){return lw}static get NAME(){return WC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ow).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,qC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove($C),this._element.classList.add(ew),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(ew),this._element.classList.add($C,QC),this._element.style[n]=``,H.trigger(this._element,JC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,YC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,$x(this._element),this._element.classList.add(ew),this._element.classList.remove($C,QC);for(let e of this._triggerArray){let t=U.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(ew),this._element.classList.add($C),H.trigger(this._element,XC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(QC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Jx(e.parent),e}_getDimension(){return this._element.classList.contains(rw)?iw:aw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(sw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(nw,this._config.parent);return U.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(tw,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};H.on(document,ZC,sw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))uw.getOrCreateInstance(e,{toggle:!1}).toggle()}),iS(uw);var dw=`dropdown`,fw=`.bs.dropdown`,pw=`.data-api`,mw=`Escape`,hw=`Tab`,gw=`ArrowUp`,_w=`ArrowDown`,vw=2,yw=`hide${fw}`,bw=`hidden${fw}`,xw=`show${fw}`,Sw=`shown${fw}`,Cw=`click${fw}${pw}`,ww=`keydown${fw}${pw}`,Tw=`keyup${fw}${pw}`,Ew=`show`,Dw=`dropup`,Ow=`dropend`,kw=`dropstart`,Aw=`dropup-center`,jw=`dropdown-center`,Mw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Nw=`${Mw}.${Ew}`,Pw=`.dropdown-menu`,Fw=`.navbar`,Iw=`.navbar-nav`,Lw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Rw=rS()?`top-end`:`top-start`,zw=rS()?`top-start`:`top-end`,Bw=rS()?`bottom-end`:`bottom-start`,Vw=rS()?`bottom-start`:`bottom-end`,Hw=rS()?`left-start`:`right-start`,Uw=rS()?`right-start`:`left-start`,Ww=`top`,Gw=`bottom`,Kw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},qw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Jw=class e extends jS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,Pw)[0]||U.prev(this._element,Pw)[0]||U.findOne(Pw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Kw}static get DefaultType(){return qw}static get NAME(){return dw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Xx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,xw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Iw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Qx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Ew),this._element.classList.add(Ew),H.trigger(this._element,Sw,e)}}hide(){if(Xx(this._element)||!this._isShown())return;let 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(!H.trigger(this._element,yw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Qx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ew),this._element.classList.remove(Ew),this._element.setAttribute(`aria-expanded`,`false`),OS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,bw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!qx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${dw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Ix===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:qx(this._config.reference)?e=Jx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Fx(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ew)}_getPlacement(){let e=this._parent;if(e.classList.contains(Ow))return Hw;if(e.classList.contains(kw))return Uw;if(e.classList.contains(Aw))return Ww;if(e.classList.contains(jw))return Gw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Dw)?t?zw:Rw:t?Vw:Bw}_detectNavbar(){return this._element.closest(Fw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(OS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...aS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Lw,this._menu).filter(e=>Yx(e));n.length&&sS(n,t,e===_w,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===vw||t.type===`keyup`&&t.key!==hw)return;let n=U.find(Nw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===hw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===mw,i=[gw,_w].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Mw)?this:U.prev(this,Mw)[0]||U.next(this,Mw)[0]||U.findOne(Mw,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};H.on(document,ww,Mw,Jw.dataApiKeydownHandler),H.on(document,ww,Pw,Jw.dataApiKeydownHandler),H.on(document,Cw,Jw.clearMenus),H.on(document,Tw,Jw.clearMenus),H.on(document,Cw,Mw,function(e){e.preventDefault(),Jw.getOrCreateInstance(this).toggle()}),iS(Jw);var Yw=`backdrop`,Xw=`fade`,Zw=`show`,Qw=`mousedown.bs.${Yw}`,$w={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},eT={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},tT=class extends kS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return $w}static get DefaultType(){return eT}static get NAME(){return Yw}show(e){if(!this._config.isVisible){aS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&$x(t),t.classList.add(Zw),this._emulateAnimation(()=>{aS(e)})}hide(e){if(!this._config.isVisible){aS(e);return}this._getElement().classList.remove(Zw),this._emulateAnimation(()=>{this.dispose(),aS(e)})}dispose(){this._isAppended&&=(H.off(this._element,Qw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Xw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Jx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,Qw,()=>{aS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){oS(e,this._getElement(),this._config.isAnimated)}},nT=`focustrap`,rT=`.bs.focustrap`,iT=`focusin${rT}`,aT=`keydown.tab${rT}`,oT=`Tab`,sT=`forward`,cT=`backward`,lT={autofocus:!0,trapElement:null},uT={autofocus:`boolean`,trapElement:`element`},dT=class extends kS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return lT}static get DefaultType(){return uT}static get NAME(){return nT}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,rT),H.on(document,iT,e=>this._handleFocusin(e)),H.on(document,aT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,rT))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=U.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===cT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===oT&&(this._lastTabNavDirection=e.shiftKey?cT:sT)}},fT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,pT=`.sticky-top`,mT=`padding-right`,hT=`margin-right`,gT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mT,t=>t+e),this._setElementAttributes(fT,mT,t=>t+e),this._setElementAttributes(pT,hT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,mT),this._resetElementAttributes(fT,mT),this._resetElementAttributes(pT,hT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&OS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=OS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}OS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(qx(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},_T=`modal`,vT=`.bs.modal`,yT=`.data-api`,bT=`Escape`,xT=`hide${vT}`,ST=`hidePrevented${vT}`,CT=`hidden${vT}`,wT=`show${vT}`,TT=`shown${vT}`,ET=`resize${vT}`,DT=`click.dismiss${vT}`,OT=`mousedown.dismiss${vT}`,kT=`keydown.dismiss${vT}`,AT=`click${vT}${yT}`,jT=`modal-open`,MT=`fade`,NT=`show`,PT=`modal-static`,FT=`.modal.show`,IT=`.modal-dialog`,LT=`.modal-body`,RT=`[data-bs-toggle="modal"]`,zT={backdrop:!0,focus:!0,keyboard:!0},BT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},VT=class e extends jS{constructor(e,t){super(e,t),this._dialog=U.findOne(IT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gT,this._addEventListeners()}static get Default(){return zT}static get DefaultType(){return BT}static get NAME(){return _T}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,wT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(jT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,xT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(NT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,vT),H.off(this._dialog,vT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new tT({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new dT({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;let t=U.findOne(LT,this._dialog);t&&(t.scrollTop=0),$x(this._element),this._element.classList.add(NT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,TT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,kT,e=>{if(e.key===bT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,ET,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,OT,e=>{H.one(this._element,DT,t=>{if(!(this._element!==e.target||this._element!==t.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(jT),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,CT)})}_isAnimated(){return this._element.classList.contains(MT)}_triggerBackdropTransition(){if(H.trigger(this._element,ST).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(PT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(PT),this._queueCallback(()=>{this._element.classList.remove(PT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=rS()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=rS()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};H.on(document,AT,RT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,wT,e=>{e.defaultPrevented||H.one(t,CT,()=>{Yx(this)&&this.focus()})});let n=U.findOne(FT);n&&VT.getInstance(n).hide(),VT.getOrCreateInstance(t).toggle(this)}),NS(VT),iS(VT);var HT=`offcanvas`,UT=`.bs.offcanvas`,WT=`.data-api`,GT=`load${UT}${WT}`,KT=`Escape`,qT=`show`,JT=`showing`,YT=`hiding`,XT=`offcanvas-backdrop`,ZT=`.offcanvas.show`,QT=`show${UT}`,$T=`shown${UT}`,eE=`hide${UT}`,tE=`hidePrevented${UT}`,nE=`hidden${UT}`,rE=`resize${UT}`,iE=`click${UT}${WT}`,aE=`keydown.dismiss${UT}`,oE=`[data-bs-toggle="offcanvas"]`,sE={backdrop:!0,keyboard:!0,scroll:!1},cE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},lE=class e extends jS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return sE}static get DefaultType(){return cE}static get NAME(){return HT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,QT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new gT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(JT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qT),this._element.classList.remove(JT),H.trigger(this._element,$T,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,eE).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(YT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(qT,YT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new gT().reset(),H.trigger(this._element,nE)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,tE);return}this.hide()},t=!!this._config.backdrop;return new tT({className:XT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new dT({trapElement:this._element})}_addEventListeners(){H.on(this._element,aE,e=>{if(e.key===KT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,tE)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};H.on(document,iE,oE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Xx(this))return;H.one(t,nE,()=>{Yx(this)&&this.focus()});let n=U.findOne(ZT);n&&n!==t&&lE.getInstance(n).hide(),lE.getOrCreateInstance(t).toggle(this)}),H.on(window,GT,()=>{for(let e of U.find(ZT))lE.getOrCreateInstance(e).show()}),H.on(window,rE,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&lE.getOrCreateInstance(e).hide()}),NS(lE),iS(lE);var uE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},dE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),fE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?dE.has(n)?!!fE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function mE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)pE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var hE=`TemplateFactory`,gE={allowList:uE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},_E={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},vE={entry:`(string|element|function|null)`,selector:`(string|element)`},yE=class extends kS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return gE}static get DefaultType(){return _E}static get NAME(){return hE}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},vE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(qx(t)){this._putElementInTemplate(Jx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?mE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return aS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},bE=`tooltip`,xE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),SE=`fade`,CE=`modal`,wE=`show`,TE=`.tooltip-inner`,EE=`.${CE}`,DE=`hide.bs.modal`,OE=`hover`,kE=`focus`,AE=`click`,jE=`manual`,ME=`hide`,NE=`hidden`,PE=`show`,FE=`shown`,IE=`inserted`,LE=`click`,RE=`focusin`,zE=`focusout`,BE=`mouseenter`,VE=`mouseleave`,HE={AUTO:`auto`,TOP:`top`,RIGHT:rS()?`left`:`right`,BOTTOM:`bottom`,LEFT:rS()?`right`:`left`},UE={allowList:uE,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`},WE={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`},GE=class e extends jS{constructor(e,t){if(Ix===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),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 UE}static get DefaultType(){return WE}static get NAME(){return bE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(EE),DE,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=H.trigger(this._element,this.constructor.eventName(PE)),t=(Zx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),H.trigger(this._element,this.constructor.eventName(IE))),this._popper=this._createPopper(n),n.classList.add(wE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Qx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(FE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(ME)).defaultPrevented)){if(this._getTipElement().classList.remove(wE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Qx);this._activeTrigger[AE]=!1,this._activeTrigger[kE]=!1,this._activeTrigger[OE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(NE)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(SE,wE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Wx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(SE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new yE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[TE]: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(SE)}_isShown(){return this.tip&&this.tip.classList.contains(wE)}_createPopper(e){let t=HE[aS(this._config.placement,[this,e,this._element]).toUpperCase()];return Fx(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return aS(e,[this._element,this._element])}_getPopperConfig(e){let t={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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...aS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)H.on(this._element,this.constructor.eventName(LE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[AE]=!(t._isShown()&&t._activeTrigger[AE]),t.toggle()});else if(t!==jE){let e=t===OE?this.constructor.eventName(BE):this.constructor.eventName(RE),n=t===OE?this.constructor.eventName(VE):this.constructor.eventName(zE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?kE:OE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?kE:OE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(EE),DE,this._hideModalHandler)}_fixTitle(){let 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,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=OS.getDataAttributes(this._element);for(let e of Object.keys(t))xE.has(e)&&delete t[e];return e={...t,...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:Jx(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};iS(GE);var KE=`popover`,qE=`.popover-header`,JE=`.popover-body`,YE={...GE.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`},XE={...GE.DefaultType,content:`(null|string|element|function)`},ZE=class e extends GE{static get Default(){return YE}static get DefaultType(){return XE}static get NAME(){return KE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[qE]:this._getTitle(),[JE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};iS(ZE);var QE=`scrollspy`,$E=`.bs.scrollspy`,eD=`.data-api`,tD=`activate${$E}`,nD=`click${$E}`,rD=`load${$E}${eD}`,iD=`dropdown-item`,aD=`active`,oD=`[data-bs-spy="scroll"]`,sD=`[href]`,cD=`.nav, .list-group`,lD=`.nav-link`,uD=`${lD}, .nav-item > ${lD}, .list-group-item`,dD=`.dropdown`,fD=`.dropdown-toggle`,pD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},mD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},hD=class e extends jS{constructor(e,t){super(e,t),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 pD}static get DefaultType(){return mD}static get NAME(){return QE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Jx(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,nD),H.on(this._config.target,nD,sD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=U.find(sD,this._config.target);for(let t of e){if(!t.hash||Xx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Yx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(aD),this._activateParents(e),H.trigger(this._element,tD,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iD)){U.findOne(fD,e.closest(dD)).classList.add(aD);return}for(let t of U.parents(e,cD))for(let e of U.prev(t,uD))e.classList.add(aD)}_clearActiveClass(e){e.classList.remove(aD);let t=U.find(`${sD}.${aD}`,e);for(let e of t)e.classList.remove(aD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(window,rD,()=>{for(let e of U.find(oD))hD.getOrCreateInstance(e)}),iS(hD);var gD=`tab`,_D=`.bs.tab`,vD=`hide${_D}`,yD=`hidden${_D}`,bD=`show${_D}`,xD=`shown${_D}`,SD=`click${_D}`,CD=`keydown${_D}`,wD=`load${_D}`,TD=`ArrowLeft`,ED=`ArrowRight`,DD=`ArrowUp`,OD=`ArrowDown`,kD=`Home`,AD=`End`,jD=`active`,MD=`fade`,ND=`show`,PD=`dropdown`,FD=`.dropdown-toggle`,ID=`.dropdown-menu`,LD=`:not(${FD})`,RD=`.list-group, .nav, [role="tablist"]`,zD=`.nav-item, .list-group-item`,BD=`.nav-link${LD}, .list-group-item${LD}, [role="tab"]${LD}`,VD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,HD=`${BD}, ${VD}`,UD=`.${jD}[data-bs-toggle="tab"], .${jD}[data-bs-toggle="pill"], .${jD}[data-bs-toggle="list"]`,WD=class e extends jS{constructor(e){super(e),this._parent=this._element.closest(RD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,CD,e=>this._keydown(e)))}static get NAME(){return gD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,vD,{relatedTarget:e}):null;H.trigger(e,bD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(jD),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(ND);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,xD,{relatedTarget:t})},e,e.classList.contains(MD)))}_deactivate(e,t){e&&(e.classList.remove(jD),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(ND);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,yD,{relatedTarget:t})},e,e.classList.contains(MD)))}_keydown(t){if(![TD,ED,DD,OD,kD,AD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Xx(e)),r;if([kD,AD].includes(t.key))r=n[t.key===kD?0:n.length-1];else{let e=[ED,OD].includes(t.key);r=sS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(HD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=U.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(PD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(FD,jD),r(ID,ND),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(jD)}_getInnerElement(e){return e.matches(HD)?e:U.findOne(HD,e)}_getOuterElement(e){return e.closest(zD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,SD,VD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Xx(this)&&WD.getOrCreateInstance(this).show()}),H.on(window,wD,()=>{for(let e of U.find(UD))WD.getOrCreateInstance(e)}),iS(WD);var GD=`toast`,KD=`.bs.toast`,qD=`mouseover${KD}`,JD=`mouseout${KD}`,YD=`focusin${KD}`,XD=`focusout${KD}`,ZD=`hide${KD}`,QD=`hidden${KD}`,$D=`show${KD}`,eO=`shown${KD}`,tO=`fade`,nO=`hide`,rO=`show`,iO=`showing`,aO={animation:`boolean`,autohide:`boolean`,delay:`number`},oO={animation:!0,autohide:!0,delay:5e3},sO=class e extends jS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oO}static get DefaultType(){return aO}static get NAME(){return GD}show(){H.trigger(this._element,$D).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(tO),this._element.classList.remove(nO),$x(this._element),this._element.classList.add(rO,iO),this._queueCallback(()=>{this._element.classList.remove(iO),H.trigger(this._element,eO),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,ZD).defaultPrevented||(this._element.classList.add(iO),this._queueCallback(()=>{this._element.classList.add(nO),this._element.classList.remove(iO,rO),H.trigger(this._element,QD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rO),super.dispose()}isShown(){return this._element.classList.contains(rO)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,qD,e=>this._onInteraction(e,!0)),H.on(this._element,JD,e=>this._onInteraction(e,!1)),H.on(this._element,YD,e=>this._onInteraction(e,!0)),H.on(this._element,XD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};NS(sO),iS(sO);function cO(e=void 0){let t=e=>a(`Succesvol`,e,b_.SUCCESS),n=e=>a(`Waarschuwing`,e,b_.WARNING),r=e=>a(`Informatie`,e,b_.INFO),i=e=>a(`Mislukt`,e,b_.DANGER);function a(t,n,r){let i=`toast-${Ia()}`,a={id:i,variant:r,title:t,text:n},s=document.querySelector(`.toast-container`);if(!s){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let c=(0,u.h)(w_,a),l=(0,u.createApp)({render:()=>c}).mount(document.createElement(`div`));s.appendChild(l.$el);let d=document.querySelector(`#${i}`);d&&(sO.getOrCreateInstance(d,e).show(),o(d))}function o(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:t,showInformationToast:r,showWarningToast:n,showDangerToast:i}}var lO={class:`bd-file-upload`},uO={class:`flex align-items-center justify-content-between gap-2`},dO={key:0,class:`preview-container`},fO=(0,u.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let{showDangerToast:n}=cO(),{t:r}=Ay.global,i=e,a=t,o=(0,u.ref)(null),s=(0,u.ref)([]);(0,u.watch)(()=>i.modelValue,e=>{o.value&&(o.value.files=o.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let c=(0,u.computed)(()=>({variant:xa.PRIMARY,size:Aa.SM})),l=hg(i,`modelValue`,a),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];s.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:i.token},body:t};f(e,await(await fetch(i.url,n)).json())}catch{n(i.errorMessage||r(`fileUpload.errorMessage`))}}s.value=[],o.value&&o.value.clear()},f=(e,t)=>{let n=s.value.findIndex(t=>t.name==e.name);n!==-1&&s.value.splice(n,1),l.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=l.value.files.indexOf(e);t!==-1&&l.value.files.splice(t,1),t=s.value.indexOf(e),t!==-1&&s.value.splice(t,1)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lO,[(0,u.createVNode)((0,u.unref)(wy),{ref_key:`fileUploadRef`,ref:o,multiple:i.multiple,"max-file-size":10485760,accept:i.acceptedFiles,auto:!0,"max-files":i.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,u.withCtx)(({chooseCallback:e})=>[(0,u.createElementVNode)(`div`,uO,[(0,u.createVNode)(A,(0,u.mergeProps)(c.value,{onClick:e}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(i.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,u.withCtx)(()=>[s.value||(0,u.unref)(l)&&(0,u.unref)(l).files&&(0,u.unref)(l).files.length!==0?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dO,[(0,u.unref)(l)&&(0,u.unref)(l).files?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)((0,u.unref)(l).files,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(hv,{key:t,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(s.value,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(hv,{key:t,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0)])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),pO=[`id`,`value`,`disabled`],mO=[`for`],hO={class:`invalid-feedback`},gO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Ju(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(A,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,pO),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,mO)]))),128))],2),(0,u.createElementVNode)(`div`,hO,[(0,u.createVNode)(Jt),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}};function _O(e){this.content=e}_O.prototype={constructor:_O,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new _O(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new _O(n)},addToStart:function(e,t){return new _O([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new _O(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new _O(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=_O.from(e),e.size?new _O(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=_O.from(e),e.size?new _O(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=_O.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},_O.from=function(e){if(e instanceof _O)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new _O(t)};function vO(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&xO(e.charCodeAt(r-1))&&bO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=vO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function yO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&xO(e.charCodeAt(i-1))&&bO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=yO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function bO(e){return e>=56320&&e<57344}function xO(e){return e>=55296&&e<56320}var W=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return vO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return yO(this,e,t,n)}findIndex(e){if(e==0)return CO(0,e);if(e==this.size)return CO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?CO(t+1,i):CO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};W.empty=new W([],0);var SO={index:0,offset:0};function CO(e,t){return SO.index=e,SO.offset=t,SO}function wO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!wO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!wO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var G=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};G.none=[];var TO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=DO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(EO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(W.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(W.empty,0,0);function EO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(EO(a.content,t-i-1,n-i-1)))}function DO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=DO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function OO(e,t,n){if(n.openStart>e.depth)throw new TO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new TO(`Inconsistent open depths`);return kO(e,t,n,0)}function kO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=kO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return PO(a,IO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return PO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=LO(n,e);return PO(a,FO(e,i,o,t,r))}}function AO(e,t){if(!t.type.compatibleContent(e.type))throw new TO(`Cannot join `+t.type.name+` onto `+e.type.name)}function jO(e,t,n){let r=e.node(n);return AO(r,t.node(n)),r}function MO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function NO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(MO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)MO(i.child(e),r);t&&t.depth==n&&t.textOffset&&MO(t.nodeBefore,r)}function PO(e,t){if(!e.type.validContent(t))throw new TO(`Invalid content for node `+e.type.name);return e.copy(t)}function FO(e,t,n,r,i){let a=e.depth>i&&jO(e,t,i+1),o=r.depth>i&&jO(n,r,i+1),s=[];return NO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(AO(a,o),MO(PO(a,FO(e,t,n,r,i+1)),s)):(a&&MO(PO(a,IO(e,t,i+1)),s),NO(t,n,i,s),o&&MO(PO(o,IO(n,r,i+1)),s)),NO(r,null,i,s),new W(s)}function IO(e,t,n){let r=[];return NO(null,e,n,r),e.depth>n&&MO(PO(jO(e,t,n+1),IO(e,t,n+1)),r),NO(t,null,n,r),new W(r)}function LO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(W.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var RO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return G.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new HO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=VO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else VO.set(t,r=new zO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%BO,i}},zO=class{constructor(){this.elts=[],this.i=0}},BO=12,VO=new WeakMap,HO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},UO=Object.create(null),WO=class e{constructor(e,t,n,r=G.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||W.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&wO(this.attrs,t||e.defaultAttrs||UO)&&G.sameSet(this.marks,n||G.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return OO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return RO.resolveCached(this,e)}resolveNoCache(e){return RO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),KO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=W.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=G.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!G.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=W.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};WO.prototype.text=void 0;var GO=class e extends WO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):KO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function KO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var qO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new JO(t,n);if(r.next==null)return e.empty;let i=YO(r);r.next&&r.err(`Unexpected trailing text`);let a=ak(nk(i));return ok(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return W.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1695
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Sy(e,t){if(e){if(typeof e==`string`)return Cy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cy(e,t):void 0}}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var wy={name:`FileUpload`,extends:py,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=xy(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=xy(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,_y(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=xy(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=xy(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&wd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&Td(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&Td(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=_y(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=_y(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Gm,ProgressBar:oy,Message:Kv,FileContent:my,PlusIcon:gv,UploadIcon:Mv,TimesIcon:wv},directives:{ripple:Nm}},Ty=[`multiple`,`accept`,`disabled`],Ey=[`accept`,`disabled`,`multiple`];function Dy(e,t,n,r,i,a){var o=(0,u.resolveComponent)(`Button`),s=(0,u.resolveComponent)(`ProgressBar`),c=(0,u.resolveComponent)(`Message`),l=(0,u.resolveComponent)(`FileContent`);return a.isAdvanced?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,onChange:t[0]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},multiple:e.multiple,accept:e.accept,disabled:a.chooseDisabled},e.ptm(`input`)),null,16,Ty),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,u.renderSlot)(e.$slots,`header`,{files:i.files,uploadedFiles:i.uploadedFiles,chooseCallback:a.choose,uploadCallback:a.uploader,clearCallback:a.clear},function(){return[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:a.choose,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:a.uploadButtonLabel,onClick:a.uploader,disabled:a.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,u.mergeProps)({class:[t.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),e.showCancelButton?((0,u.openBlock)(),(0,u.createBlock)(o,(0,u.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:a.cancelButtonLabel,onClick:a.clear,disabled:a.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,u.mergeProps)({class:[t.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0)]})],16),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:t[1]||=function(){return a.onDragEnter&&a.onDragEnter.apply(a,arguments)},onDragover:t[2]||=function(){return a.onDragOver&&a.onDragOver.apply(a,arguments)},onDragleave:t[3]||=function(){return a.onDragLeave&&a.onDragLeave.apply(a,arguments)},onDrop:t[4]||=function(){return a.onDrop&&a.onDrop.apply(a,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,u.renderSlot)(e.$slots,`content`,{files:i.files,uploadedFiles:i.uploadedFiles,removeUploadedFileCallback:a.removeUploadedFile,removeFileCallback:a.remove,progress:i.progress,messages:i.messages},function(){return[a.hasFiles?((0,u.openBlock)(),(0,u.createBlock)(s,{key:0,value:i.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,u.createCommentVNode)(``,!0),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),a.hasFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:1,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.files,onRemove:a.remove,badgeValue:a.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0),a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:2,class:(0,u.normalizeClass)(e.cx(`fileList`))},[(0,u.createVNode)(l,{files:i.uploadedFiles,onRemove:a.removeUploadedFile,badgeValue:a.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,u.createCommentVNode)(``,!0)]}),e.$slots.empty&&!a.hasFiles&&!a.hasUploadedFiles?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.normalizeProps)((0,u.mergeProps)({key:0},e.ptm(`empty`))),[(0,u.renderSlot)(e.$slots,`empty`)],16)):(0,u.createCommentVNode)(``,!0)],16)],16)):a.isBasic?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(i.messages,function(t){return(0,u.openBlock)(),(0,u.createBlock)(c,{key:t,severity:`error`,onClose:a.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,u.withCtx)(function(){return[(0,u.createTextVNode)((0,u.toDisplayString)(t),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,u.createElementVNode)(`div`,(0,u.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,u.createVNode)(o,(0,u.mergeProps)({label:a.chooseButtonLabel,class:a.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:a.onBasicUploaderClick,onKeydown:(0,u.withKeys)(a.choose,[`enter`]),onFocus:a.onFocus,onBlur:a.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,u.withCtx)(function(t){return[(0,u.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,u.mergeProps)({class:[t.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,u.createCommentVNode)(``,!0):(0,u.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,u.normalizeClass)(e.cx(`filelabel`)),files:i.files},function(){return[(0,u.createElementVNode)(`span`,{class:(0,u.normalizeClass)(e.cx(`filelabel`))},(0,u.toDisplayString)(a.basicFileChosenLabel),3)]}),(0,u.createElementVNode)(`input`,(0,u.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:t[5]||=function(){return a.onFileSelect&&a.onFileSelect.apply(a,arguments)},onFocus:t[6]||=function(){return a.onFocus&&a.onFocus.apply(a,arguments)},onBlur:t[7]||=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}},e.ptm(`input`)),null,16,Ey)],16)],16)):(0,u.createCommentVNode)(``,!0)}wy.render=Dy;var Oy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`}},ky={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`},videoCallTemplate:{fullScreen:`Volledig scherm`,miniPlayer:`Mini player`,shareScreen:`Scherm delen`,stopSharingScreen:`Stop scherm delen`,signalStrength:{weak:`Zwak signaal`,steady:`Matig signaal`,strong:`Sterk signaal`},serviceDesk:`Servicedesk`,testCall:`Doe de beeldbeltest`,endCall:`Gesprek beëindigen`,placeholderSettingsHelpTitle:`Problemen met de verbinding?`,placeholderSettingsHelpMessage:`Sluit het gesprek en probeer opnieuw te bellen.`,messageWhenVideoCallHangedUp:`Er is opgehangen.`,messageWhenVideoCallDeclined:`Er kon op dit moment niet worden opgenomen.`,messageWhenDevicePermissionDenied:`Er kan geen gesprek worden gestart`,permissionDeniedForVideo:`Geen toegang beschikbaar tot de camera`,permissionDeniedForAudio:`Er is geen toegang beschikbaar tot uw microfoon`,closeWindow:`Venster sluiten`,switchCamera:`Wissel camera`,hasNoAvailableCamera:`Er is geen camera beschikbaar.`,hasOneAvailableCamera:`Er is één camera beschikbaar.`,hasMultipleAvailableCameras:`Er zijn meerdere camera's beschikbaar.`}},Ay=qu({legacy:!1,locale:`nl`,messages:{en:{...Oy},nl:{...ky}}}),jy=`bottom`,My=`right`,Ny=`left`,Py=`auto`,Fy=[`top`,jy,My,Ny],Iy=`start`,Ly=`clippingParents`,Ry=`viewport`,zy=`popper`,By=`reference`,Vy=Fy.reduce(function(e,t){return e.concat([t+`-`+Iy,t+`-end`])},[]),Hy=[].concat(Fy,[Py]).reduce(function(e,t){return e.concat([t,t+`-`+Iy,t+`-end`])},[]),Uy=`beforeRead`,Wy=`read`,Gy=`afterRead`,Ky=`beforeMain`,qy=`main`,Jy=`afterMain`,Yy=`beforeWrite`,Xy=`write`,Zy=`afterWrite`,Qy=[Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy,Zy];function $y(e){return e?(e.nodeName||``).toLowerCase():null}function eb(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tb(e){return e instanceof eb(e).Element||e instanceof Element}function nb(e){return e instanceof eb(e).HTMLElement||e instanceof HTMLElement}function rb(e){return typeof ShadowRoot>`u`?!1:e instanceof eb(e).ShadowRoot||e instanceof ShadowRoot}function ib(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!nb(i)||!$y(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ab(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!nb(r)||!$y(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ob={name:`applyStyles`,enabled:!0,phase:`write`,fn:ib,effect:ab,requires:[`computeStyles`]};function sb(e){return e.split(`-`)[0]}var cb=Math.max,lb=Math.min,ub=Math.round;function db(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function fb(){return!/^((?!chrome|android).)*safari/i.test(db())}function pb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&nb(e)&&(i=e.offsetWidth>0&&ub(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ub(r.height)/e.offsetHeight||1);var o=(tb(e)?eb(e):window).visualViewport,s=!fb()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function mb(e){var t=pb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function gb(e){return eb(e).getComputedStyle(e)}function _b(e){return[`table`,`td`,`th`].indexOf($y(e))>=0}function vb(e){return((tb(e)?e.ownerDocument:e.document)||window.document).documentElement}function yb(e){return $y(e)===`html`?e:e.assignedSlot||e.parentNode||(rb(e)?e.host:null)||vb(e)}function bb(e){return!nb(e)||gb(e).position===`fixed`?null:e.offsetParent}function xb(e){var t=/firefox/i.test(db());if(/Trident/i.test(db())&&nb(e)&&gb(e).position===`fixed`)return null;var n=yb(e);for(rb(n)&&(n=n.host);nb(n)&&[`html`,`body`].indexOf($y(n))<0;){var r=gb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Sb(e){for(var t=eb(e),n=bb(e);n&&_b(n)&&gb(n).position===`static`;)n=bb(n);return n&&($y(n)===`html`||$y(n)===`body`&&gb(n).position===`static`)?t:n||xb(e)||t}function Cb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function wb(e,t,n){return cb(e,lb(t,n))}function Tb(e,t,n){var r=wb(e,t,n);return r>n?n:r}function Eb(){return{top:0,right:0,bottom:0,left:0}}function Db(e){return Object.assign({},Eb(),e)}function Ob(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var kb=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Db(typeof e==`number`?Ob(e,Fy):e)};function Ab(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=sb(n.placement),c=Cb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=kb(i.padding,n),d=mb(a),f=c===`y`?`top`:Ny,p=c===`y`?jy:My,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Sb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=wb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function jb(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||hb(t.elements.popper,r)&&(t.elements.arrow=r))}var Mb={name:`arrow`,enabled:!0,phase:`main`,fn:Ab,effect:jb,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Nb(e){return e.split(`-`)[1]}var Pb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Fb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ub(n*i)/i||0,y:ub(r*i)/i||0}}function Ib(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Ny,b=`top`,x=window;if(l){var S=Sb(n),C=`clientHeight`,w=`clientWidth`;if(S===eb(n)&&(S=vb(n),gb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=jy;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=My;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Pb),O=u===!0?Fb({x:p,y:h},eb(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Lb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:sb(t.placement),variation:Nb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ib(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ib(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Rb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Lb,data:{}},zb={passive:!0};function Bb(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=eb(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,zb)}),s&&c.addEventListener(`resize`,n.update,zb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,zb)}),s&&c.removeEventListener(`resize`,n.update,zb)}}var Vb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:Bb,data:{}},Hb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ub(e){return e.replace(/left|right|bottom|top/g,function(e){return Hb[e]})}var Wb={start:`end`,end:`start`};function Gb(e){return e.replace(/start|end/g,function(e){return Wb[e]})}function Kb(e){var t=eb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qb(e){return pb(vb(e)).left+Kb(e).scrollLeft}function Jb(e,t){var n=eb(e),r=vb(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=fb();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+qb(e),y:c}}function Yb(e){var t=vb(e),n=Kb(e),r=e.ownerDocument?.body,i=cb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=cb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+qb(e),s=-n.scrollTop;return gb(r||t).direction===`rtl`&&(o+=cb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Xb(e){var t=gb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Zb(e){return[`html`,`body`,`#document`].indexOf($y(e))>=0?e.ownerDocument.body:nb(e)&&Xb(e)?e:Zb(yb(e))}function Qb(e,t){t===void 0&&(t=[]);var n=Zb(e),r=n===e.ownerDocument?.body,i=eb(n),a=r?[i].concat(i.visualViewport||[],Xb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Qb(yb(a)))}function $b(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ex(e,t){var n=pb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function tx(e,t,n){return t===`viewport`?$b(Jb(e,n)):tb(t)?ex(t,n):$b(Yb(vb(e)))}function nx(e){var t=Qb(yb(e)),n=[`absolute`,`fixed`].indexOf(gb(e).position)>=0&&nb(e)?Sb(e):e;return tb(n)?t.filter(function(e){return tb(e)&&hb(e,n)&&$y(e)!==`body`}):[]}function rx(e,t,n,r){var i=t===`clippingParents`?nx(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=tx(e,n,r);return t.top=cb(i.top,t.top),t.right=lb(i.right,t.right),t.bottom=lb(i.bottom,t.bottom),t.left=cb(i.left,t.left),t},tx(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ix(e){var t=e.reference,n=e.element,r=e.placement,i=r?sb(r):null,a=r?Nb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case jy:c={x:o,y:t.y+t.height};break;case My:c={x:t.x+t.width,y:s};break;case Ny:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Cb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Iy:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function ax(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Ly:s,l=n.rootBoundary,u=l===void 0?Ry:l,d=n.elementContext,f=d===void 0?zy:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Db(typeof g==`number`?Ob(g,Fy):g),v=f===`popper`?By:zy,y=e.rects.popper,b=e.elements[m?v:f],x=rx(tb(b)?b:b.contextElement||vb(e.elements.popper),c,u,o),S=pb(e.elements.reference),C=ix({reference:S,element:y,strategy:`absolute`,placement:i}),w=$b(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function ox(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Hy:c,u=Nb(r),d=u?s?Vy:Vy.filter(function(e){return Nb(e)===u}):Fy,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=ax(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[sb(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function sx(e){if(sb(e)===`auto`)return[];var t=Ub(e);return[Gb(e),t,Gb(t)]}function cx(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=sb(g)===g,v=c||(_||!m?[Ub(g)]:sx(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(sb(n)===`auto`?ox(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=sb(E),O=Nb(E)===Iy,ee=[`top`,jy].indexOf(D)>=0,te=ee?`width`:`height`,ne=ax(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),k=ee?O?My:Ny:O?jy:`top`;b[te]>x[te]&&(k=Ub(k));var re=Ub(k),ie=[];if(a&&ie.push(ne[D]<=0),s&&ie.push(ne[k]<=0,ne[re]<=0),ie.every(function(e){return e})){w=E,C=!1;break}S.set(E,ie)}if(C)for(var ae=m?3:1,oe=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},se=ae;se>0&&oe(se)!==`break`;se--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var lx={name:`flip`,enabled:!0,phase:`main`,fn:cx,requiresIfExists:[`offset`],data:{_skip:!1}};function ux(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dx(e){return[`top`,My,jy,Ny].some(function(t){return e[t]>=0})}function fx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ax(t,{elementContext:`reference`}),s=ax(t,{altBoundary:!0}),c=ux(o,r),l=ux(s,i,a),u=dx(c),d=dx(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var px={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:fx};function mx(e,t,n){var r=sb(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function hx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Hy.reduce(function(e,n){return e[n]=mx(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var gx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:hx};function _x(e){var t=e.state,n=e.name;t.modifiersData[n]=ix({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var vx={name:`popperOffsets`,enabled:!0,phase:`read`,fn:_x,data:{}};function yx(e){return e===`x`?`y`:`x`}function bx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=ax(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=sb(t.placement),v=Nb(t.placement),y=!v,b=Cb(_),x=yx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:Ny,te=b===`y`?jy:My,ne=b===`y`?`height`:`width`,k=S[b],re=k+g[ee],ie=k-g[te],ae=p?-w[ne]/2:0,oe=v===`start`?C[ne]:w[ne],se=v===`start`?-w[ne]:-C[ne],ce=t.elements.arrow,le=p&&ce?mb(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Eb(),de=ue[ee],fe=ue[te],pe=wb(0,C[ne],le[ne]),me=y?C[ne]/2-ae-pe-de-E.mainAxis:oe-pe-de-E.mainAxis,he=y?-C[ne]/2+ae+pe+fe+E.mainAxis:se+pe+fe+E.mainAxis,ge=t.elements.arrow&&Sb(t.elements.arrow),_e=ge?b===`y`?ge.clientTop||0:ge.clientLeft||0:0,ve=D?.[b]??0,ye=k+me-ve-_e,be=k+he-ve,xe=wb(p?lb(re,ye):re,k,p?cb(ie,be):ie);S[b]=xe,O[b]=xe-k}if(s){var Se=b===`x`?`top`:Ny,Ce=b===`x`?jy:My,we=S[x],Te=x===`y`?`height`:`width`,Ee=we+g[Se],De=we-g[Ce],Oe=[`top`,Ny].indexOf(_)!==-1,ke=D?.[x]??0,Ae=Oe?Ee:we-C[Te]-w[Te]-ke+E.altAxis,je=Oe?we+C[Te]+w[Te]-ke-E.altAxis:De,Me=p&&Oe?Tb(Ae,we,je):wb(p?Ae:Ee,we,p?je:De);S[x]=Me,O[x]=Me-we}t.modifiersData[r]=O}}var xx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:bx,requiresIfExists:[`offset`]};function Sx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cx(e){return e===eb(e)||!nb(e)?Kb(e):Sx(e)}function wx(e){var t=e.getBoundingClientRect(),n=ub(t.width)/e.offsetWidth||1,r=ub(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tx(e,t,n){n===void 0&&(n=!1);var r=nb(t),i=nb(t)&&wx(t),a=vb(t),o=pb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(($y(t)!==`body`||Xb(a))&&(s=Cx(t)),nb(t)?(c=pb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=qb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Ex(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Dx(e){var t=Ex(e);return Qy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Ox(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function kx(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ax={placement:`bottom`,modifiers:[],strategy:`absolute`};function jx(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Mx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Ax:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Ax,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:tb(e)?Qb(e):e.contextElement?Qb(e.contextElement):[],popper:Qb(t)};var s=Dx(kx([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(jx(t,n)){i.rects={reference:Tx(t,Sb(n),i.options.strategy===`fixed`),popper:mb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Ox(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!jx(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Nx=Mx(),Px=Mx({defaultModifiers:[Vb,vx,Rb,ob]}),Fx=Mx({defaultModifiers:[Vb,vx,Rb,ob,gx,lx,xx,Mb,px]}),Ix=s({afterMain:()=>Jy,afterRead:()=>Gy,afterWrite:()=>Zy,applyStyles:()=>ob,arrow:()=>Mb,auto:()=>Py,basePlacements:()=>Fy,beforeMain:()=>Ky,beforeRead:()=>Uy,beforeWrite:()=>Yy,bottom:()=>jy,clippingParents:()=>Ly,computeStyles:()=>Rb,createPopper:()=>Fx,createPopperBase:()=>Nx,createPopperLite:()=>Px,detectOverflow:()=>ax,end:()=>`end`,eventListeners:()=>Vb,flip:()=>lx,hide:()=>px,left:()=>Ny,main:()=>qy,modifierPhases:()=>Qy,offset:()=>gx,placements:()=>Hy,popper:()=>zy,popperGenerator:()=>Mx,popperOffsets:()=>vx,preventOverflow:()=>xx,read:()=>Wy,reference:()=>By,right:()=>My,start:()=>Iy,top:()=>`top`,variationPlacements:()=>Vy,viewport:()=>Ry,write:()=>Xy}),Lx=new Map,Rx={set(e,t,n){Lx.has(e)||Lx.set(e,new Map);let r=Lx.get(e);if(!r.has(t)&&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(t,n)},get(e,t){return Lx.has(e)&&Lx.get(e).get(t)||null},remove(e,t){if(!Lx.has(e))return;let n=Lx.get(e);n.delete(t),n.size===0&&Lx.delete(e)}},zx=1e6,Bx=1e3,Vx=`transitionend`,Hx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Ux=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Wx=e=>{do e+=Math.floor(Math.random()*zx);while(document.getElementById(e));return e},Gx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*Bx)},Kx=e=>{e.dispatchEvent(new Event(Vx))},qx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),Jx=e=>qx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Hx(e)):null,Yx=e=>{if(!qx(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Xx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Zx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Zx(e.parentNode):null},Qx=()=>{},$x=e=>{e.offsetHeight},eS=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,tS=[],nS=e=>{document.readyState===`loading`?(tS.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of tS)e()}),tS.push(e)):e()},rS=()=>document.documentElement.dir===`rtl`,iS=e=>{nS(()=>{let t=eS();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},aS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,oS=(e,t,n=!0)=>{if(!n){aS(e);return}let r=Gx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Vx,a),aS(e))};t.addEventListener(Vx,a),setTimeout(()=>{i||Kx(t)},r)},sS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},cS=/[^.]*(?=\..*)\.|.*/,lS=/\..*/,uS=/::\d+$/,dS={},fS=1,pS={mouseenter:`mouseover`,mouseleave:`mouseout`},mS=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`.split(`.`));function hS(e,t){return t&&`${t}::${fS++}`||e.uidEvent||fS++}function gS(e){let t=hS(e);return e.uidEvent=t,dS[t]=dS[t]||{},dS[t]}function _S(e,t){return function n(r){return TS(r,{delegateTarget:e}),n.oneOff&&H.off(e,r.type,t),t.apply(e,[r])}}function vS(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return TS(i,{delegateTarget:o}),r.oneOff&&H.off(e,i.type,t,n),n.apply(o,[i])}}function yS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function bS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=wS(e);return mS.has(a)||(a=e),[r,i,a]}function xS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=bS(t,n,r);t in pS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=gS(e),l=c[s]||(c[s]={}),u=yS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=hS(o,t.replace(cS,``)),f=a?vS(e,n,o):_S(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function SS(e,t,n,r,i){let a=yS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function CS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&SS(e,t,n,o.callable,o.delegationSelector)}function wS(e){return e=e.replace(lS,``),pS[e]||e}var H={on(e,t,n,r){xS(e,t,n,r,!1)},one(e,t,n,r){xS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=bS(t,n,r),s=o!==t,c=gS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;SS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))CS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(uS,``);(!s||t.includes(i))&&SS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=eS(),i=t!==wS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=TS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function TS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function ES(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function DS(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var OS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${DS(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${DS(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=ES(e.dataset[r])}return t},getDataAttribute(e,t){return ES(e.getAttribute(`data-bs-${DS(t)}`))}},kS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw 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,t){let n=qx(t)?OS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...qx(t)?OS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=qx(t)?`element`:Ux(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},AS=`5.3.8`,jS=class extends kS{constructor(e,t){super(),e=Jx(e),e&&(this._element=e,this._config=this._getConfig(t),Rx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Rx.remove(this._element,this.constructor.DATA_KEY),H.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){oS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Rx.get(Jx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return AS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},MS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Hx(e)).join(`,`):null},U={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Xx(e)&&Yx(e))},getSelectorFromElement(e){let t=MS(e);return t&&U.findOne(t)?t:null},getElementFromSelector(e){let t=MS(e);return t?U.findOne(t):null},getMultipleElementsFromSelector(e){let t=MS(e);return t?U.find(t):[]}},NS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;H.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Xx(this))return;let i=U.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},PS=`alert`,FS=`.bs.alert`,IS=`close${FS}`,LS=`closed${FS}`,RS=`fade`,zS=`show`,BS=class e extends jS{static get NAME(){return PS}close(){if(H.trigger(this._element,IS).defaultPrevented)return;this._element.classList.remove(zS);let e=this._element.classList.contains(RS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),H.trigger(this._element,LS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};NS(BS,`close`),iS(BS);var VS=`button`,HS=`.bs.button`,US=`.data-api`,WS=`active`,GS=`[data-bs-toggle="button"]`,KS=`click${HS}${US}`,qS=class e extends jS{static get NAME(){return VS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(WS))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};H.on(document,KS,GS,e=>{e.preventDefault();let t=e.target.closest(GS);qS.getOrCreateInstance(t).toggle()}),iS(qS);var JS=`swipe`,YS=`.bs.swipe`,XS=`touchstart${YS}`,ZS=`touchmove${YS}`,QS=`touchend${YS}`,$S=`pointerdown${YS}`,eC=`pointerup${YS}`,tC=`touch`,nC=`pen`,rC=`pointer-event`,iC=40,aC={endCallback:null,leftCallback:null,rightCallback:null},oC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},sC=class e extends kS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return aC}static get DefaultType(){return oC}static get NAME(){return JS}dispose(){H.off(this._element,YS)}_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(),aS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=iC)return;let t=e/this._deltaX;this._deltaX=0,t&&aS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(H.on(this._element,$S,e=>this._start(e)),H.on(this._element,eC,e=>this._end(e)),this._element.classList.add(rC)):(H.on(this._element,XS,e=>this._start(e)),H.on(this._element,ZS,e=>this._move(e)),H.on(this._element,QS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===nC||e.pointerType===tC)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},cC=`carousel`,lC=`.bs.carousel`,uC=`.data-api`,dC=`ArrowLeft`,fC=`ArrowRight`,pC=500,mC=`next`,hC=`prev`,gC=`left`,_C=`right`,vC=`slide${lC}`,yC=`slid${lC}`,bC=`keydown${lC}`,xC=`mouseenter${lC}`,SC=`mouseleave${lC}`,CC=`dragstart${lC}`,wC=`load${lC}${uC}`,TC=`click${lC}${uC}`,EC=`carousel`,DC=`active`,OC=`slide`,kC=`carousel-item-end`,AC=`carousel-item-start`,jC=`carousel-item-next`,MC=`carousel-item-prev`,NC=`.active`,PC=`.carousel-item`,FC=`.active.carousel-item`,IC=`.carousel-item img`,LC=`.carousel-indicators`,RC=`[data-bs-slide], [data-bs-slide-to]`,zC=`[data-bs-ride="carousel"]`,BC={[dC]:_C,[fC]:gC},VC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},HC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},UC=class e extends jS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=U.findOne(LC,this._element),this._addEventListeners(),this._config.ride===EC&&this.cycle()}static get Default(){return VC}static get DefaultType(){return HC}static get NAME(){return cC}next(){this._slide(mC)}nextWhenVisible(){!document.hidden&&Yx(this._element)&&this.next()}prev(){this._slide(hC)}pause(){this._isSliding&&Kx(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){H.one(this._element,yC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){H.one(this._element,yC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?mC:hC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&H.on(this._element,bC,e=>this._keydown(e)),this._config.pause===`hover`&&(H.on(this._element,xC,()=>this.pause()),H.on(this._element,SC,()=>this._maybeEnableCycle())),this._config.touch&&sC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of U.find(IC,this._element))H.on(e,CC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(gC)),rightCallback:()=>this._slide(this._directionToOrder(_C)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),pC+this._config.interval))}};this._swipeHelper=new sC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=BC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=U.findOne(NC,this._indicatorsElement);t.classList.remove(DC),t.removeAttribute(`aria-current`);let n=U.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(DC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===mC,i=t||sS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>H.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(vC).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?AC:kC,l=r?jC:MC;i.classList.add(l),$x(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(DC),n.classList.remove(DC,l,c),this._isSliding=!1,o(yC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(OC)}_getActive(){return U.findOne(FC,this._element)}_getItems(){return U.find(PC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return rS()?e===gC?hC:mC:e===gC?mC:hC}_orderToDirection(e){return rS()?e===hC?gC:_C:e===hC?_C:gC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,TC,RC,function(e){let t=U.getElementFromSelector(this);if(!t||!t.classList.contains(EC))return;e.preventDefault();let n=UC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(OS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),H.on(window,wC,()=>{let e=U.find(zC);for(let t of e)UC.getOrCreateInstance(t)}),iS(UC);var WC=`collapse`,GC=`.bs.collapse`,KC=`.data-api`,qC=`show${GC}`,JC=`shown${GC}`,YC=`hide${GC}`,XC=`hidden${GC}`,ZC=`click${GC}${KC}`,QC=`show`,$C=`collapse`,ew=`collapsing`,tw=`collapsed`,nw=`:scope .${$C} .${$C}`,rw=`collapse-horizontal`,iw=`width`,aw=`height`,ow=`.collapse.show, .collapse.collapsing`,sw=`[data-bs-toggle="collapse"]`,cw={parent:null,toggle:!0},lw={parent:`(null|element)`,toggle:`boolean`},uw=class e extends jS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=U.find(sw);for(let e of n){let t=U.getSelectorFromElement(e),n=U.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return cw}static get DefaultType(){return lw}static get NAME(){return WC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ow).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||H.trigger(this._element,qC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove($C),this._element.classList.add(ew),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(ew),this._element.classList.add($C,QC),this._element.style[n]=``,H.trigger(this._element,JC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||H.trigger(this._element,YC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,$x(this._element),this._element.classList.add(ew),this._element.classList.remove($C,QC);for(let e of this._triggerArray){let t=U.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(ew),this._element.classList.add($C),H.trigger(this._element,XC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(QC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Jx(e.parent),e}_getDimension(){return this._element.classList.contains(rw)?iw:aw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(sw);for(let t of e){let e=U.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=U.find(nw,this._config.parent);return U.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(tw,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};H.on(document,ZC,sw,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of U.getMultipleElementsFromSelector(this))uw.getOrCreateInstance(e,{toggle:!1}).toggle()}),iS(uw);var dw=`dropdown`,fw=`.bs.dropdown`,pw=`.data-api`,mw=`Escape`,hw=`Tab`,gw=`ArrowUp`,_w=`ArrowDown`,vw=2,yw=`hide${fw}`,bw=`hidden${fw}`,xw=`show${fw}`,Sw=`shown${fw}`,Cw=`click${fw}${pw}`,ww=`keydown${fw}${pw}`,Tw=`keyup${fw}${pw}`,Ew=`show`,Dw=`dropup`,Ow=`dropend`,kw=`dropstart`,Aw=`dropup-center`,jw=`dropdown-center`,Mw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Nw=`${Mw}.${Ew}`,Pw=`.dropdown-menu`,Fw=`.navbar`,Iw=`.navbar-nav`,Lw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Rw=rS()?`top-end`:`top-start`,zw=rS()?`top-start`:`top-end`,Bw=rS()?`bottom-end`:`bottom-start`,Vw=rS()?`bottom-start`:`bottom-end`,Hw=rS()?`left-start`:`right-start`,Uw=rS()?`right-start`:`left-start`,Ww=`top`,Gw=`bottom`,Kw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},qw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},Jw=class e extends jS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=U.next(this._element,Pw)[0]||U.prev(this._element,Pw)[0]||U.findOne(Pw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Kw}static get DefaultType(){return qw}static get NAME(){return dw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Xx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!H.trigger(this._element,xw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Iw))for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Qx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Ew),this._element.classList.add(Ew),H.trigger(this._element,Sw,e)}}hide(){if(Xx(this._element)||!this._isShown())return;let 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(!H.trigger(this._element,yw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Qx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ew),this._element.classList.remove(Ew),this._element.setAttribute(`aria-expanded`,`false`),OS.removeDataAttribute(this._menu,`popper`),H.trigger(this._element,bw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!qx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${dw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Ix===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:qx(this._config.reference)?e=Jx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Fx(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Ew)}_getPlacement(){let e=this._parent;if(e.classList.contains(Ow))return Hw;if(e.classList.contains(kw))return Uw;if(e.classList.contains(Aw))return Ww;if(e.classList.contains(jw))return Gw;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Dw)?t?zw:Rw:t?Vw:Bw}_detectNavbar(){return this._element.closest(Fw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let 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`)&&(OS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...aS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=U.find(Lw,this._menu).filter(e=>Yx(e));n.length&&sS(n,t,e===_w,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===vw||t.type===`keyup`&&t.key!==hw)return;let n=U.find(Nw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===hw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===mw,i=[gw,_w].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(Mw)?this:U.prev(this,Mw)[0]||U.next(this,Mw)[0]||U.findOne(Mw,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};H.on(document,ww,Mw,Jw.dataApiKeydownHandler),H.on(document,ww,Pw,Jw.dataApiKeydownHandler),H.on(document,Cw,Jw.clearMenus),H.on(document,Tw,Jw.clearMenus),H.on(document,Cw,Mw,function(e){e.preventDefault(),Jw.getOrCreateInstance(this).toggle()}),iS(Jw);var Yw=`backdrop`,Xw=`fade`,Zw=`show`,Qw=`mousedown.bs.${Yw}`,$w={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},eT={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},tT=class extends kS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return $w}static get DefaultType(){return eT}static get NAME(){return Yw}show(e){if(!this._config.isVisible){aS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&$x(t),t.classList.add(Zw),this._emulateAnimation(()=>{aS(e)})}hide(e){if(!this._config.isVisible){aS(e);return}this._getElement().classList.remove(Zw),this._emulateAnimation(()=>{this.dispose(),aS(e)})}dispose(){this._isAppended&&=(H.off(this._element,Qw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Xw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Jx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),H.on(e,Qw,()=>{aS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){oS(e,this._getElement(),this._config.isAnimated)}},nT=`focustrap`,rT=`.bs.focustrap`,iT=`focusin${rT}`,aT=`keydown.tab${rT}`,oT=`Tab`,sT=`forward`,cT=`backward`,lT={autofocus:!0,trapElement:null},uT={autofocus:`boolean`,trapElement:`element`},dT=class extends kS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return lT}static get DefaultType(){return uT}static get NAME(){return nT}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),H.off(document,rT),H.on(document,iT,e=>this._handleFocusin(e)),H.on(document,aT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,H.off(document,rT))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=U.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===cT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===oT&&(this._lastTabNavDirection=e.shiftKey?cT:sT)}},fT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,pT=`.sticky-top`,mT=`padding-right`,hT=`margin-right`,gT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,mT,t=>t+e),this._setElementAttributes(fT,mT,t=>t+e),this._setElementAttributes(pT,hT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,mT),this._resetElementAttributes(fT,mT),this._resetElementAttributes(pT,hT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&OS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=OS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}OS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(qx(e)){t(e);return}for(let n of U.find(e,this._element))t(n)}},_T=`modal`,vT=`.bs.modal`,yT=`.data-api`,bT=`Escape`,xT=`hide${vT}`,ST=`hidePrevented${vT}`,CT=`hidden${vT}`,wT=`show${vT}`,TT=`shown${vT}`,ET=`resize${vT}`,DT=`click.dismiss${vT}`,OT=`mousedown.dismiss${vT}`,kT=`keydown.dismiss${vT}`,AT=`click${vT}${yT}`,jT=`modal-open`,MT=`fade`,NT=`show`,PT=`modal-static`,FT=`.modal.show`,IT=`.modal-dialog`,LT=`.modal-body`,RT=`[data-bs-toggle="modal"]`,zT={backdrop:!0,focus:!0,keyboard:!0},BT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},VT=class e extends jS{constructor(e,t){super(e,t),this._dialog=U.findOne(IT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new gT,this._addEventListeners()}static get Default(){return zT}static get DefaultType(){return BT}static get NAME(){return _T}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||H.trigger(this._element,wT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(jT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||H.trigger(this._element,xT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(NT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){H.off(window,vT),H.off(this._dialog,vT),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new tT({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new dT({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;let t=U.findOne(LT,this._dialog);t&&(t.scrollTop=0),$x(this._element),this._element.classList.add(NT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,H.trigger(this._element,TT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){H.on(this._element,kT,e=>{if(e.key===bT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),H.on(window,ET,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),H.on(this._element,OT,e=>{H.one(this._element,DT,t=>{if(!(this._element!==e.target||this._element!==t.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(jT),this._resetAdjustments(),this._scrollBar.reset(),H.trigger(this._element,CT)})}_isAnimated(){return this._element.classList.contains(MT)}_triggerBackdropTransition(){if(H.trigger(this._element,ST).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(PT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(PT),this._queueCallback(()=>{this._element.classList.remove(PT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=rS()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=rS()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};H.on(document,AT,RT,function(e){let t=U.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),H.one(t,wT,e=>{e.defaultPrevented||H.one(t,CT,()=>{Yx(this)&&this.focus()})});let n=U.findOne(FT);n&&VT.getInstance(n).hide(),VT.getOrCreateInstance(t).toggle(this)}),NS(VT),iS(VT);var HT=`offcanvas`,UT=`.bs.offcanvas`,WT=`.data-api`,GT=`load${UT}${WT}`,KT=`Escape`,qT=`show`,JT=`showing`,YT=`hiding`,XT=`offcanvas-backdrop`,ZT=`.offcanvas.show`,QT=`show${UT}`,$T=`shown${UT}`,eE=`hide${UT}`,tE=`hidePrevented${UT}`,nE=`hidden${UT}`,rE=`resize${UT}`,iE=`click${UT}${WT}`,aE=`keydown.dismiss${UT}`,oE=`[data-bs-toggle="offcanvas"]`,sE={backdrop:!0,keyboard:!0,scroll:!1},cE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},lE=class e extends jS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return sE}static get DefaultType(){return cE}static get NAME(){return HT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||H.trigger(this._element,QT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new gT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(JT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qT),this._element.classList.remove(JT),H.trigger(this._element,$T,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||H.trigger(this._element,eE).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(YT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(qT,YT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new gT().reset(),H.trigger(this._element,nE)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){H.trigger(this._element,tE);return}this.hide()},t=!!this._config.backdrop;return new tT({className:XT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new dT({trapElement:this._element})}_addEventListeners(){H.on(this._element,aE,e=>{if(e.key===KT){if(this._config.keyboard){this.hide();return}H.trigger(this._element,tE)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};H.on(document,iE,oE,function(e){let t=U.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Xx(this))return;H.one(t,nE,()=>{Yx(this)&&this.focus()});let n=U.findOne(ZT);n&&n!==t&&lE.getInstance(n).hide(),lE.getOrCreateInstance(t).toggle(this)}),H.on(window,GT,()=>{for(let e of U.find(ZT))lE.getOrCreateInstance(e).show()}),H.on(window,rE,()=>{for(let e of U.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&lE.getOrCreateInstance(e).hide()}),NS(lE),iS(lE);var uE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},dE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),fE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?dE.has(n)?!!fE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function mE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)pE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var hE=`TemplateFactory`,gE={allowList:uE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},_E={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},vE={entry:`(string|element|function|null)`,selector:`(string|element)`},yE=class extends kS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return gE}static get DefaultType(){return _E}static get NAME(){return hE}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(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},vE)}_setContent(e,t,n){let r=U.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(qx(t)){this._putElementInTemplate(Jx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?mE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return aS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},bE=`tooltip`,xE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),SE=`fade`,CE=`modal`,wE=`show`,TE=`.tooltip-inner`,EE=`.${CE}`,DE=`hide.bs.modal`,OE=`hover`,kE=`focus`,AE=`click`,jE=`manual`,ME=`hide`,NE=`hidden`,PE=`show`,FE=`shown`,IE=`inserted`,LE=`click`,RE=`focusin`,zE=`focusout`,BE=`mouseenter`,VE=`mouseleave`,HE={AUTO:`auto`,TOP:`top`,RIGHT:rS()?`left`:`right`,BOTTOM:`bottom`,LEFT:rS()?`right`:`left`},UE={allowList:uE,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`},WE={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`},GE=class e extends jS{constructor(e,t){if(Ix===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),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 UE}static get DefaultType(){return WE}static get NAME(){return bE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),H.off(this._element.closest(EE),DE,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 Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=H.trigger(this._element,this.constructor.eventName(PE)),t=(Zx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),H.trigger(this._element,this.constructor.eventName(IE))),this._popper=this._createPopper(n),n.classList.add(wE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.on(e,`mouseover`,Qx);this._queueCallback(()=>{H.trigger(this._element,this.constructor.eventName(FE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||H.trigger(this._element,this.constructor.eventName(ME)).defaultPrevented)){if(this._getTipElement().classList.remove(wE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))H.off(e,`mouseover`,Qx);this._activeTrigger[AE]=!1,this._activeTrigger[kE]=!1,this._activeTrigger[OE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),H.trigger(this._element,this.constructor.eventName(NE)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(SE,wE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Wx(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(SE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new yE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[TE]: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(SE)}_isShown(){return this.tip&&this.tip.classList.contains(wE)}_createPopper(e){let t=HE[aS(this._config.placement,[this,e,this._element]).toUpperCase()];return Fx(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return aS(e,[this._element,this._element])}_getPopperConfig(e){let t={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:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...aS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)H.on(this._element,this.constructor.eventName(LE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[AE]=!(t._isShown()&&t._activeTrigger[AE]),t.toggle()});else if(t!==jE){let e=t===OE?this.constructor.eventName(BE):this.constructor.eventName(RE),n=t===OE?this.constructor.eventName(VE):this.constructor.eventName(zE);H.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?kE:OE]=!0,t._enter()}),H.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?kE:OE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},H.on(this._element.closest(EE),DE,this._hideModalHandler)}_fixTitle(){let 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,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=OS.getDataAttributes(this._element);for(let e of Object.keys(t))xE.has(e)&&delete t[e];return e={...t,...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:Jx(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(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};iS(GE);var KE=`popover`,qE=`.popover-header`,JE=`.popover-body`,YE={...GE.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`},XE={...GE.DefaultType,content:`(null|string|element|function)`},ZE=class e extends GE{static get Default(){return YE}static get DefaultType(){return XE}static get NAME(){return KE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[qE]:this._getTitle(),[JE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};iS(ZE);var QE=`scrollspy`,$E=`.bs.scrollspy`,eD=`.data-api`,tD=`activate${$E}`,nD=`click${$E}`,rD=`load${$E}${eD}`,iD=`dropdown-item`,aD=`active`,oD=`[data-bs-spy="scroll"]`,sD=`[href]`,cD=`.nav, .list-group`,lD=`.nav-link`,uD=`${lD}, .nav-item > ${lD}, .list-group-item`,dD=`.dropdown`,fD=`.dropdown-toggle`,pD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},mD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},hD=class e extends jS{constructor(e,t){super(e,t),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 pD}static get DefaultType(){return mD}static get NAME(){return QE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Jx(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(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(H.off(this._config.target,nD),H.on(this._config.target,nD,sD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=U.find(sD,this._config.target);for(let t of e){if(!t.hash||Xx(t))continue;let e=U.findOne(decodeURI(t.hash),this._element);Yx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(aD),this._activateParents(e),H.trigger(this._element,tD,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iD)){U.findOne(fD,e.closest(dD)).classList.add(aD);return}for(let t of U.parents(e,cD))for(let e of U.prev(t,uD))e.classList.add(aD)}_clearActiveClass(e){e.classList.remove(aD);let t=U.find(`${sD}.${aD}`,e);for(let e of t)e.classList.remove(aD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(window,rD,()=>{for(let e of U.find(oD))hD.getOrCreateInstance(e)}),iS(hD);var gD=`tab`,_D=`.bs.tab`,vD=`hide${_D}`,yD=`hidden${_D}`,bD=`show${_D}`,xD=`shown${_D}`,SD=`click${_D}`,CD=`keydown${_D}`,wD=`load${_D}`,TD=`ArrowLeft`,ED=`ArrowRight`,DD=`ArrowUp`,OD=`ArrowDown`,kD=`Home`,AD=`End`,jD=`active`,MD=`fade`,ND=`show`,PD=`dropdown`,FD=`.dropdown-toggle`,ID=`.dropdown-menu`,LD=`:not(${FD})`,RD=`.list-group, .nav, [role="tablist"]`,zD=`.nav-item, .list-group-item`,BD=`.nav-link${LD}, .list-group-item${LD}, [role="tab"]${LD}`,VD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,HD=`${BD}, ${VD}`,UD=`.${jD}[data-bs-toggle="tab"], .${jD}[data-bs-toggle="pill"], .${jD}[data-bs-toggle="list"]`,WD=class e extends jS{constructor(e){super(e),this._parent=this._element.closest(RD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),H.on(this._element,CD,e=>this._keydown(e)))}static get NAME(){return gD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?H.trigger(t,vD,{relatedTarget:e}):null;H.trigger(e,bD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(jD),this._activate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(ND);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),H.trigger(e,xD,{relatedTarget:t})},e,e.classList.contains(MD)))}_deactivate(e,t){e&&(e.classList.remove(jD),e.blur(),this._deactivate(U.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(ND);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),H.trigger(e,yD,{relatedTarget:t})},e,e.classList.contains(MD)))}_keydown(t){if(![TD,ED,DD,OD,kD,AD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Xx(e)),r;if([kD,AD].includes(t.key))r=n[t.key===kD?0:n.length-1];else{let e=[ED,OD].includes(t.key);r=sS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return U.find(HD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=U.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(PD))return;let r=(e,r)=>{let i=U.findOne(e,n);i&&i.classList.toggle(r,t)};r(FD,jD),r(ID,ND),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(jD)}_getInnerElement(e){return e.matches(HD)?e:U.findOne(HD,e)}_getOuterElement(e){return e.closest(zD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};H.on(document,SD,VD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Xx(this)&&WD.getOrCreateInstance(this).show()}),H.on(window,wD,()=>{for(let e of U.find(UD))WD.getOrCreateInstance(e)}),iS(WD);var GD=`toast`,KD=`.bs.toast`,qD=`mouseover${KD}`,JD=`mouseout${KD}`,YD=`focusin${KD}`,XD=`focusout${KD}`,ZD=`hide${KD}`,QD=`hidden${KD}`,$D=`show${KD}`,eO=`shown${KD}`,tO=`fade`,nO=`hide`,rO=`show`,iO=`showing`,aO={animation:`boolean`,autohide:`boolean`,delay:`number`},oO={animation:!0,autohide:!0,delay:5e3},sO=class e extends jS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oO}static get DefaultType(){return aO}static get NAME(){return GD}show(){H.trigger(this._element,$D).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(tO),this._element.classList.remove(nO),$x(this._element),this._element.classList.add(rO,iO),this._queueCallback(()=>{this._element.classList.remove(iO),H.trigger(this._element,eO),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||H.trigger(this._element,ZD).defaultPrevented||(this._element.classList.add(iO),this._queueCallback(()=>{this._element.classList.add(nO),this._element.classList.remove(iO,rO),H.trigger(this._element,QD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rO),super.dispose()}isShown(){return this._element.classList.contains(rO)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){H.on(this._element,qD,e=>this._onInteraction(e,!0)),H.on(this._element,JD,e=>this._onInteraction(e,!1)),H.on(this._element,YD,e=>this._onInteraction(e,!0)),H.on(this._element,XD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};NS(sO),iS(sO);function cO(e=void 0){let t=e=>a(`Succesvol`,e,b_.SUCCESS),n=e=>a(`Waarschuwing`,e,b_.WARNING),r=e=>a(`Informatie`,e,b_.INFO),i=e=>a(`Mislukt`,e,b_.DANGER);function a(t,n,r){let i=`toast-${Ia()}`,a={id:i,variant:r,title:t,text:n},s=document.querySelector(`.toast-container`);if(!s){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let c=(0,u.h)(w_,a),l=(0,u.createApp)({render:()=>c}).mount(document.createElement(`div`));s.appendChild(l.$el);let d=document.querySelector(`#${i}`);d&&(sO.getOrCreateInstance(d,e).show(),o(d))}function o(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:t,showInformationToast:r,showWarningToast:n,showDangerToast:i}}var lO={class:`bd-file-upload`},uO={class:`flex align-items-center justify-content-between gap-2`},dO={key:0,class:`preview-container`},fO=(0,u.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let{showDangerToast:n}=cO(),{t:r}=Ay.global,i=e,a=t,o=(0,u.ref)(null),s=(0,u.ref)([]);(0,u.watch)(()=>i.modelValue,e=>{o.value&&(o.value.files=o.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let c=(0,u.computed)(()=>({variant:xa.PRIMARY,size:Aa.SM})),l=hg(i,`modelValue`,a),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];s.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:i.token},body:t};f(e,await(await fetch(i.url,n)).json())}catch{n(i.errorMessage||r(`fileUpload.errorMessage`))}}s.value=[],o.value&&o.value.clear()},f=(e,t)=>{let n=s.value.findIndex(t=>t.name==e.name);n!==-1&&s.value.splice(n,1),l.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=l.value.files.indexOf(e);t!==-1&&l.value.files.splice(t,1),t=s.value.indexOf(e),t!==-1&&s.value.splice(t,1)};return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lO,[(0,u.createVNode)((0,u.unref)(wy),{ref_key:`fileUploadRef`,ref:o,multiple:i.multiple,"max-file-size":10485760,accept:i.acceptedFiles,auto:!0,"max-files":i.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,u.withCtx)(({chooseCallback:e})=>[(0,u.createElementVNode)(`div`,uO,[(0,u.createVNode)(A,(0,u.mergeProps)(c.value,{onClick:e}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(k)),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(i.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,u.withCtx)(()=>[s.value||(0,u.unref)(l)&&(0,u.unref)(l).files&&(0,u.unref)(l).files.length!==0?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dO,[(0,u.unref)(l)&&(0,u.unref)(l).files?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)((0,u.unref)(l).files,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(hv,{key:t,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:1},(0,u.renderList)(s.value,(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(hv,{key:t,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,u.createCommentVNode)(``,!0)])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),pO=[`id`,`value`,`disabled`],mO=[`for`],hO={class:`invalid-feedback`},gO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Ju(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(A,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,pO),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,mO)]))),128))],2),(0,u.createElementVNode)(`div`,hO,[(0,u.createVNode)(Jt),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}};function _O(e){this.content=e}_O.prototype={constructor:_O,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new _O(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new _O(n)},addToStart:function(e,t){return new _O([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new _O(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new _O(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=_O.from(e),e.size?new _O(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=_O.from(e),e.size?new _O(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=_O.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},_O.from=function(e){if(e instanceof _O)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new _O(t)};function vO(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&xO(e.charCodeAt(r-1))&&bO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=vO(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function yO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&xO(e.charCodeAt(i-1))&&bO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=yO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function bO(e){return e>=56320&&e<57344}function xO(e){return e>=55296&&e<56320}var W=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return vO(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return yO(this,e,t,n)}findIndex(e){if(e==0)return CO(0,e);if(e==this.size)return CO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?CO(t+1,i):CO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};W.empty=new W([],0);var SO={index:0,offset:0};function CO(e,t){return SO.index=e,SO.offset=t,SO}function wO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!wO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!wO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var G=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&wO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};G.none=[];var TO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=DO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(EO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(W.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(W.empty,0,0);function EO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(EO(a.content,t-i-1,n-i-1)))}function DO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=DO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function OO(e,t,n){if(n.openStart>e.depth)throw new TO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new TO(`Inconsistent open depths`);return kO(e,t,n,0)}function kO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=kO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return PO(a,IO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return PO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=LO(n,e);return PO(a,FO(e,i,o,t,r))}}function AO(e,t){if(!t.type.compatibleContent(e.type))throw new TO(`Cannot join `+t.type.name+` onto `+e.type.name)}function jO(e,t,n){let r=e.node(n);return AO(r,t.node(n)),r}function MO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function NO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(MO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)MO(i.child(e),r);t&&t.depth==n&&t.textOffset&&MO(t.nodeBefore,r)}function PO(e,t){if(!e.type.validContent(t))throw new TO(`Invalid content for node `+e.type.name);return e.copy(t)}function FO(e,t,n,r,i){let a=e.depth>i&&jO(e,t,i+1),o=r.depth>i&&jO(n,r,i+1),s=[];return NO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(AO(a,o),MO(PO(a,FO(e,t,n,r,i+1)),s)):(a&&MO(PO(a,IO(e,t,i+1)),s),NO(t,n,i,s),o&&MO(PO(o,IO(n,r,i+1)),s)),NO(r,null,i,s),new W(s)}function IO(e,t,n){let r=[];return NO(null,e,n,r),e.depth>n&&MO(PO(jO(e,t,n+1),IO(e,t,n+1)),r),NO(t,null,n,r),new W(r)}function LO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(W.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var RO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return G.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new HO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=VO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else VO.set(t,r=new zO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%BO,i}},zO=class{constructor(){this.elts=[],this.i=0}},BO=12,VO=new WeakMap,HO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},UO=Object.create(null),WO=class e{constructor(e,t,n,r=G.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||W.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&wO(this.attrs,t||e.defaultAttrs||UO)&&G.sameSet(this.marks,n||G.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return OO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return RO.resolveCached(this,e)}resolveNoCache(e){return RO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),KO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=W.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=G.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!G.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=W.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};WO.prototype.text=void 0;var GO=class e extends WO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):KO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function KO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var qO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new JO(t,n);if(r.next==null)return e.empty;let i=YO(r);r.next&&r.err(`Unexpected trailing text`);let a=ak(nk(i));return ok(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return W.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1696
1696
|
`)}};qO.empty=new qO(!0);var JO=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function YO(e){let t=[];do t.push(XO(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function XO(e){let t=[];do t.push(ZO(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function ZO(e){let t=tk(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=$O(e,t);else break;return t}function QO(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function $O(e,t){let n=QO(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:QO(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function ek(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function tk(e){if(e.eat(`(`)){let t=YO(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=ek(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function nk(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function rk(e,t){return t-e}function ik(e,t){let n=[];return r(t),n.sort(rk);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function ak(e){let t=Object.create(null);return n(ik(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);ik(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new qO(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(rk);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function ok(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function sk(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ck(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function lk(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function uk(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new pk(e,r,t[r]);return n}var dk=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=uk(e,n.attrs),this.defaultAttrs=sk(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==qO.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ck(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new WO(this,this.computeAttrs(e),W.from(t),G.setFrom(n))}createChecked(e=null,t,n){return t=W.from(t),this.checkContent(t),new WO(this,this.computeAttrs(e),t,G.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=W.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(W.empty,!0);return i?new WO(this,e,t.append(i),G.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){lk(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:G.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function fk(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var pk=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?fk(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},mk=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=uk(e,r.attrs),this.excluded=null;let i=sk(this.attrs);this.instance=i?new G(this,i):null}create(e=null){return!e&&this.instance?this.instance:new G(this,ck(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){lk(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},hk=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=_O.from(e.nodes),t.marks=_O.from(e.marks||{}),this.nodes=dk.compile(this.spec.nodes,this),this.marks=mk.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=qO.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?gk(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:gk(this,n.split(` `))}this.nodeFromJSON=e=>WO.fromJSON(this,e),this.markFromJSON=e=>G.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof dk))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new GO(n,n.defaultAttrs,e,G.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function gk(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function _k(e){return e.tag!=null}function vk(e){return e.style!=null}var yk=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(_k(e))this.tags.push(e);else if(vk(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Ok(this,t,!1);return n.addAll(e,G.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ok(this,t,!0);return n.addAll(e,G.none,t.from,t.to),K.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Ak(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jk(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jk(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},bk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},xk={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Sk={ol:!0,ul:!0},Ck=1,wk=2,Tk=4;function Ek(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Ck:0)|(t===`full`?wk:0)}var Dk=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=G.none,this.match=i||(a&Tk?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(W.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ck)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=W.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(W.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!bk.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Ok=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Ek(null,t.preserveWhitespace,0)|(n?Tk:0);i=r?new Dk(r.type,r.attrs,G.none,!0,t.topMatch||r.type.contentMatch,a):n?new Dk(null,null,G.none,!0,null,a):new Dk(e.schema.topNodeType,null,G.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&wk?`full`:this.localPreserveWS||(r.options&Ck)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
1697
1697
|
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;Sk.hasOwnProperty(a)&&this.parser.normalizeLists&&kk(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:xk.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(bk.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
1698
1698
|
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=G.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Mk(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Ek(e,i,a.options);a.options&Tk&&a.content.length==0&&(o|=Tk);let s=G.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Mk(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Dk(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Ck);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function kk(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Sk.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Ak(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function jk(e){let t={};for(let n in e)t[n]=e[n];return t}function Mk(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var Nk=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Fk(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return Fk(t).createTextNode(e.text);let{dom:n,contentDOM:r}=zk(Fk(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&zk(Fk(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:zk(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Pk(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Pk(e.marks)}};function Pk(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Fk(e){return e.document||window.document}var Ik=new WeakMap;function Lk(e){let t=Ik.get(e);return t===void 0&&Ik.set(e,t=Rk(e)),t}function Rk(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function zk(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Lk(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=zk(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Bk=65535,Vk=2**16;function Hk(e,t){return e+t*Vk}function Uk(e){return e&Bk}function Wk(e){return(e-(e&Bk))/Vk}var Gk=1,Kk=2,qk=4,Jk=8,Yk=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Jk)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&qk)>0}},Xk=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Uk(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Wk(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Hk(o/3,e-s),f=e==s?Kk:e==u?Gk:qk;return(t<0?e!=s:e!=u)&&(f|=Jk),new Yk(a,f,d)}r+=l-c}return n?e+r:new Yk(e+r,0,null)}touches(e,t){let n=0,r=Uk(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Xk.empty=new Xk([]);var Zk=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Yk(e,r,null)}},Qk=Object.create(null),$k=class{getMap(){return Xk.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Qk[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Qk)throw RangeError(`Duplicate use of step JSON ID `+e);return Qk[e]=t,t.prototype.jsonID=e,t}},eA=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof TO)return e.fail(t.message);throw t}}};function tA(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(tA(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return W.fromArray(r)}var nA=class e extends $k{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new K(tA(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return eA.fromReplace(e,this.from,this.to,i)}invert(){return new rA(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$k.jsonID(`addMark`,nA);var rA=class e extends $k{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new K(tA(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return eA.fromReplace(e,this.from,this.to,n)}invert(){return new nA(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$k.jsonID(`removeMark`,rA);var iA=class e extends $k{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return eA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return eA.fromReplace(e,this.pos,this.pos+1,new K(W.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new aA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$k.jsonID(`addNodeMark`,iA);var aA=class e extends $k{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return eA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return eA.fromReplace(e,this.pos,this.pos+1,new K(W.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new iA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$k.jsonID(`removeNodeMark`,aA);var oA=class e extends $k{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&cA(e,this.from,this.to)?eA.fail(`Structure replace would overwrite content`):eA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xk([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?K.empty:new K(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?K.empty:new K(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,K.fromJSON(t,n.slice),!!n.structure)}};oA.MAP_BIAS=1,$k.jsonID(`replace`,oA);var sA=class e extends $k{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(cA(e,this.from,this.gapFrom)||cA(e,this.gapTo,this.to)))return eA.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return eA.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?eA.fromReplace(e,this.from,this.to,n):eA.fail(`Content does not fit in gap`)}getMap(){return new Xk([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,K.fromJSON(t,n.slice),n.insert,!!n.structure)}};$k.jsonID(`replaceAround`,sA);function cA(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function lA(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new rA(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new nA(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function uA(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof mk){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new rA(t.from,t.to,t.style)))}function dA(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new oA(s,l,K.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new rA(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new K(W.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new oA(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(W.empty,!0);e.replace(s,s,new K(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function fA(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function pA(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!fA(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function mA(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=W.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=W.from(r.node(e).copy(u)),d++):c--;let f=W.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=W.from(i.node(e).copy(f)),p++):l++;e.step(new sA(c,l,o,s,new K(u.append(f),d,p),u.size-d,!0))}function hA(e,t,n=null,r=e){let i=_A(e,t),a=i&&vA(r,t);return a?i.map(gA).concat({type:t,attrs:n}).concat(a.map(gA)):null}function gA(e){return{type:e,attrs:null}}function _A(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function vA(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function yA(e,t,n){let r=W.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=W.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new sA(i,a,i,a,new K(r,0,0),n.length,!0))}function bA(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&CA(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&SA(e,t,n,a),dA(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new sA(c,l,c+1,l-1,new K(W.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&xA(e,t,n,a),!1}})}function xA(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function SA(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
@@ -1881,4 +1881,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1881
1881
|
}
|
|
1882
1882
|
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),wJ={name:`Chip`,extends:{name:`BaseChip`,extends:kp,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:CJ,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return Sd({removable:this.removable})}},components:{TimesCircleIcon:hJ}},TJ=[`aria-label`,`data-p`],EJ=[`src`];function DJ(e,t,n,r,i,a){return i.visible?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":a.dataP}),[(0,u.renderSlot)(e.$slots,`default`,{},function(){return[e.image?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,(0,u.mergeProps)({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,EJ)):e.$slots.icon?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.$slots.icon),(0,u.mergeProps)({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,(0,u.mergeProps)({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):(0,u.createCommentVNode)(``,!0),e.label===null?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,(0,u.mergeProps)({key:3,class:e.cx(`label`)},e.ptm(`label`)),(0,u.toDisplayString)(e.label),17))]}),e.removable?(0,u.renderSlot)(e.$slots,`removeicon`,{key:0,removeCallback:a.close,keydownCallback:a.onKeydown},function(){return[((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e.removeIcon?`span`:`TimesCircleIcon`),(0,u.mergeProps)({class:[e.cx(`removeIcon`),e.removeIcon],onClick:a.close,onKeydown:a.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):(0,u.createCommentVNode)(``,!0)],16,TJ)):(0,u.createCommentVNode)(``,!0)}wJ.render=DJ;var OJ={key:0,class:`bd-active-filters`},kJ={class:`options`},AJ=(0,u.defineComponent)({__name:`BDActiveFilters`,props:(0,u.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=Ju(),n=(0,u.useModel)(e,`modelValue`),r=e,i=(0,u.computed)(()=>t(`activeFilters.title`)),a=(0,u.computed)(()=>t(`activeFilters.clearAll`)),o=(0,u.computed)(()=>n.value&&n.value.length>0),s=(0,u.computed)(()=>r.filters.filter(e=>n.value?.some(t=>t.startsWith(`${e.id}-`)))),c=e=>e.options.concat(e.moreOptions||[]).filter(t=>n.value?.some(n=>n===`${e.id}-${t.item}`)),l=()=>{n.value=[]},d=e=>{if(!n.value)return;let t=n.value.indexOf(e);t!==-1&&n.value?.splice(t,1)};return(e,t)=>o.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,OJ,[(0,u.createElementVNode)(`header`,null,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(A,{variant:`link`,onClick:l,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(s.value,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{key:e.id,class:`filter`},[(0,u.createElementVNode)(`label`,null,(0,u.toDisplayString)(e.label)+`:`,1),(0,u.createElementVNode)(`div`,kJ,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(c(e),t=>(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(wJ),{key:e.id+`-`+t.item,label:t.name,removable:``,onRemove:n=>d(`${e.id}-${t.item}`)},null,8,[`label`,`onRemove`])),[[(0,u.unref)(xG),t.name]])),128))])]))),128))])):(0,u.createCommentVNode)(``,!0)}}),jJ=[`id`],MJ={class:`collapse-button-container`},NJ={class:`collapsed-show`},PJ={class:`collapsed-hide`},FJ=(0,u.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:t}){let{t:n}=Ju(),r=t,i=(0,u.computed)(()=>n(`filterCard.more`)),a=(0,u.computed)(()=>n(`filterCard.less`)),o=e=>e.replace(/\s/g,`-`),s=()=>r(`check`);return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(Wa,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(AJ,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.filters,(r,c)=>((0,u.openBlock)(),(0,u.createBlock)(qg,{key:r.label,label:r.label},{default:(0,u.withCtx)(()=>[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.options,(t,i)=>((0,u.openBlock)(),(0,u.createBlock)(_g,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[1]||=t=>e.searchForm.selectedFilters=t,key:i,value:`${r.id}-${t.item}`,onChange:s},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(t.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),r.moreOptions?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[(0,u.createElementVNode)(`div`,{id:`collapse-${o(r.label)}`,class:`collapse`},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.moreOptions,(t,i)=>((0,u.openBlock)(),(0,u.createBlock)(_g,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":n[2]||=t=>e.searchForm.selectedFilters=t,key:i,value:`${r.id}-${t.item}`,onChange:s},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(t.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,jJ),(0,u.createElementVNode)(`div`,MJ,[(0,u.createVNode)(A,{class:(0,u.normalizeClass)([`collapse-button collapsed`,{"collapse-button-last":e.filters.length-1===c}]),variant:`link`,"data-bs-toggle":`collapse`,"data-bs-target":`#collapse-${o(r.label)}`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(w,{class:`collapsed-show`}),(0,u.createElementVNode)(`span`,NJ,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(O,{class:`collapsed-hide`}),(0,u.createElementVNode)(`span`,PJ,(0,u.toDisplayString)(a.value),1)]),_:1},8,[`class`,`data-bs-target`])])],64)):(0,u.createCommentVNode)(``,!0),(0,u.renderSlot)(t.$slots,`filter-extra`,{filter:r})]),_:2},1032,[`label`]))),128))]),_:3}))}}),IJ={class:`content-library-template`},LJ={class:`number-of-messages`},RJ=[`src`],zJ=[`src`],BJ=(0,u.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(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=(0,u.ref)(r.modelValue);(0,u.watch)(()=>r.modelValue,e=>{a.value=e},{immediate:!0,deep:!0});let o=(0,u.computed)(()=>r.modelValue?.provider?.SupportsSearch?n(`contentLibraryTemplate.searchPlaceholderSearch`):n(`contentLibraryTemplate.searchPlaceholder`)),s=(0,u.computed)(()=>D_(r.providerSelectOptions)&&r.providerSelectOptions.length>1),c=(0,u.computed)(()=>r.provider&&D_(r.provider.items)?r.provider.items:[]),l=(0,u.computed)(()=>r.provider&&D_(r.provider.filters)),d=(0,u.computed)(()=>{let e=0;return r.provider&&Vq(r.provider.totalNumber)&&(e=r.provider.totalNumber),e===1?`${e} ${n(`contentLibraryTemplate.message`)}`:`${e} ${n(`contentLibraryTemplate.messages`)}`}),f=(0,u.computed)(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),m=(0,u.computed)(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),g=(0,u.computed)(()=>l.value?9:12),_=(0,u.computed)(()=>r.provider&&!l.value?3:2),v=(0,u.computed)(()=>r.showAddButton||s.value),y=(0,u.computed)(()=>({md:3,lg:3})),b=(0,u.computed)(()=>({md:9,lg:9})),x=(0,u.computed)(()=>({sm:12,md:8,lg:s.value?7:8,"offset-lg":v.value?0:3,"offset-md":v.value?0:3})),S=(0,u.computed)(()=>({sm:12,md:v.value?4:3,lg:s.value?5:4})),C=e=>e.label===`Categorieën`&&r.editCategory,w=()=>{i(`create`)},T=e=>{i(`on-insert`,e)},E=e=>{i(`on-change`,e)},D=e=>{i(`delete`,e)},O=()=>{i(`update`,`category`)},ee=()=>{a.value.currentPage=1,i(`on-input`,a.value)},te=()=>{i(`on-input`,a.value)},ne=e=>{i(`show-attachment`,e)},k=e=>{i(`provider-changed`,e.value)};return(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,IJ,[(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,(0,u.mergeProps)(y.value,{class:`content-library-header content-library-header__messages`}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,LJ,(0,u.toDisplayString)(d.value),1)]),_:1},16),(0,u.createVNode)(p,(0,u.mergeProps)(b.value,{class:`content-library-header`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,{class:`controls-row`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,(0,u.mergeProps)(x.value,{class:`search-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zg,{type:`text`,modelValue:a.value.searchTerm,"onUpdate:modelValue":i[0]||=e=>a.value.searchTerm=e,placeholder:o.value,delayTimeMs:500,class:`search-input`,onInput:ee,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(p,(0,u.mergeProps)({key:0},S.value,{class:`add-button-block`}),{default:(0,u.withCtx)(()=>[e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,class:`add-button`,onClick:w},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(oi),(0,u.createTextVNode)(` `+(0,u.toDisplayString)((0,u.unref)(n)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,u.createCommentVNode)(``,!0)]),_:1},16)):(0,u.createCommentVNode)(``,!0),s.value?((0,u.openBlock)(),(0,u.createBlock)(p,(0,u.mergeProps)({key:1},S.value,{class:`select-button-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Bq),{modelValue:a.value.provider,"onUpdate:modelValue":i[1]||=e=>a.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":k},{"open-indicator":(0,u.withCtx)(({attributes:e})=>[(0,u.createElementVNode)(`span`,(0,u.normalizeProps)((0,u.guardReactiveProps)(e)),[(0,u.createVNode)(Ae)],16)]),option:(0,u.withCtx)(({icon:e,label:t,img:n})=>[e?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e),{key:0})):(0,u.createCommentVNode)(``,!0),n?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:n},null,8,RJ)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t),1)]),"selected-option":(0,u.withCtx)(({icon:e,label:t,img:n})=>[e?((0,u.openBlock)(),(0,u.createBlock)((0,u.resolveDynamicComponent)(e),{key:0})):(0,u.createCommentVNode)(``,!0),n?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:n},null,8,zJ)):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(t),1)]),_:1},8,[`modelValue`,`options`])]),_:1},16)):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},16),l.value?((0,u.openBlock)(),(0,u.createBlock)(p,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(FJ,{filters:r.provider.filters,searchForm:a.value,"enable-edit-category":r.editCategory,"no-header":!0,onCheck:ee},{"filter-extra":(0,u.withCtx)(({filter:e})=>[C(e)?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:O},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(n)(`contentLibraryTemplate.changeCategoryButtonLabel`)),1)]),_:1})):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`filters`,`searchForm`,`enable-edit-category`])]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(p,{md:12,lg:g.value,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(mJ,{items:c.value,cols:_.value,onOnInsert:T,onOnChange:E,onDelete:D,onShowAttachment:ne},null,8,[`items`,`cols`]),(0,u.createVNode)(h,{class:`content-library-pagination`},{default:(0,u.withCtx)(()=>[f.value?((0,u.openBlock)(),(0,u.createBlock)(l_,{key:0,modelValue:a.value.currentPage,"onUpdate:modelValue":i[2]||=e=>a.value.currentPage=e,totalRows:m.value,rowsPerPage:e.provider.pageSize,onClick:te,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),VJ={__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(e,{emit:t}){let{closeModal:n}=EK(`content-library-modal`),r=e,i=t,a=(0,u.ref)(r.modelValue),o=(0,u.computed)(()=>r.modelValue?.provider?.img??null),s=(0,u.computed)(()=>r.modelValue?.provider?.label??``);(0,u.watch)(()=>r.modelValue,e=>{a.value=e},{immediate:!0,deep:!0});let c=e=>{n(),i(`on-insert`,e)},l=()=>{i(`cancel`)},d=e=>{i(`show-attachment`,e)},f=()=>{i(`shown`)},p=e=>{i(`provider-changed`,e)};return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`content-library-modal`,"title-image":o.value,title:s.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:l,onShown:f},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(BJ,{modelValue:a.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,provider:e.provider,providerSelectOptions:e.providerSelectOptions,loading:e.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:p},null,8,[`modelValue`,`provider`,`providerSelectOptions`,`loading`])]),_:1},8,[`title-image`,`title`,`visible`]))}},HJ=Object.defineProperty,UJ=(e,t,n)=>t in e?HJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WJ=(e,t,n)=>(UJ(e,typeof t==`symbol`?t:t+``,n),n),GJ=class{constructor(){WJ(this,`seed`,0),WJ(this,`data`,new Map)}id(){return Date.now().toString(26)+ this.seed++}add(e,t=this.id()){return this.data.set(t,e),t}get(e){return this.data.get(e)}delete(e){this.delete(e)}},KJ=`Failed to copy value to clipboard. Unknown type.`,qJ={asString(e){if(e==null)return console.warn(`Clipboard input is empty`),``;if(typeof e!=`string`)try{return JSON.stringify(e)}catch(e){return console.warn(KJ,e),``}return e}},JJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,YJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=JJ,t}},XJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await XJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=YJ.createTextarea(e);if(document.body.appendChild(t),navigator.userAgent.match(/ipad|ipod|iphone/i)){t.contentEditable=`true`,t.readOnly=!0;let e=document.createRange();e.selectNodeContents(t);let n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e),t.setSelectionRange(0,999999))}else t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n},async copy(e){let t=typeof e==`function`?e():e,n=qJ.asString(t);if(XJ.writeClipboardExecCommand(n))return!0;await XJ.writeClipboard(n)}};new GJ;var{showSuccessToast:ZJ}=cO(),QJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${eJ(tJ(e.Tekst))}`;XJ.copy(r).then(()=>ZJ(n))},$J=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${eJ(tJ(e.Tekst))}`).join(`
|
|
1883
1883
|
-----------------------
|
|
1884
|
-
`)}`;XJ.copy(r).then(()=>ZJ(n))},eY=(e,t)=>{XJ.copy(e).then(()=>ZJ(t))},tY={class:`message-cloud-multi-select`},nY={class:`message-cloud-multi-select__body`},rY={class:`message-content`},iY={class:`message-cloud__header`},aY={class:`message-cloud__title`},oY={key:0},sY=[`innerHTML`],cY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Ju(),n=e,r=(0,u.ref)([]),i=(0,u.ref)(!0);(0,u.watchEffect)(()=>{r.value=n.modelValue}),(0,u.watch)(()=>i.value,e=>{r.value.forEach(t=>t.selected=e)});let a=(0,u.computed)(()=>t(`conversationToTextModal.systemMessage`)),o=e=>{let n=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?n+t(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},s=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,c=()=>{let e=t(`conversationToTextModal.prefix`),n=t(`conversationToTextModal.copySuccess`);return $J(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(A,{variant:`primary`,onClick:c},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,u.createElementVNode)(`div`,tY,[(0,u.createVNode)(_g,{class:`select-all-checkbox`,modelValue:i.value,"onUpdate:modelValue":l[0]||=e=>i.value=e},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,u.createElementVNode)(`div`,nY,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.value,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`message-cloud-selector`,key:t},[(0,u.createVNode)(_g,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,rY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,iY,[(0,u.createElementVNode)(`div`,aY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,oY,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(a.value),1)])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(o(e)),1)]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.Datum),1)])]),(0,u.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,sY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function lY(){let e=(0,u.ref)(0),t=(0,u.ref)(!0),n=(0,u.ref)(null),r=(0,u.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:t,imageHolderRef:n,pos:r,SetZoom:(0,u.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;let i=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);i&&(i.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),r.value.x=e.clientX,r.value.y=e.clientY,t.value=!0},OnMouseMove:e=>{if(t.value){let t=e.clientX-r.value.x,i=e.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-i,n.value.scrollLeft=r.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),n=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),n&&n.style&&(n.style.cursor=`grab`),t.value=!1}}}var uY=[`src`,`alt`],dY={key:0,class:`show-spinner`},fY={class:`spinner-border text-primary`,role:`status`},pY=[`textContent`],mY=[`href`],hY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=EK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=lY(),{t:l}=Ju(),d=(0,u.ref)(!0),f=(0,u.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,u.computed)(()=>l(`imageAttachmentModal.download`)),m=(0,u.computed)(()=>l(`imageAttachmentModal.loading`));t({Show:e=>{f.value=e,r.value=0,n()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:i,onMousedown:t[0]||=(...e)=>(0,u.unref)(o)&&(0,u.unref)(o)(...e),onMousemove:t[1]||=(...e)=>(0,u.unref)(s)&&(0,u.unref)(s)(...e),onMouseup:t[2]||=(...e)=>(0,u.unref)(c)&&(0,u.unref)(c)(...e)},[f.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,u.normalizeClass)([`image-preview-modal`,(0,u.unref)(a)]),onLoad:h,draggable:!1},null,42,uY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dY,[(0,u.createElementVNode)(`div`,fY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,pY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(M_,{modelValue:(0,u.unref)(r),"onUpdate:modelValue":t[3]||=e=>(0,u.isRef)(r)?r.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,u.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,u.createVNode)(A,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,mY)]),_:1},8,[`class`,`title`]))}}),gY={key:0,class:`pills-list__wrapper`},_Y={class:`pills-list__ul`},vY={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:t}){let{showModal:n}=EK(`attachment-upload-modal`),r=e,i=t,{t:a}=Ju(),o=(0,u.ref)([]),s=(0,u.computed)(()=>void 0),c=(0,u.computed)(()=>r.validation.category.state===!1?`is-invalid`:``);(0,u.computed)(()=>r.validation.ownerId.state===!1?`is-invalid`:``);let l=(0,u.computed)(()=>[...r.categoryOptions?r.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...o.value]);(0,u.computed)(()=>r.practitionerOptions?.find(e=>e.value===r.modelValue?.ownerId)??null);let d=(0,u.computed)(()=>r.modelValue.sharedWithDepartment||[]);function f(e){C({...r.modelValue,sharedWithDepartment:e})}(0,u.computed)(()=>{if(r.modelValue.tag)return l.value.filter(e=>e.text.toLowerCase().indexOf(r.modelValue.tag.toLowerCase())!==-1)}),(0,u.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,u.computed)(()=>{let e=r.modelValue.files||[],t=r.files||[];return[...e,...t]});(0,u.onMounted)(()=>{r.modelValue.category.length>0&&x()});function m(e){e&&!l.value.some(t=>t.value===e)&&(o.value=[{text:e,value:e}])}function h(e){i(`show-attachment`,e)}function g(e){i(`action`,{action:`content-library`,provider:e})}function _(e){v(r.files,e),v(r.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){n()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...r.modelValue,category:e})}function C(e){i(`update:modelValue`,e),i(`on-input`,e)}function w(){i(`change-department`,r.modelValue)}function T(e){i(`change-title`,e)}function E(e){i(`change-text`,e)}return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)($h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(EG,{modelValue:e.modelValue.text,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,u.unref)(a)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":s.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,u.withCtx)(()=>[e.modelValue.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,gY,[(0,u.createElementVNode)(`ul`,_Y,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.modelValue.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(g_,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Nh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),n[0]||=(0,u.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(gO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,u.renderSlot)(t.$slots,`extra-fields`),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Bq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:l.value,label:`text`,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,u.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,u.createVNode)(yg,{class:(0,u.normalizeClass)(c.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},yY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Ju(),a=!1,o=(0,u.ref)(JSON.parse(JSON.stringify(n.modelValue))),s=(0,u.computed)(()=>n.modelValue.id?i(`messageTemplateFormModal.editTitle`):i(`messageTemplateFormModal.createTitle`)),c=(0,u.computed)(()=>n.modelValue.id?i(`modals.edit`):i(`modals.add`));(0,u.watch)(()=>n.modelValue,e=>{a||(o.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function l(e){r(`show-attachment`,e.obj)}function d(e){r(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(o.value));typeof e.category!=`string`&&(e.category=e.category.value??``),r(`on-submit`,e)}function p(){r(`close`)}function m(){r(`on-input`,o.value)}function h(){a=!0,r(`change-department`,o.value),(0,u.nextTick)(()=>{a=!1})}function g(e){o.value.title=e,m()}function _(e){o.value.text=e,m()}return(t,r)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`message-template-form-modal`,title:s.value,"submit-button-title":c.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(vY,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":n.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:l,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},bY={key:0},xY={key:1},SY={key:2},CY={key:3},wY={key:1},TY={key:2},EY=[`href`],DY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,o=(0,u.computed)(()=>a()?n(`videoCallConfirmationModal.close`):n(`videoCallConfirmationModal.cancel`)),s=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noMobileActivationMessage`)}`),c=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noCompatibleDevices`)}`),l=(0,u.computed)(()=>n(`videoCallConfirmationModal.title`)),d=(0,u.computed)(()=>n(`videoCallConfirmationModal.ok`)),f=(0,u.computed)(()=>n(`videoCallConfirmationModal.generalWarning`)),p=(0,u.computed)(()=>n(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,u.computed)(()=>n(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,u.computed)(()=>n(`videoCallConfirmationModal.message`)),g=(0,u.computed)(()=>n(`videoCallConfirmationModal.participantMessage`)),_=(0,u.computed)(()=>n(`videoCallConfirmationModal.testMessage`)),v=(0,u.computed)(()=>n(`videoCallConfirmationModal.helpMessage`)),y=()=>i(`confirmed`);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`video-call-confirmation-modal`,title:l.value,"submit-button-title":d.value,"close-button-title":o.value,"hide-footer-submit-button":a(),onSubmit:y},{default:(0,u.withCtx)(()=>[a()?((0,u.openBlock)(),(0,u.createBlock)(Ca,{key:0,variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(f.value),1),(0,u.createElementVNode)(`ul`,null,[r.isMissingCameraPermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,bY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,xY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,SY,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,CY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,wY,[(0,u.createTextVNode)((0,u.toDisplayString)(g.value)+` `,1),(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(r.participantName),1),t[0]||=(0,u.createTextVNode)(`?`,-1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,TY,(0,u.toDisplayString)(h.value),1)),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(_.value),9,EY),(0,u.createElementVNode)(`span`,null,`\xA0`+(0,u.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),OY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),kY={class:`template change-password-template`},AY={class:`template-title`},jY={key:0},MY={key:1},NY={class:`bd-form-field`},PY={class:`bd-form-field`},FY={class:`bd-form-field`},IY={class:`bd-form-buttons`},LY=(0,u.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t}=Ju(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=cO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=OK(null),{ValidationObjectIsValid:l}=OY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),g=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),_=()=>{if(!v())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),y()}).catch(e=>{n(d.failureText),s(e)})},v=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))g.value.passwordNew.state=!1,g.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;g.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,g.value.passwordNew.errorLabel=t,g.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,g.value.passwordRepeat.errorLabel=t}return g.value.password.state=f.value.password===``?!1:null,g.value.password.errorLabel=g.value.password.state?``:d.requiredText,l(g.value)},y=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,g.value.password.state=null,g.value.passwordNew.state=null,g.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,kY,[(0,u.createVNode)(m,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,AY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(h,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ba,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(m,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ca,{variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,u.unref)(a)||(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createBlock)(h,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ca,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,jY,[(0,u.createElementVNode)(`ul`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(a),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t},[(0,u.createVNode)(Un),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,MY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(_,[`prevent`]),onReset:(0,u.withModifiers)(y,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,NY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,PY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,FY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,IY,[(0,u.createVNode)(A,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(A,{type:`reset`,variant:`link`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}});function RY(...e){if(e.length>0){let t=String(e[0]);t.includes(`:error`)?console.error(...e):t.includes(`:warning`)?console.warn(...e):t.includes(`:info`)?console.info(...e):(t.includes(`:verbose`),console.debug(...e))}}function zY(e){return globalThis.process?.env?.[e]}typeof window<`u`&&window.document,typeof self==`object`&&`importScripts`in self&&typeof self.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name);var BY=zY(`DEBUG`),VY,HY=[],UY=[],WY=[];BY&&KY(BY);var GY=Object.assign(e=>XY(e),{enable:KY,enabled:qY,disable:YY,log:RY});function KY(e){VY=e,HY=[],UY=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?UY.push(e.substring(1)):HY.push(e);for(let e of WY)e.enabled=qY(e.namespace)}function qY(e){if(e.endsWith(`*`))return!0;for(let t of UY)if(JY(e,t))return!1;for(let t of HY)if(JY(e,t))return!0;return!1}function JY(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r<o&&i<a;)if(n[i]===`*`){if(s=i,i++,i===a)return!0;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else if(n[i]===e[r])i++,r++;else if(s>=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function YY(){let e=VY||``;return KY(``),e}function XY(e){let t=Object.assign(n,{enabled:qY(e),destroy:ZY,log:GY.log,namespace:e,extend:QY});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return WY.push(t),t}function ZY(){let e=WY.indexOf(this);return e>=0?(WY.splice(e,1),!0):!1}function QY(e){let t=XY(`${this.namespace}:${e}`);return t.log=this.log,t}var $Y=[`verbose`,`info`,`warning`,`error`],eX={verbose:400,info:300,warning:200,error:100};function tX(e,t){t.log=(...t)=>{e.log(...t)}}function nX(e){return $Y.includes(e)}function rX(e){let t=new Set,n=zY(e.logLevelEnvVarName),r,i=GY(e.namespace);i.log=(...e)=>{GY.log(...e)};function a(e){if(e&&!nX(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${$Y.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);GY.enable(n.join(`,`))}n&&(nX(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${$Y.join(`, `)}.`));function o(e){return!!(r&&eX[e.level]<=eX[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(tX(e,r),o(r)){let e=GY.disable();GY.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return tX(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}rX({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`}).logger;var iX=rX({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`}),aX=iX.logger;function oX(e){iX.setLogLevel(e)}var sX={class:`video-call-template`},cX={key:0,class:`card`},lX={key:0,class:`permissions-denied__audio`},uX={class:`permissions-denied__audio-disabled`},dX={key:1,class:`permissions-denied__video`},fX={class:`permissions-denied__video-disabled`},pX={key:1,class:`card`},mX={class:`incoming__settings`},hX={class:`side`},gX={class:`outgoing`},_X={class:`card`},vX={key:0,class:`outgoing__video`},yX={class:`outgoing__available-cameras-count text-center`},bX={key:3,class:`permissions-denied__video`},xX={class:`permissions-denied__video-disabled`},SX={class:`settings`},CX={class:`settings__help`},wX=[`href`],TX={href:`https://www.beterdichtbij.nl/service-contact/`,target:`blank`,rel:`noopener noreferrer`},EX=`hangedUp`,DX=`declined`,OX=`connected`,kX=`loading`,AX=`devicePermissionDenied`,jX=2e3,MX={__name:`BDVideoCallTemplate`,props:{messageWhenLoading:String,participant:{type:Object,default:null},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=e,i=n,{tm:a}=Ju(),o=(0,u.ref)([]),s=navigator.userAgent.indexOf(`Firefox`)>-1,c=(0,u.computed)(()=>a(`template.videoCall`)),l=(0,u.ref)(!1),g=(0,u.ref)(!1),_=(0,u.ref)(!1),v=(0,u.ref)(2),y=(0,u.ref)({}),b=(0,u.ref)(kX),x=(0,u.ref)(null),S=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),C=(0,u.ref)(null),w=(0,u.ref)(null),T=(0,u.ref)(null),E=(0,u.ref)(null),D=(0,u.ref)(0),O=(0,u.ref)(0),ee=(0,u.ref)(null),te=(0,u.ref)(!1),ne=(0,u.computed)(()=>{switch(D.value){case 0:return c.value.hasNoAvailableCamera;case 1:return c.value.hasOneAvailableCamera;default:return c.value.hasMultipleAvailableCameras}}),k=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!l.value}),re=(0,u.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),ie=(0,u.computed)(()=>!y.value?.video&&ge.value),ae=(0,u.computed)(()=>!y.value?.audio&&ge.value),oe=(0,u.computed)(()=>b.value===DX?`incoming--declined`:`incoming--loading`),se=(0,u.computed)(()=>{switch(v.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),ce=(0,u.computed)(()=>{switch(v.value){case 0:return c.value.signalStrength.weak;case 1:return c.value.signalStrength.steady;case 2:return c.value.signalStrength.strong;default:return null}}),le=(0,u.computed)(()=>l.value?c.value.stopSharingScreen:c.value.shareScreen),ue=(0,u.computed)(()=>c.value.placeholderSettingsHelpTitle),de=(0,u.computed)(()=>c.value.placeholderSettingsHelpMessage),fe=(0,u.computed)(()=>b.value===DX),pe=(0,u.computed)(()=>b.value===EX),me=(0,u.computed)(()=>b.value===OX),he=(0,u.computed)(()=>!me.value),ge=(0,u.computed)(()=>b.value===AX),_e=(0,u.computed)(()=>pe.value?c.value.messageWhenVideoCallHangedUp:fe.value?c.value.messageWhenVideoCallDeclined:ge.value?c.value.messageWhenDevicePermissionDenied:r.messageWhenLoading),ve=(0,u.computed)(()=>_.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{Ke()}),(0,u.onUnmounted)(()=>{ee.value&&window.clearInterval(ee.value),We()});function ye(){b.value=DX}function be(){}function xe(){b.value!==AX&&!r.isCallee&&Ee()}async function Se(){b.value=EX,y.value.video&&He()}async function Ce(e){S.client=(0,u.markRaw)(new d.CallClient);let t=new f.AzureCommunicationTokenCredential(e);S.agent=(0,u.markRaw)(await S.client.createCallAgent(t)),S.deviceManager=await S.client.getDeviceManager(),y.value=await S.deviceManager.askDevicePermission({video:!0,audio:!0}),ee.value=window.setInterval(He,5e3),(!y.value.audio||!y.value.video)&&(b.value=AX),S.agent.on(`incomingCall`,we),r.isCallee?i(`ready`):i(`start-call`)}async function we(e){if(!te.value)try{te.value=!0,S.incomingCall=e.incomingCall,await De()}catch(e){console.log(`error occured during starting call`,e)}finally{te.value=!1}}async function Te(){let e=await Oe();return e?{localVideoStreams:[e]}:void 0}async function Ee(){try{let e={videoOptions:await Te()},t=[{communicationUserId:r.participant.videoCallIdentityId}];S.call=S.agent.startCall(t,e),Ae(),ke()}catch(e){console.error(e)}}async function De(){let e=await Te();try{S.call=await S.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}Ae(),ke()}async function Oe(){let e=(await S.deviceManager.getCameras())[0];if(e)return new d.LocalVideoStream(e);console.error(`No camera device found on the system`)}function ke(){S.call.on(`stateChanged`,Me),S.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(Pe),e.removed.forEach(Ne)}),S.call.remoteParticipants.forEach(Ie),S.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(Ie)}),S.call.on(`isScreenSharingOnChanged`,()=>{l.value=S.call.isScreenSharingOn})}function Ae(){x.value=S.call.feature(d.Features.UserFacingDiagnostics),x.value.media.on(`diagnosticChanged`,je),x.value.network.on(`diagnosticChanged`,je)}function je(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.DiagnosticQuality.Bad?(console.error(`${e.diagnostic} is bad quality`),v.value=0):e.value===d.DiagnosticQuality.Poor?(console.error(`${e.diagnostic} is poor quality`),v.value=1):v.value=2)}function Me(){switch(S.call.state){case`EarlyMedia`:b.value=kX;break;case`Ringing`:b.value=kX;break;case`Connected`:b.value=OX;break;case`Disconnected`:let e=S.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),Se();break}}async function Ne(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!E.value)return;E.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function Pe(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;E.value=await new d.VideoStreamRenderer(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(E.value.target),t.style.display=`flex`;let n=document.querySelector(`.outgoing__video`);n.style.display=`none`;let r=t.querySelector(`video`);r.style.objectFit=`contain`}async function Fe(e){if(e&&e.source&&C.value&&C.value.source&&C.value.source.id==e.source.id)return!0;try{w.value=new d.VideoStreamRenderer(e);let t=await w.value.createView(),n=document.querySelector(`.outgoing__video`);n.querySelector(`video`)&&(n.innerHTML=``),n.hidden=!1,n.replaceChildren(t.target)}catch{return!1}return C.value=e,!0}async function Ie(e){e.videoStreams.forEach(Le),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(Le)})}async function Le(e){if(e.mediaStreamType===`Video`&&(await Re(e),e.on(`isAvailableChanged`,async()=>await Re(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,Be),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){T.value=new d.VideoStreamRenderer(e);let t=await T.value.createView(),n=document.querySelector(`.incoming__screenshare`);ze(!0),_.value=!0,Ue(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function Re(e){if(!e.isAvailable)return;T.value=new d.VideoStreamRenderer(e);let t=await T.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),Ue(`.incoming__video`),ze(!1)}function ze(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function Be(){_.value=!1,ze(!1)}async function Ve(){He(!0)}async function He(e=!1){let t=S.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await S.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);D.value=n.length;for(let t=0;t<D.value;t++){(e||t!=0)&&(O.value=(O.value+1)%D.value);let r=n[O.value];if(await Fe(new d.LocalVideoStream(r)))break}}function Ue(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function We(){S.call&&S.call.state!==`Disconnected`&&(await S.call.hangUp({forEveryone:!0}),await S.agent.dispose()),i(`end-call`),window.close()}function Ge(){window.close()}function Ke(){aX.log=(...e)=>console.log(...e),oX(`verbose`),aX.log=(...e)=>{let t=[...e];o.value=o.value.splice(1-jX).concat(t)}}function qe(){document.querySelector(ve.value).querySelector(`video`).requestFullscreen()}function Je(){let e=document.querySelector(ve.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Ye(){S.call&&S.call.isScreenSharingOn?await S.call.stopScreenSharing():await S.call.startScreenSharing()}return t({CallDeclined:ye,CallAnswered:be,CallStartVideoCall:xe,CallHangUp:Se,InitializeAcsConnection:Ce}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,sX,[(0,u.createVNode)(m,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(LG,{smallState:!0,contactInfo:r.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{sm:`12`,lg:fe.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,oe.value])},[he.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cX,[(0,u.createVNode)(n,{size:`lg`,message:_e.value,stopAnimation:fe.value||pe.value||ge.value},null,8,[`message`,`stopAnimation`]),ae.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lX,[(0,u.createElementVNode)(`div`,uX,[(0,u.createVNode)(Wr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ie.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dX,[(0,u.createElementVNode)(`div`,fX,[(0,u.createVNode)(fa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),fe.value||pe.value||ge.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:Ge},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(c.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pX,[t[0]||=(0,u.createElementVNode)(`div`,{class:`incoming__video`},null,-1),t[1]||=(0,u.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,u.createElementVNode)(`div`,mX,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:qe},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.fullScreen),1)]),_:1}),!s&&!g.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Je},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),fe.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(p,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,hX,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,gX,[(0,u.createElementVNode)(`div`,_X,[ge.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,vX)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),re.value&&!ge.value&&!g.value&&!he.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:l.value?`danger`:`primary`,class:`text-center`,onClick:Ye},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(le.value),1)]),_:1},8,[`variant`])):(0,u.createCommentVNode)(``,!0),k.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:Ve},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(c.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,yX,(0,u.toDisplayString)(ne.value),1)],64)):(0,u.createCommentVNode)(``,!0),ie.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,bX,[(0,u.createElementVNode)(`div`,xX,[(0,u.createVNode)(fa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),(0,u.createElementVNode)(`div`,SX,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`settings__signal`,se.value])},[t[3]||=(0,u.createElementVNode)(`ul`,{class:`indicator`},[(0,u.createElementVNode)(`li`),(0,u.createElementVNode)(`li`),(0,u.createElementVNode)(`li`)],-1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(ce.value),1)],2),(0,u.createElementVNode)(`div`,CX,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(ue.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(de.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(c.value.testCall),9,wX),t[4]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,TX,(0,u.toDisplayString)(c.value.serviceDesk),1)])])])]),!pe.value&&!ge.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`text-center w-100`,onClick:We},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Wt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]),_:1}))]),_:1})]),_:1})])}}},NX={class:`template not-found-template`},PX={class:`center-screen`},FX={class:`container-warning`},IX=[`textContent`],LX=[`textContent`],RX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=(0,u.computed)(()=>r.buttonText||n(`notFoundTemplate.buttonDefault`)),o=(0,u.computed)(()=>n(`notFoundTemplate.title`)),s=(0,u.computed)(()=>n(`notFoundTemplate.description`)),c=()=>i(`navigate`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,NX,[(0,u.createVNode)(m,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,PX,[(0,u.createElementVNode)(`div`,FX,[(0,u.createVNode)(ta),(0,u.createElementVNode)(`h5`,{textContent:(0,u.toDisplayString)(o.value)},null,8,IX),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(s.value)},null,8,LX),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])])])]),_:1})]))}}),zX=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},BX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,VX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),HX={install:e=>{e.component(`BDAlert`,Ca),e.component(`BDArticle`,Ea),e.component(`BDAssignConversationModal`,XK),e.component(`BDAttachmentPreviewList`,L_),e.component(`BDAttachmentUploadModal`,ZK),e.component(`BDBadge`,ka),e.component(`BDButton`,A),e.component(`BDCard`,Ba),e.component(`BDChangePasswordTemplate`,LY),e.component(`BDChatCloud`,sv),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,Wa),e.component(`BDConfirmationModal`,QK),e.component(`BDContainer`,m),e.component(`BDContentLibraryModal`,VJ),e.component(`BDContentLibrarySplitButton`,Nh),e.component(`BDContentLibraryTemplate`,BJ),e.component(`BDConversationToTextModal`,cY),e.component(`BDDate`,Qh),e.component(`BDDropdown`,lK),e.component(`BDDropdownItem`,cv),e.component(`BDFileUpload`,fO),e.component(`BDForm`,$h),e.component(`BDFormCheckbox`,_g),e.component(`BDFormInput`,zg),e.component(`BDFormInvalidFeedback`,yg),e.component(`BDFormMultipleCheckbox`,gO),e.component(`BDFormSelect`,Wg),e.component(`BDHeader`,gK),e.component(`BDImageAttachmentModal`,hY),e.component(`BDImageAttachmentPreviewList`,K_),e.component(`BDInputGroup`,qg),e.component(`BDLink`,ja),e.component(`BDLoader`,$g),e.component(`BDLogo`,n_),e.component(`BDMarkdownEditor`,EG),e.component(`BDMessageTemplateFormModal`,yY),e.component(`BDMobileMenu`,NG),e.component(`BDModal`,TK),e.component(`BDNotFoundTemplate`,RX),e.component(`BDPagination`,l_),e.component(`BDPhoneNumberEditModal`,NK),e.component(`BDPill`,g_),e.component(`BDPractitionerHeader`,qK),e.component(`BDProfileImage`,y_),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,YK),e.component(`BDSmallConversationCard`,LG),e.component(`BDTable`,KG),e.component(`BDToast`,w_),e.component(`BDUser`,ZG),e.component(`BDUserInformation`,k_),e.component(`BDVideoCallConfirmationModal`,DY),e.component(`BDVideoCallTemplate`,MX),e.component(`BDVideoCallToast`,cK),e.component(`BDZoomslider`,M_),e.component(`IconAcademy`,b),e.component(`IconArrowDown`,w),e.component(`IconArrowUp`,O),e.component(`IconAttachment`,k),e.component(`IconBold`,oe),e.component(`IconBulletList`,ue),e.component(`IconCalendar`,me),e.component(`IconCall`,ve),e.component(`IconCallReject`,Se),e.component(`IconCardView`,Ee),e.component(`IconCaretDown`,Ae),e.component(`IconCaretLeft`,Pe),e.component(`IconCaretRight`,Re),e.component(`IconCheck`,He),e.component(`IconClipboard`,Ke),e.component(`IconClose`,Xe),e.component(`IconComment`,et),e.component(`IconCommentActive`,it),e.component(`IconCommentStatic`,ct),e.component(`IconCommonFileEmpty`,ft),e.component(`IconCommonFileWarning`,gt),e.component(`IconContactPerson`,bt),e.component(`IconCopy`,wt),e.component(`IconDelete`,Ot),e.component(`IconDoubleCheck`,Mt),e.component(`IconDownloadImage`,It),e.component(`IconEdit`,Bt),e.component(`IconEndCall`,Wt),e.component(`IconError`,Jt),e.component(`IconExternal`,Qt),e.component(`IconEyeShow`,nn),e.component(`IconEyeSlash`,sn),e.component(`IconFile`,dn),e.component(`IconFileAdded`,hn),e.component(`IconForward`,yn),e.component(`IconHix`,Cn),e.component(`IconHyperlink`,Dn),e.component(`IconImageFileLandscape`,jn),e.component(`IconImageFileWarning`,Fn),e.component(`IconInbox`,zn),e.component(`IconInfo`,Un),e.component(`IconInformationCircle`,qn),e.component(`IconItalic`,Zn),e.component(`IconListView`,tr),e.component(`IconLock`,ar),e.component(`IconLusciiEscalated`,lr),e.component(`IconLusciiLogo`,pr),e.component(`IconLusciiOpen`,_r),e.component(`IconLusciiPriorityHigh`,xr),e.component(`IconLusciiPriorityLow`,Tr),e.component(`IconLusciiPriorityMedium`,kr),e.component(`IconMenu`,Nr),e.component(`IconMessage`,Lr),e.component(`IconMessageForward`,Vr),e.component(`IconMicrophoneSlash`,Wr),e.component(`IconMicrosoftTeams`,Jr),e.component(`IconMin`,Qr),e.component(`IconOrderedList`,ni),e.component(`IconPlus`,oi),e.component(`IconRefresh`,ui),e.component(`IconRemove`,mi),e.component(`IconSananetLogo`,yi),e.component(`IconService`,Ci),e.component(`IconShareScreen`,Di),e.component(`IconSingleNeutral`,ji),e.component(`IconSort`,Fi),e.component(`IconSortAsc`,zi),e.component(`IconSortDesc`,Ui),e.component(`IconSortNone`,qi),e.component(`IconTriangleDown`,Zi),e.component(`IconTriangleExclamation`,ta),e.component(`IconUnderline`,aa),e.component(`IconVideoDisabled`,fa),e.component(`IconVideocall`,la),e.component(`IconWarning`,ga),e.component(`IconZorgkaart`,ba),e.directive(`bd-tooltip`,xG)}};exports.BDAlert=Ca,exports.BDArticle=Ea,exports.BDAssignConversationModal=XK,exports.BDAttachmentPreviewList=L_,exports.BDAttachmentUploadModal=ZK,exports.BDBadge=ka,exports.BDButton=A,exports.BDCard=Ba,exports.BDChangePasswordTemplate=LY,exports.BDChatCloud=sv,exports.BDCol=p,exports.BDCollapsableCard=Wa,exports.BDConfirmationModal=QK,exports.BDContainer=m,exports.BDContentLibraryModal=VJ,exports.BDContentLibrarySplitButton=Nh,exports.BDContentLibraryTemplate=BJ,exports.BDConversationToTextModal=cY,exports.BDDate=Qh,exports.BDDropdown=lK,exports.BDDropdownItem=cv,exports.BDFileUpload=fO,exports.BDForm=$h,exports.BDFormCheckbox=_g,exports.BDFormInput=zg,exports.BDFormInvalidFeedback=yg,exports.BDFormMultipleCheckbox=gO,exports.BDFormSelect=Wg,exports.BDHeader=gK,exports.BDImageAttachmentModal=hY,exports.BDImageAttachmentPreviewList=K_,exports.BDInputGroup=qg,exports.BDLink=ja,exports.BDLoader=$g,exports.BDLogo=n_,exports.BDMarkdownEditor=EG,exports.BDMessageTemplateFormModal=yY,exports.BDMobileMenu=NG,exports.BDModal=TK,exports.BDNotFoundTemplate=RX,exports.BDPagination=l_,exports.BDPhoneNumberEditModal=NK,exports.BDPill=g_,exports.BDPractitionerHeader=qK,exports.BDProfileImage=y_,exports.BDRow=h,exports.BDSessionTimeOutModal=YK,exports.BDSmallConversationCard=LG,exports.BDTable=KG,exports.BDToast=w_,exports.BDUser=ZG,exports.BDUserInformation=k_,exports.BDVideoCallConfirmationModal=DY,exports.BDVideoCallTemplate=MX,exports.BDVideoCallToast=cK,exports.BDZoomslider=M_,exports.CopyChatMessageToClipboard=QJ,exports.CopyChatMessagesToClipboard=$J,exports.CopyHl7MessagesToClipboard=eY,exports.CreateHyperlinkParagraph=BX,exports.CreateThumbnailUri=X_,exports.IconAcademy=b,exports.IconArrowDown=w,exports.IconArrowUp=O,exports.IconAttachment=k,exports.IconBold=oe,exports.IconBulletList=ue,exports.IconCalendar=me,exports.IconCall=ve,exports.IconCallReject=Se,exports.IconCardView=Ee,exports.IconCaretDown=Ae,exports.IconCaretLeft=Pe,exports.IconCaretRight=Re,exports.IconCheck=He,exports.IconClipboard=Ke,exports.IconClose=Xe,exports.IconComment=et,exports.IconCommentActive=it,exports.IconCommentStatic=ct,exports.IconCommonFileEmpty=ft,exports.IconCommonFileWarning=gt,exports.IconContactPerson=bt,exports.IconCopy=wt,exports.IconDelete=Ot,exports.IconDoubleCheck=Mt,exports.IconDownloadImage=It,exports.IconEdit=Bt,exports.IconEndCall=Wt,exports.IconError=Jt,exports.IconExternal=Qt,exports.IconEyeShow=nn,exports.IconEyeSlash=sn,exports.IconFile=dn,exports.IconFileAdded=hn,exports.IconForward=yn,exports.IconHix=Cn,exports.IconHyperlink=Dn,exports.IconImageFileLandscape=jn,exports.IconImageFileWarning=Fn,exports.IconInbox=zn,exports.IconInfo=Un,exports.IconInformationCircle=qn,exports.IconItalic=Zn,exports.IconListView=tr,exports.IconLock=ar,exports.IconLusciiEscalated=lr,exports.IconLusciiLogo=pr,exports.IconLusciiOpen=_r,exports.IconLusciiPriorityHigh=xr,exports.IconLusciiPriorityLow=Tr,exports.IconLusciiPriorityMedium=kr,exports.IconMenu=Nr,exports.IconMessage=Lr,exports.IconMessageForward=Vr,exports.IconMicrophoneSlash=Wr,exports.IconMicrosoftTeams=Jr,exports.IconMin=Qr,exports.IconOrderedList=ni,exports.IconPlus=oi,exports.IconRefresh=ui,exports.IconRemove=mi,exports.IconSananetLogo=yi,exports.IconService=Ci,exports.IconShareScreen=Di,exports.IconSingleNeutral=ji,exports.IconSort=Fi,exports.IconSortAsc=zi,exports.IconSortDesc=Ui,exports.IconSortNone=qi,exports.IconTriangleDown=Zi,exports.IconTriangleExclamation=ta,exports.IconUnderline=aa,exports.IconVideoDisabled=fa,exports.IconVideocall=la,exports.IconWarning=ga,exports.IconZorgkaart=ba,exports.MapAttachmentsForApi=q_,exports.MapToAttachmentObjects=$_,exports.TransformHyperlinks=zX,exports.ValidateUrl=VX,exports.default=HX,exports.getDisplayDateNumeric=Xh,exports.getDisplayDateTextual=qh,exports.getDisplayDateTimeNumeric=Yh,exports.getDisplayDateTimeTextual=Jh,exports.useModal=EK,exports.usePopover=RK,exports.useServerErrors=OK,exports.useSessionTimeOut=JK,exports.useToaster=cO,exports.useValidation=OY,exports.useWindow=IK,exports.useZoom=lY,exports.vBdTooltip=xG;
|
|
1884
|
+
`)}`;XJ.copy(r).then(()=>ZJ(n))},eY=(e,t)=>{XJ.copy(e).then(()=>ZJ(t))},tY={class:`message-cloud-multi-select`},nY={class:`message-cloud-multi-select__body`},rY={class:`message-content`},iY={class:`message-cloud__header`},aY={class:`message-cloud__title`},oY={key:0},sY=[`innerHTML`],cY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Ju(),n=e,r=(0,u.ref)([]),i=(0,u.ref)(!0);(0,u.watchEffect)(()=>{r.value=n.modelValue}),(0,u.watch)(()=>i.value,e=>{r.value.forEach(t=>t.selected=e)});let a=(0,u.computed)(()=>t(`conversationToTextModal.systemMessage`)),o=e=>{let n=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?n+t(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},s=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,c=()=>{let e=t(`conversationToTextModal.prefix`),n=t(`conversationToTextModal.copySuccess`);return $J(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(A,{variant:`primary`,onClick:c},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,u.createElementVNode)(`div`,tY,[(0,u.createVNode)(_g,{class:`select-all-checkbox`,modelValue:i.value,"onUpdate:modelValue":l[0]||=e=>i.value=e},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)((0,u.unref)(t)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,u.createElementVNode)(`div`,nY,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(r.value,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`message-cloud-selector`,key:t},[(0,u.createVNode)(_g,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,rY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,iY,[(0,u.createElementVNode)(`div`,aY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,oY,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(a.value),1)])):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`span`,null,[(0,u.createElementVNode)(`i`,null,(0,u.toDisplayString)(o(e)),1)]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e.Datum),1)])]),(0,u.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,sY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function lY(){let e=(0,u.ref)(0),t=(0,u.ref)(!0),n=(0,u.ref)(null),r=(0,u.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:t,imageHolderRef:n,pos:r,SetZoom:(0,u.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;let i=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);i&&(i.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),r.value.x=e.clientX,r.value.y=e.clientY,t.value=!0},OnMouseMove:e=>{if(t.value){let t=e.clientX-r.value.x,i=e.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-i,n.value.scrollLeft=r.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),n=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),n&&n.style&&(n.style.cursor=`grab`),t.value=!1}}}var uY=[`src`,`alt`],dY={key:0,class:`show-spinner`},fY={class:`spinner-border text-primary`,role:`status`},pY=[`textContent`],mY=[`href`],hY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=EK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=lY(),{t:l}=Ju(),d=(0,u.ref)(!0),f=(0,u.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,u.computed)(()=>l(`imageAttachmentModal.download`)),m=(0,u.computed)(()=>l(`imageAttachmentModal.loading`));t({Show:e=>{f.value=e,r.value=0,n()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:i,onMousedown:t[0]||=(...e)=>(0,u.unref)(o)&&(0,u.unref)(o)(...e),onMousemove:t[1]||=(...e)=>(0,u.unref)(s)&&(0,u.unref)(s)(...e),onMouseup:t[2]||=(...e)=>(0,u.unref)(c)&&(0,u.unref)(c)(...e)},[f.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,u.normalizeClass)([`image-preview-modal`,(0,u.unref)(a)]),onLoad:h,draggable:!1},null,42,uY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dY,[(0,u.createElementVNode)(`div`,fY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,pY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(M_,{modelValue:(0,u.unref)(r),"onUpdate:modelValue":t[3]||=e=>(0,u.isRef)(r)?r.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,u.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,u.createVNode)(A,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,mY)]),_:1},8,[`class`,`title`]))}}),gY={key:0,class:`pills-list__wrapper`},_Y={class:`pills-list__ul`},vY={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:t}){let{showModal:n}=EK(`attachment-upload-modal`),r=e,i=t,{t:a}=Ju(),o=(0,u.ref)([]),s=(0,u.computed)(()=>void 0),c=(0,u.computed)(()=>r.validation.category.state===!1?`is-invalid`:``);(0,u.computed)(()=>r.validation.ownerId.state===!1?`is-invalid`:``);let l=(0,u.computed)(()=>[...r.categoryOptions?r.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...o.value]);(0,u.computed)(()=>r.practitionerOptions?.find(e=>e.value===r.modelValue?.ownerId)??null);let d=(0,u.computed)(()=>r.modelValue.sharedWithDepartment||[]);function f(e){C({...r.modelValue,sharedWithDepartment:e})}(0,u.computed)(()=>{if(r.modelValue.tag)return l.value.filter(e=>e.text.toLowerCase().indexOf(r.modelValue.tag.toLowerCase())!==-1)}),(0,u.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,u.computed)(()=>{let e=r.modelValue.files||[],t=r.files||[];return[...e,...t]});(0,u.onMounted)(()=>{r.modelValue.category.length>0&&x()});function m(e){e&&!l.value.some(t=>t.value===e)&&(o.value=[{text:e,value:e}])}function h(e){i(`show-attachment`,e)}function g(e){i(`action`,{action:`content-library`,provider:e})}function _(e){v(r.files,e),v(r.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){n()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...r.modelValue,category:e})}function C(e){i(`update:modelValue`,e),i(`on-input`,e)}function w(){i(`change-department`,r.modelValue)}function T(e){i(`change-title`,e)}function E(e){i(`change-text`,e)}return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)($h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(EG,{modelValue:e.modelValue.text,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,u.unref)(a)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":s.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,u.withCtx)(()=>[e.modelValue.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,gY,[(0,u.createElementVNode)(`ul`,_Y,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.modelValue.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(g_,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Nh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),n[0]||=(0,u.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(gO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,u.renderSlot)(t.$slots,`extra-fields`),(0,u.createVNode)(qg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Bq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:l.value,label:`text`,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,u.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,u.createVNode)(yg,{class:(0,u.normalizeClass)(c.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},yY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=Ju(),a=!1,o=(0,u.ref)(JSON.parse(JSON.stringify(n.modelValue))),s=(0,u.computed)(()=>n.modelValue.id?i(`messageTemplateFormModal.editTitle`):i(`messageTemplateFormModal.createTitle`)),c=(0,u.computed)(()=>n.modelValue.id?i(`modals.edit`):i(`modals.add`));(0,u.watch)(()=>n.modelValue,e=>{a||(o.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function l(e){r(`show-attachment`,e.obj)}function d(e){r(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(o.value));typeof e.category!=`string`&&(e.category=e.category.value??``),r(`on-submit`,e)}function p(){r(`close`)}function m(){r(`on-input`,o.value)}function h(){a=!0,r(`change-department`,o.value),(0,u.nextTick)(()=>{a=!1})}function g(e){o.value.title=e,m()}function _(e){o.value.text=e,m()}return(t,r)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`message-template-form-modal`,title:s.value,"submit-button-title":c.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(vY,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":n.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:l,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,u.withCtx)(()=>[(0,u.renderSlot)(t.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},bY={key:0},xY={key:1},SY={key:2},CY={key:3},wY={key:1},TY={key:2},EY=[`href`],DY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,o=(0,u.computed)(()=>a()?n(`videoCallConfirmationModal.close`):n(`videoCallConfirmationModal.cancel`)),s=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noMobileActivationMessage`)}`),c=(0,u.computed)(()=>`${r.participantName} ${n(`videoCallConfirmationModal.noCompatibleDevices`)}`),l=(0,u.computed)(()=>n(`videoCallConfirmationModal.title`)),d=(0,u.computed)(()=>n(`videoCallConfirmationModal.ok`)),f=(0,u.computed)(()=>n(`videoCallConfirmationModal.generalWarning`)),p=(0,u.computed)(()=>n(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,u.computed)(()=>n(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,u.computed)(()=>n(`videoCallConfirmationModal.message`)),g=(0,u.computed)(()=>n(`videoCallConfirmationModal.participantMessage`)),_=(0,u.computed)(()=>n(`videoCallConfirmationModal.testMessage`)),v=(0,u.computed)(()=>n(`videoCallConfirmationModal.helpMessage`)),y=()=>i(`confirmed`);return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(TK,{id:`video-call-confirmation-modal`,title:l.value,"submit-button-title":d.value,"close-button-title":o.value,"hide-footer-submit-button":a(),onSubmit:y},{default:(0,u.withCtx)(()=>[a()?((0,u.openBlock)(),(0,u.createBlock)(Ca,{key:0,variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(f.value),1),(0,u.createElementVNode)(`ul`,null,[r.isMissingCameraPermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,bY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,xY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,SY,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,CY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,wY,[(0,u.createTextVNode)((0,u.toDisplayString)(g.value)+` `,1),(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(r.participantName),1),t[0]||=(0,u.createTextVNode)(`?`,-1)])):((0,u.openBlock)(),(0,u.createElementBlock)(`p`,TY,(0,u.toDisplayString)(h.value),1)),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(_.value),9,EY),(0,u.createElementVNode)(`span`,null,`\xA0`+(0,u.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),OY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),kY={class:`template change-password-template`},AY={class:`template-title`},jY={key:0},MY={key:1},NY={class:`bd-form-field`},PY={class:`bd-form-field`},FY={class:`bd-form-field`},IY={class:`bd-form-buttons`},LY=(0,u.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t}=Ju(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=cO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=OK(null),{ValidationObjectIsValid:l}=OY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),g=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),_=()=>{if(!v())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),y()}).catch(e=>{n(d.failureText),s(e)})},v=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))g.value.passwordNew.state=!1,g.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;g.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,g.value.passwordNew.errorLabel=t,g.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,g.value.passwordRepeat.errorLabel=t}return g.value.password.state=f.value.password===``?!1:null,g.value.password.errorLabel=g.value.password.state?``:d.requiredText,l(g.value)},y=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,g.value.password.state=null,g.value.passwordNew.state=null,g.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,kY,[(0,u.createVNode)(m,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,AY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(h,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ba,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(m,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ca,{variant:`warning`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,u.unref)(a)||(0,u.unref)(o)?((0,u.openBlock)(),(0,u.createBlock)(h,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Ca,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,jY,[(0,u.createElementVNode)(`ul`,null,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)((0,u.unref)(a),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t},[(0,u.createVNode)(Un),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,MY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(_,[`prevent`]),onReset:(0,u.withModifiers)(y,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,NY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,PY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,FY,[(0,u.createVNode)(zg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,IY,[(0,u.createVNode)(A,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(A,{type:`reset`,variant:`link`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}});function RY(...e){if(e.length>0){let t=String(e[0]);t.includes(`:error`)?console.error(...e):t.includes(`:warning`)?console.warn(...e):t.includes(`:info`)?console.info(...e):(t.includes(`:verbose`),console.debug(...e))}}function zY(e){return globalThis.process?.env?.[e]}typeof window<`u`&&window.document,typeof self==`object`&&`importScripts`in self&&typeof self.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name);var BY=zY(`DEBUG`),VY,HY=[],UY=[],WY=[];BY&&KY(BY);var GY=Object.assign(e=>XY(e),{enable:KY,enabled:qY,disable:YY,log:RY});function KY(e){VY=e,HY=[],UY=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?UY.push(e.substring(1)):HY.push(e);for(let e of WY)e.enabled=qY(e.namespace)}function qY(e){if(e.endsWith(`*`))return!0;for(let t of UY)if(JY(e,t))return!1;for(let t of HY)if(JY(e,t))return!0;return!1}function JY(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r<o&&i<a;)if(n[i]===`*`){if(s=i,i++,i===a)return!0;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else if(n[i]===e[r])i++,r++;else if(s>=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function YY(){let e=VY||``;return KY(``),e}function XY(e){let t=Object.assign(n,{enabled:qY(e),destroy:ZY,log:GY.log,namespace:e,extend:QY});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return WY.push(t),t}function ZY(){let e=WY.indexOf(this);return e>=0?(WY.splice(e,1),!0):!1}function QY(e){let t=XY(`${this.namespace}:${e}`);return t.log=this.log,t}var $Y=[`verbose`,`info`,`warning`,`error`],eX={verbose:400,info:300,warning:200,error:100};function tX(e,t){t.log=(...t)=>{e.log(...t)}}function nX(e){return $Y.includes(e)}function rX(e){let t=new Set,n=zY(e.logLevelEnvVarName),r,i=GY(e.namespace);i.log=(...e)=>{GY.log(...e)};function a(e){if(e&&!nX(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${$Y.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);GY.enable(n.join(`,`))}n&&(nX(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${$Y.join(`, `)}.`));function o(e){return!!(r&&eX[e.level]<=eX[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(tX(e,r),o(r)){let e=GY.disable();GY.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return tX(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}rX({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`}).logger;var iX=rX({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`}),aX=iX.logger;function oX(e){iX.setLogLevel(e)}var sX={class:`video-call-template`},cX={key:0,class:`card`},lX={key:0,class:`permissions-denied__audio`},uX={class:`permissions-denied__audio-disabled`},dX={key:1,class:`permissions-denied__video`},fX={class:`permissions-denied__video-disabled`},pX={key:1,class:`card`},mX={class:`incoming__settings`},hX={class:`side`},gX={class:`outgoing`},_X={class:`card`},vX={key:0,class:`outgoing__video`},yX={class:`outgoing__available-cameras-count text-center`},bX={key:3,class:`permissions-denied__video`},xX={class:`permissions-denied__video-disabled`},SX={class:`settings`},CX={class:`settings__help`},wX=[`href`],TX={href:`https://www.beterdichtbij.nl/service-contact/`,target:`blank`,rel:`noopener noreferrer`},EX=`hangedUp`,DX=`declined`,OX=`connected`,kX=`loading`,AX=`devicePermissionDenied`,jX=2e3,MX={__name:`BDVideoCallTemplate`,props:{messageWhenLoading:String,participant:{type:Object,default:null},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=e,i=n,{tm:a}=Ju(),o=(0,u.ref)([]),s=navigator.userAgent.indexOf(`Firefox`)>-1,c=(0,u.computed)(()=>a(`videoCallTemplate`)),l=(0,u.ref)(!1),g=(0,u.ref)(!1),_=(0,u.ref)(!1),v=(0,u.ref)(2),y=(0,u.ref)({}),b=(0,u.ref)(kX),x=(0,u.ref)(null),S=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),C=(0,u.ref)(null),w=(0,u.ref)(null),T=(0,u.ref)(null),E=(0,u.ref)(null),D=(0,u.ref)(0),O=(0,u.ref)(0),ee=(0,u.ref)(null),te=(0,u.ref)(!1),ne=(0,u.computed)(()=>{switch(D.value){case 0:return c.value.hasNoAvailableCamera;case 1:return c.value.hasOneAvailableCamera;default:return c.value.hasMultipleAvailableCameras}}),k=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!l.value}),re=(0,u.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),ie=(0,u.computed)(()=>!y.value?.video&&ge.value),ae=(0,u.computed)(()=>!y.value?.audio&&ge.value),oe=(0,u.computed)(()=>b.value===DX?`incoming--declined`:`incoming--loading`),se=(0,u.computed)(()=>{switch(v.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),ce=(0,u.computed)(()=>{switch(v.value){case 0:return c.value.signalStrength.weak;case 1:return c.value.signalStrength.steady;case 2:return c.value.signalStrength.strong;default:return null}}),le=(0,u.computed)(()=>l.value?c.value.stopSharingScreen:c.value.shareScreen),ue=(0,u.computed)(()=>c.value.placeholderSettingsHelpTitle),de=(0,u.computed)(()=>c.value.placeholderSettingsHelpMessage),fe=(0,u.computed)(()=>b.value===DX),pe=(0,u.computed)(()=>b.value===EX),me=(0,u.computed)(()=>b.value===OX),he=(0,u.computed)(()=>!me.value),ge=(0,u.computed)(()=>b.value===AX),_e=(0,u.computed)(()=>pe.value?c.value.messageWhenVideoCallHangedUp:fe.value?c.value.messageWhenVideoCallDeclined:ge.value?c.value.messageWhenDevicePermissionDenied:r.messageWhenLoading),ve=(0,u.computed)(()=>_.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{Ke()}),(0,u.onUnmounted)(()=>{ee.value&&window.clearInterval(ee.value),We()});function ye(){b.value=DX}function be(){}function xe(){b.value!==AX&&!r.isCallee&&Ee()}async function Se(){b.value=EX,y.value.video&&He()}async function Ce(e){S.client=(0,u.markRaw)(new d.CallClient);let t=new f.AzureCommunicationTokenCredential(e);S.agent=(0,u.markRaw)(await S.client.createCallAgent(t)),S.deviceManager=await S.client.getDeviceManager(),y.value=await S.deviceManager.askDevicePermission({video:!0,audio:!0}),ee.value=window.setInterval(He,5e3),(!y.value.audio||!y.value.video)&&(b.value=AX),S.agent.on(`incomingCall`,we),r.isCallee?i(`ready`):i(`start-call`)}async function we(e){if(!te.value)try{te.value=!0,S.incomingCall=e.incomingCall,await De()}catch(e){console.log(`error occured during starting call`,e)}finally{te.value=!1}}async function Te(){let e=await Oe();return e?{localVideoStreams:[e]}:void 0}async function Ee(){try{let e={videoOptions:await Te()},t=[{communicationUserId:r.participant.videoCallIdentityId}];S.call=S.agent.startCall(t,e),Ae(),ke()}catch(e){console.error(e)}}async function De(){let e=await Te();try{S.call=await S.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}Ae(),ke()}async function Oe(){let e=(await S.deviceManager.getCameras())[0];if(e)return new d.LocalVideoStream(e);console.error(`No camera device found on the system`)}function ke(){S.call.on(`stateChanged`,Me),S.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(Pe),e.removed.forEach(Ne)}),S.call.remoteParticipants.forEach(Ie),S.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(Ie)}),S.call.on(`isScreenSharingOnChanged`,()=>{l.value=S.call.isScreenSharingOn})}function Ae(){x.value=S.call.feature(d.Features.UserFacingDiagnostics),x.value.media.on(`diagnosticChanged`,je),x.value.network.on(`diagnosticChanged`,je)}function je(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.DiagnosticQuality.Bad?(console.error(`${e.diagnostic} is bad quality`),v.value=0):e.value===d.DiagnosticQuality.Poor?(console.error(`${e.diagnostic} is poor quality`),v.value=1):v.value=2)}function Me(){switch(S.call.state){case`EarlyMedia`:b.value=kX;break;case`Ringing`:b.value=kX;break;case`Connected`:b.value=OX;break;case`Disconnected`:let e=S.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),Se();break}}async function Ne(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!E.value)return;E.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function Pe(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;E.value=await new d.VideoStreamRenderer(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(E.value.target),t.style.display=`flex`;let n=document.querySelector(`.outgoing__video`);n.style.display=`none`;let r=t.querySelector(`video`);r.style.objectFit=`contain`}async function Fe(e){if(e&&e.source&&C.value&&C.value.source&&C.value.source.id==e.source.id)return!0;try{w.value=new d.VideoStreamRenderer(e);let t=await w.value.createView(),n=document.querySelector(`.outgoing__video`);n.querySelector(`video`)&&(n.innerHTML=``),n.hidden=!1,n.replaceChildren(t.target)}catch{return!1}return C.value=e,!0}async function Ie(e){e.videoStreams.forEach(Le),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(Le)})}async function Le(e){if(e.mediaStreamType===`Video`&&(await Re(e),e.on(`isAvailableChanged`,async()=>await Re(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,Be),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){T.value=new d.VideoStreamRenderer(e);let t=await T.value.createView(),n=document.querySelector(`.incoming__screenshare`);ze(!0),_.value=!0,Ue(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function Re(e){if(!e.isAvailable)return;T.value=new d.VideoStreamRenderer(e);let t=await T.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),Ue(`.incoming__video`),ze(!1)}function ze(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function Be(){_.value=!1,ze(!1)}async function Ve(){He(!0)}async function He(e=!1){let t=S.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await S.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);D.value=n.length;for(let t=0;t<D.value;t++){(e||t!=0)&&(O.value=(O.value+1)%D.value);let r=n[O.value];if(await Fe(new d.LocalVideoStream(r)))break}}function Ue(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function We(){S.call&&S.call.state!==`Disconnected`&&(await S.call.hangUp({forEveryone:!0}),await S.agent.dispose()),i(`end-call`),window.close()}function Ge(){window.close()}function Ke(){aX.log=(...e)=>console.log(...e),oX(`verbose`),aX.log=(...e)=>{let t=[...e];o.value=o.value.splice(1-jX).concat(t)}}function qe(){document.querySelector(ve.value).querySelector(`video`).requestFullscreen()}function Je(){let e=document.querySelector(ve.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Ye(){S.call&&S.call.isScreenSharingOn?await S.call.stopScreenSharing():await S.call.startScreenSharing()}return t({CallDeclined:ye,CallAnswered:be,CallStartVideoCall:xe,CallHangUp:Se,InitializeAcsConnection:Ce}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,sX,[(0,u.createVNode)(m,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(LG,{smallState:!0,contactInfo:r.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(h,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{sm:`12`,lg:fe.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,oe.value])},[he.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cX,[(0,u.createVNode)(n,{size:`lg`,message:_e.value,stopAnimation:fe.value||pe.value||ge.value},null,8,[`message`,`stopAnimation`]),ae.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lX,[(0,u.createElementVNode)(`div`,uX,[(0,u.createVNode)(Wr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ie.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,dX,[(0,u.createElementVNode)(`div`,fX,[(0,u.createVNode)(fa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),fe.value||pe.value||ge.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:Ge},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(c.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,pX,[t[0]||=(0,u.createElementVNode)(`div`,{class:`incoming__video`},null,-1),t[1]||=(0,u.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,u.createElementVNode)(`div`,mX,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:qe},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.fullScreen),1)]),_:1}),!s&&!g.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Je},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),fe.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(p,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,hX,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,gX,[(0,u.createElementVNode)(`div`,_X,[ge.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,vX)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),re.value&&!ge.value&&!g.value&&!he.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:l.value?`danger`:`primary`,class:`text-center`,onClick:Ye},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Di),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(le.value),1)]),_:1},8,[`variant`])):(0,u.createCommentVNode)(``,!0),k.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:Ve},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(c.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,yX,(0,u.toDisplayString)(ne.value),1)],64)):(0,u.createCommentVNode)(``,!0),ie.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,bX,[(0,u.createElementVNode)(`div`,xX,[(0,u.createVNode)(fa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),(0,u.createElementVNode)(`div`,SX,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`settings__signal`,se.value])},[t[3]||=(0,u.createElementVNode)(`ul`,{class:`indicator`},[(0,u.createElementVNode)(`li`),(0,u.createElementVNode)(`li`),(0,u.createElementVNode)(`li`)],-1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(ce.value),1)],2),(0,u.createElementVNode)(`div`,CX,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(ue.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(de.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:r.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(c.value.testCall),9,wX),t[4]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,TX,(0,u.toDisplayString)(c.value.serviceDesk),1)])])])]),!pe.value&&!ge.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`text-center w-100`,onClick:We},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Wt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(c.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]),_:1}))]),_:1})]),_:1})])}}},NX={class:`template not-found-template`},PX={class:`center-screen`},FX={class:`container-warning`},IX=[`textContent`],LX=[`textContent`],RX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Ju(),r=e,i=t,a=(0,u.computed)(()=>r.buttonText||n(`notFoundTemplate.buttonDefault`)),o=(0,u.computed)(()=>n(`notFoundTemplate.title`)),s=(0,u.computed)(()=>n(`notFoundTemplate.description`)),c=()=>i(`navigate`);return(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,NX,[(0,u.createVNode)(m,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,PX,[(0,u.createElementVNode)(`div`,FX,[(0,u.createVNode)(ta),(0,u.createElementVNode)(`h5`,{textContent:(0,u.toDisplayString)(o.value)},null,8,IX),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(s.value)},null,8,LX),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])])])]),_:1})]))}}),zX=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},BX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,VX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),HX={install:e=>{e.component(`BDAlert`,Ca),e.component(`BDArticle`,Ea),e.component(`BDAssignConversationModal`,XK),e.component(`BDAttachmentPreviewList`,L_),e.component(`BDAttachmentUploadModal`,ZK),e.component(`BDBadge`,ka),e.component(`BDButton`,A),e.component(`BDCard`,Ba),e.component(`BDChangePasswordTemplate`,LY),e.component(`BDChatCloud`,sv),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,Wa),e.component(`BDConfirmationModal`,QK),e.component(`BDContainer`,m),e.component(`BDContentLibraryModal`,VJ),e.component(`BDContentLibrarySplitButton`,Nh),e.component(`BDContentLibraryTemplate`,BJ),e.component(`BDConversationToTextModal`,cY),e.component(`BDDate`,Qh),e.component(`BDDropdown`,lK),e.component(`BDDropdownItem`,cv),e.component(`BDFileUpload`,fO),e.component(`BDForm`,$h),e.component(`BDFormCheckbox`,_g),e.component(`BDFormInput`,zg),e.component(`BDFormInvalidFeedback`,yg),e.component(`BDFormMultipleCheckbox`,gO),e.component(`BDFormSelect`,Wg),e.component(`BDHeader`,gK),e.component(`BDImageAttachmentModal`,hY),e.component(`BDImageAttachmentPreviewList`,K_),e.component(`BDInputGroup`,qg),e.component(`BDLink`,ja),e.component(`BDLoader`,$g),e.component(`BDLogo`,n_),e.component(`BDMarkdownEditor`,EG),e.component(`BDMessageTemplateFormModal`,yY),e.component(`BDMobileMenu`,NG),e.component(`BDModal`,TK),e.component(`BDNotFoundTemplate`,RX),e.component(`BDPagination`,l_),e.component(`BDPhoneNumberEditModal`,NK),e.component(`BDPill`,g_),e.component(`BDPractitionerHeader`,qK),e.component(`BDProfileImage`,y_),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,YK),e.component(`BDSmallConversationCard`,LG),e.component(`BDTable`,KG),e.component(`BDToast`,w_),e.component(`BDUser`,ZG),e.component(`BDUserInformation`,k_),e.component(`BDVideoCallConfirmationModal`,DY),e.component(`BDVideoCallTemplate`,MX),e.component(`BDVideoCallToast`,cK),e.component(`BDZoomslider`,M_),e.component(`IconAcademy`,b),e.component(`IconArrowDown`,w),e.component(`IconArrowUp`,O),e.component(`IconAttachment`,k),e.component(`IconBold`,oe),e.component(`IconBulletList`,ue),e.component(`IconCalendar`,me),e.component(`IconCall`,ve),e.component(`IconCallReject`,Se),e.component(`IconCardView`,Ee),e.component(`IconCaretDown`,Ae),e.component(`IconCaretLeft`,Pe),e.component(`IconCaretRight`,Re),e.component(`IconCheck`,He),e.component(`IconClipboard`,Ke),e.component(`IconClose`,Xe),e.component(`IconComment`,et),e.component(`IconCommentActive`,it),e.component(`IconCommentStatic`,ct),e.component(`IconCommonFileEmpty`,ft),e.component(`IconCommonFileWarning`,gt),e.component(`IconContactPerson`,bt),e.component(`IconCopy`,wt),e.component(`IconDelete`,Ot),e.component(`IconDoubleCheck`,Mt),e.component(`IconDownloadImage`,It),e.component(`IconEdit`,Bt),e.component(`IconEndCall`,Wt),e.component(`IconError`,Jt),e.component(`IconExternal`,Qt),e.component(`IconEyeShow`,nn),e.component(`IconEyeSlash`,sn),e.component(`IconFile`,dn),e.component(`IconFileAdded`,hn),e.component(`IconForward`,yn),e.component(`IconHix`,Cn),e.component(`IconHyperlink`,Dn),e.component(`IconImageFileLandscape`,jn),e.component(`IconImageFileWarning`,Fn),e.component(`IconInbox`,zn),e.component(`IconInfo`,Un),e.component(`IconInformationCircle`,qn),e.component(`IconItalic`,Zn),e.component(`IconListView`,tr),e.component(`IconLock`,ar),e.component(`IconLusciiEscalated`,lr),e.component(`IconLusciiLogo`,pr),e.component(`IconLusciiOpen`,_r),e.component(`IconLusciiPriorityHigh`,xr),e.component(`IconLusciiPriorityLow`,Tr),e.component(`IconLusciiPriorityMedium`,kr),e.component(`IconMenu`,Nr),e.component(`IconMessage`,Lr),e.component(`IconMessageForward`,Vr),e.component(`IconMicrophoneSlash`,Wr),e.component(`IconMicrosoftTeams`,Jr),e.component(`IconMin`,Qr),e.component(`IconOrderedList`,ni),e.component(`IconPlus`,oi),e.component(`IconRefresh`,ui),e.component(`IconRemove`,mi),e.component(`IconSananetLogo`,yi),e.component(`IconService`,Ci),e.component(`IconShareScreen`,Di),e.component(`IconSingleNeutral`,ji),e.component(`IconSort`,Fi),e.component(`IconSortAsc`,zi),e.component(`IconSortDesc`,Ui),e.component(`IconSortNone`,qi),e.component(`IconTriangleDown`,Zi),e.component(`IconTriangleExclamation`,ta),e.component(`IconUnderline`,aa),e.component(`IconVideoDisabled`,fa),e.component(`IconVideocall`,la),e.component(`IconWarning`,ga),e.component(`IconZorgkaart`,ba),e.directive(`bd-tooltip`,xG)}};exports.BDAlert=Ca,exports.BDArticle=Ea,exports.BDAssignConversationModal=XK,exports.BDAttachmentPreviewList=L_,exports.BDAttachmentUploadModal=ZK,exports.BDBadge=ka,exports.BDButton=A,exports.BDCard=Ba,exports.BDChangePasswordTemplate=LY,exports.BDChatCloud=sv,exports.BDCol=p,exports.BDCollapsableCard=Wa,exports.BDConfirmationModal=QK,exports.BDContainer=m,exports.BDContentLibraryModal=VJ,exports.BDContentLibrarySplitButton=Nh,exports.BDContentLibraryTemplate=BJ,exports.BDConversationToTextModal=cY,exports.BDDate=Qh,exports.BDDropdown=lK,exports.BDDropdownItem=cv,exports.BDFileUpload=fO,exports.BDForm=$h,exports.BDFormCheckbox=_g,exports.BDFormInput=zg,exports.BDFormInvalidFeedback=yg,exports.BDFormMultipleCheckbox=gO,exports.BDFormSelect=Wg,exports.BDHeader=gK,exports.BDImageAttachmentModal=hY,exports.BDImageAttachmentPreviewList=K_,exports.BDInputGroup=qg,exports.BDLink=ja,exports.BDLoader=$g,exports.BDLogo=n_,exports.BDMarkdownEditor=EG,exports.BDMessageTemplateFormModal=yY,exports.BDMobileMenu=NG,exports.BDModal=TK,exports.BDNotFoundTemplate=RX,exports.BDPagination=l_,exports.BDPhoneNumberEditModal=NK,exports.BDPill=g_,exports.BDPractitionerHeader=qK,exports.BDProfileImage=y_,exports.BDRow=h,exports.BDSessionTimeOutModal=YK,exports.BDSmallConversationCard=LG,exports.BDTable=KG,exports.BDToast=w_,exports.BDUser=ZG,exports.BDUserInformation=k_,exports.BDVideoCallConfirmationModal=DY,exports.BDVideoCallTemplate=MX,exports.BDVideoCallToast=cK,exports.BDZoomslider=M_,exports.CopyChatMessageToClipboard=QJ,exports.CopyChatMessagesToClipboard=$J,exports.CopyHl7MessagesToClipboard=eY,exports.CreateHyperlinkParagraph=BX,exports.CreateThumbnailUri=X_,exports.IconAcademy=b,exports.IconArrowDown=w,exports.IconArrowUp=O,exports.IconAttachment=k,exports.IconBold=oe,exports.IconBulletList=ue,exports.IconCalendar=me,exports.IconCall=ve,exports.IconCallReject=Se,exports.IconCardView=Ee,exports.IconCaretDown=Ae,exports.IconCaretLeft=Pe,exports.IconCaretRight=Re,exports.IconCheck=He,exports.IconClipboard=Ke,exports.IconClose=Xe,exports.IconComment=et,exports.IconCommentActive=it,exports.IconCommentStatic=ct,exports.IconCommonFileEmpty=ft,exports.IconCommonFileWarning=gt,exports.IconContactPerson=bt,exports.IconCopy=wt,exports.IconDelete=Ot,exports.IconDoubleCheck=Mt,exports.IconDownloadImage=It,exports.IconEdit=Bt,exports.IconEndCall=Wt,exports.IconError=Jt,exports.IconExternal=Qt,exports.IconEyeShow=nn,exports.IconEyeSlash=sn,exports.IconFile=dn,exports.IconFileAdded=hn,exports.IconForward=yn,exports.IconHix=Cn,exports.IconHyperlink=Dn,exports.IconImageFileLandscape=jn,exports.IconImageFileWarning=Fn,exports.IconInbox=zn,exports.IconInfo=Un,exports.IconInformationCircle=qn,exports.IconItalic=Zn,exports.IconListView=tr,exports.IconLock=ar,exports.IconLusciiEscalated=lr,exports.IconLusciiLogo=pr,exports.IconLusciiOpen=_r,exports.IconLusciiPriorityHigh=xr,exports.IconLusciiPriorityLow=Tr,exports.IconLusciiPriorityMedium=kr,exports.IconMenu=Nr,exports.IconMessage=Lr,exports.IconMessageForward=Vr,exports.IconMicrophoneSlash=Wr,exports.IconMicrosoftTeams=Jr,exports.IconMin=Qr,exports.IconOrderedList=ni,exports.IconPlus=oi,exports.IconRefresh=ui,exports.IconRemove=mi,exports.IconSananetLogo=yi,exports.IconService=Ci,exports.IconShareScreen=Di,exports.IconSingleNeutral=ji,exports.IconSort=Fi,exports.IconSortAsc=zi,exports.IconSortDesc=Ui,exports.IconSortNone=qi,exports.IconTriangleDown=Zi,exports.IconTriangleExclamation=ta,exports.IconUnderline=aa,exports.IconVideoDisabled=fa,exports.IconVideocall=la,exports.IconWarning=ga,exports.IconZorgkaart=ba,exports.MapAttachmentsForApi=q_,exports.MapToAttachmentObjects=$_,exports.TransformHyperlinks=zX,exports.ValidateUrl=VX,exports.default=HX,exports.getDisplayDateNumeric=Xh,exports.getDisplayDateTextual=qh,exports.getDisplayDateTimeNumeric=Yh,exports.getDisplayDateTimeTextual=Jh,exports.useModal=EK,exports.usePopover=RK,exports.useServerErrors=OK,exports.useSessionTimeOut=JK,exports.useToaster=cO,exports.useValidation=OY,exports.useWindow=IK,exports.useZoom=lY,exports.vBdTooltip=xG;
|