import{Ad as y,Bb as m,Db as g,Dc as O,Ec as p,Fc as x,Ib as o,Jb as s,Kb as r,Lb as b,Xb as f,Xc as _,Yc as c,Za as a,Zb as C,ib as u,lc as v,mc as l,nd as k,oc as d}from"./chunk-GJDGQISV.js";var P=(e,n,i)=>({"unselect-card":e,"card-select":n,"card-available":i}),S=e=>({"text-secondary":e}),h=(e,n)=>({"bg-danger-subtle text-inactive":e,"bg-success text-white":n}),D=(e,n)=>({"text-secondary":e,"text-success":n});function N(e,n){if(e&1&&b(0,"i",7),e&2){let i=C();v(i.icon()),o("ngClass",p(3,D,i.isOccupied(),!i.isOccupied()))}}var M=class e{title=c("Park Order");isOccupied=c(!0);alias=c("A1");icon=c("fa-solid fa-star");selected=c(!1);onEventSelect=_({alias:"onSelect"});onSelect(){this.isOccupied()==!1&&this.onEventSelect.emit(this.title())}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=u({type:e,selectors:[["park-card"]],inputs:{title:[1,"title"],isOccupied:[1,"isOccupied"],alias:[1,"alias"],icon:[1,"icon"],selected:[1,"selected"]},outputs:{onEventSelect:"onSelect"},decls:9,vars:15,consts:[[1,"card","m-0","bg-light","border","border-2","bg-opacity-25","rounded",3,"click","ngClass"],[1,"card-body"],[1,"d-flex","align-items-center","justify-content-between","flex-column"],[1,"d-flex","align-items-center","gap-3"],[1,"fa-xl","text-success",3,"ngClass","class"],[3,"ngClass"],[1,"py-2","px-5","rounded-pill","mt-7","fw-normal","border",3,"ngClass"],[1,"fa-xl","text-success",3,"ngClass"]],template:function(i,t){i&1&&(s(0,"div",0),f("click",function(){return t.onSelect()}),s(1,"div",1)(2,"div",2)(3,"div",3),m(4,N,1,6,"i",4),s(5,"h4",5),l(6),r()(),s(7,"div",6),l(8),r()()()()),i&2&&(o("ngClass",x(6,P,!t.selected(),t.selected()&&!t.isOccupied(),!t.isOccupied())),a(4),g(t.icon()?4:-1),a(),o("ngClass",O(10,S,t.isOccupied())),a(),d(" ",t.title()," "),a(),o("ngClass",p(12,h,t.isOccupied(),!t.isOccupied())),a(),d(" ",t.isOccupied()?"Occupied":"Available"," "))},dependencies:[y,k],styles:[".text-inactive[_ngcontent-%COMP%]{color:#b98181}.card-available[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;transform:translateY(0)}.card-available[_ngcontent-%COMP%]:hover{transform:translateY(-6px);box-shadow:0 2px 4px #00000026,0 0 2px 1px #c0f4cb;border-color:#81c784!important;background-color:#fff!important}.card-select[_ngcontent-%COMP%]{background-color:#ffffe1!important;border-color:#89b03e!important}.unselect-card[_ngcontent-%COMP%]{border-color:transparent!important}"]})};export{M as a};
