1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="8c413e3d-a28f-c166-f945-07963944910e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,791135,e=>{"use strict";var r=e.i(843476),t=e.i(394580),a=e.i(846932),n=e.i(286594),i=e.i(80447),s=e.i(625266),l=e.i(500932),c=e.i(647163);let o={sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-12 w-12"},d={primary:"border-primary-600",white:"border-white",gray:"border-gray-600"};function u(e){let t,a,n,i,s,u,m=(0,l.c)(18),{size:p,color:h,text:x,className:g,fullScreen:f}=e,b=void 0===h?"primary":h;m[0]!==g?(t=(0,c.cn)("flex items-center justify-center",g),m[0]=g,m[1]=t):t=m[1];let y=o[void 0===p?"md":p],v=d[b];m[2]!==y||m[3]!==v?(a=(0,c.cn)("animate-spin rounded-full border-2 border-t-transparent",y,v),m[2]=y,m[3]=v,m[4]=a):a=m[4],m[5]!==a?(n=(0,r.jsx)("div",{className:a}),m[5]=a,m[6]=n):n=m[6],m[7]!==b||m[8]!==x?(i=x&&(0,r.jsx)("p",{className:(0,c.cn)("text-sm font-medium","white"===b?"text-white":"text-gray-600"),children:x}),m[7]=b,m[8]=x,m[9]=i):i=m[9],m[10]!==n||m[11]!==i?(s=(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[n,i]}),m[10]=n,m[11]=i,m[12]=s):s=m[12],m[13]!==s||m[14]!==t?(u=(0,r.jsx)("div",{className:t,children:s}),m[13]=s,m[14]=t,m[15]=u):u=m[15];let w=u;if(void 0!==f&&f){let e;return m[16]!==w?(e=(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-white",children:w}),m[16]=w,m[17]=e):e=m[17],e}return w}var m=e.i(271645),p=e.i(657688),h=e.i(566595),x=e.i(263676),g=e.i(456420);let f=(0,g.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),b=(0,g.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var y=e.i(999452);function v(e){return String(e??"").toLowerCase().normalize("NFKD").replace(/[\u0300-\u036f\u064B-\u0652]/g,"")}function w(e){return v(e).split(/\s+/).filter(Boolean)}function j(e,r){let t=v(r).trim(),a=w(r);if(!t||0===a.length)return 0;let n=[e.name,e.nameRu,e.nameAr].map(v).filter(Boolean),i=v(e.category),s=[e.description,e.descriptionRu,e.descriptionAr].map(v),l=0;for(let e of n)e===t&&(l=Math.max(l,1e3)),e.startsWith(t)&&(l=Math.max(l,900)),e.includes(t)&&(l=Math.max(l,800)),a.every(r=>e.includes(r))&&(l=Math.max(l,700)),l+=50*a.filter(r=>e.includes(r)).length;return i.includes(t)&&(l+=100),l+=s.reduce((e,r)=>e+5*a.filter(e=>r.includes(e)).length,0)}function N(e,r){var t;return r.trim()?(t=e.filter(e=>(function(e,r){let t,a=w(r);if(0===a.length)return!0;let n=(t=(e.variants??[]).flatMap(e=>[e.color,e.size]),[e.name,e.nameRu,e.nameAr,e.category,e.description,e.descriptionRu,e.descriptionAr,e.size,...t].map(v).join(" "));return a.every(e=>n.includes(e))})(e,r)),[...t].sort((e,t)=>j(t,r)-j(e,r))):e}var k=e.i(166005);function S(e){let t,a,n,i,s,c,o,d,u,g,v,w,j,S,C,R,M,E,$,_,T,L,O,P,A=(0,l.c)(77),{products:F,onSearchChange:I,searchQuery:B}=e,{t:z,dir:D,locale:U,messages:V}=(0,y.useTranslation)(),[Y,G]=(0,m.useState)(!1);A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0];let[H,W]=(0,m.useState)(t),K=(0,m.useRef)(null),Z=(0,m.useRef)(null);A[1]!==U?(a=function(e){return({en:"en-US",ru:"ru-RU",ar:"ar-AE"})[e]||"en-US"}(U),A[1]=U,A[2]=a):a=A[2],A[3]!==I?(n=e=>{I(e),Z.current?.focus()},A[3]=I,A[4]=n):n=A[4],A[5]!==a||A[6]!==n?(i={language:a,onResult:n},A[5]=a,A[6]=n,A[7]=i):i=A[7];let{isListening:J,status:q,transcript:Q,error:X,isSupported:ee,startListening:er,stopListening:et}=function(e){let r,t,a,n,i,s,c,o,d,u,p,h,x,g=(0,l.c)(28);g[0]!==e?(r=void 0===e?{}:e,g[0]=e,g[1]=r):r=g[1];let{onResult:f,onError:b,language:y}=r,v=void 0===y?"en-US":y,[w,j]=(0,m.useState)(!1),[N,k]=(0,m.useState)("idle"),[S,C]=(0,m.useState)(""),[R,M]=(0,m.useState)(null),[E,$]=(0,m.useState)(!1),_=(0,m.useRef)(null),T=(0,m.useRef)(null),L=(0,m.useRef)(!1),O=(0,m.useRef)(f),P=(0,m.useRef)(b);g[2]!==b||g[3]!==f?(t=()=>{O.current=f,P.current=b},a=[f,b],g[2]=b,g[3]=f,g[4]=t,g[5]=a):(t=g[4],a=g[5]),(0,m.useEffect)(t,a),g[6]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;$(!!e),e||k("unsupported")},i=[],g[6]=n,g[7]=i):(n=g[6],i=g[7]),(0,m.useEffect)(n,i),g[8]!==v?(s=()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e)return;let r=new e;return r.continuous=!1,r.interimResults=!0,r.lang=v,r.onstart=()=>{L.current=!0,j(!0),k("listening"),M(null),C("")},r.onresult=e=>{let r=e.results,t=r[r.length-1];if(!t||!t[0])return;let a=t[0].transcript;C(a),t.isFinal&&(k("processing"),O.current?.(a.trim()),setTimeout(()=>{k("idle"),j(!1),L.current=!1},500))},r.onerror=e=>{let r;switch(e.error){case"not-allowed":r="Microphone access denied. Please allow microphone access.";break;case"no-speech":r="No speech detected. Please try again.";break;case"audio-capture":r="No microphone found. Please connect a microphone.";break;case"network":r="Network error. Please check your connection.";break;case"aborted":k("idle"),j(!1),L.current=!1;return;default:r=`Voice recognition error: ${e.error}`}M(r),k("error"),j(!1),L.current=!1,P.current?.(r)},r.onend=()=>{L.current&&(j(!1),L.current=!1,k("idle")),T.current&&(clearTimeout(T.current),T.current=null)},_.current=r,()=>{if(_.current)try{_.current.abort()}catch{}T.current&&clearTimeout(T.current)}},c=[v],g[8]=v,g[9]=s,g[10]=c):(s=g[9],c=g[10]),(0,m.useEffect)(s,c),g[11]!==E||g[12]!==v?(o=()=>
2{if(!E){M("Voice search is not supported in your browser"),k("unsupported");return}let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(!e){M("Voice search is not supported in your browser"),k("unsupported");return}if(_.current)try{_.current.abort()}catch{}let r=new e;r.continuous=!1,r.interimResults=!0,r.lang=v,r.onstart=()=>{L.current=!0,j(!0),k("listening"),M(null),C("")},r.onresult=e=>{let r=e.results,t=r[r.length-1];if(!t||!t[0])return;let a=t[0].transcript;C(a),t.isFinal&&(k("processing"),O.current?.(a.trim()),setTimeout(()=>{k("idle"),j(!1),L.current=!1},500))},r.onerror=e=>{let r;switch(e.error){case"not-allowed":r="Microphone access denied";break;case"no-speech":r="No speech detected";break;case"audio-capture":r="No microphone found";break;case"network":r="Network error";break;case"aborted":k("idle"),j(!1),L.current=!1;return;default:r=`Error: ${e.error}`}M(r),k("error"),j(!1),L.current=!1,P.current?.(r)},r.onend=()=>{L.current&&(j(!1),L.current=!1,k("idle")),T.current&&(clearTimeout(T.current),T.current=null)},_.current=r,M(null);try{r.start(),T.current=setTimeout(()=>{if(_.current&&L.current)try{_.current.stop()}catch{}},1e4)}catch(e){console.error("Voice recognition start error:",e),M("Failed to start voice recognition"),k("error")}},g[11]=E,g[12]=v,g[13]=o):o=g[13];let A=o;g[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{if(_.current)try{_.current.stop()}catch{}T.current&&(clearTimeout(T.current),T.current=null),L.current=!1,j(!1),k("idle")},g[14]=d):d=g[14];let F=d;g[15]===Symbol.for("react.memo_cache_sentinel")?(u=()=>()=>{F()},p=[F],g[15]=u,g[16]=p):(u=g[15],p=g[16]),(0,m.useEffect)(u,p),g[17]!==w||g[18]!==A?(h=()=>{w?F():A()},g[17]=w,g[18]=A,g[19]=h):h=g[19];let I=h;return g[20]!==R||g[21]!==w||g[22]!==E||g[23]!==A||g[24]!==N||g[25]!==I||g[26]!==S?(x={isListening:w,status:N,transcript:S,error:R,isSupported:E,startListening:A,stopListening:F,toggleListening:I},g[20]=R,g[21]=w,g[22]=E,g[23]=A,g[24]=N,g[25]=I,g[26]=S,g[27]=x):x=g[27],x}(i);A[8]!==J||A[9]!==I||A[10]!==Q?(s=()=>{J&&Q&&I(Q)},c=[Q,J,I],A[8]=J,A[9]=I,A[10]=Q,A[11]=s,A[12]=c):(s=A[11],c=A[12]),(0,m.useEffect)(s,c),A[13]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{let e=e=>{K.current&&!K.current.contains(e.target)&&G(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},d=[],A[13]=o,A[14]=d):(o=A[13],d=A[14]),(0,m.useEffect)(o,d),A[15]!==J||A[16]!==I||A[17]!==F||A[18]!==et?(u=e=>{let r=e.target.value;I(r),J&&et(),r.length>0?W(N(F,r).slice(0,5)):W([])},A[15]=J,A[16]=I,A[17]=F,A[18]=et,A[19]=u):u=A[19];let ea=u;A[20]!==I?(g=e=>{I(e.name),W([]),G(!1)},A[20]=I,A[21]=g):g=A[21];let en=g;A[22]!==J||A[23]!==I||A[24]!==et?(v=()=>{I(""),W([]),J&&et()},A[22]=J,A[23]=I,A[24]=et,A[25]=v):v=A[25];let ei=v;A[26]!==J||A[27]!==er||A[28]!==et?(w=e=>
2{e.preventDefault(),e.stopPropagation(),J?et():(G(!0),er())},A[26]=J,A[27]=er,A[28]=et,A[29]=w):w=A[29];let es=w,el=`absolute ${"rtl"===D?"right-4":"left-4"} top-1/2 h-5 w-5 -translate-y-1/2 text-[var(--cera-muted)]`;A[30]!==el?(j=(0,r.jsx)(h.Search,{className:el}),A[30]=el,A[31]=j):j=A[31],A[32]!==J||A[33]!==z?(S=z(J?"voiceSearch.listening":"products.searchPlaceholder"),A[32]=J,A[33]=z,A[34]=S):S=A[34],A[35]===Symbol.for("react.memo_cache_sentinel")?(C=()=>G(!0),A[35]=C):C=A[35];let ec=`w-full rounded-full border bg-white py-3 text-[15px] text-[var(--cera-ink)] transition-all duration-200 placeholder:text-[var(--cera-muted)]/70 focus:border-[var(--cera-rose)] focus:outline-none focus:ring-2 focus:ring-[var(--cera-rose)]/15 ${"rtl"===D?"pe-12 ps-24":"ps-12 pe-24"} ${J?"border-[var(--cera-rose)] ring-2 ring-[var(--cera-blush-deep)]":"border-[var(--cera-line)]"}`;return A[36]!==z?(R=z("products.searchPlaceholder"),A[36]=z,A[37]=R):R=A[37],A[38]!==ea||A[39]!==B||A[40]!==S||A[41]!==ec||A[42]!==R?(M=(0,r.jsx)("input",{ref:Z,id:"product-search",name:"product-search",type:"text",placeholder:S,value:B,onChange:ea,onFocus:C,className:ec,"aria-label":R,autoComplete:"off"}),A[38]=ea,A[39]=B,A[40]=S,A[41]=ec,A[42]=R,A[43]=M):M=A[43],A[44]!==D||A[45]!==es||A[46]!==J||A[47]!==ee||A[48]!==z?(E=ee&&(0,r.jsx)("button",{type:"button",onClick:es,className:`absolute ${"rtl"===D?"left-12":"right-12"} top-1/2 flex min-h-[44px] min-w-[44px] -translate-y-1/2 select-none items-center justify-center rounded-full p-2 transition-all duration-200 touch-manipulation ${J?"animate-pulse bg-[var(--cera-blush)] text-[var(--cera-rose)]":"text-[var(--cera-muted)] hover:bg-[var(--cera-cream-deep)] hover:text-[var(--cera-ink)]"}`,"aria-label":z(J?"voiceSearch.stopListening":"voiceSearch.startListening"),title:z(J?"voiceSearch.stopListening":"voiceSearch.startListening"),children:J?(0,r.jsx)(b,{className:"h-5 w-5"}):(0,r.jsx)(f,{className:"h-5 w-5"})}),A[44]=D,A[45]=es,A[46]=J,A[47]=ee,A[48]=z,A[49]=E):E=A[49],A[50]!==ei||A[51]!==D||A[52]!==B||A[53]!==z?($=B&&(0,r.jsx)("button",{onClick:ei,className:`absolute ${"rtl"===D?"left-2":"right-2"} top-1/2 flex min-h-[44px] min-w-[44px] -translate-y-1/2 items-center justify-center p-2 text-[var(--cera-muted)] touch-manipulation hover:text-[var(--cera-ink)]`,"aria-label":z("common.close"),children:(0,r.jsx)(x.X,{className:"h-5 w-5"})}),A[50]=ei,A[51]=D,A[52]=B,A[53]=z,A[54]=$):$=A[54],A[55]!==j||A[56]!==M||A[57]!==E||A[58]!==$?(_=(0,r.jsxs)("div",{className:"relative",children:[j,M,E,$]}),A[55]=j,A[56]=M,A[57]=E,A[58]=$,A[59]=_):_=A[59],A[60]!==J||A[61]!==z?(T=J&&(0,r.jsxs)("div",{className:"absolute -bottom-8 left-1/2 transform -translate-x-1/2 flex items-center gap-2 text-sm text-red-500",children:[(0,r.jsxs)("span",{className:"relative flex h-3 w-3",children:[(0,r.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),(0,r.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-red-500"})]}),z("voiceSearch.listening"),"..."]}),A[60]=J,A[61]=z,A[62]=T):T=A[62],A[63]!==X||A[64]!==q?(L="error"===q&&X&&(0,r.jsx)("div",{className:"absolute -bottom-8 left-1/2 transform -translate-x-1/2 text-sm text-red-500 whitespace-nowrap",children:X}),A[63]=X,A[64]=q,A[65]=L):L=A[65],A[66]!==en||A[67]!==Y||A[68]!==J||A[69]!==V||A[70]!==H?(O=Y&&H.length>0&&!J&&(0,r.jsx)("div",{className:"absolute z-50 mt-2 max-h-64 w-full overflow-y-auto rounded-2xl border border-[var(--cera-line)] bg-white shadow-[0_18px_40px_-24px_rgba(23,20,15,0.45)]",children:H.map(e=>(0,r.jsx)("button",{onClick:()=>en(e),className:"min-h-[44px] w-full border-b border-[var(--cera-line)] px-4 py-3 text-start transition-colors last:border-b-0 touch-manipulation hover:bg-[var(--cera-cream)]",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(p.default,{src:e.image,alt:`${e.name} - GENOSYS Korean ${e.category||"dermacosmetics"} product`,className:"w-10 h-10 object-contain bg-white rounded",width:40,height:40}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"truncate text-[14px] font-medium text-[var(--cera-ink)]",children:e.name}),(0,r.jsx)("p",{className:"text-[12px] text-[var(--cera-muted)]",children:(0,k.translateCategory)(e.category,V)})]})]})},e.id))}),A[66]=en,A[67]=Y,A[68]=J,A[69]=V,A[70]=H,A[71]=O):O=A[71],A[72]!==_||A[73]!==T||A[74]!==L||A[75]!==O?(P=(0,r.jsxs)("div",{ref:K,className:"relative w-full max-w-2xl mx-auto mb-6",children:[_,T,L,O]}),A[72]=_,A[73]=T,A[74]=L,A[75]=O,A[76]=P):P=A[76],P}var C=e.i(716327),R=e.i(456539),M=e.i(246254);let E=(0,m.memo)(function(e){let t,a,n,i,s,c,o,d,u,p,h,x,g,f,b,v,w,j,N,k,S,E,T,L,O,P,A,F,I,B,z,D,U,V,Y,G,H,W,K,Z,J,q,Q,X,ee=(0,l.c)(126),{products:er,categories:et,onFiltersChange:ea,activeFilters:en}=e,{t:ei,dir:es}=(0,y.useTranslation)();ee[0]===Symbol.for("react.memo_cache_sentinel")?(t={category:!0,price:!0,rating:!0,stock:!0},ee[0]=t):t=ee[0];let[el,ec]=(0,m.useState)(t);ee[1]!==er?(a=er.length>0?er.reduce($,{min:1/0,max:0}):{min:0,max:1e4},ee[1]=er,ee[2]=a):a=ee[2];let eo=a;ee[3]!==en||ee[4]!==ea?(n=e=>{let r=en.categories.includes(e)?en.categories.filter(r=>r!==e):[...en.categories,e];ea({...en,categories:r})},ee[3]=en,ee[4]=ea,ee[5]=n):n=ee[5];let ed=n;ee[6]!==en||ee[7]!==ea?(i=(e,r)=>{let t=[...en.priceRange];t[e]=r,t[0]>t[1]&&(t[e]=t[1-e]||r),ea({...en,priceRange:t})},ee[6]=en,ee[7]=ea,ee[8]=i):i=ee[8];let eu=i;ee[9]!==en||ee[10]!==ea?(s=e=>{ea({...en,minRating:e})}
2,ee[9]=en,ee[10]=ea,ee[11]=s):s=ee[11];let em=s;ee[12]!==en||ee[13]!==ea?(c=()=>{ea({...en,inStockOnly:!en.inStockOnly})},ee[12]=en,ee[13]=ea,ee[14]=c):c=ee[14];let ep=c;ee[15]!==ea||ee[16]!==eo.max||ee[17]!==eo.min?(o=()=>{ea({categories:[],priceRange:[eo.min,eo.max],minRating:0,inStockOnly:!1})},ee[15]=ea,ee[16]=eo.max,ee[17]=eo.min,ee[18]=o):o=ee[18];let eh=o,ex=en.categories.length>0||en.priceRange[0]!==eo.min||en.priceRange[1]!==eo.max||en.minRating>0||en.inStockOnly;ee[19]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{ec(r=>({...r,[e]:!r[e]}))},ee[19]=d):d=ee[19];let eg=d,ef=`flex items-center justify-between p-4 border-b border-[var(--cera-line)] ${"rtl"===es?"flex-row-reverse":""}`;ee[20]!==ei?(u=ei("products.filters"),ee[20]=ei,ee[21]=u):u=ee[21],ee[22]!==u?(p=(0,r.jsx)("h2",{className:"cera-serif text-[19px] text-[var(--cera-ink)]",children:u}),ee[22]=u,ee[23]=p):p=ee[23],ee[24]!==eh||ee[25]!==ex||ee[26]!==ei?(h=ex&&(0,r.jsx)("button",{onClick:eh,className:"px-2 py-1 text-[13px] font-semibold text-[var(--cera-rose-ink)] hover:opacity-70",children:ei("products.clear")}),ee[24]=eh,ee[25]=ex,ee[26]=ei,ee[27]=h):h=ee[27],ee[28]!==p||ee[29]!==h||ee[30]!==ef?(x=(0,r.jsxs)("div",{className:ef,children:[p,h]}),ee[28]=p,ee[29]=h,ee[30]=ef,ee[31]=x):x=ee[31],ee[32]===Symbol.for("react.memo_cache_sentinel")?(g={maxHeight:"calc(100vh - 10rem)"},ee[32]=g):g=ee[32],ee[33]===Symbol.for("react.memo_cache_sentinel")?(f=()=>eg("category"),ee[33]=f):f=ee[33];let eb=`mb-3 flex w-full items-center justify-between py-2 text-[13px] font-semibold uppercase tracking-[0.08em] text-[var(--cera-muted)] ${"rtl"===es?"flex-row-reverse":""}`;ee[34]!==ei?(b=ei("products.categories"),ee[34]=ei,ee[35]=b):b=ee[35],ee[36]!==b?(v=(0,r.jsx)("span",{children:b}),ee[36]=b,ee[37]=v):v=ee[37],ee[38]!==el.category?(w=el.category?(0,r.jsx)(R.ChevronUp,{className:"h-4 w-4"}):(0,r.jsx)(C.ChevronDown,{className:"h-4 w-4"}),ee[38]=el.category,ee[39]=w):w=ee[39],ee[40]!==eb||ee[41]!==v||ee[42]!==w?(j=(0,r.jsxs)("button",{onClick:f,className:eb,children:[v,w]}),ee[40]=eb,ee[41]=v,ee[42]=w,ee[43]=j):j=ee[43],ee[44]!==en.categories||ee[45]!==et||ee[46]!==el.category||ee[47]!==ed||ee[48]!==ei?(N=el.category&&(0,r.jsx)("div",{className:"space-y-2",children:et.filter(_).map(e=>{let t=(0,M.isNewCategoryFilterId)(e.id);return(0,r.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-[14px] text-[var(--cera-body)] hover:text-[var(--cera-rose-ink)]",children:[(0,r.jsx)("input",{type:"checkbox",checked:en.categories.includes(e.id),onChange:()=>ed(e.id),className:"h-4 w-4 cursor-pointer rounded border-[var(--cera-line)] bg-white accent-[var(--cera-rose)]"}),(0,r.jsxs)("span",{className:"flex items-center gap-1.5 text-[var(--cera-ink)]",children:[e.name,t&&(0,r.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-[9px] font-bold tracking-wide uppercase bg-[var(--cera-rose)] text-white leading-none",children:ei("common.new")})]})]},e.id)})}),ee[44]=en.categories,ee[45]=et,ee[46]=el.category,ee[47]=ed,ee[48]=ei,ee[49]=N):N=ee[49],ee[50]!==j||ee[51]!==N?(k=(0,r.jsxs)("div",{className:"border-b border-[var(--cera-line)] pb-4",children:[j,N]}),ee[50]=j,ee[51]=N,ee[52]=k):k=ee[52],ee[53]===Symbol.for("react.memo_cache_sentinel")?(S=()=>eg("price"),ee[53]=S):S=ee[53];let ey=`mb-3 flex w-full items-center justify-between py-2 text-[13px] font-semibold uppercase tracking-[0.08em] text-[var(--cera-muted)] ${"rtl"===es?"flex-row-reverse":""}`;ee[54]!==ei?(E=ei("products.priceRange"),ee[54]=ei,ee[55]=E):E=ee[55],ee[56]!==E?(T=(0,r.jsx)("span",{children:E}),ee[56]=E,ee[57]=T):T=ee[57],ee[58]!==el.price?(L=el.price?(0,r.jsx)(R.ChevronUp,{className:"h-4 w-4"}):(0,r.jsx)(C.ChevronDown,{className:"h-4 w-4"}),ee[58]=el.price,ee[59]=L):L=ee[59],ee[60]!==ey||ee[61]!==T||ee[62]!==L?(O=(0,r.jsxs)("button",{onClick:S,className:ey,children:[T,L]}),ee[60]=ey,ee[61]=T,ee[62]=L,ee[63]=O):O=ee[63],ee[64]!==en.priceRange||ee[65]!==el.price||ee[66]!==eu||ee[67]!==eo.max||ee[68]!==eo.min||ee[69]!==ei?(P=el.price&&(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("input",{id:"price-min",name:"price-min",type:"number",min:eo.min,max:eo.max,value:en.priceRange[0],onChange:e=>eu(0,Number(e.target.value)),className:"w-full rounded-xl border border-[var(--cera-line)] bg-white px-3 py-2 text-[14px] text-[var(--cera-ink)] focus:border-[var(--cera-rose)] focus:outline-none",placeholder:ei("products.min")}),(0,r.jsx)("span",{className:"text-[var(--cera-muted)]",children:"-"}),(0,r.jsx)("input",{id:"price-max",name:"price-max",type:"number",min:eo.min,max:eo.max,value:en.priceRange[1],onChange:e=>eu(1,Number(e.target.value)),className:"w-full rounded-xl border border-[var(--cera-line)] bg-white px-3 py-2 text-[14px] text-[var(--cera-ink)] focus:border-[var(--cera-rose)] focus:outline-none",placeholder:ei("products.max")})]}),(0,r.jsx)("div",{className:"text-[12px] text-[var(--cera-muted)]",children:ei("products.range",{min:eo.min.toFixed(0),max:eo.max.toFixed(0)})})]}),ee[64]=en.priceRange,ee[65]=el.price,ee[66]=eu,ee[67]=eo.max,ee[68]=eo.min,ee[69]=ei,ee[70]=P):P=ee[70],ee[71]!==O||ee[72]!==P?(A=(0,r.jsxs)("div",{className:"border-b border-[var(--cera-line)] pb-4",children:[O,P]}),ee[71]=O,ee[72]=P,ee[73]=A):A=ee[73],ee[74]===Symbol.for("react.memo_cache_sentinel")?(F=()=>eg("rating"),ee[74]=F):F=ee[74];let ev=`mb-3 flex w-full items-center justify-between py-2 text-[13px] font-semibold uppercase tracking-[0.08em] text-[var(--cera-muted)] ${"rtl"===es?"flex-row-reverse":""}`;ee[75]!==ei?(I=ei("products.minimumRating"),ee[75]=ei,ee[76]=I):I=ee[76],ee[77]!==I?(B=(0,r.jsx)("span",{children:I}),ee[77]=I,ee[78]=B):B=ee[78],ee[79]!==el.rating?(z=el.rating?(0,r.jsx)(R.ChevronUp,{className:"h-4 w-4"}):(0,r.jsx)(C.ChevronDown,{className:"h-4 w-4"}),ee[79]=el.rating,ee[80]=z):z=ee[80],ee[81]!==ev||ee[82]!==B||ee[83]!==z?(D=(0,r.jsxs)("button",{onClick:F,className:ev,children:[B,z]}),ee[81]=ev,ee[82]=B,ee[83]=z,ee[84]=D):D=ee[84],ee[85]!==en.minRating||ee[86]!==es||ee[87]!==el.rating||ee[88]!==em||ee[89]!==ei?(U=el.rating&&(0,r.jsx)("div",{className:"space-y-2",children:[4,3,2,1,0].map(e=>(0,r.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-[14px] text-[var(--cera-body)] hover:text-[var(--cera-rose-ink)]",children:[(0,r.jsx)("input",{type:"radio",name:"rating",checked:en.minRating===e,onChange:()=>em(e),className:"h-4 w-4 cursor-pointer border-[var(--cera-line)] bg-white accent-[var(--cera-rose)]"}),(0,r.jsxs)("span",{className:"text-[var(--cera-ink)]",children:[0===e?ei("products.anyRating"):ei("products.stars",{rating:e}),e>0&&(0,r.jsx)("span",{className:`${"rtl"===es?"mr-1":"ml-1"} text-yellow-500`,children:"â
".repeat(e)})]})]},e))}),ee[85]=en.minRating,ee[86]=es,ee[87]=el.rating,ee[88]=em,ee[89]=ei,ee[90]=U):U=ee[90],ee[91]!==D||ee[92]!==U?(V=(0,r.jsxs)("div",{className:"border-b border-[var(--cera-line)] pb-4",children:[D,U]}),ee[91]=D,ee[92]=U,ee[93]=V):V=ee[93],ee[94]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>eg("stock"),ee[94]=Y):Y=ee[94];let ew=`mb-3 flex w-full items-center justify-between py-2 text-[13px] font-semibold uppercase tracking-[0.08em] text-[var(--cera-muted)] ${"rtl"===es?"flex-row-reverse":""}`;return ee[95]!==ei?(G=ei("products.availability"),ee[95]=ei,ee[96]=G):G=ee[96],ee[97]!==G?(H=(0,r.jsx)("span",{children:G}),ee[97]=G,ee[98]=H):H=ee[98],ee[99]!==el.stock?(W=el.stock?(0,r.jsx)(R.ChevronUp,{className:"h-4 w-4"}):(0,r.jsx)(C.ChevronDown,{className:"h-4 w-4"}),ee[99]=el.stock,ee[100]=W):W=ee[100],ee[101]!==ew||ee[102]!==H||ee[103]!==W?(K=(0,r.jsxs)("button",{onClick:Y,className:ew,children:[H,W]}),ee[101]=ew,ee[102]=H,ee[103]=W,ee[104]=K):K=ee[104],ee[105]!==en.inStockOnly||ee[106]!==el.stock||ee[107]!==ep||ee[108]!==ei?(Z=el.stock&&(0,r.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-[14px] text-[var(--cera-body)] hover:text-[var(--cera-rose-ink)]",children:[(0,r.jsx)("input",{type:"checkbox",checked:en.inStockOnly,onChange:ep,className:"h-4 w-4 cursor-pointer rounded border-[var(--cera-line)] bg-white accent-[var(--cera-rose)]"}),(0,r.jsx)("span",{className:"text-[var(--cera-ink)]",children:ei("products.inStockOnly")})]}),ee[105]=en.inStockOnly,ee[106]=el.stock,ee[107]=ep,ee[108]=ei,ee[109]=Z):Z=ee[109],ee[110]!==K||ee[111]!==Z?(J=(0,r.jsxs)("div",{className:"border-b border-[var(--cera-line)] pb-4",children:[K,Z]}),ee[110]=K,ee[111]=Z,ee[112]=J):J=ee[112],ee[113]!==eh||ee[114]!==ex||ee[115]!==ei?(q=ex&&(0,r.jsx)("button",{onClick:eh,className:"ed-ghost w-full px-4 py-3 text-[14px]",children:ei("products.clearAllFilters")}),ee[113]=eh,ee[114]=ex,ee[115]=ei,ee[116]=q):q=ee[116],ee[117]!==k||ee[118]!==A||ee[119]!==V||ee[120]!==J||ee[121]!==q?(Q=(0,r.jsx)("div",{className:"p-4 overflow-y-auto overscroll-contain",style:g,children:(0,r.jsxs)("div",{className:"space-y-4 text-[var(--cera-ink)]",children:[k,A,V,J,q]})}),ee[117]=k,ee[118]=A,ee[119]=V,ee[120]=J,ee[121]=q,ee[122]=Q):Q=ee[122],ee[123]!==x||ee[124]!==Q?(X=(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("aside",{className:"hidden md:block w-64 flex-shrink-0",children:(0,r.jsx)("div",{className:"sticky top-4",children:(0,r.jsxs)("div",{className:"cera-card",children:[x,Q]})})})}),ee[123]=x,ee[124]=Q,ee[125]=X):X=ee[125],X});function $(e,r){let t=r.price||0;return{min:Math.min(e.min,t),max:Math.max(e.max,t)}}function _(e){return"all"!==e.id}function T(e){let t,a,n,i,s,c,o,d,u,m,p,h,x=(0,l.c)(34),{sortBy:g,onSortChange:f}=e,{t:b,dir:v}=(0,y.useTranslation)();if(x[0]!==v||x[1]!==f||x[2]!==g||x[3]!==b){let e,l=[{value:"newest",label:b("products.newestFirst")},{value:"name-asc",label:b("products.nameAsc")},{value:"name-desc",label:b("products.nameDesc")},{value:"price-asc",label:b("products.priceLowToHigh")},{value:"price-desc",label:b("products.priceHighToLow")},{value:"rating-desc",label:b("products.highestRated")}];o=`flex items-center gap-2 ${"rtl"===v?"flex-row-reverse":""}`,x[12]!==b?(e=b("products.sortBy"),x[12]=b,x[13]=e):e=x[13],x[14]!==e?(d=(0,r.jsx)("label",{htmlFor:"sort",className:"whitespace-nowrap text-[13px] font-medium text-[var(--cera-muted)]",children:e}),x[14]=e,x[15]=d):d=x[15],c="relative",t="sort",a=g,x[16]!==f?(n=e=>f(e.target.value),x[16]=f,x[17]=n):n=x[17],i=`ed-field min-h-[44px] curs
2or-pointer appearance-none touch-manipulation ${"rtl"===v?"ps-9":"pe-9"}`,s=l.map(L),x[0]=v,x[1]=f,x[2]=g,x[3]=b,x[4]=t,x[5]=a,x[6]=n,x[7]=i,x[8]=s,x[9]=c,x[10]=o,x[11]=d}else t=x[4],a=x[5],n=x[6],i=x[7],s=x[8],c=x[9],o=x[10],d=x[11];x[18]!==t||x[19]!==a||x[20]!==n||x[21]!==i||x[22]!==s?(u=(0,r.jsx)("select",{id:t,value:a,onChange:n,className:i,children:s}),x[18]=t,x[19]=a,x[20]=n,x[21]=i,x[22]=s,x[23]=u):u=x[23];let w=`pointer-events-none absolute ${"rtl"===v?"left-3":"right-3"} top-1/2 h-4 w-4 -translate-y-1/2 text-[var(--cera-muted)]`;return x[24]!==w?(m=(0,r.jsx)(C.ChevronDown,{className:w}),x[24]=w,x[25]=m):m=x[25],x[26]!==m||x[27]!==c||x[28]!==u?(p=(0,r.jsxs)("div",{className:c,children:[u,m]}),x[26]=m,x[27]=c,x[28]=u,x[29]=p):p=x[29],x[30]!==p||x[31]!==o||x[32]!==d?(h=(0,r.jsxs)("div",{className:o,children:[d,p]}),x[30]=p,x[31]=o,x[32]=d,x[33]=h):h=x[33],h}function L(e){return(0,r.jsx)("option",{value:e.value,children:e.label},e.value)}function O(){let e,t,a,n,i,s,c,o,d,u,p,h,x=(0,l.c)(23),{locale:g}=(0,y.useTranslation)(),[f,b]=(0,m.useState)(null),[v,w]=(0,m.useState)(!1);if(x[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=new Date("2025-11-25T20:00:00Z").getTime(),r=new Date("2025-11-28T19:59:59Z").getTime(),t=()=>{let t=new Date().getTime();if(t>=r)return w(!0),null;if(t>=e){let e=r-t;return{days:Math.floor(e/864e5),hours:Math.floor(e%864e5/36e5),minutes:Math.floor(e%36e5/6e4),seconds:Math.floor(e%6e4/1e3)}}let a=e-t;return{days:Math.floor(a/864e5),hours:Math.floor(a%864e5/36e5),minutes:Math.floor(a%36e5/6e4),seconds:Math.floor(a%6e4/1e3)}};b(t());let a=setInterval(()=>{let e=t();e?0===e.days&&0===e.hours&&0===e.minutes&&0===e.seconds?(w(!0),b(null),clearInterval(a)):b(e):(w(!0),b(null),clearInterval(a))},1e3);return()=>clearInterval(a)},t=[],x[0]=e,x[1]=t):(e=x[0],t=x[1]),(0,m.useEffect)(e,t),v||!f)return null;let j=P,N="ar"===g?"Ø§ÙØ¬Ù عة Ø§ÙØ³Ùداء":"Black Friday";return x[2]!==N?(a=(0,r.jsx)("span",{className:"font-semibold",children:N}),x[2]=N,x[3]=a):a=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)("span",{children:"ð¥"}),i=(0,r.jsx)("span",{className:"font-bold text-red-500",children:"-20%"}),s=(0,r.jsx)("span",{className:"text-gray-300",children:"|"}),x[4]=n,x[5]=i,x[6]=s):(n=x[4],i=x[5],s=x[6]),x[7]!==f.days?(c=j(f.days),x[7]=f.days,x[8]=c):c=x[8],x[9]!==f.hours?(o=j(f.hours),x[9]=f.hours,x[10]=o):o=x[10],x[11]!==f.minutes?(d=j(f.minutes),x[11]=f.minutes,x[12]=d):d=x[12],x[13]!==f.seconds?(u=j(f.seconds),x[13]=f.seconds,x[14]=u):u=x[14],x[15]!==u||x[16]!==c||x[17]!==o||x[18]!==d?(p=(0,r.jsxs)("span",{className:"tabular-nums text-gray-600",children:[c,":",o,":",d,":",u]}),x[15]=u,x[16]=c,x[17]=o,x[18]=d,x[19]=p):p=x[19],x[20]!==p||x[21]!==a?(h=(0,r.jsxs)("div",{className:"inline-flex items-center gap-1.5 bg-white border border-gray-200 text-gray-800 px-2 py-1 rounded text-xs font-medium shadow-sm",children:[a,n,i,s,p]}),x[20]=p,x[21]=a,x[22]=h):h=x[22],h}function P(e){return e.toString().padStart(2,"0")}var A=e.i(522016),F=e.i(768877),I=e.i(282625),B=e.i(606315);function z(){let e,t,i,s,c,o,d,u,p,h,x,g,f,b,v,w,j,N,k,S,C,R,M=(0,l.c)(87),{t:E,locale:$}=(0,y.useTranslation)(),{enabled:_}=(0,n.useAnimationStore)(),[T,L]=(0,m.useState)(!1);M[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=()=>L(window.innerWidth<768);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},t=[],M[0]=e,M[1]=t):(e=M[0],t=M[1]),(0,m.useEffect)(e,t);let O="ar"===$;M[2]!==_?(i=_?(0,a.motion)(A.default):A.default,M[2]=_,M[3]=i):i=M[3];let P=i;if(T){let e,t,a,n,i,s,l,c,o,d,u,m,p,h,x,g,f,b,y;M[4]!==$?(e=(0,B.getLocalizedPath)("/bundle-builder",$),M[4]=$,M[5]=e):e=M[5],M[6]!==_?(t=_?{initial:{opacity:0,y:5},animate:{opacity:1,y:0},whileTap:{scale:.98},transition:{duration:.2}}:{},M[6]=_,M[7]=t):t=M[7];let v=` 3 flex items-center gap-3 p-3 rounded-xl 4 bg-gradient-to-r from-primary-50 to-red-50 5 border border-primary-100 6 active:bg-primary-100 transition-colors 7 ${O?"flex-row-reverse":""} 8 `;M[8]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-lg bg-primary-600 flex items-center justify-center",children:(0,r.jsx)(I.Gift,{className:"w-5 h-5 text-white"})}),M[8]=a):a=M[8];let w=`flex-1 min-w-0 ${O?"text-right":""}`;M[9]!==E?(n=E("bundleBuilder.buildYourOwn"),M[9]=E,M[10]=n):n=M[10],M[11]!==n?(i=(0,r.jsx)("span",{className:"font-semibold text-gray-900 text-sm",children:n}),M[11]=n,M[12]=i):i=M[12],M[13]!==E?(s=E("bundleBuilder.saveUpTo"),M[13]=E,M[14]=s):s=M[14],M[15]!==s?(l=(0,r.jsx)("span",{className:"text-xs text-primary-600 font-medium",children:s}
8),M[15]=s,M[16]=l):l=M[16],M[17]!==l||M[18]!==i?(c=(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[i,l]}),M[17]=l,M[18]=i,M[19]=c):c=M[19];let j=`flex items-center gap-1.5 mt-0.5 text-[11px] text-gray-500 ${O?"flex-row-reverse":""}`;M[20]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("span",{children:"2+ â 5%"}),d=(0,r.jsx)("span",{children:"â¢"}),u=(0,r.jsx)("span",{children:"3+ â 10%"}),m=(0,r.jsx)("span",{children:"â¢"}),p=(0,r.jsx)("span",{children:"4+ â 15%"}),h=(0,r.jsx)("span",{children:"â¢"}),x=(0,r.jsx)("span",{children:"5+ â 20%"}),M[20]=o,M[21]=d,M[22]=u,M[23]=m,M[24]=p,M[25]=h,M[26]=x):(o=M[20],d=M[21],u=M[22],m=M[23],p=M[24],h=M[25],x=M[26]),M[27]!==j?(g=(0,r.jsxs)("div",{className:j,children:[o,d,u,m,p,h,x]}),M[27]=j,M[28]=g):g=M[28],M[29]!==c||M[30]!==g||M[31]!==w?(f=(0,r.jsxs)("div",{className:w,children:[c,g]}),M[29]=c,M[30]=g,M[31]=w,M[32]=f):f=M[32];let N=`w-5 h-5 text-primary-600 flex-shrink-0 ${O?"rotate-180":""}`;return M[33]!==N?(b=(0,r.jsx)(F.ArrowRight,{className:N}),M[33]=N,M[34]=b):b=M[34],M[35]!==P||M[36]!==f||M[37]!==b||M[38]!==e||M[39]!==t||M[40]!==v?(y=(0,r.jsxs)(P,{href:e,...t,className:v,children:[a,f,b]}),M[35]=P,M[36]=f,M[37]=b,M[38]=e,M[39]=t,M[40]=v,M[41]=y):y=M[41],y}M[42]!==$?(s=(0,B.getLocalizedPath)("/bundle-builder",$),M[42]=$,M[43]=s):s=M[43],M[44]!==_?(c=_?{initial:{opacity:0,y:10},animate:{opacity:1,y:0},whileHover:{scale:1.01},whileTap:{scale:.99},transition:{duration:.3}}:{},M[44]=_,M[45]=c):c=M[45];let z=` 9 relative block overflow-hidden rounded-2xl 10 bg-gradient-to-br from-primary-50 via-red-50 to-primary-100 11 border border-primary-100 12 p-6 sm:p-8 13 group cursor-pointer 14 transition-all duration-300 15 hover:shadow-lg hover:border-primary-200 hover:shadow-primary/10 16 ${O?"text-right":"text-left"} 17 `;M[46]===Symbol.for("react.memo_cache_sentinel")?(o=(0,r.jsx)("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-primary-200/40 to-transparent rounded-full -translate-y-1/2 translate-x-1/2"}),d=(0,r.jsx)("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-gradient-to-tr from-primary-200/30 to-transparent rounded-full translate-y-1/2 -translate-x-1/2"}),M[46]=o,M[47]=d):(o=M[46],d=M[47]);let U=`flex items-start gap-4 ${O?"flex-row-reverse":""}`;M[48]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)("div",{className:"flex-shrink-0 w-12 h-12 rounded-xl bg-white/80 shadow-sm flex items-center justify-center border border-primary-100",children:(0,r.jsx)(I.Gift,{className:"w-6 h-6 text-primary-600"})}),M[48]=u):u=M[48],M[49]!==E?(p=E("bundleBuilder.buildYourOwn"),M[49]=E,M[50]=p):p=M[50],M[51]!==p?(h=(0,r.jsx)("h3",{className:"text-lg sm:text-xl font-semibold text-gray-900 mb-1",children:p}),M[51]=p,M[52]=h):h=M[52],M[53]!==E?(x=E("bundleBuilder.buildYourOwnSubtitle"),M[53]=E,M[54]=x):x=M[54],M[55]!==x?(g=(0,r.jsx)("p",{className:"text-sm text-gray-600 max-w-md",children:x}),M[55]=x,M[56]=g):g=M[56];let V=`flex flex-wrap gap-2 mt-3 ${O?"justify-end":""}`;M[57]===Symbol.for("react.memo_cache_sentinel")?(f=["5%","10%","15%","20%"].map(D),M[57]=f):f=M[57],M[58]!==V?(b=(0,r.jsx)("div",{className:V,children:f}),M[58]=V,M[59]=b):b=M[59],M[60]!==h||M[61]!==g||M[62]!==b?(v=(0,r.jsxs)("div",{children:[h,g,b]}),M[60]=h,M[61]=g,M[62]=b,M[63]=v):v=M[63],M[64]!==v||M[65]!==U?(w=(0,r.jsxs)("div",{className:U,children:[u,v]}),M[64]=v,M[65]=U,M[66]=w):w=M[66];let Y=`flex-shrink-0 ${O?"sm:ml-0 sm:mr-auto":"sm:ml-auto"}`,G=` 18 inline-flex items-center gap-2 px-5 py-2.5 rounded-xl 19 bg-primary-600 text-white text-sm font-medium 20 group-hover:bg-primary-700 transition-colors shadow-sm shadow-primary/20 21 ${O?"flex-row-reverse":""} 22 `;M[67]!==E?(j=E("bundleBuilder.startBuilding"),M[67]=E,M[68]=j):j=M[68];let H=`w-4 h-4 transition-transform group-hover:translate-x-0.5 ${O?"rotate-180 group-hover:-translate-x-0.5":""}`;return M[69]!==H?(N=(0,r.jsx)(F.ArrowRight,{className:H}),M[69]=H,M[70]=N):N=M[70],M[71]!==G||M[72]!==j||M[73]!==N?(k=(0,r.jsxs)("span",{className:G,children:[j,N]}),M[71]=G,M[72]=j,M[73]=N,M[74]=k):k=M[74],M[75]!==Y||M[76]!==k?(S=(0,r.jsx)("div",{className:Y,children:k}),M[75]=Y,M[76]=k,M[77]=S):S=M[77],M[78]!==w||M[79]!==S?(C=(0,r.jsxs)("div",{className:"relative z-10 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[w,S]}),M[78]=w,M[79]=S,M[80]=C):C=M[80],M[81]!==P||M[82]!==C||M[83]!==s||M[84]!==c||M[85]!==z?(R=(0,r.jsxs)(P,{href:s,...c,className:z,children:[o,d,C]}),M[81]=P,M[82]=C,M[83]=s,M[84]=c,M[85]=z,M[86]=R):R=M[86],R}function D(e,t){return(0,r.jsxs)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-white/80 text-primary-700 border border-primary-100",children:[t+2,"+ â ",e]},e)}var U=e.i(88653);e.i(247167);var V=e.i(571164),Y=e.i(138544),G=e.i(711241),H=e.i(753558),W=e.i(255142);let K=[{id:"scalp",cx:50,cy:11,label:{en:"Scalp & hairline",ar:"ÙØ±ÙØ© Ø§ÙØ±Ø£Ø³ ÙØ®Ø· Ø§ÙØ´Ø¹Ø±",ru:"Ðожа Ð³Ð¾Ð»Ð¾Ð²Ñ Ð¸ лиÐ
22½Ð¸Ñ ÑоÑÑа волоÑ"},concerns:["hair-loss"]},{id:"forehead",cx:50,cy:30,label:{en:"Forehead",ar:"Ø§ÙØ¬Ø¨ÙØ©",ru:"Ðоб"},concerns:["anti-aging","sun-protection"]},{id:"eye-left",cx:30,cy:47,label:{en:"Eye contour",ar:"Ù
ØÙØ· Ø§ÙØ¹ÙÙ",ru:"ÐонÑÑÑ Ð³Ð»Ð°Ð·"},concerns:["anti-aging"]},{id:"eye-right",cx:71,cy:47,label:{en:"Eye contour",ar:"Ù
ØÙØ· Ø§ÙØ¹ÙÙ",ru:"ÐонÑÑÑ Ð³Ð»Ð°Ð·"},concerns:["anti-aging"]},{id:"nose",cx:50,cy:58,label:{en:"Nose & T-zone",ar:"Ø§ÙØ£ÙÙ ÙØ§ÙÙ
ÙØ·ÙØ© T",ru:"ÐÐ¾Ñ Ð¸ Т-зона"},concerns:["acne-treatment"]},{id:"cheek-left",cx:24,cy:63,label:{en:"Cheeks",ar:"Ø§ÙØ®Ø¯Ùد",ru:"ЩÑки"},concerns:["pigmentation","sensitivity"]},{id:"cheek-right",cx:76,cy:63,label:{en:"Cheeks",ar:"Ø§ÙØ®Ø¯Ùد",ru:"ЩÑки"},concerns:["pigmentation","sensitivity"]},{id:"mouth",cx:50,cy:78,label:{en:"Lips & smile lines",ar:"Ø§ÙØ´ÙØ§Ù ÙØ®Ø·ÙØ· Ø§ÙØ§Ø¨ØªØ³Ø§Ù
Ø©",ru:"ÐÑÐ±Ñ Ð¸ ноÑогÑбнÑе линии"},concerns:["hydration"]},{id:"chin",cx:50,cy:90,label:{en:"Chin & jawline",ar:"Ø§ÙØ°ÙÙ ÙØ®Ø· اÙÙÙ",ru:"ÐодбоÑодок и Ð»Ð¸Ð½Ð¸Ñ ÑелÑÑÑи"},concerns:["scars-treatment","acne-treatment"]}],Z={en:"Or start from where it shows",ar:"أ٠ابدئ٠Ù
Ù Ù
ÙØ¶Ø¹ Ø§ÙØ¸ÙÙØ±",ru:"Ðли наÑниÑе Ñ Ñого, где ÑÑо замеÑно"},J={en:"Point to the area that bothers you",ar:"Ø£Ø´ÙØ±Ù Ø¥Ù٠اÙÙ
ÙØ·ÙØ© Ø§ÙØªÙ تزعجÙ",ru:"УкажиÑе зонÑ, коÑоÑÐ°Ñ Ð²Ð°Ñ Ð±ÐµÑпокоиÑ"},q={en:"Nine areas, mapped to the same eight concerns as the cards above. Choose one and we will name the protocol for it.",ar:"تسع Ù
ÙØ§Ø·ÙØ Ù
رتبطة باÙÙ
خاÙÙ Ø§ÙØ«Ù
اÙÙØ© ÙÙØ³Ùا ÙÙ Ø§ÙØ¨Ø·Ø§Ùات Ø£Ø¹ÙØ§Ù. Ø§Ø®ØªØ§Ø±Ù ÙØ§ØØ¯Ø© ÙØ³ÙسÙ
ÙÙ Ø§ÙØ¨Ø±ÙتÙÙÙÙ Ø§ÙØ®Ø§Øµ Ø¨ÙØ§.",ru:"ÐевÑÑÑ Ð·Ð¾Ð½, ÑвÑзаннÑÑ
Ñ Ñеми же воÑемÑÑ Ð·Ð°Ð´Ð°Ñами, ÑÑо и каÑÑоÑки вÑÑе. ÐÑбеÑиÑе Ð·Ð¾Ð½Ñ - и Ð¼Ñ Ð½Ð°Ð·Ð¾Ð²Ñм пÑоÑокол Ð´Ð»Ñ Ð½ÐµÑ."},Q={en:"Select an area on the face and the matching concern appears here.",ar:"اختار٠Ù
ÙØ·ÙØ© عÙ٠اÙÙØ¬Ù ÙØ³ÙØ¸ÙØ± ÙÙØ§ Ù
ا ÙÙØ§Ø³Ø¨Ùا.",ru:"ÐÑбеÑиÑе Ð·Ð¾Ð½Ñ Ð½Ð° лиÑе - и ÑооÑвеÑÑÑвÑÑÑÐ°Ñ Ð·Ð°Ð´Ð°Ñа поÑвиÑÑÑ Ð·Ð´ÐµÑÑ."},X={en:"See the protocol",ar:"اطÙÙØ¹Ù عÙÙ Ø§ÙØ¨Ø±ÙتÙÙÙÙ",ru:"СмоÑÑеÑÑ Ð¿ÑоÑокол"},ee={en:"Selected area",ar:"اÙÙ
ÙØ·ÙØ© اÙÙ
ØØ¯Ø¯Ø©",ru:"ÐÑбÑÐ°Ð½Ð½Ð°Ñ Ð·Ð¾Ð½Ð°"},er={en:"Facial areas",ar:"Ù
ÙØ§Ø·Ù اÙÙØ¬Ù",ru:"ÐÐ¾Ð½Ñ Ð»Ð¸Ñа"};function et(e){let t,n,i,s,c,o,d,u,h,x,g,f,b,y,v,w,j,N,k,S=(0,l.c)(57),{locale:C}=e,[R,M]=(0,m.useState)(null),E="ar"===C,$=(0,m.useId)(),_=function(){V.hasReducedMotionListener.current||(0,Y.initPrefersReducedMotion)();let[e]=(0,m.useState)(V.prefersReducedMotion.current);return e}(),T=E?G.ArrowLeft:F.ArrowRight;S[0]!==R?(t=K.find(e=>e.id===R)||null,S[0]=R,S[1]=t):t=S[1];let L=t;e:{let e;if(!L){let e;S[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],S[2]=e):e=S[2],n=e;break e}S[3]!==L.concerns?(e=L.concerns.map(en).filter(ea),S[3]=L.concerns,S[4]=e):e=S[4],n=e}let O=n;S[5]!==C?(i=e=>"ar"===C?e.seo.ar:"ru"===C?e.seo.ru:e.seo.en,S[5]=C,S[6]=i):i=S[6];let P=i,I=`${$}-heading`,z=Z[C];S[7]!==z?(s=(0,r.jsx)("p",{className:"cera-eyebrow",children:z}),S[7]=z,S[8]=s):s=S[8];let D=`${$}-heading`,H=J[C];S[9]!==D||S[10]!==H?(c=(0,r.jsx)("h2",{id:D,className:"cera-serif mt-3 text-[26px] leading-[1.14] text-[var(--cera-ink)] sm:text-[34px]",children:H}),S[9]=D,S[10]=H,S[11]=c):c=S[11];let et=q[C];S[12]!==et?(o=(0,r.jsx)("p",{className:"mx-auto mt-3 max-w-[54ch] text-[15px] leading-relaxed text-[var(--cera-muted)]",children:et}),S[12]=et,S[13]=o):o=S[13],S[14]!==o||S[15]!==s||S[16]!==c?(d=(0,r.jsxs)("div",{className:"text-center",children:[s,c,o]}),S[14]=o,S[15]=s,S[16]=c,S[17]=d):d=S[17],S[18]===Symbol.for("react.memo_cache_sentinel")?(u={aspectRatio:"4 / 5"},h=(0,r.jsx)(p.default,{src:"/images/face-map/face-front.jpg",alt:"","aria-hidden":"true",fill:!0,sizes:"(max-width: 768px) 92vw, 420px",className:"object-cover"}
22),S[18]=u,S[19]=h):(u=S[18],h=S[19]),S[20]!==_?(x=!_&&(0,r.jsx)(a.motion.div,{initial:{top:"-8%"},whileInView:{top:"108%"},viewport:{once:!0,amount:.4},transition:{duration:1.6,ease:"easeInOut",delay:.3},className:"pointer-events-none absolute inset-x-0 h-10 opacity-60",style:{background:"linear-gradient(to bottom, transparent, rgba(143,90,90,0.14) 45%, rgba(143,90,90,0.34) 50%, rgba(143,90,90,0.14) 55%, transparent)"}}),S[20]=_,S[21]=x):x=S[21];let ei=er[C];return S[22]!==R||S[23]!==C||S[24]!==_?(g=K.map((e,t)=>{let a=e.id===R;return(0,r.jsxs)("button",{type:"button",role:"radio","aria-checked":a,"aria-label":e.label[C],onClick:()=>M(e.id),onFocus:()=>M(e.id),onMouseEnter:()=>M(e.id),className:"absolute z-10 flex h-11 w-11 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--cera-rose)] focus-visible:ring-offset-2",style:{left:`${e.cx}%`,top:`${e.cy}%`,touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},children:[!_&&(0,r.jsx)("span",{"aria-hidden":"true",className:`absolute rounded-full animate-ping ${a?"h-9 w-9 bg-[var(--cera-rose)]/25":"h-7 w-7 bg-white/35"}`,style:{animationDuration:"2.4s",animationDelay:`${.22*t}s`}}),(0,r.jsx)("span",{"aria-hidden":"true",className:`relative rounded-full border-2 shadow-[0_1px_6px_rgba(0,0,0,0.28)] transition-all duration-200 ${a?"h-5 w-5 border-white bg-[var(--cera-rose)]":"h-4 w-4 border-white bg-[var(--cera-rose)]/85"}`})]},e.id)}),S[22]=R,S[23]=C,S[24]=_,S[25]=g):g=S[25],S[26]!==ei||S[27]!==g?(f=(0,r.jsx)("div",{role:"radiogroup","aria-label":ei,children:g}),S[26]=ei,S[27]=g,S[28]=f):f=S[28],S[29]!==L||S[30]!==C||S[31]!==_?(b=L&&(0,r.jsx)("div",{className:"pointer-events-none absolute z-20 flex w-0 justify-center",style:{left:`${Math.min(Math.max(L.cx,22),78)}%`,top:`calc(${L.cy}% - 42px)`},children:(0,r.jsx)(a.motion.span,{initial:{opacity:0,y:6,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:6,scale:.95},transition:{duration:.18*!_},className:"inline-block whitespace-nowrap rounded-full bg-[var(--cera-cta)]/88 px-3 py-1.5 text-[11px] font-medium text-white shadow-lg backdrop-blur-sm",children:L.label[C]})},L.id),S[29]=L,S[30]=C,S[31]=_,S[32]=b):b=S[32],S[33]!==b?(y=(0,r.jsx)(U.AnimatePresence,{children:b}),S[33]=b,S[34]=y):y=S[34],S[35]!==x||S[36]!==f||S[37]!==y?(v=(0,r.jsx)("div",{className:"relative mx-auto w-full max-w-[420px] select-none",children:(0,r.jsxs)("div",{className:"cera-stage relative overflow-hidden rounded-[28px]",style:u,children:[h,x,f,y]})}),S[35]=x,S[36]=f,S[37]=y,S[38]=v):v=S[38],S[39]!==T||S[40]!==O||S[41]!==L?.id||S[42]!==L?.label||S[43]!==E||S[44]!==C||S[45]!==_||S[46]!==P?(w=(0,r.jsx)("div",{"aria-live":"polite",className:"min-h-[260px]",children:(0,r.jsx)(U.AnimatePresence,{mode:"wait",children:O.length>0?(0,r.jsxs)(a.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2*!_},className:"space-y-3",children:[(0,r.jsxs)("p",{className:"cera-eyebrow",children:[ee[C]," - ",(0,r.jsx)("span",{className:"text-[var(--cera-ink)]",children:L?.label[C]})]}),O.map(e=>{let t=P(e),a=(0,W.getConcernVisual)(e.slug);return(0,r.jsx)(A.default,{href:(0,B.getLocalizedPath)(`/products/concern/${e.slug}`,C),className:"cera-card cera-card-hover group block p-5",children:(0,r.jsxs)("div",{className:`flex items-start gap-4 ${E?"flex-row-reverse text-right":""}`,children:[a?(0,r.jsx)("div",{className:"relative h-20 w-20 flex-none overflow-hidden rounded-2xl border border-[var(--cera-line)] bg-[var(--cera-cream-deep)]",children:(0,r.jsx)(p.default,{src:a.image,alt:"",fill:!0,sizes:"80px",className:"object-cover",style:{objectPosition:a.imagePosition},"aria-hidden":"true"})}):null,(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("h3",{className:"cera-serif text-[19px] leading-snug text-[var(--cera-ink)]",children:t.h1}),t.heroShort&&(0,r.jsx)("p",{className:"mt-1.5 line-clamp-2 text-[14px] leading-relaxed text-[var(--cera-muted)]",children:t.heroShort}),(0,r.jsxs)("span",{className:"mt-3 inline-flex items-center gap-1.5 text-[14px] font-semibold text-[var(--cera-rose-ink)]",children:[X[C],(0,r.jsx)(T,{className:"h-4 w-4 transition-transform duration-200 group-hover:translate-x-0.5","aria-hidden":"true"})]})]})]})},e.slug)})]},L?.id):(0,r.jsx)(a.motion.p,{initial:{opacity:0}
22,animate:{opacity:1},transition:{duration:.2*!_},className:"flex min-h-[260px] items-center justify-center rounded-[24px] border border-dashed border-[var(--cera-line)] bg-white/50 p-8 text-center text-[14px] leading-relaxed text-[var(--cera-muted)]",children:Q[C]},"resting")})}),S[39]=T,S[40]=O,S[41]=L?.id,S[42]=L?.label,S[43]=E,S[44]=C,S[45]=_,S[46]=P,S[47]=w):w=S[47],S[48]!==v||S[49]!==w?(j=(0,r.jsxs)("div",{className:"mt-9 grid grid-cols-1 items-start gap-8 md:grid-cols-[minmax(0,420px)_minmax(0,1fr)] md:gap-12",children:[v,w]}),S[48]=v,S[49]=w,S[50]=j):j=S[50],S[51]!==d||S[52]!==j?(N=(0,r.jsxs)("div",{className:"mx-auto max-w-[1100px]",children:[d,j]}),S[51]=d,S[52]=j,S[53]=N):N=S[53],S[54]!==N||S[55]!==I?(k=(0,r.jsx)("section",{className:"mt-14 border-t border-[var(--cera-line)] pt-12","aria-labelledby":I,children:N}),S[54]=N,S[55]=I,S[56]=k):k=S[56],k}function ea(e){return!!e}function en(e){return H.CONCERN_PAGES.find(r=>r.slug===e)}var ei=e.i(326089),es=e.i(818178),el=e.i(681071);function ec(e){let t,a,n,i,s=(0,l.c)(11),{products:c,category:o}=e;if(s[0]!==o||s[1]!==c){let e,r=c.filter(ed);s[4]!==o?(e=o?`Professional ${o.toLowerCase()} products by GENOSYS Middle East FZ-LLC. Korean dermacosmetics for professional and home use.`:"Professional Korean dermacosmetics by GENOSYS Middle East FZ-LLC. Complete range of skincare products for professional and home use.",s[4]=o,s[5]=e):e=s[5];let n={"@context":"https://schema.org","@type":"CollectionPage",name:o?`${o} Products - GENOSYS`:"GENOSYS Products",description:e,url:`${es.SITE_URL}/products`,mainEntity:{"@type":"ItemList",numberOfItems:r.length,itemListElement:r.map(eo)},breadcrumb:{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:es.SITE_URL},{"@type":"ListItem",position:2,name:"Products",item:`${es.SITE_URL}/products`},...o?[{"@type":"ListItem",position:3,name:o,item:`${es.SITE_URL}/products/category/${o}`}]:[]]},publisher:{"@type":"Organization",name:"GENOSYS Middle East FZ-LLC",url:es.SITE_URL,logo:{"@type":"ImageObject",url:`${es.SITE_URL}/images/genosys-logo.png`}}};a="application/ld+json",t=(0,el.toJsonLd)(n),s[0]=o,s[1]=c,s[2]=t,s[3]=a}else t=s[2],a=s[3];return s[6]!==t?(n={__html:t},s[6]=t,s[7]=n):n=s[7],s[8]!==a||s[9]!==n?(i=(0,r.jsx)("script",{type:a,dangerouslySetInnerHTML:n}),s[8]=a,s[9]=n,s[10]=i):i=s[10],i}function eo(e,r){let t,a=`${es.SITE_URL}/products/${e.productNumber?.trim()||e.id}`;return{"@type":"ListItem",position:r+1,item:{"@type":"Product",name:e.name,description:(e.description||"").trim()||`${e.name} - GENOSYS professional Korean dermacosmetics.`,image:((t=function(e){if(!e)return[];let r=(0,c.safeJsonParse)(e,[]);return Array.isArray(r)?r.filter(e=>"string"==typeof e&&e.trim().length>0):"string"==typeof r&&r.trim()?[r.trim()]:[]}(e.images)).length>0?t:[e.image]).filter(Boolean).map(e=>(0,es.buildUrl)(e)),brand:{"@type":"Brand",name:"GENOSYS"},category:e.category,offers:{"@type":"Offer",price:e.price,priceCurrency:"AED",availability:e.inStock?"https://schema.org/InStock":"https://schema.org/OutOfStock",priceValidUntil:new Date(Date.now()+31536e6).toISOString().split("T")[0],itemCondition:"https://schema.org/NewCondition",seller:{"@type":"Organization",name:"GENOSYS Middle East FZ-LLC",url:es.SITE_URL},url:a,hasMerchantReturnPolicy:{"@type":"MerchantReturnPolicy",applicableCountry:"AE",returnPolicyCategory:"https://schema.org/MerchantReturnFiniteReturnWindow",merchantReturnDays:14,returnMethod:"https://schema.org/ReturnByMail",returnFees:"https://schema.org/FreeReturn"},shippingDetails:{"@type":"OfferShippingDetails",shippingRate:{"@type":"MonetaryAmount",value:"45",currency:"AED"},shippingDestination:{"@type":"DefinedRegion",addressCountry:"AE"},deliveryTime:{"@type":"ShippingDeliveryTime",handlingTime:{"@type":"QuantitativeValue",minValue:0,maxValue:1,unitCode:"DAY"},transitTime:{"@type":"QuantitativeValue",minValue:0,maxValue:2,unitCode:"DAY"}}}},sku:e.productNumber||e.id,mpn:e.productNumber||e.id,url:a}}}function ed(e){return e.price>0&&!e.isPriceOnRequest}var eu=e.i(747424),em=e.i(92064),ep=e.i(618566),eh=e.i(558249),ex=e.i(689664),eg=e.i(96315);function ef({locale:e,isRtl:t=!1,source:a="products",className:n=""}){let[i,s]=(0,m.useState)(""),[l,c]=(0,m.useState)(""),[o,d]=(0,m.useState)("idle"),[u,p]=(0,m.useState)(""),h={heading:"ar"===e?"Ø§ÙØ¶Ù
Ø¥ÙÙ Ø¹Ø§Ø¦ÙØ© GENOSYS":"ru"===e?"ÐÑÑÑпайÑе в ÑообÑеÑÑво GENOSYS":"Join the GENOSYS insiders",body:"ar"===e?"Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ ÙØ§ØØ¯ Ø´ÙØ±ÙاÙ: ÙØµØ§Ø¦Ø Ø§ÙØ¹ÙØ§ÙØ© Ø¨Ø§ÙØ¨Ø´Ø±Ø©Ø Ø¥Ø·ÙØ§Ùات Ø¬Ø¯ÙØ¯Ø© ÙØ¹Ø±Ùض ØØµØ±ÙØ©.":"ru"===e?"Ðдно пиÑÑмо в меÑÑÑ: ÑовеÑÑ Ð¿Ð¾ ÑÑ
одÑ, новинки и ÑкÑклÑзивнÑе пÑедложениÑ.":"One email a month - skincare tips, new launches and subscriber-only offers.",placeholder:"ar"===e?"Ø£Ø¯Ø®Ù Ø¨Ø±ÙØ¯Ù Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"ru"===e?"ÐведиÑе email":"Enter your email",subscribe:"ar"===e?"اشترÙ":"ru"===e?"ÐодпиÑаÑÑÑÑ":"Subscribe",subscribing:"ar"===e?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ùâ¦":"ru"===e?"ÐÑпÑавлÑемâ¦":"Subscribingâ¦",success:"ar"===e?"Ø´ÙØ±Ø§Ù ÙÙ! تØÙÙ Ù
Ù Ø¨Ø±ÙØ¯Ù Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ÙÙØªØ£ÙÙØ¯.":"ru"===e?"СпаÑибо! ÐÑовеÑÑÑе поÑÑÑ - Ð¼Ñ Ð¾ÑпÑавили подÑвеÑждение.":"Thanks - check your inbox for a
22welcome email.",already:"ar"===e?"Ø£ÙØª Ù
شتر٠باÙÙØ¹Ù. تØÙÙ Ù
Ù Ø§ÙØ¨Ø±Ùد ØºÙØ± اÙÙ
Ø±ØºÙØ¨ Ø£Ù Ø§ÙØ¹Ø±Ùض Ø§ÙØªØ±ÙÙØ¬ÙØ©.":"ru"===e?"ÐÑ Ñже подпиÑанÑ. ÐÑовеÑÑÑе папки «Спам» и «ÐÑомоакÑии».":"Youâre already on the list. Check Spam or Promotions if you missed the welcome email.",generic:"ar"===e?"ØªØ¹Ø°ÙØ± Ø§ÙØ§Ø´ØªØ±Ø§Ù Ø§ÙØ¢Ù. ØØ§ÙÙ Ù
رة Ø£Ø®Ø±Ù ÙØ§ØÙاÙ.":"ru"===e?"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑаÑÑÑÑ. ÐопÑобÑйÑе позже.":"Could not subscribe right now. Please try again later.",invalid:"ar"===e?"ÙØ±Ø¬Ù Ø¥Ø¯Ø®Ø§Ù Ø¨Ø±ÙØ¯ Ø¥ÙÙØªØ±ÙÙÙ ØµØ§ÙØ.":"ru"===e?"ÐведиÑе дейÑÑвиÑелÑнÑй email.":"Please enter a valid email address.",rate:"ar"===e?"Ù
ØØ§ÙÙØ§Øª ÙØ«Ùرة. ØØ§Ù٠بعد ÙÙÙÙ.":"ru"===e?"СлиÑком много попÑÑок. ÐопÑобÑйÑе позже.":"Too many attempts. Please try again in a few minutes.",privacy:"ar"===e?"Ø¥ÙØºØ§Ø¡ Ø§ÙØ§Ø´ØªØ±Ø§Ù بÙÙØ±Ø© ÙØ§ØØ¯Ø©. ÙØÙ ÙØØªØ±Ù
Ø®ØµÙØµÙتÙ.":"ru"===e?"ÐÑпиÑка в один клик. ÐÑ Ñважаем ваÑÑ Ð¿ÑиваÑноÑÑÑ.":"Unsubscribe in one click. We respect your privacy."};async function x(r){if(r.preventDefault(),"loading"===o)return;let t=i.trim();if(t){d("loading"),p("");try{let r=await fetch("/api/newsletter/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,locale:e,source:a,website:l})}),n=await r.json().catch(()=>null);if(r.ok){d(n?.alreadySubscribed===!0?"already":"success"),s("");return}if(429===r.status){d("error"),p(h.rate);return}d("error"),p(400===r.status?"string"==typeof n?.error?n.error:h.invalid:h.generic)}catch{d("error"),p(h.generic)}}}return(0,r.jsxs)("section",{dir:t?"rtl":"ltr",className:`rounded-2xl border border-gray-200 bg-gray-50 p-6 ${t?"text-right":""} ${n}`,children:[(0,r.jsxs)("div",{className:`flex items-center gap-2.5 ${t?"flex-row-reverse":""}`,children:[(0,r.jsx)("span",{className:"inline-flex h-9 w-9 items-center justify-center rounded-full bg-primary-50 flex-shrink-0",children:(0,r.jsx)(eg.Mail,{className:"h-4 w-4 text-primary-600","aria-hidden":"true"})}),(0,r.jsx)("h2",{className:"text-lg font-bold text-gray-900 font-display tracking-tight",children:h.heading})]}),(0,r.jsx)("p",{className:"mt-2 text-sm text-gray-600 leading-relaxed",children:h.body}),"success"===o||"already"===o?(0,r.jsxs)("div",{className:`mt-4 inline-flex items-center gap-2 rounded-full bg-[var(--cera-ok-bg)] border border-[var(--cera-ok-line)] text-[var(--cera-ok)] px-4 py-2.5 ${t?"flex-row-reverse":""}`,children:[(0,r.jsx)(ex.Check,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),(0,r.jsx)("span",{className:"text-sm font-semibold",children:"already"===o?h.already:h.success})]}):(0,r.jsxs)("form",{onSubmit:x,noValidate:!0,className:"mt-4",children:[(0,r.jsx)("label",{htmlFor:"products-newsletter-email",className:"sr-only",children:"ar"===e?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"ru"===e?"Email":"Email address"}),(0,r.jsxs)("div",{className:`form-enhanced flex items-center gap-1 p-1 rounded-full bg-white border border-gray-300 transition-colors focus-within:border-primary-400 focus-within:ring-2 focus-within:ring-primary-500/20 ${t?"flex-row-reverse":""}`,children:[(0,r.jsx)("input",{id:"products-newsletter-email",type:"email",required:!0,value:i,onChange:e=>s(e.target.value),placeholder:h.placeholder,className:`flex-1 min-w-0 bg-transparent border-0 px-4 py-2 text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none disabled:opacity-60 ${t?"text-right":""}`,autoComplete:"email",disabled:"loading"===o,"aria-invalid":"error"===o,"aria-describedby":"error"===o?"products-newsletter-error":void 0}),(0,r.jsx)("input",{type:"text",name:"website",value:l,onChange:e=>c(e.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",className:"hidden"}),(0,r.jsxs)("button",{type:"submit",disabled:"loading"===o,className:"inline-flex items-center justify-center gap-1.5 rounded-full bg-[var(--cera-cta)] text-white px-5 py-2 font-semibold text-sm hover:bg-[var(--cera-rose-ink)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 disabled:opacity-70 disabled:cursor-not-allowed whitespace-nowrap",children:["loading"===o?h.subscribing:h.subscribe,"loading"!==o&&(0,r.jsx)(F.ArrowRight,{className:`h-4 w-4 ${t?"rotate-180":""}`,"aria-hidden":"true"})]})]})]}),"error"===o&&(0,r.jsx)("p",{id:"products-newsletter-error",className:"mt-3 text-sm text-red-600",role:"alert",children:u||h.generic}),(0,r.jsxs)("p",{className:`mt-3 text-xs text-gray-500 flex items-center gap-1.5 ${t?"flex-row-reverse":""}`,children:[(0,r.jsx)(ex.Check,{className:"h-3.5 w-3.5 text-gray-400 flex-shrink-0","aria-hidden":"true"}),h.privacy]})]})}var eb=e.i(448959),ey=e.i(239134);let ev=[{key:"products.trustShipping",path:"M3 7h13l4 5v5h-2a2 2 0 11-4 0H9a2 2 0 11-4 0H3V7z"},{key:"products.trustAuthentic",path:"M9 12l2 2 4-4m5 2a9 9 0 11-18 0 9 9 0 0118 0z"},{key:"products.trustVat",path:"M3 10h18M7 15h4m-6 4h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"}],ew=e=>[{id:"all",name:e("products.allProducts")},{id:"skin-concern",name:e("products.skinConcern")},{id:"cleanser",name:e("products.cleanser")},{id:"toner-mist",name:e("products.tonerMist")},{id:"serum",name:e("products.serum")},{id:"cream",name:e("products.cream")},{id:"mask",name:e("products.mask")},{id:"eye-care",name:e("products.eyeCare")},{id:"sun",name:e("products.sun")},{id:"cushion-bb",name:e("products.cushionBb")},{id:"peeling",name:e("products.peeling")},{id:"microneedling",name:e("products.microneedling")},{id:"pro-solution",name:e("products.proSolution")},{id:"scalp-hair",name:e("products.scalpHair")},{id:"bio-meso",name:e("products.bioMeso")},{id:"beauty-boxes",name:e("products.beautyBoxes")},{id:"device",name:e("products.device")}];e.s(["default",0,function({initialProducts:e=[],concernCounts:l}){let c=(0,ep.useRouter)(),o=(0,ep.useSearchParams)(),{t:d,locale:p,dir:h}=(0,y.useTranslation)(),x="rtl"===h,{enabled:g}=(0,n.useAnimationStore)(),{isPWA:f}=(0,eb.usePWAMode)(),[b,v]=(0,m.useState)(e),[w,k]=(0,m.useState)(0===e.length),[C,R]=(0,m.useState)(null),[$,_]=(0,m.useState)(o.get("search")||""),[L,P]=(0,m.useState)(o.get("sort")||"newest"),[A,F]=(0,m.useState)({categories:[],priceRange:[0,1e4],minRating:0,inStockOnly:!1}
22),{isMobile:I,isClient:D}=(0,ey.useIsMobile)(),U=!D||I,V=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(b.length>0){let e=b.map(e=>e.price),r=Math.min(...e),t=Math.max(...e),a=o.get("priceMin")?Number(o.get("priceMin")):r,n=o.get("priceMax")?Number(o.get("priceMax")):t,i=o.get("categories")?.split(",").filter(Boolean)||[];F({categories:i,priceRange:[a,n],minRating:o.get("rating")?Number(o.get("rating")):0,inStockOnly:"true"===o.get("inStock")}),k(!1),V.current=!0}},[b,o]),(0,m.useEffect)(()=>{e.length>0||(async()=>{try{k(!0),R(null),(0,t.debugLog)("Fetching products (client fallback)...");let e=await fetch("/api/products",{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw Error(`HTTP ${e.status}: ${e.statusText}`);let r=await e.json();if((0,t.debugLog)("Products fetched successfully:",r.length),!Array.isArray(r))throw Error("Invalid response format: expected array");v(r)}catch(r){let e=r instanceof Error?r.message:"Failed to fetch products";(0,t.errorLog)("Error fetching products:",r),R(e)}finally{k(!1)}})()},[e.length]);let Y=A.categories.includes("skin-concern");(0,m.useEffect)(()=>{let{body:e}=document;return Y?e.dataset.productsConcernMode="true":delete e.dataset.productsConcernMode,()=>{delete document.body.dataset.productsConcernMode}},[Y]);let G=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(V.current)return G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{let e=new URLSearchParams;$&&e.set("search",$),"newest"!==L&&e.set("sort",L),A.categories.length>0&&e.set("categories",A.categories.join(",")),b.length>0&&(A.priceRange[0]!==Math.min(...b.map(e=>e.price))||A.priceRange[1]!==Math.max(...b.map(e=>e.price)))&&(e.set("priceMin",A.priceRange[0].toString()),e.set("priceMax",A.priceRange[1].toString())),A.minRating>0&&e.set("rating",A.minRating.toString()),A.inStockOnly&&e.set("inStock","true");let r=(0,B.getLocalizedPath)("/products",p),t=e.toString()?`${r}?${e.toString()}`:r;c.replace(t,{scroll:!1})},300),()=>{G.current&&clearTimeout(G.current)}},[$,L,A,c,b,p]);let W=(0,m.useMemo)(()=>{let e=[...b];if($&&(e=N(e,$)),A.categories.length>0&&!A.categories.includes("all")){let r={"toner-mist":"Toner/Mist","pro-solution":"PRO Solution","cushion-bb":"Cushion BB","scalp-hair":"Scalp/Hair","eye-care":"Eye care","bio-meso":"Bio Meso",kits:"kits","beauty-boxes":"Beauty Boxes"},t=["3","48"];e=e.filter(e=>A.categories.some(a=>{let n=r[a]||a.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");return!!("scalp-hair"===a&&t.includes(e.id))||e.category.toLowerCase().includes(n.toLowerCase())}))}return e=e.filter(e=>e.price>=A.priceRange[0]&&e.price<=A.priceRange[1]),A.minRating>0&&(e=e.filter(e=>(e.rating||0)>=A.minRating)),A.inStockOnly&&(e=e.filter(e=>e.inStock)),e.sort((e,r)=>{if($.trim()){let t=j(r,$)-j(e,$);if(0!==t)return t}switch(L){case"name-asc":return e.name.localeCompare(r.name);case"name-desc":return r.name.localeCompare(e.name);case"price-asc":return e.price-r.price;case"price-desc":return r.price-e.price;case"rating-desc":return(r.rating||0)-(e.rating||0);case"newest":{let t=e.productNumber?parseInt(e.productNumber):0;return(r.productNumber?parseInt(r.productNumber):0)-t}default:return 0}}),e},[b,$,A,L]),K=(0,m.useRef)(0);K.current=W.length,(0,m.useEffect)(()=>{let e=$.trim();if(e.length<2)return;let r=setTimeout(()=>{(0,eh.trackSearch)(e,K.current)},1200);return()=>clearTimeout(r)},[$]);let Z=(0,m.useCallback)(e=>{_(e)},[]),J=(0,m.useCallback)(e=>{F(e)},[]),q=(0,m.useCallback)(e=>{P(e)},[]);if(w)return(0,r.jsx)(u,{fullScreen:!0,text:d("common.loading"),size:"xl"});if(C)return(0,r.jsx)(s.default,{error:C});let Q=b.length>0?b.reduce((e,r)=>({min:Math.min(e.min,r.price),max:Math.max(e.max,r.price)}),{min:1/0,max:0}):{min:0,max:1e4};return(0,r.jsxs)("div",{className:"cera-page genosys-page min-h-[100dvh]",suppressHydrationWarning:!0,children:[(0,r.jsx)(ec,{products:W,category:""}),(0,r.jsx)(em.default,{items:[{name:d("navigation.home"),url:(0,B.getLocalizedPath)("/",p)},{name:d("navigation.products"),url:(0,B.getLocalizedPath)("/products",p)}]}),!f&&!U&&(0,r.jsx)(eu.default,{items:[{name:d("navigation.home"),href:(0,B.getLocalizedPath)("/",p)},{name:d("navigation.products")}]}),(0,r.jsxs)("div",{className:"container mx-auto px-4 pt-4 pb-28 md:py-8 lg:py-16",children:[(0,r.jsxs)("div",{className:`text-center ${U?"mb-4":"mb-6 md:mb-10"}`,children:[(0,r.jsx)("h1",{className:"cera-serif text-[28px] leading-[1.08] sm:text-[36px] md:text-[44px]",children:d("products.title")}),(0,r.jsx)("p",{className:"mx-auto mt-3 hidden max-w-[56ch] text-[15px] leading-relaxed text-[var(--cera-muted)] md:block md:text-[16
22px]",children:d("products.subtitle")}),!U&&(0,r.jsx)("div",{className:"mt-4 flex justify-center",children:(0,r.jsx)(O,{})})]}),(0,r.jsx)(S,{products:b,onSearchChange:Z,searchQuery:$}),(0,r.jsx)("div",{className:"mb-5 hidden flex-wrap items-center justify-center gap-x-10 gap-y-2 border-y border-[var(--cera-line)] bg-white py-3 text-[14px] text-[var(--cera-body)] md:flex",children:ev.map(e=>(0,r.jsxs)("span",{className:"flex items-center gap-2",children:[(0,r.jsx)("svg",{className:"h-4 w-4 flex-shrink-0 text-[var(--cera-rose)]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e.path})}),d(e.key)]},e.key))}),(0,r.jsx)("div",{className:"md:hidden mb-4 -mx-4 px-4",children:(0,r.jsx)("div",{className:"flex gap-2 overflow-x-auto scrollbar-hide pt-2 pb-1 snap-x snap-mandatory",children:ew(d).map(e=>{let t=A.categories.includes(e.id)||"all"===e.id&&0===A.categories.length,a=(0,M.isNewCategoryFilterId)(e.id);return(0,r.jsxs)("button",{type:"button",onClick:()=>{"all"===e.id?F(e=>({...e,categories:[]})):"skin-concern"===e.id?F(e=>({...e,categories:e.categories.includes("skin-concern")?[]:["skin-concern"]})):F(r=>{let t=r.categories.includes(e.id)?r.categories.filter(r=>r!==e.id):[...r.categories.filter(e=>"all"!==e),e.id].filter(e=>"skin-concern"!==e);return{...r,categories:t}}
22)},className:`relative flex min-h-[40px] min-w-[48px] flex-shrink-0 snap-start select-none items-center justify-center whitespace-nowrap rounded-full border px-3.5 py-1.5 text-xs font-medium transition-all duration-150 active:scale-95 ${t?"border-[var(--cera-ink)] bg-[var(--cera-cta)] text-white":"border-[var(--cera-line)] bg-white text-[var(--cera-body)] active:bg-[var(--cera-cream-deep)]"}`,style:{touchAction:"manipulation",WebkitTapHighlightColor:"transparent"},children:[a&&(0,r.jsx)("span",{className:`pointer-events-none absolute -top-2 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full px-1.5 py-0.5 text-[8px] font-bold uppercase leading-none tracking-wide shadow-sm ${t?"bg-white text-[var(--cera-rose-ink)]":"bg-[var(--cera-rose)] text-white"}`,children:d("common.new")}),e.name]},e.id)})})}),(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-6 products-layout",children:[(0,r.jsx)(E,{products:b,categories:ew(d),onFiltersChange:J,activeFilters:A}),(0,r.jsx)("div",{className:"flex-1",children:A.categories.includes("skin-concern")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"products-header mb-6 flex flex-col items-start justify-between gap-3 sm:flex-row sm:items-center",children:[(0,r.jsx)("p",{className:"text-[14px] text-[var(--cera-muted)]",children:d("products.concernModeCount",{count:H.CONCERN_PAGES.length})}),(0,r.jsx)("button",{type:"button",onClick:()=>{_(""),F({categories:[],priceRange:[Q.min,Q.max],minRating:0,inStockOnly:!1})},className:"products-clear-filters font-semibold text-[var(--cera-rose-ink)] underline underline-offset-2 hover:opacity-70",children:d("products.concernModeExit")})]}),(0,r.jsx)(ei.default,{locale:p,dir:"ar"===p?"rtl":"ltr",concernCounts:l,headingId:"products-concern-heading",showCta:!1}),(0,r.jsx)(et,{locale:p})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"products-header mb-6 flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center",children:[(0,r.jsx)("div",{className:"text-[14px] text-[var(--cera-muted)]",children:W.length===b.length?(0,r.jsx)("span",{children:d("products.showingAll",{count:W.length})}):(0,r.jsxs)("span",{children:[d("products.showing",{filtered:W.length,total:b.length}),($||A.categories.length>0||A.minRating>0||A.inStockOnly)&&(0,r.jsx)("button",{onClick:()=>{_(""),F({categories:[],priceRange:[Q.min,Q.max],minRating:0,inStockOnly:!1})},className:"products-clear-filters ms-2 font-semibold text-[var(--cera-rose-ink)] underline underline-offset-2 hover:opacity-70",children:d("products.clearFilters")})]})}),(0,r.jsx)("div",{className:"w-full sm:w-auto",children:(0,r.jsx)(T,{sortBy:L,onSortChange:q})})]}),A.categories.includes("beauty-boxes")&&(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsx)(z,{})}),W.length>0?(0,r.jsxs)(r.Fragment,{children:[f?(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 gap-2 sm:gap-4 md:gap-6",children:W.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(i.default,{product:e})},e.id))}):(0,r.jsx)(a.motion.div,{className:"grid grid-cols-2 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3 2xl:grid-cols-4 gap-2 sm:gap-4 md:gap-6",initial:g?"hidden":{},animate:g?"show":{},variants:g?{hidden:{opacity:0},show:{opacity:1,transition:{staggerChildren:.08,delayChildren:.1}}}:{},children:W.map(e=>(0,r.jsx)(a.motion.div,{variants:g?{hidden:{opacity:0,y:30,scale:.9},show:{opacity:1,y:0,scale:1,transition:{duration:.4,ease:"easeOut"}}}:{},children:(0,r.jsx)(i.default,{product:e})},e.id))}),(0,r.jsx)("ul",{className:"mt-8 space-y-3 rounded-[22px] border border-[var(--cera-line)] bg-white p-5 md:hidden",children:ev.map(e=>(0,r.jsxs)("li",{className:`flex items-start gap-3 ${x?"flex-row-reverse text-right":""}`,children:[(0,r.jsx)("span",{className:"flex h-8 w-8 flex-none items-center justify-center rounded-full bg-[var(--cera-blush)]",children:(0,r.jsx)("svg",{className:"h-4 w-4 text-[var(--cera-rose-ink)]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e.path})})}),(0,r.jsx)("span",{className:"pt-[6px] text-[14px] leading-snug text-[var(--cera-body)]",children:d(e.key)})]},e.key))}),(0,r.jsxs)("div",{className:"mt-10 hidden items-center justify-between gap-4 border-t border-[var(--cera-line)] pt-6 text-[14px] text-[var(--cera-muted)] md:flex",children:[(0,r.jsx)("span",{children:d("products.showing",{filtered:W.length,total:b.length})}),(0,r.jsxs)("button",{type:"button",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"inline-flex items-center gap-1.5 rounded px-1 font-semibold text-[var(--cera-rose-ink)] transition-opacity hover:opacity-70",children:[(0,r.jsx)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"})}),"ar"===p?"Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ£Ø¹ÙÙ":"ru"===p?"ÐавеÑÑ
":"Back to top"]}
22)]})]}):(0,r.jsxs)("div",{className:"cera-card px-6 py-14 text-center",children:[(0,r.jsx)("p",{className:"cera-serif text-[22px] text-[var(--cera-ink)]",children:d("products.noProductsFound")}),(0,r.jsx)("p",{className:"mx-auto mt-2 max-w-[44ch] text-[14px] text-[var(--cera-muted)]",children:d("products.tryAdjustingFilters")}),(0,r.jsx)("button",{onClick:()=>{_(""),F({categories:[],priceRange:[Q.min,Q.max],minRating:0,inStockOnly:!1})},className:"ed-cta mt-5 px-6 py-2.5 text-[14px]",children:d("products.clearAllFilters")})]})]})})]}),!w&&(0,r.jsx)("div",{className:"max-w-2xl mx-auto mt-10 md:mt-14",children:(0,r.jsx)(ef,{locale:p,isRtl:"ar"===p,source:"products"})})]})]})}],791135)}]); 23 24//# debugId=8c413e3d-a28f-c166-f945-07963944910e
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.