import{a as D}from"./chunk-7G72EZNJ.js";import{a as I}from"./chunk-33S3Y2LM.js";import{a as k}from"./chunk-RFCZMTXP.js";import{b as S}from"./chunk-UIGFCYGO.js";import{J as M}from"./chunk-CWWVHRJU.js";import{a as V}from"./chunk-SU6CJJJO.js";import{Aa as l,Ab as _,Ba as s,Cb as f,Db as C,Dc as A,Fb as E,Kb as h,Lb as c,Ua as a,Va as d,Xc as F,Yb as g,Zb as T,_b as w,gb as v,ib as x,ob as m,rc as y,sc as u,ta as b,yh as W,zb as p}from"./chunk-N6B2OJOY.js";function H(o,r){if(o&1){let i=E();f(0),p(1,"foerch-cart-mobile-body",4),h("addEntryToCart",function(t){l(i);let e=c();return s(e.onAddEntryToCart(t))})("markEntry",function(t){l(i);let e=c();return s(e.onToggleEntry(t))})("removeEntry",function(t){l(i);let e=c();return s(e.onRemoveEntry(t))})("updateComment",function(t){l(i);let e=c();return s(e.onUpdateComment(t))}),_(),p(2,"foerch-cart-mobile-footer",5),h("applyBulkAction",function(t){l(i);let e=c();return s(e.applyBulkAction(t))})("markToggle",function(){l(i);let t=c();return s(t.toggleAll())}),_(),C()}if(o&2){let i=c();a(),m("cartConfig",i.cartConfig)("isLoading$",i.isCartLoading$)("items",i.watchlistItems)("selectionHelper",i.selectionHelper),a(),m("bulkOptions",i.bulkActionOptions)("footerConfig",i.footerConfig)("hasAnyDeletedArticle",i.hasAnyDeletedArticle)("selectAll",i.selectionHelper.areAllSelected())}}function R(o,r){o&1&&(f(0),p(1,"div",6),g(2),y(3,"cxTranslate"),_(),C()),o&2&&(a(2),w(" ",u(3,1,"watchlistView.noArticlesOnWatchlist")," "))}var Y=(()=>{let r=class r extends D{constructor(n,t,e){super(n,t,e),this.watchlistService=n,this.activeCartService=t,this.cd=e}};r.\u0275fac=function(t){return new(t||r)(d(V),d(M),d(A))},r.\u0275cmp=b({type:r,selectors:[["foerch-watchlist-mobile"]],features:[v],decls:7,vars:8,consts:[[1,"watchlistHead"],[1,"h3"],[3,"addToCart","headerConfig","isCartRefreshed","isEmptyCart"],[4,"ngIf"],[3,"addEntryToCart","markEntry","removeEntry","updateComment","cartConfig","isLoading$","items","selectionHelper"],[3,"applyBulkAction","markToggle","bulkOptions","footerConfig","hasAnyDeletedArticle","selectAll"],[1,"emptyState-text"]],template:function(t,e){t&1&&(p(0,"div",0)(1,"div",1),g(2),y(3,"cxTranslate"),_()(),p(4,"foerch-cart-mobile-head",2),h("addToCart",function(B){return e.onAddEntriesToWatchlist(B)}),_(),x(5,H,3,8,"ng-container",3)(6,R,4,3,"ng-container",3)),t&2&&(a(2),T(u(3,6,"watchlistView.watchlist")),a(2),m("headerConfig",e.headerConfig)("isCartRefreshed",!e.isWatchlistLoading)("isEmptyCart",e.isEmptyWatchlist),a(),m("ngIf",!e.isEmptyWatchlist),a(),m("ngIf",e.isInitialized&&e.isEmptyWatchlist))},dependencies:[F,I,S,k,W],encapsulation:2,changeDetection:0});let o=r;return o})();export{Y as a};