1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9084],{69084:(e,t,l)=>{l.r(t),l.d(t,{default:()=>h});var a=l(95155),r=l(12115),s=l(23007),n=l(98236);let i=e=>{let{children:t,link:l,type:i,title:c,setDrawerStatus:o}=e,[x,d]=(0,r.useState)(0),[h,f]=(0,r.useState)(!0),u=e=>{d(x===e?null:e),f(x!==e)};return(0,a.jsxs)("ul",{className:"categories border-t",children:[(0,a.jsx)("li",{children:(0,a.jsx)("p",{className:"flex justify-end item-end flex-row-reverse mt-2 mr-2","data-nosnippet":!0,children:(0,a.jsxs)(n.n,{className:"text-primary text-xs flex flex-row items-center gap-2 mt-2",link:"".concat(l),"aria-label":"ÙÙ
Ù Ù
ØØµÙÙØ§Øª Ø¯Ø³ØªÙ Ø¨ÙØ¯Û ".concat(c),onClick:()=>null==o?void 0:o(!1),children:["ÙÙ
Ù Ù
ØØµÙÙØ§Øª Ø¯Ø³ØªÙ Ø¨ÙØ¯Û ",c,(0,a.jsx)(s.default,{src:"".concat("https://agstatics-public.s3.ir-thr-at1.arvanstorage.ir","/front/svg/arrow-left2.svg"),alt:"arrow-left2",width:6,height:10})]})})}),null==t?void 0:t.map((e,t)=>{let{title:l,link:r,type:i,children:c}=e;return(0,a.jsxs)("li",{className:"flex border-b flex-col group/children-item",children:[(null==c?void 0:c.length)?(0,a.jsxs)("header",{className:"flex justify-between items-center py-3 px-4 w-full cursor-pointer",onClick:()=>u(t),children:[(0,a.jsx)("span",{className:"text-xs text-gray-600",children:l}),(0,a.jsx)(s.default,{alt:"",width:12,height:7,className:"".concat(x===t?"rotate-180":""),src:"".concat("https://agstatics-public.s3.ir-thr-at1.arvanstorage.ir","/front/svg/arrow-down-gray.svg")})]}):(0,a.jsx)(n.n,{className:"flex justify-between items-center py-3 px-4 w-full cursor-pointer",onClick:()=>{u(t),null==o||o(!1)},link:"".concat(r),"aria-label":l,children:(0,a.jsx)("span",{className:"text-xs text-gray-600",children:l})}),x===t&&h&&(null==c?void 0:c.length)?(0,a.jsxs)("ul",{className:"grid grid-cols-3 flex-wrap px-2 ".concat(x===t?"h-full":"h-0 overflow-hidden"," group-hover/children-item:h-full"),children:[c.map(e=>{let{title:t,link:l,type:r,image:i}=e;return(0,a.jsx)("li",{className:"flex flex-col items-center p-2 text-caption text-neutral-900 text-center",children:(0,a.jsxs)(n.n,{"aria-label":t,link:"".concat(l),onClick:()=>{null==o||o(!1)},className:"text-xs flex items-center flex-col w-[74.5px] h-full",children:[(0,a.jsx)("div",{className:"h-[45px] mb-1",children:(0,a.jsx)(s.default,{alt:t,src:"?"===i?"":null!=i?i:"",loading:"lazy",width:45,height:45,className:"!w-[45px] !h-[45px] !object-contain"})}),(0,a.jsx)("p",{className:"text-center text-xs text-grays",children:t})]})},t)}),(0,a.jsx)("li",{className:"flex flex-col items-center p-2 text-caption text-neutral-900 text-center",children:(0,a.jsxs)(n.n,{"aria-label":"ÙÙ
Ù ".concat(l),link:"".concat(r),className:"text-xs flex items-center flex-col w-[74.5px] h-full",onClick:()=>{null==o||o(!1)},children:[(0,a.jsx)("div",{className:"h-[45px] mb-1 flex justify-center items-center relative",children:(0,a.jsx)(s.default,{src:"".concat("https://agstatics-public.s3.ir-thr-at1.arvanstorage.ir","/front/svg/Allcategory.svg"),alt:"ÙÙ
Ù",width:24,height:25,className:"w-[24px] h-[25px]"})}),(0,a.jsxs)("p",{className:"text-center text-xs text-grays",children:["ÙÙ
Ù ",l]})]})},l)]}):null]},l)})]})};var c=l(75678),o=l(95959);let x=e=>{let{children:t,image:l,link:n,title:x,type:d,index:h,openIndex:f,onToggle:u,setDrawerStatus:p}=e,{open:g}=(0,c.Bj)(),[m,v]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if("undefined"!=typeof navigator){let e=navigator.userAgent.toLowerCase();/iphone|ipad|ipod/i.test(e)&&v(!0)}},[]),(0,r.useEffect)(()=>{let e=()=>{let e=window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,o.SP)(l),(0,a.jsxs)("div",{className:"group h-full",dir:"rtl",children:[(0,a.jsxs)("div",{className:"flex flex-col ".concat(f===h?"bg-primary bg-opacity-10 after:h-full group-hover:after:content-[''] after:w-1 after:bg-primary after:absolute after:left-[-1px] after:top-0":""," group-hover:bg-primary group-hover:bg-opacity-10 relative justify-center items-center py-4 border-b after:content-none after:h-full group-hover:after:content-[''] after:w-1 after:bg-primary after:absolute after:left-[-1px] after:top-0"),onClick:()=>u(h),children:[(0,a.jsx)(s.default,{width:24,height:19,src:"?"===l?"":l,alt:x,loading:"lazy",quality:100,className:"!w-[24px] !h-[19px] fill-gray-400"}),(0,a.jsx)("p",{className:"text-xs text-gray-400 group-hover:text-primary mt-2 w-[79%] text-center",children:x})]}),(0,a.jsx)("div",{className:"w-[79%] ".concat(f===h?"block":"hidden"," overflow-y-auto bg-white absolute left-0 top-0"),style:{height:"calc(var(--vh) - ".concat(g&&!m?195:137,"px)")},children:(0,a.jsx)(i,{children:t,link:n,type:d,title:x,setDrawerStatus:p})})]})};var d=l(6248);function h(e){var t;let{setDrawerStatus:l}=e,{data:s,isLoading:n}=(0,d.GR)(),{menu:i}=null!=s?s:{},{open:o}=(0,c.Bj)(),h=Array.isArray(i)?i:[],[f,u]=(0,r.useState)(!1),[p,g]=(0,r.useState)(0),m=null==h?void 0:h.find(e=>"product_cat"===e.type),v=e=>{g(e)};return((0,r.useEffect)(()=>
1{if("undefined"!=typeof navigator){let e=navigator.userAgent.toLowerCase();/iphone|ipad|ipod/i.test(e)&&u(!0)}},[]),null==m||null==(t=m.children)?void 0:t.length)?(0,a.jsx)("div",{className:"flex relative lg:hidden",children:(0,a.jsx)("div",{className:"w-[21%] bg-zinc-100 border-l flex flex-col h-screen overflow-y-auto",style:{height:"calc(var(--vh) - ".concat(o&&!f?195:137,"px)")},dir:"ltr",children:null==m?void 0:m.children.map((e,t)=>(0,a.jsx)(x,{index:t,openIndex:p,onToggle:v,setDrawerStatus:l,...e},t))})}):n?(0,a.jsx)("div",{className:"flex relative lg:hidden",children:(0,a.jsx)("div",{className:"w-full bg-zinc-100 border-l flex flex-col h-screen"})}):null}}}]);
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.