@beterdichtbij/component-library 0.28.0 → 0.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -124,7 +124,7 @@ img.ProseMirror-separator {
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
126
  3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function Z7(){ze.scanner=z7(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=W7(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function X7(n){return ze.initialized||Z7(),K7(ze.parser.start,n,H7(ze.scanner.start,n))}function Dc(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new Ic(t),o=X7(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function Q7(n){return new Et({key:new Kt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=bb(t.doc,[...e]);if(Ob(l).forEach(({newRange:c})=>{const u=Cb(r.doc,c,p=>p.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const p=h.split(" ").filter(v=>v!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=d.pos+h.lastIndexOf(m);if(!m)return!1;Dc(m).filter(v=>v.isLink).map(v=>({...v,from:g+v.start+1,to:g+v.end+1})).filter(v=>r.schema.marks.code?!r.doc.rangeHasMark(v.from,v.to,r.schema.marks.code):!0).filter(v=>n.validate?n.validate(v.value):!0).forEach(v=>{fc(v.from,v.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function q7(n){return new Et({key:new Kt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=yp(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function e8(n){return new Et({key:new Kt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=Dc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const t8=an.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Vd(n);return}Vd(n.scheme,n.optionalSlashes)})},onDestroy(){J7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Io({find:n=>Dc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(Q7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(q7({type:this.type})),this.options.linkOnPaste&&n.push(e8({editor:this.editor,type:this.type})),n}}),n8=t8.extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),r8=Pt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Et({key:new Kt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=Rt.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),o8=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,i8=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,s8=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,a8=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,l8=an.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Fi({find:o8,type:this.type}),Fi({find:s8,type:this.type})]},addPasteRules(){return[Io({find:i8,type:this.type}),Io({find:a8,type:this.type})]}}),c8=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,u8=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,d8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,f8=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,h8=an.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Fi({find:c8,type:this.type}),Fi({find:d8,type:this.type})]},addPasteRules(){return[Io({find:u8,type:this.type}),Io({find:f8,type:this.type})]}}),p8=an.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),m8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),g8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),zd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Vs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Hd=/^\s*([-+*])\s$/,v8=bn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(g8.name,this.editor.getAttributes(zd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Vi({find:Hd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Vi({find:Hd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(zd.name),editor:this.editor})),[n]}}),y8=bn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",mt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Ud=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Vs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),jd=/^(\d+)\.\s$/,b8=bn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",mt(this.options.HTMLAttributes,t),0]:["ol",mt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(y8.name,this.editor.getAttributes(Ud.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Vi({find:jd,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Vi({find:jd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Ud.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),E8=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",mt(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ia={BASIC:"basic",FULL:"full"},C8={class:"attachment-list"},S8={class:"attachment-link"},w8={key:1,class:"attachment-no-download"},k8=["href"],Ks=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",C8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",S8,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",w8,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,k8))])]))),128))]))}}),x8={class:"attachment-list"},T8={class:"attachment"},A8=["onClick"],O8=["src","alt"],M8=["onClick"],N8=["href"],I8={class:"btn btn-light download-button-image"},D8=["src","alt"],Gs=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",x8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",T8,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove","aria-label":"verwijder",onClick:a=>r(l)},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,O8)],8,A8)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",I8,[f.createVNode(f.unref(Ci))])],8,N8)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,D8)],8,M8))])]))),128))]))}}),Wd=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),_8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,L8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,R8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,B8=(n,e)=>e?Wd(n):!Wd(n),Es=(n,e)=>n===void 0?void 0:n.filter(o=>B8(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:_8(o),previewUrl:L8(o),fullImageUrl:R8(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),P8={class:"bd-markdown-editor__menu-bottom"},$8={key:0,class:"vr"},F8={key:4,class:"vr"},V8={key:7,class:"vr"},lm=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Ia.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[N7,I7,D7,r8.configure({placeholder:t.placeholder}),E8];t.variant===Ia.FULL&&i.push(l8,h8,p8,m8,v8,b8,n8.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=M7({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:D}=S.state.selection;if(k.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Ia.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Es(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Es(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(O7),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ks,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Gs,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",P8,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",$8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Dl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Fl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(jl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",F8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(_l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Vl))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",V8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(Os),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),z8={class:"header"},H8=f.createElementVNode("div",null,"Menu",-1),U8={class:"icon-close-wrapper"},j8={class:"navbar"},W8={class:"nav navbar-nav w-100"},K8={class:"nav-item"},G8={class:"nav-item"},_c=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",z8,[H8,f.createElementVNode("div",U8,[f.createVNode(ks,{onClick:o})])]),f.createElementVNode("nav",j8,[f.createElementVNode("ul",W8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",K8,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",G8,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),Y8={class:"bd-user"},J8={class:"bd-user__information"},Z8={class:"text-break"},X8={class:"overflow-x-hidden"},cm=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",Y8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",J8,[f.createElementVNode("header",null,[f.createElementVNode("h5",Z8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",X8,f.toDisplayString(t.value),1)])]))}}),Al="",ai=n=>typeof n=="string"||n instanceof String,Q8={class:"bd-chat-cloud-card"},q8={class:"bd-chat-cloud-card__header"},e4={class:"bd-chat-cloud-card__body"},t4=["innerHTML"],n4={class:"bd-chat-cloud-card__footer"},um=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":Al),o=f.computed(()=>Es(t.files,!1)),i=f.computed(()=>Es(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",Q8,[f.createElementVNode("div",q8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",e4,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,t4)])]),f.createElementVNode("div",n4,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ks,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Gs,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),r4=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(zl),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(Hl),{key:1})):(f.openBlock(),f.createBlock(f.unref(Ul),{key:2}))],2))}}),o4={class:"bd-table"},i4={key:0,class:"table"},s4={key:1},a4=["onClick"],l4={key:1,class:"empty-text"},dm=f.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const v=m.toString(),C=g.toString();return v.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",o4,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",i4,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(r4,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",s4,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,a4))),256))])])):(f.openBlock(),f.createElementBlock("p",l4,f.toDisplayString(r.emptyText),1))]))}}),Lc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:As.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),c4={class:"row bd-header"},u4={class:"col logo-mix"},d4=["src","alt"],f4=f.createElementVNode("div",null,"Menu",-1),h4={key:0,class:"col header-options"},p4={class:"col bd-btn-settings"},m4="sm",fm=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",c4,[f.createElementVNode("div",u4,[f.createVNode(Wl,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,d4)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[f4,f.createVNode(Si)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",h4,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",p4,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:m4},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Lc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(ki,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(ki,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(_c,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),g4={class:"modal bd-modal modal-lg",tabindex:"-1"},v4={class:"modal-dialog"},y4={class:"modal-content"},b4={class:"modal-header"},E4={class:"modal-title"},C4=f.createElementVNode("span",null,"Sluiten",-1),S4={class:"modal-body"},w4={key:0,class:"modal-footer"},k4=["disabled"],hm=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",g4,[f.createElementVNode("div",v4,[f.createElementVNode("div",y4,[f.createElementVNode("div",b4,[f.createElementVNode("h2",E4,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[C4,f.createVNode(f.unref(ks),{class:"bg-primary"})])]),f.createElementVNode("div",S4,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",w4,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,k4)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ia={BASIC:"basic",FULL:"full"},C8={class:"attachment-list"},S8={class:"attachment-link"},w8={key:1,class:"attachment-no-download"},k8=["href"],Ks=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",C8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",S8,[r.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",w8,[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(cr)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,k8))])]))),128))]))}}),x8={class:"attachment-list"},T8={class:"attachment"},A8=["onClick"],O8=["src","alt"],M8=["onClick"],N8=["href"],I8={class:"btn btn-light download-button-image"},D8=["src","alt"],Gs=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",x8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",T8,[i.showDelete?(f.openBlock(),f.createBlock(lt,{key:0,variant:"remove","aria-label":"verwijder",onClick:a=>r(l)},{default:f.withCtx(()=>[f.createVNode(f.unref($o))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,O8)],8,A8)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",I8,[f.createVNode(f.unref(Ci))])],8,N8)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,D8)],8,M8))])]))),128))]))}}),Wd=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),_8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,L8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,R8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,B8=(n,e)=>e?Wd(n):!Wd(n),Es=(n,e)=>n===void 0?void 0:n.filter(o=>B8(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:_8(o),previewUrl:L8(o),fullImageUrl:R8(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),P8={class:"bd-markdown-editor__menu-bottom"},$8={key:0,class:"vr"},F8={key:4,class:"vr"},V8={key:7,class:"vr"},lm=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:Ia.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=gr(t,"modelValue",e),i=[N7,I7,D7,r8.configure({placeholder:t.placeholder}),E8];t.variant===Ia.FULL&&i.push(l8,h8,p8,m8,v8,b8,n8.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=M7({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:b,to:D}=S.state.selection;if(k.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state===!1?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===Ia.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Es(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Es(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},v=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(O7),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ks,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Gs,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",P8,[f.createVNode(lt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(cr))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",$8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Dl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Fl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(jl))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",F8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(_l))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Vl))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",V8)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(lt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref($l))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(Os),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),z8={class:"header"},H8=f.createElementVNode("div",null,"Menu",-1),U8={class:"icon-close-wrapper"},j8={class:"navbar"},W8={class:"nav navbar-nav w-100"},K8={class:"nav-item"},G8={class:"nav-item"},_c=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",z8,[H8,f.createElementVNode("div",U8,[f.createVNode(ks,{onClick:o})])]),f.createElementVNode("nav",j8,[f.createElementVNode("ul",W8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",K8,[f.createVNode(zr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",G8,[f.createVNode(zr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),Y8={class:"bd-user"},J8={class:"bd-user__information"},Z8={class:"text-break"},X8={class:"overflow-x-hidden"},cm=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",Y8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(Fo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",J8,[f.createElementVNode("header",null,[f.createElementVNode("h5",Z8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",X8,f.toDisplayString(t.value),1)])]))}}),Al="",ai=n=>typeof n=="string"||n instanceof String,Q8={class:"bd-chat-cloud-card"},q8={class:"bd-chat-cloud-card__header"},e4={class:"bd-chat-cloud-card__body"},t4=["innerHTML"],n4={class:"bd-chat-cloud-card__footer"},um=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":Al),o=f.computed(()=>Es(t.files,!1)),i=f.computed(()=>Es(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(Fo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",Q8,[f.createElementVNode("div",q8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(lt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",e4,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,t4)])]),f.createElementVNode("div",n4,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ks,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Gs,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),r4=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(zl),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(Hl),{key:1})):(f.openBlock(),f.createBlock(f.unref(Ul),{key:2}))],2))}}),o4={class:"bd-table"},i4={key:0,class:"table"},s4={key:1},a4=["onClick"],l4={key:1,class:"empty-text"},dm=f.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const v=m.toString(),C=g.toString();return v.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",o4,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",i4,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(r4,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",s4,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,a4))),256))])])):(f.openBlock(),f.createElementBlock("p",l4,f.toDisplayString(r.emptyText),1))]))}}),Lc=f.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:As.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Vo(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),c4={class:"row bd-header"},u4={class:"col logo-mix"},d4=["src","alt"],f4=f.createElementVNode("div",null,"Menu",-1),h4={key:0,class:"col header-options"},p4={class:"col bd-btn-settings"},m4="sm",fm=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",c4,[f.createElementVNode("div",u4,[f.createVNode(Wl,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,d4)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[f4,f.createVNode(Si)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",h4,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(lt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",p4,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(Fo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:m4},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(Lc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(ki,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(ki,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(_c,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),g4={class:"modal bd-modal modal-lg",tabindex:"-1"},v4={class:"modal-dialog"},y4={class:"modal-content"},b4={class:"modal-header"},E4={class:"modal-title"},C4=f.createElementVNode("span",null,"Sluiten",-1),S4={class:"modal-body"},w4={key:0,class:"modal-footer"},k4=["disabled"],hm=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",g4,[f.createElementVNode("div",v4,[f.createElementVNode("div",y4,[f.createElementVNode("div",b4,[f.createElementVNode("h2",E4,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[C4,f.createVNode(f.unref(ks),{class:"bg-primary"})])]),f.createElementVNode("div",S4,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",w4,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,k4)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -22804,7 +22804,7 @@ const B8 = xn.create({
22804
22804
  props: {
22805
22805
  placeholder: { default: "Typ een bericht" },
22806
22806
  errorText: { default: "er is iets fout gegaan" },
22807
- state: { type: Boolean, default: void 0 },
22807
+ state: { type: [Boolean, null], default: null },
22808
22808
  variant: { default: Ka.BASIC },
22809
22809
  files: { default: void 0 },
22810
22810
  modelValue: {}
@@ -22846,7 +22846,7 @@ const B8 = xn.create({
22846
22846
  });
22847
22847
  }
22848
22848
  );
22849
- const l = xe(() => t.state ? "is-invalid" : null), a = xe(() => f("bold")), c = xe(() => f("italic")), u = xe(() => f("underline"));
22849
+ const l = xe(() => t.state === !1 ? "is-invalid" : null), a = xe(() => f("bold")), c = xe(() => f("italic")), u = xe(() => f("underline"));
22850
22850
  xe(() => f("bulletList")), xe(() => f("orderedList"));
22851
22851
  const d = xe(() => t.variant === Ka.FULL), f = (E) => o.value && o.value.isActive(E) ? "active" : null, h = xe(() => t.files && t.files.length > 0 ? Po(t.files, !1) : null), p = xe(() => t.files && t.files.length > 0 ? Po(t.files, !0) : null), m = (E) => {
22852
22852
  e("action", { name: "delete-attachment", obj: E });
@@ -124,7 +124,7 @@ img.ProseMirror-separator {
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
126
  3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function o7(){ze.scanner=Jb(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=qb(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function i7(n){return ze.initialized||o7(),e7(ze.parser.start,n,Zb(ze.scanner.start,n))}function ac(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new ic(t),o=i7(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function s7(n){return new yt({key:new Ut("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=P3(t.doc,[...e]);if(K3(l).forEach(({newRange:c})=>{const u=F3(r.doc,c,p=>p.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=d.pos+h.lastIndexOf(m);if(!m)return!1;ac(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{yl(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function a7(n){return new yt({key:new Ut("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Gf(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function l7(n){return new yt({key:new Ut("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=ac(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const c7=en.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){pp(n);return}pp(n.scheme,n.optionalSlashes)})},onDestroy(){r7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[No({find:n=>ac(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(s7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(a7({type:this.type})),this.options.linkOnPaste&&n.push(l7({editor:this.editor,type:this.type})),n}}).extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),u7=_t.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new yt({key:new Ut("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),d7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,f7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,h7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,p7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,m7=en.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:d7,type:this.type}),$i({find:h7,type:this.type})]},addPasteRules(){return[No({find:f7,type:this.type}),No({find:p7,type:this.type})]}}),g7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,y7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,v7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,E7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,b7=en.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:g7,type:this.type}),$i({find:v7,type:this.type})]},addPasteRules(){return[No({find:y7,type:this.type}),No({find:E7,type:this.type})]}}),C7=en.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),S7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),w7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Bi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),gp=/^\s*([-+*])\s$/,k7=pn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(w7.name,this.editor.getAttributes(mp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Fi({find:gp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:gp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(mp.name),editor:this.editor})),[n]}}),T7=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),yp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Bi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),vp=/^(\d+)\.\s$/,A7=pn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",dt(this.options.HTMLAttributes,t),0]:["ol",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(T7.name,this.editor.getAttributes(yp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Fi({find:vp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:vp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(yp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),x7=pn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",dt(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lc={BASIC:"basic",FULL:"full"},O7={class:"attachment-list"},M7={class:"attachment-link"},N7={key:1,class:"attachment-no-download"},I7=["href"],Ds=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",O7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",M7,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",N7,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,I7))])]))),128))]))}}),_7={class:"attachment-list"},D7={class:"attachment"},L7=["onClick"],R7=["src","alt"],B7=["onClick"],P7=["href"],$7={class:"btn btn-light download-button-image"},F7=["src","alt"],Ls=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",_7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",D7,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove","aria-label":"verwijder",onClick:a=>r(l)},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,R7)],8,L7)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",$7,[f.createVNode(f.unref(Qo))])],8,P7)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,F7)],8,B7))])]))),128))]))}}),Ep=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),V7=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,z7=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,H7=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,U7=(n,e)=>e?Ep(n):!Ep(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>U7(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:V7(o),previewUrl:z7(o),fullImageUrl:H7(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),j7={class:"bd-markdown-editor__menu-bottom"},W7={key:0,class:"vr"},K7={key:4,class:"vr"},G7={key:7,class:"vr"},bp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:lc.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[$b,Fb,Vb,u7.configure({placeholder:t.placeholder}),x7];t.variant===lc.FULL&&i.push(m7,b7,C7,S7,k7,A7,c7.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=Pb({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:E,to:_}=S.state.selection;if(k.doc.textBetween(E-1,_,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:E-1,to:_}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:_,to:_}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===lc.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(Bb),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",j7,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",W7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(fa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",K7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ea))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(la))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",G7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),Y7={class:"header"},J7=f.createElementVNode("div",null,"Menu",-1),Z7={class:"icon-close-wrapper"},X7={class:"navbar"},Q7={class:"nav navbar-nav w-100"},q7={class:"nav-item"},e8={class:"nav-item"},cc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",Y7,[J7,f.createElementVNode("div",Z7,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",X7,[f.createElementVNode("ul",Q7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",q7,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",e8,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),t8={class:"bd-user"},n8={class:"bd-user__information"},r8={class:"text-break"},o8={class:"overflow-x-hidden"},Cp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",t8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",n8,[f.createElementVNode("header",null,[f.createElementVNode("h5",r8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",o8,f.toDisplayString(t.value),1)])]))}}),uc="",Bs=n=>typeof n=="string"||n instanceof String,i8={class:"bd-chat-cloud-card"},s8={class:"bd-chat-cloud-card__header"},a8={class:"bd-chat-cloud-card__body"},l8=["innerHTML"],c8={class:"bd-chat-cloud-card__footer"},Sp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":uc),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",i8,[f.createElementVNode("div",s8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",a8,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,l8)])]),f.createElementVNode("div",c8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),u8=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(ca),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(ua),{key:1})):(f.openBlock(),f.createBlock(f.unref(da),{key:2}))],2))}}),d8={class:"bd-table"},f8={key:0,class:"table"},h8={key:1},p8=["onClick"],m8={key:1,class:"empty-text"},wp=f.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",d8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",f8,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(u8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",h8,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,p8))),256))])])):(f.openBlock(),f.createElementBlock("p",m8,f.toDisplayString(r.emptyText),1))]))}}),dc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),g8={class:"row bd-header"},y8={class:"col logo-mix"},v8=["src","alt"],E8=f.createElementVNode("div",null,"Menu",-1),b8={key:0,class:"col header-options"},C8={class:"col bd-btn-settings"},S8="sm",kp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",g8,[f.createElementVNode("div",y8,[f.createVNode(ha,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,v8)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[E8,f.createVNode(ti)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",b8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",C8,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(lo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:S8},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(dc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(cc,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),w8={class:"modal bd-modal modal-lg",tabindex:"-1"},k8={class:"modal-dialog"},T8={class:"modal-content"},A8={class:"modal-header"},x8={class:"modal-title"},O8=f.createElementVNode("span",null,"Sluiten",-1),M8={class:"modal-body"},N8={key:0,class:"modal-footer"},I8=["disabled"],Tp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",w8,[f.createElementVNode("div",k8,[f.createElementVNode("div",T8,[f.createElementVNode("div",A8,[f.createElementVNode("h2",x8,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[O8,f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",M8,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",N8,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,I8)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),lc={BASIC:"basic",FULL:"full"},O7={class:"attachment-list"},M7={class:"attachment-link"},N7={key:1,class:"attachment-no-download"},I7=["href"],Ds=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",O7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",M7,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",N7,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,I7))])]))),128))]))}}),_7={class:"attachment-list"},D7={class:"attachment"},L7=["onClick"],R7=["src","alt"],B7=["onClick"],P7=["href"],$7={class:"btn btn-light download-button-image"},F7=["src","alt"],Ls=f.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",_7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",D7,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove","aria-label":"verwijder",onClick:a=>r(l)},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,R7)],8,L7)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",$7,[f.createVNode(f.unref(Qo))])],8,P7)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,F7)],8,B7))])]))),128))]))}}),Ep=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),V7=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,z7=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,H7=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,U7=(n,e)=>e?Ep(n):!Ep(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>U7(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:V7(o),previewUrl:z7(o),fullImageUrl:H7(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),j7={class:"bd-markdown-editor__menu-bottom"},W7={key:0,class:"vr"},K7={key:4,class:"vr"},G7={key:7,class:"vr"},bp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:lc.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[$b,Fb,Vb,u7.configure({placeholder:t.placeholder}),x7];t.variant===lc.FULL&&i.push(m7,b7,C7,S7,k7,A7,c7.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=Pb({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:k}=C,{from:E,to:_}=S.state.selection;if(k.doc.textBetween(E-1,_,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:E-1,to:_}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:_,to:_}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state===!1?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===lc.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(Bb),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),p.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),m.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",j7,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",W7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=k=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=k=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(fa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",K7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=k=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ea))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=k=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(la))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",G7)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=k=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),Y7={class:"header"},J7=f.createElementVNode("div",null,"Menu",-1),Z7={class:"icon-close-wrapper"},X7={class:"navbar"},Q7={class:"nav navbar-nav w-100"},q7={class:"nav-item"},e8={class:"nav-item"},cc=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",Y7,[J7,f.createElementVNode("div",Z7,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",X7,[f.createElementVNode("ul",Q7,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",q7,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.renderSlot(s.$slots,"special-options"),f.createElementVNode("li",e8,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),t8={class:"bd-user"},n8={class:"bd-user__information"},r8={class:"text-break"},o8={class:"overflow-x-hidden"},Cp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",t8,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",n8,[f.createElementVNode("header",null,[f.createElementVNode("h5",r8,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",o8,f.toDisplayString(t.value),1)])]))}}),uc="",Bs=n=>typeof n=="string"||n instanceof String,i8={class:"bd-chat-cloud-card"},s8={class:"bd-chat-cloud-card__header"},a8={class:"bd-chat-cloud-card__body"},l8=["innerHTML"],c8={class:"bd-chat-cloud-card__footer"},Sp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":uc),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",i8,[f.createElementVNode("div",s8,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",a8,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,l8)])]),f.createElementVNode("div",c8,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(Ds,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),u8=f.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=f.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=f.computed(()=>({"bd-table-sort":!0,active:t.active}));return f.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(f.openBlock(),f.createElementBlock("th",{class:f.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[f.createElementVNode("span",null,f.toDisplayString(t.label),1),t.active&&!r.value?(f.openBlock(),f.createBlock(f.unref(ca),{key:0})):t.active&&r.value?(f.openBlock(),f.createBlock(f.unref(ua),{key:1})):(f.openBlock(),f.createBlock(f.unref(da),{key:2}))],2))}}),d8={class:"bd-table"},f8={key:0,class:"table"},h8={key:1},p8=["onClick"],m8={key:1,class:"empty-text"},wp=f.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=f.ref(r.items),i=f.ref(r.sortBy),s=d=>i.value=d,l=(d,h,p)=>{const m=h[d],g=p[d];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=d=>{o.value=o.value.sort((p,m)=>l(d,p,m)),t("sort-changed",{sortBy:d,sortDesc:!1})},c=d=>{o.value=o.value.sort((p,m)=>l(d,m,p)),t("sort-changed",{sortBy:d,sortDesc:!0})},u=()=>{o.value=r.items};return f.watch(()=>r.items,d=>{o.value=d}),e({Refresh:u}),(d,h)=>(f.openBlock(),f.createElementBlock("div",d8,[r.items&&r.items.length>0?(f.openBlock(),f.createElementBlock("table",f8,[f.createElementVNode("thead",null,[f.createElementVNode("tr",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.fields,p=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[p.sortable?(f.openBlock(),f.createBlock(u8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(f.openBlock(),f.createElementBlock("th",h8,f.toDisplayString(p.label),1))],64))),256))])]),f.createElementVNode("tbody",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(o.value,p=>(f.openBlock(),f.createElementBlock("tr",{class:f.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(n.fields,m=>(f.openBlock(),f.createElementBlock("td",null,[d.$slots.hasOwnProperty(m.key)?f.renderSlot(d.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createTextVNode(f.toDisplayString(p[m.key]),1)],64))]))),256))],10,p8))),256))])])):(f.openBlock(),f.createElementBlock("p",m8,f.toDisplayString(r.emptyText),1))]))}}),dc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r})),l=f.ref(),a=f.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,d)=>(f.openBlock(),f.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:d[0]||(d[0]=f.withModifiers(()=>{},["stop"]))},[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[f.renderSlot(u.$slots,"default")],16)]))}}),g8={class:"row bd-header"},y8={class:"col logo-mix"},v8=["src","alt"],E8=f.createElementVNode("div",null,"Menu",-1),b8={key:0,class:"col header-options"},C8={class:"col bd-btn-settings"},S8="sm",kp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=f.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",g8,[f.createElementVNode("div",y8,[f.createVNode(ha,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(f.openBlock(),f.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,v8)):f.createCommentVNode("",!0)]),f.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[E8,f.createVNode(ti)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",b8,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",C8,[f.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(f.openBlock(),f.createBlock(lo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:S8},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(dc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),f.createVNode(cc,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":f.withCtx(()=>[f.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),w8={class:"modal bd-modal modal-lg",tabindex:"-1"},k8={class:"modal-dialog"},T8={class:"modal-content"},A8={class:"modal-header"},x8={class:"modal-title"},O8=f.createElementVNode("span",null,"Sluiten",-1),M8={class:"modal-body"},N8={key:0,class:"modal-footer"},I8=["disabled"],Tp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",w8,[f.createElementVNode("div",k8,[f.createElementVNode("div",T8,[f.createElementVNode("div",A8,[f.createElementVNode("h2",x8,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[O8,f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",M8,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",N8,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,I8)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
@@ -11,9 +11,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
11
11
  default: string;
12
12
  };
