@beterdichtbij/component-library 0.64.2 → 0.64.4

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.
@@ -1873,4 +1873,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1873
1873
  }
1874
1874
  `,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),jq={name:`Chip`,extends:{name:`BaseChip`,extends:Vp,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:Aq,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 Fd({removable:this.removable})}},components:{TimesCircleIcon:Sq}},Mq=[`aria-label`,`data-p`],Nq=[`src`];function Pq(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,Nq)):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,Mq)):(0,u.createCommentVNode)(``,!0)}jq.render=Pq;var Fq={key:0,class:`bd-active-filters`},Iq={class:`options`},Lq=(0,u.defineComponent)({__name:`BDActiveFilters`,props:(0,u.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t}=sd(),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`,Fq,[(0,u.createElementVNode)(`header`,null,[(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(g,{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`,Iq,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(c(e),t=>((0,u.openBlock)(),(0,u.createBlock)((0,u.unref)(jq),{key:e.id+`-`+t.item,label:t.name,removable:``,onRemove:n=>d(`${e.id}-${t.item}`)},null,8,[`label`,`onRemove`]))),128))])]))),128))])):(0,u.createCommentVNode)(``,!0)}}),Rq=[`id`],zq={class:`collapse-button-container`},Bq={class:`collapsed-show`},Vq={class:`collapsed-hide`},Hq=(0,u.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:t}){let{t:n}=sd(),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)(lo,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(Lq,{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)(gg,{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)(Pg,{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)(Pg,{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,Rq),(0,u.createElementVNode)(`div`,zq,[(0,u.createVNode)(g,{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)(O,{class:`collapsed-show`}),(0,u.createElementVNode)(`span`,Bq,(0,u.toDisplayString)(i.value),1),(0,u.createVNode)(re,{class:`collapsed-hide`}),(0,u.createElementVNode)(`span`,Vq,(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}))}}),Uq={class:`content-library-template`},Wq={class:`number-of-messages`},Gq=[`src`],Kq=[`src`],qq=(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}=sd(),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)(()=>$g(r.providerSelectOptions)&&r.providerSelectOptions.length>1),c=(0,u.computed)(()=>r.provider&&$g(r.provider.items)?r.provider.items:[]),l=(0,u.computed)(()=>r.provider&&$g(r.provider.filters)),f=(0,u.computed)(()=>{let e=0;return r.provider&&XK(r.provider.totalNumber)&&(e=r.provider.totalNumber),e===1?`${e} ${n(`contentLibraryTemplate.message`)}`:`${e} ${n(`contentLibraryTemplate.messages`)}`}),m=(0,u.computed)(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),h=(0,u.computed)(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),_=(0,u.computed)(()=>l.value?9:12),v=(0,u.computed)(()=>r.provider&&!l.value?3:2),y=(0,u.computed)(()=>r.showAddButton||s.value),b=(0,u.computed)(()=>({md:3,lg:3})),x=(0,u.computed)(()=>({md:9,lg:9})),S=(0,u.computed)(()=>({sm:12,md:8,lg:s.value?7:8,"offset-lg":y.value?0:3,"offset-md":y.value?0:3})),C=(0,u.computed)(()=>({sm:12,md:y.value?4:3,lg:s.value?5:4})),w=e=>e.label===`Categorieën`&&r.editCategory,T=()=>{i(`create`)},E=e=>{i(`on-insert`,e)},D=e=>{i(`on-change`,e)},O=e=>{i(`delete`,e)},ee=()=>{i(`update`,`category`)},te=()=>{a.value.currentPage=1,i(`on-input`,a.value)},ne=()=>{i(`on-input`,a.value)},re=e=>{i(`show-attachment`,e)},ie=e=>{i(`provider-changed`,e.value)};return(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,Uq,[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,(0,u.mergeProps)(b.value,{class:`content-library-header content-library-header__messages`}),{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`span`,Wq,(0,u.toDisplayString)(f.value),1)]),_:1},16),(0,u.createVNode)(d,(0,u.mergeProps)(x.value,{class:`content-library-header`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{class:`controls-row`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,(0,u.mergeProps)(S.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:te,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(d,(0,u.mergeProps)({key:0},C.value,{class:`add-button-block`}),{default:(0,u.withCtx)(()=>[e.showAddButton?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,class:`add-button`,onClick:T},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(di),(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)(d,(0,u.mergeProps)({key:1},C.value,{class:`select-button-block`}),{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(YK),{modelValue:a.value.provider,"onUpdate:modelValue":i[1]||=e=>a.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":ie},{"open-indicator":(0,u.withCtx)(({attributes:e})=>[(0,u.createElementVNode)(`span`,(0,u.normalizeProps)((0,u.guardReactiveProps)(e)),[(0,u.createVNode)(Fe)],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,Gq)):(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,Kq)):(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)(d,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Hq,{filters:r.provider.filters,searchForm:a.value,"enable-edit-category":r.editCategory,"no-header":!0,onCheck:te},{"filter-extra":(0,u.withCtx)(({filter:e})=>[w(e)?((0,u.openBlock)(),(0,u.createBlock)(g,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:ee},{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)(d,{md:12,lg:_.value,class:`content-library-body`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(xq,{items:c.value,cols:v.value,onOnInsert:E,onOnChange:D,onDelete:O,onShowAttachment:re},null,8,[`items`,`cols`]),(0,u.createVNode)(p,{class:`content-library-pagination`},{default:(0,u.withCtx)(()=>[m.value?((0,u.openBlock)(),(0,u.createBlock)(Dg,{key:0,modelValue:a.value.currentPage,"onUpdate:modelValue":i[2]||=e=>a.value.currentPage=e,totalRows:h.value,rowsPerPage:e.provider.pageSize,onClick:ne,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,u.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),Jq={__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}=YG(`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)(JG,{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)(qq,{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`]))}},Yq=Object.defineProperty,Xq=(e,t,n)=>t in e?Yq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zq=(e,t,n)=>(Xq(e,typeof t==`symbol`?t:t+``,n),n),Qq=class{constructor(){Zq(this,`seed`,0),Zq(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)}},$q=`Failed to copy value to clipboard. Unknown type.`,eJ={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($q,e),``}return e}},tJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,nJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=tJ,t}},rJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await rJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=nJ.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=eJ.asString(t);if(rJ.writeClipboardExecCommand(n))return!0;await rJ.writeClipboard(n)}};new Qq;var{showSuccessToast:iJ}=xD(),aJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${lq(uq(e.Tekst))}`;rJ.copy(r).then(()=>iJ(n))},oJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${lq(uq(e.Tekst))}`).join(`
1875
1875
  -----------------------
1876
- `)}`;rJ.copy(r).then(()=>iJ(n))},sJ=(e,t)=>{rJ.copy(e).then(()=>iJ(t))},cJ={class:`message-cloud-multi-select`},lJ={class:`message-cloud-multi-select__body`},uJ={class:`message-content`},dJ={class:`message-cloud__header`},fJ={class:`message-cloud__title`},pJ={key:0},mJ=[`innerHTML`],hJ=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=sd(),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 oJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(JG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(g,{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`,cJ,[(0,u.createVNode)(Pg,{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`,lJ,[((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)(Pg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,uJ,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,dJ,[(0,u.createElementVNode)(`div`,fJ,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,pJ,[(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,mJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),gJ=[`id`,`value`,`disabled`],_J=[`for`],vJ={class:`invalid-feedback`},yJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=sd(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(g,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,gJ),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,_J)]))),128))],2),(0,u.createElementVNode)(`div`,vJ,[(0,u.createVNode)($t),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}},bJ={key:0,class:`pills-list__wrapper`},xJ={class:`pills-list__ul`},SJ={__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`],setup(e,{emit:t}){let{showModal:n}=YG(`attachment-upload-modal`),r=e,i=t,{t:a}=sd(),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-text`,e)}return(t,n)=>((0,u.openBlock)(),(0,u.createBlock)(bg,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(gg,{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":n[0]||=t=>e.modelValue.title=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)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jW,{modelValue:e.modelValue.text,"onUpdate:modelValue":[n[1]||=t=>e.modelValue.text=t,T],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},{default:(0,u.withCtx)(()=>[e.modelValue.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,bJ,[(0,u.createElementVNode)(`ul`,xJ,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.modelValue.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Xg,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Gh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),n[2]||=(0,u.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,u.createVNode)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(yJ,{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)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(YK),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:l.value,label:`text`,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m},null,8,[`modelValue`,`options`,`placeholder`]),(0,u.createVNode)(qh,{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}))}},CJ={__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}=sd(),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})}return(t,r)=>((0,u.openBlock)(),(0,u.createBlock)(JG,{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)(SJ,{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:m},{"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`]))}};function wJ(){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 TJ=[`src`,`alt`],EJ={key:0,class:`show-spinner`},DJ={class:`spinner-border text-primary`,role:`status`},OJ=[`textContent`],kJ=[`href`],AJ=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=YG(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=wJ(),{t:l}=sd(),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},_=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(JG,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:_},{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,TJ)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EJ,[(0,u.createElementVNode)(`div`,DJ,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,OJ)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(qa,{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)(g,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,kJ)]),_:1},8,[`class`,`title`]))}}),jJ={key:0},MJ={key:1},NJ={key:2},PJ={key:3},FJ={key:1},IJ={key:2},LJ=[`href`],RJ=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=sd(),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)(JG,{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)(Oa,{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`,jJ,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,MJ,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,NJ,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,PJ,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,FJ,[(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`,IJ,(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,LJ),(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`]))}}),zJ=()=>({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}}),BJ={class:`template change-password-template`},VJ={class:`template-title`},HJ={key:0},UJ={key:1},WJ={class:`bd-form-field`},GJ={class:`bd-form-field`},KJ={class:`bd-form-field`},qJ={class:`bd-form-buttons`},JJ=(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}=sd(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=xD(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=ZG(null),{ValidationObjectIsValid:l}=zJ(),m=e,h=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),_=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),v=()=>{if(!y())return;let e=m.submitPassword(h.value);e&&e.then(()=>{i(m.successText),b()}).catch(e=>{n(m.failureText),s(e)})},y=()=>{if(h.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(h.value.passwordNew))_.value.passwordNew.state=!1,_.value.passwordNew.errorLabel=m.minimalRequirementsText;else{let e=h.value.passwordRepeat===h.value.passwordNew,t=e?m.requiredText:m.incompatibleText;_.value.passwordNew.state=h.value.passwordNew!==``&&e?null:!1,_.value.passwordNew.errorLabel=t,_.value.passwordRepeat.state=h.value.passwordRepeat!==``&&e?null:!1,_.value.passwordRepeat.errorLabel=t}return _.value.password.state=h.value.password===``?!1:null,_.value.password.errorLabel=_.value.password.state?``:m.requiredText,l(_.value)},b=()=>{h.value.password===``&&h.value.passwordNew===``&&h.value.passwordRepeat===``||(h.value.password=``,h.value.passwordNew=``,h.value.passwordRepeat=``,_.value.password.state=null,_.value.passwordNew.state=null,_.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,BJ,[(0,u.createVNode)(f,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,VJ,(0,u.toDisplayString)(m.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(p,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(ao,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(f,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Oa,{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)(p,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Oa,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,HJ,[(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)(Jn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,UJ,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(v,[`prevent`]),onReset:(0,u.withModifiers)(b,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,WJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(h).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(_).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,GJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(h).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(_).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,KJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(h).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(_).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,qJ,[(0,u.createVNode)(g,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(g,{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})]))}}),YJ={class:`template not-found-template`},XJ={class:`center-screen`},ZJ={class:`container-warning`},QJ=[`textContent`],$J=[`textContent`],eY=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=sd(),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`,YJ,[(0,u.createVNode)(f,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,XJ,[(0,u.createElementVNode)(`div`,ZJ,[(0,u.createVNode)(oa),(0,u.createElementVNode)(`h5`,{textContent:(0,u.toDisplayString)(o.value)},null,8,QJ),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(s.value)},null,8,$J),(0,u.createVNode)(g,{onClick:c,variant:`primary`,type:`button`,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])])])]),_:1})]))}}),tY=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>`)},nY=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,rY=e=>e.startsWith(`http://`)||e.startsWith(`https://`),iY={install:e=>{e.component(`BDAlert`,Oa),e.component(`BDArticle`,Lg),e.component(`BDAssignConversationModal`,oK),e.component(`BDAttachmentPreviewList`,cW),e.component(`BDAttachmentUploadModal`,sK),e.component(`BDBadge`,yg),e.component(`BDButton`,g),e.component(`BDCard`,ao),e.component(`BDChangePasswordTemplate`,JJ),e.component(`BDChatCloud`,ZW),e.component(`BDCol`,d),e.component(`BDCollapsableCard`,lo),e.component(`BDConfirmationModal`,aK),e.component(`BDContentLibraryModal`,Jq),e.component(`BDConversationToTextModal`,hJ),e.component(`BDContentLibrarySplitButton`,Gh),e.component(`BDContentLibraryTemplate`,qq),e.component(`BDContainer`,f),e.component(`BDDropdown`,vG),e.component(`BDDropdownItem`,x_),e.component(`BDFileUpload`,TD),e.component(`BDForm`,bg),e.component(`BDFormCheckbox`,Pg),e.component(`BDFormInput`,pg),e.component(`BDFormInvalidFeedback`,qh),e.component(`BDFormSelect`,Mg),e.component(`BDHeader`,TG),e.component(`BDImageAttachmentModal`,AJ),e.component(`BDImageAttachmentPreviewList`,_W),e.component(`BDInputGroup`,gg),e.component(`BDLink`,h),e.component(`BDLogo`,b),e.component(`BDMarkdownEditor`,jW),e.component(`BDMessageTemplateFormModal`,CJ),e.component(`BDMobileMenu`,RW),e.component(`BDModal`,JG),e.component(`BDNotFoundTemplate`,eY),e.component(`BDPagination`,Dg),e.component(`BDPhoneNumberEditModal`,nK),e.component(`BDPill`,Xg),e.component(`BDPractitionerHeader`,zG),e.component(`BDProfileImage`,Xa),e.component(`BDRow`,p),e.component(`BDSessionTimeOutModal`,iK),e.component(`BDTable`,oG),e.component(`BDToast`,Hg),e.component(`BDUser`,UW),e.component(`BDUserInformation`,t_),e.component(`BDVideoCallConfirmationModal`,RJ),e.component(`BDVideoCallToast`,_G),e.component(`BDZoomslider`,qa),e.component(`BDDate`,b_),e.component(`IconAcademy`,w),e.component(`IconArrowDown`,O),e.component(`IconArrowUp`,re),e.component(`IconAttachment`,se),e.component(`IconBold`,de),e.component(`IconBulletList`,he),e.component(`IconCalendar`,ye),e.component(`IconCall`,Ce),e.component(`IconCallReject`,De),e.component(`IconCardView`,je),e.component(`IconCaretDown`,Fe),e.component(`IconCaretLeft`,ze),e.component(`IconCaretRight`,Ue),e.component(`IconCheck`,qe),e.component(`IconClipboard`,Ze),e.component(`IconClose`,tt),e.component(`IconComment`,at),e.component(`IconCommentActive`,lt),e.component(`IconCommonFileEmpty`,_t),e.component(`IconCommonFileWarning`,xt),e.component(`IconCommentStatic`,pt),e.component(`IconContactPerson`,Tt),e.component(`IconCopy`,kt),e.component(`IconDelete`,Nt),e.component(`IconDoubleCheck`,Lt),e.component(`IconDownloadImage`,Vt),e.component(`IconEdit`,Gt),e.component(`IconEndCall`,Yt),e.component(`IconError`,$t),e.component(`IconExternal`,rn),e.component(`IconEyeShow`,cn),e.component(`IconEyeSlash`,fn),e.component(`IconFile`,gn),e.component(`IconFileAdded`,bn),e.component(`IconForward`,wn),e.component(`IconHix`,On),e.component(`IconHyperlink`,Mn),e.component(`IconImageFileLandscape`,In),e.component(`IconImageFileWarning`,Bn),e.component(`IconInbox`,Wn),e.component(`IconInfo`,Jn),e.component(`IconInformationCircle`,Qn),e.component(`IconItalic`,nr),e.component(`IconListView`,or),e.component(`IconLock`,ur),e.component(`IconLusciiEscalated`,mr),e.component(`IconLusciiLogo`,vr),e.component(`IconLusciiOpen`,Sr),e.component(`IconLusciiPriorityHigh`,Er),e.component(`IconLusciiPriorityLow`,Ar),e.component(`IconLusciiPriorityMedium`,Pr),e.component(`IconMenu`,Rr),e.component(`IconMessage`,Hr),e.component(`IconMessageForward`,Kr),e.component(`IconMicrophoneSlash`,Yr),e.component(`IconMicrosoftTeams`,$r),e.component(`IconMin`,ri),e.component(`IconOrderedList`,si),e.component(`IconPlus`,di),e.component(`IconRefresh`,hi),e.component(`IconRemove`,yi),e.component(`IconSananetLogo`,wi),e.component(`IconService`,Oi),e.component(`IconShareScreen`,Mi),e.component(`IconSingleNeutral`,Ii),e.component(`IconSort`,Bi),e.component(`IconSortAsc`,Wi),e.component(`IconSortDesc`,Ji),e.component(`IconSortNone`,Qi),e.component(`IconTriangleDown`,na),e.component(`IconTriangleExclamation`,oa),e.component(`IconUnderline`,ua),e.component(`IconVideoDisabled`,_a),e.component(`IconVideocall`,ma),e.component(`IconWarning`,xa),e.component(`IconZorgkaart`,Ta),e.directive(`vBDTooltip`,EW)}};exports.BDAlert=Oa,exports.BDArticle=Lg,exports.BDAssignConversationModal=oK,exports.BDAttachmentPreviewList=cW,exports.BDAttachmentUploadModal=sK,exports.BDBadge=yg,exports.BDButton=g,exports.BDCard=ao,exports.BDChangePasswordTemplate=JJ,exports.BDChatCloud=ZW,exports.BDCol=d,exports.BDCollapsableCard=lo,exports.BDConfirmationModal=aK,exports.BDContainer=f,exports.BDContentLibraryModal=Jq,exports.BDContentLibrarySplitButton=Gh,exports.BDContentLibraryTemplate=qq,exports.BDConversationToTextModal=hJ,exports.BDDate=b_,exports.BDDropdown=vG,exports.BDDropdownItem=x_,exports.BDFileUpload=TD,exports.BDForm=bg,exports.BDFormCheckbox=Pg,exports.BDFormInput=pg,exports.BDFormInvalidFeedback=qh,exports.BDFormSelect=Mg,exports.BDHeader=TG,exports.BDImageAttachmentModal=AJ,exports.BDImageAttachmentPreviewList=_W,exports.BDInputGroup=gg,exports.BDLink=h,exports.BDLogo=b,exports.BDMarkdownEditor=jW,exports.BDMessageTemplateFormModal=CJ,exports.BDMobileMenu=RW,exports.BDModal=JG,exports.BDNotFoundTemplate=eY,exports.BDPagination=Dg,exports.BDPhoneNumberEditModal=nK,exports.BDPill=Xg,exports.BDPractitionerHeader=zG,exports.BDProfileImage=Xa,exports.BDRow=p,exports.BDSessionTimeOutModal=iK,exports.BDTable=oG,exports.BDToast=Hg,exports.BDUser=UW,exports.BDUserInformation=t_,exports.BDVideoCallConfirmationModal=RJ,exports.BDVideoCallToast=_G,exports.BDZoomslider=qa,exports.CopyChatMessageToClipboard=aJ,exports.CopyChatMessagesToClipboard=oJ,exports.CopyHl7MessagesToClipboard=sJ,exports.CreateHyperlinkParagraph=nY,exports.CreateThumbnailUri=xW,exports.IconAcademy=w,exports.IconArrowDown=O,exports.IconArrowUp=re,exports.IconAttachment=se,exports.IconBold=de,exports.IconBulletList=he,exports.IconCalendar=ye,exports.IconCall=Ce,exports.IconCallReject=De,exports.IconCardView=je,exports.IconCaretDown=Fe,exports.IconCaretLeft=ze,exports.IconCaretRight=Ue,exports.IconCheck=qe,exports.IconClipboard=Ze,exports.IconClose=tt,exports.IconComment=at,exports.IconCommentActive=lt,exports.IconCommentStatic=pt,exports.IconCommonFileEmpty=_t,exports.IconCommonFileWarning=xt,exports.IconContactPerson=Tt,exports.IconCopy=kt,exports.IconDelete=Nt,exports.IconDoubleCheck=Lt,exports.IconDownloadImage=Vt,exports.IconEdit=Gt,exports.IconEndCall=Yt,exports.IconError=$t,exports.IconExternal=rn,exports.IconEyeShow=cn,exports.IconEyeSlash=fn,exports.IconFile=gn,exports.IconFileAdded=bn,exports.IconForward=wn,exports.IconHix=On,exports.IconHyperlink=Mn,exports.IconImageFileLandscape=In,exports.IconImageFileWarning=Bn,exports.IconInbox=Wn,exports.IconInfo=Jn,exports.IconInformationCircle=Qn,exports.IconItalic=nr,exports.IconListView=or,exports.IconLock=ur,exports.IconLusciiEscalated=mr,exports.IconLusciiLogo=vr,exports.IconLusciiOpen=Sr,exports.IconLusciiPriorityHigh=Er,exports.IconLusciiPriorityLow=Ar,exports.IconLusciiPriorityMedium=Pr,exports.IconMenu=Rr,exports.IconMessage=Hr,exports.IconMessageForward=Kr,exports.IconMicrophoneSlash=Yr,exports.IconMicrosoftTeams=$r,exports.IconMin=ri,exports.IconOrderedList=si,exports.IconPlus=di,exports.IconRefresh=hi,exports.IconRemove=yi,exports.IconSananetLogo=wi,exports.IconService=Oi,exports.IconShareScreen=Mi,exports.IconSingleNeutral=Ii,exports.IconSort=Bi,exports.IconSortAsc=Wi,exports.IconSortDesc=Ji,exports.IconSortNone=Qi,exports.IconTriangleDown=na,exports.IconTriangleExclamation=oa,exports.IconUnderline=ua,exports.IconVideoDisabled=_a,exports.IconVideocall=ma,exports.IconWarning=xa,exports.IconZorgkaart=Ta,exports.MapAttachmentsForApi=vW,exports.MapToAttachmentObjects=wW,exports.TransformHyperlinks=tY,exports.ValidateUrl=rY,exports.default=iY,exports.getDisplayDateNumeric=v_,exports.getDisplayDateTextual=h_,exports.getDisplayDateTimeNumeric=__,exports.getDisplayDateTimeTextual=g_,exports.useModal=YG,exports.usePopover=AG,exports.useServerErrors=ZG,exports.useSessionTimeOut=rK,exports.useToaster=xD,exports.useValidation=zJ,exports.useWindow=OG,exports.useZoom=wJ,exports.vBdTooltip=EW;
1876
+ `)}`;rJ.copy(r).then(()=>iJ(n))},sJ=(e,t)=>{rJ.copy(e).then(()=>iJ(t))},cJ={class:`message-cloud-multi-select`},lJ={class:`message-cloud-multi-select__body`},uJ={class:`message-content`},dJ={class:`message-cloud__header`},fJ={class:`message-cloud__title`},pJ={key:0},mJ=[`innerHTML`],hJ=(0,u.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t}=sd(),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 oJ(r.value,e,n)};return(n,l)=>((0,u.openBlock)(),(0,u.createBlock)(JG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(g,{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`,cJ,[(0,u.createVNode)(Pg,{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`,lJ,[((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)(Pg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,u.createElementVNode)(`div`,uJ,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)([`message`,s(e)])},[(0,u.createElementVNode)(`div`,dJ,[(0,u.createElementVNode)(`div`,fJ,[(0,u.createTextVNode)((0,u.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,u.openBlock)(),(0,u.createElementBlock)(`span`,pJ,[(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,mJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),gJ=[`id`,`value`,`disabled`],_J=[`for`],vJ={class:`invalid-feedback`},yJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:t}){let n=e,r=t,{t:i}=sd(),a=(0,u.ref)(n.modelValue),o=(0,u.computed)(()=>n.selectAllText?n.selectAllText:i(`form.multipleCheckbox.defaultButton`)),s=(0,u.computed)(()=>{let e=`bd-form-multiple-checkbox`;return n.state||(e+=` is-invalid`),n.overflow&&(e+=` overflow-form-control`),e}),c=(0,u.computed)(()=>n.errorMessage?n.errorMessage:i(`form.multipleCheckbox.defaultErrorMessage`));(0,u.watch)(()=>n.modelValue,e=>{a.value=e}),(0,u.watch)(a,e=>{r(`update:modelValue`,e),r(`on-input`,e),r(`change-department`,e)});function l(){a.value=n.options.map(e=>e.value),d()}function d(){r(`on-input`,a.value)}return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,null,[(0,u.createElementVNode)(`div`,{class:(0,u.normalizeClass)(s.value)},[(0,u.createVNode)(g,{variant:`outline-primary`,size:`sm`,onClick:l},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(o.value),1)]),_:1}),((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.options,e=>((0,u.openBlock)(),(0,u.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,u.withDirectives)((0,u.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":n[0]||=e=>a.value=e,disabled:e.disabled},null,8,gJ),[[u.vModelCheckbox,a.value]]),(0,u.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,u.toDisplayString)(e.text),9,_J)]))),128))],2),(0,u.createElementVNode)(`div`,vJ,[(0,u.createVNode)($t),(0,u.createTextVNode)(` `+(0,u.toDisplayString)(c.value),1)])],64))}},bJ={key:0,class:`pills-list__wrapper`},xJ={class:`pills-list__ul`},SJ={__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}=YG(`attachment-upload-modal`),r=e,i=t,{t:a}=sd(),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)(bg,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(gg,{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)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(jW,{modelValue:e.modelValue.text,placeholder:(0,u.unref)(a)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,u.unref)(a)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":s.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,u.withCtx)(()=>[e.modelValue.pills?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,bJ,[(0,u.createElementVNode)(`ul`,xJ,[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(e.modelValue.pills,(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(`li`,{key:t,class:`pills-list__li`},[(0,u.createVNode)(Xg,(0,u.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,u.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,u.createVNode)(Gh,{"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)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(yJ,{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)(gg,{label:(0,u.unref)(a)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,u.unref)(YK),{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)(qh,{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}))}},CJ={__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}=sd(),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)(JG,{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)(SJ,{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`]))}};function wJ(){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 TJ=[`src`,`alt`],EJ={key:0,class:`show-spinner`},DJ={class:`spinner-border text-primary`,role:`status`},OJ=[`textContent`],kJ=[`href`],AJ=(0,u.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:t}){let{showModal:n}=YG(`image-attachment-modal`),{zoom:r,imageHolderRef:i,SetZoom:a,OnMouseDown:o,OnMouseMove:s,OnMouseUp:c}=wJ(),{t:l}=sd(),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},_=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,t)=>((0,u.openBlock)(),(0,u.createBlock)(JG,{id:`image-attachment-modal`,class:(0,u.normalizeClass)((0,u.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:_},{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,TJ)):(0,u.createCommentVNode)(``,!0)],544),d.value?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,EJ,[(0,u.createElementVNode)(`div`,DJ,[(0,u.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,u.toDisplayString)(m.value)},null,8,OJ)])])):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(qa,{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)(g,{variant:`primary`,class:`download-image`,textContent:(0,u.toDisplayString)(p.value)},null,8,[`textContent`])],8,kJ)]),_:1},8,[`class`,`title`]))}}),jJ={key:0},MJ={key:1},NJ={key:2},PJ={key:3},FJ={key:1},IJ={key:2},LJ=[`href`],RJ=(0,u.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:t}){let{t:n}=sd(),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)(JG,{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)(Oa,{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`,jJ,(0,u.toDisplayString)(p.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMicrophonePermission?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,MJ,(0,u.toDisplayString)(m.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingMobileActivation?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,NJ,(0,u.toDisplayString)(s.value),1)):(0,u.createCommentVNode)(``,!0),r.isMissingVideoConferencingSupport?((0,u.openBlock)(),(0,u.createElementBlock)(`li`,PJ,(0,u.toDisplayString)(c.value),1)):(0,u.createCommentVNode)(``,!0)])]),_:1})):r.participantName?((0,u.openBlock)(),(0,u.createElementBlock)(`p`,FJ,[(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`,IJ,(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,LJ),(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`]))}}),zJ=()=>({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}}),BJ={class:`template change-password-template`},VJ={class:`template-title`},HJ={key:0},UJ={key:1},WJ={class:`bd-form-field`},GJ={class:`bd-form-field`},KJ={class:`bd-form-field`},qJ={class:`bd-form-buttons`},JJ=(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}=sd(),{showDangerToast:n,showWarningToast:r,showSuccessToast:i}=xD(),{errorMessages:a,errorMessageText:o,MapServerErrors:s,ResetServerErrors:c}=ZG(null),{ValidationObjectIsValid:l}=zJ(),m=e,h=(0,u.ref)({password:``,passwordNew:``,passwordRepeat:``}),_=(0,u.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),v=()=>{if(!y())return;let e=m.submitPassword(h.value);e&&e.then(()=>{i(m.successText),b()}).catch(e=>{n(m.failureText),s(e)})},y=()=>{if(h.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(h.value.passwordNew))_.value.passwordNew.state=!1,_.value.passwordNew.errorLabel=m.minimalRequirementsText;else{let e=h.value.passwordRepeat===h.value.passwordNew,t=e?m.requiredText:m.incompatibleText;_.value.passwordNew.state=h.value.passwordNew!==``&&e?null:!1,_.value.passwordNew.errorLabel=t,_.value.passwordRepeat.state=h.value.passwordRepeat!==``&&e?null:!1,_.value.passwordRepeat.errorLabel=t}return _.value.password.state=h.value.password===``?!1:null,_.value.password.errorLabel=_.value.password.state?``:m.requiredText,l(_.value)},b=()=>{h.value.password===``&&h.value.passwordNew===``&&h.value.passwordRepeat===``||(h.value.password=``,h.value.passwordNew=``,h.value.passwordRepeat=``,_.value.password.state=null,_.value.passwordNew.state=null,_.value.passwordRepeat.state=null,c(),r(t(`changePasswordTemplate.toasters.reset`)))};return(t,n)=>((0,u.openBlock)(),(0,u.createElementBlock)(`main`,BJ,[(0,u.createVNode)(f,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,{class:`justify-content-md-center template-header`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`h1`,VJ,(0,u.toDisplayString)(m.templateTitle),1)]),_:1})]),_:1}),(0,u.createVNode)(p,{class:`justify-content-md-center`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{xs:12,md:10,lg:7},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(ao,{class:`bd-card-template`,"no-header":!0},{body:(0,u.withCtx)(()=>[(0,u.createVNode)(f,{class:`container-fluid`},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Oa,{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)(p,{key:0},{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(Oa,{variant:`danger`},{default:(0,u.withCtx)(()=>[(0,u.unref)(a)?((0,u.openBlock)(),(0,u.createElementBlock)(`div`,HJ,[(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)(Jn),(0,u.createElementVNode)(`span`,null,(0,u.toDisplayString)(e),1)]))),128))])])):((0,u.openBlock)(),(0,u.createElementBlock)(`div`,UJ,(0,u.toDisplayString)((0,u.unref)(o)),1))]),_:1})]),_:1})]),_:1})):(0,u.createCommentVNode)(``,!0),(0,u.createVNode)(p,null,{default:(0,u.withCtx)(()=>[(0,u.createVNode)(d,{class:`bd-card-form`,sm:12,md:12},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`form`,{onSubmit:(0,u.withModifiers)(v,[`prevent`]),onReset:(0,u.withModifiers)(b,[`prevent`]),class:`form`},[(0,u.createElementVNode)(`div`,WJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).password,"onUpdate:modelValue":n[0]||=e=>(0,u.unref)(h).password=e,label:e.currentPasswordLabel,state:(0,u.unref)(_).password.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,GJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).passwordNew,"onUpdate:modelValue":n[1]||=e=>(0,u.unref)(h).passwordNew=e,label:e.newPasswordLabel,state:(0,u.unref)(_).passwordNew.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,KJ,[(0,u.createVNode)(pg,{modelValue:(0,u.unref)(h).passwordRepeat,"onUpdate:modelValue":n[2]||=e=>(0,u.unref)(h).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,u.unref)(_).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,u.unref)(_).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,u.createElementVNode)(`div`,qJ,[(0,u.createVNode)(g,{type:`submit`},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,u.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,u.createVNode)(g,{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})]))}}),YJ={class:`template not-found-template`},XJ={class:`center-screen`},ZJ={class:`container-warning`},QJ=[`textContent`],$J=[`textContent`],eY=(0,u.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:t}){let{t:n}=sd(),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`,YJ,[(0,u.createVNode)(f,{class:`container-xl`},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)(`div`,XJ,[(0,u.createElementVNode)(`div`,ZJ,[(0,u.createVNode)(oa),(0,u.createElementVNode)(`h5`,{textContent:(0,u.toDisplayString)(o.value)},null,8,QJ),(0,u.createElementVNode)(`p`,{textContent:(0,u.toDisplayString)(s.value)},null,8,$J),(0,u.createVNode)(g,{onClick:c,variant:`primary`,type:`button`,textContent:(0,u.toDisplayString)(a.value)},null,8,[`textContent`])])])]),_:1})]))}}),tY=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>`)},nY=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,rY=e=>e.startsWith(`http://`)||e.startsWith(`https://`),iY={install:e=>{e.component(`BDAlert`,Oa),e.component(`BDArticle`,Lg),e.component(`BDAssignConversationModal`,oK),e.component(`BDAttachmentPreviewList`,cW),e.component(`BDAttachmentUploadModal`,sK),e.component(`BDBadge`,yg),e.component(`BDButton`,g),e.component(`BDCard`,ao),e.component(`BDChangePasswordTemplate`,JJ),e.component(`BDChatCloud`,ZW),e.component(`BDCol`,d),e.component(`BDCollapsableCard`,lo),e.component(`BDConfirmationModal`,aK),e.component(`BDContentLibraryModal`,Jq),e.component(`BDConversationToTextModal`,hJ),e.component(`BDContentLibrarySplitButton`,Gh),e.component(`BDContentLibraryTemplate`,qq),e.component(`BDContainer`,f),e.component(`BDDropdown`,vG),e.component(`BDDropdownItem`,x_),e.component(`BDFileUpload`,TD),e.component(`BDForm`,bg),e.component(`BDFormCheckbox`,Pg),e.component(`BDFormInput`,pg),e.component(`BDFormInvalidFeedback`,qh),e.component(`BDFormSelect`,Mg),e.component(`BDHeader`,TG),e.component(`BDImageAttachmentModal`,AJ),e.component(`BDImageAttachmentPreviewList`,_W),e.component(`BDInputGroup`,gg),e.component(`BDLink`,h),e.component(`BDLogo`,b),e.component(`BDMarkdownEditor`,jW),e.component(`BDMessageTemplateFormModal`,CJ),e.component(`BDMobileMenu`,RW),e.component(`BDModal`,JG),e.component(`BDNotFoundTemplate`,eY),e.component(`BDPagination`,Dg),e.component(`BDPhoneNumberEditModal`,nK),e.component(`BDPill`,Xg),e.component(`BDPractitionerHeader`,zG),e.component(`BDProfileImage`,Xa),e.component(`BDRow`,p),e.component(`BDSessionTimeOutModal`,iK),e.component(`BDTable`,oG),e.component(`BDToast`,Hg),e.component(`BDUser`,UW),e.component(`BDUserInformation`,t_),e.component(`BDVideoCallConfirmationModal`,RJ),e.component(`BDVideoCallToast`,_G),e.component(`BDZoomslider`,qa),e.component(`BDDate`,b_),e.component(`IconAcademy`,w),e.component(`IconArrowDown`,O),e.component(`IconArrowUp`,re),e.component(`IconAttachment`,se),e.component(`IconBold`,de),e.component(`IconBulletList`,he),e.component(`IconCalendar`,ye),e.component(`IconCall`,Ce),e.component(`IconCallReject`,De),e.component(`IconCardView`,je),e.component(`IconCaretDown`,Fe),e.component(`IconCaretLeft`,ze),e.component(`IconCaretRight`,Ue),e.component(`IconCheck`,qe),e.component(`IconClipboard`,Ze),e.component(`IconClose`,tt),e.component(`IconComment`,at),e.component(`IconCommentActive`,lt),e.component(`IconCommonFileEmpty`,_t),e.component(`IconCommonFileWarning`,xt),e.component(`IconCommentStatic`,pt),e.component(`IconContactPerson`,Tt),e.component(`IconCopy`,kt),e.component(`IconDelete`,Nt),e.component(`IconDoubleCheck`,Lt),e.component(`IconDownloadImage`,Vt),e.component(`IconEdit`,Gt),e.component(`IconEndCall`,Yt),e.component(`IconError`,$t),e.component(`IconExternal`,rn),e.component(`IconEyeShow`,cn),e.component(`IconEyeSlash`,fn),e.component(`IconFile`,gn),e.component(`IconFileAdded`,bn),e.component(`IconForward`,wn),e.component(`IconHix`,On),e.component(`IconHyperlink`,Mn),e.component(`IconImageFileLandscape`,In),e.component(`IconImageFileWarning`,Bn),e.component(`IconInbox`,Wn),e.component(`IconInfo`,Jn),e.component(`IconInformationCircle`,Qn),e.component(`IconItalic`,nr),e.component(`IconListView`,or),e.component(`IconLock`,ur),e.component(`IconLusciiEscalated`,mr),e.component(`IconLusciiLogo`,vr),e.component(`IconLusciiOpen`,Sr),e.component(`IconLusciiPriorityHigh`,Er),e.component(`IconLusciiPriorityLow`,Ar),e.component(`IconLusciiPriorityMedium`,Pr),e.component(`IconMenu`,Rr),e.component(`IconMessage`,Hr),e.component(`IconMessageForward`,Kr),e.component(`IconMicrophoneSlash`,Yr),e.component(`IconMicrosoftTeams`,$r),e.component(`IconMin`,ri),e.component(`IconOrderedList`,si),e.component(`IconPlus`,di),e.component(`IconRefresh`,hi),e.component(`IconRemove`,yi),e.component(`IconSananetLogo`,wi),e.component(`IconService`,Oi),e.component(`IconShareScreen`,Mi),e.component(`IconSingleNeutral`,Ii),e.component(`IconSort`,Bi),e.component(`IconSortAsc`,Wi),e.component(`IconSortDesc`,Ji),e.component(`IconSortNone`,Qi),e.component(`IconTriangleDown`,na),e.component(`IconTriangleExclamation`,oa),e.component(`IconUnderline`,ua),e.component(`IconVideoDisabled`,_a),e.component(`IconVideocall`,ma),e.component(`IconWarning`,xa),e.component(`IconZorgkaart`,Ta),e.directive(`vBDTooltip`,EW)}};exports.BDAlert=Oa,exports.BDArticle=Lg,exports.BDAssignConversationModal=oK,exports.BDAttachmentPreviewList=cW,exports.BDAttachmentUploadModal=sK,exports.BDBadge=yg,exports.BDButton=g,exports.BDCard=ao,exports.BDChangePasswordTemplate=JJ,exports.BDChatCloud=ZW,exports.BDCol=d,exports.BDCollapsableCard=lo,exports.BDConfirmationModal=aK,exports.BDContainer=f,exports.BDContentLibraryModal=Jq,exports.BDContentLibrarySplitButton=Gh,exports.BDContentLibraryTemplate=qq,exports.BDConversationToTextModal=hJ,exports.BDDate=b_,exports.BDDropdown=vG,exports.BDDropdownItem=x_,exports.BDFileUpload=TD,exports.BDForm=bg,exports.BDFormCheckbox=Pg,exports.BDFormInput=pg,exports.BDFormInvalidFeedback=qh,exports.BDFormSelect=Mg,exports.BDHeader=TG,exports.BDImageAttachmentModal=AJ,exports.BDImageAttachmentPreviewList=_W,exports.BDInputGroup=gg,exports.BDLink=h,exports.BDLogo=b,exports.BDMarkdownEditor=jW,exports.BDMessageTemplateFormModal=CJ,exports.BDMobileMenu=RW,exports.BDModal=JG,exports.BDNotFoundTemplate=eY,exports.BDPagination=Dg,exports.BDPhoneNumberEditModal=nK,exports.BDPill=Xg,exports.BDPractitionerHeader=zG,exports.BDProfileImage=Xa,exports.BDRow=p,exports.BDSessionTimeOutModal=iK,exports.BDTable=oG,exports.BDToast=Hg,exports.BDUser=UW,exports.BDUserInformation=t_,exports.BDVideoCallConfirmationModal=RJ,exports.BDVideoCallToast=_G,exports.BDZoomslider=qa,exports.CopyChatMessageToClipboard=aJ,exports.CopyChatMessagesToClipboard=oJ,exports.CopyHl7MessagesToClipboard=sJ,exports.CreateHyperlinkParagraph=nY,exports.CreateThumbnailUri=xW,exports.IconAcademy=w,exports.IconArrowDown=O,exports.IconArrowUp=re,exports.IconAttachment=se,exports.IconBold=de,exports.IconBulletList=he,exports.IconCalendar=ye,exports.IconCall=Ce,exports.IconCallReject=De,exports.IconCardView=je,exports.IconCaretDown=Fe,exports.IconCaretLeft=ze,exports.IconCaretRight=Ue,exports.IconCheck=qe,exports.IconClipboard=Ze,exports.IconClose=tt,exports.IconComment=at,exports.IconCommentActive=lt,exports.IconCommentStatic=pt,exports.IconCommonFileEmpty=_t,exports.IconCommonFileWarning=xt,exports.IconContactPerson=Tt,exports.IconCopy=kt,exports.IconDelete=Nt,exports.IconDoubleCheck=Lt,exports.IconDownloadImage=Vt,exports.IconEdit=Gt,exports.IconEndCall=Yt,exports.IconError=$t,exports.IconExternal=rn,exports.IconEyeShow=cn,exports.IconEyeSlash=fn,exports.IconFile=gn,exports.IconFileAdded=bn,exports.IconForward=wn,exports.IconHix=On,exports.IconHyperlink=Mn,exports.IconImageFileLandscape=In,exports.IconImageFileWarning=Bn,exports.IconInbox=Wn,exports.IconInfo=Jn,exports.IconInformationCircle=Qn,exports.IconItalic=nr,exports.IconListView=or,exports.IconLock=ur,exports.IconLusciiEscalated=mr,exports.IconLusciiLogo=vr,exports.IconLusciiOpen=Sr,exports.IconLusciiPriorityHigh=Er,exports.IconLusciiPriorityLow=Ar,exports.IconLusciiPriorityMedium=Pr,exports.IconMenu=Rr,exports.IconMessage=Hr,exports.IconMessageForward=Kr,exports.IconMicrophoneSlash=Yr,exports.IconMicrosoftTeams=$r,exports.IconMin=ri,exports.IconOrderedList=si,exports.IconPlus=di,exports.IconRefresh=hi,exports.IconRemove=yi,exports.IconSananetLogo=wi,exports.IconService=Oi,exports.IconShareScreen=Mi,exports.IconSingleNeutral=Ii,exports.IconSort=Bi,exports.IconSortAsc=Wi,exports.IconSortDesc=Ji,exports.IconSortNone=Qi,exports.IconTriangleDown=na,exports.IconTriangleExclamation=oa,exports.IconUnderline=ua,exports.IconVideoDisabled=_a,exports.IconVideocall=ma,exports.IconWarning=xa,exports.IconZorgkaart=Ta,exports.MapAttachmentsForApi=vW,exports.MapToAttachmentObjects=wW,exports.TransformHyperlinks=tY,exports.ValidateUrl=rY,exports.default=iY,exports.getDisplayDateNumeric=v_,exports.getDisplayDateTextual=h_,exports.getDisplayDateTimeNumeric=__,exports.getDisplayDateTimeTextual=g_,exports.useModal=YG,exports.usePopover=AG,exports.useServerErrors=ZG,exports.useSessionTimeOut=rK,exports.useToaster=xD,exports.useValidation=zJ,exports.useWindow=OG,exports.useZoom=wJ,exports.vBdTooltip=EW;
@@ -30854,7 +30854,8 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30854
30854
  "action",
30855
30855
  "on-input",
30856
30856
  "change-department",
30857
- "change-text"
30857
+ "change-text",
30858
+ "change-title"
30858
30859
  ],
30859
30860
  setup(e, { emit: n }) {
30860
30861
  let { showModal: r } = nq("attachment-upload-modal"), i = e, o = n, { t: d } = uf(), f = j([]), p = a(() => void 0), h = a(() => i.validation.category.state === !1 ? "is-invalid" : "");
@@ -30926,6 +30927,9 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30926
30927
  o("change-department", i.modelValue);
30927
30928
  }
30928
30929
  function ie(e) {
30930
+ o("change-title", e);
30931
+ }
30932
+ function ae(e) {
30929
30933
  o("change-text", e);
30930
30934
  }
30931
30935
  return (n, r) => (A(), s(T_, null, {
@@ -30938,7 +30942,7 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30938
30942
  id: "message-template-input-title",
30939
30943
  type: "text",
30940
30944
  modelValue: e.modelValue.title,
30941
- "onUpdate:modelValue": r[0] ||= (t) => e.modelValue.title = t,
30945
+ "onUpdate:modelValue": ie,
30942
30946
  placeholder: F(d)("messageTemplateFormModal.titlePlaceHolder"),
30943
30947
  state: e.validation.title.state,
30944
30948
  "invalid-feedback-text": e.validation.title.errorLabel
@@ -30953,7 +30957,6 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30953
30957
  m(x_, { label: F(d)("messageTemplateFormModal.replyTemplateLabel") }, {
30954
30958
  default: I(() => [m(RG, {
30955
30959
  modelValue: e.modelValue.text,
30956
- "onUpdate:modelValue": [r[1] ||= (t) => e.modelValue.text = t, ie],
30957
30960
  placeholder: F(d)("messageTemplateFormModal.replyTemplatePlaceHolder"),
30958
30961
  errorText: F(d)("messageTemplateFormModal.validation"),
30959
30962
  files: y.value,
@@ -30961,7 +30964,8 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30961
30964
  variant: "full",
30962
30965
  "api-url": p.value,
30963
30966
  onUpload: D,
30964
- onAction: T
30967
+ onAction: T,
30968
+ "onUpdate:modelValue": ae
30965
30969
  }, {
30966
30970
  default: I(() => [e.modelValue.pills ? (A(), l("div", DY, [u("ul", OY, [(A(!0), l(t, null, M(e.modelValue.pills, (e, t) => (A(), l("li", {
30967
30971
  key: t,
@@ -30982,7 +30986,7 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
30982
30986
  }, null, 8, ["content-library-providers"])]),
30983
30987
  _: 1
30984
30988
  }, 8, ["label"]),
30985
- r[2] ||= u("div", { class: "form-splitter" }, null, -1),
30989
+ r[0] ||= u("div", { class: "form-splitter" }, null, -1),
30986
30990
  m(x_, { label: F(d)("messageTemplateFormModal.sharedWithLabel") }, {
30987
30991
  default: I(() => [m(EY, {
30988
30992
  modelValue: _.value,
@@ -31004,11 +31008,13 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
31004
31008
  options: g.value,
31005
31009
  label: "text",
31006
31010
  placeholder: F(d)("messageTemplateFormModal.categoryPlaceholderDropdown"),
31007
- onSearch: b
31011
+ onSearch: b,
31012
+ class: O({ "is-invalid": e.validation.category.state === !1 })
31008
31013
  }, null, 8, [
31009
31014
  "modelValue",
31010
31015
  "options",
31011
- "placeholder"
31016
+ "placeholder",
31017
+ "class"
31012
31018
  ]), m(Qg, {
31013
31019
  class: O(h.value),
31014
31020
  state: e.validation.category.state,
@@ -31093,6 +31099,12 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
31093
31099
  o = !1;
31094
31100
  });
31095
31101
  }
31102
+ function v(e) {
31103
+ c.value.title = e, g();
31104
+ }
31105
+ function y(e) {
31106
+ c.value.text = e, g();
31107
+ }
31096
31108
  return (t, r) => (A(), s(tq, {
31097
31109
  id: "message-template-form-modal",
31098
31110
  title: l.value,
@@ -31115,7 +31127,8 @@ var { showSuccessToast: dY } = EO(), fY = (e, t, n) => {
31115
31127
  onAction: f,
31116
31128
  onShowAttachment: d,
31117
31129
  onChangeDepartment: _,
31118
- onChangeText: g
31130
+ onChangeText: y,
31131
+ onChangeTitle: v
31119
31132
  }, {
31120
31133
  "extra-fields": I(() => [N(t.$slots, "extra-fields")]),
31121
31134
  _: 3
@@ -1874,4 +1874,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1874
1874
  }
1875
1875
  `,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),Nq={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:Mq,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 Ld({removable:this.removable})}},components:{TimesCircleIcon:wq}},Pq=[`aria-label`,`data-p`],Fq=[`src`];function Iq(e,n,r,i,a,o){return a.visible?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":o.dataP}),[(0,t.renderSlot)(e.$slots,`default`,{},function(){return[e.image?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,(0,t.mergeProps)({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,Fq)):e.$slots.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.$slots.icon),(0,t.mergeProps)({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,(0,t.mergeProps)({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):(0,t.createCommentVNode)(``,!0),e.label===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:3,class:e.cx(`label`)},e.ptm(`label`)),(0,t.toDisplayString)(e.label),17))]}),e.removable?(0,t.renderSlot)(e.$slots,`removeicon`,{key:0,removeCallback:o.close,keydownCallback:o.onKeydown},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.removeIcon?`span`:`TimesCircleIcon`),(0,t.mergeProps)({class:[e.cx(`removeIcon`),e.removeIcon],onClick:o.close,onKeydown:o.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):(0,t.createCommentVNode)(``,!0)],16,Pq)):(0,t.createCommentVNode)(``,!0)}Nq.render=Iq;var Lq={key:0,class:`bd-active-filters`},Rq={class:`options`},zq=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=ld(),r=(0,t.useModel)(e,`modelValue`),i=e,a=(0,t.computed)(()=>n(`activeFilters.title`)),o=(0,t.computed)(()=>n(`activeFilters.clearAll`)),s=(0,t.computed)(()=>r.value&&r.value.length>0),c=(0,t.computed)(()=>i.filters.filter(e=>r.value?.some(t=>t.startsWith(`${e.id}-`)))),l=e=>e.options.concat(e.moreOptions||[]).filter(t=>r.value?.some(n=>n===`${e.id}-${t.item}`)),u=()=>{r.value=[]},d=e=>{if(!r.value)return;let t=r.value.indexOf(e);t!==-1&&r.value?.splice(t,1)};return(e,n)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lq,[(0,t.createElementVNode)(`header`,null,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(v,{variant:`link`,onClick:u,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`filter`},[(0,t.createElementVNode)(`label`,null,(0,t.toDisplayString)(e.label)+`:`,1),(0,t.createElementVNode)(`div`,Rq,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l(e),n=>((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Nq),{key:e.id+`-`+n.item,label:n.name,removable:``,onRemove:t=>d(`${e.id}-${n.item}`)},null,8,[`label`,`onRemove`]))),128))])]))),128))])):(0,t.createCommentVNode)(``,!0)}}),Bq=[`id`],Vq={class:`collapse-button-container`},Hq={class:`collapsed-show`},Uq={class:`collapsed-hide`},Wq=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=ld(),i=n,a=(0,t.computed)(()=>r(`filterCard.more`)),o=(0,t.computed)(()=>r(`filterCard.less`)),s=e=>e.replace(/\s/g,`-`),c=()=>i(`check`);return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fo,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(zq,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.filters,(i,l)=>((0,t.openBlock)(),(0,t.createBlock)(yg,{key:i.label,label:i.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[1]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),i.moreOptions?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{id:`collapse-${s(i.label)}`,class:`collapse`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.moreOptions,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[2]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,Bq),(0,t.createElementVNode)(`div`,Vq,[(0,t.createVNode)(v,{class:(0,t.normalizeClass)([`collapse-button collapsed`,{"collapse-button-last":e.filters.length-1===l}]),variant:`link`,"data-bs-toggle":`collapse`,"data-bs-target":`#collapse-${s(i.label)}`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(te,{class:`collapsed-show`}),(0,t.createElementVNode)(`span`,Hq,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(ae,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,Uq,(0,t.toDisplayString)(o.value),1)]),_:1},8,[`class`,`data-bs-target`])])],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`filter-extra`,{filter:i})]),_:2},1032,[`label`]))),128))]),_:3}))}}),Gq={class:`content-library-template`},Kq={class:`number-of-messages`},qq=[`src`],Jq=[`src`],Yq=(0,t.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:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let s=(0,t.computed)(()=>i.modelValue?.provider?.SupportsSearch?r(`contentLibraryTemplate.searchPlaceholderSearch`):r(`contentLibraryTemplate.searchPlaceholder`)),c=(0,t.computed)(()=>n_(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&n_(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&n_(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&QK(i.provider.totalNumber)&&(e=i.provider.totalNumber),e===1?`${e} ${r(`contentLibraryTemplate.message`)}`:`${e} ${r(`contentLibraryTemplate.messages`)}`}),f=(0,t.computed)(()=>i.provider&&i.provider.pageSize&&i.provider.totalNumber&&i.provider.pageSize<=i.provider.totalNumber),m=(0,t.computed)(()=>i.provider&&i.provider.totalNumber?i.provider.totalNumber:0),g=(0,t.computed)(()=>u.value?9:12),_=(0,t.computed)(()=>i.provider&&!u.value?3:2),y=(0,t.computed)(()=>i.showAddButton||c.value),b=(0,t.computed)(()=>({md:3,lg:3})),x=(0,t.computed)(()=>({md:9,lg:9})),S=(0,t.computed)(()=>({sm:12,md:8,lg:c.value?7:8,"offset-lg":y.value?0:3,"offset-md":y.value?0:3})),C=(0,t.computed)(()=>({sm:12,md:y.value?4:3,lg:c.value?5:4})),w=e=>e.label===`Categorieën`&&i.editCategory,T=()=>{a(`create`)},E=e=>{a(`on-insert`,e)},D=e=>{a(`on-change`,e)},O=e=>{a(`delete`,e)},ee=()=>{a(`update`,`category`)},te=()=>{o.value.currentPage=1,a(`on-input`,o.value)},ne=()=>{a(`on-input`,o.value)},re=e=>{a(`show-attachment`,e)},ie=e=>{a(`provider-changed`,e.value)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gq,[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(b.value,{class:`content-library-header content-library-header__messages`}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Kq,(0,t.toDisplayString)(d.value),1)]),_:1},16),(0,t.createVNode)(p,(0,t.mergeProps)(x.value,{class:`content-library-header`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`controls-row`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(S.value,{class:`search-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{type:`text`,modelValue:o.value.searchTerm,"onUpdate:modelValue":a[0]||=e=>o.value.searchTerm=e,placeholder:s.value,delayTimeMs:500,class:`search-input`,onInput:te,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:0},C.value,{class:`add-button-block`}),{default:(0,t.withCtx)(()=>[e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`add-button`,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pi),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},16)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:1},C.value,{class:`select-button-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:o.value.provider,"onUpdate:modelValue":a[1]||=e=>o.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":ie},{"open-indicator":(0,t.withCtx)(({attributes:e})=>[(0,t.createElementVNode)(`span`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),[(0,t.createVNode)(Le)],16)]),option:(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,qq)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),"selected-option":(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,Jq)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),_:1},8,[`modelValue`,`options`])]),_:1},16)):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},16),u.value?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Wq,{filters:i.provider.filters,searchForm:o.value,"enable-edit-category":i.editCategory,"no-header":!0,onCheck:te},{"filter-extra":(0,t.withCtx)(({filter:e})=>[w(e)?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:ee},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.changeCategoryButtonLabel`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`filters`,`searchForm`,`enable-edit-category`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(p,{md:12,lg:g.value,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Cq,{items:l.value,cols:_.value,onOnInsert:E,onOnChange:D,onDelete:O,onShowAttachment:re},null,8,[`items`,`cols`]),(0,t.createVNode)(h,{class:`content-library-pagination`},{default:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createBlock)(Ag,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":a[2]||=e=>o.value.currentPage=e,totalRows:m.value,rowsPerPage:e.provider.pageSize,onClick:ne,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),Xq={__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:n}){let{closeModal:r}=ZG(`content-library-modal`),i=e,a=n,o=(0,t.ref)(i.modelValue),s=(0,t.computed)(()=>i.modelValue?.provider?.img??null),c=(0,t.computed)(()=>i.modelValue?.provider?.label??``);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let l=e=>{r(),a(`on-insert`,e)},u=()=>{a(`cancel`)},d=e=>{a(`show-attachment`,e)},f=()=>{a(`shown`)},p=e=>{a(`provider-changed`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`content-library-modal`,"title-image":s.value,title:c.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Yq,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,provider:e.provider,providerSelectOptions:e.providerSelectOptions,loading:e.loading,onOnInsert:l,onShowAttachment:d,onProviderChanged:p},null,8,[`modelValue`,`provider`,`providerSelectOptions`,`loading`])]),_:1},8,[`title-image`,`title`,`visible`]))}},Zq=Object.defineProperty,Qq=(e,t,n)=>t in e?Zq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$q=(e,t,n)=>(Qq(e,typeof t==`symbol`?t:t+``,n),n),eJ=class{constructor(){$q(this,`seed`,0),$q(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)}},tJ=`Failed to copy value to clipboard. Unknown type.`,nJ={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(tJ,e),``}return e}},rJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,iJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=rJ,t}},aJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await aJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=iJ.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=nJ.asString(t);if(aJ.writeClipboardExecCommand(n))return!0;await aJ.writeClipboard(n)}};new eJ;var{showSuccessToast:oJ}=wD(),sJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${dq(fq(e.Tekst))}`;aJ.copy(r).then(()=>oJ(n))},cJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${dq(fq(e.Tekst))}`).join(`
1876
1876
  -----------------------
1877
- `)}`;aJ.copy(r).then(()=>oJ(n))},lJ=(e,t)=>{aJ.copy(e).then(()=>oJ(t))},uJ={class:`message-cloud-multi-select`},dJ={class:`message-cloud-multi-select__body`},fJ={class:`message-content`},pJ={class:`message-cloud__header`},mJ={class:`message-cloud__title`},hJ={key:0},gJ=[`innerHTML`],_J=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=ld(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return cJ(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,uJ,[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,dJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,fJ,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,pJ,[(0,t.createElementVNode)(`div`,mJ,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,hJ,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(o.value),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(s(e)),1)]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.Datum),1)])]),(0,t.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,gJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),vJ=[`id`,`value`,`disabled`],yJ=[`for`],bJ={class:`invalid-feedback`},xJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(v,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,vJ),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,yJ)]))),128))],2),(0,t.createElementVNode)(`div`,bJ,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},SJ={key:0,class:`pills-list__wrapper`},CJ={class:`pills-list__ul`},wJ={__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`],setup(e,{emit:n}){let{showModal:r}=ZG(`attachment-upload-modal`),i=e,a=n,{t:o}=ld(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.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(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Cg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":r[0]||=t=>e.modelValue.title=t,placeholder:(0,t.unref)(o)(`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,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(NW,{modelValue:e.modelValue.text,"onUpdate:modelValue":[r[1]||=t=>e.modelValue.text=t,T],placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,SJ,[(0,t.createElementVNode)(`ul`,CJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.modelValue.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)($g,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(Jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[2]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xJ,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m},null,8,[`modelValue`,`options`,`placeholder`]),(0,t.createVNode)(Xh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},TJ={__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:n}){let r=e,i=n,{t:a}=ld(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(wJ,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:m},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function EJ(){let e=(0,t.ref)(0),n=(0,t.ref)(!0),r=(0,t.ref)(null),i=(0,t.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:n,imageHolderRef:r,pos:i,SetZoom:(0,t.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!r.value)return;i.value.left=r.value.scrollLeft,i.value.top=r.value.scrollTop;let t=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);t&&(t.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),i.value.x=e.clientX,i.value.y=e.clientY,n.value=!0},OnMouseMove:e=>{if(n.value){let t=e.clientX-i.value.x,n=e.clientY-i.value.y;r.value&&(r.value.scrollTop=i.value.top-n,r.value.scrollLeft=i.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),t=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),t&&t.style&&(t.style.cursor=`grab`),n.value=!1}}}var DJ=[`src`,`alt`],OJ={key:0,class:`show-spinner`},kJ={class:`spinner-border text-primary`,role:`status`},AJ=[`textContent`],jJ=[`href`],MJ=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=ZG(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=EJ(),{t:u}=ld(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,DJ)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,OJ,[(0,t.createElementVNode)(`div`,kJ,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,AJ)])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Ya,{modelValue:(0,t.unref)(i),"onUpdate:modelValue":n[3]||=e=>(0,t.isRef)(i)?i.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,t.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,t.createVNode)(v,{variant:`primary`,class:`download-image`,textContent:(0,t.toDisplayString)(p.value)},null,8,[`textContent`])],8,jJ)]),_:1},8,[`class`,`title`]))}}),NJ={key:0},PJ={key:1},FJ={key:2},IJ={key:3},LJ={key:1},RJ={key:2},zJ=[`href`],BJ=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(Aa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,NJ,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,PJ,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,FJ,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,IJ,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,LJ,[(0,t.createTextVNode)((0,t.toDisplayString)(g.value)+` `,1),(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(i.participantName),1),n[0]||=(0,t.createTextVNode)(`?`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,RJ,(0,t.toDisplayString)(h.value),1)),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:i.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(_.value),9,zJ),(0,t.createElementVNode)(`span`,null,`\xA0`+(0,t.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),VJ=()=>({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}}),HJ={class:`template change-password-template`},UJ={class:`template-title`},WJ={key:0},GJ={key:1},KJ={class:`bd-form-field`},qJ={class:`bd-form-field`},JJ={class:`bd-form-field`},YJ={class:`bd-form-buttons`},XJ=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=ld(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=wD(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=$G(null),{ValidationObjectIsValid:u}=VJ(),d=e,f=(0,t.ref)({password:``,passwordNew:``,passwordRepeat:``}),g=(0,t.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),_=()=>{if(!y())return;let e=d.submitPassword(f.value);e&&e.then(()=>{a(d.successText),b()}).catch(e=>{r(d.failureText),c(e)})},y=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))g.value.passwordNew.state=!1,g.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;g.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,g.value.passwordNew.errorLabel=t,g.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,g.value.passwordRepeat.errorLabel=t}return g.value.password.state=f.value.password===``?!1:null,g.value.password.errorLabel=g.value.password.state?``:d.requiredText,u(g.value)},b=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,g.value.password.state=null,g.value.passwordNew.state=null,g.value.passwordRepeat.state=null,l(),i(n(`changePasswordTemplate.toasters.reset`)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,HJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`justify-content-md-center template-header`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`h1`,UJ,(0,t.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,t.createVNode)(h,{class:`justify-content-md-center`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(so,{class:`bd-card-template`,"no-header":!0},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(m,{class:`container-fluid`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,t.unref)(o)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,WJ,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(o),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Xn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GJ,(0,t.toDisplayString)((0,t.unref)(s)),1))]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{class:`bd-card-form`,sm:12,md:12},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{onSubmit:(0,t.withModifiers)(_,[`prevent`]),onReset:(0,t.withModifiers)(b,[`prevent`]),class:`form`},[(0,t.createElementVNode)(`div`,KJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,qJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,JJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,YJ,[(0,t.createVNode)(v,{type:`submit`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,t.createVNode)(v,{type:`reset`,variant:`link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),ZJ={class:`template not-found-template`},QJ={class:`center-screen`},$J={class:`container-warning`},eY=[`textContent`],tY=[`textContent`],nY=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,ZJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,QJ,[(0,t.createElementVNode)(`div`,$J,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,eY),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,tY),(0,t.createVNode)(v,{onClick:l,variant:`primary`,type:`button`,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])])])]),_:1})]))}});e.BDAlert=Aa,e.BDArticle=Bg,e.BDAssignConversationModal=cK,e.BDAttachmentPreviewList=uW,e.BDAttachmentUploadModal=lK,e.BDBadge=Sg,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=XJ,e.BDChatCloud=$W,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=sK,e.BDContainer=m,e.BDContentLibraryModal=Xq,e.BDContentLibrarySplitButton=Jh,e.BDContentLibraryTemplate=Yq,e.BDConversationToTextModal=_J,e.BDDate=C_,e.BDDropdown=bG,e.BDDropdownItem=w_,e.BDFileUpload=OD,e.BDForm=Cg,e.BDFormCheckbox=Lg,e.BDFormInput=gg,e.BDFormInvalidFeedback=Xh,e.BDFormSelect=Fg,e.BDHeader=DG,e.BDImageAttachmentModal=MJ,e.BDImageAttachmentPreviewList=yW,e.BDInputGroup=yg,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=NW,e.BDMessageTemplateFormModal=TJ,e.BDMobileMenu=BW,e.BDModal=XG,e.BDNotFoundTemplate=nY,e.BDPagination=Ag,e.BDPhoneNumberEditModal=iK,e.BDPill=$g,e.BDPractitionerHeader=VG,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=oK,e.BDTable=cG,e.BDToast=Gg,e.BDUser=GW,e.BDUserInformation=i_,e.BDVideoCallConfirmationModal=BJ,e.BDVideoCallToast=yG,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=sJ,e.CopyChatMessagesToClipboard=cJ,e.CopyHl7MessagesToClipboard=lJ,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=CW,e.IconAcademy=E,e.IconArrowDown=te,e.IconArrowUp=ae,e.IconAttachment=le,e.IconBold=pe,e.IconBulletList=_e,e.IconCalendar=xe,e.IconCall=Te,e.IconCallReject=ke,e.IconCardView=Ne,e.IconCaretDown=Le,e.IconCaretLeft=Ve,e.IconCaretRight=Ge,e.IconCheck=Ye,e.IconClipboard=$e,e.IconClose=rt,e.IconComment=st,e.IconCommentActive=dt,e.IconCommentStatic=ht,e.IconCommonFileEmpty=yt,e.IconCommonFileWarning=Ct,e.IconContactPerson=Dt,e.IconCopy=jt,e.IconDelete=Ft,e.IconDoubleCheck=zt,e.IconDownloadImage=Ut,e.IconEdit=qt,e.IconEndCall=Zt,e.IconError=tn,e.IconExternal=on,e.IconEyeShow=un,e.IconEyeSlash=mn,e.IconFile=vn,e.IconFileAdded=Sn,e.IconForward=En,e.IconHix=An,e.IconHyperlink=Pn,e.IconImageFileLandscape=Rn,e.IconImageFileWarning=Hn,e.IconInbox=Kn,e.IconInfo=Xn,e.IconInformationCircle=er,e.IconItalic=ir,e.IconListView=cr,e.IconLock=fr,e.IconLusciiEscalated=gr,e.IconLusciiLogo=br,e.IconLusciiOpen=wr,e.IconLusciiPriorityHigh=Or,e.IconLusciiPriorityLow=Mr,e.IconLusciiPriorityMedium=Ir,e.IconMenu=Br,e.IconMessage=Wr,e.IconMessageForward=Jr,e.IconMicrophoneSlash=Zr,e.IconMicrosoftTeams=ti,e.IconMin=ai,e.IconOrderedList=li,e.IconPlus=pi,e.IconRefresh=_i,e.IconRemove=xi,e.IconSananetLogo=Ei,e.IconService=Ai,e.IconShareScreen=Pi,e.IconSingleNeutral=Ri,e.IconSort=Hi,e.IconSortAsc=Ki,e.IconSortDesc=Xi,e.IconSortNone=ea,e.IconTriangleDown=ia,e.IconTriangleExclamation=ca,e.IconUnderline=fa,e.IconVideoDisabled=ya,e.IconVideocall=ga,e.IconWarning=Ca,e.IconZorgkaart=Da,e.MapAttachmentsForApi=bW,e.MapToAttachmentObjects=EW,e.TransformHyperlinks=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>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,Aa),e.component(`BDArticle`,Bg),e.component(`BDAssignConversationModal`,cK),e.component(`BDAttachmentPreviewList`,uW),e.component(`BDAttachmentUploadModal`,lK),e.component(`BDBadge`,Sg),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,XJ),e.component(`BDChatCloud`,$W),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,sK),e.component(`BDContentLibraryModal`,Xq),e.component(`BDConversationToTextModal`,_J),e.component(`BDContentLibrarySplitButton`,Jh),e.component(`BDContentLibraryTemplate`,Yq),e.component(`BDContainer`,m),e.component(`BDDropdown`,bG),e.component(`BDDropdownItem`,w_),e.component(`BDFileUpload`,OD),e.component(`BDForm`,Cg),e.component(`BDFormCheckbox`,Lg),e.component(`BDFormInput`,gg),e.component(`BDFormInvalidFeedback`,Xh),e.component(`BDFormSelect`,Fg),e.component(`BDHeader`,DG),e.component(`BDImageAttachmentModal`,MJ),e.component(`BDImageAttachmentPreviewList`,yW),e.component(`BDInputGroup`,yg),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,NW),e.component(`BDMessageTemplateFormModal`,TJ),e.component(`BDMobileMenu`,BW),e.component(`BDModal`,XG),e.component(`BDNotFoundTemplate`,nY),e.component(`BDPagination`,Ag),e.component(`BDPhoneNumberEditModal`,iK),e.component(`BDPill`,$g),e.component(`BDPractitionerHeader`,VG),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,oK),e.component(`BDTable`,cG),e.component(`BDToast`,Gg),e.component(`BDUser`,GW),e.component(`BDUserInformation`,i_),e.component(`BDVideoCallConfirmationModal`,BJ),e.component(`BDVideoCallToast`,yG),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,C_),e.component(`IconAcademy`,E),e.component(`IconArrowDown`,te),e.component(`IconArrowUp`,ae),e.component(`IconAttachment`,le),e.component(`IconBold`,pe),e.component(`IconBulletList`,_e),e.component(`IconCalendar`,xe),e.component(`IconCall`,Te),e.component(`IconCallReject`,ke),e.component(`IconCardView`,Ne),e.component(`IconCaretDown`,Le),e.component(`IconCaretLeft`,Ve),e.component(`IconCaretRight`,Ge),e.component(`IconCheck`,Ye),e.component(`IconClipboard`,$e),e.component(`IconClose`,rt),e.component(`IconComment`,st),e.component(`IconCommentActive`,dt),e.component(`IconCommonFileEmpty`,yt),e.component(`IconCommonFileWarning`,Ct),e.component(`IconCommentStatic`,ht),e.component(`IconContactPerson`,Dt),e.component(`IconCopy`,jt),e.component(`IconDelete`,Ft),e.component(`IconDoubleCheck`,zt),e.component(`IconDownloadImage`,Ut),e.component(`IconEdit`,qt),e.component(`IconEndCall`,Zt),e.component(`IconError`,tn),e.component(`IconExternal`,on),e.component(`IconEyeShow`,un),e.component(`IconEyeSlash`,mn),e.component(`IconFile`,vn),e.component(`IconFileAdded`,Sn),e.component(`IconForward`,En),e.component(`IconHix`,An),e.component(`IconHyperlink`,Pn),e.component(`IconImageFileLandscape`,Rn),e.component(`IconImageFileWarning`,Hn),e.component(`IconInbox`,Kn),e.component(`IconInfo`,Xn),e.component(`IconInformationCircle`,er),e.component(`IconItalic`,ir),e.component(`IconListView`,cr),e.component(`IconLock`,fr),e.component(`IconLusciiEscalated`,gr),e.component(`IconLusciiLogo`,br),e.component(`IconLusciiOpen`,wr),e.component(`IconLusciiPriorityHigh`,Or),e.component(`IconLusciiPriorityLow`,Mr),e.component(`IconLusciiPriorityMedium`,Ir),e.component(`IconMenu`,Br),e.component(`IconMessage`,Wr),e.component(`IconMessageForward`,Jr),e.component(`IconMicrophoneSlash`,Zr),e.component(`IconMicrosoftTeams`,ti),e.component(`IconMin`,ai),e.component(`IconOrderedList`,li),e.component(`IconPlus`,pi),e.component(`IconRefresh`,_i),e.component(`IconRemove`,xi),e.component(`IconSananetLogo`,Ei),e.component(`IconService`,Ai),e.component(`IconShareScreen`,Pi),e.component(`IconSingleNeutral`,Ri),e.component(`IconSort`,Hi),e.component(`IconSortAsc`,Ki),e.component(`IconSortDesc`,Xi),e.component(`IconSortNone`,ea),e.component(`IconTriangleDown`,ia),e.component(`IconTriangleExclamation`,ca),e.component(`IconUnderline`,fa),e.component(`IconVideoDisabled`,ya),e.component(`IconVideocall`,ga),e.component(`IconWarning`,Ca),e.component(`IconZorgkaart`,Da),e.directive(`vBDTooltip`,OW)}},e.getDisplayDateNumeric=x_,e.getDisplayDateTextual=v_,e.getDisplayDateTimeNumeric=b_,e.getDisplayDateTimeTextual=y_,e.useModal=ZG,e.usePopover=MG,e.useServerErrors=$G,e.useSessionTimeOut=aK,e.useToaster=wD,e.useValidation=VJ,e.useWindow=AG,e.useZoom=EJ,e.vBdTooltip=OW});
1877
+ `)}`;aJ.copy(r).then(()=>oJ(n))},lJ=(e,t)=>{aJ.copy(e).then(()=>oJ(t))},uJ={class:`message-cloud-multi-select`},dJ={class:`message-cloud-multi-select__body`},fJ={class:`message-content`},pJ={class:`message-cloud__header`},mJ={class:`message-cloud__title`},hJ={key:0},gJ=[`innerHTML`],_J=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=ld(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return cJ(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,uJ,[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,dJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,fJ,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,pJ,[(0,t.createElementVNode)(`div`,mJ,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,hJ,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(o.value),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(s(e)),1)]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.Datum),1)])]),(0,t.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,gJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),vJ=[`id`,`value`,`disabled`],yJ=[`for`],bJ={class:`invalid-feedback`},xJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(v,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,vJ),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,yJ)]))),128))],2),(0,t.createElementVNode)(`div`,bJ,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},SJ={key:0,class:`pills-list__wrapper`},CJ={class:`pills-list__ul`},wJ={__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:n}){let{showModal:r}=ZG(`attachment-upload-modal`),i=e,a=n,{t:o}=ld(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.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(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-title`,e)}function E(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Cg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,t.unref)(o)(`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,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(NW,{modelValue:e.modelValue.text,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,SJ,[(0,t.createElementVNode)(`ul`,CJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.modelValue.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)($g,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(Jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[0]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xJ,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,t.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,t.createVNode)(Xh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},TJ={__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:n}){let r=e,i=n,{t:a}=ld(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}function g(e){s.value.title=e,m()}function _(e){s.value.text=e,m()}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(wJ,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function EJ(){let e=(0,t.ref)(0),n=(0,t.ref)(!0),r=(0,t.ref)(null),i=(0,t.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:n,imageHolderRef:r,pos:i,SetZoom:(0,t.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!r.value)return;i.value.left=r.value.scrollLeft,i.value.top=r.value.scrollTop;let t=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);t&&(t.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),i.value.x=e.clientX,i.value.y=e.clientY,n.value=!0},OnMouseMove:e=>{if(n.value){let t=e.clientX-i.value.x,n=e.clientY-i.value.y;r.value&&(r.value.scrollTop=i.value.top-n,r.value.scrollLeft=i.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),t=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),t&&t.style&&(t.style.cursor=`grab`),n.value=!1}}}var DJ=[`src`,`alt`],OJ={key:0,class:`show-spinner`},kJ={class:`spinner-border text-primary`,role:`status`},AJ=[`textContent`],jJ=[`href`],MJ=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=ZG(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=EJ(),{t:u}=ld(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,DJ)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,OJ,[(0,t.createElementVNode)(`div`,kJ,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,AJ)])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Ya,{modelValue:(0,t.unref)(i),"onUpdate:modelValue":n[3]||=e=>(0,t.isRef)(i)?i.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,t.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,t.createVNode)(v,{variant:`primary`,class:`download-image`,textContent:(0,t.toDisplayString)(p.value)},null,8,[`textContent`])],8,jJ)]),_:1},8,[`class`,`title`]))}}),NJ={key:0},PJ={key:1},FJ={key:2},IJ={key:3},LJ={key:1},RJ={key:2},zJ=[`href`],BJ=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(Aa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,NJ,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,PJ,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,FJ,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,IJ,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,LJ,[(0,t.createTextVNode)((0,t.toDisplayString)(g.value)+` `,1),(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(i.participantName),1),n[0]||=(0,t.createTextVNode)(`?`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,RJ,(0,t.toDisplayString)(h.value),1)),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:i.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(_.value),9,zJ),(0,t.createElementVNode)(`span`,null,`\xA0`+(0,t.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),VJ=()=>({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}}),HJ={class:`template change-password-template`},UJ={class:`template-title`},WJ={key:0},GJ={key:1},KJ={class:`bd-form-field`},qJ={class:`bd-form-field`},JJ={class:`bd-form-field`},YJ={class:`bd-form-buttons`},XJ=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=ld(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=wD(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=$G(null),{ValidationObjectIsValid:u}=VJ(),d=e,f=(0,t.ref)({password:``,passwordNew:``,passwordRepeat:``}),g=(0,t.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),_=()=>{if(!y())return;let e=d.submitPassword(f.value);e&&e.then(()=>{a(d.successText),b()}).catch(e=>{r(d.failureText),c(e)})},y=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))g.value.passwordNew.state=!1,g.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;g.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,g.value.passwordNew.errorLabel=t,g.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,g.value.passwordRepeat.errorLabel=t}return g.value.password.state=f.value.password===``?!1:null,g.value.password.errorLabel=g.value.password.state?``:d.requiredText,u(g.value)},b=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,g.value.password.state=null,g.value.passwordNew.state=null,g.value.passwordRepeat.state=null,l(),i(n(`changePasswordTemplate.toasters.reset`)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,HJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`justify-content-md-center template-header`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`h1`,UJ,(0,t.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,t.createVNode)(h,{class:`justify-content-md-center`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(so,{class:`bd-card-template`,"no-header":!0},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(m,{class:`container-fluid`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,t.unref)(o)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,WJ,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(o),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Xn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GJ,(0,t.toDisplayString)((0,t.unref)(s)),1))]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{class:`bd-card-form`,sm:12,md:12},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{onSubmit:(0,t.withModifiers)(_,[`prevent`]),onReset:(0,t.withModifiers)(b,[`prevent`]),class:`form`},[(0,t.createElementVNode)(`div`,KJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,qJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,JJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,YJ,[(0,t.createVNode)(v,{type:`submit`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,t.createVNode)(v,{type:`reset`,variant:`link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),ZJ={class:`template not-found-template`},QJ={class:`center-screen`},$J={class:`container-warning`},eY=[`textContent`],tY=[`textContent`],nY=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,ZJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,QJ,[(0,t.createElementVNode)(`div`,$J,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,eY),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,tY),(0,t.createVNode)(v,{onClick:l,variant:`primary`,type:`button`,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])])])]),_:1})]))}});e.BDAlert=Aa,e.BDArticle=Bg,e.BDAssignConversationModal=cK,e.BDAttachmentPreviewList=uW,e.BDAttachmentUploadModal=lK,e.BDBadge=Sg,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=XJ,e.BDChatCloud=$W,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=sK,e.BDContainer=m,e.BDContentLibraryModal=Xq,e.BDContentLibrarySplitButton=Jh,e.BDContentLibraryTemplate=Yq,e.BDConversationToTextModal=_J,e.BDDate=C_,e.BDDropdown=bG,e.BDDropdownItem=w_,e.BDFileUpload=OD,e.BDForm=Cg,e.BDFormCheckbox=Lg,e.BDFormInput=gg,e.BDFormInvalidFeedback=Xh,e.BDFormSelect=Fg,e.BDHeader=DG,e.BDImageAttachmentModal=MJ,e.BDImageAttachmentPreviewList=yW,e.BDInputGroup=yg,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=NW,e.BDMessageTemplateFormModal=TJ,e.BDMobileMenu=BW,e.BDModal=XG,e.BDNotFoundTemplate=nY,e.BDPagination=Ag,e.BDPhoneNumberEditModal=iK,e.BDPill=$g,e.BDPractitionerHeader=VG,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=oK,e.BDTable=cG,e.BDToast=Gg,e.BDUser=GW,e.BDUserInformation=i_,e.BDVideoCallConfirmationModal=BJ,e.BDVideoCallToast=yG,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=sJ,e.CopyChatMessagesToClipboard=cJ,e.CopyHl7MessagesToClipboard=lJ,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=CW,e.IconAcademy=E,e.IconArrowDown=te,e.IconArrowUp=ae,e.IconAttachment=le,e.IconBold=pe,e.IconBulletList=_e,e.IconCalendar=xe,e.IconCall=Te,e.IconCallReject=ke,e.IconCardView=Ne,e.IconCaretDown=Le,e.IconCaretLeft=Ve,e.IconCaretRight=Ge,e.IconCheck=Ye,e.IconClipboard=$e,e.IconClose=rt,e.IconComment=st,e.IconCommentActive=dt,e.IconCommentStatic=ht,e.IconCommonFileEmpty=yt,e.IconCommonFileWarning=Ct,e.IconContactPerson=Dt,e.IconCopy=jt,e.IconDelete=Ft,e.IconDoubleCheck=zt,e.IconDownloadImage=Ut,e.IconEdit=qt,e.IconEndCall=Zt,e.IconError=tn,e.IconExternal=on,e.IconEyeShow=un,e.IconEyeSlash=mn,e.IconFile=vn,e.IconFileAdded=Sn,e.IconForward=En,e.IconHix=An,e.IconHyperlink=Pn,e.IconImageFileLandscape=Rn,e.IconImageFileWarning=Hn,e.IconInbox=Kn,e.IconInfo=Xn,e.IconInformationCircle=er,e.IconItalic=ir,e.IconListView=cr,e.IconLock=fr,e.IconLusciiEscalated=gr,e.IconLusciiLogo=br,e.IconLusciiOpen=wr,e.IconLusciiPriorityHigh=Or,e.IconLusciiPriorityLow=Mr,e.IconLusciiPriorityMedium=Ir,e.IconMenu=Br,e.IconMessage=Wr,e.IconMessageForward=Jr,e.IconMicrophoneSlash=Zr,e.IconMicrosoftTeams=ti,e.IconMin=ai,e.IconOrderedList=li,e.IconPlus=pi,e.IconRefresh=_i,e.IconRemove=xi,e.IconSananetLogo=Ei,e.IconService=Ai,e.IconShareScreen=Pi,e.IconSingleNeutral=Ri,e.IconSort=Hi,e.IconSortAsc=Ki,e.IconSortDesc=Xi,e.IconSortNone=ea,e.IconTriangleDown=ia,e.IconTriangleExclamation=ca,e.IconUnderline=fa,e.IconVideoDisabled=ya,e.IconVideocall=ga,e.IconWarning=Ca,e.IconZorgkaart=Da,e.MapAttachmentsForApi=bW,e.MapToAttachmentObjects=EW,e.TransformHyperlinks=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>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,Aa),e.component(`BDArticle`,Bg),e.component(`BDAssignConversationModal`,cK),e.component(`BDAttachmentPreviewList`,uW),e.component(`BDAttachmentUploadModal`,lK),e.component(`BDBadge`,Sg),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,XJ),e.component(`BDChatCloud`,$W),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,sK),e.component(`BDContentLibraryModal`,Xq),e.component(`BDConversationToTextModal`,_J),e.component(`BDContentLibrarySplitButton`,Jh),e.component(`BDContentLibraryTemplate`,Yq),e.component(`BDContainer`,m),e.component(`BDDropdown`,bG),e.component(`BDDropdownItem`,w_),e.component(`BDFileUpload`,OD),e.component(`BDForm`,Cg),e.component(`BDFormCheckbox`,Lg),e.component(`BDFormInput`,gg),e.component(`BDFormInvalidFeedback`,Xh),e.component(`BDFormSelect`,Fg),e.component(`BDHeader`,DG),e.component(`BDImageAttachmentModal`,MJ),e.component(`BDImageAttachmentPreviewList`,yW),e.component(`BDInputGroup`,yg),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,NW),e.component(`BDMessageTemplateFormModal`,TJ),e.component(`BDMobileMenu`,BW),e.component(`BDModal`,XG),e.component(`BDNotFoundTemplate`,nY),e.component(`BDPagination`,Ag),e.component(`BDPhoneNumberEditModal`,iK),e.component(`BDPill`,$g),e.component(`BDPractitionerHeader`,VG),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,oK),e.component(`BDTable`,cG),e.component(`BDToast`,Gg),e.component(`BDUser`,GW),e.component(`BDUserInformation`,i_),e.component(`BDVideoCallConfirmationModal`,BJ),e.component(`BDVideoCallToast`,yG),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,C_),e.component(`IconAcademy`,E),e.component(`IconArrowDown`,te),e.component(`IconArrowUp`,ae),e.component(`IconAttachment`,le),e.component(`IconBold`,pe),e.component(`IconBulletList`,_e),e.component(`IconCalendar`,xe),e.component(`IconCall`,Te),e.component(`IconCallReject`,ke),e.component(`IconCardView`,Ne),e.component(`IconCaretDown`,Le),e.component(`IconCaretLeft`,Ve),e.component(`IconCaretRight`,Ge),e.component(`IconCheck`,Ye),e.component(`IconClipboard`,$e),e.component(`IconClose`,rt),e.component(`IconComment`,st),e.component(`IconCommentActive`,dt),e.component(`IconCommonFileEmpty`,yt),e.component(`IconCommonFileWarning`,Ct),e.component(`IconCommentStatic`,ht),e.component(`IconContactPerson`,Dt),e.component(`IconCopy`,jt),e.component(`IconDelete`,Ft),e.component(`IconDoubleCheck`,zt),e.component(`IconDownloadImage`,Ut),e.component(`IconEdit`,qt),e.component(`IconEndCall`,Zt),e.component(`IconError`,tn),e.component(`IconExternal`,on),e.component(`IconEyeShow`,un),e.component(`IconEyeSlash`,mn),e.component(`IconFile`,vn),e.component(`IconFileAdded`,Sn),e.component(`IconForward`,En),e.component(`IconHix`,An),e.component(`IconHyperlink`,Pn),e.component(`IconImageFileLandscape`,Rn),e.component(`IconImageFileWarning`,Hn),e.component(`IconInbox`,Kn),e.component(`IconInfo`,Xn),e.component(`IconInformationCircle`,er),e.component(`IconItalic`,ir),e.component(`IconListView`,cr),e.component(`IconLock`,fr),e.component(`IconLusciiEscalated`,gr),e.component(`IconLusciiLogo`,br),e.component(`IconLusciiOpen`,wr),e.component(`IconLusciiPriorityHigh`,Or),e.component(`IconLusciiPriorityLow`,Mr),e.component(`IconLusciiPriorityMedium`,Ir),e.component(`IconMenu`,Br),e.component(`IconMessage`,Wr),e.component(`IconMessageForward`,Jr),e.component(`IconMicrophoneSlash`,Zr),e.component(`IconMicrosoftTeams`,ti),e.component(`IconMin`,ai),e.component(`IconOrderedList`,li),e.component(`IconPlus`,pi),e.component(`IconRefresh`,_i),e.component(`IconRemove`,xi),e.component(`IconSananetLogo`,Ei),e.component(`IconService`,Ai),e.component(`IconShareScreen`,Pi),e.component(`IconSingleNeutral`,Ri),e.component(`IconSort`,Hi),e.component(`IconSortAsc`,Ki),e.component(`IconSortDesc`,Xi),e.component(`IconSortNone`,ea),e.component(`IconTriangleDown`,ia),e.component(`IconTriangleExclamation`,ca),e.component(`IconUnderline`,fa),e.component(`IconVideoDisabled`,ya),e.component(`IconVideocall`,ga),e.component(`IconWarning`,Ca),e.component(`IconZorgkaart`,Da),e.directive(`vBDTooltip`,OW)}},e.getDisplayDateNumeric=x_,e.getDisplayDateTextual=v_,e.getDisplayDateTimeNumeric=b_,e.getDisplayDateTimeTextual=y_,e.useModal=ZG,e.usePopover=MG,e.useServerErrors=$G,e.useSessionTimeOut=aK,e.useToaster=wD,e.useValidation=VJ,e.useWindow=AG,e.useZoom=EJ,e.vBdTooltip=OW});
@@ -4,7 +4,7 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
4
  $slots: S;
5
5
  });
6
6
  declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "update:modelValue" | "action" | "show-attachment" | "on-input" | "change-department" | "change-text", ...args: any[]) => void;
7
+ $emit: (event: "update:modelValue" | "action" | "show-attachment" | "on-input" | "change-department" | "change-text" | "change-title", ...args: any[]) => void;
8
8
  modelValue: Record<string, any>;
9
9
  validation: Record<string, any>;
10
10
  practitionerOptions: unknown[];
@@ -37,11 +37,16 @@
37
37
  }
38
38
  }
39
39
 
40
- &__message{
41
- p{
40
+ &__message {
41
+ > *:last-child {
42
+ margin-bottom: 0;
43
+ }
44
+
45
+ p {
42
46
  min-height: 1rem;
43
47
  }
44
- p:last-of-type{
48
+
49
+ li p:last-of-type{
45
50
  margin-bottom: 0px;
46
51
  }
47
52
  }
@@ -1,10 +1,10 @@
1
1
  .content-library-card-message-template {
2
2
  padding: 8px;
3
- min-height: 180px;
3
+ min-height: 190px;
4
4
  height: auto;
5
5
 
6
6
  &.collapsed {
7
- height: 180px;
7
+ height: 190px;
8
8
  }
9
9
 
10
10
  .content-library-card__body {
@@ -1,5 +1,5 @@
1
1
  .content-library-card {
2
- min-height: 260px;
2
+ min-height: 190px;
3
3
  background-color: #fff;
4
4
  box-shadow: 0 0 1px #abb0be;
5
5
  padding: 20px;
@@ -22,6 +22,12 @@
22
22
  outline: none;
23
23
  }
24
24
 
25
+ li {
26
+ p:last-of-type {
27
+ margin-bottom: 0;
28
+ }
29
+ }
30
+
25
31
  p {
26
32
  &.is-editor-empty:first-child::before {
27
33
  content: attr(data-placeholder);
@@ -1,6 +1,7 @@
1
1
  #message-template-form-modal {
2
- .bd-markdown-editor {
3
- margin-bottom: 16px;
2
+
3
+ .bd-content-library-split-button {
4
+ margin-top: 0.75rem;
4
5
  }
5
6
 
6
7
  .textarea-button {
@@ -26,6 +27,10 @@
26
27
  }
27
28
  }
28
29
 
30
+ .v-select.is-invalid .vs__dropdown-toggle {
31
+ border-color: #e0452c;
32
+ }
33
+
29
34
  .bd-markdown-editor {
30
35
  ul li {
31
36
  list-style-type: disc;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "description": "Component library voor BeterDichtbij design system",
4
4
  "private": false,
5
- "version": "0.64.2",
5
+ "version": "0.64.4",
6
6
  "engines": {
7
7
  "node": "24.x",
8
8
  "npm": "11.x"