PageSourceSearch

https://www.baladyfarms.co/_next/static/chunks/pages/shop/products/[handle]-5956c11e91e63b5b.js

js baladyfarms.co collected 2026-09-29 00:05:19 UTC 21,199 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[344],{1432:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(6029),a=r(80817),i=r(38169),n=r(52482);let s=(0,i.r)(e=>({badge:{height:"auto",padding:"5px 10px",fontWeight:700,fontSize:12,["@media (max-width: ".concat(e.breakpoints.sm,")")]:{fontSize:10,fontWeight:600}}})),l=()=>{let{t:e}=(0,a.Bd)("common"),{classes:t}=s();return(0,o.jsx)(n.E,{className:t.badge,styles:e=>({root:{color:e.colors["btn-secondary-label"][0],backgroundColor:e.colors["btn-secondary"][0],borderRadius:e.defaultRadius}}),variant:"filled",children:e("sold-out")})}},22471:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var o=r(6029),a=r(38169),i=r(52482);let n=(0,a.r)(e=>({ribbon:{height:"auto",padding:"5px 10px",fontWeight:700,fontSize:12,["@media (max-width: ".concat(e.breakpoints.sm,")")]:{fontSize:10,fontWeight:600}}})),s=e=>{let{ribbon:t}=e,{classes:r}=n();return(0,o.jsx)(i.E,{className:r.ribbon,styles:e=>({root:{color:e.colors["btn-secondary"][0],backgroundColor:e.colors["btn-secondary-label"][0]}}),variant:"filled",children:t})}},42356:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var o=r(6029),a=r(55729),i=r(81278),n=r(80817),s=r(17627),l=r(6386),c=r(86627),d=r(19051),u=r(2690),p=r(98144),m=r(14907),h=r(92887);let g=e=>{let{config:t}=e,r=new m.Y({});return(0,h.n)(e=>{let{id:t,email:o}=e;return r.notifyMe(t,o)})},x=e=>{let{isQuickView:t,isFeaturedProduct:r,company:m,product:h,productPricingDetails:x,closeQuickView:y,setMissingOptions:j}=e,f=(0,i.useRouter)(),{t:b}=(0,n.Bd)(["productDetails"]),{isMobile:v}=(0,l.al)(),{purchaseId:w}=(0,l.gi)(),{isOnWishlist:C,toggleWishlist:S}=(0,l.nU)(),[k,_]=(0,a.useState)(h.minQuantity),[I,E]=(0,a.useState)(null),[T,P]=(0,a.useState)(x),[z,A]=(0,a.useState)(null),[N,D]=(0,a.useState)(null),[B,O]=(0,a.useState)(null),{data:F}=(0,c.N1)({id:w,config:{router:f}}),{data:R}=(0,c.zU)({router:f}),{mutateAsync:M,isLoading:W}=(0,d.fU)({config:{router:f}}),{mutate:L,isLoading:U,context:G}=(0,d.lN)({config:{router:f}}),{mutate:q,isLoading:V,context:Q}=(0,d.SB)({config:{router:f}});(0,a.useEffect)(()=>{!t&&!r&&m&&h&&setTimeout(()=>{(0,p.ZS)({currency:m.paymentCurrency,product:h,variantId:f.query.variantId,company:m,fbclid:f.query.fbclid})},5e3)},[m,t,r,h]),(0,a.useEffect)(()=>{h.defaultVariant&&(_(h.defaultVariant.minQuantity),O(h.defaultVariant))},[h]);let H=(0,a.useCallback)(()=>{let e=(0,u.IX)(h.variants,Object.values(I));e&&(_(e.minQuantity),O(e))},[I,h]);(0,a.useEffect)(()=>{I&&H()},[I,H]);let X=(0,a.useMemo)(()=>!!B&&(0,u.mL)({company:m,purchase:F,selectedVariant:B,quantity:k}),[m,F,k,B]),Y=()=>{A(null),D(null)},Z=async()=>{let e={},t=[];return Object.values(N).forEach(e=>t.push(M({extraId:e.extraId,file:e.value}))),(await Promise.all(t)).forEach(t=>{let r=N[t.extraId];e={...e,[r.extraId]:{...r,value:t.data.id}}}),e},$=e=>{let{uploadedExtrasFiles:t,redirectToCheckout:r}=e,o=(0,u.A1)({productId:h.id,variant:B,quantity:k,extras:{...z,...t},pricingDetails:T,addToCurrentQuantity:!!w});w?q({purchaseId:w,purchaseProduct:o,productName:h.name,redirectToCheckout:r,onSuccess:()=>{y&&y(),Y()}}):L({purchaseProduct:o,productName:h.name,redirectToCheckout:r,onSuccess:()=>{y&&y(),Y()}})},J=async e=>{let{redirectToCheckout:t}=e,r=N&&Object.keys(N).length,o=(0,u.$n)(null==h?void 0:h.prodExtras,{...z,...N}),a=(0,u.dP)(h.pricedBy,T);if(h&&B&&o&&a)if(r)try{let e=await Z();$({uploadedExtrasFiles:e,redirectToCheckout:t})}catch(e){}else $({redirectToCheckout:t});else{let e=Object.keys(I||{}),t=h.productOptions.filter(t=>!e.includes(String(t.id))),r=(0,u._O)(null==h?void 0:h.prodExtras,{...z,...N});j([...t.map(e=>e.name),...r.map(e=>e.name)])}},K=()=>{let e=!1,t=null==F?void 0:F.purchaseProducts.filter(e=>e.variant.id===(null==B?void 0:B.id)),r=z?Object.values(z).flat(1):null;if(r&&(null==t?void 0:t.length))for(let o of t){let t=o.extraOptionAnswers.map(e=>{let{extraId:t,extraOptionId:r,value:o}=e;return{extraId:t,extraOptionId:r,value:o}});if(s.a(r)(t)){e=!0;break}}else(null==t?void 0:t.length)&&(e=!0);return e},{mutate:ee,isLoading:et,isSuccess:er}=g({config:{router:f}}),eo=async(e,t)=>{ee({id:e,email:t})};return(0,o.jsx)(u.e2,{isQuickView:t,isFeaturedProduct:r,company:m,product:h,selectedVariant:B,povs:I,extras:z,extrasFiles:N,quantity:k,pricingDetails:T,isLessThanMOT:X,isAddToCartDisabled:W,isAddToCartLoading:w?!(null==Q?void 0:Q.isCheckoutMode)&&V:!(null==G?void 0:G.isCheckoutMode)&&U,isBuyNowLoading:w?(null==Q?void 0:Q.isCheckoutMode)&&V:(null==G?void 0:G.isCheckoutMode)&&U,isMobile:v,isNotifyMeLoading:et,isNotifyMeSuccessful:er,customLabels:(null==R?void 0:R.labels)||{},saleBadgeType:(null==R?void 0:R.saleBadgeType)||"text",isOnWishlist:C,toggleWishlist:e=>{let{id:t}=e;return S({id:t,product:h,company:m})},onQuantityChange:_,onPricingDetailsChange:P,onOptionValueChange:(e,t)=>
1E({...I,[e]:t}),onExtraChange:(e,t)=>A({...z,[e]:t}),isUploadFileLoading:W,onExtrasFileChange:D,addToCart:J,buyItNow:()=>{K()?f.push("/shop/checkout"):J({redirectToCheckout:!0})},notifyMe:eo,t:b})}},48833:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/products/[handle]",function(){return r(96256)}])},55228:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var o=r(6029),a=r(54270),i=r(83751),n=r(6058),s=r(6386);let l=e=>{let{activePage:t,totalPages:r,hideDivider:l,onActivePageChange:c}=e,{isMobile:d}=(0,s.al)();return(0,o.jsxs)(a.a,{children:[l?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(i.c,{my:30}),(0,o.jsx)(a.a,{children:(0,o.jsx)(n.d,{size:d?"sm":"lg",position:"right",value:t,total:r,onChange:c,getControlProps:e=>({"aria-label":"Go to the ".concat(e," page")})})})]})}},57667:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var o=r(6029),a=r(80817),i=r(94822),n=r(37948),s=r(18255),l=r(6386);let c=e=>{let{onClose:t,missingOptions:r}=e,{t:c}=(0,a.Bd)("productDetails"),{isMobile:d}=(0,l.al)();return(0,o.jsx)(i.a,{centered:!0,title:(0,o.jsx)(n.E,{size:"lg",weight:500,color:"body-text",children:c("missing-options")}),styles:e=>({header:{backgroundColor:e.colors["page-bg"][0]},content:{minWidth:d?"100%":"50% !important",backgroundColor:e.colors["page-bg"][0]}}),zIndex:2e3,opened:!!r,onClose:t,children:(0,o.jsx)(s.B,{mt:"md",sx:{textAlign:"start"},children:null==r?void 0:r.map(e=>(0,o.jsx)(s.B.Item,{children:e},e))})})}},96256:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>et,default:()=>er});var o=r(6029),a=r(55729),i=r(81278),n=r(54270),s=r(26922),l=r(95669),c=r.n(l);let d=e=>{let{product:t,company:r}=e,a=(0,i.useRouter)(),{name:n,strippedDescription:l,thumbUrl:d,priceCents:u,discountedPriceCents:p,isOnSale:m,vendor:h,isTracked:g,quantity:x,id:y,sku:j,imagesUrls:f,googleProductCategory:b}=t,v=u/100,w=p/100,C=m?w:v;return(0,o.jsxs)(c(),{children:[(0,o.jsx)("link",{rel:"canonical",href:(0,s.nv)(r,a.asPath)},"canonical"),(0,o.jsx)("title",{children:"".concat(n," | ").concat(r.name)},"title"),(0,o.jsx)("meta",{name:"description",content:l||n},"description"),(0,o.jsx)("meta",{property:"og:type",content:"product"},"og:type"),(0,o.jsx)("meta",{property:"og:title",content:n},"og:title"),(0,o.jsx)("meta",{property:"og:description",content:l||n},"og:description"),(0,o.jsx)("meta",{property:"og:url",content:(0,s.nv)(r,a.asPath)},"og:url"),(0,o.jsx)("meta",{property:"og:image",content:d},"og:image"),(0,o.jsx)("meta",{property:"og:locale",content:a.locale},"og:locale"),(0,o.jsx)("meta",{property:"og:image:alt",content:n},"og:image:alt"),(0,o.jsx)("meta",{property:"og:price:amount",content:v.toFixed(2)}),(0,o.jsx)("meta",{property:"og:price:currency",content:r.paymentCurrency||"EGP"}),(0,o.jsx)("meta",{property:"product:google_product_category",content:null==b?void 0:b.toString()}),(0,o.jsx)("meta",{property:"product:brand",content:h||r.name}),(0,o.jsx)("meta",{property:"product:availability",content:g?x>0?"in stock":"out of stock":"available for order"}),(0,o.jsx)("meta",{property:"product:condition",content:"new"}),(0,o.jsx)("meta",{property:"product:catalog_id",content:y.toString()}),(0,o.jsx)("meta",{property:"product:price:amount",content:v.toFixed(2)}),(0,o.jsx)("meta",{property:"product:price:currency",content:r.paymentCurrency||"EGP"}),m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{property:"product:sale_price:amount",content:w.toFixed(2)}),(0,o.jsx)("meta",{property:"product:sale_price:currency",content:r.paymentCurrency||"EGP"})]}),(0,o.jsx)("meta",{property:"product:retailer_item_id",content:y.toString()}),(0,o.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org/","@type":"Product",sku:j,image:null==f?void 0:f.map(e=>e.urls[0]),name:n,description:l,brand:{"@type":"Brand",name:r.name},offers:{"@type":"Offer",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/".concat(x>0?"InStock":"OutOfStock"," "),price:C.toFixed(2),priceCurrency:r.paymentCurrency||"EGP"}})}})]})};var u=r(71384),p=r(95114),m=r(42356),h=r(80817),g=r(38169),x=r(83751),y=r(87462),j=r(13743),f=r(82203),b=r.n(f),v=r(8588),w=r.n(v),C=r(61946),S=r(74536),k=r(13445),_=r(99690),I=r(37948),E=r(82742),T=r(1432),P=r(22471),z=r(6386),A=r(19051),N=r(2690),D=r(98
1144);let B=(0,g.r)(()=>({thumbImg:{transition:"all .4s ease-in-out","&:hover":{transform:"scale(1.2)"}},opacity0:{opacity:0},opacity1:{opacity:1}})),O=e=>{var t,r;let{product:s,company:l,imageRatio:c,imageFit:d,saleBadgeType:u,priceTemplate:p,priceDecimalPoints:m,hideDiscountTag:g,showSecondaryImgOnHover:x,useShopAsCatalogue:y,hasWishlist:j,hasAddToCart:f}=e,v=(0,C.xd)(),O=(0,i.useRouter)(),{t:F}=(0,h.Bd)(["productDetails","common"]),{cx:R,classes:M}=B(),{isMobile:W}=(0,z.al)(),{hovered:L,ref:U}=(0,E.M)(),{isOnWishlist:G,toggleWishlist:q}=(0,z.nU)(),{purchaseId:V}=(0,z.gi)(),[Q,H]=(0,a.useState)(!1),{mutate:X,isLoading:Y,context:Z}=(0,A.lN)({config:{router:O}}),{mutate:$,isLoading:J,context:K}=(0,A.SB)({config:{router:O}}),ee=(0,N.bZ)(s),et=(0,N.X_)(s),er=(null==(t=s.thumbUrls)?void 0:t[0])||s.thumbUrl,eo=null==(r=s.secondaryThumbUrls)?void 0:r[0],ea=c||"square",ei=d||"contain",en="square"===ea?"1":"portrait"===ea?"3 / 4":"auto",es=()=>{if(s.variants.length||s.hasExtras)O.push("/shop/products/".concat(s.handle));else{let e=(0,N.A1)({productId:s.id,variant:s.defaultVariant,quantity:s.minQuantity||1,addToCurrentQuantity:!!V});V?$({purchaseId:V,purchaseProduct:e,productName:s.name}):X({purchaseProduct:e,productName:s.name})}};return(0,o.jsxs)(S.Z,{p:5,bg:"transparent",sx:{cursor:"pointer"},onClick:()=>(0,D.ow)({currency:(null==l?void 0:l.paymentCurrency)||"EGP",product:s}),onMouseEnter:()=>!ee&&!W&&H(!0),onMouseLeave:()=>H(!1),children:[y||f&&W||!j?null:(0,o.jsx)(n.a,{m:5,pos:"absolute",sx:{zIndex:1,right:0},children:(0,o.jsx)(N.oC,{id:s.id,withinCard:!0,isOnWishlist:G,toggleWishlist:q,product:s,company:l})}),(0,o.jsxs)(n.a,{pos:"relative",children:[(0,o.jsx)(b(),{href:"/shop/products/".concat(s.handle),passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(n.a,{component:"a",children:(0,o.jsxs)(n.a,{children:[(0,o.jsx)(n.a,{ref:U,sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"auto",position:"relative",overflow:"hidden",opacity:ee?.7:1,backgroundColor:er?"transparent":v.colors["semi-transparent-gray"][0]},children:er?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w(),{width:0,height:0,src:er,loader:(0,N.R2)({urls:s.thumbUrls}),sizes:"(max-width: 36em) 50vw, (max-width: 75em) 33vw, 25vw",alt:"".concat(s.name," image"),className:R(M.thumbImg,M.opacity1,{[M.opacity0]:L&&eo&&x}),style:{width:"100%",height:"auto",objectFit:ei,aspectRatio:en,transition:"opacity 0.3s ease-in-out"}}),x&&eo?(0,o.jsx)(w(),{src:eo,alt:"".concat(s.name," hover image"),fill:!0,className:R(M.thumbImg,M.opacity0,{[M.opacity1]:L}),sizes:"(max-width: 36em) 50vw, (max-width: 75em) 33vw, 25vw",loader:(0,N.R2)({urls:s.secondaryThumbUrls}),style:{objectFit:ei,position:"absolute",top:0,left:0,transition:"opacity 0.3s ease-in-out"}}):null]}):(0,o.jsx)(N.RO,{aspectRatio:en,priority:!1})}
1),(0,o.jsxs)(k.B,{spacing:5,pos:"absolute",sx:{top:5,left:5},children:[y?null:ee?(0,o.jsx)(T.A,{}):!g&&et.salePrice?(0,o.jsx)(N.kg,{salePercent:"percent"===u?et.percent:null,t:F}):null,s.ribbonLabel?(0,o.jsx)(P.A,{ribbon:s.ribbonLabel}):null]})]})})}),!y&&Q&&(0,o.jsx)(N.Ng,{t:F,product:s,isRelatedProduct:!0,hasAddToCart:f,isAddToCartLoading:V?!(null==K?void 0:K.isCheckoutMode)&&J:!(null==Z?void 0:Z.isCheckoutMode)&&Y,onAddToCart:es}),!y&&f&&W&&(0,o.jsx)(N.JN,{product:s,isProductSoldOut:ee,isOnWishlist:G,toggleWishlist:q,handleAddToCart:es,company:l})]}),(0,o.jsx)(_.Y,{position:"apart",mt:10,children:(0,o.jsx)(b(),{href:"/shop/products/".concat(s.handle),passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(I.E,{size:"product-name-fsize",weight:500,color:"headings-and-links",component:"a",children:s.name})})}),(0,o.jsx)(N.NM,{currency:null==l?void 0:l.paymentCurrency,price:et,priceTemplate:p,priceDecimalPoints:m})]})};var F=r(86627);let R=(0,g.r)(e=>({slide:{cursor:"pointer",minWidth:185,maxWidth:305},activeSlide:{border:"2px solid ".concat(e.colors["borders-and-lines"][0])},container:{display:"flex",flexDirection:"column",alignItems:"center"}})),M=e=>{let{priceTemplate:t,priceDecimalPoints:r,imageRatio:a,imageFit:s,saleBadgeType:l,relatedProducts:c,currency:d,hideDiscountTag:u,showSecondaryImgOnHover:p,useShopAsCatalogue:m,hasWishlist:g,hasAddToCart:f}=e,{classes:b}=R(),{t:v}=(0,h.Bd)("productDetails"),{isMobile:w}=(0,z.al)(),C=(0,i.useRouter)(),{data:S}=(0,F.P0)({config:{router:C}});return(0,o.jsxs)(n.a,{children:[(0,o.jsx)(x.c,{my:w?20:30}),(0,o.jsx)(n.a,{mb:w?20:30,children:(0,o.jsx)(y.h,{order:w?3:2,color:"headings-and-links",children:v("related-products")})}),(0,o.jsx)(j.F,{slideSize:w?"40%":"25%",mih:w?310:520,align:"start",slideGap:w?10:15,withControls:!w,withIndicators:w,controlSize:25,controlsOffset:5,dragFree:!w,draggable:!0,slidesToScroll:w?1:5,styles:e=>({root:{width:"100%"},indicator:{width:10,height:10,borderRadius:"50%",backgroundColor:e.colors["btn-primary"][0],transition:"backgroundColor 250ms ease","&[data-active]":{backgroundColor:e.colors["btn-primary-label"][0]}},indicators:{bottom:-10}
1,control:{"&[data-inactive]":{opacity:0,cursor:"default"}}}),children:null==c?void 0:c.map(e=>{let{product:i}=e;return(0,o.jsx)(j.F.Slide,{className:b.slide,children:(0,o.jsx)(O,{product:i,priceTemplate:t,priceDecimalPoints:r,company:S,imageFit:s,imageRatio:a,saleBadgeType:l||"text",hideDiscountTag:u,showSecondaryImgOnHover:p,useShopAsCatalogue:m,hasWishlist:g,hasAddToCart:f})},i.id)})})]})};var W=r(92096),L=r(93944),U=r(88728),G=r(70659),q=r(84335);let V=(0,g.r)(e=>({container:{display:"flex",flexDirection:"row",alignItems:"flex-start",width:"100%"}})),Q=e=>new Date(e).toLocaleDateString("en-US",{day:"2-digit",month:"short",year:"numeric"}),H=e=>{let{review:t}=e,{classes:r}=V(),{isMobile:a}=(0,z.al)();return(0,o.jsxs)(n.a,{children:[(0,o.jsxs)(_.Y,{className:r.container,children:[(0,o.jsx)(U.e,{w:40,h:40,alt:t.reviewerName,radius:"xl",color:(0,N.oU)(t.reviewerName),variant:"filled",children:(0,N.IM)(t.reviewerName)}),(0,o.jsxs)(G.s,{direction:"column",sx:{flex:1},children:[(0,o.jsxs)(G.s,{direction:"row",justify:"space-between",sx:{flex:1},children:[(0,o.jsx)(I.E,{color:"headings-and-links",size:a?16:18,weight:500,mb:10,children:t.reviewerName}),(0,o.jsx)(I.E,{color:"body-text",size:a?16:18,weight:500,children:Q(t.createdAt)})]}),(0,o.jsx)(L.G,{value:t.rating,size:"md",color:"#D47B21",sx:{justifySelf:"center"},readOnly:!0}),(0,o.jsx)(I.E,{color:"body-text",size:a?16:18,weight:500,mb:7,children:t.comment})]})]}),(0,o.jsx)(x.c,{my:a?20:30})]})};var X=r(66179),Y=r(74738);let Z=e=>{let{customer:t,productId:r}=e,a=(0,i.useRouter)(),{t:s}=(0,h.Bd)("productDetails"),{isMobile:l}=(0,z.al)(),c=(0,C.xd)(),{mutate:d,isLoading:u}=(0,A.mW)({config:{router:a}}),p=(0,Y.m)({initialValues:{rating:0,comment:""},validate:{rating:e=>0===e?s("rating-required"):null}}),m=async e=>{try{d({productId:r,rating:e.rating,comment:e.comment,customerId:t.id}),p.reset()}catch(e){}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(I.E,{size:l?16:18,weight:500,mb:10,children:[s("hi")," ",null==t?void 0:t.name]}),(0,o.jsxs)("form",{onSubmit:p.onSubmit(m),children:[(0,o.jsx)(L.G,{value:p.values.rating,onChange:e=>p.setFieldValue("rating",e),size:"lg",color:"#D47B21",sx:{justifySelf:"center"}}),p.errors.rating&&(0,o.jsx)(I.E,{color:"red",children:p.errors.rating}),(0,o.jsx)(X.T,{value:p.values.comment,onChange:e=>p.setFieldValue("comment",e.currentTarget.value),placeholder:s("comment-placeholder"),my:7,minRows:l?6:3,radius:"md",error:p.errors.comment}),(0,o.jsx)(n.a,{sx:{textDecoration:"none"},children:(0,o.jsx)(q.$,{size:"md",variant:"outline",sx:{flex:1,color:"".concat(c.colors["btn-secondary-label"][0]," !important"),backgroundColor:"".concat(c.colors["btn-secondary"][0]," !important"),borderColor:"".concat(c.colors["btn-secondary-border"][0]," !important"),width:l?"100%":"200px",fontSize:l?"14px":"18px"},fullWidth:l,styles:{label:{overflow:"visible"}},loading:u,type:"submit",children:s("send")})})]})]})};var $=r(55228);let J=(0,g.r)(e=>({container:{display:"flex",flexDirection:"row",alignItems:"flex-start",width:"100%"}})),K=e=>{let{productId:t,totalReviews:r,averageRating:s}=e,l=(0,i.useRouter)(),{classes:c}=J(),{t:d}=(0,h.Bd)("productDetails"),{isMobile:u}=(0,z.al)(),{isSignedIn:p,customer:m}=(0,z.eR)(),g=(0,C.xd)(),[j,f]=(0,a.useState)(1),{data:v,isLoading:w}=(0,F.v1)({productId:t,pagination:{page:j,limit:10},config:{router:l}});return(0,o.jsxs)(n.a,{children:[(0,o.jsx)(x.c,{my:u?20:30}),(0,o.jsx)(n.a,{mb:u?20:30,children:(0,o.jsx)(y.h,{order:u?3:2,color:"headings-and-links",children:d("product-reviews")})}),(0,o.jsx)(n.a,{children:(0,o.jsxs)(W.x,{gutter:20,children:[(0,o.jsx)(W.x.Col,{span:u?12:3,children:r>
10?(0,o.jsxs)(n.a,{sx:{backgroundColor:"#EDEFF3",padding:"30px 64px",display:"grid",rowGap:"10px",justifyContent:"center"},children:[(0,o.jsxs)(I.E,{size:40,sx:{textAlign:"center",fontWeight:900,color:"#D47B21"},children:[s,"/5"]}),(0,o.jsx)(L.G,{value:s,size:"lg",color:"#D47B21",sx:{justifySelf:"center"},readOnly:!0}),(0,o.jsxs)(I.E,{color:"body-text",size:u?18:14,sx:{textAlign:"center",fontWeight:700},children:[r," ",d("verified-ratings")]})]}):(0,o.jsx)(n.a,{sx:{padding:"30px 64px",display:"grid",rowGap:"10px",justifyContent:"center"},children:(0,o.jsx)(I.E,{color:"body-text",size:u?18:14,sx:{fontWeight:600,fontSize:20,textAlign:"center"},children:d("be-the-first-to-review")})})}),(0,o.jsxs)(W.x.Col,{span:u?12:9,children:[(0,o.jsxs)(_.Y,{className:c.container,children:[(0,o.jsx)(U.e,{w:40,h:40,alt:null==m?void 0:m.name,radius:"xl",color:(0,N.oU)(m?m.name:""),variant:"filled",children:(0,N.IM)(m?m.name:"")}),(0,o.jsx)(G.s,{direction:"column",sx:{flex:1},children:m&&p?(0,o.jsx)(Z,{customer:m,productId:t}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I.E,{color:"headings-and-links",size:u?16:18,weight:500,mb:10,children:d("dear-customer")}),(0,o.jsx)(I.E,{color:"body-text",size:u?14:16,weight:300,mb:7,children:d("login-to-review")}),(0,o.jsx)(b(),{href:"/sign-in",passHref:!0,legacyBehavior:!0,children:(0,o.jsx)(n.a,{sx:{textDecoration:"none"},children:(0,o.jsx)(q.$,{size:"md",variant:"outline",sx:{flex:1,color:"".concat(g.colors["btn-secondary-label"][0]," !important"),backgroundColor:"".concat(g.colors["btn-secondary"][0]," !important"),borderColor:"".concat(g.colors["btn-secondary-border"][0]," !important"),width:u?"100%":"200px",fontSize:u?"14px":"18px"},fullWidth:u,styles:{label:{overflow:"visible"}},children:d("log-in")})})})]})})]}),(0,o.jsx)(x.c,{my:u?20:30}),v&&(0,o.jsxs)(o.Fragment,{children:[v.map(e=>(0,o.jsx)(H,{review:e},e.id)),v.length>10&&(0,o.jsx)($.A,{hideDivider:!0,totalPages:Math.ceil(r/10)||0,activePage:j,onActivePageChange:f})]})]})]})})]})};var ee=r(57667),et=!0;let er=()=>{var e;let t=(0,i.useRouter)(),{handle:r}=t.query,{isMobile:s}=(0,z.al)(),[l,c]=(0,a.useState)(),{data:h}=(0,F.P0)({config:{router:t}}),{data:g}=(0,F.zU)({router:t}),{data:x}=(0,F.To)({handle:String(r),includeRelatedProducts:!0,showReviewsDetails:!0,enableAddToCart:(0,N.jI)(h,"enable_quick_add_to_cart"),config:{router:t}});return h&&g?(0,o.jsxs)(u.A,{hideBreadcrumb:!0,company:h,theme:g,children:[x?(0,o.jsx)(d,{product:x,company:h}):null,x?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.A,{activeItem:x.name}),(0,o.jsxs)(n.a,{pb:50*!!s,children:[(0,o.jsx)(m.A,{company:h,product:x,productPricingDetails:(0,N.ik)(x.pricedBy),setMissingOptions:c},x.id),(null==(e=x.relatedProducts)?void 0:e.length)?(0,o.jsx)(M,{priceTemplate:h.priceTemplate,priceDecimalPoints:h.priceDecimalPoints,imageFit:g.imageFit,imageRatio:g.imageRatio,saleBadgeType:g.saleBadgeType,relatedProducts:x.relatedProducts,currency:h.paymentCurrency,hideDiscountTag:(0,N.jI)(h,"hide_discount_tag"),showSecondaryImgOnHover:(0,N.jI)(h,"show_secondary_img_on_hover"),useShopAsCatalogue:(0,N.jI)(h,"use_website_as_catalogue"),hasWishlist:(0,N.jI)(h,"wishlist"),hasAddToCart:(0,N.jI)(h,"enable_quick_add_to_cart")}):null,!(0,N.jI)(h,"enable_product_reviews")||x.hideReviews?null:(0,o.jsx)(K,{productId:x.id,totalReviews:x.totalReviews,averageRating:x.averageRating})]})]}):null,(0,o.jsx)(ee.A,{missingOptions:l,onClose:()=>c(void 0)})]}):null}}},e=>{var t=t=>e(e.s=t);e.O(0,[480,58,143,384,636,593,792],()=>t(48833)),_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.