"use strict";(()=>{(self.webpackChunktalk=self.webpackChunktalk||[]).push([["node_modules_nextcloud_capabilities_dist_index_js-node_modules_linkify-string_dist_linkify-st-1fe17e"],{42515:(h,o,s)=>{var u;s(69070),u={value:!0},o.getCapabilities=d;var a=s(91947);function d(){try{return(0,a.loadState)("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}},44837:(h,o,s)=>{s.d(o,{default:()=>p});var u=s(65155);function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function d(e){return e.replace(/"/g,"&quot;")}function c(e){const t=[];for(const n in e){let i=e[n]+"";t.push(`${n}="${d(i)}"`)}return t.join(" ")}function f(e){let{tagName:t,attributes:n,content:i}=e;return`<${t} ${c(n)}>${a(i)}</${t}>`}function p(e,t){t===void 0&&(t={}),t=new u.Ei(t,f);const n=(0,u.wS)(e),i=[];for(let r=0;r<n.length;r++){const l=n[r];l.t==="nl"&&t.get("nl2br")?i.push(`<br>
`):!l.isLink||!t.check(l)?i.push(a(l.toString())):i.push(t.render(l))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(t){return p(this,t)}})},928:(h,o,s)=>{s.d(o,{Z:()=>e});var u=s(32444),a=s(15097);const d={name:"NcButton",inject:{getNcPopoverTriggerAttrs:{from:"NcPopover:trigger:attrs",default:()=>()=>({})}},props:{alignment:{type:String,default:"center",validator:t=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,validator(t){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(t)!==-1},default:"secondary"},nativeType:{type:String,validator(t){return["submit","reset","button"].indexOf(t)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":this.pressed===!1&&this.type==="primary"?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")},ncPopoverTriggerAttrs(){return this.getNcPopoverTriggerAttrs()}},render(t){const n=!!this.$slots.default,i=this.$slots?.icon;!n&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:this.$slots.default?.[0]?.text,ariaLabel:this.ariaLabel},this);const r=this.to||this.href,l=!r&&typeof this.pressed=="boolean",_=({href:b,navigate:y,isActive:v,isExactActive:m}={})=>t(r?"a":"button",{class:["button-vue",{"button-vue--icon-only":i&&!n,"button-vue--text-only":n&&!i,"button-vue--icon-and-text":i&&n,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:v,"router-link-exact-active":m}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":l?this.pressed.toString():void 0,disabled:this.disabled,type:r?null:this.nativeType,role:r?"button":null,href:this.to?b:this.href||null,target:r?"_self":null,rel:r?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.ncPopoverTriggerAttrs,...this.$attrs},on:{...this.$listeners,click:g=>{l&&this.$emit("update:pressed",!this.pressed),this.$emit("click",g),y?.(g)}}},[t("span",{class:"button-vue__wrapper"},[i?t("span",{class:"button-vue__icon",attrs:{"aria-hidden":"true"}},[this.$slots.icon]):null,n?t("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?t("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:_}}):_()}},c=null,f=null;var p=(0,a.n)(d,c,f,!1,null,"fe3b5af5",null,null);const e=p.exports}}]);})();

//# sourceMappingURL=talk-node_modules_nextcloud_capabilities_dist_index_js-node_modules_linkify-string_dist_linkify-st-1fe17e.js.map?v=0ac360b4c18d7783f739