diff --git a/apps/files/src/views/TemplatePicker.vue b/apps/files/src/views/TemplatePicker.vue
index 38227211f2a89..6952d647567c9 100644
--- a/apps/files/src/views/TemplatePicker.vue
+++ b/apps/files/src/views/TemplatePicker.vue
@@ -275,7 +275,13 @@ export default defineComponent({
async onSubmit() {
const fileId = this.selectedTemplate?.fileid
- const fields = await getTemplateFields(fileId)
+
+ // Only request field extraction if there is a valid template
+ // selected and it's not the blank template
+ let fields = []
+ if (fileId && fileId !== this.emptyTemplate.fileid) {
+ fields = await getTemplateFields(fileId)
+ }
if (fields.length > 0) {
spawnDialog(TemplateFiller, {
diff --git a/dist/3435-3435.js b/dist/3435-3435.js
new file mode 100644
index 0000000000000..6675e32d43add
--- /dev/null
+++ b/dist/3435-3435.js
@@ -0,0 +1,2 @@
+"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[3435],{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},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},53078:(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-508024d0]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-508024d0]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-508024d0]{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-508024d0]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0deg, var(--gradient-main-background))}.templates-picker__buttons button[data-v-508024d0],.templates-picker__buttons input[type=submit][data-v-508024d0]{height:44px}.templates-picker[data-v-508024d0] .modal-container{position:relative}.templates-picker__loading[data-v-508024d0]{position:absolute;top:0;inset-inline-start: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,uEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,oBAAA,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(0deg, 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:deep(.modal-container) {\n\t\tposition: relative;\n\t}\n\n\t&__loading {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tinset-inline-start: 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},60893:(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(69496),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()},onClick(){this.checked&&this.$emit("confirm-click",this.fileid)}}};var C=i(85072),g=i.n(C),v=i(97825),b=i.n(v),_=i(77659),w=i.n(_),k=i(55056),y=i.n(k),x=i(10540),N=i.n(x),T=i(41113),P=i.n(T),F=i(78201),S={};S.styleTagTransform=P(),S.setAttributes=y(),S.insert=w().bind(null,"head"),S.domAPI=b(),S.insertStyleElement=N(),g()(F.A,S),F.A&&F.A.locals&&F.A.locals;var E=i(14486);const I=(0,E.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},on:{click:e.onClick}},[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,"74d34088",null).exports;var B=i(27126),D=i(82974),$=i(61744),L=i(97691),j=i(89742),M=i(72298),G=i(73346),R=i(90309),U=i(21651),W=i(15502),z=i(30594),X=i(59366),q=i(56381),O=i(47611),Y=i(10363),H=i(58979),K=i(14306),Q=i(25535),J=i(85999),Z=i(27345),V=i(85865),ee=i(75836),te=i(60126),ie=i(89873),ae=i(542),ne=i(29270),le=i(14727),re=i(18485),se=i(19015),oe=i(18608),de=i(12732),ce=i(92089),pe=i(81199),Ae=i(75749),me=i(97012),he=i(95898),ue=i(26134),fe=i(35774),Ce=i(4419),ge=i(75971),ve=i(30178),be=i(80575),_e=i(18798),we=i(14395),ke=i(88984),ye=i(7897),xe=i(91407),Ne=i(25521),Te=i(454),Pe=i(94427),Fe=i(27403),Se=i(83),Ee=i(26517),Ie=i(22792),Be=i(56849),De=i(85034),$e=i(47451),Le=i(59892),je=i(40083),Me=i(90462),Ge=i(48718),Re=i(74484),Ue=i(60557),We=i(60945),ze=i(93368),Xe=i(56087),qe=(i(58322),i(59178),i(28851)),Oe=i(4266),Ye=i(94632),He=i(27355),Ke=i(20909),Qe=i(19724),Je=i(11229),Ze=i(43844),Ve=i(30709),et=i(71940),tt=i(4212),it=i(89337),at=i(23610),nt=(i(94205),i(95462),i(23020),i(53429),i(23739),i(16343),i(29928),i(64660),i(53476),i(42892)),lt=i(15074),rt=(i(59656),i(75105),i(92471),i(16406),i(2508));B.N,D.N,$.A,L.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,Ce.N,ge.N,ve.N,be.N,_e.N,we.A,ke.A,ye.N,xe.N,Ne.A,Te.N,A.A,Pe.A,Fe.A,Se.N,Ee.N,Ie.N,Be.N,De.N,$e.N,Le.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.A,Symbol.toStringTag,nt.A,lt.u,rt.yw,Symbol.toStringTag;const st=(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 ot=i(28837),dt={};dt.styleTagTransform=P(),dt.setAttributes=y(),dt.insert=w().bind(null,"head"),dt.domAPI=b(),dt.insertStyleElement=N(),g()(ot.A,dt),ot.A&&ot.A.locals&&ot.A.locals;const ct=(0,E.A)(st,(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,pt=(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 At=i(47642),mt={};mt.styleTagTransform=P(),mt.setAttributes=y(),mt.insert=w().bind(null,"head"),mt.domAPI=b(),mt.insertStyleElement=N(),g()(At.A,mt),At.A&&At.A.locals&&At.A.locals;const ht=(0,E.A)(pt,(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,ut=(0,c.pM)({name:"TemplateFiller",components:{NcModal:m.A,NcButton:me.A,NcLoadingIcon:Le.A,TemplateRichTextField:ct,TemplateCheckboxField:ht},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 ft=i(83218),Ct={};Ct.styleTagTransform=P(),Ct.setAttributes=y(),Ct.insert=w().bind(null,"head"),Ct.domAPI=b(),Ct.insertStyleElement=N(),g()(ft.A,Ct),ft.A&&ft.A.locals&&ft.A.locals;const gt=(0,E.A)(ut,(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,"0a9197a5",null).exports;var vt=i(9558);const bt=(0,c.pM)({name:"TemplatePicker",components:{NcEmptyContent:A.A,NcModal:m.A,TemplatePreview:I},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},onConfirmClick(e){e===this.checked&&this.onSubmit()},async createFile(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new URL(window.location.href).searchParams.get("dir")||"/";this.nameWithoutExt===this.name&&(vt.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);vt.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){vt.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(){const e=this.selectedTemplate?.fileid;let t=[];e&&e!==this.emptyTemplate.fileid&&(t=await async function(e){return(await p.Ay.get((0,o.KT)(`apps/files/api/v1/templates/fields/${e}`))).data.ocs.data}(e)),t.length>0?(0,n.Ss)(gt,{fields:t,onSubmit:this.createFile}):(this.loading=!0,await this.createFile())}}});var _t=i(53078),wt={};wt.styleTagTransform=P(),wt.setAttributes=y(),wt.insert=w().bind(null,"head"),wt.domAPI=b(),wt.insertStyleElement=N(),g()(_t.A,wt),_t.A&&_t.A.locals&&_t.A.locals;const kt=(0,E.A)(bt,(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:{"confirm-click":e.onConfirmClick,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:{"confirm-click":e.onConfirmClick,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,"508024d0",null).exports},78201:(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-74d34088]{display:flex}.template-picker__label[data-v-74d34088]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-74d34088],.template-picker__label *[data-v-74d34088]{cursor:pointer;user-select:none}.template-picker__label[data-v-74d34088]::before{display:none !important}.template-picker__preview[data-v-74d34088]{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-74d34088]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-74d34088]{display:flex}.template-picker__image[data-v-74d34088]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-74d34088]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-74d34088]{max-width:calc(var(--width) + 4px);padding:var(--margin)}","",{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,yCAEC,kCAAA,CACA,qBAAA",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\t// also count preview border\n\t\tmax-width: calc(var(--width) + 2 * 2px);\n\t\tpadding: var(--margin);\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"},83218:(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-0a9197a5]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-0a9197a5]{text-align:center}.template-field-modal__buttons[data-v-0a9197a5]{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},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"}}]);
+//# sourceMappingURL=3435-3435.js.map?v=9463d467dc7a09e3eecf
\ No newline at end of file
diff --git a/dist/7891-7891.js.license b/dist/3435-3435.js.license
similarity index 100%
rename from dist/7891-7891.js.license
rename to dist/3435-3435.js.license
diff --git a/dist/3435-3435.js.map b/dist/3435-3435.js.map
new file mode 100644
index 0000000000000..562eee75fd28f
--- /dev/null
+++ b/dist/3435-3435.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"3435-3435.js?v=9463d467dc7a09e3eecf","mappings":"05BAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,sHAAuH,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kFAAkF,MAAQ,GAAG,SAAW,mCAAmC,eAAiB,CAAC,+FAA+F,WAAa,MAEpc,S,sECJIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4DAA6D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kFAAkF,MAAQ,GA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AId,UAAU,kBAAkBmF,GAAS,GAAO,KAAI,GAAGrE,EAAIS,GAAG,KAAKP,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,QAAQ,CAACE,YAAY,UAAUE,MAAM,CAAC,KAAO,SAAS,aAAaN,EAAI2C,EAAE,QAAS,iDAAiDpC,SAAS,CAAC,MAAQP,EAAI2C,EAAE,QAAS,iBAAiB3C,EAAIS,GAAG,KAAMT,EAAI0C,QAASxC,EAAG,iBAAiB,CAACE,YAAY,4BAA4BE,MAAM,CAAC,KAAO,iBAAiB,CAACN,EAAIS,GAAG,SAAST,EAAIW,GAAGX,EAAI2C,EAAE,QAAS,kBAAkB,UAAU3C,EAAIuD,MAAM,GAAGvD,EAAIuD,IAC1gD,GACsB,IuBUpB,EACA,KACA,WACA,MAI8B,O,sEChB5B5G,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,woCAAyoC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6DAA6D,MAAQ,GAAG,SAAW,uWAAuW,eAAiB,CAAC,q2CAAq2C,WAAa,MAE3gG,S,qdCJIH,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,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/components/TemplateFiller/TemplateRichTextField.vue?vue&type=style&index=0&id=acdec0ea&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=508024d0&prod&lang=scss&scoped=true","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?8c69","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?636a","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?9473","webpack://nextcloud/./apps/files/src/views/TemplatePicker.vue?afd8","webpack:///nextcloud/apps/files/src/components/TemplatePreview.vue?vue&type=style&index=0&id=74d34088&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=style&index=0&id=0a9197a5&prod&lang=scss&scoped=true"],"sourcesContent":["// 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-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-508024d0]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-508024d0]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-508024d0]{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-508024d0]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0deg, var(--gradient-main-background))}.templates-picker__buttons button[data-v-508024d0],.templates-picker__buttons input[type=submit][data-v-508024d0]{height:44px}.templates-picker[data-v-508024d0] .modal-container{position:relative}.templates-picker__loading[data-v-508024d0]{position:absolute;top:0;inset-inline-start: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,uEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,oBAAA,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(0deg, 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:deep(.modal-container) {\\n\\t\\tposition: relative;\\n\\t}\\n\\n\\t&__loading {\\n\\t\\tposition: absolute;\\n\\t\\ttop: 0;\\n\\t\\tinset-inline-start: 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","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:{\"confirm-click\":_vm.onConfirmClick,\"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:{\"confirm-click\":_vm.onConfirmClick,\"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=74d34088&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=74d34088&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=74d34088&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=74d34088&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 \"74d34088\",\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},on:{\"click\":_vm.onClick}},[_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-CuVNJJtW.mjs\";\nimport { N as NcActionButtonGroup } from \"./chunks/NcActionButtonGroup-DEf00ge6.mjs\";\nimport NcActionCaption from \"./Components/NcActionCaption.mjs\";\nimport { N as NcActionCheckbox } from \"./chunks/NcActionCheckbox-DSMKeccY.mjs\";\nimport { N as NcActionInput } from \"./chunks/NcActionInput-B4qGsF57.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-B4VZCD8B.mjs\";\nimport NcActionSeparator from \"./Components/NcActionSeparator.mjs\";\nimport NcActionText from \"./Components/NcActionText.mjs\";\nimport { N as NcActionTextEditable } from \"./chunks/NcActionTextEditable-DNweMXRJ.mjs\";\nimport { N as NcAppContent } from \"./chunks/NcAppContent-DyXqBrOB.mjs\";\nimport NcAppContentDetails from \"./Components/NcAppContentDetails.mjs\";\nimport NcAppContentList from \"./Components/NcAppContentList.mjs\";\nimport { N as NcAppNavigation } from \"./chunks/NcAppNavigation-CqKWSnxO.mjs\";\nimport { N as NcAppNavigationCaption } from \"./chunks/NcAppNavigationCaption-DcgSwIOY.mjs\";\nimport NcAppNavigationIconBullet from \"./Components/NcAppNavigationIconBullet.mjs\";\nimport { N as NcAppNavigationItem } from \"./chunks/NcAppNavigationItem-CrTVtqYV.mjs\";\nimport NcAppNavigationList from \"./Components/NcAppNavigationList.mjs\";\nimport NcAppNavigationNew from \"./Components/NcAppNavigationNew.mjs\";\nimport { N as NcAppNavigationNewItem } from \"./chunks/NcAppNavigationNewItem-CcBvnQst.mjs\";\nimport { N as NcAppNavigationSearch } from \"./chunks/NcAppNavigationSearch-BC3kPnxr.mjs\";\nimport { N as NcAppNavigationSettings } from \"./chunks/NcAppNavigationSettings-JruJ3cF1.mjs\";\nimport NcAppNavigationSpacer from \"./Components/NcAppNavigationSpacer.mjs\";\nimport { N as NcAppSettingsDialog } from \"./chunks/NcAppSettingsDialog-D98cLpyy.mjs\";\nimport NcAppSettingsSection from \"./Components/NcAppSettingsSection.mjs\";\nimport { N as NcAppSidebar } from \"./chunks/NcAppSidebar-BdryV6wY.mjs\";\nimport { N as NcAppSidebarHeader } from \"./chunks/NcAppSidebarHeader-G2VD8Nfl.mjs\";\nimport NcAppSidebarTab from \"./Components/NcAppSidebarTab.mjs\";\nimport { N as NcAvatar } from \"./chunks/NcAvatar-YSp2ORHc.mjs\";\nimport { u } from \"./chunks/NcAvatar-YSp2ORHc.mjs\";\nimport { N as NcBlurHash } from \"./chunks/NcBlurHash-do2wxY-0.mjs\";\nimport { N as NcBreadcrumb } from \"./chunks/NcBreadcrumb-Cu1XtrUo.mjs\";\nimport { N as NcBreadcrumbs } from \"./chunks/NcBreadcrumbs-B1LdRe5_.mjs\";\nimport NcButton from \"./Components/NcButton.mjs\";\nimport { N as NcCheckboxRadioSwitch } from \"./chunks/NcCheckboxRadioSwitch-VeztTzpz.mjs\";\nimport { N as NcCollectionList } from \"./chunks/NcCollectionList-CFt-EZON.mjs\";\nimport { N as NcColorPicker } from \"./chunks/NcColorPicker-D7aj2f61.mjs\";\nimport { N as NcContent } from \"./chunks/NcContent-Cfz3ytoh.mjs\";\nimport { N as NcCounterBubble } from \"./chunks/NcCounterBubble-CDfRYl8B.mjs\";\nimport { N as NcDashboardWidget } from \"./chunks/NcDashboardWidget-eStjL-WD.mjs\";\nimport { N as NcDashboardWidgetItem } from \"./chunks/NcDashboardWidgetItem-BRFj1-Ir.mjs\";\nimport { N as NcDateTime } from \"./chunks/NcDateTime-DshRFtUU.mjs\";\nimport { u as u2 } from \"./chunks/NcDateTime-DshRFtUU.mjs\";\nimport NcDateTimePicker from \"./Components/NcDateTimePicker.mjs\";\nimport NcDateTimePickerNative from \"./Components/NcDateTimePickerNative.mjs\";\nimport { N as NcDialog } from \"./chunks/NcDialog-CKgpZOiy.mjs\";\nimport { N as NcDialogButton } from \"./chunks/NcDialogButton-CROAi1Ll.mjs\";\nimport NcEllipsisedOption from \"./Components/NcEllipsisedOption.mjs\";\nimport { N as NcEmojiPicker } from \"./chunks/NcEmojiPicker-Du-vbR5T.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-Dj7jeq88.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-DTtUueUZ.mjs\";\nimport { N as NcListItem } from \"./chunks/NcListItem-B4Uyn2AS.mjs\";\nimport { N as NcListItemIcon } from \"./chunks/NcListItemIcon-0H1Pepui.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-DNjegDVj.mjs\";\nimport { N as NcPopover } from \"./chunks/NcPopover-kYsewfff.mjs\";\nimport { N as NcProgressBar } from \"./chunks/NcProgressBar-DegJ2JjE.mjs\";\nimport { N as NcRelatedResourcesPanel } from \"./chunks/NcRelatedResourcesPanel-Y38zaKtn.mjs\";\nimport { N as NcMentionBubble } from \"./chunks/index-Dpk-sL3D.mjs\";\nimport { r } from \"./chunks/index-Dpk-sL3D.mjs\";\nimport { N as NcAutoCompleteResult, a as NcRichContenteditable } from \"./chunks/NcRichContenteditable-B8UqleMX.mjs\";\nimport { N as NcRichText } from \"./chunks/NcRichText-CwXSzf21.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-4kExxHbR.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-CjUzohn5.mjs\";\nimport { N as NcTextField } from \"./chunks/NcTextField-o_8gWurX.mjs\";\nimport \"@nextcloud/event-bus\";\nimport { N as NcSavingIndicatorIcon } from \"./chunks/NcSavingIndicatorIcon-nv1147dk.mjs\";\nimport { N as NcSelectTags } from \"./chunks/NcSelectTags-wJN9J7_t.mjs\";\nimport { N as NcSelectUsers } from \"./chunks/NcSelectUsers-W17kOow7.mjs\";\nimport { N as NcSettingsInputText } from \"./chunks/NcSettingsInputText-YO053agL.mjs\";\nimport { N as NcSettingsSection } from \"./chunks/NcSettingsSection-C76Kqeew.mjs\";\nimport { N as NcSettingsSelectGroup } from \"./chunks/NcSettingsSelectGroup-CH_kppKo.mjs\";\nimport { N as NcTextArea } from \"./chunks/NcTextArea-BHERsE_g.mjs\";\nimport { N as NcTimezonePicker } from \"./chunks/NcTimezonePicker-q46K1fSq.mjs\";\nimport { N as NcUserBubble } from \"./chunks/NcUserBubble-B3-E-5F5.mjs\";\nimport { N as NcUserStatusIcon } from \"./chunks/NcUserStatusIcon-kbPFeJV6.mjs\";\nimport NcVNodes from \"./Components/NcVNodes.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 { u as u3 } from \"./chunks/usernameToColor-yoVXn0De.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 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 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 u2 as useFormatDateTime,\n useHotKey,\n useIsDarkTheme,\n useIsDarkThemeElement,\n useIsFullscreen,\n useIsMobile,\n useIsSmallMobile,\n u as userStatus,\n u3 as 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=0a9197a5&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=0a9197a5&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=0a9197a5&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=0a9197a5&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 \"0a9197a5\",\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\nexport const getTemplateFields = async function(fileId) {\n\tconst response = await axios.get(generateOcsUrl(`apps/files/api/v1/templates/fields/${fileId}`))\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=508024d0&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=508024d0&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=508024d0&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=508024d0&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 \"508024d0\",\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-picker__item[data-v-74d34088]{display:flex}.template-picker__label[data-v-74d34088]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-74d34088],.template-picker__label *[data-v-74d34088]{cursor:pointer;user-select:none}.template-picker__label[data-v-74d34088]::before{display:none !important}.template-picker__preview[data-v-74d34088]{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-74d34088]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-74d34088]{display:flex}.template-picker__image[data-v-74d34088]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-74d34088]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-74d34088]{max-width:calc(var(--width) + 4px);padding:var(--margin)}`, \"\",{\"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,yCAEC,kCAAA,CACA,qBAAA\",\"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\\t// also count preview border\\n\\t\\tmax-width: calc(var(--width) + 2 * 2px);\\n\\t\\tpadding: var(--margin);\\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-0a9197a5]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-0a9197a5]{text-align:center}.template-field-modal__buttons[data-v-0a9197a5]{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":["___CSS_LOADER_EXPORT___","push","module","id","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","realPreviewUrl","mimeIcon","isPublicShare","generateUrl","getSharingToken","encodePath","OC","MimeType","getIconUrl","methods","onCheck","$emit","onFailure","focus","$refs","input","onClick","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","onConfirmClick","createFile","templateFields","arguments","undefined","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","fileId","getTemplateFields","spawnDialog","TemplateFiller","preventDefault","stopPropagation","apply","_b"],"sourceRoot":""}
\ No newline at end of file
diff --git a/dist/3435-3435.js.map.license b/dist/3435-3435.js.map.license
new file mode 120000
index 0000000000000..22e602e885d49
--- /dev/null
+++ b/dist/3435-3435.js.map.license
@@ -0,0 +1 @@
+3435-3435.js.license
\ No newline at end of file
diff --git a/dist/7891-7891.js b/dist/7891-7891.js
deleted file mode 100644
index 3b51450eb2e59..0000000000000
--- a/dist/7891-7891.js
+++ /dev/null
@@ -1,2 +0,0 @@
-"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[7891],{25317:(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(69496),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()},onClick(){this.checked&&this.$emit("confirm-click",this.fileid)}}};var C=i(85072),g=i.n(C),v=i(97825),b=i.n(v),_=i(77659),w=i.n(_),k=i(55056),y=i.n(k),x=i(10540),N=i.n(x),T=i(41113),P=i.n(T),F=i(78201),S={};S.styleTagTransform=P(),S.setAttributes=y(),S.insert=w().bind(null,"head"),S.domAPI=b(),S.insertStyleElement=N(),g()(F.A,S),F.A&&F.A.locals&&F.A.locals;var E=i(14486);const I=(0,E.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},on:{click:e.onClick}},[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,"74d34088",null).exports;var B=i(27126),D=i(82974),$=i(61744),L=i(97691),j=i(89742),M=i(72298),G=i(73346),R=i(90309),U=i(21651),W=i(15502),z=i(30594),X=i(59366),q=i(56381),O=i(47611),Y=i(10363),H=i(58979),K=i(14306),Q=i(25535),J=i(85999),Z=i(27345),V=i(85865),ee=i(75836),te=i(60126),ie=i(89873),ae=i(542),ne=i(29270),le=i(14727),re=i(18485),se=i(19015),oe=i(18608),de=i(12732),ce=i(92089),pe=i(81199),Ae=i(75749),me=i(97012),he=i(95898),ue=i(26134),fe=i(35774),Ce=i(4419),ge=i(75971),ve=i(30178),be=i(80575),_e=i(18798),we=i(14395),ke=i(88984),ye=i(7897),xe=i(91407),Ne=i(25521),Te=i(454),Pe=i(94427),Fe=i(27403),Se=i(83),Ee=i(26517),Ie=i(22792),Be=i(56849),De=i(85034),$e=i(47451),Le=i(59892),je=i(40083),Me=i(90462),Ge=i(48718),Re=i(74484),Ue=i(60557),We=i(60945),ze=i(93368),Xe=i(56087),qe=(i(58322),i(59178),i(28851)),Oe=i(4266),Ye=i(94632),He=i(27355),Ke=i(20909),Qe=i(19724),Je=i(11229),Ze=i(43844),Ve=i(30709),et=i(71940),tt=i(4212),it=i(89337),at=i(23610),nt=(i(94205),i(95462),i(23020),i(53429),i(23739),i(16343),i(29928),i(64660),i(53476),i(42892)),lt=i(15074),rt=(i(59656),i(75105),i(92471),i(16406),i(2508));B.N,D.N,$.A,L.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,Ce.N,ge.N,ve.N,be.N,_e.N,we.A,ke.A,ye.N,xe.N,Ne.A,Te.N,A.A,Pe.A,Fe.A,Se.N,Ee.N,Ie.N,Be.N,De.N,$e.N,Le.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.A,Symbol.toStringTag,nt.A,lt.u,rt.yw,Symbol.toStringTag;const st=(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 ot=i(28837),dt={};dt.styleTagTransform=P(),dt.setAttributes=y(),dt.insert=w().bind(null,"head"),dt.domAPI=b(),dt.insertStyleElement=N(),g()(ot.A,dt),ot.A&&ot.A.locals&&ot.A.locals;const ct=(0,E.A)(st,(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,pt=(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 At=i(47642),mt={};mt.styleTagTransform=P(),mt.setAttributes=y(),mt.insert=w().bind(null,"head"),mt.domAPI=b(),mt.insertStyleElement=N(),g()(At.A,mt),At.A&&At.A.locals&&At.A.locals;const ht=(0,E.A)(pt,(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,ut=(0,c.pM)({name:"TemplateFiller",components:{NcModal:m.A,NcButton:me.A,NcLoadingIcon:Le.A,TemplateRichTextField:ct,TemplateCheckboxField:ht},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 ft=i(83218),Ct={};Ct.styleTagTransform=P(),Ct.setAttributes=y(),Ct.insert=w().bind(null,"head"),Ct.domAPI=b(),Ct.insertStyleElement=N(),g()(ft.A,Ct),ft.A&&ft.A.locals&&ft.A.locals;const gt=(0,E.A)(ut,(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,"0a9197a5",null).exports;var vt=i(9558);const bt=(0,c.pM)({name:"TemplatePicker",components:{NcEmptyContent:A.A,NcModal:m.A,TemplatePreview:I},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},onConfirmClick(e){e===this.checked&&this.onSubmit()},async createFile(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new URL(window.location.href).searchParams.get("dir")||"/";this.nameWithoutExt===this.name&&(vt.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);vt.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){vt.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(){const e=this.selectedTemplate?.fileid,t=await async function(e){return(await p.Ay.get((0,o.KT)(`apps/files/api/v1/templates/fields/${e}`))).data.ocs.data}(e);t.length>0?(0,n.Ss)(gt,{fields:t,onSubmit:this.createFile}):(this.loading=!0,await this.createFile())}}});var _t=i(43790),wt={};wt.styleTagTransform=P(),wt.setAttributes=y(),wt.insert=w().bind(null,"head"),wt.domAPI=b(),wt.insertStyleElement=N(),g()(_t.A,wt),_t.A&&_t.A.locals&&_t.A.locals;const kt=(0,E.A)(bt,(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:{"confirm-click":e.onConfirmClick,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:{"confirm-click":e.onConfirmClick,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,"c63fd104",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},43790:(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-c63fd104]{padding:calc(var(--margin)*2);padding-bottom:0}.templates-picker__form h2[data-v-c63fd104]{text-align:center;font-weight:bold;margin:var(--margin) 0 calc(var(--margin)*2)}.templates-picker__list[data-v-c63fd104]{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-c63fd104]{display:flex;justify-content:end;padding:calc(var(--margin)*2) var(--margin);position:sticky;bottom:0;background-image:linear-gradient(0deg, var(--gradient-main-background))}.templates-picker__buttons button[data-v-c63fd104],.templates-picker__buttons input[type=submit][data-v-c63fd104]{height:44px}.templates-picker[data-v-c63fd104] .modal-container{position:relative}.templates-picker__loading[data-v-c63fd104]{position:absolute;top:0;inset-inline-start: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,uEAAA,CAEA,kHACC,WAAA,CAKF,oDACC,iBAAA,CAGD,4CACC,iBAAA,CACA,KAAA,CACA,oBAAA,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(0deg, 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:deep(.modal-container) {\n\t\tposition: relative;\n\t}\n\n\t&__loading {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tinset-inline-start: 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},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},78201:(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-74d34088]{display:flex}.template-picker__label[data-v-74d34088]{display:flex;align-items:center;flex:1 1;flex-direction:column}.template-picker__label[data-v-74d34088],.template-picker__label *[data-v-74d34088]{cursor:pointer;user-select:none}.template-picker__label[data-v-74d34088]::before{display:none !important}.template-picker__preview[data-v-74d34088]{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-74d34088]{border-color:var(--color-primary-element)}.template-picker__preview--failed[data-v-74d34088]{display:flex}.template-picker__image[data-v-74d34088]{max-width:100%;background-color:var(--color-main-background);object-fit:cover}.template-picker__preview--failed .template-picker__image[data-v-74d34088]{width:calc(var(--margin)*8);margin:auto;background-color:rgba(0,0,0,0) !important;object-fit:initial}.template-picker__title[data-v-74d34088]{max-width:calc(var(--width) + 4px);padding:var(--margin)}","",{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,yCAEC,kCAAA,CACA,qBAAA",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\t// also count preview border\n\t\tmax-width: calc(var(--width) + 2 * 2px);\n\t\tpadding: var(--margin);\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"},83218:(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-0a9197a5]{padding:calc(var(--default-grid-baseline)*4)}.template-field-modal__content h3[data-v-0a9197a5]{text-align:center}.template-field-modal__buttons[data-v-0a9197a5]{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},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"}}]);
-//# sourceMappingURL=7891-7891.js.map?v=9392d96701efb4ae2c4f
\ No newline at end of file
diff --git a/dist/7891-7891.js.map b/dist/7891-7891.js.map
deleted file mode 100644
index 88694f26818da..0000000000000
--- a/dist/7891-7891.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"7891-7891.js?v=9392d96701efb4ae2c4f","mappings":"sIAAA,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,CACA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AE,QAAU,CAAC,kFAAkF,MAAQ,GAAG,SAAW,mCAAmC,eAAiB,CAAC,+FAA+F,WAAa,MAEpc,S,sECJIwK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO1K,GAAI,gjCAAijC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uDAAuD,MAAQ,GAAG,SAAW,uVAAuV,eAAiB,CAAC,s4CAAs4C,WAAa,MAE97F,S,sECJIwK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO1K,GAAI,4DAA6D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,kFAAkF,MAAQ,GAAG,SAAW,kBAAkB,eAAiB,CAAC,yDAAyD,WAAa,MAEnV,S,sECJIwK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO1K,GAAI,woCAAyoC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6DAA6D,MAAQ,GAAG,SAAW,uWAAuW,eAAiB,CAAC,q2CAAq2C,WAAa,MAE3gG,S,qdCJIwK,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAO1K,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?8c69","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?636a","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?d775","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/views/TemplatePicker.vue?vue&type=style&index=0&id=c63fd104&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/components/TemplatePreview.vue?vue&type=style&index=0&id=74d34088&prod&lang=scss&scoped=true","webpack:///nextcloud/apps/files/src/components/TemplateFiller.vue?vue&type=style&index=0&id=0a9197a5&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:{\"confirm-click\":_vm.onConfirmClick,\"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:{\"confirm-click\":_vm.onConfirmClick,\"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=74d34088&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=74d34088&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=74d34088&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=74d34088&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 \"74d34088\",\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},on:{\"click\":_vm.onClick}},[_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-CuVNJJtW.mjs\";\nimport { N as NcActionButtonGroup } from \"./chunks/NcActionButtonGroup-DEf00ge6.mjs\";\nimport NcActionCaption from \"./Components/NcActionCaption.mjs\";\nimport { N as NcActionCheckbox } from \"./chunks/NcActionCheckbox-DSMKeccY.mjs\";\nimport { N as NcActionInput } from \"./chunks/NcActionInput-B4qGsF57.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-B4VZCD8B.mjs\";\nimport NcActionSeparator from \"./Components/NcActionSeparator.mjs\";\nimport NcActionText from \"./Components/NcActionText.mjs\";\nimport { N as NcActionTextEditable } from \"./chunks/NcActionTextEditable-DNweMXRJ.mjs\";\nimport { N as NcAppContent } from \"./chunks/NcAppContent-DyXqBrOB.mjs\";\nimport NcAppContentDetails from \"./Components/NcAppContentDetails.mjs\";\nimport NcAppContentList from \"./Components/NcAppContentList.mjs\";\nimport { N as NcAppNavigation } from \"./chunks/NcAppNavigation-CqKWSnxO.mjs\";\nimport { N as NcAppNavigationCaption } from \"./chunks/NcAppNavigationCaption-DcgSwIOY.mjs\";\nimport NcAppNavigationIconBullet from \"./Components/NcAppNavigationIconBullet.mjs\";\nimport { N as NcAppNavigationItem } from \"./chunks/NcAppNavigationItem-CrTVtqYV.mjs\";\nimport NcAppNavigationList from \"./Components/NcAppNavigationList.mjs\";\nimport NcAppNavigationNew from \"./Components/NcAppNavigationNew.mjs\";\nimport { N as NcAppNavigationNewItem } from \"./chunks/NcAppNavigationNewItem-CcBvnQst.mjs\";\nimport { N as NcAppNavigationSearch } from \"./chunks/NcAppNavigationSearch-BC3kPnxr.mjs\";\nimport { N as NcAppNavigationSettings } from \"./chunks/NcAppNavigationSettings-JruJ3cF1.mjs\";\nimport NcAppNavigationSpacer from \"./Components/NcAppNavigationSpacer.mjs\";\nimport { N as NcAppSettingsDialog } from \"./chunks/NcAppSettingsDialog-D98cLpyy.mjs\";\nimport NcAppSettingsSection from \"./Components/NcAppSettingsSection.mjs\";\nimport { N as NcAppSidebar } from \"./chunks/NcAppSidebar-BdryV6wY.mjs\";\nimport { N as NcAppSidebarHeader } from \"./chunks/NcAppSidebarHeader-G2VD8Nfl.mjs\";\nimport NcAppSidebarTab from \"./Components/NcAppSidebarTab.mjs\";\nimport { N as NcAvatar } from \"./chunks/NcAvatar-YSp2ORHc.mjs\";\nimport { u } from \"./chunks/NcAvatar-YSp2ORHc.mjs\";\nimport { N as NcBlurHash } from \"./chunks/NcBlurHash-do2wxY-0.mjs\";\nimport { N as NcBreadcrumb } from \"./chunks/NcBreadcrumb-Cu1XtrUo.mjs\";\nimport { N as NcBreadcrumbs } from \"./chunks/NcBreadcrumbs-B1LdRe5_.mjs\";\nimport NcButton from \"./Components/NcButton.mjs\";\nimport { N as NcCheckboxRadioSwitch } from \"./chunks/NcCheckboxRadioSwitch-VeztTzpz.mjs\";\nimport { N as NcCollectionList } from \"./chunks/NcCollectionList-CFt-EZON.mjs\";\nimport { N as NcColorPicker } from \"./chunks/NcColorPicker-D7aj2f61.mjs\";\nimport { N as NcContent } from \"./chunks/NcContent-Cfz3ytoh.mjs\";\nimport { N as NcCounterBubble } from \"./chunks/NcCounterBubble-CDfRYl8B.mjs\";\nimport { N as NcDashboardWidget } from \"./chunks/NcDashboardWidget-eStjL-WD.mjs\";\nimport { N as NcDashboardWidgetItem } from \"./chunks/NcDashboardWidgetItem-BRFj1-Ir.mjs\";\nimport { N as NcDateTime } from \"./chunks/NcDateTime-DshRFtUU.mjs\";\nimport { u as u2 } from \"./chunks/NcDateTime-DshRFtUU.mjs\";\nimport NcDateTimePicker from \"./Components/NcDateTimePicker.mjs\";\nimport NcDateTimePickerNative from \"./Components/NcDateTimePickerNative.mjs\";\nimport { N as NcDialog } from \"./chunks/NcDialog-CKgpZOiy.mjs\";\nimport { N as NcDialogButton } from \"./chunks/NcDialogButton-CROAi1Ll.mjs\";\nimport NcEllipsisedOption from \"./Components/NcEllipsisedOption.mjs\";\nimport { N as NcEmojiPicker } from \"./chunks/NcEmojiPicker-Du-vbR5T.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-Dj7jeq88.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-DTtUueUZ.mjs\";\nimport { N as NcListItem } from \"./chunks/NcListItem-B4Uyn2AS.mjs\";\nimport { N as NcListItemIcon } from \"./chunks/NcListItemIcon-0H1Pepui.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-DNjegDVj.mjs\";\nimport { N as NcPopover } from \"./chunks/NcPopover-kYsewfff.mjs\";\nimport { N as NcProgressBar } from \"./chunks/NcProgressBar-DegJ2JjE.mjs\";\nimport { N as NcRelatedResourcesPanel } from \"./chunks/NcRelatedResourcesPanel-Y38zaKtn.mjs\";\nimport { N as NcMentionBubble } from \"./chunks/index-Dpk-sL3D.mjs\";\nimport { r } from \"./chunks/index-Dpk-sL3D.mjs\";\nimport { N as NcAutoCompleteResult, a as NcRichContenteditable } from \"./chunks/NcRichContenteditable-B8UqleMX.mjs\";\nimport { N as NcRichText } from \"./chunks/NcRichText-CwXSzf21.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-4kExxHbR.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-CjUzohn5.mjs\";\nimport { N as NcTextField } from \"./chunks/NcTextField-o_8gWurX.mjs\";\nimport \"@nextcloud/event-bus\";\nimport { N as NcSavingIndicatorIcon } from \"./chunks/NcSavingIndicatorIcon-nv1147dk.mjs\";\nimport { N as NcSelectTags } from \"./chunks/NcSelectTags-wJN9J7_t.mjs\";\nimport { N as NcSelectUsers } from \"./chunks/NcSelectUsers-W17kOow7.mjs\";\nimport { N as NcSettingsInputText } from \"./chunks/NcSettingsInputText-YO053agL.mjs\";\nimport { N as NcSettingsSection } from \"./chunks/NcSettingsSection-C76Kqeew.mjs\";\nimport { N as NcSettingsSelectGroup } from \"./chunks/NcSettingsSelectGroup-CH_kppKo.mjs\";\nimport { N as NcTextArea } from \"./chunks/NcTextArea-BHERsE_g.mjs\";\nimport { N as NcTimezonePicker } from \"./chunks/NcTimezonePicker-q46K1fSq.mjs\";\nimport { N as NcUserBubble } from \"./chunks/NcUserBubble-B3-E-5F5.mjs\";\nimport { N as NcUserStatusIcon } from \"./chunks/NcUserStatusIcon-kbPFeJV6.mjs\";\nimport NcVNodes from \"./Components/NcVNodes.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 { u as u3 } from \"./chunks/usernameToColor-yoVXn0De.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 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 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 u2 as useFormatDateTime,\n useHotKey,\n useIsDarkTheme,\n useIsDarkThemeElement,\n useIsFullscreen,\n useIsMobile,\n useIsSmallMobile,\n u as userStatus,\n u3 as 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