1import{a as tn,b as en,c as nn,d as rn}from"./chunk-ZEO245X4.js";import{a as an,b as on}from"./chunk-S2UXK6J4.js";import{a as Xe,b as Ze,c as At}from"./chunk-7CUKYNEL.js";import{b as Je}from"./chunk-IG6NEMRF.js";import"./chunk-ZIMAZX6B.js";import{a as Qe}from"./chunk-MEPF2MQQ.js";import{a as Ye}from"./chunk-I5ZPH5CA.js";import{a as Ke}from"./chunk-LRRVL4LK.js";import"./chunk-RM4FSPPH.js";import"./chunk-WKKMLFWY.js";import{a as We}from"./chunk-2KWWFMVB.js";import{a as He}from"./chunk-WG74YMGF.js";import"./chunk-IISPHNXK.js";import"./chunk-G56NLZPR.js";import{a as Lt}from"./chunk-DXUP3HAX.js";import"./chunk-K4O2U6JG.js";import{a as ke}from"./chunk-KXKVQCEY.js";import"./chunk-FM2IGEI7.js";import"./chunk-24VJINGO.js";import{a as je,c as qe}from"./chunk-TBMRUA6Z.js";import"./chunk-M53AAVDC.js";import{a as kt,b as Fe,d as Ue,e as $e}from"./chunk-RR7GCDE7.js";import"./chunk-IEZ7JOWW.js";import{a as Ut,b as $t,c as ze}from"./chunk-Y4USWBOI.js";import{a as ye}from"./chunk-6TXPR7Z5.js";import{c as Pe}from"./chunk-H3VL5ZLV.js";import"./chunk-VHAVQNQZ.js";import"./chunk-POU3UHYU.js";import"./chunk-AJZEJ372.js";import"./chunk-UJD7X752.js";import{a as Be}from"./chunk-QE4SGSMS.js";import"./chunk-722K2R47.js";import{a as Ge}from"./chunk-6CGZU3LR.js";import{b as Ne}from"./chunk-P6RAARJR.js";import"./chunk-YA4LCL44.js";import{c as de,g as _e}from"./chunk-LRSNC77N.js";import"./chunk-B2D3ZNIN.js";import{B as be,C as Ce,b as ue,f as ge,g as pe,i as me,k as he,l as fe,m as ve,u as xe}from"./chunk-ZMB7BYOX.js";import{a as Le,b as Ae}from"./chunk-PG356IOX.js";import"./chunk-DJLXGYOT.js";import"./chunk-QZKGI55F.js";import"./chunk-67IT4HQ6.js";import"./chunk-FMUJOZ5C.js";import"./chunk-NEZAQWLG.js";import"./chunk-A7HQZSIJ.js";import"./chunk-LPDEKHC4.js";import"./chunk-5CZSBVZS.js";import"./chunk-2QHSH4C5.js";import"./chunk-GAM63QEV.js";import{a as De}from"./chunk-FHOHGYTL.js";import"./chunk-2AE3E265.js";import{a as Tt}from"./chunk-FNMQQLVT.js";import{d as Re,e as It}from"./chunk-CG7IIIZ2.js";import{b as xt}from"./chunk-OJI7DA27.js";import{b as Pt,d as Me,e as yt,j as Ve,l as Ie,m as Et,n as Te,o as Ot,p as Mt,q as Vt}from"./chunk-MA3UJZI3.js";import{e as wt}from"./chunk-4ZBSEH5M.js";import{a as Se,b as Ee,f as we,j as bt,k as Ct,l as Oe}from"./chunk-BLUPBYQY.js";import{a as St}from"./chunk-QP2R5HQV.js";import"./chunk-WO4YLV4Q.js";import{n as se}from"./chunk-N5KHQ3PY.js";import{F as ce}from"./chunk-RAU6IMNR.js";import{A as ft,B as vt,g as ae,j as pt,k as mt,l as ht,p as oe,v as le}from"./chunk-KMKRC7H4.js";import{$c as R,Bc as Bt,Cc as Dt,Dc as Ft,Fa as Kt,Fb as v,H as Wt,Hc as Z,Ic as H,Jc as $,Ld as re,Mc as b,Na as Qt,Nc as z,Oc as L,Pc as Zt,Qa as Jt,Tc as st,Uc as ct,Vc as dt,Wc as K,_c as te,a as qt,ab as Nt,ad as tt,bd as _t,cb as N,cd as Q,dd as ee,ed as ne,fc as c,gc as _,ha as W,hb as l,hc as p,hd as D,ic as M,id as U,jd as ie,mb as ot,mc as V,md as et,nc as I,oa as P,pa as y,pc as k,sb as Xt,sd as ut,ta as Yt,tb as A,vc as O,xc as s,y as Ht,zb as lt,zd as gt}from"./chunk-WLVJBNFV.js";import{a as at,b as Gt}from"./chunk-HGJ4MBLN.js";function nt(r,g){let t=r.parseUrl(g),e=t.root.children.primary?.segments??[],i={};for(let[f,x]of Object.entries(t.queryParams))i[f]=String(x);let n=e[0]?.path??"en",o=e[1]?.path;if(!o)return{kind:"generic",lang:n,query:i};let a=e.slice(2).map(f=>decodeURIComponent(f.path));if(o==="products")return a[0]==="deals"?{kind:"deals",lang:n,name:a[1],query:i}:a[0]==="tag"?{kind:"tag",lang:n,tagName:a[1]??"",query:i}:a[0]==="list"?{kind:"list",lang:n,listIdSlug:a[1]??"",categorySlug:a[2],query:i}:{kind:"generic",lang:n,query:i};let u=a.indexOf("brand");if(u!==-1){let x=(a[u+1]??"").split("--").filter(Boolean),S=u>0?a[u-1]:void 0;return{kind:"brand",lang:n,brandSlugs:x,categorySlug:S,query:i}}let d=a[0],h=a[1],m=a[2],C=m?m.split("--").filter(Boolean):[];return{kind:"category",lang:n,categorySlug:d,groupSlug:h,subCategorySlugs:C,query:i}}var Cn=(r,g,t)=>({itemsPerPage:r,currentPage:g,totalItems:t}),Pn=(r,g,t,e,i)=>({"large-content":r,"small-content":g,"fx-flex-sm-50":t,"fx-flex-sm-100":e,"partial-card-mobile":i}),J=r=>[r],yn=(r,g)=>({"left-0":r,"right-0":g}),zt=(r,g,t,e)=>({"wishlist-active":r,"right-5":g,"left-5":t,"top-icon":e});function Sn(r,g){if(r&1){let t=k();_(0,"app-updated-product-card",9),O("addToCart",function(i){P(t);let n=s(4);return y(n.addToCart(i))}),p()}if(r&2){let t=s(2).$implicit;c("viewLocation","search")("product",t)}}function En(r,g){if(r&1&&(V(0),v(1,Sn,1,2,"app-updated-product-card",8),I()),r&2){let t=s().$implicit;l(),c("ngIf",t)}}function wn(r,g){if(r&1&&(_(0,"div",37),M(1,"img",38),p()),r&2){let t=s(3).$implicit,e=s(2);c("ngClass",tt(2,yn,e.lang()=="ar",e.lang()=="en")),l(),c("src",t==null?null:t.brand.image,N)}}function On(r,g){if(r&1){let t=k();_(0,"a",32),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),v(1,wn,2,5,"div",33),M(2,"img",34)(3,"img",35)(4,"img",36),p()}if(r&2){let t=s(2).$implicit,e=s(2);c("routerLink",R(14,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null?null:t.slug:(t==null?null:t.slug_ar)||(t==null?null:t.slug)))),l(),c("ngIf",(t==null?null:t.brand)&&(e.environmentVariables==null?null:e.environmentVariables.SHOW_BRAND_ON_PRODUCT)),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":""),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":""),l(),c("src",(t==null||t.images[0]==null?null:t.images[0].url)||(t==null?null:t.image),N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":"")}}function Mn(r,g){if(r&1){let t=k();_(0,"a",39),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),M(1,"img",34)(2,"img",40)(3,"img",36),p()}if(r&2){let t=s(2).$implicit,e=s(2);c("routerLink",R(13,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null||t.product_variants[0]==null?null:t.product_variants[0].slug:(t==null||t.product_variants[0]==null?null:t.product_variants[0].slug_ar)||(t==null||t.product_variants[0]==null?null:t.product_variants[0].slug)))),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":""),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":""),l(),c("src",(t==null||t.images[0]==null?null:t.images[0].url)||(t==null?null:t.image),N)("alt",t==null?null:t.name)("title",t==null?null:t.name)("ngClass",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="medium"?"bigImg":"")}}function Vn(r,g){if(r&1&&(V(0),b(1),I()),r&2){let t=s(4).$implicit,e=s(2);l(),L(", ",e.lang()==="en"?t==null||t.optional_category==null?null:t.optional_category.name:t==null||t.optional_category==null?null:t.optional_category.name_ar)}}function In(r,g){if(r&1&&(_(0,"span",43),b(1),v(2,Vn,2,1,"ng-container",6),p()),r&2){let t=s(3).$implicit,e=s(2);l(),L(" ",e.lang()==="en"?t==null||t.category==null?null:t.category.name:t==null||t.category==null?null:t.category.name_ar," "),l(),c("ngIf",t==null?null:t.optional_category)}}function Tn(r,g){if(r&1&&(V(0),_(1,"div",41),v(2,In,3,2,"span",42),p(),I()),r&2){let t=s(2).$implicit,e=s(2);l(),c("ngClass",e.environmentVariables!=null&&e.environmentVariables.SHOW_CATEGORY_ON_PRODUCT_CARD&&(t!=null&&t.brand)&&(e.environmentVariables!=null&&e.environmentVariables.SHOW_BRAND_ON_PRODUCT)?"row-min-width":""),l(),c("ngIf",e.environmentVariables==null?null:e.environmentVariables.SHOW_CATEGORY_ON_PRODUCT_CARD)}}function kn(r,g){if(r&1){let t=k();_(0,"a",44),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),b(1),p()}if(r&2){let t=s(2).$implicit,e=s(2);c("routerLink",R(2,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null?null:t.slug:(t==null?null:t.slug_ar)||(t==null?null:t.slug)))),l(),L("",e.lang()=="ar"?t==null?null:t.name_ar:t==null?null:t.name_en," ")}}function Ln(r,g){if(r&1){let t=k();_(0,"a",44),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),b(1),p()}if(r&2){let t=s(2).$implicit,e=s(2);c("routerLink",R(2,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null||t.product_variants[0]==null?null:t.product_variants[0].slug:(t==null||t.product_variants[0]==null?null:t.product_variants[0].slug_ar)||(t==null||t.product_variants[0]==null?null:t.product_variants[0].slug)))),l(),L("",t==null?null:t.name," ")}}function An(r,g){if(r&1&&(V(0),b(1),I()),r&2){let t=s(2).$implicit,e=s(2);l(),L(", ",e.lang()==="en"?t==null||t.optional_category==null?null:t.optional_category.name:t==null||t.optional_category==null?null:t.optional_category.name_ar)}}function Rn(r,g){if(r&1&&(_(0,"div",45),M(1,"embryo-Rating",46),_(2,"div",47)(3,"span",48),b(4),p(),_(5,"span"),b(6),p()()()),r&2){let t=s(2).$implicit,e=s(2);c("ngClass",e.lang()=="ar"?"direction-ar":""),l(),c("rate",t==null?null:t.rate)("max",5)("readOnly",!0),l(3),z(e.getRate(t)),l(2),z("("+(t==null?null:t.rate_count)+")")}}function Gn(r,g){if(r&1&&(_(0,"span",59),b(1),p()),r&2){let t=s().$implicit;l(),z(t==null?null:t.name)}}function Nn(r,g){r&1&&M(0,"span")}function Bn(r,g){if(r&1&&M(0,"img",60),r&2){let t=s().$implicit,e=s(5).$implicit,i=s(2);c("src",t.image,N)("alt",i.lang()=="en"?(t==null?null:t.alt)||((e==null?null:e.name)||"")+(t!=null&&t.name?" - "+t.name:""):(t==null?null:t.alt_ar)||((e==null?null:e.name_ar)||(e==null?null:e.name)||"")+(t!=null&&t.name?" - "+t.name:""))("title",i.lang()=="en"?(t==null?null:t.alt)||(t==null?null:t.name)||(e==null?null:e.name):(t==null?null:t.alt_ar)||(t==null?null:t.name)||(e==null?null:e.name_ar)||(e==null?null:e.name))}}function Dn(r,g){if(r&1){let t=k();_(0,"div",56),O("mouseenter",function(){let i=P(t).$implicit,n=s(5).$implicit,o=s(2);return y((n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="3"||(n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="4"?o.setChossenData(n,i.id):"")})("mouseleave",function(){P(t);let i=s(5).$implicit,n=s(2);return y(n.originalImage(i))}),v(1,Gn,2,1,"span",57)(2,Nn,1,0,"span",6)(3,Bn,1,3,"img",58),p()}if(r&2){let t=g.$implicit,e=s(5).$implicit;H("background-color",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?t==null?null:t.color_code:"transparent")("border",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?"1px solid #000":""),$("text-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1")("c
1olor-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2")("image-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"||(t==null?null:t.image))}}function Fn(r,g){if(r&1&&(_(0,"a",61),b(1),p()),r&2){let t=s(5).$implicit,e=s(2);l(),L(" +",(t==null?null:t.product_variants_options[0].values.length)-e.variantsLimit," ")}}function Un(r,g){if(r&1&&(_(0,"div",53),v(1,Dn,4,13,"div",54)(2,Fn,2,1,"a",55),p()),r&2){let t=s(4).$implicit,e=s(2);l(),c("ngForOf",t==null?null:t.product_variants_options[0].values.slice(0,e.variantsLimit)),l(),c("ngIf",(t==null?null:t.product_variants_options[0].values.length)>e.variantsLimit)}}function $n(r,g){if(r&1&&(_(0,"div",53)(1,"div",62),M(2,"img",63),p()()),r&2){let t=s(4).$implicit;l(2),c("src",t==null?null:t.image,N)}}function zn(r,g){if(r&1&&(V(0),v(1,Un,3,2,"div",52)(2,$n,3,1,"ng-template",null,0,et),I()),r&2){let t=Z(3),e=s(3).$implicit;l(),c("ngIf",(e==null?null:e.product_variants_options)&&(e==null?null:e.product_variants_options.length)>0)("ngIfElse",t)}}function jn(r,g){if(r&1&&(_(0,"div",49)(1,"div",50),M(2,"app-product-price",51),p(),v(3,zn,4,2,"ng-container",6),p()),r&2){let t=s(2).$implicit,e=s(2);c("ngClass",t!=null&&t.brand&&(e.environmentVariables!=null&&e.environmentVariables.SHOW_BRAND_ON_PRODUCT)?"row-min-width":""),l(2),c("price",t==null?null:t.price)("discountPrice",t==null?null:t.discount_price)("inStock",t==null?null:t.in_stock)("paymentDiscountNameEn",t==null?null:t.payment_methods_discount_name_en)("paymentDiscountNameAr",t==null?null:t.payment_methods_discount_name_ar)("variantMaxPrice",t==null?null:t.variant_max_price)("showVat",!0),l(),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)=="main"&&(e.environmentVariables==null?null:e.environmentVariables.SHOW_PRODUCT_VARIANTS_OPTIONS))}}function qn(r,g){if(r&1&&(_(0,"li",64),b(1),p()),r&2){let t=g.$implicit;l(),L(" ",t.values[0]==null?null:t.values[0].name," ")}}function Hn(r,g){if(r&1){let t=k();_(0,"a",44),O("click",function(){P(t);let i=s(3).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),b(1),p()}if(r&2){let t=s(3).$implicit,e=s(2);c("routerLink",R(2,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null?null:t.slug:(t==null?null:t.slug_ar)||(t==null?null:t.slug)))),l(),L("",e.lang()=="ar"?t==null?null:t.name_ar:t==null?null:t.name_en," ")}}function Wn(r,g){if(r&1){let t=k();_(0,"a",44),O("click",function(){P(t);let i=s(3).$implicit,n=s(2);return y(n.googleAnalaticSelectItem(i))}),b(1),p()}if(r&2){let t=s(3).$implicit,e=s(2);c("routerLink",R(2,J,"/"+e.lang()+"/"+(e.lang()=="en"?t==null?null:t.slug:(t==null?null:t.slug_ar)||(t==null?null:t.slug)))),l(),L("",e.lang()=="ar"?t==null?null:t.name_ar:t==null?null:t.name_en," ")}}function Yn(r,g){if(r&1&&(_(0,"div")(1,"p",65),v(2,Hn,2,4,"a",18)(3,Wn,2,4,"a",18),p()()),r&2){let t=s(4);l(2),c("ngIf",(t.environmentVariables==null?null:t.environmentVariables.PRODUCT_TYPE)!="main"),l(),c("ngIf",(t.environmentVariables==null?null:t.environmentVariables.PRODUCT_TYPE)=="main")}}function Kn(r,g){if(r&1&&(_(0,"span",59),b(1),p()),r&2){let t=s().$implicit;l(),z(t==null?null:t.name)}}function Qn(r,g){r&1&&M(0,"span")}function Jn(r,g){if(r&1&&M(0,"img",60),r&2){let t=s().$implicit,e=s(5).$implicit,i=s(2);c("src",t.image,N)("alt",i.lang()=="en"?(t==null?null:t.alt)||((e==null?null:e.name)||"")+(t!=null&&t.name?" - "+t.name:""):(t==null?null:t.alt_ar)||((e==null?null:e.name_ar)||(e==null?null:e.name)||"")+(t!=null&&t.name?" - "+t.name:""))("title",i.lang()=="en"?(t==null?null:t.alt)||(t==null?null:t.name)||(e==null?null:e.name):(t==null?null:t.alt_ar)||(t==null?null:t.name)||(e==null?null:e.name_ar)||(e==null?null:e.name))}}function Xn(r,g){if(r&1){let t=k();_(0,"div",68),O("mouseenter",function(){let i=P(t).$implicit,n=s(5).$implicit,o=s(2);return y((n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="3"||(n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="4"?o.setChossenData(n,i.id):"")}),v(1,Kn,2,1,"span",69)(2,Qn,1,0,"span",6)(3,Jn,1,3,"img",58),p()}if(r&2){let t=g.$implicit,e=s(5).$implicit;H("background-color",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?t==null?null:t.color_code:"transparent")("border",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?"1px solid #000":""),$("text-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1")("c
1olor-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2")("image-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"||(t==null?null:t.image))}}function Zn(r,g){if(r&1&&(_(0,"a",61),b(1),p()),r&2){let t=s(5).$implicit,e=s(2);l(),L(" +",(t==null?null:t.product_variants_options[0].values.length)-e.variantsLimit," ")}}function ti(r,g){if(r&1&&(_(0,"div",53),v(1,Xn,4,13,"div",67)(2,Zn,2,1,"a",55),p()),r&2){let t=s(4).$implicit,e=s(2);l(),c("ngForOf",t==null?null:t.product_variants_options[0].values.slice(0,e.variantsLimit)),l(),c("ngIf",(t==null?null:t.product_variants_options[0].values.length)>e.variantsLimit)}}function ei(r,g){if(r&1&&(_(0,"div",53)(1,"div",62),M(2,"img",63),p()()),r&2){let t=s(4).$implicit;l(2),c("src",t==null?null:t.image,N)}}function ni(r,g){if(r&1&&(V(0),v(1,ti,3,2,"div",52)(2,ei,3,1,"ng-template",null,0,et),I()),r&2){let t=Z(3),e=s(3).$implicit;l(),c("ngIf",(e==null?null:e.product_variants_options)&&(e==null?null:e.product_variants_options.length)>0)("ngIfElse",t)}}function ii(r,g){if(r&1&&(V(0),_(1,"div",66),M(2,"app-product-price",51),p(),v(3,ni,4,2,"ng-container",6),I()),r&2){let t=s(2).$implicit,e=s(2);l(2),c("price",t==null?null:t.price)("discountPrice",t==null?null:t.discount_price)("inStock",t==null?null:t.in_stock)("paymentDiscountNameEn",t==null?null:t.payment_methods_discount_name_en)("paymentDiscountNameAr",t==null?null:t.payment_methods_discount_name_ar)("variantMaxPrice",t==null?null:t.variant_max_price)("showVat",!0),l(),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)=="main"&&(e.environmentVariables==null?null:e.environmentVariables.SHOW_PRODUCT_VARIANTS_OPTIONS))}}function ri(r,g){if(r&1&&(V(0),M(1,"app-product-price",51),I()),r&2){let t=s(3).$implicit;l(),c("price",t==null?null:t.price)("discountPrice",t==null?null:t.discount_price)("inStock",t==null?null:t.in_stock)("paymentDiscountNameEn",t==null?null:t.payment_methods_discount_name_en)("paymentDiscountNameAr",t==null?null:t.payment_methods_discount_name_ar)("variantMaxPrice",t==null?null:t.variant_max_price)("showVat",!0)}}function ai(r,g){if(r&1&&(_(0,"span",73),b(1),p()),r&2){let t=s(5);l(),z(t.noPricecontent)}}function oi(r,g){if(r&1&&(_(0,"span",59),b(1),p()),r&2){let t=s().$implicit;l(),z(t==null?null:t.name)}}function li(r,g){r&1&&M(0,"span")}function si(r,g){if(r&1&&M(0,"img",76),r&2){let t=s().$implicit;c("src",t.image,N)}}function ci(r,g){if(r&1){let t=k();_(0,"div",68),O("mouseenter",function(){let i=P(t).$implicit,n=s(5).$implicit,o=s(2);return y((n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="3"||(n==null||n.product_variants_options[0]==null||n.product_variants_options[0].option==null?null:n.product_variants_options[0].option.type)=="4"?o.setChossenData(n,i.id):"")}),v(1,oi,2,1,"span",74)(2,li,1,0,"span",6)(3,si,1,1,"img",75),p()}if(r&2){let t=g.$implicit,e=s(5).$implicit;H("background-color",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?t==null?null:t.color_code:"transparent")("border",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"?"1px solid #000":""),$("text-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1")("c
1olor-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2")("image-box",(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0]==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="1"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="2"),l(),c("ngIf",(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="3"||(e==null||e.product_variants_options[0].option==null?null:e.product_variants_options[0].option.type)=="4"||(t==null?null:t.image))}}function di(r,g){if(r&1&&(_(0,"a",61),b(1),p()),r&2){let t=s(5).$implicit,e=s(2);l(),L(" +",(t==null?null:t.product_variants_options[0].values.length)-e.variantsLimit," ")}}function _i(r,g){if(r&1&&(_(0,"div",53),v(1,ci,4,13,"div",67)(2,di,2,1,"a",55),p()),r&2){let t=s(4).$implicit,e=s(2);l(),c("ngForOf",t==null?null:t.product_variants_options[0].values.slice(0,e.variantsLimit)),l(),c("ngIf",(t==null?null:t.product_variants_options[0].values.length)>e.variantsLimit)}}function ui(r,g){if(r&1&&(_(0,"div",53)(1,"div",62),M(2,"img",63),p()()),r&2){let t=s(4).$implicit;l(2),c("src",t==null?null:t.image,N)}}function gi(r,g){if(r&1&&(V(0),v(1,_i,3,2,"div",52)(2,ui,3,1,"ng-template",null,0,et),I()),r&2){let t=Z(3),e=s(3).$implicit;l(),c("ngIf",(e==null?null:e.product_variants_options)&&(e==null?null:e.product_variants_options.length)>0)("ngIfElse",t)}}function pi(r,g){if(r&1&&(V(0),_(1,"div",70)(2,"div",71),v(3,ri,2,7,"ng-container",72)(4,ai,2,1,"ng-template",null,1,et)(6,gi,4,2,"ng-container",6),p()(),I()),r&2){let t=Z(5),e=s(2).$implicit,i=s(2);l(3),c("ngIf",(e==null?null:e.price)!==null&&((e==null?null:e.in_stock)||(i.environmentVariables==null?null:i.environmentVariables.SHOW_OUT_STOCK_PRODUCT_PRICE)))("ngIfElse",t),l(3),c("ngIf",(i.environmentVariables==null?null:i.environmentVariables.PRODUCT_TYPE)=="main"&&(i.environmentVariables==null?null:i.environmentVariables.SHOW_PRODUCT_VARIANTS_OPTIONS))}}function mi(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function hi(r,g){if(r&1&&(_(0,"mat-icon",89),b(1," compare "),p()),r&2){let t=s(4).$implicit;$("compare-active",(t==null?null:t.is_compare)||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_compare))}}function fi(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function vi(r,g){if(r&1){let t=k();_(0,"button",87),O("click",function(){P(t);let i=s(3).$implicit,n=s(2);return y(n.addToCompareList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i))}),v(1,hi,2,2,"mat-icon",88)(2,fi,2,0,"div",82),p()}if(r&2){let t=s(3).$implicit;H("cursor",t!=null&&t.compareLoading?"not-allowed":"pointer"),c("disabled",t==null?null:t.compareLoading),l(),c("ngIf",!(t!=null&&t.compareLoading)),l(),c("ngIf",t==null?null:t.compareLoading)}}function xi(r,g){if(r&1&&M(0,"app-control-add-to-cart",90),r&2){let t=s(3).$implicit,e=s(2);c("product",t)("styleCard",!0)("isGridView",e.isGridView)("redirectToProduct",e.redirectToProduct)}}function bi(r,g){if(r&1){let t=k();_(0,"mat-card-footer",77)(1,"div",78)(2,"div",79)(3,"button",80),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.addToFavouriteList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i,n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE))}),_(4,"mat-icon",81),b(5," favorite "),p(),v(6,mi,2,0,"div",82),p(),v(7,vi,3,5,"button",83),p(),_(8,"div",84),v(9,xi,1,4,"app-control-add-to-cart",85),p()()()}if(r&2){let t=s(2).$implicit,e=s(2);l(2),$("card-actions-grid",!(t!=null&&t.in_stock)),l(2),$("left-fav",e.lang()=="ar"),c("ngClass",Q(8,zt,(t==null?null:t.is_favourite)==!0||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_favourite),e.lang()=="en",e.lang()=="ar",(e.environmentVariables==null?null:e.environmentVariables.FAVORITE_ICON_POSITION)=="top")),l(2),c("ngIf",t==null?null:t.favouriteLoading),l(
1),c("ngIf",!(e.environmentVariables!=null&&e.environmentVariables.DISABLE_COMPARE)),l(2),c("ngIf",t)}}function Ci(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function Pi(r,g){if(r&1&&(_(0,"mat-icon",96),b(1," compare "),p()),r&2){let t=s(4).$implicit;$("compare-active",(t==null?null:t.is_compare)||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_compare))}}function yi(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function Si(r,g){if(r&1){let t=k();_(0,"button",87),O("click",function(){P(t);let i=s(3).$implicit,n=s(2);return y(n.addToCompareList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i))}),v(1,Pi,2,2,"mat-icon",95)(2,yi,2,0,"div",82),p()}if(r&2){let t=s(3).$implicit;H("cursor",t!=null&&t.compareLoading?"not-allowed":"pointer"),c("disabled",t==null?null:t.compareLoading),l(),c("ngIf",!(t!=null&&t.compareLoading)),l(),c("ngIf",t==null?null:t.compareLoading)}}function Ei(r,g){if(r&1&&M(0,"app-control-add-to-cart",97),r&2){let t=s(3).$implicit,e=s(2);c("product",t)("isGridView",e.isGridView)("customPadding","0 8px")("styleCard",!0)("redirectToProduct",e.redirectToProduct)}}function wi(r,g){if(r&1){let t=k();_(0,"mat-card-footer",91)(1,"div",92)(2,"div",79)(3,"button",80),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.addToFavouriteList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i,n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE))}),_(4,"mat-icon",81),b(5," favorite "),p(),v(6,Ci,2,0,"div",82),p(),v(7,Si,3,5,"button",83),p(),_(8,"div",93),v(9,Ei,1,5,"app-control-add-to-cart",94),p()()()}if(r&2){let t=s(2).$implicit,e=s(2);l(4),$("left-fav",e.lang()=="ar"),c("ngClass",Q(7,zt,(t==null?null:t.is_favourite)==!0||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_favourite),e.lang()=="en",e.lang()=="ar",(e.environmentVariables==null?null:e.environmentVariables.FAVORITE_ICON_POSITION)=="top")),l(2),c("ngIf",t==null?null:t.favouriteLoading),l(),c("ngIf",(t==null?null:t.in_stock)&&!(e.environmentVariables!=null&&e.environmentVariables.DISABLE_COMPARE)),l(),c("ngClass",e.isGridView=="true"?"text-center":""),l(),c("ngIf",t)}}function Oi(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function Mi(r,g){if(r&1&&(_(0,"mat-icon",89),b(1," compare "),p()),r&2){let t=s(4).$implicit;$("compare-active",(t==null?null:t.is_compare)||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_compare))}}function Vi(r,g){r&1&&(_(0,"div",86),M(1,"app-loading"),p())}function Ii(r,g){if(r&1){let t=k();_(0,"button",103),O("click",function(){P(t);let i=s(3).$implicit,n=s(2);return y(n.addToCompareList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i))}),v(1,Mi,2,2,"mat-icon",88)(2,Vi,2,0,"div",82),p()}if(r&2){let t=s(3).$implicit;H("cursor",t!=null&&t.compareLoading?"not-allowed":"pointer"),c("disabled",t==null?null:t.compareLoading),l(),c("ngIf",!(t!=null&&t.compareLoading)),l(),c("ngIf",t==null?null:t.compareLoading)}}function Ti(r,g){if(r&1&&M(0,"app-control-add-to-cart",90),r&2){let t=s(3).$implicit,e=s(2);c("product",t)("styleCard",!0)("isGridView",e.isGridView)("redirectToProduct",e.redirectToProduct)}}function ki(r,g){if(r&1){let t=k();_(0,"div",98)(1,"div",99)(2,"button",100),O("click",function(){P(t);let i=s(2).$implicit,n=s(2);return y(n.addToFavouriteList((n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE)=="main"?i==null?null:i.product_variants[0]:i,n.environmentVariables==null?null:n.environmentVariables.PRODUCT_TYPE))}),_(3,"mat-icon",101),b(4," favorite "),p(),v(5,Oi,2,0,"div",82),p(),v(6,Ii,3,5,"button",102),p(),_(7,"div",84),v(8,Ti,1,4,"app-control-add-to-cart",85),p()()}if(r&2){let t=s(2).$implicit,e=s(2);l(3),$("left-fav",e.lang()=="ar"),c("ngClass",Q(6,zt,(t==null?null:t.is_favourite)==!0||(t==null||t.product_variants[0]==null?null:t.product_variants[0].is_favourite),e.lang()=="en",e.lang()=="ar",(e.environmentVariables==null?null:e.environmentVariables.FAVORITE_ICON_POSITION)=="top")),l(2),c("ngIf",t==null?null:t.favouriteLoading),l(
1),c("ngIf",!(e.environmentVariables!=null&&e.environmentVariables.DISABLE_COMPARE)),l(2),c("ngIf",t)}}function Li(r,g){if(r&1&&(_(0,"mat-card",10)(1,"div",11)(2,"div",12),M(3,"app-product-labels",13),p(),v(4,On,5,16,"a",14)(5,Mn,4,15,"a",15),_(6,"mat-card-content",16)(7,"div")(8,"div",17),v(9,Tn,3,2,"ng-container",6),V(10),v(11,kn,2,4,"a",18)(12,Ln,2,4,"a",18),_(13,"span",19)(14,"span",20),b(15),v(16,An,2,1,"ng-container",6),p(),_(17,"span",21)(18,"mat-icon",22),b(19),p()(),_(20,"span",23),b(21),p()(),v(22,Rn,7,6,"div",24),I(),v(23,jn,4,9,"div",25),p(),_(24,"ul",26),v(25,qn,2,1,"li",27),p()(),v(26,Yn,4,2,"div",6),_(27,"div",28),v(28,ii,4,8,"ng-container",6)(29,pi,7,3,"ng-container",6)(30,bi,10,13,"mat-card-footer",29)(31,wi,10,12,"mat-card-footer",30),p()()(),v(32,ki,9,11,"div",31),p()),r&2){let t=s().$implicit,e=s(2);l(2),$("chip-ar",e.lang()=="ar"),l(),c("product",t),l(),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)!="main"),l(),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)=="main"),l(4),c("ngIf",e.isGridView=="false"),l(2),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)!="main"),l(),c("ngIf",(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_TYPE)=="main"),l(3),L(" ",e.lang()==="en"?t==null||t.category==null?null:t.category.name:t==null||t.category==null?null:t.category.name_ar," "),l(),c("ngIf",t==null?null:t.optional_category),l(3),L(" ",e.lang()==="en"?"keyboard_arrow_right":"keyboard_arrow_left"," "),l(2),L(" ",e.lang()==="en"?t==null||t.category==null?null:t.category.sub_categories[0].name:t==null||t.category==null?null:t.category.sub_categories[0].name_ar," "),l(),c("ngIf",e.environmentVariables==null?null:e.environmentVariables.ENABLE_PRODUCT_RATE),l(),c("ngIf",e.isGridView=="true"),l(2),c("ngForOf",t==null?null:t.product_variants_options),l(),c("ngIf",!(t!=null&&t.id)),l(2),c("ngIf",e.isGridView=="true"),l(),c("ngIf",e.isGridView=="false"),l(),c("ngIf",e.isGridView=="true"),l(),c("ngIf",e.isGridView=="false"),l(),c("ngIf",e.isGridView=="true")}}function Ai(r,g){if(r&1&&(_(0,"div",5),v(1,En,2,1,"ng-container",6)(2,Li,33,21,"mat-card",7),p()),r&2){let t=g.index,e=s(2);c("ngClass",ee(3,Pn,(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="large"&&!(e.environmentVariables!=null&&e.environmentVariables.SKIP_FORCE_SIGNUP_LIST_ID_FOR_WEB)||(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="large"&&(e.environmentVariables==null?null:e.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"&&!e.user.is_guest,(e.environmentVariables==null?null:e.environmentVariables.PRODUCT_CARD_STYLE)=="large"&&(e.environmentVariables==null?null:e.environmentVariables.SKIP_FORCE_SIGNUP_LIST_ID_FOR_WEB)&&e.user.is_guest,(e.environmentVariables==null?null:e.environmentVariables.SEARCH_PRODUCTS_THEME_TYPE)=="multi-products",(e.environmentVariables==null?null:e.environmentVariables.SEARCH_PRODUCTS_THEME_TYPE)!="multi-products",t===2)),l(),c("ngIf",e.isGridView!="true"),l(),c("ngIf",e.isGridView=="true")}}function Ri(r,g){if(r&1&&(_(0,"div",3),v(1,Ai,3,9,"div",4),D(2,"paginate"),p()),r&2){let t=s();c("ngClass",t.isGridView=="true"?"gridView":"rowView overflow-x-hidden"),l(),c("ngForOf",ie(2,2,t.products,_t(5,Cn,t.pageSize,t.currentPage,t.totalPage)))}}var ln=(()=>{class r{translate;router;embryoService;snackBar;HomeService;reactivityService;checkoutService;userLoginServies;account;confgServ;marketingService;storage;cdr;products;totalPage;currentPage;pageSize;variantsLimit=2;count;page;total=0;currency="";gridLength;gridThree=!1;isGridView;addToWishList=new ot;loaded=!1;lg=25;xl=25;ChoosenOptionalImage;variant;showMainImage=!1;languageService=W(Vt);lang=this.languageService.currentLanguage;available_value_color=[];user;wishListProducts;currentFavProduct;productList;toggleLoading=!1;toggleCompareLoading=!1;toggleCartLoading=!1;environmentVariables;redirectToProduct=!1;noPricecontent=" ";constructor(t,e,i,n,o,a,u,d,h,m,C,f,x){this.translate=t,this.router=e,this.embryoService=i,this.snackBar=n,this.HomeService=o,this.reactivityService=a,this.checkoutService=u,this.userLoginServies=d,this.account=h,this.confgServ=m,this.marketingService=C,this.storage=f,this.cdr=x,this.getInitilizingData(),i.favouritesListSub.subscribe(S=>
1{this.wishListProducts=S,this.products&&S&&this.products.forEach(E=>{let B=S.findIndex(T=>T.id==E.id);E.is_favourite=B!==-1,E.favouriteLoading=!1}),this.cdr.markForCheck()}),i.compareListSub.subscribe(S=>{this.wishListProducts=S,this.products&&S&&this.products.forEach(E=>{let B=S.findIndex(T=>T.id==E.id);E.is_compare=B!==-1,E.compareLoading=!1}),this.cdr.markForCheck()})}getInitilizingData(){this.confgServ.getenvConfig().subscribe(t=>{this.environmentVariables=t,this.redirectToProduct=this.environmentVariables?.PRODUCT_TYPE=="main"})}ngOnInit(){this.embryoService.productCartSub.subscribe(e=>this.productList=e);let t=this.storage.getLocal("wishListItems",[])||[];this.products.length&&this.products.forEach(e=>{e.productImageBackup=e.image,e.routingName=encodeURIComponent(e.name.replace(/\s/g,"-")),e.compareLoading=!1,this.userLoginServies.isGuest()&&t.findIndex(n=>n.id==e.id)!==-1&&(e.is_favourite=!0),e.product_variants.length&&(e.image=e.product_variants[0].image,e.images=e.product_variants[0].images,e.price=e.product_variants[0].price,e.preorder_price=e.product_variants[0].preorder_price,e.discount_price=e.product_variants[0].discount_price),e.available_value_color=[],e.product_variants.forEac
1h(i=>{i.options.forEach(n=>{n.option.type=="4"&&n.values.find(o=>{e.available_value_color.push(o),e.available_value_color=e.available_value_color.filter((a,u,d)=>u===d.findIndex(h=>h.id===a.id))})})}),this.wishListProducts&&this.wishListProducts.length&&(this.wishListProducts.findIndex(n=>n.parent_id==e.id)!==-1?e.is_favorite=!0:e.is_favorite=!1)}),this.gridThree&&(this.lg=33,this.xl=33),this.user=this.userLoginServies.getUser()}ngOnChanges(){this.products.forEach(t=>{if(t.toggleCartLoading=!1,t.routingName=encodeURIComponent(t.name.replace(/\s/g,"-")),this.userLoginServies.isGuest()&&this.storage.getLocal("compareItems",null)){let e=JSON.parse(this.storage.getLocal("compareItems",null)).findIndex(i=>i.id==t.id);t.is_compare=e!==-1}}),this.products&&this.products.length&&this.products.forEach(t=>{t.product_variants.length&&(t.image=t.product_variants[0].image,t.images=t.product_variants[0].images,t.price=t.product_variants[0].price,t.preorder_price=t.product_variants[0].preorder_price,t.discount_price=t.product_variants[0].discount_price),t.available_value_color=[],t.product_variants.forEac
1h(e=>{e.options.forEach(i=>{i.option.type=="4"&&i.values.find(n=>{t.available_value_color.push(n),t.available_value_color=t.available_value_color.filter((o,a,u)=>a===u.findIndex(d=>d.id===o.id))})})}),this.wishListProducts&&this.wishListProducts.length&&this.wishListProducts.forEach(e=>{e.parent_id==t.id?t.is_favorite=!0:t.is_favorite=!1})})}switchMainImage(t,e){t.image=e?.image}originalImage(t){t.image=t.productImageBackup}googleAnalaticSelectItem(t){let i={event:"select_item",ecommerce:{items:{item_name:t.name,item_id:t.id,price:t.discount_price?t.discount_price:t.price,item_brand:t.details&&t.details.brand?t.details.brand.name:"",item_category:t.category?t.category.name:"-",item_category2:t.category&&t.category.sub_categories?t.category.sub_categories[0].name:"-",item_list_name:t.actegory?t.actegory.id:"",item_list_id:t.actegory?t.actegory.name:"",index:""},extras:this.account.googleAnalaticsUserData}}}onLoad(){this.loaded=!0}addToFavouriteList(t,e){t.favouriteLoading=!0,t.is_favourite?(this.reactivityService.setDataToStore("currentUnFavouriteProduct",t),this.marketingService.dataLayerProductListEvent("remove_from_wishlist",this.lang()==="en"?this.environmentVariables?.localization?.currency_code_en||this.environmentVariables?.CURRENCY_CODE_EN:this.environmentVariables?.localization?.currency_code_ar||this.environmentVariables?.CURRENCY_CODE_AR,[t])):(this.reactivityService.setDataToStore("currentFavProduct",t),this.marketingService.dataLayerProductListEvent("add_to_wishlist",this.lang()==="en"?this.environmentVariables?.localization?.currency_code_en||this.environmentVariables?.CURRENCY_CODE_EN:this.environmentVariables?.localization?.currency_code_ar||this.environmentVariables?.CURRENCY_CODE_AR,[t])),e=="main"&&(t.is_favourite=!t.is_favourite),this.cdr.markForCheck()}addToCompareList(t){t.compareLoading=!0,t.is_compare?this.reactivityService.setDataToStore("removeProductFromCompare",t):this.reactivityService.setDataToStore("addProductToCompare",t),this.environmentVariables?.PRODUCT_TYPE=="main"&&(t.is_compare=!t.is_compare),this.cdr.markForCheck()}setImage(t){this.ChoosenOptionalImage=t}setChossenData(t,e){let i=this.filterVariantByValue(e,t);this.switchMainImage(t,i)}onPageChanged(t){this.page=t}filterVariantByValue(t,e){for(let i=0;i<e?.product_variants?.length;i++)for(let n=0;n<e?.product_variants[i]?.options?.length;n++)for(let o=0;o<e?.product_variants[i]?.options[n]?.values?.length;o++)if(e?.product_variants[i]?.options[n]?.values[o]?.id===t)return e?.product_variants[i]}notifyProduct(t){this.user=this.storage.getLocal("auth_user_crocs",null),this.user?(t.toggleCartLoading=!0,this.embryoService.PostRequestById("products/notify",t.id,t.id).subscribe(e=>{t.toggleCartLoading=!1,e.code===200&&(this.lang()==="en"?this.snackBar.open("You will be notified when the item is available","\xD7",{panelClass:"success",verticalPosition:"top",duration:3e3}):this.snackBar.open("\u0633\u0648\u0641 \u064A\u062A\u0645 \u062A\u0628\u064A\u0647\u0643 \u0639\u0646\u062F\u0645\u0627 \u064A\u0643\u0648\u0646 \u0627\u0644\u0645\u0646\u062A\u062C \u0645\u062A\u0648\u0641\u0631","\xD7",{panelClass:"success",verticalPosition:"top",duration:3e3,direction:"rtl"}))})):(this.lang()==="en"?this.snackBar.open("Please, Login first! so that you can Notify product","\xD7",{panelClass:"error",verticalPosition:"top",duration:3e3}):this.snackBar.open("\u0627\u0644\u0631\u062C\u0627\u0621 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0623\u0648\u0644\u0627! \u0628\u062D\u064A\u062B \u064A\u0645\u0643\u0646\u0643 \u062A\u0641\u0639\u064A\u0644 \u0627\u0644\u062A\u0646\u0628\u064A\u0647 ","\xD7",{panelClass:"error",verticalPosition:"top",duration:3e3}),this.router.navigate(["/"+this.lang()+"/session/signin"]))}addToCart(t){this.embryoService.addToCartGuest(t)}getRate(t){let e=t?.rate,i=parseFloat(e);return Math.round(i*10)/10}static \u0275fac=function(e){return new(e||r)(A(Pt),A(bt),A(Mt),A(We),A(Tt),A(Re),A(Ve),A(It),A(Et),A(wt),A(Ot),A(St),A(gt))};static \u0275cmp=lt({type:r,selectors:[["embryo-ProductGrid"]],inputs:{products:"products",totalPage:"totalPage",currentPage:"currentPage",pageSize:"pageSize",variantsLimit:"variantsLimit",currency:"currency",gridLength:"gridLength",gridThree:"gridThree",isGridView:"isGridView"},outputs:{addToWishList:"addToWishList"},features:[Kt],decls:1,vars:1,consts:[["singleImageGallery",""],["noPrice",""],["class","col-gap fx-layout-row-wrap fx-layout-align-none",3,"ngClass",4,"ngIf"],[1,"col-gap","fx-layout-row-wrap","fx-layout-align-none",3,"ngClass"],["class","card-container fx-flex-lg-25 fx-flex-xl-25 fx-flex-md-50 fx-flex-xs-50",3,"ngClass",4,"ngFor","ngForOf"],[1,"card-container","fx-flex-lg-25","fx-flex-xl-25","fx-flex-md-50","fx-flex-xs-50",3,"ngClass"],[4,"ngIf"],["class","card-item c
1ard-item-border box-shadow-md",4,"ngIf"],[3,"viewLocation","product","addToCart",4,"ngIf"],[3,"addToCart","viewLocation","product"],[1,"card-item","card-item-border","box-shadow-md"],[1,"product-card"],[1,"chip-container","d-flex","flex-column"],[3,"product"],["class","p-link image-container grid-view","style","outline: none !important; position: relative",3,"routerLink","click",4,"ngIf"],["class","p-link image-container grid-view","style","outline: none !important",3,"routerLink","click",4,"ngIf"],[1,"product-content"],[1,"product-title","mb-0",2,"font-family","Roboto, sans-serif !important"],["class","title-link","style","outline: none",3,"routerLink","click",4,"ngIf"],[1,"product-category"],[1,"grid-view-display","truncate",2,"display","none","font-size","14px"],[1,"grid-view-display","material-icons-arrow",2,"display","none","height","30px"],[1,"material-icons"],[1,"grid-view-display",2,"display","none","font-size","14px"],["class","d-flex rate-container",3,"ngClass",4,"ngIf"],["class","d-flex mobile-view flex-column justify-start my-1 row-min-width",3,"ngClass",4,"ngIf"],[1,"product-tags",2,"display","none !important"],["class","product-tag",4,"ngFor","ngForOf"],[1,"card_info"],["style","margin-top: 0",4,"ngIf"],["style",` 2 margin-top: auto; 3 height: 65px !important; 4 padding-top: 16px; 5 `,4,"ngIf"],["class","d-flex mobile-view border-top p-2 align-items-center w-100 flex-row flex-warp justify-space-between",4,"ngIf"],[1,"p-link","image-container","grid-view",2,"outline","none !important","position","relative",3,"click","routerLink"],["class","img-brand",3,"ngClass",4,"ngIf"],["loading","lazy","loading","lazy","default","./assets/images/placeholder200.jpg","height","800","mat-card-image","","onError","this.src='./assets/images/placeholder200.jpg';","width","626",1,"card-img","image-default","card-img-desktop-view",3,"src","alt","title","ngClass"],["loading","lazy","loading","lazy","default","./assets/images/placeholder200.jpg","height","800","mat-card-image","","onError","this.src='./assets/images/placeholder200.jpg';","width","626",1,"card-img","image-default","card-img-mobile-view",3,"src","alt","title","ngClass"],["loading","lazy","loading","lazy","default","./assets/images/placeholder200.jpg","mat-card-image","","onError","this.src='./assets/images/placeholder200.jpg';",1,"image-hover","card-img",3,"src","alt","title","ngClass"],[1,"img-brand",3,"ngClass"],["loading","lazy","loading","lazy","alt","product brand image",3,"src"],[1,"p-link","image-container","grid-view",2,"outline","none !important",3,"click","routerLink"],["loading","lazy","loading","lazy","default","./assets/images/placeholder200.jpg","height","800","mat-card-image","","onError","this.src='./assets/images/placeholder200.jpg';","width","626",1,"card-img","image-default","mobile-view","card-img-mobile-view",3,"src","alt","title","ngClass"],[1,"titel-advanced-theme","row-min-width",3,"ngClass"],["class","category-item itemCategory",4,"ngIf"],[1,"category-item","itemCategory"],[1,"title-link",2,"outline","none",3,"click","routerLink"],[1,"d-flex","rate-container",3,"ngClass"],[3,"rate","max","readOnly"],[1,"mx-2","mt-1",2,"font-size","18px"],[1,""],[1,"d-flex","mobile-view","flex-column","justify-start","my-1","row-min-width",3,"ngClass"],[1,"price","w-100","my-0"],["size","sm",3,"price","discountPrice","inStock","paymentDiscountNameEn","paymentDiscountNameAr","variantMaxPrice","showVat"],["class","image-gallary-container",4,"ngIf","ngIfElse"],[1,"image-gallary-container"],["class","gallery-image",3,"text-box","color-box","image-box","background-color","border","mouseenter","mouseleave",4,"ngFor","ngForOf"],["class","gallery-image plus-variants",4,"ngIf"],[1,"gallery-image",3,"mouseenter","mouseleave"],["style",` 6 font-size: 12px; 7 line-height: 1; 8 `,4,"ngIf"],["loading","lazy","loading","lazy","onError","this.src='./assets/images/placeholder200.jpg';","default","./assets/images/placeholder200.jpg",3,"src","alt","title",4,"ngIf"],[2,"font-size","12px","line-height","1"],["loading","lazy","loading","lazy","onError","this.src='./assets/images/placeholder200.jpg';","default","./assets/images/placeholder200.jpg",3,"src","alt","title"],[1,"gallery-image","plus-variants"],[1,"gallery-image"],["loading","lazy","loading","lazy","onError","this.src='./assets/images/placeholder70.png';","alt","photo gallery item","title","photo gallery item",3,"src"],[1,"product-tag"],[1,"product-title","mb-0"],[1,"price-container","w-100","justify-center","web-view","mb
8-0"],["class","gallery-image",3,"text-box","color-box","image-box","background-color","border","mouseenter",4,"ngFor","ngForOf"],[1,"gallery-image",3,"mouseenter"],["style",` 9 font-size: 12px; 10 line-height: 1; 11 `,4,"ngIf"],[1,"price-container","mb-0","fx-flex","fx-layout-align-space-between"],[1,"price","w-100","fx-layout-align-space-between"],[4,"ngIf","ngIfElse"],[2,"height","120px"],["style",` 12 font-size: 12px; 13 line-height: 1; 14 `,4,"ngIf"],["loading","lazy","loading","lazy","alt","iamge","title","iamge","onError","this.src='./assets/images/placeholder200.jpg';","default","./assets/images/placeholder200.jpg",3,"src",4,"ngIf"],["loading","lazy","loading","lazy","alt","iamge","title","iamge","onError","this.src='./assets/images/placeholder200.jpg';","default","./assets/images/placeholder200.jpg",3,"src"],[2,"margin-top","0"],[1,"actions-wrapper","web-view","w-100","fx-layout-align-space-between-center"],[1,"card-actions"],[1,"favorite-icon-container","favorite-footer-btn","pointer","p-0",3,"click"],[1,"material-icons","favorite","pointer",3,"ngClass"],["class","loader-container",4,"ngIf"],["title","Compare","class","compare-icon-container p-0",3,"disabled","cursor","click",4,"ngIf"],[1,"text-center"],[3,"product","styleCard","isGridView","redirectToProduct",4,"ngIf"],[1,"loader-container"],["title","Compare",1,"compare-icon-container","p-0",3,"click","disabled"],["class","material-icons favorite",3,"compare-active",4,"ngIf"],[1,"material-icons","favorite"],[3,"product","styleCard","isGridView","redirectToProduct"],[2,"margin-top","auto","height","65px !important","padding-top","16px"],[1,"actions-wrapper","w-100","fx-layout-align-space-between-center"],[1,"",3,"ngClass"],[3,"product","isGridView","customPadding","styleCard","redirectToProduct",4,"ngIf"],["class","material-icons favorite p-0",3,"compare-active",4,"ngIf"],[1,"material-icons","favorite","p-0"],[3,"product","isGridView","customPadding","styleCard","redirectToProduct"],[1,"d-flex","mobile-view","border-top","p-2","align-items-center","w-100","flex-row","flex-warp","justify-space-between"],[1,"card-actions","d-flex","flex-row","mx-1"],[1,"favorite-icon-container",3,"click"],[1,"material-icons","favorite","pointer","favorite-icon-container",3,"ngClass"],["title","Compare","class","compare-icon-container",3,"disabled","cursor","click",4,"ngIf"],["title","Compare",1,"compare-icon-container",3,"click","disabled"]],template:function(e,i){e&1&&v(0,Ri,3,9,"div",2),e&2&&c("ngIf",i.products==null?null:i.products.length)},dependencies:[ht,pt,mt,Je,kt,Ct,$e,Fe,xt,ke,Ue,De,Qe,At,le,yt,Ye,Be,Xe],styles:['@charset "UTF-8";.saleOfferIconNewProduct[_ngcontent-%COMP%]{position:absolute;top:18px;left:0;padding:.3rem .5rem;border-radius:5px;background-color:var(--brand-color);color:#fff;z-index:9}.saleOfferIconNewProduct.out-of-stock-discount[_ngcontent-%COMP%]{left:auto!important;right:0}.rowView[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{min-width:170px;display:flex;flex-direction:column}.rowView[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%]{min-width:170px;overflow:initial!important;flex:1;display:flex;flex-direction:column}.text-center[_ngcontent-%COMP%]{text-align:center!important}.img_out_of_stock[_ngcontent-%COMP%]{width:65%;position:absolute;left:0;top:18px}.mat-card-image[_ngcontent-%COMP%]{object-fit:contain}.addToCartBtn[_ngcontent-%COMP%]{background-color:var(--brand-color);color:#fff}.addToCartBtn[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;color:#000}.addToCartBtn[disabled=true][_ngcontent-%COMP%]:hover{background-color:#0000001f;color:#00000042}.itemCategory[_ngcontent-%COMP%]{color:gray!important;position:relative;margin-top:7px;display:block;font-size:14px!important}#OptionalImage[_ngcontent-%COMP%]{width:45px;height:40px;padding:1px;cursor:pointer;border:.2px solid rgba(255,252,252,.014);object-fit:contain}.OptionalImage[_ngcontent-%COMP%]{width:45px;height:40px;padding:1px;cursor:pointer;border:.2px solid rgba(255,252,252,.014)}#OptionalImage[_ngcontent-%COMP%]:hover, .OptionalImage[_ngcontent-%COMP%]:hover{border:.5px solid var(--brand-color)}#optionalImageCounter[_ngcontent-%COMP%]{border:2px solid gray;padding:4px;font-size:16px;font-weight:500;color:gray;position:relative;bottom:-14px;left:2px;cursor:pointer}#optionalImageCounter[_ngcontent-%COMP%]:hover{color:var(--brand-color);border:2px solid var(--brand-color)}.flex-center[_ngcontent-%COMP%]{display:flex;justify-content:left}#OptionalText[_ngcontent-%COMP%]{font-size:22px;font-weight:500;color:#636060;padding:4px 2px 2px;margin-left:3px;
14cursor:pointer;border:.2px solid rgba(165,160,160,.568)}#OptionalText[_ngcontent-%COMP%]:hover{border:.2px solid var(--brand-color)}.mat-card-footer[_ngcontent-%COMP%]{border-top:1px solid #eee;width:100%;margin:0;padding:10px 0 0}.card-img[_ngcontent-%COMP%]{height:100px;width:100%;max-height:100px;margin:0 auto 5px;object-fit:contain;display:block;padding-bottom:5px}.product-name[_ngcontent-%COMP%]{margin-bottom:0;font-size:17.36px;font-weight:700;height:30px;white-space:pre-wrap;text-overflow:ellipsis;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1}.optionalImageCounter[_ngcontent-%COMP%]{position:relative;top:29px;left:9px}.material-icons.favorite.wishlist-active[_ngcontent-%COMP%]{color:var(--brand-color)!important}.col-gap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:0rem!important;overflow:visible!important}.price-ar[_ngcontent-%COMP%]{display:inline-block;direction:rtl;margin-bottom:5px}.product-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.out-of-stock[_ngcontent-%COMP%]{color:var(--brand-color);font-weight:600;font-size:.9rem;text-transform:capitalize;width:100%;display:block;height:43px;line-height:59px;text-align:left}.out-of-stock.height-53px[_ngcontent-%COMP%]{height:53px}.out-of-stock.grid-out-of-stock[_ngcontent-%COMP%]{height:36px;line-height:0px;text-align:center;margin-bottom:-10px;margin-top:-15px}.btn-to-cart[_ngcontent-%COMP%]{height:36px;line-height:37px;font-size:14px;border-radius:5px;background:#eee!important;color:var(--brand-color);box-shadow:none}.card_info[_ngcontent-%COMP%]{flex-wrap:wrap;height:auto!important}.rowView[_ngcontent-%COMP%] .top-icon[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;height:30px}.gridView[_ngcontent-%COMP%]{flex-direction:column!important}.gridView[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%]{display:flex;flex-direction:row!important;align-items:stretch}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{width:200px!important;
14min-width:200px;flex-shrink:0}@media(max-width:767px){.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{width:150px!important;min-width:150px}}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column!important;justify-content:flex-start!important;width:100%;padding:1rem}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex:1;width:100%!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .card_info[_ngcontent-%COMP%]{height:auto!important;width:100%!important}.gridView[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;font-size:1.2rem;flex-direction:column;min-height:auto!important}.gridView[_ngcontent-%COMP%] .grid-view-display[_ngcontent-%COMP%]{display:block!important}.gridView[_ngcontent-%COMP%] .grid-view-display.material-icons-arrow[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem!important;line-height:0}.gridView[_ngcontent-%COMP%] .product-tags[_ngcontent-%COMP%]{padding-left:0;list-style:none;display:flex!important}.gridView[_ngcontent-%COMP%] .product-tag[_ngcontent-%COMP%]{border:1px solid #dadada;padding:3px;color:#000;font-weight:700;margin-right:10px;border-radius:3px}.gridView[_ngcontent-%COMP%] .card_info[_ngcontent-%COMP%]{width:auto;margin-top:auto}.gridView[_ngcontent-%COMP%] .mat-card-image[_ngcontent-%COMP%]{border-bottom:0}.actions-wrapper.web-view[_ngcontent-%COMP%]{margin-top:20px}.card-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.card-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;cursor:pointer;z-index:10!important}.card-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child{margin-right:10px}.product-category[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.compare-active[_ngcontent-%COMP%]{color:var(--brand-color)}.image-container[_ngcontent-%COMP%] .image-hover[_ngcontent-%COMP%]{display:none}.image-container[_ngcontent-%COMP%] .image-default[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeIn ease-in-out .5s}.image-container[_ngcontent-%COMP%]:hover .image-default[_ngcontent-%COMP%]{display:none!important}.image-container[_ngcontent-%COMP%]:hover .image-hover[_ngcontent-%COMP%]{display:block;animation:_ngcontent-%COMP%_fadeIn ease-in-out .5s}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}.btn-notify-me[_ngcontent-%COMP%]{border-radius:4px}.btn-notify-me[_ngcontent-%COMP%] .btn-to-cart[_ngcontent-%COMP%]{margin:0;min-width:64px;line-height:36px;padding:0 16px!important;border-radius:4px;font-size:14px!important;transition:.2s}.btn-notify-me[_ngcontent-%COMP%] .mobile-view[_ngcontent-%COMP%] .btn-to-cart[_ngcontent-%COMP%]{padding:0 14px!important;font-size:14px!important}.btn-notify-me[_ngcontent-%COMP%]:hover .btn-to-cart[_ngcontent-%COMP%]{background:#d5d5d5!important}.btn-notify-me.btn-notifiy-me-grid[_ngcontent-%COMP%]{margin-top:10px}.viewFullProductDetails[_ngcontent-%COMP%]{font-weight:700;margin-top:1rem;text-decoration:underline;text-align:center;color:red}.left-fav[_ngcontent-%COMP%]{left:5px}.gridView[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%]{max-height:200px;white-space:normal!important;min-height:75px!important}.gridView[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{outline:none;max-height:60px;display:block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media(max-width:960px){.gridView[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%}.gridView[_ngcontent-%COMP%] .card_info[_ngcontent-%COMP%]{display:flex!important;width:100%!important}}.favorite-footer-btn[_ngcontent-%COMP%]{top:5px;right:5px;height:30px!important}.favorite-footer-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:initial!important;top:initial!important;right:initial!important}.compare-icon-container[_ngcontent-%COMP%]{background-color:transparent;border:none;color:#888;margin-top:4px}.loading[_ngcontent-%COMP%]{width:20px}.add-subtract-items[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.add-subtract-items[_ngcontent-%COMP%] .add-subtract-btn[_ngcontent-%COMP%]{width:30px;height:30px;background:var(--brand-color);border-radius:5px;
14display:flex;justify-content:center;align-items:center;color:#fff;cursor:pointer;transition:all .3s}.add-subtract-items[_ngcontent-%COMP%] .add-subtract-btn[_ngcontent-%COMP%]:hover{background:#e0e0e0;color:#000}.add-subtract-items[_ngcontent-%COMP%] .add-subtract-btn.subtract[_ngcontent-%COMP%]{margin-right:5px}.add-subtract-items[_ngcontent-%COMP%] .add-subtract-btn.add[_ngcontent-%COMP%]{margin-left:5px}.gridView[_ngcontent-%COMP%] .large-content[_ngcontent-%COMP%] .card_info[_ngcontent-%COMP%], .gridView[_ngcontent-%COMP%] .large-content[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{width:50%!important}.card-container.large-content[_ngcontent-%COMP%]{min-width:33.333%!important}@media(max-width:599px){.card-container.large-content[_ngcontent-%COMP%]{min-width:50%!important}.card-container.large-content.fx-flex-xs-100[_ngcontent-%COMP%]{min-width:100%!important}}.card-container.large-content[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%]{min-height:initial!important;flex-wrap:inherit}.card-container.large-content[_ngcontent-%COMP%] .p-link.image-container[_ngcontent-%COMP%]{height:250px!important}.card-container.large-content[_ngcontent-%COMP%] .p-link.image-container[_ngcontent-%COMP%]:hover .image-default[_ngcontent-%COMP%]{display:block!important}.card-container.large-content[_ngcontent-%COMP%] .p-link.image-container[_ngcontent-%COMP%]:hover .image-default.mobile-view[_ngcontent-%COMP%], .card-container.large-content[_ngcontent-%COMP%] .p-link.image-container[_ngcontent-%COMP%]:hover .image-hover[_ngcontent-%COMP%]{display:none!important}.card-container.large-content[_ngcontent-%COMP%] .p-link.image-container[_ngcontent-%COMP%] .card-img[_ngcontent-%COMP%]{height:235px!important;max-height:235px!important}.card-container.large-content[_ngcontent-%COMP%] .titel-advanced-theme[_ngcontent-%COMP%]{display:flex;flex-direction:column}.card-container.large-content[_ngcontent-%COMP%] .titel-advanced-theme[_ngcontent-%COMP%] .category-item[_ngcontent-%COMP%]{color:#242323e8;font-size:18px}.card-container.large-content[_ngcontent-%COMP%] .image-gallary-container[_ngcontent-%COMP%]{height:45px;width:100%;display:flex;justify-content:flex-start;align-items:center;gap:5px;margin-bottom:5px}.card-container.large-content[_ngcontent-%COMP%] .image-gallary-container[_ngcontent-%COMP%] .gallery-image[_ngcontent-%COMP%]{width:45px;height:45px;border:1px solid transparent}.card-container.large-content[_ngcontent-%COMP%] .image-gallary-container[_ngcontent-%COMP%] .gallery-image[_ngcontent-%COMP%]:last-of-type{font-weight:700;display:flex;justify-content:center;align-items:center}.card-container.large-content[_ngcontent-%COMP%] .image-gallary-container[_ngcontent-%COMP%] .gallery-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain}.card-container.large-content[_ngcontent-%COMP%] .img-brand[_ngcontent-%COMP%]{position:absolute;display:block;width:100px;height:100px;right:0;z-index:9;top:0;overflow:hidden}.card-container.large-content[_ngcontent-%COMP%] .img-brand[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain;height:100px;width:100px}.card-container.large-content[_ngcontent-%COMP%] .favorite-footer-btn[_ngcontent-%COMP%]{position:initial}.card-container.large-content[_ngcontent-%COMP%] .compare-icon-container[_ngcontent-%COMP%]{position:initial!important}.row-min-width[_ngcontent-%COMP%]{width:100%;max-width:100%;margin:0}.chip-container[_ngcontent-%COMP%]{position:absolute;top:10px;left:10px;z-index:9;max-width:180px;overflow:visible}.chip-container.chip-ar[_ngcontent-%COMP%]{right:10px;left:auto}.bigImg[_ngcontent-%COMP%]{height:200px!important;max-height:200px!important}@media(min-width:768px){.bigImg[_ngcontent-%COMP%]{min-width:100%}}.loader-container[_ngcontent-%COMP%]{position:relative;width:24px!important;height:24px!important;display:none}.text-box[_ngcontent-%COMP%]{font-size:1rem!important;overflow:hidden;height:initial!important;cursor:context-menu!important}.text-box[_ngcontent-%COMP%]:hover{border:none!important}.color-box[_ngcontent-%COMP%]{width:2rem!important;height:2rem!important;border-radius:50%}.color-box[_ngcontent-%COMP%]:hover{border:none!important}.image-box[_ngcontent-%COMP%]:hover:not(.image-box:last-of-type){border:1px solid var(--brand-color)!important}.plus-variants[_ngcontent-%COMP%]{background-color:#e3e3e3;cursor:context-menu}.plus-variants[_ngcontent-%COMP%]:hover{border:none!important}.left-5[_ngcontent-%COMP%]{left:5px!important;right:auto!important}.right-5[_ngcontent-%COMP%]{right:5px!important;left:auto!important}.favorite-icon-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;border:0;background:transparent;top:initial;z-index:10}.favorite-top-location[_ngcontent-%COMP%]{position:absolute!important;top:5px;right:5px}.img-brand.right-0[_ngcontent-%COMP%]{right:0!important}.img-brand.left-0[_ngcontent-%COMP%]{left:0!important}.card-item-border[_ngcontent-%COMP%]{border:1px solid #EFF2F5!important}mat-card.card-item[_ngcontent-%COMP%]{border:1px solid #EFF2F5!important;border-radius:4px;box-shadow:none!important}.rate-container[_ngcontent-%COMP%]{margin-bottom:0;margin-top:10px;align-items:center}@media(max-width:800px){.grid-view[_ngcontent-%COMP%]{width:100%}
14.card-img-mobile-view[_ngcontent-%COMP%]{display:block!important}.card-img-desktop-view[_ngcontent-%COMP%]{display:none!important}.rowView[_ngcontent-%COMP%] .card-container[_ngcontent-%COMP%]{flex:0 0 50%!important;max-width:50%!important;width:50%!important;min-width:auto!important}.gridView[_ngcontent-%COMP%]{flex-direction:column!important}.gridView[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;flex:1 0 100%!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%]{flex-direction:column!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%]{width:100%!important;min-width:100%!important;max-width:100%!important;height:auto}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:300px;width:100%;object-fit:contain}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%]{width:100%!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .product-title[_ngcontent-%COMP%]{display:block!important;min-height:auto!important;white-space:normal!important}.gridView[_ngcontent-%COMP%] .card-item[_ngcontent-%COMP%] .product-card[_ngcontent-%COMP%] .product-content[_ngcontent-%COMP%] .item-price[_ngcontent-%COMP%]{display:block!important}.gridView[_ngcontent-%COMP%] .card_info[_ngcontent-%COMP%]{display:flex!important;width:100%!important}}.card-img-mobile-view[_ngcontent-%COMP%]{display:none!important}.card-img-desktop-view[_ngcontent-%COMP%]{display:block!important}.overflow-x-hidden[_ngcontent-%COMP%]{overflow-x:hidden!important}.col-gap[_ngcontent-%COMP%]{align-items:stretch!important}.card-container[_ngcontent-%COMP%]{display:flex!important;flex-direction:column;height:100%}.card-container[_ngcontent-%COMP%] > app-updated-product-card[_ngcontent-%COMP%]{display:flex;width:100%;flex:1;height:100%}@media(min-width:1280px){.col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-lg-25[_ngcontent-%COMP%]:first-child:last-child, .col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-lg-25[_ngcontent-%COMP%]:only-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-lg-25[_ngcontent-%COMP%]:first-child:last-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-lg-25[_ngcontent-%COMP%]:only-child{flex:0 0 25%!important;max-width:25%!important;width:25%!important}}@media(min-width:1920px){.col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-xl-25[_ngcontent-%COMP%]:first-child:last-child, .col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-xl-25[_ngcontent-%COMP%]:only-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-xl-25[_ngcontent-%COMP%]:first-child:last-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-xl-25[_ngcontent-%COMP%]:only-child{flex:0 0 25%!important;max-width:25%!important;width:25%!important}}@media(min-width:960px)and (max-width:1279px){.col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-md-50[_ngcontent-%COMP%]:first-child:last-child, .col-gap.fx-layout-row-wrap[_ngcontent-%COMP%] > .card-container.fx-flex-md-50[_ngcontent-%COMP%]:only-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-md-50[_ngcontent-%COMP%]:first-child:last-child, .col-gap[_ngcontent-%COMP%] > .card-container.fx-flex-md-50[_ngcontent-%COMP%]:only-child{flex:0 0 50%!important;max-width:50%!important;width:50%!important}}']})}return r})();var Gi=["searchValueWeb"],Ni=["sidenav"],sn=r=>({visibility:r}),Bi=(r,g,t,e,i,n)=>({"fx-flex-lg-100":r,"fx-flex-lg-73":g,"fx-flex-md-100":t,"fx-flex-md-65":e,"fx-flex-xl-100":i,"fx-flex-xl-75":n}),X=r=>({"hide-image-offer":r}),Di=r=>({"last-filter-item":r}),jt=r=>({active:r}),Fi=(r,g,t)=>["/",r,"product",g,t],cn=r=>({selected:r}),Ui=(r,g,t,e)=>["/",r,"product",g,t,e],it=r=>({"radius-50 shadow":r}),$i=()=>["./"],zi=r=>({brand_id:r,page:1}),ji=(r,g)=>["/",r,"product","brand",g],qi=(r,g)=>({"radius-50 shadow":r,"border border-brand rounded-lg":g}),Rt=r=>({"disabled-icon":r});function Hi(r,g){if(r&1&&(V(0),_(1,"div",12),M(2,"div",13),p(),I()),r&2){let t=s();l(2),c("innerHTML",t.lang()==="ar"?t.content_top_ar_html:t.content_top_en_html,Nt)}}function Wi(r,g){if(r&1){let t=k();_(0,"div",14),V(1),_(2,"div",15)(3,"img",16),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_1))}),p()(),M(4,"div",17),I(),V(5),_(6,"div",15)(7,"img",16),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_2))}),p()(),M(8,"div",17),I(),V(9),_(10,"div",15)(11,"img",16),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_3))}),p()(),M(12,"div",17),I(),p()}if(r&2){let t=s();
14l(3),c("ngClass",R(6,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_1)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_1,N),l(4),c("ngClass",R(8,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_2)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_2,N),l(4),c("ngClass",R(10,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_3)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_3,N)}}function Yi(r,g){if(r&1){let t=k();_(0,"div",14),V(1),_(2,"div",15)(3,"img",18),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_1))}),p()(),M(4,"div",17),I(),V(5),_(6,"div",15)(7,"img",18),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_2))}),p()(),M(8,"div",17),I(),V(9),_(10,"div",15)(11,"img",18),O("click",function(){P(t);let i=s();return y(i.openPDF(i.environmentVariables==null?null:i.environmentVariables.FLYER_PDF_IN_DEALS_PAGE_3))}),p()(),M(12,"div",17),I(),p()}if(r&2){let t=s();l(3),c("ngClass",R(6,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_1)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_1,N),l(4),c("ngClass",R(8,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_2)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_2,N),l(4),c("ngClass",R(10,X,!(t.environmentVariables!=null&&t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_3)))("src",t.environmentVariables==null?null:t.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_3,N)}}function Ki(r,g){r&1&&(_(0,"mat-error"),b(1),D(2,"translate"),p()),r&2&&(l(),L(" ",U(2,1,"product_list.priceValidation")," "))}function Qi(r,g){if(r&1){let t=k();_(0,"div",31)(1,"div",25),b(2),D(3,"translate"),p(),_(4,"div",32)(5,"div",33)(6,"input",34),O("keyup.enter",function(){P(t);let i=s(2);return y(i.updateRangWithData())}),dt("ngModelChange",function(i){P(t);let n=s(2);return ct(n.minInputValue,i)||(n.minInputValue=i),y(i)}),p()(),_(7,"div",33)(8,"input",35),O("keyup.enter",function(){P(t);let i=s(2);return y(i.updateRangWithData())}),dt("ngModelChange",function(i){P(t);let n=s(2);return ct(n.maxInputValue,i)||(n.maxInputValue=i),y(i)}),p()()(),v(9,Ki,3,3,"mat-error",2),_(10,"div",36)(11,"button",37),O("click",function(){P(t);let i=s(2);return y(i.updateProductsPriceRange())}),b(12),D(13,"translate"),p(),_(14,"div",38),O("click",function(){P(t);let i=s(2);return y(i.clearPriceRang())}),b(15),D(16,"translate"),p()()()}if(r&2){let t=s(2);l(2),L(" ",U(3,9,"product_list.price")," "),l(4),st("ngModel",t.minInputValue),c("max",t.maxValue),l(2),st("ngModel",t.maxInputValue),l(),c("ngIf",t.maxInputValue<t.minInputValue),l(),c("dir",t.lang()==="ar"?"ltr":"rtl"),l(),c("ngClass",t.maxInputValue<t.minInputValue?"disabled":""),l(),L(" ",U(13,11,"product_list.apply")," "),l(3),L(" ",U(16,13,"product_list.clear")," ")}}function Ji(r,g){if(r&1){let t=k();_(0,"mat-radio-button",44),O("change",function(){let i=P(t).$implicit,n=s(4);return y(n.searchProductCategory(i))}),_(1,"span",45),b(2),p()()}if(r&2){let t=g.$implicit,e=s(4);c("checked",t==null?null:t.checked)("value",t==null?null:t.id),l(),c("matTooltip",e.lang()=="en"?t==null?null:t.name:t==null?null:t.name_ar),l(),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function Xi(r,g){if(r&1&&(_(0,"mat-radio-group",42),v(1,Ji,3,4,"mat-radio-button",43),p()),r&2){let t=s(3);l(),c("ngForOf",t.categories)("ngForTrackBy",t.trackById)}}function Zi(r,g){if(r&1){let t=k();V(0),_(1,"mat-accordion")(2,"mat-expansion-panel",39),O("closed",function(){P(t);let i=s(2);return y(i.panelOpenState=!1)})("opened",function(){P(t);let i=s(2);return y(i.panelOpenState=!0)}),_(3,"mat-expansion-panel-header")(4,"mat-panel-title")(5,"div",40),b(6),D(7,"translate"),p()()(),v(8,Xi,2,2,"mat-radio-group",41),p()(),I()}if(r&2){let t=s(2);l(6),L(" ",U(7,2,"product_list.categories")," "),l(2),c("ngIf",t.categories==null?null:t.categories.length)}}function tr(r,g){if(r&1&&(V(0),_(1,"div",50),b(2),p(),I()),r&2){let t=s().$implicit,e=s(4);l(2),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function er(r,g){if(r&1){let t=k();_(0,"div",51)(1,"mat-checkbox",52),O("change",function(i){let n=P(t).$implicit,o=s(
145);return y(o.searchProductSubCategory(i,n))}),_(2,"span",53),b(3),p()()()}if(r&2){let t=g.$implicit,e=s(5);l(),c("checked",t==null?null:t.checked)("value",t==null?null:t.id),l(),c("matTooltip",e.lang()=="en"?t==null?null:t.name:t==null?null:t.name_ar),l(),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function nr(r,g){if(r&1&&(_(0,"div"),v(1,tr,3,1,"ng-container",2)(2,er,4,4,"div",49),p()),r&2){let t=g.$implicit,e=s(4);l(),c("ngIf",!(e.environmentVariables!=null&&e.environmentVariables.ENABLE_REMOVE_GENERAL_GROUP)||(t==null?null:t.name)!=="General"),l(),c("ngForOf",t==null?null:t.sub_categories)("ngForTrackBy",e.trackById)}}function ir(r,g){if(r&1){let t=k();_(0,"mat-accordion")(1,"mat-expansion-panel",46),O("closed",function(){P(t);let i=s(3);return y(i.panelOpenState=!1)})("opened",function(){P(t);let i=s(3);return y(i.panelOpenState=!0)}),_(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"div",40),b(5),D(6,"translate"),p()()(),_(7,"div",47),v(8,nr,3,3,"div",48),p()()()}if(r&2){let t=s(3);l(),c("expanded",K(t.showSubCategory)),l(4),L(" ",U(6,5,"product_list.subCategory")," "),l(3),c("ngForOf",t.subCategories)("ngForTrackBy",t.trackById)}}function rr(r,g){if(r&1&&(_(0,"div",29),v(1,ir,9,7,"mat-accordion",2),p()),r&2){let t=s(2);l(),c("ngIf",!t.hideCategoryIfDisplayCustomList)}}function ar(r,g){if(r&1){let t=k();_(0,"mat-checkbox",52),O("change",function(i){P(t);let n=s().$implicit,o=s(4);return y(o.searchProductByBrand(i,n))}),b(1),p()}if(r&2){let t=s().$implicit,e=s(4);c("checked",t==null?null:t.checked)("value",t==null?null:t.id),l(),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function or(r,g){if(r&1&&(_(0,"div",56),v(1,ar,2,3,"mat-checkbox",57),p()),r&2){let t=g.$implicit;l(),c("ngIf",t)}}function lr(r,g){if(r&1&&(_(0,"div",29)(1,"mat-accordion")(2,"mat-expansion-panel",54)(3,"mat-expansion-panel-header")(4,"mat-panel-title")(5,"div",40),b(6),p()()(),v(7,or,2,1,"div",55),p()()()),r&2){let t=s(3);l(2),c("expanded",K(t.showBrands)),l(4),L(" ",t.lang()==="en"?"Brands":"\u0645\u0627\u0631\u0643\u0627\u062A"," "),l(),c("ngForOf",t.brands)("ngForTrackBy",t.trackById)}}function sr(r,g){if(r&1&&(V(0),v(1,lr,8,5,"div",30),I()),r&2){let t=s(2);l(),c("ngIf",(t.brands==null?null:t.brands.length)&&!(t.environmentVariables!=null&&t.environmentVariables.DISABLE_FILTER_WITH_BRANDS))}}function cr(r,g){if(r&1){let t=k();V(0),_(1,"div",61),O("click",function(){P(t);let i=s().$implicit,n=s(6);return y(n.searchProductByAttributes({checked:!(i!=null&&i.checked)},i))}),p(),I()}if(r&2){let t=s().$implicit;l(),H("background-color",t==null?null:t.color_code),c("matTooltip",t==null?null:t.name)("ngClass",R(4,jt,t==null?null:t.checked))}}function dr(r,g){if(r&1){let t=k();_(0,"div",63),O("click",function(){P(t);let i=s(2).$implicit,n=s(6);return y(n.searchProductByAttributes({checked:!(i!=null&&i.checked)},i))}),p()}if(r&2){let t=s(2).$implicit;H("background-image","url(./assets/images/transparent.png)"),c("matTooltip",t==null?null:t.name)("ngClass",R(4,jt,t==null?null:t.checked))}}function _r(r,g){if(r&1){let t=k();_(0,"div",63),O("click",function(){P(t);let i=s(2).$implicit,n=s(6);return y(n.searchProductByAttributes({checked:!(i!=null&&i.checked)},i))}),p()}if(r&2){let t=s(2).$implicit;H("background-image","url(./assets/images/squad-color.png)"),c("matTooltip",t==null?null:t.name)("ngClass",R(4,jt,t==null?null:t.checked))}}function ur(r,g){if(r&1&&(V(0),v(1,dr,1,6,"div",62)(2,_r,1,6,"div",62),I()),r&2){let t=s().$implicit;l(),c("ngIf",(t==null?null:t.color_code)==="transparent"),l(),c("ngIf",(t==null?null:t.color_code)==="squad")}}function gr(r,g){if(r&1&&(V(0),v(1,cr,2,6,"ng-container",2)(2,ur,3,2,"ng-container",2),I()),r&2){let t=g.$implicit,e=s(6);l(),c("ngIf",!e.customColors.includes(t==null?null:t.color_code)),l(),c("ngIf",e.customColors.includes(t==null?null:t.color_code))}}function pr(r,g){if(r&1&&(V(0),_(1,"div",60),v(2,gr,3,2,"ng-container",48),p(),I()),r&2){let t=s(2).$implicit,e=s(3);l(2),c("ngForOf",t==null?null:t.values)("ngForTrackBy",e.trackById)}}function mr(r,g){if(r&1){let t=k();_(0,"mat-checkbox",52),O("change",function(){P(t);let i=s().$implicit,n=s(6);return y(n.searchProductByAttributes({checked:!(i!=null&&i.checked)},i))}),b(1),p()}if(r&2){let t=s().$implicit,e=s(6);c("checked",t==null?null:t.checked)("value",t==null?null:t.id),l(),L(" ",e.lang()=="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function hr(r,g){if(r&1&&(V(0),v(1,mr,2,3,"mat-checkbox",57),I()),r&2){let t=g.$implicit;l(),c("ngIf",t)}}function fr(r,g){if(r&1&&(V(0),_(1,"div",64),v(2,hr,2,1,"ng-container",48),p(),I()),r&2){let t=s(2).$implicit,e=s(3);l(2),c("ngForOf",t==null?null:t.values)("ngForTrackBy",e.trackById)}}function vr(r,g){if(r&1){let t=k();_(0,"mat-checkbox",52),O("change",function(i){P(t);let n=s().$implicit,o=s(6);return y(o.searchProductByAttributes(i,n))}),b(1),p()}if(r&2){let t=s().$implicit,e=s(6);c("checked",t==null?null:t.checked)("value",t==null?null:t.id),l(),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," ")}}function xr(r,g){if(r&1&&(_(0,"div"),v(1,vr,2,3,"mat-checkbox",57),p()),r&2){let t=g.$implicit;l(),c("ngIf",t)}}function br(r,g){if(r&1&&(V(0),v(1,xr,2,1,"div",65),I()),r&2){let t=s(2).$implicit;l(),c("ngForOf",t==null?null:t.values)}}function Cr(r,g){if(r&1&&(V(0),_(1,"mat-accordion")(2,"mat-expansion-panel",54)(3,"mat-expansion-panel-header")(4,"mat-panel-title")(5,"div",40),b(6),p()()(),v(7,pr,3,2,"ng-container",2)(8,fr,3,2,"ng-container",2)(9,br,2,1,"ng-container",2),p()(),I()),r&2){let t=s().$implicit,e=s(3);l(2),c("expanded",e.checkOptionFound(t==null?null:t.values)),l(4),L(" ",e.lang()==="en"?t==null?null:t.name:t==null?null:t.name_ar," "),l(),c("ngIf",(t==null?null:t.type)==2&&!(e.environmentVariables!=null&&e.environmentVariables.SHOW_TEXT_COLOR)),l(),c("ngIf",(t==null?null:t.type)==2&&(e.environmentVariables==null?null:e.environmentVariables.SHOW_TEXT_COLOR)),l(),c("ngIf",(t==null?null:t.type)!=2)}}function Pr(r,g){if(r&1&&(_(0,"div",59),v(1,Cr,10,5,"ng-container",2),p()),r&2){let t=g.$implicit,e=g.last;c("ngClass",R(2,Di,e)),l(),c("ngIf",t==null||t.values==null?null:t.values.length)}}function yr(r,g){if(r&1&&(V(0),v(1,Pr,2,4,"div",58),I()),r&2){let t=s(2);l(),c("ngForOf",t.attributes)("ngForTrackBy",t.trackById)}}function Sr(r,g){if(r&1){let t=k();_(0,"div",19)(1,"div",20)(2,"div",21)(3,"button",22),O("click",function(){P(t);let i=s();return y(i.openSideBar())}),_(4,"mat-icon",23),b(5,"close"),p()()(),_(6,"div",24)(7,"div",25),b(8),D(9,"translate"),p(),_(10,"form",26),M(11,"input",27,0),p()(),v(13,Qi,17,15,"div",28),_(14,"div",29),v(15,Zi,9,4,"ng-container",2),p(),v(16,rr,2,1,"div",30),V(17),v(18,sr,2,1,"ng-container",2)(19,yr,2,2,"ng-container",2),I(),p()()}if(r&2){let t=s();c("ngClass",t.sidenavOpen?"open-side-bar":""),l(8),L(" ",U(9,7,"product_list.search")," "),l(5),c("ngIf",t.showResult||t.acceptPrice),l(2),c("ngIf",!t.hideCategoryIfDisplayCustomList),l(),c("ngIf",t.subCategories.length),l(2),c("ngIf",!t.emptyProducts),l(),c("ngIf",!t.emptyProducts)}}function Er(r,g){if(r&1&&(_(0,"div",70)(1,"a",71),M(2,"img",72),_(3,"p"),b(4),p()()()),r&2){let t=g.$implicit,e=s(3);l(),c("routerLink",_t(6,Fi,e.lang(),e.lang()=="en"?e.selectedCategory==null?null:e.selectedCategory.slug:(e.selectedCategory==null?null:e.selectedCategory.slug_ar)||(e.selectedCategory==null?null:e.selectedCategory.slug),e.lang()=="en"?t==null?null:t.slug:(t==null?null:t.slug_ar)||(t==null?null:t.slug))),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t.name)("ngClass",R(10,cn,(e.selectedGroup==null?null:e.selectedGroup.id)==(t==null?null:t.id))),l(2),z(t==null?null:t.name)}}function wr(r,g){if(r&1&&(_(0,"div",69),v(1,Er,5,12,"div",68),p()),r&2){let t=s(2);l(),c("ngForOf",t.featuredGroups)}}function Or(r,g){if(r&1&&(_(0,"div",70)(1,"a",71),M(2,"img",72),_(3,"p"),b(4),p()()()),r&2){let t=g.$implicit,e=s(2);l(),c("routerLink",Q(6,Ui,e.lang(),e.lang()=="en"?e.selectedCategory==null?null:e.selectedCategory.slug:(e.selectedCategory==null?null:e.selectedCategory.slug_ar)||(e.selectedCategory==null?null:e.selectedCategory.slug),e.lang()=="en"?e.selectedGroup==null?null:e.selectedGroup.slug:(e.selectedGroup==null?null:e.selectedGroup.slug_ar)||(e.selectedGroup==null?null:e.selectedGroup.slug),e.lang()=="en"?t.slug:t.slug_ar||t.slug)),l(),c("src",t==null?null:t.image,N)("alt",t==null?null:t.name)("title",t.name)("ngClass",R(11,cn,(e.selectedSubCategory==null?null:e.selectedSubCategory.id)==(t==null?null:t.id))),l(2),z(t==null?null:t.name)}}function Mr(r,g){if(r&1&&(V(0),v(1,wr,2,1,"div",66),_(2,"div",67),v(3,Or,5,13,"div",68),p(),I()),r&2){let t=s();l(),c("ngIf",t.isShowFeaturedGroups),l(2),c("ngForOf",t.featuredSubCategory)}}function Vr(r,g){if(r&1&&(_(0,"mat-option",89),b(1),D(2,"translate"),p()),r&2){let t=g.$implicit;c("value",t==null?null:t.value),l(),z(U(2,2,t.name))}}function Ir(r,g){if(r&1){let t=k();_(0,"div",73)(1,"div",74)(2,"div")(3,"mat-card",75)(4,"button",76),O("click",function(){P(t);let i=s();return y(i.openSideBar())}),_(5,"mat-icon",77),b(6," filter_list "),p(),_(7,"span",78),b(8),D(9,"translate"),p()()()(),_(10,"div")(11,"button",79),O("click",function(){P(t);let i=s();return y(i.selectViewProduct("true"))}),_(12,"mat-icon",80),b(13," view_list "),p()(),_(14,"button",79),O("click",function(){P(t);let i=s();return y(i.selectViewProduct("false"))}),_(15,"mat-icon",80),b(16," view_module "),p()()()(),_(17,"div",81)(18,"div",82)(19,"div",83),b(20),D(21,"translate"),p(),_(22,"mat-form-field",84)(23,"mat-select",85),D(24,"translate"),O("selectionChange",function(i){P(t);let n=s();return y(n.changePageItemsSort(i.value))}),dt("ngModelChange",function(i){P(t);let n=s();return ct(n.filter.sort,i)||(n.filter.sort=i),y(i)}),v(25,Vr,3,4,"mat-option",86),p()()(),_(26,"div",87)(27,"div",88)(28,"button",79),O("click",function(){P(t);let i=s();return y(i.selectViewProduct("true"))}),_(29,"mat-icon",80),b(30," view_list "),p()(),_(31,"button",79),O("click",function(){P(t);let i=s();return y(i.selectViewProduct("false"))}),_(32,"mat-icon",80),b(33," view_module "),p()()()()()()}if(r&2){let t=s();l(5),c("ngClass",t.lang()=="ar"?"filter-ar":""),l(3),L(" ",U(9,15,"product_list.filterBy")," "),l(4),$("tabActive",t.isGridView=="true"),l(3),$("tabActive",t.isGridView=="false"),l(5),L(" ",U(21,17,"product_list.sortBy")," "),l(3),c("placeholder",K(U(24,19,"product_list.default"))),st("ngModel",t.filter.sort),l(2),c("ngForOf",t.sorts),l(4),$("tabActive",t.isGridView=="true"),l(3),$("tabActive",t.isGridView=="false")}}function Tr(r,g){if(r&1){let t=k();_(0,"div",94)(1,"a",95),O("click",function(){let i=P(t).$implicit,n=s(2);return y(n.handleCategoryClick(i))}),_(2,"div",96),M(3,"img",97),_(4,"h3",98),b(5),p()()()()}if(r&2){let t=g.$implicit,e=s(2);l(2),c("ngClass",R(6,it,e.environmentVariables.CATEGORY_CARD=="round")),l(),c("ngClass",R(8,it,e.environmentVariables.CATEGORY_CARD=="round"))("src",t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name),l(2),L(" ",e.lang()=="en"?t.name:t.name_ar," ")}}function kr(r,g){if(r&1&&(_(0,"div",90)(1,"mat-card")(2,"div",91)(3,"div",92),v(4,Tr,6,10,"div",93),p()()()()),r&2){let t=s();l(4),c("ngForOf",t.categories)}}function Lr(r,g){if(r&1&&(V(0),_(1,"a",101)(2,"div",102),M(3,"img",97),_(4,"h3",98),b(5),p()()(),I()),r&2){let t=s().$implicit,e=s(2);l(),c("routerLink",te(8,$i))("queryParams",R(9,zi,t.id)),l(),c("ngClass",R(11,it,e.environmentVariables.CATEGORY_CARD=="round")),l(),c("ngClass",R(13,it,e.environmentVariables.CATEGORY_CARD=="round"))("src",t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name),l(2),L(" ",e.lang()=="en"?t.name:t.name_ar," ")}}function Ar(r,g){if(r&1&&(V(0),_(1,"a",103)(2,"div",104),M(3,"img",97),_(4,"h3",98),b(5),p()()(),I()),r&2){let t=s().$implicit,e=s(2);l(),c("routerLink",tt(7,ji,e.lang(),e.lang()==="en"?t.slug:t.slug_ar)),l(),c("ngClass",tt(10,qi,e.environmentVariables.CATEGORY_CARD=="round",e.getURLencoded(e.router.url).includes(e.lang()==="en"?t.slug:t.slug_ar))),l(),c("ngClass",R(13,it,e.environmentVariables.CATEGORY_CARD=="round"))("src",t.image,N)("alt",t==null?null:t.name)("title",t==null?null:t.name),l(2),L(" ",e.lang()=="en"?t.name:t.name_ar," ")}}function Rr(r,g){if(r&1&&(_(0,"div",94),v(1,Lr,6,15,"ng-container",2)(2,Ar,6,15,"ng-container",2),p()),r&2){let t=g.$implicit,e=s(2);l(),c("ngIf",!t.slug||!(e.environmentVariables!=null&&e.environmentVariables.ENABLE_BRAND_SLUG)),l(),c("ngIf",t.slug&&(e.environmentVariables==null?null:e.environmentVariables.ENABLE_BRAND_SLUG))}}function Gr(r,g){if(r&1&&(_(0,"div",90)(1,"mat-card")(2,"div",99)(3,"div",92),v(4,Rr,3,2,"div",100),p()()()()),r&2){let t=s();l(4),c("ngForOf",t.brands)}}function Nr(r,g){r&1&&(_(0,"div",107)(1,"div",108),M(2,"div",109)(3,"div",110)(4,"div",111)(5,"div",111),p()())}function Br(r,g){if(r&1&&(V(0),_(1,"div",105),v(2,Nr,6,0,"div",106),p(),I()),r&2){let t=s();l(2),c("ngForOf",t.fakeArray)}}function Dr(r,g){r&1&&(_(0,"div",113)(1,"div",108),M(2,"div",109),_(3,"div",114),M(4,"div",110)(5,"div",110),p(),_(6,"div",115),M(7,"div",111)(8,"div",111)(9,"div",111),p()()())}function Fr(r,g){if(r&1&&(V(0),_(1,"div",105),v(2,Dr,10,0,"div",112),p(),I()),r&2){let t=s();l(2),c("ngForOf",t.fakeArray)}}function Ur(r,g){if(r&1){let t=k();V(0),_(1,"pagination-controls",121),D(2,"translate"),D(3,"translate"),O("pageChange",function(i){P(t);let n=s(2);return y(n.onPageChanged(i))}),p(),I()}r&2&&(l(),c("nextLabel",K(U(2,4,"button.next")))("previousLabel",K(U(3,6,"button.previous"))))}function $r(r,g){if(r&1&&(V(0),_(1,"div",126)(2,"mat-icon",127),b(3,"keyboard_double_arrow_left"),p(),_(4,"span"),b(5),D(6,"translate"),p()(),I()),r&2){let t=s(4);l(2),c("ngClass",R(4,Rt,+t.filter.page==1)),l(3),z(U(6,2,"button.previous"))}}function zr(r,g){if(r&1&&(V(0),_(1,"div",126)(2,"mat-icon",127),b(3,"keyboard_double_arrow_right"),p(),_(4,"span"),b(5),D(6,"translate"),p()(),I()),r&2){let t=s(4);l(2),c("ngClass",R(4,Rt,+t.filter.page==1)),l(3),z(U(6,2,"button.previous"))}}function jr(r,g){if(r&1&&(V(0),_(1,"div",126)(2,"span"),b(3),D(4,"translate"),p(),_(5,"mat-icon",127),b(6,"keyboard_double_arrow_right"),p()(),I()),r&2){let t=s(4);l(3),z(U(4,2,"button.next")),l(2),c("ngClass",R(4,Rt,t.products.length<24))}}function qr(r,g){if(r&1&&(V(0),_(1,"div",126)(2,"span"),b(3),D(4,"translate"),p(),_(5,"mat-icon",127),b(6,"keyboard_double_arrow_left"),p()(),I()),r&2){let t=s(4);l(3),z(U(4,2,"button.next")),l(2),c("ngClass",R(4,Rt,t.products.length<24))}}function Hr(r,g){if(r&1){let t=k();_(0,"div",123)(1,"button",124),O("click",function(){P(t);let i=s(3);return y(i.onPageChanged(i.filter.page-1))}),v(2,$r,7,6,"ng-container",2)(3,zr,7,6,"ng-container",2),p(),_(4,"span",125),b(5),D(6,"translate"),p(),_(7,"button",124),O("click",function(){P(t);let i=s(3);return y(i.onPageChanged(+i.filter.page+1))}),v(8,jr,7,6,"ng-container",2)(9,qr,7,6,"ng-container",2),p()()}if(r&2){let t=s(3);c("dir",t.lang()==="ar"?"rtl":"ltr"),l(),c("disabled",+t.filter.page==1),l(),c("ngIf",t.lang()==="en"),l(),c("ngIf",t.lang()==="ar"),l(2),Zt("",U(6,9,"page"),": ",t.filter.page),l(2),c("disabled",t.products.length<24),l(),c("ngIf",t.lang()==="en"),l(),c("ngIf",t.lang()==="ar")}}function Wr(r,g){if(r&1&&(V(0),v(1,Hr,10,11,"div",122),I()),r&2){let t=s(2);l(),c("ngIf",t.filter)}}function Yr(r,g){if(r&1){let t=k();V(0),_(1,"h2",116),b(2),p(),_(3,"embryo-ProductGrid",117),O("addToCart",function(i){P(t);let n=s();return y(n.addToCart(i))})("addToWishList",function(i){P(t);let n=s();return y(n.addToWishList(i))}),p(),_(4,"div",118)(5,"div",119)(6,"mat-card",120),v(7,Ur,4,8,"ng-container",2)(8,Wr,2,1,"ng-container",2),p()()(),I()}if(r&2){let t=s();l(2),z(t.lang()==="en"?"Products":"\u0627\u0644\u0645\u0646\u062A\u062C\u0627\u062A"),l(),c("currentPage",t.page)("pageSize",24)("products",t.products)("totalPage",t.totalPage)("isGridView",t.isGridView)("gridThree",!0),l(4),c("ngIf",!(t.environmentVariables!=null&&t.environmentVariables.DISABLE_SEARCH_PAGING)),l(),c("ngIf",t.environmentVariables==null?null:t.environmentVariables.DISABLE_SEARCH_PAGING)}}function Kr(r,g){r&1&&(_(0,"span"),b(1),D(2,"translate"),p()),r&2&&(l(),L(" ",U(2,1,"header.searchFail")," "))}function Qr(r,g){if(r&1&&(V(0),_(1,"div",12),M(2,"div",13),p(),I()),r&2){let t=s();l(2),c("innerHTML",t.lang()==="ar"?t.content_bottom_ar_html:t.content_bottom_en_html,Nt)}}var io
14=(()=>{class r{activatedRoute;router;ProductsService;embryoService;homePageService;auth;translate;account;confgServ;metaService;marketingService;domSanitizer;_location;storage;windowService;cdr;renderer;structuredData;document=W(Yt);platformId=W(Qt);transferState=W(Jt);ssrRequest=W(re,{optional:!0});subscription=new qt;searchValueWeb;sidenav;manualRefresh=new ot;_filterDebug=!1;_fseq=0;_flog(t,e){if(!this._filterDebug)return;this._fseq++;let i=performance.now().toFixed(1);console.log(`%c[F#${this._fseq} @${i}ms] ${t}`,"color: #0af; font-weight: bold",e??"")}_ftrace(t,e){if(!this._filterDebug)return;this._fseq++;let i=performance.now().toFixed(1);console.groupCollapsed(`%c[F#${this._fseq} @${i}ms] ${t}`,"color: #f80; font-weight: bold",e??""),console.trace(),console.groupEnd()}_subCategories=[];get subCategories(){return this._subCategories}set subCategories(t){let e=this._subCategories?.length??"?",i=t?.length??"?";if(this._filterDebug){let n=new Error().stack?.split(` 15`).slice(1,4).map(o=>o.trim()).join(" \u2190 ")||"?";this._flog(`subCategories = [${i}] (was [${e}]) | ${n}`,t?.map?.(o=>o?.name||o?.id)?.slice(0,5))}this._subCategories=t}_brands=[];get brands(){return this._brands}set brands(t){let e=this._brands?.length??"?",i=t?.length??"?";if(this._filterDebug){let n=new Error().stack?.split(` 16`).slice(1,4).map(o=>o.trim()).join(" \u2190 ")||"?";this._flog(`brands = [${i}] (was [${e}]) | ${n}`)}this._brands=t}_attributes=[];get attributes(){return this._attributes}set attributes(t){let e=this._attributes?.length??"?",i=t?.length??"?";if(this._filterDebug){let n=new Error().stack?.split(` 17`).slice(1,4).map(o=>o.trim()).join(" \u2190 ")||"?";this._flog(`attributes = [${i}] (was [${e}]) | ${n}`)}this._attributes=t}type;pips=!0;tooltips=!0;category;pageTitle="";subPageTitle="";sidenavOpen=!1;subscribers={};showItems=0;isGridView="false";showResult=!1;page=1;nameRouting=[];fakeArray=new Array(12);filter={q:"",search:"",brand_ids:[],sub_categories:[],sub_categories_slugs:[],categories:[],category_id:"",category_slug:"",price_from:null,price_to:null,page:1,page_size:"24",sort:"",attributes_ids:[],vendor_ids:[],options_values_ids:[],group_id:[],group_slugs:[],list_ids:[],list_slugs:[],tags_slugs:[],promotions:!1,in_stock:"",disable_count:1,slug:[],brand_slugs:[]};_firstBrandRender=!0;_firstRoutingLangRun=!0;fitstTime=!0;minValue=0;maxValue=0;minInputValue=0;maxInputValue=0;total;all_brand=!0;products=[];attributesList=[];categories=[];nameGroup;q;objectProducts;totalPage;loading=!0;emptyProducts=!1;languageService=W(Vt);lang=this.languageService.currentLanguage;panelOpenState=!0;stocks=[{id:"",checked:!0,name:"All",name_ar:"\u0627\u0644\u0643\u0644"},{id:1,checked:!1,name:"In stock",name_ar:"\u0645\u062A\u0648\u0641\u0631"},{id:0,checked:!1,name:"Out of stock",name_ar:"\u063A\u064A\u0631 \u0645\u062A\u0648\u0641\u0631"}];customColors=["transparent","squad"];originalMax=0;acceptPrice=!1;fixedBrands=[];_navSource=null;_sidebarSub=null;_hasSsrCache=!1;priceSync=W(Ge);_ssrSkipProducts=!1;_renderedUrl=null;_schemaEmitPending=!1;routerSubscription;environmentVariables;showSubCategory=!1;showBrands=!1;showOptions=!1;areaSubscription;branchSubscription;showOffers=!1;currentPageView="";currentPageViewUrl;sorts=[];content_top_en_html;content_top_ar_html;content_bottom_en_html;content_bottom_ar_html;user;hideCategoryIfDisplayCustomList=!1;showCategoryIfDisplayCustomList=!1;constructor(t,e,i,n,o,a,u,d,h,m,C,f,x,S,E,B,T,G){this.activatedRoute=t,this.router=e,this.ProductsService=i,this.embryoService=n,this.homePageService=o,this.auth=a,this.translate=u,this.account=d,this.confgServ=h,this.metaService=m,this.marketingService=C,this.domSanitizer=f,this._location=x,this.storage=S,this.windowService=E,this.cdr=B,this.renderer=T,this.structuredData=G;let q="products-list:"+Lt(this.router.url),w=this.transferState.get(q,null),j="ssr-skip-products:"+Lt(this.router.url);this.transferState.get(j,!1)&&(this._ssrSkipProducts=!0,ft(this.platformId)&&this.transferState.remove(j)),w&&(this._hasSsrCache=!0,ft(this.platformId)&&this.transferState.remove(q),this.loading=!1,this.objectProducts=w?.data,this.products=this.objectProducts?.products||[],this._renderedUrl=this.router.url,this.totalPage=this.objectProducts?.total_products,this.total=this.objectProducts?.total_products,this.attributes=this.objectProducts?.products_options,this.cretaeProductSchema(this.products),this.updatePaginationSeoLinks()),ft(this.platformId)&&(window.location.search.includes("_filterDebug=1")||window.location.search.includes("_filter_debug=1")||this.activatedRoute.snapshot.queryParams._filterDebug==="1"||this.activatedRoute.snapshot.queryParams._filter_debug==="1")&&(this._filterDebug=!0,console.log("%c[Filter Debug] ACTIVATED \u2014 logging all subCategories/brands/attributes mutations + trigger points","color: #0f0; font-size: 14px; font-weight: bold")),ut(()=>{let F=this.lang();if(this._firstBrandRender){this._firstBrandRender=!1;return}this.replaceBrandSlugsURL()}),ut(()=>{let F=this.lang();if(this._firstRoutingLangRun){this._firstRoutingLangRun=!1;return}this.getAllProducts(this.filter,{silent:!0})}),this.user=this.auth.getUser(),this.areaSubscription=this.auth.getAreaDataEmit().subscribe(F=>{this.getAllProducts(this.filter)}),this.subscription.add(this.areaSubscription),this.branchSubscription=this.auth.getBranchDataEmit().subscribe(F=>{this.getAllProducts(this.filter)}),this.subscription.add(this.branchSubscription),this.attributes=[],this.router.url.includes("deals")?(this.filter.promotions=!0,this.showOffers=!0):this.showOffers=!1;let Y=this.confgServ.getenvConfig().subscribe(F=>{this.environmentVariables=F,this.environmentVariables?.DISABLE_SEARCH_PAGING?this.filter.disable_count=1:this.filter.disable_count=0,this.environmentVariables?.SEARCH_PAGE_VIEW=="list"?this.selectViewProduct("true"):this.selectViewProduct("false"),this._schemaEmitPending&&this.products?.length&&this.resolveSchemaOrigin()&&(this._schemaEmitPending=!1,this.cretaeProductSchema(this.products),this.updatePaginationSeoLinks())});this.subscription.add(Y),this.sorts=[{name:"product_list.default",value:""},{name:"product_list.popularCategories",value:"popular"},{name:"product_list.Title:A-Z",value:"a-z"},{name:"product_list.Title:Z-A",value:"z-a"},{name:"product_list.Price:LowtoHigh",value:"low"},{name:"product_list.Price:HightoLow",value:"high"},this.environmentVariables.ENABLE_PRODUCT_RATE?{name:"product_list.Rate:LowtoHigh",value:"low-rate"}:null,this.environmentVariables.ENABLE_PRODUCT_RATE?{name:"product_list.Rate:HightoLow",value:"high-rate"}:null,this.environmentVariables.DISABLE_FILTER_WITH_HIGH_DISCOUNT?null:{name:"product_list.discount:high-discount",value:"high-discount"},{name:"product_list.recent",value:"recent"}].filter(F=>F!==null),ut(()=>{let F=this.lang();if(!this.environmentVariables)return;let rt=this.router.url.split("?")[0].replace(/\/+$/,"");/^\/(en|ar)\/products$/.test(rt)&&(F=="en"?(this.metaService.updateTag({property:"og:title",content:`Search - ${this.environmentVariables?.APP_NAME}`}),this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?"Search":`Search - ${this.environmentVariables?.APP_NAME}`)):(this.metaService.updateTag({property:"og:title",content:`\u0627\u0644\u0628\u062D\u062B - ${this.environmentVariables?.APP_NAME_AR}`}),this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?"\u0627\u0644\u0628\u062D\u062B":`\u0627\u0644\u0628\u062D\u062B - ${this.environmentVariables?.APP_NAME_AR}`)))})}ngAfterViewInit(){this.environmentVariables.criteoPixelId&&this.marketingeventCriteoq()}marketingeventCriteoq(){let t=this.storage.getLocal("auth_user_crocs",null),e=this.storage.getLocal("vistorId",null),i=this.products?.map(o=>({id:o.id})),n=this.filter.q.replace(/[^\w\s.&-]+/g,"");setTimeout(()=>{this.marketingService.eventCriteoq(t,e,"viewList",{item:i,category:this.filter.category_id,keywords:n,page_number:this.filter.page})},100)}ngOnInit(){let t=this.storage.getLocal("isGridView",null);this.isGridView=t||"false",this.fixedBrands=this.storage.getLocal("fixedBrands",null),this.router.navigated&&this._flog("TRIGGER: getRouting() from router.navigated (initial load)"),this.routerSubscription=this.router.events.subscribe(n=>{if(n instanceof Se){let o=this.router.getCurrentNavigation()?.extras?.state?.source;o&&(this._navSource=o)}n instanceof Ee&&(this._navSource==="filter"?(this._flog("NavigationEnd: source=filter \u2192 SKIP getRouting, call getAllProducts",{url:this.router.url}),this._rebuildBreadcrumbs(),this.getAllProducts(this.filter)):(this._flog("NavigationEnd: source=external \u2192 getRouting()",{url:this.router.url}),this.getRouting()),this._navSource=null)}),this.subscription.add(this.routerSubscription);let e=this.homePageService.categoriesDataSub.subscribe(n=>{this._flog("TRIGGER: categoriesDataSub emitted",{count:n?.length}),this.categories=[...n],this.categories&&this.categories?.length>0&&(this._flog("TRIGGER: getRouting() from categoriesDataSub (categories loaded)"),this.getRouting()),(this.environmentVariables?.ENABLE_ADMIN_APPROVAL&&this.environmentVariables?.SKIP_FORCE_SIGNUP_LIST_ID_FOR_WEB&&this.user?.is_guest||this.environmentVariables?.ENABLE_ADMIN_APPROVAL&&this.environmentVariables?.FORCE_LOGIN_SIGNUP&&this.user?.is_guest)&&(this._flog("TRIGGER: getRouting() from admin a
17pproval check"),this.getRouting())});this.subscription.add(e),setTimeout(()=>{this.search()},1e3),(this.windowService.getWindow()?.innerWidth||0)<1100&&(this.sidenavOpen=!1)}replaceBrandSlugsURL(){if((this.filter.brand_slugs&&this.filter.brand_slugs.length>0||this.router.url.includes("/brand/"))&&this.environmentVariables?.ENABLE_BRANDS_ROW_IN_SEARCH&&this.environmentVariables?.ENABLE_BRAND_SLUG){let e=(this.windowService.getWindow()?.location.pathname||"").split("/"),i=e.findIndex(h=>h=="brand"),n=decodeURIComponent(e[i+1]),o=this.brands.find(h=>h.slug_ar===n),a=this.brands.find(h=>h.slug===o?.slug_ar||n),u=decodeURIComponent(this.router.url).replace(n,this.lang()=="en"?a?.slug:o?.slug_ar||a?.slug_ar||a?.slug),d=this.lang()=="en"?u.replace("/ar/","/en/"):u.replace("/en/","/ar/");this._location.go(d)}}ngOnDestroy(){this.structuredData.clear("products-list"),this.routerSubscription?.unsubscribe(),this.areaSubscription?.unsubscribe(),this.branchSubscription?.unsubscribe(),this._sidebarSub?.unsubscribe(),this.subscription.unsubscribe(),this.marketingService.resetViewItemListDedup()}selectViewProduct(t){this.isGridView=t,this.storage.setLocal("isGridView",t)}sortingFunction(t,e="asc"){return(i,n)=>0}changePageItemsSort(t){t?(this.filter.sort=t,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{sort:t},queryParamsHandling:"merge",state:{source:"filter"}})):this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{sort:null},queryParamsHandling:"merge",state:{source:"filter"}})}openSideBar(){let t=this.document.body;this.sidenavOpen?this.sidenavOpen=!1:this.sidenavOpen=!0,this.sidenavOpen?t.classList.add("overflow-hidden"):t.classList.remove("overflow-hidden")}searchProductStock(t){this.environmentVariables.MENU_LINK_TYPE==="slug"?(this.router.navigate(["/"+this.lang()+"/product"]),this.filter.in_stock=t.id,this.getAllProducts(this.filter)):(this.router.navigate(["/"+this.lang()+"/product"],{queryParams:{category_id:this.filter.category_id,in_stock:t.id}}),this.filter.in_stock=t.id,this.getAllProducts(this.filter))}searchProductCategory(t){if(this.environmentVariables.MENU_LINK_TYPE==="slug"){let e=this.router.url;this.subCategories=t.groups.sort(this.sortingFunction("order")),this.subCategories.forEach(o=>o.sub_categories.sort(this.sortingFunction("order"))),this.nameGroup=t.name,this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.category_slug=this.lang()=="en"?t.slug:t.slug_ar||t.slug);let i=this.activatedRoute.snapshot.queryParams,n={};i.search&&(n.search=i.search),this.acceptPrice==!0&&(n.price_from=this.minInputValue,n.price_to=this.maxInputValue),this.router.navigate([this.lang()+"/product/"+(this.lang()=="en"?t.slug:this.decodeUrlSegment(t.slug_ar)||t.slug)])}else{this.subCategories=t.groups.sort(this.sortingFunction("order")),this.subCategories.forEach(n=>n.sub_categories.sort(this.sortingFunction("order"))),this.nameGroup=t.name,this.filter.category_id=t.id;let e=this.activatedRoute.snapshot.queryParams,i={category_id:t.id,category_name:t.name};e.search&&(i.search=e.search),this.acceptPrice==!0&&(i.price_from=this.minInputValue,i.price_to=this.maxInputValue),this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:i})}}searchByBrand(t){t?(this.all_brand=!1,this.filter.page=1,this.page=1,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{brand_id:t.id,brand_name:t.name},queryParamsHandling:"merge",skipLocationChange:!0})):(this.all_brand=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{brand_id:""},queryParamsHandling:"merge",skipLocationChange:!0}))}searchProductSubCategory(t,e){this._flog("FILTER: searchProductSubCategory",{checked:t.checked,slug:e?.slug,name:e?.name}),this._navSource="filter",this.filter.sub_categories=[];let i=[],n;if(this.environmentVariables.MENU_LINK_TYPE=="slug"){let o=this.activatedRoute.snapshot.queryParams;if(o.category_id){let a=this.categories.find(d=>d.id==o.category_id),u=a?.groups.flatMap(d=>d.sub_categories.map(h=>({groupId:d.id,slug:h.slug}))).filter(d=>o.sub_category_id?.includes(d.slug));u.push(this.lang()=="en"?e?.slug:e?.slug_ar||e?.slug),this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP?this.router.navigate([`${this.lang()}/product/${this.lang()=="en"?a.slug:a.slug_ar||a.slug}/${u.join("--")}`],{state:{source:"filter"}}):this.router.navigate([`${this.lang()}/product/${this.lang()=="en"?a.slug:a.slug_ar||a.slug}/general/${u.join("--")}`],{state:{source:"filter"}})}else{n=this.categories.filter(f=>f.id==this.filter.category_id)[0]?.name;let a=nt(this.router,this.router.url),u=a.kind==="category"||a.kind==="brand"?a.categorySlug:void 0;e.checked=t.checked;let d=this.lang()=="en"?e.slug:e.slug_ar||e.slug,h=a.kind==="category"?[...a.subCategorySlugs]:[];if(t.checked)h.includes(d)||h.push(d);else{let f=h.indexOf(d);f!==-1&&h.splice(f,1)}if(this.filter.sub_categories_slugs=[...new Set(h)],this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP&&(this.filter.slug=[...this.filter.sub_categories_slugs]),!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){this.filter.group_slugs=[];for(let f of this.filter.sub_categories_slugs)for(let x of this.subCategories||[])if(x.sub_categories?.some(E=>(this.lang()=="en"?E.slug:E.slug_ar||E.slug)===f)){let E=this.lang()=="en"?x.slug:x.slug_ar||x.slug;E&&!this.filter.group_slugs.includes(E)&&this.filter.group_slugs.push(E);break}}this.filter.page=1;let m={queryParams:{page:1},queryParamsHandling:"merge",state:{source:"filter"}},C=this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP?this.filter.slug:this.filter.sub_categories_slugs;if(C.length>0){let f=C.join("--");if(this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){let x=this.activatedRoute.snapshot.params,S=this.lang()=="en"?this.categories.find(T=>T.slug==x.categorySlug):this.categories.find(T=>(this.decodeUrlSegment(T.slug_ar)||T.slug)==x.categorySlug),E=this.findGroupForSubCategory(e.slug),B=this.lang()=="en"?S?.slug:this.decodeUrlSegment(S?.slug_ar)||S?.slug;if(E?.slug){let T=this.lang()=="en"?E?.slug:this.decodeUrlSegment(E?.slug_ar)||E?.slug;this.router.navigate(["/"+this.lang()+"/product/"+B+"/"+T+"/"+this.decodeUrlSegment(f)],m)}else this.router.navigate(["/"+this.lang()+"/product/"+B+"/"+this.decodeUrlSegment(f)],m)}else{let x=this.filter.group_slugs.length==1?this.filter.group_slugs[0]:"general";this.router.navigate(["/"+this.lang()+"/product/"+u+"/"+x+"/"+f],m)}}else u&&this.router.navigate(["/"+this.lang()+"/product/"+u],m)}}else{n=this.categories.filter(u=>u.id==this.filter.category_id)[0]?.name,e.checked=t.checked,this.subCategories.forEac
17h(u=>{this.filter.sub_categories=this.filter.sub_categories.concat(u.sub_categories.filter(d=>d.checked).map(d=>d.id))}),this.subCategories.forEach(u=>{i=i.concat(u.sub_categories.filter(d=>d.checked).map(d=>d.name))});let o=this.filter.sub_categories;this.filter.page=1;let a=this.activatedRoute.snapshot.queryParams;o?.length?(a.in_stock&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_id:a.category_id,category_name:n,in_stock:a.in_stock,page:1}}),a.category_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_id:a.category_id,category_name:n,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"}),a.sub_category_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_id:this.filter.category_id,category_name:n,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"}),a.brand_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{brand_id:a.brand_id,category_name:n,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"}),a.group_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{group_id:a.group_id,category_name:n,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"}),a.search&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_name:n,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"}),a.list_ids&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{list_ids:a.list_ids,sub_category_id:o,sub_category_name:i,page:1},queryParamsHandling:"merge"})):(a.in_stock&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_id:this.filter.category_id,category_name:n,in_stock:this.filter.in_stock,sub_category_id:null,page:1},queryParamsHandling:"merge"}),a.category_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{category_id:this.filter.category_id,category_name:n,sub_category_id:null,page:1},queryParamsHandling:"merge"}),a.brand_id?(this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{brand_id:this.filter.brand_ids,sub_category_id:null,page:1},queryParamsHandling:"merge"}),this.all_brand=!1):this.all_brand=!0,a.group_id&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{group_id:a.group_id,sub_category_id:null,page:1},queryParamsHandling:"merge"}),a.search&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{search:a.search,sub_category_id:null,page:1},queryParamsHandling:"merge"}),a.list_ids&&this.router.navigate(["/"+this.lang()+"/products"],{queryParams:{list_ids:a.list_ids,sub_category_id:null,sub_category_name:null,page:1},queryParamsHandling:"merge"}))}}searchProductByAttributes(t,e){this._flog("FILTER: searchProductByAttributes",{checked:t.checked,id:e?.id,name:e?.name}),e.checked=t.checked,this.filter.options_values_ids=[],this.attributes.forEach(i=>{this.filter.options_values_ids=this.filter.options_values_ids.concat(i.values.filter(n=>{if(n)return n.checked}).map(n=>n.id))}),this.addParamToRouter("options_values_ids",this.filter.options_values_ids)}searchProductByBrand(t,e){if(this._flog("FILTER: searchProductByBrand",{checked:t.checked,id:e?.id,name:e?.name}),this._navSource="filter",this.environmentVariables?.ENABLE_BRAND_SLUG)if(t.checked){e.checked=t.checked;let i=this.brands.filter(n=>n.checked).map(n=>this.lang()=="en"?n.slug:n.slug_ar||n.slug);this.filter.brand_slugs=[...new Set(i)],this.filter.brand_ids=[],this.filter.page=1,this.page=1,this.router.navigate(this.getBrandRoute(e),{state:{source:"filter"}})}else{let i=this.brands.filter(u=>u.checked&&u.id!==e.id);e.checked=t.checked;let n=nt(this.router,this.router.url),o=this.activatedRoute.snapshot.queryParams,a=i.map(u=>this.lang()=="en"?u.slug:u.slug_ar||u.slug);
17if(this.filter.brand_slugs=[...new Set(a)],this.filter.brand_ids=[],this.filter.page=1,this.page=1,n.kind==="brand")if(i.length>0){let u=a.join("--"),d=n.categorySlug?["/",this.lang(),"product",n.categorySlug,"brand",u]:["/",this.lang(),"product","brand",u];this.router.navigate(d,{queryParams:o,state:{source:"filter"}})}else{let u=n.categorySlug?["/",this.lang(),"product",n.categorySlug]:["/",this.lang(),"product"];this.router.navigate(u,{queryParams:o,state:{source:"filter"}})}else e.checked=t.checked,this.router.navigate(["/",this.lang(),"products"],{queryParams:o,state:{source:"filter"}})}else{e.checked=t.checked;let i=this.brands.filter(n=>n.checked==!0);this.filter.brand_ids=[],this.filter.brand_ids=this.filter.brand_ids.concat(i.map(n=>n.id)),this.filter.brand_ids.length>0?this.fixedBrands=this.brands:this.fixedBrands=[],this.fixedBrands?.length&&this.storage.setLocal("fixedBrands",this.fixedBrands),this.addParamToRouter("brand_id",this.filter.brand_ids)}}addParamToRouter(t,e){this._navSource="filter";let i=Object.assign({},this.activatedRoute.snapshot.queryParams);return i[t]=e,i.page=1,this.router.navigate([],{queryParams:i,relativeTo:this.activatedRoute,replaceUrl:!0,queryParamsHandling:"merge",state:{source:"filter"}}),i}trackById=(t,e)=>e?.id;reMapAttributesFromRoute(t){this.attributes?.length&&t?.length&&this.attributes?.forEach(e=>{e.values?.forEach(i=>{i&&t?.forEach(n=>{i.id===Number(n)&&(i.checked=!0)})})})}isShowFeaturedGroups=!1;featuredGroups=[];isShowFeaturedSubCategory=!1;featuredSubCategory=[];selectedCategory=null;selectedGroup=null;selectedSubCategory=null;routeIdentity={isGategoryRouteExist:!1,isGroupRouteExist:!1,isSubCategoryRouteExist:!1,categorySlug:null,groupSlug:null,subCategorySlug:null};getRouting(){this._ftrace(">>> getRouting() ENTERED",{url:this.router.url,subCategoriesCount:this.subCategories?.length,brandsCount:this.brands?.length,attributesCount:this.attributes?.length}),this.categories=this.categories,this.nameRouting=[],Object.assign(this.filter,{q:"",search:"",brand_ids:[],sub_categories:[],sub_categories_slugs:[],categories:[],category_id:"",category_slug:"",price_from:null,price_to:null,page:1,page_size:"24",sort:"",attributes_ids:[],vendor_ids:[],options_values_ids:[],group_id:[],group_slugs:[],list_ids:[],list_slugs:[],tags_slugs:[],promotions:!1,in_stock:"",disable_count:1,slug:[],brand_slugs:[]}),this.router.url.includes("/deals")&&(this.filter.promotions=!0,this.environmentVariables?.ENABLE_DEALS_DEFAULT_SORT_POPULAR&&(this.filter.sort="popular"));let t=this.router.url.split("?")[0].split("/"),e=t[t.length-1];if(t[2]==="product"&&this.router.url.includes("/brand/")&&t[4]){this.filter.brand_slugs=[];let n=t.findIndex(u=>u=="brand"),o=[];t[n+1].includes("?")?o=[t[n+1].split("?")[0]]:o=t[n+1].split("--");let a=o.map(u=>this.decodeUrlSegment(u));this.filter.brand_slugs=[...a]}{let n=this.activatedRoute.snapshot.queryParams;if(n.category_id){if(n.q&&(this.filter.q=n.q,this.q=n.q),n.search?(this.filter.q=n.search,this.q=n.search,this.filter.search=n.search,setTimeout(()=>{this.searchValueWeb.nativeElement.value=n.search},1e3)):(this.searchValueWeb&&(this.searchValueWeb.nativeElement.value=""),this.filter.q="",this.filter.sub_categories=[],this.subCategories=[],this.subCategories.length=0),n.promotions&&(this.filter.promotions=!!n.promotions,this.environmentVariables?.fbPixelId&&!this.environmentVariables?.DISABLE_FB_CONVERSION_WEBSITE_CALL&&this.marketingService.fbTracking("track","OffersBtn",{tag_name:n.promotions}),this.marketingService.conversionApi({view_type:"OffersBtn",data:{tag_name:n.promotions}}).subscribe(),this.environmentVariables?.KEPIXEL_WRITE_KEY&&this.marketingService.kepixelTracking("Promotion Viewed",{name:n.promotions})),n.price_from&&(this.filter.price_from=+n.price_from,this.minInputValue=+n.price_from,this.acceptPrice=!0),n.price_to&&(this.filter.price_to=+n.price_to,this.maxInputValue=+n.price_to,this.acceptPrice=!0),n.in_stock&&(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories=[],this.filter.in_stock=n.in_stock,this.stocks.forEach(o=>{o.id==n.in_stock?o.checked=!0:o.checked=!1}
17)),n.category_id?(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories=[],this.filter.category_id=n.category_id,this.categories.forEach(o=>{o.id==n.category_id?(o.checked=!0,this.nameGroup=o.name,this.addToNameRouting(o),this.subCategories=[...o.groups],this.subCategories.forEach(a=>{a.sub_categories.forEach(u=>{u.checked=!1})}),o.html_top_en?this.content_top_en_html=this.domSanitizer.bypassSecurityTrustHtml(o.html_top_en):this.content_top_en_html="",o.html_top_ar?this.content_top_ar_html=this.domSanitizer.bypassSecurityTrustHtml(o.html_top_ar):this.content_top_ar_html="",o.html_bottom_en?this.content_bottom_en_html=this.domSanitizer.bypassSecurityTrustHtml(o.html_bottom_en):this.content_bottom_en_html="",o.html_bottom_ar?this.content_bottom_ar_html=this.domSanitizer.bypassSecurityTrustHtml(o.html_bottom_ar):this.content_bottom_ar_html=""):o.checked=!1})):this.categories.forEach(o=>{o.checked=!1}),n.group_id&&(n.sub_category_id?this.categories.forEach(o=>{o.groups.forEach(a=>{a.id==n.group_id&&(this.addToNameRouting(o),this.addToNameRouting(a))})}):(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories=[],this.categories.forEach(o=>{o.checked=!1,o.groups.forEach(a=>{a.sub_categories,a.id==n.group_id&&(o.checked=!0,n.category_id||this.addToNameRouting(o),this.addToNameRouting(a),this.filter.category_id=o.id,this.nameGroup=o.name,this.subCategories=o.groups,a.sub_categories.forEach(u=>{u&&this.filter.sub_categories.push(u.id)}))})}))),n.sub_category_id)if(this.showSubCategory=!0,n.search){let o=n.sub_category_id;Array.isArray(n.sub_category_id)?(n.sub_category_id?.length>1?n.sub_category_id.forEach(a=>this.filter.sub_categories.push(a)):this.filter.sub_categories=[n.sub_category_id],this.subCategories.forEach(a=>{a.sub_categories.forEach(u=>{n.sub_category_id.includes(`${u.id}`)?u.checked=!0:u.checked=!1})})):(this.filter.sub_categories=[n.sub_category_id],this.subCategories.forEach(a=>{a.sub_categories.forEach(u=>{n.sub_category_id.includes(`${u.id}`)?u.checked=!0:u.checked=!1})}))}else{n.category_id||(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories=[],this.filter.sub_categories_slugs=[],this.filter.category_id="",this.filter.category_slug="");let o=JSON.parse(JSON.stringify(n.sub_category_id));Array.isArray(o)?o?.length>1?o.forEach(a=>{this.categories.forEach(u=>{u.checked=!1,u.groups.forEach(d=>{d.sub_categories,d.sub_categories.forEach(h=>{h.id==a&&(this.filter.category_id=u.id,u.checked=!0,h.checked=!0,this.subCategories=u.groups,n.category_id||(this.subCategories=u.groups,this.nameGroup=u.name,this.addToNameRouting(u)),this.filter.sub_categories.push(a))})})})}):this.categories.forEach(a=>{a.checked=!1,a.groups.forEach(u=>{u.sub_categories,u.sub_categories.forEach(d=>{d.id==o?(this.filter.category_id=a.id,d.checked=!0,a.checked=!0,this.subCategories=a.groups,n.category_id||(this.subCategories=a.groups,this.nameGroup=a.name),this.addToNameRouting(d),this.filter.sub_categories=o):d.checked=!1})})}):this.categories.forEach(a=>{a.checked=!1,a.groups.forEach(u=>{u.sub_categories,u.sub_categories.forEach(d=>{d.id==o?(this.filter.category_id=a.id,d.checked=!0,a.checked=!0,this.subCategories=a.groups,n.category_id||(this.subCategories=a.groups,this.nameGroup=a.name),this.addToNameRouting(d),this.filter.sub_categories.push(o)):d.checked=!1})})})}if(n.brand_id){this.showBrands=!0;var i;Array.isArray(n.brand_id)?i=this.filter.brand_ids=n.brand_id:i=this.filter.brand_ids=[n.brand_id],this.brands=this.fixedBrands,this.brands?.forEach(a=>{i.includes(a.id)?a.checked=!0:a.checked=!1})}else this.filter.brand_ids=[],this.brands.forEach(o=>o.checked=!1);if(n.list_ids&&(this.filter.list_ids=[n.list_ids],this.hideCategoryIfDisplayCustomList=!0,this.showCategoryIfDisplayCustomList=!0,n.category&&(/^\d+$/.test(String(n.category))?this.filter.category_id=n.category:this.filter.category_slug=n.category)),n.vendor_ids&&(this.filter.vendor_ids=[n.vendor_ids]),n.page&&(this.filter.page=n.page,this.page=n.page),n.options_values_ids){this.showOptions=!0;let o=n.options_values_ids;
17typeof o=="string"?this.filter.options_values_ids=[o]:this.filter.options_values_ids=o}n.sort&&(this.filter.sort=n.sort),this.filter.page_size="24"}else{if(n.q&&(this.filter.q=n.q,this.q=n.q),n.page?(this.filter.page=n.page,this.page=n.page):(this.filter.page=1,this.page=1),n.sub_category_id&&this.filter.sub_categories.push(n.sub_category_id),n.sub_category_name&&this.filter.sub_categories.push(n.sub_category_name),n.search){let a=this.document.createElement("script");a.type="application/ld+json",a.text=`{ 18 "@context": "https://schema.org/", 19 "@type": "WebSite", 20 "name": "${this.environmentVariables.APP_NAME}", 21 "alternateName":"${this.environmentVariables.APP_NAME}", 22 "url": "${this.environmentVariables.WEBSITE_URL}", 23 "potentialAction": { 24 "@type": "SearchAction", 25 "target": "${this.environmentVariables.WEBSITE_URL+this.router.url}", 26 "query-input": "required name=search_term_string" 27 } 28 } 29 `,this.document.body.appendChild(a),this.filter.q=n.search,this.q=n.search,this.filter.search=n.search,setTimeout(()=>{this.searchValueWeb.nativeElement.value=n.search},1e3)}else this.searchValueWeb&&(this.searchValueWeb.nativeElement.value=""),this.filter.q="",this.filter.sub_categories_slugs=[],this.subCategories=[],this.subCategories.length=0;n.promotions&&(this.filter.promotions=!!n.promotions,this.environmentVariables?.fbPixelId&&!this.environmentVariables?.DISABLE_FB_CONVERSION_WEBSITE_CALL&&this.marketingService.fbTracking("track","OffersBtn",{tag_name:n.promotions}),this.marketingService.conversionApi({view_type:"OffersBtn",data:{tag_name:n.promotions}}).subscribe(),this.environmentVariables?.KEPIXEL_WRITE_KEY&&this.marketingService.kepixelTracking("Promotion Viewed",{name:n.promotions})),n.price_from&&(this.filter.price_from=+n.price_from,this.minInputValue=+n.price_from,this.acceptPrice=!0),n.price_to&&(this.filter.price_to=+n.price_to,this.maxInputValue=+n.price_to,this.acceptPrice=!0),n.group_id&&this.filter.group_id.push(n.group_id),n.in_stock&&(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories_slugs=[],this.filter.in_stock=n.in_stock,this.stocks.forEach(a=>{a.id==n.in_stock?a.checked=!0:a.checked=!1}));let o=this.router.url.split("?")[0].split("/");if(o[3]?.length>0&&!o.includes("list")&&!o.includes("tag_name")&&!o.includes("brand")?(this.lang()=="en"?(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${o[3]} `:` ${o[3]} | ${this.environmentVariables?.META_TITLE_EN?this.environmentVariables?.META_TITLE_EN:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${o[3]} | ${this.environmentVariables?.metaDescriptionEn?this.environmentVariables?.metaDescriptionEn:`Shop for it at ${this.environmentVariables?.APP_NAME}.Shop Quality with direct Delivery or Pickup. It's now easier than ever to buy it online from ${this.environmentVariables?.APP_NAME}`}`)):(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${o[3]} `:` ${o[3]} | ${this.environmentVariables?.META_TITLE_AR?this.environmentVariables?.META_TITLE_AR:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${o[3]} | ${this.environmentVariables?.metaDescriptionAr?this.environmentVariables?.metaDescriptionAr:`\u0639\u0650\u062F\u0652 \u0625\u0644\u0649 \u0645\u062A\u062C\u0631\u0646\u0627 \u0639\u0644\u0649 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A${this.environmentVariables?.APP_NAME}.\u0648\u062A\u0633\u0648\u0651\u0642 \u0628\u062C\u0648\u062F\u0629 \u0639\u0627\u0644\u064A\u0629 \u0645\u0639 \u0627\u0644\u062A\u0648\u0635\u064A\u0644 \u0627\u0644\u0645\u0628\u0627\u0634\u0631 \u0623\u0648 \u0627\u0644\u0627\u0633\u062A\u0644\u0627\u0645. \u0623\u0635\u0628\u062D \u0627\u0644\u0622\u0646 \u0623\u0633\u0647\u0644 \u0645\u0646 \u0623\u064A \u0648\u0642\u062A\u064D \u0645\u0636\u0649 \u0634\u0631\u0627\u0621 \u0645\u0627 \u062A\u062D\u062A\u0627\u062C\u0647 \u0639\u0628\u0631 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A \u0645\u0646${this.environmentVariables?.APP_NAME}`}`)),this.subCategories=[],JSON.stringify(n.sub_category_id),this.subCategories.length=0,!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP&&!this.router.url.includes("/brand/")&&!this.router.url.includes("/deals")&&(this.filter.category_slug=o[3]?.split("?")[0]),this.categories.forEac
29h(a=>{(this.lang()=="en"?a?.slug==this.truncateBeforeQuestionMark(o[3]):this.decodeUrlSegment(a?.slug_ar)==this.decodeUrlSegment(this.truncateBeforeQuestionMark(o[3]))||this.decodeUrlSegment(a?.slug)==this.decodeUrlSegment(this.truncateBeforeQuestionMark(o[3])))?(a.checked=!0,this.nameGroup=a.name,this.addToNameRouting(a),this.subCategories=[...a.groups],this.subCategories.forEach(u=>{u.sub_categories.forEach(d=>{d.checked=!1})})):a.checked=!1})):this.categories.forEach(a=>{a.checked=!1}),this.filter.group_slugs[0]||o[4]?.length>0&&!o.includes("list")&&!o.includes("tag_name")&&!this.router.url.includes("/brand/")){if(this.lang()=="en"?(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${this.filter.slug[0]} `:` ${this.filter.slug[0]&&this.environmentVariables?.META_TITLE_EN?this.filter.slug[0]+" | "+this.environmentVariables?.META_TITLE_EN:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${this.filter.slug[0]} | ${this.environmentVariables?.metaDescriptionEn?this.environmentVariables?.metaDescriptionEn:`Shop for it at ${this.environmentVariables?.APP_NAME}.Shop Quality with direct Delivery or Pickup. It's now easier than ever to buy it online from ${this.environmentVariables?.APP_NAME}`}`)):(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${this.filter.slug[0]} `:` ${this.filter.slug[0]} | ${this.environmentVariables?.META_TITLE_AR?this.environmentVariables?.META_TITLE_AR:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${this.filter.slug[0]} | ${this.environmentVariables?.metaDescriptionAr?this.environmentVariables?.metaDescriptionAr:`\u0639\u0650\u062F\u0652 \u0625\u0644\u0649 \u0645\u062A\u062C\u0631\u0646\u0627 \u0639\u0644\u0649 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A${this.environmentVariables?.APP_NAME}.\u0648\u062A\u0633\u0648\u0651\u0642 \u0628\u062C\u0648\u062F\u0629 \u0639\u0627\u0644\u064A\u0629 \u0645\u0639 \u0627\u0644\u062A\u0648\u0635\u064A\u0644 \u0627\u0644\u0645\u0628\u0627\u0634\u0631 \u0623\u0648 \u0627\u0644\u0627\u0633\u062A\u0644\u0627\u0645. \u0623\u0635\u0628\u062D \u0627\u0644\u0622\u0646 \u0623\u0633\u0647\u0644 \u0645\u0646 \u0623\u064A \u0648\u0642\u062A\u064D \u0645\u0636\u0649 \u0634\u0631\u0627\u0621 \u0645\u0627 \u062A\u062D\u062A\u0627\u062C\u0647 \u0639\u0628\u0631 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A \u0645\u0646${this.environmentVariables?.APP_NAME}`}`)),!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){let a=this.decodeUrlSegment(o[4]);this.filter.group_slugs=a!="general"?Array(a?.split("?")[0]):[]}if(o[5]?.length==0)this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories_slugs=[],this.filter.category_slug="",this.categories.forEach(a=>{a.checked=!1,a.groups.forEach(u=>{u.sub_categories;let d=this.decodeUrlSegment(o[4]);(this.lang()=="en"?u.slug==d:u.slug_ar==d||u.slug==d)&&(a.checked=!0,o[3]?.length==0&&this.addToNameRouting(a),this.addToNameRouting(u),this.filter.category_slug=this.lang()=="en"?a.slug:a.slug_ar,this.nameGroup=a.name,this.subCategories=a.groups,u.sub_categories.forEach(h=>{if(h&&(this.filter.sub_categories_slugs=[],o[5])){let m=o[5].includes("?")?o[5].split("?")[0].split("--"):o[5].split("--");m[0]&&(this.filter.sub_categories_slugs.push(...new Set(m[0]?m:[])),this.filter.sub_categories_slugs=[...new Set(this.filter.sub_categories_slugs)])}}))})});else{let a=o[4]?decodeURIComponent(o[4]):"";this.categories.forEach(u=>{u.groups.forEach(d=>{(this.lang()=="en"?d?.slug==a:d?.slug_ar==a||d?.slug==a)&&(this.addToNameRouting(d),o[5]&&o[5].includes("?")&&d?.sub_categories.forEach(h=>{(this.lang()=="en"?h?.slug===o[5].split("?")[0]:h?.slug_ar===o[5].split("?")[0]||h?.slug===o[5].split("?")[0])&&this.addToNameRouting(h)})),a.includes("?")&&(this.lang()=="en"?d?.slug==a.split("?")[0]:d?.slug_ar==a.split("?")[0]||d?.slug==a.split("?")[0])&&this.addToNameRouting(d)})})}}if(o[5]&&!o.includes("list")&&!o.includes("tag_name")&&!this.router.url.includes("/brand/"))if(this.showSubCategory=!0,n.search){let a=this.decodeUrlSegment(o[5]);Array.isArray(o[5])?(o[5]?.length>
291?o[5].forEach(u=>this.filter.sub_categories_slugs.push(a.includes("?")?a.split("?")[0].split("--"):a.split("--"))):this.filter.sub_categories_slugs=[],this.filter.sub_categories_slugs.push(...new Set(a.includes("?")?a.split("?")[0].split("--"):a.split("--"))),this.subCategories.forEach(u=>{u.sub_categories.forEach(d=>{a.split("--").includes(`${d.slug}`)?d.checked=!0:d.checked=!1})})):(this.filter.sub_categories_slugs=[...new Set(a.includes("?")?a.split("?")[0].split("--"):a.split("--"))],this.subCategories.forEach(u=>{u.sub_categories.forEach(d=>{a.split("--").includes(`${d.slug}`)?d.checked=!0:d.checked=!1})}))}else{o[3]?.length==0&&(this.subCategories=[],this.subCategories.length=0,this.filter.sub_categories_slugs=[],this.filter.category_slug="");let a=this.decodeUrlSegment(o[5]),u=a?.split("--");{let d=a.split("?");this.lang()=="en"?(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${d[0]} `:` ${d[0]} | ${this.environmentVariables?.META_TITLE_EN?this.environmentVariables?.META_TITLE_EN:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${d[0]} | ${this.environmentVariables?.metaDescriptionEn?this.environmentVariables?.metaDescriptionEn:`Shop for it at ${this.environmentVariables?.APP_NAME}.Shop Quality with direct Delivery or Pickup. It's now easier than ever to buy it online from ${this.environmentVariables?.APP_NAME}`}`)):(this.metaService.setTitle(this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE?` ${d[0]} `:` ${d[0]} | ${this.environmentVariables?.META_TITLE_AR?this.environmentVariables?.META_TITLE_AR:this.environmentVariables?.APP_NAME} `),this.document.getElementById("MetaDescription")?.setAttribute("content",`${d[0]} | ${this.environmentVariables?.metaDescriptionAr?this.environmentVariables?.metaDescriptionAr:`\u0639\u0650\u062F\u0652 \u0625\u0644\u0649 \u0645\u062A\u062C\u0631\u0646\u0627 \u0639\u0644\u0649 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A${this.environmentVariables?.APP_NAME}.\u0648\u062A\u0633\u0648\u0651\u0642 \u0628\u062C\u0648\u062F\u0629 \u0639\u0627\u0644\u064A\u0629 \u0645\u0639 \u0627\u0644\u062A\u0648\u0635\u064A\u0644 \u0627\u0644\u0645\u0628\u0627\u0634\u0631 \u0623\u0648 \u0627\u0644\u0627\u0633\u062A\u0644\u0627\u0645. \u0623\u0635\u0628\u062D \u0627\u0644\u0622\u0646 \u0623\u0633\u0647\u0644 \u0645\u0646 \u0623\u064A \u0648\u0642\u062A\u064D \u0645\u0636\u0649 \u0634\u0631\u0627\u0621 \u0645\u0627 \u062A\u062D\u062A\u0627\u062C\u0647 \u0639\u0628\u0631 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A \u0645\u0646${this.environmentVariables?.APP_NAME}`}`))}if(u){let d=new Set(u);this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.sub_categories_slugs=[...d]),this.categories.forEach(h=>{h.checked=!1,h.groups.forEach(m=>{m.sub_categories.forEach(C=>{let f=this.lang()=="en"?C.slug:this.decodeUrlSegment(C.slug_ar)||C.slug;if(C.checked=d.has(f),C.checked){if(h.checked=!0,this.subCategories=h.groups,!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){let x=this.decodeUrlSegment(o[4]);this.filter.group_slugs=x!="general"?Array(x):[]}o[3]?.length==0&&(this.nameGroup=h.name,u.length>1&&this.addToNameRouting(h)),u.length<=1&&(this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.category_slug=this.lang()=="en"?h.slug:this.decodeUrlSegment(h.slug_ar)||h.slug),this.addToNameRouting(C))}})})})}else this.categories.forEach(d=>{d.checked=!1,d.groups.forEach(h=>{h.sub_categories,h.sub_categories.forEach(m=>{(this.lang()=="en"?m.slug==a:this.decodeUrlSegment(m.slug_ar)==a||m.slug==a)?(this.filter.category_slug=this.lang()=="en"?d.slug:this.decodeUrlSegment(d.slug_ar)||d.slug,m.checked=!0,d.checked=!0,this.subCategories=d.groups,o[3]?.length==0&&(this.subCategories=d.groups,this.nameGroup=d.name),this.addToNameRouting(m),this.filter.sub_categories_slugs=[],this.filter.sub_categories_slugs.push(...new Set(a.includes("?")?a.split("?")[0].split("--"):a.split("--"))),this.filter.sub_categories_slugs=[...new Set(this.filter.sub_categories_slugs)]):m.checked=!1})})})}if(n.brand_id){this.showBrands=!0;var i;Array.isArray(n.brand_id)?i=this.filter.brand_ids=n.brand_id:i=this.filter.brand_ids=[n.brand_id],this.brands=this.fixedBrands,this.brands?.forEach(a=>{i.includes(a.id)?a.checked=!0:a.checked=!1}
29)}else this.filter.brand_ids=[],this.brands.forEach(a=>a.checked=!1);if(n.list_ids&&(this.filter.list_ids=[n.list_ids],this.hideCategoryIfDisplayCustomList=!0,this.showCategoryIfDisplayCustomList=!0),n.page){this.filter.page=n.page,this.page=n.page;{let a=this.activatedRoute.snapshot.params;if(a.subCategorySlug){let u=this.decodeUrlSegment(a.subCategorySlug);this.subCategories.forEach(d=>{let h=d.sub_categories.find(m=>m.slug===u);h&&this.addToNameRouting(h)})}else if(a.categorySlug){let u=this.router.url.split("?")[0].split("/");if(u[4]){let d=this.lang()=="en"?this.categories.find(h=>h.slug===a.categorySlug):this.categories.find(h=>this.decodeUrlSegment(h.slug_ar)===a.categorySlug||h.slug===a.categorySlug);if(d){let h=u[4].split("?")[0],m=d.groups.find(C=>C.slug===h);this.addToNameRouting(m)}}else if(u[3]){let d=this.lang()=="en"?this.categories.find(h=>h.slug===a.categorySlug):this.categories.find(h=>this.decodeUrlSegment(h.slug_ar)===a.categorySlug||h.slug===a.categorySlug);this.addToNameRouting(d)}}}}if(n.options_values_ids||n.attribute_id){this.showOptions=!0;let a=n.options_values_ids||n.attribute_id;typeof a=="string"?this.filter.options_values_ids=[a]:this.filter.options_values_ids=a}n.sort&&(this.filter.sort=n.sort),this.filter.page_size="24"}n.vendor_ids?this.filter.vendor_ids=[n.vendor_ids]:this.filter.vendor_ids=[],n.search&&this.addToNameRouting({id:1,name_en:`Searching Result for "${n.search}"`,name_ar:`\u0646\u062A\u0627\u0626\u062C \u0627\u0644\u0628\u062D\u062B \u0639\u0646 "${n.search}"`})}{let n=this.activatedRoute.snapshot.params;if(this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){if(!this.router.url.includes("/brand/"))this.routeIdentity.isGategoryRouteExist=!!n.categorySlug,this.routeIdentity.categorySlug=n.categorySlug?n.categorySlug:null;else{this.routeIdentity.isGategoryRouteExist=!0;let d=this.router.url.split("?")[0].split("/"),h=d.findIndex(m=>m=="brand");this.routeIdentity.categorySlug=d[h+1]||null}if(this.routeIdentity.isGroupRouteExist=this.checkGroupSlugExists(n.categorySlug,n.groupSlug),this.routeIdentity.groupSlug=this.routeIdentity.isGroupRouteExist?n.groupSlug:null,this.routeIdentity.isSubCategoryRouteExist=this.checkSubCategoryRouteExists(n.categorySlug,n.groupSlug,n.subCategorySlug),this.routeIdentity.isSubCategoryRouteExist){let d;if(this.lang()=="en"?d=this.categories.find(C=>C.slug===n.categorySlug):d=this.categories.find(C=>this.decodeUrlSegment(C.slug_ar)===n.categorySlug||C.slug===n.categorySlug),d)for(let C of d?.groups){let f=C.sub_categories.find(x=>x.slug===n.groupSlug);if(f){this.nameRouting.push(f);break}}let h=e.split("?")[0];if(this.router.url.includes("/brand/")){let C=this.router.url.split("/").findIndex(f=>f=="brand");h=this.router.url.split("/")[C-1]!=="product"?this.router.url.split("/")[C-1]:""}let m=h.split("--");this.filter.slug=[...new Set(m.filter(C=>C!=="deals"&&C!=="").map(C=>this.decodeUrlSegment(C)))]}else{let d=e.split("?")[0];if(this.router.url.includes("/brand/")){let m=this.router.url.split("/").findIndex(C=>C=="brand");d=this.router.url.split("/")[m-1]==="product"?d:""}let h=d.split("--");this.filter.slug=[...new Set(h.filter(m=>m!=="deals"&&m!=="products"&&m!=="").map(m=>this.decodeUrlSegment(m)))]}n.categorySlug&&n.groupSlug==="general"&&!n.subCategorySlug&&!this.router.url.includes("/brand/")&&(this.filter.slug=[this.decodeUrlSegment(n.categorySlug)]);let a;this.lang()=="en"?a=this.categories.find(d=>d.slug===n.categorySlug):a=this.categories.find(d=>this.decodeUrlSegment(d.slug_ar)===n.categorySlug||d.slug===n.categorySlug);let u=a&&a?.groups.find(d=>this.lang()=="en"?d.slug===n.groupSlug:this.decodeUrlSegment(d.slug_ar)===n.groupSlug||d.slug===n.groupSlug);if(a&&this.routeIdentity.isSubCategoryRouteExist){let d=this.decodeUrlSegment(n.subCategorySlug),h=u&&u.sub_categories.find(m=>m.slug===d);this.selectedSubCategory=h}}if(n.list_id_slug){let o=n.list_id_slug;this.hideCategoryIfDisplayCustomList=!0,this.showCategoryIfDisplayCustomList=!0,this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP?(this.filter.slug=[o],this.filter.list_slugs=[]):(this.filter.list_slugs=[o],this.filter.slug=[]);let a=this.activatedRoute.snapshot.queryParams.category;a&&(/^\d+$/.test(String(a))?this.filter.category_id=a:this.filter.category_slug=a)}if(n.categorySlug&&!this.router.url.includes("/brand/")&&(this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.category_slug=n.categorySlug)),n.categorySlug&&this.router.url.includes("/brand/")&&!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){let o=this.router.url.split("/").findIndex(a=>a=="brand");this.filter.category_slug=this.router.url.split("/")[o-1]!=="product"?this.router.url.split("/")[o-1]:""}if(this.router.url.includes("/brand/")&&this.environmentVariables?.ENABLE_BRAND_SLUG&&this.setBrandNameRoutingFromCache(),this.activatedRoute.snapshot.queryParams.brand_id&&this.setBrandNameRoutingFromBrandIdCache(),n.tag_name&&(this.filter.tags_slugs=[n.tag_name],this.nameRouting=[{id:1,name_en:n.tag_name,name_ar:"\u0639\u0644\u0627\u0645\u0627\u062A",slug:"/"}]),!n.groupSlug&&n.categorySlug&&!this.router.url.includes("/brand/")){let o;this.lang()=="en"?o=this.categories.find(a=>a?.slug===n?.categorySlug):o=this.categories.find(a=>this.decodeUrlSegment(a?.slug_ar)===n?.categorySlug||a?.slug===n?.categorySlug),this.categories.forEac
29h(a=>{a?.slug==o?.slug?(a.checked=!0,this.subCategories=a.groups):a.checked=!1}),o?.html_top_en?this.content_top_en_html=this.domSanitizer.bypassSecurityTrustHtml(o?.html_top_en):this.content_top_en_html="",o?.html_top_ar?this.content_top_ar_html=this.domSanitizer.bypassSecurityTrustHtml(o?.html_top_ar):this.content_top_ar_html="",o?.html_bottom_en?this.content_bottom_en_html=this.domSanitizer.bypassSecurityTrustHtml(o?.html_bottom_en):this.content_bottom_en_html="",o?.html_bottom_ar?this.content_bottom_ar_html=this.domSanitizer.bypassSecurityTrustHtml(o?.html_bottom_ar):this.content_bottom_ar_html=""}if(n.groupSlug&&n.categorySlug&&!n.subCategorySlug&&!this.router.url.includes("/brand/")){let o=this.router.url.split("?")[0].split("/"),u=this.decodeUrlSegment(o[4])?.split("--");if(u){let m=new Set(u);!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP&&o[5]&&(this.filter.sub_categories_slugs=[...new Set(o[5].includes("?")?o[5].split("?")[0].split("--"):o[5].split("--"))]),this.categories.forEach(C=>{C.checked=!1,C.groups.forEach(f=>{f.sub_categories.forEach(x=>{let S=this.lang()=="en"?x.slug:this.decodeUrlSegment(x.slug_ar)||x.slug;if(x.checked=m.has(S),x.checked){if(C.checked=!0,this.subCategories=C.groups,!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP){let E=this.decodeUrlSegment(o[4]);this.filter.group_slugs=E!="general"?Array(E):[]}o[3]?.length==0&&(this.nameGroup=C.name,this.addToNameRouting(C))}})})})}else this.categories.forEach(m=>{m.checked=!1,m.groups.forEach(C=>{C.sub_categories,C.sub_categories.forEach(f=>{f.slug==o[5]?(this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.category_slug=m.slug),f.checked=!0,m.checked=!0,this.subCategories=m.groups,o[3]?.length==0&&(this.subCategories=m.groups,this.nameGroup=m.name),this.addToNameRouting(f),this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP||(this.filter.sub_categories_slugs=[...new Set(o[5].includes("?")?o[5].split("?")[0].split("--"):o[5].split("--"))]),this.filter.sub_categories_slugs=[...new Set(this.filter.sub_categories_slugs)]):f.checked=!1})})});let d;this.lang()=="en"?d=this.categories.find(m=>m.slug===n.categorySlug):d=this.categories.find(m=>this.decodeUrlSegment(m.slug_ar)===n.categorySlug||m.slug===n.categorySlug);let h=d&&d?.groups.find(m=>this.lang()=="en"?m.slug===n.groupSlug:this.decodeUrlSegment(m.slug_ar)===n.groupSlug||m.slug===n.groupSlug);h?.html_top_en?this.content_top_en_html=this.domSanitizer.bypassSecurityTrustHtml(h.html_top_en):this.content_top_en_html="",h?.html_top_ar?this.content_top_ar_html=this.domSanitizer.bypassSecurityTrustHtml(h.html_top_ar):this.content_top_ar_html="",h?.html_bottom_en?this.content_bottom_en_html=this.domSanitizer.bypassSecurityTrustHtml(h.html_bottom_en):this.content_bottom_en_html="",h?.html_bottom_ar?this.content_bottom_ar_html=this.domSanitizer.bypassSecurityTrustHtml(h.html_bottom_ar):this.content_bottom_ar_html="",d&&d?.groups.length>0?(this.isShowFeaturedGroups=!0,this.featuredGroups=d?.groups,this.selectedCategory=d,this.selectedGroup=h,h&&h.sub_categories.length>0?(this.isShowFeaturedSubCategory=!0,this.featuredSubCategory=h.sub_categories):(this.isShowFeaturedSubCategory=!1,this.featuredSubCategory=[])):(this.isShowFeaturedGroups=!1,this.featuredGroups=[],this.selectedCategory=null,this.selectedGroup=null,this.selectedSubCategory=null)}if(n.categorySlug&&n.groupSlug&&n.subCategorySlug&&!this.router.url.includes("/brand/")){let o;this.lang()=="en"?o=this.categories.find(h=>h.slug===n.categorySlug):o=this.categories.find(h=>this.decodeUrlSegment(h.slug_ar)===n.categorySlug||h.slug===n.categorySlug);let a=o&&o?.groups.find(h=>this.lang()=="en"?h.slug===n.groupSlug:this.decodeUrlSegment(h.slug_ar)===n.groupSlug||h.slug===n.groupSlug),u=this.decodeUrlSegment(n.subCategorySlug),d=a&&a.sub_categories.find(h=>h.slug===u);d?.html_top_en?this.content_top_en_html=this.domSanitizer.bypassSecurityTrustHtml(d.html_top_en):this.content_top_en_html=null,d?.html_top_ar?this.content_top_ar_html=this.domSanitizer.bypassSecurityTrustHtml(d.html_top_ar):this.content_top_ar_html=null,d?.html_bottom_en?this.content_bottom_en_html=this.domSanitizer.bypassSecurityTrustHtml(d.html_bottom_en):this.content_bottom_en_html=null,d?.html_bottom_ar?this.content_bottom_ar_html=this.domSanitizer.bypassSecurityTrustHtml(d.html_bottom_ar):this.content_bottom_ar_html=null,o&&o?.groups.length>0?(this.isShowFeaturedGroups=!0,this.featuredGroups=o?.groups,this.selectedCategory=o,this.selectedGroup=a,this.selectedSubCategory=d):(this.isShowFeaturedGroups=!1,this.featuredGroups=[],this.selectedCategory=null,this.selectedGroup=null,this.selectedSubCategory=null),d&&a.sub_categories.length>0?(this.isShowFeaturedSubCategory=!0,this.featuredSubCategory=a.sub_categories,this.selectedCategory=o,this.selectedGroup=a,this.selectedSubCategory=d):(this.isShowFeaturedSubCategory=!1,this.featuredSubCategory=[],this.selectedCategory=null,this.selectedGroup=null,this.selectedSubCategory=null)}{let o=this.router.url.split("?")[0].split("/");if(o[5]){let a;this.lang()=="en"?a=this.categories.find(m=>m.slug===n.categorySlug):a=this.categories.find(m=>this.decodeUrlSegment(m.slug_ar)===n.categorySlug||m.slug===n.categorySlug);let u=a&&a?.groups.find(m=>this.lang()=="en"?m.slug===n.groupSlug:this.decodeUrlSegment(m.slug_ar)===n.groupSlug||m.slug===n.groupSlug),d=this.decodeUrlSegment(n.subCategorySlug),h=u&&u.sub_categories.find(m=>m.slug===d);h&&this.metaService.setSubCategoryMeta(h,this.lang())}else if(o[3]&&o.length===4){let a;this.lang()=="en"?a=this.categories.find(u=>u.slug===n.categorySlug):a=this.categories.find(u=>this.decodeUrlSegment(u.slug_ar)===n.categorySlug||u.slug===n.categorySlug),this.categories.forEac
29h(u=>{u.checked=!1,u?.slug==a?.slug&&(u.checked=!0,this.subCategories=u.groups)}),a&&this.metaService.setCategoryMeta(a,this.lang())}else if(o[4]&&o.length===5){let a;this.lang()=="en"?a=this.categories.find(d=>d.slug===n.categorySlug):a=this.categories.find(d=>this.decodeUrlSegment(d.slug_ar)===n.categorySlug||d.slug===n.categorySlug);let u=a&&a.groups?.find(d=>this.lang()=="en"?d.slug===n.groupSlug:this.decodeUrlSegment(d.slug_ar)===n.groupSlug||d.slug===n.groupSlug);if(u)this.metaService.setGroupMeta(u,this.lang());else if(a){let d=a.groups?.length===1?a.groups[0]:null;if(!!d&&(d.name==="general"||d.name==="General"||d.name_en==="general"||d.name_en==="General"||d.name_ar==="general"||d.name_ar==="General")){let m=d.sub_categories?.find(C=>this.lang()=="en"?C.slug===n.groupSlug:this.decodeUrlSegment(C.slug_ar)===n.groupSlug||C.slug===n.groupSlug);m&&this.metaService.setSubCategoryMeta(m,this.lang())}}}}}this.getAllProducts(this.filter)}getAllProducts(t,e={}){if(vt(this.platformId)&&(this._hasSsrCache||this._ssrSkipProducts)){this._ftrace(">>> getAllProducts() SKIPPED on SSR (cached from resolver or multi-inventory skip)");return}this._ftrace(">>> getAllProducts() ENTERED",{subCatSlugs:t?.sub_categories_slugs,brandIds:t?.brand_ids,optionIds:t?.options_values_ids,page:t?.page,silent:e.silent});let i=!!this.products?.length&&this._renderedUrl===this.router.url;!e.silent&&!i&&(this.loading=!0,this.showResult=!1),this.environmentVariables?.fbPixelId&&!this.environmentVariables?.DISABLE_FB_CONVERSION_WEBSITE_CALL&&this.filter.search&&this.marketingService.fbTracking("track","Search",{search_string:this.filter.search}),this.filter.search&&this.marketingService.conversionApi({view_type:"Search",data:{search_string:this.filter.search}}).subscribe(),this.environmentVariables?.kepixel&&this.marketingService.kepixelTracking("Products Searched",{query:this.filter.search}),this.marketingService.snapTracking("track","SEARCH",{search_string:this.filter.search}),this.environmentVariables?.tiktokPixelId&&this.marketingService.ttqTracking("track","ViewContent",{content_name:`${this.filter.search}`,content_category:`${this.filter.category_id}`,content_type:"search"}),this.environmentVariables?.GOOGLE_CONVERSION_ID&&this.environmentVariables?.GOOGLE_ANALYTICS_ID&&this.marketingService.GA4Seach(this.filter.search);let n=nt(this.router,this.router.url);this.filter.category_slug=="deals"&&n.kind==="deals"&&n.name&&(this.filter.category_slug=n.name),this.filter.promotions==!0&&(this.filter.group_slugs=[]),n.kind==="category"&&n.subCategorySlugs.length>0&&!this.showCategoryIfDisplayCustomList&&n.subCategorySlugs[0]&&!this.environmentVariables?.ENABLE_REMOVE_GENERAL_GROUP&&(this.filter.sub_categories_slugs=[...new Set(n.subCategorySlugs)]),n.kind==="tag"&&(this.filter.category_slug="",this.filter.group_slugs=[]),this.acceptPrice||(this.filter.price_from=null,this.filter.price_to=null);let o=this.ProductsService.getProductsSearch(this.filter,"enable_search_side_filters=1").subscribe(a=>{if(this._flog("getAllProducts RESPONSE arrived",{productsCount:a?.data?.products?.length,brandsCount:a?.data?.brands?.length,optionsCount:a?.data?.products_options?.length,subCategoriesCount:a?.data?.sub_categories?.length}),vt(this.platformId)){let f="products-list:"+Lt(this.router.url);this.transferState.set(f,a)}if(this.loading=!1,this.objectProducts=a?.data,this.totalPage=this.objectProducts?.total_products,this.products=this.objectProducts?.products,this.priceSync.markReconciled(),this._renderedUrl=this.router.url,this.cretaeProductSchema(this.products),this.updatePaginationSeoLinks(),this.total=this.objectProducts?.total_products,this.filter.search&&this.marketingService.dataLayerSearchEvent(this.filter.search,a.data.products?.length||0),this.products?.length){let f=this.nameRouting?.[0],x=f?.id||this.filter.category_id||null,S=(this.lang()=="en"?f?.name_en||f?.name:f?.name_ar||f?.name)||this.nameGroup||null,E=this.windowService.getWindow()?.location?.origin||"",B=this.lang()==="en"?this.environmentVariables?.localization?.currency_code_en:this.environmentVariables?.localization?.currency_code_ar,T=this.lang(),G=this.marketingService.stripNullish({currency:B,item_list_id:x!=null?String(x):null,item_list_name:S,items:this.products.map(w=>{let j=[w.category?.id,...w.category?.sub_categories?.map(F=>
29F.id)||[]].filter(Boolean),Y=T==="en"?[w.category?.name,...w.category?.sub_categories?.map(F=>F.name)||[]].filter(Boolean):[w.category?.name_ar||w.category?.name,...w.category?.sub_categories?.map(F=>F.name_ar||F.name)||[]].filter(Boolean);return this.marketingService.stripNullish({item_id:w.sku!=null?String(w.sku):null,item_name:w.name||null,item_brand:w.details?.brand?.name||w.brand?.name||null,item_category:T==="en"?w.category?.name||null:w.category?.name_ar||w.category?.name||null,item_category2:T==="en"?w.category?.sub_categories?.[0]?.name||null:w.category?.sub_categories?.[0]?.name_ar||w.category?.sub_categories?.[0]?.name||null,item_category3:T==="en"?w.category?.sub_categories?.[1]?.name||null:w.category?.sub_categories?.[1]?.name_ar||w.category?.sub_categories?.[1]?.name||null,category_id:w.category?.id!=null?String(w.category.id):null,all_category_ids:j.length?j.join(", "):null,all_categories:Y.length?Y.join(", "):null,price:w.price||null,shelf_price:w.price!=null?Number((w.price/(w.amount||1)).toFixed(2)):null,discount:w.discount_price?w.discount_price:0,currency:B,item_availability:w.in_stock?"available":"unavailable",item_image_link:w.image||null,item_link:E+"/"+T+"/"+(T==="en"?w.slug:w.slug_ar||w.slug)||null,item_list_id:x!=null?String(x):w.category?.id!=null?String(w.category.id):null,item_list_name:S||(T==="en"?w.category?.name:w.category?.name_ar||w.category?.name)||null,coupon:this.marketingService.resolveProductCoupon(w,T),is_rx_medication:w.need_prescription===1})})}),q=[T,x??"",this.filter?.page??"",this.products.map(w=>w?.sku??w?.id??"").join(",")].join("|");this.marketingService.dataLayerViewItemListEvent({ecommerce:G},q)}let u=this.objectProducts?.products?.length>0;this.objectProducts?.products_options?.length&&(this.attributes=this.objectProducts.products_options),u||this._ensureSidebarData();let d=[];this.products?.forEach((f,x)=>{let S={item_name:f.name,item_id:f.id,price:f.discount_price?f.discount_price:f.price,item_brand:f.details&&f.details.brand?f.details.brand.name:"",item_category:f.category?f.category.name:"-",item_category2:f.category&&f.category.sub_categories?f.category.sub_categories[0].name:"-",item_list_name:f.actegory?f.actegory.id:"",item_list_id:f.actegory?f.actegory.name:"",index:x+1};d.push(S)});let h={event:"search",ecommerce:{items:d,search_term:this.filter.search,extras:this.account.googleAnalaticsUserData}},m=this.activatedRoute.snapshot.queryParams;{if(m.brand_id){var C;if(Array.isArray(m.brand_id)?C=this.filter.brand_ids=m.brand_id:C=this.filter.brand_ids=[m.brand_id],this.brands=this.fixedBrands?.length?this.fixedBrands:a?.data?.brands,this.brands?.forEach(f=>{C.includes(`${f.id}`)?f.checked=!0:f.checked=!1}),a?.data?.brands?.length>0){let f;f=a?.data?.brands.find(x=>x.id===+m.brand_id),f?this.nameRouting=[{id:f.id,name_en:f.name||f.name_en,name_ar:f.name_ar,slug:f.slug}]:this.nameRouting=[{id:1,name_en:"Brand",name_ar:"\u0645\u0627\u0631\u0643\u0629",slug:""},{id:2,name_en:m.brand_id,name_ar:m.brand_id,slug:""}],this.brands=a?.data?.brands,this.brands?.forEach(x=>{C.includes(x.id.toString())?x.checked=!0:x.checked=!1})}else{let f;f=a?.data?.brands.find(x=>x.id===+m.brand_id),this.nameRouting=[{id:1,name_en:"Brand",name_ar:"\u0645\u0627\u0631\u0643\u0629",slug:""},{id:2,name_en:m.brand_id,name_ar:m.brand_id,slug:""}]}}else this.filter.brand_ids=[],a?.data?.brands?.length&&(this.brands=a?.data?.brands),(this.brands?.length||this.filter.brand_ids?.length)&&this.storage.setLocal("fixedBrands",this.brands);if(m.in_stock&&(this.filter.in_stock=m.in_stock),m.price_from&&(this.filter.price_from=m.price_from),m.price_to&&(this.filter.price_to=m.price_to),m.search&&m.category_id&&!m.sub_category_id&&(this.subCategories=[...a.data.sub_categories]),m.list_ids&&(this.hideCategoryIfDisplayCustomList=!0,this.showCategoryIfDisplayCustomList=!0,this.subCategories=[...a.data.sub_categories],m.sub_category_id&&this.subCategories.forEach(f=>{f.checked=!1,f.sub_categories.forEach(x=>{x.id==m.sub_category_id&&(f.checked=!0,x.checked=!0)})}),this.nameRouting=[{id:1,name_en:a.data?.lists?a.data.lists[0].name_en:m.list_ids,name_ar:a.data.lists?a.data.lists[0].name_ar:m.list_ids,slug:a.data.lists?a.data.lists[0].slug:""}]),m.group_id){let f=m.group_id,x;
29this.categories.forEach(S=>{let E=S.groups.find(B=>B.id===+f);E&&(this.selectedGroup=E,S.groups.length>0?(this.isShowFeaturedGroups=!0,this.featuredGroups=S.groups,this.selectedCategory=S,E.sub_categories.length>0?(this.isShowFeaturedSubCategory=!0,this.featuredSubCategory=E.sub_categories):(this.isShowFeaturedSubCategory=!1,this.featuredSubCategory=[])):(this.isShowFeaturedGroups=!1,this.featuredGroups=[]),x=[{id:S.id,name_en:S.name_en,name_ar:S.name_ar,slug:S.slug},{id:E.id,name_en:E.name_en,name_ar:E.name_ar,slug:E.slug}],E.html_top_en&&(this.content_top_en_html=this.domSanitizer.bypassSecurityTrustHtml(E.html_top_en)),E.html_top_ar&&(this.content_top_ar_html=this.domSanitizer.bypassSecurityTrustHtml(E.html_top_ar)),E.html_bottom_en&&(this.content_bottom_en_html=this.domSanitizer.bypassSecurityTrustHtml(E.html_bottom_en)),E.html_bottom_ar&&(this.content_bottom_ar_html=this.domSanitizer.bypassSecurityTrustHtml(E.html_bottom_ar)))}),x?this.nameRouting=x:this.nameRouting=[{id:1,name_en:"Group",name_ar:"\u0645\u062C\u0645\u0648\u0639\u0629",slug:""},{id:2,name_en:m.group_id,name_ar:m.group_id,slug:""}]}if(m.sub_category_id){let f=m.sub_category_id;this.categories.forEach(x=>{x.groups.forEach(S=>{let E=S.sub_categories.findIndex(B=>B.id===+f);E!==-1&&(this.selectedGroup=S,x.groups.length>0?(this.isShowFeaturedGroups=!0,this.isShowFeaturedSubCategory=!0,this.featuredGroups=x.groups,this.featuredSubCategory=S.sub_categories,this.selectedCategory=x,this.selectedGroup=S,this.selectedSubCategory=S.sub_categories[E]):(this.isShowFeaturedGroups=!1,this.isShowFeaturedSubCategory=!1,this.featuredGroups=[],this.featuredSubCategory=[]))})}),a.data.sub_categories.length>0?this.nameRouting=[{id:a.data.sub_categories[0].id,name_en:a.data.sub_categories[0].name||a.data.sub_categories[0].name_en,name_ar:a.data.sub_categories[0].name_ar,slug:a.data.sub_categories[0].slug},{id:a.data.sub_categories[0].sub_categories[0].id,name_en:a.data.sub_categories[0].sub_categories[0].name||a.data.sub_categories[0].sub_categories[0].name_en,name_ar:a.data.sub_categories[0].sub_categories[0].name_ar,slug:a.data.sub_categories[0].sub_categories[0].slug}]:this.nameRouting=[{id:1,name_en:"Category",name_ar:"\u0635\u0646\u0641",slug:""},{id:2,name_en:m.sub_category_id,name_ar:m.sub_category_id,slug:""}]}}{let x=this.activatedRoute.snapshot.queryParamMap.getAll("options_values_ids");this.reMapAttributesFromRoute(x)}{let f=this.activatedRoute.snapshot.params,x=this.router.url.split("/").filter(S=>S!=="");if(x[1]==="product"&&this.router.url.includes("/brand/")&&this.environmentVariables.ENABLE_BRAND_SLUG){let S=[],E=this.router.url.split("/").findIndex(G=>G=="brand"),B=this.router.url.split("/")[E+1];x[3].includes("?")?S=[this.decodeUrlSegment(B.split("?")[0])]:S=[B].map(G=>this.decodeUrlSegment(G)),this.filter.brand_slugs=[...S];let T=a?.data?.brands.find(G=>G.slug===S[0]||G.slug_ar===S[0]);if(T&&(this.brands=a?.data?.brands,this.brands?.forEach(G=>{if(this.lang()=="en")this.filter.brand_slugs.includes(G.slug)?G.checked=!0:G.checked=!1;else{let q=G.slug_ar?this.decodeUrlSegment(G.slug_ar):"",w=this.filter.brand_slugs.some(j=>j===G.slug_ar||j===q||j===G.slug);G.checked=w}}),this.nameRouting=[{id:1,name_en:"Brand",name_ar:"\u0645\u0627\u0631\u0643\u0629",slug:""},{id:2,name_en:T.name_en||T.name,name_ar:T.name_ar,slug:""}],this.environmentVariables?.ENABLE_BRANDS_META_DATA)){let G=this.lang(),q=G=="en",w=Ut(T,G),j=$t(T,G),Y=!!this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE,F=q?this.environmentVariables?.APP_NAME||"":this.environmentVariables?.APP_NAME_AR||this.environmentVariables?.APP_NAME||"",rt=w?Y?w:F?`${w} | ${F}`:w:F;this.metaService.setTitle(rt),this.metaService.updateTag({property:"og:title",content:w||rt}),j&&(this.metaService.updateTag({name:"description",content:j}),this.metaService.updateTag({property:"og:description",content:j}))}}if(f.list_id_slug){this.nameRouting=[{id:1,name_en:a.data.lists[0].name_en,name_ar:a.data.lists[0].name_ar,slug:a.data.lists[0].slug}];let S=a?.data?.lists?.[0];if(this.environmentVariables?.ENABLE_CUSTOM_LIST_META_DATA&&S){let E=this.lang(),B=Ut(S,E),T=$t(S,E);this.metaService.setTitle(B),this.metaService.updateTag({property:"og:title",content:B}),T&&(this.metaService.updateTag({name:"description",content:T}),this.metaService.updateTag({property:"og:description",content:T})),S?.enable_google_indexing===!1&&this.metaService.updateTag({name:"robots",content:"noindex, nofollow"})}}}if(this.products?.length==0){let f=this.filter.options_values_ids?.length>0||this.filter.brand_ids?.length>0||this.filter.brand_slugs?.length>0;this.emptyProducts=!f}else this.emptyProducts=!1;this.acceptPrice||(this.maxValue=a?.data?.max_price,this.minValue=a?.data?.min_price,this.maxInputValue=a?.data?.max_price,this.minInputValue=a?.data?.min_price),this.fitstTime=!1,this.showResult=!0,this.manualRefresh.emit(),setTimeout(()=>{this.document.body.style.overflow="auto",this.cdr.detectChanges()},0)});this.subscription.add(o)}_rebuildBreadcrumbs(){let t=nt(this.router,this.router.url);
29if(!(t.kind!=="category"&&t.kind!=="brand")&&this.categories?.length)if(this.nameRouting=[],t.kind==="category"){let e=t.categorySlug;if(!e)return;let i=this.categories.find(u=>this.matchTaxonomySlug(u,e));if(!i)return;this.addToNameRouting(i);let n=t.groupSlug;if(!n)return;let o=i.groups?.find(u=>this.matchTaxonomySlug(u,n));o&&this.addToNameRouting(o);let a=t.subCategorySlugs?.length===1?t.subCategorySlugs[0]:!o&&!n.includes("--")?n:null;if(!a)return;for(let u of i.groups||[]){let d=u.sub_categories?.find(h=>this.matchTaxonomySlug(h,a));if(d){this.addToNameRouting(d);break}}}else t.kind==="brand"&&(this.addToNameRouting({id:1,name_en:"Brand",name_ar:"\u0645\u0627\u0631\u0643\u0629",slug:""}),t.brandSlugs?.length&&this.addToNameRouting({id:2,name_en:t.brandSlugs.join(", "),name_ar:t.brandSlugs.join(", "),slug:t.brandSlugs[0]}))}matchTaxonomySlug(t,e){return!t||!e?!1:t.slug===e?!0:this.lang()==="ar"&&this.decodeUrlSegment(t.slug_ar)===e}_ensureSidebarData(){let t=!this.attributes?.length&&this.filter.options_values_ids?.length>0,e=!this.brands?.length&&(this.filter.brand_ids?.length>0||this.filter.brand_slugs?.length>0);if(!t&&!e)return;this._sidebarSub?.unsubscribe();let i=Gt(at({},this.filter),{options_values_ids:[],brand_ids:[],brand_slugs:[]});this._flog("_ensureSidebarData: requesting sidebar without restrictive filters"),this._sidebarSub=this.ProductsService.getProductsSearch(i,"enable_search_side_filters=1").subscribe(n=>{if(t&&n?.data?.products_options?.length){this.attributes=n.data.products_options;let o=(this.filter.options_values_ids||[]).map(String);this.attributes.forEach(a=>{a.values?.forEach(u=>{u&&o.includes(String(u.id))&&(u.checked=!0)})})}if(e&&n?.data?.brands?.length){this.brands=n.data.brands;let o=this.filter.brand_ids||[],a=this.filter.brand_slugs||[];this.brands.forEach(u=>{u.checked=o.includes(u.id?.toString())||o.includes(u.id)||a.includes(u.slug)||a.includes(u.slug_ar)})}this.cdr.markForCheck(),this._flog("_ensureSidebarData: sidebar populated",{attributes:this.attributes?.length,brands:this.brands?.length})})}checkOptionFound(t){let e=t.findIndex(i=>i.checked==!0);if(e!=-1&&t[e]?.checked)return!0}search(){if(this.searchValueWeb){let e=Ht(this.searchValueWeb.nativeElement,"keyup").pipe(Wt(1200)).subscribe(i=>{this.filter.q=i.target.value,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{search:this.filter.q},queryParamsHandling:"merge"})});this.subscription.add(e)}}onPageChanged(t){this.environmentVariables?.ENABLE_PAGINATION_SCROLL_TO_TOP&&this.windowService.getWindow()?.scrollTo(0,0),this.page=t,this.filter.page=t,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{page:t},queryParamsHandling:"merge",state:{source:"filter"}})}updatePaginationSeoLinks(){let e=(this.environmentVariables?.WEBSITE_URL||"").replace(/\/+$/,"")||this.windowService.getWindow()?.location?.origin||"",i=this.router.url.split("?")[0],n=24,o=new URLSearchParams(this.router.url.split("?")[1]||""),a=+(o.get("page")||1)||1,u=this.products?.length||0,d=+(this.objectProducts?.total_products||0)||0,h=d?Math.ceil(d/n):1/0,C=u>=n&&a<h,f=e+i,x=T=>{let G=new URLSearchParams(this.router.url.split("?")[1]||"");T>1?G.set("page",String(T)):G.delete("page");let q=G.toString();return q?`${f}?${q}`:f},S=[...o.keys()].some(T=>T!=="page"),E=!S&&a>1?x(a-1):null,B=!S&&C?x(a+1):null;this.metaService.updatePaginationLinks(E,B)}addToCart(t){this.embryoService.addToCartGuest(t)}addToWishList(t){this.embryoService.addToWishlist(t)}transformHits(t){return t.forEach(e=>{e.stars=[];for(let i=1;i<=5;i)e.stars.push(i<=e.rating),i+=1}),t}updateProductsPriceRange(){this.filter.price_from=this.minInputValue,this.filter.price_to=this.maxInputValue,this.acceptPrice=!0,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{price_from:this.minInputValue,price_to:this.maxInputValue},queryParamsHandling:"merge",state:{source:"filter"}})}clearPriceRang(){this.filter.price_from=null,this.filter.price_to=null,this.acceptPrice=!1,this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{price_from:null,price_to:null},queryParamsHandling:"merge",state:{source:"filter"}})}onPriceRangChange(){this.minInputValue=this.minValue,this.maxInputValue=this.maxValue}updateRangWithData(){this.updateProductsPriceRange()}preventNegative(t){return Math.abs(t)}openPDF(t){this.windowService.getWindow()?.open(t,"_blank")}setBrandNameRoutingFromCache(){let t=this.router.url;if(!t.includes("/brand/"))return;let e=t.split("/").filter(a=>a!=="");if(e[1]!=="product")return;let i=e.findIndex(a=>a==="brand");if(i===-1||!e[i+1])return;let n=this.decodeUrlSegment(e[i+1].split("?")[0]),o=this.transferState.get("brand-seo:"+n,null);o&&(this.nameRouting=[{id:1,name_en:"Brand",name_ar:"\u0645\u0627\u0631\u0643\u0629",slug:""},{id:2,name_en:o.name_en||o.name,name_ar:o.name_ar,slug:""}])}setBrandNameRoutingFromBrandIdCache(){let t=this.activatedRoute.snapshot.queryParams.brand_id,e=Array.isArray(t)?t[0]:t;if(!e)return;let i=this.transferState.get("brand-seo:id:"+e,null);i&&(this.nameRouting=[{id:e,name_en:i.name||i.name_en,name_ar:i.name_ar,slug:i.slug}])}getTitleName(t){if(t)return t.map(n=>this.lang()=="en"?n?.name_en:n?.name_ar).pop()}cretaeProductSchema(t){if(!t?.length)return;let e=this.resolveSchemaOrigin(),i=this.router.url.split("?")[0],n=e+i,o=this.lang()||"en";if(!e){this._schemaEmitPending=!0;return}this._schemaEmitPending=!1;let a=je(this.environmentVariables),u=t.map(d=>({name:d?.name,image:d?.image,url:this.buildProductUrl(d,e,o),sku:d?.sku,brand:d?.brand?.name,price:d?.discount_price||d?.price,currency:a,inStock:d?.in_stock,rateValue:d?.rate,rateCount:d?.rate_count})).filter(d=>!!d.url);u.length&&this.structuredData.emitCategoryGraph({scope:"products-list",specShape:!0,canonical:n,origin:e,lang:o,websiteId:`${e}/${o}/#website`,name:this.getTitleName(this.nameRouting),breadcrumb:this.buildSchemaBreadcrumb(e,o,i,n),products:u,siteName:o==="en"?this.environmentVariables?.APP_NAME||"":this.environmentVariables?.APP_NAME_AR||this.environmentVariables?.APP_NAME||"",countryCode:this.environmentVariables?.localization?.country_code||this.environmentVariables?.COUNTRY_CODE||"",enableProductRate:!!this.environmentVariables?.ENABLE_PRODUCT_RATE,enableReviews:!!this.environmentVariables?.ENABLE_REVIEWS})}resolveSchemaOrigin(){let t=(this.environmentVariables?.WEBSITE_URL||"").replace(/\/+$/,"");if(t)return t;if(vt(this.platformId)){let e=this.ssrRequest?.headers,i=typeof e?.get=="function"?e.get("x-ssr-origin"):e?.["x-ssr-origin"];if(i)return String(i).replace(/\/+$/,"")}return this.windowService.getWindow()?.location?.origin||""}buildProductUrl(t,e,i){let n=i==="en"?t?.slug:t?.slug_ar||t?.slug;return n?`${e}/${i}/${n}`:""}buildSchemaBreadcrumb(t,e,i,n){let o={name:e==="ar"?"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629":"Home",url:`${t}/${e}`},a=e==="ar",u=this.getTitleName(this.nameRouting)||(a?"\u0627\u0644\u0645\u0646\u062A\u062C\u0627\u062A":"Products"),d=i.split("/").filter(
29Boolean);if(d[0]===e&&d.shift(),d[0]==="products"&&(d[1]==="deals"||d[1]==="list"||d[1]==="tag")||d[0]==="product"&&d[1]==="brand")return[o,{name:u,url:n}];if(d[0]==="product"&&d.length>=2){let m=(this.nameRouting||[]).filter(x=>x&&(x.name_en||x.name_ar)).map(x=>a?x.name_ar||x.name_en:x.name_en||x.name_ar),C=d.slice(1),f=[o];for(let x=0;x<C.length;x++){let S=this.decodeSegment(C[x]),E=`${t}/${e}/product/${C.slice(0,x+1).map(B=>this.decodeSegment(B)).join("/")}`;f.push({name:m[x]||S,url:E})}return f}return[o,{name:u,url:n}]}buildEntityTitle(t){if(!t)return"";let e=this.lang()=="en",i=e?t?.meta_tag_title_en:t?.meta_tag_title_ar,n=e?t?.name_en||t?.name:t?.name_ar||t?.name_en||t?.name,o=!!this.environmentVariables?.DISABLE_META_TITLE_AFTER_PIPE,a=e?this.environmentVariables?.APP_NAME||"":this.environmentVariables?.APP_NAME_AR||this.environmentVariables?.APP_NAME||"",u=i||n;return u?o?u:a?`${u} | ${a}`:u:a}decodeSegment(t){if(!t)return"";if(!/%[0-9A-Fa-f]{2}/.test(t))return t;try{return decodeURIComponent(t)}catch{return t}}truncateBeforeQuestionMark(t){return t.includes("?")?t.split("?")[0]:t}addToNameRouting(t){if(!t)return;this.nameRouting.some(i=>i.slug===t.slug?i.id===t.id:!1)||this.nameRouting.push(t)}handleCategoryClick(t){let e=this.router.url,i=this.router.routerState.snapshot.root.queryParams,o=(this.lang()=="en"?t.slug:t.slug_ar||t.slug)||t.slug||t.slug_ar||t.id;if(o!=null)if(this.showCategoryIfDisplayCustomList){let a=e.split("?")[0].split("/").filter(Boolean),u=a.findIndex(m=>m==="list");u!==-1&&a.length>u+2&&(a.length=u+2);let d="/"+a.join("/"),h=Gt(at({},i),{category:o});this.router.navigate([d],{queryParams:h})}else this.router.navigate([`/${this.lang()}/product/deals/${o}`],{queryParams:at({},i)})}checkGroupSlugExists(t,e){if(!t||!e)return!1;let i=this.categories.find(n=>n.slug===t);return!i||!i.groups||i.groups.length===0||i.groups.length===1&&(i.groups[0].name==="general"||i.groups[0].name_en==="general"||i.groups[0].name_ar==="general")?!1:i.groups.some(n=>n.slug===e)}checkSubCategoryRouteExists(t,e,i){if(i)return this.routeIdentity.subCategorySlug=i,!0;if(e&&t){let n=this.categories.find(o=>o.slug===t);if(!n||!n.groups||n.groups.length===0)return!1;if(n.groups.length===1&&n.groups[0].name==="General"){let o=n.groups[0],a=e.includes("--")?e.split("--"):[e],u=o.sub_categories.some(d=>a.some(h=>d.slug===h.trim()));return u&&(this.routeIdentity.subCategorySlug=e),u}else if(n.groups.length>1){let o=n.groups.flatMap(d=>d.sub_categories||[]),a=e.includes("--")?e.split("--"):[e],u=o.some(d=>a.some(h=>d.slug===h.trim()));return u&&(this.routeIdentity.subCategorySlug=e),u}}return!1}findGroupForSubCategory=t=>{for(let e of this.categories)for(let i of e.groups)if(i.sub_categories.find(o=>o.slug===t))return i;return null};decodeUrlSegment(t){if(!t)return"";if(/%[0-9A-Fa-f]{2}/.test(t))try{return decodeURIComponent(t)}catch(i){return console.warn("Failed to decode URL segment:",t,i),t}return t}getBrandRoute(t){let e="",i=this.activatedRoute.snapshot.params;return i.categorySlug&&(e=i.categorySlug),e?["/",this.lang(),"product",e,"brand",this.lang()=="en"?t.slug:t.slug_ar||t.slug]:["/",this.lang(),"product","brand",this.lang()=="en"?t.slug:t.slug_ar||t.slug]}getURLencoded(t){return decodeURIComponent(t)}static \u0275fac=function(e){return new(e||r)(A(we),A(bt),A(Ie),A(Mt),A(Tt),A(It),A(Pt),A(Et),A(wt),A(ze),A(Ot),A(se),A(ae),A(St),A(Te),A(gt),A(Xt),A(qe))};static \u0275cmp=lt({type:r,selectors:[["app-ProductsList"]],viewQuery:function(e,i){if(e&1&&(Bt(Gi,5),Bt(Ni,7)),e&2){let n;Dt(n=Ft())&&(i.searchValueWeb=n.first),Dt(n=Ft())&&(i.sidenav=n.first)}},decls:21,vars:30,consts:[["searchValueWeb",""],[3,"ngStyle","routes","emitSchema"],[4,"ngIf"],[1,"inner-container","section-gap","pt-0",2,"padding-bottom","2rem !important"],[1,"container"],["class","multi-imgs-area d-flex",4,"ngIf"],[1,"col-gap","fx-layout-row-wrap"],["class","menu-filter-mobile fx-flex-lg-27 fx-flex-md-35 fx-flex-sm-100 fx-flex-xl-25 fx-flex-xs-100",3,"ngClass",4,"ngIf"],[1,"algolia-main-list","fx-flex-sm-100","fx-flex-xs-100",3,"ngClass"],[1,"my-4","fs-24",2,"font-weight","bolder",3,"ngStyle"],["class","top-filter",4,"ngIf"],["class","categries mb-4",4,"ngIf"],[1,"container","my-3"],[3,"innerHTML"],[1,"multi-imgs-area","d-flex"],[1,"single-img"],["loading","lazy","onError","this.src='./../../../../assets/images/600x160.png';
29","alt","deals image","title","deals image",1,"web-view",3,"click","ngClass","src"],[1,"devider"],["loading","lazy","onError","this.src='./../../../../assets/images/600x160.png';","alt","deals image","title","deals image",1,"mob-view",3,"click","ngClass","src"],[1,"menu-filter-mobile","fx-flex-lg-27","fx-flex-md-35","fx-flex-sm-100","fx-flex-xl-25","fx-flex-xs-100",3,"ngClass"],[1,"filters-container"],[1,"text-right","mat-cart-menu-mobile"],["color","warn","mat-icon-button","",1,"btn-close-menu",3,"click"],["color","warn"],[1,"mat-card","mb-2",2,"min-height","115px"],[1,"filter-header",2,"font-size","18px !important"],["autocomplete","off"],["id","searchBar","type","text","autocomplete","off","search",""],["class","mat-card mb-4",4,"ngIf"],[1,"mb-2"],["class","mb-2",4,"ngIf"],[1,"mat-card","mb-4"],[1,"price-inputs-wrapper"],[1,"price-input-group"],["type","number","onkeypress","return (event.charCode >= 48 && event.charCode <= 57 ) || event.charCode == 46","onpaste","return (event.charCode >= 48 && event.charCode <= 57 ) || event.charCode == 46",1,"price-input",3,"keyup.enter","ngModelChange","ngModel","max"],["type","number","onkeypress","return (event.charCode >= 48 && event.charCode <= 57 ) || event.charCode == 46","onpaste","return (event.charCode >= 48 && event.charCode <= 57 ) || event.charCode == 46",1,"price-input",3,"keyup.enter","ngModelChange","ngModel"],[1,"d-inline-flex","justify-space-between","w-100",3,"dir"],["color","brand-color","mat-raised-button","",1,"mt-2",3,"click","ngClass"],[1,"mt-3","clear-price","pointer",3,"click"],["expanded","",3,"closed","opened"],[1,"filter-header","text-capitalize","m-0",2,"font-size","18px !important"],["aria-label","Select an option","class","filter-brands flex-col",4,"ngIf"],["aria-label","Select an option",1,"filter-brands","flex-col"],["class","x","color","primary",3,"checked","value","change",4,"ngFor","ngForOf","ngForTrackBy"],["color","primary",1,"x",3,"change","checked","value"],[3,"matTooltip"],[3,"closed","opened","expanded"],[1,"filter-brands"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","mx-3",4,"ngFor","ngForOf","ngForTrackBy"],[1,"name-group-list"],[1,"mx-3"],["color","primary",3,"change","checked","value"],[1,"subcategory-name",3,"matTooltip"],[3,"expanded"],["class","brands-filter",4,"ngFor","ngForOf","ngForTrackBy"],[1,"brands-filter"],["color","primary",3,"checked","value","change",4,"ngIf"],["class","mb-2",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mb-2",3,"ngClass"],[1,"colors-container","my-2","pb-3"],[1,"color",3,"click","matTooltip","ngClass"],["class","color transparent",3,"matTooltip","ngClass","background-image","click",4,"ngIf"],[1,"color","transparent",3,"click","matTooltip","ngClass"],[1,"colors-container","my-2","pb-3","flex-column"],[4,"ngFor","ngForOf"],["class","d-flex flex-warp gap-10 align-items-center",4,"ngIf"],[1,"d-flex","flex-wrap","gap-10","align-items-center","my-4"],["class","d-flex align-items-center flex-column gap-10",4,"ngFor","ngForOf"],[1,"d-flex","flex-warp","gap-10","align-items-center"],[1,"d-flex","align-items-center","flex-column","gap-10"],[1,"d-flex","align-items-center","flex-column",3,"routerLink"],["loading","lazy","width","100","height","100",2,"aspect-ratio","1",3,"src","alt","title","ngClass"],[1,"top-filter"],[1,"top-filter__change-view","d-lg-none","w-100","fx-layout-row","fx-layout-align-space-between-center"],[1,"mat-cart-menu-mobile","p-0"],[1,"btn-open-menu","mt-2",3,"click"],[2,"position","relative","top","8px","left","-4px",3,"ngClass"],[1,"filter-by"],["mat-icon-button","",1,"hidden-in-mobile","mat-icon-button",3,"click"],["aria-hidden","true","role","img",1,"mat-icon","notranslate","material-icons","mat-icon-no-color"],[1,"w-100","fx-layout-md-row","fx-layout-xs-column","fx-layout-align-space-between-center"],[1,"top-filter__item-length"],[1,"field-label"],["appearance","fill"],[3,"selectionChange","ngModelChange","ngModel","placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"top-filter__item-length","fx-layout-row","fx-layout-align-center-center"],[1,"d-lg-block","d-none","mb-3","mr-2"],[3,"value"],[1,"categries","mb
29-4"],[1,"container","mt-4","categories-container"],[1,"row","categories-collection","pb-1","mb-2"],["class","p-0 mb-5","style","cursor: pointer ",4,"ngFor","ngForOf"],[1,"p-0","mb-5",2,"cursor","pointer"],[1,"brand-item",2,"margin","0px auto !important",3,"click"],[1,"imgContainer","mx-2",3,"ngClass"],["loading","lazy","onError","this.src='./assets/images/placeholder200.jpg';","default","./assets/images/placeholder200.jpg",1,"swiper-lazy",2,"position","relative","top","0px","left","0px","margin-left","0px","margin-right","0px","object-fit","contain",3,"ngClass","src","alt","title"],[1,"text-center","product-text","my-3",2,"color","var(--secoundry-color)"],[1,"container","overflow-x-auto","mt-4"],["class","p-0 mb-5","style","cursor: pointer",4,"ngFor","ngForOf"],[1,"brand-item",2,"margin","0px auto !important",3,"routerLink","queryParams"],["routerLinkActive","border border-brand rounded-lg",1,"imgBrandContainer","mx-2",3,"ngClass"],[1,"brand-item",2,"margin","0px auto !important",3,"routerLink"],[1,"imgBrandContainer","mx-2",3,"ngClass"],[1,"skeleton-container"],["class","skeleton-list-container",4,"ngFor","ngForOf"],[1,"skeleton-list-container"],[1,"skeleton-container-inside"],[1,"light-animate-shimmer","image-shimmer"],[1,"light-animate-shimmer","description-shimmer"],[1,"light-animate-shimmer","price-shimmer"],["class","skeleton-grid-container",4,"ngFor","ngForOf"],[1,"skeleton-grid-container"],[1,"description-shimmer-container"],[1,"price-shimmer-container"],[1,"sr-only"],[3,"addToCart","addToWishList","currentPage","pageSize","products","totalPage","isGridView","gridThree"],[1,"fx-layout-row-wrap"],[1,"fx-flex-100"],[1,"p-0","text-center"],[1,"product-pagination",3,"pageChange","nextLabel","previousLabel"],["class","pagination-container fx-layout-align-center-center d-flex",3,"dir",4,"ngIf"],[1,"pagination-container","fx-layout-align-center-center","d-flex",3,"dir"],["mat-button","",1,"arrow-icon",3,"click","disabled"],[1,"pagination-dots"],[1,"d-flex","align-items-center","gap-2"],[1,"arrow-icon",3,"ngClass"]],template:function(e,i){e&1&&(V(0),M(1,"app-bread-crumbs",1),v(2,Hi,3,1,"ng-container",2),_(3,"div",3)(4,"div",4),v(5,Wi,13,12,"div",5)(6,Yi,13,12,"div",5),_(7,"div",6),v(8,Sr,20,9,"div",7),_(9,"div",8)(10,"h1",9),b(11),p(),v(12,Mr,4,2,"ng-container",2)(13,Ir,34,21,"div",10)(14,kr,5,1,"div",11)(15,Gr,5,1,"div",11)(16,Br,3,1,"ng-container",2)(17,Fr,3,1,"ng-container",2)(18,Yr,9,9,"ng-container",2)(19,Kr,3,3,"span",2),p()()()(),I(),v(20,Qr,3,1,"ng-container",2)),e&2&&(l(),c("ngStyle",R(19,sn,i.nameRouting!=null&&i.nameRouting.length?"visible":"hidden"))("routes",i.nameRouting)("emitSchema",!1),l(),c("ngIf",i.content_top_en_html||i.content_top_ar_html),l(3),c("ngIf",i.showOffers&&((i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_1)||(i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_2)||(i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_WEB_IN_DEALS_PAGE_3))),l(),c("ngIf",i.showOffers&&((i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_1)||(i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_2)||(i.environmentVariables==null?null:i.environmentVariables.FLYER_IMAGE_IN_DEALS_PAGE_3))),l(2),c("ngIf",!(i.user!=null&&i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"||!(i.user!=null&&i.user.is_guest)&&!(i.environmentVariables!=null&&i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)!=="waiting_for_approval_page"||(i.user==null?null:i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)!=="waiting_for_approval_page"),l(),c("ngClass",ne(21,Bi,(i.user==null?null:i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page",!(i.user!=null&&i.user.is_guest&&(i.environmentVariables!=null&&i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"),(i.user==null?null:i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page",!(i.user!=null&&i.user.is_guest&&(i.environmentVariables!=null&&i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"),(i.user==null?null:i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page",!(i.user!=null&&i.user.is_guest&&(i.environmentVariables!=null&&i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"))),l(),c("ngStyle",R(28,sn,i.getTitleName(i.nameRouting)?"visible":"hidden")),l(),z(i.getTitleName(i.nameRouting)),l(),c("ngIf",i.environmentVariables==null?null:i.environmentVariables.SHOW_GROUPS_AND_SUBCATEGORY_IN_PRODUCTS_PAGE),l(),c("ngIf",!(i.user!=null&&i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)==="waiting_for_approval_page"||!(i.user!=null&&i.user.is_guest)&&!(i.environmentVariables!=null&&i.environmentVariables.ENABLE_ADMIN_APPROVAL)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)!=="waiting_for_approval_page"||(i.user==null?null:i.user.is_guest)&&(i.environmentVariables==null?null:i.environmentVariables.CLIENT_APPROVAL_OPTIONS)!=="waiting_for_approval_page"),l(),c("ngIf",i.filter.promotions&&(i.environmentVariables==null?null:i.environmentVariables.SHOW_CATEGORIES_IN_DEALS_PAGE
29)||i.showCategoryIfDisplayCustomList&&!(i.environmentVariables!=null&&i.environmentVariables.DISABLE_FILTER_CUSTOM_LIST_BY_CATEGORY)),l(),c("ngIf",(i.brands==null?null:i.brands.length)&&(i.environmentVariables==null?null:i.environmentVariables.ENABLE_BRANDS_ROW_IN_SEARCH)),l(),c("ngIf",i.loading&&i.isGridView=="false"),l(),c("ngIf",i.loading&&i.isGridView=="true"),l(),c("ngIf",(i.products==null?null:i.products.length)&&!i.loading),l(),c("ngIf",(i.objectProducts==null||i.objectProducts.products==null?null:i.objectProducts.products.length)==0),l(),c("ngIf",i.content_bottom_en_html||i.content_bottom_ar_html))},dependencies:[Ke,oe,ht,pt,Le,xt,Ce,fe,ue,ve,ge,pe,xe,be,he,me,de,ce,Ae,rn,tn,en,nn,an,mt,on,Ne,He,Ct,kt,_e,ye,Pe,Oe,ln,At,Ze,yt,Me],styles:[".height-45[_ngcontent-%COMP%]{height:45px}.categories-container[_ngcontent-%COMP%]{width:100%}.filter-header[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;text-transform:capitalize;margin-bottom:1.2rem}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.mb-5[_ngcontent-%COMP%]{margin-bottom:5px}.product-pagination[_ngcontent-%COMP%] .ngx-pagination[_ngcontent-%COMP%]{margin-bottom:0;padding:14px 10px}.product-list.breadcrumb[_ngcontent-%COMP%]{padding-left:13vw!important;padding-right:13vw!important}@media(max-width:1300px){.product-list.breadcrumb[_ngcontent-%COMP%]{padding-left:6vw!important;padding-right:6vw!important}}@media(max-width:767px){.menu-filter-mobile[_ngcontent-%COMP%]{z-index:999999!important}}.menu-filter-mobile[_ngcontent-%COMP%]{flex:0 0 27%;max-width:27%;overflow:initial!important}.menu-filter-mobile[_ngcontent-%COMP%] .filters-container[_ngcontent-%COMP%]{position:sticky;width:98%;top:0;height:92vh;overflow-y:scroll;padding:0 10px 80px}@media(max-width:1100px){.menu-filter-mobile[_ngcontent-%COMP%]{position:fixed;z-index:99;width:100vw;height:100vh;overflow:hidden!important;left:-100vw;flex:1 1 100%!important;max-width:100%!important;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;background:#fafafa;padding-left:0;padding-right:0;padding-bottom:0;transition:all .5s ease-in-out;height:calc(100vh - 60px);touch-action:none}.menu-filter-mobile[_ngcontent-%COMP%] .filters-container[_ngcontent-%COMP%]{touch-action:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.menu-filter-mobile.open-side-bar[_ngcontent-%COMP%]{left:0!important;top:0}}.btn-close-menu[_ngcontent-%COMP%], .btn-open-menu[_ngcontent-%COMP%]{border:none;background:transparent}.mat-cart-menu-mobile[_ngcontent-%COMP%]{display:none;border:none!important;box-shadow:none!important}.mat-cart-menu-mobile[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none!important;box-shadow:none!important}@media(max-width:1100px){.mat-cart-menu-mobile[_ngcontent-%COMP%]{display:block}}@media(max-width:700px){.mat-cart-menu-mobile[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{top:0!important}.mat-cart-menu-mobile[_ngcontent-%COMP%] .filter-by[_ngcontent-%COMP%]{position:relative;top:-7px}}.name-group-list[_ngcontent-%COMP%]{margin-bottom:8px;margin-top:10px;color:#0c0303de!important;font-size:16px!important;font-weight:800!important}.col-gap[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:1rem}.col-gap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-top:0rem!important}@media(max-width:1100px){.col-gap[_ngcontent-%COMP%]{flex-direction:column!important}}.filter-ar[_ngcontent-%COMP%]{left:4px!important}.algolia-main-list[_ngcontent-%COMP%]{flex:0 0 73%;max-width:73%}@media(max-width:1100px){.algolia-main-list[_ngcontent-%COMP%]{flex:1 1 100%!important;box-sizing:border-box;max-width:100%!important}}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer;outline:none}.top-filter[_ngcontent-%COMP%]{min-height:85px;height:auto;background:#fff;padding:15px 10px 10px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f;margin-bottom:20px;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;position:relative;border-radius:5px}.top-filter[_ngcontent-%COMP%] > .top-filter__change-view[_ngcontent-%COMP%]{display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important}@media screen and (max-width:1023px){.top-filter[_ngcontent-%COMP%] > .top-filter__change-view[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;visibility:visible!important;height:auto!important;width:100%!important;align-items:center!important;padding-bottom:10px;justify-content:space-between!important;gap:10px}.top-filter[_ngcontent-%COMP%] > .top-filter__change-view[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-flex!important;flex-direction:row!important;align-items:center!important;width:auto!important;max-width:max-content!important;flex-shrink:0!important}.top-filter[_ngcontent-%COMP%] > .top-filter__change-view[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{width:auto!important}}@media screen and (min-width:1024px){.top-filter[_ngcontent-%COMP%] > .top-filter__change-view.d-lg-none[_ngcontent-%COMP%]{display:none!important;visibility:hidden!important;height:0!important;position:absolute!important;left:-9999px!important}}.top-filter[_ngcontent-%COMP%] > div.w-100[_ngcontent-%COMP%]{width:100%!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:1rem}@media screen and (max-width:1023px){.top-filter[_ngcontent-%COMP%] > div.w-100[_ngcontent-%COMP%] .d-lg-block[_ngcontent-%COMP%]{display:none!important}}.top-filter__change-view[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:1.7rem;color:#757575;cursor:pointer}.top-filter__item-length[_ngcontent-%COMP%]{flex-shrink:0!important}@media screen and (max-width:768px){.top-filter__item-length[_ngcontent-%COMP%], .top-filter__item-length[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}}.productGrid[_ngcontent-%COMP%] .col-gap[_ngcontent-%COMP%]{flex-direction:column}.rang-slider[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:space-between}.rang-slider[_ngcontent-%COMP%] .value-input[_ngcontent-%COMP%]{padding:10px;outline:unset;max-width:45%;min-width:45%;border-radius:3px;border:1px solid lightgray}.float-right[_ngcontent-%COMP%]{float:right!important}.clear-price[_ngcontent-%COMP%]{font-weight:500;font-size:14px;color:var(--brand-color)}.colors-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;height:auto}.colors-container[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{display:flex;width:30px;height:30px;border:.5px solid #dfdfdf;border-radius:50%;background-color:#fff;background-clip:content-box;margin-right:5px;margin-top:5px;margin-bottom:5px;position:relative;justify-content:center;align-items:center;transition:all .3s}.colors-container[_ngcontent-%COMP%] .color.active[_ngcontent-%COMP%]{border:3px solid var(--brand-color);padding:2px}.colors-container[_ngcontent-%COMP%] .color.transparent[_ngcontent-%COMP%]{background-size:contain}.colors-container[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]:hover{border:3px solid #d9d9d9;padding:2px}.colors-container[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#4d4d4d8c!important;font-size:12px!important;font-weight:500!important}.tabActive[_ngcontent-%COMP%]{color:var(--brand-color)!important}.breadcrumb-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}@media(max-width:797px){.breadcrumb-title[_ngcontent-%COMP%]{line-height:25px}}.material-icons-arrow[_ngcontent-%COMP%]{font-size:1.2rem;vertical-align:middle;line-height:1.2}.skeleton-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-wrap:wrap;padding-bottom:200px;
29margin-inline:-5px}.skeleton-container[_ngcontent-%COMP%] .image-shimmer[_ngcontent-%COMP%], .skeleton-container[_ngcontent-%COMP%] .description-shimmer[_ngcontent-%COMP%], .skeleton-container[_ngcontent-%COMP%] .price-shimmer[_ngcontent-%COMP%]{display:inline-block;margin:0 0 15px;border-radius:5px}.skeleton-container[_ngcontent-%COMP%] .skeleton-container-inside[_ngcontent-%COMP%]{width:100%;height:100%;padding:10px;border:1px solid rgba(0,0,0,.1647058824);background:#fff;border-radius:5px;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.skeleton-container[_ngcontent-%COMP%] .skeleton-list-container[_ngcontent-%COMP%]{height:300px;min-width:50%;padding-inline:5px}.skeleton-container[_ngcontent-%COMP%] .skeleton-list-container[_ngcontent-%COMP%] .image-shimmer[_ngcontent-%COMP%]{width:100%;height:100px}.skeleton-container[_ngcontent-%COMP%] .skeleton-list-container[_ngcontent-%COMP%] .description-shimmer[_ngcontent-%COMP%]{width:100%;height:50px}.skeleton-container[_ngcontent-%COMP%] .skeleton-list-container[_ngcontent-%COMP%] .price-shimmer[_ngcontent-%COMP%]{width:100%;height:20px}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%]{width:100%;height:200px;padding:0 10px}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .skeleton-container-inside[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:flex-start}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .image-shimmer[_ngcontent-%COMP%]{width:200px;height:100%;margin-right:10px;padding-right:10px}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .description-shimmer-container[_ngcontent-%COMP%]{width:100%;height:100%;padding:0 10px;border-left:1px solid rgba(10,10,10,.231372549);border-right:1px solid rgba(10,10,10,.231372549)}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .description-shimmer-container[_ngcontent-%COMP%] .description-shimmer[_ngcontent-%COMP%]{width:100%;height:50px}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .price-shimmer-container[_ngcontent-%COMP%]{height:100%;width:200px;padding:10px}.skeleton-container[_ngcontent-%COMP%] .skeleton-grid-container[_ngcontent-%COMP%] .price-shimmer-container[_ngcontent-%COMP%] .price-shimmer[_ngcontent-%COMP%]{width:100%;height:20px}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}.filter-brands[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#0c0303de!important;font-size:16px!important;font-weight:800!important}.filter-brands[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#4d4d4d8c!important;font-size:12px!important;font-weight:500!important;height:30px!important}.brands-filter[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#4d4d4d8c!important;font-size:12px!important;font-weight:500!important;height:30px!important}.last-filter-item[_ngcontent-%COMP%]{margin-bottom:70px!important}.mb-2[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{color:#4d4d4d!important;font-size:14px!important;font-weight:500!important}mat-checkbox[_ngcontent-%COMP%]{color:#4d4d4d8c!important;font-size:12px!important;font-weight:500!important}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.multi-imgs-area[_ngcontent-%COMP%]{justify-content:space-between}.multi-imgs-area[_ngcontent-%COMP%] .single-img[_ngcontent-%COMP%]{width:-webkit-fill-available;margin-bottom:10px}.multi-imgs-area[_ngcontent-%COMP%] .single-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;border-radius:8px;height:100%;object-fit:cover}@media(max-width:768px){.multi-imgs-area[_ngcontent-%COMP%] .single-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:98%}}@media(max-width:768px){.multi-imgs-area[_ngcontent-%COMP%] .single-img[_ngcontent-%COMP%]{margin-bottom:2%}}.multi-imgs-area[_ngcontent-%COMP%] .devider[_ngcontent-%COMP%]{width:5%;max-width:10px}@media(max-width:768px){.multi-imgs-area[_ngcontent-%COMP%] .devider[_ngcontent-%COMP%]{width:10px}}@media(max-width:768px){.web-view[_ngcontent-%COMP%]{display:none!important}}@media(min-width:768px){.slider-gal[_ngcontent-%COMP%]{height:410px;margin-top:5px}.slider-gal[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:400px!important}.slider-pieces[_ngcontent-%COMP%]{display:flex}.col-gal[_ngcontent-%COMP%]{width:20%}.slider-gal[_ngcontent-%COMP%]{width:60%;overflow:hidden}.mob-view[_ngcontent-%COMP%]{display:none!important}}.hide-image-offer[_ngcontent-%COMP%]{visibility:hidden}.imgContainer[_ngcontent-%COMP%]{width:70px;height:70px;margin:auto auto 10px}.imgContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.imgContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.02);transition:.3s ease-in-out}.imgContainer[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:100%;height:100%;padding:15px;background-color:#fafafa;border-radius:50%}.imgContainer[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:0;width:25px;height:40px;margin-top:10px}.imgContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:-webkit-box;font-weight:600;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical}.imgBrandContainer[_ngcontent-%COMP%]{width:90px;height:90px;margin:auto;padding:10px}.imgBrandContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.imgBrandContainer[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{transform:scale(1.02);transition:.3s ease-in-out}.imgBrandContainer[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:100%;height:100%;padding:15px;background-color:#fafafa;border-radius:50%}.imgBrandContainer[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:0;width:25px;height:40px;margin-top:10px}.imgBrandContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:-webkit-box;font-weight:600;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical}.categories-collection[_ngcontent-%COMP%]{display:flex;width:100%;grid-column-gap:30px;overflow-x:scroll;overflow-y:hidden;cursor:pointer}.categories-collection[_ngcontent-%COMP%] .f-text[_ngcontent-%COMP%]{color:#000;display:-webkit-box;font-weight:500;margin-top:16px;overflow:hidden;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media(max-width:992px){.categories-collection[_ngcontent-%COMP%]{grid-template-columns:repeat(4,auto);grid-column-gap:initial!important}}@media(max-width:760px){.categories-collection[_ngcontent-%COMP%]{grid-template-columns:repeat(4,auto);grid-column-gap:initial!important}}@media(max-width:992px){.categories-collection[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80px!important;height:80px!important}}@media(max-width:500px){.categories-collection[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px!important;height:60px!important}}@media(max-width:360px){.categories-collection[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px!important;height:60px!important}}@media(max-width:992px){.categories-collection[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%]{width:80px!important;height:80px!important}}@media(max-width:500px){.categories-collection[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%]{width:60px!important;height:60px!important}}@media(max-width:500px){.categories-collection[_ngcontent-%COMP%] .imgContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:11px!important}}.product-text[_ngcontent-%COMP%]{display:-webkit-box;margin-top:16px;font-size:14px!important;text-overflow:ellipsis;white-space:pre-line;text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--secoundry-color);justify-content:center}.categries[_ngcontent-%COMP%] .overflow-x-auto[_ngcontent-%COMP%]{overflow-x:auto;width:100%}#searchBar[_ngcontent-%COMP%]{width:100%;padding:10px 15px;font-size:16px;border:2px solid #ccc;border-radius:5px;outline:none;transition:border-color .3s ease}#searchBar[_ngcontent-%COMP%]::placeholder{color:#999}.rotate-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}.arrow-icon[_ngcontent-%COMP%]{color:var(--brand-color)}.disabled-icon[_ngcontent-%COMP%]{color:#ccc!important}.pagination-container[_ngcontent-%COMP%] button.arrow-icon[_ngcontent-%COMP%]:disabled span[_ngcontent-%COMP%], .pagination-container[_ngcontent-%COMP%] button.arrow-icon[_ngcontent-%COMP%]:disabled .mat-icon[_ngcontent-%COMP%], .pagination-container[_ngcontent-%COMP%] button.arrow-icon[disabled][_ngcontent-%COMP%] span[_ngcontent-%COMP%], .pagination-container[_ngcontent-%COMP%] button.arrow-icon[disabled][_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#ccc!important}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap;gap:10px}.gap-10[_ngcontent-%COMP%]{gap:10px}.selected[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.35);border-radius:4px} span.mat-checkbox-label, span.mat-radio-label-content{max-width:200
29px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subcategory-name[_ngcontent-%COMP%]{display:inline-block;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .fx-flex-lg-25, .fx-flex-md-33, .fx-flex-sm-50, .fx-flex-xl-20, .fx-flex-xs-50, .fx-flex-xs-100{overflow:hidden!important;box-sizing:border-box!important} .fx-flex-lg-25>app-updated-product-card, .fx-flex-md-33>app-updated-product-card, .fx-flex-sm-50>app-updated-product-card, .fx-flex-xl-20>app-updated-product-card, .fx-flex-xs-50>app-updated-product-card, .fx-flex-xs-100>app-updated-product-card{display:block!important} .fx-flex-lg-25 mat-card, .fx-flex-lg-25 .product-card-container, .fx-flex-lg-25 .product-name, .fx-flex-lg-25 .product-title, .fx-flex-md-33 mat-card, .fx-flex-md-33 .product-card-container, .fx-flex-md-33 .product-name, .fx-flex-md-33 .product-title, .fx-flex-sm-50 mat-card, .fx-flex-sm-50 .product-card-container, .fx-flex-sm-50 .product-name, .fx-flex-sm-50 .product-title, .fx-flex-xl-20 mat-card, .fx-flex-xl-20 .product-card-container, .fx-flex-xl-20 .product-name, .fx-flex-xl-20 .product-title, .fx-flex-xs-50 mat-card, .fx-flex-xs-50 .product-card-container, .fx-flex-xs-50 .product-name, .fx-flex-xs-50 .product-title, .fx-flex-xs-100 mat-card, .fx-flex-xs-100 .product-card-container, .fx-flex-xs-100 .product-name, .fx-flex-xs-100 .product-title{width:100%!important;max-width:100%!important;overflow:hidden!important} .fx-flex-lg-25 mat-card a, .fx-flex-lg-25 .product-card-container a, .fx-flex-lg-25 .product-name a, .fx-flex-lg-25 .product-title a, .fx-flex-md-33 mat-card a, .fx-flex-md-33 .product-card-container a, .fx-flex-md-33 .product-name a, .fx-flex-md-33 .product-title a, .fx-flex-sm-50 mat-card a, .fx-flex-sm-50 .product-card-container a, .fx-flex-sm-50 .product-name a, .fx-flex-sm-50 .product-title a, .fx-flex-xl-20 mat-card a, .fx-flex-xl-20 .product-card-container a, .fx-flex-xl-20 .product-name a, .fx-flex-xl-20 .product-title a, .fx-flex-xs-50 mat-card a, .fx-flex-xs-50 .product-card-container a, .fx-flex-xs-50 .product-name a, .fx-flex-xs-50 .product-title a, .fx-flex-xs-100 mat-card a, .fx-flex-xs-100 .product-card-container a, .fx-flex-xs-100 .product-name a, .fx-flex-xs-100 .product-title a{display:block!important;width:100%!important;max-width:100%!important;text-overflow:ellipsis!important}@media(max-width:599px){ .gridView .card-container.fx-flex-xs-50{flex:1 1 50%!important;max-width:50%!important;min-width:50%!important} .rowView .card-container{flex:1 1 100%!important;max-width:100%!important;min-width:100%!important}}.field-label[_ngcontent-%COMP%]{display:block;margin-bottom:12px;font-weight:400;color:var(--brand-color);font-size:14px;line-height:1.2}.field-label[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336;margin-left:2px}.price-inputs-wrapper[_ngcontent-%COMP%]{display:flex;gap:15px;width:100%;margin-bottom:15px}.price-inputs-wrapper[_ngcontent-%COMP%] .price-input-group[_ngcontent-%COMP%]{flex:1}.price-inputs-wrapper[_ngcontent-%COMP%] .price-input[_ngcontent-%COMP%]{width:100%;padding:16px 20px;font-size:16px;color:#424242;background:#fafafa;border:1px solid #E0E0E0;border-radius:8px;outline:none;transition:all .3s ease;box-shadow:0 1px 2px #00000008}.price-inputs-wrapper[_ngcontent-%COMP%] .price-input[_ngcontent-%COMP%]:focus{border-color:var(--brand-color);box-shadow:0 2px 8px #00000014}.price-inputs-wrapper[_ngcontent-%COMP%] .price-input[_ngcontent-%COMP%]::placeholder{color:#9e9e9e}#searchBar[_ngcontent-%COMP%]{width:100%;padding:16px 20px;font-size:16px;color:#424242;background:#fafafa;border:1px solid #E0E0E0;border-radius:8px;outline:none;transition:all .3s ease;box-shadow:0 1px 2px #00000008}#searchBar[_ngcontent-%COMP%]:focus{border-color:var(--brand-color);box-shadow:0 2px 8px #00000014}#searchBar[_ngcontent-%COMP%]::placeholder{color:#9e9e9e} .mat-form-field{width:100%;margin-bottom:20px!important;margin-top:0!important;display:block} .mat-form-field-underline{display:none!important} .mat-form-field-flex{background:#fafafa!important;border:1px solid #E0E0E0!important;border-radius:8px!important;padding:0!important} .mat-form-field-infix{padding:16px 20px!important;border-top:0!important} .mat-input-element{height:24px!important;font-size:16px!important;color:#424242!important} .mat-input-element::placeholder{color:#9e9e9e!important;opacity:1!important} .mat-select{font-size:16px!important;color:#424242!important} .mat-select-trigger{height:24px!important} .mat-select-placeholder{color:#9e9e9e!important} .mat-select-value, .mat-select-arrow{color:#424242!important} .mat-error{font-size:12px!important;margin-top:4px!important;padding:2px 4px!important;color:#f44336!important} .mat-form-field-label{display:none!important} .mat-focused .mat-form-field-flex{border-color:var(--brand-color)!important;
29box-shadow:0 2px 8px #00000014!important} .mat-form-field-ripple{display:none!important} button[mat-raised-button]{min-width:120px;height:48px;font-size:16px;font-weight:500;border-radius:8px;text-transform:none;box-shadow:0 2px 4px #0000001a;transition:all .3s ease} button[mat-raised-button]:hover:not(:disabled){box-shadow:0 4px 8px #00000026;transform:translateY(-1px)} button[mat-raised-button]:active:not(:disabled){transform:translateY(0)}"]})}return r})();export{io as ProductsListComponent};
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.