import{D as u,d as e,e as r,v as i,w as c}from"./chunk-QUA65JBC.js";var S="favorite-products",n=function(t){return t.home_page="HOME_PAGE",t.category_page="CATEGORY_PAGE",t.product_page="PRODUCT_PAGE",t.favorites_page="FAVORITES_PAGE",t.favorites_picker="FAVORITES_PICKER",t.add_extra="ADD_EXTRA",t.cart="CART",t}(n||{}),E={hasX:!0,message:"Produsul a fost ad\u0103ugat la lista de favorite",class:"mat-snack-bar-favorites-yellow"},v={hasX:!0,message:"Ne pare r\u0103u, momentan salvarea produselor tale favorite nu este disponibil\u0103. Te rug\u0103m s\u0103 \xEEncerci mai t\xE2rziu.",class:"mat-snack-bar-favorites-yellow"},R={hasX:!0,message:"Produsul a fost \xEEnl\u0103turat din lista produselor favorite",class:"mat-snack-bar-favorites-yellow"},p={hasX:!0,message:"Ne pare r\u0103u, \u0219tergerea produselor din lista ta de favorite nu s-a putut efectua. Te rug\u0103m s\u0103 \xEEncerci mai t\xE2rziu.",class:"mat-snack-bar-favorites-yellow"},l={hasX:!0,message:"",class:"mat-snack-bar-favorites-yellow"};var d=e("[ADD_PRODUCT_FAVORITES] Add product to favorite list",r()),T=e("[ADD_PRODUCT_FAVORITES_SUCCESS] Add product to favorite list success",r()),I=e("[ADD_PRODUCT_FAVORITES_ERROR] Add product to favorite list error",r()),_=e("[REMOVE_PRODUCT_FAVORITES] Removed product from favorite list",r()),f=e("[REMOVE_PRODUCT_FAVORITES_SUCCESS] Removed product from favorite list success",r()),P=e("[REMOVE_PRODUCT_FAVORITES_ERROR] Removed product from favorite list error",r()),O=e("[SET_INITIAL_STATUS_PRODUCT_FAVORITES] Set initial status on favorite, will be reloaded"),a=e("[GET_PRODUCT_FAVORITES] Get products from favorite list"),D=e("[GET_PRODUCT_FAVORITES_SUCCESS] Get products from favorite list success",r()),A=e("[GET_PRODUCT_FAVORITES_ERROR] Get products from favorite list error",r()),g=e("[DISPLAY_DISPLAY_FAVORITES_NOTIFICATION] Display favorite notifications, can be success, error or other",r()),x=e("[SET_FAVORITE_PRODUCTS_IDS_WITH_SESSION_MERGE] Set initial status on Favorite Products Ids With Session Merge, will be reloaded"),C=e("[GET_FAVORITE_PRODUCTS_IDS_WITH_SESSION_MERGE_SUCCESS] Get Favorite Products Ids With Session Merge success",r()),U=e("[ADD_FAVORITE_PRODUCTS_IDS_WITH_SESSION_MERGE_ID] Add to Favorite Products Ids With Session Merge",r()),V=e("[REMOVE_FAVORITE_PRODUCTS_IDS_WITH_SESSION_MERGE_ID] Remove from Favorite Products Ids With Session Merge list",r());var o=c("favorites"),N=()=>({selector:o,action:()=>a(),shouldDispatch(t){return t.favorites_page.status===u.initial},map(t){return t.favorites_page}}),b=()=>({selector:o,action:()=>d,map(t){return t.add_to_favorites}}),y=t=>i(o,s=>!!s.favorites_ids_session.response[t]),w=()=>({selector:o,action:()=>_,map(t){return t.remove_from_favorite}}),X=t=>({selector:o,action:()=>a(),map(s){return t?s.remove_from_favorite?.action_data?.id===t:!1}});export{d as a,T as b,I as c,_ as d,f as e,P as f,O as g,a as h,D as i,A as j,g as k,x as l,C as m,U as n,V as o,S as p,n as q,E as r,v as s,R as t,p as u,l as v,N as w,b as x,y,w as z,X as A};