(self.webpackChunkncpasswords=self.webpackChunkncpasswords||[]).push([[641],{50162:(s,a,t)=>{var r=t(93189);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[s.id,r,""]]),r.locals&&(s.exports=r.locals),(0,t(70534).A)("f750d040",r,!1,{})},53420:(s,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>c});var r=function(){var s=this,a=s._self._c;return a("nc-modal",{attrs:{container:s.container,size:"small"},on:{close:s.close}},[a("div",{staticClass:"password-change-dialog"},[s.loading?a("nc-loading-icon",{attrs:{size:64}}):s.passwordPageUrl?a("div",[a("translate",{attrs:{say:"ChangePasswordPageText",variables:s.password}}),s._v(" "),a("pre",[s._v(s._s(s.passwordPageUrl))]),s._v(" "),a("nc-button",{attrs:{href:s.passwordPageUrl,target:"_blank",type:"primary",wide:""}},[s._v("\n                "+s._s(s.t("ChangePasswordPageLink"))+"\n            ")])],1):a("div",[a("translate",{attrs:{say:"ChangePasswordPageFallback",variables:s.password}}),s._v(" "),a("br"),a("br"),s._v(" "),a("nc-button",{attrs:{href:s.password.url,target:"_blank",type:"primary",wide:""}},[s._v("\n                "+s._s(s.t("Open {label}",{label:s.password.host}))+"\n            ")])],1)],1)])};r._withStripped=!0;var e=t(56423),l=t(53024),o=t(94493),n=t(74095),d=t(18126),i=t(90512);const p={components:{NcModal:o.A,NcButton:n.default,Translate:l.A,NcLoadingIcon:d.A},props:{password:{type:Object}},data:()=>({loading:!0,passwordPageUrl:null,container:i.A.popupContainer(!0)}),mounted(){this.loadPasswordPageUrl()},methods:{loadPasswordPageUrl(){this.loading=!0,e.A.getPasswordChangeUrl(this.password.host).then(s=>{this.passwordPageUrl=s.url}).catch(()=>{this.passwordPageUrl=null}).finally(()=>{this.loading=!1})},close(){this.$destroy(),this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},watch:{password(){this.loadPasswordPageUrl()}}};t(50162);const c=(0,t(14486).A)(p,r,[],!1,null,null,null).exports},93189:(s,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>r});const r={}}}]);