"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[7573],{23712:(e,a,t)=>{t.d(a,{A:()=>r});var i=t(71354),n=t.n(i),l=t(76314),s=t.n(l)()(n());s.push([e.id,".public-auth-prompt__subtitle[data-v-8567789a]{font-size:1.25em;margin-block:0 calc(3*var(--default-grid-baseline))}.public-auth-prompt__header[data-v-8567789a]{margin-block:0 calc(3*var(--default-grid-baseline))}.public-auth-prompt__input[data-v-8567789a]{margin-block:calc(4*var(--default-grid-baseline)) calc(2*var(--default-grid-baseline))}","",{version:3,sources:["webpack://./apps/files_sharing/src/views/PublicAuthPrompt.vue"],names:[],mappings:"AAEC,+CAEC,gBAAA,CACA,mDAAA,CAGD,6CACC,mDAAA,CAGD,4CACC,sFAAA",sourceRoot:""}]);const r=s},57573:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var i=t(85471),n=t(53334),l=t(94219),s=t(80910),r=t(82182),o=t(32981);const u=(0,i.pM)({name:"PublicAuthPrompt",components:{NcDialog:l.A,NcNoteCard:s.A,NcTextField:r.A},props:{nickname:{type:String,default:""}},setup:()=>({t:n.t,owner:(0,o.C)("files_sharing","owner",""),ownerDisplayName:(0,o.C)("files_sharing","ownerDisplayName",""),label:(0,o.C)("files_sharing","label",""),note:(0,o.C)("files_sharing","note",""),filename:(0,o.C)("files_sharing","filename","")}),data:()=>({name:""}),computed:{dialogName(){return this.t("files_sharing","Upload files to {folder}",{folder:this.label||this.filename})},dialogButtons:()=>[{label:(0,n.t)("files_sharing","Submit name"),type:"primary",nativeType:"submit"}]},watch:{nickname:{handler(){this.name=this.nickname},immediate:!0}}});var p=t(85072),c=t.n(p),m=t(97825),d=t.n(m),h=t(77659),f=t.n(h),b=t(55056),A=t.n(b),_=t(10540),g=t.n(_),C=t(41113),v=t.n(C),y=t(23712),N={};N.styleTagTransform=v(),N.setAttributes=A(),N.insert=f().bind(null,"head"),N.domAPI=d(),N.insertStyleElement=g(),c()(y.A,N),y.A&&y.A.locals&&y.A.locals;const w=(0,t(14486).A)(u,(function(){var e=this,a=e._self._c;return e._self._setupProxy,a("NcDialog",{staticClass:"public-auth-prompt",attrs:{buttons:e.dialogButtons,"data-cy-public-auth-prompt-dialog":"","is-form":"","can-close":!1,name:e.dialogName},on:{submit:function(a){return e.$emit("close",e.name)}}},[e.owner?a("p",{staticClass:"public-auth-prompt__subtitle"},[e._v("\n\t\t"+e._s(e.t("files_sharing","{ownerDisplayName} shared a folder with you.",{ownerDisplayName:e.ownerDisplayName}))+"\n\t")]):e._e(),e._v(" "),a("NcNoteCard",{staticClass:"public-auth-prompt__header",attrs:{text:e.t("files_sharing","To upload files, you need to provide your name first."),type:"info"}}),e._v(" "),a("NcTextField",{ref:"input",staticClass:"public-auth-prompt__input",attrs:{"data-cy-public-auth-prompt-dialog-name":"",label:e.t("files_sharing","Nickname"),placeholder:e.t("files_sharing","Enter your nickname"),minlength:"2",name:"name",required:"",value:e.name},on:{"update:value":function(a){e.name=a}}})],1)}),[],!1,null,"8567789a",null).exports}}]); //# sourceMappingURL=7573-7573.js.map?v=d20dff85856e7e4ade82