@beterdichtbij/component-library 0.63.0 → 0.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bd-component-lib.cjs.js +4 -4
- package/dist/bd-component-lib.es.js +149 -151
- package/dist/bd-component-lib.umd.js +4 -4
- package/dist/scss/_content-library-card-message-template.scss +18 -17
- package/dist/scss/_content-library-modal.scss +0 -8
- package/dist/scss/_markdown-editor.scss +22 -22
- package/dist/scss/templates/_content-library-template.scss +27 -0
- package/package.json +1 -1
|
@@ -1818,8 +1818,8 @@ ${n}`}}),s}function Qk(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants
|
|
|
1818
1818
|
<a href='${r}' target='_blank'>${i}</a>
|
|
1819
1819
|
`});return(e,n)=>o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,ref_key:`notificationButton`,ref:a,tabindex:`0`,class:`bd-notification-button`,role:`button`,"data-bs-toggle":`popover`,"data-bs-placement":`bottom`,"data-bs-title":c.value,"data-bs-content":l.value,"data-bs-html":!0,onClick:n[0]||=(...e)=>(0,t.unref)(i)&&(0,t.unref)(i)(...e)},[(0,t.withDirectives)((0,t.createElementVNode)(`img`,{src:TW,alt:`BeterDichtbij nieuws notificatie bel.`,title:s.value},null,8,jW),[[(0,t.unref)(TU)]]),(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,MW)):(0,t.createCommentVNode)(``,!0)],8,AW)):(0,t.createCommentVNode)(``,!0)}}),PW={class:`profile-side`},FW=[`href`],IW={class:`nav-item`},LW=[`textContent`],RW=(0,t.defineComponent)({__name:`BDPractitionerHeader`,props:{academyUrl:{},userId:{},getNotification:{}},setup(e){let{t:n}=bu(),r=e,i=(0,t.computed)(()=>n(`practitionerHeader.academyTooltip`)),a=(0,t.computed)(()=>n(`practitionerHeader.academyMenuItem`));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(wW,null,(0,t.createSlots)({"profile-side":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,PW,[(0,t.createVNode)(NW,{"user-id":r.userId,"get-notification":r.getNotification},null,8,[`user-id`,`get-notification`]),r.academyUrl?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,href:r.academyUrl,target:`_blank`,rel:`noopener,noreferrer`},[(0,t.withDirectives)((0,t.createVNode)((0,t.unref)(E),{title:i.value},null,8,[`title`]),[[(0,t.unref)(TU)]])],8,FW)):(0,t.createCommentVNode)(``,!0)])]),_:2},[r.academyUrl?{name:`mobile-menu-special-options`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`li`,IW,[(0,t.createVNode)(_,{class:`nav-link`,to:r.academyUrl},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E)),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(a.value)},null,8,LW)]),_:1},8,[`to`])])]),key:`0`}:void 0]),1024))}}),zW={class:`modal-dialog`},BW={class:`modal-content`},VW={class:`modal-header`},HW={class:`modal-title`},UW=[`src`],WW={class:`modal-body`},GW={key:0,class:`modal-footer`},KW=[`disabled`],qW=(0,t.defineComponent)({__name:`BDModal`,props:{title:{default:``},titleImage:{default:``},submitButtonTitle:{default:`Opslaan`},closeButtonTitle:{default:`Annuleren`},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:`lg`}},emits:[`submit`,`cancel`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>`modal bd-modal modal-${r.size}`),o=()=>i(`submit`),s=()=>i(`cancel`);return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(a.value),tabindex:`-1`},[(0,t.createElementVNode)(`div`,zW,[(0,t.createElementVNode)(`div`,BW,[(0,t.createElementVNode)(`div`,VW,[(0,t.createElementVNode)(`h2`,HW,[r.titleImage?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:r.titleImage,class:`title-image`,alt:``},null,8,UW)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r.title),1)]),(0,t.renderSlot)(n.$slots,`modal-header-space-between`),r.hideCloseButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`btn-close w-auto`,"data-bs-dismiss":`modal`,"aria-label":`Sluiten`,onClick:s},[i[0]||=(0,t.createElementVNode)(`span`,null,`Sluiten`,-1),(0,t.createVNode)((0,t.unref)(rt))]))]),(0,t.createElementVNode)(`div`,WW,[(0,t.renderSlot)(n.$slots,`default`)]),e.hideFooter?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GW,[r.hideFooterSubmitButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,class:`btn btn-primary`,disabled:r.disableSubmitButton,onClick:o},(0,t.toDisplayString)(r.submitButtonTitle),9,KW)),(0,t.renderSlot)(n.$slots,`buttons`),r.hideFooterCancelButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`btn btn-link`,"data-bs-dismiss":`modal`,onClick:s,"aria-label":`Annuleren`},(0,t.toDisplayString)(r.closeButtonTitle),1))]))])])],2))}}),JW=e=>{let n=(0,t.ref)(null);return{showModal:()=>{let t=document.getElementById(e);t instanceof HTMLElement?(n.value=rV.getOrCreateInstance(t),n.value.show()):console.error(`Modal '${e}' niet gevonden.`)},closeModal:()=>{if(n.value){n.value.hide();return}let t=document.getElementById(e);if(t instanceof HTMLElement){let e=rV.getInstance(t);e&&e.hide()}}}};function YW(e=void 0){let n=e=>o(`Succesvol`,e,Gh.SUCCESS),r=e=>o(`Waarschuwing`,e,Gh.WARNING),i=e=>o(`Informatie`,e,Gh.INFO),a=e=>o(`Mislukt`,e,Gh.DANGER);function o(n,r,i){let a=`toast-${ro()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(Yh,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(CU.getOrCreateInstance(d,e).show(),s(d))}function s(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var{showDangerToast:XW}=YW();function ZW(e){let n=(0,t.ref)(null),r=(e,t=`serverErrors`)=>{let r=[];if(r=Array.isArray(e?.response?.data)?e.response.data.filter(e=>Xh(e.ErrorMessage)&&e.ErrorMessage!==``):e.response.data.ErrorMessage?[e.response.data.ErrorMessage]:null,Xh(t))n.value=r;else if(Array.isArray(t)){let e=n.value;for(let n=0;n<t.length;n++)n===t.length-1?e[t[n]]=r:e=e[t[n]]}i(e),s(n)},i=t=>{if(e==null)return;let n=new URL(t.request.responseURL).pathname;if(n in e.error){let t=e.error[n];t&&XW(t)}},a=(0,t.ref)(null),o=(0,t.ref)(``),s=e=>{ig(e.value)?a.value=e.value.map(e=>Xh(e)?e:e.ErrorMessage):Xh(e.value)&&(o.value=e.value)};function c(){n.value=null,a.value=null,o.value=``}return{serverErrors:n,errorMessages:a,errorMessageText:o,MapErrors:s,MapServerErrors:r,ResetServerErrors:c}}var QW={key:0},$W={key:1},eG={class:`bd-form-field`},tG={class:`bd-form-field`},nG=(0,t.defineComponent)({__name:`BDPhoneNumberEditModal`,props:[`modalTitle`,`submitButtonTitle`,`phoneNumberLabel`,`phoneNumberUnchangedText`,`confirmationCodeLabel`,`confirmationCodeRequiredText`,`confirmationCodeSentText`,`editSuccessText`,`editCanceledText`,`sendConfirmationCodeText`,`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`],emits:[`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`,`setPhoneNumber`],setup(e,{expose:n,emit:r}){let{showSuccessToast:i,showWarningToast:a}=YW(),{serverErrors:o,errorMessages:s,errorMessageText:c,MapServerErrors:l,ResetServerErrors:u}=ZW(null),{closeModal:d}=JW(`phone-number-edit-modal`),f=e,p=r,m=``,h=(0,t.ref)(),g=(0,t.ref)(null),_=(0,t.ref)(),y=(0,t.ref)(),b=(0,t.ref)(null),x=(0,t.computed)(()=>y.value==null||y.value==``),S=()=>{if(g.value=null,u(),!h.value||h.value==m){g.value=!1;return}let e={newPhonenumber:h.value};f.startPhoneNumberUpdate(e).then(w).catch(l)},C=()=>{if(!y.value){b.value=!1;return}let e={requestIdentifier:_.value,token:y.value};f.confirmPhoneNumberUpdate(e).then(T).catch(l)},w=e=>{g.value=null,i(f.confirmationCodeSentText),_.value=e.data.RequestIdentifier},T=()=>{p(`setPhoneNumber`,h.value),i(f.editSuccessText),d(),g.value=null,b.value=null},E=e=>{m=e,h.value=m,g.value=null,_.value=void 0,y.value=void 0,b.value=null},D=()=>{E(m),u(),a(f.editCanceledText)};return n({Reset:E}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{id:`phone-number-edit-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":x.value,serverErrors:(0,t.unref)(o),errorMessages:(0,t.unref)(s),errorMessageText:(0,t.unref)(c),onSubmit:C,onCancel:D},{default:(0,t.withCtx)(()=>[(0,t.unref)(c)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(Aa,{key:0,variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,QW,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(s),(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`,$W,(0,t.toDisplayString)((0,t.unref)(c)),1))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,eG,[(0,t.createVNode)(bh,{id:`form-input-phone-number`,label:f.phoneNumberLabel,modelValue:h.value,"onUpdate:modelValue":n[0]||=e=>h.value=e,state:g.value,type:`text`,"form-field-class":`form-input-with-button`,"invalid-feedback-text":f.phoneNumberUnchangedText},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{textContent:(0,t.toDisplayString)(f.sendConfirmationCodeText),class:`tablet-device-up`,type:`button`,onClick:S},null,8,[`textContent`])]),_:1},8,[`label`,`modelValue`,`state`,`invalid-feedback-text`]),(0,t.createVNode)(v,{textContent:(0,t.toDisplayString)(f.sendConfirmationCodeText),class:`mobile-device`,type:`button`,onClick:S},null,8,[`textContent`])]),(0,t.createElementVNode)(`div`,tG,[_.value?((0,t.openBlock)(),(0,t.createBlock)(bh,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":n[1]||=e=>y.value=e,state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,[`label`,`modelValue`,`state`,`invalid-feedback-text`])):(0,t.createCommentVNode)(``,!0)])]),_:1},8,[`class`,`title`,`submitButtonTitle`,`disable-submit-button`,`serverErrors`,`errorMessages`,`errorMessageText`]))}}),rG=(e,n,r,i,a,o)=>{let s=(0,t.ref)(null),c=(0,t.ref)(null),l=(0,t.ref)(!1),u=(0,t.ref)(null),{showModal:d,closeModal:f}=JW(`session-time-out-modal`),p=(0,t.computed)(()=>s.value&&e?e-(s.value+1):0),m=(0,t.computed)(()=>c.value?60-c.value:0),h=(0,t.computed)(()=>l.value),g=()=>{u.value=setInterval(v,1e3),i(u.value)},_=()=>{u.value&&clearInterval(u.value)},v=()=>{s.value=(0,gg.default)().diff(r(),`m`),c.value=(0,gg.default)().subtract(s.value,`m`).diff(r(),`s`);let t=e??2**53-1,i=n??0;s.value>=t?(l.value=!0,d(),localStorage.setItem(`session-timeout`,`true`),window.onbeforeunload=y):s.value>=t-i?d():f()},y=e=>{e.stopPropagation(),x()},b=()=>{a(),_(),s.value=null,c.value=null,g()},x=()=>{_(),s.value=null,c.value=null,localStorage.removeItem(`session-timeout`),o()},S=()=>{l.value?x():b()};return(0,t.onMounted)(()=>{let e=document.getElementById(`session-time-out-modal`);e&&e.addEventListener(`hidden.bs.modal`,S),_(),g()}),{IsExpired:h,Minutes:p,Seconds:m,OnLogOut:()=>{x()},OnSubmit:()=>{l.value?x():f()}}},iG=(0,t.defineComponent)({__name:`BDSessionTimeOutModal`,props:[`expiredTitle`,`expiredMessage`,`expiredButtonText`,`almostExpiredTitle`,`almostExpiredMessage`,`almostExpiredButtonText`,`almostExpiredCancelButtonText`,`threshold`,`warningThreshold`,`getTime`,`setTaskId`,`setNewTime`,`logout`,`hideCancelButton`],setup(e){let n=e,{IsExpired:r,Minutes:i,Seconds:a,OnLogOut:o,OnSubmit:s}=rG(n.threshold,n.warningThreshold,n.getTime,n.setTaskId,n.setNewTime,n.logout),c=(0,t.computed)(()=>r.value?n.expiredTitle:n.almostExpiredTitle),l=(0,t.computed)(()=>r.value?n.expiredMessage:`${n.almostExpiredMessage} ${i.value}:${a.value<10?`0`+a.value:a.value}`),u=(0,t.computed)(()=>n.hideCancelButton||r.value),d=(0,t.computed)(()=>r.value?n.expiredButtonText:n.almostExpiredButtonText);return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{id:`session-time-out-modal`,title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":n.almostExpiredCancelButtonText,"submit-button-title":d.value,size:`md`,onSubmit:(0,t.unref)(s),onCancel:(0,t.unref)(o)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(l.value),1)]),_:1},8,[`title`,`hide-footer-cancel-button`,`close-button-title`,`submit-button-title`,`onSubmit`,`onCancel`]))}}),aG={__name:`BDConfirmationModal`,props:[`modalId`,`modalTitle`,`description`,`submitButtonText`,`cancelButtonText`],setup(e,{expose:n}){let r=e,{closeModal:i,showModal:a}=JW(r.modalId),o=(0,t.ref)(null);n({Confirm:async()=>(a(),new Promise(e=>o.value=e))});let s=()=>{i(),o.value(!0)},c=()=>o.value(!1);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{id:r.modalId,title:r.modalTitle,"submit-button-title":r.submitButtonText,"close-button-title":r.cancelButtonText,"hide-close-button":!0,size:`md`,onSubmit:s,onCancel:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(r.description),1)]),_:1},8,[`id`,`title`,`submit-button-title`,`close-button-title`]))}},oG={__name:`BDAssignConversationModal`,emits:[`update:isConcluded`,`update:isUnread`],setup(e,{emit:n}){let{t:r}=bu(),i=(0,t.ref)(!1),a=(0,t.ref)(!1),o=n,s=()=>o(`update:isConcluded`,i.value),c=()=>o(`update:isUnread`,a.value);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{id:`assign-conversation-modal`,title:(0,t.unref)(r)(`assignConversationModal.title`),submitButtonTitle:(0,t.unref)(r)(`assignConversationModal.submitButton`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`body`),(0,t.createVNode)(Ch,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Vh,{modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,onChange:s},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(r)(`assignConversationModal.conclude`)),1),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(v,{variant:`placeholder`,class:`btn-tooltip`,title:(0,t.unref)(r)(`assignConversationModal.concludeTooltip`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Xn)]),_:1},8,[`title`])),[[(0,t.unref)(TU)]])]),_:1},8,[`modelValue`])]),_:1}),(0,t.createVNode)(Ch,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Vh,{modelValue:a.value,"onUpdate:modelValue":n[1]||=e=>a.value=e,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`assignConversationModal.makeUnread`)),1)]),_:1},8,[`modelValue`])]),_:1}),(0,t.renderSlot)(e.$slots,`footer`)]),_:3},8,[`title`,`submitButtonTitle`]))}},sG=(0,t.defineComponent)({__name:`BDAttachmentUploadModal`,props:{url:{},token:{}},emits:[`cancel`,`on-submit`],setup(e,{emit:n}){let{closeModal:r}=JW(`attachment-upload-modal`),{t:i}=bu(),a=e,o=n,s=()=>{o(`on-submit`,l.value.files),l.value.files=[],r()},c=()=>{o(`cancel`),l.value.files=[]},l=(0,t.ref)({files:[]}),u=(0,t.computed)(()=>i(`attachmentUploadModal.title`)),d=(0,t.computed)(()=>i(`attachmentUploadModal.submitButton`)),f=(0,t.computed)(()=>i(`attachmentUploadModal.infoMessage`)),p=(0,t.computed)(()=>i(`attachmentUploadModal.addAttachmentButton`)),m=(0,t.computed)(()=>i(`attachmentUploadModal.errorMessage`)),h=(0,t.computed)(()=>i(`attachmentUploadModal.fileTooBigErrorMessage`)),g=(0,t.computed)(()=>i(`attachmentUploadModal.fileSizeExceededMessage`));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{id:`attachment-upload-modal`,title:u.value,"submit-button-title":d.value,onSubmit:s,onCancel:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createVNode)(Y_,{modelValue:l.value,"onUpdate:modelValue":n[0]||=e=>l.value=e,"button-text":p.value,"error-message":m.value,multiple:!0,"file-size-exceeded-message":h.value,"accepted-files":`.png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov`,url:a.url,tag:`div`,token:a.token},null,8,[`modelValue`,`button-text`,`error-message`,`file-size-exceeded-message`,`url`,`token`]),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(g.value),1),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`title`,`submit-button-title`]))}}),cG=Object.defineProperty,lG=Object.defineProperties,uG=Object.getOwnPropertyDescriptors,dG=Object.getOwnPropertySymbols,fG=Object.prototype.hasOwnProperty,pG=Object.prototype.propertyIsEnumerable,mG=(e,t,n)=>t in e?cG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hG=(e,t)=>{for(var n in t||={})fG.call(t,n)&&mG(e,n,t[n]);if(dG)for(var n of dG(t))pG.call(t,n)&&mG(e,n,t[n]);return e},gG=(e,t)=>lG(e,uG(t)),_G={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){let e=this.$refs.dropdownMenu?.children[this.typeAheadPointer]||!1;if(e){let t=this.getDropdownViewport(),{top:n,bottom:r,height:i}=e.getBoundingClientRect();if(n<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},vG={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open(e){e&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect(){let e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length===0?-1:this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1])}}},yG={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit(`search`,this.search,this.toggleLoading)},loading(e){this.mutableLoading=e}},methods:{toggleLoading(e=null){return e==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=e}}},bG=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},xG={},SG={xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`},CG=[(0,t.createElementVNode)(`path`,{d:`M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z`},null,-1)];function wG(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,SG,CG)}var TG=bG(xG,[[`render`,wG]]),EG={},DG={xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`10`},OG=[(0,t.createElementVNode)(`path`,{d:`M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z`},null,-1)];function kG(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,DG,OG)}var AG={Deselect:TG,OpenIndicator:bG(EG,[[`render`,kG]])},jG={mounted(e,{instance:t}){if(t.appendToBody){let{height:n,top:r,left:i,width:a}=t.$refs.toggle.getBoundingClientRect(),o=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset;e.unbindPosition=t.calculatePosition(e,t,{width:a+`px`,left:o+i+`px`,top:s+r+n+`px`}),document.body.appendChild(e)}},unmounted(e,{instance:t}){t.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition==`function`&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function MG(e){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=e[n]}),JSON.stringify(t)}var NG=0;function PG(){return++NG}var FG={components:hG({},AG),directives:{appendToBody:jG},mixins:[_G,vG,yG],compatConfig:{MODE:3},emits:[`open`,`close`,`update:modelValue`,`search`,`search:compositionstart`,`search:compositionend`,`search:keydown`,`search:blur`,`search:focus`,`search:input`,`option:created`,`option:selecting`,`option:selected`,`option:deselecting`,`option:deselected`],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:``},transition:{type:String,default:`vs__fade`},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:`label`},autocomplete:{type:String,default:`off`},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e==`object`?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.
|
|
1820
1820
|
https://vue-select.org/api/props.html#getoptionlabel`):e}},getOptionKey:{type:Function,default(e){if(typeof e!=`object`)return e;try{return e.hasOwnProperty(`id`)?e.id:MG(e)}catch(t){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
1821
|
-
https://vue-select.org/api/props.html#getoptionkey`,e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,t,n){return(t||``).toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,t){return e.filter(e=>{let n=this.getOptionLabel(e);return typeof n==`number`&&(n=n.toString()),this.filterBy(e,n,t)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]==`object`?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>[`function`,`boolean`].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:t}){return e&&!t}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:`auto`},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:`[type=search]`},mapKeydown:{type:Function,default:(e,t)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,t,{width:n,top:r,left:i}){e.style.top=r,e.style.left=i,e.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:t,mutableLoading:n}){return e?!1:t&&!n}},uid:{type:[String,Number],default:()=>PG()}},data(){return{search:``,open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return this.modelValue===void 0||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==``?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){let e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:hG({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":`list`,"aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:`search`,type:`search`,autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:`openIndicator`,role:`presentation`,class:`vs__open-indicator`}},listHeader:e,listFooter:e,header:gG(hG({},e),{deselect:this.deselect}),footer:gG(hG({},e),{deselect:this.deselect})}},childComponents(){return hG(hG({},AG),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){let e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;let t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){let e=this.createOption(this.search);this.optionExists(e)||t.unshift(e)}return t},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,t){!this.taggable&&(typeof this.resetOnOptionsChange==`function`?this.resetOnOptionsChange(e,t,this.selectedValue):this.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?`open`:`close`)}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit(`option:selecting`,e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit(`option:created`,e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit(`option:selected`,e)),this.onAfterSelect(e)},deselect(e){this.$emit(`option:deselecting`,e),this.updateValue(this.selectedValue.filter(t=>!this.optionComparator(t,e))),this.$emit(`option:deselected`,e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search=``)},updateValue(e){this.modelValue===void 0&&(this.$data._value=e),e!==null&&(e=Array.isArray(e)?e.map(e=>this.reduce(e)):this.reduce(e)),this.$emit(`update:modelValue`,e)},toggleDropdown(e){let t=e.target!==this.searchEl;t&&e.preventDefault();let n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(t=>t.contains(e.target)||t===e.target)){e.preventDefault();return}this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(t=>this.optionComparator(t,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue(e){let t=t=>JSON.stringify(this.reduce(t))===JSON.stringify(e),n=[...this.options,...this.pushedTags].filter(t);return n.length===1?n[0]:n.find(e=>this.optionComparator(e,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit(`search:blur`)},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(t=>this.optionComparator(t,e))},normalizeOptionForSlot(e){return typeof e==`object`?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search=``:this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{let{clearSearchOnSelect:e,multiple:t}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=``),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit(`search:focus`)},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){let t=e=>(e.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:e=>this.maybeDeleteValue(),9:e=>this.onTab(),27:e=>this.onEscape(),38:e=>(e.preventDefault(),this.typeAheadUp()),40:e=>(e.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(e=>n[e]=t);let r=this.mapKeydown(n,this);if(typeof r[e.keyCode]==`function`)return r[e.keyCode](e)}}},IG=[`dir`],LG=[`id`,`aria-expanded`,`aria-owns`],RG={ref:`selectedOptions`,class:`vs__selected-options`},zG=[`disabled`,`title`,`aria-label`,`onClick`],BG={ref:`actions`,class:`vs__actions`},VG=[`disabled`],HG={class:`vs__spinner`},UG=[`id`],WG=[`id`,`aria-selected`,`onMouseover`,`onClick`],GG={key:0,class:`vs__no-options`},KG=(0,t.createTextVNode)(` Sorry, no matching options. `),qG=[`id`];function JG(e,n,r,i,a,o){let s=(0,t.resolveDirective)(`append-to-body`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{dir:r.dir,class:(0,t.normalizeClass)([`v-select`,o.stateClasses])},[(0,t.renderSlot)(e.$slots,`header`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.header))),(0,t.createElementVNode)(`div`,{id:`vs${r.uid}__combobox`,ref:`toggle`,class:`vs__dropdown-toggle`,role:`combobox`,"aria-expanded":o.dropdownOpen.toString(),"aria-owns":`vs${r.uid}__listbox`,"aria-label":`Search for option`,onMousedown:n[1]||=e=>o.toggleDropdown(e)},[(0,t.createElementVNode)(`div`,RG,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.selectedValue,(n,i)=>(0,t.renderSlot)(e.$slots,`selected-option-container`,{option:o.normalizeOptionForSlot(n),deselect:o.deselect,multiple:r.multiple,disabled:r.disabled},()=>[((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r.getOptionKey(n),class:`vs__selected`},[(0,t.renderSlot)(e.$slots,`selected-option`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.normalizeOptionForSlot(n))),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.getOptionLabel(n)),1)]),r.multiple?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_for:!0,ref:e=>a.deselectButtons[i]=e,disabled:r.disabled,type:`button`,class:`vs__deselect`,title:`Deselect ${r.getOptionLabel(n)}`,"aria-label":`Deselect ${r.getOptionLabel(n)}`,onClick:e=>o.deselect(n)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.Deselect)))],8,zG)):(0,t.createCommentVNode)(``,!0)]))])),256)),(0,t.renderSlot)(e.$slots,`search`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.search)),()=>[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({class:`vs__search`},o.scope.search.attributes,(0,t.toHandlers)(o.scope.search.events)),null,16)])],512),(0,t.createElementVNode)(`div`,BG,[(0,t.withDirectives)((0,t.createElementVNode)(`button`,{ref:`clearButton`,disabled:r.disabled,type:`button`,class:`vs__clear`,title:`Clear Selected`,"aria-label":`Clear Selected`,onClick:n[0]||=(...e)=>o.clearSelection&&o.clearSelection(...e)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.Deselect)))],8,VG),[[t.vShow,o.showClearButton]]),(0,t.renderSlot)(e.$slots,`open-indicator`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.openIndicator)),()=>[r.noDrop?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.OpenIndicator),(0,t.normalizeProps)((0,t.mergeProps)({key:0},o.scope.openIndicator.attributes)),null,16))]),(0,t.renderSlot)(e.$slots,`spinner`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.spinner)),()=>[(0,t.withDirectives)((0,t.createElementVNode)(`div`,HG,`Loading...`,512),[[t.vShow,e.mutableLoading]])])],512)],40,LG),(0,t.createVNode)(t.Transition,{name:r.transition},{default:(0,t.withCtx)(()=>[o.dropdownOpen?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{id:`vs${r.uid}__listbox`,ref:`dropdownMenu`,key:`vs${r.uid}__listbox`,class:`vs__dropdown-menu`,role:`listbox`,tabindex:`-1`,onMousedown:n[2]||=(0,t.withModifiers)((...e)=>o.onMousedown&&o.onMousedown(...e),[`prevent`]),onMouseup:n[3]||=(...e)=>o.onMouseUp&&o.onMouseUp(...e)},[(0,t.renderSlot)(e.$slots,`list-header`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listHeader))),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.filteredOptions,(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:`vs${r.uid}__option-${i}`,key:r.getOptionKey(n),role:`option`,class:(0,t.normalizeClass)([`vs__dropdown-option`,{"vs__dropdown-option--deselect":o.isOptionDeselectable(n)&&i===e.typeAheadPointer,"vs__dropdown-option--selected":o.isOptionSelected(n),"vs__dropdown-option--highlight":i===e.typeAheadPointer,"vs__dropdown-option--disabled":!r.selectable(n)}]),"aria-selected":i===e.typeAheadPointer?!0:null,onMouseover:t=>r.selectable(n)?e.typeAheadPointer=i:null,onClick:(0,t.withModifiers)(e=>r.selectable(n)?o.select(n):null,[`prevent`,`stop`])},[(0,t.renderSlot)(e.$slots,`option`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.normalizeOptionForSlot(n))),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.getOptionLabel(n)),1)])],42,WG))),128)),o.filteredOptions.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,GG,[(0,t.renderSlot)(e.$slots,`no-options`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.noOptions)),()=>[KG])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`list-footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listFooter)))],40,UG)),[[s]]):((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:1,id:`vs${r.uid}__listbox`,role:`listbox`,style:{display:`none`,visibility:`hidden`}},null,8,qG))]),_:3},8,[`name`]),(0,t.renderSlot)(e.$slots,`footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.footer)))],10,IG)}var YG=bG(FG,[[`render`,JG]]),XG=e=>typeof e==`number`,ZG=[`textContent`],QG=[`textContent`],$G={key:0,class:`content-library-card__body`},eK=[`textContent`],tK=(0,t.defineComponent)({__name:`BDContentLibraryCard`,props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:[`on-insert`],setup(e,{emit:n}){let{t:r}=bu(),i=e,a=n,o=(0,t.computed)(()=>`Open ${i.provider} in nieuw venster`),s=()=>{a(`on-insert`,i.itemId)},c=()=>{window.open(i.uri,`_blank`,`noopener,noreferrer`)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{class:(0,t.normalizeClass)([`content-library-card`,i.cardClass])},[(0,t.createElementVNode)(`header`,null,[(0,t.renderSlot)(e.$slots,`header`,{},()=>[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(i.title)},null,8,ZG),i.subtitle?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,{key:0,textContent:(0,t.toDisplayString)(i.subtitle)},null,8,QG)):(0,t.createCommentVNode)(``,!0)])]),i.showBody?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$G,[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(i.description),class:`content-library-card__description`},null,8,eK)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`footer`,null,[i.showFooter?(0,t.renderSlot)(e.$slots,`footer`,{key:0},()=>[(0,t.createVNode)(v,{variant:`secondary`,onClick:s},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryCard.insert`)),1)]),_:1}),(0,t.createVNode)(v,{title:o.value,variant:`icon`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(on)]),_:1},8,[`title`])]):(0,t.createCommentVNode)(``,!0)])],2))}}),nK=(0,t.defineComponent)({__name:`BDContentLibraryCardBasic`,props:{item:{type:Object,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.normalizeProps)((0,t.guardReactiveProps)(e.item)),null,16))}}),rK={class:`content-library-card-image__titles`},iK=[`textContent`],aK=[`textContent`],oK=[`src`],sK=(0,t.defineComponent)({__name:`BDContentLibraryCardImage`,props:{item:{type:Object,required:!0}},setup(e){let n=e,r=(0,t.computed)(()=>{let{itemId:e,uri:t,title:r,provider:i}=n.item;return{itemId:e,uri:t,title:r,provider:i}});return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(r.value,{"card-class":`content-library-card-image`,"show-body":!1}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,rK,[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,iK),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.subtitle)},null,8,aK)]),(0,t.createElementVNode)(`img`,{src:e.item.imageUri,class:`content-library-card-image__figure`},null,8,oK)]),_:1},16))}}),cK=(0,t.defineComponent)({__name:`BDContentLibraryCardTitle`,props:{item:{type:Object,required:!0}},setup(e){let n=e,r=(0,t.computed)(()=>{let{itemId:e,title:t,subtitle:r,uri:i,provider:a}=n.item;return{itemId:e,title:t,subtitle:r,uri:i,provider:a}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(r.value,{"show-body":!1,"card-class":`content-library-card-title`}),null,16))}}),lK=e=>e.replace(/<\/?[^>]+(>|$)/g,``),uK=e=>e.replace(/<li>/g,` `).replace(/<(br|\/p)>/g,` \r`),dK=e=>e.replace(/(?:\r\n|\r|\n)/g,`<br>`),fK={class:`heading`},pK={class:`title`},mK=[`textContent`],hK=[`textContent`],gK={key:0,class:`edit-btn-group`},_K=[`innerHTML`],vK={key:0,class:`attachment-occurence`},yK={class:`number-icon`},bK=(0,t.defineComponent)({__name:`BDContentLibraryCardMessageTemplate`,props:{item:{type:Object,required:!0},variant:{type:String,default:`insert`,validator(e){return[`insert`,`edit`,`shared`].includes(e)}},apiUrl:{type:String,default:``}},emits:[`on-insert`,`show-attachment`,`on-change`,`delete`],setup(e,{emit:n}){let{t:r}=bu(),i=e,a=n,o=(0,t.ref)(null),s=(0,t.ref)(!0),c=(0,t.ref)(!1),l=(0,t.computed)(()=>`collapse-preview-${i.item.itemId}`),u=(0,t.computed)(()=>sg(i.item.files)?null:i.item.files.length),d=(0,t.computed)(()=>i.variant===`insert`),f=(0,t.computed)(()=>i.variant===`edit`),p=(0,t.computed)(()=>i.variant===`shared`),m=(0,t.computed)(()=>i.item.text?dK(i.item.text):``),h=(0,t.computed)(()=>KP(i.apiUrl,i.item.files,!1)),g=(0,t.computed)(()=>KP(i.apiUrl,i.item.files,!0)),_=(0,t.computed)(()=>s.value?r(`contentLibraryCardMessageTemplate.collapseClosed`):r(`contentLibraryCardMessageTemplate.collapseOpen`)),y=()=>{o.value&&(c.value=!s.value||o.value.scrollHeight>75||i.item.files&&i.item.files.length>0)},b=()=>{a(`on-insert`,i.item.itemId)},x=e=>{a(`show-attachment`,e)},S=()=>{a(`on-change`,i.item.itemId)},C=()=>{a(`delete`,i.item.itemId)},w=()=>{s.value=!s.value};return(0,t.watch)(()=>i.item,()=>{o.value&&(0,t.nextTick)().then(()=>{y()})},{immediate:!0,deep:!0}),(0,t.onMounted)(()=>{(0,t.nextTick)(()=>{y()})}),(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(e.item,{"item-id":e.item.itemId,id:l.value,"card-class":`content-library-card-message-template ${s.value?`collapsed`:``}`,onOnInsert:b}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,fK,[(0,t.createElementVNode)(`div`,pK,[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,mK),(0,t.createVNode)(Eh,{variant:`gray`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.item.category),1)]),_:1})]),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.practitionerName)},null,8,hK)]),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gK,[(0,t.createVNode)(v,{title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.edit`),variant:`icon`,onClick:S},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(qt)]),_:1},8,[`title`]),(0,t.createVNode)(v,{title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.delete`),variant:`icon`,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ft)]),_:1},8,[`title`])])):(0,t.createCommentVNode)(``,!0)]),footer:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[c.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`collapse-button`,variant:`link`,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(_.value),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,null,[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vK,[(0,t.createVNode)(le),(0,t.createElementVNode)(`div`,yK,(0,t.toDisplayString)(u.value),1)])):(0,t.createCommentVNode)(``,!0)]),p.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`icon`,title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(er)]),_:1},8,[`title`])),[[(0,t.unref)(TU)]]):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:1,class:`btn-insert`,variant:`secondary`,onClick:b},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryCardMessageTemplate.insert`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`content-library-card-message-template__body`,ref_key:`content`,ref:o},[(0,t.createElementVNode)(`div`,{class:`message-text`,innerHTML:m.value},null,8,_K),e.item.files?((0,t.openBlock)(),(0,t.createBlock)(AP,{key:0,"no-download":!0,files:h.value,"show-delete":!1},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),e.item.files?((0,t.openBlock)(),(0,t.createBlock)(zP,{key:1,"no-download":!0,files:g.value,"fast-download":!1,"show-delete":!1,onShow:x},null,8,[`files`])):(0,t.createCommentVNode)(``,!0)],512)]),_:1},16,[`item-id`,`id`,`card-class`]))}}),xK={class:`content-library-overview`},SK=y({__name:`BDContentLibraryOverview`,props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:[`on-insert`,`on-change`,`delete`,`show-attachment`],setup(e,{emit:n}){let{t:r}=bu(),i={BDContentLibraryCardBasic:nK,BDContentLibraryCardImage:sK,BDContentLibraryCardTitle:cK,BDContentLibraryCardMessageTemplate:bK},a=e,o=n,s=(0,t.computed)(()=>sg(a.items)),c=(0,t.computed)(()=>Math.floor(12/a.cols)),l=e=>{o(`on-insert`,e)},u=e=>{o(`on-change`,e)},d=e=>{o(`delete`,e)},f=e=>{o(`show-attachment`,e)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xK,[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,sm:12},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{show:``},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryOverview.noResults`)),1)]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createBlock)(p,{class:`card-container`,key:e.itemId,sm:12,md:6,lg:c.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i[e.componentToRender]||i.BDContentLibraryCardBasic),(0,t.mergeProps)({ref_for:!0},e,{item:e,onOnInsert:l,onOnChange:u,onDelete:d,onShowAttachment:f}),null,16,[`item`]))]),_:2},1032,[`lg`]))),128))]),_:1})]))}},[[`__scopeId`,`data-v-1101b264`]]),CK={name:`TimesCircleIcon`,extends:np};function wK(e){return OK(e)||DK(e)||EK(e)||TK()}function TK(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1822
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1821
|
+
https://vue-select.org/api/props.html#getoptionkey`,e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(e,t,n){return(t||``).toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(e,t){return e.filter(e=>{let n=this.getOptionLabel(e);return typeof n==`number`&&(n=n.toString()),this.filterBy(e,n,t)})}},createOption:{type:Function,default(e){return typeof this.optionList[0]==`object`?{[this.label]:e}:e}},resetOnOptionsChange:{default:!1,validator:e=>[`function`,`boolean`].includes(typeof e)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:e,multiple:t}){return e&&!t}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:`auto`},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:`[type=search]`},mapKeydown:{type:Function,default:(e,t)=>e},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(e,t,{width:n,top:r,left:i}){e.style.top=r,e.style.left=i,e.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:e,open:t,mutableLoading:n}){return e?!1:t&&!n}},uid:{type:[String,Number],default:()=>PG()}},data(){return{search:``,open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return this.modelValue===void 0||this.isReducingValues},selectedValue(){let e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==``?[].concat(e):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){let e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:hG({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":`list`,"aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:`search`,type:`search`,autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:`openIndicator`,role:`presentation`,class:`vs__open-indicator`}},listHeader:e,listFooter:e,header:gG(hG({},e),{deselect:this.deselect}),footer:gG(hG({},e),{deselect:this.deselect})}},childComponents(){return hG(hG({},AG),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){let e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;let t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){let e=this.createOption(this.search);this.optionExists(e)||t.unshift(e)}return t},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(e,t){!this.taggable&&(typeof this.resetOnOptionsChange==`function`?this.resetOnOptionsChange(e,t,this.selectedValue):this.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple(){this.clearSelection()},open(e){this.$emit(e?`open`:`close`)}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(e){Array.isArray(e)?this.$data._value=e.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(e)},select(e){this.$emit(`option:selecting`,e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit(`option:created`,e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit(`option:selected`,e)),this.onAfterSelect(e)},deselect(e){this.$emit(`option:deselecting`,e),this.updateValue(this.selectedValue.filter(t=>!this.optionComparator(t,e))),this.$emit(`option:deselected`,e)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search=``)},updateValue(e){this.modelValue===void 0&&(this.$data._value=e),e!==null&&(e=Array.isArray(e)?e.map(e=>this.reduce(e)):this.reduce(e)),this.$emit(`update:modelValue`,e)},toggleDropdown(e){let t=e.target!==this.searchEl;t&&e.preventDefault();let n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(t=>t.contains(e.target)||t===e.target)){e.preventDefault();return}this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(e){return this.selectedValue.some(t=>this.optionComparator(t,e))},isOptionDeselectable(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue(e){let t=t=>JSON.stringify(this.reduce(t))===JSON.stringify(e),n=[...this.options,...this.pushedTags].filter(t);return n.length===1?n[0]:n.find(e=>this.optionComparator(e,this.$data._value))||e},closeSearchOptions(){this.open=!1,this.$emit(`search:blur`)},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let e=null;this.multiple&&(e=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(e)}},optionExists(e){return this.optionList.some(t=>this.optionComparator(t,e))},normalizeOptionForSlot(e){return typeof e==`object`?e:{[this.label]:e}},pushTag(e){this.pushedTags.push(e)},onEscape(){this.search.length?this.search=``:this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{let{clearSearchOnSelect:e,multiple:t}=this;this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=``),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit(`search:focus`)},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(e){let t=e=>(e.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:e=>this.maybeDeleteValue(),9:e=>this.onTab(),27:e=>this.onEscape(),38:e=>(e.preventDefault(),this.typeAheadUp()),40:e=>(e.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(e=>n[e]=t);let r=this.mapKeydown(n,this);if(typeof r[e.keyCode]==`function`)return r[e.keyCode](e)}}},IG=[`dir`],LG=[`id`,`aria-expanded`,`aria-owns`],RG={ref:`selectedOptions`,class:`vs__selected-options`},zG=[`disabled`,`title`,`aria-label`,`onClick`],BG={ref:`actions`,class:`vs__actions`},VG=[`disabled`],HG={class:`vs__spinner`},UG=[`id`],WG=[`id`,`aria-selected`,`onMouseover`,`onClick`],GG={key:0,class:`vs__no-options`},KG=(0,t.createTextVNode)(` Sorry, no matching options. `),qG=[`id`];function JG(e,n,r,i,a,o){let s=(0,t.resolveDirective)(`append-to-body`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,{dir:r.dir,class:(0,t.normalizeClass)([`v-select`,o.stateClasses])},[(0,t.renderSlot)(e.$slots,`header`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.header))),(0,t.createElementVNode)(`div`,{id:`vs${r.uid}__combobox`,ref:`toggle`,class:`vs__dropdown-toggle`,role:`combobox`,"aria-expanded":o.dropdownOpen.toString(),"aria-owns":`vs${r.uid}__listbox`,"aria-label":`Search for option`,onMousedown:n[1]||=e=>o.toggleDropdown(e)},[(0,t.createElementVNode)(`div`,RG,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.selectedValue,(n,i)=>(0,t.renderSlot)(e.$slots,`selected-option-container`,{option:o.normalizeOptionForSlot(n),deselect:o.deselect,multiple:r.multiple,disabled:r.disabled},()=>[((0,t.openBlock)(),(0,t.createElementBlock)(`span`,{key:r.getOptionKey(n),class:`vs__selected`},[(0,t.renderSlot)(e.$slots,`selected-option`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.normalizeOptionForSlot(n))),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.getOptionLabel(n)),1)]),r.multiple?((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,ref_for:!0,ref:e=>a.deselectButtons[i]=e,disabled:r.disabled,type:`button`,class:`vs__deselect`,title:`Deselect ${r.getOptionLabel(n)}`,"aria-label":`Deselect ${r.getOptionLabel(n)}`,onClick:e=>o.deselect(n)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.Deselect)))],8,zG)):(0,t.createCommentVNode)(``,!0)]))])),256)),(0,t.renderSlot)(e.$slots,`search`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.search)),()=>[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({class:`vs__search`},o.scope.search.attributes,(0,t.toHandlers)(o.scope.search.events)),null,16)])],512),(0,t.createElementVNode)(`div`,BG,[(0,t.withDirectives)((0,t.createElementVNode)(`button`,{ref:`clearButton`,disabled:r.disabled,type:`button`,class:`vs__clear`,title:`Clear Selected`,"aria-label":`Clear Selected`,onClick:n[0]||=(...e)=>o.clearSelection&&o.clearSelection(...e)},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.Deselect)))],8,VG),[[t.vShow,o.showClearButton]]),(0,t.renderSlot)(e.$slots,`open-indicator`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.openIndicator)),()=>[r.noDrop?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(o.childComponents.OpenIndicator),(0,t.normalizeProps)((0,t.mergeProps)({key:0},o.scope.openIndicator.attributes)),null,16))]),(0,t.renderSlot)(e.$slots,`spinner`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.spinner)),()=>[(0,t.withDirectives)((0,t.createElementVNode)(`div`,HG,`Loading...`,512),[[t.vShow,e.mutableLoading]])])],512)],40,LG),(0,t.createVNode)(t.Transition,{name:r.transition},{default:(0,t.withCtx)(()=>[o.dropdownOpen?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{id:`vs${r.uid}__listbox`,ref:`dropdownMenu`,key:`vs${r.uid}__listbox`,class:`vs__dropdown-menu`,role:`listbox`,tabindex:`-1`,onMousedown:n[2]||=(0,t.withModifiers)((...e)=>o.onMousedown&&o.onMousedown(...e),[`prevent`]),onMouseup:n[3]||=(...e)=>o.onMouseUp&&o.onMouseUp(...e)},[(0,t.renderSlot)(e.$slots,`list-header`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listHeader))),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.filteredOptions,(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{id:`vs${r.uid}__option-${i}`,key:r.getOptionKey(n),role:`option`,class:(0,t.normalizeClass)([`vs__dropdown-option`,{"vs__dropdown-option--deselect":o.isOptionDeselectable(n)&&i===e.typeAheadPointer,"vs__dropdown-option--selected":o.isOptionSelected(n),"vs__dropdown-option--highlight":i===e.typeAheadPointer,"vs__dropdown-option--disabled":!r.selectable(n)}]),"aria-selected":i===e.typeAheadPointer?!0:null,onMouseover:t=>r.selectable(n)?e.typeAheadPointer=i:null,onClick:(0,t.withModifiers)(e=>r.selectable(n)?o.select(n):null,[`prevent`,`stop`])},[(0,t.renderSlot)(e.$slots,`option`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.normalizeOptionForSlot(n))),()=>[(0,t.createTextVNode)((0,t.toDisplayString)(r.getOptionLabel(n)),1)])],42,WG))),128)),o.filteredOptions.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,GG,[(0,t.renderSlot)(e.$slots,`no-options`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.noOptions)),()=>[KG])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`list-footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listFooter)))],40,UG)),[[s]]):((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:1,id:`vs${r.uid}__listbox`,role:`listbox`,style:{display:`none`,visibility:`hidden`}},null,8,qG))]),_:3},8,[`name`]),(0,t.renderSlot)(e.$slots,`footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.footer)))],10,IG)}var YG=bG(FG,[[`render`,JG]]),XG=e=>typeof e==`number`,ZG=[`textContent`],QG=[`textContent`],$G={key:0,class:`content-library-card__body`},eK=[`textContent`],tK=(0,t.defineComponent)({__name:`BDContentLibraryCard`,props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:[`on-insert`],setup(e,{emit:n}){let{t:r}=bu(),i=e,a=n,o=(0,t.computed)(()=>`Open ${i.provider} in nieuw venster`),s=()=>{a(`on-insert`,i.itemId)},c=()=>{window.open(i.uri,`_blank`,`noopener,noreferrer`)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`article`,{class:(0,t.normalizeClass)([`content-library-card`,i.cardClass])},[(0,t.createElementVNode)(`header`,null,[(0,t.renderSlot)(e.$slots,`header`,{},()=>[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(i.title)},null,8,ZG),i.subtitle?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,{key:0,textContent:(0,t.toDisplayString)(i.subtitle)},null,8,QG)):(0,t.createCommentVNode)(``,!0)])]),i.showBody?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$G,[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(i.description),class:`content-library-card__description`},null,8,eK)])])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`footer`,null,[i.showFooter?(0,t.renderSlot)(e.$slots,`footer`,{key:0},()=>[(0,t.createVNode)(v,{variant:`secondary`,onClick:s},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryCard.insert`)),1)]),_:1}),(0,t.createVNode)(v,{title:o.value,variant:`icon`,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(on)]),_:1},8,[`title`])]):(0,t.createCommentVNode)(``,!0)])],2))}}),nK=(0,t.defineComponent)({__name:`BDContentLibraryCardBasic`,props:{item:{type:Object,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.normalizeProps)((0,t.guardReactiveProps)(e.item)),null,16))}}),rK={class:`content-library-card-image__titles`},iK=[`textContent`],aK=[`textContent`],oK=[`src`],sK=(0,t.defineComponent)({__name:`BDContentLibraryCardImage`,props:{item:{type:Object,required:!0}},setup(e){let n=e,r=(0,t.computed)(()=>{let{itemId:e,uri:t,title:r,provider:i}=n.item;return{itemId:e,uri:t,title:r,provider:i}});return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(r.value,{"card-class":`content-library-card-image`,"show-body":!1}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,rK,[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,iK),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.subtitle)},null,8,aK)]),(0,t.createElementVNode)(`img`,{src:e.item.imageUri,class:`content-library-card-image__figure`},null,8,oK)]),_:1},16))}}),cK=(0,t.defineComponent)({__name:`BDContentLibraryCardTitle`,props:{item:{type:Object,required:!0}},setup(e){let n=e,r=(0,t.computed)(()=>{let{itemId:e,title:t,subtitle:r,uri:i,provider:a}=n.item;return{itemId:e,title:t,subtitle:r,uri:i,provider:a}});return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(r.value,{"show-body":!1,"card-class":`content-library-card-title`}),null,16))}}),lK=e=>e.replace(/<\/?[^>]+(>|$)/g,``),uK=e=>e.replace(/<li>/g,` `).replace(/<(br|\/p)>/g,` \r`),dK=e=>e.replace(/(?:\r\n|\r|\n)/g,`<br>`),fK={class:`top`},pK={key:0,class:`edit-btn-group`},mK=[`textContent`],hK=[`textContent`],gK=[`innerHTML`],_K={key:0,class:`attachment-occurence`},vK={class:`number-icon`},yK=(0,t.defineComponent)({__name:`BDContentLibraryCardMessageTemplate`,props:{item:{type:Object,required:!0},variant:{type:String,default:`insert`,validator(e){return[`insert`,`edit`,`shared`].includes(e)}},apiUrl:{type:String,default:``}},emits:[`on-insert`,`show-attachment`,`on-change`,`delete`],setup(e,{emit:n}){let{t:r}=bu(),i=e,a=n,o=(0,t.ref)(null),s=(0,t.ref)(!0),c=(0,t.ref)(!1),l=(0,t.computed)(()=>`collapse-preview-${i.item.itemId}`),u=(0,t.computed)(()=>sg(i.item.files)?null:i.item.files.length),d=(0,t.computed)(()=>i.variant===`insert`),f=(0,t.computed)(()=>i.variant===`edit`),p=(0,t.computed)(()=>i.variant===`shared`),m=(0,t.computed)(()=>i.item.text?dK(i.item.text):``),h=(0,t.computed)(()=>KP(i.apiUrl,i.item.files,!1)),g=(0,t.computed)(()=>KP(i.apiUrl,i.item.files,!0)),_=(0,t.computed)(()=>s.value?r(`contentLibraryCardMessageTemplate.collapseClosed`):r(`contentLibraryCardMessageTemplate.collapseOpen`)),y=()=>{o.value&&(c.value=!s.value||o.value.scrollHeight>75||i.item.files&&i.item.files.length>0)},b=()=>{a(`on-insert`,i.item.itemId)},x=e=>{a(`show-attachment`,e)},S=()=>{a(`on-change`,i.item.itemId)},C=()=>{a(`delete`,i.item.itemId)},w=()=>{s.value=!s.value};return(0,t.watch)(()=>i.item,()=>{o.value&&(0,t.nextTick)().then(()=>{y()})},{immediate:!0,deep:!0}),(0,t.onMounted)(()=>{(0,t.nextTick)(()=>{y()})}),(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(tK,(0,t.mergeProps)(e.item,{"item-id":e.item.itemId,id:l.value,"card-class":`content-library-card-message-template ${s.value?`collapsed`:``}`,onOnInsert:b}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,fK,[(0,t.createVNode)(Eh,{variant:`gray`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.item.category),1)]),_:1}),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pK,[(0,t.createVNode)(v,{title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.edit`),variant:`icon`,onClick:S},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(qt)]),_:1},8,[`title`]),(0,t.createVNode)(v,{title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.delete`),variant:`icon`,onClick:C},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ft)]),_:1},8,[`title`])])):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,mK),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.practitionerName)},null,8,hK)]),footer:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,null,[c.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`collapse-button`,variant:`link`,onClick:w},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(_.value),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,null,[u.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_K,[(0,t.createVNode)(le),(0,t.createElementVNode)(`div`,vK,(0,t.toDisplayString)(u.value),1)])):(0,t.createCommentVNode)(``,!0)]),p.value?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`icon`,title:(0,t.unref)(r)(`contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(er)]),_:1},8,[`title`])),[[(0,t.unref)(TU)]]):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:1,class:`btn-insert`,variant:`secondary`,onClick:b},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryCardMessageTemplate.insert`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`content-library-card-message-template__body`,ref_key:`content`,ref:o},[(0,t.createElementVNode)(`div`,{class:`message-text`,innerHTML:m.value},null,8,gK),e.item.files?((0,t.openBlock)(),(0,t.createBlock)(AP,{key:0,"no-download":!0,files:h.value,"show-delete":!1},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),e.item.files?((0,t.openBlock)(),(0,t.createBlock)(zP,{key:1,"no-download":!0,files:g.value,"fast-download":!1,"show-delete":!1,onShow:x},null,8,[`files`])):(0,t.createCommentVNode)(``,!0)],512)]),_:1},16,[`item-id`,`id`,`card-class`]))}}),bK={class:`content-library-overview`},xK=y({__name:`BDContentLibraryOverview`,props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:[`on-insert`,`on-change`,`delete`,`show-attachment`],setup(e,{emit:n}){let{t:r}=bu(),i={BDContentLibraryCardBasic:nK,BDContentLibraryCardImage:sK,BDContentLibraryCardTitle:cK,BDContentLibraryCardMessageTemplate:yK},a=e,o=n,s=(0,t.computed)(()=>sg(a.items)),c=(0,t.computed)(()=>Math.floor(12/a.cols)),l=e=>{o(`on-insert`,e)},u=e=>{o(`on-change`,e)},d=e=>{o(`delete`,e)},f=e=>{o(`show-attachment`,e)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bK,[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[s.value?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,sm:12},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{show:``},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryOverview.noResults`)),1)]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>((0,t.openBlock)(),(0,t.createBlock)(p,{class:`card-container`,key:e.itemId,sm:12,md:6,lg:c.value},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(i[e.componentToRender]||i.BDContentLibraryCardBasic),(0,t.mergeProps)({ref_for:!0},e,{item:e,onOnInsert:l,onOnChange:u,onDelete:d,onShowAttachment:f}),null,16,[`item`]))]),_:2},1032,[`lg`]))),128))]),_:1})]))}},[[`__scopeId`,`data-v-1101b264`]]),SK={name:`TimesCircleIcon`,extends:np};function CK(e){return DK(e)||EK(e)||TK(e)||wK()}function wK(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1822
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TK(e,t){if(e){if(typeof e==`string`)return OK(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OK(e,t):void 0}}function EK(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function DK(e){if(Array.isArray(e))return OK(e)}function OK(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kK(e,n,r,i,a,o){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,(0,t.mergeProps)({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),CK(n[0]||=[(0,t.createElementVNode)(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z`,fill:`currentColor`},null,-1)]),16)}SK.render=kK;var AK=I.extend({name:`chip`,style:`
|
|
1823
1823
|
.p-chip {
|
|
1824
1824
|
display: inline-flex;
|
|
1825
1825
|
align-items: center;
|
|
@@ -1872,6 +1872,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1872
1872
|
outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
|
|
1873
1873
|
outline-offset: dt('chip.remove.icon.focus.ring.offset');
|
|
1874
1874
|
}
|
|
1875
|
-
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),MK={name:`Chip`,extends:{name:`BaseChip`,extends:Jf,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:jK,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 Uu({removable:this.removable})}},components:{TimesCircleIcon:CK}},NK=[`aria-label`,`data-p`],PK=[`src`];function FK(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,PK)):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,NK)):(0,t.createCommentVNode)(``,!0)}MK.render=FK;var IK={key:0,class:`bd-active-filters`},LK={class:`options`},RK=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=bu(),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`,IK,[(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`,LK,[((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)(MK),{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)}}),zK=[`id`],BK={class:`collapse-button-container`},VK={class:`collapsed-show`},HK={class:`collapsed-hide`},UK=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=bu(),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)(RK,{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)(Ch,{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)(Vh,{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)(Vh,{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,zK),(0,t.createElementVNode)(`div`,BK,[(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`,VK,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(ae,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,HK,(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}))}}),WK={class:`content-library-template`},GK={class:`number-of-messages`},KK=[`src`],qK=[`src`],JK=(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}=bu(),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)(()=>og(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&og(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&og(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&XG(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:12,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?6: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`,WK,[(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`,GK,(0,t.toDisplayString)(d.value),1),e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`d-md-none`,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.createVNode)(p,(0,t.mergeProps)(x.value,{class:`content-library-header`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(S.value,{class:`search-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bh,{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 d-none d-md-block`}),{default:(0,t.withCtx)(()=>[e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,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)(YG),{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,KK)):(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,qK)):(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)(UK,{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)(SK,{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)(Ph,{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})]))}}),YK={__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}=JW(`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)(qW,{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)(JK,{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`]))}},XK=Object.defineProperty,ZK=(e,t,n)=>t in e?XK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QK=(e,t,n)=>(ZK(e,typeof t==`symbol`?t:t+``,n),n),$K=class{constructor(){QK(this,`seed`,0),QK(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)}},eq=`Failed to copy value to clipboard. Unknown type.`,tq={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(eq,e),``}return e}},nq=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,rq={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=nq,t}},iq={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await iq.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=rq.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=tq.asString(t);if(iq.writeClipboardExecCommand(n))return!0;await iq.writeClipboard(n)}};new $K;var{showSuccessToast:aq}=YW(),oq=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${lK(uK(e.Tekst))}`;iq.copy(r).then(()=>aq(n))},sq=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${lK(uK(e.Tekst))}`).join(`
|
|
1875
|
+
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),jK={name:`Chip`,extends:{name:`BaseChip`,extends:Jf,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:AK,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 Uu({removable:this.removable})}},components:{TimesCircleIcon:SK}},MK=[`aria-label`,`data-p`],NK=[`src`];function PK(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,NK)):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,MK)):(0,t.createCommentVNode)(``,!0)}jK.render=PK;var FK={key:0,class:`bd-active-filters`},IK={class:`options`},LK=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=bu(),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`,FK,[(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`,IK,[((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)(jK),{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)}}),RK=[`id`],zK={class:`collapse-button-container`},BK={class:`collapsed-show`},VK={class:`collapsed-hide`},HK=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=bu(),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)(LK,{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)(Ch,{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)(Vh,{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)(Vh,{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,RK),(0,t.createElementVNode)(`div`,zK,[(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`,BK,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(ae,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,VK,(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}))}}),UK={class:`content-library-template`},WK={class:`number-of-messages`},GK=[`src`],KK=[`src`],qK=(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}=bu(),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)(()=>og(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&og(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&og(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&XG(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`,UK,[(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`,WK,(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)(bh,{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)(YG),{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,GK)):(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,KK)):(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)(HK,{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)(xK,{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)(Ph,{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})]))}}),JK={__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}=JW(`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)(qW,{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)(qK,{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`]))}},YK=Object.defineProperty,XK=(e,t,n)=>t in e?YK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ZK=(e,t,n)=>(XK(e,typeof t==`symbol`?t:t+``,n),n),QK=class{constructor(){ZK(this,`seed`,0),ZK(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)}},$K=`Failed to copy value to clipboard. Unknown type.`,eq={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($K,e),``}return e}},tq=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,nq={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=tq,t}},rq={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await rq.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=nq.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=eq.asString(t);if(rq.writeClipboardExecCommand(n))return!0;await rq.writeClipboard(n)}};new QK;var{showSuccessToast:iq}=YW(),aq=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${lK(uK(e.Tekst))}`;rq.copy(r).then(()=>iq(n))},oq=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${lK(uK(e.Tekst))}`).join(`
|
|
1876
1876
|
-----------------------
|
|
1877
|
-
`)}`;iq.copy(r).then(()=>aq(n))},cq=(e,t)=>{iq.copy(e).then(()=>aq(t))},lq={class:`message-cloud-multi-select`},uq={class:`message-cloud-multi-select__body`},dq={class:`message-content`},fq={class:`message-cloud__header`},pq={class:`message-cloud__title`},mq={key:0},hq=[`innerHTML`],gq=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=bu(),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 sq(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{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`,lq,[(0,t.createVNode)(Vh,{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`,uq,[((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)(Vh,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,dq,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,fq,[(0,t.createElementVNode)(`div`,pq,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,mq,[(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,hq)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),_q=[`id`,`value`,`disabled`],vq=[`for`],yq={class:`invalid-feedback`},bq={__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}=bu(),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,_q),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,vq)]))),128))],2),(0,t.createElementVNode)(`div`,yq,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},xq={key:0,class:`pills-list__wrapper`},Sq={class:`pills-list__ul`},Cq={__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:()=>[]},isOperator:{type:Boolean,default:!1}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`],setup(e,{emit:n}){let{showModal:r}=JW(`attachment-upload-modal`),i=e,a=n,{t:o}=bu(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``),u=(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``),d=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]),f=(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);function p(e){E({...i.modelValue,ownerId:e?.value??null})}let m=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function h(e){E({...i.modelValue,sharedWithDepartment:e})}(0,t.watch)(()=>i.practitionerOptions,(e=[])=>{if(e.length){if(e.length===1){p(e[0]);return}!e.some(e=>e.value===i.modelValue.ownerId)&&i.modelValue.ownerId!=null&&p(null)}},{immediate:!0}),(0,t.computed)(()=>{if(i.modelValue.tag)return d.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let g=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&w()});function _(e){e&&!d.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function v(e){a(`show-attachment`,e)}function y(e){a(`action`,{action:`content-library`,provider:e})}function b(e){x(i.files,e),x(i.modelValue.files,e)}function x(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 S(e){e.name===`delete-attachment`?b(e):e.name===`image-attachment`&&v(e)}function C(){r()}function w(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function T(e){E({...i.modelValue,category:e})}function E(e){a(`update:modelValue`,e),a(`on-input`,e)}function D(){a(`change-department`,i.modelValue)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Dh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bh,{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)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(AU,{modelValue:e.modelValue.text,"onUpdate:modelValue":r[1]||=t=>e.modelValue.text=t,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:g.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:C,onAction:S},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,xq,[(0,t.createElementVNode)(`ul`,Sq,[((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)(rg,(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)(Qm,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:y},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[2]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bq,{modelValue:m.value,"onUpdate:modelValue":h,options:e.departmentOptions,onChangeDepartment:D,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),e.isOperator?((0,t.openBlock)(),(0,t.createBlock)(Ch,{key:0,label:(0,t.unref)(o)(`messageTemplateFormModal.owner`),"label-for":`input-select-owner`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(YG),{modelValue:f.value,"onUpdate:modelValue":p,options:e.practitionerOptions,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.ownerPlaceholder`)},null,8,[`modelValue`,`options`,`placeholder`]),(0,t.createVNode)(eh,{class:(0,t.normalizeClass)(u.value),state:e.validation.ownerId.state,text:e.validation.ownerId.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(YG),{modelValue:e.modelValue.category,"onUpdate:modelValue":T,options:d.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:_},null,8,[`modelValue`,`options`,`placeholder`]),(0,t.createVNode)(eh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:1}))}},wq={__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:()=>[]},isOperator:{type:Boolean,default:!1}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bu(),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)(qW,{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)(Cq,{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,"is-operator":r.isOperator,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h},null,8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`,`is-operator`])]),_:1},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function Tq(){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 Eq=[`src`,`alt`],Dq={key:0,class:`show-spinner`},Oq={class:`spinner-border text-primary`,role:`status`},kq=[`textContent`],Aq=[`href`],jq=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=JW(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=Tq(),{t:u}=bu(),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)(qW,{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,Eq)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Dq,[(0,t.createElementVNode)(`div`,Oq,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,kq)])])):(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,Aq)]),_:1},8,[`class`,`title`]))}}),Mq={key:0},Nq={key:1},Pq={key:2},Fq={key:3},Iq={key:1},Lq={key:2},Rq=[`href`],zq=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=bu(),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)(qW,{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`,Mq,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Nq,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Pq,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Fq,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Iq,[(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`,Lq,(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,Rq),(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`]))}}),Bq=()=>({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}}),Vq={class:`template change-password-template`},Hq={class:`template-title`},Uq={key:0},Wq={key:1},Gq={class:`bd-form-field`},Kq={class:`bd-form-field`},qq={class:`bd-form-field`},Jq={class:`bd-form-buttons`},Yq=(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}=bu(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=YW(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=ZW(null),{ValidationObjectIsValid:u}=Bq(),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`,Vq,[(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`,Hq,(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`,Uq,[(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`,Wq,(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`,Gq,[(0,t.createVNode)(bh,{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`,Kq,[(0,t.createVNode)(bh,{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`,qq,[(0,t.createVNode)(bh,{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`,Jq,[(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})]))}}),Xq={class:`template not-found-template`},Zq={class:`center-screen`},Qq={class:`container-warning`},$q=[`textContent`],eJ=[`textContent`],tJ=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=bu(),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`,Xq,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Zq,[(0,t.createElementVNode)(`div`,Qq,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,$q),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,eJ),(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=Wh,e.BDAssignConversationModal=oG,e.BDAttachmentPreviewList=AP,e.BDAttachmentUploadModal=sG,e.BDBadge=Eh,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=Yq,e.BDChatCloud=XU,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=aG,e.BDContainer=m,e.BDContentLibraryModal=YK,e.BDContentLibrarySplitButton=Qm,e.BDContentLibraryTemplate=JK,e.BDConversationToTextModal=gq,e.BDDate=Dg,e.BDDropdown=_W,e.BDDropdownItem=Og,e.BDFileUpload=Y_,e.BDForm=Dh,e.BDFormCheckbox=Vh,e.BDFormInput=bh,e.BDFormInvalidFeedback=eh,e.BDFormSelect=zh,e.BDHeader=wW,e.BDImageAttachmentModal=jq,e.BDImageAttachmentPreviewList=zP,e.BDInputGroup=Ch,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=AU,e.BDMessageTemplateFormModal=wq,e.BDMobileMenu=LU,e.BDModal=qW,e.BDNotFoundTemplate=tJ,e.BDPagination=Ph,e.BDPhoneNumberEditModal=nG,e.BDPill=rg,e.BDPractitionerHeader=RW,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=iG,e.BDTable=aW,e.BDToast=Yh,e.BDUser=HU,e.BDUserInformation=cg,e.BDVideoCallConfirmationModal=zq,e.BDVideoCallToast=gW,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=oq,e.CopyChatMessagesToClipboard=sq,e.CopyHl7MessagesToClipboard=cq,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=UP,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=BP,e.MapToAttachmentObjects=KP,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`,Wh),e.component(`BDAssignConversationModal`,oG),e.component(`BDAttachmentPreviewList`,AP),e.component(`BDAttachmentUploadModal`,sG),e.component(`BDBadge`,Eh),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,Yq),e.component(`BDChatCloud`,XU),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,aG),e.component(`BDContentLibraryModal`,YK),e.component(`BDConversationToTextModal`,gq),e.component(`BDContentLibrarySplitButton`,Qm),e.component(`BDContentLibraryTemplate`,JK),e.component(`BDContainer`,m),e.component(`BDDropdown`,_W),e.component(`BDDropdownItem`,Og),e.component(`BDFileUpload`,Y_),e.component(`BDForm`,Dh),e.component(`BDFormCheckbox`,Vh),e.component(`BDFormInput`,bh),e.component(`BDFormInvalidFeedback`,eh),e.component(`BDFormSelect`,zh),e.component(`BDHeader`,wW),e.component(`BDImageAttachmentModal`,jq),e.component(`BDImageAttachmentPreviewList`,zP),e.component(`BDInputGroup`,Ch),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,AU),e.component(`BDMessageTemplateFormModal`,wq),e.component(`BDMobileMenu`,LU),e.component(`BDModal`,qW),e.component(`BDNotFoundTemplate`,tJ),e.component(`BDPagination`,Ph),e.component(`BDPhoneNumberEditModal`,nG),e.component(`BDPill`,rg),e.component(`BDPractitionerHeader`,RW),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,iG),e.component(`BDTable`,aW),e.component(`BDToast`,Yh),e.component(`BDUser`,HU),e.component(`BDUserInformation`,cg),e.component(`BDVideoCallConfirmationModal`,zq),e.component(`BDVideoCallToast`,gW),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,Dg),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`,TU)}},e.getDisplayDateNumeric=Tg,e.getDisplayDateTextual=Sg,e.getDisplayDateTimeNumeric=wg,e.getDisplayDateTimeTextual=Cg,e.useModal=JW,e.usePopover=kW,e.useServerErrors=ZW,e.useSessionTimeOut=rG,e.useToaster=YW,e.useValidation=Bq,e.useWindow=DW,e.useZoom=Tq,e.vBdTooltip=TU});
|
|
1877
|
+
`)}`;rq.copy(r).then(()=>iq(n))},sq=(e,t)=>{rq.copy(e).then(()=>iq(t))},cq={class:`message-cloud-multi-select`},lq={class:`message-cloud-multi-select__body`},uq={class:`message-content`},dq={class:`message-cloud__header`},fq={class:`message-cloud__title`},pq={key:0},mq=[`innerHTML`],hq=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=bu(),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 oq(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(qW,{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`,cq,[(0,t.createVNode)(Vh,{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`,lq,[((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)(Vh,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,uq,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,dq,[(0,t.createElementVNode)(`div`,fq,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,pq,[(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,mq)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),gq=[`id`,`value`,`disabled`],_q=[`for`],vq={class:`invalid-feedback`},yq={__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}=bu(),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,gq),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,_q)]))),128))],2),(0,t.createElementVNode)(`div`,vq,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},bq={key:0,class:`pills-list__wrapper`},xq={class:`pills-list__ul`},Sq={__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:()=>[]},isOperator:{type:Boolean,default:!1}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`],setup(e,{emit:n}){let{showModal:r}=JW(`attachment-upload-modal`),i=e,a=n,{t:o}=bu(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``),u=(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``),d=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]),f=(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);function p(e){E({...i.modelValue,ownerId:e?.value??null})}let m=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function h(e){E({...i.modelValue,sharedWithDepartment:e})}(0,t.watch)(()=>i.practitionerOptions,(e=[])=>{if(e.length){if(e.length===1){p(e[0]);return}!e.some(e=>e.value===i.modelValue.ownerId)&&i.modelValue.ownerId!=null&&p(null)}},{immediate:!0}),(0,t.computed)(()=>{if(i.modelValue.tag)return d.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let g=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&w()});function _(e){e&&!d.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function v(e){a(`show-attachment`,e)}function y(e){a(`action`,{action:`content-library`,provider:e})}function b(e){x(i.files,e),x(i.modelValue.files,e)}function x(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 S(e){e.name===`delete-attachment`?b(e):e.name===`image-attachment`&&v(e)}function C(){r()}function w(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function T(e){E({...i.modelValue,category:e})}function E(e){a(`update:modelValue`,e),a(`on-input`,e)}function D(){a(`change-department`,i.modelValue)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Dh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(bh,{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)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(AU,{modelValue:e.modelValue.text,"onUpdate:modelValue":r[1]||=t=>e.modelValue.text=t,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:g.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:C,onAction:S},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,bq,[(0,t.createElementVNode)(`ul`,xq,[((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)(rg,(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)(Qm,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:y},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[2]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yq,{modelValue:m.value,"onUpdate:modelValue":h,options:e.departmentOptions,onChangeDepartment:D,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),e.isOperator?((0,t.openBlock)(),(0,t.createBlock)(Ch,{key:0,label:(0,t.unref)(o)(`messageTemplateFormModal.owner`),"label-for":`input-select-owner`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(YG),{modelValue:f.value,"onUpdate:modelValue":p,options:e.practitionerOptions,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.ownerPlaceholder`)},null,8,[`modelValue`,`options`,`placeholder`]),(0,t.createVNode)(eh,{class:(0,t.normalizeClass)(u.value),state:e.validation.ownerId.state,text:e.validation.ownerId.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Ch,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(YG),{modelValue:e.modelValue.category,"onUpdate:modelValue":T,options:d.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:_},null,8,[`modelValue`,`options`,`placeholder`]),(0,t.createVNode)(eh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:1}))}},Cq={__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:()=>[]},isOperator:{type:Boolean,default:!1}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=bu(),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)(qW,{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)(Sq,{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,"is-operator":r.isOperator,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h},null,8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`,`is-operator`])]),_:1},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function wq(){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 Tq=[`src`,`alt`],Eq={key:0,class:`show-spinner`},Dq={class:`spinner-border text-primary`,role:`status`},Oq=[`textContent`],kq=[`href`],Aq=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=JW(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=wq(),{t:u}=bu(),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)(qW,{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,Tq)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Eq,[(0,t.createElementVNode)(`div`,Dq,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,Oq)])])):(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,kq)]),_:1},8,[`class`,`title`]))}}),jq={key:0},Mq={key:1},Nq={key:2},Pq={key:3},Fq={key:1},Iq={key:2},Lq=[`href`],Rq=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=bu(),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)(qW,{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`,jq,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Mq,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Nq,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,Pq,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,Fq,[(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`,Iq,(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,Lq),(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`]))}}),zq=()=>({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}}),Bq={class:`template change-password-template`},Vq={class:`template-title`},Hq={key:0},Uq={key:1},Wq={class:`bd-form-field`},Gq={class:`bd-form-field`},Kq={class:`bd-form-field`},qq={class:`bd-form-buttons`},Jq=(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}=bu(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=YW(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=ZW(null),{ValidationObjectIsValid:u}=zq(),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`,Bq,[(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`,Vq,(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`,Hq,[(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`,Uq,(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`,Wq,[(0,t.createVNode)(bh,{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`,Gq,[(0,t.createVNode)(bh,{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`,Kq,[(0,t.createVNode)(bh,{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`,qq,[(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})]))}}),Yq={class:`template not-found-template`},Xq={class:`center-screen`},Zq={class:`container-warning`},Qq=[`textContent`],$q=[`textContent`],eJ=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=bu(),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`,Yq,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,Xq,[(0,t.createElementVNode)(`div`,Zq,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,Qq),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,$q),(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=Wh,e.BDAssignConversationModal=oG,e.BDAttachmentPreviewList=AP,e.BDAttachmentUploadModal=sG,e.BDBadge=Eh,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=Jq,e.BDChatCloud=XU,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=aG,e.BDContainer=m,e.BDContentLibraryModal=JK,e.BDContentLibrarySplitButton=Qm,e.BDContentLibraryTemplate=qK,e.BDConversationToTextModal=hq,e.BDDate=Dg,e.BDDropdown=_W,e.BDDropdownItem=Og,e.BDFileUpload=Y_,e.BDForm=Dh,e.BDFormCheckbox=Vh,e.BDFormInput=bh,e.BDFormInvalidFeedback=eh,e.BDFormSelect=zh,e.BDHeader=wW,e.BDImageAttachmentModal=Aq,e.BDImageAttachmentPreviewList=zP,e.BDInputGroup=Ch,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=AU,e.BDMessageTemplateFormModal=Cq,e.BDMobileMenu=LU,e.BDModal=qW,e.BDNotFoundTemplate=eJ,e.BDPagination=Ph,e.BDPhoneNumberEditModal=nG,e.BDPill=rg,e.BDPractitionerHeader=RW,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=iG,e.BDTable=aW,e.BDToast=Yh,e.BDUser=HU,e.BDUserInformation=cg,e.BDVideoCallConfirmationModal=Rq,e.BDVideoCallToast=gW,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=aq,e.CopyChatMessagesToClipboard=oq,e.CopyHl7MessagesToClipboard=sq,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=UP,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=BP,e.MapToAttachmentObjects=KP,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`,Wh),e.component(`BDAssignConversationModal`,oG),e.component(`BDAttachmentPreviewList`,AP),e.component(`BDAttachmentUploadModal`,sG),e.component(`BDBadge`,Eh),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,Jq),e.component(`BDChatCloud`,XU),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,aG),e.component(`BDContentLibraryModal`,JK),e.component(`BDConversationToTextModal`,hq),e.component(`BDContentLibrarySplitButton`,Qm),e.component(`BDContentLibraryTemplate`,qK),e.component(`BDContainer`,m),e.component(`BDDropdown`,_W),e.component(`BDDropdownItem`,Og),e.component(`BDFileUpload`,Y_),e.component(`BDForm`,Dh),e.component(`BDFormCheckbox`,Vh),e.component(`BDFormInput`,bh),e.component(`BDFormInvalidFeedback`,eh),e.component(`BDFormSelect`,zh),e.component(`BDHeader`,wW),e.component(`BDImageAttachmentModal`,Aq),e.component(`BDImageAttachmentPreviewList`,zP),e.component(`BDInputGroup`,Ch),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,AU),e.component(`BDMessageTemplateFormModal`,Cq),e.component(`BDMobileMenu`,LU),e.component(`BDModal`,qW),e.component(`BDNotFoundTemplate`,eJ),e.component(`BDPagination`,Ph),e.component(`BDPhoneNumberEditModal`,nG),e.component(`BDPill`,rg),e.component(`BDPractitionerHeader`,RW),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,iG),e.component(`BDTable`,aW),e.component(`BDToast`,Yh),e.component(`BDUser`,HU),e.component(`BDUserInformation`,cg),e.component(`BDVideoCallConfirmationModal`,Rq),e.component(`BDVideoCallToast`,gW),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,Dg),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`,TU)}},e.getDisplayDateNumeric=Tg,e.getDisplayDateTextual=Sg,e.getDisplayDateTimeNumeric=wg,e.getDisplayDateTimeTextual=Cg,e.useModal=JW,e.usePopover=kW,e.useServerErrors=ZW,e.useSessionTimeOut=rG,e.useToaster=YW,e.useValidation=zq,e.useWindow=DW,e.useZoom=wq,e.vBdTooltip=TU});
|
|
@@ -91,28 +91,29 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
header {
|
|
94
|
-
|
|
94
|
+
h6, small {
|
|
95
|
+
text-overflow: ellipsis;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
}
|
|
95
98
|
|
|
96
|
-
.
|
|
97
|
-
|
|
99
|
+
.top {
|
|
100
|
+
display: flex;
|
|
101
|
+
justify-content: space-between;
|
|
98
102
|
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
display: inline;
|
|
102
|
-
margin: 0 4px 0 0;
|
|
103
|
-
line-height: normal;
|
|
104
|
-
}
|
|
103
|
+
.bd-badge {
|
|
104
|
+
max-height: fit-content;
|
|
105
105
|
}
|
|
106
|
-
}
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
.edit-btn-group {
|
|
108
|
+
button {
|
|
109
|
+
width: 30px;
|
|
110
|
+
height: 30px;
|
|
111
|
+
padding: 0;
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
svg {
|
|
114
|
+
fill: hsla(224, 21%, 38%, 1);
|
|
115
|
+
stroke: revert;
|
|
116
|
+
}
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
}
|
|
@@ -71,29 +71,29 @@
|
|
|
71
71
|
--bs-btn-bg: #{$white};
|
|
72
72
|
--bs-btn-hover-bg: #{$gray-200};
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
|
|
75
|
+
.bd-link-input-popover.bd-link-input-bottom {
|
|
76
|
+
position: absolute;
|
|
77
|
+
left: 100px;
|
|
78
|
+
margin: auto;
|
|
79
|
+
z-index: 1050;
|
|
80
|
+
min-width: 300px;
|
|
81
|
+
max-width: 500px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.bd-link-input-popover {
|
|
85
|
+
.validation-text {
|
|
86
|
+
font-size: 0.7em;
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
|
-
}
|
|
91
90
|
|
|
92
|
-
.form-control {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
91
|
+
.form-control {
|
|
92
|
+
display:inline;
|
|
93
|
+
margin:8px 0 16px 0;
|
|
94
|
+
}
|
|
96
95
|
|
|
97
|
-
.form-control::placeholder {
|
|
98
|
-
|
|
96
|
+
.form-control::placeholder {
|
|
97
|
+
opacity: 0.5;
|
|
98
|
+
}
|
|
99
99
|
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
.content-library-template {
|
|
2
2
|
.content-library-header {
|
|
3
3
|
margin-bottom: 15px;
|
|
4
|
+
|
|
5
|
+
.controls-row {
|
|
6
|
+
gap: 16px 0;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.add-button {
|
|
11
|
+
width: 100%;
|
|
12
|
+
font-size: 15px;
|
|
13
|
+
|
|
14
|
+
.icon-plus {
|
|
15
|
+
width: 12px;
|
|
16
|
+
height: 13px;
|
|
17
|
+
}
|
|
4
18
|
}
|
|
5
19
|
|
|
6
20
|
.select-button-block {
|
|
@@ -91,6 +105,15 @@
|
|
|
91
105
|
}
|
|
92
106
|
}
|
|
93
107
|
|
|
108
|
+
.content-library-header__messages {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: left;
|
|
112
|
+
text-align: center;
|
|
113
|
+
font-weight: bold;
|
|
114
|
+
color: $gray-primary;
|
|
115
|
+
}
|
|
116
|
+
|
|
94
117
|
@media (max-width: 1199px) {
|
|
95
118
|
.select-button-block {
|
|
96
119
|
margin-bottom: 16px;
|
|
@@ -101,5 +124,9 @@
|
|
|
101
124
|
.content-library-header__messages {
|
|
102
125
|
margin-bottom: 16px;
|
|
103
126
|
}
|
|
127
|
+
|
|
128
|
+
.controls-row > div {
|
|
129
|
+
padding: 4px;
|
|
130
|
+
}
|
|
104
131
|
}
|
|
105
132
|
}
|