diff --git a/dist/4013-4013.js b/dist/4013-4013.js
deleted file mode 100644
index 14cb9b2489f..00000000000
--- a/dist/4013-4013.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[4013,7471],{2035:(e,t,i)=>{i.r(t),i.d(t,{default:()=>kt});var a=i(21777),n=i(85168),l=i(61338),r=i(35810),s=i(53334),o=i(63814),d=i(43627),c=i(85471),p=i(65043),A=i(32190),m=i(64711),h=i(71225),u=i(82680);const f={name:"TemplatePreview",inheritAttrs:!1,props:{basename:{type:String,required:!0},checked:{type:Boolean,default:!1},fileid:{type:[String,Number],required:!0},filename:{type:String,required:!0},previewUrl:{type:String,default:null},hasPreview:{type:Boolean,default:!0},mime:{type:String,required:!0},ratio:{type:Number,default:null}},data:()=>({failedPreview:!1}),computed:{nameWithoutExt(){return this.basename.indexOf(".")>-1?this.basename.split(".").slice(0,-1).join("."):this.basename},id(){return`template-picker-${this.fileid}`},realPreviewUrl(){return this.failedPreview&&this.mimeIcon?this.mimeIcon:this.previewUrl?this.previewUrl:(0,u.f)()?(0,o.Jv)(`/apps/files_sharing/publicpreview/${(0,u.G)()}?fileId=${this.fileid}&file=${(0,h.O0)(this.filename)}&x=256&y=256&a=1`):(0,o.Jv)(`/core/preview?fileId=${this.fileid}&x=256&y=256&a=1`)},mimeIcon(){return OC.MimeType.getIconUrl(this.mime)}},methods:{onCheck(){this.$emit("check",this.fileid)},onFailure(){this.failedPreview=!0},focus(){this.$refs.input?.focus()}}};var v=i(85072),C=i.n(v),g=i(97825),b=i.n(g),_=i(77659),w=i.n(_),y=i(55056),k=i.n(y),x=i(10540),N=i.n(x),T=i(41113),P=i.n(T),F=i(34747),S={};S.styleTagTransform=P(),S.setAttributes=k(),S.insert=w().bind(null,"head"),S.domAPI=b(),S.insertStyleElement=N(),C()(F.A,S),F.A&&F.A.locals&&F.A.locals;var B=i(14486);const E=(0,B.A)(f,(function(){var e=this,t=e._self._c;return t("li",{staticClass:"template-picker__item"},[t("input",{ref:"input",staticClass:"radio",attrs:{id:e.id,type:"radio",name:"template-picker"},domProps:{checked:e.checked},on:{change:e.onCheck}}),e._v(" "),t("label",{staticClass:"template-picker__label",attrs:{for:e.id}},[t("div",{staticClass:"template-picker__preview",class:e.failedPreview?"template-picker__preview--failed":""},[t("img",{staticClass:"template-picker__image",attrs:{src:e.realPreviewUrl,alt:"",draggable:"false"},on:{error:e.onFailure}})]),e._v(" "),t("span",{staticClass:"template-picker__title"},[e._v("\n\t\t\t"+e._s(e.nameWithoutExt)+"\n\t\t")])])])}),[],!1,null,"17417a0a",null).exports;var I=i(48964),D=i(68736),L=i(61744),$=i(97691),j=i(18642),M=i(72298),G=i(73346),R=i(90309),U=i(20282),W=i(15502),z=i(55925),X=i(28440),q=i(30803),O=i(47611),Y=i(10363),H=i(23538),K=i(50341),Q=i(25535),J=i(87142),Z=i(27345),V=i(85865),ee=i(75424),te=i(70952),ie=i(11683),ae=i(542),ne=i(80236),le=i(14727),re=i(80065),se=i(19015),oe=i(18608),de=i(94722),ce=i(59553),pe=i(26355),Ae=i(1758),me=i(21376),he=i(77333),ue=i(22318),fe=i(10402),ve=i(31719),Ce=i(75971),ge=i(17309),be=i(50298),_e=i(49013),we=i(29805),ye=i(88984),ke=i(96229),xe=i(18564),Ne=i(25521),Te=i(68229),Pe=i(20070),Fe=i(79008),Se=i(19498),Be=i(26517),Ee=i(22792),Ie=i(13058),De=i(55945),Le=i(7723),$e=i(2645),je=i(3226),Me=i(9060),Ge=i(67699),Re=i(68712),Ue=i(53304),We=i(64906),ze=i(62328),Xe=i(68883),qe=(i(58322),i(90912),i(82025)),Oe=i(71560),Ye=i(71639),He=i(24431),Ke=i(77930),Qe=i(87605),Je=i(70253),Ze=i(83847),Ve=i(22907),et=i(18127),tt=i(64162),it=i(89675),at=i(49814),nt=i(23610),lt=(i(55581),i(94205),i(95462),i(23020),i(53429),i(23739),i(16343),i(29928),i(64660),i(18547),i(42892)),rt=i(15074),st=(i(59656),i(75105),i(92471),i(16406),i(2508));I.N,D.N,L.A,$.N,j.N,M.A,G.N,R.A,W.A,z.A,X.N,U.N,q.N,O.A,Y.A,H.N,K.N,Q.A,J.N,Z.A,V.A,ee.N,te.N,ie.N,ae.A,ne.N,le.A,re.N,se.N,oe.A,ze.N,de.N,ce.N,pe.N,Ae.N,me.A,he.N,ue.N,fe.N,ve.N,Ce.N,ge.N,be.N,_e.N,we.default,ye.A,ke.N,xe.N,Ne.A,Te.N,A.A,Pe.A,Fe.A,Se.N,Be.N,Ee.N,Ie.N,De.N,Le.N,$e.A,We.N,m.A,je.A,Me.N,Ge.N,Re.N,Ue.N,ze.a,Xe.N,Ye.N,qe.N,He.N,Ke.N,Qe.N,Je.N,Ze.N,Ve.N,Oe.N,et.N,tt.N,it.N,at.N,nt.A,Symbol.toStringTag,lt.A,rt.u,st.yw,Symbol.toStringTag;const ot=(0,c.pM)({name:"TemplateRichTextField",components:{NcTextField:Oe.N},props:{field:{type:Object,default:()=>{}}},data:()=>({value:""}),computed:{fieldLabel(){const e=this.field.name||this.field.alias;return e.charAt(0).toUpperCase()+e.slice(1)},fieldId(){return"text-field"+this.field.index}},methods:{input(){this.$emit("input",{index:this.field.index,property:"content",value:this.value})}}});var dt=i(28837),ct={};ct.styleTagTransform=P(),ct.setAttributes=k(),ct.insert=w().bind(null,"head"),ct.domAPI=b(),ct.insertStyleElement=N(),C()(dt.A,ct),dt.A&&dt.A.locals&&dt.A.locals;const pt=(0,B.A)(ot,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"template-field__text"},[t("label",{attrs:{for:e.fieldId}},[e._v("\n\t\t"+e._s(e.fieldLabel)+"\n\t")]),e._v(" "),t("NcTextField",{attrs:{id:e.fieldId,type:"text",value:e.value,label:e.fieldLabel,"label-outside":!0,placeholder:e.field.content},on:{"update:value":function(t){e.value=t},input:e.input}})],1)}),[],!1,null,"acdec0ea",null).exports,At=(0,c.pM)({name:"TemplateCheckboxField",components:{NcCheckboxRadioSwitch:he.N},props:{field:{type:Object,default:()=>{}}},data(){return{value:this.field.checked??!1}},computed:{fieldLabel(){const e=this.field.name||this.field.alias;return e.charAt(0).toUpperCase()+e.slice(1)},fieldId(){return"checkbox-field"+this.field.index}},methods:{input(){this.$emit("input",{index:this.field.index,property:"checked",value:this.value})}}});var mt=i(47642),ht={};ht.styleTagTransform=P(),ht.setAttributes=k(),ht.insert=w().bind(null,"head"),ht.domAPI=b(),ht.insertStyleElement=N(),C()(mt.A,ht),mt.A&&mt.A.locals&&mt.A.locals;const ut=(0,B.A)(At,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"template-field__checkbox"},[t("NcCheckboxRadioSwitch",{attrs:{id:e.fieldId,checked:e.value,type:"switch"},on:{"update:checked":[function(t){e.value=t},e.input]}},[e._v("\n\t\t"+e._s(e.fieldLabel)+"\n\t")])],1)}),[],!1,null,"00f936be",null).exports,ft=(0,c.pM)({name:"TemplateFiller",components:{NcModal:m.A,NcButton:me.A,NcLoadingIcon:$e.A,TemplateRichTextField:pt,TemplateCheckboxField:ut},props:{fields:{type:Array,default:()=>[]},onSubmit:{type:Function,default:async()=>{}}},data:()=>({localFields:{},loading:!1}),methods:{t:s.Tl,trackInput(e){let{index:t,property:i,value:a}=e;this.localFields[t]||(this.localFields[t]={}),this.localFields[t][i]=a},getFieldComponent:e=>`Template${e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}Field`,fieldHasLabel:e=>e.name||e.alias,async submit(){this.loading=!0,await this.onSubmit(this.localFields),this.$emit("close")}}});var vt=i(95132),Ct={};Ct.styleTagTransform=P(),Ct.setAttributes=k(),Ct.insert=w().bind(null,"head"),Ct.domAPI=b(),Ct.insertStyleElement=N(),C()(vt.A,Ct),vt.A&&vt.A.locals&&vt.A.locals;const gt=(0,B.A)(ft,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcModal",{attrs:{"label-id":"template-field-modal__label"}},[t("div",{staticClass:"template-field-modal__content"},[t("form",[t("h3",{attrs:{id:"template-field-modal__label"}},[e._v("\n\t\t\t\t"+e._s(e.t("files","Fill template fields"))+"\n\t\t\t")]),e._v(" "),e._l(e.fields,(function(i){return t("div",{key:i.index},[e.fieldHasLabel(i)?t(e.getFieldComponent(i.type),{tag:"component",attrs:{field:i},on:{input:e.trackInput}}):e._e()],1)}))],2)]),e._v(" "),t("div",{staticClass:"template-field-modal__buttons"},[e.loading?t("NcLoadingIcon",{attrs:{name:e.t("files","Submitting fields…")}}):e._e(),e._v(" "),t("NcButton",{attrs:{"aria-label":"Submit button",type:"primary"},on:{click:e.submit}},[e._v("\n\t\t\t"+e._s(e.t("files","Submit"))+"\n\t\t")])],1)])}),[],!1,null,"fbb34ff6",null).exports;var bt=i(9558);const _t=(0,c.pM)({name:"TemplatePicker",components:{NcEmptyContent:A.A,NcModal:m.A,TemplatePreview:E},props:{parent:{type:Object,default:()=>null}},data:()=>({checked:-1,loading:!1,name:null,opened:!1,provider:null}),computed:{extension(){return(0,d.extname)(this.name??"")},nameWithoutExt(){return this.extension?this.name.slice(0,0-this.extension.length):this.name},emptyTemplate(){return{basename:(0,s.Tl)("files","Blank"),fileid:-1,filename:(0,s.Tl)("files","Blank"),hasPreview:!1,mime:this.provider?.mimetypes[0]||this.provider?.mimetypes}},selectedTemplate(){return this.provider?this.provider.templates.find((e=>e.fileid===this.checked)):null},style(){if(!this.provider)return{};const e=(this.provider.ratio?this.provider.ratio:1.77)>1?240:160;return{"--margin":"8px","--width":e+"px","--border":"2px","--fullwidth":e+16+4+"px","--height":this.provider.ratio?Math.round(e/this.provider.ratio)+"px":null}}},methods:{t:s.Tl,async open(e,t){this.checked=this.emptyTemplate.fileid,this.name=e,this.provider=t;const i=(await async function(){return(await p.Ay.get((0,o.KT)("apps/files/api/v1/templates"))).data.ocs.data}()).find((e=>e.app===t.app&&e.label===t.label));if(null===i)throw new Error("Failed to match provider in results");this.provider=i,0!==i.templates.length?(this.opened=!0,this.$nextTick((()=>{this.$refs.emptyTemplatePreview?.focus()}))):this.onSubmit()},close(){this.checked=this.emptyTemplate.fileid,this.loading=!1,this.name=null,this.opened=!1,this.provider=null},onCheck(e){this.checked=e},async createFile(e){const t=new URL(window.location.href).searchParams.get("dir")||"/";this.nameWithoutExt===this.name&&(bt.A.warn("Fixed invalid filename",{name:this.name,extension:this.provider?.extension}),this.name=`${this.name}${this.provider?.extension??""}`);try{const i=await async function(e,t,i,a){return(await p.Ay.post((0,o.KT)("apps/files/api/v1/templates/create"),{filePath:e,templatePath:t,templateType:i,templateFields:a})).data.ocs.data}((0,d.normalize)(`${t}/${this.name}`),this.selectedTemplate?.filename??"",this.selectedTemplate?.templateType??"",e);bt.A.debug("Created new file",i);const n=(0,a.HW)()?.uid||null,s=new r.ZH({id:i.fileid,source:(0,o.dC)((0,d.join)(`dav/files/${n}`,i.filename)),root:`/files/${n}`,mime:i.mime,mtime:new Date(1e3*i.lastmod),owner:n,size:i.size,permissions:i.permissions,attributes:{"mount-type":this.parent?.attributes?.["mount-type"],"owner-id":this.parent?.attributes?.["owner-id"],"owner-display-name":this.parent?.attributes?.["owner-display-name"],...i,"has-preview":i.hasPreview}});(0,l.Ic)("files:node:created",s),window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:s.fileid},{dir:s.dirname,openfile:"true"}),this.close()}catch(e){bt.A.error("Error while creating the new file from template",{error:e}),(0,n.Qg)((0,s.Tl)("files","Unable to create new file from template"))}finally{this.loading=!1}},async onSubmit(){this.selectedTemplate?.fields?.length>0?(0,n.Ss)(gt,{fields:this.selectedTemplate.fields,onSubmit:this.createFile}):(this.loading=!0,await this.createFile())}}});var wt=i(89985),yt={};yt.styleTagTransform=P(),yt.setAttributes=k(),yt.insert=w().bind(null,"head"),yt.domAPI=b(),yt.insertStyleElement=N(),C()(wt.A,yt),wt.A&&wt.A.locals&&wt.A.locals;const kt=(0,B.A)(_t,(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.opened?t("NcModal",{staticClass:"templates-picker",attrs:{"clear-view-delay":-1,size:"large"},on:{close:e.close}},[t("form",{staticClass:"templates-picker__form",style:e.style,on:{submit:function(t){return t.preventDefault(),t.stopPropagation(),e.onSubmit.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.t("files","Pick a template for {name}",{name:e.nameWithoutExt})))]),e._v(" "),t("ul",{staticClass:"templates-picker__list"},[t("TemplatePreview",e._b({ref:"emptyTemplatePreview",attrs:{checked:e.checked===e.emptyTemplate.fileid},on:{check:e.onCheck}},"TemplatePreview",e.emptyTemplate,!1)),e._v(" "),e._l(e.provider.templates,(function(i){return t("TemplatePreview",e._b({key:i.fileid,attrs:{checked:e.checked===i.fileid,ratio:e.provider.ratio},on:{check:e.onCheck}},"TemplatePreview",i,!1))}))],2),e._v(" "),t("div",{staticClass:"templates-picker__buttons"},[t("input",{staticClass:"primary",attrs:{type:"submit","aria-label":e.t("files","Create a new file with the selected template")},domProps:{value:e.t("files","Create")}})])]),e._v(" "),e.loading?t("NcEmptyContent",{staticClass:"templates-picker__loading",attrs:{icon:"icon-loading"}},[e._v("\n\t\t"+e._s(e.t("files","Creating file"))+"\n\t")]):e._e()],1):e._e()}),[],!1,null,"ef629ca2",null).exports},27514:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M18.4%207.4L17%206l-6%206%206%206%201.4-1.4-4.6-4.6%204.6-4.6m-6%200L11%206l-6%206%206%206%201.4-1.4L7.8%2012l4.6-4.6z%27/%3e%3c/svg%3e"},27518:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M15.4%2016.6L10.8%2012l4.6-4.6L14%206l-6%206%206%206%201.4-1.4z%27/%3e%3c/svg%3e"},28837:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field__text[data-v-acdec0ea]{margin:20px 0}.template-field__text label[data-v-acdec0ea]{font-weight:bold}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue"],names:[],mappings:"AACA,uCACC,aAAA,CAEA,6CACC,gBAAA",sourcesContent:["\n.template-field__text {\n\tmargin: 20px 0;\n\n\tlabel {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const s=r},34747:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-picker__item[data-v-17417a0a]{display:flex}.template-picker__label[data-v-17417a0a]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-17417a0a],.template-picker__label *[data-v-17417a0a]{cursor:pointer;user-select:none}.template-picker__label[data-v-17417a0a]::before{display:none !important}.template-picker__preview[data-v-17417a0a]{display:block;overflow:hidden;flex:1 1;width:var(--width);min-height:var(--height);max-height:var(--height);padding:0;border:var(--border) solid var(--color-border);border-radius:var(--border-radius-large)}input:checked+label>.template-picker__preview[data-v-17417a0a]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-17417a0a]{display:flex}.template-picker__image[data-v-17417a0a]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-17417a0a]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-17417a0a]{overflow:hidden;max-width:calc(var(--width) + 4px);padding:var(--margin);white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./apps/files/src/components/TemplatePreview.vue"],names:[],mappings:"AAGC,wCACC,YAAA,CAGD,yCACC,YAAA,CAEA,kBAAA,CACA,QAAA,CACA,qBAAA,CAEA,oFACC,cAAA,CACA,gBAAA,CAGD,iDACC,uBAAA,CAIF,2CACC,aAAA,CACA,eAAA,CAEA,QAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,SAAA,CACA,8CAAA,CACA,wCAAA,CAEA,+DACC,yCAAA,CAGD,mDAEC,YAAA,CAIF,yCACC,cAAA,CACA,6CAAA,CAEA,gBAAA,CAID,2EACC,2BAAA,CAEA,WAAA,CACA,yCAAA,CAEA,kBAAA,CAGD,yCACC,eAAA,CAEA,kCAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:["\n\n.template-picker {\n\t&__item {\n\t\tdisplay: flex;\n\t}\n\n\t&__label {\n\t\tdisplay: flex;\n\t\t// Align in the middle of the grid\n\t\talign-items: center;\n\t\tflex: 1 1;\n\t\tflex-direction: column;\n\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&::before {\n\t\t\tdisplay: none !important;\n\t\t}\n\t}\n\n\t&__preview {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\t// Stretch so all entries are the same width\n\t\tflex: 1 1;\n\t\twidth: var(--width);\n\t\tmin-height: var(--height);\n\t\tmax-height: var(--height);\n\t\tpadding: 0;\n\t\tborder: var(--border) solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\n\t\tinput:checked + label > & {\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\n\t\t&--failed {\n\t\t\t// Make sure to properly center fallback icon\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n\n\t&__image {\n\t\tmax-width: 100%;\n\t\tbackground-color: var(--color-main-background);\n\n\t\tobject-fit: cover;\n\t}\n\n\t// Failed preview, fallback to mime icon\n\t&__preview--failed &__image {\n\t\twidth: calc(var(--margin) * 8);\n\t\t// Center mime icon\n\t\tmargin: auto;\n\t\tbackground-color: transparent !important;\n\n\t\tobject-fit: initial;\n\t}\n\n\t&__title {\n\t\toverflow: hidden;\n\t\t// also count preview border\n\t\tmax-width: calc(var(--width) + 2*2px);\n\t\tpadding: var(--margin);\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n"],sourceRoot:""}]);const s=r},47642:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field__checkbox[data-v-00f936be]{margin:20px 0}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue"],names:[],mappings:"AACA,2CACE,aAAA",sourcesContent:["\n.template-field__checkbox {\n margin: 20px 0;\n}\n"],sourceRoot:""}]);const s=r},79722:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M5.6%207.4L7%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6m6%200L13%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6z%27/%3e%3c/svg%3e"},86886:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M8.6%2016.6l4.6-4.6-4.6-4.6L10%206l6%206-6%206-1.4-1.4z%27/%3e%3c/svg%3e"},89985:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".templates-picker__form[data-v-ef629ca2]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-ef629ca2]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-ef629ca2]{display:grid;grid-gap:calc(var(--margin)*2);grid-auto-columns:1fr;max-width:calc(var(--fullwidth)*6);grid-template-columns:repeat(auto-fit, var(--fullwidth));grid-auto-rows:1fr;justify-content:center}.templates-picker__buttons[data-v-ef629ca2]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0, var(--gradient-main-background))}.templates-picker__buttons button[data-v-ef629ca2],.templates-picker__buttons input[type=submit][data-v-ef629ca2]{height:44px}.templates-picker[data-v-ef629ca2] .modal-container{position:relative}.templates-picker__loading[data-v-ef629ca2]{position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;margin:0;background-color:var(--color-main-background-translucent)}","",{version:3,sources:["webpack://./apps/files/src/views/TemplatePicker.vue"],names:[],mappings:"AAEC,yCACC,6BAAA,CAEA,gBAAA,CAEA,4CACC,iBAAA,CACA,gBAAA,CACA,4CAAA,CAIF,yCACC,YAAA,CACA,8BAAA,CACA,qBAAA,CAEA,kCAAA,CACA,wDAAA,CAEA,kBAAA,CAEA,sBAAA,CAGD,4CACC,YAAA,CACA,mBAAA,CACA,2CAAA,CACA,eAAA,CACA,QAAA,CACA,oEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,MAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,yDAAA",sourcesContent:["\n.templates-picker {\n\t&__form {\n\t\tpadding: calc(var(--margin) * 2);\n\t\t// Will be handled by the buttons\n\t\tpadding-bottom: 0;\n\n\t\th2 {\n\t\t\ttext-align: center;\n\t\t\tfont-weight: bold;\n\t\t\tmargin: var(--margin) 0 calc(var(--margin) * 2);\n\t\t}\n\t}\n\n\t&__list {\n\t\tdisplay: grid;\n\t\tgrid-gap: calc(var(--margin) * 2);\n\t\tgrid-auto-columns: 1fr;\n\t\t// We want maximum 5 columns. Putting 6 as we don't count the grid gap. So it will always be lower than 6\n\t\tmax-width: calc(var(--fullwidth) * 6);\n\t\tgrid-template-columns: repeat(auto-fit, var(--fullwidth));\n\t\t// Make sure all rows are the same height\n\t\tgrid-auto-rows: 1fr;\n\t\t// Center the columns set\n\t\tjustify-content: center;\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tjustify-content: end;\n\t\tpadding: calc(var(--margin) * 2) var(--margin);\n\t\tposition: sticky;\n\t\tbottom: 0;\n\t\tbackground-image: linear-gradient(0, var(--gradient-main-background));\n\n\t\tbutton, input[type='submit'] {\n\t\t\theight: 44px;\n\t\t}\n\t}\n\n\t// Make sure we're relative for the loading emptycontent on top\n\t::v-deep .modal-container {\n\t\tposition: relative;\n\t}\n\n\t&__loading {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0;\n\t\tbackground-color: var(--color-main-background-translucent);\n\t}\n}\n\n"],sourceRoot:""}]);const s=r},95132:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field-modal__content[data-v-fbb34ff6]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-fbb34ff6]{text-align:center}.template-field-modal__buttons[data-v-fbb34ff6]{display:flex;justify-content:flex-end;gap:var(--default-grid-baseline);margin:calc(var(--default-grid-baseline)*4);margin-top:0}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller.vue"],names:[],mappings:"AAGA,gDACC,4CAHc,CAKd,mDACC,iBAAA,CAIF,gDACC,YAAA,CACA,wBAAA,CACA,gCAAA,CACA,2CAdc,CAed,YAAA",sourcesContent:["\n$modal-margin: calc(var(--default-grid-baseline) * 4);\n\n.template-field-modal__content {\n\tpadding: $modal-margin;\n\n\th3 {\n\t\ttext-align: center;\n\t}\n}\n\n.template-field-modal__buttons {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: var(--default-grid-baseline);\n\tmargin: $modal-margin;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const s=r}}]);
-//# sourceMappingURL=4013-4013.js.map?v=b56e987921ccf14c4163
\ No newline at end of file
diff --git a/dist/4013-4013.js.map b/dist/4013-4013.js.map
deleted file mode 100644
index 8628705e7cd..00000000000
--- a/dist/4013-4013.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"4013-4013.js?v=b56e987921ccf14c4163","mappings":"0IAAA,I,+ICsCA,MCtC2L,EDwC3L,CACAA,KAAA,kBACAC,cAAA,EAEAC,MAAA,CACAC,SAAA,CACAC,KAAAC,OACAC,UAAA,GAEAC,QAAA,CACAH,KAAAI,QACAC,SAAA,GAEAC,OAAA,CACAN,KAAA,CAAAC,OAAAM,QACAL,UAAA,GAEAM,SAAA,CACAR,KAAAC,OACAC,UAAA,GAEAO,WAAA,CACAT,KAAAC,OACAI,QAAA,MAEAK,WAAA,CACAV,KAAAI,QACAC,SAAA,GAEAM,KAAA,CACAX,KAAAC,OACAC,UAAA,GAEAU,MAAA,CACAZ,KAAAO,OACAF,QAAA,OAIAQ,KAAAA,KACA,CACAC,eAAA,IAIAC,SAAA,CAMAC,cAAAA,GACA,YAAAjB,SAAAkB,QAAA,aAAAlB,SAAAmB,MAAA,KAAAC,MAAA,MAAAC,KAAA,UAAArB,QACA,EAEAsB,EAAAA,GACA,8BAAAf,QACA,EAEAgB,cAAAA,GAEA,YAAAR,eAAA,KAAAS,SACA,KAAAA,SAGA,KAAAd,WACA,KAAAA,YAGAe,EAAAA,EAAAA,MACAC,EAAAA,EAAAA,IAAA,sCAAAC,EAAAA,EAAAA,eAAA,KAAApB,gBAAAqB,EAAAA,EAAAA,IAAA,KAAAnB,8BAEAiB,EAAAA,EAAAA,IAAA,6BAAAnB,yBACA,EAEAiB,QAAAA,GACA,OAAAK,GAAAC,SAA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AAG,SAAST,EAAIW,GAAGX,EAAI2C,EAAE,QAAS,kBAAkB,UAAU3C,EAAIuD,MAAM,GAAGvD,EAAIuD,IACp8C,GACsB,IuBUpB,EACA,KACA,WACA,M,40BCZEoF,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOrK,GAAI,sHAAuH,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kFAAkF,MAAQ,GAAG,SAAW,mCAAmC,eAAiB,CAAC,+FAA+F,WAAa,MAEpc,S,sECJImK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOrK,GAAI,ksCAAmsC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6DAA6D,MAAQ,GAAG,SAAW,uYAAuY,eAAiB,CAAC,k7CAAk7C,WAAa,MAElrG,S,sECJImK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOrK,GAAI,4DAA6D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kFAAkF,MAAQ,GAAG,SAAW,kBAAkB,eAAiB,CAAC,yDAAyD,WAAa,MAEnV,S,izBCJImK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOrK,GAAI,+hCAAgiC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uDAAuD,MAAQ,GAAG,SAAW,sVAAsV,eAAiB,CAAC,u3CAAu3C,WAAa,MAE75F,S,sECJImK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOrK,GAAI,qVAAsV,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,4DAA4D,MAAQ,GAAG,SAAW,+FAA+F,eAAiB,CAAC,iVAAiV,WAAa,MAE37B,S","sources":["webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue?vue&type=script&lang=js","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?926c","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?81db","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?c414","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?4b21","webpack:///nextcloud/node_modules/@nextcloud/vue/dist/index.mjs","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?vue&type=script&lang=ts","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?5503","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?cea0","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?vue&type=script&lang=ts","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?75d1","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?ad4c","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=script&lang=js","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?d777","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?6295","webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue?vue&type=script&lang=ts","webpack:///nextcloud/apps/files/src/services/Templates.js","webpack://nextcloud/./apps/files/src/views/TemplatePicker.vue?3af6","webpack://nextcloud/./apps/files/src/views/TemplatePicker.vue?afd8","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue?vue&type=style&index=0&id=ef629ca2&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=style&index=0&id=fbb34ff6&prod&lang=scss&scoped=true"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.opened)?_c('NcModal',{staticClass:\"templates-picker\",attrs:{\"clear-view-delay\":-1,\"size\":\"large\"},on:{\"close\":_vm.close}},[_c('form',{staticClass:\"templates-picker__form\",style:(_vm.style),on:{\"submit\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onSubmit.apply(null, arguments)}}},[_c('h2',[_vm._v(_vm._s(_vm.t('files', 'Pick a template for {name}', { name: _vm.nameWithoutExt })))]),_vm._v(\" \"),_c('ul',{staticClass:\"templates-picker__list\"},[_c('TemplatePreview',_vm._b({ref:\"emptyTemplatePreview\",attrs:{\"checked\":_vm.checked === _vm.emptyTemplate.fileid},on:{\"check\":_vm.onCheck}},'TemplatePreview',_vm.emptyTemplate,false)),_vm._v(\" \"),_vm._l((_vm.provider.templates),function(template){return _c('TemplatePreview',_vm._b({key:template.fileid,attrs:{\"checked\":_vm.checked === template.fileid,\"ratio\":_vm.provider.ratio},on:{\"check\":_vm.onCheck}},'TemplatePreview',template,false))})],2),_vm._v(\" \"),_c('div',{staticClass:\"templates-picker__buttons\"},[_c('input',{staticClass:\"primary\",attrs:{\"type\":\"submit\",\"aria-label\":_vm.t('files', 'Create a new file with the selected template')},domProps:{\"value\":_vm.t('files', 'Create')}})])]),_vm._v(\" \"),(_vm.loading)?_c('NcEmptyContent',{staticClass:\"templates-picker__loading\",attrs:{\"icon\":\"icon-loading\"}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files', 'Creating file'))+\"\\n\\t\")]):_vm._e()],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\t
\n\t\t\n\n\t\t\n\t
\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=script&lang=js\"","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplatePreview.vue?vue&type=template&id=17417a0a&scoped=true\"\nimport script from \"./TemplatePreview.vue?vue&type=script&lang=js\"\nexport * from \"./TemplatePreview.vue?vue&type=script&lang=js\"\nimport style0 from \"./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"17417a0a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('li',{staticClass:\"template-picker__item\"},[_c('input',{ref:\"input\",staticClass:\"radio\",attrs:{\"id\":_vm.id,\"type\":\"radio\",\"name\":\"template-picker\"},domProps:{\"checked\":_vm.checked},on:{\"change\":_vm.onCheck}}),_vm._v(\" \"),_c('label',{staticClass:\"template-picker__label\",attrs:{\"for\":_vm.id}},[_c('div',{staticClass:\"template-picker__preview\",class:_vm.failedPreview ? 'template-picker__preview--failed' : ''},[_c('img',{staticClass:\"template-picker__image\",attrs:{\"src\":_vm.realPreviewUrl,\"alt\":\"\",\"draggable\":\"false\"},on:{\"error\":_vm.onFailure}})]),_vm._v(\" \"),_c('span',{staticClass:\"template-picker__title\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.nameWithoutExt)+\"\\n\\t\\t\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('NcModal',{attrs:{\"label-id\":\"template-field-modal__label\"}},[_c('div',{staticClass:\"template-field-modal__content\"},[_c('form',[_c('h3',{attrs:{\"id\":\"template-field-modal__label\"}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files', 'Fill template fields'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_vm._l((_vm.fields),function(field){return _c('div',{key:field.index},[(_vm.fieldHasLabel(field))?_c(_vm.getFieldComponent(field.type),{tag:\"component\",attrs:{\"field\":field},on:{\"input\":_vm.trackInput}}):_vm._e()],1)})],2)]),_vm._v(\" \"),_c('div',{staticClass:\"template-field-modal__buttons\"},[(_vm.loading)?_c('NcLoadingIcon',{attrs:{\"name\":_vm.t('files', 'Submitting fields…')}}):_vm._e(),_vm._v(\" \"),_c('NcButton',{attrs:{\"aria-label\":\"Submit button\",\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files', 'Submit'))+\"\\n\\t\\t\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { N as NcActionButton } from \"./chunks/NcActionButton-rjMoymt-.mjs\";\nimport { N as NcActionButtonGroup } from \"./chunks/NcActionButtonGroup-hhh3GBSS.mjs\";\nimport NcActionCaption from \"./Components/NcActionCaption.mjs\";\nimport { N as NcActionCheckbox } from \"./chunks/NcActionCheckbox-DSMKeccY.mjs\";\nimport { N as NcActionInput } from \"./chunks/NcActionInput-CQ_WEPqQ.mjs\";\nimport NcActionLink from \"./Components/NcActionLink.mjs\";\nimport { N as NcActionRadio } from \"./chunks/NcActionRadio-yAm71xxU.mjs\";\nimport NcActionRouter from \"./Components/NcActionRouter.mjs\";\nimport { N as NcActions } from \"./chunks/NcActions-BKZA1xVL.mjs\";\nimport NcActionSeparator from \"./Components/NcActionSeparator.mjs\";\nimport NcActionText from \"./Components/NcActionText.mjs\";\nimport { N as NcActionTextEditable } from \"./chunks/NcActionTextEditable-xWQGdOVl.mjs\";\nimport { N as NcAppContent } from \"./chunks/NcAppContent-BS7BiMG0.mjs\";\nimport NcAppContentDetails from \"./Components/NcAppContentDetails.mjs\";\nimport NcAppContentList from \"./Components/NcAppContentList.mjs\";\nimport { N as NcAppNavigation } from \"./chunks/NcAppNavigation-BvEa92PC.mjs\";\nimport { N as NcAppNavigationCaption } from \"./chunks/NcAppNavigationCaption-hDsiQMLr.mjs\";\nimport NcAppNavigationIconBullet from \"./Components/NcAppNavigationIconBullet.mjs\";\nimport { N as NcAppNavigationItem } from \"./chunks/NcAppNavigationItem-NIMhmJHh.mjs\";\nimport NcAppNavigationList from \"./Components/NcAppNavigationList.mjs\";\nimport NcAppNavigationNew from \"./Components/NcAppNavigationNew.mjs\";\nimport { N as NcAppNavigationNewItem } from \"./chunks/NcAppNavigationNewItem-D4fJeBl0.mjs\";\nimport { N as NcAppNavigationSearch } from \"./chunks/NcAppNavigationSearch-B9OkdsuE.mjs\";\nimport { N as NcAppNavigationSettings } from \"./chunks/NcAppNavigationSettings-BV34ogWP.mjs\";\nimport NcAppNavigationSpacer from \"./Components/NcAppNavigationSpacer.mjs\";\nimport { N as NcAppSettingsDialog } from \"./chunks/NcAppSettingsDialog-BwsIc_QT.mjs\";\nimport NcAppSettingsSection from \"./Components/NcAppSettingsSection.mjs\";\nimport { N as NcAppSidebar } from \"./chunks/NcAppSidebar-BJgPYOcZ.mjs\";\nimport { N as NcAppSidebarHeader } from \"./chunks/NcAppSidebarHeader-G2VD8Nfl.mjs\";\nimport NcAppSidebarTab from \"./Components/NcAppSidebarTab.mjs\";\nimport { N as NcAvatar } from \"./chunks/NcAvatar-CgF-MFtU.mjs\";\nimport { u } from \"./chunks/NcAvatar-CgF-MFtU.mjs\";\nimport { N as NcBlurHash } from \"./chunks/NcBlurHash-do2wxY-0.mjs\";\nimport { N as NcBreadcrumb } from \"./chunks/NcBreadcrumb-DJpYjXCe.mjs\";\nimport { N as NcBreadcrumbs } from \"./chunks/NcBreadcrumbs-B722pBOd.mjs\";\nimport NcButton from \"./Components/NcButton.mjs\";\nimport { N as NcCheckboxRadioSwitch } from \"./chunks/NcCheckboxRadioSwitch-ip_mRd2T.mjs\";\nimport { N as NcCollectionList } from \"./chunks/NcCollectionList-Khg3X3Zq.mjs\";\nimport { N as NcColorPicker } from \"./chunks/NcColorPicker-MXMbRaLk.mjs\";\nimport { N as NcContent } from \"./chunks/NcContent-BbmqoSY7.mjs\";\nimport { N as NcCounterBubble } from \"./chunks/NcCounterBubble-CDfRYl8B.mjs\";\nimport { N as NcDashboardWidget } from \"./chunks/NcDashboardWidget-D0cFVt4i.mjs\";\nimport { N as NcDashboardWidgetItem } from \"./chunks/NcDashboardWidgetItem-D33MR-DH.mjs\";\nimport { N as NcDateTime } from \"./chunks/NcDateTime-kanSdMgW.mjs\";\nimport NcDateTimePicker from \"./Components/NcDateTimePicker.mjs\";\nimport NcDateTimePickerNative from \"./Components/NcDateTimePickerNative.mjs\";\nimport { N as NcDialog } from \"./chunks/NcDialog-C1b3UtA7.mjs\";\nimport { N as NcDialogButton } from \"./chunks/NcDialogButton-Di9tU3e_.mjs\";\nimport NcEllipsisedOption from \"./Components/NcEllipsisedOption.mjs\";\nimport { N as NcEmojiPicker } from \"./chunks/NcEmojiPicker-DJHvkF--.mjs\";\nimport NcEmptyContent from \"./Components/NcEmptyContent.mjs\";\nimport NcGuestContent from \"./Components/NcGuestContent.mjs\";\nimport NcHeaderButton from \"./Components/NcHeaderButton.mjs\";\nimport { N as NcHeaderMenu } from \"./chunks/NcHeaderMenu-Dq_Avv2T.mjs\";\nimport { N as NcHighlight } from \"./chunks/index-Bz6q9mZw.mjs\";\nimport { N as NcIconSvgWrapper } from \"./chunks/NcIconSvgWrapper-Cb-cPj1R.mjs\";\nimport { N as NcInputField } from \"./chunks/NcInputField-BNSfmQqu.mjs\";\nimport { N as NcListItem } from \"./chunks/NcListItem-CnxZixD_.mjs\";\nimport { N as NcListItemIcon } from \"./chunks/NcListItemIcon-CTfYEjBB.mjs\";\nimport NcLoadingIcon from \"./Components/NcLoadingIcon.mjs\";\nimport NcModal from \"./Components/NcModal.mjs\";\nimport NcNoteCard from \"./Components/NcNoteCard.mjs\";\nimport { N as NcPasswordField } from \"./chunks/NcPasswordField-DSdrAkZy.mjs\";\nimport { N as NcPopover } from \"./chunks/NcPopover-CAJVK-MR.mjs\";\nimport { N as NcProgressBar } from \"./chunks/NcProgressBar-CI_nOrPg.mjs\";\nimport { N as NcRelatedResourcesPanel } from \"./chunks/NcRelatedResourcesPanel-DyvwxDjI.mjs\";\nimport { N as NcMentionBubble } from \"./chunks/index-B8gPNa8c.mjs\";\nimport { r } from \"./chunks/index-B8gPNa8c.mjs\";\nimport { N as NcAutoCompleteResult, a as NcRichContenteditable } from \"./chunks/NcRichContenteditable-cpptFUeI.mjs\";\nimport { N as NcRichText } from \"./chunks/NcRichText-CmuVmSzl.mjs\";\nimport { N, h, d, i, b, r as r2, c, a } from \"./chunks/index-56SXuvlv.mjs\";\nimport \"@vueuse/core\";\nimport \"vue\";\nimport \"vue-router\";\nimport { a as a2, g, b as b2, c as c2, d as d2, s } from \"./chunks/referencePickerModal-CtMUY45l.mjs\";\nimport \"unist-util-visit\";\nimport \"unist-builder\";\nimport \"@nextcloud/router\";\nimport \"@nextcloud/axios\";\nimport \"@nextcloud/sharing/public\";\nimport \"@nextcloud/auth\";\nimport { N as NcSelect } from \"./chunks/NcSelect-BUOuXJUQ.mjs\";\nimport { N as NcTextField } from \"./chunks/NcTextField-Do6wBDGH.mjs\";\nimport \"@nextcloud/event-bus\";\nimport { N as NcSavingIndicatorIcon } from \"./chunks/NcSavingIndicatorIcon-U7AIamCl.mjs\";\nimport { N as NcSelectTags } from \"./chunks/NcSelectTags-hP98xYkg.mjs\";\nimport { N as NcSelectUsers } from \"./chunks/NcSelectUsers-DaHVPRPE.mjs\";\nimport { N as NcSettingsInputText } from \"./chunks/NcSettingsInputText-BKoaCiQU.mjs\";\nimport { N as NcSettingsSection } from \"./chunks/NcSettingsSection-fe_YIg-L.mjs\";\nimport { N as NcSettingsSelectGroup } from \"./chunks/NcSettingsSelectGroup-SuQNKdqU.mjs\";\nimport { N as NcTextArea } from \"./chunks/NcTextArea-BFLuhsEv.mjs\";\nimport { N as NcThemeProvider } from \"./chunks/NcThemeProvider-25ResoIv.mjs\";\nimport { N as NcTimezonePicker } from \"./chunks/NcTimezonePicker-bIwFQlmV.mjs\";\nimport { N as NcUserBubble } from \"./chunks/NcUserBubble-BmPOx3MW.mjs\";\nimport { N as NcUserStatusIcon } from \"./chunks/NcUserStatusIcon-DQr5EGWZ.mjs\";\nimport NcVNodes from \"./Components/NcVNodes.mjs\";\nimport { useFormatDateTime, useFormatRelativeTime, useFormatTime } from \"./Composables/useFormatDateTime.mjs\";\nimport { useHotKey } from \"./Composables/useHotKey.mjs\";\nimport { useIsDarkTheme, useIsDarkThemeElement } from \"./Composables/useIsDarkTheme.mjs\";\nimport { isFullscreenState, useIsFullscreen } from \"./Composables/useIsFullscreen.mjs\";\nimport { MOBILE_BREAKPOINT, MOBILE_SMALL_BREAKPOINT, isMobileState, useIsMobile, useIsSmallMobile } from \"./Composables/useIsMobile.mjs\";\nimport { isA11yActivation } from \"./Functions/a11y.mjs\";\nimport { getEnabledContactsMenuActions, registerContactsMenuAction } from \"./Functions/contactsMenu.mjs\";\nimport { spawnDialog } from \"./Functions/dialog.mjs\";\nimport { E, a as a3, e, g as g2, s as s2 } from \"./chunks/emoji-BY_D0V5K.mjs\";\nimport { checkIfDarkTheme, isDarkTheme } from \"./Functions/isDarkTheme.mjs\";\nimport { preloadImage } from \"./Functions/preloadImage.mjs\";\nimport { usernameToColor } from \"./Functions/usernameToColor.mjs\";\nimport directive from \"./Directives/Focus.mjs\";\nimport { directive as directive$1 } from \"./Directives/Linkify.mjs\";\nimport \"./Directives/Tooltip.mjs\";\nimport { default as default2 } from \"./Mixins/clickOutsideOptions.mjs\";\nimport { default as default3 } from \"./Mixins/isFullscreen.mjs\";\nimport { default as default4 } from \"./Mixins/isMobile.mjs\";\nimport { VTooltip } from \"floating-vue\";\nimport { VTooltip as VTooltip2 } from \"floating-vue\";\nconst NcComponents = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n NcActionButton,\n NcActionButtonGroup,\n NcActionCaption,\n NcActionCheckbox,\n NcActionInput,\n NcActionLink,\n NcActionRadio,\n NcActionRouter,\n NcActionSeparator,\n NcActionText,\n NcActionTextEditable,\n NcActions,\n NcAppContent,\n NcAppContentDetails,\n NcAppContentList,\n NcAppNavigation,\n NcAppNavigationCaption,\n NcAppNavigationIconBullet,\n NcAppNavigationItem,\n NcAppNavigationList,\n NcAppNavigationNew,\n NcAppNavigationNewItem,\n NcAppNavigationSearch,\n NcAppNavigationSettings,\n NcAppNavigationSpacer,\n NcAppSettingsDialog,\n NcAppSettingsSection,\n NcAppSidebar,\n NcAppSidebarHeader,\n NcAppSidebarTab,\n NcAutoCompleteResult,\n NcAvatar,\n NcBlurHash,\n NcBreadcrumb,\n NcBreadcrumbs,\n NcButton,\n NcCheckboxRadioSwitch,\n NcCollectionList,\n NcColorPicker,\n NcContent,\n NcCounterBubble,\n NcDashboardWidget,\n NcDashboardWidgetItem,\n NcDateTime,\n NcDateTimePicker,\n NcDateTimePickerNative,\n NcDialog,\n NcDialogButton,\n NcEllipsisedOption,\n NcEmojiPicker,\n NcEmptyContent,\n NcGuestContent,\n NcHeaderButton,\n NcHeaderMenu,\n NcHighlight,\n NcIconSvgWrapper,\n NcInputField,\n NcListItem,\n NcListItemIcon,\n NcLoadingIcon,\n NcMentionBubble,\n NcModal,\n NcNoteCard,\n NcPasswordField,\n NcPopover,\n NcProgressBar,\n NcRelatedResourcesPanel,\n NcRichContenteditable,\n NcRichText,\n NcSavingIndicatorIcon,\n NcSelect,\n NcSelectTags,\n NcSelectUsers,\n NcSettingsInputText,\n NcSettingsSection,\n NcSettingsSelectGroup,\n NcTextArea,\n NcTextField,\n NcThemeProvider,\n NcTimezonePicker,\n NcUserBubble,\n NcUserStatusIcon,\n NcVNodes\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst NcDirectives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n Focus: directive,\n Linkify: directive$1,\n Tooltip: VTooltip\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst NextcloudVuePlugin = {\n install(Vue) {\n Object.entries(NcComponents).forEach(([name, component]) => {\n Vue.component(component.name || name, component);\n });\n Object.entries(NcDirectives).forEach(([name, directive2]) => {\n Vue.directive(name, directive2);\n });\n }\n};\nexport {\n E as EmojiSkinTone,\n directive as Focus,\n directive$1 as Linkify,\n MOBILE_BREAKPOINT,\n MOBILE_SMALL_BREAKPOINT,\n NcActionButton,\n NcActionButtonGroup,\n NcActionCaption,\n NcActionCheckbox,\n NcActionInput,\n NcActionLink,\n NcActionRadio,\n NcActionRouter,\n NcActionSeparator,\n NcActionText,\n NcActionTextEditable,\n NcActions,\n NcAppContent,\n NcAppContentDetails,\n NcAppContentList,\n NcAppNavigation,\n NcAppNavigationCaption,\n NcAppNavigationIconBullet,\n NcAppNavigationItem,\n NcAppNavigationList,\n NcAppNavigationNew,\n NcAppNavigationNewItem,\n NcAppNavigationSearch,\n NcAppNavigationSettings,\n NcAppNavigationSpacer,\n NcAppSettingsDialog,\n NcAppSettingsSection,\n NcAppSidebar,\n NcAppSidebarHeader,\n NcAppSidebarTab,\n NcAutoCompleteResult,\n NcAvatar,\n NcBlurHash,\n NcBreadcrumb,\n NcBreadcrumbs,\n NcButton,\n NcCheckboxRadioSwitch,\n NcCollectionList,\n NcColorPicker,\n NcContent,\n NcCounterBubble,\n N as NcCustomPickerRenderResult,\n NcDashboardWidget,\n NcDashboardWidgetItem,\n NcDateTime,\n NcDateTimePicker,\n NcDateTimePickerNative,\n NcDialog,\n NcDialogButton,\n NcEllipsisedOption,\n NcEmojiPicker,\n NcEmptyContent,\n NcGuestContent,\n NcHeaderButton,\n NcHeaderMenu,\n NcHighlight,\n NcIconSvgWrapper,\n NcInputField,\n NcListItem,\n NcListItemIcon,\n NcLoadingIcon,\n NcMentionBubble,\n NcModal,\n NcNoteCard,\n NcPasswordField,\n NcPopover,\n NcProgressBar,\n NcRelatedResourcesPanel,\n NcRichContenteditable,\n NcRichText,\n NcSavingIndicatorIcon,\n NcSelect,\n NcSelectTags,\n NcSelectUsers,\n NcSettingsInputText,\n NcSettingsSection,\n NcSettingsSelectGroup,\n NcTextArea,\n NcTextField,\n NcThemeProvider,\n NcTimezonePicker,\n NcUserBubble,\n NcUserStatusIcon,\n NcVNodes,\n NextcloudVuePlugin,\n VTooltip2 as Tooltip,\n a2 as anyLinkProviderId,\n checkIfDarkTheme,\n default2 as clickOutsideOptions,\n a3 as emojiAddRecent,\n e as emojiSearch,\n g2 as getCurrentSkinTone,\n getEnabledContactsMenuActions,\n g as getLinkWithPicker,\n b2 as getProvider,\n c2 as getProviders,\n h as hasInteractiveView,\n isA11yActivation,\n d as isCustomPickerElementRegistered,\n isDarkTheme,\n default3 as isFullscreen,\n isFullscreenState,\n default4 as isMobile,\n isMobileState,\n i as isWidgetRegistered,\n preloadImage,\n registerContactsMenuAction,\n b as registerCustomPickerElement,\n r2 as registerWidget,\n c as renderCustomPickerElement,\n a as renderWidget,\n r as richEditor,\n d2 as searchProvider,\n s2 as setCurrentSkinTone,\n s as sortProviders,\n spawnDialog,\n useFormatDateTime,\n useFormatRelativeTime,\n useFormatTime,\n useHotKey,\n useIsDarkTheme,\n useIsDarkThemeElement,\n useIsFullscreen,\n useIsMobile,\n useIsSmallMobile,\n u as userStatus,\n usernameToColor\n};\n//# sourceMappingURL=index.mjs.map\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"template-field__text\"},[_c('label',{attrs:{\"for\":_vm.fieldId}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.fieldLabel)+\"\\n\\t\")]),_vm._v(\" \"),_c('NcTextField',{attrs:{\"id\":_vm.fieldId,\"type\":\"text\",\"value\":_vm.value,\"label\":_vm.fieldLabel,\"label-outside\":true,\"placeholder\":_vm.field.content},on:{\"update:value\":function($event){_vm.value=$event},\"input\":_vm.input}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=script&lang=ts\"","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplateRichTextField.vue?vue&type=template&id=acdec0ea&scoped=true\"\nimport script from \"./TemplateRichTextField.vue?vue&type=script&lang=ts\"\nexport * from \"./TemplateRichTextField.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"acdec0ea\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=script&lang=ts\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"template-field__checkbox\"},[_c('NcCheckboxRadioSwitch',{attrs:{\"id\":_vm.fieldId,\"checked\":_vm.value,\"type\":\"switch\"},on:{\"update:checked\":[function($event){_vm.value=$event},_vm.input]}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.fieldLabel)+\"\\n\\t\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplateCheckboxField.vue?vue&type=template&id=00f936be&scoped=true\"\nimport script from \"./TemplateCheckboxField.vue?vue&type=script&lang=ts\"\nexport * from \"./TemplateCheckboxField.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00f936be\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=script&lang=js\"","\n\n\n\t\n\t\t
\n\t\n\n\n\n\n\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=style&index=0&id=fbb34ff6&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=style&index=0&id=fbb34ff6&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplateFiller.vue?vue&type=template&id=fbb34ff6&scoped=true\"\nimport script from \"./TemplateFiller.vue?vue&type=script&lang=js\"\nexport * from \"./TemplateFiller.vue?vue&type=script&lang=js\"\nimport style0 from \"./TemplateFiller.vue?vue&type=style&index=0&id=fbb34ff6&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"fbb34ff6\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePicker.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePicker.vue?vue&type=script&lang=ts\"","/**\n * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { generateOcsUrl } from '@nextcloud/router'\nimport axios from '@nextcloud/axios'\n\nexport const getTemplates = async function() {\n\tconst response = await axios.get(generateOcsUrl('apps/files/api/v1/templates'))\n\treturn response.data.ocs.data\n}\n\n/**\n * Create a new file from a specified template\n *\n * @param {string} filePath The new file destination path\n * @param {string} templatePath The template source path\n * @param {string} templateType The template type e.g 'user'\n * @param {object} templateFields The template fields to fill in (if any)\n */\nexport const createFromTemplate = async function(filePath, templatePath, templateType, templateFields) {\n\tconst response = await axios.post(generateOcsUrl('apps/files/api/v1/templates/create'), {\n\t\tfilePath,\n\t\ttemplatePath,\n\t\ttemplateType,\n\t\ttemplateFields,\n\t})\n\treturn response.data.ocs.data\n}\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePicker.vue?vue&type=style&index=0&id=ef629ca2&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePicker.vue?vue&type=style&index=0&id=ef629ca2&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplatePicker.vue?vue&type=template&id=ef629ca2&scoped=true\"\nimport script from \"./TemplatePicker.vue?vue&type=script&lang=ts\"\nexport * from \"./TemplatePicker.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TemplatePicker.vue?vue&type=style&index=0&id=ef629ca2&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"ef629ca2\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.template-field__text[data-v-acdec0ea]{margin:20px 0}.template-field__text label[data-v-acdec0ea]{font-weight:bold}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue\"],\"names\":[],\"mappings\":\"AACA,uCACC,aAAA,CAEA,6CACC,gBAAA\",\"sourcesContent\":[\"\\n.template-field__text {\\n\\tmargin: 20px 0;\\n\\n\\tlabel {\\n\\t\\tfont-weight: bold;\\n\\t}\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.template-picker__item[data-v-17417a0a]{display:flex}.template-picker__label[data-v-17417a0a]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-17417a0a],.template-picker__label *[data-v-17417a0a]{cursor:pointer;user-select:none}.template-picker__label[data-v-17417a0a]::before{display:none !important}.template-picker__preview[data-v-17417a0a]{display:block;overflow:hidden;flex:1 1;width:var(--width);min-height:var(--height);max-height:var(--height);padding:0;border:var(--border) solid var(--color-border);border-radius:var(--border-radius-large)}input:checked+label>.template-picker__preview[data-v-17417a0a]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-17417a0a]{display:flex}.template-picker__image[data-v-17417a0a]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-17417a0a]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-17417a0a]{overflow:hidden;max-width:calc(var(--width) + 4px);padding:var(--margin);white-space:nowrap;text-overflow:ellipsis}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files/src/components/TemplatePreview.vue\"],\"names\":[],\"mappings\":\"AAGC,wCACC,YAAA,CAGD,yCACC,YAAA,CAEA,kBAAA,CACA,QAAA,CACA,qBAAA,CAEA,oFACC,cAAA,CACA,gBAAA,CAGD,iDACC,uBAAA,CAIF,2CACC,aAAA,CACA,eAAA,CAEA,QAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,SAAA,CACA,8CAAA,CACA,wCAAA,CAEA,+DACC,yCAAA,CAGD,mDAEC,YAAA,CAIF,yCACC,cAAA,CACA,6CAAA,CAEA,gBAAA,CAID,2EACC,2BAAA,CAEA,WAAA,CACA,yCAAA,CAEA,kBAAA,CAGD,yCACC,eAAA,CAEA,kCAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA\",\"sourcesContent\":[\"\\n\\n.template-picker {\\n\\t&__item {\\n\\t\\tdisplay: flex;\\n\\t}\\n\\n\\t&__label {\\n\\t\\tdisplay: flex;\\n\\t\\t// Align in the middle of the grid\\n\\t\\talign-items: center;\\n\\t\\tflex: 1 1;\\n\\t\\tflex-direction: column;\\n\\n\\t\\t&, * {\\n\\t\\t\\tcursor: pointer;\\n\\t\\t\\tuser-select: none;\\n\\t\\t}\\n\\n\\t\\t&::before {\\n\\t\\t\\tdisplay: none !important;\\n\\t\\t}\\n\\t}\\n\\n\\t&__preview {\\n\\t\\tdisplay: block;\\n\\t\\toverflow: hidden;\\n\\t\\t// Stretch so all entries are the same width\\n\\t\\tflex: 1 1;\\n\\t\\twidth: var(--width);\\n\\t\\tmin-height: var(--height);\\n\\t\\tmax-height: var(--height);\\n\\t\\tpadding: 0;\\n\\t\\tborder: var(--border) solid var(--color-border);\\n\\t\\tborder-radius: var(--border-radius-large);\\n\\n\\t\\tinput:checked + label > & {\\n\\t\\t\\tborder-color: var(--color-primary-element);\\n\\t\\t}\\n\\n\\t\\t&--failed {\\n\\t\\t\\t// Make sure to properly center fallback icon\\n\\t\\t\\tdisplay: flex;\\n\\t\\t}\\n\\t}\\n\\n\\t&__image {\\n\\t\\tmax-width: 100%;\\n\\t\\tbackground-color: var(--color-main-background);\\n\\n\\t\\tobject-fit: cover;\\n\\t}\\n\\n\\t// Failed preview, fallback to mime icon\\n\\t&__preview--failed &__image {\\n\\t\\twidth: calc(var(--margin) * 8);\\n\\t\\t// Center mime icon\\n\\t\\tmargin: auto;\\n\\t\\tbackground-color: transparent !important;\\n\\n\\t\\tobject-fit: initial;\\n\\t}\\n\\n\\t&__title {\\n\\t\\toverflow: hidden;\\n\\t\\t// also count preview border\\n\\t\\tmax-width: calc(var(--width) + 2*2px);\\n\\t\\tpadding: var(--margin);\\n\\t\\twhite-space: nowrap;\\n\\t\\ttext-overflow: ellipsis;\\n\\t}\\n}\\n\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.template-field__checkbox[data-v-00f936be]{margin:20px 0}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue\"],\"names\":[],\"mappings\":\"AACA,2CACE,aAAA\",\"sourcesContent\":[\"\\n.template-field__checkbox {\\n margin: 20px 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.templates-picker__form[data-v-ef629ca2]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-ef629ca2]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-ef629ca2]{display:grid;grid-gap:calc(var(--margin)*2);grid-auto-columns:1fr;max-width:calc(var(--fullwidth)*6);grid-template-columns:repeat(auto-fit, var(--fullwidth));grid-auto-rows:1fr;justify-content:center}.templates-picker__buttons[data-v-ef629ca2]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0, var(--gradient-main-background))}.templates-picker__buttons button[data-v-ef629ca2],.templates-picker__buttons input[type=submit][data-v-ef629ca2]{height:44px}.templates-picker[data-v-ef629ca2] .modal-container{position:relative}.templates-picker__loading[data-v-ef629ca2]{position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;margin:0;background-color:var(--color-main-background-translucent)}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files/src/views/TemplatePicker.vue\"],\"names\":[],\"mappings\":\"AAEC,yCACC,6BAAA,CAEA,gBAAA,CAEA,4CACC,iBAAA,CACA,gBAAA,CACA,4CAAA,CAIF,yCACC,YAAA,CACA,8BAAA,CACA,qBAAA,CAEA,kCAAA,CACA,wDAAA,CAEA,kBAAA,CAEA,sBAAA,CAGD,4CACC,YAAA,CACA,mBAAA,CACA,2CAAA,CACA,eAAA,CACA,QAAA,CACA,oEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,MAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,yDAAA\",\"sourcesContent\":[\"\\n.templates-picker {\\n\\t&__form {\\n\\t\\tpadding: calc(var(--margin) * 2);\\n\\t\\t// Will be handled by the buttons\\n\\t\\tpadding-bottom: 0;\\n\\n\\t\\th2 {\\n\\t\\t\\ttext-align: center;\\n\\t\\t\\tfont-weight: bold;\\n\\t\\t\\tmargin: var(--margin) 0 calc(var(--margin) * 2);\\n\\t\\t}\\n\\t}\\n\\n\\t&__list {\\n\\t\\tdisplay: grid;\\n\\t\\tgrid-gap: calc(var(--margin) * 2);\\n\\t\\tgrid-auto-columns: 1fr;\\n\\t\\t// We want maximum 5 columns. Putting 6 as we don't count the grid gap. So it will always be lower than 6\\n\\t\\tmax-width: calc(var(--fullwidth) * 6);\\n\\t\\tgrid-template-columns: repeat(auto-fit, var(--fullwidth));\\n\\t\\t// Make sure all rows are the same height\\n\\t\\tgrid-auto-rows: 1fr;\\n\\t\\t// Center the columns set\\n\\t\\tjustify-content: center;\\n\\t}\\n\\n\\t&__buttons {\\n\\t\\tdisplay: flex;\\n\\t\\tjustify-content: end;\\n\\t\\tpadding: calc(var(--margin) * 2) var(--margin);\\n\\t\\tposition: sticky;\\n\\t\\tbottom: 0;\\n\\t\\tbackground-image: linear-gradient(0, var(--gradient-main-background));\\n\\n\\t\\tbutton, input[type='submit'] {\\n\\t\\t\\theight: 44px;\\n\\t\\t}\\n\\t}\\n\\n\\t// Make sure we're relative for the loading emptycontent on top\\n\\t::v-deep .modal-container {\\n\\t\\tposition: relative;\\n\\t}\\n\\n\\t&__loading {\\n\\t\\tposition: absolute;\\n\\t\\ttop: 0;\\n\\t\\tleft: 0;\\n\\t\\tjustify-content: center;\\n\\t\\twidth: 100%;\\n\\t\\theight: 100%;\\n\\t\\tmargin: 0;\\n\\t\\tbackground-color: var(--color-main-background-translucent);\\n\\t}\\n}\\n\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.template-field-modal__content[data-v-fbb34ff6]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-fbb34ff6]{text-align:center}.template-field-modal__buttons[data-v-fbb34ff6]{display:flex;justify-content:flex-end;gap:var(--default-grid-baseline);margin:calc(var(--default-grid-baseline)*4);margin-top:0}`, \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files/src/components/TemplateFiller.vue\"],\"names\":[],\"mappings\":\"AAGA,gDACC,4CAHc,CAKd,mDACC,iBAAA,CAIF,gDACC,YAAA,CACA,wBAAA,CACA,gCAAA,CACA,2CAdc,CAed,YAAA\",\"sourcesContent\":[\"\\n$modal-margin: calc(var(--default-grid-baseline) * 4);\\n\\n.template-field-modal__content {\\n\\tpadding: $modal-margin;\\n\\n\\th3 {\\n\\t\\ttext-align: center;\\n\\t}\\n}\\n\\n.template-field-modal__buttons {\\n\\tdisplay: flex;\\n\\tjustify-content: flex-end;\\n\\tgap: var(--default-grid-baseline);\\n\\tmargin: $modal-margin;\\n\\tmargin-top: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["name","inheritAttrs","props","basename","type","String","required","checked","Boolean","default","fileid","Number","filename","previewUrl","hasPreview","mime","ratio","data","failedPreview","computed","nameWithoutExt","indexOf","split","slice","join","id","realPreviewUrl","mimeIcon","isPublicShare","generateUrl","getSharingToken","encodePath","OC","MimeType","getIconUrl","methods","onCheck","$emit","onFailure","focus","$refs","input","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","_vm","this","_c","_self","staticClass","ref","attrs","domProps","on","_v","class","_s","Symbol","toStringTag","defineComponent","components","NcTextField","field","Object","value","fieldLabel","label","alias","charAt","toUpperCase","fieldId","index","property","_setupProxy","content","$event","NcCheckboxRadioSwitch","NcModal","NcButton","NcLoadingIcon","TemplateRichTextField","TemplateCheckboxField","fields","Array","onSubmit","Function","localFields","loading","t","trackInput","_ref","getFieldComponent","fieldType","map","str","fieldHasLabel","submit","_l","key","tag","_e","NcEmptyContent","TemplatePreview","parent","opened","provider","extension","extname","length","emptyTemplate","mimetypes","selectedTemplate","templates","find","template","style","width","margin","border","Math","round","open","fetchedProvider","async","axios","get","generateOcsUrl","ocs","getTemplates","app","Error","$nextTick","emptyTemplatePreview","close","createFile","templateFields","currentDirectory","URL","window","location","href","searchParams","logger","warn","fileInfo","filePath","templatePath","templateType","post","createFromTemplate","normalize","debug","owner","getCurrentUser","uid","node","File","source","generateRemoteUrl","root","mtime","Date","lastmod","size","permissions","attributes","emit","OCP","Files","Router","goToRoute","view","dir","dirname","openfile","error","showError","spawnDialog","TemplateFiller","preventDefault","stopPropagation","apply","arguments","_b","___CSS_LOADER_EXPORT___","push","module"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/4013-4013.js.map.license b/dist/4013-4013.js.map.license
deleted file mode 120000
index b01a942257c..00000000000
--- a/dist/4013-4013.js.map.license
+++ /dev/null
@@ -1 +0,0 @@
-4013-4013.js.license
\ No newline at end of file
diff --git a/dist/5708-5708.js b/dist/5708-5708.js
new file mode 100644
index 00000000000..00149c49a06
--- /dev/null
+++ b/dist/5708-5708.js
@@ -0,0 +1,2 @@
+"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5708,7471],{22738:(e,t,i)=>{i.r(t),i.d(t,{default:()=>xt});var a=i(21777),n=i(85168),l=i(61338),r=i(35810),s=i(77815),o=i(53334),d=i(63814),c=i(43627),p=i(85471),A=i(65043),m=i(32190),h=i(64711),u=i(71225),f=i(82680);const v={name:"TemplatePreview",inheritAttrs:!1,props:{basename:{type:String,required:!0},checked:{type:Boolean,default:!1},fileid:{type:[String,Number],required:!0},filename:{type:String,required:!0},previewUrl:{type:String,default:null},hasPreview:{type:Boolean,default:!0},mime:{type:String,required:!0},ratio:{type:Number,default:null}},data:()=>({failedPreview:!1}),computed:{nameWithoutExt(){return this.basename.indexOf(".")>-1?this.basename.split(".").slice(0,-1).join("."):this.basename},id(){return`template-picker-${this.fileid}`},realPreviewUrl(){return this.failedPreview&&this.mimeIcon?this.mimeIcon:this.previewUrl?this.previewUrl:(0,f.f)()?(0,d.Jv)(`/apps/files_sharing/publicpreview/${(0,f.G)()}?fileId=${this.fileid}&file=${(0,u.O0)(this.filename)}&x=256&y=256&a=1`):(0,d.Jv)(`/core/preview?fileId=${this.fileid}&x=256&y=256&a=1`)},mimeIcon(){return OC.MimeType.getIconUrl(this.mime)}},methods:{onCheck(){this.$emit("check",this.fileid)},onFailure(){this.failedPreview=!0},focus(){this.$refs.input?.focus()}}};var C=i(85072),g=i.n(C),b=i(97825),_=i.n(b),w=i(77659),y=i.n(w),k=i(55056),x=i.n(k),N=i(10540),T=i.n(N),F=i(41113),P=i.n(F),S=i(34747),I={};I.styleTagTransform=P(),I.setAttributes=x(),I.insert=y().bind(null,"head"),I.domAPI=_(),I.insertStyleElement=T(),g()(S.A,I),S.A&&S.A.locals&&S.A.locals;var B=i(14486);const E=(0,B.A)(v,(function(){var e=this,t=e._self._c;return t("li",{staticClass:"template-picker__item"},[t("input",{ref:"input",staticClass:"radio",attrs:{id:e.id,type:"radio",name:"template-picker"},domProps:{checked:e.checked},on:{change:e.onCheck}}),e._v(" "),t("label",{staticClass:"template-picker__label",attrs:{for:e.id}},[t("div",{staticClass:"template-picker__preview",class:e.failedPreview?"template-picker__preview--failed":""},[t("img",{staticClass:"template-picker__image",attrs:{src:e.realPreviewUrl,alt:"",draggable:"false"},on:{error:e.onFailure}})]),e._v(" "),t("span",{staticClass:"template-picker__title"},[e._v("\n\t\t\t"+e._s(e.nameWithoutExt)+"\n\t\t")])])])}),[],!1,null,"17417a0a",null).exports;var D=i(48964),L=i(68736),$=i(61744),j=i(97691),M=i(18642),W=i(72298),G=i(73346),R=i(90309),U=i(20282),H=i(15502),z=i(55925),O=i(28440),X=i(30803),q=i(47611),Y=i(10363),K=i(23538),Q=i(50341),J=i(25535),Z=i(87142),V=i(27345),ee=i(85865),te=i(75424),ie=i(70952),ae=i(11683),ne=i(542),le=i(80236),re=i(14727),se=i(80065),oe=i(19015),de=i(18608),ce=i(94722),pe=i(59553),Ae=i(26355),me=i(1758),he=i(21376),ue=i(77333),fe=i(22318),ve=i(10402),Ce=i(31719),ge=i(75971),be=i(17309),_e=i(50298),we=i(49013),ye=i(29805),ke=i(88984),xe=i(96229),Ne=i(18564),Te=i(25521),Fe=i(68229),Pe=i(20070),Se=i(79008),Ie=i(19498),Be=i(26517),Ee=i(22792),De=i(13058),Le=i(55945),$e=i(7723),je=i(2645),Me=i(3226),We=i(9060),Ge=i(67699),Re=i(68712),Ue=i(53304),He=i(64906),ze=i(62328),Oe=i(68883),Xe=(i(58322),i(90912),i(82025)),qe=i(71560),Ye=i(71639),Ke=i(24431),Qe=i(77930),Je=i(87605),Ze=i(70253),Ve=i(83847),et=i(22907),tt=i(18127),it=i(64162),at=i(89675),nt=i(49814),lt=i(23610),rt=(i(55581),i(94205),i(95462),i(23020),i(53429),i(23739),i(16343),i(29928),i(64660),i(18547),i(42892)),st=i(15074),ot=(i(59656),i(75105),i(92471),i(16406),i(2508));D.N,L.N,$.A,j.N,M.N,W.A,G.N,R.A,H.A,z.A,O.N,U.N,X.N,q.A,Y.A,K.N,Q.N,J.A,Z.N,V.A,ee.A,te.N,ie.N,ae.N,ne.A,le.N,re.A,se.N,oe.N,de.A,ze.N,ce.N,pe.N,Ae.N,me.N,he.A,ue.N,fe.N,ve.N,Ce.N,ge.N,be.N,_e.N,we.N,ye.default,ke.A,xe.N,Ne.N,Te.A,Fe.N,m.A,Pe.A,Se.A,Ie.N,Be.N,Ee.N,De.N,Le.N,$e.N,je.A,He.N,h.A,Me.A,We.N,Ge.N,Re.N,Ue.N,ze.a,Oe.N,Ye.N,Xe.N,Ke.N,Qe.N,Je.N,Ze.N,Ve.N,et.N,qe.N,tt.N,it.N,at.N,nt.N,lt.A,Symbol.toStringTag,rt.A,st.u,ot.yw,Symbol.toStringTag;const dt=(0,p.pM)({name:"TemplateRichTextField",components:{NcTextField:qe.N},props:{field:{type:Object,default:()=>{}}},data:()=>({value:""}),computed:{fieldLabel(){const e=this.field.name||this.field.alias;return e.charAt(0).toUpperCase()+e.slice(1)},fieldId(){return"text-field"+this.field.index}},methods:{input(){this.$emit("input",{index:this.field.index,property:"content",value:this.value})}}});var ct=i(28837),pt={};pt.styleTagTransform=P(),pt.setAttributes=x(),pt.insert=y().bind(null,"head"),pt.domAPI=_(),pt.insertStyleElement=T(),g()(ct.A,pt),ct.A&&ct.A.locals&&ct.A.locals;const At=(0,B.A)(dt,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"template-field__text"},[t("label",{attrs:{for:e.fieldId}},[e._v("\n\t\t"+e._s(e.fieldLabel)+"\n\t")]),e._v(" "),t("NcTextField",{attrs:{id:e.fieldId,type:"text",value:e.value,label:e.fieldLabel,"label-outside":!0,placeholder:e.field.content},on:{"update:value":function(t){e.value=t},input:e.input}})],1)}),[],!1,null,"acdec0ea",null).exports,mt=(0,p.pM)({name:"TemplateCheckboxField",components:{NcCheckboxRadioSwitch:ue.N},props:{field:{type:Object,default:()=>{}}},data(){return{value:this.field.checked??!1}},computed:{fieldLabel(){const e=this.field.name||this.field.alias;return e.charAt(0).toUpperCase()+e.slice(1)},fieldId(){return"checkbox-field"+this.field.index}},methods:{input(){this.$emit("input",{index:this.field.index,property:"checked",value:this.value})}}});var ht=i(47642),ut={};ut.styleTagTransform=P(),ut.setAttributes=x(),ut.insert=y().bind(null,"head"),ut.domAPI=_(),ut.insertStyleElement=T(),g()(ht.A,ut),ht.A&&ht.A.locals&&ht.A.locals;const ft=(0,B.A)(mt,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"template-field__checkbox"},[t("NcCheckboxRadioSwitch",{attrs:{id:e.fieldId,checked:e.value,type:"switch"},on:{"update:checked":[function(t){e.value=t},e.input]}},[e._v("\n\t\t"+e._s(e.fieldLabel)+"\n\t")])],1)}),[],!1,null,"00f936be",null).exports,vt=(0,p.pM)({name:"TemplateFiller",components:{NcModal:h.A,NcButton:he.A,NcLoadingIcon:je.A,TemplateRichTextField:At,TemplateCheckboxField:ft},props:{fields:{type:Array,default:()=>[]},onSubmit:{type:Function,default:async()=>{}}},data:()=>({localFields:{},loading:!1}),methods:{t:o.Tl,trackInput(e){let{index:t,property:i,value:a}=e;this.localFields[t]||(this.localFields[t]={}),this.localFields[t][i]=a},getFieldComponent:e=>`Template${e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}Field`,fieldHasLabel:e=>e.name||e.alias,async submit(){this.loading=!0,await this.onSubmit(this.localFields),this.$emit("close")}}});var Ct=i(95132),gt={};gt.styleTagTransform=P(),gt.setAttributes=x(),gt.insert=y().bind(null,"head"),gt.domAPI=_(),gt.insertStyleElement=T(),g()(Ct.A,gt),Ct.A&&Ct.A.locals&&Ct.A.locals;const bt=(0,B.A)(vt,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcModal",{attrs:{"label-id":"template-field-modal__label"}},[t("div",{staticClass:"template-field-modal__content"},[t("form",[t("h3",{attrs:{id:"template-field-modal__label"}},[e._v("\n\t\t\t\t"+e._s(e.t("files","Fill template fields"))+"\n\t\t\t")]),e._v(" "),e._l(e.fields,(function(i){return t("div",{key:i.index},[e.fieldHasLabel(i)?t(e.getFieldComponent(i.type),{tag:"component",attrs:{field:i},on:{input:e.trackInput}}):e._e()],1)}))],2)]),e._v(" "),t("div",{staticClass:"template-field-modal__buttons"},[e.loading?t("NcLoadingIcon",{attrs:{name:e.t("files","Submitting fields…")}}):e._e(),e._v(" "),t("NcButton",{attrs:{"aria-label":"Submit button",type:"primary"},on:{click:e.submit}},[e._v("\n\t\t\t"+e._s(e.t("files","Submit"))+"\n\t\t")])],1)])}),[],!1,null,"fbb34ff6",null).exports;var _t=i(9558);const wt=(0,p.pM)({name:"TemplatePicker",components:{NcEmptyContent:m.A,NcModal:h.A,TemplatePreview:E},props:{parent:{type:Object,default:()=>null}},data:()=>({checked:-1,loading:!1,name:null,opened:!1,provider:null}),computed:{extension(){return(0,c.extname)(this.name??"")},nameWithoutExt(){return this.extension?this.name.slice(0,0-this.extension.length):this.name},emptyTemplate(){return{basename:(0,o.Tl)("files","Blank"),fileid:-1,filename:(0,o.Tl)("files","Blank"),hasPreview:!1,mime:this.provider?.mimetypes[0]||this.provider?.mimetypes}},selectedTemplate(){return this.provider?this.provider.templates.find((e=>e.fileid===this.checked)):null},style(){if(!this.provider)return{};const e=(this.provider.ratio?this.provider.ratio:1.77)>1?240:160;return{"--margin":"8px","--width":e+"px","--border":"2px","--fullwidth":e+16+4+"px","--height":this.provider.ratio?Math.round(e/this.provider.ratio)+"px":null}}},methods:{t:o.Tl,async open(e,t){if(this.checked=this.emptyTemplate.fileid,this.name=e,this.provider=t,null===(0,a.HW)())return void this.onSubmit();const i=(await async function(){return(await A.Ay.get((0,d.KT)("apps/files/api/v1/templates"))).data.ocs.data}()).find((e=>e.app===t.app&&e.label===t.label));if(null===i)throw new Error("Failed to match provider in results");this.provider=i,0!==i.templates.length?(this.opened=!0,this.$nextTick((()=>{this.$refs.emptyTemplatePreview?.focus()}))):this.onSubmit()},close(){this.checked=this.emptyTemplate.fileid,this.loading=!1,this.name=null,this.opened=!1,this.provider=null},onCheck(e){this.checked=e},async createFile(e){const t=new URL(window.location.href).searchParams.get("dir")||"/";if(this.nameWithoutExt===this.name&&(_t.A.warn("Fixed invalid filename",{name:this.name,extension:this.provider?.extension}),this.name=`${this.name}${this.provider?.extension??""}`),null===(0,a.HW)()){const e=(0,s.KU)(),i=(0,c.join)((0,s.ei)(),t,this.name??"");await e.putFileContents(i,"");const a=await e.stat(i,{data:(0,s.aN)(),details:!0});_t.A.debug("Created new file",{fileInfo:a.data});const n=(0,s.pO)(a.data);this.handleFileCreation(n)}else try{const i=await async function(e,t,i,a){return(await A.Ay.post((0,d.KT)("apps/files/api/v1/templates/create"),{filePath:e,templatePath:t,templateType:i,templateFields:a})).data.ocs.data}((0,c.normalize)(`${t}/${this.name}`),this.selectedTemplate?.filename??"",this.selectedTemplate?.templateType??"",e);_t.A.debug("Created new file",{fileInfo:i});const n=(0,a.HW)()?.uid||null,l=new r.ZH({id:i.fileid,source:(0,d.dC)((0,c.join)(`dav/files/${n}`,i.filename)),root:`/files/${n}`,mime:i.mime,mtime:new Date(1e3*i.lastmod),owner:n,size:i.size,permissions:i.permissions,attributes:{"mount-type":this.parent?.attributes?.["mount-type"],"owner-id":this.parent?.attributes?.["owner-id"],"owner-display-name":this.parent?.attributes?.["owner-display-name"],...i,"has-preview":i.hasPreview}});this.handleFileCreation(l),this.close()}catch(e){_t.A.error("Error while creating the new file from template",{error:e}),(0,n.Qg)((0,o.Tl)("files","Unable to create new file from template"))}finally{this.loading=!1}},handleFileCreation(e){(0,l.Ic)("files:node:created",e),window.OCP.Files.Router.goToRoute(null,{view:"files",fileid:e.fileid},{dir:e.dirname,openfile:"true"})},async onSubmit(){if(null===(0,a.HW)())return this.loading=!0,this.createFile();this.selectedTemplate?.fields?.length>0?(0,n.Ss)(bt,{fields:this.selectedTemplate.fields,onSubmit:this.createFile}):(this.loading=!0,await this.createFile())}}});var yt=i(62112),kt={};kt.styleTagTransform=P(),kt.setAttributes=x(),kt.insert=y().bind(null,"head"),kt.domAPI=_(),kt.insertStyleElement=T(),g()(yt.A,kt),yt.A&&yt.A.locals&&yt.A.locals;const xt=(0,B.A)(wt,(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.opened?t("NcModal",{staticClass:"templates-picker",attrs:{"clear-view-delay":-1,size:"large"},on:{close:e.close}},[t("form",{staticClass:"templates-picker__form",style:e.style,on:{submit:function(t){return t.preventDefault(),t.stopPropagation(),e.onSubmit.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.t("files","Pick a template for {name}",{name:e.nameWithoutExt})))]),e._v(" "),t("ul",{staticClass:"templates-picker__list"},[t("TemplatePreview",e._b({ref:"emptyTemplatePreview",attrs:{checked:e.checked===e.emptyTemplate.fileid},on:{check:e.onCheck}},"TemplatePreview",e.emptyTemplate,!1)),e._v(" "),e._l(e.provider.templates,(function(i){return t("TemplatePreview",e._b({key:i.fileid,attrs:{checked:e.checked===i.fileid,ratio:e.provider.ratio},on:{check:e.onCheck}},"TemplatePreview",i,!1))}))],2),e._v(" "),t("div",{staticClass:"templates-picker__buttons"},[t("input",{staticClass:"primary",attrs:{type:"submit","aria-label":e.t("files","Create a new file with the selected template")},domProps:{value:e.t("files","Create")}})])]),e._v(" "),e.loading?t("NcEmptyContent",{staticClass:"templates-picker__loading",attrs:{icon:"icon-loading"}},[e._v("\n\t\t"+e._s(e.t("files","Creating file"))+"\n\t")]):e._e()],1):e._e()}),[],!1,null,"faa1b776",null).exports},27514:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M18.4%207.4L17%206l-6%206%206%206%201.4-1.4-4.6-4.6%204.6-4.6m-6%200L11%206l-6%206%206%206%201.4-1.4L7.8%2012l4.6-4.6z%27/%3e%3c/svg%3e"},27518:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M15.4%2016.6L10.8%2012l4.6-4.6L14%206l-6%206%206%206%201.4-1.4z%27/%3e%3c/svg%3e"},28837:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field__text[data-v-acdec0ea]{margin:20px 0}.template-field__text label[data-v-acdec0ea]{font-weight:bold}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue"],names:[],mappings:"AACA,uCACC,aAAA,CAEA,6CACC,gBAAA",sourcesContent:["\n.template-field__text {\n\tmargin: 20px 0;\n\n\tlabel {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const s=r},34747:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-picker__item[data-v-17417a0a]{display:flex}.template-picker__label[data-v-17417a0a]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-17417a0a],.template-picker__label *[data-v-17417a0a]{cursor:pointer;user-select:none}.template-picker__label[data-v-17417a0a]::before{display:none !important}.template-picker__preview[data-v-17417a0a]{display:block;overflow:hidden;flex:1 1;width:var(--width);min-height:var(--height);max-height:var(--height);padding:0;border:var(--border) solid var(--color-border);border-radius:var(--border-radius-large)}input:checked+label>.template-picker__preview[data-v-17417a0a]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-17417a0a]{display:flex}.template-picker__image[data-v-17417a0a]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-17417a0a]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-17417a0a]{overflow:hidden;max-width:calc(var(--width) + 4px);padding:var(--margin);white-space:nowrap;text-overflow:ellipsis}","",{version:3,sources:["webpack://./apps/files/src/components/TemplatePreview.vue"],names:[],mappings:"AAGC,wCACC,YAAA,CAGD,yCACC,YAAA,CAEA,kBAAA,CACA,QAAA,CACA,qBAAA,CAEA,oFACC,cAAA,CACA,gBAAA,CAGD,iDACC,uBAAA,CAIF,2CACC,aAAA,CACA,eAAA,CAEA,QAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,SAAA,CACA,8CAAA,CACA,wCAAA,CAEA,+DACC,yCAAA,CAGD,mDAEC,YAAA,CAIF,yCACC,cAAA,CACA,6CAAA,CAEA,gBAAA,CAID,2EACC,2BAAA,CAEA,WAAA,CACA,yCAAA,CAEA,kBAAA,CAGD,yCACC,eAAA,CAEA,kCAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:["\n\n.template-picker {\n\t&__item {\n\t\tdisplay: flex;\n\t}\n\n\t&__label {\n\t\tdisplay: flex;\n\t\t// Align in the middle of the grid\n\t\talign-items: center;\n\t\tflex: 1 1;\n\t\tflex-direction: column;\n\n\t\t&, * {\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&::before {\n\t\t\tdisplay: none !important;\n\t\t}\n\t}\n\n\t&__preview {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\t// Stretch so all entries are the same width\n\t\tflex: 1 1;\n\t\twidth: var(--width);\n\t\tmin-height: var(--height);\n\t\tmax-height: var(--height);\n\t\tpadding: 0;\n\t\tborder: var(--border) solid var(--color-border);\n\t\tborder-radius: var(--border-radius-large);\n\n\t\tinput:checked + label > & {\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\n\t\t&--failed {\n\t\t\t// Make sure to properly center fallback icon\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n\n\t&__image {\n\t\tmax-width: 100%;\n\t\tbackground-color: var(--color-main-background);\n\n\t\tobject-fit: cover;\n\t}\n\n\t// Failed preview, fallback to mime icon\n\t&__preview--failed &__image {\n\t\twidth: calc(var(--margin) * 8);\n\t\t// Center mime icon\n\t\tmargin: auto;\n\t\tbackground-color: transparent !important;\n\n\t\tobject-fit: initial;\n\t}\n\n\t&__title {\n\t\toverflow: hidden;\n\t\t// also count preview border\n\t\tmax-width: calc(var(--width) + 2*2px);\n\t\tpadding: var(--margin);\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n"],sourceRoot:""}]);const s=r},47642:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field__checkbox[data-v-00f936be]{margin:20px 0}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue"],names:[],mappings:"AACA,2CACE,aAAA",sourcesContent:["\n.template-field__checkbox {\n margin: 20px 0;\n}\n"],sourceRoot:""}]);const s=r},62112:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".templates-picker__form[data-v-faa1b776]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-faa1b776]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-faa1b776]{display:grid;grid-gap:calc(var(--margin)*2);grid-auto-columns:1fr;max-width:calc(var(--fullwidth)*6);grid-template-columns:repeat(auto-fit, var(--fullwidth));grid-auto-rows:1fr;justify-content:center}.templates-picker__buttons[data-v-faa1b776]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0, var(--gradient-main-background))}.templates-picker__buttons button[data-v-faa1b776],.templates-picker__buttons input[type=submit][data-v-faa1b776]{height:44px}.templates-picker[data-v-faa1b776] .modal-container{position:relative}.templates-picker__loading[data-v-faa1b776]{position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;margin:0;background-color:var(--color-main-background-translucent)}","",{version:3,sources:["webpack://./apps/files/src/views/TemplatePicker.vue"],names:[],mappings:"AAEC,yCACC,6BAAA,CAEA,gBAAA,CAEA,4CACC,iBAAA,CACA,gBAAA,CACA,4CAAA,CAIF,yCACC,YAAA,CACA,8BAAA,CACA,qBAAA,CAEA,kCAAA,CACA,wDAAA,CAEA,kBAAA,CAEA,sBAAA,CAGD,4CACC,YAAA,CACA,mBAAA,CACA,2CAAA,CACA,eAAA,CACA,QAAA,CACA,oEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,MAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,yDAAA",sourcesContent:["\n.templates-picker {\n\t&__form {\n\t\tpadding: calc(var(--margin) * 2);\n\t\t// Will be handled by the buttons\n\t\tpadding-bottom: 0;\n\n\t\th2 {\n\t\t\ttext-align: center;\n\t\t\tfont-weight: bold;\n\t\t\tmargin: var(--margin) 0 calc(var(--margin) * 2);\n\t\t}\n\t}\n\n\t&__list {\n\t\tdisplay: grid;\n\t\tgrid-gap: calc(var(--margin) * 2);\n\t\tgrid-auto-columns: 1fr;\n\t\t// We want maximum 5 columns. Putting 6 as we don't count the grid gap. So it will always be lower than 6\n\t\tmax-width: calc(var(--fullwidth) * 6);\n\t\tgrid-template-columns: repeat(auto-fit, var(--fullwidth));\n\t\t// Make sure all rows are the same height\n\t\tgrid-auto-rows: 1fr;\n\t\t// Center the columns set\n\t\tjustify-content: center;\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tjustify-content: end;\n\t\tpadding: calc(var(--margin) * 2) var(--margin);\n\t\tposition: sticky;\n\t\tbottom: 0;\n\t\tbackground-image: linear-gradient(0, var(--gradient-main-background));\n\n\t\tbutton, input[type='submit'] {\n\t\t\theight: 44px;\n\t\t}\n\t}\n\n\t// Make sure we're relative for the loading emptycontent on top\n\t::v-deep .modal-container {\n\t\tposition: relative;\n\t}\n\n\t&__loading {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tmargin: 0;\n\t\tbackground-color: var(--color-main-background-translucent);\n\t}\n}\n\n"],sourceRoot:""}]);const s=r},79722:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M5.6%207.4L7%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6m6%200L13%206l6%206-6%206-1.4-1.4%204.6-4.6-4.6-4.6z%27/%3e%3c/svg%3e"},86886:e=>{e.exports="data:image/svg+xml,%3c%21--%20-%20SPDX-FileCopyrightText:%202020%20Google%20Inc.%20-%20SPDX-License-Identifier:%20Apache-2.0%20--%3e%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2724%27%20height=%2724%27%20fill=%27%23222%27%3e%3cpath%20d=%27M8.6%2016.6l4.6-4.6-4.6-4.6L10%206l6%206-6%206-1.4-1.4z%27/%3e%3c/svg%3e"},95132:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(71354),n=i.n(a),l=i(76314),r=i.n(l)()(n());r.push([e.id,".template-field-modal__content[data-v-fbb34ff6]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-fbb34ff6]{text-align:center}.template-field-modal__buttons[data-v-fbb34ff6]{display:flex;justify-content:flex-end;gap:var(--default-grid-baseline);margin:calc(var(--default-grid-baseline)*4);margin-top:0}","",{version:3,sources:["webpack://./apps/files/src/components/TemplateFiller.vue"],names:[],mappings:"AAGA,gDACC,4CAHc,CAKd,mDACC,iBAAA,CAIF,gDACC,YAAA,CACA,wBAAA,CACA,gCAAA,CACA,2CAdc,CAed,YAAA",sourcesContent:["\n$modal-margin: calc(var(--default-grid-baseline) * 4);\n\n.template-field-modal__content {\n\tpadding: $modal-margin;\n\n\th3 {\n\t\ttext-align: center;\n\t}\n}\n\n.template-field-modal__buttons {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tgap: var(--default-grid-baseline);\n\tmargin: $modal-margin;\n\tmargin-top: 0;\n}\n"],sourceRoot:""}]);const s=r}}]);
+//# sourceMappingURL=5708-5708.js.map?v=0ae80f1b11ec7b3d0c83
\ No newline at end of file
diff --git a/dist/4013-4013.js.license b/dist/5708-5708.js.license
similarity index 100%
rename from dist/4013-4013.js.license
rename to dist/5708-5708.js.license
diff --git a/dist/5708-5708.js.map b/dist/5708-5708.js.map
new file mode 100644
index 00000000000..63456e8a860
--- /dev/null
+++ b/dist/5708-5708.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"5708-5708.js?v=0ae80f1b11ec7b3d0c83","mappings":"2IAAA,I,0JCsCA,MCtC2L,EDwC3L,CACAA,KAAA,kBACAC,cAAA,EAEAC,MAAA,CACAC,SAAA,CACAC,KAAAC,OACAC,UAAA,GAEAC,QAAA,CACAH,KAAAI,QACAC,SAAA,GAEAC,OAAA,CACAN,KAAA,CAAAC,OAAAM,QACAL,UAAA,GAEAM,SAAA,CACAR,KAAAC,OACAC,UAAA,GAEAO,WAAA,CACAT,KAAAC,OACAI,QAAA,MAEAK,WAAA,CACAV,KAAAI,QACAC,SAAA,GAEAM,KAAA,CACAX,KAAAC,OACAC,UAAA,GAEAU,MAAA,CACAZ,KAAAO,OACAF,QAAA,OAIAQ,KAAAA,KACA,CACAC,eAAA,IAIAC,SAAA,CAMAC,cAAAA,GACA,YAAAjB,SAAAkB,QAAA,aAAAlB,SAAAmB,MAAA,KAAAC,MAAA,MAAAC,KAAA,UAAArB,QACA,EAEAsB,EAAAA,GACA,8BAAAf,QACA,EAEAgB,cAAAA,GAEA,YAAAR,eAAA,KAAAS,SACA,KAAAA,SAGA,KAAAd,WACA,KAAAA,YAGAe,EAAAA,EAAAA,MACAC,EAAAA,EAAAA,IAAA,sCAAAC,EAAAA,EAAAA,eAAA,KAAApB,gBAAAqB,EAAAA,EAAAA,IAAA,KAAAnB,8BAEAiB,EAAAA,EAAAA,IAAA,6BAAAnB,yBACA,EAEAiB,QAAAA,GACA,OAAAK,GAAAC,SAAAC,WAAA,KAAAnB,KACA,GAGAoB,QAAA,CACAC,OAAAA,GACA,KAAAC,MAAA,aAAA3B,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WAAa,MAEnV,S,sECJI6K,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO/K,GAAI,+hCAAgiC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uDAAuD,MAAQ,GAAG,SAAW,sVAAsV,eAAiB,CAAC,u3CAAu3C,WAAa,MAE75F,S,izBCJI6K,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO/K,GAAI,qVAAsV,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,4DAA4D,MAAQ,GAAG,SAAW,+FAA+F,eAAiB,CAAC,iVAAiV,WAAa,MAE37B,S","sources":["webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue?vue&type=script&lang=js","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?926c","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?81db","webpack://nextcloud/./apps/files/src/components/TemplatePreview.vue?c414","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?4b21","webpack:///nextcloud/node_modules/@nextcloud/vue/dist/index.mjs","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?vue&type=script&lang=ts","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?5503","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?cea0","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?vue&type=script&lang=ts","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?75d1","webpack://nextcloud/./apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?ad4c","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=script&lang=js","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?d777","webpack://nextcloud/./apps/files/src/components/TemplateFiller.vue?6295","webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue?vue&type=script&lang=ts","webpack:///nextcloud/apps/files/src/services/Templates.js","webpack://nextcloud/./apps/files/src/views/TemplatePicker.vue?68b0","webpack://nextcloud/./apps/files/src/views/TemplatePicker.vue?afd8","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller/TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/views/TemplatePicker.vue?vue&type=style&index=0&id=faa1b776&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=style&index=0&id=fbb34ff6&prod&lang=scss&scoped=true"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.opened)?_c('NcModal',{staticClass:\"templates-picker\",attrs:{\"clear-view-delay\":-1,\"size\":\"large\"},on:{\"close\":_vm.close}},[_c('form',{staticClass:\"templates-picker__form\",style:(_vm.style),on:{\"submit\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.onSubmit.apply(null, arguments)}}},[_c('h2',[_vm._v(_vm._s(_vm.t('files', 'Pick a template for {name}', { name: _vm.nameWithoutExt })))]),_vm._v(\" \"),_c('ul',{staticClass:\"templates-picker__list\"},[_c('TemplatePreview',_vm._b({ref:\"emptyTemplatePreview\",attrs:{\"checked\":_vm.checked === _vm.emptyTemplate.fileid},on:{\"check\":_vm.onCheck}},'TemplatePreview',_vm.emptyTemplate,false)),_vm._v(\" \"),_vm._l((_vm.provider.templates),function(template){return _c('TemplatePreview',_vm._b({key:template.fileid,attrs:{\"checked\":_vm.checked === template.fileid,\"ratio\":_vm.provider.ratio},on:{\"check\":_vm.onCheck}},'TemplatePreview',template,false))})],2),_vm._v(\" \"),_c('div',{staticClass:\"templates-picker__buttons\"},[_c('input',{staticClass:\"primary\",attrs:{\"type\":\"submit\",\"aria-label\":_vm.t('files', 'Create a new file with the selected template')},domProps:{\"value\":_vm.t('files', 'Create')}})])]),_vm._v(\" \"),(_vm.loading)?_c('NcEmptyContent',{staticClass:\"templates-picker__loading\",attrs:{\"icon\":\"icon-loading\"}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files', 'Creating file'))+\"\\n\\t\")]):_vm._e()],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\t
\n\t\t\n\n\t\t\n\t
\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=script&lang=js\"","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplatePreview.vue?vue&type=template&id=17417a0a&scoped=true\"\nimport script from \"./TemplatePreview.vue?vue&type=script&lang=js\"\nexport * from \"./TemplatePreview.vue?vue&type=script&lang=js\"\nimport style0 from \"./TemplatePreview.vue?vue&type=style&index=0&id=17417a0a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"17417a0a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('li',{staticClass:\"template-picker__item\"},[_c('input',{ref:\"input\",staticClass:\"radio\",attrs:{\"id\":_vm.id,\"type\":\"radio\",\"name\":\"template-picker\"},domProps:{\"checked\":_vm.checked},on:{\"change\":_vm.onCheck}}),_vm._v(\" \"),_c('label',{staticClass:\"template-picker__label\",attrs:{\"for\":_vm.id}},[_c('div',{staticClass:\"template-picker__preview\",class:_vm.failedPreview ? 'template-picker__preview--failed' : ''},[_c('img',{staticClass:\"template-picker__image\",attrs:{\"src\":_vm.realPreviewUrl,\"alt\":\"\",\"draggable\":\"false\"},on:{\"error\":_vm.onFailure}})]),_vm._v(\" \"),_c('span',{staticClass:\"template-picker__title\"},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.nameWithoutExt)+\"\\n\\t\\t\")])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('NcModal',{attrs:{\"label-id\":\"template-field-modal__label\"}},[_c('div',{staticClass:\"template-field-modal__content\"},[_c('form',[_c('h3',{attrs:{\"id\":\"template-field-modal__label\"}},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.t('files', 'Fill template fields'))+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_vm._l((_vm.fields),function(field){return _c('div',{key:field.index},[(_vm.fieldHasLabel(field))?_c(_vm.getFieldComponent(field.type),{tag:\"component\",attrs:{\"field\":field},on:{\"input\":_vm.trackInput}}):_vm._e()],1)})],2)]),_vm._v(\" \"),_c('div',{staticClass:\"template-field-modal__buttons\"},[(_vm.loading)?_c('NcLoadingIcon',{attrs:{\"name\":_vm.t('files', 'Submitting fields…')}}):_vm._e(),_vm._v(\" \"),_c('NcButton',{attrs:{\"aria-label\":\"Submit button\",\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(\"\\n\\t\\t\\t\"+_vm._s(_vm.t('files', 'Submit'))+\"\\n\\t\\t\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { N as NcActionButton } from \"./chunks/NcActionButton-rjMoymt-.mjs\";\nimport { N as NcActionButtonGroup } from \"./chunks/NcActionButtonGroup-hhh3GBSS.mjs\";\nimport NcActionCaption from \"./Components/NcActionCaption.mjs\";\nimport { N as NcActionCheckbox } from \"./chunks/NcActionCheckbox-DSMKeccY.mjs\";\nimport { N as NcActionInput } from \"./chunks/NcActionInput-CQ_WEPqQ.mjs\";\nimport NcActionLink from \"./Components/NcActionLink.mjs\";\nimport { N as NcActionRadio } from \"./chunks/NcActionRadio-yAm71xxU.mjs\";\nimport NcActionRouter from \"./Components/NcActionRouter.mjs\";\nimport { N as NcActions } from \"./chunks/NcActions-BKZA1xVL.mjs\";\nimport NcActionSeparator from \"./Components/NcActionSeparator.mjs\";\nimport NcActionText from \"./Components/NcActionText.mjs\";\nimport { N as NcActionTextEditable } from \"./chunks/NcActionTextEditable-xWQGdOVl.mjs\";\nimport { N as NcAppContent } from \"./chunks/NcAppContent-BS7BiMG0.mjs\";\nimport NcAppContentDetails from \"./Components/NcAppContentDetails.mjs\";\nimport NcAppContentList from \"./Components/NcAppContentList.mjs\";\nimport { N as NcAppNavigation } from \"./chunks/NcAppNavigation-BvEa92PC.mjs\";\nimport { N as NcAppNavigationCaption } from \"./chunks/NcAppNavigationCaption-hDsiQMLr.mjs\";\nimport NcAppNavigationIconBullet from \"./Components/NcAppNavigationIconBullet.mjs\";\nimport { N as NcAppNavigationItem } from \"./chunks/NcAppNavigationItem-NIMhmJHh.mjs\";\nimport NcAppNavigationList from \"./Components/NcAppNavigationList.mjs\";\nimport NcAppNavigationNew from \"./Components/NcAppNavigationNew.mjs\";\nimport { N as NcAppNavigationNewItem } from \"./chunks/NcAppNavigationNewItem-D4fJeBl0.mjs\";\nimport { N as NcAppNavigationSearch } from \"./chunks/NcAppNavigationSearch-B9OkdsuE.mjs\";\nimport { N as NcAppNavigationSettings } from \"./chunks/NcAppNavigationSettings-BV34ogWP.mjs\";\nimport NcAppNavigationSpacer from \"./Components/NcAppNavigationSpacer.mjs\";\nimport { N as NcAppSettingsDialog } from \"./chunks/NcAppSettingsDialog-BwsIc_QT.mjs\";\nimport NcAppSettingsSection from \"./Components/NcAppSettingsSection.mjs\";\nimport { N as NcAppSidebar } from \"./chunks/NcAppSidebar-BJgPYOcZ.mjs\";\nimport { N as NcAppSidebarHeader } from \"./chunks/NcAppSidebarHeader-G2VD8Nfl.mjs\";\nimport NcAppSidebarTab from \"./Components/NcAppSidebarTab.mjs\";\nimport { N as NcAvatar } from \"./chunks/NcAvatar-CgF-MFtU.mjs\";\nimport { u } from \"./chunks/NcAvatar-CgF-MFtU.mjs\";\nimport { N as NcBlurHash } from \"./chunks/NcBlurHash-do2wxY-0.mjs\";\nimport { N as NcBreadcrumb } from \"./chunks/NcBreadcrumb-DJpYjXCe.mjs\";\nimport { N as NcBreadcrumbs } from \"./chunks/NcBreadcrumbs-B722pBOd.mjs\";\nimport NcButton from \"./Components/NcButton.mjs\";\nimport { N as NcCheckboxRadioSwitch } from \"./chunks/NcCheckboxRadioSwitch-ip_mRd2T.mjs\";\nimport { N as NcCollectionList } from \"./chunks/NcCollectionList-Khg3X3Zq.mjs\";\nimport { N as NcColorPicker } from \"./chunks/NcColorPicker-MXMbRaLk.mjs\";\nimport { N as NcContent } from \"./chunks/NcContent-BbmqoSY7.mjs\";\nimport { N as NcCounterBubble } from \"./chunks/NcCounterBubble-CDfRYl8B.mjs\";\nimport { N as NcDashboardWidget } from \"./chunks/NcDashboardWidget-D0cFVt4i.mjs\";\nimport { N as NcDashboardWidgetItem } from \"./chunks/NcDashboardWidgetItem-D33MR-DH.mjs\";\nimport { N as NcDateTime } from \"./chunks/NcDateTime-kanSdMgW.mjs\";\nimport NcDateTimePicker from \"./Components/NcDateTimePicker.mjs\";\nimport NcDateTimePickerNative from \"./Components/NcDateTimePickerNative.mjs\";\nimport { N as NcDialog } from \"./chunks/NcDialog-C1b3UtA7.mjs\";\nimport { N as NcDialogButton } from \"./chunks/NcDialogButton-Di9tU3e_.mjs\";\nimport NcEllipsisedOption from \"./Components/NcEllipsisedOption.mjs\";\nimport { N as NcEmojiPicker } from \"./chunks/NcEmojiPicker-DJHvkF--.mjs\";\nimport NcEmptyContent from \"./Components/NcEmptyContent.mjs\";\nimport NcGuestContent from \"./Components/NcGuestContent.mjs\";\nimport NcHeaderButton from \"./Components/NcHeaderButton.mjs\";\nimport { N as NcHeaderMenu } from \"./chunks/NcHeaderMenu-Dq_Avv2T.mjs\";\nimport { N as NcHighlight } from \"./chunks/index-Bz6q9mZw.mjs\";\nimport { N as NcIconSvgWrapper } from \"./chunks/NcIconSvgWrapper-Cb-cPj1R.mjs\";\nimport { N as NcInputField } from \"./chunks/NcInputField-BNSfmQqu.mjs\";\nimport { N as NcListItem } from \"./chunks/NcListItem-CnxZixD_.mjs\";\nimport { N as NcListItemIcon } from \"./chunks/NcListItemIcon-CTfYEjBB.mjs\";\nimport NcLoadingIcon from \"./Components/NcLoadingIcon.mjs\";\nimport NcModal from \"./Components/NcModal.mjs\";\nimport NcNoteCard from \"./Components/NcNoteCard.mjs\";\nimport { N as NcPasswordField } from \"./chunks/NcPasswordField-DSdrAkZy.mjs\";\nimport { N as NcPopover } from \"./chunks/NcPopover-CAJVK-MR.mjs\";\nimport { N as NcProgressBar } from \"./chunks/NcProgressBar-CI_nOrPg.mjs\";\nimport { N as NcRelatedResourcesPanel } from \"./chunks/NcRelatedResourcesPanel-DyvwxDjI.mjs\";\nimport { N as NcMentionBubble } from \"./chunks/index-B8gPNa8c.mjs\";\nimport { r } from \"./chunks/index-B8gPNa8c.mjs\";\nimport { N as NcAutoCompleteResult, a as NcRichContenteditable } from \"./chunks/NcRichContenteditable-cpptFUeI.mjs\";\nimport { N as NcRichText } from \"./chunks/NcRichText-CmuVmSzl.mjs\";\nimport { N, h, d, i, b, r as r2, c, a } from \"./chunks/index-56SXuvlv.mjs\";\nimport \"@vueuse/core\";\nimport \"vue\";\nimport \"vue-router\";\nimport { a as a2, g, b as b2, c as c2, d as d2, s } from \"./chunks/referencePickerModal-CtMUY45l.mjs\";\nimport \"unist-util-visit\";\nimport \"unist-builder\";\nimport \"@nextcloud/router\";\nimport \"@nextcloud/axios\";\nimport \"@nextcloud/sharing/public\";\nimport \"@nextcloud/auth\";\nimport { N as NcSelect } from \"./chunks/NcSelect-BUOuXJUQ.mjs\";\nimport { N as NcTextField } from \"./chunks/NcTextField-Do6wBDGH.mjs\";\nimport \"@nextcloud/event-bus\";\nimport { N as NcSavingIndicatorIcon } from \"./chunks/NcSavingIndicatorIcon-U7AIamCl.mjs\";\nimport { N as NcSelectTags } from \"./chunks/NcSelectTags-hP98xYkg.mjs\";\nimport { N as NcSelectUsers } from \"./chunks/NcSelectUsers-DaHVPRPE.mjs\";\nimport { N as NcSettingsInputText } from \"./chunks/NcSettingsInputText-BKoaCiQU.mjs\";\nimport { N as NcSettingsSection } from \"./chunks/NcSettingsSection-fe_YIg-L.mjs\";\nimport { N as NcSettingsSelectGroup } from \"./chunks/NcSettingsSelectGroup-SuQNKdqU.mjs\";\nimport { N as NcTextArea } from \"./chunks/NcTextArea-BFLuhsEv.mjs\";\nimport { N as NcThemeProvider } from \"./chunks/NcThemeProvider-25ResoIv.mjs\";\nimport { N as NcTimezonePicker } from \"./chunks/NcTimezonePicker-bIwFQlmV.mjs\";\nimport { N as NcUserBubble } from \"./chunks/NcUserBubble-BmPOx3MW.mjs\";\nimport { N as NcUserStatusIcon } from \"./chunks/NcUserStatusIcon-DQr5EGWZ.mjs\";\nimport NcVNodes from \"./Components/NcVNodes.mjs\";\nimport { useFormatDateTime, useFormatRelativeTime, useFormatTime } from \"./Composables/useFormatDateTime.mjs\";\nimport { useHotKey } from \"./Composables/useHotKey.mjs\";\nimport { useIsDarkTheme, useIsDarkThemeElement } from \"./Composables/useIsDarkTheme.mjs\";\nimport { isFullscreenState, useIsFullscreen } from \"./Composables/useIsFullscreen.mjs\";\nimport { MOBILE_BREAKPOINT, MOBILE_SMALL_BREAKPOINT, isMobileState, useIsMobile, useIsSmallMobile } from \"./Composables/useIsMobile.mjs\";\nimport { isA11yActivation } from \"./Functions/a11y.mjs\";\nimport { getEnabledContactsMenuActions, registerContactsMenuAction } from \"./Functions/contactsMenu.mjs\";\nimport { spawnDialog } from \"./Functions/dialog.mjs\";\nimport { E, a as a3, e, g as g2, s as s2 } from \"./chunks/emoji-BY_D0V5K.mjs\";\nimport { checkIfDarkTheme, isDarkTheme } from \"./Functions/isDarkTheme.mjs\";\nimport { preloadImage } from \"./Functions/preloadImage.mjs\";\nimport { usernameToColor } from \"./Functions/usernameToColor.mjs\";\nimport directive from \"./Directives/Focus.mjs\";\nimport { directive as directive$1 } from \"./Directives/Linkify.mjs\";\nimport \"./Directives/Tooltip.mjs\";\nimport { default as default2 } from \"./Mixins/clickOutsideOptions.mjs\";\nimport { default as default3 } from \"./Mixins/isFullscreen.mjs\";\nimport { default as default4 } from \"./Mixins/isMobile.mjs\";\nimport { VTooltip } from \"floating-vue\";\nimport { VTooltip as VTooltip2 } from \"floating-vue\";\nconst NcComponents = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n NcActionButton,\n NcActionButtonGroup,\n NcActionCaption,\n NcActionCheckbox,\n NcActionInput,\n NcActionLink,\n NcActionRadio,\n NcActionRouter,\n NcActionSeparator,\n NcActionText,\n NcActionTextEditable,\n NcActions,\n NcAppContent,\n NcAppContentDetails,\n NcAppContentList,\n NcAppNavigation,\n NcAppNavigationCaption,\n NcAppNavigationIconBullet,\n NcAppNavigationItem,\n NcAppNavigationList,\n NcAppNavigationNew,\n NcAppNavigationNewItem,\n NcAppNavigationSearch,\n NcAppNavigationSettings,\n NcAppNavigationSpacer,\n NcAppSettingsDialog,\n NcAppSettingsSection,\n NcAppSidebar,\n NcAppSidebarHeader,\n NcAppSidebarTab,\n NcAutoCompleteResult,\n NcAvatar,\n NcBlurHash,\n NcBreadcrumb,\n NcBreadcrumbs,\n NcButton,\n NcCheckboxRadioSwitch,\n NcCollectionList,\n NcColorPicker,\n NcContent,\n NcCounterBubble,\n NcDashboardWidget,\n NcDashboardWidgetItem,\n NcDateTime,\n NcDateTimePicker,\n NcDateTimePickerNative,\n NcDialog,\n NcDialogButton,\n NcEllipsisedOption,\n NcEmojiPicker,\n NcEmptyContent,\n NcGuestContent,\n NcHeaderButton,\n NcHeaderMenu,\n NcHighlight,\n NcIconSvgWrapper,\n NcInputField,\n NcListItem,\n NcListItemIcon,\n NcLoadingIcon,\n NcMentionBubble,\n NcModal,\n NcNoteCard,\n NcPasswordField,\n NcPopover,\n NcProgressBar,\n NcRelatedResourcesPanel,\n NcRichContenteditable,\n NcRichText,\n NcSavingIndicatorIcon,\n NcSelect,\n NcSelectTags,\n NcSelectUsers,\n NcSettingsInputText,\n NcSettingsSection,\n NcSettingsSelectGroup,\n NcTextArea,\n NcTextField,\n NcThemeProvider,\n NcTimezonePicker,\n NcUserBubble,\n NcUserStatusIcon,\n NcVNodes\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst NcDirectives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n Focus: directive,\n Linkify: directive$1,\n Tooltip: VTooltip\n}, Symbol.toStringTag, { value: \"Module\" }));\nconst NextcloudVuePlugin = {\n install(Vue) {\n Object.entries(NcComponents).forEach(([name, component]) => {\n Vue.component(component.name || name, component);\n });\n Object.entries(NcDirectives).forEach(([name, directive2]) => {\n Vue.directive(name, directive2);\n });\n }\n};\nexport {\n E as EmojiSkinTone,\n directive as Focus,\n directive$1 as Linkify,\n MOBILE_BREAKPOINT,\n MOBILE_SMALL_BREAKPOINT,\n NcActionButton,\n NcActionButtonGroup,\n NcActionCaption,\n NcActionCheckbox,\n NcActionInput,\n NcActionLink,\n NcActionRadio,\n NcActionRouter,\n NcActionSeparator,\n NcActionText,\n NcActionTextEditable,\n NcActions,\n NcAppContent,\n NcAppContentDetails,\n NcAppContentList,\n NcAppNavigation,\n NcAppNavigationCaption,\n NcAppNavigationIconBullet,\n NcAppNavigationItem,\n NcAppNavigationList,\n NcAppNavigationNew,\n NcAppNavigationNewItem,\n NcAppNavigationSearch,\n NcAppNavigationSettings,\n NcAppNavigationSpacer,\n NcAppSettingsDialog,\n NcAppSettingsSection,\n NcAppSidebar,\n NcAppSidebarHeader,\n NcAppSidebarTab,\n NcAutoCompleteResult,\n NcAvatar,\n NcBlurHash,\n NcBreadcrumb,\n NcBreadcrumbs,\n NcButton,\n NcCheckboxRadioSwitch,\n NcCollectionList,\n NcColorPicker,\n NcContent,\n NcCounterBubble,\n N as NcCustomPickerRenderResult,\n NcDashboardWidget,\n NcDashboardWidgetItem,\n NcDateTime,\n NcDateTimePicker,\n NcDateTimePickerNative,\n NcDialog,\n NcDialogButton,\n NcEllipsisedOption,\n NcEmojiPicker,\n NcEmptyContent,\n NcGuestContent,\n NcHeaderButton,\n NcHeaderMenu,\n NcHighlight,\n NcIconSvgWrapper,\n NcInputField,\n NcListItem,\n NcListItemIcon,\n NcLoadingIcon,\n NcMentionBubble,\n NcModal,\n NcNoteCard,\n NcPasswordField,\n NcPopover,\n NcProgressBar,\n NcRelatedResourcesPanel,\n NcRichContenteditable,\n NcRichText,\n NcSavingIndicatorIcon,\n NcSelect,\n NcSelectTags,\n NcSelectUsers,\n NcSettingsInputText,\n NcSettingsSection,\n NcSettingsSelectGroup,\n NcTextArea,\n NcTextField,\n NcThemeProvider,\n NcTimezonePicker,\n NcUserBubble,\n NcUserStatusIcon,\n NcVNodes,\n NextcloudVuePlugin,\n VTooltip2 as Tooltip,\n a2 as anyLinkProviderId,\n checkIfDarkTheme,\n default2 as clickOutsideOptions,\n a3 as emojiAddRecent,\n e as emojiSearch,\n g2 as getCurrentSkinTone,\n getEnabledContactsMenuActions,\n g as getLinkWithPicker,\n b2 as getProvider,\n c2 as getProviders,\n h as hasInteractiveView,\n isA11yActivation,\n d as isCustomPickerElementRegistered,\n isDarkTheme,\n default3 as isFullscreen,\n isFullscreenState,\n default4 as isMobile,\n isMobileState,\n i as isWidgetRegistered,\n preloadImage,\n registerContactsMenuAction,\n b as registerCustomPickerElement,\n r2 as registerWidget,\n c as renderCustomPickerElement,\n a as renderWidget,\n r as richEditor,\n d2 as searchProvider,\n s2 as setCurrentSkinTone,\n s as sortProviders,\n spawnDialog,\n useFormatDateTime,\n useFormatRelativeTime,\n useFormatTime,\n useHotKey,\n useIsDarkTheme,\n useIsDarkThemeElement,\n useIsFullscreen,\n useIsMobile,\n useIsSmallMobile,\n u as userStatus,\n usernameToColor\n};\n//# sourceMappingURL=index.mjs.map\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"template-field__text\"},[_c('label',{attrs:{\"for\":_vm.fieldId}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.fieldLabel)+\"\\n\\t\")]),_vm._v(\" \"),_c('NcTextField',{attrs:{\"id\":_vm.fieldId,\"type\":\"text\",\"value\":_vm.value,\"label\":_vm.fieldLabel,\"label-outside\":true,\"placeholder\":_vm.field.content},on:{\"update:value\":function($event){_vm.value=$event},\"input\":_vm.input}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=script&lang=ts\"","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplateRichTextField.vue?vue&type=template&id=acdec0ea&scoped=true\"\nimport script from \"./TemplateRichTextField.vue?vue&type=script&lang=ts\"\nexport * from \"./TemplateRichTextField.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"acdec0ea\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=script&lang=ts\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"template-field__checkbox\"},[_c('NcCheckboxRadioSwitch',{attrs:{\"id\":_vm.fieldId,\"checked\":_vm.value,\"type\":\"switch\"},on:{\"update:checked\":[function($event){_vm.value=$event},_vm.input]}},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.fieldLabel)+\"\\n\\t\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./TemplateCheckboxField.vue?vue&type=template&id=00f936be&scoped=true\"\nimport script from \"./TemplateCheckboxField.vue?vue&type=script&lang=ts\"\nexport * from \"./TemplateCheckboxField.vue?vue&type=script&lang=ts\"\nimport style0 from \"./TemplateCheckboxField.vue?vue&type=style&index=0&id=00f936be&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"00f936be\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TemplateFiller.vue?vue&type=script&lang=js\"","\n\n\n\t\n\t\t