1import{a as Xe,b as Ye,c as et,d as tt,e as it}from"./chunk-4W4N22Y4.js";import"./chunk-KWAAP6Q6.js";import{a as rt}from"./chunk-WNRJNQW2.js";import{a as Je}from"./chunk-E2INQ75X.js";import"./chunk-KGULQUF5.js";import"./chunk-YXCYOSHW.js";import"./chunk-B37FENZ5.js";import"./chunk-TOWAWL3V.js";import"./chunk-YVWJTL5I.js";import"./chunk-VEWEYIMD.js";import"./chunk-P6QIYWQX.js";import"./chunk-5XN7RECN.js";import"./chunk-3C7R7IY6.js";import"./chunk-7JYLXVZE.js";import"./chunk-ODJRAIXF.js";import"./chunk-DVJGA7R3.js";import{a as De,b as Ie}from"./chunk-QNJKB2H2.js";import"./chunk-ZKMF4QC3.js";import{b as ze,g as We}from"./chunk-EKBQZYUA.js";import{a as Ze,b as Ke}from"./chunk-3O5TTJOZ.js";import"./chunk-JDKREAZL.js";import"./chunk-CW2QBHOE.js";import"./chunk-OCWPWPNG.js";import"./chunk-TR7O3FWI.js";import"./chunk-Q5D2J2UK.js";import"./chunk-P4UA7BFY.js";import{a as Qe}from"./chunk-OO3WIQNE.js";import"./chunk-Q7YQUZRX.js";import"./chunk-Y454BWZQ.js";import{a as Re,ba as Ue,n as $e,p as Ge}from"./chunk-SNZPEAKD.js";import"./chunk-BVKWQ4B5.js";import{u as I}from"./chunk-LW5KVSFS.js";import{c as je}from"./chunk-PVGZOUFO.js";import"./chunk-GPJC7KXP.js";import"./chunk-2P5ATBS5.js";import"./chunk-PRMDPVJ5.js";import"./chunk-2GFMGOEM.js";import{Ab as Oe,Yb as Ne,bc as qe,p as R,r as Ve,rb as Ae}from"./chunk-VVQEEU56.js";import"./chunk-YWBWHPEZ.js";import{I as we,Z as ve}from"./chunk-UCYOIBI3.js";import{c as fe}from"./chunk-3V3PVNK2.js";import"./chunk-RB2HPUR4.js";import{Ba as Be,C as be,Ca as Pe,F as Se,G as ye,H as xe,I as D,J as ke,R as Fe,S as Me,W as Te,X as He,xa as Le,za as Ee}from"./chunk-LV4NLFPR.js";import{Ra as ge,W as ue,ga as _e,va as Ce}from"./chunk-EYIIS3PF.js";import{$ as W,Ac as _,Bb as ie,Bd as me,Cc as l,Fa as w,Hb as O,Hd as he,Ib as re,Kc as ae,Lc as se,Mc as N,Oc as Q,Rb as ne,Rc as c,Sc as le,Tc as E,Uc as U,Wb as oe,Wc as J,Xc as X,Yb as M,Yc as Y,_b as T,ad as pe,bc as P,cc as V,cd as de,dc as m,eb as $,ec as o,fc as a,fd as H,gc as C,hd as ce,kb as p,mc as G,md as B,od as j,pd as z,qc as g,rd as y,ta as h,ua as u,ub as v,va as b,wa as A,wd as q}from"./chunk-ELUVJUMX.js";import"./chunk-RCRYRWQM.js";import{d as te}from"./chunk-XNYKMX4R.js";import{a as f,b as L}from"./chunk-OUT7P5JZ.js";var dt=["searchBox"],ct=()=>[import("./chunk-Z32GJVMC.js").then(r=>r.BrandCardComponent)],mt=r=>({show_mobile_search:r}),ht=r=>({"w-100":r}),nt=r=>({invisible:r}),ut=r=>({"d-none":r}),ot=r=>({$implicit:r}),_t=r=>({active:r}),Ct=(r,t,e)=>({value:r,type:t,label:e}),gt=(r,t)=>t.text,at=(r,t)=>t.value,ft=(r,t)=>t.sortId,wt=(r,t)=>t.id,vt=(r,t)=>t.formControl;function bt(r,t){if(r&1&&G(0,61),r&2){let e=l().$implicit;l();let i=N(71);m("ngTemplateOutlet",i)("ngTemplateOutletContext",H(2,ot,e))}}function St(r,t){if(r&1&&G(0,62),r&2){l(2);let e=N(78);m("ngTemplateOutlet",e)}}function yt(r,t){if(r&1&&G(0,61),r&2){let e=l().$implicit;l();let i=N(73);m("ngTemplateOutlet",i)("ngTemplateOutletContext",H(2,ot,e))}}function xt(r,t){if(r&1&&M(0,bt,1,4,"ng-container",61)(1,St,1,1,"ng-container",62)(2,yt,1,4,"ng-container",61),r&2){let e=t.$implicit;T(e.type==="chip"?0:e.type==="sort"?1:e.type==="dropdown"?2:-1)}}function kt(r,t){if(r&1){let e=g();o(0,"button",63),_("click",function(){h(e);let n=l();return u(n.removeFilter("search"))}),b(),o(1,"svg",64),C(2,"path",65),a(),o(3,"svg",66),C(4,"path",67),a()()}}function Ft(r,t){if(r&1){let e=g();o(0,"a",68),_("click",function(){let n=h(e).$implicit,s=l();return u(s.removeFilter(n))}),o(1,"span",69),c(2),a(),o(3,"i",48),b(),o(4,"svg",70),C(5,"path",71),a()()()}if(r&2){let e=t.$implicit;m("id","remove-"+e.value),p(2),le(e.label)}}function Mt(r,t){if(r&1){let e=g();o(0,"div",35)(1,"button",72),_("click",function(){h(e);let n=l();return u(n.removeFilter("all"))}),o(2,"p"),c(3," Clear All"),a(),o(4,"span",73),b(),o(5,"svg",70),C(6,"path",71),a()()()()}}function Tt(r,t){if(r&1){let e=g();c(0),B(1,"pluralSingular"),o(2,"a",74),_("click",function(){h(e);let n=l();return u(n.removeFilter("search"))}),o(3,"span"),c(4),a(),o(5,"i",48),b(),o(6,"svg",75),C(7,"path",76),a()()()}if(r&2){let e=l();U(" ",e.totalBrands()," ",z(1,3,e.totalBrands(),"result","results")," for "),p(4),E("'",e.queryParams().search,"'")}}function Ht(r,t){if(r&1&&(c(0),B(1,"pluralSingular")),r&2){let e=l();U(" ",e.totalBrands()," ",z(1,2,e.totalBrands(),"brand partner","brand partners")," ")}}function Lt(r,t){if(r&1){let e=g();o(0,"li")(1,"a",77),B(2,"applyFn"),_("click",function(){let n=h(e).$implicit,s=l();return u(s.applyFilterToUrl("sort",n.sortValue))}),c(3),a()()}if(r&2){let e=t.$implicit,i=l();p(),m("id",e.sortId)("ngClass",H(7,_t,i.queryParams().sortBy==e.sortValue))("innerHTML",j(2,4,e.sortLabel,i.domSanitizer.bypassSecurityTrustHtml),$),p(2),E(" ",e.sortLabel,"> ")}}function Et(r,t){r&1&&(o(0,"p",82),c(1,"Try updating your filters or search term to expand your results."),a())}function Bt(r,t){r&1&&(o(0,"p",82),c(1,"Try updating your filters or search term to expand your results."),a())}function Pt(r,t){if(r&1){let e=g();o(0,"div",53)(1,"div",78)(2,"div",79)(3,"figure"),C(4,"img",80),a()(),o(5,"h3",81),c(6,"No results found"),a(),M(7,Et,2,0,"p",82)(8,Bt,2,0,"p",82),o(9,"div",83)(10,"a",84),_("click",function(){h(e);let n=l();return u(n.removeFilter("all"))}),o(11,"span",58),b(),o(12,"svg",85),C(13,"path",86),a()(),A(),o(14,"p",45),c(15,"Clear all"),a()()()()()}if(r&2){let e=l();p(7),T(e.showClearAll()?7:8)}}function Vt(r,t){if(r&1){let e=g();o(0,"div",87)(1,"app-brand-card",88),_("openBrandDetailsModalEvent",function(n){h(e);let s=l(2);return u(s.openBrandDetailsModal(n))})("brandSearchClickEvent",function(n){h(e);let s=l(2);return u(s.brandSearchClickEvent(n.brandDetails,n.clickType))}),a()()}if(r&2){let e=l(),i=e.$implicit,n=e.$index,s=l();m("id",de("brand-card-",i==null?null:i.id,"-",n)),p(),m("brand",i)("index",n)("queryParams",s.queryParams())}}function Dt(r,t){if(r&1&&(o(0,"div",89)(1,"div",90),C(2,"p-skeleton",91)(3,"p-skeleton",92)(4,"p-skeleton",93),a()()),r&2){let e=l(2);p(2),m("height",pe(e.screenService.showMobileDevice()?"200px":"250px"))}}function It(r,t){r&1&&(re(0,Vt,2,6)(1,Dt,5,2),ne(2,0,ct,null,1),oe(0,-1))}function At(r,t){if(r&1){let e=g();o(0,"div",94)(1,"button",95),_("click",function(){h(e);let n=l();return u(n.openAllFiltersSidebar())}
1),C(2,"span",96),B(3,"applyFn"),c(4),a()()}if(r&2){let e=t.$implicit,i=l();p(2),m("innerHTML",j(3,2,e.icon,i.domSanitizer.bypassSecurityTrustHtml),$),p(2),E(" ",i.screenService.showMobileDevice()?"":e.text," ")}}function Ot(r,t){if(r&1&&(C(0,"span",99),B(1,"applyFn")),r&2){let e=l().$implicit,i=l();m("innerHTML",j(1,1,e.icon,i.domSanitizer.bypassSecurityTrustHtml),$)}}function Nt(r,t){if(r&1&&(o(0,"div",100),c(1),a()),r&2){let e=l().$implicit;p(),E(" Filter by ",e.text," ")}}function qt(r,t){if(r&1){let e=g();o(0,"div",97)(1,"dropdown-with-apply",98),_("applyFilterEvent",function(){let n=h(e).$implicit,s=l();return u(s.applyFilterToUrl(n.formControl))})("dropdownOpenCloseEventHandler",function(n){let s=h(e).$implicit,d=l();return u(d.filterDropdownCloseHandler(n,s.formControl))}),O(2,Ot,2,4,"ng-template",null,6,y)(4,Nt,2,1,"ng-template",null,7,y),a()()}if(r&2){let e=t.$implicit,i=l();m("formGroup",i.brandFiltersForm),p(),m("dropdownOptions",e.options)("formControlName",e.formControl)("dropdownTitle",e.text)("filter",!1)("multiple",!0)}}function jt(r,t){r&1&&c(0," Filters ")}function Rt(r,t){if(r&1&&(c(0),B(1,"pluralSingular")),r&2){let e=l(2);U(" ",e.allFilterSidebarOptions().length," ",z(1,2,e.allFilterSidebarOptions().length,"Filter","Filters")," ")}}function Zt(r,t){if(r&1){let e=g();o(0,"span",116),_("click",function(){h(e);let n=l(2);return u(n.clearFiltersInSidebar())}),c(1," Clear all "),a()}}function Kt(r,t){if(r&1){let e=g();o(0,"span",94)(1,"p-checkbox",120,8),Y("ngModelChange",function(n){h(e);let s=l(3);return X(s.allFilterSidebarOptions,n)||(s.allFilterSidebarOptions=n),u(n)}),a(),o(3,"label",121),c(4),a()()}if(r&2){let e=t.$implicit,i=N(2),n=l().$implicit,s=l(2);Q("active",i.checked),p(),m("value",ce(7,Ct,e.value,n.formControl,e.label)),J("ngModel",s.allFilterSidebarOptions),m("inputId",e.value+n.formControl),p(2),m("for",e.value+n.formControl),p(),E(" ",e.label," ")}}function $t(r,t){if(r&1&&(o(0,"div",111)(1,"div",117),c(2),a(),o(3,"div",118),P(4,Kt,5,11,"span",119,at),a()()),r&2){let e=t.$implicit;p(2),E(" ",e.text," "),p(2),V(e.options)}}function Gt(r,t){if(r&1){let e=g();o(0,"div",101)(1,"div",102)(2,"div",103)(3,"h3"),M(4,jt,1,0)(5,Rt,2,6),a(),M(6,Zt,2,0,"span",104),a(),o(7,"div",105)(8,"button",106),_("click",function(){h(e);let n=l();return u(n.onSidebarCancel())}),b(),o(9,"svg",107),C(10,"path",108),a()()()(),A(),o(11,"div",109)(12,"div",110),P(13,$t,6,1,"div",111,vt),B(15,"slice"),a()(),o(16,"div",112)(17,"div",113)(18,"button",114),_("click",function(){h(e);let n=l();return u(n.onSidebarCancel())}),c(19,"Cancel"),a(),o(20,"button",115),_("click",function(){h(e);let n=l();return u(n.applySidebarFilters())}),c(21,"Apply"),a()()()()}if(r&2){let e=l();p(4),T(e.allFilterSidebarOptions().length?5:4),p(2),T(e.allFilterSidebarOptions().length?6:-1),p(7),V(j(15,2,e.brandPageFilters(),e.screenService.showMobileDevice()?2:1))}}function Ut(r,t){r&1&&(o(0,"span",48),b(),o(1,"svg",124),C(2,"path",125),a()())}function zt(r,t){}function Wt(r,t){r&1&&(o(0,"div",100),c(1," Sort "),a())}function Qt(r,t){if(r&1){let e=g();o(0,"div",122)(1,"dropdown-with-apply",123),_("ngModelChange",function(n){h(e);let s=l();return u(s.sort.set(n))})("applyFilterEvent",function(){h(e);let n=l();return u(n.applyFilterToUrl("sort",n.sort()))})("dropdownOpenCloseEventHandler",function(n){h(e);let s=l();return u(s.onSortDropdownClose(n))}),O(2,Ut,3,0,"ng-template",null,6,y)(4,zt,0,0,"ng-template",null,9,y)(6,Wt,2,0,"ng-template",null,7,y),a()()}if(r&2){let e=l();p(),m("disabled",!e.totalBrands())("ngModel",e.sort())("dropdownOptions",e.sortData)("filter",!1)("multiple",!1)("allowDeselect",!1)}}var ee=class r{constructor(t,e,i,n,s,d,x,Z,k,K,st,lt){this.activatedRoute=t,this.router=e,this.shopAndBrowseService=i,this.randomService=n,this.domSanitizer=s,this.amplitudeService=d,this.auth=x,this.cdr=Z,this.screenService=k,this.searchService=K,this.brandModalService=st,this.editItemService=lt,this.categories=q(()=>this.searchService.l0CategoryList()),this.updatedShopList=w([]),this.skip=0,this.limit=18,this.search="",this.isArrayListEmpty=!1,this.isRunning=!1,this.searchKeyword=w(""),this.isSearchFocused=w(!1),this.showSearch=q(()=>!!this.searchKeyword()||this.isSearchFocused()),this.totalBrands=w(0),this.initialLoading=w(!0),this.queryParams=w({sortBy:"featured",search:void 0,categories:[],priceTier:[],shipping:[],features:[],popularPicks:[],minoanShowroom:[],filterParams:"",fromSearchPage:""}),this.sortKey={"A-Z":[{columnName:"name",direction:!0}
1],"Z-A":[{columnName:"name",direction:!1}],"max-discount":[{columnName:"discount_to_property",direction:!1}],"min-discount":[{columnName:"discount_to_property",direction:!0}],"new-brand":[{columnName:"created_at",direction:!1}],"old-brand":[{columnName:"name",direction:!0}],featured:[],"max-commission":[{columnName:"commission_to_customer",direction:!1}]},this.searchApplied=!1,this.brandPageFilters=q(()=>{let S=[{text:"All Filters",type:"chip",icon:`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"> 2 <path d="M2 5.3335L10 5.3335M10 5.3335C10 6.43807 10.8954 7.3335 12 7.3335C13.1046 7.3335 14 6.43807 14 5.3335C14 4.22893 13.1046 3.3335 12 3.3335C10.8954 3.3335 10 4.22893 10 5.3335ZM6 10.6668L14 10.6668M6 10.6668C6 11.7714 5.10457 12.6668 4 12.6668C2.89543 12.6668 2 11.7714 2 10.6668C2 9.56226 2.89543 8.66683 4 8.66683C5.10457 8.66683 6 9.56226 6 10.6668Z" stroke="#96999F" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 3</svg>`,options:[],showArrow:!1},{text:"Categories",type:"dropdown",icon:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 4<path d="M5.6 2H3.06667C2.6933 2 2.50661 2 2.36401 2.07266C2.23856 2.13658 2.13658 2.23856 2.07266 2.36401C2 2.50661 2 2.6933 2 3.06667V5.6C2 5.97337 2 6.16005 2.07266 6.30266C2.13658 6.4281 2.23856 6.53009 2.36401 6.594C2.50661 6.66667 2.6933 6.66667 3.06667 6.66667H5.6C5.97337 6.66667 6.16005 6.66667 6.30266 6.594C6.4281 6.53009 6.53009 6.4281 6.594 6.30266C6.66667 6.16005 6.66667 5.97337 6.66667 5.6V3.06667C6.66667 2.6933 6.66667 2.50661 6.594 2.36401C6.53009 2.23856 6.4281 2.13658 6.30266 2.07266C6.16005 2 5.97337 2 5.6 2Z" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 5<path d="M12.9333 2H10.4C10.0266 2 9.83995 2 9.69734 2.07266C9.5719 2.13658 9.46991 2.23856 9.406 2.36401C9.33333 2.50661 9.33333 2.6933 9.33333 3.06667V5.6C9.33333 5.97337 9.33333 6.16005 9.406 6.30266C9.46991 6.4281 9.5719 6.53009 9.69734 6.594C9.83995 6.66667 10.0266 6.66667 10.4 6.66667H12.9333C13.3067 6.66667 13.4934 6.66667 13.636 6.594C13.7614 6.53009 13.8634 6.4281 13.9273 6.30266C14 6.16005 14 5.97337 14 5.6V3.06667C14 2.6933 14 2.50661 13.9273 2.36401C13.8634 2.23856 13.7614 2.13658 13.636 2.07266C13.4934 2 13.3067 2 12.9333 2Z" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 6<path d="M12.9333 9.33333H10.4C10.0266 9.33333 9.83995 9.33333 9.69734 9.406C9.5719 9.46991 9.46991 9.5719 9.406 9.69734C9.33333 9.83995 9.33333 10.0266 9.33333 10.4V12.9333C9.33333 13.3067 9.33333 13.4934 9.406 13.636C9.46991 13.7614 9.5719 13.8634 9.69734 13.9273C9.83995 14 10.0266 14 10.4 14H12.9333C13.3067 14 13.4934 14 13.636 13.9273C13.7614 13.8634 13.8634 13.7614 13.9273 13.636C14 13.4934 14 13.3067 14 12.9333V10.4C14 10.0266 14 9.83995 13.9273 9.69734C13.8634 9.5719 13.7614 9.46991 13.636 9.406C13.4934 9.33333 13.3067 9.33333 12.9333 9.33333Z" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 7<path d="M5.6 9.33333H3.06667C2.6933 9.33333 2.50661 9.33333 2.36401 9.406C2.23856 9.46991 2.13658 9.5719 2.07266 9.69734C2 9.83995 2 10.0266 2 10.4V12.9333C2 13.3067 2 13.4934 2.07266 13.636C2.13658 13.7614 2.23856 13.8634 2.36401 13.9273C2.50661 14 2.6933 14 3.06667 14H5.6C5.97337 14 6.16005 14 6.30266 13.9273C6.4281 13.8634 6.53009 13.7614 6.594 13.636C6.66667 13.4934 6.66667 13.3067 6.66667 12.9333V10.4C6.66667 10.0266 6.66667 9.83995 6.594 9.69734C6.53009 9.5719 6.4281 9.46991 6.30266 9.406C6.16005 9.33333 5.97337 9.33333 5.6 9.33333Z" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 8</svg> 9`,options:this.categories().map(F=>({value:F.id,label:F.categoryName})),showArrow:!0,formControl:"categories"},{text:"Price Tier",type:"dropdown",icon:`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> 10<path d="M4 11.1673C4 12.6401 5.19391 13.834 6.66667 13.834H9.33333C10.8061 13.834 12 12.6401 12 11.1673C12 9.69456 10.8061 8.50065 9.33333 8.50065H6.66667C5.19391 8.50065 4 7.30674 4 5.83398C4 4.36122 5.19391 3.16732 6.66667 3.16732H9.33333C10.8061 3.16732 12 4.36122 12 5.83398M8 1.83398V15.1673" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 11</svg> 12`,options:Xe,showArrow:!0,formControl:"priceTier"},{text:"Shipping",type:"dropdown",icon:`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> 13<g clip-path="url(#clip0_1497_7724)"> 14<path d="M10.6673 11.1667V4.63333C10.6673 3.8866 10.6673 3.51323 10.522 3.22801C10.3942 2.97713 10.1902 2.77316 9.9393 2.64532C9.65409 2.5 9.28072 2.5 8.53398 2.5H3.46732C2.72058 2.5 2.34721 2.5 2.062 2.64532C1.81111 2.77316 1.60714 2.97713 1.47931 3.22801C1.33398 3.51323 1.33398 3.8866 1.33398 4.63333V9.03333C1.33398 9.78007 1.33398 10.1534 1.47931 10.4387C1.60714 10.6895 1.81111 10.8935 2.062 11.0213C2.34721 11.1667 2.72058 11.1667 3.46732 11.1667H10.6673ZM10.
146673 11.1667H13.6007C13.974 11.1667 14.1607 11.1667 14.3033 11.094C14.4288 11.0301 14.5307 10.9281 14.5947 10.8027C14.6673 10.6601 14.6673 10.4734 14.6673 10.1V8.27516C14.6673 8.1121 14.6673 8.03057 14.6489 7.95385C14.6326 7.88582 14.6056 7.82079 14.5691 7.76114C14.5278 7.69387 14.4702 7.63621 14.3549 7.52091L12.9797 6.14575C12.8644 6.03045 12.8068 5.9728 12.7395 5.93157C12.6799 5.89502 12.6148 5.86808 12.5468 5.85175C12.4701 5.83333 12.3885 5.83333 12.2255 5.83333H10.6673M6.00065 12.8333C6.00065 13.7538 5.25446 14.5 4.33398 14.5C3.41351 14.5 2.66732 13.7538 2.66732 12.8333C2.66732 11.9129 3.41351 11.1667 4.33398 11.1667C5.25446 11.1667 6.00065 11.9129 6.00065 12.8333ZM13.334 12.8333C13.334 13.7538 12.5878 14.5 11.6673 14.5C10.7468 14.5 10.0007 13.7538 10.0007 12.8333C10.0007 11.9129 10.7468 11.1667 11.6673 11.1667C12.5878 11.1667 13.334 11.9129 13.334 12.8333Z" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 15</g> 16<defs> 17<clipPath id="clip0_1497_7724"> 18<rect width="16" height="16" fill="white" transform="translate(0 0.5)"/> 19</clipPath> 20</defs> 21</svg> 22`,options:Ye,showArrow:!0,formControl:"shipping"},{text:"Features",type:"dropdown",icon:`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> 23<path d="M2 8.5H14M2 4.5H14M2 12.5H10" stroke="#444444" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 24</svg> 25`,options:et,showArrow:!0,formControl:"features"},{text:"Popular Picks",type:"dropdown",icon:`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> 26<path d="M7.52242 2.80302C7.67608 2.49173 7.7529 2.33609 7.8572 2.28636C7.94795 2.24309 8.05338 2.24309 8.14412 2.28636C8.24842 2.33609 8.32525 2.49173 8.47891 2.80302L9.93669 5.75634C9.98205 5.84824 10.0047 5.89419 10.0379 5.92986C10.0672 5.96145 10.1024 5.98705 10.1415 6.00523C10.1857 6.02576 10.2364 6.03317 10.3378 6.048L13.5986 6.52462C13.942 6.57481 14.1137 6.5999 14.1932 6.68377C14.2623 6.75674 14.2948 6.85701 14.2817 6.95666C14.2665 7.0712 14.1422 7.19227 13.8936 7.4344L11.5349 9.73176C11.4614 9.80338 11.4247 9.83918 11.4009 9.88179C11.3799 9.91951 11.3665 9.96096 11.3613 10.0038C11.3554 10.0522 11.3641 10.1028 11.3814 10.204L11.938 13.4489C11.9967 13.7911 12.026 13.9623 11.9708 14.0638C11.9229 14.1522 11.8376 14.2141 11.7387 14.2325C11.6251 14.2535 11.4714 14.1727 11.1641 14.0111L8.2489 12.478C8.15807 12.4303 8.11266 12.4064 8.06481 12.397C8.02245 12.3887 7.97888 12.3887 7.93651 12.397C7.88867 12.4064 7.84325 12.4303 7.75242 12.478L4.83727 14.0111C4.52993 14.1727 4.37626 14.2535 4.26263 14.2325C4.16377 14.2141 4.07847 14.1522 4.03048 14.0638C3.97532 13.9623 4.00467 13.7911 4.06337 13.4489L4.61991 10.204C4.63726 10.1028 4.64593 10.0522 4.64006 10.0038C4.63487 9.96096 4.62139 9.91951 4.60039 9.88179C4.57667 9.83918 4.5399 9.80337 4.46637 9.73176L2.10769 7.4344C1.85909 7.19227 1.73479 7.0712 1.71967 6.95666C1.70651 6.85701 1.73902 6.75674 1.80815 6.68377C1.88761 6.5999 2.0593 6.57481 2.40268 6.52462L5.66353 6.048C5.76493 6.03317 5.81564 6.02576 5.8598 6.00523C5.89889 5.98705 5.93409 5.96145 5.96344 5.92986C5.99659 5.89419 6.01927 5.84824 6.06463 5.75634L7.52242 2.80302Z" stroke="#444444" stroke-width="1.33333" stroke-linecap="round" stroke-linejoin="round"/> 27</svg> 28`,options:tt,showArrow:!0,formControl:"popularPicks"},{text:"Minoan Showroom",type:"dropdown",icon:`<svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"> 29<path d="M13.6572 2.5H10.9961L11.3294 5.83333C11.3294 5.83333 11.9961 6.5 12.9961 6.5C13.7141 6.5 14.203 6.1563 14.4216 5.96247C14.5088 5.88521 14.5406 5.76727 14.5215 5.65241L14.0518 2.83424C14.0197 2.64137 13.8528 2.5 13.6572 2.5Z" stroke="#444444" stroke-width="1.2"/> 30<path d="M10.9961 2.5L11.3294 5.83333C11.3294 5.83333 10.6628 6.5 9.66276 6.5C8.66276 6.5 7.99609 5.83333 7.99609 5.83333V2.5H10.9961Z" stroke="#444444" stroke-width="1.2"/> 31<path d="M7.99544 2.5V5.83333C7.99544 5.83333 7.32878 6.5 6.32878 6.5C5.32878 6.5 4.66211 5.83333 4.66211 5.83333L4.99544 2.5H7.99544Z" stroke="#444444" stroke-width="1.2"/> 32<path d="M4.99501 2.5H2.33386C2.13832 2.5 1.97145 2.64137 1.9393 2.83424L1.46961 5.65241C1.45046 5.76728 1.48235 5.88521 1.56948 5.96247C1.7881 6.1563 2.27698 6.5 2.995 6.5C3.995 6.5 4.66168 5.83333 4.66168 5.83333L4.99501 2.5Z" stroke="#444444" stroke-width="1.2"/> 33<path d="M2 6.5V13.1667C2 13.903 2.59695 14.5 3.33333 14.5H12.6667C13.403 14.5 14 13.903 14 13.1667V6.5" stroke="#444444" stroke-width="1.2"/> 34<path d="M9.88867 14.4993V10.4993C9.88867 9.76297 9.29172 9.16602 8.55534 9.16602H7.22201C6.48563 9.16602 5.88867 9.76297 5.88867 10.4993V14.4993" stroke="#444444" stroke-width="1.2" stroke-miterlimit="16"/> 35</svg> 36`,options:it,showArrow:!0,formControl:"minoanShowroom"}];return this.screenService.IS_CANADA()&&(S.pop(),S[3].options.pop()),this.screenService.showMobileDevice()&&S.splice(1,0,{text:"",type:"sort",icon:"",options:[],showArrow:!1}
36),S}),this.brandPageFiltersMap=q(()=>!this.brandPageFilters()||this.brandPageFilters().length===0?{}:this.brandPageFilters().reduce((S,F,pt)=>(F.formControl&&(S[F.formControl]=L(f({},F),{index:pt})),S),{})),this.sort=w("featured"),this.brandFiltersForm=new xe({categories:new D([]),priceTier:new D([]),shipping:new D([]),features:new D([]),popularPicks:new D([]),minoanShowroom:new D([])}),this.allFilterSidebarOptions=w([]),this.sortedChips=w([]),this.allFilterSidebar=w(!1),this.sortData=[{sortLabel:"<strong>Featured</strong>",sortSublabel:"Featured",sortValue:"featured",sortId:"sort-featured"},{sortLabel:"<strong>New Brands:</strong> Recently Added",sortSubLabel:"New Brands",sortValue:"new-brand",sortId:"sort-new-brand"},{sortLabel:"<strong>Discount:</strong> High to Low",sortSubLabel:"Discount High to Low",sortValue:"max-discount",sortId:"sort-max-discount"},{sortLabel:"<strong>Commission:</strong> High to Low",sortSubLabel:"Commission High to Low",sortValue:"max-commission",sortId:"sort-max-commission"},{sortLabel:"<strong>Alphabetical:</strong> A-Z",sortSubLabel:"Alphabetical A-Z",sortValue:"A-Z",sortId:"sort-A-Z"},{sortLabel:"<strong>Alphabetical:</strong> Z-A",sortSubLabel:"Alphabetical Z-A",sortValue:"Z-A",sortId:"sort-Z-A"}],this.sortDataMap=this.sortData.reduce((S,F)=>(S[F.sortValue]=F,S),{}),this.searchForMobile=w(!1),this.searchBox=me("searchBox"),this.showClearAll=w(!1),this.showResults=q(()=>!1)}ngOnInit(){this.amplitudeService.screenImpressionEvent("brands",this.auth.user.getValue());let t=this.activatedRoute.snapshot.queryParams;if(t&&t.hasOwnProperty("product_name")){let n={id:-1,productName:t.product_name,variant:t.product_variant,url:t.product_url,productImageUrl:t.product_img,dollarLine:t.dollar_line,isPriceDisplay:!0};this.editItemService.openEditProductModal(!1,"link",!1,n).pipe(W(this.editItemService.dialogRef?.onClose)).subscribe({complete:()=>{this.handleSpecialModalClose()}}),this.cdr.detectChanges()}let e=this.activatedRoute.snapshot.params;if(e&&e.slug){let n=parseInt(e.slug,10);if(isNaN(n))this.onBrandDetailsModalHide();else{let s={id:n};this.openBrandDetailsModal(s)}}this.brandFiltersForm.valueChanges.subscribe({next:n=>{n&&this.allFilterSidebarOptions.set(Object.keys(n).reduce((s,d)=>{if(!n[d])return s;let x=n[d],Z=this.brandPageFiltersMap()[d]?.options.reduce((k,K)=>(k[K.value]=K,k),{});return x.forEach(k=>{s.push({value:k,type:d,label:Z[k]?Z[k].label:k})}),s},[]))}}),this.updatedShopList.set([]),this.activatedRoute.queryParams.subscribe({next:n=>{let s={sortBy:n.sortBy?n.sortBy:"featured",search:n.search?n.search:void 0,categories:I(n.categories,"number"),priceTier:I(n.priceTier),shipping:I(n.shipping),features:I(n.features),popularPicks:I(n.popularPicks),minoanShowroom:I(n.minoanShowroom),filterParams:n.filterParams?n.filterParams:void 0,fromSearchPage:n.fromSearchPage?n.fromSearchPage:void 0};this.queryParams.set(s),this.searchKeyword.set(n.search?n.search:""),this.sort.set(s.sortBy),this.brandFiltersForm.patchValue(f({},s)),this.createSortedChips();let d=Object.keys(this.brandFiltersForm.controls).some(x=>this.brandFiltersForm.get(x)?.value?.length>0);if(this.showClearAll.set(d),n.brandId){let x={id:n.brandId};this.openBrandDetailsModal(x)}this.isRunning||(this.isRunning=!0,this.randomService.updateLoader(!0),this.skip=0,this.getBrandList())}});let i=document.querySelector(".search-product-by-category");i&&(this.observer=new IntersectionObserver(([n])=>{let s=document.querySelector(".back-top-wrapper");s&&s.classList.toggle("scrolled",!n.isIntersecting)},{threshold:0}),this.observer.observe(i))}loadMoreBrandsOnScroll(){!this.isRunning&&!this.isArrayListEmpty&&this.updatedShopList().length<this.totalBrands()&&(this.skip=this.skip+this.limit,this.getBrandList())}get customFilterParams(){let t=this.queryParams();if(t.filterParams&&t.fromSearchPage===t.search)return this.randomService.decodeBase64(t.filterParams)}getBrandList(){let t=!!(this.queryParams().search||this.queryParams().categories.length),e={propertyId:0,companyId:0,skip:this.skip,limit:this.limit,discountPropertyId:0,sort:t?void 0:this.queryParams().sortBy?this.queryParams().sortBy==="featured"?"":this.queryParams().sortBy:void 0,search:t?this.queryParams().search:void 0,categoryId:t&&this.queryParams().categories.length?this.queryParams().categories:void 0,order:t?this.sortKey[this.queryParams().sortBy]?this.sortKey[this.queryParams().sortBy]:[]:void 0,customParams:this.customFilterParams,shipping:this.queryParams().shipping.map(i=>R(i)),priceTier:this.queryParams().priceTier,features:this.queryParams().features.map(i=>R(i)),popularPicks:this.queryParams().popularPicks.map(i=>R(i)),minoanShowroom:this.queryParams().minoanShowroom.map(i=>R(i))};this.shopAndBrowseService.getListOfBrands(e,t).subscribe({next:i=>{this.setBrandList(i,t),this.randomService.updateLoader(!1)},error:()=>{this.randomService.updateLoader(!1)}})}setBrandList(t,e){this.initialLoading.set(!1),this.totalBrands.set(e?t.totalCount:t.count);let i=t.brandList;if(this.searchApplied&&this.queryParams().search){let n="brands_search_action",s={searched_value:this.queryParams().search,search_query_results:this.totalBrands(),user_id:this.userInfo.account.id,account_id:this.userInfo.account.activeCompanyId};this.amplitudeService.trackEvent(n,s),this.searchApplied=!1}
36if(this.skip===0)this.updatedShopList.set(i);else{let n=new Set(this.updatedShopList().map(d=>d.id)),s=i.filter(d=>!n.has(d.id));this.updatedShopList.update(d=>[...d,...s]),this.isArrayListEmpty=i.length<this.limit}this.cdr.markForCheck(),this.randomService.updateLoader(!1),this.isRunning=!1}searchByKeyword(){this.isSearchFocused.set(!1),this.searchKeyword()&&(this.isArrayListEmpty=!1,this.applyFilterToUrl("search",this.searchKeyword()))}onEnterKeyInSearch(t,e){t.keyCode===13&&(this.searchByKeyword(),e.blur())}onSearchInputChange(t){t==""&&(this.queryParams.set(L(f({},this.queryParams()),{search:void 0})),this.removeFilter(t))}brandDetailsModalRoute(t){let e=f({},this.activatedRoute.snapshot.queryParams);e.brandId=t.id,this.router.navigate(["/brands"],{queryParams:e}).then()}openBrandDetailsModal(t){this.brandModalService.openBrandDetailsModal(t,this.queryParams(),"brands",!1).pipe(W(this.brandModalService.dialogRef?.onClose)).subscribe({next:e=>{e.type==="shopNowClicked"&&this.brandSearchClickEvent(e.data,"shop_now")},complete:()=>{this.onBrandDetailsModalHide()}})}onBrandDetailsModalHide(){let t=f({},this.activatedRoute.snapshot.queryParams);t.brandId=void 0,this.router.navigate(["/brands"],{queryParams:t}).then()}scrollToTop(){document.querySelector(".search-product-by-category")?.scrollIntoView()}applyFilterToUrl(t,e){if(this.isArrayListEmpty=!1,t==="search")this.queryParams.update(i=>L(f({},i),{search:e})),this.searchApplied=!0;else if(t==="sort"){let n=L(f({},(d=>{switch(d){case"A-Z":return{sort_type:"alphabetic",sort_order:"ascending"};case"Z-A":return{sort_type:"alphabetic",sort_order:"descending"};case"max-discount":return{sort_type:"discount",sort_order:"descending"};case"min-discount":return{sort_type:"discount",sort_order:"ascending"};case"new-brand":return{sort_type:"new brands",sort_order:"descending"};case"old-brand":return{sort_type:"new brands",sort_order:"ascending"};case"max-commission":return{sort_type:"commission",sort_order:"descending"};case"featured":return{sort_type:"featured",sort_order:"ascending"};default:return{sort_type:"featured",sort_order:"ascending"}}})(e)),{category_name:this.queryParams().categories?this.shopAndBrowseService.getCategoryName(this.queryParams().categories,this.categories()):null,user_id:this.userInfo.account.id,account_id:this.userInfo.account.activeCompanyId});this.amplitudeService.trackEvent("brands_selected_sort_click",n),this.queryParams.update(d=>L(f({},d),{sortBy:e}))}else this.queryParams.update(i=>f(L(f({},i),{search:this.searchKeyword()??void 0}),this.brandFiltersForm.value)),t&&this.amplitudeService.brandsFilterAction(t,this.brandFiltersForm.get(t)?.value,this.brandPageFiltersMap()[t].options,this.userInfo);this.router.navigate(["/brands"],{queryParams:L(f({},this.queryParams()),{sortBy:this.queryParams().sortBy&&this.queryParams().sortBy==="featured"?void 0:this.queryParams().sortBy})}).then(()=>{})}ngOnDestroy(){this.observer?.disconnect()}onChangeCategory(t){this.isArrayListEmpty=!1;let e={user_id:this.userInfo.account.id,account_id:this.userInfo.account.activeCompanyId,category_name:this.shopAndBrowseService.getCategoryName(t,this.categories())};this.amplitudeService.trackEvent("brands_category_icon_click",e),this.applyFilterToUrl("category",t)}removeFilter(t){if(this.isArrayListEmpty=!1,typeof t=="string"&&t==="search"){this.searchKeyword.set(""),this.isSearchFocused.set(!1),this.applyFilterToUrl("search",""),this.searchForMobile.set(!1);return}else if(typeof t=="string"&&t==="all")Object.keys(this.brandFiltersForm.controls).forEach(e=>{this.brandFiltersForm.get(e)?.setValue([])}),this.searchKeyword.set(""),this.isSearchFocused.set(!1),this.searchForMobile.set(!1);else{let e=t,i=this.brandFiltersForm.get(e.type)?.value?.filter(n=>n!==e.value);i&&this.brandFiltersForm.patchValue({[e.type]:i}),this.amplitudeService.brandFilterPillRemove(e.label,this.userInfo)}this.applyFilterToUrl("")}get userInfo(){return this.auth.user.getValue()}brandSearchClickEvent(t,e){if(this.queryParams().search){let i="brand_search_result_click",n={searched_value:this.queryParams().search,search_query_results:this.totalBrands(),brand_selected:t.name,user_id:this.userInfo.account.id,account_id:this.userInfo.account.activeCompanyId,click_type:e};this.amplitudeService.trackEvent(i,n)}}handleSpecialModalClose(){let t=f({},this.activatedRoute.snapshot.queryParams),e=["product_name","product_variant","product_url","product_img"];for(let i of e)delete t[i];this.router.navigate(["/brands"],{queryParams:t}).then()}openAllFiltersSidebar(){this.allFilterSidebar.set(!0)}onSidebarCancel(){this.brandFiltersForm.updateValueAndValidity({emitEvent:!0}),this.allFilterSidebar.set(!1)}applySidebarFilters(){let t=this.allFilterSidebarOptions().reduce((e,i)=>(e[i.type]&&e[i.type].push(i.value),e),{categories:[],priceTier:[],shipping:[],features:[],popularPicks:[],minoanShowroom:[]});this.brandFiltersForm.patchValue(t),this.applyFilterToUrl(""),this.allFilterSidebar.set(!1)}createSortedChips(){let t=Ve([...this.allFilterSidebarOptions()],e=>this.brandPageFiltersMap()[e.type].index);this.sortedChips.set(t)}openSearchForMobile(){this.searchForMobile.set(!0),requestAnimationFrame(()=>{this.searchBox()?.nativeElement.focus()})}handleSearchFocusOut(t){t.relatedTarget?.closest(".fg-inner")||(this.isSearchFocused.set(!1),this.searchKeyword().trim()===""&&!this.queryParams().search?this.searchForMobile.set(!1):this.searchKeyword().trim()===""&&this.queryParams().search?this.searchKeyword.set(this.queryParams().search??""):this.searchKeyword().trim()!==this.queryParams().search&&(this.searchKeyword.set(this.queryParams().search??""),this.queryParams().search||this.searchForMobile.set(!1)))}filterDropdownCloseHandler(t,e){if(!t){let i=this.brandFiltersForm.get(e),n=this.queryParams()[e];i&&n&&i.setValue(n)}}clearFiltersInSidebar(){this.allFilterSidebarOptions.set([])}onSortDropdownClose(t){t||this.sort.set(this.queryParams().sortBy)}static{this.\u0275fac=function(e){return new(e||r)(v(we),v(ve),v(ze),v($e),v(fe),v(Ge),v(Ue),v(he),v(je),v(Re),v(We),v(rt))}}static{this.\u0275cmp=ie({type:r,selectors:[["app-shop-home"]],viewQuery:function(e,i){e&1&&ae(i.searchBox,dt,5),e&2&&se()},decls:79,vars:33,consts:[["searchBox",""],["intersection","intersection"],["chipUi",""],["filterDropdown",""],["content",""],["sortSectionMobile",""],["dropdownIcon",""],["mobileHeading",""],["checkbox",""],["caretIcon",""],[1,"search-product-by-category"],[1,"mw_1440"],[1,"heading_wrapper","mob_head_wrapper"],[1,"brands_heading_wrap"],[1,"heading11"],[1,"b_text"],[1,"brands_subheading"],[1,"mob_filter_wrapper"],[1,"btn","mob_search_wrap",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","23","height","23","viewBox","0 0 23 23","fill","none"],["d","M22.0833 22.0833L16.683 16.683M16.683 16.683C18.372 14.994 19.4167 12.6607 19.4167 10.0833C19.4167 4.92868 15.238 0.75 10.0833 0.75C4.92868 0.75 0.75 4.92868 0.75 10.0833C0.75 15.238 4.92868 19.4167 10.0833 19.4167C12.6607 19.4167 14.994 18.372 16.683 16.683Z","stroke","#495057","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"filters_section"],[1,"filter_container","for_shop_home"],[1,"search_container",3,"ngClass"],[1,"fg-inner"],["type","text","id","input","name","input","placeholder","Search brands","autocomplete","off",1,"form-control","custom-input-1",3,"focusin","focusout","ngModelChange","keydown","ngModel"],["type","button",1,"cross_btn"],[1,"search_btn",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg",1,"dsktp_
36search"],["d","M17 17L12.9497 12.9497M12.9497 12.9497C14.2165 11.683 15 9.933 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15C9.933 15 11.683 14.2165 12.9497 12.9497Z","stroke","#444444","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["width","22","height","22","viewBox","0 0 22 22","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mob_search"],["d","M20.3327 20.3327L15.6074 15.6074M15.6074 15.6074C17.0853 14.1295 17.9994 12.0878 17.9994 9.83268C17.9994 5.32236 14.343 1.66602 9.83268 1.66602C5.32236 1.66602 1.66602 5.32236 1.66602 9.83268C1.66602 14.343 5.32236 17.9994 9.83268 17.9994C12.0878 17.9994 14.1295 17.0853 15.6074 15.6074Z","stroke","#DC5A4B","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"filter_selection_list"],[1,"chip_list"],["href","javascript:void(0)",1,"remove_chip",3,"id"],[1,"clear_all_button"],[1,"available-brands-product"],["id","brandList",1,"mw_1440"],[1,"filter-sorts-product"],[1,"filter_top_bar"],[1,"brands-heading",3,"ngClass"],[1,"search_result_wrap",3,"ngClass"],[1,"brand_sorting",3,"ngClass"],["ngbDropdown","",1,"sort_dropdown"],["type","button","ngbDropdownToggle","",1,"btn","dropdown_btn","dropdown-toggle","pr-0",3,"ngClass","disabled"],[1,"el-text"],[1,"sort_by"],[1,"sort_type"],[1,"icon"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3 4.5L6 7.5L9 4.5","stroke","#96999F","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["ngbDropdownMenu","",1,"dropdown-menu"],[1,"dropdown_items"],[1,"no_result_found"],[1,"row"],["
36id","loader-div","appIntersectionObserver","",3,"intersected","yMargin"],[1,"back-top-wrapper"],["type","button",1,"btn","btn_primary","w-icon",3,"click"],[1,"el-icon"],["src","assets/images/icon-download.svg","alt","edit-icon"],["styleClass","filters_sidebar","position","left",3,"visibleChange","onHide","visible","dismissible","closeOnEscape","blockScroll","autoZIndex","baseZIndex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"],["type","button",1,"cross_btn",3,"click"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg",1,"dsktp_cross"],["d","M11 1L1 11M1 1L11 11","stroke","#C7C7C7","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mob_cross"],["d","M12.8333 1.16666L1.16663 12.8333M1.16663 1.16666L12.8333 12.8333","stroke","#DC5A4B","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0)",1,"remove_chip",3,"click","id"],[1,"remove_chip_label"],["width","16","height","16","viewBox","0 0 16 16","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.3327 5.16602L4.66602 11.8327M4.66602 5.16602L11.3327 11.8327","stroke","#DC5A4B","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["type","button",1,"btn","clear-filter-btn",3,"click"],[1,"clear-cross-icon"],["href","javascript:void(0)",1,"result_btn","search_text",3,"click"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M11.25 6.75L6.75 11.25M6.75 6.75L11.25 11.25M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z","stroke","#DC5A4B","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["href","javascript:void(0);","ngbDropdownItem","",3,"click","id","ngClass","innerHTML"],[1,"no_result_found_inner"],[1,"shop_browse_noresult_img"],["ngSrc","/assets/images/shop/shop_browse_noresult_found.svg","height","122","width","124","alt","",1,"no_result_img"],[1,"no_result_title"],[1,"no_result_desc"],[1,"clear_search_btn_wrap"],["href","javascript:void(0);",1,"link-primary-btn",3,"click"],["width","17","height","18","viewBox","0 0 17 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.48528 6.87868L10.7279 11.1213M6.48528 11.1213L10.7279 6.87868M13.9099 3.6967C16.8388 6.62563 16.8388 11.3744 13.9099 14.3033C10.981 17.2322 6.23223 17.2322 3.3033 14.3033C0.374369 11.3744 0.374369 6.62563 3.3033 3.6967C6.23223 0.767767 10.981 0.767767 13.9099 3.6967Z","stroke","#DC5A4B","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"col-sm-6","col-md-6","col-lg-4","col-xl-4",3,"id"],["openLocation","brands",3,"openBrandDetailsModalEvent","brandSearchClickEvent","brand","index","queryParams"],[1,"col-sm-6","col-md-6","col-lg-4","col-xl-4"],[1,"product_card"],[3,"height"],["height","24px",1,"mt-3"],["height","16px","width","70%",1,"mt-2"],[1,"chip_ui"],[1,"dropdown_btn",3,"click"],[3,"innerHTML"],[1,"chip_ui","filterDropdown",3,"formGroup"],["optionLabel","label","optionValue","value",3,"applyFilterEvent","dropdownOpenCloseEventHandler","dropdownOptions","formControlName","dropdownTitle","filter","multiple"],[1,"dropdown_icon_apply",3,"innerHTML"],[1,"mobile_category_heading"],[1,"filters_sidebar_wrapper"],[1,"header"],[1,"heading_sec"],[1,"clear_all"],[1,"close_button"],[1,"btn",3,"click"],["width","18","height","19","viewBox","0 0 18 19","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M15.9195 2.58205C15.5445 2.20702 14.937 2.20702 14.5619 2.58205L9.00039 8.1436L3.43884 2.58205C3.06381 2.20766 2.45692 2.20829 2.08189 2.58268C1.7075 2.9577 1.70686 3.5646 2.08126 3.93962L7.64282 9.50117L2.08126 15.0627C1.70688 15.4378 1.7075 16.0446 2.08189 16.4197C2.45692 16.7941 3.06381 16.7947 3.43884 16.4203L9.00039 10.8587L14.5619 16.4203C14.937 16.7947 15.5439 16.7941 15.9189 16.4197C16.2933 16.0446 16.2939 15.4378 15.9195 15.0627L10.358 9.50117L15.9195 3.93962C16.0995 3.75961 16.2008 3.51523 16.2008 3.26084C16.2008 3.00644 16.0995 2.76206 15.9195 2.58205L15.9195 2.58205Z","fill","#444444"],[1,"content_body"],[1,"filter_body_wrap"],[1,"filter"],[1,"bottom_section"],[1,"button_wrapper"],[1,"link-primary-btn",3,"click"],[1,"btn","primary_btn",3,"click"],[1,"clear_all",3,"click"],[1,"filter_title"],[1,"filter_options_wrapper"],[1,"chip_ui",3,"active"],[3,"ngModelChange","value","ngModel","inputId"],[1,"p-checkbox-label",3,"for"],[1,"chip_ui","filterDropdown"],["optionLabel","sortLabel","dropdownTitle","","optionValue","sortValue",1,"mob_sorting",3,"ngModelChange","applyFilterEvent","dropdownOpenCloseEventHandler","disabled","ngModel","dropdownOptions","filter","multiple","allowDeselect"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["d","M11.3333 2.6665V13.3332M11.3333 13.3332L8.66667 10.6665M11.3333 13.3332L14 10.6665M4.66667 13.3332V2.6665M4.66667 2.6665L2 5.33317M4.66667 2.6665L7.33333 5.33317","stroke","#989EA4","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(e,i){if(e&1){let n=g();o(0,"section",10)(1,"div",11)(2,"div",12)(3,"div",13)(4,"h5",14),c(5," Explore our "),o(6,"span",15),c(7,"brand"),a(),c(8," partners "),a(),o(9,"p",16),c(10,"Shop the best brands. Check out with Minoan."),a()(),o(11,"div",17)(12,"button",18),_("click",function(){return i.openSearchForMobile()}),b(),o(13,"svg",19),C(14,"path",20),a()()()(),A(),o(15,"div",21)(16,"div",22),P(17,xt,3,1,null,null,gt),a(),o(19,"div",23)(20,"div",24)(21,"input",25,0),_("focusin",function(){return i.isSearchFocused.set(!0)})("focusout",function(d){return i.handleSearchFocusOut(d)})("ngModelChange",function(d){return h(n),i.searchKeyword.set(d),u(i.onSearchInputChange(d))})("keydown",function(d){h(n);let x=N(22);return u(i.onEnterKeyInSearch(d,x))}),a(),M(23,kt,5,0,"button",26),o(24,"button",27),_("click",function(){return i.searchByKeyword()}),b(),o(25,"svg",28),C(26,"path",29),a(),o(27,"svg",30),C(28,"path",31),a()()()()(),A(),o(29,"div",32)(30,"div",33),P(31,Ft,6,2,"a",34,at),a(),M(33,Mt,7,0,"div",35),a()()(),o(34,"section",36)(35,"div",37)(36,"div",38)(37,"div",39)(38,"div",40)(39,"p",41),M(40,Tt,8,7)(41,Ht,2,6),a()(),o(42,"div",42)(43,"div",43)(44,"button",44)(45,"p",45)(46,"span",46),c(47,"Sort by:"),a(),o(48,"span",47),c(49),a()(),o(50,"span",48),b(),o(51,"svg",49),C(52,"path",50),a()()(),A(),o(53,"div",51)(54,"ul",52),P(55,Lt,4,9,"li",null,ft),a()()()()()(),M(57,Pt,16,1,"div",53),o(58,"div")(59,"div",54),P(60,It,4,0,null,null,wt),o(62,"div",55,1),_("intersected",function(){return i.loadM
36oreBrandsOnScroll()}),a()()()(),o(64,"div",56)(65,"button",57),_("click",function(){return i.scrollToTop()}),o(66,"span",58),C(67,"img",59),a(),o(68,"p",45),c(69," To top "),a()()()(),O(70,At,5,5,"ng-template",null,2,y)(72,qt,6,6,"ng-template",null,3,y),o(74,"p-drawer",60),Y("visibleChange",function(d){return h(n),X(i.allFilterSidebar,d)||(i.allFilterSidebar=d),u(d)}),_("onHide",function(){return i.onSidebarCancel()}),O(75,Gt,22,5,"ng-template",null,4,y),a(),O(77,Qt,8,6,"ng-template",null,5,y)}e&2&&(p(17),V(i.brandPageFilters()),p(2),m("ngClass",H(23,mt,i.searchForMobile()||i.queryParams().search)),p(2),Q("space",!!i.searchKeyword())("focused",i.showSearch()),m("ngModel",i.searchKeyword()),p(2),T(i.searchKeyword()!==""?23:-1),p(8),V(i.sortedChips()),p(2),T(i.showClearAll()?33:-1),p(5),m("ngClass",H(25,ht,i.screenService.showMobileDevice()&&i.showClearAll())),p(),m("ngClass",H(27,nt,!i.totalBrands())),p(),T(i.showResults()?40:41),p(2),m("ngClass",H(29,ut,i.screenService.showMobileDevice()&&i.showClearAll())),p(2),m("ngClass",H(31,nt,!i.totalBrands()))("disabled",!i.totalBrands()),p(5),E(" ",i.sortDataMap[i.queryParams().sortBy].sortSubLabel??"Featured"," "),p(6),V(i.sortData),p(2),T(!i.totalBrands()&&!i.initialLoading()?57:-1),p(3),V(i.updatedShopList()),p(2),m("yMargin",600),p(12),J("visible",i.allFilterSidebar),m("dismissible",!0)("closeOnEscape",!0)("blockScroll",!0)("autoZIndex",!0)("baseZIndex",991))},dependencies:[_e,ue,Be,Ee,Le,Ie,De,Oe,Je,He,be,Se,ye,Me,Fe,Ke,Ze,Te,ke,Pe,ge,Ae,qe,Ne,Ce],encapsulation:2,changeDetection:0})}};te([Qe(500)],ee.prototype,"onSearchInputChange",null);export{ee as ShopHomeComponent}; 37//# sourceMappingURL=chunk-MNC22DHM.js.map
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.