@beterdichtbij/component-library 0.19.0 → 0.20.0

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`);Ve.customSchemes.push([n,e])}function cS(){Ve.scanner=eS(Ve.customSchemes);for(let n=0;n<Ve.tokenQueue.length;n++)Ve.tokenQueue[n][1]({scanner:Ve.scanner});Ve.parser=oS(Ve.scanner.tokens);for(let n=0;n<Ve.pluginQueue.length;n++)Ve.pluginQueue[n][1]({scanner:Ve.scanner,parser:Ve.parser});Ve.initialized=!0}function uS(n){return Ve.initialized||cS(),iS(Ve.parser.start,n,tS(Ve.scanner.start,n))}function yc(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 vc(t),o=uS(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 dS(n){return new bt({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=DE(t.doc,[...e]);if(zE(l).forEach(({newRange:c})=>{const u=LE(r.doc,c,m=>m.isTextblock);let d,f;if(u.length>1?(d=u[0],f=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],f=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&f){const m=f.split(" ").filter(v=>v!=="");if(m.length<=0)return!1;const p=m[m.length-1],g=d.pos+f.lastIndexOf(p);if(!p)return!1;yc(p).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=>{Zl(v.from,v.to,r.doc).some(S=>S.mark.type===n.type)||s.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!s.steps.length)return s}})}function fS(n){return new bt({key:new Kt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=ep(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 hS(n){return new bt({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(p=>{a+=p.textContent});const c=yc(a).find(p=>p.isLink&&p.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,f=u==null?void 0:u.match(d),m=f?f[1]:c.href;return n.editor.commands.setMark(n.type,{href:m}),!0}}})}const pS=an.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){wd(n);return}wd(n.scheme,n.optionalSlashes)})},onDestroy(){lS()},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",pt(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=>yc(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(dS({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(fS({type:this.type})),this.options.linkOnPaste&&n.push(hS({editor:this.editor,type:this.type})),n}}),mS=pS.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})}}}}),gS=Bt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new bt({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 f=_t.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(f)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),vS=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,yS=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,bS=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,ES=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,SS=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",pt(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[Di({find:vS,type:this.type}),Di({find:bS,type:this.type})]},addPasteRules(){return[No({find:yS,type:this.type}),No({find:ES,type:this.type})]}}),CS=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,TS=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,xS=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,AS=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,wS=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",pt(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[Di({find:CS,type:this.type}),Di({find:xS,type:this.type})]},addPasteRules(){return[No({find:TS,type:this.type}),No({find:AS,type:this.type})]}}),kS=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",pt(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()}}}),OS=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",pt(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)}}}),MS=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",pt(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)}}}),kd=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",pt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Rs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Od=/^\s*([-+*])\s$/,NS=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",pt(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(MS.name,this.editor.getAttributes(kd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ri({find:Od,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ri({find:Od,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(kd.name),editor:this.editor})),[n]}}),IS=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",pt(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)}}}),Md=an.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",pt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Rs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Nd=/^(\d+)\.\s$/,DS=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",pt(this.options.HTMLAttributes,t),0]:["ol",pt(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(IS.name,this.editor.getAttributes(Md.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ri({find:Nd,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=Ri({find:Nd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Md.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),RS=bn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",pt(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(f=>l.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ca={BASIC:"basic",FULL:"full"},LS={class:"attachment-list"},_S={class:"attachment-link"},PS={key:1,class:"attachment-no-download"},BS=["href"],bc=h.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)=>(h.openBlock(),h.createElementBlock("ul",LS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.files,i=>(h.openBlock(),h.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[h.createElementVNode("div",_S,[r.showDelete?(h.openBlock(),h.createBlock(St,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:h.withCtx(()=>[h.createVNode(h.unref(Po))]),_:2},1032,["onClick"])):h.createCommentVNode("",!0),r.noDownload?(h.openBlock(),h.createElementBlock("div",PS,[h.createVNode(h.unref(cr)),h.createTextVNode(" "+h.toDisplayString(i.Naam.trim()),1)])):(h.openBlock(),h.createElementBlock("a",{key:2,href:i.downloadUrl},[h.createVNode(h.unref(cr)),h.createTextVNode(" "+h.toDisplayString(i.Naam.trim()),1)],8,BS))])]))),128))]))}}),FS={class:"attachment-list"},$S={class:"attachment"},VS=["onClick"],zS=["src","alt"],HS=["onClick"],US=["href"],jS={class:"btn btn-light download-button-image"},WS=["src","alt"],Ec=h.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)=>(h.openBlock(),h.createElementBlock("ul",FS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.files,l=>(h.openBlock(),h.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[h.createElementVNode("div",$S,[i.showDelete?(h.openBlock(),h.createBlock(St,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:h.withCtx(()=>[h.createVNode(h.unref(Po))]),_:2},1032,["onClick"])):h.createCommentVNode("",!0),t.noDownload?(h.openBlock(),h.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[h.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,zS)],8,VS)):(h.openBlock(),h.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(h.openBlock(),h.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[h.createElementVNode("button",jS,[h.createVNode(h.unref(ff))])],8,US)):h.createCommentVNode("",!0),h.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,WS)],8,HS))])]))),128))]))}}),Id=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),KS=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,GS=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,YS=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,JS=(n,e)=>e?Id(n):!Id(n),Dd=(n,e)=>n.filter(o=>JS(o,e)).map(o=>({downloadUrl:KS(o),previewUrl:GS(o),fullImageUrl:YS(o),altName:`${o.Naam}`,...o})),XS={class:"bd-markdown-editor__menu-bottom"},QS={key:0,class:"vr"},ZS={key:4,class:"vr"},qS={key:7,class:"vr"},jp=h.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Ca.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=[U5,j5,W5,gS.configure({placeholder:t.placeholder}),RS];t.variant===Ca.FULL&&i.push(SS,wS,kS,OS,NS,DS,mS.configure({openOnClick:!1,validate:S=>/^https?:\/\//.test(S)}));const s=H5({content:o.value,extensions:i,onUpdate:({editor:S})=>{const{view:C,state:x}=S,{from:b,to:D}=C.state.selection;if(x.doc.textBetween(b-1,D,"")==" "&&S.getAttributes("link").href!=null&&S.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:S.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),S.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",S.getHTML())}});h.watch(()=>t.modelValue,S=>{s.value.getHTML()!==S&&s.value.commands.setContent(S,!0,{preserveWhitespace:"full"})});const l=h.computed(()=>t.state?"is-invalid":null),a=h.computed(()=>f("bold")),c=h.computed(()=>f("italic")),u=h.computed(()=>f("underline"));h.computed(()=>f("bulletList")),h.computed(()=>f("orderedList"));const d=h.computed(()=>t.variant===Ca.FULL),f=S=>s.value&&s.value.isActive(S)?"active":null,m=h.computed(()=>t.files&&t.files.length>0?Dd(t.files,!1):null),p=h.computed(()=>t.files&&t.files.length>0?Dd(t.files,!0):null),g=S=>{e("action",{name:"delete-attachment",obj:S})},v=S=>{e("action",{name:"image-attachment",obj:S})};return(S,C)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",{class:h.normalizeClass(["bd-markdown-editor",l.value])},[h.createVNode(h.unref(z5),{editor:h.unref(s)},null,8,["editor"]),h.renderSlot(S.$slots,"default"),m.value?(h.openBlock(),h.createBlock(bc,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):h.createCommentVNode("",!0),p.value?(h.openBlock(),h.createBlock(Ec,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):h.createCommentVNode("",!0),h.createElementVNode("div",XS,[h.createVNode(St,{variant:"light",type:"button",onClick:r},{default:h.withCtx(()=>[h.createVNode(h.unref(cr))]),_:1}),d.value?(h.openBlock(),h.createElementBlock("div",QS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:1,variant:"light",type:"button",class:h.normalizeClass(a.value),onClick:C[0]||(C[0]=x=>h.unref(s).chain().focus().toggleBold().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(wl))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:2,variant:"light",type:"button",class:h.normalizeClass(c.value),onClick:C[1]||(C[1]=x=>h.unref(s).chain().focus().toggleItalic().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Al))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:3,variant:"light",type:"button",class:h.normalizeClass(u.value),onClick:C[2]||(C[2]=x=>h.unref(s).chain().focus().toggleUnderline().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(kl))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createElementBlock("div",ZS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:C[3]||(C[3]=x=>h.unref(s).chain().focus().toggleUnderline().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Ol))]),_:1})):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:C[4]||(C[4]=x=>h.unref(s).chain().focus().toggleBulletList().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Ml))]),_:1})):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createElementBlock("div",qS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:C[5]||(C[5]=x=>h.unref(s).chain().focus().toggleOrderedList().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl))]),_:1})):h.createCommentVNode("",!0)])],2),h.createVNode(h.unref(Ss),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),e3={class:"bd-user"},t3={class:"bd-user__information"},n3={class:"text-break"},r3={class:"overflow-x-hidden"},Wp=h.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=h.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(h.openBlock(),h.createElementBlock("div",e3,[e.hideImage?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Il,h.mergeProps({key:0},e.img,{size:"sm"}),null,16)),h.createElementVNode("div",t3,[h.createElementVNode("header",null,[h.createElementVNode("h5",n3,h.toDisplayString(e.name),1),h.renderSlot(r.$slots,"header-extra")]),h.createElementVNode("span",r3,h.toDisplayString(t.value),1)])]))}}),o3={class:"bd-dropdown dropdown"},Kp=h.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:Es.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}=Bo(),r=`__BD__DROPDOWN__${t.value}`,o=h.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=h.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=h.computed(()=>({"aria-labelledby":r}));return(l,a)=>(h.openBlock(),h.createElementBlock("div",o3,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.toggleTag),h.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(e.text),1)]),_:1},16)),h.createElementVNode("ul",h.mergeProps({class:["dropdown-menu",i.value]},s.value),[h.renderSlot(l.$slots,"default")],16)]))}}),i3={class:"modal bd-modal modal-lg",tabindex:"-1"},s3={class:"modal-dialog"},a3={class:"modal-content"},l3={class:"modal-header"},c3={class:"modal-title fw-light"},u3={class:"modal-body"},d3={key:0,class:"modal-footer"},f3=["disabled"],Gp=h.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)=>(h.openBlock(),h.createElementBlock("div",i3,[h.createElementVNode("div",s3,[h.createElementVNode("div",a3,[h.createElementVNode("div",l3,[h.createElementVNode("h2",c3,h.toDisplayString(t.title),1),h.renderSlot(i.$slots,"modal-header-space-between"),h.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[h.createTextVNode("Sluiten "),h.createVNode(h.unref(xl),{class:"bg-primary"})])]),h.createElementVNode("div",u3,[h.renderSlot(i.$slots,"default")]),i.hideFooter?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",d3,[t.hideFooterSubmitButton?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},h.toDisplayString(t.submitButtonTitle),9,f3)),t.hideFooterCancelButton?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},h.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(f=>l.includes(f.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ca={BASIC:"basic",FULL:"full"},LS={class:"attachment-list"},_S={class:"attachment-link"},PS={key:1,class:"attachment-no-download"},BS=["href"],bc=h.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)=>(h.openBlock(),h.createElementBlock("ul",LS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(r.files,i=>(h.openBlock(),h.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[h.createElementVNode("div",_S,[r.showDelete?(h.openBlock(),h.createBlock(St,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:h.withCtx(()=>[h.createVNode(h.unref(Po))]),_:2},1032,["onClick"])):h.createCommentVNode("",!0),r.noDownload?(h.openBlock(),h.createElementBlock("div",PS,[h.createVNode(h.unref(cr)),h.createTextVNode(" "+h.toDisplayString(i.Naam.trim()),1)])):(h.openBlock(),h.createElementBlock("a",{key:2,href:i.downloadUrl},[h.createVNode(h.unref(cr)),h.createTextVNode(" "+h.toDisplayString(i.Naam.trim()),1)],8,BS))])]))),128))]))}}),FS={class:"attachment-list"},$S={class:"attachment"},VS=["onClick"],zS=["src","alt"],HS=["onClick"],US=["href"],jS={class:"btn btn-light download-button-image"},WS=["src","alt"],Ec=h.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)=>(h.openBlock(),h.createElementBlock("ul",FS,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(i.files,l=>(h.openBlock(),h.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[h.createElementVNode("div",$S,[i.showDelete?(h.openBlock(),h.createBlock(St,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:h.withCtx(()=>[h.createVNode(h.unref(Po))]),_:2},1032,["onClick"])):h.createCommentVNode("",!0),t.noDownload?(h.openBlock(),h.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[h.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,zS)],8,VS)):(h.openBlock(),h.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(h.openBlock(),h.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[h.createElementVNode("button",jS,[h.createVNode(h.unref(ff))])],8,US)):h.createCommentVNode("",!0),h.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,WS)],8,HS))])]))),128))]))}}),Id=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),KS=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,GS=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,YS=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,JS=(n,e)=>e?Id(n):!Id(n),Dd=(n,e)=>n===void 0?void 0:n.filter(o=>JS(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:KS(o),previewUrl:GS(o),fullImageUrl:YS(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),XS={class:"bd-markdown-editor__menu-bottom"},QS={key:0,class:"vr"},ZS={key:4,class:"vr"},qS={key:7,class:"vr"},jp=h.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Ca.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=[U5,j5,W5,gS.configure({placeholder:t.placeholder}),RS];t.variant===Ca.FULL&&i.push(SS,wS,kS,OS,NS,DS,mS.configure({openOnClick:!1,validate:S=>/^https?:\/\//.test(S)}));const s=H5({content:o.value,extensions:i,onUpdate:({editor:S})=>{const{view:C,state:x}=S,{from:b,to:D}=C.state.selection;if(x.doc.textBetween(b-1,D,"")==" "&&S.getAttributes("link").href!=null&&S.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:S.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),S.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",S.getHTML())}});h.watch(()=>t.modelValue,S=>{s.value.getHTML()!==S&&s.value.commands.setContent(S,!0,{preserveWhitespace:"full"})});const l=h.computed(()=>t.state?"is-invalid":null),a=h.computed(()=>f("bold")),c=h.computed(()=>f("italic")),u=h.computed(()=>f("underline"));h.computed(()=>f("bulletList")),h.computed(()=>f("orderedList"));const d=h.computed(()=>t.variant===Ca.FULL),f=S=>s.value&&s.value.isActive(S)?"active":null,m=h.computed(()=>t.files&&t.files.length>0?Dd(t.files,!1):null),p=h.computed(()=>t.files&&t.files.length>0?Dd(t.files,!0):null),g=S=>{e("action",{name:"delete-attachment",obj:S})},v=S=>{e("action",{name:"image-attachment",obj:S})};return(S,C)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",{class:h.normalizeClass(["bd-markdown-editor",l.value])},[h.createVNode(h.unref(z5),{editor:h.unref(s)},null,8,["editor"]),h.renderSlot(S.$slots,"default"),m.value?(h.openBlock(),h.createBlock(bc,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):h.createCommentVNode("",!0),p.value?(h.openBlock(),h.createBlock(Ec,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:v},null,8,["files"])):h.createCommentVNode("",!0),h.createElementVNode("div",XS,[h.createVNode(St,{variant:"light",type:"button",onClick:r},{default:h.withCtx(()=>[h.createVNode(h.unref(cr))]),_:1}),d.value?(h.openBlock(),h.createElementBlock("div",QS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:1,variant:"light",type:"button",class:h.normalizeClass(a.value),onClick:C[0]||(C[0]=x=>h.unref(s).chain().focus().toggleBold().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(wl))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:2,variant:"light",type:"button",class:h.normalizeClass(c.value),onClick:C[1]||(C[1]=x=>h.unref(s).chain().focus().toggleItalic().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Al))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:3,variant:"light",type:"button",class:h.normalizeClass(u.value),onClick:C[2]||(C[2]=x=>h.unref(s).chain().focus().toggleUnderline().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(kl))]),_:1},8,["class"])):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createElementBlock("div",ZS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:C[3]||(C[3]=x=>h.unref(s).chain().focus().toggleUnderline().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Ol))]),_:1})):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:C[4]||(C[4]=x=>h.unref(s).chain().focus().toggleBulletList().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Ml))]),_:1})):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createElementBlock("div",qS)):h.createCommentVNode("",!0),d.value?(h.openBlock(),h.createBlock(St,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:C[5]||(C[5]=x=>h.unref(s).chain().focus().toggleOrderedList().run())},{default:h.withCtx(()=>[h.createVNode(h.unref(Nl))]),_:1})):h.createCommentVNode("",!0)])],2),h.createVNode(h.unref(Ss),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),e3={class:"bd-user"},t3={class:"bd-user__information"},n3={class:"text-break"},r3={class:"overflow-x-hidden"},Wp=h.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=h.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(h.openBlock(),h.createElementBlock("div",e3,[e.hideImage?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(Il,h.mergeProps({key:0},e.img,{size:"sm"}),null,16)),h.createElementVNode("div",t3,[h.createElementVNode("header",null,[h.createElementVNode("h5",n3,h.toDisplayString(e.name),1),h.renderSlot(r.$slots,"header-extra")]),h.createElementVNode("span",r3,h.toDisplayString(t.value),1)])]))}}),o3={class:"bd-dropdown dropdown"},Kp=h.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:Es.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}=Bo(),r=`__BD__DROPDOWN__${t.value}`,o=h.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=h.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=h.computed(()=>({"aria-labelledby":r}));return(l,a)=>(h.openBlock(),h.createElementBlock("div",o3,[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(e.toggleTag),h.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(e.text),1)]),_:1},16)),h.createElementVNode("ul",h.mergeProps({class:["dropdown-menu",i.value]},s.value),[h.renderSlot(l.$slots,"default")],16)]))}}),i3={class:"modal bd-modal modal-lg",tabindex:"-1"},s3={class:"modal-dialog"},a3={class:"modal-content"},l3={class:"modal-header"},c3={class:"modal-title fw-light"},u3={class:"modal-body"},d3={key:0,class:"modal-footer"},f3=["disabled"],Gp=h.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)=>(h.openBlock(),h.createElementBlock("div",i3,[h.createElementVNode("div",s3,[h.createElementVNode("div",a3,[h.createElementVNode("div",l3,[h.createElementVNode("h2",c3,h.toDisplayString(t.title),1),h.renderSlot(i.$slots,"modal-header-space-between"),h.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[h.createTextVNode("Sluiten "),h.createVNode(h.unref(xl),{class:"bg-primary"})])]),h.createElementVNode("div",u3,[h.renderSlot(i.$slots,"default")]),i.hideFooter?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",d3,[t.hideFooterSubmitButton?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},h.toDisplayString(t.submitButtonTitle),9,f3)),t.hideFooterCancelButton?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},h.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)
@@ -22584,13 +22584,17 @@ const n3 = Sn.create({
22584
22584
  ]))), 128))
22585
22585
  ]));
22586
22586
  }
22587
- }), Hd = (n) => n.Naam.toLowerCase().endsWith(".png") || n.Naam.toLowerCase().endsWith(".jpg") || n.Naam.toLowerCase().endsWith(".jpeg") || n.Naam.toLowerCase().endsWith(".gif"), L3 = (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, _3 = (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, P3 = (n) => n.identifier ? `/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}` : null, F3 = (n, e) => e ? Hd(n) : !Hd(n), Ud = (n, e) => n.filter((i) => F3(i, e)).map((i) => ({
22588
- downloadUrl: L3(i),
22589
- previewUrl: _3(i),
22590
- fullImageUrl: P3(i),
22591
- altName: `${i.Naam}`,
22592
- ...i
22593
- })), $3 = { class: "bd-markdown-editor__menu-bottom" }, B3 = {
22587
+ }), Hd = (n) => n.Naam.toLowerCase().endsWith(".png") || n.Naam.toLowerCase().endsWith(".jpg") || n.Naam.toLowerCase().endsWith(".jpeg") || n.Naam.toLowerCase().endsWith(".gif"), L3 = (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, _3 = (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, P3 = (n) => n.identifier ? `/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}` : null, F3 = (n, e) => e ? Hd(n) : !Hd(n), Ud = (n, e) => n === void 0 ? void 0 : n.filter((i) => F3(i, e)).map((i) => {
22588
+ const s = typeof i.CorrelationId == "string" ? i.CorrelationId : i.CorrelationId !== void 0 ? i.CorrelationId.toString() : "";
22589
+ return {
22590
+ downloadUrl: L3(i),
22591
+ previewUrl: _3(i),
22592
+ fullImageUrl: P3(i),
22593
+ altName: `${i.Naam}`,
22594
+ ...i,
22595
+ CorrelationId: s
22596
+ };
22597
+ }), $3 = { class: "bd-markdown-editor__menu-bottom" }, B3 = {
22594
22598
  key: 0,
22595
22599
  class: "vr"
22596
22600
  }, z3 = {