PageSourceSearch

https://gulfamateurs.com/_next/static/chunks/4566-46f63b95387968e1.js

js gulfamateurs.com collected 2026-09-24 12:56:36 UTC 39,942 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[823,4566],{636:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var s=i(95155),a=i(16664),r=i(36039),l=i(50442),n=i(63647),d=i(31352),c=i(2500),o=i(63191);let u=e=>{let t=(0,o.useGetCompanyQuery)(),{auto_select_first_child_in_show_product:i}=t?.data?.result?.theme?.components?.product??{},u=e.data,m=(0,a.V)(u),{currentProd:h}=m,g=(0,r.a)(),p=g?"-mobile":"";return(0,s.jsxs)(s.Fragment,{children:[g&&(0,s.jsx)(n.A,{startLabel:e.configurations.title}),(0,s.jsx)("div",{className:`consutation${p}`,style:g?{}:{backgroundSize:"cover",backgroundImage:`url('${e.configurations.background_image}')`,backgroundRepeat:"no-repeat, no-repeat",backgroundPosition:"center center"},children:(0,s.jsxs)("div",{className:"consult-details",children:[!g&&(0,s.jsx)("div",{className:"consult-header",children:e.configurations.title}),(0,s.jsxs)("div",{className:"consult-section",children:[u?.attributes_builder?.length>0&&(0,s.jsx)(d.default,{product:u,setSelectedChildIndex:m.setSelectedChildIndex,autoSelectFirstChild:i}),h?.addons_builder?.length>0&&(0,s.jsx)(c.A,{addOnBiulder:h.addons_builder,state:m.selectedAddOns,setState:m.handleSelectedAddOnsChanged}),!!h.description||!!u.description&&(0,s.jsx)("div",{className:"consult-section-body",children:h.description??u.description})]}),(0,s.jsx)(l.default,{productState:m,product:u})]})})]})}},6053:(e,t,i)=>{i.d(t,{Y:()=>d});var s=i(12115),a=i(95555),r=i(61197),l=i(59677),n=i(45927);let d=()=>{let e=(0,a.Xr)(r.D);(0,s.useEffect)(()=>{(0,n.WW)()&&(e(l.Ut),(0,n.dZ)())},[e])}},6250:(e,t,i)=>{i.d(t,{B:()=>a});var s=i(12115);let a=e=>{let[t,i]=(0,s.useState)(!1),[a,r]=(0,s.useState)(null),l=(0,s.useCallback)(e=>{r(e)},[]),n=e?.root,d=e?.rootMargin,c=e?.threshold,o=Array.isArray(c)?c.join(","):c;return(0,s.useEffect)(()=>{if(!a)return;let e=new IntersectionObserver(e=>{let[t]=e;i(t.isIntersecting)},{root:n,rootMargin:d,threshold:c});return e.observe(a),()=>{e.disconnect()}},[a,n,d,o]),[l,t]}},21268:(e,t,i)=>{i.r(t),i.d(t,{default:()=>f});var s,a=i(95155),r=i(36039),l=((s={}).beside="beside",s.inside="inside",s),n=i(16664),d=i(63647),c=i(31352),o=i(2500),u=i(99003),m=i(41264),h=i(43809),g=i(93963),p=i(1281),x=i(63191),y=i(19072),j=i(12115);let f=e=>{let t=(0,x.useGetCompanyQuery)(),i=(0,y.FN)(t?.data?.result),{auto_select_first_child_in_show_product:s,show_calender_as_popup:f}=t?.data?.result?.theme?.components?.product??{},v=e.data,b=(0,u.mN)(),[_,C]=(0,j.useState)([]),w=v?.fields_builder,A=(0,n.V)(v),{currentProd:N,otherInputs:k}=A,S=(0,r.a)(),E=e.configurations.style_type===l.beside;(0,j.useEffect)(()=>{if(!A)return;let e=[];w?.forEach(t=>{let i;e?.push({...t,value:k?.[(i=t?.configurations?.key.split("."))[i.length-1]]})});let t=(0,m.Ui)(e);b.reset((0,m.gH)(t)),C(t)},[k,N]);let q=S?"":`pc-calendar${E?"-beside":"-inside"}`,I="";return N.preview_type===p.Je.consultation&&(I=`consutation${S?"-mobile":""} in-builder`,q="consult-details"),(0,j.useEffect)(()=>{i&&A.setSelectedChildIndex(0)},[]),(0,a.jsxs)("div",{id:"calendar",className:S?"":"pc-calendar-service-container",style:S?{}:{backgroundSize:"cover",backgroundImage:`url('${e.configurations.background_image}')`,backgroundRepeat:"no-repeat, no-repeat",backgroundPosition:"center center"},children:[S?(0,a.jsx)(d.A,{startLabel:e.configurations.title}):(0,a.jsx)("div",{className:"title",children:e.configurations.title}),(0,a.jsxs)("div",{className:S?"mobile-clalendar-service":"pc-calendar-service",children:[(0,a.jsxs)("div",{className:"calendar-service-attrs",children:[_?.length>0&&_?.map(e=>(0,a.jsxs)("div",{children:[(0,a.jsx)(d.A,{marginBottom:8,startLabel:e?.configurations?.title}),(0,a.jsx)(h.A,{field:e,form:b})]},e?.configurations?.key)),v?.attributes_builder?.length>0&&(0,a.jsx)(c.default,{isTopWinner:i,product:v,setSelectedChildIndex:A.setSelectedChildIndex,initialValues:i?v.children[0].attribute_ids:void 0,autoSelectFirstChild:s}),N?.addons_builder?.length>0&&(0,a.jsx)(o.A,{addOnBiulder:N.addons_builder,state:A.selectedAddOns,setState:A.handleSelectedAddOnsChanged}),(0,a.jsx)("div",{className:"consult-section-body",children:N.description??v.description})]}),(0,a.jsx)("div",{className:I,children:(0,a.jsx)("div",{className:q,children:(0,a.jsx)(g.A,{productState:A,isPopupMobile:!1,form:b,beside:e.configurations.style_type===l.beside,showCalenderAsPopup:f})})})]})]})}},27593:(e,t,i)=>{i.d(t,{N:()=>r});var s=i(36039),a=i(12115);let r=(e,t)=>{let{gap:i,gap_mobile:r,background_color:l,font_size:n,font_size_mobile:d,height:c,height_mobile:o,width:u,width_mobile:m}=e??{},h=(0,s.a)(),[g,p]=(0,a.useState)(0);(0,a.useEffect)(()=>{let e,i=t?.current;if(!i)return;let s=()=>{p(i.getBoundingClientRect().height)};s();let a=()=>s();return void 0!==window.ResizeObserver?(e=new ResizeObserver(()=>s())).observe(i):window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a),e?.disconnect()}},[t,h]);let x=h?d:n,y=(h?r:i)??0,j=h?{height:"100%",width:m,backgroundColor:l,flexDirection:"column",gap:y,padding:8,minHeight:o,justifyContent:"start"}:{height:"100%",width:u,backgroundColor:l,flexDirection:"column",gap:y,padding:16,minHeight:c,justifyContent:"start"};return{advancefullSize:{width:Number(j.minHeight)-Number(j.padding)-(y+g?20:0),height:Number(j.minHeight)-Number(j.padding)-(y+g?20:0)},advanceStyle:j,advanceFontSize:(x??1)*16}}},31844:(e,t,i)=>{i.r(t),i.d(t,{default:()=>U});var s=i(95155),a=i(12115);let r=()=>(0,s.jsx)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M8.37106 1.74609C8.29643 1.74611 8.22351 1.7684 8.16161 1.81009C8.09972 1.85179 8.05167 1.91101 8.02362 1.98017C7.99557 2.04932 7.98879 2.12528 8.00415 2.19831C8.0195 2.27135 8.0563 2.33814 8.10983 2.39014L9.4697 3.75H1.62497C1.57528 3.7493 1.52594 3.75848 1.47983 3.77701C1.43372 3.79554 1.39175 3.82305 1.35636 3.85794C1.32097 3.89283 1.29287 3.93441 1.27369 3.98026C1.25451 4.0261 1.24463 4.0753 1.24463 4.125C1.24463 4.1747 1.25451 4.2239 1.27369 4.26974C1.29287 4.31559 1.32097 4.35717 1.35636 4.39206C1.39175 4.42695 1.43372 4.45446 1.47983 4.47299C1.52594 4.49152 1.57528 4.5007 1.62497 4.5H9.4697L8.10983 5.85986C8.07384 5.89442 8.04511 5.93581 8.02532 5.9816C8.00552 6.0274 7.99507 6.07669 7.99456 6.12658C7.99405 6.17647 8.00351 6.22596 8.02236 6.27215C8.04122 6.31834 8.06911 6.3603 8.10439 6.39558C8.13967 6.43086 8.18163 6.45875 8.22782 
16.47761C8.27401 6.49646 8.3235 6.50592 8.37339 6.50541C8.42328 6.5049 8.47257 6.49445 8.51837 6.47465C8.56416 6.45486 8.60555 6.42613 8.64011 6.39014L10.6401 4.39014C10.7104 4.31981 10.7499 4.22444 10.7499 4.125C10.7499 4.02556 10.7104 3.93019 10.6401 3.85986L8.64011 1.85986C8.60515 1.82387 8.56333 1.79525 8.51712 1.77571C8.4709 1.75617 8.42124 1.7461 8.37106 1.74609ZM3.61765 6.49658C3.52026 6.49942 3.42779 6.54005 3.35983 6.60986L1.35983 8.60986C1.28953 8.68019 1.25004 8.77556 1.25004 8.875C1.25004 8.97444 1.28953 9.06981 1.35983 9.14014L3.35983 11.1401C3.39439 11.1761 3.43578 11.2049 3.48157 11.2247C3.52737 11.2444 3.57666 11.2549 3.62655 11.2554C3.67644 11.2559 3.72593 11.2465 3.77212 11.2276C3.81831 11.2087 3.86027 11.1809 3.89555 11.1456C3.93083 11.1103 3.95872 11.0683 3.97758 11.0221C3.99643 10.976 4.00589 10.9265 4.00538 10.8766C4.00487 10.8267 3.99442 10.7774 3.97462 10.7316C3.95483 10.6858 3.9261 10.6444 3.89011 10.6099L2.53024 9.25H10.375C10.4247 9.2507 10.474 9.24152 10.5201 9.22299C10.5662 9.20446 10.6082 9.17695 10.6436 9.14206C10.679 9.10717 10.7071 9.06559 10.7263 9.01974C10.7454 8.9739 10.7553 8.9247 10.7553 8.875C10.7553 8.8253 10.7454 8.7761 10.7263 8.73026C10.7071 8.68441 10.679 8.64283 10.6436 8.60794C10.6082 8.57305 10.5662 8.54554 10.5201 8.52701C10.474 8.50848 10.4247 8.4993 10.375 8.5H2.53024L3.89011 7.14014C3.94421 7.08745 3.98114 7.01965 3.99607 6.94563C4.01101 6.8716 4.00325 6.79479 3.9738 6.72525C3.94436 6.65571 3.89461 6.59667 3.83106 6.55587C3.76752 6.51507 3.69313 6.49441 3.61765 6.49658Z",className:"fill-current"})});var l=i(12870),n=i(37690),d=i(63191),c=i(44044),o=i(60803),u=i(76467);let m=(0,a.createContext)(void 0),h=e=>{var t;let i,{children:r,product:h}=e,g=(0,l.GX)(),p=(0,d.useGetCompanyQuery)(),{enableAddToCart:x}=(0,c.A)(),{theme:y}=p.data?.result??{},{show_add_to_card_btn:j,add_to_cart_btn_title:f}=y?.components?.product??{},v=g?.data?.result?.items,[b,_]=(0,a.useState)(0),[C,w]=(0,a.useState)(!1),[A,N]=(0,a.useState)([]),k=(t=v??[],(i=(t??[])?.findIndex(e=>{let t=e.inner_id===h?.id&&(0,o.fP)(e.addons,[])&&!e.note;if(e.type===n.L.product){let i=(0,u.Fh)(A),s=e.bundle_items||[];return t&&(0,u.CQ)(i,s)}return t}))<0?{quantity:0,addedToCart:!1,id:void 0,bundle_items:[]}:{quantity:t[i].quantity,addedToCart:!0,id:t[i].id,bundle_items:(0,u.bU)(t[i].bundle_items??[])}),S=k?.id,{has_required_addons:E,has_term_and_condition:q,has_required_fields:I,units:L,is_configurable:F,has_configurable_parent:$,quantity_on_hand:z,min_quantity_in_cart:B,is_disable:P}=h,T=y?.components?.product?.show_all_product_units,D=E||q||I||!!L.length&&T,M=D||F||$,V=!!P&&!M,H=(z-k.quantity<=0||!!B&&B>z-k.quantity)&&!M,O=(0,a.useCallback)(()=>{w(k.addedToCart),_(k.quantity)},[k.addedToCart,k.quantity]);(0,a.useEffect)(()=>{g.isFetching||O()},[g?.isFetching,v,O]),(0,a.useEffect)(()=>{if(!h.bundle_items?.length)return;let e=h.bundle_items?.flatMap(u.gc);N(e?.map(e=>({bundle_item_id:e.id,product_id:e.product_id,is_configurable:e.product.is_configurable,child:null})))},[h?.id]);let R=(0,a.useCallback)((e,t)=>{N(i=>{let s=i[e],a={...s,child:null===t||-1===t?null:h.bundle_items?.find(e=>e.id===s.bundle_item_id)?.product?.children[t]?.id};return i.map((t,i)=>i===e?a:t)})},[h.bundle_items]),W=A.filter(e=>e.is_configurable&&!e.child).length>0,G=(0,a.useMemo)(()=>({product:h,quantity:b,setQuantity:_,addedToCart:C,setAddedToCart:w,enableAddToCart:x,showAddToCardBtn:j,viewDetails:M,mustViewDetails:D,add_to_cart_btn_title:f,cartItemId:S,outOfStock:H,isDisabled:V,currentProductInCart:k,selectedBundleItems:A,setSelectedBundleItems:N,hanldeChildChange:R,notAllBundleItemsChildrenSelected:W}),[h,b,C,x,y,k,A,W,R]);return(0,s.jsx)(m.Provider,{value:G,children:r})},g=()=>{let e=(0,a.useContext)(m);if(void 0===e)throw Error("useBundleProduct must be used within a BundleProductProvider");return e};var p=i(47123),x=i(36687),y=i(10721),j=i(6655),f=i(59816),v=i(47731),b=i(35777),_=i(70823),C=i(65830),w=i(95555),A=i(99313),N=i(68124),k=i(27460),S=i(22306),E=i(1281),q=i(35214),I=i(74991),L=i(51131),F=i(2793),$=i(6398),z=i(50990),B=i(44951),P=i(42573),T=i(25059),D=i(30863),M=i(10687),V=i(36039),H=i(91010);let O=e=>{let{}=e,t=(0,a.useRef)(""),{quantity:i,setQuantity:r,addedToCart:d,add_to_cart_btn_title:o,product:m,viewDetails:h,cartItemId:p,outOfStock:x,isDisabled:y,currentProductInCart:j,selectedBundleItems:O,notAllBundleItemsChildrenSelected:R}=g(),{id:W,quantity_on_hand:G,min_quantity_in_cart:Q,max_quantity_in_cart:Z,slug:Y}=m??{},X=(0,v.r)(),[J]=(0,w.fp)(N.fY),{eventTrackers:K}=(0,k.A)(),{enableSells:U}=(0,c.A)(),ee=Z?Math.min(G,Z):G,et=Q??1,{notFieldErr:ei,setNotFieldErr:es,errorRef:ea,report:er}=(0,M.a)("add_to_cart_bundle"),[el,en]=(0,a.useState)(!1),[,ed]=(0,w.fp)(C.f),ec=(0,l.GX)(),eo=ec?.data?.result?.items,eu=e=>{r(e)},em=(0,l.ur)({onSuccess:(e,t)=>{let{items:i,coupon:s}=e.result??{};if(e?.message?.type===f.l.success){let e=(i??[]).find(e=>e.inner_id===W);e&&K(S.B.ADD_CART,[e],{currency:J?.code,value:e.price,coupon:s?.code??"",discount:e.discount},{},t.event_id)}},onError:e=>{eu(j.quantity),er(e,{product_id:W??null,cart_item_id:p??null,quantity:j?.quantity??null})}});(0,a.useEffect)(()=>{ec.isLoading||eu((0,b.Ee)(eo,W,!1,p))},[eo,ec.isLoading]);let eh=(0,a.useCallback)((0,b.sg)(e=>{let i=(0,b.J1)(eo,W,E.Je.bundle,p);em.mutate({...i,type:n.L.product,quantity:e,bundle_items:i?.bundle_items?.length?
1i?.bundle_items:(0,u.Fh)(O),event_id:t.current})},500),[eo?.length,p,W,O]),eg=e=>{0===e?en(!0):(eu(e),eh(e))},ep=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.current=(0,H.A)(),eg(i+e),0===i&&ed(!0)},ex=e=>{t.current=(0,H.A)(),eg(e),0===i&&ed(!0)},ey=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.current=(0,H.A)(),eg(i-e)},ej=()=>{X.push(`/products/${Y}`)},ef=(0,D.B)(),[ev,eb]=(0,a.useState)(!1),e_=(0,V.a)(),eC=i===et?et:1,ew=()=>(0,s.jsx)(s.Fragment,{children:d?ef.btn_added_to_cart:R?ef.choose_variant_for_all_bundle_items:h?ef.view:y?ef.product_disabled:x?ef.out_of_stock:U?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{marginInlineEnd:4},children:(0,s.jsx)(T.A,{small:!0})}),o||ef?.add_to_cart]}):ef.sell_disabled});return(0,s.jsxs)(s.Fragment,{children:[ei.length>0&&(0,s.jsx)(A.A,{errors:ei,setErrors:es,errorRef:ea}),(0,s.jsx)(_.default,{show:el,id:(0,b.Cy)(eo,W,p),setShow:en,onOk:()=>{en(!1),eu(0)}}),(0,s.jsxs)(s.Fragment,{children:[d?h?(0,s.jsx)("button",{className:"btn-expanded-h-added-to-card w",onClick:ej,children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{marginInlineEnd:4},children:(0,s.jsx)(T.A,{small:!0})}),ef.btn_added_to_cart]})}):(0,s.jsxs)("div",{className:"bundle-btn-add-to-card d-flex justify-content-between align-items-center",children:[(0,s.jsx)("div",{children:ew()}),(0,s.jsxs)("div",{className:"bundle-btn-expanded-h-add-to-card-counter",children:[(0,s.jsx)("div",{onClick:()=>i<ee&&ep(),children:(0,s.jsx)(P.A,{disabled:i===ee})}),et>1&&et===i?(0,s.jsx)("div",{style:{display:"flex",flexDirection:"column"},onClick:()=>{e_&&eb(!0)},children:(0,s.jsx)($.A,{text:`${ef.min_quantity_in_cart} ${et}`,skip:e_,paddingTop:20,children:(0,s.jsx)(z.A,{badgeComponent:(0,s.jsx)(B.A,{}),position:"top-right",children:(0,s.jsx)(F.A,{quantity:i,setQuantity:ex})})})}):(0,s.jsx)(F.A,{quantity:i,setQuantity:ex}),i>et&&(0,s.jsx)("div",{onClick:()=>ey(eC),children:(0,s.jsx)(L.A,{})}),(0,s.jsx)("div",{onClick:()=>ex(0),children:(0,s.jsx)(I.A,{})})]})]}):(0,s.jsx)("button",{className:"bundle-btn-add-to-card",onClick:()=>h?ej():ep(et),disabled:y||x||!(U||h)||R,children:ew()}),(0,s.jsx)(q.A,{message:`${ef.min_quantity_in_cart} ${et}`,setShow:eb,show:ev,paddingBottom:80,width:"300px",cancelIcon:!1,delay:3e3})]})]})};var R=i(25323);let W=()=>{let{quantity:e,product:t,enableAddToCart:i,showAddToCardBtn:a}=g(),r=(0,D.B)(),{selling_prices:l,price_without_discount:n,price:d,discount_amount:c,discount_type:o,discount:u}=t,{price:m,price_without_discount:h}=(0,x.A)({originalPrice:d,originalPriceWithoutDiscount:n,originalDiscountAmount:c,originalDiscountType:o,originalDiscount:u})({quantity:e,specialPrices:l});return(0,s.jsxs)("div",{style:{width:"100%"},children:[i&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p.f,{className:"p-0",children:(0,s.jsx)(y.A,{gap:10,priceFirst:!0,price:{value:m,className:"bundle-component-price"},priceWithoutDiscount:{value:h,className:"bundle-component-price-without-discount"},roundPrice:!0,discountAmount:0===l.length?t.discount_amount:void 0,badgeFirst:!0})}),(l||[])?.length>1&&(0,s.jsx)(p.f,{className:"p-0 align-self-end ",style:{marginInline:"5px"},children:(0,s.jsx)(j.A,{priceInfoData:l})})]}),a&&(0,s.jsx)(p.f,{className:"p-0 d-flex justify-content-end w-100",children:(0,s.jsx)(O,{})}),(0,s.jsx)(R.Link,{skipCheckingForLang:!0,prefetch:!1,href:`/products/${t.slug}`,className:"product-bundle-title mt-2",children:(0,s.jsx)("p",{className:"m-2 text-decoration-underline",children:r.view_details})})]})};var G=i(18412),Q=i(44665);let Z=e=>{let{widthArray:t,children:i,spacing:a}=e;return(0,s.jsx)(Q.A,{autoPlay:!1,autoplayDuration:0,children:(0,s.jsxs)(Q.A.EmblaSliderViewport,{children:[(0,s.jsx)(Q.A.EmblaSliderContainer,{gap:a,slides:[...i?.map((e,i)=>({component:(0,s.jsx)("div",{style:{width:t[i],height:"100%"},children:e}),width:"auto"}))]}),(0,s.jsx)(Q.A.EmblaFilters,{}),(0,s.jsx)(Q.A.EmblaSliderPrevNextButtons,{})]})})};var Y=i(50894),X=i(44371);let J=e=>{let{sliderItems:t}=e,i=(0,d.useGetCompanyQuery)(),r=i?.data?.result?.theme,l=r?.components?.product?.product_box_style,{width:n,spacing:c}=(0,X.AL)(l),o=t.map(e=>"product"===e.type?n:"auto"),{hanldeChildChange:u}=g(),m=(0,a.useCallback)(e=>t=>u(e,t),[u]);return(0,s.jsx)(Z,{widthArray:o,spacing:c,children:t.map((e,t)=>"product"===e.type?(0,s.jsx)(s.Fragment,{children:!!e.data?.product&&(0,s.jsx)(Y.A,{isGrid:!1,size:l,scrollableTabs:!1,theme:r,priority:!1,...e.data?.product,hideAddToCart:!0,showAllAttributes:!0,bundleSetSelectedChildIndex:m(e.index),bundleItemQuantity:e.data.quantity},t)}):(0,s.jsx)("div",{className:" d-flex align-items-center justify-content-center h-100",children:(0,s.jsx)(K,{})},t))})},K=()=>(0,s.jsx)("div",{className:"bundle-plus",children:(0,s.jsx)(P.A,{})}),U=e=>{let{data:t}=e,{product:i,title:r}=t??{},l=i.bundle_items,n=l?.flatMap(u.gc),d=(0,a.useMemo)(()=>{let e;return e=[],n?.forEach((t,i)=>
1{e.push({type:"product",data:t,id:`product-${t.id}`,index:i}),i<n.length-1&&e.push({type:"plus",id:`plus-${i}`,index:-1})}),e},[]),c=820>=(0,G.SO)(),o=(0,V.a)();return(0,s.jsx)(h,{product:i,children:(0,s.jsxs)("div",{className:"product-bundle-component",children:[(0,s.jsxs)("div",{className:"title",children:[" ",r]}),(0,s.jsxs)("div",{className:"product-bundle",style:c?{flexDirection:"column",alignItems:"flex-start",maxWidth:"fit-content",width:"auto"}:{},children:[(0,s.jsx)("div",{style:{maxWidth:c?"100%":"70%",width:"auto"},children:(0,s.jsx)(J,{sliderItems:d})}),(0,s.jsxs)("div",{className:"bundle-price-details ",style:c?{maxWidth:"100%"}:{},children:[!o&&(0,s.jsx)(ee,{}),(0,s.jsx)(W,{})]})]})]})})},ee=()=>(0,s.jsx)("div",{className:"bundle-plus",style:{width:36},children:(0,s.jsx)(r,{})})},32136:(e,t,i)=>{i.d(t,{default:()=>o});var s=i(95155),a=i(12115),r=i(95555),l=i(61197),n=i(6053),d=i(95983),c=i(44371);let o=e=>{(0,n.Y)();let[t]=(0,r.fp)(l.D),{products:i,shuffleSeed:o}=e,u=(0,a.useMemo)(()=>{let e=Array.isArray(i?.data)?i.data.length:0;return(0,c.c8)(i,t,e,o)},[i,t,o]);return(0,s.jsx)(d.default,{...e,products:u})}},34799:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});var s=i(95155),a=i(16072),r=i(36039),l=i(44665);let n=e=>{let{children:t}=e,i=((0,r.a)()?346.67:480)+32;return(0,s.jsx)(l.A,{children:(0,s.jsxs)(l.A.EmblaSliderViewport,{children:[(0,s.jsx)(l.A.EmblaSliderContainer,{gap:32,slides:[...t?.map(e=>({component:(0,s.jsx)("div",{style:{width:i},children:e}),width:"auto"}))]}),(0,s.jsx)(l.A.EmblaFilters,{}),(0,s.jsx)(l.A.EmblaSliderPrevNextButtons,{})]})})};var d=i(13456),c=i(54097);let o=e=>{let{src:t}=e;return(0,s.jsxs)("div",{style:{width:"inherit",height:"inherit",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,s.jsx)(c.A,{style:{position:"absolute"}}),(0,s.jsx)("video",{src:t,style:{borderRadius:"16px",objectFit:"cover",width:"inherit",height:"inherit"}})]})},u=e=>{let{src:t,type:i,className:a}=e;return(0,s.jsx)("div",{className:a,children:"image"===i?(0,s.jsx)(d.A,{alt:"gallery",src:t,sizes:"500px",style:{objectFit:"cover",borderRadius:"16px"}}):(0,s.jsx)(o,{src:t})})};var m=i(63647),h=i(69918);let g=e=>{let{className:t,media:i}=e;return(0,s.jsx)("div",{style:{gap:12,display:"flex",flexWrap:"nowrap",overflow:"hidden"},className:"m-0 ",children:i.map((e,i)=>(0,s.jsx)("div",{className:`skeleton-rect ${t}`,style:{flexShrink:0}},i))})};var p=i(28006),x=i(12115),y=i(75313);let j=e=>{let t=(0,h.A)(),i=(0,x.useRef)(null),r=e.data,l=r.filter(e=>"image"===e.type).map(e=>e.image_url),d=e.configurations.title,c={"1:1":"galliery-image-ratio-1-1","4:3":" galliery-image-ratio-4-3"}[e.configurations.customize.media_ratio??"4:3"];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m.A,{startLabel:d}),t?(0,s.jsxs)(a.A,{style:{gap:12},className:"m-0 d-flex justify-content-center",children:[(0,s.jsx)(y.A,{images:l,children:e=>(0,s.jsx)(n,{children:r.map((t,a)=>(0,s.jsx)("div",{onClick:()=>{if("image"===t.type)return e(l.findIndex(e=>e===t.image_url));i.current?.showMedia(t.image_url,t.type)},children:(0,s.jsx)(u,{src:t.image_url,type:t.type,className:c},a)},a))})}),(0,s.jsx)(p.A,{ref:i})]}):(0,s.jsx)(g,{media:r,className:c})]})}},38996:(e,t,i)=>{i.d(t,{default:()=>n});var s=i(95155),a=i(12115),r=i(44665),l=i(1145);let n=e=>{let{children:t}=e,[i,n]=(0,a.useState)(0),{isInteracting:d}=(0,l.A)(),c=t?.[0],o=d?t:[c];return(0,s.jsxs)("div",{style:{position:"relative"},children:[(0,s.jsx)(r.A,{selectedIndex:i,setSelectedIndex:n,autoPlay:d,children:(0,s.jsx)(r.A.EmblaSliderViewport,{children:(0,s.jsx)(r.A.EmblaSliderContainer,{gap:0,slides:[...o?.map((e,t)=>({component:(0,s.jsx)("div",{children:e},t),width:"100%"}))]})})}),t.length>1&&(0,s.jsx)("div",{className:"dots",style:{position:"absolute",bottom:10,width:"100%"},children:[...t?.map((e,t)=>(0,s.jsx)("span",{className:`dot ${i===t?"active":""}`,onClick:()=>n(0===t?-1:t)},t))]})]})}},40530:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var s=i(95155),a=i(36039),r=i(16072),l=i(45894),n=i(13456),d=i(48019);let c=e=>{let{icon_url:t,title:i,isOdd:a=!1,isMobile:r=!1}=e,l=r?`feature-box ${a?"justify-content-center":""}`:"feature-box-pc",c=r?24:36;return(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)("div",{className:"feature-box-image-container",children:(0,s.jsx)(n.A,{src:t,alt:"",objectFit:"fill",height:c,width:c})}),(0,s.jsx)("div",{className:"feature-box-title",children:(0,d.W5)(i,27)})]})})},o=e=>{let t,i=(t=e.data??[]??[]).reduce((e,i,s)=>s%2?e:[...e,t.slice(s,s+2)],[]);return(0,s.jsx)(r.A,{className:"m-0 feature-box-container",style:{gap:1},children:i.map((e,t)=>(0,s.jsx)(r.A,{style:{margin:0,padding:0,gap:1},children:e.map((t,i)=>(0,s.jsx)(l.A,{className:"p-0",children:(0,s.jsx)(c,{isMobile:!0,...t,isOdd:1===e.length})},i))},t))})},u=e=>(0,s.jsx)(r.A,{className:"m-0 d-flex justify-content-center",style:{gap:16},children:e.data?.map((e,t)=>(0,s.jsx)(l.A,{className:"p-0 col-auto",children:(0,s.jsx)(c,{...e})},t))}),m=e=>(0,a.a)()?(0,s.jsx)(o,{...e}):(0,s.jsx)(u,{...e})},46503:(e,t,i)=>{i.d(t,{default:()=>r});var s=i(95155),a=i(64383);let r=e=>{let{children:t,data:i}=e,r=a.Hg;return(0,s.jsx)(r,{name:i.name,children:t},i.name)}},50774:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var s=i(95155),a=i(44665),r=i(69918),l=i(36039),n=i(48019);let d=e=>{let{children:t,customize:i}=e,d=(0,r.A)(),c=(0,l.a)(),o=d&&i?.advance_mode,u=o?c?i?.width_mobile:i?.width:304,m=o?c?i?.gap_mobile||24:i?.gap||24:24,h=(0,n.OB)(i?.interval),g=t??[];return 0===g.length?null:d?(0,s.jsx)(a.A,{autoPlay:!!h&&h>0,autoplayDuration:h??0,children:(0,s.jsxs)(a.A.EmblaSliderViewport,{children:[(0,s.jsx)(a.A.EmblaSliderContainer,{gap:m,extraClassName:"blog-carousel",slides:[...t?.map(e=>
1({component:(0,s.jsx)("div",{style:{width:u,display:"flex",height:"100%"},children:e}),width:"auto"}))]}),(0,s.jsx)(a.A.EmblaFilters,{}),g?.length>3?(0,s.jsx)(a.A.EmblaSliderPrevNextButtons,{}):(0,s.jsx)(s.Fragment,{})]})}):(0,s.jsx)("div",{className:"skeleton-rect",style:{width:"100%",height:320}})}},55806:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var s=i(95155),a=i(88784),r=i(86939),l=i(25323),n=i(13456),d=i(12115),c=i(27593),o=i(69918);let u=e=>{let{categoryKey:t,categoryType:i,image_url:a,value:u,customize:m,showCategoryImage:h}=e,g=i??r.x.circle_icon,p="";switch(g){case r.x.square:p="category-square";break;case r.x.square_primary:p="category-square primary";break;case r.x.square_primary_title:p="category-square-colored-title";break;case r.x.circle_img:default:p="category-circle-img"}let x=(0,d.useRef)(null),{advance_mode:y}=m??{},{advanceFontSize:j,advanceStyle:f,advancefullSize:v}=(0,c.N)(m,x),b=h&&a&&""!==a,_=(0,o.A)(),C=y&&_;return(0,s.jsx)(l.Link,{prefetch:!1,href:`/blog?category=${t}`,children:(0,s.jsxs)("div",{className:`${p} ${b?"":"justify-content-center"} `,style:C?{...f}:{},children:[b&&(0,s.jsx)("div",{className:"category-image-cover",style:C?{...v}:{},children:(0,s.jsx)("div",{className:"category-image-container",style:C?{width:"100%",height:"100%"}:{},children:(0,s.jsx)(n.A,{src:a,alt:"category",sizes:"70px",objectFit:"contain",style:{backgroundColor:"#FFF"}})})}),(0,s.jsx)("div",{ref:x,className:`category-label${C?"-advance":""} ${!h?" w-100 align-items-center":""}`,style:C?{fontSize:j}:{},children:u})]})})};var m=i(47123);let h=e=>(0,s.jsx)(m.y,{className:"m-0 d-flex justify-content-center",style:{gap:16},children:e.data?.map(t=>(0,s.jsx)(m.f,{className:"col-auto p-0",children:(0,s.jsx)(u,{customize:e?.configurations?.customize,showCategoryImage:e.showCategoryImage,categoryType:e.configurations?.style_type??r.x.circle_icon,categoryKey:t.key,...t})},t.key))});var g=i(36039),p=i(44665);let x=e=>{let t=(0,o.A)(),{advance_mode:i,width:l,width_mobile:n}=e?.configurations?.customize??{},d=(0,g.a)(),c=e.configurations?.style_type??r.x.circle_icon,{width:m,spacing:h}=((e,t)=>{switch(e){case r.x.circle_icon:return{width:t?a._8.category.circle_icon:a._8.category.circle_icon_pc,spacing:t?20:12};case r.x.circle_img:return{width:t?a._8.category.circle_img:a._8.category.circle_img_pc,spacing:20};case r.x.square:return{width:a._8.category.square_large,spacing:8};case r.x.square_primary_title:return{width:t?a._8.category.square_colored_title:a._8.category.square_colored_title_pc,spacing:16};default:return{width:0,spacing:0}}})(c,d),x=t&&i?d?n:l:m,y=!!e.speed&&e.speed>0;return t?(0,s.jsx)(p.A,{autoPlay:y,autoplayDuration:e.speed??0,children:(0,s.jsxs)(p.A.EmblaSliderViewport,{children:[(0,s.jsx)(p.A.EmblaSliderContainer,{gap:h,slides:[...e.data?.map(t=>({component:(0,s.jsx)("div",{style:{width:x,height:"100%"},children:(0,s.jsx)(u,{categoryType:c,customize:e?.configurations?.customize,showCategoryImage:e.showCategoryImage,categoryKey:t.key,...t})}),width:"auto"}))]}),(0,s.jsx)(p.A.EmblaSliderPrevNextButtons,{})]})}):(0,s.jsx)("div",{className:"skeleton-rect",style:{width:"100%",paddingTop:"96px"}})};var y=i(63647),j=i(48019),f=i(30863);let v=e=>{let t=(0,f.B)(),i=(0,j.OB)(e.configurations?.customize?.interval),r=e.configurations?.target_url;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.A,{startLabel:e.configurations?.title,endLabel:r?{label:t.view_all,href:r}:void 0}),e.configurations?.type===a.QB.grid?(0,s.jsx)(h,{...e,showCategoryImage:!0}):(0,s.jsx)(x,{...e,speed:i,showCategoryImage:!0})]})}},57568:(e,t,i)=>{i.d(t,{default:()=>p});var s,a=i(95155),r=((s={}).inline="inline",s.button="button",s),l=i(12115),n=i(82031),d=i(68956),c=i(16545);let o=e=>{let{dark:t,light:i}=e,s="fill-primary";return t?s="fill-dark":i&&(s="fill-primary-inner"),(0,a.jsx)("svg",{style:{marginTop:-5},width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4.75 0.5C3.59632 0.5 2.63992 1.37852 2.51465 2.5H2C1.42225 2.5 0.941361 2.93305 0.880861 3.5083L0.255861 9.5083C0.223111 9.8243 0.325815 10.1414 0.539065 10.3784C0.752065 10.6147 1.05675 10.75 1.375 10.75H8.625C8.94325 10.75 9.24769 10.6144 9.46094 10.3779C9.67394 10.1414 9.77689 9.8243 9.74414 9.5083L9.11914 3.5083C9.05864 2.9333 8.57775 2.5 8 2.5H7.48828C7.49603 2.5825 7.5 2.666 7.5 2.75V4.25C7.5 4.388 7.388 4.5 7.25 4.5C7.112 4.5 7 4.388 7 4.25V4.125V2.75C7 1.51182 5.98818 0.5 4.75 0.5ZM4.75 1.25C5.49744 1.25 6.10999 1.78777 6.22803 2.5H3.78321C3.76221 2.58 3.75 2.6635 3.75 2.75V4.25C3.75 4.388 3.638 4.5 3.5 4.5C3.362 4.5 3.25 4.388 3.25 4.25V4.125V2.75C3.25 1.91718 3.91718 1.25 4.75 1.25Z",className:s})})};var u=i(57043),m=i(95983),h=i(6250),g=i(63191);let p=e=>{let{icon:t,configurations:i,data:s}=e,{data:p}=(0,g.useGetCompanyQuery)(),x=p?.result?.theme,[y,j]=(0,l.useState)(0),{number_of_products:f,style_type:v,product_style_type:b}=i,_=f>0,C=v!==r.button,{data:w,hasNextPage:A,isFetchingNextPage:N,fetchNextPage:k}=(0,u.jr)({params:{filter:s[y].filter,forced_limit:_?f:14}}),S=w?.pages?.flatMap(e=>e.result.data)||[],[E,q]=(0,h.B)();return(0,l.useEffect)(()=>{A&&!N&&k()},[q]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{overflow:"auto",marginBottom:16},children:(0,a.jsx)(n.A,{onClick:e=>j(+e.target.value),children:s?.map((e,i)=>(0,a.jsxs)(d.A,{value:i,className:C?`tab-btn ${i===y?"tab-btn-selected":"tab-btn-not-selected"}`:`tab-like-btn ${i===y?"tab-like-btn-selected":"tab-like-btn-not-selected"}`,children:[t&&(0,a.jsx)("span",{style:{marginInlineEnd:5.25},children:(0,a.jsx)(o,{light:!C&&i===y,dark:C&&i!==y})}),e.title,C&&(0,a.jsx)("div",{style:{marginTop:6},className:`${i===y?"hor-line":""}`})]},i))})}),(0,a.jsx)(m.default,{products:{data:S,configurations:{style_type:b}},theme:x}),(0,a.jsx)("div",{ref:E,className:"w-100 d-flex justify-content-center mt-3",children:A&&(0,a.jsx)(c.A,{})})]})}},64761:(e,t,i)=>{i.d(t,{BlogsSkeleton:()=>l,CategoriesSkeleton:()=>r});var s=i(95155),a=i(1145);i(12115);let r=e=>{let{minHeight:t=140}=e,{isInteracting:i}=(0,a.A)();return(0,s.jsx)("div",{style:{minHeight:t,width:"100%"},children:!i&&(0,s.jsx)("div",{className:"skeleton-rect",style:{width:"100%",height:"100%"}})})},l=()=>{let{isInteracting:e}=(0,a.A)();if(e)return(0,s.jsx)("div",{style:{height:36,margin:"24px 0"}});let t=Array.from({length:3});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{style:{height:36,margin:"24px 0"},className:"skeleton-rect"}),(0,s.jsx)("div",{className:"Embla-Slider-viewport",children:(0,s.jsx)("ul",{className:"Embla-Slider-container",style:{gap:24,width:"100%",margin:0,padding:0,listStyleType:"none"},children:t.map((e,t)=>(0,s.jsx)("li",{style:{flex:"0 0 auto",maxWidth:"100%"},children:(0,s.jsxs)("div",{className:"builder-blog",children:[(0,s.jsx)("div",{className:"blog-img-container",style:{width:304,height:160},children:(0,s.jsx)("div",{className:"skeleton-rect",style:{width:"100%",height:"100%"}})}),(0,s.jsxs)("div",{className:"text-conainer",style:{marginTop:8},children:[(0,s.jsx)("div",{className:"skeleton-text"}),(0,s.jsx)("div",{className:"skeleton-text"}),(0,s.jsx)("div",{className:"skeleton-text"})]})]})},t))})})]})}},70823:(e,t,i)=>{i.r(t),i.d(t,{default:()=>j});
1var s=i(95155),a=i(59816),r=i(12870),l=i(84063),n=i(16072),d=i(45894),c=i(76510),o=i(76519),u=i(15459),m=i(30863),h=i(7668),g=i(27460),p=i(22306),x=i(95555),y=i(68124);let j=e=>{let{id:t=null,show:i,setShow:j,onOk:f=null}=e,v=(0,m.B)(),b=(0,r.GX)(),[_]=(0,x.fp)(y.fY),{items:C,discount:w,tax:A,total:N,coupon:k,shipping_charge:S}=b?.data?.result??{},{eventTrackers:E}=(0,g.A)(),q=(0,h.useIsMutating)({mutationKey:["post-item"]}),I=(0,r.lj)({onSuccess:e=>{e?.message?.type===a.l.success&&(f?f():j(!1))},onError:e=>{}}),L=(0,r.Dj)({onSuccess:e=>{e?.message?.type===a.l.success&&(f?f():j(!1))},onError:e=>{}}),F=I.isLoading||L.isLoading||!!q;return(0,s.jsxs)(l.A,{centered:!0,show:i,onHide:()=>j(!1),dialogClassName:"messagebox-dialog",contentClassName:"clear-cart-dialog-content",children:[(0,s.jsx)("div",{className:"messagebox-closeicon",children:(0,s.jsx)(c.A,{onClick:()=>j(!1)})}),(0,s.jsx)("div",{className:"cart-Item-dialog-title",children:t?v.remove_item:v.clear_cart}),(0,s.jsx)("div",{children:v.are_you_sure}),(0,s.jsxs)(n.A,{className:"m-0 w-100",style:{gap:12},children:[(0,s.jsx)(d.A,{className:"p-0",children:(0,s.jsx)("div",{className:"w-100",children:(0,s.jsx)(u.Ay,{type:u.c$.neutral,size:u.h1.large,radius:u.vN.small,onClick:()=>j(!1),fullWidth:!0,children:v.keep})})}),(0,s.jsx)(d.A,{className:"p-0",children:(0,s.jsx)("div",{className:"w-100",children:(0,s.jsx)(u.Ay,{type:u.c$.primary,size:u.h1.large,radius:u.vN.small,onClick:()=>{if(t){let e=C?.find(e=>e.id===t);L.mutate(t),E(p.B.remove_from_cart,[e],{discount:e.discount,tax:e.tax,value:e.price,shipping:S,coupon:k?.code,currency:_?.code})}else I.mutate(),E(p.B.remove_from_cart,C,{discount:w,tax:A,value:N,shipping:S,coupon:k?.code,currency:_?.code})},fullWidth:!0,children:F?(0,s.jsx)(o.A,{}):t?v.remove:v.clear})})})]})]})}},74905:(e,t,i)=>{i.r(t),i.d(t,{default:()=>p});var s=i(95155),a=i(48019),r=i(44371),l=i(88784),n=i(44665),d=i(1145);let c=e=>{let{children:t,products:i,setIslastProduct:c,id:o}=e,{isInteracting:u}=(0,d.A)(),m=(0,a.OB)(i.configurations?.customize?.interval),h=i?.data??[],g=i?.configurations?.style_type??l.or.small,{width:p,spacing:x}=(0,r.AL)(g);return 0===h.length?null:(0,s.jsx)(n.A,{autoPlay:!!m&&u,autoplayDuration:m,setisLastSlide:c,children:(0,s.jsxs)(n.A.EmblaSliderViewport,{id:o,children:[(0,s.jsx)(n.A.EmblaSliderContainer,{gap:x,slides:[...t?.map(e=>({component:(0,s.jsx)("div",{style:{width:p,height:"100%"},children:e}),width:"auto"}))],id:o}),(0,s.jsx)(n.A.EmblaFilters,{}),(0,s.jsx)(n.A.EmblaSliderPrevNextButtons,{})]})})};var o=i(50894),u=i(61197),m=i(6053),h=i(95555),g=i(12115);let p=e=>{let{products:t,setIslastProduct:i,scrollableTabs:a,theme:l,showCustomEventData:n,id:d,shuffleSeed:p}=e;(0,m.Y)();let[x]=(0,h.fp)(u.D),y=(0,g.useMemo)(()=>(0,r.c8)(t,x,25,p),[t,x,p]),j=t.configurations?.style_type,{height:f}=(0,r.AL)(j);return(0,s.jsx)("div",{style:{minHeight:f},children:(0,s.jsx)(c,{products:y,setIslastProduct:i,id:d,children:y?.data.map((e,t)=>(0,s.jsx)(o.A,{isGrid:!1,theme:l,size:y.configurations?.style_type,...e,scrollableTabs:a,priority:t<2,Customize:y?.configurations?.customize,showCustomEventData:n},e.id))})})}},76510:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(95155);let a=e=>{let{onClick:t}=e;return(0,s.jsxs)("svg",{onClick:t,style:{cursor:"pointer"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_10061_49308)",children:(0,s.jsx)("path",{d:"M11.999 2C6.47602 2 1.99902 6.477 1.99902 12C1.99902 17.523 6.47602 22 11.999 22C17.522 22 21.999 17.523 21.999 12C21.999 6.477 17.522 2 11.999 2ZM15.7795 14.7195C16.0725 15.0125 16.0725 15.487 15.7795 15.78C15.633 15.927 15.441 16 15.249 16C15.057 16 14.865 15.927 14.7185 15.7805L11.999 13.0605L9.27952 15.78C9.13302 15.927 8.94102 16 8.74902 16C8.55702 16 8.36502 15.927 8.21852 15.7805C7.92552 15.4875 7.92552 15.013 8.21852 14.72L10.9385 12L8.21902 9.2805C7.92602 8.9875 7.92602 8.513 8.21902 8.22C8.51202 7.927 8.98652 7.927 9.27952 8.22L11.999 10.9395L14.7185 8.22C15.0115 7.927 15.486 7.927 15.779 8.22C16.072 8.513 16.072 8.9875 15.779 9.2805L13.0595 12L15.7795 14.7195Z",fill:"#E2E2E2"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_10061_49308",children:(0,s.jsx)("rect",{width:"24",height:"24",fill:"white",transform:"translate(-0.000976562)"})})})]})}},86939:(e,t,i)=>{i.d(t,{x:()=>a});var s,a=((s={}).circle_icon="circle_icon",s.circle_img="circle_img",s.square="square",s.square_primary="square_primary",s.square_primary_title="square_primary_title",s)},90798:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var s=i(95155),a=i(88784),r=i(86939),l=i(25323),n=i(13456),d=i(12115),c=i(27593),o=i(69918);let u=e=>{if(null==e||""===e)return;if("number"==typeof e)return`${e}px`;let t=String(e).trim();return/^-?\d+(\.\d+)?$/.test(t)?`${t}px`:t},m=e=>{let{id:t,categoryType:i,icon:a,name:m,customize:h,showCategoryImage:g,slug:p}=e,x=i??r.x.circle_icon,y="";switch(x){case r.x.square:y="category-square";break;case r.x.square_primary:y="category-square primary";break;case r.x.square_primary_title:y="category-square-colored-title";break;case r.x.circle_img:default:y="category-circle-img"}let j=(0,d.useRef)(null),{advance_mode:f,width:v,width_mobile:b,height:_,height_mobile:C}=h??{},{advanceFontSize:w,advanceStyle:A,advancefullSize:N}
1=(0,c.N)(h,j),k=g&&a&&""!==a,S=(0,o.A)(),E=f&&S,q=f?{"--cat-w":u(v),"--cat-w-m":u(b),"--cat-h":u(_),"--cat-h-m":u(C)}:void 0;return(0,s.jsx)(l.Link,{prefetch:!1,href:`/categories/${p||t}`,children:(0,s.jsxs)("div",{className:`${y} ${k?"":"justify-content-center"} ${f?"cat-advance-size":""}`,style:{...q,...E?A:{}},children:[k&&(0,s.jsx)("div",{className:"category-image-cover",style:E?{...N}:{},children:(0,s.jsx)("div",{className:"category-image-container",style:E?{width:"100%",height:"100%"}:{},children:(0,s.jsx)(n.A,{src:a,alt:"category",sizes:"70px",objectFit:"contain",style:{backgroundColor:"#FFF"}})})}),(0,s.jsx)("div",{ref:j,className:`category-label${E?"-advance":""} ${!g?" w-100 align-items-center":""}`,style:E?{fontSize:w}:{},children:m})]})})};var h=i(47123);let g=e=>(0,s.jsx)(h.y,{className:"d-flex justify-content-center",style:{gap:16},children:e.data?.map(t=>(0,s.jsx)(h.f,{className:"col-auto p-0",children:(0,s.jsx)(m,{customize:e?.configurations?.customize,showCategoryImage:e.showCategoryImage,categoryType:e.configurations?.style_type??r.x.circle_icon,...t})},t.id))});var p=i(36039),x=i(44665);let y=e=>{let t=(0,o.A)(),{advance_mode:i,width:l,width_mobile:n}=e?.configurations?.customize??{},d=(0,p.a)(),c=e.configurations?.style_type??r.x.circle_icon,{width:u,spacing:h}=((e,t)=>{switch(e){case r.x.circle_icon:return{width:t?a._8.category.circle_icon:a._8.category.circle_icon_pc,spacing:t?20:12};case r.x.circle_img:return{width:t?a._8.category.circle_img:a._8.category.circle_img_pc,spacing:20};case r.x.square:return{width:a._8.category.square_large,spacing:8};case r.x.square_primary_title:return{width:t?a._8.category.square_colored_title:a._8.category.square_colored_title_pc,spacing:16};default:return{width:0,spacing:0}}})(c,d),g=t&&i?d?n:l:u,y=!!e.speed&&e.speed>0;return t?(0,s.jsx)(x.A,{autoPlay:y,autoplayDuration:e.speed??0,children:(0,s.jsxs)(x.A.EmblaSliderViewport,{children:[(0,s.jsx)(x.A.EmblaSliderContainer,{gap:h,slides:[...e.data?.map(t=>({component:(0,s.jsx)("div",{style:{width:g,height:"100%"},children:(0,s.jsx)(m,{categoryType:c,customize:e?.configurations?.customize,showCategoryImage:e.showCategoryImage,...t},t.id)}),width:"auto"}))]}),(0,s.jsx)(x.A.EmblaSliderPrevNextButtons,{})]})}):(0,s.jsx)("div",{className:"skeleton-rect",style:{width:"100%",paddingTop:"96px"}})};var j=i(63647),f=i(48019);let v=e=>{let t=e.isSubCategory,{show_subcategory_image:i,show_category_image:r,text:l}=e,n=t?i:r,d=(0,f.OB)(e.configurations?.customize?.interval);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.A,{startLabel:e.configurations?.title,endLabel:e.configurations?.view_all?{label:l.view_all,href:e.configurations.target_url}:void 0}),e.configurations?.type===a.QB.grid?(0,s.jsx)(g,{...e,showCategoryImage:n,isSubCategory:t}):(0,s.jsx)(y,{...e,speed:d,showCategoryImage:n,isSubCategory:t})]})}},95983:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var s=i(95155),a=i(50894),r=i(88784),l=i(12115),n=i(44371);let d=e=>{let{products:t,scrollableTabs:i,theme:d,showCustomEventData:c,shuffleSeed:o,priorityCount:u=0}=e,m=(0,l.useMemo)(()=>(0,n.c8)(t,void 0,void 0,o),[t,o]),h=m.configurations?.style_type,g=h===r.or.small||h===r.or.vertical_small,p=`product-grid-${g?"small":"large"}${i?"-scrollable-tabs":""}`;return(0,s.jsx)("div",{className:p,children:m?.data.map((e,t)=>(0,s.jsx)(a.A,{theme:d,size:m.configurations?.style_type,...e,scrollableTabs:i,priority:t<u,Customize:m.configurations?.customize,isGrid:!0,showCustomEventData:c},t))})}},97760:(e,t,i)=>{i.d(t,{default:()=>g});var s=i(95155),a=i(12115),r=i(13456),l=i(64383),n=i(97858);let d=e=>{let{tabs:t,activeTab:i,setActiveTab:a,viewIcons:d}=e,c=l.N_;return(0,s.jsx)(n.A,{spacing:6,selectedIndex:i,children:t.map((e,t)=>(0,s.jsx)("div",{className:`pop-up-tab text-nowrap ${i===t?"selected":""}`,children:(0,s.jsx)(c,{className:`pop-up-tab text-nowrap tab-link ${i===t?"selected":""}`,activeClass:"pop-up-tab text-nowrap tab-link selected",spy:!0,to:e.name,offset:-200,onSetActive:()=>a(t),children:(0,s.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:4},children:[d&&(0,s.jsx)(r.A,{width:18,height:18,src:e.icon_src,alt:"tab",style:{borderRadius:9}}),(0,s.jsxs)("div",{children:[" ",e.name]})]})})},t))})};var c=i(63191),o=i(36039),u=i(69918),m=i(95555),h=i(86322);let g=e=>{let{data:t,viewIcons:i}=e,r=(0,u.A)(),n=(0,c.useGetCompanyQuery)(),{show_receiving_header:g}=n?.data?.result??{},p=(0,o.a)(),[x]=(0,m.fp)(h.m),[y]=(0,m.fp)(h.V),j=p?x:y?128:64,[f,v]=(0,a.useState)(0),b=t.map(e=>({id:e.id,name:e.name,icon_src:e.icon}));if((0,a.useEffect)(()=>
1{l.cA.update()},[]),r)return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"pop-up-scrollabll-tabs-container",style:{top:g?j+(p?82:38):j,boxSizing:"border-box"},children:(0,s.jsx)(d,{activeTab:f,setActiveTab:v,tabs:b,viewIcons:i})})})}}}]);
2//# sourceMappingURL=4566-46f63b95387968e1.js.map

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.