1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6170],{43730:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...pages]]",function(){return l(90622)}])},55048:function(e,t,l){"use strict";l.d(t,{z:function(){return s}});var r=l(85893);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",...e,children:(0,r.jsx)("path",{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z",fill:"currentColor",stroke:"currentColor"})})},78226:function(e,t,l){"use strict";l.d(t,{W:function(){return s}});var r=l(85893);let s=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",...e,children:(0,r.jsx)("path",{d:"M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z",fill:"currentColor",stroke:"currentColor"})})},44616:function(e,t,l){"use strict";l.d(t,{Z:function(){return x}});var r=l(85893),s=l(74354),n=l(89874),i=l(49278),a=l(11163),o=l(67294),c=l(82568),u=l(48583),d=l(50853);function x(e){var t;let{className:l,variables:x,column:h,gridClassName:p}=e,[m,g]=(0,o.useState)(null),{query:f}=(0,a.useRouter)(),[v]=(0,u.KO)(d.J),{products:j}=(0,s.rn)({...x.categoryVariables,...f.category&&{category_id:f.category},...f.text&&{name:f.text},passenger_car_id:null!=v?v:null}),{articles:w,loadMore:b,isLoadingMore:y,isLoading:N,hasMore:Z,error:P}=(0,c.lN)({...x.newArrivalProductVariables,...f.category&&{category_id:f.category},...f.catalog&&{product_id:f.catalog},...f.text&&{name:f.text},passenger_car_id:null!=v?v:null,product_id:(null===(t=f.catalog)||void 0===t?void 0:t.length)>0?f.catalog:null});return(0,r.jsxs)(r.Fragment,{children:[j.length>1&&(0,r.jsx)("div",{className:"bg-slate-500",children:(0,r.jsx)("nav",{children:(0,r.jsxs)("ul",{className:"flex justify-center p-4",children:[(0,r.jsx)("li",{className:" m-2 rounded hover:bg-light ".concat(m?"bg-slate-200":"ring ring-accent-500 shadow-lg bg-light"),children:(0,r.jsx)("button",{className:"py-2 px-5",onClick:()=>g(null),children:"ÙÙ
Ù"})}),j.map(e=>(0,r.jsx)("li",{className:"m-2 rounded hover:bg-light ".concat(e.ptId===(null==m?void 0:m.ptId)?"ring ring-accent-500 shadow-lg bg-light":"bg-slate-200"),children:(0,r.jsx)("button",{className:"py-2 px-5 ",onClick:()=>g(e),children:e.name})},"pt"+e.ptId))]})})}),(0,r.jsx)(i.r,{products:w,loadMore:b,isLoading:N,isLoadingMore:y,hasMore:Z,error:P,limit:n.a9,className:l,gridClassName:p,column:h})]})}},72503:function(e,t,l){"use strict";var r=l(85893),s=l(67294),n=l(38719),i=l(11757),a=l(78226),o=l(55048),c=l(87219),u=l(94184),d=l.n(u),x=l(72977),h=l(57632);let p=e=>{let{items:t,children:l,className:u,...p}=e,m=(0,s.useRef)(null),{width:g}=(0,x.Z)(250);(0,s.useEffect)(()=>{if(m.current){let e=m.current.swiper,t=t=>{e.slides.slice(e.activeIndex,e.activeIndex+t+1).map(e=>null==e?void 0:e.querySelector("img")).forEach(e=>null==e?void 0:e.setAttribute("loading","eager"))};e.on("slideChange",()=>t(Math.ceil(g/250))),t(Math.ceil(g/250)),e.update()}},[]);let f=(0,s.useState)((0,h.Z)());(0,s.useEffect)(()=>{if(m.current&&m.current.swiper){let e=m.current.swiper;e.update()}},[f]);let{t:v}=(0,n.$G)("common"),{isRTL:j}=(0,i.S)(),[w,b]=(0,s.useState)(null),[y,N]=(0,s.useState)(null);return(0,r.jsxs)("div",{className:d()("relative",u),children:[(0,r.jsx)(c.tq,{shouldSwiperUpdate:!0,ref:m,id:"author-card-menu",className:"!px-3",modules:[c.W_],navigation:{prevEl:w,nextEl:y,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"},observer:!0,observeParents:!0,breakpoints:{250:{slidesPerView:1,spaceBetween:20},600:{slidesPerView:2,spaceBetween:20},1100:{slidesPerView:3,spaceBetween:30},1600:{slidesPerView:4,spaceBetween:30},2200:{slidesPerView:5,spaceBetween:40},2900:{slidesPerView:6,spaceBetween:40}},...p,children:null==t?void 0:t.map((e,t)=>(0,r.jsx)(c.o5,{className:"carousel-slide py-2",children:l(e)},t))},f),(0,r.jsxs)("div",{ref:e=>b(e),className:"author-slider-prev absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-left-3 rtl:-right-3 ltr:lg:-left-4 rtl:lg:-right-4",children:[(0,r.jsx)("span",{className:"sr-only",children:v("text-previous")}),j?(0,r.jsx)(o.z,{}):(0,r.jsx)(a.W,{})]}),(0,r.jsxs)("div",{ref:e=>N(e),className:"author-slider-next absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-right-3 rtl:-left-3 ltr:lg:-right-4 rtl:lg:-left-4",children:[(0,r.jsx)("span",{className:"sr-only",children:v("text-next")}),j?(0,r.jsx)(a.W,{}):(0,r.jsx)(o.z,{})]})]})};t.Z=p}
1,6075:function(e,t,l){"use strict";var r=l(85893),s=l(67294),n=l(38719),i=l(11757),a=l(78226),o=l(55048),c=l(87219),u=l(94184),d=l.n(u),x=l(72977),h=l(57632);let p=e=>{let{items:t,children:l,className:u,...p}=e,m=(0,s.useRef)(null),{width:g}=(0,x.Z)(200);(0,s.useEffect)(()=>{if(m.current){let e=m.current.swiper,t=t=>{e.slides.slice(e.activeIndex,e.activeIndex+t+1).map(e=>null==e?void 0:e.querySelector("img")).forEach(e=>null==e?void 0:e.setAttribute("loading","eager"))};e.on("slideChange",()=>t(Math.ceil(g/200))),t(Math.ceil(g/200)),e.update()}},[]);let f=(0,s.useState)((0,h.Z)());(0,s.useEffect)(()=>{if(m.current&&m.current.swiper){let e=m.current.swiper;e.update()}},[f]);let{t:v}=(0,n.$G)("common"),{isRTL:j}=(0,i.S)(),[w,b]=(0,s.useState)(null),[y,N]=(0,s.useState)(null);return(0,r.jsxs)("div",{className:d()("relative",u),children:[(0,r.jsx)(c.tq,{shouldSwiperUpdate:!0,ref:m,id:"author-card-menu",className:"!px-3",modules:[c.W_],navigation:{prevEl:w,nextEl:y,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"},observer:!0,observeParents:!0,breakpoints:{200:{slidesPerView:1,spaceBetween:20},370:{slidesPerView:2,spaceBetween:20},550:{slidesPerView:3},800:{slidesPerView:4},1100:{slidesPerView:5},1300:{slidesPerView:6,spaceBetween:24},1500:{slidesPerView:7,spaceBetween:30},1800:{slidesPerView:8,spaceBetween:30},2100:{slidesPerView:10,spaceBetween:40}},...p,children:null==t?void 0:t.map((e,t)=>(0,r.jsx)(c.o5,{className:"carousel-slide py-2",children:l(e)},t))},f),(0,r.jsxs)("div",{ref:e=>b(e),className:"author-slider-prev absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-left-3 rtl:-right-3 ltr:lg:-left-4 rtl:lg:-right-4",children:[(0,r.jsx)("span",{className:"sr-only",children:v("text-previous")}),j?(0,r.jsx)(o.z,{}):(0,r.jsx)(a.W,{})]}),(0,r.jsxs)("div",{ref:e=>N(e),className:"author-slider-next absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-right-3 rtl:-left-3 ltr:lg:-right-4 rtl:lg:-left-4",children:[(0,r.jsx)("span",{className:"sr-only",children:v("text-next")}),j?(0,r.jsx)(a.W,{}):(0,r.jsx)(o.z,{})]})]})};t.Z=p},4092:function(e,t,l){"use strict";var r=l(85893),s=l(24561);let n=e=>(0,r.jsxs)(s.ZP,{speed:2,width:1e3,height:120,viewBox:"0 0 1000 120",backgroundColor:"#f3f3f3",foregroundColor:"#ecebeb",...e,children:[(0,r.jsx)("circle",{cx:"74",cy:"45",r:"36"}),(0,r.jsx)("rect",{x:"15",y:"95",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"220",cy:"45",r:"36"}),(0,r.jsx)("rect",{x:"161",y:"95",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"370",cy:"45",r:"36"}),(0,r.jsx)("rect",{x:"311",y:"95",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"517",cy:"46",r:"36"}),(0,r.jsx)("rect",{x:"458",y:"96",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"657",cy:"45",r:"36"}),(0,r.jsx)("rect",{x:"608",y:"95",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"807",cy:"45",r:"36"}),(0,r.jsx)("rect",{x:"758",y:"95",rx:"0",ry:"0",width:"118",height:"21"}),(0,r.jsx)("circle",{cx:"957",cy:"46",r:"36"}),(0,r.jsx)("rect",{x:"908",y:"96",rx:"0",ry:"0",width:"118",height:"21"})]});t.Z=n},64701:function(e,t,l){"use strict";var r=l(85893),s=l(24561);let n=e=>(0,r.jsxs)(s.ZP,{speed:2,width:"100%",height:"100%",viewBox:"0 0 400 320",backgroundColor:"#e0e0e0",foregroundColor:"#cecece",...e,children:[(0,r.jsx)("rect",{x:"6%",y:"10",rx:"5",ry:"5",width:"88%",height:"40"}),(0,r.jsx)("rect",{x:"6%",y:"60",rx:"5",ry:"5",width:"88%",height:"40"}),(0,r.jsx)("rect",{x:"6%",y:"110",rx:"5",ry:"5",width:"88%",height:"40"}),(0,r.jsx)("rect",{x:"6%",y:"160",rx:"5",ry:"5",width:"88%",height:"40"}),(0,r.jsx)("rect",{x:"6%",y:"210",rx:"5",ry:"5",width:"88%",height:"40"}),(0,r.jsx)("rect",{x:"6%",y:"260",rx:"5",ry:"5",width:"88%",height:"40"})]});t.Z=n},97963:function(e,t,l){"use strict";var r=l(85893),s=l(24561);let n=e=>(0,r.jsxs)(s.ZP,{speed:2,width:360,height:260,viewBox:"0 0 360 260",backgroundColor:"#e0e0e0",foregroundColor:"#cecece",style:{width:"100%"},...e,children:[(0,r.jsx)("circle",{cx:"180",cy:"106",r:"80"}),(0,r.jsx)("rect",{x:"20",y:"217",rx:"0",ry:"0",width:"320",height:"30"})]});t.Z=n},29741:function(e,t,l){"use strict";var r=l(85893),s=l(94184),n=l.n(s),i=l(38719),a=l(96872),o=l(1954),c=l(98130),u=l(57813);let d=e=>
1{let{className:t,title:l,href:s,children:d,icon:x,countdown:h}=e,{t:p}=(0,i.$G)("common"),m=e=>{let{hours:t,minutes:l,seconds:s,completed:n}=e;return(0,r.jsxs)("span",{className:"text-lg",children:[(0,u.mW)(t),":",(0,u.mW)(l),":",(0,u.mW)(s)]})};return(0,r.jsxs)("div",{className:n()("flex w-full flex-col p-6 sm:p-8 md:p-10 xl:p-12",t),children:[l&&(0,r.jsxs)("div",{className:"mb-7 flex items-center justify-between ",children:[l&&(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(o.JO,{icon:x,width:"2rem",height:"2rem",className:""}),(0,r.jsx)("h2",{className:"pt-1 pr-2 text-xl font-semibold md:pr-3 md:text-2xl xl:pr-5 3xl:text-3xl",children:p(l)})]}),s&&(0,r.jsx)(a.Z,{href:s,className:"justify-end rounded-lg border py-1.5 px-3 font-semibold text-body transition-colors hover:bg-accent-500 hover:text-light",children:p("text-see-all")}),h&&(0,r.jsx)(c.ZP,{date:(()=>{let e=new Date;return e.setHours(23,59,59,999),e.getTime()})(),renderer:m})]}),d]})};t.Z=d},87219:function(e,t,l){"use strict";l.d(t,{Rv:function(){return r.Rv},W_:function(){return r.W_},o3:function(){return r.o3},o5:function(){return s.o5},pt:function(){return r.pt},tl:function(){return r.tl},tq:function(){return s.tq}}),l(10995),l(49070),l(93544),l(56604),l(52735),l(11908);var r=l(86523),s=l(22546)},95474:function(e,t,l){"use strict";var r=l(85893),s=l(94184),n=l.n(s),i=l(3930),a=l(63879),o=l(96872);let c=e=>{let{item:t}=e;return(0,r.jsxs)(o.Z,{href:"/suppliers/"+t.slug,className:n()("group relative flex cursor-pointer flex-col items-center text-center"),children:[(0,r.jsx)("span",{className:n()("relative mb-6 flex h-32 w-32 lg:w-40 lg:h-40 items-center justify-center overflow-hidden rounded-full border-4 border-white bg-white shadow-350 hover:border-accent-500"),children:(0,r.jsx)(a.E,{src:(null==t?void 0:t.supLogoName)?"https://logos.yadakdoon.ir/suppliers/"+(null==t?void 0:t.supLogoName):i.Pb,alt:"ÙÙÚ¯ÙÛ Ø´Ø±Ú©Øª "+(null==t?void 0:t.supBrandFa),width:100,height:70,loading:"lazy",className:" object-contain max-h-16 lg:max-h-20 m-auto"})}),(0,r.jsx)("span",{className:"block text-center font-semibold text-large text-slate-800 transition-colors group-hover:text-accent-500",children:t.supBrandFa})]})};t.Z=c},74354:function(e,t,l){"use strict";l.d(t,{Bk:function(){return f},AM:function(){return g},OZ:function(){return v},os:function(){return h},iB:function(){return p},rn:function(){return x},k5:function(){return m}});var r=l(88767),s=l(64833),n=l(39128),i=l(25506);let a=e=>{let{limit:t=30,price:l,categories:r,name:s,searchType:n,searchQuery:i,text:a,...o}=e||{};return{limit:t,...l&&{min_price:l},...s&&{name:s.toString()},...r&&{categories:r.toString()},...n&&{type:n.toString()},...i&&{name:i.toString()},...a&&{name:a.toString()},...o}};var o=l(38719),c=l(96720),u=l(22920),d=l(11163);function x(e){var t,l;let{locale:o}=(0,d.useRouter)(),c={...a(e),language:o},{data:u,isLoading:x,error:h,fetchNextPage:p,hasNextPage:m,isFetching:g,isFetchingNextPage:f}=(0,r.useInfiniteQuery)([n.P.PRODUCTS,c],e=>{let{queryKey:t,pageParam:l}=e;return s.Z.products.all(Object.assign({},t[1],l))},{getNextPageParam:e=>{let{current_page:t,last_page:l}=e;return l>t&&{page:t+1}}});return{products:null!==(l=null==u?void 0:null===(t=u.pages)||void 0===t?void 0:t.flatMap(e=>e.data))&&void 0!==l?l:[],paginatorInfo:Array.isArray(null==u?void 0:u.pages)?(0,i.Q)(null==u?void 0:u.pages[u.pages.length-1]):null,isLoading:x,error:h,isFetching:g,isLoadingMore:f,loadMore:function(){p()},hasMore:Boolean(m)}}let h=e=>{let{locale:t}=(0,d.useRouter)(),l={...e,language:t},{data:i,isLoading:a,error:o}=(0,r.useQuery)([n.P.PRODUCTS_POPULAR,l],e=>{let{queryKey:t}=e;return s.Z.products.popular(t[1])});return{products:null!=i?i:[],isLoading:a,error:o}};function p(e){let{slug:t}=e,{locale:l}=(0,d.useRouter)(),{data:i,isLoading:a,error:o}=(0,r.useQuery)([n.P.PRODUCTS,{slug:t,language:l}],()=>s.Z.products.get({slug:t,language:l}));return{product:i,isLoading:a,error:o}}function m(e){var t;let{data:l,isLoading:a,error:o,isFetching:c}=(0,r.useQuery)([n.P.PRODUCTS_QUESTIONS+"/shop",e],e=>{let{queryKey:t}=e;return s.Z.products.questions(Object.assign({},t[1]))},{keepPreviousData:!0});return{questions:null!==(t=null==l?void 0:l.data)&&void 0!==t?t:[],paginatorInfo:(0,i.Q)(l),isLoading:a,error:o,isFetching:c}}function g(){let{t:e}=(0,o.$G)("common"),t=(0,r.useQueryClient)(),{mutate:l,isLoading:i}=(0,r.useMutation)(s.Z.products.createFeedback,{onSuccess:l=>{u.toast.success("".concat(e("text-feedback-submitted")),{theme:"light"}),t.refetchQueries(n.P.PRODUCTS_QUESTIONS+"/shop"),t.refetchQueries(n.P.PRODUCTS_REVIEWS+"/shop")}});return{createFeedback:l,isLoading:i}}function f(){let{t:e}=(0,o.$G)("common"),{closeModal:t}=(0,c.SO)(),{mutate:l,isLoading:n}=(0,r.useMutation)(s.Z.products.createAbuseReport,{onSuccess:()=>{u.toast.success("".concat(e("text-abuse-report-submitted")))},onError:t=>{let{response:{data:l}}=null!=t?t:{};u.toast.error("".concat(e(null==l?void 0:l.message)))},onSettled:()=>{t()}});return{createAbuseReport:l,isLoading:n}}function v(){let{t:e}=(0,o.$G)("common"),{closeModal:t}=(0,c.SO)(),l=(0,r.useQueryClient)(),{mutate:i,isLoading:a}=(0,r.useMutation)(s.Z.products.createQuestion,{onSuccess:()=>{u.toast.success("".concat(e("text-question-submitted")),{theme:"light"})},onError:t=>{let{response:{data:l}}=null!=t?t:{};u.toast.error("".concat(e(null==l?void 0:l.message)))},onSettled:()=>{l.refetchQueries(n.P.PRODUCTS_QUESTIONS),t()}});return{createQuestion:i,isLoading:a}}},75731:function(e,t,l){"use strict";l.d(t,{$:function(){return o},B:function(){return c}});var r=l(88767),s=l(64833),n=l(39128),i=l(25506),a=l(11163);function o(e){var t,l;let{locale:o,query:c}=(0,a.useRouter)(),u={...e,language:o},{data:d,isLoading:x,error:h,fetchNextPage:p,hasNextPage:m,isFetching:g,isFetchingNextPage:f}=(0,r.useInfiniteQuery)([n.P.SUPPLIERS,u],e=>{let{queryKey:t,pageParam:l}=e;return s.Z.suppliers.all(Object.assign({},t[1],l))},{getNextPageParam:e=>{let{current_page:t,last_page:l}=e;return l>t&&{page:t+1}}});return{suppliers:null!==(l=null==d?void 0:null===(t=d.pages)||void 0===t?void 0:t.flatMap(e=>e.data))&&void 0!==l?l:[],paginatorInfo:Array.isArray(null==d?void 0:d.pages)?(0,i.Q)(null==d?void 0:d.pages[d.pages.length-1]):null,isLoading:x,error:h,isFetching:g,isLoadingMore:f,loadMore:function(){p()},hasMore:Boolean(m)}}function c(e){let{locale:t}=(0,a.useRouter)(),l={...e,language:t},{data:i,isLoading:o,error:c}=(0,r.useQuery)([n.P.SUPPLIERS_TOP,l],e=>{let{queryKey:t}=e;return s.Z.suppliers.top(t[1])});return{suppliers:null!=i?i:[],isLoading:o,error:c}}},90622:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return eS},default:function(){return ek}});var r=l(85893),s=l(67294),n=l(11163),i=l(66261),a=l(80545),o=l(38719),c=l(48583),u=l(36214),d=l(19045),x=l(64764),h=l(32453),p=l(16520),m=l(5152),g=l.n(m);let f=g()(()=>Promise.resolve().then(l.bind(l,32785)),{loadableGenerated:{webpack:()=>[32785]},ssr:!1}),v=g()(()=>l.e(918).then(l.bind(l,40918)),{loadableGenerated:{webpack:()=>[40918]},ssr:!1});function j(e){let{children:t,layout:l}=e,{t:s}=(0,o.$G)("common"),[,i]=(0,c.KO)(p.a),{query:m}=(0,n.useRouter)(),g=Object.keys(m).length>0;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"flex min-h-screen flex-col bg-slate-100 transition-colors duration-150",children:[(0,r.jsx)(d.Z,{layout:l}),(0,r.jsx)(u.Z,{layout:l}),(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(f,{}),(0,r.jsx)("div",{className:"xl min-h-screen",children:t}),!g&&(0,r.jsx)(x.Z,{}),(0,r.jsx)(v,{children:(0,r.jsxs)(a.E.button,{onClick:()=>i(e=>!e),className:"flex h-full items-center justify-center p-2 focus:text-accent focus:outline-0",children:[(0,r.jsx)("span",{className:"sr-only",children:s("text-search")}),(0,r.jsx)(h.W,{width:"17.05",height:"18"})]})})]})]})})}var w=l(89183),b=l(56455),y=l(3119),N=l(41420),Z=l(44616),P=l(98055),S=l(8704),k=l(37018),C=l(29741),_=l(74354),B=l(11757),U=l(78226),E=l(55048),I=l(87219),O=l(94184),
1V=l.n(O),F=l(72977),M=l(57632);let R=e=>{let{items:t,children:l,className:n,...i}=e,a=(0,s.useRef)(null),{width:c}=(0,F.Z)(250);(0,s.useEffect)(()=>{if(a.current){let e=a.current.swiper,t=t=>{e.slides.slice(e.activeIndex,e.activeIndex+t+1).map(e=>null==e?void 0:e.querySelector("img")).forEach(e=>null==e?void 0:e.setAttribute("loading","eager"))};e.on("slideChange",()=>t(Math.ceil(c/250))),t(Math.ceil(c/250)),e.update()}},[]);let u=(0,s.useState)((0,M.Z)());(0,s.useEffect)(()=>{if(a.current&&a.current.swiper){let e=a.current.swiper;e.update()}},[u]);let{t:d}=(0,o.$G)("common"),{isRTL:x}=(0,B.S)(),[h,p]=(0,s.useState)(null),[m,g]=(0,s.useState)(null);return(0,r.jsxs)("div",{className:V()("relative",n),children:[(0,r.jsx)(I.tq,{ref:a,shouldSwiperUpdate:!0,id:"author-card-menu",className:"!px-3",modules:[I.W_],navigation:{prevEl:h,nextEl:m,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"},observer:!0,observeParents:!0,breakpoints:{270:{slidesPerView:1,spaceBetween:20},400:{slidesPerView:2,spaceBetween:20},550:{slidesPerView:3,spaceBetween:24},850:{slidesPerView:4,spaceBetween:24},1050:{slidesPerView:5,spaceBetween:24},1400:{slidesPerView:6,spaceBetween:24},1800:{slidesPerView:7,spaceBetween:30},2200:{slidesPerView:8,spaceBetween:30},2700:{slidesPerView:10,spaceBetween:40}},...i,children:null==t?void 0:t.map((e,t)=>(0,r.jsx)(I.o5,{className:"carousel-slide py-2",children:l(e)},t))},u),(0,r.jsxs)("div",{ref:e=>p(e),className:"author-slider-prev absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-left-3 rtl:-right-3 ltr:lg:-left-4 rtl:lg:-right-4",children:[(0,r.jsx)("span",{className:"sr-only",children:d("text-previous")}),x?(0,r.jsx)(E.z,{}):(0,r.jsx)(U.W,{})]}),(0,r.jsxs)("div",{ref:e=>g(e),className:"author-slider-next absolute top-1/2 z-[5] -mt-4 flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-light text-heading shadow-300 outline-none transition-colors hover:text-orange-500 focus:outline-none ltr:-right-3 rtl:-left-3 ltr:lg:-right-4 rtl:lg:-left-4",children:[(0,r.jsx)("span",{className:"sr-only",children:d("text-next")}),x?(0,r.jsx)(U.W,{}):(0,r.jsx)(E.z,{})]})]})};var z=l(50853),q=l(994),A=l(24561);let L=e=>(0,r.jsxs)(A.ZP,{speed:2,width:"100%",height:"100%",viewBox:"0 0 520 420",backgroundColor:"#e0e0e0",foregroundColor:"#cecece",...e,children:[(0,r.jsx)("rect",{x:"0",y:"0",rx:"6",ry:"6",width:"100%",height:"340"}),(0,r.jsx)("rect",{x:"15%",y:"382",rx:"4",ry:"4",width:"70%",height:"18"})]});function T(e){let{className:t,limit:l=10,variables:s}=e,{t:n}=(0,o.$G)("common"),[i]=(0,c.KO)(z.J),{products:a,isLoading:u,error:d}=(0,_.os)({...s,passenger_car_id:null!=i?i:null}),{width:x}=(0,F.Z)(200);return d?(0,r.jsx)(k.default,{message:d.message}):u||a.length?(0,r.jsx)(C.Z,{title:n("text-popular-products"),className:"w-full "+t,icon:"@api:fluent-color:popular",children:u&&!a.length?(0,r.jsx)("div",{className:"flex space-x-reverse space-x-4",children:(0,q.Z)(Math.ceil(x/320),e=>(0,r.jsx)(L,{uniqueKey:"popular-product-".concat(e),className:"-scale-x-100"},e))}):(0,r.jsx)(R,{items:a,children:e=>(0,r.jsx)(S.Z,{product:e,className:"",productCard:"part",uniqueKey:"catalog-".concat(e.key)},null==e?void 0:e.ptId)})}):(0,r.jsx)(C.Z,{title:n("text-popular-products"),children:(0,r.jsx)(P.Z,{text:"text-not-found",className:"mx-auto w-7/12"})})}var D=l(63879),Q=l(3930),W=l(96872);let G=e=>{var t,l,n;let{banners:i,slug:a,showFirst:o=!0}=e,c=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(c.current){let e=c.current.swiper,t=t=>{e.slides.slice(e.activeIndex,e.activeIndex+t+1).map(e=>null==e?void 0:e.querySelector("img")).forEach(e=>null==e?void 0:e.setAttribute("loading","eager"))};e.on("slideChange",()=>t(1)),t(1),e.update()}},[]);let u=(0,s.useState)((0,M.Z)());(0,s.useEffect)(()=>{if(c.current&&c.current.swiper){let e=c.current.swiper;e.update()}},[u]);let{width:d}=(0,F.Z)();return(0,r.jsx)("div",{className:"compact relative",children:(0,r.jsx)("div",{className:"-z-1 overflow-hidden",children:(0,r.jsx)("div",{className:"relative h-[300px] md:h-[50vh]",dir:"rtl",children:(0,r.jsxs)(I.tq,{id:"banner",ref:c,loop:!0,modules:[I.tl,I.pt],resizeObserver:!0,allowTouchMove:!0,slidesPerView:d>1280?2:1,observer:!0,observeParents:!0,className:"h-[300px] md:h-[50vh]",autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{bulletClass:"swiper-pagination-bullet !w-2.5 !h-2.5 !p-1 !rounded-full bg-gray-400 !border-0 !opacity-70",clickableClass:"cursor-pointer",bulletActiveClass:"!bg-accent",clickable:!0},children:[o&&(0,r.jsx)(I.o5,{children:(0,r.jsxs)("div",{className:"relative h-[300px] w-full md:h-[50vh]",children:[(0,r.jsx)("div",{className:"absolute left-0 z-10 flex h-full w-1/2 justify-around bg-gradient-to-r from-gray-500 text-2xl",children:(0,r.jsxs)("h1",{className:"md:pb-15 my-auto flex-col pb-10 pl-3 md:pl-6 lg:pl-10",children:[(0,r.jsxs)("span",{className:"mb-2 block text-3xl font-semibold sm:text-4xl md:mb-3 md:text-5xl lg:mb-4",children:["ÛØ¯Ú©Ø¯ÙÙ"," "]}),(0,r.jsx)("span",{className:"pt-3 text-lg font-semibold sm:text-xl md:mb-3 md:text-2xl lg:mb-4 lg:text-3xl",children:"ÙØ±Ùشگا٠اÛÙØªØ±ÙØªÛ ÙØ·Ø¹Ø§Øª Ø®ÙØ¯Ø±ÙÙØ§Û ÙÙکس Ù ÙØ§Ø±Ø¯Ø§ØªÛ"})]})}),(0,r.jsx)(D.E,{className:"relative right-0 h-[300px] w-full object-cover md:h-[50vh]",src:"/img/banner.png",alt:"ÛØ¯Ú©Ø¯ÙÙØ ÙØ±Ùشگا٠اÛÙØªØ±ÙØªÛ ÙÙØ§Ø²Ù
ÛØ¯Ú©Û",width:1200,height:400,loading:"eager"})]})}),null==i?void 0:i.map((e,s)=>{var i,a,c,u;return(0,r.jsx)(I.o5,{children:(0,r.jsxs)(W.Z,{href:null!==(t=e.url)&&void 0!==t?t:"#",className:"h-[300px] w-full md:h-[50vw] lg:h-[40vw]",children:[(0,r.jsx)("div",{className:V()(o?"absolute left-0 z-10 flex h-full w-1/2 justify-around text-2xl":"absolute bottom-0 z-10 flex w-full bg-gradient-to-b from-slate-900/50 to-slate-900 pt-10 text-center"),children:(0,r.jsxs)("div",{className:"md:pb-15 my-auto flex-col pb-10 pl-3 md:pl-6 lg:pl-10 w-full",children:[e.title.length>3&&(0,r.jsxs)("span",{className:V()(o?"custom-text-color mb-2 block text-3xl font-semibold sm:text-4xl md:mb-3 md:text-5xl lg:mb-4":"custom-text-color mb-2 block text-xl font-semibold sm:text-2xl md:mb-3 md:text-3xl mt-auto"),style:{"--dynamic-color":"#".concat(e.title_color?null===(i=e.title_color)||void 0===i?void 0:i.toUpperCase():"FFFFFF")},children:[e.title," "]}),e.description.length>3&&(0,r.jsx)("span",{className:"custom-text-color text-lg font-semibold sm:text-xl md:mb-3 md:text-2xl lg:mb-4 lg:text-3xl",style:{"--dynamic-color":"#".concat(e.description_color?null===(a=e.description_color)||void 0===a?void 0:a.toUpperCase():"FFFFFF")},children:e.description})]})}),(0,r.jsx)(D.E,{className:"h-full w-full object-cover ",src:(null===(c=e.image)||void 0===c?void 0:c.original)?"https://public.yadakdoon.ir/public/test/"+(null===(u=e.image)||void 0===u?void 0:u.original):Q.Hb,alt:null!==(n=null!==(l=e.title)&&void 0!==l?l:e.description)&&void 0!==n?n:"",width:1280,height:720,loading:"lazy"})]})},s)})]},u)})})})},K=g()(()=>Promise.resolve().then(l.bind(l,37018)),{loadableGenerated:{webpack:()=>[37018]}}),$=e=>{let{layout:t,variables:l}=e,{type:s,error:n}=(0,b.o)(l.type);return n?(0,r.jsx)(K,{message:n.message}):(0,r.jsx)(G,{banners:null==s?void 0:s.banners,slug:null==s?void 0:s.slug})};var H=l(90551),J=l(40003);let X=e=>
1(0,r.jsxs)(A.ZP,{speed:2,width:280,height:120,viewBox:"0 0 280 120",backgroundColor:"#e0e0e0",foregroundColor:"#cecece",...e,className:"-scale-x-100",children:[(0,r.jsx)("circle",{cx:"50",cy:"50",r:"50"}),(0,r.jsx)("rect",{x:"112",y:"24",rx:"0",ry:"0",width:"180",height:"18"}),(0,r.jsx)("rect",{x:"114",y:"56",rx:"0",ry:"0",width:"90",height:"12"})]});var Y=l(52140),ee=l(41664),et=l.n(ee);let el=e=>{var t;let{item:l,className:s}=e;return(0,r.jsx)("div",{className:"rounded text-body transition-colors duration-100 hover:drop-shadow-lg ",children:(0,r.jsxs)(et(),{href:"/manufacturers/"+(null==l?void 0:l.mfaMatchCode)+"/series",title:"تÙ
اÙ
Û Ù
Ø¯Ù ÙØ§Û ".concat(null==l?void 0:l.mfaBrandFa),"aria-label":"Ù
Ø¯Ù ÙØ§Û ".concat(null==l?void 0:l.mfaBrandFa),className:"flex w-full cursor-pointer flex-col border-b-2 border-accent border-opacity-0 p-4 transition-all lg:hover:border-opacity-100 hover:text-accent",children:[(0,r.jsx)("span",{className:V()("relative flex h-12 w-16 shrink-0 items-center justify-center overflow-hidden sm:h-14 sm:w-20 xl:h-16 xl:w-24"),children:(0,r.jsx)(D.E,{src:Y.U.objects_links.manufacturer_logo+l.mfaMatchCode+".png",alt:"ÙÙØ§Ø²Ù
ÛØ¯Ú©Û "+(null==l?void 0:l.mfaBrand),fill:!0,sizes:"120px",className:"object-contain"})}),(0,r.jsx)("span",{className:"invisible my-auto h-0 w-0 border-t text-center text-lg font-semibold transition-all lg:visible lg:mt-6 lg:h-auto lg:w-auto lg:pt-3",children:(0,r.jsx)("span",{className:"px-1",children:null==l?void 0:l.mfaBrandFa})})]})})};var er=l(89874);let es=e=>{let{className:t}=e,{manufacturers:l,isLoading:s,error:n}=(0,J.a$)({limit:er.Zk});return n?(0,r.jsx)(k.default,{message:n.message}):s&&(null==l?void 0:l.length)?(0,r.jsx)(C.Z,{title:"text-top-manufacturer",href:H.Z.manufacturers,icon:"@api:fluent-color:fantasy",className:t,children:(0,r.jsx)("div",{className:"",children:(0,r.jsx)("div",{className:"grid w-full grid-flow-col gap-6",children:(0,q.Z)(4,e=>(0,r.jsx)(X,{uniqueKey:"manufacturer-".concat(e)},e))})})}):(0,r.jsx)(C.Z,{title:"Ø§ÙØªØ®Ø§Ø¨ Ø³Ø±ÛØ¹ Ø®ÙØ¯Ø±Ù",href:H.Z.manufacturers,className:t,icon:"@api:fluent-color:fantasy",children:s||(null==l?void 0:l.length)?(0,r.jsx)("div",{className:"flex flex-wrap justify-evenly",children:null==l?void 0:l.map(e=>(0,r.jsx)(el,{item:e,className:""},e.mfaId))}):(0,r.jsx)("div",{className:"min-h-full px-9 pt-6 pb-8 lg:p-8",children:(0,r.jsx)(P.Z,{text:"text-no-category",className:"h-96"})})})};var en=l(93484),ei=l(82568),ea=l(72503),eo=l(2962);function ec(e){let{className:t,variables:l}=e,{t:s}=(0,o.$G)("common"),[n]=(0,c.KO)(z.J),{articles:i,isLoading:a,error:u}=(0,ei.H9)({...l,passenger_car_id:null!=n?n:null}),{width:d}=(0,F.Z)(200);return u?(0,r.jsx)(k.default,{message:u.message}):a||i.length?(0,r.jsxs)(C.Z,{title:s("text-popular-articles"),className:"w-full text-light bg-gradient-to-b from-accent-900 to-accent-hover"+t,icon:"@api:fluent-color:hot-price",countdown:!0,children:[(0,r.jsx)(eo.X8,{ofType:"default",data:null==i?void 0:i.map(e=>({url:"https://yadakdoon.ir/products/"+e.slug,image:e.image&&e.image.original,name:(null==e?void 0:e.artCompleteDes.texDefText)+" "+(null==e?void 0:e.artSupBrandFa)+" ( "+(null==e?void 0:e.artSupBrand)+" ) - "+(null==e?void 0:e.artArticleNr)}))}),a&&!i.length?(0,r.jsx)("div",{className:"flex space-x-4 space-x-reverse",children:(0,q.Z)(Math.ceil(d/550),e=>(0,r.jsx)(en.Z,{uniqueKey:"popular-product-".concat(e),className:"-scale-x-100"},e))}):(0,r.jsx)(ea.Z,{items:i,children:e=>(0,r.jsx)(r.Fragment,{children:!a||(null==i?void 0:i.length)?(0,r.jsx)(S.Z,{product:e}):(0,r.jsx)(en.Z,{uniqueKey:"product-".concat(e.key)},e.key)})})]}):(0,r.jsx)(r.Fragment,{})}var eu=l(6075),ed=l(75731),ex=l(95474),eh=l(97963);let ep=e=>{let{className:t,variables:l}=e,{suppliers:s,isLoading:n,error:i}=(0,ed.B)(l),{width:a}=(0,F.Z)(200);return i?(0,r.jsx)(k.default,{message:i.message}):n&&!s.length?(0,r.jsx)(C.Z,{title:"text-top-suppliers",icon:"@api:fluent-color:ok",children:(0,r.jsx)("div",{className:"flex space-x-4 space-x-reverse",children:(0,q.Z)(Math.ceil(a/280),e=>(0,r.jsx)(eh.Z,{uniqueKey:"supplier-".concat(e)},e))})}):(0,r.jsx)(C.Z,{title:"text-top-suppliers",className:t,href:H.Z.suppliers,icon:"@api:fluent-color:ok",children:n||s.length?(0,r.jsx)("div",{children:(0,r.jsx)(eu.Z,{items:s,children:e=>(0,r.jsx)(ex.Z,{item:e})})}):(0,r.jsx)("div",{className:"min-h-full px-9 pt-6 pb-8 lg:p-8",children:(0,r.jsx)(P.Z,{text:"text-no-category",className:"h-96"})})})};var em=l(67421);function eg(e){let{className:t,variables:l,column:s,gridClassName:n}=e,{t:i}=(0,em.$G)("common"),[a]=(0,c.KO)(z.J),{articles:o,isLoading:u,error:d}=(0,ei.lN)({...l,passenger_car_id:null!=a?a:null}),{width:x}=(0,F.Z)(200);return u||o.length?(0,r.jsxs)(C.Z,{title:i("text-new-arrival"),href:H.Z.newArrivalProducts,className:"w-full "+t,icon:"@api:fluent-color:new-slide",children:[(0,r.jsx)(eo.X8,{ofType:"default",data:null==o?void 0:o.map(e=>{var t;return{url:"https://yadakdoon.ir/products/"+e.slug,image:(null==e?void 0:e.image)&&(null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.original),name:(null==e?void 0:e.artCompleteDes.texDefText)+" "+(null==e?void 0:e.artSupBrandFa)+" ( "+(null==e?void 0:e.artSupBrand)+" ) - "+(null==e?void 0:e.artArticleNr)}})}),u&&!o.length?(0,r.jsx)("div",{className:"flex space-x-4 space-x-reverse",children:(0,q.Z)(Math.ceil(x/550),e=>(0,r.jsx)(en.Z,{uniqueKey:"popular-product-".concat(e),className:"-scale-x-100"},e))}):(0,r.jsx)(ea.Z,{items:o,children:e=>(0,r.jsx)(S.Z,{product:e,uniqueKey:"product-".concat(e.artId)},e.artId)})]}):(0,r.jsx)(C.Z,{title:i("text-popular-articles"),children:(0,r.jsx)(P.Z,{text:"text-not-found",className:"mx-auto w-7/12"})})}var ef=l(4092),ev=l(4124),ej=l(25675),ew=l.n(ej),eb=l(64701);let ey=e=>{let{variables:t,className:l}=e,[s]=(0,c.KO)(z.J),{categories:n,isLoading:i,error:a}=(0,ev.L)({...t,pc_id:null!=s?s:null});return i?(0,r.jsx)(C.Z,{title:"text-categories",icon:"@api:fluent-color:diversity",children:(0,r.jsx)("div",{className:"mt-8 flex h-52 w-full justify-center px-2",children:(0,r.jsx)(ef.Z,{})})}):(0,r.jsx)(r.Fragment,{children:!a&&(0,r.jsxs)(C.Z,{title:"text-categories",className:l,href:H.Z.category,icon:"@api:fluent-color:diversity",children:[(0,r.jsx)("h2",{}),(0,r.jsx)("ul",{className:"overflow-y-auto rounded py-1.5 md:py-2 lg:py-3 ",onClick:e=>e.stopPropagation(),children:i?(0,r.jsx)("div",{className:"flex flex-col ",children:(0,r.jsx)(eb.Z,{})}
1):(0,r.jsx)("div",{className:"4xl:grid-cols-6 grid grid-cols-2 px-2 sm:grid-cols-3 sm:px-3 lg:grid-cols-4 2xl:grid-cols-5 ",children:n.map(e=>{var t,l,s,n;return(0,r.jsx)(r.Fragment,{children:(null==e?void 0:null===(t=e.image)||void 0===t?void 0:t.original)&&(0,r.jsx)("li",{className:"my-1 px-1",children:(0,r.jsxs)(et(),{href:"/category/"+(null==e?void 0:e.strId),className:"group flex h-full w-full flex-col rounded border bg-slate-100 text-center text-sm shadow-sm transition-all hover:font-semibold hover:text-accent-500 hover:shadow-lg sm:flex-row lg:hover:scale-105",children:[(0,r.jsx)(ew(),{className:V()("md:px-2 mx-auto h-24 w-24 object-contain sm:mx-0 md:h-28 md:w-28 lg:h-32 lg:w-32"),src:(null==e?void 0:null===(l=e.image)||void 0===l?void 0:l.original)?"https://public.yadakdoon.ir/public/test/"+(null==e?void 0:null===(s=e.image)||void 0===s?void 0:s.original):Q.Hb,alt:null!==(n=null==e?void 0:e.name)&&void 0!==n?n:"",width:140,height:140}),(0,r.jsx)("span",{className:" my-auto p-2 text-center text-sm font-semibold text-body-dark transition-all group-hover:text-accent-hover sm:m-auto sm:text-base",children:e.name})]})},e.strId)})})})})]})})};function eN(e){let{variables:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eo.ns,{type:"OnlineStore",name:Y.U.schema.name,id:Y.U.schema.url+"/#home",legalName:Y.U.schema.legal_name,logo:Y.U.schema.logo,address:Y.U.schema.address,contactPoint:Y.U.schema.contact_points,url:Y.U.schema.url,sameAs:Y.U.footer.socials.map(e=>{let{link:t}=e;return t})}),(0,r.jsx)("div",{className:"flex flex-1 flex-col bg-white",children:(0,r.jsxs)("main",{className:"block w-full xl:overflow-hidden",children:[(0,r.jsx)($,{layout:"compact",variables:t.types}),(0,r.jsx)(es,{className:" bg-slate-100 "}),(0,r.jsx)(ey,{variables:t.categories,className:"w-full "}),(0,r.jsx)(T,{variables:t.popularCatalogs,className:" bg-slate-100 shadow-inner "}),(0,r.jsx)(ec,{variables:t.popularProducts,className:" "}),(0,r.jsx)(ep,{variables:t.topSuppliers,className:" bg-slate-100 shadow-inner "}),(0,r.jsx)(eg,{column:"five",className:" ",variables:t.newArrivalProducts})]})})]})}function eZ(e){let{variables:t}=e,l=(0,n.useRouter)(),{query:s}=l;return(0,r.jsxs)(r.Fragment,{children:[s.catalog&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.Z,{layout:"standard",variables:t.categories}),(0,r.jsx)("main",{className:"flex-1",children:(0,r.jsx)(Z.Z,{className:"px-4 py-8 lg:p-8",variables:t})})]}),!s.catalog&&(0,r.jsx)(eN,{variables:t})]})}let eP=e=>{var t,l,a,o;let{variables:c,layout:u}=e,{query:d}=(0,n.useRouter)(),{type:x}=(0,b.o)(c.types.type),{manufacturers:h,isLoading:p,error:m}=(0,J.a$)({limit:er.Zk});(0,s.useEffect)(()=>{(d.text||d.category)&&i.OK.scrollTo("car-selector",{smooth:!0,offset:-65})},[d.text,d.category]);let{settings:g}=(0,y.rV)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(w.Z,{title:"ÙÙØ§Ø²Ù
ÛØ¯Ú©Û"+(null==h?void 0:h.map(e=>" "+e.mfaBrandFa)),url:(null==x?void 0:null===(t=x.settings)||void 0===t?void 0:t.isHome)?"":null==x?void 0:x.slug,images:[Y.U.schema.logo],canonical:"https://yadakdoon.ir/"+((null==x?void 0:null===(l=x.settings)||void 0===l?void 0:l.isHome)?"":null==x?void 0:x.slug),description:(null==g?void 0:null===(a=g.seo)||void 0===a?void 0:a.metaDescription)||(null==g?void 0:g.siteSubtitle),languageAlternates:[{hrefLang:"fa-IR",href:"https://yadakdoon.ir/fa/"+((null==x?void 0:null===(o=x.settings)||void 0===o?void 0:o.isHome)?"":null==x?void 0:x.slug)}]}),(0,r.jsx)(eZ,{variables:c})]})};eP.getLayout=function(e){return(0,r.jsx)(j,{layout:e.props.layout,children:e})};var eS=!0,ek=eP},57632:function(e,t,l){"use strict";let r;l.d(t,{Z:function(){return c}});let s="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var n={randomUUID:s};let i=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));var c=function(e,t,l){if(n.randomUUID&&!t&&!e)return n.randomUUID();e=e||{};let r=e.random||(e.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){l=l||0;for(let e=0;e<16;++e)t[l+e]=r[e];return t}
1return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(r)}}},function(e){e.O(0,[3985,676,1757,5651,4764,3773,9278,9774,2888,179],function(){return e(e.s=43730)}),_N_E=e.O()}]);
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.