13
13
  state: {
14
- type: __PropType<boolean | undefined>;
14
+ type: __PropType<boolean | null | undefined>;
15
15
  required: false;
16
- default: undefined;
16
+ default: null;
17
17
  };
18
18
  variant: {
19
19
  type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
@@ -41,9 +41,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
41
41
  default: string;
42
42
  };
43
43
  state: {
44
- type: __PropType<boolean | undefined>;
44
+ type: __PropType<boolean | null | undefined>;
45
45
  required: false;
46
- default: undefined;
46
+ default: null;
47
47
  };
48
48
  variant: {
49
49
  type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
@@ -67,7 +67,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
67
67
  files: import("../../../types/ApiAttachment").ApiAttachment[] | undefined;
68
68
  variant: import('../../../types/tiptapVariants').TiptapVariants;
69
69
  placeholder: string | undefined;
70
- state: boolean | undefined;
70
+ state: boolean | null | undefined;
71
71
  errorText: string | undefined;
72
72
  }, {}>;
73
73
  export default _sfc_main;
@@ -4,7 +4,7 @@ import { ApiAttachment } from '../types/ApiAttachment';
4
4
  export interface BDMarkdownEditorProps extends ModelValueString {
5
5
  placeholder?: string;
6
6
  errorText?: string;
7
- state?: boolean;
7
+ state?: boolean | null;
8
8
  variant: TiptapVariants;
9
9
  files?: ApiAttachment[];
10
10
  }
