@beterdichtbij/component-library 0.64.6 → 0.64.8
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 +168 -169
- package/dist/bd-component-lib.umd.js +4 -4
- package/dist/scss/_active-filters.scss +3 -0
- package/dist/scss/_content-library-card.scss +29 -6
- package/dist/scss/_content-library-modal.scss +1 -1
- package/dist/scss/templates/_content-library-template.scss +3 -6
- package/package.json +1 -1
|
@@ -1818,8 +1818,8 @@ ${n}`}}),s}function Mz(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:OG,alt:`BeterDichtbij nieuws notificatie bel.`,title:s.value},null,8,PG),[[(0,t.unref)(OW)]]),(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,FG)):(0,t.createCommentVNode)(``,!0)],8,NG)):(0,t.createCommentVNode)(``,!0)}}),LG={class:`profile-side`},RG=[`href`],zG={class:`nav-item`},BG=[`textContent`],VG=(0,t.defineComponent)({__name:`BDPractitionerHeader`,props:{academyUrl:{},userId:{},getNotification:{}},setup(e){let{t:n}=ld(),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)(DG,null,(0,t.createSlots)({"profile-side":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,LG,[(0,t.createVNode)(IG,{"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)(OW)]])],8,RG)):(0,t.createCommentVNode)(``,!0)])]),_:2},[r.academyUrl?{name:`mobile-menu-special-options`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`li`,zG,[(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,BG)]),_:1},8,[`to`])])]),key:`0`}:void 0]),1024))}}),HG={class:`modal-dialog`},UG={class:`modal-content`},WG={class:`modal-header`},GG={class:`modal-title`},KG=[`src`],qG={class:`modal-body`},JG={key:0,class:`modal-footer`},YG=[`disabled`],XG=(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`,HG,[(0,t.createElementVNode)(`div`,UG,[(0,t.createElementVNode)(`div`,WG,[(0,t.createElementVNode)(`h2`,GG,[r.titleImage?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:r.titleImage,class:`title-image`,alt:``},null,8,KG)):(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`,qG,[(0,t.renderSlot)(n.$slots,`default`)]),e.hideFooter?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,JG,[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,YG)),(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))}}),ZG=e=>{let n=(0,t.ref)(null);return{showModal:()=>{let t=document.getElementById(e);t instanceof HTMLElement?(n.value=rT.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=rT.getInstance(t);e&&e.hide()}}}},{showDangerToast:QG}=wD();function $G(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=>Kg(e.ErrorMessage)&&e.ErrorMessage!==``):e.response.data.ErrorMessage?[e.response.data.ErrorMessage]:null,Kg(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&&QG(t)}},a=(0,t.ref)(null),o=(0,t.ref)(``),s=e=>{e_(e.value)?a.value=e.value.map(e=>Kg(e)?e:e.ErrorMessage):Kg(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 eK={key:0},tK={key:1},nK={class:`bd-form-field`},rK={class:`bd-form-field`},iK=(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}=wD(),{serverErrors:o,errorMessages:s,errorMessageText:c,MapServerErrors:l,ResetServerErrors:u}=$G(null),{closeModal:d}=ZG(`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)(XG,{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`,eK,[(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`,tK,(0,t.toDisplayString)((0,t.unref)(c)),1))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,nK,[(0,t.createVNode)(gg,{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`,rK,[_.value?((0,t.openBlock)(),(0,t.createBlock)(gg,{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`]))}}),aK=(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}=ZG(`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,f_.default)().diff(r(),`m`),c.value=(0,f_.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()}}},oK=(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}=aK(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)(XG,{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`]))}}),sK={__name:`BDConfirmationModal`,props:[`modalId`,`modalTitle`,`description`,`submitButtonText`,`cancelButtonText`],setup(e,{expose:n}){let r=e,{closeModal:i,showModal:a}=ZG(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)(XG,{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`]))}},cK={__name:`BDAssignConversationModal`,emits:[`update:isConcluded`,`update:isUnread`],setup(e,{emit:n}){let{t:r}=ld(),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)(XG,{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)(yg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lg,{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)(OW)]])]),_:1},8,[`modelValue`])]),_:1}),(0,t.createVNode)(yg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lg,{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`]))}},lK=(0,t.defineComponent)({__name:`BDAttachmentUploadModal`,props:{url:{},token:{}},emits:[`cancel`,`on-submit`],setup(e,{emit:n}){let{closeModal:r}=ZG(`attachment-upload-modal`),{t:i}=ld(),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)(XG,{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)(OD,{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`]))}}),uK=Object.defineProperty,dK=Object.defineProperties,fK=Object.getOwnPropertyDescriptors,pK=Object.getOwnPropertySymbols,mK=Object.prototype.hasOwnProperty,hK=Object.prototype.propertyIsEnumerable,gK=(e,t,n)=>t in e?uK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_K=(e,t)=>{for(var n in t||={})mK.call(t,n)&&gK(e,n,t[n]);if(pK)for(var n of pK(t))hK.call(t,n)&&gK(e,n,t[n]);return e},vK=(e,t)=>dK(e,fK(t)),yK={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}}}},bK={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])}}},xK={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}}},SK=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},CK={},wK={xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`},TK=[(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 EK(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,wK,TK)}var DK=SK(CK,[[`render`,EK]]),OK={},kK={xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`10`},AK=[(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 jK(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,kK,AK)}var MK={Deselect:DK,OpenIndicator:SK(OK,[[`render`,jK]])},NK={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 PK(e){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=e[n]}),JSON.stringify(t)}var FK=0;function IK(){return++FK}var LK={components:_K({},MK),directives:{appendToBody:NK},mixins:[yK,bK,xK],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:PK(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:()=>IK()}},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:_K({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:vK(_K({},e),{deselect:this.deselect}),footer:vK(_K({},e),{deselect:this.deselect})}},childComponents(){return _K(_K({},MK),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)}}},RK=[`dir`],zK=[`id`,`aria-expanded`,`aria-owns`],BK={ref:`selectedOptions`,class:`vs__selected-options`},VK=[`disabled`,`title`,`aria-label`,`onClick`],HK={ref:`actions`,class:`vs__actions`},UK=[`disabled`],WK={class:`vs__spinner`},GK=[`id`],KK=[`id`,`aria-selected`,`onMouseover`,`onClick`],qK={key:0,class:`vs__no-options`},JK=(0,t.createTextVNode)(` Sorry, no matching options. `),YK=[`id`];function XK(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`,BK,[((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,VK)):(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`,HK,[(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,UK),[[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`,WK,`Loading...`,512),[[t.vShow,e.mutableLoading]])])],512)],40,zK),(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,KK))),128)),o.filteredOptions.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,qK,[(0,t.renderSlot)(e.$slots,`no-options`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.noOptions)),()=>[JK])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`list-footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listFooter)))],40,GK)),[[s]]):((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:1,id:`vs${r.uid}__listbox`,role:`listbox`,style:{display:`none`,visibility:`hidden`}},null,8,YK))]),_:3},8,[`name`]),(0,t.renderSlot)(e.$slots,`footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.footer)))],10,RK)}var ZK=SK(LK,[[`render`,XK]]),QK=e=>typeof e==`number`,$K=[`textContent`],eq=[`textContent`],tq={key:0,class:`content-library-card__body`},nq=[`textContent`],rq=(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}=ld(),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,$K),i.subtitle?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,{key:0,textContent:(0,t.toDisplayString)(i.subtitle)},null,8,eq)):(0,t.createCommentVNode)(``,!0)])]),i.showBody?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,tq,[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(i.description),class:`content-library-card__description`},null,8,nq)])])):(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))}}),iq=(0,t.defineComponent)({__name:`BDContentLibraryCardBasic`,props:{item:{type:Object,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(rq,(0,t.normalizeProps)((0,t.guardReactiveProps)(e.item)),null,16))}}),aq={class:`content-library-card-image__titles`},oq=[`textContent`],sq=[`textContent`],cq=[`src`],lq=(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)(rq,(0,t.mergeProps)(r.value,{"card-class":`content-library-card-image`,"show-body":!1}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,aq,[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,oq),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.subtitle)},null,8,sq)]),(0,t.createElementVNode)(`img`,{src:e.item.imageUri,class:`content-library-card-image__figure`},null,8,cq)]),_:1},16))}}),uq=(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)(rq,(0,t.mergeProps)(r.value,{"show-body":!1,"card-class":`content-library-card-title`}),null,16))}}),dq=e=>e.replace(/<\/?[^>]+(>|$)/g,``),fq=e=>e.replace(/<li>/g,` `).replace(/<(br|\/p)>/g,` \r`),pq=e=>e.replace(/(?:\r\n|\r|\n)/g,`<br>`),mq={class:`top`},hq={key:0,class:`edit-btn-group`},gq=[`textContent`],_q=[`textContent`],vq=[`innerHTML`],yq={key:0,class:`attachment-occurence`},bq={class:`number-icon`},xq=(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}=ld(),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)(()=>r_(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?pq(i.item.text):``),h=(0,t.computed)(()=>EW(i.apiUrl,i.item.files,!1)),g=(0,t.computed)(()=>EW(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)(rq,(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`,mq,[(0,t.createVNode)(Sg,{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`,hq,[(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,gq),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.practitionerName)},null,8,_q)]),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`,yq,[(0,t.createVNode)(le),(0,t.createElementVNode)(`div`,bq,(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)(OW)]]):(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,vq),h.value?.length?((0,t.openBlock)(),(0,t.createBlock)(uW,{key:0,"no-download":!0,files:h.value,"show-delete":!1},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),g.value?.length?((0,t.openBlock)(),(0,t.createBlock)(yW,{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`]))}}),Sq={class:`content-library-overview`},Cq=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}=ld(),i={BDContentLibraryCardBasic:iq,BDContentLibraryCardImage:lq,BDContentLibraryCardTitle:uq,BDContentLibraryCardMessageTemplate:xq},a=e,o=n,s=(0,t.computed)(()=>r_(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`,Sq,[(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`]]),wq={name:`TimesCircleIcon`,extends:Qp};function Tq(e){return kq(e)||Oq(e)||Dq(e)||Eq()}function Eq(){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:()=>IK()}},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:_K({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:vK(_K({},e),{deselect:this.deselect}),footer:vK(_K({},e),{deselect:this.deselect})}},childComponents(){return _K(_K({},MK),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)}}},RK=[`dir`],zK=[`id`,`aria-expanded`,`aria-owns`],BK={ref:`selectedOptions`,class:`vs__selected-options`},VK=[`disabled`,`title`,`aria-label`,`onClick`],HK={ref:`actions`,class:`vs__actions`},UK=[`disabled`],WK={class:`vs__spinner`},GK=[`id`],KK=[`id`,`aria-selected`,`onMouseover`,`onClick`],qK={key:0,class:`vs__no-options`},JK=(0,t.createTextVNode)(` Sorry, no matching options. `),YK=[`id`];function XK(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`,BK,[((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,VK)):(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`,HK,[(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,UK),[[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`,WK,`Loading...`,512),[[t.vShow,e.mutableLoading]])])],512)],40,zK),(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,KK))),128)),o.filteredOptions.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,qK,[(0,t.renderSlot)(e.$slots,`no-options`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.noOptions)),()=>[JK])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(e.$slots,`list-footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.listFooter)))],40,GK)),[[s]]):((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,{key:1,id:`vs${r.uid}__listbox`,role:`listbox`,style:{display:`none`,visibility:`hidden`}},null,8,YK))]),_:3},8,[`name`]),(0,t.renderSlot)(e.$slots,`footer`,(0,t.normalizeProps)((0,t.guardReactiveProps)(o.scope.footer)))],10,RK)}var ZK=SK(LK,[[`render`,XK]]),QK=e=>typeof e==`number`,$K=[`textContent`],eq=[`textContent`],tq={key:0,class:`content-library-card__body`},nq=[`textContent`],rq=(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}=ld(),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,$K),i.subtitle?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,{key:0,textContent:(0,t.toDisplayString)(i.subtitle)},null,8,eq)):(0,t.createCommentVNode)(``,!0)])]),i.showBody?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,tq,[(0,t.renderSlot)(e.$slots,`default`,{},()=>[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(i.description),class:`content-library-card__description`},null,8,nq)])])):(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))}}),iq=(0,t.defineComponent)({__name:`BDContentLibraryCardBasic`,props:{item:{type:Object,required:!0}},setup(e){return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(rq,(0,t.normalizeProps)((0,t.guardReactiveProps)(e.item)),null,16))}}),aq={class:`content-library-card-image__titles`},oq=[`textContent`],sq=[`textContent`],cq=[`src`],lq=(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)(rq,(0,t.mergeProps)(r.value,{"card-class":`content-library-card-image`,"show-body":!1}),{header:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,aq,[(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,oq),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.subtitle)},null,8,sq)]),(0,t.createElementVNode)(`img`,{src:e.item.imageUri,class:`content-library-card-image__figure`},null,8,cq)]),_:1},16))}}),uq=(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)(rq,(0,t.mergeProps)(r.value,{"show-body":!1,"card-class":`content-library-card-title`}),null,16))}}),dq=e=>e.replace(/<\/?[^>]+(>|$)/g,``),fq=e=>e.replace(/<li>/g,` `).replace(/<(br|\/p)>/g,` \r`),pq=e=>e.replace(/(?:\r\n|\r|\n)/g,`<br>`),mq={class:`top`},hq={key:0,class:`edit-btn-group`},gq={key:1},_q={key:2},vq=[`textContent`],yq=[`textContent`],bq=[`innerHTML`],xq={key:0,class:`attachment-occurence`},Sq={class:`number-icon`},Cq=(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}=ld(),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)(()=>r_(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?pq(i.item.text):``),h=(0,t.computed)(()=>EW(i.apiUrl,i.item.files,!1)),g=(0,t.computed)(()=>EW(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)(rq,(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`,mq,[(0,t.createVNode)(Sg,{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`,hq,[(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),p.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,gq,[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)(OW)]]):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_q,[(0,t.createVNode)(v,{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)]),(0,t.createElementVNode)(`h6`,{textContent:(0,t.toDisplayString)(e.item.title)},null,8,vq),(0,t.createElementVNode)(`small`,{textContent:(0,t.toDisplayString)(e.item.practitionerName)},null,8,yq)]),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`,xq,[(0,t.createVNode)(le),(0,t.createElementVNode)(`div`,Sq,(0,t.toDisplayString)(u.value),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,bq),h.value?.length?((0,t.openBlock)(),(0,t.createBlock)(uW,{key:0,"no-download":!0,files:h.value,"show-delete":!1},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),g.value?.length?((0,t.openBlock)(),(0,t.createBlock)(yW,{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`]))}}),wq={class:`content-library-overview`},Tq=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}=ld(),i={BDContentLibraryCardBasic:iq,BDContentLibraryCardImage:lq,BDContentLibraryCardTitle:uq,BDContentLibraryCardMessageTemplate:Cq},a=e,o=n,s=(0,t.computed)(()=>r_(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`,wq,[(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`]]),Eq={name:`TimesCircleIcon`,extends:Qp};function Dq(e){return jq(e)||Aq(e)||kq(e)||Oq()}function Oq(){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 kq(e,t){if(e){if(typeof e==`string`)return Mq(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)?Mq(e,t):void 0}}function Aq(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function jq(e){if(Array.isArray(e))return Mq(e)}function Mq(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 Nq(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()),Dq(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)}Eq.render=Nq;var Pq=Op.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`}}),Nq={name:`Chip`,extends:{name:`BaseChip`,extends:Wp,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Mq,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return Ld({removable:this.removable})}},components:{TimesCircleIcon:wq}},Pq=[`aria-label`,`data-p`],Fq=[`src`];function Iq(e,n,r,i,a,o){return a.visible?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":o.dataP}),[(0,t.renderSlot)(e.$slots,`default`,{},function(){return[e.image?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,(0,t.mergeProps)({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,Fq)):e.$slots.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.$slots.icon),(0,t.mergeProps)({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,(0,t.mergeProps)({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):(0,t.createCommentVNode)(``,!0),e.label===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:3,class:e.cx(`label`)},e.ptm(`label`)),(0,t.toDisplayString)(e.label),17))]}),e.removable?(0,t.renderSlot)(e.$slots,`removeicon`,{key:0,removeCallback:o.close,keydownCallback:o.onKeydown},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.removeIcon?`span`:`TimesCircleIcon`),(0,t.mergeProps)({class:[e.cx(`removeIcon`),e.removeIcon],onClick:o.close,onKeydown:o.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):(0,t.createCommentVNode)(``,!0)],16,Pq)):(0,t.createCommentVNode)(``,!0)}Nq.render=Iq;var Lq={key:0,class:`bd-active-filters`},Rq={class:`options`},zq=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=ld(),r=(0,t.useModel)(e,`modelValue`),i=e,a=(0,t.computed)(()=>n(`activeFilters.title`)),o=(0,t.computed)(()=>n(`activeFilters.clearAll`)),s=(0,t.computed)(()=>r.value&&r.value.length>0),c=(0,t.computed)(()=>i.filters.filter(e=>r.value?.some(t=>t.startsWith(`${e.id}-`)))),l=e=>e.options.concat(e.moreOptions||[]).filter(t=>r.value?.some(n=>n===`${e.id}-${t.item}`)),u=()=>{r.value=[]},d=e=>{if(!r.value)return;let t=r.value.indexOf(e);t!==-1&&r.value?.splice(t,1)};return(e,n)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Lq,[(0,t.createElementVNode)(`header`,null,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(v,{variant:`link`,onClick:u,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`filter`},[(0,t.createElementVNode)(`label`,null,(0,t.toDisplayString)(e.label)+`:`,1),(0,t.createElementVNode)(`div`,Rq,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l(e),n=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Nq),{key:e.id+`-`+n.item,label:n.name,removable:``,onRemove:t=>d(`${e.id}-${n.item}`)},null,8,[`label`,`onRemove`])),[[(0,t.unref)(OW),n.name]])),128))])]))),128))])):(0,t.createCommentVNode)(``,!0)}}),Bq=[`id`],Vq={class:`collapse-button-container`},Hq={class:`collapsed-show`},Uq={class:`collapsed-hide`},Wq=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=ld(),i=n,a=(0,t.computed)(()=>r(`filterCard.more`)),o=(0,t.computed)(()=>r(`filterCard.less`)),s=e=>e.replace(/\s/g,`-`),c=()=>i(`check`);return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fo,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(zq,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.filters,(i,l)=>((0,t.openBlock)(),(0,t.createBlock)(yg,{key:i.label,label:i.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[1]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),i.moreOptions?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{id:`collapse-${s(i.label)}`,class:`collapse`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.moreOptions,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[2]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,Bq),(0,t.createElementVNode)(`div`,Vq,[(0,t.createVNode)(v,{class:(0,t.normalizeClass)([`collapse-button collapsed`,{"collapse-button-last":e.filters.length-1===l}]),variant:`link`,"data-bs-toggle":`collapse`,"data-bs-target":`#collapse-${s(i.label)}`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(te,{class:`collapsed-show`}),(0,t.createElementVNode)(`span`,Hq,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(ae,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,Uq,(0,t.toDisplayString)(o.value),1)]),_:1},8,[`class`,`data-bs-target`])])],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`filter-extra`,{filter:i})]),_:2},1032,[`label`]))),128))]),_:3}))}}),Gq={class:`content-library-template`},Kq={class:`number-of-messages`},qq=[`src`],Jq=[`src`],Yq=(0,t.defineComponent)({__name:`BDContentLibraryTemplate`,props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`create`,`on-insert`,`on-change`,`delete`,`update`,`on-input`,`show-attachment`,`provider-changed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let s=(0,t.computed)(()=>i.modelValue?.provider?.SupportsSearch?r(`contentLibraryTemplate.searchPlaceholderSearch`):r(`contentLibraryTemplate.searchPlaceholder`)),c=(0,t.computed)(()=>n_(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&n_(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&n_(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&QK(i.provider.totalNumber)&&(e=i.provider.totalNumber),e===1?`${e} ${r(`contentLibraryTemplate.message`)}`:`${e} ${r(`contentLibraryTemplate.messages`)}`}),f=(0,t.computed)(()=>i.provider&&i.provider.pageSize&&i.provider.totalNumber&&i.provider.pageSize<=i.provider.totalNumber),m=(0,t.computed)(()=>i.provider&&i.provider.totalNumber?i.provider.totalNumber:0),g=(0,t.computed)(()=>u.value?9:12),_=(0,t.computed)(()=>i.provider&&!u.value?3:2),y=(0,t.computed)(()=>i.showAddButton||c.value),b=(0,t.computed)(()=>({md:3,lg:3})),x=(0,t.computed)(()=>({md:9,lg:9})),S=(0,t.computed)(()=>({sm:12,md:8,lg:c.value?7:8,"offset-lg":y.value?0:3,"offset-md":y.value?0:3})),C=(0,t.computed)(()=>({sm:12,md:y.value?4:3,lg:c.value?5:4})),w=e=>e.label===`Categorieën`&&i.editCategory,T=()=>{a(`create`)},E=e=>{a(`on-insert`,e)},D=e=>{a(`on-change`,e)},O=e=>{a(`delete`,e)},ee=()=>{a(`update`,`category`)},te=()=>{o.value.currentPage=1,a(`on-input`,o.value)},ne=()=>{a(`on-input`,o.value)},re=e=>{a(`show-attachment`,e)},ie=e=>{a(`provider-changed`,e.value)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Gq,[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(b.value,{class:`content-library-header content-library-header__messages`}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,Kq,(0,t.toDisplayString)(d.value),1)]),_:1},16),(0,t.createVNode)(p,(0,t.mergeProps)(x.value,{class:`content-library-header`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`controls-row`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(S.value,{class:`search-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{type:`text`,modelValue:o.value.searchTerm,"onUpdate:modelValue":a[0]||=e=>o.value.searchTerm=e,placeholder:s.value,delayTimeMs:500,class:`search-input`,onInput:te,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:0},C.value,{class:`add-button-block`}),{default:(0,t.withCtx)(()=>[e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`add-button`,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pi),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},16)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:1},C.value,{class:`select-button-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:o.value.provider,"onUpdate:modelValue":a[1]||=e=>o.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":ie},{"open-indicator":(0,t.withCtx)(({attributes:e})=>[(0,t.createElementVNode)(`span`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),[(0,t.createVNode)(Le)],16)]),option:(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,qq)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),"selected-option":(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,Jq)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),_:1},8,[`modelValue`,`options`])]),_:1},16)):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},16),u.value?((0,t.openBlock)(),(0,t.createBlock)(p,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Wq,{filters:i.provider.filters,searchForm:o.value,"enable-edit-category":i.editCategory,"no-header":!0,onCheck:te},{"filter-extra":(0,t.withCtx)(({filter:e})=>[w(e)?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:ee},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.changeCategoryButtonLabel`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`filters`,`searchForm`,`enable-edit-category`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(p,{md:12,lg:g.value,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Cq,{items:l.value,cols:_.value,onOnInsert:E,onOnChange:D,onDelete:O,onShowAttachment:re},null,8,[`items`,`cols`]),(0,t.createVNode)(h,{class:`content-library-pagination`},{default:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createBlock)(Ag,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":a[2]||=e=>o.value.currentPage=e,totalRows:m.value,rowsPerPage:e.provider.pageSize,onClick:ne,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),Xq={__name:`BDContentLibraryModal`,props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:[`on-insert`,`cancel`,`show-attachment`,`shown`,`provider-changed`],setup(e,{emit:n}){let{closeModal:r}=ZG(`content-library-modal`),i=e,a=n,o=(0,t.ref)(i.modelValue),s=(0,t.computed)(()=>i.modelValue?.provider?.img??null),c=(0,t.computed)(()=>i.modelValue?.provider?.label??``);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let l=e=>{r(),a(`on-insert`,e)},u=()=>{a(`cancel`)},d=e=>{a(`show-attachment`,e)},f=()=>{a(`shown`)},p=e=>{a(`provider-changed`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`content-library-modal`,"title-image":s.value,title:c.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Yq,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,provider:e.provider,providerSelectOptions:e.providerSelectOptions,loading:e.loading,onOnInsert:l,onShowAttachment:d,onProviderChanged:p},null,8,[`modelValue`,`provider`,`providerSelectOptions`,`loading`])]),_:1},8,[`title-image`,`title`,`visible`]))}},Zq=Object.defineProperty,Qq=(e,t,n)=>t in e?Zq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$q=(e,t,n)=>(Qq(e,typeof t==`symbol`?t:t+``,n),n),eJ=class{constructor(){$q(this,`seed`,0),$q(this,`data`,new Map)}id(){return Date.now().toString(26)+ this.seed++}add(e,t=this.id()){return this.data.set(t,e),t}get(e){return this.data.get(e)}delete(e){this.delete(e)}},tJ=`Failed to copy value to clipboard. Unknown type.`,nJ={asString(e){if(e==null)return console.warn(`Clipboard input is empty`),``;if(typeof e!=`string`)try{return JSON.stringify(e)}catch(e){return console.warn(tJ,e),``}return e}},rJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,iJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=rJ,t}},aJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await aJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=iJ.createTextarea(e);if(document.body.appendChild(t),navigator.userAgent.match(/ipad|ipod|iphone/i)){t.contentEditable=`true`,t.readOnly=!0;let e=document.createRange();e.selectNodeContents(t);let n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e),t.setSelectionRange(0,999999))}else t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n},async copy(e){let t=typeof e==`function`?e():e,n=nJ.asString(t);if(aJ.writeClipboardExecCommand(n))return!0;await aJ.writeClipboard(n)}};new eJ;var{showSuccessToast:oJ}=wD(),sJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${dq(fq(e.Tekst))}`;aJ.copy(r).then(()=>oJ(n))},cJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${dq(fq(e.Tekst))}`).join(`
|
|
1875
|
+
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),Fq={name:`Chip`,extends:{name:`BaseChip`,extends:Wp,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:Pq,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return Ld({removable:this.removable})}},components:{TimesCircleIcon:Eq}},Iq=[`aria-label`,`data-p`],Lq=[`src`];function Rq(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,Lq)):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,Iq)):(0,t.createCommentVNode)(``,!0)}Fq.render=Rq;var zq={key:0,class:`bd-active-filters`},Bq={class:`options`},Vq=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=ld(),r=(0,t.useModel)(e,`modelValue`),i=e,a=(0,t.computed)(()=>n(`activeFilters.title`)),o=(0,t.computed)(()=>n(`activeFilters.clearAll`)),s=(0,t.computed)(()=>r.value&&r.value.length>0),c=(0,t.computed)(()=>i.filters.filter(e=>r.value?.some(t=>t.startsWith(`${e.id}-`)))),l=e=>e.options.concat(e.moreOptions||[]).filter(t=>r.value?.some(n=>n===`${e.id}-${t.item}`)),u=()=>{r.value=[]},d=e=>{if(!r.value)return;let t=r.value.indexOf(e);t!==-1&&r.value?.splice(t,1)};return(e,n)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zq,[(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`,Bq,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l(e),n=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Fq),{key:e.id+`-`+n.item,label:n.name,removable:``,onRemove:t=>d(`${e.id}-${n.item}`)},null,8,[`label`,`onRemove`])),[[(0,t.unref)(OW),n.name]])),128))])]))),128))])):(0,t.createCommentVNode)(``,!0)}}),Hq=[`id`],Uq={class:`collapse-button-container`},Wq={class:`collapsed-show`},Gq={class:`collapsed-hide`},Kq=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=ld(),i=n,a=(0,t.computed)(()=>r(`filterCard.more`)),o=(0,t.computed)(()=>r(`filterCard.less`)),s=e=>e.replace(/\s/g,`-`),c=()=>i(`check`);return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(fo,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(Vq,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.filters,(i,l)=>((0,t.openBlock)(),(0,t.createBlock)(yg,{key:i.label,label:i.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[1]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),i.moreOptions?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{id:`collapse-${s(i.label)}`,class:`collapse`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.moreOptions,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(Lg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[2]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,Hq),(0,t.createElementVNode)(`div`,Uq,[(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`,Wq,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(ae,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,Gq,(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}))}}),qq={class:`content-library-template`},Jq={class:`number-of-messages`},Yq=[`src`],Xq=[`src`],Zq=(0,t.defineComponent)({__name:`BDContentLibraryTemplate`,props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`create`,`on-insert`,`on-change`,`delete`,`update`,`on-input`,`show-attachment`,`provider-changed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let s=(0,t.computed)(()=>i.modelValue?.provider?.SupportsSearch?r(`contentLibraryTemplate.searchPlaceholderSearch`):r(`contentLibraryTemplate.searchPlaceholder`)),c=(0,t.computed)(()=>n_(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&n_(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&n_(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&QK(i.provider.totalNumber)&&(e=i.provider.totalNumber),e===1?`${e} ${r(`contentLibraryTemplate.message`)}`:`${e} ${r(`contentLibraryTemplate.messages`)}`}),f=(0,t.computed)(()=>i.provider&&i.provider.pageSize&&i.provider.totalNumber&&i.provider.pageSize<=i.provider.totalNumber),m=(0,t.computed)(()=>i.provider&&i.provider.totalNumber?i.provider.totalNumber:0),g=(0,t.computed)(()=>u.value?9:12),_=(0,t.computed)(()=>i.provider&&!u.value?3:2),y=(0,t.computed)(()=>i.showAddButton||c.value),b=(0,t.computed)(()=>({md:3,lg:3})),x=(0,t.computed)(()=>({md:9,lg:9})),S=(0,t.computed)(()=>({sm:12,md:8,lg:c.value?7:8,"offset-lg":y.value?0:3,"offset-md":y.value?0:3})),C=(0,t.computed)(()=>({sm:12,md:y.value?4:3,lg:c.value?5:4})),w=e=>e.label===`Categorieën`&&i.editCategory,T=()=>{a(`create`)},E=e=>{a(`on-insert`,e)},D=e=>{a(`on-change`,e)},O=e=>{a(`delete`,e)},ee=()=>{a(`update`,`category`)},te=()=>{o.value.currentPage=1,a(`on-input`,o.value)},ne=()=>{a(`on-input`,o.value)},re=e=>{a(`show-attachment`,e)},ie=e=>{a(`provider-changed`,e.value)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qq,[(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`,Jq,(0,t.toDisplayString)(d.value),1)]),_:1},16),(0,t.createVNode)(p,(0,t.mergeProps)(x.value,{class:`content-library-header`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`controls-row`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,(0,t.mergeProps)(S.value,{class:`search-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{type:`text`,modelValue:o.value.searchTerm,"onUpdate:modelValue":a[0]||=e=>o.value.searchTerm=e,placeholder:s.value,delayTimeMs:500,class:`search-input`,onInput:te,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:0},C.value,{class:`add-button-block`}),{default:(0,t.withCtx)(()=>[e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,class:`add-button`,onClick:T},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(pi),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},16)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(p,(0,t.mergeProps)({key:1},C.value,{class:`select-button-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:o.value.provider,"onUpdate:modelValue":a[1]||=e=>o.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":ie},{"open-indicator":(0,t.withCtx)(({attributes:e})=>[(0,t.createElementVNode)(`span`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),[(0,t.createVNode)(Le)],16)]),option:(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,Yq)):(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,Xq)):(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)(Kq,{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)(Tq,{items:l.value,cols:_.value,onOnInsert:E,onOnChange:D,onDelete:O,onShowAttachment:re},null,8,[`items`,`cols`]),(0,t.createVNode)(h,{class:`content-library-pagination`},{default:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createBlock)(Ag,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":a[2]||=e=>o.value.currentPage=e,totalRows:m.value,rowsPerPage:e.provider.pageSize,onClick:ne,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),Qq={__name:`BDContentLibraryModal`,props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:[`on-insert`,`cancel`,`show-attachment`,`shown`,`provider-changed`],setup(e,{emit:n}){let{closeModal:r}=ZG(`content-library-modal`),i=e,a=n,o=(0,t.ref)(i.modelValue),s=(0,t.computed)(()=>i.modelValue?.provider?.img??null),c=(0,t.computed)(()=>i.modelValue?.provider?.label??``);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let l=e=>{r(),a(`on-insert`,e)},u=()=>{a(`cancel`)},d=e=>{a(`show-attachment`,e)},f=()=>{a(`shown`)},p=e=>{a(`provider-changed`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`content-library-modal`,"title-image":s.value,title:c.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Zq,{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`]))}},$q=Object.defineProperty,eJ=(e,t,n)=>t in e?$q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tJ=(e,t,n)=>(eJ(e,typeof t==`symbol`?t:t+``,n),n),nJ=class{constructor(){tJ(this,`seed`,0),tJ(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)}},rJ=`Failed to copy value to clipboard. Unknown type.`,iJ={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(rJ,e),``}return e}},aJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,oJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=aJ,t}},sJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await sJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=oJ.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=iJ.asString(t);if(sJ.writeClipboardExecCommand(n))return!0;await sJ.writeClipboard(n)}};new nJ;var{showSuccessToast:cJ}=wD(),lJ=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${dq(fq(e.Tekst))}`;sJ.copy(r).then(()=>cJ(n))},uJ=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${dq(fq(e.Tekst))}`).join(`
|
|
1876
1876
|
-----------------------
|
|
1877
|
-
`)}`;aJ.copy(r).then(()=>oJ(n))},lJ=(e,t)=>{aJ.copy(e).then(()=>oJ(t))},uJ={class:`message-cloud-multi-select`},dJ={class:`message-cloud-multi-select__body`},fJ={class:`message-content`},pJ={class:`message-cloud__header`},mJ={class:`message-cloud__title`},hJ={key:0},gJ=[`innerHTML`],_J=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=ld(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return cJ(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,uJ,[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,dJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,fJ,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,pJ,[(0,t.createElementVNode)(`div`,mJ,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,hJ,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(o.value),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(s(e)),1)]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.Datum),1)])]),(0,t.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,gJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),vJ=[`id`,`value`,`disabled`],yJ=[`for`],bJ={class:`invalid-feedback`},xJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(v,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,vJ),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,yJ)]))),128))],2),(0,t.createElementVNode)(`div`,bJ,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},SJ={key:0,class:`pills-list__wrapper`},CJ={class:`pills-list__ul`},wJ={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:n}){let{showModal:r}=ZG(`attachment-upload-modal`),i=e,a=n,{t:o}=ld(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-title`,e)}function E(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Cg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(NW,{modelValue:e.modelValue.text,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,SJ,[(0,t.createElementVNode)(`ul`,CJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.modelValue.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)($g,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(Jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[0]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xJ,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,t.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,t.createVNode)(Xh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},TJ={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}function g(e){s.value.title=e,m()}function _(e){s.value.text=e,m()}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(wJ,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function EJ(){let e=(0,t.ref)(0),n=(0,t.ref)(!0),r=(0,t.ref)(null),i=(0,t.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:n,imageHolderRef:r,pos:i,SetZoom:(0,t.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!r.value)return;i.value.left=r.value.scrollLeft,i.value.top=r.value.scrollTop;let t=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);t&&(t.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),i.value.x=e.clientX,i.value.y=e.clientY,n.value=!0},OnMouseMove:e=>{if(n.value){let t=e.clientX-i.value.x,n=e.clientY-i.value.y;r.value&&(r.value.scrollTop=i.value.top-n,r.value.scrollLeft=i.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),t=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),t&&t.style&&(t.style.cursor=`grab`),n.value=!1}}}var DJ=[`src`,`alt`],OJ={key:0,class:`show-spinner`},kJ={class:`spinner-border text-primary`,role:`status`},AJ=[`textContent`],jJ=[`href`],MJ=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=ZG(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=EJ(),{t:u}=ld(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,DJ)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,OJ,[(0,t.createElementVNode)(`div`,kJ,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,AJ)])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(Ya,{modelValue:(0,t.unref)(i),"onUpdate:modelValue":n[3]||=e=>(0,t.isRef)(i)?i.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,t.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,t.createVNode)(v,{variant:`primary`,class:`download-image`,textContent:(0,t.toDisplayString)(p.value)},null,8,[`textContent`])],8,jJ)]),_:1},8,[`class`,`title`]))}}),NJ={key:0},PJ={key:1},FJ={key:2},IJ={key:3},LJ={key:1},RJ={key:2},zJ=[`href`],BJ=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(Aa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,NJ,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,PJ,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,FJ,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,IJ,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,LJ,[(0,t.createTextVNode)((0,t.toDisplayString)(g.value)+` `,1),(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(i.participantName),1),n[0]||=(0,t.createTextVNode)(`?`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,RJ,(0,t.toDisplayString)(h.value),1)),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:i.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(_.value),9,zJ),(0,t.createElementVNode)(`span`,null,`\xA0`+(0,t.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),VJ=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),HJ={class:`template change-password-template`},UJ={class:`template-title`},WJ={key:0},GJ={key:1},KJ={class:`bd-form-field`},qJ={class:`bd-form-field`},JJ={class:`bd-form-field`},YJ={class:`bd-form-buttons`},XJ=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=ld(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=wD(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=$G(null),{ValidationObjectIsValid:u}=VJ(),d=e,f=(0,t.ref)({password:``,passwordNew:``,passwordRepeat:``}),g=(0,t.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),_=()=>{if(!y())return;let e=d.submitPassword(f.value);e&&e.then(()=>{a(d.successText),b()}).catch(e=>{r(d.failureText),c(e)})},y=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))g.value.passwordNew.state=!1,g.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;g.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,g.value.passwordNew.errorLabel=t,g.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,g.value.passwordRepeat.errorLabel=t}return g.value.password.state=f.value.password===``?!1:null,g.value.password.errorLabel=g.value.password.state?``:d.requiredText,u(g.value)},b=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,g.value.password.state=null,g.value.passwordNew.state=null,g.value.passwordRepeat.state=null,l(),i(n(`changePasswordTemplate.toasters.reset`)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,HJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,{class:`justify-content-md-center template-header`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`h1`,UJ,(0,t.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,t.createVNode)(h,{class:`justify-content-md-center`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(so,{class:`bd-card-template`,"no-header":!0},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(m,{class:`container-fluid`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,t.unref)(o)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(h,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Aa,{variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,WJ,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(o),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Xn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,GJ,(0,t.toDisplayString)((0,t.unref)(s)),1))]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(h,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(p,{class:`bd-card-form`,sm:12,md:12},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{onSubmit:(0,t.withModifiers)(_,[`prevent`]),onReset:(0,t.withModifiers)(b,[`prevent`]),class:`form`},[(0,t.createElementVNode)(`div`,KJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,qJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,JJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,YJ,[(0,t.createVNode)(v,{type:`submit`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,t.createVNode)(v,{type:`reset`,variant:`link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),ZJ={class:`template not-found-template`},QJ={class:`center-screen`},$J={class:`container-warning`},eY=[`textContent`],tY=[`textContent`],nY=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,ZJ,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,QJ,[(0,t.createElementVNode)(`div`,$J,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,eY),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,tY),(0,t.createVNode)(v,{onClick:l,variant:`primary`,type:`button`,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])])])]),_:1})]))}});e.BDAlert=Aa,e.BDArticle=Bg,e.BDAssignConversationModal=cK,e.BDAttachmentPreviewList=uW,e.BDAttachmentUploadModal=lK,e.BDBadge=Sg,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=XJ,e.BDChatCloud=$W,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=sK,e.BDContainer=m,e.BDContentLibraryModal=Xq,e.BDContentLibrarySplitButton=Jh,e.BDContentLibraryTemplate=Yq,e.BDConversationToTextModal=_J,e.BDDate=C_,e.BDDropdown=bG,e.BDDropdownItem=w_,e.BDFileUpload=OD,e.BDForm=Cg,e.BDFormCheckbox=Lg,e.BDFormInput=gg,e.BDFormInvalidFeedback=Xh,e.BDFormSelect=Fg,e.BDHeader=DG,e.BDImageAttachmentModal=MJ,e.BDImageAttachmentPreviewList=yW,e.BDInputGroup=yg,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=NW,e.BDMessageTemplateFormModal=TJ,e.BDMobileMenu=BW,e.BDModal=XG,e.BDNotFoundTemplate=nY,e.BDPagination=Ag,e.BDPhoneNumberEditModal=iK,e.BDPill=$g,e.BDPractitionerHeader=VG,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=oK,e.BDTable=cG,e.BDToast=Gg,e.BDUser=GW,e.BDUserInformation=i_,e.BDVideoCallConfirmationModal=BJ,e.BDVideoCallToast=yG,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=sJ,e.CopyChatMessagesToClipboard=cJ,e.CopyHl7MessagesToClipboard=lJ,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=CW,e.IconAcademy=E,e.IconArrowDown=te,e.IconArrowUp=ae,e.IconAttachment=le,e.IconBold=pe,e.IconBulletList=_e,e.IconCalendar=xe,e.IconCall=Te,e.IconCallReject=ke,e.IconCardView=Ne,e.IconCaretDown=Le,e.IconCaretLeft=Ve,e.IconCaretRight=Ge,e.IconCheck=Ye,e.IconClipboard=$e,e.IconClose=rt,e.IconComment=st,e.IconCommentActive=dt,e.IconCommentStatic=ht,e.IconCommonFileEmpty=yt,e.IconCommonFileWarning=Ct,e.IconContactPerson=Dt,e.IconCopy=jt,e.IconDelete=Ft,e.IconDoubleCheck=zt,e.IconDownloadImage=Ut,e.IconEdit=qt,e.IconEndCall=Zt,e.IconError=tn,e.IconExternal=on,e.IconEyeShow=un,e.IconEyeSlash=mn,e.IconFile=vn,e.IconFileAdded=Sn,e.IconForward=En,e.IconHix=An,e.IconHyperlink=Pn,e.IconImageFileLandscape=Rn,e.IconImageFileWarning=Hn,e.IconInbox=Kn,e.IconInfo=Xn,e.IconInformationCircle=er,e.IconItalic=ir,e.IconListView=cr,e.IconLock=fr,e.IconLusciiEscalated=gr,e.IconLusciiLogo=br,e.IconLusciiOpen=wr,e.IconLusciiPriorityHigh=Or,e.IconLusciiPriorityLow=Mr,e.IconLusciiPriorityMedium=Ir,e.IconMenu=Br,e.IconMessage=Wr,e.IconMessageForward=Jr,e.IconMicrophoneSlash=Zr,e.IconMicrosoftTeams=ti,e.IconMin=ai,e.IconOrderedList=li,e.IconPlus=pi,e.IconRefresh=_i,e.IconRemove=xi,e.IconSananetLogo=Ei,e.IconService=Ai,e.IconShareScreen=Pi,e.IconSingleNeutral=Ri,e.IconSort=Hi,e.IconSortAsc=Ki,e.IconSortDesc=Xi,e.IconSortNone=ea,e.IconTriangleDown=ia,e.IconTriangleExclamation=ca,e.IconUnderline=fa,e.IconVideoDisabled=ya,e.IconVideocall=ga,e.IconWarning=Ca,e.IconZorgkaart=Da,e.MapAttachmentsForApi=bW,e.MapToAttachmentObjects=EW,e.TransformHyperlinks=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,Aa),e.component(`BDArticle`,Bg),e.component(`BDAssignConversationModal`,cK),e.component(`BDAttachmentPreviewList`,uW),e.component(`BDAttachmentUploadModal`,lK),e.component(`BDBadge`,Sg),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,XJ),e.component(`BDChatCloud`,$W),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,sK),e.component(`BDContentLibraryModal`,Xq),e.component(`BDConversationToTextModal`,_J),e.component(`BDContentLibrarySplitButton`,Jh),e.component(`BDContentLibraryTemplate`,Yq),e.component(`BDContainer`,m),e.component(`BDDropdown`,bG),e.component(`BDDropdownItem`,w_),e.component(`BDFileUpload`,OD),e.component(`BDForm`,Cg),e.component(`BDFormCheckbox`,Lg),e.component(`BDFormInput`,gg),e.component(`BDFormInvalidFeedback`,Xh),e.component(`BDFormSelect`,Fg),e.component(`BDHeader`,DG),e.component(`BDImageAttachmentModal`,MJ),e.component(`BDImageAttachmentPreviewList`,yW),e.component(`BDInputGroup`,yg),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,NW),e.component(`BDMessageTemplateFormModal`,TJ),e.component(`BDMobileMenu`,BW),e.component(`BDModal`,XG),e.component(`BDNotFoundTemplate`,nY),e.component(`BDPagination`,Ag),e.component(`BDPhoneNumberEditModal`,iK),e.component(`BDPill`,$g),e.component(`BDPractitionerHeader`,VG),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,oK),e.component(`BDTable`,cG),e.component(`BDToast`,Gg),e.component(`BDUser`,GW),e.component(`BDUserInformation`,i_),e.component(`BDVideoCallConfirmationModal`,BJ),e.component(`BDVideoCallToast`,yG),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,C_),e.component(`IconAcademy`,E),e.component(`IconArrowDown`,te),e.component(`IconArrowUp`,ae),e.component(`IconAttachment`,le),e.component(`IconBold`,pe),e.component(`IconBulletList`,_e),e.component(`IconCalendar`,xe),e.component(`IconCall`,Te),e.component(`IconCallReject`,ke),e.component(`IconCardView`,Ne),e.component(`IconCaretDown`,Le),e.component(`IconCaretLeft`,Ve),e.component(`IconCaretRight`,Ge),e.component(`IconCheck`,Ye),e.component(`IconClipboard`,$e),e.component(`IconClose`,rt),e.component(`IconComment`,st),e.component(`IconCommentActive`,dt),e.component(`IconCommonFileEmpty`,yt),e.component(`IconCommonFileWarning`,Ct),e.component(`IconCommentStatic`,ht),e.component(`IconContactPerson`,Dt),e.component(`IconCopy`,jt),e.component(`IconDelete`,Ft),e.component(`IconDoubleCheck`,zt),e.component(`IconDownloadImage`,Ut),e.component(`IconEdit`,qt),e.component(`IconEndCall`,Zt),e.component(`IconError`,tn),e.component(`IconExternal`,on),e.component(`IconEyeShow`,un),e.component(`IconEyeSlash`,mn),e.component(`IconFile`,vn),e.component(`IconFileAdded`,Sn),e.component(`IconForward`,En),e.component(`IconHix`,An),e.component(`IconHyperlink`,Pn),e.component(`IconImageFileLandscape`,Rn),e.component(`IconImageFileWarning`,Hn),e.component(`IconInbox`,Kn),e.component(`IconInfo`,Xn),e.component(`IconInformationCircle`,er),e.component(`IconItalic`,ir),e.component(`IconListView`,cr),e.component(`IconLock`,fr),e.component(`IconLusciiEscalated`,gr),e.component(`IconLusciiLogo`,br),e.component(`IconLusciiOpen`,wr),e.component(`IconLusciiPriorityHigh`,Or),e.component(`IconLusciiPriorityLow`,Mr),e.component(`IconLusciiPriorityMedium`,Ir),e.component(`IconMenu`,Br),e.component(`IconMessage`,Wr),e.component(`IconMessageForward`,Jr),e.component(`IconMicrophoneSlash`,Zr),e.component(`IconMicrosoftTeams`,ti),e.component(`IconMin`,ai),e.component(`IconOrderedList`,li),e.component(`IconPlus`,pi),e.component(`IconRefresh`,_i),e.component(`IconRemove`,xi),e.component(`IconSananetLogo`,Ei),e.component(`IconService`,Ai),e.component(`IconShareScreen`,Pi),e.component(`IconSingleNeutral`,Ri),e.component(`IconSort`,Hi),e.component(`IconSortAsc`,Ki),e.component(`IconSortDesc`,Xi),e.component(`IconSortNone`,ea),e.component(`IconTriangleDown`,ia),e.component(`IconTriangleExclamation`,ca),e.component(`IconUnderline`,fa),e.component(`IconVideoDisabled`,ya),e.component(`IconVideocall`,ga),e.component(`IconWarning`,Ca),e.component(`IconZorgkaart`,Da),e.directive(`vBDTooltip`,OW)}},e.getDisplayDateNumeric=x_,e.getDisplayDateTextual=v_,e.getDisplayDateTimeNumeric=b_,e.getDisplayDateTimeTextual=y_,e.useModal=ZG,e.usePopover=MG,e.useServerErrors=$G,e.useSessionTimeOut=aK,e.useToaster=wD,e.useValidation=VJ,e.useWindow=AG,e.useZoom=EJ,e.vBdTooltip=OW});
|
|
1877
|
+
`)}`;sJ.copy(r).then(()=>cJ(n))},dJ=(e,t)=>{sJ.copy(e).then(()=>cJ(t))},fJ={class:`message-cloud-multi-select`},pJ={class:`message-cloud-multi-select__body`},mJ={class:`message-content`},hJ={class:`message-cloud__header`},gJ={class:`message-cloud__title`},_J={key:0},vJ=[`innerHTML`],yJ=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=ld(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return uJ(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,fJ,[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,pJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(Lg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,mJ,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,hJ,[(0,t.createElementVNode)(`div`,gJ,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,_J,[(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,vJ)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}}),bJ=[`id`,`value`,`disabled`],xJ=[`for`],SJ={class:`invalid-feedback`},CJ={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(v,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,bJ),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,xJ)]))),128))],2),(0,t.createElementVNode)(`div`,SJ,[(0,t.createVNode)(tn),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}},wJ={key:0,class:`pills-list__wrapper`},TJ={class:`pills-list__ul`},EJ={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:n}){let{showModal:r}=ZG(`attachment-upload-modal`),i=e,a=n,{t:o}=ld(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-title`,e)}function E(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Cg,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(gg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(NW,{modelValue:e.modelValue.text,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,t.withCtx)(()=>[e.modelValue.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wJ,[(0,t.createElementVNode)(`ul`,TJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.modelValue.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)($g,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(Jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[0]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(CJ,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(yg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ZK),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,t.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,t.createVNode)(Xh,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},DJ={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=ld(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}function g(e){s.value.title=e,m()}function _(e){s.value.text=e,m()}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(EJ,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}};function OJ(){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 kJ=[`src`,`alt`],AJ={key:0,class:`show-spinner`},jJ={class:`spinner-border text-primary`,role:`status`},MJ=[`textContent`],NJ=[`href`],PJ=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=ZG(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=OJ(),{t:u}=ld(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,kJ)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,AJ,[(0,t.createElementVNode)(`div`,jJ,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,MJ)])])):(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,NJ)]),_:1},8,[`class`,`title`]))}}),FJ={key:0},IJ={key:1},LJ={key:2},RJ={key:3},zJ={key:1},BJ={key:2},VJ=[`href`],HJ=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(XG,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(Aa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,FJ,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,IJ,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,LJ,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,RJ,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,zJ,[(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`,BJ,(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,VJ),(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`]))}}),UJ=()=>({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}}),WJ={class:`template change-password-template`},GJ={class:`template-title`},KJ={key:0},qJ={key:1},JJ={class:`bd-form-field`},YJ={class:`bd-form-field`},XJ={class:`bd-form-field`},ZJ={class:`bd-form-buttons`},QJ=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=ld(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=wD(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=$G(null),{ValidationObjectIsValid:u}=UJ(),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`,WJ,[(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`,GJ,(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`,KJ,[(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`,qJ,(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`,JJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(g).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,YJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(g).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,XJ,[(0,t.createVNode)(gg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(g).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(g).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,ZJ,[(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})]))}}),$J={class:`template not-found-template`},eY={class:`center-screen`},tY={class:`container-warning`},nY=[`textContent`],rY=[`textContent`],iY=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=ld(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,$J,[(0,t.createVNode)(m,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,eY,[(0,t.createElementVNode)(`div`,tY,[(0,t.createVNode)(ca),(0,t.createElementVNode)(`h5`,{textContent:(0,t.toDisplayString)(s.value)},null,8,nY),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(c.value)},null,8,rY),(0,t.createVNode)(v,{onClick:l,variant:`primary`,type:`button`,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])])])]),_:1})]))}});e.BDAlert=Aa,e.BDArticle=Bg,e.BDAssignConversationModal=cK,e.BDAttachmentPreviewList=uW,e.BDAttachmentUploadModal=lK,e.BDBadge=Sg,e.BDButton=v,e.BDCard=so,e.BDChangePasswordTemplate=QJ,e.BDChatCloud=$W,e.BDCol=p,e.BDCollapsableCard=fo,e.BDConfirmationModal=sK,e.BDContainer=m,e.BDContentLibraryModal=Qq,e.BDContentLibrarySplitButton=Jh,e.BDContentLibraryTemplate=Zq,e.BDConversationToTextModal=yJ,e.BDDate=C_,e.BDDropdown=bG,e.BDDropdownItem=w_,e.BDFileUpload=OD,e.BDForm=Cg,e.BDFormCheckbox=Lg,e.BDFormInput=gg,e.BDFormInvalidFeedback=Xh,e.BDFormSelect=Fg,e.BDHeader=DG,e.BDImageAttachmentModal=PJ,e.BDImageAttachmentPreviewList=yW,e.BDInputGroup=yg,e.BDLink=_,e.BDLogo=S,e.BDMarkdownEditor=NW,e.BDMessageTemplateFormModal=DJ,e.BDMobileMenu=BW,e.BDModal=XG,e.BDNotFoundTemplate=iY,e.BDPagination=Ag,e.BDPhoneNumberEditModal=iK,e.BDPill=$g,e.BDPractitionerHeader=VG,e.BDProfileImage=Qa,e.BDRow=h,e.BDSessionTimeOutModal=oK,e.BDTable=cG,e.BDToast=Gg,e.BDUser=GW,e.BDUserInformation=i_,e.BDVideoCallConfirmationModal=HJ,e.BDVideoCallToast=yG,e.BDZoomslider=Ya,e.CopyChatMessageToClipboard=lJ,e.CopyChatMessagesToClipboard=uJ,e.CopyHl7MessagesToClipboard=dJ,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=CW,e.IconAcademy=E,e.IconArrowDown=te,e.IconArrowUp=ae,e.IconAttachment=le,e.IconBold=pe,e.IconBulletList=_e,e.IconCalendar=xe,e.IconCall=Te,e.IconCallReject=ke,e.IconCardView=Ne,e.IconCaretDown=Le,e.IconCaretLeft=Ve,e.IconCaretRight=Ge,e.IconCheck=Ye,e.IconClipboard=$e,e.IconClose=rt,e.IconComment=st,e.IconCommentActive=dt,e.IconCommentStatic=ht,e.IconCommonFileEmpty=yt,e.IconCommonFileWarning=Ct,e.IconContactPerson=Dt,e.IconCopy=jt,e.IconDelete=Ft,e.IconDoubleCheck=zt,e.IconDownloadImage=Ut,e.IconEdit=qt,e.IconEndCall=Zt,e.IconError=tn,e.IconExternal=on,e.IconEyeShow=un,e.IconEyeSlash=mn,e.IconFile=vn,e.IconFileAdded=Sn,e.IconForward=En,e.IconHix=An,e.IconHyperlink=Pn,e.IconImageFileLandscape=Rn,e.IconImageFileWarning=Hn,e.IconInbox=Kn,e.IconInfo=Xn,e.IconInformationCircle=er,e.IconItalic=ir,e.IconListView=cr,e.IconLock=fr,e.IconLusciiEscalated=gr,e.IconLusciiLogo=br,e.IconLusciiOpen=wr,e.IconLusciiPriorityHigh=Or,e.IconLusciiPriorityLow=Mr,e.IconLusciiPriorityMedium=Ir,e.IconMenu=Br,e.IconMessage=Wr,e.IconMessageForward=Jr,e.IconMicrophoneSlash=Zr,e.IconMicrosoftTeams=ti,e.IconMin=ai,e.IconOrderedList=li,e.IconPlus=pi,e.IconRefresh=_i,e.IconRemove=xi,e.IconSananetLogo=Ei,e.IconService=Ai,e.IconShareScreen=Pi,e.IconSingleNeutral=Ri,e.IconSort=Hi,e.IconSortAsc=Ki,e.IconSortDesc=Xi,e.IconSortNone=ea,e.IconTriangleDown=ia,e.IconTriangleExclamation=ca,e.IconUnderline=fa,e.IconVideoDisabled=ya,e.IconVideocall=ga,e.IconWarning=Ca,e.IconZorgkaart=Da,e.MapAttachmentsForApi=bW,e.MapToAttachmentObjects=EW,e.TransformHyperlinks=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,Aa),e.component(`BDArticle`,Bg),e.component(`BDAssignConversationModal`,cK),e.component(`BDAttachmentPreviewList`,uW),e.component(`BDAttachmentUploadModal`,lK),e.component(`BDBadge`,Sg),e.component(`BDButton`,v),e.component(`BDCard`,so),e.component(`BDChangePasswordTemplate`,QJ),e.component(`BDChatCloud`,$W),e.component(`BDCol`,p),e.component(`BDCollapsableCard`,fo),e.component(`BDConfirmationModal`,sK),e.component(`BDContentLibraryModal`,Qq),e.component(`BDConversationToTextModal`,yJ),e.component(`BDContentLibrarySplitButton`,Jh),e.component(`BDContentLibraryTemplate`,Zq),e.component(`BDContainer`,m),e.component(`BDDropdown`,bG),e.component(`BDDropdownItem`,w_),e.component(`BDFileUpload`,OD),e.component(`BDForm`,Cg),e.component(`BDFormCheckbox`,Lg),e.component(`BDFormInput`,gg),e.component(`BDFormInvalidFeedback`,Xh),e.component(`BDFormSelect`,Fg),e.component(`BDHeader`,DG),e.component(`BDImageAttachmentModal`,PJ),e.component(`BDImageAttachmentPreviewList`,yW),e.component(`BDInputGroup`,yg),e.component(`BDLink`,_),e.component(`BDLogo`,S),e.component(`BDMarkdownEditor`,NW),e.component(`BDMessageTemplateFormModal`,DJ),e.component(`BDMobileMenu`,BW),e.component(`BDModal`,XG),e.component(`BDNotFoundTemplate`,iY),e.component(`BDPagination`,Ag),e.component(`BDPhoneNumberEditModal`,iK),e.component(`BDPill`,$g),e.component(`BDPractitionerHeader`,VG),e.component(`BDProfileImage`,Qa),e.component(`BDRow`,h),e.component(`BDSessionTimeOutModal`,oK),e.component(`BDTable`,cG),e.component(`BDToast`,Gg),e.component(`BDUser`,GW),e.component(`BDUserInformation`,i_),e.component(`BDVideoCallConfirmationModal`,HJ),e.component(`BDVideoCallToast`,yG),e.component(`BDZoomslider`,Ya),e.component(`BDDate`,C_),e.component(`IconAcademy`,E),e.component(`IconArrowDown`,te),e.component(`IconArrowUp`,ae),e.component(`IconAttachment`,le),e.component(`IconBold`,pe),e.component(`IconBulletList`,_e),e.component(`IconCalendar`,xe),e.component(`IconCall`,Te),e.component(`IconCallReject`,ke),e.component(`IconCardView`,Ne),e.component(`IconCaretDown`,Le),e.component(`IconCaretLeft`,Ve),e.component(`IconCaretRight`,Ge),e.component(`IconCheck`,Ye),e.component(`IconClipboard`,$e),e.component(`IconClose`,rt),e.component(`IconComment`,st),e.component(`IconCommentActive`,dt),e.component(`IconCommonFileEmpty`,yt),e.component(`IconCommonFileWarning`,Ct),e.component(`IconCommentStatic`,ht),e.component(`IconContactPerson`,Dt),e.component(`IconCopy`,jt),e.component(`IconDelete`,Ft),e.component(`IconDoubleCheck`,zt),e.component(`IconDownloadImage`,Ut),e.component(`IconEdit`,qt),e.component(`IconEndCall`,Zt),e.component(`IconError`,tn),e.component(`IconExternal`,on),e.component(`IconEyeShow`,un),e.component(`IconEyeSlash`,mn),e.component(`IconFile`,vn),e.component(`IconFileAdded`,Sn),e.component(`IconForward`,En),e.component(`IconHix`,An),e.component(`IconHyperlink`,Pn),e.component(`IconImageFileLandscape`,Rn),e.component(`IconImageFileWarning`,Hn),e.component(`IconInbox`,Kn),e.component(`IconInfo`,Xn),e.component(`IconInformationCircle`,er),e.component(`IconItalic`,ir),e.component(`IconListView`,cr),e.component(`IconLock`,fr),e.component(`IconLusciiEscalated`,gr),e.component(`IconLusciiLogo`,br),e.component(`IconLusciiOpen`,wr),e.component(`IconLusciiPriorityHigh`,Or),e.component(`IconLusciiPriorityLow`,Mr),e.component(`IconLusciiPriorityMedium`,Ir),e.component(`IconMenu`,Br),e.component(`IconMessage`,Wr),e.component(`IconMessageForward`,Jr),e.component(`IconMicrophoneSlash`,Zr),e.component(`IconMicrosoftTeams`,ti),e.component(`IconMin`,ai),e.component(`IconOrderedList`,li),e.component(`IconPlus`,pi),e.component(`IconRefresh`,_i),e.component(`IconRemove`,xi),e.component(`IconSananetLogo`,Ei),e.component(`IconService`,Ai),e.component(`IconShareScreen`,Pi),e.component(`IconSingleNeutral`,Ri),e.component(`IconSort`,Hi),e.component(`IconSortAsc`,Ki),e.component(`IconSortDesc`,Xi),e.component(`IconSortNone`,ea),e.component(`IconTriangleDown`,ia),e.component(`IconTriangleExclamation`,ca),e.component(`IconUnderline`,fa),e.component(`IconVideoDisabled`,ya),e.component(`IconVideocall`,ga),e.component(`IconWarning`,Ca),e.component(`IconZorgkaart`,Da),e.directive(`vBDTooltip`,OW)}},e.getDisplayDateNumeric=x_,e.getDisplayDateTextual=v_,e.getDisplayDateTimeNumeric=b_,e.getDisplayDateTimeTextual=y_,e.useModal=ZG,e.usePopover=MG,e.useServerErrors=$G,e.useSessionTimeOut=aK,e.useToaster=wD,e.useValidation=UJ,e.useWindow=AG,e.useZoom=OJ,e.vBdTooltip=OW});
|
|
@@ -64,12 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
display: flex;
|
|
69
|
-
justify-content: space-between;
|
|
70
|
-
align-items: center;
|
|
71
|
-
|
|
72
|
-
.btn-icon {
|
|
67
|
+
.btn-icon {
|
|
73
68
|
height: 40px;
|
|
74
69
|
width: 40px;
|
|
75
70
|
|
|
@@ -87,6 +82,34 @@
|
|
|
87
82
|
}
|
|
88
83
|
}
|
|
89
84
|
|
|
85
|
+
&:hover {
|
|
86
|
+
background: hsla(221, 13%, 95%, 1);
|
|
87
|
+
border-radius: 8px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.btn-insert {
|
|
92
|
+
padding: 2px 5px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
footer {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
align-items: center;
|
|
99
|
+
|
|
100
|
+
.btn-icon {
|
|
101
|
+
height: 40px;
|
|
102
|
+
width: 40px;
|
|
103
|
+
|
|
104
|
+
svg {
|
|
105
|
+
fill: hsla(224, 21%, 38%, 1);
|
|
106
|
+
stroke: revert;
|
|
107
|
+
|
|
108
|
+
&.icon-external {
|
|
109
|
+
transform: translateY(1px);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
90
113
|
&:hover {
|
|
91
114
|
background: hsla(221, 13%, 95%, 1);
|
|
92
115
|
border-radius: 8px;
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.select-button-block {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
|
|
21
24
|
.v-select {
|
|
22
25
|
&.vs--open {
|
|
23
26
|
.vs__selected-options {
|
|
@@ -114,12 +117,6 @@
|
|
|
114
117
|
color: $gray-primary;
|
|
115
118
|
}
|
|
116
119
|
|
|
117
|
-
@media (max-width: 1199px) {
|
|
118
|
-
.select-button-block {
|
|
119
|
-
margin-bottom: 16px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
120
|
@media (max-width: 850px) {
|
|
124
121
|
.content-library-header__messages {
|
|
125
122
|
margin-bottom: 16px;
|