@beterdichtbij/component-library 0.11.3 → 0.11.5
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,4 +124,4 @@ 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 tb(){ze.scanner=G2(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=Z2(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 nb(n){return ze.initialized||tb(),Q2(ze.parser.start,n,J2(ze.scanner.start,n))}function Va(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 za(t),o=nb(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 rb(n){return new gt({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=sv(t.doc,[...e]);if(mv(l).forEach(({newRange:c})=>{const u=lv(r.doc,c,p=>p.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 p=f.split(" ").filter(v=>v!=="");if(p.length<=0)return!1;const h=p[p.length-1],g=d.pos+f.lastIndexOf(h);if(!h)return!1;Va(h).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=>{ka(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 ob(n){return new gt({key:new Ut("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Dd(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 ib(n){return new gt({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(h=>{a+=h.textContent});const c=Va(a).find(h=>h.isLink&&h.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),p=f?f[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const sb=_t.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Vc(n);return}Vc(n.scheme,n.optionalSlashes)})},onDestroy(){eb()},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",ut(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[Gr({find:n=>Va(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(rb({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(ob({type:this.type})),this.options.linkOnPaste&&n.push(ib({editor:this.editor,type:this.type})),n}}),ab=sb.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})}}}}),lb=Nt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new gt({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 f=Mt.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}),We.create(n,o)}}})]}}),cb=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,ub=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,db=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,fb=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,pb=_t.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",ut(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[Lo({find:cb,type:this.type}),Lo({find:db,type:this.type})]},addPasteRules(){return[Gr({find:ub,type:this.type}),Gr({find:fb,type:this.type})]}}),hb=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,mb=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,gb=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,vb=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,yb=_t.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",ut(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[Lo({find:hb,type:this.type}),Lo({find:gb,type:this.type})]},addPasteRules(){return[Gr({find:mb,type:this.type}),Gr({find:vb,type:this.type})]}}),bb=_t.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",ut(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()}}}),xb=Rt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ut(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)}}}),Sb=Rt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ut(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)}}}),$c=_t.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ni(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Uc=/^\s*([-+*])\s$/,Eb=Rt.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",ut(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(Sb.name,this.editor.getAttributes($c.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Po({find:Uc,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Po({find:Uc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes($c.name),editor:this.editor})),[n]}}),Cb=Rt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ut(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)}}}),Hc=_t.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ut(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ni(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),jc=/^(\d+)\.\s$/,kb=Rt.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",ut(this.options.HTMLAttributes,t),0]:["ol",ut(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(Cb.name,this.editor.getAttributes(Hc.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Po({find:jc,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=Po({find:jc,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Hc.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),wb=Rt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ut(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()}}}),hs={BASIC:"basic",FULL:"full"},Tb={class:"bd-markdown-editor__menu-bottom"},Ab={key:0,class:"vr"},Ob={key:4,class:"vr"},Mb={key:7,class:"vr"},uf=m.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:hs.BASIC},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=Yn(t,"modelValue",e),o=[P2,B2,F2,lb.configure({placeholder:t.placeholder}),wb];t.variant===hs.FULL&&o.push(pb,yb,bb,xb,Eb,kb,ab.configure({openOnClick:!1,validate:f=>/^https?:\/\//.test(f)}));const i=L2({content:r.value,extensions:o,onUpdate:({editor:f})=>{const{view:p,state:h}=f,{from:g,to:v}=p.state.selection;if(h.doc.textBetween(g-1,v,"")==" "&&f.getAttributes("link").href!=null&&f.chain().setTextSelection({from:g-1,to:v}).toggleLink({href:f.getAttributes("link").href}).setTextSelection({from:v,to:v}).run(),f.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",f.getHTML())}});m.watch(()=>t.modelValue,f=>{i.value.getHTML()!==f&&i.value.commands.setContent(f,!0,{preserveWhitespace:"full"})});const s=m.computed(()=>t.state?"is-invalid":null),l=m.computed(()=>d("bold")),a=m.computed(()=>d("italic")),c=m.computed(()=>d("underline"));m.computed(()=>d("bulletList")),m.computed(()=>d("orderedList"));const u=m.computed(()=>t.variant===hs.FULL),d=f=>i.value&&i.value.isActive(f)?"active":null;return(f,p)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createElementVNode("div",{class:m.normalizeClass(["bd-markdown-editor",s.value])},[m.createVNode(m.unref(D2),{editor:m.unref(i)},null,8,["editor"]),m.createElementVNode("div",Tb,[m.createVNode(Pt,{variant:"light",type:"button"},{default:m.withCtx(()=>[m.createVNode(m.unref(Fr))]),_:1}),u.value?(m.openBlock(),m.createElementBlock("div",Ab)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:1,variant:"light",type:"button",class:m.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>m.unref(i).chain().focus().toggleBold().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(_s))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:2,variant:"light",type:"button",class:m.normalizeClass(a.value),onClick:p[1]||(p[1]=h=>m.unref(i).chain().focus().toggleItalic().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(qs))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:3,variant:"light",type:"button",class:m.normalizeClass(c.value),onClick:p[2]||(p[2]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ea))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",Ob)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:p[3]||(p[3]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ta))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:p[4]||(p[4]=h=>m.unref(i).chain().focus().toggleBulletList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(na))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",Mb)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:p[5]||(p[5]=h=>m.unref(i).chain().focus().toggleOrderedList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ra))]),_:1})):m.createCommentVNode("",!0)])],2),m.createVNode(m.unref(bi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),Ib={class:"bd-user"},Nb={class:"bd-user__information"},Rb={class:"text-break"},Db={class:"overflow-x-hidden"},df=m.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:{src:"",alt:""}},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=m.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(m.openBlock(),m.createElementBlock("div",Ib,[e.hideImage?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(oa,m.mergeProps({key:0},e.img,{size:"sm"}),null,16)),m.createElementVNode("div",Nb,[m.createElementVNode("h5",Rb,m.toDisplayString(e.name),1),m.createElementVNode("span",Db,m.toDisplayString(t.value),1)])]))}}),Lb={class:"bd-dropdown dropdown"},ff=m.defineComponent({__name:"BDDropdown",props:{size:{default:it.MD},variant:{default:vi.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}=yi(),r=`__BD__DROPDOWN__${t.value}`,o=m.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=m.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=m.computed(()=>({"aria-labelledby":r}));return(l,a)=>(m.openBlock(),m.createElementBlock("div",Lb,[(m.openBlock(),m.createBlock(m.resolveDynamicComponent(e.toggleTag),m.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(e.text),1)]),_:1},16)),m.createElementVNode("ul",m.mergeProps({class:["dropdown-menu",i.value]},s.value),[m.renderSlot(l.$slots,"default")],16)]))}}),Pb={class:"modal bd-modal modal-lg",tabindex:"-1"},Bb={class:"modal-dialog"},Fb={class:"modal-content"},zb={class:"modal-header"},Vb={class:"modal-title fw-light"},$b={class:"modal-body"},Ub={class:"modal-footer"},pf=m.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},hideFooterCancelButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(m.openBlock(),m.createElementBlock("div",Pb,[m.createElementVNode("div",Bb,[m.createElementVNode("div",Fb,[m.createElementVNode("div",zb,[m.createElementVNode("h2",Vb,m.toDisplayString(t.title),1),m.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m.createTextVNode("Sluiten "),m.createVNode(m.unref(Qs),{class:"bg-primary"})])]),m.createElementVNode("div",$b,[m.renderSlot(i.$slots,"default")]),m.createElementVNode("div",Ub,[m.createElementVNode("button",{type:"button",class:"btn btn-primary",onClick:r},m.toDisplayString(t.submitButtonTitle),1),t.hideFooterCancelButton?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},"Annuleren"))])])])]))}}),Hb={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark"},Pt=m.defineComponent({__name:"BDButton",props:{size:{default:it.MD},variant:{default:Hb.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=m.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=m.computed(()=>t.to?gi:"button"),i=m.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(m.openBlock(),m.createBlock(m.resolveDynamicComponent(o.value),m.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:m.withCtx(()=>[m.renderSlot(l.$slots,"default",{},()=>[m.createTextVNode(m.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),jb={install:n=>{n.component("BDCol",Wc),n.component("BDContainer",Kc),n.component("BRow",Gc),n.component("BDButton",Pt),n.component("BDLogo",Yc),n.component("BDLink",gi),n.component("BDDropdownItem",cu),n.component("BDDropdown",ff),n.component("BDAlert",Xc),n.component("BDProfileImage",oa),n.component("BDZoomslider",Qc),n.component("BDCard",ia),n.component("BDCollapsableCard",_c),n.component("BDFormInput",eu),n.component("BDInputGroup",tu),n.component("BDFormInvalidFeedback",bi),n.component("BDBadge",nu),n.component("BDForm",ru),n.component("BDPagination",ou),n.component("BDDropzone",du),n.component("BDMarkdownEditor",uf),n.component("BDModal",pf),n.component("BDFormSelect",iu),n.component("BDUser",df),n.component("IconAttachment",Fr),n.component("IconBold",_s),n.component("IconBulletList",ta),n.component("IconCaretDown",Jc),n.component("IconCaretLeft",Zs),n.component("IconCaretRight",Xs),n.component("IconCheck",pi),n.component("IconClose",Qs),n.component("IconError",hi),n.component("IconFile",Ys),n.component("IconHyperlink",ra),n.component("IconInfo",mi),n.component("IconOrderedList",na),n.component("IconItalic",qs),n.component("IconRemove",Js),n.component("IconUnderline",ea),n.component("BDArticle",au),n.component("BDFormCheckbox",su),n.component("BDToast",lu)}};exports.BDAlert=Xc;exports.BDArticle=au;exports.BDBadge=nu;exports.BDButton=Pt;exports.BDCard=ia;exports.BDCol=Wc;exports.BDCollapsableCard=_c;exports.BDContainer=Kc;exports.BDDropdown=ff;exports.BDDropdownItem=cu;exports.BDDropzone=du;exports.BDForm=ru;exports.BDFormCheckbox=su;exports.BDFormInput=eu;exports.BDFormInvalidFeedback=bi;exports.BDFormSelect=iu;exports.BDInputGroup=tu;exports.BDLink=gi;exports.BDLogo=Yc;exports.BDMarkdownEditor=uf;exports.BDModal=pf;exports.BDPagination=ou;exports.BDProfileImage=oa;exports.BDRow=Gc;exports.BDToast=lu;exports.BDUser=df;exports.BDZoomslider=Qc;exports.IconAttachment=Fr;exports.IconBold=_s;exports.IconBulletList=ta;exports.IconCaretLeft=Zs;exports.IconCaretRight=Xs;exports.IconCheck=pi;exports.IconClose=Qs;exports.IconError=hi;exports.IconFile=Ys;exports.IconHyperlink=ra;exports.IconInfo=mi;exports.IconItalic=qs;exports.IconOrderedList=na;exports.IconRemove=Js;exports.IconUnderline=ea;exports.default=jb;
|
|
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()}}}),hs={BASIC:"basic",FULL:"full"},Tb={class:"bd-markdown-editor__menu-bottom"},Ab={key:0,class:"vr"},Ob={key:4,class:"vr"},Mb={key:7,class:"vr"},uf=m.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:hs.BASIC},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=Yn(t,"modelValue",e),o=[P2,B2,F2,lb.configure({placeholder:t.placeholder}),wb];t.variant===hs.FULL&&o.push(pb,yb,bb,xb,Eb,kb,ab.configure({openOnClick:!1,validate:f=>/^https?:\/\//.test(f)}));const i=L2({content:r.value,extensions:o,onUpdate:({editor:f})=>{const{view:p,state:h}=f,{from:g,to:v}=p.state.selection;if(h.doc.textBetween(g-1,v,"")==" "&&f.getAttributes("link").href!=null&&f.chain().setTextSelection({from:g-1,to:v}).toggleLink({href:f.getAttributes("link").href}).setTextSelection({from:v,to:v}).run(),f.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",f.getHTML())}});m.watch(()=>t.modelValue,f=>{i.value.getHTML()!==f&&i.value.commands.setContent(f,!0,{preserveWhitespace:"full"})});const s=m.computed(()=>t.state?"is-invalid":null),l=m.computed(()=>d("bold")),a=m.computed(()=>d("italic")),c=m.computed(()=>d("underline"));m.computed(()=>d("bulletList")),m.computed(()=>d("orderedList"));const u=m.computed(()=>t.variant===hs.FULL),d=f=>i.value&&i.value.isActive(f)?"active":null;return(f,p)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createElementVNode("div",{class:m.normalizeClass(["bd-markdown-editor",s.value])},[m.createVNode(m.unref(D2),{editor:m.unref(i)},null,8,["editor"]),m.createElementVNode("div",Tb,[m.createVNode(Pt,{variant:"light",type:"button"},{default:m.withCtx(()=>[m.createVNode(m.unref(Fr))]),_:1}),u.value?(m.openBlock(),m.createElementBlock("div",Ab)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:1,variant:"light",type:"button",class:m.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>m.unref(i).chain().focus().toggleBold().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(_s))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:2,variant:"light",type:"button",class:m.normalizeClass(a.value),onClick:p[1]||(p[1]=h=>m.unref(i).chain().focus().toggleItalic().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(qs))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:3,variant:"light",type:"button",class:m.normalizeClass(c.value),onClick:p[2]||(p[2]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ea))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",Ob)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:p[3]||(p[3]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ta))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:p[4]||(p[4]=h=>m.unref(i).chain().focus().toggleBulletList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(na))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",Mb)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:p[5]||(p[5]=h=>m.unref(i).chain().focus().toggleOrderedList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ra))]),_:1})):m.createCommentVNode("",!0)])],2),m.createVNode(m.unref(bi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),Ib={class:"bd-user"},Nb={class:"bd-user__information"},Rb={class:"text-break"},Db={class:"overflow-x-hidden"},df=m.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:{src:"",alt:""}},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=m.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(m.openBlock(),m.createElementBlock("div",Ib,[e.hideImage?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(oa,m.mergeProps({key:0},e.img,{size:"sm"}),null,16)),m.createElementVNode("div",Nb,[m.createElementVNode("h5",Rb,m.toDisplayString(e.name),1),m.createElementVNode("span",Db,m.toDisplayString(t.value),1)])]))}}),Lb={class:"bd-dropdown dropdown"},ff=m.defineComponent({__name:"BDDropdown",props:{size:{default:it.MD},variant:{default:vi.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}=yi(),r=`__BD__DROPDOWN__${t.value}`,o=m.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=m.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=m.computed(()=>({"aria-labelledby":r}));return(l,a)=>(m.openBlock(),m.createElementBlock("div",Lb,[(m.openBlock(),m.createBlock(m.resolveDynamicComponent(e.toggleTag),m.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:m.withCtx(()=>[m.createElementVNode("span",null,m.toDisplayString(e.text),1)]),_:1},16)),m.createElementVNode("ul",m.mergeProps({class:["dropdown-menu",i.value]},s.value),[m.renderSlot(l.$slots,"default")],16)]))}}),Pb={class:"modal bd-modal modal-lg",tabindex:"-1"},Bb={class:"modal-dialog"},Fb={class:"modal-content"},zb={class:"modal-header"},Vb={class:"modal-title fw-light"},$b={class:"modal-body"},Ub={class:"modal-footer"},pf=m.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},hideFooterCancelButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(m.openBlock(),m.createElementBlock("div",Pb,[m.createElementVNode("div",Bb,[m.createElementVNode("div",Fb,[m.createElementVNode("div",zb,[m.createElementVNode("h2",Vb,m.toDisplayString(t.title),1),m.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m.createTextVNode("Sluiten "),m.createVNode(m.unref(Qs),{class:"bg-primary"})])]),m.createElementVNode("div",$b,[m.renderSlot(i.$slots,"default")]),m.createElementVNode("div",Ub,[m.createElementVNode("button",{type:"button",class:"btn btn-primary",onClick:r},m.toDisplayString(t.submitButtonTitle),1),t.hideFooterCancelButton?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},"Annuleren"))])])])]))}}),Hb={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark"},Pt=m.defineComponent({__name:"BDButton",props:{size:{default:it.MD},variant:{default:Hb.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=m.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=m.computed(()=>t.to?gi:"button"),i=m.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(m.openBlock(),m.createBlock(m.resolveDynamicComponent(o.value),m.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:m.withCtx(()=>[m.renderSlot(l.$slots,"default",{},()=>[m.createTextVNode(m.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),jb={install:n=>{n.component("BDCol",Wc),n.component("BDContainer",Kc),n.component("BRow",Gc),n.component("BDButton",Pt),n.component("BDLogo",Yc),n.component("BDLink",gi),n.component("BDDropdownItem",cu),n.component("BDDropdown",ff),n.component("BDAlert",Xc),n.component("BDProfileImage",oa),n.component("BDZoomslider",Qc),n.component("BDCard",ia),n.component("BDCollapsableCard",_c),n.component("BDFormInput",eu),n.component("BDInputGroup",tu),n.component("BDFormInvalidFeedback",bi),n.component("BDBadge",nu),n.component("BDForm",ru),n.component("BDPagination",ou),n.component("BDDropzone",du),n.component("BDMarkdownEditor",uf),n.component("BDModal",pf),n.component("BDFormSelect",iu),n.component("BDUser",df),n.component("IconAttachment",Fr),n.component("IconBold",_s),n.component("IconBulletList",ta),n.component("IconCaretDown",Jc),n.component("IconCaretLeft",Zs),n.component("IconCaretRight",Xs),n.component("IconCheck",pi),n.component("IconClose",Qs),n.component("IconError",hi),n.component("IconFile",Ys),n.component("IconHyperlink",ra),n.component("IconInfo",mi),n.component("IconOrderedList",na),n.component("IconItalic",qs),n.component("IconRemove",Js),n.component("IconUnderline",ea),n.component("BDArticle",au),n.component("BDFormCheckbox",su),n.component("BDToast",lu)}};exports.BDAlert=Xc;exports.BDArticle=au;exports.BDBadge=nu;exports.BDButton=Pt;exports.BDCard=ia;exports.BDCol=Wc;exports.BDCollapsableCard=_c;exports.BDContainer=Kc;exports.BDDropdown=ff;exports.BDDropdownItem=cu;exports.BDDropzone=du;exports.BDForm=ru;exports.BDFormCheckbox=su;exports.BDFormInput=eu;exports.BDFormInvalidFeedback=bi;exports.BDFormSelect=iu;exports.BDInputGroup=tu;exports.BDLink=gi;exports.BDLogo=Yc;exports.BDMarkdownEditor=uf;exports.BDModal=pf;exports.BDPagination=ou;exports.BDProfileImage=oa;exports.BDRow=Gc;exports.BDToast=lu;exports.BDUser=df;exports.BDZoomslider=Qc;exports.IconAttachment=Fr;exports.IconBold=_s;exports.IconBulletList=ta;exports.IconCaretLeft=Zs;exports.IconCaretRight=Xs;exports.IconCheck=pi;exports.IconClose=Qs;exports.IconError=hi;exports.IconFile=Ys;exports.IconHyperlink=ra;exports.IconInfo=mi;exports.IconItalic=qs;exports.IconOrderedList=na;exports.IconRemove=Js;exports.IconUnderline=ea;exports.default=jb;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Be, computed as Ie, openBlock as de, createElementBlock as ve, normalizeClass as je, renderSlot as Ge, createElementVNode as ue, mergeProps as wn, createStaticVNode as wf, resolveComponent as Cf, createBlock as vt, resolveDynamicComponent as No, withCtx as dt, createTextVNode as
|
|
1
|
+
import { defineComponent as Be, computed as Ie, openBlock as de, createElementBlock as ve, normalizeClass as je, renderSlot as Ge, createElementVNode as ue, mergeProps as wn, createStaticVNode as wf, resolveComponent as Cf, createBlock as vt, resolveDynamicComponent as No, withCtx as dt, createTextVNode as Sn, toDisplayString as Je, createVNode as Ue, unref as Ee, createCommentVNode as Xe, getCurrentScope as Tf, onScopeDispose as kf, ref as Cn, watch as sr, getCurrentInstance as nu, nextTick as ru, withDirectives as ei, isRef as ua, vModelText as Af, withKeys as Of, useAttrs as Mf, Fragment as gi, withModifiers as dl, onMounted as vi, vShow as fl, renderList as iu, vModelSelect as If, vModelCheckbox as Rf, Teleport as ou, normalizeProps as su, guardReactiveProps as au, onBeforeUnmount as Lo, h as _n, watchEffect as Df, shallowRef as Nf, reactive as Lf, markRaw as Pf, customRef as Ff } from "vue";
|
|
2
2
|
const Bf = /* @__PURE__ */ Be({
|
|
3
3
|
__name: "BDCol",
|
|
4
4
|
props: {
|
|
@@ -325,7 +325,7 @@ const vh = /* @__PURE__ */ lt(ph, [["render", gh]]), pl = /^https:/i, ha = /* @_
|
|
|
325
325
|
return (i, o) => (de(), vt(No(t.value), wn({ class: "bd-link" }, r.value), {
|
|
326
326
|
default: dt(() => [
|
|
327
327
|
Ge(i.$slots, "default", {}, () => [
|
|
328
|
-
|
|
328
|
+
Sn(Je(e.text), 1)
|
|
329
329
|
])
|
|
330
330
|
]),
|
|
331
331
|
_: 3
|
|
@@ -828,7 +828,7 @@ const Vh = ["id"], jh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
828
828
|
setup(n) {
|
|
829
829
|
return (e, t) => (de(), ve("div", qh, [
|
|
830
830
|
Ue(Ee(fa)),
|
|
831
|
-
|
|
831
|
+
Sn(" " + Je(e.text), 1)
|
|
832
832
|
]));
|
|
833
833
|
}
|
|
834
834
|
}), _h = /* @__PURE__ */ Be({
|
|
@@ -1067,7 +1067,7 @@ const Vh = ["id"], jh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1067
1067
|
]),
|
|
1068
1068
|
t.hideBody ? Xe("", !0) : (de(), ve("div", mm, [
|
|
1069
1069
|
Ge(i.$slots, "default", {}, () => [
|
|
1070
|
-
|
|
1070
|
+
Sn(Je(t.text), 1)
|
|
1071
1071
|
])
|
|
1072
1072
|
])),
|
|
1073
1073
|
t.hideFooter ? Xe("", !0) : (de(), ve("footer", gm, [
|
|
@@ -1140,7 +1140,7 @@ const Vh = ["id"], jh = { key: 0 }, wu = /* @__PURE__ */ Be({
|
|
|
1140
1140
|
}, t), {
|
|
1141
1141
|
default: dt(() => [
|
|
1142
1142
|
Ge(i.$slots, "default", {}, () => [
|
|
1143
|
-
|
|
1143
|
+
Sn(Je(t.text), 1)
|
|
1144
1144
|
])
|
|
1145
1145
|
]),
|
|
1146
1146
|
_: 3
|
|
@@ -4347,8 +4347,8 @@ var Cu = { exports: {} };
|
|
|
4347
4347
|
return T === "." || T.toLowerCase() === "%2e";
|
|
4348
4348
|
}, Ne = function(T) {
|
|
4349
4349
|
return T = T.toLowerCase(), T === ".." || T === "%2e." || T === ".%2e" || T === "%2e%2e";
|
|
4350
|
-
}, _e = {}, wt = {}, ct = {}, Tn = {}, Y = {}, oe = {}, se = {}, Se = {}, Te = {}, We = {}, Ze = {}, ht = {}, mt = {}, it = {}, _t = {}, kn = {}, Mt = {}, Lt = {}, fr = {}, Pt = {},
|
|
4351
|
-
var re = Q || _e, Ae = 0, he = "", ze = !1, Ye = !1, Qe = !1, Bt, te, tt,
|
|
4350
|
+
}, _e = {}, wt = {}, ct = {}, Tn = {}, Y = {}, oe = {}, se = {}, Se = {}, Te = {}, We = {}, Ze = {}, ht = {}, mt = {}, it = {}, _t = {}, kn = {}, Mt = {}, Lt = {}, fr = {}, Pt = {}, hn = {}, en = function(T, _, Q, ee) {
|
|
4351
|
+
var re = Q || _e, Ae = 0, he = "", ze = !1, Ye = !1, Qe = !1, Bt, te, tt, mn;
|
|
4352
4352
|
for (Q || (T.scheme = "", T.username = "", T.password = "", T.host = null, T.port = null, T.path = [], T.query = null, T.fragment = null, T.cannotBeABaseURL = !1, _ = _.replace(k, "")), _ = _.replace(O, ""), Bt = E(_); Ae <= Bt.length; ) {
|
|
4353
4353
|
switch (te = Bt[Ae], re) {
|
|
4354
4354
|
case _e:
|
|
@@ -4383,7 +4383,7 @@ var Cu = { exports: {} };
|
|
|
4383
4383
|
if (!ee || ee.cannotBeABaseURL && te != "#")
|
|
4384
4384
|
return Z;
|
|
4385
4385
|
if (ee.cannotBeABaseURL && te == "#") {
|
|
4386
|
-
T.scheme = ee.scheme, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", T.cannotBeABaseURL = !0, re =
|
|
4386
|
+
T.scheme = ee.scheme, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", T.cannotBeABaseURL = !0, re = hn;
|
|
4387
4387
|
break;
|
|
4388
4388
|
}
|
|
4389
4389
|
re = ee.scheme == "file" ? it : oe;
|
|
@@ -4412,7 +4412,7 @@ var Cu = { exports: {} };
|
|
|
4412
4412
|
else if (te == "?")
|
|
4413
4413
|
T.username = ee.username, T.password = ee.password, T.host = ee.host, T.port = ee.port, T.path = ee.path.slice(), T.query = "", re = Pt;
|
|
4414
4414
|
else if (te == "#")
|
|
4415
|
-
T.username = ee.username, T.password = ee.password, T.host = ee.host, T.port = ee.port, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", re =
|
|
4415
|
+
T.username = ee.username, T.password = ee.password, T.host = ee.host, T.port = ee.port, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", re = hn;
|
|
4416
4416
|
else {
|
|
4417
4417
|
T.username = ee.username, T.password = ee.password, T.host = ee.host, T.port = ee.port, T.path = ee.path.slice(), T.path.pop(), re = Lt;
|
|
4418
4418
|
continue;
|
|
@@ -4467,8 +4467,8 @@ var Cu = { exports: {} };
|
|
|
4467
4467
|
} else if (te == ":" && !Ye) {
|
|
4468
4468
|
if (he == "")
|
|
4469
4469
|
return ne;
|
|
4470
|
-
if (
|
|
4471
|
-
return
|
|
4470
|
+
if (mn = A(T, he), mn)
|
|
4471
|
+
return mn;
|
|
4472
4472
|
if (he = "", re = mt, Q == ht)
|
|
4473
4473
|
return;
|
|
4474
4474
|
} else if (te == S || te == "/" || te == "?" || te == "#" || te == "\\" && G(T)) {
|
|
@@ -4476,8 +4476,8 @@ var Cu = { exports: {} };
|
|
|
4476
4476
|
return ne;
|
|
4477
4477
|
if (Q && he == "" && (q(T) || T.port !== null))
|
|
4478
4478
|
return;
|
|
4479
|
-
if (
|
|
4480
|
-
return
|
|
4479
|
+
if (mn = A(T, he), mn)
|
|
4480
|
+
return mn;
|
|
4481
4481
|
if (he = "", re = Mt, Q)
|
|
4482
4482
|
return;
|
|
4483
4483
|
continue;
|
|
@@ -4510,7 +4510,7 @@ var Cu = { exports: {} };
|
|
|
4510
4510
|
else if (te == "?")
|
|
4511
4511
|
T.host = ee.host, T.path = ee.path.slice(), T.query = "", re = Pt;
|
|
4512
4512
|
else if (te == "#")
|
|
4513
|
-
T.host = ee.host, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", re =
|
|
4513
|
+
T.host = ee.host, T.path = ee.path.slice(), T.query = ee.query, T.fragment = "", re = hn;
|
|
4514
4514
|
else {
|
|
4515
4515
|
De(Bt.slice(Ae).join("")) || (T.host = ee.host, T.path = ee.path.slice(), Ve(T)), re = Lt;
|
|
4516
4516
|
continue;
|
|
@@ -4536,8 +4536,8 @@ var Cu = { exports: {} };
|
|
|
4536
4536
|
return;
|
|
4537
4537
|
re = Mt;
|
|
4538
4538
|
} else {
|
|
4539
|
-
if (
|
|
4540
|
-
return
|
|
4539
|
+
if (mn = A(T, he), mn)
|
|
4540
|
+
return mn;
|
|
4541
4541
|
if (T.host == "localhost" && (T.host = ""), Q)
|
|
4542
4542
|
return;
|
|
4543
4543
|
he = "", re = Mt;
|
|
@@ -4553,7 +4553,7 @@ var Cu = { exports: {} };
|
|
|
4553
4553
|
} else if (!Q && te == "?")
|
|
4554
4554
|
T.query = "", re = Pt;
|
|
4555
4555
|
else if (!Q && te == "#")
|
|
4556
|
-
T.fragment = "", re =
|
|
4556
|
+
T.fragment = "", re = hn;
|
|
4557
4557
|
else if (te != S && (re = Lt, te != "/"))
|
|
4558
4558
|
continue;
|
|
4559
4559
|
break;
|
|
@@ -4562,17 +4562,17 @@ var Cu = { exports: {} };
|
|
|
4562
4562
|
if (Ne(he) ? (Ve(T), te != "/" && !(te == "\\" && G(T)) && T.path.push("")) : He(he) ? te != "/" && !(te == "\\" && G(T)) && T.path.push("") : (T.scheme == "file" && !T.path.length && ge(he) && (T.host && (T.host = ""), he = he.charAt(0) + ":"), T.path.push(he)), he = "", T.scheme == "file" && (te == S || te == "?" || te == "#"))
|
|
4563
4563
|
for (; T.path.length > 1 && T.path[0] === ""; )
|
|
4564
4564
|
T.path.shift();
|
|
4565
|
-
te == "?" ? (T.query = "", re = Pt) : te == "#" && (T.fragment = "", re =
|
|
4565
|
+
te == "?" ? (T.query = "", re = Pt) : te == "#" && (T.fragment = "", re = hn);
|
|
4566
4566
|
} else
|
|
4567
4567
|
he += V(te, H);
|
|
4568
4568
|
break;
|
|
4569
4569
|
case fr:
|
|
4570
|
-
te == "?" ? (T.query = "", re = Pt) : te == "#" ? (T.fragment = "", re =
|
|
4570
|
+
te == "?" ? (T.query = "", re = Pt) : te == "#" ? (T.fragment = "", re = hn) : te != S && (T.path[0] += V(te, D));
|
|
4571
4571
|
break;
|
|
4572
4572
|
case Pt:
|
|
4573
|
-
!Q && te == "#" ? (T.fragment = "", re =
|
|
4573
|
+
!Q && te == "#" ? (T.fragment = "", re = hn) : te != S && (te == "'" && G(T) ? T.query += "%27" : te == "#" ? T.query += "%23" : T.query += V(te, D));
|
|
4574
4574
|
break;
|
|
4575
|
-
case
|
|
4575
|
+
case hn:
|
|
4576
4576
|
te != S && (T.fragment += V(te, N));
|
|
4577
4577
|
break;
|
|
4578
4578
|
}
|
|
@@ -4712,7 +4712,7 @@ var Cu = { exports: {} };
|
|
|
4712
4712
|
_.fragment = null;
|
|
4713
4713
|
return;
|
|
4714
4714
|
}
|
|
4715
|
-
T.charAt(0) == "#" && (T = T.slice(1)), _.fragment = "", en(_, T,
|
|
4715
|
+
T.charAt(0) == "#" && (T = T.slice(1)), _.fragment = "", en(_, T, hn);
|
|
4716
4716
|
})
|
|
4717
4717
|
}), h(qo, "toJSON", function() {
|
|
4718
4718
|
return Ei.call(this);
|
|
@@ -7152,17 +7152,17 @@ const vl = /* @__PURE__ */ Tm(km), Am = { class: "fallback" }, Om = /* @__PURE__
|
|
|
7152
7152
|
default: dt(() => [
|
|
7153
7153
|
ue("div", Am, [
|
|
7154
7154
|
Om,
|
|
7155
|
-
|
|
7155
|
+
Sn(" test "),
|
|
7156
7156
|
ue("label", Mm, [
|
|
7157
7157
|
Ue(Ee(zi)),
|
|
7158
|
-
|
|
7158
|
+
Sn(" " + Je(t.buttonText), 1)
|
|
7159
7159
|
])
|
|
7160
7160
|
]),
|
|
7161
7161
|
ue("div", Im, [
|
|
7162
7162
|
Ue(Ee(on), su(au(r.value)), {
|
|
7163
7163
|
default: dt(() => [
|
|
7164
7164
|
Ue(Ee(zi)),
|
|
7165
|
-
|
|
7165
|
+
Sn(" " + Je(t.buttonText), 1)
|
|
7166
7166
|
]),
|
|
7167
7167
|
_: 1
|
|
7168
7168
|
}, 16)
|
|
@@ -12223,7 +12223,7 @@ const yt = function(n) {
|
|
|
12223
12223
|
return e && e.nodeType == 11 ? e.host : e;
|
|
12224
12224
|
};
|
|
12225
12225
|
let Ll = null;
|
|
12226
|
-
const
|
|
12226
|
+
const yn = function(n, e, t) {
|
|
12227
12227
|
let r = Ll || (Ll = document.createRange());
|
|
12228
12228
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
12229
12229
|
}, lr = function(n, e, t, r) {
|
|
@@ -12292,9 +12292,9 @@ function zg(n, e, t) {
|
|
|
12292
12292
|
return { node: r.startContainer, offset: r.startOffset };
|
|
12293
12293
|
}
|
|
12294
12294
|
}
|
|
12295
|
-
const
|
|
12295
|
+
const un = typeof navigator < "u" ? navigator : null, Fl = typeof document < "u" ? document : null, Vn = un && un.userAgent || "", zs = /Edge\/(\d+)/.exec(Vn), ed = /MSIE \d/.exec(Vn), $s = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vn), Tt = !!(ed || $s || zs), Bn = ed ? document.documentMode : $s ? +$s[1] : zs ? +zs[1] : 0, Zt = !Tt && /gecko\/(\d+)/i.test(Vn);
|
|
12296
12296
|
Zt && +(/Firefox\/(\d+)/.exec(Vn) || [0, 0])[1];
|
|
12297
|
-
const Hs = !Tt && /Chrome\/(\d+)/.exec(Vn), ft = !!Hs, $g = Hs ? +Hs[1] : 0, bt = !Tt && !!
|
|
12297
|
+
const Hs = !Tt && /Chrome\/(\d+)/.exec(Vn), ft = !!Hs, $g = Hs ? +Hs[1] : 0, bt = !Tt && !!un && /Apple Computer/.test(un.vendor), Mr = bt && (/Mobile\/\w+/.test(Vn) || !!un && un.maxTouchPoints > 2), Ht = Mr || (un ? /Mac/.test(un.platform) : !1), Hg = un ? /Win/.test(un.platform) : !1, Jt = /Android \d/.test(Vn), yi = !!Fl && "webkitFontSmoothing" in Fl.documentElement.style, Ug = yi ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
12298
12298
|
function Vg(n) {
|
|
12299
12299
|
return {
|
|
12300
12300
|
left: 0,
|
|
@@ -12303,7 +12303,7 @@ function Vg(n) {
|
|
|
12303
12303
|
bottom: n.documentElement.clientHeight
|
|
12304
12304
|
};
|
|
12305
12305
|
}
|
|
12306
|
-
function
|
|
12306
|
+
function gn(n, e) {
|
|
12307
12307
|
return typeof n == "number" ? n : n[e];
|
|
12308
12308
|
}
|
|
12309
12309
|
function jg(n) {
|
|
@@ -12321,7 +12321,7 @@ function Bl(n, e, t) {
|
|
|
12321
12321
|
if (s.nodeType != 1)
|
|
12322
12322
|
continue;
|
|
12323
12323
|
let l = s, a = l == o.body, c = a ? Vg(o) : jg(l), u = 0, d = 0;
|
|
12324
|
-
if (e.top < c.top +
|
|
12324
|
+
if (e.top < c.top + gn(r, "top") ? d = -(c.top - e.top + gn(i, "top")) : e.bottom > c.bottom - gn(r, "bottom") && (d = e.bottom - e.top > c.bottom - c.top ? e.top + gn(i, "top") - c.top : e.bottom - c.bottom + gn(i, "bottom")), e.left < c.left + gn(r, "left") ? u = -(c.left - e.left + gn(i, "left")) : e.right > c.right - gn(r, "right") && (u = e.right - c.right + gn(i, "right")), u || d)
|
|
12325
12325
|
if (a)
|
|
12326
12326
|
o.defaultView.scrollBy(u, d);
|
|
12327
12327
|
else {
|
|
@@ -12384,7 +12384,7 @@ function rd(n, e) {
|
|
|
12384
12384
|
if (u.nodeType == 1)
|
|
12385
12385
|
f = u.getClientRects();
|
|
12386
12386
|
else if (u.nodeType == 3)
|
|
12387
|
-
f =
|
|
12387
|
+
f = yn(u).getClientRects();
|
|
12388
12388
|
else
|
|
12389
12389
|
continue;
|
|
12390
12390
|
for (let p = 0; p < f.length; p++) {
|
|
@@ -12505,11 +12505,11 @@ function od(n, e, t) {
|
|
|
12505
12505
|
let { node: r, offset: i, atom: o } = n.docView.domFromPos(e, t < 0 ? -1 : 1), s = yi || Zt;
|
|
12506
12506
|
if (r.nodeType == 3)
|
|
12507
12507
|
if (s && (qg.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
|
|
12508
|
-
let a = Mn(
|
|
12508
|
+
let a = Mn(yn(r, i, i), t);
|
|
12509
12509
|
if (Zt && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
|
|
12510
|
-
let c = Mn(
|
|
12510
|
+
let c = Mn(yn(r, i - 1, i - 1), -1);
|
|
12511
12511
|
if (c.top == a.top) {
|
|
12512
|
-
let u = Mn(
|
|
12512
|
+
let u = Mn(yn(r, i, i + 1), -1);
|
|
12513
12513
|
if (u.top != a.top)
|
|
12514
12514
|
return zr(u, u.left < c.left);
|
|
12515
12515
|
}
|
|
@@ -12517,7 +12517,7 @@ function od(n, e, t) {
|
|
|
12517
12517
|
return a;
|
|
12518
12518
|
} else {
|
|
12519
12519
|
let a = i, c = i, u = t < 0 ? 1 : -1;
|
|
12520
|
-
return t < 0 && !i ? (c++, u = -1) : t >= 0 && i == r.nodeValue.length ? (a--, u = 1) : t < 0 ? a-- : c++, zr(Mn(
|
|
12520
|
+
return t < 0 && !i ? (c++, u = -1) : t >= 0 && i == r.nodeValue.length ? (a--, u = 1) : t < 0 ? a-- : c++, zr(Mn(yn(r, a, c), u), u < 0);
|
|
12521
12521
|
}
|
|
12522
12522
|
if (!n.state.doc.resolve(e - (o || 0)).parent.inlineContent) {
|
|
12523
12523
|
if (o == null && i && (t < 0 || i == an(r))) {
|
|
@@ -12533,7 +12533,7 @@ function od(n, e, t) {
|
|
|
12533
12533
|
return fs(r.getBoundingClientRect(), t >= 0);
|
|
12534
12534
|
}
|
|
12535
12535
|
if (o == null && i && (t < 0 || i == an(r))) {
|
|
12536
|
-
let a = r.childNodes[i - 1], c = a.nodeType == 3 ?
|
|
12536
|
+
let a = r.childNodes[i - 1], c = a.nodeType == 3 ? yn(a, an(a) - (s ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
12537
12537
|
if (c)
|
|
12538
12538
|
return zr(Mn(c, 1), !1);
|
|
12539
12539
|
}
|
|
@@ -12541,11 +12541,11 @@ function od(n, e, t) {
|
|
|
12541
12541
|
let a = r.childNodes[i];
|
|
12542
12542
|
for (; a.pmViewDesc && a.pmViewDesc.ignoreForCoords; )
|
|
12543
12543
|
a = a.nextSibling;
|
|
12544
|
-
let c = a ? a.nodeType == 3 ?
|
|
12544
|
+
let c = a ? a.nodeType == 3 ? yn(a, 0, s ? 0 : 1) : a.nodeType == 1 ? a : null : null;
|
|
12545
12545
|
if (c)
|
|
12546
12546
|
return zr(Mn(c, -1), !0);
|
|
12547
12547
|
}
|
|
12548
|
-
return zr(Mn(r.nodeType == 3 ?
|
|
12548
|
+
return zr(Mn(r.nodeType == 3 ? yn(r) : r, -t), t >= 0);
|
|
12549
12549
|
}
|
|
12550
12550
|
function zr(n, e) {
|
|
12551
12551
|
if (n.width == 0)
|
|
@@ -12588,7 +12588,7 @@ function _g(n, e, t) {
|
|
|
12588
12588
|
if (l.nodeType == 1)
|
|
12589
12589
|
a = l.getClientRects();
|
|
12590
12590
|
else if (l.nodeType == 3)
|
|
12591
|
-
a =
|
|
12591
|
+
a = yn(l, 0, l.nodeValue.length).getClientRects();
|
|
12592
12592
|
else
|
|
12593
12593
|
continue;
|
|
12594
12594
|
for (let c = 0; c < a.length; c++) {
|
|
@@ -12621,7 +12621,7 @@ let $l = null, Hl = null, Ul = !1;
|
|
|
12621
12621
|
function n1(n, e, t) {
|
|
12622
12622
|
return $l == e && Hl == t ? Ul : ($l = e, Hl = t, Ul = t == "up" || t == "down" ? _g(n, e, t) : t1(n, e, t));
|
|
12623
12623
|
}
|
|
12624
|
-
const Vt = 0, Vl = 1, Zn = 2,
|
|
12624
|
+
const Vt = 0, Vl = 1, Zn = 2, dn = 3;
|
|
12625
12625
|
class bi {
|
|
12626
12626
|
constructor(e, t, r, i) {
|
|
12627
12627
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Vt, r.pmViewDesc = this;
|
|
@@ -12931,10 +12931,10 @@ class bi {
|
|
|
12931
12931
|
if (r == s ? e <= s && t >= r : e < s && t > r) {
|
|
12932
12932
|
let l = r + o.border, a = s - o.border;
|
|
12933
12933
|
if (e >= l && t <= a) {
|
|
12934
|
-
this.dirty = e == r || t == s ? Zn : Vl, e == l && t == a && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty =
|
|
12934
|
+
this.dirty = e == r || t == s ? Zn : Vl, e == l && t == a && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = dn : o.markDirty(e - l, t - l);
|
|
12935
12935
|
return;
|
|
12936
12936
|
} else
|
|
12937
|
-
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Zn :
|
|
12937
|
+
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Zn : dn;
|
|
12938
12938
|
}
|
|
12939
12939
|
r = s;
|
|
12940
12940
|
}
|
|
@@ -13020,10 +13020,10 @@ class cr extends bi {
|
|
|
13020
13020
|
return (!s || !s.dom) && (s = ln.renderSpec(document, t.type.spec.toDOM(t, r))), new cr(e, t, s.dom, s.contentDOM || s.dom);
|
|
13021
13021
|
}
|
|
13022
13022
|
parseRule() {
|
|
13023
|
-
return this.dirty &
|
|
13023
|
+
return this.dirty & dn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
13024
13024
|
}
|
|
13025
13025
|
matchesMark(e) {
|
|
13026
|
-
return this.dirty !=
|
|
13026
|
+
return this.dirty != dn && this.mark.eq(e);
|
|
13027
13027
|
}
|
|
13028
13028
|
markDirty(e, t) {
|
|
13029
13029
|
if (super.markDirty(e, t), this.dirty != Vt) {
|
|
@@ -13145,7 +13145,7 @@ class zn extends bi {
|
|
|
13145
13145
|
// If this desc must be updated to match the given node decoration,
|
|
13146
13146
|
// do so and return true.
|
|
13147
13147
|
update(e, t, r, i) {
|
|
13148
|
-
return this.dirty ==
|
|
13148
|
+
return this.dirty == dn || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
|
|
13149
13149
|
}
|
|
13150
13150
|
updateInner(e, t, r, i) {
|
|
13151
13151
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Vt;
|
|
@@ -13184,7 +13184,7 @@ class Uo extends zn {
|
|
|
13184
13184
|
return { skip: e || !0 };
|
|
13185
13185
|
}
|
|
13186
13186
|
update(e, t, r, i) {
|
|
13187
|
-
return this.dirty ==
|
|
13187
|
+
return this.dirty == dn || this.dirty != Vt && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Vt || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Vt, !0);
|
|
13188
13188
|
}
|
|
13189
13189
|
inParent() {
|
|
13190
13190
|
let e = this.parent.contentDOM;
|
|
@@ -13207,7 +13207,7 @@ class Uo extends zn {
|
|
|
13207
13207
|
return new Uo(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
13208
13208
|
}
|
|
13209
13209
|
markDirty(e, t) {
|
|
13210
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
13210
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = dn);
|
|
13211
13211
|
}
|
|
13212
13212
|
get domAtom() {
|
|
13213
13213
|
return !1;
|
|
@@ -13235,7 +13235,7 @@ class i1 extends zn {
|
|
|
13235
13235
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
13236
13236
|
// updates the children.
|
|
13237
13237
|
update(e, t, r, i) {
|
|
13238
|
-
if (this.dirty ==
|
|
13238
|
+
if (this.dirty == dn)
|
|
13239
13239
|
return !1;
|
|
13240
13240
|
if (this.spec.update) {
|
|
13241
13241
|
let o = this.spec.update(e, t, r);
|
|
@@ -13415,7 +13415,7 @@ class s1 {
|
|
|
13415
13415
|
}
|
|
13416
13416
|
updateNodeAt(e, t, r, i, o) {
|
|
13417
13417
|
let s = this.top.children[i];
|
|
13418
|
-
return s.dirty ==
|
|
13418
|
+
return s.dirty == dn && s.dom == s.contentDOM && (s.dirty = Zn), s.update(e, t, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
13419
13419
|
}
|
|
13420
13420
|
findIndexWithChild(e) {
|
|
13421
13421
|
for (; ; ) {
|
|
@@ -13443,7 +13443,7 @@ class s1 {
|
|
|
13443
13443
|
let c = this.preMatch.matched.get(a);
|
|
13444
13444
|
if (c != null && c != o)
|
|
13445
13445
|
return !1;
|
|
13446
|
-
let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty !=
|
|
13446
|
+
let u = a.dom, d, f = this.isLocked(u) && !(e.isText && a.node && a.node.isText && a.nodeDOM.nodeValue == e.text && a.dirty != dn && Vs(t, a.outerDeco));
|
|
13447
13447
|
if (!f && a.update(e, t, r, i))
|
|
13448
13448
|
return this.destroyBetween(this.index, l), a.dom != u && (this.changed = !0), this.index++, !0;
|
|
13449
13449
|
if (!f && (d = this.recreateWrapper(a, e, t, r, i, s)))
|
|
@@ -16952,7 +16952,7 @@ class Er {
|
|
|
16952
16952
|
type: ys(s.name, this.schema)
|
|
16953
16953
|
}, a = [], c = me(s, "addKeyboardShortcuts", l);
|
|
16954
16954
|
let u = {};
|
|
16955
|
-
if (s.type === "mark" && s.config.exitable && (u.ArrowRight = () =>
|
|
16955
|
+
if (s.type === "mark" && s.config.exitable && (u.ArrowRight = () => fn.handleExit({ editor: e, mark: s })), c) {
|
|
16956
16956
|
const m = Object.fromEntries(Object.entries(c()).map(([g, x]) => [g, () => x({ editor: e })]));
|
|
16957
16957
|
u = { ...u, ...m };
|
|
16958
16958
|
}
|
|
@@ -17206,7 +17206,7 @@ const yv = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
17206
17206
|
function Ra(n) {
|
|
17207
17207
|
return n instanceof Fe;
|
|
17208
17208
|
}
|
|
17209
|
-
function
|
|
17209
|
+
function xn(n = 0, e = 0, t = 0) {
|
|
17210
17210
|
return Math.min(Math.max(n, e), t);
|
|
17211
17211
|
}
|
|
17212
17212
|
function jd(n, e = null) {
|
|
@@ -17218,7 +17218,7 @@ function jd(n, e = null) {
|
|
|
17218
17218
|
if (e === "end")
|
|
17219
17219
|
return r;
|
|
17220
17220
|
const i = t.from, o = r.to;
|
|
17221
|
-
return e === "all" ? Fe.create(n,
|
|
17221
|
+
return e === "all" ? Fe.create(n, xn(0, i, o), xn(n.content.size, i, o)) : Fe.create(n, xn(e, i, o), xn(e, i, o));
|
|
17222
17222
|
}
|
|
17223
17223
|
function Da() {
|
|
17224
17224
|
return [
|
|
@@ -17595,7 +17595,7 @@ function oy(n) {
|
|
|
17595
17595
|
return n instanceof we;
|
|
17596
17596
|
}
|
|
17597
17597
|
function Jd(n, e, t) {
|
|
17598
|
-
const i = n.state.doc.content.size, o =
|
|
17598
|
+
const i = n.state.doc.content.size, o = xn(e, 0, i), s = xn(t, 0, i), l = n.coordsAtPos(o), a = n.coordsAtPos(s, -1), c = Math.min(l.top, a.top), u = Math.max(l.bottom, a.bottom), d = Math.min(l.left, a.left), f = Math.max(l.right, a.right), p = f - d, h = u - c, x = {
|
|
17599
17599
|
top: c,
|
|
17600
17600
|
bottom: u,
|
|
17601
17601
|
left: d,
|
|
@@ -17660,13 +17660,13 @@ const ay = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
17660
17660
|
return o.isTextblock ? i().command(({ commands: s }) => pc(o, e)(t) ? !0 : s.clearNodes()).command(({ state: s }) => pc(o, e)(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
17661
17661
|
}, uy = (n) => ({ tr: e, dispatch: t }) => {
|
|
17662
17662
|
if (t) {
|
|
17663
|
-
const { doc: r } = e, i =
|
|
17663
|
+
const { doc: r } = e, i = xn(n, 0, r.content.size), o = we.create(r, i);
|
|
17664
17664
|
e.setSelection(o);
|
|
17665
17665
|
}
|
|
17666
17666
|
return !0;
|
|
17667
17667
|
}, dy = (n) => ({ tr: e, dispatch: t }) => {
|
|
17668
17668
|
if (t) {
|
|
17669
|
-
const { doc: r } = e, { from: i, to: o } = typeof n == "number" ? { from: n, to: n } : n, s = Fe.atStart(r).from, l = Fe.atEnd(r).to, a =
|
|
17669
|
+
const { doc: r } = e, { from: i, to: o } = typeof n == "number" ? { from: n, to: n } : n, s = Fe.atStart(r).from, l = Fe.atEnd(r).to, a = xn(i, s, l), c = xn(o, s, l), u = Fe.create(r, a, c);
|
|
17670
17670
|
e.setSelection(u);
|
|
17671
17671
|
}
|
|
17672
17672
|
return !0;
|
|
@@ -18462,7 +18462,7 @@ function eo(n) {
|
|
|
18462
18462
|
}
|
|
18463
18463
|
});
|
|
18464
18464
|
}
|
|
18465
|
-
class
|
|
18465
|
+
class fn {
|
|
18466
18466
|
constructor(e = {}) {
|
|
18467
18467
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
18468
18468
|
name: this.name,
|
|
@@ -18478,7 +18478,7 @@ class pn {
|
|
|
18478
18478
|
})) || {};
|
|
18479
18479
|
}
|
|
18480
18480
|
static create(e = {}) {
|
|
18481
|
-
return new
|
|
18481
|
+
return new fn(e);
|
|
18482
18482
|
}
|
|
18483
18483
|
configure(e = {}) {
|
|
18484
18484
|
const t = this.extend();
|
|
@@ -18488,7 +18488,7 @@ class pn {
|
|
|
18488
18488
|
})), t;
|
|
18489
18489
|
}
|
|
18490
18490
|
extend(e = {}) {
|
|
18491
|
-
const t = new
|
|
18491
|
+
const t = new fn(e);
|
|
18492
18492
|
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = Le(me(t, "addOptions", {
|
|
18493
18493
|
name: t.name
|
|
18494
18494
|
})), t.storage = Le(me(t, "addStorage", {
|
|
@@ -18566,7 +18566,7 @@ var kt = "top", Kt = "bottom", Gt = "right", At = "left", Xo = "auto", xi = [kt,
|
|
|
18566
18566
|
}, []), Xd = /* @__PURE__ */ [].concat(xi, [Xo]).reduce(function(n, e) {
|
|
18567
18567
|
return n.concat([e, e + "-" + Rr, e + "-" + ui]);
|
|
18568
18568
|
}, []), By = "beforeRead", zy = "read", $y = "afterRead", Hy = "beforeMain", Uy = "main", Vy = "afterMain", jy = "beforeWrite", Wy = "write", Ky = "afterWrite", Qs = [By, zy, $y, Hy, Uy, Vy, jy, Wy, Ky];
|
|
18569
|
-
function
|
|
18569
|
+
function pn(n) {
|
|
18570
18570
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
18571
18571
|
}
|
|
18572
18572
|
function Nt(n) {
|
|
@@ -18596,7 +18596,7 @@ function Gy(n) {
|
|
|
18596
18596
|
var e = n.state;
|
|
18597
18597
|
Object.keys(e.elements).forEach(function(t) {
|
|
18598
18598
|
var r = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
|
|
18599
|
-
!Dt(o) || !
|
|
18599
|
+
!Dt(o) || !pn(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
|
|
18600
18600
|
var l = i[s];
|
|
18601
18601
|
l === !1 ? o.removeAttribute(s) : o.setAttribute(s, l === !0 ? "" : l);
|
|
18602
18602
|
}));
|
|
@@ -18620,7 +18620,7 @@ function Jy(n) {
|
|
|
18620
18620
|
var i = e.elements[r], o = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), l = s.reduce(function(a, c) {
|
|
18621
18621
|
return a[c] = "", a;
|
|
18622
18622
|
}, {});
|
|
18623
|
-
!Dt(i) || !
|
|
18623
|
+
!Dt(i) || !pn(i) || (Object.assign(i.style, l), Object.keys(o).forEach(function(a) {
|
|
18624
18624
|
i.removeAttribute(a);
|
|
18625
18625
|
}));
|
|
18626
18626
|
});
|
|
@@ -18690,7 +18690,7 @@ function Qt(n) {
|
|
|
18690
18690
|
return Nt(n).getComputedStyle(n);
|
|
18691
18691
|
}
|
|
18692
18692
|
function Yy(n) {
|
|
18693
|
-
return ["table", "td", "th"].indexOf(
|
|
18693
|
+
return ["table", "td", "th"].indexOf(pn(n)) >= 0;
|
|
18694
18694
|
}
|
|
18695
18695
|
function Wn(n) {
|
|
18696
18696
|
return ((ur(n) ? n.ownerDocument : (
|
|
@@ -18699,7 +18699,7 @@ function Wn(n) {
|
|
|
18699
18699
|
)) || window.document).documentElement;
|
|
18700
18700
|
}
|
|
18701
18701
|
function Zo(n) {
|
|
18702
|
-
return
|
|
18702
|
+
return pn(n) === "html" ? n : (
|
|
18703
18703
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
18704
18704
|
// $FlowFixMe[incompatible-return]
|
|
18705
18705
|
// $FlowFixMe[prop-missing]
|
|
@@ -18722,7 +18722,7 @@ function Xy(n) {
|
|
|
18722
18722
|
return null;
|
|
18723
18723
|
}
|
|
18724
18724
|
var i = Zo(n);
|
|
18725
|
-
for (Pa(i) && (i = i.host); Dt(i) && ["html", "body"].indexOf(
|
|
18725
|
+
for (Pa(i) && (i = i.host); Dt(i) && ["html", "body"].indexOf(pn(i)) < 0; ) {
|
|
18726
18726
|
var o = Qt(i);
|
|
18727
18727
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
18728
18728
|
return i;
|
|
@@ -18733,7 +18733,7 @@ function Xy(n) {
|
|
|
18733
18733
|
function Si(n) {
|
|
18734
18734
|
for (var e = Nt(n), t = Ec(n); t && Yy(t) && Qt(t).position === "static"; )
|
|
18735
18735
|
t = Ec(t);
|
|
18736
|
-
return t && (
|
|
18736
|
+
return t && (pn(t) === "html" || pn(t) === "body" && Qt(t).position === "static") ? e : t || Xy(n) || e;
|
|
18737
18737
|
}
|
|
18738
18738
|
function Ba(n) {
|
|
18739
18739
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
@@ -18973,7 +18973,7 @@ function Ha(n) {
|
|
|
18973
18973
|
return /auto|scroll|overlay|hidden/.test(t + i + r);
|
|
18974
18974
|
}
|
|
18975
18975
|
function nf(n) {
|
|
18976
|
-
return ["html", "body", "#document"].indexOf(
|
|
18976
|
+
return ["html", "body", "#document"].indexOf(pn(n)) >= 0 ? n.ownerDocument.body : Dt(n) && Ha(n) ? n : nf(Zo(n));
|
|
18977
18977
|
}
|
|
18978
18978
|
function Xr(n, e) {
|
|
18979
18979
|
var t;
|
|
@@ -19002,7 +19002,7 @@ function Tc(n, e, t) {
|
|
|
19002
19002
|
function f2(n) {
|
|
19003
19003
|
var e = Xr(Zo(n)), t = ["absolute", "fixed"].indexOf(Qt(n).position) >= 0, r = t && Dt(n) ? Si(n) : n;
|
|
19004
19004
|
return ur(r) ? e.filter(function(i) {
|
|
19005
|
-
return ur(i) && qd(i, r) &&
|
|
19005
|
+
return ur(i) && qd(i, r) && pn(i) !== "body";
|
|
19006
19006
|
}) : [];
|
|
19007
19007
|
}
|
|
19008
19008
|
function p2(n, e, t, r) {
|
|
@@ -19311,7 +19311,7 @@ function R2(n, e, t) {
|
|
|
19311
19311
|
x: 0,
|
|
19312
19312
|
y: 0
|
|
19313
19313
|
};
|
|
19314
|
-
return (r || !r && !t) && ((
|
|
19314
|
+
return (r || !r && !t) && ((pn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
19315
19315
|
Ha(o)) && (l = M2(e)), Dt(e) ? (a = Nr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = $a(o))), {
|
|
19316
19316
|
x: s.left + l.scrollLeft - a.x,
|
|
19317
19317
|
y: s.top + l.scrollTop - a.y,
|
|
@@ -19743,7 +19743,7 @@ process.env.NODE_ENV !== "production" && lb();
|
|
|
19743
19743
|
function lb() {
|
|
19744
19744
|
pi = /* @__PURE__ */ new Set();
|
|
19745
19745
|
}
|
|
19746
|
-
function
|
|
19746
|
+
function bn(n, e) {
|
|
19747
19747
|
if (n && !pi.has(e)) {
|
|
19748
19748
|
var t;
|
|
19749
19749
|
pi.add(e), (t = console).warn.apply(t, df(e));
|
|
@@ -19875,7 +19875,7 @@ function hf(n, e) {
|
|
|
19875
19875
|
var i = G2(Rt, Object.keys(ff)), o = !K2(i, r);
|
|
19876
19876
|
o && (o = e.filter(function(s) {
|
|
19877
19877
|
return s.name === r;
|
|
19878
|
-
}).length === 0),
|
|
19878
|
+
}).length === 0), bn(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
19879
19879
|
|
|
19880
19880
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
19881
19881
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -20220,7 +20220,7 @@ function gb(n, e) {
|
|
|
20220
20220
|
}
|
|
20221
20221
|
function V() {
|
|
20222
20222
|
var Y = y.props.appendTo, oe, se = U();
|
|
20223
|
-
y.props.interactive && Y === lf || Y === "parent" ? oe = se.parentNode : oe = cf(Y, [se]), oe.contains(C) || oe.appendChild(C), y.state.isMounted = !0, H(), process.env.NODE_ENV !== "production" &&
|
|
20223
|
+
y.props.interactive && Y === lf || Y === "parent" ? oe = se.parentNode : oe = cf(Y, [se]), oe.contains(C) || oe.appendChild(C), y.state.isMounted = !0, H(), process.env.NODE_ENV !== "production" && bn(y.props.interactive && Y === Rt.appendTo && se.nextElementSibling !== C, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
20224
20224
|
|
|
20225
20225
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
20226
20226
|
|
|
@@ -20262,7 +20262,7 @@ function gb(n, e) {
|
|
|
20262
20262
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
|
|
20263
20263
|
}
|
|
20264
20264
|
function Ve(Y) {
|
|
20265
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
20265
|
+
if (process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("setProps")), !y.state.isDestroyed) {
|
|
20266
20266
|
j("onBeforeUpdate", [y, Y]), v();
|
|
20267
20267
|
var oe = y.props, se = $c(n, Object.assign({}, oe, Lc(Y), {
|
|
20268
20268
|
ignoreAttributes: !0
|
|
@@ -20280,7 +20280,7 @@ function gb(n, e) {
|
|
|
20280
20280
|
});
|
|
20281
20281
|
}
|
|
20282
20282
|
function Ne() {
|
|
20283
|
-
process.env.NODE_ENV !== "production" &&
|
|
20283
|
+
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("show"));
|
|
20284
20284
|
var Y = y.state.isVisible, oe = y.state.isDestroyed, se = !y.state.isEnabled, Se = sn.isTouch && !y.props.touch, Te = ws(y.props.duration, 0, Rt.duration);
|
|
20285
20285
|
if (!(Y || oe || se || Se) && !U().hasAttribute("disabled") && (j("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
20286
20286
|
if (y.state.isVisible = !0, L() && (C.style.visibility = "visible"), ne(), ke(), y.state.isMounted || (C.style.transition = "none"), L()) {
|
|
@@ -20302,7 +20302,7 @@ function gb(n, e) {
|
|
|
20302
20302
|
}
|
|
20303
20303
|
}
|
|
20304
20304
|
function _e() {
|
|
20305
|
-
process.env.NODE_ENV !== "production" &&
|
|
20305
|
+
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("hide"));
|
|
20306
20306
|
var Y = !y.state.isVisible, oe = y.state.isDestroyed, se = !y.state.isEnabled, Se = ws(y.props.duration, 1, Rt.duration);
|
|
20307
20307
|
if (!(Y || oe || se) && (j("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
20308
20308
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, L() && (C.style.visibility = "hidden"), be(), Me(), ne(!0), L()) {
|
|
@@ -20313,17 +20313,17 @@ function gb(n, e) {
|
|
|
20313
20313
|
}
|
|
20314
20314
|
}
|
|
20315
20315
|
function wt(Y) {
|
|
20316
|
-
process.env.NODE_ENV !== "production" &&
|
|
20316
|
+
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("hideWithInteractivity")), J().addEventListener("mousemove", h), Nc(Oi, h), h(Y);
|
|
20317
20317
|
}
|
|
20318
20318
|
function ct() {
|
|
20319
|
-
process.env.NODE_ENV !== "production" &&
|
|
20319
|
+
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (W(), K().forEach(function(Y) {
|
|
20320
20320
|
Y._tippy.unmount();
|
|
20321
20321
|
}), C.parentNode && C.parentNode.removeChild(C), ks = ks.filter(function(Y) {
|
|
20322
20322
|
return Y !== y;
|
|
20323
20323
|
}), y.state.isMounted = !1, j("onHidden", [y]));
|
|
20324
20324
|
}
|
|
20325
20325
|
function Tn() {
|
|
20326
|
-
process.env.NODE_ENV !== "production" &&
|
|
20326
|
+
process.env.NODE_ENV !== "production" && bn(y.state.isDestroyed, mr("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), v(), delete n._tippy, y.state.isDestroyed = !0, j("onDestroy", [y]));
|
|
20327
20327
|
}
|
|
20328
20328
|
}
|
|
20329
20329
|
function Br(n, e) {
|
|
@@ -20335,7 +20335,7 @@ function Br(n, e) {
|
|
|
20335
20335
|
}), i = _2(n);
|
|
20336
20336
|
if (process.env.NODE_ENV !== "production") {
|
|
20337
20337
|
var o = fi(r.content), s = i.length > 1;
|
|
20338
|
-
|
|
20338
|
+
bn(o && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
20339
20339
|
|
|
20340
20340
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
20341
20341
|
|
|
@@ -20985,10 +20985,10 @@ Ct.prototype = {
|
|
|
20985
20985
|
return i.j[n] = s, s;
|
|
20986
20986
|
}
|
|
20987
20987
|
};
|
|
20988
|
-
const Re = (n, e, t, r, i) => n.ta(e, t, r, i), zt = (n, e, t, r, i) => n.tr(e, t, r, i), Wc = (n, e, t, r, i) => n.ts(e, t, r, i), ce = (n, e, t, r, i) => n.tt(e, t, r, i),
|
|
20988
|
+
const Re = (n, e, t, r, i) => n.ta(e, t, r, i), zt = (n, e, t, r, i) => n.tr(e, t, r, i), Wc = (n, e, t, r, i) => n.ts(e, t, r, i), ce = (n, e, t, r, i) => n.tt(e, t, r, i), vn = "WORD", aa = "UWORD", hi = "LOCALHOST", la = "TLD", ca = "UTLD", Bi = "SCHEME", xr = "SLASH_SCHEME", Va = "NUM", bf = "WS", ja = "NL", Qr = "OPENBRACE", qr = "CLOSEBRACE", ro = "OPENBRACKET", io = "CLOSEBRACKET", oo = "OPENPAREN", so = "CLOSEPAREN", ao = "OPENANGLEBRACKET", lo = "CLOSEANGLEBRACKET", co = "FULLWIDTHLEFTPAREN", uo = "FULLWIDTHRIGHTPAREN", fo = "LEFTCORNERBRACKET", po = "RIGHTCORNERBRACKET", ho = "LEFTWHITECORNERBRACKET", mo = "RIGHTWHITECORNERBRACKET", go = "FULLWIDTHLESSTHAN", vo = "FULLWIDTHGREATERTHAN", yo = "AMPERSAND", bo = "APOSTROPHE", xo = "ASTERISK", Rn = "AT", So = "BACKSLASH", Eo = "BACKTICK", wo = "CARET", Nn = "COLON", Wa = "COMMA", Co = "DOLLAR", tn = "DOT", To = "EQUALS", Ka = "EXCLAMATION", nn = "HYPHEN", ko = "PERCENT", Ao = "PIPE", Oo = "PLUS", Mo = "POUND", Io = "QUERY", Ga = "QUOTE", Ja = "SEMI", rn = "SLASH", _r = "TILDE", Ro = "UNDERSCORE", xf = "EMOJI", Do = "SYM";
|
|
20989
20989
|
var Sf = /* @__PURE__ */ Object.freeze({
|
|
20990
20990
|
__proto__: null,
|
|
20991
|
-
WORD:
|
|
20991
|
+
WORD: vn,
|
|
20992
20992
|
UWORD: aa,
|
|
20993
20993
|
LOCALHOST: hi,
|
|
20994
20994
|
TLD: la,
|
|
@@ -21054,7 +21054,7 @@ function Nb(n) {
|
|
|
21054
21054
|
[ra]: !0
|
|
21055
21055
|
});
|
|
21056
21056
|
zt(r, Ms, r);
|
|
21057
|
-
const i = zt(t, gr,
|
|
21057
|
+
const i = zt(t, gr, vn, {
|
|
21058
21058
|
[ia]: !0
|
|
21059
21059
|
});
|
|
21060
21060
|
zt(i, gr, i);
|
|
@@ -21076,7 +21076,7 @@ function Nb(n) {
|
|
|
21076
21076
|
zt(a, Os, l);
|
|
21077
21077
|
const c = [[gr, i]], u = [[gr, null], [As, o]];
|
|
21078
21078
|
for (let d = 0; d < Ii.length; d++)
|
|
21079
|
-
On(t, Ii[d], la,
|
|
21079
|
+
On(t, Ii[d], la, vn, c);
|
|
21080
21080
|
for (let d = 0; d < Ri.length; d++)
|
|
21081
21081
|
On(t, Ri[d], ca, aa, u);
|
|
21082
21082
|
qn(la, {
|
|
@@ -21085,7 +21085,7 @@ function Nb(n) {
|
|
|
21085
21085
|
}, e), qn(ca, {
|
|
21086
21086
|
utld: !0,
|
|
21087
21087
|
alpha: !0
|
|
21088
|
-
}, e), On(t, "file", Bi,
|
|
21088
|
+
}, e), On(t, "file", Bi, vn, c), On(t, "mailto", Bi, vn, c), On(t, "http", xr, vn, c), On(t, "https", xr, vn, c), On(t, "ftp", xr, vn, c), On(t, "ftps", xr, vn, c), qn(Bi, {
|
|
21089
21089
|
scheme: !0,
|
|
21090
21090
|
ascii: !0
|
|
21091
21091
|
}, e), qn(xr, {
|
|
@@ -21603,7 +21603,7 @@ function Gb(n) {
|
|
|
21603
21603
|
}
|
|
21604
21604
|
});
|
|
21605
21605
|
}
|
|
21606
|
-
const Jb =
|
|
21606
|
+
const Jb = fn.create({
|
|
21607
21607
|
name: "link",
|
|
21608
21608
|
priority: 1e3,
|
|
21609
21609
|
keepOnSplit: !1,
|
|
@@ -21758,7 +21758,7 @@ const Jb = pn.create({
|
|
|
21758
21758
|
})
|
|
21759
21759
|
];
|
|
21760
21760
|
}
|
|
21761
|
-
}), Zb = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Qb = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g, qb = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/, _b = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g, e5 =
|
|
21761
|
+
}), Zb = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/, Qb = /(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g, qb = /(?:^|\s)((?:__)((?:[^__]+))(?:__))$/, _b = /(?:^|\s)((?:__)((?:[^__]+))(?:__))/g, e5 = fn.create({
|
|
21762
21762
|
name: "bold",
|
|
21763
21763
|
addOptions() {
|
|
21764
21764
|
return {
|
|
@@ -21820,7 +21820,7 @@ const Jb = pn.create({
|
|
|
21820
21820
|
})
|
|
21821
21821
|
];
|
|
21822
21822
|
}
|
|
21823
|
-
}), t5 = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/, n5 = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g, r5 = /(?:^|\s)((?:_)((?:[^_]+))(?:_))$/, i5 = /(?:^|\s)((?:_)((?:[^_]+))(?:_))/g, o5 =
|
|
21823
|
+
}), t5 = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/, n5 = /(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g, r5 = /(?:^|\s)((?:_)((?:[^_]+))(?:_))$/, i5 = /(?:^|\s)((?:_)((?:[^_]+))(?:_))/g, o5 = fn.create({
|
|
21824
21824
|
name: "italic",
|
|
21825
21825
|
addOptions() {
|
|
21826
21826
|
return {
|
|
@@ -21881,7 +21881,7 @@ const Jb = pn.create({
|
|
|
21881
21881
|
})
|
|
21882
21882
|
];
|
|
21883
21883
|
}
|
|
21884
|
-
}), s5 =
|
|
21884
|
+
}), s5 = fn.create({
|
|
21885
21885
|
name: "underline",
|
|
21886
21886
|
addOptions() {
|
|
21887
21887
|
return {
|
|
@@ -21972,7 +21972,7 @@ const Jb = pn.create({
|
|
|
21972
21972
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
21973
21973
|
};
|
|
21974
21974
|
}
|
|
21975
|
-
}), qc =
|
|
21975
|
+
}), qc = fn.create({
|
|
21976
21976
|
name: "textStyle",
|
|
21977
21977
|
addOptions() {
|
|
21978
21978
|
return {
|
|
@@ -22074,7 +22074,7 @@ const Jb = pn.create({
|
|
|
22074
22074
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
22075
22075
|
};
|
|
22076
22076
|
}
|
|
22077
|
-
}), eu =
|
|
22077
|
+
}), eu = fn.create({
|
|
22078
22078
|
name: "textStyle",
|
|
22079
22079
|
addOptions() {
|
|
22080
22080
|
return {
|
|
@@ -22414,7 +22414,7 @@ const Jb = pn.create({
|
|
|
22414
22414
|
"data-bs-toggle": "dropdown"
|
|
22415
22415
|
}, i.value), {
|
|
22416
22416
|
default: dt(() => [
|
|
22417
|
-
|
|
22417
|
+
ue("span", null, Je(e.text), 1)
|
|
22418
22418
|
]),
|
|
22419
22419
|
_: 1
|
|
22420
22420
|
}, 16)),
|
|
@@ -22454,7 +22454,7 @@ const Jb = pn.create({
|
|
|
22454
22454
|
"aria-label": "Sluiten",
|
|
22455
22455
|
onClick: i
|
|
22456
22456
|
}, [
|
|
22457
|
-
|
|
22457
|
+
Sn("Sluiten "),
|
|
22458
22458
|
Ue(Ee(pu), { class: "bg-primary" })
|
|
22459
22459
|
])
|
|
22460
22460
|
]),
|
|
@@ -22523,7 +22523,7 @@ const Jb = pn.create({
|
|
|
22523
22523
|
}, o.value, { onClick: s }), {
|
|
22524
22524
|
default: dt(() => [
|
|
22525
22525
|
Ge(l.$slots, "default", {}, () => [
|
|
22526
|
-
|
|
22526
|
+
Sn(Je(t.text), 1)
|
|
22527
22527
|
])
|
|
22528
22528
|
]),
|
|
22529
22529
|
_: 3
|
|
@@ -124,4 +124,4 @@ 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 T2(){ze.scanner=y2(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=S2(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 A2(n){return ze.initialized||T2(),E2(ze.parser.start,n,v2(ze.scanner.start,n))}function La(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 Ra(t),o=A2(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 O2(n){return new ft({key:new Ft("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=U0(t.doc,[...e]);if(Z0(l).forEach(({newRange:c})=>{const u=j0(r.doc,c,p=>p.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 p=f.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const h=p[p.length-1],g=d.pos+f.lastIndexOf(h);if(!h)return!1;La(h).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=>{Xs(y.from,y.to,r.doc).some(S=>S.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function M2(n){return new ft({key:new Ft("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Pu(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 I2(n){return new ft({key:new Ft("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(h=>{a+=h.textContent});const c=La(a).find(h=>h.isLink&&h.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),p=f?f[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const N2=Yt.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){jd(n);return}jd(n.scheme,n.optionalSlashes)})},onDestroy(){w2()},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",ct(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[Hr({find:n=>La(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(O2({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(M2({type:this.type})),this.options.linkOnPaste&&n.push(I2({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})}}}}),R2=Tt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new ft({key:new Ft("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=wt.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}),We.create(n,o)}}})]}}),D2=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,L2=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,P2=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,B2=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,F2=Yt.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",ct(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[Wo({find:D2,type:this.type}),Wo({find:P2,type:this.type})]},addPasteRules(){return[Hr({find:L2,type:this.type}),Hr({find:B2,type:this.type})]}}),z2=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,V2=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,$2=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,U2=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,H2=Yt.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",ct(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[Wo({find:z2,type:this.type}),Wo({find:$2,type:this.type})]},addPasteRules(){return[Hr({find:V2,type:this.type}),Hr({find:U2,type:this.type})]}}),j2=Yt.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",ct(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()}}}),W2=At.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ct(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)}}}),K2=At.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ct(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)}}}),Wd=Yt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ct(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ho(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Kd=/^\s*([-+*])\s$/,G2=At.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",ct(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(K2.name,this.editor.getAttributes(Wd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ko({find:Kd,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ko({find:Kd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Wd.name),editor:this.editor})),[n]}}),J2=At.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ct(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)}}}),Gd=Yt.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ct(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ho(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Jd=/^(\d+)\.\s$/,Y2=At.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",ct(this.options.HTMLAttributes,t),0]:["ol",ct(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(J2.name,this.editor.getAttributes(Gd.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ko({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=Ko({find:Jd,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Gd.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),X2=At.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ct(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()}}}),Pa={BASIC:"basic",FULL:"full"},Z2={class:"bd-markdown-editor__menu-bottom"},Q2={key:0,class:"vr"},_2={key:4,class:"vr"},q2={key:7,class:"vr"},Yd=m.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Pa.BASIC},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=Nn(t,"modelValue",e),o=[s2,a2,l2,R2.configure({placeholder:t.placeholder}),X2];t.variant===Pa.FULL&&o.push(F2,H2,j2,W2,G2,Y2,N2.configure({openOnClick:!1,validate:f=>/^https?:\/\//.test(f)}));const i=i2({content:r.value,extensions:o,onUpdate:({editor:f})=>{const{view:p,state:h}=f,{from:g,to:y}=p.state.selection;if(h.doc.textBetween(g-1,y,"")==" "&&f.getAttributes("link").href!=null&&f.chain().setTextSelection({from:g-1,to:y}).toggleLink({href:f.getAttributes("link").href}).setTextSelection({from:y,to:y}).run(),f.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",f.getHTML())}});m.watch(()=>t.modelValue,f=>{i.value.getHTML()!==f&&i.value.commands.setContent(f,!0,{preserveWhitespace:"full"})});const s=m.computed(()=>t.state?"is-invalid":null),l=m.computed(()=>d("bold")),a=m.computed(()=>d("italic")),c=m.computed(()=>d("underline"));m.computed(()=>d("bulletList")),m.computed(()=>d("orderedList"));const u=m.computed(()=>t.variant===Pa.FULL),d=f=>i.value&&i.value.isActive(f)?"active":null;return(f,p)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createElementVNode("div",{class:m.normalizeClass(["bd-markdown-editor",s.value])},[m.createVNode(m.unref(o2),{editor:m.unref(i)},null,8,["editor"]),m.createElementVNode("div",Z2,[m.createVNode(Ht,{variant:"light",type:"button"},{default:m.withCtx(()=>[m.createVNode(m.unref(Er))]),_:1}),u.value?(m.openBlock(),m.createElementBlock("div",Q2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:1,variant:"light",type:"button",class:m.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>m.unref(i).chain().focus().toggleBold().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Hi))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:2,variant:"light",type:"button",class:m.normalizeClass(a.value),onClick:p[1]||(p[1]=h=>m.unref(i).chain().focus().toggleItalic().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Ui))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:3,variant:"light",type:"button",class:m.normalizeClass(c.value),onClick:p[2]||(p[2]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ji))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",_2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:p[3]||(p[3]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Wi))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:p[4]||(p[4]=h=>m.unref(i).chain().focus().toggleBulletList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Ki))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",q2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:p[5]||(p[5]=h=>m.unref(i).chain().focus().toggleOrderedList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Gi))]),_:1})):m.createCommentVNode("",!0)])],2),m.createVNode(m.unref(fo),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),eb={class:"bd-user"},tb={class:"bd-user__information"},nb={class:"text-break"},rb={class:"overflow-x-hidden"},Xd=m.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:{src:"",alt:""}},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=m.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(m.openBlock(),m.createElementBlock("div",eb,[e.hideImage?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(Ji,m.mergeProps({key:0},e.img,{size:"sm"}),null,16)),m.createElementVNode("div",tb,[m.createElementVNode("h5",nb,m.toDisplayString(e.name),1),m.createElementVNode("span",rb,m.toDisplayString(t.value),1)])]))}}),ob={class:"bd-dropdown dropdown"},Zd=m.defineComponent({__name:"BDDropdown",props:{size:{default:ot.MD},variant:{default:lo.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}=uo(),r=`__BD__DROPDOWN__${t.value}`,o=m.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=m.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=m.computed(()=>({"aria-labelledby":r}));return(l,a)=>(m.openBlock(),m.createElementBlock("div",ob,[(m.openBlock(),m.createBlock(m.resolveDynamicComponent(e.toggleTag),m.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(e.text),1)]),_:1},16)),m.createElementVNode("ul",m.mergeProps({class:["dropdown-menu",i.value]},s.value),[m.renderSlot(l.$slots,"default")],16)]))}}),ib={class:"modal bd-modal modal-lg",tabindex:"-1"},sb={class:"modal-dialog"},ab={class:"modal-content"},lb={class:"modal-header"},cb={class:"modal-title fw-light"},ub={class:"modal-body"},db={class:"modal-footer"},Qd=m.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},hideFooterCancelButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(m.openBlock(),m.createElementBlock("div",ib,[m.createElementVNode("div",sb,[m.createElementVNode("div",ab,[m.createElementVNode("div",lb,[m.createElementVNode("h2",cb,m.toDisplayString(t.title),1),m.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m.createTextVNode("Sluiten "),m.createVNode(m.unref($i),{class:"bg-primary"})])]),m.createElementVNode("div",ub,[m.renderSlot(i.$slots,"default")]),m.createElementVNode("div",db,[m.createElementVNode("button",{type:"button",class:"btn btn-primary",onClick:r},m.toDisplayString(t.submitButtonTitle),1),t.hideFooterCancelButton?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},"Annuleren"))])])])]))}}),fb={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark"},Ht=m.defineComponent({__name:"BDButton",props:{size:{default:ot.MD},variant:{default:fb.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=m.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=m.computed(()=>t.to?ao:"button"),i=m.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(m.openBlock(),m.createBlock(m.resolveDynamicComponent(o.value),m.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:m.withCtx(()=>[m.renderSlot(l.$slots,"default",{},()=>[m.createTextVNode(m.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),pb={install:n=>{n.component("BDCol",Ua),n.component("BDContainer",Ha),n.component("BRow",ja),n.component("BDButton",Ht),n.component("BDLogo",Ka),n.component("BDLink",ao),n.component("BDDropdownItem",ul),n.component("BDDropdown",Zd),n.component("BDAlert",Ja),n.component("BDProfileImage",Ji),n.component("BDZoomslider",Za),n.component("BDCard",Xi),n.component("BDCollapsableCard",qa),n.component("BDFormInput",el),n.component("BDInputGroup",tl),n.component("BDFormInvalidFeedback",fo),n.component("BDBadge",nl),n.component("BDForm",rl),n.component("BDPagination",ol),n.component("BDDropzone",pl),n.component("BDMarkdownEditor",Yd),n.component("BDModal",Qd),n.component("BDFormSelect",il),n.component("BDUser",Xd),n.component("IconAttachment",Er),n.component("IconBold",Hi),n.component("IconBulletList",Wi),n.component("IconCaretDown",Wa),n.component("IconCaretLeft",Vi),n.component("IconCaretRight",zi),n.component("IconCheck",oo),n.component("IconClose",$i),n.component("IconError",io),n.component("IconFile",Fi),n.component("IconHyperlink",Gi),n.component("IconInfo",so),n.component("IconOrderedList",Ki),n.component("IconItalic",Ui),n.component("IconRemove",Bi),n.component("IconUnderline",ji),n.component("BDArticle",al),n.component("BDFormCheckbox",sl),n.component("BDToast",cl)}};xe.BDAlert=Ja,xe.BDArticle=al,xe.BDBadge=nl,xe.BDButton=Ht,xe.BDCard=Xi,xe.BDCol=Ua,xe.BDCollapsableCard=qa,xe.BDContainer=Ha,xe.BDDropdown=Zd,xe.BDDropdownItem=ul,xe.BDDropzone=pl,xe.BDForm=rl,xe.BDFormCheckbox=sl,xe.BDFormInput=el,xe.BDFormInvalidFeedback=fo,xe.BDFormSelect=il,xe.BDInputGroup=tl,xe.BDLink=ao,xe.BDLogo=Ka,xe.BDMarkdownEditor=Yd,xe.BDModal=Qd,xe.BDPagination=ol,xe.BDProfileImage=Ji,xe.BDRow=ja,xe.BDToast=cl,xe.BDUser=Xd,xe.BDZoomslider=Za,xe.IconAttachment=Er,xe.IconBold=Hi,xe.IconBulletList=Wi,xe.IconCaretLeft=Vi,xe.IconCaretRight=zi,xe.IconCheck=oo,xe.IconClose=$i,xe.IconError=io,xe.IconFile=Fi,xe.IconHyperlink=Gi,xe.IconInfo=so,xe.IconItalic=Ui,xe.IconOrderedList=Ki,xe.IconRemove=Bi,xe.IconUnderline=ji,xe.default=pb,Object.defineProperties(xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
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()}}}),Pa={BASIC:"basic",FULL:"full"},Z2={class:"bd-markdown-editor__menu-bottom"},Q2={key:0,class:"vr"},_2={key:4,class:"vr"},q2={key:7,class:"vr"},Yd=m.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:Pa.BASIC},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=Nn(t,"modelValue",e),o=[s2,a2,l2,R2.configure({placeholder:t.placeholder}),X2];t.variant===Pa.FULL&&o.push(F2,H2,j2,W2,G2,Y2,N2.configure({openOnClick:!1,validate:f=>/^https?:\/\//.test(f)}));const i=i2({content:r.value,extensions:o,onUpdate:({editor:f})=>{const{view:p,state:h}=f,{from:g,to:y}=p.state.selection;if(h.doc.textBetween(g-1,y,"")==" "&&f.getAttributes("link").href!=null&&f.chain().setTextSelection({from:g-1,to:y}).toggleLink({href:f.getAttributes("link").href}).setTextSelection({from:y,to:y}).run(),f.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",f.getHTML())}});m.watch(()=>t.modelValue,f=>{i.value.getHTML()!==f&&i.value.commands.setContent(f,!0,{preserveWhitespace:"full"})});const s=m.computed(()=>t.state?"is-invalid":null),l=m.computed(()=>d("bold")),a=m.computed(()=>d("italic")),c=m.computed(()=>d("underline"));m.computed(()=>d("bulletList")),m.computed(()=>d("orderedList"));const u=m.computed(()=>t.variant===Pa.FULL),d=f=>i.value&&i.value.isActive(f)?"active":null;return(f,p)=>(m.openBlock(),m.createElementBlock(m.Fragment,null,[m.createElementVNode("div",{class:m.normalizeClass(["bd-markdown-editor",s.value])},[m.createVNode(m.unref(o2),{editor:m.unref(i)},null,8,["editor"]),m.createElementVNode("div",Z2,[m.createVNode(Ht,{variant:"light",type:"button"},{default:m.withCtx(()=>[m.createVNode(m.unref(Er))]),_:1}),u.value?(m.openBlock(),m.createElementBlock("div",Q2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:1,variant:"light",type:"button",class:m.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>m.unref(i).chain().focus().toggleBold().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Hi))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:2,variant:"light",type:"button",class:m.normalizeClass(a.value),onClick:p[1]||(p[1]=h=>m.unref(i).chain().focus().toggleItalic().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Ui))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:3,variant:"light",type:"button",class:m.normalizeClass(c.value),onClick:p[2]||(p[2]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(ji))]),_:1},8,["class"])):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",_2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:p[3]||(p[3]=h=>m.unref(i).chain().focus().toggleUnderline().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Wi))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:p[4]||(p[4]=h=>m.unref(i).chain().focus().toggleBulletList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Ki))]),_:1})):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createElementBlock("div",q2)):m.createCommentVNode("",!0),u.value?(m.openBlock(),m.createBlock(Ht,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:p[5]||(p[5]=h=>m.unref(i).chain().focus().toggleOrderedList().run())},{default:m.withCtx(()=>[m.createVNode(m.unref(Gi))]),_:1})):m.createCommentVNode("",!0)])],2),m.createVNode(m.unref(fo),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),eb={class:"bd-user"},tb={class:"bd-user__information"},nb={class:"text-break"},rb={class:"overflow-x-hidden"},Xd=m.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:{src:"",alt:""}},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=m.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(m.openBlock(),m.createElementBlock("div",eb,[e.hideImage?m.createCommentVNode("",!0):(m.openBlock(),m.createBlock(Ji,m.mergeProps({key:0},e.img,{size:"sm"}),null,16)),m.createElementVNode("div",tb,[m.createElementVNode("h5",nb,m.toDisplayString(e.name),1),m.createElementVNode("span",rb,m.toDisplayString(t.value),1)])]))}}),ob={class:"bd-dropdown dropdown"},Zd=m.defineComponent({__name:"BDDropdown",props:{size:{default:ot.MD},variant:{default:lo.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}=uo(),r=`__BD__DROPDOWN__${t.value}`,o=m.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=m.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=m.computed(()=>({"aria-labelledby":r}));return(l,a)=>(m.openBlock(),m.createElementBlock("div",ob,[(m.openBlock(),m.createBlock(m.resolveDynamicComponent(e.toggleTag),m.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:m.withCtx(()=>[m.createElementVNode("span",null,m.toDisplayString(e.text),1)]),_:1},16)),m.createElementVNode("ul",m.mergeProps({class:["dropdown-menu",i.value]},s.value),[m.renderSlot(l.$slots,"default")],16)]))}}),ib={class:"modal bd-modal modal-lg",tabindex:"-1"},sb={class:"modal-dialog"},ab={class:"modal-content"},lb={class:"modal-header"},cb={class:"modal-title fw-light"},ub={class:"modal-body"},db={class:"modal-footer"},Qd=m.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},hideFooterCancelButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(m.openBlock(),m.createElementBlock("div",ib,[m.createElementVNode("div",sb,[m.createElementVNode("div",ab,[m.createElementVNode("div",lb,[m.createElementVNode("h2",cb,m.toDisplayString(t.title),1),m.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m.createTextVNode("Sluiten "),m.createVNode(m.unref($i),{class:"bg-primary"})])]),m.createElementVNode("div",ub,[m.renderSlot(i.$slots,"default")]),m.createElementVNode("div",db,[m.createElementVNode("button",{type:"button",class:"btn btn-primary",onClick:r},m.toDisplayString(t.submitButtonTitle),1),t.hideFooterCancelButton?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("button",{key:0,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},"Annuleren"))])])])]))}}),fb={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark"},Ht=m.defineComponent({__name:"BDButton",props:{size:{default:ot.MD},variant:{default:fb.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=m.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=m.computed(()=>t.to?ao:"button"),i=m.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(m.openBlock(),m.createBlock(m.resolveDynamicComponent(o.value),m.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:m.withCtx(()=>[m.renderSlot(l.$slots,"default",{},()=>[m.createTextVNode(m.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),pb={install:n=>{n.component("BDCol",Ua),n.component("BDContainer",Ha),n.component("BRow",ja),n.component("BDButton",Ht),n.component("BDLogo",Ka),n.component("BDLink",ao),n.component("BDDropdownItem",ul),n.component("BDDropdown",Zd),n.component("BDAlert",Ja),n.component("BDProfileImage",Ji),n.component("BDZoomslider",Za),n.component("BDCard",Xi),n.component("BDCollapsableCard",qa),n.component("BDFormInput",el),n.component("BDInputGroup",tl),n.component("BDFormInvalidFeedback",fo),n.component("BDBadge",nl),n.component("BDForm",rl),n.component("BDPagination",ol),n.component("BDDropzone",pl),n.component("BDMarkdownEditor",Yd),n.component("BDModal",Qd),n.component("BDFormSelect",il),n.component("BDUser",Xd),n.component("IconAttachment",Er),n.component("IconBold",Hi),n.component("IconBulletList",Wi),n.component("IconCaretDown",Wa),n.component("IconCaretLeft",Vi),n.component("IconCaretRight",zi),n.component("IconCheck",oo),n.component("IconClose",$i),n.component("IconError",io),n.component("IconFile",Fi),n.component("IconHyperlink",Gi),n.component("IconInfo",so),n.component("IconOrderedList",Ki),n.component("IconItalic",Ui),n.component("IconRemove",Bi),n.component("IconUnderline",ji),n.component("BDArticle",al),n.component("BDFormCheckbox",sl),n.component("BDToast",cl)}};xe.BDAlert=Ja,xe.BDArticle=al,xe.BDBadge=nl,xe.BDButton=Ht,xe.BDCard=Xi,xe.BDCol=Ua,xe.BDCollapsableCard=qa,xe.BDContainer=Ha,xe.BDDropdown=Zd,xe.BDDropdownItem=ul,xe.BDDropzone=pl,xe.BDForm=rl,xe.BDFormCheckbox=sl,xe.BDFormInput=el,xe.BDFormInvalidFeedback=fo,xe.BDFormSelect=il,xe.BDInputGroup=tl,xe.BDLink=ao,xe.BDLogo=Ka,xe.BDMarkdownEditor=Yd,xe.BDModal=Qd,xe.BDPagination=ol,xe.BDProfileImage=Ji,xe.BDRow=ja,xe.BDToast=cl,xe.BDUser=Xd,xe.BDZoomslider=Za,xe.IconAttachment=Er,xe.IconBold=Hi,xe.IconBulletList=Wi,xe.IconCaretLeft=Vi,xe.IconCaretRight=zi,xe.IconCheck=oo,xe.IconClose=$i,xe.IconError=io,xe.IconFile=Fi,xe.IconHyperlink=Gi,xe.IconInfo=so,xe.IconItalic=Ui,xe.IconOrderedList=Ki,xe.IconRemove=Bi,xe.IconUnderline=ji,xe.default=pb,Object.defineProperties(xe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -7,7 +7,7 @@ $form-range-track-cursor: pointer;
|
|
|
7
7
|
$form-range-track-width: 100%;
|
|
8
8
|
$form-range-thumb-border-radius: 1rem;
|
|
9
9
|
$form-range-thumb-width: 1rem;
|
|
10
|
-
$form-range-thumb-height:
|
|
10
|
+
$form-range-thumb-height: 1rem;
|
|
11
11
|
|
|
12
12
|
@mixin track {
|
|
13
13
|
background: $form-range-track-bg;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beterdichtbij/component-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.5",
|
|
5
5
|
"author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"./dist/bd-component-lib.css": {
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
"require": "./dist/
|
|
24
|
+
"import": "./dist/scss/component-library-styling.scss",
|
|
25
|
+
"require": "./dist/scss/component-library-styling.scss"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"types": "./dist/main.d.ts",
|