@@ -1,72 +1,76 @@
1
1
  .modal.bd-modal {
2
-
3
- .modal-header {
2
+ .modal-dialog {
3
+ min-height: 100%;
4
4
  display: flex;
5
5
  align-items: center;
6
- justify-content: space-between;
7
- margin-top:30px;
6
+ margin: 0 auto;
8
7
 
9
- button.btn-close {
10
- top: 20px;
11
- right: 20px;
12
- position: absolute;
13
- padding: revert;
14
- margin: revert;
15
- height: revert;
8
+ .modal-header {
16
9
  display: flex;
17
- gap: 4px;
18
- background: transparent;
19
- color: $gray-primary;
10
+ align-items: center;
11
+ justify-content: space-between;
12
+
13
+ button.btn-close {
14
+ top: 20px;
15
+ right: 20px;
16
+ position: absolute;
17
+ padding: revert;
18
+ margin: revert;
19
+ height: revert;
20
+ display: flex;
21
+ gap: 4px;
22
+ background: transparent;
23
+ color: $gray-primary;
20
24
 
21
- .icon-close {
22
- width: 24px;
23
- height: 24px;
25
+ .icon-close {
26
+ width: 24px;
27
+ height: 24px;
28
+ }
24
29
  }
25
- }
26
30
 
27
- @include media-breakpoint-up(md) {
28
- padding: 0px 65px;
29
- }
31
+ @include media-breakpoint-up(md) {
32
+ padding: 30px 65px 0px 65px;
33
+ }
30
34
 
31
- @include media-breakpoint-down(md) {
32
- flex-direction: column-reverse;
33
- align-items: center;
34
- justify-content: center;
35
- padding: .75rem;
36
- margin-top: 0px;
35
+ @include media-breakpoint-down(md) {
36
+ flex-direction: column-reverse;
37
+ align-items: center;
38
+ justify-content: center;
39
+ padding: .75rem;
40
+ margin-top: 0px;
37
41
 
38
- > * {
39
- width: 100%;
40
- text-align: center;
41
- }
42
+ > * {
43
+ width: 100%;
44
+ text-align: center;
45
+ }
42
46
 
43
- button.btn-close {
44
- top: initial;
45
- right: initial;
46
- position: initial;
47
- margin: auto;
48
- font-size: 0.9em;
49
- padding: initial;
50
- height: initial;
47
+ button.btn-close {
48
+ top: initial;
49
+ right: initial;
50
+ position: initial;
51
+ margin: auto;
52
+ font-size: 0.9em;
53
+ padding: initial;
54
+ height: initial;
55
+ }
51
56
  }
52
57
  }
53
- }
54
58
 
55
- .modal-body {
56
- @include media-breakpoint-up(md) {
57
- padding: 30px 65px;
58
- }
59
- border: 0px;
60
- }
61
-
62
- .modal-footer {
63
- justify-content: flex-start;
64
-
65
- @include media-breakpoint-up(md) {
66
- padding: 30px 65px;
59
+ .modal-body {
60
+ @include media-breakpoint-up(md) {
61
+ padding: 30px 65px;
62
+ }
63
+ border: 0px;
67
64
  }
68
65
 
69
- @include media-breakpoint-down(md) {
66
+ .modal-footer {
67
+ justify-content: flex-start;
68
+
69
+ @include media-breakpoint-up(md) {
70
+ padding: 30px 65px;
71
+ }
72
+
73
+ @include media-breakpoint-down(md) {
70
74
  display: flex;
71
75
  align-items: center;
72
76
  justify-content: center;
@@ -74,25 +78,25 @@
74
78
 
75
79
  > * {
76
80
  width: 100%;
77
- }
81
+ }
82
+ }
78
83
  }
79
- }
80
84
 
81
- .btn-close {
82
- align-self: baseline;
83
- }
85
+ .btn-close {
86
+ align-self: baseline;
87
+ }
84
88
 
85
- .modal-title {
86
- font-family: $font-secondary;
87
- font-weight: $font-normal;
88
- font-size: 31px;
89
- color: $color-darkblue;
90
- letter-spacing: 0;
91
-
92
- @include media-breakpoint-down(sm) {
93
- margin-top: 20px;
94
- line-height:normal;
95
- }
96
- }
89
+ .modal-title {
90
+ font-family: $font-secondary;
91
+ font-weight: $font-normal;
92
+ font-size: 31px;
93
+ color: $color-darkblue;
94
+ letter-spacing: 0;
97
95
 
96
+ @include media-breakpoint-down(sm) {
97
+ margin-top: 20px;
98
+ line-height:normal;
99
+ }
100
+ }
101
+ }
98
102
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.28.0",
4
+ "version": "0.28.1",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"