1import{a as ke}from"./chunk-DONGNWXF.js";import{b as Oe}from"./chunk-K2OOKOLM.js";import"./chunk-7GM4C56D.js";import"./chunk-7JYO5BGP.js";import"./chunk-MSD6LYSR.js";import"./chunk-HD5C7DLC.js";import{a as Me}from"./chunk-MRCKZCYO.js";import{d as A,e as be,f as Pe,g as xe}from"./chunk-OSWZPIGW.js";import{b as ye}from"./chunk-OA5NIEXN.js";import"./chunk-QFPQWI4G.js";import"./chunk-JT7IGQXF.js";import"./chunk-VL4AQOY5.js";import"./chunk-GA57VTH7.js";import{c as ve}from"./chunk-VY6W6J4D.js";import"./chunk-DMF5YTSA.js";import"./chunk-QXX2VQG5.js";import"./chunk-AVKD7LLL.js";import{c as Ce}from"./chunk-AEFDZLTD.js";import{a as Y}from"./chunk-6QWNT43P.js";import"./chunk-ATL2VDJS.js";import"./chunk-J5EHWOI3.js";import{a as fe}from"./chunk-NHC4P6SX.js";import"./chunk-I3S6BT2A.js";import{$a as T,Aa as g,Ab as Q,Bd as re,Ca as U,Cb as W,Cd as S,Da as y,Ea as O,Fa as s,Fb as $,Ga as o,Gd as ae,Ha as n,Hd as se,Ia as c,Ib as E,Jb as J,Jd as le,Kd as ce,M as f,Mb as K,Oa as F,Pa as k,Q as x,Qa as C,R as M,Sa as d,Sd as de,Td as pe,U as B,Vc as ie,Vd as me,X as m,Xd as ue,Yb as X,Za as j,_a as G,ae as ge,bb as L,be as _e,da as v,eb as p,ga as r,me as he,na as q,rc as Z,sc as ee,ta as w,td as ne,ub as H,ud as oe,vb as b,za as u,zc as te}from"./chunk-J3TZBZA6.js";import"./chunk-WFMAM73Y.js";import"./chunk-44A7RVGX.js";import"./chunk-3A2TMJPV.js";import"./chunk-IEFOED4V.js";import"./chunk-FJLV7CE6.js";import"./chunk-ILZUDNK4.js";import"./chunk-73QSFHH5.js";import"./chunk-D4QXO4R5.js";import"./chunk-GJQXYAAM.js";import"./chunk-YUNOCBLG.js";import"./chunk-VGMJM2GZ.js";import"./chunk-2NIBOUWM.js";import"./chunk-I547WOKC.js";import"./chunk-VCHQQYAC.js";import"./chunk-5CXMNXRB.js";import"./chunk-NMFL75IO.js";import"./chunk-XPSAZ52A.js";var Fe=()=>[0,1,2,3],P=t=>["/article",t],Se=(t,i)=>i.id,Te=(t,i)=>(i==null?null:i.id)??t;function Le(t,i){if(t&1){let e=k();o(0,"div",1)(1,"div",13)(2,"ion-button",14),C("click",function(){x(e);let l=d();return M(l.goBack())}),c(3,"ion-icon",15),p(4," Retour "),n(),c(5,"span",16),o(6,"p",17),p(7,"Mes coups de c\u0153ur"),n()()()}}function Ee(t,i){t&1&&(o(0,"h1",11),p(1,"Mes coups de c\u0153ur"),n())}function Ae(t,i){if(t&1){let e=k();o(0,"div",19)(1,"p"),p(2,"Aucun coup de c\u0153ur ne correspond \xE0 ces filtres"),n(),o(3,"ion-button",14),C("click",function(){x(e);let l=d(2);return M(l.clearFilters())}),p(4,"Tout effacer"),n()()}}function Ie(t,i){if(t&1){let e=k();o(0,"ion-col",20)(1,"app-article-card",23),C("disliked",function(l){x(e);let _=d(2);return M(_.onDislike(l))}),n()()}if(t&2){let e=i.$implicit,a=d(2);r(),s("article",e)("principal",a.principal())}}function De(t,i){t&1&&(o(0,"div",24),c(1,"div",25),o(2,"div",26)(3,"div",27),c(4,"ion-skeleton-text",28)(5,"ion-skeleton-text",29),n(),c(6,"ion-skeleton-text",30),n()())}function ze(t,i){if(t&1&&(o(0,"ion-col",20),u(1,De,7,0,"div",24),n()),t&2){let e=d(2);r(),g(e.isLoading()?1:-1)}}function Ve(t,i){if(t&1){let e=k();o(0,"app-article-filters",18),C("selectionChange",function(l){x(e);let _=d();return M(_.onSelectionChange(l))}),n(),u(1,Ae,5,0,"div",19),o(2,"ion-grid")(3,"ion-row"),y(4,Ie,2,2,"ion-col",20,Se),y(6,ze,2,1,"ion-col",20,U),n()(),o(8,"ion-infinite-scroll",21),C("ionInfinite",function(l){x(e);let _=d();return M(_.nextArticlesPage(l))}),c(9,"ion-infinite-scroll-content",22),n()}if(t&2){let e=d();s("facets",e.facets())("selection",e.selection()),r(),g(e.isFilteredEmpty()?1:-1),r(3),O(e.articles()),r(2),O(H(4,Fe)),r(2),s("disabled",e.isLast())}}function Ne(t,i){t&1&&c(0,"img",44)}function Re(t,i){if(t&1&&(o(0,"swiper-slide",42),c(1,"img",43),u(2,Ne,1,0,"img",44),n()),t&2){let e=i.$implicit;s("routerLink",b(3,P,e.id)),r(),s("src",e.thumbnail,v),r(),g(e.workflow!=null&&e.workflow.startsWith("SOLD")?2:-1)}}function Be(t,i){if(t&1&&(o(0,"swiper-container",36),y(1,Re,3,5,"swiper-slide",42,Se),n()),t&2){let e=d(2);s("modules",e.swiperModules)("slidesPerView",3.5)("spaceBetween",10),r(),O(e.recentlyViewed())}}function qe(t,i){t&1&&c(0,"img",44)}function Ue(t,i){if(t&1&&(o(0,"swiper-slide",42),c(1,"img",43),u(2,qe,1,0,"img",44),n()),t&2){let e=i.$implicit;s("routerLink",b(3,P,e.id)),r(),s("src",e.thumbnail,v),r(),g(e.workflow!=null&&e.workflow.startsWith("SOLD")?2:-1)}}function je(t,i){if(t&1&&(o(0,"swiper-container",38),y(1,Ue,3,5,"swiper-slide",42,Te),n()),t&2){let e=d(2);s("modules",e.swiperModules)("slidesPerView",3.5)("spaceBetween",10)("freeMode",!0),r(),O(e.topLuxuryArticles())}}function Ge(t,i){if(t&1&&(o(0,"div",39)(1,"div",45),c(2,"img",43),n(),o(3,"div")(4,"div")(5,"div",45),c(6,"img",43),n(),o(7,"div",45),c(8,"img",43),n()(),o(9,"div")(10,"div",45),c(11,"img",43),n(),o(12,"div",45),c(13,"img",43),n()()()()),t&2){let e,a,l,_,I,D,z,V,N,R,h=d(2);r(),s("routerLink",b(10,P,(e=h.topLikedArticles()[0])==null?null:e.id)),r(),s("src",(a=h.topLikedArticles()[0])==null?null:a.thumbnail,v),r(3),s("routerLink",b(12,P,(l=h.topLikedArticles()[1])==null?null:l.id)),r(),s("src",(_=h.topLikedArticles()[1])==null?null:_.thumbnail,v),r(),s("routerLink",b(14,P,(I=h.topLikedArticles()[2])==null?null:I.id)),r(),s("src",(D=h.topLikedArticles()[2])==null?null:D.thumbnail,v),r(2),s("routerLink",b(16,P,(z=h.topLikedArticles()[3])==null?null:z.id)),r(),s("src",(V=h.topLikedArticles()[3])==null?null:V.thumbnail,v),r(),s("routerLink",b(18,P,(N=h.topLikedArticles()[4])==null?null:N.id)),r(),s("src",(R=h.topLikedArticles()[4])==null?null:R.thumbnail,v)}}
1function He(t,i){t&1&&F(0)}function Qe(t,i){if(t&1&&(o(0,"ion-grid",12)(1,"ion-row")(2,"ion-col",31)(3,"div",32)(4,"div",33)(5,"div")(6,"p",34),p(7,"Vus r\xE9cemment"),n(),o(8,"p",35),p(9,"Historique des articles consult\xE9s"),n()()(),u(10,Be,3,3,"swiper-container",36),o(11,"div",37)(12,"div")(13,"p",34),p(14,"Dabchy Luxury"),n(),o(15,"p",35),p(16,"Articles soumis \xE0 authentification par l'\xE9quipe Dabchy"),n()()(),u(17,je,3,4,"swiper-container",38),o(18,"div",37)(19,"div")(20,"p",34),p(21,"Ne Les Ratez Pas!"),n(),o(22,"p",35),p(23,"Articles en vogue cette semaine"),n()()(),u(24,Ge,14,20,"div",39),n()(),o(25,"ion-col",40),w(26,He,1,0,"ng-container",41),n()()()),t&2){let e=d(),a=T(16);r(10),g(e.recentlyViewed().length>0?10:-1),r(7),g(e.topLuxuryArticles().length>0?17:-1),r(7),g(e.topLikedArticles().length>=5?24:-1),r(2),s("ngTemplateOutlet",a)}}function We(t,i){t&1&&F(0)}function $e(t,i){if(t&1&&w(0,We,1,0,"ng-container",41),t&2){d();let e=T(16);s("ngTemplateOutlet",e)}}var we=class t{authenticationService=f(ve);articleSearchService=f(Me);router=f(Z);analyticsService=f(Ce);navCtrl=f(ie);platformService=f(fe);destroyRef=f(B);content=K(S);principal=J(()=>this.authenticationService.principal());articles=m([]);isLoading=m(!1);isLast=m(!1);page;size;facets=m(null);selection=m(A());matchCount=m(0);requestId=0;facetsRequestId=0;hasSelection=E(()=>be(this.selection()));isFilteredEmpty=E(()=>this.hasSelection()&&this.matchCount()===0&&!this.isLoading());isTabsMode=m(!1);swiperModules=[te];recentlyViewed=m([]);topLuxuryArticles=m([]);topLikedArticles=m([]);ngOnInit(){this.isTabsMode.set(this.platformService.isDesktop()&&this.router.url.startsWith("/tabs/favourites")),this.doRefresh(),this.analyticsService.gaTrackPage("FavouritesPage"),this.analyticsService.mxTrackEvent("Viewed Favourites",{}),this.isTabsMode()&&(this.articleSearchService.searchViewedArticlesOfUser(0,25).subscribe(i=>this.recentlyViewed.set(i.content)),this.articleSearchService.searchTopLuxuryArticles(0,10).subscribe(i=>this.topLuxuryArticles.set(i.content)),this.articleSearchService.searchTopLikedArticles(0,5).subscribe(i=>this.topLikedArticles.set(i.content)))}doRefresh(i){this.articles.set([]),this.page=0,this.size=20,this.isLast.set(!1),this.searchArticlesPage(i),this.loadFacets()}nextArticlesPage(i){this.page++,this.searchArticlesPage(i)}searchArticlesPage(i){this.isLoading.set(!0);let e=this.selection(),a=++this.requestId;this.articleSearchService.searchLikedArticlesOfUser(this.page,this.size,e).subscribe(l=>{i&&i.target.complete(),a===this.requestId&&(this.isLast.set(l.last),this.matchCount.set(l.totalElements),this.articles.set([...this.articles(),...l.content]),this.isLoading.set(!1))},()=>{i&&i.target.complete(),a===this.requestId&&this.isLoading.set(!1)})}loadFacets(){let i=this.selection(),e=++this.facetsRequestId;this.articleSearchService.searchLikedArticleFacets(i).pipe(Y(this.destroyRef)).subscribe({next:a=>{e===this.facetsRequestId&&this.facets.update(l=>xe(Pe(a),l,i))},error:()=>{}})}onSelectionChange(i){this.selection.set(i),this.articles.set([]),this.page=0,this.isLast.set(!1),this.searchArticlesPage(),this.loadFacets(),this.content()?.scrollToTop(300)}clearFilters(){this.onSelectionChange(A())}onDislike(i){this.articles.set(this.articles().filter(e=>e.id!==i))}goBack(){this.navCtrl.back()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=q({type:t,selectors:[["app-favourites"]],viewQuery:function(e,a){e&1&&j(a.content,S,5),e&2&&G()},hostVars:2,hostBindings:function(e,a){e&2&&L("tabs-mode",a.isTabsMode())},decls:19,vars:9,consts:[["articleGrid",""],[1,"desktop-header","ion-hide-lg-down"],["no-border","","mode","ios"],["mode","ios"],["slot","start"],[3,"click"],["name","chevron-back-outline"],["slot","fixed",3,"ionRefresh"],["pullingIcon","arrow-down-outline","pullingText","Tirer pour rafra\xEEchir","refreshingSpinner","crescent",3,"refreshingText"],[1,"header","ion-hide-lg-up"],["src","assets/img/headers/favorite_header.svg"],[1,"page-title","ion-hide-lg-down"],[1,"fav-grid"],[1,"header-left"],["fill","clear",3,"click"],["slot","start","name","chevron-back-outline"],[1,"divi
1der"],[1,"header-title"],[3,"selectionChange","facets","selection"],[1,"no-favourites"],["size","6","sizeMd","3"],[3,"ionInfinite","disabled"],["loadingSpinner","crescent"],[3,"disliked","article","principal"],[1,"article-skeleton"],[1,"skeleton-image"],[1,"skeleton-footer"],[1,"skeleton-info"],["animated","",1,"skeleton-price"],["animated","",1,"skeleton-size"],["animated","",1,"skeleton-heart"],["size","12","size-lg","4","push-lg","8",1,"fav-right-col"],[1,"sidebar-card"],[1,"search-item-header"],[1,"main-title"],[1,"sub-title"],["free-mode","true",1,"sidebar-slide",3,"modules","slidesPerView","spaceBetween"],[1,"desktop-section-header"],[1,"sidebar-slide",3,"modules","slidesPerView","spaceBetween","freeMode"],[1,"home-slide2"],["size","12","size-lg","8","pull-lg","4",1,"fav-left-col"],[4,"ngTemplateOutlet"],["routerDirection","forward",1,"slide-item",3,"routerLink"],[3,"src"],["src","assets/img/vendubadge.svg",1,"vendu"],["routerDirection","forward",3,"routerLink"]],template:function(e,a){e&1&&(u(0,Le,8,0,"div",1),o(1,"ion-header",2)(2,"ion-toolbar",3)(3,"ion-buttons",4)(4,"ion-button",5),C("click",function(){return a.goBack()}),c(5,"ion-icon",6),n()(),o(6,"ion-title"),p(7,"Mes coups de c\u0153ur"),n()()(),o(8,"ion-content")(9,"ion-refresher",7),C("ionRefresh",function(_){return a.doRefresh(_)}),c(10,"ion-refresher-content",8),Q(11,"genderTransform"),n(),o(12,"div",9),c(13,"img",10),n(),u(14,Ee,2,0,"h1",11),w(15,Ve,10,5,"ng-template",null,0,$),u(17,Qe,27,4,"ion-grid",12)(18,$e,1,1,"ng-container"),n()),e&2&&(g(a.isTabsMode()?0:-1),r(),L("ion-hide-lg-up",a.isTabsMode()),r(9),s("refreshingText",W(11,6,"La7tha Dabchoucha...","me")),r(4),g(a.isTabsMode()?-1:14),r(3),g(a.isTabsMode()?17:18))},dependencies:[ne,oe,re,S,ae,se,he,le,ce,de,pe,me,ue,ge,_e,Oe,ee,X,ke,ye],styles:["ion-toolbar[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: white}div.header[_ngcontent-%COMP%]{width:100%;height:135px;background-color:var(--color-primary-surface);text-align:center}div.header[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{position:relative;height:100%;width:auto;top:10px}app-article-filters[_ngcontent-%COMP%]{display:block;margin-top:16px}.no-favourites[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:40px}.no-favourites[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 15px 2px;font-size:.9rem;color:var(--color-value);text-align:center}.no-favourites[_ngcontent-%COMP%] ion-button[_ngcontent-%COMP%]{--color: var(--ion-color-primary);--min-height: 44px;font-size:.8rem;font-weight:600}@media(min-width:992px){ion-content[_ngcontent-%COMP%]{--padding-top: 40px}app-article-filters[_ngcontent-%COMP%]{margin-top:0}}.desktop-header[_ngcontent-%COMP%]{display:none}.tabs-mode[_nghost-%COMP%]{--desktop-header-height: 56px}@media(min-width:992px){.tabs-mode[_nghost-%COMP%] ion-content[_ngcontent-%COMP%]{--padding-top: 0}.tabs-mode[_nghost-%COMP%] .desktop-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;width:100%;height:var(--desktop-header-height);background:var(--ion-item-background);border-bottom:1px solid var(--color-border);padding:0 16px;z-index:11}.tabs-mode[_nghost-%COMP%] .desktop-header[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0}.tabs-mode[_nghost-%COMP%] .desktop-header[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{width:1px;height:22px;background-color:var(--color-border);flex-shrink:0;margin:0 16px}.tabs-mode[_nghost-%COMP%] .desktop-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{margin:0 15px;font-size:16px;font-weight:500;font-family:NeulisAlt,sans-serif;color:var(--color-headline);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabs-mode[_nghost-%COMP%] .desktop-header[_ngcontent-%COMP%] ion-button[fill=clear][_ngcontent-%COMP%]{--color: var(--color-headline);font-size:.85rem;text-transform:none;letter-spacing:0}.tabs-mode[_nghost-%COMP%] .fav-grid[_ngcontent-%COMP%]{max-width:1200px;margin:0 auto}.tabs-mode[_nghost-%COMP%] .fav-right-col[_ngcontent-%COMP%] .sidebar-card[_ngcontent-%COMP%]{background:var(--ion-item-background);border-radius:var(--app-radius);padding:10px;margin-top:15px;margin-left:15px;position:sticky;top:10px}.tabs-mode[_nghost-%COMP%] .fav-left-col[_ngcontent-%COMP%]{min-height:100vh}.tabs-mode[_nghost-%COMP%] .fav-left-col[_ngcontent-%COMP%] app-article-card[_ngcontent-%COMP%]{border-radius:var(--app-radius);overflow:hidden;display:block}.tabs-mode[_nghost-%COMP%] .search-item-header[_ngcontent-%COMP%]{margin:25px 10px 15px;width:100%;display:flex;justify-content:space-between}.tabs-mode[_nghost-%COMP%] .search-item-header[_ngcontent-%COMP%] .main-title[_ngcontent-%COMP%]{color:var(--color-headline);font-size:1rem;margin:0}.tabs-mode[_nghost-%COMP%] .search-item-header[_ngcontent-%COMP%] .main-title[_ngcontent-%COMP%] > ion-icon[_ngcontent-%COMP%]{vertical-align:text-top}.tabs-mode[_nghost-%COMP%] .search-item-header[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:var(--color-value);font-size:.8rem;margin:0}.tabs-mode[_nghost-%COMP%] .desktop-section-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;margin:15px 10px 10px}.tabs-mode[_nghost-%COMP%] .desktop-section-header[_ngcontent-%COMP%] .main-title[_ngcontent-%COMP%]{color:var(--color-headline);font-size:1em;font-weight:600;margin:0}.tabs-mode[_nghost-%COMP%] .desktop-section-header[_ngcontent-%COMP%] .sub-title[_ngcontent-%COMP%]{color:var(--color-value);font-size:.75em;margin:2px 0 0}.tabs-mode[_nghost-%COMP%] .sidebar-slide[_ngcontent-%COMP%]{padding:0 10px}.tabs-mode[_nghost-%COMP%] .sidebar-slide[_ngcontent-%COMP%] .slide-item[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:100%;height:120px;border-radius:var(--app-radius);object-fit:cover}.tabs-mode[_nghost-%COMP%] .sidebar-slide[_ngcontent-%COMP%] .slide-item[_ngcontent-%COMP%] > img.vendu[_ngcontent-%COMP%]{position:absolute;width:80%;height:auto}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%]{display:flex;margin:0 10px}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;padding:4px;border-radius:var(--app-radius);object-fit:cover}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{position:relative}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){display:flex}.tabs-mode[_nghost-%COMP%] .home-slide2[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2) > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;padding-top:100%}}.fav-grid[_ngcontent-%COMP%]{padding:0}"],changeDetection:0})};export{we as FavouritesPage};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.