"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[58506],{58506:(e,s,c)=>{c.r(s),c.d(s,{CoreSitePluginsCallWSDirective:()=>S});var r=c(10467),t=c(79555),n=c(47551),a=c(15324),u=c(84851),i=c(91416),o=c(54438),l=c(46526);let S=(()=>{var e;class CoreSitePluginsCallWSDirective extends u.y{constructor(e,s){super(e,s),this.goBackOnSuccess=!1,this.refreshOnSuccess=!1}wsCallSuccess(){var e=this;return(0,r.A)((function*(){e.goBackOnSuccess?yield a.CoreNavigator.back():e.refreshOnSuccess&&e.parentContent&&e.parentContent.refreshContent(!0),void 0!==e.successMessage&&n.CoreToasts.show({message:e.successMessage||t.HT.instant("core.success")})}))()}}return(e=CoreSitePluginsCallWSDirective).ɵfac=function CoreSitePluginsCallWSDirective_Factory(s){return new(s||e)(o.rXU(o.aKT),o.rXU(l.U,8))},e.ɵdir=o.FsC({type:e,selectors:[["","core-site-plugins-call-ws",""]],inputs:{successMessage:"successMessage",goBackOnSuccess:[o.Mj6.HasDecoratorInputTransform,"goBackOnSuccess","goBackOnSuccess",i.G],refreshOnSuccess:[o.Mj6.HasDecoratorInputTransform,"refreshOnSuccess","refreshOnSuccess",i.G]},standalone:!0,features:[o.GFd,o.Vt3]}),CoreSitePluginsCallWSDirective})()}}]);