import{d as y}from"./chunk-BGV4AOSB.js";import{l as g}from"./chunk-N7PC5CHF.js";import{j as v}from"./chunk-YJYOGSOO.js";import{m as b}from"./chunk-KVTHJWZA.js";import{Bc as h,Ic as m,Jc as k,Sb as l,Tb as d,hb as a,ic as f,na as n,qa as s,sa as c,vc as p,wc as u}from"./chunk-FWZCAEAJ.js";var w=(()=>{let t=class t{constructor(){this.location=n(b),this.router=n(g),this.window=n(y),this.fallbackUrl="/",this.closeOnNoHistory=!0}goBack(){if(this.window){this.closeOnNoHistory&&this.window.history.length<2?this.window?.close():this.location.back();return}this.router.navigateByUrl(this.fallbackUrl)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=c({type:t,selectors:[["","back",""]],hostBindings:function(e,r){e&1&&f("click",function(){return r.goBack()})},inputs:{fallbackUrl:"fallbackUrl",closeOnNoHistory:"closeOnNoHistory"},standalone:!0});let i=t;return i})(),L=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s({type:t,selectors:[["back-button"]],standalone:!0,features:[h],decls:4,vars:3,consts:[["back","",1,"btn","btn-sm","btn-dark","text-white"]],template:function(e,r){e&1&&(l(0,"div")(1,"button",0),p(2),m(3,"tr"),d()()),e&2&&(a(2),u(k(3,1,"GO_BACK")))},dependencies:[v,w],encapsulation:2,changeDetection:0});let i=t;return i})();export{w as a,L as b};
