@beterdichtbij/component-library 0.73.1 → 0.73.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.
@@ -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`}}),xJ={name:`Chip`,extends:{name:`BaseChip`,extends:wp,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:bJ,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 _d({removable:this.removable})}},components:{TimesCircleIcon:fJ}},SJ=[`aria-label`,`data-p`],CJ=[`src`];function wJ(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,CJ)):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,SJ)):(0,u.createCommentVNode)(``,!0)}xJ.render=wJ;var TJ={key:0,class:`bd-active-filters`},EJ={class:`options`},DJ=(0,u.defineComponent)({__name:`BDActiveFilters`,props:(0,u.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=Uu(),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`,TJ,[(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`,EJ,[((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)(xJ),{key:e.id+`-`+t.item,label:t.name,removable:``,onRemove:n=>d(`${e.id}-${t.item}`)},null,8,[`label`,`onRemove`])),[[(0,u.unref)(_G),t.name]])),128))])]))),128))])):(0,u.createCommentVNode)(``,!0)}}),OJ=[`id`],kJ={class:`collapse-button-container`},AJ={class:`collapsed-show`},jJ={class:`collapsed-hide`},MJ=(0,u.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:t}){let{t:n}=Uu(),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)(za,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(DJ,{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)(Hg,{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)(fg,{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)(fg,{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,OJ),(0,u.createElementVNode)(`div`,kJ,[(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)(y,{class:`collapsed-show`}),(0,u.createElementVNode)(`span`,AJ,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(C,{class:`collapsed-hide`}),(0,u.createElementVNode)(`span`,jJ,(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}))}}),NJ={class:`content-library-template`},PJ={class:`number-of-messages`},FJ=[`src`],IJ=[`src`],LJ=(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}=Uu(),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)(()=>T_(r.providerSelectOptions)&&r.providerSelectOptions.length>1),c=(0,u.computed)(()=>r.provider&&T_(r.provider.items)?r.provider.items:[]),l=(0,u.computed)(()=>r.provider&&T_(r.provider.filters)),d=(0,u.computed)(()=>{let e=0;return r.provider&&Rq(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),p=(0,u.computed)(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),m=(0,u.computed)(()=>l.value?9:12),h=(0,u.computed)(()=>r.provider&&!l.value?3:2),g=(0,u.computed)(()=>r.showAddButton||s.value),_=(0,u.computed)(()=>({md:3,lg:3})),v=(0,u.computed)(()=>({md:9,lg:9})),y=(0,u.computed)(()=>({sm:12,md:8,lg:s.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),b=(0,u.computed)(()=>({sm:12,md:g.value?4:3,lg:s.value?5:4})),x=e=>e.label===`Categorieën`&&r.editCategory,S=()=>{i(`create`)},C=e=>{i(`on-insert`,e)},w=e=>{i(`on-change`,e)},T=e=>{i(`delete`,e)},E=()=>{i(`update`,`category`)},D=()=>{a.value.currentPage=1,i(`on-input`,a.value)},O=()=>{i(`on-input`,a.value)},ee=e=>{i(`show-attachment`,e)},te=e=>{i(`provider-changed`,e.value)};return(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,NJ,[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,(0,u.mergeProps)(_.value,{class:`content-library-header content-library-header__messages`}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,PJ,(0,u.toDisplayString)(d.value),1)]),_:1},16),(0,u.createVNode)(HK,(0,u.mergeProps)(v.value,{class:`content-library-header`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`controls-row`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,(0,u.mergeProps)(y.value,{class:`search-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{type:`text`,modelValue:a.value.searchTerm,"onUpdate:modelValue":i[0]||=e=>a.value.searchTerm=e,placeholder:o.value,delayTimeMs:500,class:`search-input`,onInput:D,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(HK,(0,u.mergeProps)({key:0},b.value,{class:`add-button-block`}),{default:(0,u.withCtx)(()=>[e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,class:`add-button`,onClick:S},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(ti),(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)(HK,(0,u.mergeProps)({key:1},b.value,{class:`select-button-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{modelValue:a.value.provider,"onUpdate:modelValue":i[1]||=e=>a.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":te},{"open-indicator":(0,u.withCtx)(({attributes:e})=>[(0,u.createElementVNode)(`span`,(0,u.normalizeProps)((0,u.guardReactiveProps)(e)),[(0,u.createVNode)(Ee)],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,FJ)):(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,IJ)):(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)(HK,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(MJ,{filters:r.provider.filters,searchForm:a.value,"enable-edit-category":r.editCategory,"no-header":!0,onCheck:D},{"filter-extra":(0,u.withCtx)(({filter:e})=>[x(e)?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:E},{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)(HK,{md:12,lg:m.value,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(dJ,{items:c.value,cols:h.value,onOnInsert:C,onOnChange:w,onDelete:T,onShowAttachment:ee},null,8,[`items`,`cols`]),(0,u.createVNode)(WK,{class:`content-library-pagination`},{default:(0,u.withCtx)(()=>[f.value?((0,u.openBlock)(),(0,u.createBlock)(i_,{key:0,modelValue:a.value.currentPage,"onUpdate:modelValue":i[2]||=e=>a.value.currentPage=e,totalRows:p.value,rowsPerPage:e.provider.pageSize,onClick:O,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),RJ={__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}=bK(`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)(yK,{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)(LJ,{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`]))}},zJ=Object.defineProperty,BJ=(e,t,n)=>t in e?zJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VJ=(e,t,n)=>(BJ(e,typeof t==`symbol`?t:t+``,n),n),HJ=class{constructor(){VJ(this,`seed`,0),VJ(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)}},UJ=`Failed to copy value to clipboard. Unknown type.`,WJ={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(UJ,e),``}return e}},GJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,KJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=GJ,t}},qJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await qJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=KJ.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=WJ.asString(t);if(qJ.writeClipboardExecCommand(n))return!0;await qJ.writeClipboard(n)}};new HJ;var{showSuccessToast:JJ}=iO(),YJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${Zq(Qq(e.Tekst))}`;qJ.copy(r).then(()=>JJ(n))},XJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${Zq(Qq(e.Tekst))}`).join(`
1883
1883
  -----------------------
1884
- `)}`;qJ.copy(r).then(()=>JJ(n))},ZJ=(e,t)=>{qJ.copy(e).then(()=>JJ(t))},QJ={class:`message-cloud-multi-select`},$J={class:`message-cloud-multi-select__body`},eY={class:`message-content`},tY={class:`message-cloud__header`},nY={class:`message-cloud__title`},rY={key:0},iY=[`innerHTML`],aY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Uu(),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 XJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{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`,QJ,[(0,u.createVNode)(fg,{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`,$J,[((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)(fg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,eY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,tY,[(0,u.createElementVNode)(`div`,nY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,rY,[(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,iY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function oY(){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 sY=[`src`,`alt`],cY={key:0,class:`show-spinner`},lY={class:`spinner-border text-primary`,role:`status`},uY=[`textContent`],dY=[`href`],fY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=bK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=oY(),{t:l}=Uu(),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)(yK,{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,sY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cY,[(0,u.createElementVNode)(`div`,lY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,uY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(A_,{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,dY)]),_:1},8,[`class`,`title`]))}}),pY={__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}=bK(`attachment-upload-modal`),r=e,i=t,{t:a}=Uu(),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)(Jh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(bG,{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)(()=>[(0,u.createVNode)(m_,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Oh,{"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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(fO,{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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{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)(mg,{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}))}},mY={__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}=Uu(),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)(yK,{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)(pY,{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`]))}},hY={key:0},gY={key:1},_Y={key:2},vY={key:3},yY={key:1},bY={key:2},xY=[`href`],SY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Uu(),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)(yK,{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)(va,{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`,hY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,gY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,_Y,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,vY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,yY,[(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`,bY,(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,xY),(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`]))}}),CY=()=>({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}}),wY={class:`template change-password-template`},TY={class:`template-title`},EY={key:0},DY={key:1},OY={class:`bd-form-field`},kY={class:`bd-form-field`},AY={class:`bd-form-field`},jY={class:`bd-form-buttons`},MY=(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}=Uu(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=iO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=SK(null),{ValidationObjectIsValid:l}=CY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),g()}).catch(e=>{n(d.failureText),s(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,l(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,wY,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,TY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(WK,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Fa,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(UK,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{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)(WK,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EY,[(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)(Rn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,DY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(m,[`prevent`]),onReset:(0,u.withModifiers)(g,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,OY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,kY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,AY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,jY,[(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})]))}}),NY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L9.79679%206.61719V4.25391C9.79679%201.97656%2011.6445%200.128906%2013.9218%200.128906C16.1991%200.128906%2018.0468%201.97656%2018.0468%204.25391V13.0625L18.7773%2013.6641C19.164%2012.9336%2019.4218%2012.0742%2019.4218%2011.1289V9.41016C19.4218%208.85156%2019.8515%208.37891%2020.453%208.37891C21.0116%208.37891%2021.4843%208.85156%2021.4843%209.41016V11.1289C21.4843%2012.5469%2021.0976%2013.8359%2020.453%2014.9531L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.4023%2017.875C16.6288%2018.2617%2015.8124%2018.5195%2014.953%2018.6484V20.0664H17.0155C17.5741%2020.0664%2018.0468%2020.5391%2018.0468%2021.0977C18.0468%2021.6992%2017.5741%2022.1289%2017.0155%2022.1289H13.9218H10.828C10.2265%2022.1289%209.79679%2021.6992%209.79679%2021.0977C9.79679%2020.5391%2010.2265%2020.0664%2010.828%2020.0664H12.8905V18.6484C9.19523%2018.1328%206.35929%2014.9961%206.35929%2011.1289V9.41016C6.35929%209.32422%206.35929%209.23828%206.35929%209.15234L8.42179%2010.7852V11.1289C8.42179%2014.1797%2010.871%2016.6289%2013.9218%2016.6289C14.4804%2016.6289%2015.039%2016.543%2015.5546%2016.4141L17.4023%2017.875Z'%20fill='white'/%3e%3c/svg%3e`,PY=`data:image/svg+xml,%3csvg%20width='16'%20height='22'%20viewBox='0%200%2016%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.56242%200C9.83976%200%2011.6874%201.84766%2011.6874%204.125V11C11.6874%2013.2773%209.83976%2015.125%207.56242%2015.125C5.28508%2015.125%203.43742%2013.2773%203.43742%2011V4.125C3.43742%201.84766%205.28508%200%207.56242%200ZM2.06242%209.28125V11C2.06242%2014.0508%204.51164%2016.5%207.56242%2016.5C10.5702%2016.5%2013.0624%2014.0508%2013.0624%2011V9.28125C13.0624%208.72266%2013.4921%208.25%2014.0937%208.25C14.6523%208.25%2015.1249%208.72266%2015.1249%209.28125V11C15.1249%2014.8672%2012.246%2018.0039%208.59367%2018.5195V19.9375H10.6562C11.2148%2019.9375%2011.6874%2020.4102%2011.6874%2020.9688C11.6874%2021.5703%2011.2148%2022%2010.6562%2022H7.56242H4.46867C3.86711%2022%203.43742%2021.5703%203.43742%2020.9688C3.43742%2020.4102%203.86711%2019.9375%204.46867%2019.9375H6.53117V18.5195C2.83586%2018.0039%20-8.10623e-05%2014.8672%20-8.10623e-05%2011V9.28125C-8.10623e-05%208.72266%200.429606%208.25%201.03117%208.25C1.58976%208.25%202.06242%208.72266%202.06242%209.28125Z'%20fill='white'/%3e%3c/svg%3e`,FY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L5.02726%202.87891H15.2968C16.8007%202.87891%2018.0468%204.125%2018.0468%205.62891V13.0625L19.4218%2014.1367V13.8789V8.37891V7.64844L20.0234%207.26172L24.1484%204.51172C24.578%204.21094%2025.0937%204.21094%2025.5663%204.42578C25.996%204.68359%2026.2968%205.15625%2026.2968%205.62891V16.6289C26.2968%2017.1445%2025.996%2017.6172%2025.5663%2017.875C25.0937%2018.0898%2024.578%2018.0898%2024.1484%2017.7891L23.5468%2017.4023L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.6601%2018.0469C17.1445%2018.8633%2016.2851%2019.3789%2015.2968%2019.3789H4.29679C2.74992%2019.3789%201.54679%2018.1758%201.54679%2016.6289V5.62891C1.54679%205.54297%201.54679%205.45703%201.54679%205.37109L17.6601%2018.0469Z'%20fill='white'/%3e%3c/svg%3e`,IY=`data:image/svg+xml,%3csvg%20width='25'%20height='17'%20viewBox='0%200%2025%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-8.10623e-05%202.75C-8.10623e-05%201.24609%201.20304%200%202.74992%200H13.7499C15.2538%200%2016.4999%201.24609%2016.4999%202.75V13.75C16.4999%2015.2969%2015.2538%2016.5%2013.7499%2016.5H2.74992C1.20304%2016.5%20-8.10623e-05%2015.2969%20-8.10623e-05%2013.75V2.75ZM24.0195%201.54688C24.4491%201.80469%2024.7499%202.27734%2024.7499%202.75V13.75C24.7499%2014.2656%2024.4491%2014.7383%2024.0195%2014.9961C23.5468%2015.2109%2023.0312%2015.2109%2022.6015%2014.9102L18.4765%2012.1602L17.8749%2011.7734V11V5.5V4.76953L18.4765%204.38281L22.6015%201.63281C23.0312%201.33203%2023.5468%201.33203%2024.0195%201.54688Z'%20fill='white'/%3e%3c/svg%3e`,LY={},RY={width:`26`,height:`26`,viewBox:`0 0 26 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-blur`};function zY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,RY,[...t[0]||=[(0,u.createStaticVNode)(`<g opacity="0.54"><circle cx="1" cy="1" r="1" fill="white"></circle><circle cx="7" cy="1" r="1" fill="white"></circle><circle cx="13" cy="1" r="1" fill="white"></circle><circle cx="19" cy="1" r="1" fill="white"></circle><circle cx="25" cy="1" r="1" fill="white"></circle><circle cx="1" cy="7" r="1" fill="white"></circle><circle cx="7" cy="7" r="1" fill="white"></circle><circle cx="13" cy="7" r="1" fill="white"></circle><circle cx="19" cy="7" r="1" fill="white"></circle><circle cx="25" cy="7" r="1" fill="white"></circle><circle cx="1" cy="13" r="1" fill="white"></circle><circle cx="7" cy="13" r="1" fill="white"></circle><circle cx="13" cy="13" r="1" fill="white"></circle><circle cx="19" cy="13" r="1" fill="white"></circle><circle cx="25" cy="13" r="1" fill="white"></circle><circle cx="1" cy="19" r="1" fill="white"></circle><circle cx="7" cy="19" r="1" fill="white"></circle><circle cx="13" cy="19" r="1" fill="white"></circle><circle cx="19" cy="19" r="1" fill="white"></circle><circle cx="25" cy="19" r="1" fill="white"></circle><circle cx="1" cy="25" r="1" fill="white"></circle><circle cx="7" cy="25" r="1" fill="white"></circle><circle cx="13" cy="25" r="1" fill="white"></circle><circle cx="19" cy="25" r="1" fill="white"></circle><circle cx="25" cy="25" r="1" fill="white"></circle></g>`,1)]])}var BY=d(LY,[[`render`,zY]]),VY={},HY={width:`20`,height:`33`,viewBox:`0 0 20 33`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-participant`};function UY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,HY,[...t[0]||=[(0,u.createElementVNode)(`path`,{d:`M9.625 16.75C6.57422 16.75 4.125 14.3008 4.125 11.25C4.125 8.24219 6.57422 5.75 9.625 5.75C12.6328 5.75 15.125 8.24219 15.125 11.25C15.125 14.3008 12.6328 16.75 9.625 16.75ZM13.4492 18.125C16.6289 18.125 19.25 20.7461 19.25 23.9258V25.6875C19.25 26.8477 18.3047 27.75 17.1875 27.75H2.0625C0.902344 27.75 0 26.8477 0 25.6875V23.9258C0 20.7461 2.57812 18.125 5.75781 18.125H6.48828C7.43359 18.5977 8.50781 18.8125 9.625 18.8125C10.7422 18.8125 11.7734 18.5977 12.7188 18.125H13.4492Z`,fill:`white`},null,-1)]])}var WY=d(VY,[[`render`,UY]]),GY={class:`video-call-template`},KY={key:0,class:`card`},qY={key:0,class:`permissions-denied__audio`},JY={class:`permissions-denied__audio-disabled`},YY={key:1,class:`permissions-denied__video`},XY={class:`permissions-denied__video-disabled`},ZY={key:1,class:`card`},QY={class:`incoming__settings`},$Y={class:`side`},eX={class:`outgoing`},tX={class:`card`},nX={key:0,class:`outgoing__video`},rX={class:`outgoing__controls`},iX=[`alt`],aX=[`alt`],oX=[`alt`],sX=[`alt`],cX={class:`outgoing__available-cameras-count text-center`},lX={key:3,class:`permissions-denied__video`},uX={class:`permissions-denied__video-disabled`},dX={class:`settings`},fX={class:`settings__status`},pX={class:`settings__status-text`},mX={key:0,class:`settings__status-detail`},hX={class:`settings__help`},gX=[`href`],_X={href:`https://www.beterdichtbij.nl/service-contact/`,target:`_blank`,rel:`noopener noreferrer`},vX=2e3,yX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},participantRole:{type:String,default:`deelnemer`},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),i=null,a=null,o=null,s=null,c=null,l=null,d=null,f=null,p=e,m=n,{tm:h}=Uu(),g=(0,u.ref)([]),_=navigator.userAgent.indexOf(`Firefox`)>-1,v=(0,u.computed)(()=>h(`videoCallTemplate`)),y=(0,u.ref)(!1),b=(0,u.ref)(!1),x=(0,u.ref)(!1),S=(0,u.ref)(2),C=(0,u.ref)({}),w=(0,u.ref)(r.Initializing),T=(0,u.ref)(null),E=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),D=(0,u.ref)(null),O=(0,u.ref)(null),ee=(0,u.ref)(null),te=(0,u.ref)(null),ne=(0,u.ref)(0),re=(0,u.ref)(0),ie=(0,u.ref)(null),ae=(0,u.ref)(!1),oe=(0,u.ref)(``),se=(0,u.ref)(``),ce=(0,u.ref)(null),le=(0,u.ref)(null),ue=(0,u.ref)(!0),de=(0,u.ref)(!1),fe=(0,u.ref)(!1),pe=null,me=null,he=null,ge=(0,u.computed)(()=>{switch(ne.value){case 0:return Ee.value.hasNoAvailableCamera;case 1:return Ee.value.hasOneAvailableCamera;default:return Ee.value.hasMultipleAvailableCameras}}),_e=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!y.value}),ve=(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)}),ye=(0,u.computed)(()=>!C.value?.video&&Ne.value),be=(0,u.computed)(()=>!C.value?.audio&&Ne.value),xe=(0,u.computed)(()=>w.value===r.Declined?`incoming--declined`:`incoming--loading`);(0,u.computed)(()=>{switch(S.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),(0,u.computed)(()=>{switch(S.value){case 0:return v.value.signalStrength.weak;case 1:return v.value.signalStrength.steady;case 2:return v.value.signalStrength.strong;default:return null}});let Se=(0,u.computed)(()=>v.value.videoCallTemplate||v.value),Ce=(0,u.computed)(()=>Se.value.actions||Se.value),we=(0,u.computed)(()=>Se.value.help||Se.value),Te=(0,u.computed)(()=>Se.value.permissions||Se.value),Ee=(0,u.computed)(()=>Se.value.cameraAvailability||Se.value),De=(0,u.computed)(()=>y.value?Ce.value.stopSharingScreen:Ce.value.shareScreen),Oe=(0,u.computed)(()=>we.value.placeholderSettingsHelpTitle),ke=(0,u.computed)(()=>we.value.placeholderSettingsHelpMessage),k=(0,u.computed)(()=>w.value===r.Declined),Ae=(0,u.computed)(()=>w.value===r.HangedUp),je=(0,u.computed)(()=>w.value===r.Connected),Me=(0,u.computed)(()=>!je.value),Ne=(0,u.computed)(()=>w.value===r.DevicePermissionDenied),Pe=(0,u.computed)(()=>Se.value.statusTextMessage||Se.value),Fe=(0,u.computed)(()=>Se.value.statusDetailMessage||Se.value),Ie=(0,u.computed)(()=>p.participantRole),Le=(0,u.computed)(()=>fe.value?Ce.value.microphoneUnmute:Ce.value.microphoneMute),Re=(0,u.computed)(()=>de.value?Ce.value.cameraOn:Ce.value.cameraOff),ze=(0,u.computed)(()=>ue.value?Ce.value.backgroundBlur:Ce.value.backgroundUnblur);function Be(e){if(typeof e!=`string`)return e;let t=e.replaceAll(`{participantRole}`,Ie.value);return t&&t.charAt(0).toLocaleUpperCase()+t.slice(1)}let Ve=(0,u.computed)(()=>{switch(w.value){case r.Initializing:return Be(Pe.value.initializing);case r.Dialing:return Be(Pe.value.dialing);case r.Ringing:return Be(Pe.value.ringing);case r.Answered:return Be(Pe.value.answered);case r.Connected:return Be(Pe.value.connected);case r.Declined:return Be(Pe.value.videoCallDeclined);case r.HangedUp:return Be(Pe.value.videoCallHangedUp);case r.DevicePermissionDenied:return Be(Pe.value.devicePermissionDenied)}}),He=(0,u.computed)(()=>oe.value||Ve.value),Ue=(0,u.computed)(()=>se.value),We=(0,u.computed)(()=>x.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{At(),Ke(),le.value=window.setInterval(at,5e3)}),(0,u.onUnmounted)(()=>{ie.value&&window.clearInterval(ie.value),le.value&&window.clearInterval(le.value),Ge(),Ot()});function Ge(){pe&&=(window.clearTimeout(pe),null),me&&=(window.clearTimeout(me),null),he&&=(window.clearTimeout(he),null)}function Ke(){Ge(),w.value===r.Initializing?pe=window.setTimeout(()=>{w.value===r.Initializing&&(oe.value=Be(Pe.value.callNotDelivered),se.value=Be(Fe.value.callNotDeliveredDetail))},3e4):w.value===r.Dialing?me=window.setTimeout(()=>{w.value===r.Dialing&&(oe.value=``,se.value=Be(Fe.value.notAnsweredDetail))},1e4):w.value===r.Connected&&(he=window.setTimeout(()=>{w.value===r.Connected&&(se.value=Be(Fe.value.noVideoHint))},5e3))}function qe(e){[r.Declined,r.HangedUp,r.DevicePermissionDenied].includes(w.value)||(w.value=e,oe.value=``,se.value=``,Ke())}function Je(){fe.value=!fe.value,console.log(`Microphone toggled`)}function Ye(){de.value=!de.value,console.log(`Camera toggled`)}function Xe(){ue.value=!ue.value,console.log(`Background blur toggled`)}function Ze(){qe(r.Declined)}function Qe(){qe(r.Answered)}function $e(){w.value!==r.Connected&&qe(r.Dialing)}function et(){w.value!==r.DevicePermissionDenied&&!p.isCallee&&lt()}async function tt(){qe(r.HangedUp),C.value.video&&Et()}function nt(e){qe(r.HangedUp),se.value=gt(e)}function rt(){oe.value=Be(Pe.value.signalHold),se.value=Be(Fe.value.signalHoldDetail)}function it(){ce.value=new Date}function at(){if(!ce.value||w.value===r.HangedUp)return;let e=new Date,t=new Date(ce.value),n=Math.abs(e.getTime()-t.getTime()),i=Math.ceil(n/1e3);i>=40?(oe.value=Pe.value.connectionIssues,se.value=Fe.value.connectionIssuesStrong,S.value=0):i>20&&(oe.value=Pe.value.connectionIssues,se.value=Fe.value.connectionIssuesMedium,S.value=1)}async function ot(e){await kt(),E.client=(0,u.markRaw)(new o);let t=new f(e);if(E.agent=(0,u.markRaw)(await E.client.createCallAgent(t)),E.deviceManager=await E.client.getDeviceManager(),C.value=await E.deviceManager.askDevicePermission({video:!0,audio:!0}),(await E.deviceManager.getCameras()).length||(C.value.video=!1),ie.value=window.setInterval(Et,5e3),!C.value.audio||!C.value.video){qe(r.DevicePermissionDenied);return}E.agent.on(`incomingCall`,st),p.isCallee?m(`ready`):m(`start-call`)}async function st(e){if(!ae.value)try{ae.value=!0,E.incomingCall=e.incomingCall,await ut()}catch(e){console.log(`error occured during starting call`,e)}finally{ae.value=!1}}async function ct(){let e=await dt();return e?{localVideoStreams:[e]}:void 0}async function lt(){try{qe(r.Dialing);let e={videoOptions:await ct()},t=[{communicationUserId:p.participant.videoCallIdentityId}];E.call=E.agent.startCall(t,e),pt(),ft()}catch(e){console.error(e)}}async function ut(){let e=await ct();try{E.call=await E.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}pt(),ft()}async function dt(){let e=(await E.deviceManager.getCameras())[0];if(e)return new c(e);console.error(`No camera device found on the system`)}function ft(){E.call.on(`stateChanged`,ht),E.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(vt),e.removed.forEach(_t)}),E.call.remoteParticipants.forEach(bt),E.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(bt)}),E.call.on(`isScreenSharingOnChanged`,()=>{y.value=E.call.isScreenSharingOn})}function pt(){T.value=E.call.feature(l.UserFacingDiagnostics),T.value.media.on(`diagnosticChanged`,mt),T.value.network.on(`diagnosticChanged`,mt)}function mt(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.Bad?(console.error(`${e.diagnostic} is bad quality`),S.value=0):e.value===d.Poor?(console.error(`${e.diagnostic} is poor quality`),S.value=1):S.value=2)}function ht(){switch(E.call.state){case`EarlyMedia`:qe(r.Dialing);break;case`Ringing`:qe(r.Ringing);break;case`Connected`:qe(r.Connected);break;case`Disconnected`:let e=E.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),tt();break}}function gt(e){let t=String(e);return Be(Se.value.endReasons?.[t]||``)}async function _t(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!te.value)return;te.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function vt(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;te.value=await new s(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(te.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 yt(e){if(e&&e.source&&D.value&&D.value.source&&D.value.source.id==e.source.id)return!0;try{O.value=new s(e);let t=await O.value.createView(),n=document.querySelector(`.outgoing__video`);n.querySelector(`video`)&&(n.innerHTML=``),n.hidden=!1,n.replaceChildren(t.target)}catch{return!1}return D.value=e,!0}async function bt(e){e.videoStreams.forEach(xt),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(xt)})}async function xt(e){if(e.mediaStreamType===`Video`&&(await St(e),e.on(`isAvailableChanged`,async()=>await St(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,wt),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__screenshare`);Ct(!0),x.value=!0,Dt(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function St(e){if(!e.isAvailable)return;ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),Dt(`.incoming__video`),Ct(!1)}function Ct(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 wt(){x.value=!1,Ct(!1)}async function Tt(){Et(!0)}async function Et(e=!1){let t=E.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await E.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);ne.value=n.length;for(let t=0;t<ne.value;t++){(e||t!=0)&&(re.value=(re.value+1)%ne.value);let r=n[re.value];if(await yt(new c(r)))break}}function Dt(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function Ot(){E.call&&E.call.state!==`Disconnected`&&(await E.call.hangUp({forEveryone:!0}),await E.agent.dispose()),m(`end-call`,g.value)}async function kt(){return i||=Promise.all([import(`@azure/communication-calling`),import(`@azure/communication-common`)]).then(([e,t])=>{o=e.CallClient,s=e.VideoStreamRenderer,c=e.LocalVideoStream,l=e.Features,d=e.DiagnosticQuality,f=t.AzureCommunicationTokenCredential}),i}async function At(){a||=Promise.resolve().then(()=>require("./browser-J9v82mb3.cjs"));let{AzureLogger:e,setLogLevel:t}=await a;e.log=(...e)=>console.log(...e),t(`info`),e.log=(...e)=>{let t=[...e];g.value=g.value.splice(1-vX).concat(t)}}function jt(){document.querySelector(We.value).querySelector(`video`).requestFullscreen()}function Mt(){let e=document.querySelector(We.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Nt(){E.call&&E.call.isScreenSharingOn?await E.call.stopScreenSharing():await E.call.startScreenSharing()}return t({CallDeclined:Ze,CallAnswered:Qe,CallForDataReceived:$e,CallClosedWithStatusCode:nt,CallHeartbeatReceived:it,CallSignalHoldDetected:rt,CallStartVideoCall:et,CallHangUp:tt,InitializeAcsConnection:ot}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,GY,[(0,u.createVNode)(UK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jG,{contactInfo:p.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{sm:`12`,lg:k.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,xe.value])},[Me.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,KY,[(0,u.createVNode)(n,{size:`lg`,message:Ve.value,stopAnimation:k.value||Ae.value||Ne.value},null,8,[`message`,`stopAnimation`]),be.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,qY,[(0,u.createElementVNode)(`div`,JY,[(0,u.createVNode)(zr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,YY,[(0,u.createElementVNode)(`div`,XY,[(0,u.createVNode)(sa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),k.value||Ae.value||Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:Ot},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ZY,[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`,QY,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:jt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.fullScreen),1)]),_:1}),!_&&!b.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Mt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),k.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(HK,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,$Y,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,eX,[(0,u.createElementVNode)(`div`,tX,[Ne.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,nX)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),(0,u.createElementVNode)(`div`,rX,[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":fe.value}),onClick:Je},{default:(0,u.withCtx)(()=>[fe.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:NY,alt:Le.value},null,8,iX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:PY,alt:Le.value},null,8,aX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),Le.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":de.value}),onClick:Ye},{default:(0,u.withCtx)(()=>[de.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:FY,alt:Re.value},null,8,oX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:IY,alt:Re.value},null,8,sX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),Re.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)([`blur-button`,{off:ue.value}]),onClick:Xe},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WY),(0,u.createVNode)(BY)]),_:1},8,[`class`])),[[(0,u.unref)(_G),ze.value]])]),ve.value&&!Ne.value&&!b.value&&!Me.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:y.value?`danger`:`primary`,class:`share-button`,onClick:Nt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value),1)]),_:1},8,[`variant`])):(0,u.createCommentVNode)(``,!0),_e.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:Tt},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Ce.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,cX,(0,u.toDisplayString)(ge.value),1)],64)):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lX,[(0,u.createElementVNode)(`div`,uX,[(0,u.createVNode)(sa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),!Ae.value&&!Ne.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`end-call-button text-center w-100`,onClick:Ot},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Ce.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,dX,[(0,u.createElementVNode)(`div`,fX,[(0,u.createElementVNode)(`p`,pX,(0,u.toDisplayString)(He.value),1),Ue.value?((0,u.openBlock)(),(0,u.createElementBlock)(`small`,mX,(0,u.toDisplayString)(Ue.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,hX,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(Oe.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(ke.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:p.videoTestUrl,target:`_blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(Ce.value.testCall),9,gX),t[3]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,_X,(0,u.toDisplayString)(Ce.value.serviceDesk),1)])])])])])]),_:1}))]),_:1})]),_:1})])}}},bX={class:`template not-found-template`},xX={class:`center-screen`},SX={class:`container-warning`},CX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Uu(),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`,bX,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,xX,[(0,u.createElementVNode)(`div`,SX,[(0,u.createVNode)(Xi),(0,u.createElementVNode)(`h1`,null,(0,u.toDisplayString)(o.value),1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(s.value),1),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(a.value),1)]),_:1})])])]),_:1})]))}}),wX=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>`)},TX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,EX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),DX={install:e=>{e.component(`BDAlert`,va),e.component(`BDArticle`,xa),e.component(`BDAssignConversationModal`,qK),e.component(`BDAttachmentPreviewList`,F_),e.component(`BDAttachmentUploadModal`,JK),e.component(`BDBadge`,wa),e.component(`BDButton`,A),e.component(`BDCard`,Fa),e.component(`BDChangePasswordTemplate`,MY),e.component(`BDChatCloud`,rv),e.component(`BDCol`,HK),e.component(`BDCollapsableCard`,za),e.component(`BDConfirmationModal`,YK),e.component(`BDContainer`,UK),e.component(`BDContentLibraryModal`,RJ),e.component(`BDContentLibrarySplitButton`,Oh),e.component(`BDContentLibraryTemplate`,LJ),e.component(`BDConversationToTextModal`,aY),e.component(`BDDate`,qh),e.component(`BDDropdown`,rK),e.component(`BDDropdownItem`,iv),e.component(`BDFileUpload`,cO),e.component(`BDForm`,Jh),e.component(`BDFormCheckbox`,fg),e.component(`BDFormInput`,Pg),e.component(`BDFormInvalidFeedback`,mg),e.component(`BDFormMultipleCheckbox`,fO),e.component(`BDFormSelect`,zg),e.component(`BDHeader`,uK),e.component(`BDImageAttachmentModal`,fY),e.component(`BDImageAttachmentPreviewList`,W_),e.component(`BDInputGroup`,Hg),e.component(`BDLink`,Ea),e.component(`BDLoader`,Jg),e.component(`BDLogo`,Zg),e.component(`BDMarkdownEditor`,bG),e.component(`BDMessageTemplateFormModal`,mY),e.component(`BDMobileMenu`,DG),e.component(`BDModal`,yK),e.component(`BDNotFoundTemplate`,CX),e.component(`BDPagination`,i_),e.component(`BDPhoneNumberEditModal`,DK),e.component(`BDPill`,d_),e.component(`BDPillContainer`,m_),e.component(`BDPractitionerHeader`,VK),e.component(`BDProfileImage`,__),e.component(`BDRow`,WK),e.component(`BDSessionTimeOutModal`,KK),e.component(`BDSmallConversationCard`,jG),e.component(`BDTable`,BG),e.component(`BDToast`,S_),e.component(`BDUser`,GG),e.component(`BDUserInformation`,D_),e.component(`BDVideoCallConfirmationModal`,SY),e.component(`BDVideoCallTemplate`,yX),e.component(`BDVideoCallToast`,nK),e.component(`BDZoomslider`,A_),e.component(`IconAcademy`,h),e.component(`IconArrowDown`,y),e.component(`IconArrowUp`,C),e.component(`IconAttachment`,D),e.component(`IconBold`,ne),e.component(`IconBulletList`,oe),e.component(`IconCalendar`,ue),e.component(`IconCall`,me),e.component(`IconCallReject`,ve),e.component(`IconCardView`,Se),e.component(`IconCaretDown`,Ee),e.component(`IconCaretLeft`,k),e.component(`IconCaretRight`,Ne),e.component(`IconCheck`,Le),e.component(`IconClipboard`,Ve),e.component(`IconClose`,Ge),e.component(`IconComment`,Ye),e.component(`IconCommentActive`,$e),e.component(`IconCommentStatic`,rt),e.component(`IconCommonFileEmpty`,st),e.component(`IconCommonFileWarning`,dt),e.component(`IconContactPerson`,ht),e.component(`IconCopy`,yt),e.component(`IconDelete`,Ct),e.component(`IconDoubleCheck`,Dt),e.component(`IconDownloadImage`,jt),e.component(`IconEdit`,Ft),e.component(`IconEndCall`,zt),e.component(`IconError`,Ut),e.component(`IconExternal`,qt),e.component(`IconEyeShow`,Zt),e.component(`IconEyeSlash`,tn),e.component(`IconFile`,on),e.component(`IconFileAdded`,un),e.component(`IconForward`,mn),e.component(`IconHix`,vn),e.component(`IconHyperlink`,Sn),e.component(`IconImageFileLandscape`,En),e.component(`IconImageFileWarning`,An),e.component(`IconInbox`,Pn),e.component(`IconInfo`,Rn),e.component(`IconInformationCircle`,Hn),e.component(`IconItalic`,Kn),e.component(`IconListView`,Xn),e.component(`IconLock`,er),e.component(`IconLusciiEscalated`,ir),e.component(`IconLusciiLogo`,cr),e.component(`IconLusciiOpen`,fr),e.component(`IconLusciiPriorityHigh`,gr),e.component(`IconLusciiPriorityLow`,br),e.component(`IconLusciiPriorityMedium`,wr),e.component(`IconMenu`,Or),e.component(`IconMessage`,Mr),e.component(`IconMessageForward`,Ir),e.component(`IconMicrophoneSlash`,zr),e.component(`IconMicrosoftTeams`,Ur),e.component(`IconMin`,qr),e.component(`IconOrderedList`,Zr),e.component(`IconPlus`,ti),e.component(`IconRefresh`,ai),e.component(`IconRemove`,li),e.component(`IconSananetLogo`,mi),e.component(`IconService`,vi),e.component(`IconShareScreen`,Si),e.component(`IconSingleNeutral`,Ei),e.component(`IconSort`,Ai),e.component(`IconSortAsc`,Pi),e.component(`IconSortDesc`,Ri),e.component(`IconSortNone`,Hi),e.component(`IconTriangleDown`,Ki),e.component(`IconTriangleExclamation`,Xi),e.component(`IconUnderline`,ea),e.component(`IconVideoDisabled`,sa),e.component(`IconVideocall`,ia),e.component(`IconWarning`,da),e.component(`IconZorgkaart`,ha),e.directive(`bd-tooltip`,_G)}};exports.BDAlert=va,exports.BDArticle=xa,exports.BDAssignConversationModal=qK,exports.BDAttachmentPreviewList=F_,exports.BDAttachmentUploadModal=JK,exports.BDBadge=wa,exports.BDButton=A,exports.BDCard=Fa,exports.BDChangePasswordTemplate=MY,exports.BDChatCloud=rv,exports.BDCol=HK,exports.BDCollapsableCard=za,exports.BDConfirmationModal=YK,exports.BDContainer=UK,exports.BDContentLibraryModal=RJ,exports.BDContentLibrarySplitButton=Oh,exports.BDContentLibraryTemplate=LJ,exports.BDConversationToTextModal=aY,exports.BDDate=qh,exports.BDDropdown=rK,exports.BDDropdownItem=iv,exports.BDFileUpload=cO,exports.BDForm=Jh,exports.BDFormCheckbox=fg,exports.BDFormInput=Pg,exports.BDFormInvalidFeedback=mg,exports.BDFormMultipleCheckbox=fO,exports.BDFormSelect=zg,exports.BDHeader=uK,exports.BDImageAttachmentModal=fY,exports.BDImageAttachmentPreviewList=W_,exports.BDInputGroup=Hg,exports.BDLink=Ea,exports.BDLoader=Jg,exports.BDLogo=Zg,exports.BDMarkdownEditor=bG,exports.BDMessageTemplateFormModal=mY,exports.BDMobileMenu=DG,exports.BDModal=yK,exports.BDNotFoundTemplate=CX,exports.BDPagination=i_,exports.BDPhoneNumberEditModal=DK,exports.BDPill=d_,exports.BDPillContainer=m_,exports.BDPractitionerHeader=VK,exports.BDProfileImage=__,exports.BDRow=WK,exports.BDSessionTimeOutModal=KK,exports.BDSmallConversationCard=jG,exports.BDTable=BG,exports.BDToast=S_,exports.BDUser=GG,exports.BDUserInformation=D_,exports.BDVideoCallConfirmationModal=SY,exports.BDVideoCallTemplate=yX,exports.BDVideoCallToast=nK,exports.BDZoomslider=A_,exports.CopyChatMessageToClipboard=YJ,exports.CopyChatMessagesToClipboard=XJ,exports.CopyHl7MessagesToClipboard=ZJ,exports.CreateHyperlinkParagraph=TX,exports.CreateThumbnailUri=J_,exports.IconAcademy=h,exports.IconArrowDown=y,exports.IconArrowUp=C,exports.IconAttachment=D,exports.IconBold=ne,exports.IconBulletList=oe,exports.IconCalendar=ue,exports.IconCall=me,exports.IconCallReject=ve,exports.IconCardView=Se,exports.IconCaretDown=Ee,exports.IconCaretLeft=k,exports.IconCaretRight=Ne,exports.IconCheck=Le,exports.IconClipboard=Ve,exports.IconClose=Ge,exports.IconComment=Ye,exports.IconCommentActive=$e,exports.IconCommentStatic=rt,exports.IconCommonFileEmpty=st,exports.IconCommonFileWarning=dt,exports.IconContactPerson=ht,exports.IconCopy=yt,exports.IconDelete=Ct,exports.IconDoubleCheck=Dt,exports.IconDownloadImage=jt,exports.IconEdit=Ft,exports.IconEndCall=zt,exports.IconError=Ut,exports.IconExternal=qt,exports.IconEyeShow=Zt,exports.IconEyeSlash=tn,exports.IconFile=on,exports.IconFileAdded=un,exports.IconForward=mn,exports.IconHix=vn,exports.IconHyperlink=Sn,exports.IconImageFileLandscape=En,exports.IconImageFileWarning=An,exports.IconInbox=Pn,exports.IconInfo=Rn,exports.IconInformationCircle=Hn,exports.IconItalic=Kn,exports.IconListView=Xn,exports.IconLock=er,exports.IconLusciiEscalated=ir,exports.IconLusciiLogo=cr,exports.IconLusciiOpen=fr,exports.IconLusciiPriorityHigh=gr,exports.IconLusciiPriorityLow=br,exports.IconLusciiPriorityMedium=wr,exports.IconMenu=Or,exports.IconMessage=Mr,exports.IconMessageForward=Ir,exports.IconMicrophoneSlash=zr,exports.IconMicrosoftTeams=Ur,exports.IconMin=qr,exports.IconOrderedList=Zr,exports.IconPlus=ti,exports.IconRefresh=ai,exports.IconRemove=li,exports.IconSananetLogo=mi,exports.IconService=vi,exports.IconShareScreen=Si,exports.IconSingleNeutral=Ei,exports.IconSort=Ai,exports.IconSortAsc=Pi,exports.IconSortDesc=Ri,exports.IconSortNone=Hi,exports.IconTriangleDown=Ki,exports.IconTriangleExclamation=Xi,exports.IconUnderline=ea,exports.IconVideoDisabled=sa,exports.IconVideocall=ia,exports.IconWarning=da,exports.IconZorgkaart=ha,exports.MapAttachmentsForApi=G_,exports.MapToAttachmentObjects=Z_,exports.TransformHyperlinks=wX,exports.ValidateUrl=EX,exports.default=DX,exports.getDisplayDateNumeric=Gh,exports.getDisplayDateTextual=Hh,exports.getDisplayDateTimeNumeric=Wh,exports.getDisplayDateTimeTextual=Uh,exports.useModal=bK,exports.usePopover=MK,exports.useServerErrors=SK,exports.useSessionTimeOut=GK,exports.useToaster=iO,exports.useValidation=CY,exports.useWindow=AK,exports.useZoom=oY,exports.vBdTooltip=_G;
1884
+ `)}`;qJ.copy(r).then(()=>JJ(n))},ZJ=(e,t)=>{qJ.copy(e).then(()=>JJ(t))},QJ={class:`message-cloud-multi-select`},$J={class:`message-cloud-multi-select__body`},eY={class:`message-content`},tY={class:`message-cloud__header`},nY={class:`message-cloud__title`},rY={key:0},iY=[`innerHTML`],aY=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=Uu(),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 XJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(yK,{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`,QJ,[(0,u.createVNode)(fg,{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`,$J,[((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)(fg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,eY,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,tY,[(0,u.createElementVNode)(`div`,nY,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,rY,[(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,iY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function oY(){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 sY=[`src`,`alt`],cY={key:0,class:`show-spinner`},lY={class:`spinner-border text-primary`,role:`status`},uY=[`textContent`],dY=[`href`],fY=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=bK(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=oY(),{t:l}=Uu(),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)(yK,{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,sY)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,cY,[(0,u.createElementVNode)(`div`,lY,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,uY)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(A_,{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,dY)]),_:1},8,[`class`,`title`]))}}),pY={__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}=bK(`attachment-upload-modal`),r=e,i=t,{t:a}=Uu(),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)(Jh,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Pg,{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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(bG,{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)(()=>[(0,u.createVNode)(m_,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Oh,{"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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(fO,{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)(Hg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(Lq),{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)(mg,{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}))}},mY={__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}=Uu(),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)(yK,{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)(pY,{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`]))}},hY={key:0},gY={key:1},_Y={key:2},vY={key:3},yY={key:1},bY={key:2},xY=[`href`],SY=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=Uu(),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)(yK,{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)(va,{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`,hY,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,gY,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,_Y,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,vY,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,yY,[(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`,bY,(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,xY),(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`]))}}),CY=()=>({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}}),wY={class:`template change-password-template`},TY={class:`template-title`},EY={key:0},DY={key:1},OY={class:`bd-form-field`},kY={class:`bd-form-field`},AY={class:`bd-form-field`},jY={class:`bd-form-buttons`},MY=(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}=Uu(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=iO(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=SK(null),{ValidationObjectIsValid:l}=CY(),d=e,f=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{i(d.successText),g()}).catch(e=>{n(d.failureText),s(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,l(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,wY,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,TY,(0,u.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(WK,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Fa,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(UK,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{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)(WK,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(va,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EY,[(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)(Rn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,DY,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(m,[`prevent`]),onReset:(0,u.withModifiers)(g,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,OY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,kY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,AY,[(0,u.createVNode)(Pg,{modelValue:(0,u.unref)(f).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,jY,[(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})]))}}),NY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L9.79679%206.61719V4.25391C9.79679%201.97656%2011.6445%200.128906%2013.9218%200.128906C16.1991%200.128906%2018.0468%201.97656%2018.0468%204.25391V13.0625L18.7773%2013.6641C19.164%2012.9336%2019.4218%2012.0742%2019.4218%2011.1289V9.41016C19.4218%208.85156%2019.8515%208.37891%2020.453%208.37891C21.0116%208.37891%2021.4843%208.85156%2021.4843%209.41016V11.1289C21.4843%2012.5469%2021.0976%2013.8359%2020.453%2014.9531L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.4023%2017.875C16.6288%2018.2617%2015.8124%2018.5195%2014.953%2018.6484V20.0664H17.0155C17.5741%2020.0664%2018.0468%2020.5391%2018.0468%2021.0977C18.0468%2021.6992%2017.5741%2022.1289%2017.0155%2022.1289H13.9218H10.828C10.2265%2022.1289%209.79679%2021.6992%209.79679%2021.0977C9.79679%2020.5391%2010.2265%2020.0664%2010.828%2020.0664H12.8905V18.6484C9.19523%2018.1328%206.35929%2014.9961%206.35929%2011.1289V9.41016C6.35929%209.32422%206.35929%209.23828%206.35929%209.15234L8.42179%2010.7852V11.1289C8.42179%2014.1797%2010.871%2016.6289%2013.9218%2016.6289C14.4804%2016.6289%2015.039%2016.543%2015.5546%2016.4141L17.4023%2017.875Z'%20fill='white'/%3e%3c/svg%3e`,PY=`data:image/svg+xml,%3csvg%20width='16'%20height='22'%20viewBox='0%200%2016%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.56242%200C9.83976%200%2011.6874%201.84766%2011.6874%204.125V11C11.6874%2013.2773%209.83976%2015.125%207.56242%2015.125C5.28508%2015.125%203.43742%2013.2773%203.43742%2011V4.125C3.43742%201.84766%205.28508%200%207.56242%200ZM2.06242%209.28125V11C2.06242%2014.0508%204.51164%2016.5%207.56242%2016.5C10.5702%2016.5%2013.0624%2014.0508%2013.0624%2011V9.28125C13.0624%208.72266%2013.4921%208.25%2014.0937%208.25C14.6523%208.25%2015.1249%208.72266%2015.1249%209.28125V11C15.1249%2014.8672%2012.246%2018.0039%208.59367%2018.5195V19.9375H10.6562C11.2148%2019.9375%2011.6874%2020.4102%2011.6874%2020.9688C11.6874%2021.5703%2011.2148%2022%2010.6562%2022H7.56242H4.46867C3.86711%2022%203.43742%2021.5703%203.43742%2020.9688C3.43742%2020.4102%203.86711%2019.9375%204.46867%2019.9375H6.53117V18.5195C2.83586%2018.0039%20-8.10623e-05%2014.8672%20-8.10623e-05%2011V9.28125C-8.10623e-05%208.72266%200.429606%208.25%201.03117%208.25C1.58976%208.25%202.06242%208.72266%202.06242%209.28125Z'%20fill='white'/%3e%3c/svg%3e`,FY=`data:image/svg+xml,%3csvg%20width='28'%20height='23'%20viewBox='0%200%2028%2023'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.80461%200.386719L5.02726%202.87891H15.2968C16.8007%202.87891%2018.0468%204.125%2018.0468%205.62891V13.0625L19.4218%2014.1367V13.8789V8.37891V7.64844L20.0234%207.26172L24.1484%204.51172C24.578%204.21094%2025.0937%204.21094%2025.5663%204.42578C25.996%204.68359%2026.2968%205.15625%2026.2968%205.62891V16.6289C26.2968%2017.1445%2025.996%2017.6172%2025.5663%2017.875C25.0937%2018.0898%2024.578%2018.0898%2024.1484%2017.7891L23.5468%2017.4023L27.2421%2020.3242C27.7148%2020.668%2027.8007%2021.3125%2027.414%2021.7422C27.0702%2022.2148%2026.4257%2022.3008%2025.996%2021.9141L0.558513%201.97656C0.0858564%201.63281%20-8.10623e-05%200.988281%200.386638%200.558594C0.730388%200.0859375%201.37492%200%201.80461%200.386719ZM17.6601%2018.0469C17.1445%2018.8633%2016.2851%2019.3789%2015.2968%2019.3789H4.29679C2.74992%2019.3789%201.54679%2018.1758%201.54679%2016.6289V5.62891C1.54679%205.54297%201.54679%205.45703%201.54679%205.37109L17.6601%2018.0469Z'%20fill='white'/%3e%3c/svg%3e`,IY=`data:image/svg+xml,%3csvg%20width='25'%20height='17'%20viewBox='0%200%2025%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M-8.10623e-05%202.75C-8.10623e-05%201.24609%201.20304%200%202.74992%200H13.7499C15.2538%200%2016.4999%201.24609%2016.4999%202.75V13.75C16.4999%2015.2969%2015.2538%2016.5%2013.7499%2016.5H2.74992C1.20304%2016.5%20-8.10623e-05%2015.2969%20-8.10623e-05%2013.75V2.75ZM24.0195%201.54688C24.4491%201.80469%2024.7499%202.27734%2024.7499%202.75V13.75C24.7499%2014.2656%2024.4491%2014.7383%2024.0195%2014.9961C23.5468%2015.2109%2023.0312%2015.2109%2022.6015%2014.9102L18.4765%2012.1602L17.8749%2011.7734V11V5.5V4.76953L18.4765%204.38281L22.6015%201.63281C23.0312%201.33203%2023.5468%201.33203%2024.0195%201.54688Z'%20fill='white'/%3e%3c/svg%3e`,LY={},RY={width:`26`,height:`26`,viewBox:`0 0 26 26`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-blur`};function zY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,RY,[...t[0]||=[(0,u.createStaticVNode)(`<g opacity="0.54"><circle cx="1" cy="1" r="1" fill="white"></circle><circle cx="7" cy="1" r="1" fill="white"></circle><circle cx="13" cy="1" r="1" fill="white"></circle><circle cx="19" cy="1" r="1" fill="white"></circle><circle cx="25" cy="1" r="1" fill="white"></circle><circle cx="1" cy="7" r="1" fill="white"></circle><circle cx="7" cy="7" r="1" fill="white"></circle><circle cx="13" cy="7" r="1" fill="white"></circle><circle cx="19" cy="7" r="1" fill="white"></circle><circle cx="25" cy="7" r="1" fill="white"></circle><circle cx="1" cy="13" r="1" fill="white"></circle><circle cx="7" cy="13" r="1" fill="white"></circle><circle cx="13" cy="13" r="1" fill="white"></circle><circle cx="19" cy="13" r="1" fill="white"></circle><circle cx="25" cy="13" r="1" fill="white"></circle><circle cx="1" cy="19" r="1" fill="white"></circle><circle cx="7" cy="19" r="1" fill="white"></circle><circle cx="13" cy="19" r="1" fill="white"></circle><circle cx="19" cy="19" r="1" fill="white"></circle><circle cx="25" cy="19" r="1" fill="white"></circle><circle cx="1" cy="25" r="1" fill="white"></circle><circle cx="7" cy="25" r="1" fill="white"></circle><circle cx="13" cy="25" r="1" fill="white"></circle><circle cx="19" cy="25" r="1" fill="white"></circle><circle cx="25" cy="25" r="1" fill="white"></circle></g>`,1)]])}var BY=d(LY,[[`render`,zY]]),VY={},HY={width:`20`,height:`33`,viewBox:`0 0 20 33`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,class:`icon icon-participant`};function UY(e,t){return(0,u.openBlock)(),(0,u.createElementBlock)(`svg`,HY,[...t[0]||=[(0,u.createElementVNode)(`path`,{d:`M9.625 16.75C6.57422 16.75 4.125 14.3008 4.125 11.25C4.125 8.24219 6.57422 5.75 9.625 5.75C12.6328 5.75 15.125 8.24219 15.125 11.25C15.125 14.3008 12.6328 16.75 9.625 16.75ZM13.4492 18.125C16.6289 18.125 19.25 20.7461 19.25 23.9258V25.6875C19.25 26.8477 18.3047 27.75 17.1875 27.75H2.0625C0.902344 27.75 0 26.8477 0 25.6875V23.9258C0 20.7461 2.57812 18.125 5.75781 18.125H6.48828C7.43359 18.5977 8.50781 18.8125 9.625 18.8125C10.7422 18.8125 11.7734 18.5977 12.7188 18.125H13.4492Z`,fill:`white`},null,-1)]])}var WY=d(VY,[[`render`,UY]]),GY={class:`video-call-template`},KY={key:0,class:`card`},qY={key:0,class:`permissions-denied__audio`},JY={class:`permissions-denied__audio-disabled`},YY={key:1,class:`permissions-denied__video`},XY={class:`permissions-denied__video-disabled`},ZY={key:1,class:`card`},QY={class:`incoming__settings`},$Y={class:`side`},eX={class:`outgoing`},tX={class:`card`},nX={key:0,class:`outgoing__video`},rX={class:`outgoing__controls`},iX=[`alt`],aX=[`alt`],oX=[`alt`],sX=[`alt`],cX={class:`outgoing__available-cameras-count text-center`},lX={key:3,class:`permissions-denied__video`},uX={class:`permissions-denied__video-disabled`},dX={class:`settings`},fX={class:`settings__status`},pX={class:`settings__status-text`},mX={key:0,class:`settings__status-detail`},hX={class:`settings__help`},gX=[`href`],_X={href:`https://www.beterdichtbij.nl/service-contact/`,target:`_blank`,rel:`noopener noreferrer`},vX=2e3,yX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},participantRole:{type:String,default:`deelnemer`},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:t,emit:n}){let r=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),i=null,a=null,o=null,s=null,c=null,l=null,d=null,f=null,p=e,m=n,{tm:h}=Uu(),g=(0,u.ref)([]),_=navigator.userAgent.indexOf(`Firefox`)>-1,v=(0,u.computed)(()=>h(`videoCallTemplate`)),y=(0,u.ref)(!1),b=(0,u.ref)(!1),x=(0,u.ref)(!1),S=(0,u.ref)(2),C=(0,u.ref)({}),w=(0,u.ref)(r.Initializing),T=(0,u.ref)(null),E=(0,u.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),D=(0,u.ref)(null),O=(0,u.ref)(null),ee=(0,u.ref)(null),te=(0,u.ref)(null),ne=(0,u.ref)(0),re=(0,u.ref)(0),ie=(0,u.ref)(null),ae=(0,u.ref)(!1),oe=(0,u.ref)(``),se=(0,u.ref)(``),ce=(0,u.ref)(null),le=(0,u.ref)(null),ue=(0,u.ref)(!0),de=(0,u.ref)(!1),fe=(0,u.ref)(!1),pe=null,me=null,he=null,ge=(0,u.computed)(()=>{switch(ne.value){case 0:return Oe.value.hasNoAvailableCamera;case 1:return Oe.value.hasOneAvailableCamera;default:return Oe.value.hasMultipleAvailableCameras}}),_e=(0,u.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!y.value}),ve=(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)}),ye=(0,u.computed)(()=>!C.value?.video&&Fe.value),be=(0,u.computed)(()=>!C.value?.audio&&Fe.value),xe=(0,u.computed)(()=>w.value===r.Declined?`incoming--declined`:`incoming--loading`),Se=(0,u.computed)(()=>{switch(S.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),Ce=(0,u.computed)(()=>{switch(S.value){case 0:return v.value.signalStrength.weak;case 1:return v.value.signalStrength.steady;case 2:return v.value.signalStrength.strong;default:return null}}),we=(0,u.computed)(()=>v.value.videoCallTemplate||v.value),Te=(0,u.computed)(()=>we.value.actions||we.value),Ee=(0,u.computed)(()=>we.value.help||we.value),De=(0,u.computed)(()=>we.value.permissions||we.value),Oe=(0,u.computed)(()=>we.value.cameraAvailability||we.value),ke=(0,u.computed)(()=>y.value?Te.value.stopSharingScreen:Te.value.shareScreen),k=(0,u.computed)(()=>Ee.value.placeholderSettingsHelpTitle),Ae=(0,u.computed)(()=>Ee.value.placeholderSettingsHelpMessage),je=(0,u.computed)(()=>w.value===r.Declined),Me=(0,u.computed)(()=>w.value===r.HangedUp),Ne=(0,u.computed)(()=>w.value===r.Connected),Pe=(0,u.computed)(()=>!Ne.value),Fe=(0,u.computed)(()=>w.value===r.DevicePermissionDenied),Ie=(0,u.computed)(()=>we.value.statusTextMessage||we.value),Le=(0,u.computed)(()=>we.value.statusDetailMessage||we.value),Re=(0,u.computed)(()=>p.participantRole),ze=(0,u.computed)(()=>fe.value?Te.value.microphoneUnmute:Te.value.microphoneMute),Be=(0,u.computed)(()=>de.value?Te.value.cameraOn:Te.value.cameraOff),Ve=(0,u.computed)(()=>ue.value?Te.value.backgroundBlur:Te.value.backgroundUnblur);function He(e){if(typeof e!=`string`)return e;let t=e.replaceAll(`{participantRole}`,Re.value);return t&&t.charAt(0).toLocaleUpperCase()+t.slice(1)}let Ue=(0,u.computed)(()=>{switch(w.value){case r.Initializing:return He(Ie.value.initializing);case r.Dialing:return He(Ie.value.dialing);case r.Ringing:return He(Ie.value.ringing);case r.Answered:return He(Ie.value.answered);case r.Connected:return He(Ie.value.connected);case r.Declined:return He(Ie.value.videoCallDeclined);case r.HangedUp:return He(Ie.value.videoCallHangedUp);case r.DevicePermissionDenied:return He(Ie.value.devicePermissionDenied)}}),We=(0,u.computed)(()=>oe.value||Ue.value),Ge=(0,u.computed)(()=>se.value),Ke=(0,u.computed)(()=>x.value?`.incoming__screenshare`:`.incoming__video`);(0,u.onMounted)(()=>{Mt(),Je(),le.value=window.setInterval(st,5e3)}),(0,u.onUnmounted)(()=>{ie.value&&window.clearInterval(ie.value),le.value&&window.clearInterval(le.value),qe(),At()});function qe(){pe&&=(window.clearTimeout(pe),null),me&&=(window.clearTimeout(me),null),he&&=(window.clearTimeout(he),null)}function Je(){qe(),w.value===r.Initializing?pe=window.setTimeout(()=>{w.value===r.Initializing&&(oe.value=He(Ie.value.callNotDelivered),se.value=He(Le.value.callNotDeliveredDetail))},3e4):w.value===r.Dialing?me=window.setTimeout(()=>{w.value===r.Dialing&&(oe.value=``,se.value=He(Le.value.notAnsweredDetail))},1e4):w.value===r.Connected&&(he=window.setTimeout(()=>{w.value===r.Connected&&(se.value=He(Le.value.noVideoHint))},5e3))}function Ye(e){[r.Declined,r.HangedUp,r.DevicePermissionDenied].includes(w.value)||(w.value=e,oe.value=``,se.value=``,Je())}function Xe(){fe.value=!fe.value,console.log(`Microphone toggled`)}function Ze(){de.value=!de.value,console.log(`Camera toggled`)}function Qe(){ue.value=!ue.value,console.log(`Background blur toggled`)}function $e(){Ye(r.Declined)}function et(){Ye(r.Answered)}function tt(){w.value!==r.Connected&&Ye(r.Dialing)}function nt(){w.value!==r.DevicePermissionDenied&&!p.isCallee&&dt()}async function rt(){Ye(r.HangedUp),C.value.video&&Ot()}function it(e){Ye(r.HangedUp),se.value=vt(e)}function at(){oe.value=He(Ie.value.signalHold),se.value=He(Le.value.signalHoldDetail)}function ot(){ce.value=new Date}function st(){if(!ce.value||w.value===r.HangedUp)return;let e=new Date,t=new Date(ce.value),n=Math.abs(e.getTime()-t.getTime()),i=Math.ceil(n/1e3);i>=40?(oe.value=Ie.value.connectionIssues,se.value=Le.value.connectionIssuesStrong,S.value=0):i>20&&(oe.value=Ie.value.connectionIssues,se.value=Le.value.connectionIssuesMedium,S.value=1)}async function ct(e){await jt(),E.client=(0,u.markRaw)(new o);let t=new f(e);if(E.agent=(0,u.markRaw)(await E.client.createCallAgent(t)),E.deviceManager=await E.client.getDeviceManager(),C.value=await E.deviceManager.askDevicePermission({video:!0,audio:!0}),(await E.deviceManager.getCameras()).length||(C.value.video=!1),ie.value=window.setInterval(Ot,5e3),!C.value.audio||!C.value.video){Ye(r.DevicePermissionDenied);return}E.agent.on(`incomingCall`,lt),p.isCallee?m(`ready`):m(`start-call`)}async function lt(e){if(!ae.value)try{ae.value=!0,E.incomingCall=e.incomingCall,await ft()}catch(e){console.log(`error occured during starting call`,e)}finally{ae.value=!1}}async function ut(){let e=await pt();return e?{localVideoStreams:[e]}:void 0}async function dt(){try{Ye(r.Dialing);let e={videoOptions:await ut()},t=[{communicationUserId:p.participant.videoCallIdentityId}];E.call=E.agent.startCall(t,e),ht(),mt()}catch(e){console.error(e)}}async function ft(){let e=await ut();try{E.call=await E.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}ht(),mt()}async function pt(){let e=(await E.deviceManager.getCameras())[0];if(e)return new c(e);console.error(`No camera device found on the system`)}function mt(){E.call.on(`stateChanged`,_t),E.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(bt),e.removed.forEach(yt)}),E.call.remoteParticipants.forEach(St),E.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(St)}),E.call.on(`isScreenSharingOnChanged`,()=>{y.value=E.call.isScreenSharingOn})}function ht(){T.value=E.call.feature(l.UserFacingDiagnostics),T.value.media.on(`diagnosticChanged`,gt),T.value.network.on(`diagnosticChanged`,gt)}function gt(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===d.Bad?(console.error(`${e.diagnostic} is bad quality`),S.value=0):e.value===d.Poor?(console.error(`${e.diagnostic} is poor quality`),S.value=1):S.value=2)}function _t(){switch(E.call.state){case`EarlyMedia`:Ye(r.Dialing);break;case`Ringing`:Ye(r.Ringing);break;case`Connected`:Ye(r.Connected);break;case`Disconnected`:let e=E.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),rt();break}}function vt(e){let t=String(e);return He(we.value.endReasons?.[t]||``)}async function yt(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!te.value)return;te.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function bt(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;te.value=await new s(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(te.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 xt(e){if(e&&e.source&&D.value&&D.value.source&&D.value.source.id==e.source.id)return!0;try{O.value=new s(e);let t=await O.value.createView(),n=document.querySelector(`.outgoing__video`);n.querySelector(`video`)&&(n.innerHTML=``),n.hidden=!1,n.replaceChildren(t.target)}catch{return!1}return D.value=e,!0}async function St(e){e.videoStreams.forEach(Ct),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(Ct)})}async function Ct(e){if(e.mediaStreamType===`Video`&&(await wt(e),e.on(`isAvailableChanged`,async()=>await wt(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,Et),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__screenshare`);Tt(!0),x.value=!0,kt(`.incoming__screenshare`),n.replaceChildren(t.target)}}async function wt(e){if(!e.isAvailable)return;ee.value=new s(e);let t=await ee.value.createView(),n=document.querySelector(`.incoming__video`);n.hidden=!1,n.replaceChildren(t.target),kt(`.incoming__video`),Tt(!1)}function Tt(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 Et(){x.value=!1,Tt(!1)}async function Dt(){Ot(!0)}async function Ot(e=!1){let t=E.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let n=(await E.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);ne.value=n.length;for(let t=0;t<ne.value;t++){(e||t!=0)&&(re.value=(re.value+1)%ne.value);let r=n[re.value];if(await xt(new c(r)))break}}function kt(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function At(){E.call&&E.call.state!==`Disconnected`&&(await E.call.hangUp({forEveryone:!0}),await E.agent.dispose()),m(`end-call`,g.value)}async function jt(){return i||=Promise.all([import(`@azure/communication-calling`),import(`@azure/communication-common`)]).then(([e,t])=>{o=e.CallClient,s=e.VideoStreamRenderer,c=e.LocalVideoStream,l=e.Features,d=e.DiagnosticQuality,f=t.AzureCommunicationTokenCredential}),i}async function Mt(){a||=Promise.resolve().then(()=>require("./browser-J9v82mb3.cjs"));let{AzureLogger:e,setLogLevel:t}=await a;e.log=(...e)=>console.log(...e),t(`info`),e.log=(...e)=>{let t=[...e];g.value=g.value.splice(1-vX).concat(t)}}function Nt(){document.querySelector(Ke.value).querySelector(`video`).requestFullscreen()}function Pt(){let e=document.querySelector(Ke.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function Ft(){E.call&&E.call.isScreenSharingOn?await E.call.stopScreenSharing():await E.call.startScreenSharing()}return t({CallDeclined:$e,CallAnswered:et,CallForDataReceived:tt,CallClosedWithStatusCode:it,CallHeartbeatReceived:ot,CallSignalHoldDetected:at,CallStartVideoCall:nt,CallHangUp:rt,InitializeAcsConnection:ct}),(e,t)=>{let n=(0,u.resolveComponent)(`BDLoader`);return(0,u.openBlock)(),(0,u.createElementBlock)(`div`,GY,[(0,u.createVNode)(UK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jG,{contactInfo:p.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,u.createVNode)(WK,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(HK,{sm:`12`,lg:je.value?`12`:`8`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`incoming`,xe.value])},[Pe.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,KY,[(0,u.createVNode)(n,{size:`lg`,message:Ue.value,stopAnimation:je.value||Me.value||Fe.value},null,8,[`message`,`stopAnimation`]),be.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,qY,[(0,u.createElementVNode)(`div`,JY,[(0,u.createVNode)(zr,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value.permissionDeniedForAudio),1)])):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,YY,[(0,u.createElementVNode)(`div`,XY,[(0,u.createVNode)(sa,{class:`icon-xl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0),je.value||Me.value||Fe.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:2,variant:`primary`,class:`text-center`,onClick:At},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Te.value.closeWindow),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,ZY,[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`,QY,[(0,u.createVNode)(A,{variant:`primary`,class:`text-center`,onClick:Nt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.fullScreen),1)]),_:1}),!_&&!b.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`primary`,class:`text-center`,onClick:Pt},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.miniPlayer),1)]),_:1})):(0,u.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),je.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createBlock)(HK,{key:0,sm:`12`,lg:`4`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,$Y,[(0,u.createElementVNode)(`div`,null,[(0,u.createElementVNode)(`div`,eX,[(0,u.createElementVNode)(`div`,tX,[Fe.value?(0,u.createCommentVNode)(``,!0):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,nX)),t[2]||=(0,u.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),(0,u.createElementVNode)(`div`,rX,[(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":fe.value}),onClick:Xe},{default:(0,u.withCtx)(()=>[fe.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:NY,alt:ze.value},null,8,iX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:PY,alt:ze.value},null,8,aX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),ze.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)({"btn-danger":de.value}),onClick:Ze},{default:(0,u.withCtx)(()=>[de.value?((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:0,src:FY,alt:Be.value},null,8,oX)):((0,u.openBlock)(),(0,u.createElementBlock)(`img`,{key:1,src:IY,alt:Be.value},null,8,sX))]),_:1},8,[`class`])),[[(0,u.unref)(_G),Be.value]]),(0,u.withDirectives)(((0,u.openBlock)(),(0,u.createBlock)(A,{class:(0,u.normalizeClass)([`blur-button`,{off:ue.value}]),onClick:Qe},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(WY),(0,u.createVNode)(BY)]),_:1},8,[`class`])),[[(0,u.unref)(_G),Ve.value]])]),ve.value&&!Fe.value&&!b.value&&!Pe.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:1,variant:y.value?`danger`:`primary`,class:`share-button`,onClick:Ft},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Si),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(ke.value),1)]),_:1},8,[`variant`])):(0,u.createCommentVNode)(``,!0),_e.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:2},[(0,u.createVNode)(A,{class:`text-center`,onClick:Dt},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(Te.value.switchCamera),1)]),_:1}),(0,u.createElementVNode)(`p`,cX,(0,u.toDisplayString)(ge.value),1)],64)):(0,u.createCommentVNode)(``,!0),ye.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,lX,[(0,u.createElementVNode)(`div`,uX,[(0,u.createVNode)(sa,{class:`icon-xxl icon-state-error`})]),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(De.value.permissionDeniedForVideo),1)])):(0,u.createCommentVNode)(``,!0)])]),!Me.value&&!Fe.value?((0,u.openBlock)(),(0,u.createBlock)(A,{key:0,variant:`danger`,class:`end-call-button text-center w-100`,onClick:At},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(zt),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(Te.value.endCall),1)]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createElementVNode)(`div`,dX,[(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`,fX,[(0,u.createElementVNode)(`p`,pX,(0,u.toDisplayString)(We.value),1),Ge.value?((0,u.openBlock)(),(0,u.createElementBlock)(`small`,mX,(0,u.toDisplayString)(Ge.value),1)):(0,u.createCommentVNode)(``,!0)]),(0,u.createElementVNode)(`div`,hX,[(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`b`,null,(0,u.toDisplayString)(k.value),1)]),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(Ae.value),1),(0,u.createElementVNode)(`p`,null,[(0,u.createElementVNode)(`a`,{href:p.videoTestUrl,target:`_blank`,rel:`noopener noreferrer`},(0,u.toDisplayString)(Te.value.testCall),9,gX),t[4]||=(0,u.createTextVNode)(` • `,-1),(0,u.createElementVNode)(`a`,_X,(0,u.toDisplayString)(Te.value.serviceDesk),1)])])])])])]),_:1}))]),_:1})]),_:1})])}}},bX={class:`template not-found-template`},xX={class:`center-screen`},SX={class:`container-warning`},CX=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=Uu(),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`,bX,[(0,u.createVNode)(UK,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,xX,[(0,u.createElementVNode)(`div`,SX,[(0,u.createVNode)(Xi),(0,u.createElementVNode)(`h1`,null,(0,u.toDisplayString)(o.value),1),(0,u.createElementVNode)(`p`,null,(0,u.toDisplayString)(s.value),1),(0,u.createVNode)(A,{onClick:c,variant:`primary`,type:`button`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(a.value),1)]),_:1})])])]),_:1})]))}}),wX=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>`)},TX=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,EX=e=>e.startsWith(`http://`)||e.startsWith(`https://`),DX={install:e=>{e.component(`BDAlert`,va),e.component(`BDArticle`,xa),e.component(`BDAssignConversationModal`,qK),e.component(`BDAttachmentPreviewList`,F_),e.component(`BDAttachmentUploadModal`,JK),e.component(`BDBadge`,wa),e.component(`BDButton`,A),e.component(`BDCard`,Fa),e.component(`BDChangePasswordTemplate`,MY),e.component(`BDChatCloud`,rv),e.component(`BDCol`,HK),e.component(`BDCollapsableCard`,za),e.component(`BDConfirmationModal`,YK),e.component(`BDContainer`,UK),e.component(`BDContentLibraryModal`,RJ),e.component(`BDContentLibrarySplitButton`,Oh),e.component(`BDContentLibraryTemplate`,LJ),e.component(`BDConversationToTextModal`,aY),e.component(`BDDate`,qh),e.component(`BDDropdown`,rK),e.component(`BDDropdownItem`,iv),e.component(`BDFileUpload`,cO),e.component(`BDForm`,Jh),e.component(`BDFormCheckbox`,fg),e.component(`BDFormInput`,Pg),e.component(`BDFormInvalidFeedback`,mg),e.component(`BDFormMultipleCheckbox`,fO),e.component(`BDFormSelect`,zg),e.component(`BDHeader`,uK),e.component(`BDImageAttachmentModal`,fY),e.component(`BDImageAttachmentPreviewList`,W_),e.component(`BDInputGroup`,Hg),e.component(`BDLink`,Ea),e.component(`BDLoader`,Jg),e.component(`BDLogo`,Zg),e.component(`BDMarkdownEditor`,bG),e.component(`BDMessageTemplateFormModal`,mY),e.component(`BDMobileMenu`,DG),e.component(`BDModal`,yK),e.component(`BDNotFoundTemplate`,CX),e.component(`BDPagination`,i_),e.component(`BDPhoneNumberEditModal`,DK),e.component(`BDPill`,d_),e.component(`BDPillContainer`,m_),e.component(`BDPractitionerHeader`,VK),e.component(`BDProfileImage`,__),e.component(`BDRow`,WK),e.component(`BDSessionTimeOutModal`,KK),e.component(`BDSmallConversationCard`,jG),e.component(`BDTable`,BG),e.component(`BDToast`,S_),e.component(`BDUser`,GG),e.component(`BDUserInformation`,D_),e.component(`BDVideoCallConfirmationModal`,SY),e.component(`BDVideoCallTemplate`,yX),e.component(`BDVideoCallToast`,nK),e.component(`BDZoomslider`,A_),e.component(`IconAcademy`,h),e.component(`IconArrowDown`,y),e.component(`IconArrowUp`,C),e.component(`IconAttachment`,D),e.component(`IconBold`,ne),e.component(`IconBulletList`,oe),e.component(`IconCalendar`,ue),e.component(`IconCall`,me),e.component(`IconCallReject`,ve),e.component(`IconCardView`,Se),e.component(`IconCaretDown`,Ee),e.component(`IconCaretLeft`,k),e.component(`IconCaretRight`,Ne),e.component(`IconCheck`,Le),e.component(`IconClipboard`,Ve),e.component(`IconClose`,Ge),e.component(`IconComment`,Ye),e.component(`IconCommentActive`,$e),e.component(`IconCommentStatic`,rt),e.component(`IconCommonFileEmpty`,st),e.component(`IconCommonFileWarning`,dt),e.component(`IconContactPerson`,ht),e.component(`IconCopy`,yt),e.component(`IconDelete`,Ct),e.component(`IconDoubleCheck`,Dt),e.component(`IconDownloadImage`,jt),e.component(`IconEdit`,Ft),e.component(`IconEndCall`,zt),e.component(`IconError`,Ut),e.component(`IconExternal`,qt),e.component(`IconEyeShow`,Zt),e.component(`IconEyeSlash`,tn),e.component(`IconFile`,on),e.component(`IconFileAdded`,un),e.component(`IconForward`,mn),e.component(`IconHix`,vn),e.component(`IconHyperlink`,Sn),e.component(`IconImageFileLandscape`,En),e.component(`IconImageFileWarning`,An),e.component(`IconInbox`,Pn),e.component(`IconInfo`,Rn),e.component(`IconInformationCircle`,Hn),e.component(`IconItalic`,Kn),e.component(`IconListView`,Xn),e.component(`IconLock`,er),e.component(`IconLusciiEscalated`,ir),e.component(`IconLusciiLogo`,cr),e.component(`IconLusciiOpen`,fr),e.component(`IconLusciiPriorityHigh`,gr),e.component(`IconLusciiPriorityLow`,br),e.component(`IconLusciiPriorityMedium`,wr),e.component(`IconMenu`,Or),e.component(`IconMessage`,Mr),e.component(`IconMessageForward`,Ir),e.component(`IconMicrophoneSlash`,zr),e.component(`IconMicrosoftTeams`,Ur),e.component(`IconMin`,qr),e.component(`IconOrderedList`,Zr),e.component(`IconPlus`,ti),e.component(`IconRefresh`,ai),e.component(`IconRemove`,li),e.component(`IconSananetLogo`,mi),e.component(`IconService`,vi),e.component(`IconShareScreen`,Si),e.component(`IconSingleNeutral`,Ei),e.component(`IconSort`,Ai),e.component(`IconSortAsc`,Pi),e.component(`IconSortDesc`,Ri),e.component(`IconSortNone`,Hi),e.component(`IconTriangleDown`,Ki),e.component(`IconTriangleExclamation`,Xi),e.component(`IconUnderline`,ea),e.component(`IconVideoDisabled`,sa),e.component(`IconVideocall`,ia),e.component(`IconWarning`,da),e.component(`IconZorgkaart`,ha),e.directive(`bd-tooltip`,_G)}};exports.BDAlert=va,exports.BDArticle=xa,exports.BDAssignConversationModal=qK,exports.BDAttachmentPreviewList=F_,exports.BDAttachmentUploadModal=JK,exports.BDBadge=wa,exports.BDButton=A,exports.BDCard=Fa,exports.BDChangePasswordTemplate=MY,exports.BDChatCloud=rv,exports.BDCol=HK,exports.BDCollapsableCard=za,exports.BDConfirmationModal=YK,exports.BDContainer=UK,exports.BDContentLibraryModal=RJ,exports.BDContentLibrarySplitButton=Oh,exports.BDContentLibraryTemplate=LJ,exports.BDConversationToTextModal=aY,exports.BDDate=qh,exports.BDDropdown=rK,exports.BDDropdownItem=iv,exports.BDFileUpload=cO,exports.BDForm=Jh,exports.BDFormCheckbox=fg,exports.BDFormInput=Pg,exports.BDFormInvalidFeedback=mg,exports.BDFormMultipleCheckbox=fO,exports.BDFormSelect=zg,exports.BDHeader=uK,exports.BDImageAttachmentModal=fY,exports.BDImageAttachmentPreviewList=W_,exports.BDInputGroup=Hg,exports.BDLink=Ea,exports.BDLoader=Jg,exports.BDLogo=Zg,exports.BDMarkdownEditor=bG,exports.BDMessageTemplateFormModal=mY,exports.BDMobileMenu=DG,exports.BDModal=yK,exports.BDNotFoundTemplate=CX,exports.BDPagination=i_,exports.BDPhoneNumberEditModal=DK,exports.BDPill=d_,exports.BDPillContainer=m_,exports.BDPractitionerHeader=VK,exports.BDProfileImage=__,exports.BDRow=WK,exports.BDSessionTimeOutModal=KK,exports.BDSmallConversationCard=jG,exports.BDTable=BG,exports.BDToast=S_,exports.BDUser=GG,exports.BDUserInformation=D_,exports.BDVideoCallConfirmationModal=SY,exports.BDVideoCallTemplate=yX,exports.BDVideoCallToast=nK,exports.BDZoomslider=A_,exports.CopyChatMessageToClipboard=YJ,exports.CopyChatMessagesToClipboard=XJ,exports.CopyHl7MessagesToClipboard=ZJ,exports.CreateHyperlinkParagraph=TX,exports.CreateThumbnailUri=J_,exports.IconAcademy=h,exports.IconArrowDown=y,exports.IconArrowUp=C,exports.IconAttachment=D,exports.IconBold=ne,exports.IconBulletList=oe,exports.IconCalendar=ue,exports.IconCall=me,exports.IconCallReject=ve,exports.IconCardView=Se,exports.IconCaretDown=Ee,exports.IconCaretLeft=k,exports.IconCaretRight=Ne,exports.IconCheck=Le,exports.IconClipboard=Ve,exports.IconClose=Ge,exports.IconComment=Ye,exports.IconCommentActive=$e,exports.IconCommentStatic=rt,exports.IconCommonFileEmpty=st,exports.IconCommonFileWarning=dt,exports.IconContactPerson=ht,exports.IconCopy=yt,exports.IconDelete=Ct,exports.IconDoubleCheck=Dt,exports.IconDownloadImage=jt,exports.IconEdit=Ft,exports.IconEndCall=zt,exports.IconError=Ut,exports.IconExternal=qt,exports.IconEyeShow=Zt,exports.IconEyeSlash=tn,exports.IconFile=on,exports.IconFileAdded=un,exports.IconForward=mn,exports.IconHix=vn,exports.IconHyperlink=Sn,exports.IconImageFileLandscape=En,exports.IconImageFileWarning=An,exports.IconInbox=Pn,exports.IconInfo=Rn,exports.IconInformationCircle=Hn,exports.IconItalic=Kn,exports.IconListView=Xn,exports.IconLock=er,exports.IconLusciiEscalated=ir,exports.IconLusciiLogo=cr,exports.IconLusciiOpen=fr,exports.IconLusciiPriorityHigh=gr,exports.IconLusciiPriorityLow=br,exports.IconLusciiPriorityMedium=wr,exports.IconMenu=Or,exports.IconMessage=Mr,exports.IconMessageForward=Ir,exports.IconMicrophoneSlash=zr,exports.IconMicrosoftTeams=Ur,exports.IconMin=qr,exports.IconOrderedList=Zr,exports.IconPlus=ti,exports.IconRefresh=ai,exports.IconRemove=li,exports.IconSananetLogo=mi,exports.IconService=vi,exports.IconShareScreen=Si,exports.IconSingleNeutral=Ei,exports.IconSort=Ai,exports.IconSortAsc=Pi,exports.IconSortDesc=Ri,exports.IconSortNone=Hi,exports.IconTriangleDown=Ki,exports.IconTriangleExclamation=Xi,exports.IconUnderline=ea,exports.IconVideoDisabled=sa,exports.IconVideocall=ia,exports.IconWarning=da,exports.IconZorgkaart=ha,exports.MapAttachmentsForApi=G_,exports.MapToAttachmentObjects=Z_,exports.TransformHyperlinks=wX,exports.ValidateUrl=EX,exports.default=DX,exports.getDisplayDateNumeric=Gh,exports.getDisplayDateTextual=Hh,exports.getDisplayDateTimeNumeric=Wh,exports.getDisplayDateTimeTextual=Uh,exports.useModal=bK,exports.usePopover=MK,exports.useServerErrors=SK,exports.useSessionTimeOut=GK,exports.useToaster=iO,exports.useValidation=CY,exports.useWindow=AK,exports.useZoom=oY,exports.vBdTooltip=_G;