nextcloud-server/dist/4864-4864.js

2 lines
2.7 KiB
JavaScript

"use strict";(globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[]).push([[4864],{24864:(t,e,a)=>{a.r(e),a.d(e,{default:()=>k});var n=a(53334),l=a(85471),o=a(94219),s=a(93663),i=a(82182);const c=(0,l.pM)({name:"LegacyDialogPrompt",components:{NcDialog:o.A,NcTextField:i.A,NcPasswordField:s.A},props:{name:{type:String,required:!0},text:{type:String,required:!0},isPassword:{type:Boolean,required:!0},inputName:{type:String,default:"prompt-input"}},emits:["close"],data:()=>({inputValue:""}),computed:{buttons(){return[{label:(0,n.Tl)("core","No"),callback:()=>this.$emit("close",!1,this.inputValue)},{label:(0,n.Tl)("core","Yes"),type:"primary",callback:()=>this.$emit("close",!0,this.inputValue)}]}},mounted(){this.$nextTick(()=>this.$refs.input?.focus?.())}});var p=a(85072),u=a.n(p),r=a(97825),m=a.n(r),d=a(77659),g=a.n(d),_=a(55056),A=a.n(_),b=a(10540),y=a.n(b),C=a(41113),f=a.n(C),x=a(89075),h={};h.styleTagTransform=f(),h.setAttributes=A(),h.insert=g().bind(null,"head"),h.domAPI=m(),h.insertStyleElement=y(),u()(x.A,h),x.A&&x.A.locals&&x.A.locals;const k=(0,a(14486).A)(c,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("NcDialog",{attrs:{"dialog-classes":"legacy-prompt__dialog",buttons:t.buttons,name:t.name},on:{"update:open":function(e){return t.$emit("close",!1,t.inputValue)}}},[e("p",{staticClass:"legacy-prompt__text",domProps:{textContent:t._s(t.text)}}),t._v(" "),t.isPassword?e("NcPasswordField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{autocomplete:"new-password",label:t.name,name:t.inputName},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):e("NcTextField",{ref:"input",staticClass:"legacy-prompt__input",attrs:{label:t.name,name:t.inputName},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}})],1)},[],!1,null,"48faebc7",null).exports},89075:(t,e,a)=>{a.d(e,{A:()=>i});var n=a(71354),l=a.n(n),o=a(76314),s=a.n(o)()(l());s.push([t.id,".legacy-prompt__text[data-v-48faebc7]{margin-block:0 .75em}.legacy-prompt__input[data-v-48faebc7]{margin-block:0 1em}[data-v-48faebc7] .legacy-prompt__dialog .dialog__actions{min-width:calc(100% - 12px);justify-content:space-between}","",{version:3,sources:["webpack://./core/src/components/LegacyDialogPrompt.vue"],names:[],mappings:"AAEC,sCACC,oBAAA,CAGD,uCACC,kBAAA,CAIF,0DACC,2BAAA,CACA,6BAAA",sourcesContent:["\n.legacy-prompt {\n\t&__text {\n\t\tmargin-block: 0 .75em;\n\t}\n\n\t&__input {\n\t\tmargin-block: 0 1em;\n\t}\n}\n\n:deep(.legacy-prompt__dialog .dialog__actions) {\n\tmin-width: calc(100% - 12px);\n\tjustify-content: space-between;\n}\n"],sourceRoot:""}]);const i=s}}]);
//# sourceMappingURL=4864-4864.js.map?v=0067aafdfe2337ed928b