1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8268,7722,3979,2139],{17780:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/product/[slug]/[item]",function(){return l(39182)}])},64789:function(e,t,l){"use strict";l.d(t,{a:function(){return i}});var a=l(85893);let i=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.562",height:"15.499",viewBox:"0 0 14.562 15.499",...e,children:(0,a.jsx)("g",{transform:"translate(-24.75 104.25)",children:(0,a.jsx)("path",{"data-name":"Path 7372",d:"M27.425,9.726A2.634,2.634,0,0,0,25.3,10.8L21.166,8.682A2.637,2.637,0,0,0,21.08,6.95l4.337-2.606a2.626,2.626,0,1,0-.451-.754L20.619,6.2a2.636,2.636,0,1,0,.162,3.27l4.126,2.109a2.637,2.637,0,1,0,2.518-1.855Zm0-8.847a1.758,1.758,0,1,1-1.758,1.758A1.76,1.76,0,0,1,27.425.879ZM18.637,9.7a1.758,1.758,0,1,1,1.758-1.758A1.76,1.76,0,0,1,18.637,9.7Zm8.788,4.424a1.758,1.758,0,1,1,1.758-1.758A1.76,1.76,0,0,1,27.425,14.12Z",transform:"translate(9 -104)",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.5"})})})},38720:function(e,t,l){"use strict";l.d(t,{T:function(){return i}});var a=l(85893);let i=e=>(0,a.jsxs)("svg",{width:"20",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,a.jsx)("g",{clipPath:"url(#clip0_403_3199)",children:(0,a.jsx)("path",{d:"M13.0001 20.0001C14.3257 19.9986 15.5966 19.4713 16.5339 18.5339C17.4712 17.5966 17.9985 16.3257 18.0001 15.0001V6.24314C18.0017 5.7175 17.8989 5.19678 17.6977 4.71116C17.4965 4.22554 17.2009 3.78468 16.8281 3.41414L14.5861 1.17214C14.2156 0.799313 13.7747 0.503742 13.2891 0.30256C12.8035 0.101377 12.2828 -0.00141588 11.7571 0.00013946H7.00012C5.67453 0.00172732 4.40368 0.529021 3.46634 1.46636C2.529 2.4037 2.00171 3.67454 2.00012 5.00014V15.0001C2.00171 16.3257 2.529 17.5966 3.46634 18.5339C4.40368 19.4713 5.67453 19.9986 7.00012 20.0001H13.0001ZM4.00012 15.0001V5.00014C4.00012 4.20449 4.31619 3.44143 4.8788 2.87882C5.44141 2.31621 6.20447 2.00014 7.00012 2.00014C7.00012 2.00014 11.9191 2.01414 12.0001 2.02414V4.00014C12.0001 4.53057 12.2108 5.03928 12.5859 5.41435C12.961 5.78943 13.4697 6.00014 14.0001 6.00014H15.9761C15.9861 6.08114 16.0001 15.0001 16.0001 15.0001C16.0001 15.7958 15.6841 16.5589 15.1214 17.1215C14.5588 17.6841 13.7958 18.0001 13.0001 18.0001H7.00012C6.20447 18.0001 5.44141 17.6841 4.8788 17.1215C4.31619 16.5589 4.00012 15.7958 4.00012 15.0001ZM22.0001 8.00014V19.0001C21.9985 20.3257 21.4712 21.5966 20.5339 22.5339C19.5966 23.4713 18.3257 23.9986 17.0001 24.0001H8.00012C7.73491 24.0001 7.48055 23.8948 7.29302 23.7072C7.10548 23.5197 7.00012 23.2654 7.00012 23.0001C7.00012 22.7349 7.10548 22.4806 7.29302 22.293C7.48055 22.1055 7.73491 22.0001 8.00012 22.0001H17.0001C17.7958 22.0001 18.5588 21.6841 19.1214 21.1215C19.6841 20.5589 20.0001 19.7958 20.0001 19.0001V8.00014C20.0001 7.73492 20.1055 7.48057 20.293 7.29303C20.4806 7.1055 20.7349 7.00014 21.0001 7.00014C21.2653 7.00014 21.5197 7.1055 21.7072 7.29303C21.8948 7.48057 22.0001 7.73492 22.0001 8.00014Z",fill:"currentColor"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_403_3199",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})},4511:function(e,t,l){"use strict";l.d(t,{e:function(){return i}});var a=l(85893);let i=e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"25",viewBox:"0 0 49 34",fill:"none",...e,children:[(0,a.jsx)("path",{d:"M41.2591 13.6985C41.2591 13.6985 36.5359 17.5681 28.6141 24.5207C26.2879 26.5627 23.7731 24.8067 22.9558 24.8147L21.2661 29.0021C21.2661 29.0021 15.4191 27.2779 16.2286 22.2164C17.0459 17.147 9.52498 19.7135 17.5882 12.0696C24.6847 5.3475 34.2647 13.0152 34.2647 13.0152C34.2647 13.0152 37.5654 3.29749 27.6239 1.14419C18.767 -0.770748 11.3875 9.41575 9.9415 12.2842C8.41688 14.9857 5.07686 26.6581 13.9888 31.8944C22.052 36.63 30.3352 31.1554 33.9503 26.8011C37.5654 22.4468 39.4987 17.0199 41.4162 16.4875L41.2591 13.6985Z",fill:"white",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M20.1345 12.459C20.1345 12.459 20.7082 16.1299 24.2525 15.9233C27.6711 15.7167 31.0112 14.9221 31.797 11.4419L34.2726 12.888C34.2726 12.888 34.2804 16.7576 23.4745 21.7317C21.667 22.566 20.5432 27.1348 20.5432 27.1348C20.5432 27.1348 15.1834 24.3141 19.5529 18.5613C19.5529 18.5613 15.6471 16.0584 20.1345 12.459Z",fill:"white",stroke:"currentColor",strokeWidth:"1.5"})]})},17722:function(e,t,l){"use strict";l.d(t,{p:function(){return i}});var a=l(85893);let i=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9.002",height:"9",viewBox:"0 0 9.002 9",...e,children:(0,a.jsx)("path",{"data-name":"Union 174",d:"M-7634.625-9885.127v-2.251h-2.251A1.064,1.064,0,0,1-7638-9888.5a1.062,1.062,0,0,1,1.125-1.122h2.251v-2.251A1.064,1.064,0,0,1-7633.5-9893a1.064,1.064,0,0,1,1.126,1.127v2.251h2.251A1.064,1.064,0,0,1-7629-9888.5a1.065,1.065,0,0,1-1.126,1.127h-2.251v2.251A1.062,1.062,0,0,1-7633.5-9884,1.061,
11.061,0,0,1-7634.625-9885.127Z",transform:"translate(7638 9893.005)",fill:"currentColor"})})},31354:function(e,t,l){"use strict";l.d(t,{Y:function(){return i}});var a=l(85893);let i=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.489",height:"18.489",viewBox:"0 0 18.489 18.489",...e,children:(0,a.jsx)("path",{"data-name":"Path 11634",d:"M533.747,4462.2a9.244,9.244,0,1,0,6.529,2.71A9.244,9.244,0,0,0,533.747,4462.2Zm5.441,14.68a7.7,7.7,0,1,1,1.234-9.3,7.7,7.7,0,0,1-1.234,9.3Zm-3.541-9.33-6.06,2.35a1.526,1.526,0,0,0-.98,1.5,1.509,1.509,0,0,0,1.1,1.41l2.056.61.6,2.06a1.521,1.521,0,0,0,1.411,1.1h.069a1.52,1.52,0,0,0,1.431-.98l2.357-6.06a1.53,1.53,0,0,0-.346-1.65,1.506,1.506,0,0,0-1.647-.34h0Zm-1.8,7.49-.594-2.02.493-.49a.77.77,0,1,0-1.088-1.09l-.494.49-2.021-.59,6.06-2.36Z",transform:"translate(-524.492 -4462.2)",fill:"currentColor",fillRule:"evenodd"})})},46837:function(e,t,l){"use strict";l.d(t,{u:function(){return i}});var a=l(85893);let i=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18.474",height:"18.472",viewBox:"0 0 18.474 18.472",...e,children:(0,a.jsx)("path",{"data-name":"Path 11633",d:"M487.066,4471.97a1.927,1.927,0,0,0-2.721,0l-.914.92a11.991,11.991,0,0,1-1.088-1.09l.915-.91a1.926,1.926,0,0,0,0-2.72l-1.272-1.28a1.167,1.167,0,0,0-.976-.32,1.142,1.142,0,0,0-.849.58l-.879,1.58a1.536,1.536,0,0,0,.08,1.63l.78,1.12c.179.27.362.51.559.76a14.185,14.185,0,0,0,2.29,2.29.011.011,0,0,1,.012.009c.242.19.486.371.742.55l1.13.78a1.5,1.5,0,0,0,1.623.08l1.585-.88a1.151,1.151,0,0,0,.582-.85,1.133,1.133,0,0,0-.327-.971Zm-4.9-2.17-.782.78-.761-1.1.632-1.14.911.91a.392.392,0,0,1,0,.55Zm3.582,4.81-1.1-.76.782-.79a.385.385,0,0,1,.544,0l.911.91Zm4.581-9.71a9.236,9.236,0,0,0-14.342,11.46l-1.311,2.66-.017.03a1.163,1.163,0,0,0,.245,1.28,1.15,1.15,0,0,0,1.27.24c.013-.01.025-.01.038-.02l2.658-1.31a9.235,9.235,0,0,0,11.459-14.34h0Zm-10.959,12.83a.722.722,0,0,0-.443-.14.681.681,0,0,0-.34.08l-2.02.99,1-2.02a.765.765,0,0,0-.061-.779,7.69,7.69,0,1,1,1.867,1.869Z",transform:"translate(-474.561 -4462.194)",fill:"currentColor",fillRule:"evenodd"})})},97214:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=l(85893),i=l(90512),n=l(14344),d=e=>{let{items:t,className:l}=e;return(0,a.jsx)("nav",{"aria-label":"Breadcrumb",className:(0,i.Z)("overflow-x-scroll no-scrollbar",l),children:(0,a.jsx)("ul",{className:"flex select-none",children:null==t?void 0:t.map((e,t,l)=>{let{name:d,url:o}=e,s=t===l.length-1;return(0,a.jsxs)("li",{className:"flex",children:[(0,a.jsx)("a",{className:(0,i.Z)("font-bold","whitespace-nowrap","text-sm","md:text-xl",{"text-gulf-blue":!s,"text-cerulean-blue":s}),href:o,children:d}),!s&&(0,a.jsx)(n.Z,{"aria-hidden":"true",variant:"span",className:(0,i.Z)("text-gulf-blue/30","mx-2"),children:"/"})]},d)})})})}},38627:function(e,t,l){"use strict";var a=l(85893),i=l(90512),n=l(27484),d=l.n(n),o=l(8593);d().extend(o.Z),t.Z=e=>{let{date:t,lang:l="fa",className:n=""}=e,o=()=>new Date().toISOString().slice(0,10)===d()(t).format("YYYY-MM-DD"),s={date:"en"===l||"ar"===l?d()(t).format("D M YYYY"):d()(t).calendar("jalali").locale("fa").format("YYYY/M/D"),time:"en"===l||"ar"===l?d()(t).format("HH:mm"):d()(t).calendar("jalali").locale("fa").format("HH:mm")};return(0,a.jsxs)("div",{className:(0,i.Z)(n,"flex items-center",{"flex-row-reverse":"en"===l},{"flex-row":"en"!==l}),children:[(0,a.jsx)("time",{dateTime:s.time,className:(0,i.Z)(o()?"text-success":"text-error","ml-3","text-sm","font-bold","md:text-xl"),children:s.time}),(0,a.jsx)("time",{dateTime:s.date,className:(0,i.Z)(o()?"text-success":"text-error","text-sm","font-bold","md:text-xl"),children:s.date})]})}},12352:function(e,t,l){"use strict";var a=l(85893),i=l(90512);l(67294),t.Z=e=>{let{label:t,value:l,onClick:n,renderOption:d,select_value:o,className:s,disabled:r=!1}=e;return(0,a.jsx)(a.Fragment,{children:d?d({label:t,value:l,onClick:n,select_value:o}):(0,a.jsx)("div",{className:(0,i.Z)("p-2.5",{"hover:bg-[#E5E8ED]":!r},"text-xl","font-bold","select-none",{"text-gulf-blue/50 pointer-events-none":r},s),onClick:()=>n?n(l,t):()=>{},children:t})})}},13368:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var a=l(85893),i=l(3596),n=l(90512),d=l(67294),o=l(47158),s=l(14344),r=e=>{let{disabled:t=!1,hasTransparent:l=!1,children:r,placeholder:c,value:u,onChange:v,arrowColor:x="blue",background:m="white",width:h,className:f,multiple:p,closeAfterSelected:g=!1,renderOption:b,...j}=e,[w,Z]=(0,d.useState)(!1),[N,C]=(0,d.useState)(""),y=(0,d.useRef)();(0,o.Z)(y,()=>Z(!1));let k=(0,d.useMemo)(()=>r?r.length>=1?null==r?void 0:r.map(e=>({...null==e?void 0:e.props})):d.isValidElement(r)?[null==r?void 0:r.props]:void 0:[(0,a.jsx)(a.Fragment,{})],[r]);(0,d.useEffect)(()=>{let e=null==k?void 0:k.find(e=>(null==e?void 0:e.value)===u);e&&!p?C(null==e?void 0:e.label):C("")},[u,k]);let _=(e,t)=>
1{v(e),p&&g&&Z(!1),p||(C(t),Z(!1))};return(0,a.jsxs)("div",{ref:y,className:(0,n.Z)("relative","inline-flex","rounded-full","border","border-gulf-blue/35","cursor-pointer",{"bg-white":"white"===m},{"bg-[#EDEEF3]":"blue"===m},{"pointer-events-none !bg-gulf-blue/5":t},"select-none",f),style:{width:h?"".concat(h,"px"):void 0},...j,children:[(0,a.jsx)("div",{onClick:()=>Z(!w),className:(0,n.Z)("flex-1","appearance-none","outline-none","p-2.5","pl-5","rounded-full","font-bold","text-xl","ml-2","items-center","min-w-[100px]","rounded-[20px]","md:rounded-[24px]","text-gulf-blue","text-base","md:text-xl my-auto",{"!text-gulf-blue/50":t},{"!text-white":l}),children:(0,a.jsx)(s.Z,{weight:(null==u?void 0:u.length)||u>0?"bold":"semibold",className:(0,n.Z)(),children:((null==u?void 0:u.length)||u>0)&&!p&&(null==N?void 0:N.length)?N:c})}),(0,a.jsx)("div",{className:(0,n.Z)("border-t","border-[#EDEEF3]/50","px-0.5","py-2","absolute","bg-white","w-full","z-10","left-0","right-0","top-full","translate-y-0.5","rounded-2xl","shadow-lg","bg-[#F6F8F9]",{hidden:!1===w}),children:(0,a.jsx)("div",{className:(0,n.Z)("max-h-44","pretty-scroll","overflow-y-auto","px-1"),children:w&&r?r.length>=1?r.map(e=>{if(d.isValidElement(e))return d.cloneElement(e,{select_value:u,onClick:(e,t)=>{_(e,t)},renderOption:b||void 0});throw"option element is not valid react element."}):d.isValidElement(r)?d.cloneElement(r,{select_value:u,onClick:(e,t)=>{_(e,t)},renderOption:b||void 0}):(0,a.jsx)(a.Fragment,{}):(0,a.jsx)(a.Fragment,{})})}),(0,a.jsx)(i.D,{className:(0,n.Z)("absolute","top-1/2","opacity-50","-translate-y-1/2","left-3.5",{"!text-white":l},{"!text-cerulean-blue":(null==u?void 0:u.length)||u>0},{"text-yellow":"yellow"===x,"text-gulf-blue":"blue"===x})})]})}},45825:function(e,t,l){"use strict";l.d(t,{Z:function(){return s}});var a=l(85893),i=l(9008),n=l.n(i),d=e=>{let t=["title","description","url","image","type","locale"],l=Object.keys(e).map(l=>{if(t.includes(l))return(0,a.jsx)("meta",{property:"og:".concat(l),content:e[l]},l)});return(0,a.jsx)(a.Fragment,{children:l})},o=e=>{let t=["card","title","description","site","image","creator"],l=Object.keys(e).map(l=>{if(t.includes(l))return"object"==typeof e[l]?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("meta",{name:"twitter:".concat(l),content:e[l]},l)});return(0,a.jsx)(a.Fragment,{children:l})},s=e=>{let{title:t="اصÙÙØ§Ù Ø¢ÙÙ",description:l="Ù
رجع Ø®Ø±ÛØ¯ Ù ÙØ±ÙØ´ Ø¢ÙÙâØ¢ÙØ§Øª با Ø¨ÙØªØ±ÛÙ ÙÛÙ
ت | اصÙÙØ§Ù Ø¢ÙÙ ØØ§Ùظ اعتÙ
اد Ø´Ù
ا",canonical:i,alternate:s,schemas:r,indexed:c=!0}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"description",content:l}),i&&(0,a.jsx)("link",{rel:"canonical",href:i}),s&&(0,a.jsx)("link",{rel:"alternate",hrefLang:"fa-ir",href:s}),(0,a.jsx)("meta",{name:"robots",content:c?"index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large":"noindex, follow"}),(0,a.jsx)(o,{...e}),(0,a.jsx)(d,{...e})]}),r&&(0,a.jsx)("script",{id:"ld-json",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(r)}})]})}},71489:function(e,t,l){"use strict";l.d(t,{Z:function(){return m}});var a=l(85893),i=l(91649),n=l(38720),d=l(4511),o=l(31354),s=l(46837),r=l(90512),c=l(67294),u=l(84325),v=l(35778),x=l(14344),m=e=>{let{title:t,subscriptionLink:l="",children:m}=e,[h,f]=(0,c.useState)(!1);return(0,a.jsx)(i.Z,{id:"share-".concat(t,"-tooltip"),TooltipComponent:()=>(0,a.jsxs)("div",{className:"bg-[#f6f8f9] p-4 flex rounded-[10px] items-center",children:[(0,a.jsx)(u.Z,{Icon:d.e,link:"https://eitaa.com/share/url?url=".concat("https://esfahanahan.com"+l),label:"Ø§ÛØªØ§"}),(0,a.jsx)(u.Z,{Icon:o.Y,link:"https://t.me/share/url?url=".concat("https://esfahanahan.com"+l,"&text=").concat(t),label:"تÙگراÙ
"}),(0,a.jsx)(u.Z,{Icon:s.u,link:"https://wa.me/?text=".concat(t,"%0A%0A").concat("https://esfahanahan.com"+l),label:"ÙØ§ØªØ³Ø§Ù¾"}),(0,a.jsxs)("div",{className:"flex items-center group cursor-pointer",onClick:()=>{navigator.clipboard.writeText("https://esfahanahan.com".concat(l)),v.Z.getInstance().success("ÙÛÙÚ© Ú©Ù¾Û Ø´Ø¯")},children:[(0,a.jsxs)("div",{className:(0,r.Z)("mx-2 transition-all flex opacity-0 max-w-0 group-hover:max-w-full group-hover:opacity-100"),children:[(0,a.jsx)(x.Z,{className:"ml-1",children:"Ú©Ù¾Û"}),(0,a.jsx)(x.Z,{children:"ÙÛÙÚ©"})]}),(0,a.jsx)(n.T,{className:(0,r.Z)("transition-all text-gulf-blue/50 group-hover:text-cerulean-blue")})]})]}),toggle:h,setToggle:f,children:(()=>
1{if(c.isValidElement(m))return c.cloneElement(m,{onClick:()=>f(!h)});throw"invalid children"})()})}},84325:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var a=l(85893),i=l(90512);l(67294);var n=l(14344),d=e=>{let{label:t,link:l,Icon:d,IconClassName:o,LabelClassName:s}=e;return(0,a.jsxs)("a",{className:"flex items-center group",href:l,target:"_blank",children:[(0,a.jsx)(n.Z,{className:(0,i.Z)("mx-2 transition-all opacity-0 invisible max-w-0 group-hover:max-w-full group-hover:opacity-100 group-hover:visible",s),children:t}),(0,a.jsx)(d,{className:(0,i.Z)("transition-all text-gulf-blue/50 group-hover:text-cerulean-blue",o)})]})}},49585:function(e,t,l){"use strict";l.d(t,{Z:function(){return n}});var a=l(85893),i=l(90512);function n(e){let{children:t,className:l}=e;return(0,a.jsx)("div",{className:(0,i.Z)("w-full",l),children:t})}},36428:function(e,t,l){"use strict";l.d(t,{Z:function(){return r}});var a=l(85893),i=l(90512),n=l(67294),d=l(14344);let o=(0,n.forwardRef)((e,t)=>{let{Icon:l,label:n,first:o,count:s,activeLink:r,value:c,vertical:u,borderWidth:v,hasAmount:x,click:m,onClick:h}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("li",{onClick:m?()=>m(c,t):()=>{},ref:t,className:(0,i.Z)("py-4","px-2","text-xl","hover:cursor-pointer","".concat(o&&!u?"!pr-px":""),"".concat(r===c?"bg-white":"")),children:(0,a.jsxs)("button",{className:(0,i.Z)({"sm:flex sm:items-center":x}),children:[(0,a.jsx)(d.Z,{variant:"span",weight:"semibold",className:(0,i.Z)("".concat(r===c?"text-cerulean-blue":"text-blue-600")),children:n}),l&&(0,a.jsx)(l,{}),!u&&(0,a.jsx)("p",{className:(0,i.Z)("absolute","bottom-0","w-0","border-yellow","border-t-[3px]","border-solid","rounded-t-3xl","transition-[width]","duration-[40ms]"),style:{width:r===c?v:"0"}}),x?(0,a.jsx)(d.Z,{variant:"span",className:(0,i.Z)("px-2.5 rounded-full mr-1.5","".concat(r===c?"text-white bg-yellow":"text-blue-600 bg-cerulean-blue/[0.07]")),children:s}):(0,a.jsx)(a.Fragment,{})]})})})});o.displayName="TabLinkItem";var s=e=>{let{activeTab:t,items:l,setActiveTab:d,animate:s,vertical:r,reset:c,hasAmount:u}=e,[v,x]=(0,n.useState)(0),[m,h]=(0,n.useState)(0),[f,p]=(0,n.useState)(!0),[g,b]=(0,n.useState)(0),j=(0,n.useRef)([]),w=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=j.current[0];x((null==e?void 0:e.offsetWidth)-8)},[]),(0,n.useEffect)(()=>{c&&Z(0,j.current[0],0)},[c]);let Z=(e,t,l,a)=>{p(!0),setTimeout(()=>{var a,i,n,o,s,r;let c=null==w?void 0:w.current,u=0===l?0:8,v=0;t.getBoundingClientRect().right>(null!==(a=null==c?void 0:c.getBoundingClientRect().right)&&void 0!==a?a:0)&&(v=-(2*(null!==(i=null==c?void 0:c.getBoundingClientRect().left)&&void 0!==i?i:0)),b(0)),t.getBoundingClientRect().left<(null!==(n=null==c?void 0:c.getBoundingClientRect().left)&&void 0!==n?n:0)&&(v=(null!==(o=null==c?void 0:c.getBoundingClientRect().left)&&void 0!==o?o:0)*2,b(-t.getBoundingClientRect().left+(null!==(s=null==c?void 0:c.getBoundingClientRect().left)&&void 0!==s?s:0))),x(t.offsetWidth-(8+u)),d(e),h((null==t?void 0:t.getBoundingClientRect().right)-(null!==(r=null==c?void 0:c.getBoundingClientRect().right)&&void 0!==r?r:0)-u+v)},100),a&&a(),setTimeout(()=>{p(!1)},200)},N=l.map((e,l)=>(0,n.createElement)(o,{...e,key:e.value,borderWidth:v,ref:e=>j.current[l]=e,activeLink:t,click:t=>Z(t,j.current[l],l,e.onClick),first:0===l,vertical:r,hasAmount:u}));return(0,a.jsxs)("div",{className:(0,i.Z)(!r&&"overflow-hidden",r&&"bg-blue-300"),children:[(0,a.jsx)("div",{ref:w,className:(0,i.Z)("flex-auto","flex","sticky","top-0"),children:(0,a.jsx)("ul",{className:(0,i.Z)("flex",r&&"flex-col","whitespace-nowrap","relative","transition-transform","overflow-x-auto hide-scrollbar"),style:{transform:r?"":"translateX(".concat(g,"px)")},children:N})}),!r&&(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("p",{style:{width:v,transform:"translateX(".concat(m,"px)"),display:f?"flex":"none"},className:(0,i.Z)("border-yellow","border-t-[3px]","border-solid","rounded-t-3xl","absolute","right-0","mt-[-3px]",s&&"transition-all")}),(0,a.jsx)("p",{className:(0,i.Z)("w-[97%]","border-gulf-blue/10","border-t","border-solid")})]})]})},r=e=>{let{children:t,vertical:l,animate:d,className:o,setDefault:r,hasAmount:c=!1,getCurrentValue:u=()=>{}}
1=e,[v,x]=(0,n.useState)([]),[m,h]=(0,n.useState)(0),[f,p]=(0,n.useState)(!1);return(0,n.useMemo)(()=>{let e=[];n.Children.forEach(t,(t,l)=>{e.push({...null==t?void 0:t.props,value:l})}),x(()=>e)},[t]),(0,n.useEffect)(()=>{u(m),p(!1)},[m,u]),(0,n.useEffect)(()=>{r&&p(!0)},[r]),(0,a.jsxs)("div",{className:(0,i.Z)(l&&"flex h-full",o),children:[(0,a.jsx)(s,{items:v,activeTab:m,setActiveTab:h,vertical:l,animate:d,reset:f,hasAmount:c}),t[m]]})}},39182:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return ea},default:function(){return ei}});var a=l(85893),i=l(17079),n=l(28145),d=l(86828),o=l(97214),s=l(92718),r=l(91057),c=l(45825),u=l(71489),v=l(49585),x=l(36428),m=l(18316),h=l(14344),f=l(64789),p=l(27750),g=l(90512),b=l(5152),j=l.n(b),w=l(41664),Z=l.n(w),N=l(11163),C=l(67294),y=l(5068),k=l(39303);class _{}_.endpoints={variations:(e,t)=>"/products/".concat(e,"/variations/").concat(t),faqs:(e,t)=>"/faq-answer?url=/product/".concat(encodeURI("".concat(e,"/").concat(t)),"/")},_.getVariationDataFetcher=async(e,t)=>{try{return await k.Z.get(_.endpoints.variations(e,t))}catch(l){return{data:await (await fetch("https://esfahanahan.com/api"+_.endpoints.variations(e,t))).json()}}},_.getVariationData=(e,t)=>(0,y.ZP)(_.endpoints.variations(e,t),()=>_.getVariationDataFetcher(e,t),{shouldRetryOnError:!1}),_.getFaqDataFetcher=async(e,t)=>{try{return await k.Z.get(_.endpoints.faqs(e,t))}catch(l){return{data:await (await fetch("https://esfahanahan.com/api"+_.endpoints.faqs(e,t))).json()}}},_.getFaqData=(e,t)=>(0,y.ZP)(_.endpoints.faqs(e,t),()=>_.getFaqDataFetcher(e,t),{shouldRetryOnError:!1});var M=l(48130),E=l(28858),S=e=>{let{attrs:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("table",{className:"w-full",children:(0,a.jsx)("tbody",{children:null==t?void 0:t.map((e,t)=>(0,a.jsxs)("tr",{className:" child:odd:bg-gulf-blue/[.03] child:even:bg-gulf-blue/10 child:rounded-lg child:p-3 mb-6 grid gap-4 grid-cols-5 ",children:[(0,a.jsx)("th",{className:(0,g.Z)("text-gulf-blue/100 font-bold text-start","text-sm","md:text-xl","col-span-2"),children:e.attribute_name}),(0,a.jsx)("th",{className:(0,g.Z)("text-gulf-blue/100 font-bold text-start","text-sm","md:text-xl","col-span-3"),children:e.attribute_item})]},t))})})})},F=l(13368),Y=l(12352),L=l(56671),R=l(77508),I=l(27484),P=l.n(I),T=l(42139);let D=j()(()=>Promise.all([l.e(9932),l.e(5785)]).then(l.bind(l,45785)).then(e=>e.default),{loadableGenerated:{webpack:()=>[45785]},ssr:!1,loading:()=>(0,a.jsx)("div",{children:"loading..."})}),B=["Û± ÙÙØªÙ","Û± Ù
اÙÙ","Û³ Ù
اÙÙ","Û¶ Ù
اÙÙ","Û± ساÙÙ","Û² ساÙÙ","Û³ ساÙÙ","Û´ ساÙÙ","Ûµ ساÙÙ","از سا٠۹۰"];var O=e=>{var t,l,i;let{title:n,updated_at:d,id:o}=e,[s,r]=(0,C.useState)("Û± ÙÙØªÙ"),[c,u]=(0,C.useState)(""),[v,x]=(0,C.useState)(""),m=(0,C.useMemo)(()=>["Û± ÙÙØªÙ","Û± Ù
اÙÙ","Û³ Ù
اÙÙ","Û¶ Ù
اÙÙ","Week","Month","3 Month","6 Month","Ø§Ø³Ø¨ÙØ¹","Ø´ÙØ± ÙØ§ØØ¯","Ø«ÙØ§Ø«Ø© Ø£Ø´ÙØ±","ستة Ø£Ø´ÙØ±"].includes(s),[s]);(0,C.useEffect)(()=>{d&&u(P()(d).format("YYYY-M-D+HH:mm:ss")),d&&x(P()(d).subtract(7,"day").format("YYYY-M-D+HH:mm:ss"))},[d]);let{data:f,isLoading:p}=T.Z.getVariationPrice(o,v,c);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-x-2 flex-wrap justify-between items-center ",children:[(0,a.jsxs)("div",{className:"max-[383px]:flex items-center gap-x-[2px]",children:[(0,a.jsxs)(h.Z,{weight:"bold",variant:"span",className:"text-gulf-blue/50 text-base md:text-2xl",children:["ÙÙ
ÙØ¯Ø§Ø± تغÛÛØ±Ø§Øª ÙÛÙ
ت"," "]}),(0,a.jsx)(h.Z,{weight:"bold",variant:"span",className:"text-cerulean-blue min-[383px]:mt-1.5 text-sm md:text-xl",children:n})]}),(0,a.jsx)(F.Z,{arrowColor:"yellow",value:s,onChange:e=>{r(e),x(P()(d).subtract(L.k4[e][0],L.k4[e][1]).format("YYYY-MM-DD"))},placeholder:"ÛÚ© ÙÙØªÙ",background:"blue",className:"min-w-[170px] max-[383px]:mt-2 z-[12]",children:B.map(e=>(0,a.jsx)(Y.Z,{label:e,value:e},e))})]}),(0,a.jsx)("div",{className:"mt-10 flex-grow",children:p?(0,a.jsxs)("div",{className:"flex flex-col justify-center items-center h-full",children:[(0,a.jsx)(R.y,{className:"child:!text-yellow h-12 w-12"}),(0,a.jsx)(h.Z,{weight:"bold",className:"text-cerulean-blue mt-3",children:"ÙØ·Ùا Ù
ÙØªØ¸Ø± بÙ
اÙÛØ¯ ..."})]}):(null==f?void 0:null===(l=f.data)||void 0===l?void 0:null===(t=l.data)||void 0===t?void 0:t.length)===0?(0,a.jsx)(h.Z,{weight:"bold",className:"text-error text-xl",children:"در اÛ٠باز٠زÙ
اÙÛ ØªØºÛÛØ± ÙÛÙ
ت Ø¨Ø±Ø§Û Ø§ÛÙ Ù
ØØµÙ٠ثبت ÙØ´Ø¯Ù است."}):(0,a.jsx)(D,{data:null==f?void 0:null===(i=f.data)||void 0===i?void 0:i.data,isCycleUnderOneYear:m})})]})}
1,V=l(37677),A=l(67743),H=l(26329),q=l(17722);let W=e=>{let{answer:t,question:l,faqIndex:i}=e,[n,o]=(0,C.useState)(!1);return(0,a.jsxs)(d.Z,{className:"flex flex-col",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("span",{className:(0,g.Z)("bg-yellow","text-white ","text-2xl ","font-bold ","text-center ","px-2.5 ","pt-1 ","hidden ","md:flex","rounded-[14px] ","ml-3 ","min-w-[30px]"),children:i}),(0,a.jsx)(s.Z,{text:"",Icon:q.p,color:"yellow",onClick:()=>o(!n),className:(0,g.Z)("bg-yellow","text-white","text-2xl","first-letter:","text-center","px-2.5","md:hidden","h-5","flex","rounded-[14px]","ml-3","min-w-[30px]")}),(0,a.jsx)(h.Z,{variant:"h4",weight:"bold",className:"text-cerulean-blue cursor-pointer",children:l})]}),(0,a.jsx)(s.Z,{text:n?"بست٠پاسخ":"Ø¯ÛØ¯Ù پاسخ",Icon:n?H.T:p.Y,onClick:()=>o(!n),color:"transparent",className:(0,g.Z)("font-semibold","child:mx-1","text-xl","hidden","md:flex",{"!hover:text-gulf-blue":n},{"!text-gulf-blue/60":n},{"!text-yellow/80":!n},{" !hover:text-yellow/100":!n})})]}),(0,a.jsx)(A.X,{isCollapsed:n,className:"py-2 px-6 ",children:(0,a.jsx)(a.Fragment,{children:t})})]})};function X(e){let{data:t}=e;return(0,a.jsxs)("div",{className:"child:mt-6 child:p-6 child:flex child:justify-between",children:[(0,a.jsxs)(d.Z,{children:[(0,a.jsx)(h.Z,{weight:"bold",className:"text-cerulean-blue text-2xl",children:"Ø³ÙØ§Ùات Ù
تداÙÙ"}),(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-cerulean-blue text-base md:text-2xl",children:(null==t?void 0:t.length)+"Ø³ÙØ§Ù"})]}),null==t?void 0:t.map((e,t)=>(0,C.createElement)(W,{...e,key:t,faqIndex:t+1}))]})}var U=l(38627),z=l(25675),G=l.n(z);let J=e=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",...e,children:(0,a.jsx)("path",{d:"M.029,4.588a.6.6,0,0,1,.517-.412l3.262-.3L5.1.861A.6.6,0,0,1,6.2.861L7.492,3.88l3.263.3A.6.6,0,0,1,11.1,5.227L8.63,7.389l.727,3.2a.6.6,0,0,1-.894.649L5.65,9.559,2.838,11.241a.6.6,0,0,1-.894-.649l.727-3.2L.2,5.227a.6.6,0,0,1-.175-.638ZM5.6,9.526",transform:"translate(0 -0.496)",fill:"#ffa000"})});function $(e){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"82.174",height:"37.369",viewBox:"0 0 82.174 37.369",...e,children:(0,a.jsx)("path",{id:"Shape_136","data-name":"Shape 136",d:"M1494.271,549.371h73.277v12.176h.028c-9.216,0-14.374,25.155-20.98,25.192h-30.5c-8.03,0-12.164-25.192-21.818-25.192h-.005Z",transform:"translate(-1489.858 -549.371)",fill:"#f6f8f9"})})})}function K(e){let{rate:t=5,className:l=""}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:(0,g.Z)("absolute","right-1.5","-top-3","flex",l),children:[(0,a.jsx)($,{}),(0,a.jsxs)("div",{className:"flex absolute left-7 top-2.5 items-baseline",children:[(0,a.jsx)(J,{}),(0,a.jsx)(h.Z,{className:"text-yellow text-[20px] pr-[2px]",weight:"medium",children:t})]})]})})}var Q=e=>{let{rate:t,name:l,company:i,updatedAt:n,img:d=""}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:(0,g.Z)("w-full","h-fit","p-6","relative"),children:[(0,a.jsx)(K,{rate:t}),(0,a.jsx)("div",{className:"flex justify-center p-6",children:d&&(0,a.jsx)(G(),{priority:!0,loading:"eager",src:d,alt:l,width:171,height:171})}),(0,a.jsxs)(h.Z,{variant:"span",weight:"bold",className:"text-cerulean-blue !text-[14px]",children:["ÙÛÙ
ت ",l]}),(0,a.jsxs)("div",{className:"flex justify-between flex-col child:flex child:justify-between child:my-1.5 mt-1.5",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-gulf-blue/70 text-sm md:text-xl",children:"کارخاÙ٠تÙÙÛØ¯ Ú©ÙÙØ¯Ù"}),(0,a.jsx)(h.Z,{weight:"bold",variant:"span",className:"text-gulf-blue text-sm md:text-xl",children:i})]}),(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-gulf-blue/70 text-sm md:text-xl",children:"آخرÛÙ Ø¨Ø±ÙØ²Ø±Ø³Ø§ÙÛ"}),(0,a.jsx)(U.Z,{date:n})]})]})]})})};let ee=j()(()=>l.e(1892).then(l.bind(l,41892)),{loadableGenerated:{webpack:()=>[41892]},loading:()=>(0,a.jsx)("div",{children:"loading..."}),ssr:!1});function et(e){var t,l,i,b,j,w,y,k,F,Y,L,R,I,P,T,D,B,A,H,q,W,U,z,G,J,$,K,et,el,ea,ei,en,ed,eo,es,er,e
1c,eu,ev,ex,em,eh,ef,ep,eg,eb,ej,ew,eZ,eN,eC,ey,ek,e_,eM,eE,eS,eF,eY,eL,eR,eI,eP,eT,eD,eB,eO,eV,eA,eH,eq,eW,eX,eU,ez,eG,eJ,e$,eK,eQ,e0,e1,e2,e4,e5,e7,e3,e8,e6,e9,te,tt,tl,ta,ti,tn,td,to,ts,tr,tc,tu,tv,tx,tm,th,tf;let{slug:tp,item:tg}=e,tb=(0,N.useRouter)(),{data:tj,isLoading:tw}=_.getVariationData(tp,tg),{data:tZ}=_.getFaqData(tp,tg),tN=(0,E.R)({lastUpdate:null==tj?void 0:null===(l=tj.data)||void 0===l?void 0:null===(t=l.data)||void 0===t?void 0:t.updated_at,...null==tj?void 0:null===(b=tj.data)||void 0===b?void 0:null===(i=b.data)||void 0===i?void 0:i.seo},null==tj?void 0:null===(w=tj.data)||void 0===w?void 0:null===(j=w.meta)||void 0===j?void 0:j.breadcrumb,null==tj?void 0:null===(y=tj.data)||void 0===y?void 0:y.data),[tC,ty]=(0,C.useState)(!1),[tk,t_]=(0,C.useState)(0),[tM,tE]=(0,C.useState)(!0),[tS,tF]=(0,C.useState)(!1),[tY,tL]=(0,C.useState)(!1),[tR,tI]=(0,C.useState)(!1),[tP,tT]=(0,C.useState)(Math.ceil((null==tj?void 0:null===(F=tj.data)||void 0===F?void 0:null===(k=F.data)||void 0===k?void 0:k.min)/Number(null==tj?void 0:null===(R=tj.data)||void 0===R?void 0:null===(L=R.data)||void 0===L?void 0:null===(Y=L.units[0])||void 0===Y?void 0:Y.base))),tD={...null==tj?void 0:null===(I=tj.data)||void 0===I?void 0:I.data,dual_prices:null==tj?void 0:null===(D=tj.data)||void 0===D?void 0:null===(T=D.data)||void 0===T?void 0:null===(P=T.product)||void 0===P?void 0:P.dual_prices},tB=(0,M.nu)(),tO=Math.ceil((null==tj?void 0:null===(A=tj.data)||void 0===A?void 0:null===(B=A.data)||void 0===B?void 0:B.min)/Number(null==tj?void 0:null===(W=tj.data)||void 0===W?void 0:null===(q=W.data)||void 0===q?void 0:null===(H=q.units[0])||void 0===H?void 0:H.base)),tV=Math.floor((null==tj?void 0:null===(z=tj.data)||void 0===z?void 0:null===(U=z.data)||void 0===U?void 0:U.max)/Number(null==tj?void 0:null===($=tj.data)||void 0===$?void 0:null===(J=$.data)||void 0===J?void 0:null===(G=J.units[0])||void 0===G?void 0:G.base)),tA=Math.floor(Number(null==tj?void 0:null===(et=tj.data)||void 0===et?void 0:null===(K=et.data)||void 0===K?void 0:K.stock)/Number(null==tj?void 0:null===(ei=tj.data)||void 0===ei?void 0:null===(ea=ei.data)||void 0===ea?void 0:null===(el=ea.units[0])||void 0===el?void 0:el.base)),[tH,tq]=(0,C.useState)(tO),[tW,tX]=(0,C.useState)(tV),[tU,tz]=(0,C.useState)(tA),tG=(0,C.useRef)([]);(0,C.useEffect)(()=>{if(tM)tE(!1);else{var e;scrollTo({top:(null==tG?void 0:null===(e=tG.current[tk])||void 0===e?void 0:e.offsetTop)-20,behavior:"smooth"})}return 0!==tk&&setTimeout(()=>{var e;null===(e=window)||void 0===e||e.addEventListener("scroll",tJ)},500),tS&&tF(!1),()=>{var e;return null===(e=window)||void 0===e?void 0:e.removeEventListener("scroll",tJ)}},[tk]),(0,C.useEffect)(()=>{var e,t,l,a,i;tT(tO),tq(Math.ceil((null==tj?void 0:null===(t=tj.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.min)/Number(null==tj?void 0:null===(i=tj.data)||void 0===i?void 0:null===(a=i.data)||void 0===a?void 0:null===(l=a.units[0])||void 0===l?void 0:l.base))),tX(tV),tz(tA)},[null==tj?void 0:null===(en=tj.data)||void 0===en?void 0:en.data]);let tJ=()=>{var e,t,l,a;(null==tG?void 0:null===(e=tG.current[0])||void 0===e?void 0:e.clientHeight)+(null==tG?void 0:null===(t=tG.current[0])||void 0===t?void 0:t.offsetTop)>(null===(a=document)||void 0===a?void 0:null===(l=a.documentElement)||void 0===l?void 0:l.scrollTop)&&(tF(!0),tE(!0))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{...tN}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center pt-14 pb-6",children:[(0,a.jsx)(o.Z,{items:null==tj?void 0:null===(eo=tj.data)||void 0===eo?void 0:null===(ed=eo.meta)||void 0===ed?void 0:ed.breadcrumb}),(0,a.jsx)("div",{className:"share md:flex justify-between hidden",children:(0,a.jsx)(u.Z,{title:"ÙÛÙ
ت "+(null==tj?void 0:null===(er=tj.data)||void 0===er?void 0:null===(es=er.data)||void 0===es?void 0:es.title),subscriptionLink:tb.asPath,children:(0,a.jsx)(s.Z,{text:"اشتراک گذارÛ",width:140,Icon:f.a,color:"transparent",className:"!text-gulf-blue/100"})})})]}),(0,a.jsxs)("div",{className:"body grid grid-cols-12 gap-6 pb-96 child:col-span-12",children:[(0,a.jsxs)("div",{className:"main md:col-span-9 order-2 md:order-1",children:[(0,a.jsx)(d.Z,{flat:!0,className:"bg-white rounded-xl mb-4 mt-6 md:hidden",children:(0,a.jsxs)(x.Z,{className:"mr-4 overflow-x-hidden",getCurrentValue:t_,setDefault:tS,animate:!0,children:[(0,a.jsx)(v.Z,{label:"Ù
شخصات"}),(0,a.jsx)(v.Z,{label:"ÙÙ
ÙØ¯Ø§Ø± تغÛÛØ±Ø§Øª"}),(0,a.jsx)(v.Z,{label:"ÙÙØ¯ ٠بررسÛ"}),(0,a.jsx)(v.Z,{label:"Ø³ÙØ§Ùات Ù
تداÙÙ"})]})}),(0,a.jsxs)("div",{className:"md:bg-white rounded-[10px] md:p-6",children:[(0,a.jsxs)("div",{className:"hidden md:inline-block w-full",children:[(0,a.jsx)(h.Z,{variant:"h1",weight:"bold",className:"text-cerulean-blue",children:"ÙÛÙ
ت ".concat(null==tj?void 0:null===(eu=tj.data)||void 0===eu?void 0:null===(ec=eu.data)||void 0===ec?void 0:ec.title)}),(0,a.jsx)(n.Z,{className:"mt-7 mb-10"})]}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-x-16",children:[(0,a.jsxs)(d.Z,{flat:!0,className:"col-span-3 md:col-span-1 md:p-0 p-4 mb-6 md:mb-0",ref:e=>tG.current[0]=e,children:[(0,a.jsxs)("div",{className:"hidden md:inline-block",children:[(0,a.jsxs)(h.Z,{weight:"bold",variant:"span",className:"text-gulf-blue/60 text-base md:text-2xl",children:["Ù
شخصات"," "]}),(0,a.jsx)(h.Z,{weight:"bold",variant:"span",className:"text-cerulean-blue mt-1.5 text-sm md:text-xl",children:null==tj?void 0:null===(ev=tj.data)||void 0===ev?void 0:ev.data.title})]}),(0,a.jsx)("div",{className:"variation-attrs md:mt-8",children:(0,a.jsx)(S,{attrs:null==tj?void 0:null===(em=tj.data)||void 0===em?void 0:null===(ex=em.data)||void 0===ex?void 0:ex.new_items})})]}),(0,a.jsx)(d.Z,{ref:e=>tG.current[1]=e,className:"md:col-span-2 col-span-3 md:p-0 p-4 flex flex-col",flat:!0,children:(0,a.jsx)(O,{title:null==tj?void 0:null===(ef=tj.data)||void 0===ef?void 0:null===(eh=ef.data)||void 0===eh?void 0:eh.title,updated_at:null==tj?void 0:null===(eg=tj.data)||void 0===eg?void 0:null===(ep=eg.data)||void 0===ep?void 0:ep.updated_at,id:null==tj?void 0:null===(ej=tj.data)||void 0===ej?void 0:null===(eb=ej.data)||void 0===eb?void 0:eb.id})})]})]}),(0,a.jsxs)(d.Z,{className:"mt-4 p-4",children:[(0,a.jsx)(h.Z,{className:"text-cerulean-blue mb-5",variant:"h3",weight:"bold",children:"دستÙâØ¨ÙØ¯Û ÙØ§Û Ù
رتبط"}),(0,a.jsx)("div",{className:"flex gap-4 flex-wrap",children:null==tj?void 0:null===(eN=tj.data)||void 0===eN?void 0:null===(eZ=eN.data)||void 0===eZ?void 0:null===(ew=eZ.related_links)||void 0===ew?void 0:e
1w.map((e,t)=>(0,a.jsx)("strong",{className:"p-2 font-bold bg-gulf-blue/15 text-gulf-blue rounded-[10px] text-2xl",children:(0,a.jsx)(Z(),{prefetch:!1,href:e.link,title:"ÙÛÙ
ت ".concat(e.name,"âââ"),children:e.name})},t))})]}),(0,a.jsxs)(d.Z,{className:"mt-6 p-6",ref:e=>tG.current[2]=e,children:[(0,a.jsx)(h.Z,{className:"text-cerulean-blue mb-5",variant:"h3",weight:"bold",children:"ÙÙØ¯ Ù Ø¨Ø±Ø±Ø³Û Ù
ØØµÙÙ"}),(0,a.jsx)("div",{children:(null==tj?void 0:null===(ey=tj.data)||void 0===ey?void 0:null===(eC=ey.data)||void 0===eC?void 0:eC.variation_description)&&(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:null==tj?void 0:null===(e_=tj.data)||void 0===e_?void 0:null===(ek=e_.data)||void 0===ek?void 0:ek.variation_description}})})]}),(0,a.jsx)(d.Z,{className:"!bg-transparent",ref:e=>tG.current[3]=e,children:(0,a.jsx)(X,{data:null!==(tf=null==tZ?void 0:null===(eM=tZ.data)||void 0===eM?void 0:eM.data)&&void 0!==tf?tf:[]})}),(0,a.jsx)(V.Z,{comments:null==tj?void 0:null===(eS=tj.data)||void 0===eS?void 0:null===(eE=eS.data)||void 0===eE?void 0:eE.comments,variationId:null==tj?void 0:null===(eY=tj.data)||void 0===eY?void 0:null===(eF=eY.data)||void 0===eF?void 0:eF.id}),(0,a.jsx)(r.Z,{variationId:null==tj?void 0:null===(eR=tj.data)||void 0===eR?void 0:null===(eL=eR.data)||void 0===eL?void 0:eL.id})]}),(0,a.jsxs)("div",{className:"sidebar md:col-span-3 order-1 md:order-2",children:[(0,a.jsx)(d.Z,{children:(0,a.jsx)(Q,{updatedAt:null==tj?void 0:null===(eP=tj.data)||void 0===eP?void 0:null===(eI=eP.data)||void 0===eI?void 0:eI.price_updated_at,rate:null==tj?void 0:null===(eD=tj.data)||void 0===eD?void 0:null===(eT=eD.data)||void 0===eT?void 0:eT.rate,name:null==tj?void 0:null===(eO=tj.data)||void 0===eO?void 0:null===(eB=eO.data)||void 0===eB?void 0:eB.title,img:null==tj?void 0:null===(eA=tj.data)||void 0===eA?void 0:null===(eV=eA.data)||void 0===eV?void 0:eV.variation_image,company:null==tj?void 0:null===(eX=tj.data)||void 0===eX?void 0:null===(eW=eX.data)||void 0===eW?void 0:null===(eq=eW.product)||void 0===eq?void 0:null===(eH=eq.company)||void 0===eH?void 0:eH.title})}),(0,a.jsxs)(d.Z,{className:"p-6 my-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(h.Z,{variant:"span",weight:"medium",className:"text-gulf-blue text-[13px] select-none md:text-xl",children:"ÙÛÙ
ت بدÙÙ ÙªÛ±Û° ارزش Ø§ÙØ²ÙدÙ"}),(null==tj?void 0:null===(ez=tj.data)||void 0===ez?void 0:null===(eU=ez.data)||void 0===eU?void 0:eU.price)?(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-cerulean-blue select-none !text-4xl",children:(1e3*Math.round((null==tj?void 0:null===(eJ=tj.data)||void 0===eJ?void 0:null===(eG=eJ.data)||void 0===eG?void 0:eG.final_price)/1.1/1e3)).toLocaleString()}),(0,a.jsx)(h.Z,{className:"text-gulf-blue/50 text-[12px] mr-0.5",variant:"span",weight:"bold",children:"Ø±ÛØ§Ù"})]}):(0,a.jsx)(h.Z,{className:"text-gulf-blue/80 text-[12px] mr-0.5",variant:"span",weight:"bold",children:"ÙØ§Ù
ÙØ¬Ùد"})]}),(null==tj?void 0:null===(e$=tj.data)||void 0===e$?void 0:e$.data.order_online_available)&&(null==tj?void 0:null===(eQ=tj.data)||void 0===eQ?void 0:null===(eK=eQ.data)||void 0===eK?void 0:eK.product.shop_status)&&!(null==tj?void 0:null===(e0=tj.data)||void 0===e0?void 0:e0.data.order_confirmation)?(0,a.jsxs)(s.Z,{Icon:p.Y,color:"success",disabled:!tP||(Number(null==tj?void 0:null===(e2=tj.data)||void 0===e2?void 0:null===(e1=e2.data)||void 0===e1?void 0:e1.stock)<(null==tj?void 0:null===(e5=tj.data)||void 0===e5?void 0:null===(e4=e5.data)||void 0===e4?void 0:e4.max)?tP>tU:tP>tW)||Number(null==tj?void 0:null===(e3=tj.data)||void 0===e3?void 0:null===(e7=e3.data)||void 0===e7?void 0:e7.stock)<(null==tj?void 0:null===(e6=tj.data)||void 0===e6?void 0:null===(e8=e6.data)||void 0===e8?void 0:e8.min)||tP<tH,block:!0,className:"mt-6",onClick:()=>tI(!0),children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-[14px] select-none",children:"Ø®Ø±ÛØ¯"}),(0,a.jsxs)(h.Z,{variant:"span",className:(0,g.Z)("text-[12px]","text-white/80","mr-1","select-none",{"text-blue-500":!tw}),children:["(",null==tj?void 0:null===(te=tj.data)||void 0===te?void 0:null===(e9=te.data)||void 0===e9?void 0:e9.title,")"]})]}):(0,a.jsxs)(s.Z,{Icon:p.Y,color:"yellow",disabled:!(null==tj?void 0:null===(tt=tj.data)||void 0===tt?void 0:tt.data.order_confirmation),block:!0,className:"mt-6",onClick:()=>tL(!0),children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-[14px] select-none",children:"Ø®Ø±ÛØ¯"}),(0,a.jsxs)(h.Z,{variant:"span",className:(0,g.Z)("text-[12px]","text-white/80","mr-1","select-none",{"text-blue-500":!tw}),children:["(",null==tj?void 0:null===(ta=tj.data)||void 0===ta?void 0:null===(tl=ta.data)||void 0===tl?void 0:tl.title,")"]})]})]}),(0,a.jsxs)(d.Z,{className:"p-6 flex justify-between",children:[(0,a.jsx)(h.Z,{variant:"span",weight:"bold",className:"text-gulf-blue select-none text-sm md:text-xl",children:"Ø§ØØªØ³Ø§Ø¨ ØªÙØ±ÛØ¨Û ØÙ
ÙÙÙÙÙ Ù ÙÙÙÙÙÙÙÙÙ"}),(0,a.jsx)(s.Z,{text:"کراÛ٠بار",Icon:p.Y,textVariant:"p",color:"yellow",block:!0,className:"select-none",onClick:()=>{tB?ty(!0):tb.push("/auth")}})]})]})]}),tY&&(0,a.jsx)(ee,{showModal:tY,data:tD,productName:null==tj?void 0:null===(td=tj.data)||void 0===td?void 0:null===(tn=td.data)||void 0===tn?void 0:null===(ti=tn.product)||void 0===ti?void 0:ti.name,attrs:null==tj?void 0:null===(ts=tj.data)||void 0===ts?void 0:null===(to=ts.data)||void 0===to?void 0:to.new_items,closeOnlineOrderModal:()=>{tL(!1)}}),tR&&(0,a.jsx)(ee,{onlineOrder:!0,showModal:tR,data:tD,productName:null==tj?void 0:null===(tu=tj.data)||void 0===tu?void 0:null===(tc=tu.data)||void 0===tc?void 0:null===(tr=tc.product)||void 0===tr?void 0:tr.name,attrs:null==tj?void 0:null===(tx=tj.data)||void 0===tx?void 0:null===(tv=tx.data)||void 0===tv?void 0:tv.new_items,closeOnlineOrderModal:()=>{tI(!1)}}),tC&&(0,a.jsx)(m.default,{id:{variation_id:null==tj?void 0:null===(th=tj.data)||void 0===th?void 0:null===(tm=th.data)||void 0===tm?void 0:tm.id},isTransportationFareModalVisible:tC,setIsTransportationFareModalVisible:ty})]})]})}function el(e){let{fallback:t,...l}=e;return(0,a.jsx)(y.J$,{value:{fallback:t,revalidateOnFocus:!1},children:(0,a.jsx)(et,{...l,fallback:t})})}el.getLayout=e=>(0,a.jsx)(i.Z,{wrapperClassName:"bg-gray",children:e});var ea=!0,ei=el},42139:function(e,t,l){"use strict";var a=l(5068),i=l(75362),n=l(39303);class d{}d.endpoints={variationPrice:(e,t,l)=>"/products/variations/prices/".concat(e,"?source=").concat(t,"&destination=").concat(l),productPrice:(e,t,l)=>"/categories/".concat(e,"/price-chart?start_date=").concat(t,"&end_date=").concat(l)},d.getVariationPrice=function(e,t,l){let i=!(arguments.length>3)||void 0===arguments[3]||arguments[3],o=async()=>await n.Z.get(d.endpoints.variationPrice(e,t,l));return(0,a.ZP)(i&&e&&t&&l?d.endpoints.variationPrice(e,t,l):null,o,{revalidateOnMount:!0,revalidateIfStale:!0,dedupingInterval:10})}
1,d.getProductPrice=(e,t,l)=>{let a=async()=>{let{data:a}=await n.Z.get(d.endpoints.productPrice(e,t,l));return a};return(0,i.Z)(e&&t&&l?d.endpoints.productPrice(e,t,l):null,a)},t.Z=d},28858:function(e,t,l){"use strict";l.d(t,{R:function(){return a}});let a=function(e){var t,l,a,i,n,d,o,s;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2?arguments[2]:void 0,u=null===(t=r[(null==r?void 0:r.length)-1])||void 0===t?void 0:t.url,v={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:null==r?void 0:r.map((e,t)=>({"@type":"ListItem",position:t+1,name:null==e?void 0:e.name,item:null==e?void 0:e.url}))},x=c&&{"@context":"https://schema.org","@type":"Product",name:null==c?void 0:c.title,image:null!==(s=null==c?void 0:c.variation_image)&&void 0!==s?s:"",description:null==c?void 0:null===(n=c.seo)||void 0===n?void 0:n.description,sku:c.id,brand:{"@type":"Brand",name:null==c?void 0:null===(o=c.product)||void 0===o?void 0:null===(d=o.company)||void 0===d?void 0:d.title},offers:{"@type":"Offer",url:u,priceCurrency:"IRR",price:c.final_price,itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{"@type":"Organization",name:"اصÙÙØ§Ù Ø¢ÙÙ"}}},m={title:e.title,indexed:null==e?void 0:e.indexed,description:null==e?void 0:e.description,canonical:null!==(i=null==e?void 0:e.canonical)&&void 0!==i?i:u,schemas:[]};return null===(l=m.schemas)||void 0===l||l.push(v),x&&(null===(a=m.schemas)||void 0===a||a.push(x)),{...m}}}},function(e){e.O(0,[1664,2950,7536,2446,7884,2416,550,4691,7079,6671,8316,7677,2888,9774,179],function(){return e(e.s=17780)}),_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.