1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7740],{1282:(e,t,r)=>{r.d(t,{default:()=>f});var s=r(95155),l=r(86303),a=r(52619),n=r.n(a),i=r(25016),c=r(12115),o=r(31856),d=r(44622),m=r(94915),x=r(20063);function f(e){let{profileImage:t,businessName:r,socialLinks:l,phoneNumber:a,industry:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{profileImage:t,businessName:r,socialLinks:l,phoneNumber:a,industry:n}),(0,s.jsx)(h,{profileImage:t,businessName:r,socialLinks:l,phoneNumber:a,industry:n})]})}function u(e){let{businessName:t,socialLinks:r,phoneNumber:a,industry:c}=e,o=(0,x.usePathname)();return(0,s.jsxs)("header",{className:"background-secondary-color hidden flex-row items-center justify-between px-[4.38rem] pb-[1.5rem] pt-[2.56rem] font-spaceGrotesk lg:flex",children:[(0,s.jsx)("nav",{className:"flex flex-row items-center justify-start space-x-[1.88rem] self-start",children:(0,l.A)(c).filter(e=>"Contact us"!==e.label).map(e=>(0,s.jsx)(n(),{className:(0,i.cn)("px-[0.5rem] py-[0.75rem] font-spaceGrotesk text-[0.75rem] font-medium uppercase",(o===e.href||"/"!==e.href&&o.startsWith(e.href+"/"))&&"underline underline-offset-2"),href:o.includes("/preview")?"#":e.href,children:e.label},e.label))}),(0,s.jsx)(p,{businessName:t}),(0,s.jsx)(g,{socials:r,phoneNumber:a})]})}function h(e){let{businessName:t,socialLinks:r,phoneNumber:a,industry:m}=e,[f,u]=(0,c.useState)(!1),h=(0,x.usePathname)();return(0,s.jsxs)("header",{className:"background-secondary-color flex w-full flex-row items-center justify-between px-[1rem] py-[1.5rem] font-rubik lg:hidden",children:[(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(p,{businessName:t})}),(0,s.jsxs)(o.cj,{open:f,onOpenChange:u,children:[(0,s.jsx)(o.CG,{asChild:!0,children:(0,s.jsx)(d.A,{size:30})}),(0,s.jsxs)(o.h,{className:"w-full",side:"top",children:[(0,s.jsxs)(o.Fm,{children:[(0,s.jsx)(o.qp,{}),(0,s.jsx)(o.Qs,{})]}),(0,s.jsx)(p,{businessName:t}),(0,s.jsxs)("div",{className:"flex w-full flex-col space-y-[2.5rem] pt-4",children:[(0,l.A)(m).map(e=>(0,s.jsx)(n(),{className:(0,i.cn)("w-full px-[1rem] text-center font-spaceGrotesk text-[0.75rem] font-semibold uppercase",(h===e.href||"/"!==e.href&&h.startsWith(e.href+"/"))&&"underline underline-offset-2"),href:h.includes("/preview")?"#":e.href,onClick:()=>u(!1),children:e.label},e.label)),(0,s.jsx)("div",{className:"flex w-full flex-col items-center justify-start",children:(0,s.jsx)(g,{socials:r,phoneNumber:a})})]})]})]})]})}let p=e=>{let{businessName:t}=e;return(0,s.jsx)(n(),{href:"/",className:"flex flex-row items-center space-x-[0.41rem] self-center",children:(0,s.jsx)("h1",{className:"font-spaceGrotesk text-[1.25rem] font-bold",children:t})})},g=e=>{let{socials:t,phoneNumber:r}=e;return(0,s.jsxs)("nav",{className:"flex flex-col items-center justify-start space-y-[2.5rem] lg:flex-row lg:space-x-[1.88rem] lg:space-y-0 lg:self-end",children:[["facebook","instagram"].map(e=>{let r=t[e];return"string"==typeof r&&r?(0,s.jsxs)(n(),{className:"flex flex-row items-center space-x-3 px-[0.5rem] py-[0.75rem] font-spaceGrotesk text-[0.75rem] font-semibold uppercase",href:r,children:[(0,s.jsx)("p",{children:e}),(0,s.jsx)(m.A,{size:16})]},e):null}),(0,s.jsxs)(n(),{className:"flex flex-row items-center space-x-3 px-[0.5rem] py-[0.75rem] font-spaceGrotesk text-[0.75rem] font-semibold uppercase",href:"tel:".concat(r),children:[(0,s.jsx)("p",{children:"Contact us"}),(0,s.jsx)(m.A,{size:16})]})]})}},3909:(e,t,r)=>{r.d(t,{Ay:()=>a,Es:()=>l});let s=r(12870).A.create({timeout:3e4});class l extends Error{constructor({message:e,status:t,data:r,original:s}){super(e),this.name="NormalizedError",this.status=t,this.data=r,this.original=s}}s.interceptors.response.use(e=>e,e=>Promise.reject(new l(function(e){try{if("undefined"!=typeof navigator&&!navigator.onLine)return{message:"No internet connection",status:0}}catch(e){}if(null==e?void 0:e.response){let{status:t,data:r,statusText:s}=e.response;return 502!==t&&503!==t&&r?{message:(null==r?void 0:r.message)||(null==r?void 0:r.error)||(null==r?void 0:r.msg)||s||"Request failed",status:t,data:r,original:e}:{message:"Server unavailable, please try again",status:t}}return(null==e?void 0:e.request)?{message:"Server unavailable, please try again",status:0,original:e}:{message:(null==e?void 0:e.message)||"An unknown error occurred",original:e}}(e))));let a=s},5801:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var s=r(95155);let l=e=>{let{amount:t,currency:r="KSH",locale:l="en-US",className:a=""}=e,n=new Intl.NumberFormat(l,{style:"currency",currency:r}).format(t);return(0,s.jsx)("span",{className:a,children:n})}},8923:(e,t,r)=>{r.d(t,{default:()=>m});var s=r(95155),l=r(86303),a=r(52619),n=r.n(a),i=r(94915),c=r(20063);let o=[11671,3321];var d=r(63498);function m(e){let{businessName:t,socials:r,phoneNumber:a,industry:m,merchantId:x,loyaltyEnabled:f}=e,u=(0,c.usePathname)();return(0,s.jsxs)("footer",{className:"background-secondary-color flex w-full flex-col items-center justify-center space-y-[2.81rem] px-4 pb-[1.25rem] pt-[2rem] lg:px-[4.38rem]",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-center space-y-[2.81rem] lg:flex-row lg:justify-between lg:sp
1ace-y-0",children:[(0,s.jsxs)("div",{className:"flex w-full flex-row flex-wrap items-center justify-between space-x-[2.81rem] lg:w-fit lg:justify-start",children:[(0,l.A)(m).filter(e=>"Contact us"!==e.label).map(e=>(0,s.jsx)(n(),{href:u.includes("/preview")?"#":e.href,className:"text-[0.65rem] font-medium uppercase",children:e.label},e.label)),f&&(0,s.jsx)(n(),{href:"/loyalty",className:"text-[0.75rem] font-bold uppercase underline underline-offset-4",children:"Join our Loyalty Program"})]}),(0,s.jsx)("p",{className:"text-[0.75rem] font-medium",children:t}),(0,s.jsxs)("nav",{className:"flex w-full flex-row items-center justify-between lg:w-fit lg:justify-end lg:space-x-[1.88rem]",children:[["facebook","instagram"].map(e=>{let t=r[e];return"string"==typeof t&&t?(0,s.jsxs)(n(),{className:"flex flex-row items-center space-x-2.5 px-[0.5rem] py-[0.75rem] text-[0.65rem] font-medium uppercase",href:t,children:[(0,s.jsx)("p",{children:e}),(0,s.jsx)(i.A,{size:16})]},e):null}),(0,s.jsxs)(n(),{className:"flex flex-row items-center space-x-3 px-[0.5rem] py-[0.75rem] text-[0.65rem] font-medium uppercase",href:"tel:".concat(a),children:[(0,s.jsx)("p",{children:"Contact us"}),(0,s.jsx)(i.A,{size:16})]})]})]}),x&&o.includes(x)&&(0,s.jsx)(n(),{href:"/loyalty",className:"text-[0.85rem] font-bold underline underline-offset-4",children:"Join our Loyalty Program"}),(0,s.jsx)(n(),{href:"https://tappi.app",className:"bg-[#F2F1E4] px-[0.5rem] py-[0.25rem] text-[0.75rem]",children:"Made with â¤ï¸ by tappi"}),(0,s.jsx)("button",{onClick:d.y,className:"text-[0.65rem] text-muted-foreground underline underline-offset-2 hover:text-foreground",children:"Cookie Settings"})]})}},21332:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(95155),l=r(12115);function a(e){let{children:t}=e,[r,a]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e=()=>{a(window.scrollY>0)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,s.jsx)("div",{className:"background-primary-color fixed top-0 z-50 flex w-screen flex-col items-center justify-center transition-shadow ".concat(r?"shadow-md":""),children:t})}},22969:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),l=r(52619),a=r.n(l);let n={src:"/_next/static/media/facebook.5207ed3d.png",height:41,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACv15x2AAAADXRSTlMAhCl0CaOTSrdaUmcVWnZzbwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADVJREFUeJwdiscRADAIwwSEkrL/vDl4yScLIMUWgMau1+Oan2aWmveVpRJtuCbTckKGqG/gAxy7ALt4E9TPAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},i={src:"/_next/static/media/instagram.e02950b1.png",height:41,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEUAAAAAAAAAAAAAAAAAAABMaXEAAAAAAAAAAACTKl5KAAAACXRSTlNkWBt/UACwb45+rTzOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAM0lEQVR4nEXLwQkAMAzDQNlxku4/caGf/gSHaANy41nljNF2VY4gJVX48ahXeEgY83bcFxt0ALqS674BAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};var c=r(15239),o=r(63498);function d(e){let{businessName:t,socialLinks:r,loyaltyEnabled:l}=e;return(0,s.jsxs)("footer",{className:"flex w-full flex-col items-center justify-center space-y-[2.81rem] border-t-[3px] border-black pb-[3.56rem] pt-[3rem] lg:px-[4.38rem] lg:pb-[5.3rem] lg:pt-[4.75rem]",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-center space-y-[2.81rem] lg:flex-row lg:justify-between lg:space-y-0",children:[(0,s.jsx)("p",{className:"text-[1.25rem] font-semibold lg:text-[2rem]",children:t}),l&&(0,s.jsx)(a(),{href:"/loyalty",className:"text-[1.5rem] font-bold underline underline-offset-4",children:"Join our Loyalty Program"}),(0,s.jsx)(a(),{href:"https://tappi.app",className:"hidden px-[0.5rem] py-[0.25rem] text-[1.5rem] lg:block",children:"Made with â¤ï¸ by tappi"}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between space-x-[2.81rem] lg:justify-start",children:[r&&r.facebook?(0,s.jsx)(a(),{href:r.facebook,className:"text-[0.85rem]",children:(0,s.jsx)(c.default,{src:n,alt:"facebook link"})},"facebook"):(0,s.jsx)("div",{className:"size-[2.5rem]"}),r&&r.instagram?(0,s.jsx)(a(),{href:r.instagram,className:"text-[0.85rem]",children:(0,s.jsx)(c.default,{src:i,alt:"instagram link"})},"instagram"):(0,s.jsx)("div",{className:"size-[2.5rem]"})]}),(0,s.jsx)(a(),{href:"https://tappi.app",className:"block px-[0.5rem] py-[0.25rem] text-[0.75rem] lg:hidden",children:"Made with â¤ï¸ by tappi"})]}),(0,s.jsx)("button",{onClick:o.y,className:"text-[0.65rem] text-muted-foreground underline underline-offset-2 hover:text-foreground",children:"Cookie Settings"})]})}},25016:(e,t,r)=>{r.d(t,{cn:()=>a});var s=r(2821),l=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,s.$)(t))}},31856:(e,t,r)=>{r.d(t,{CG:()=>d,Fm:()=>h,Qs:()=>g,cj:()=>o,h:()=>u,qp:()=>p});var s=r(95155),l=r(12115),a=r(93409),n=r(83101),i=r(26615),c=r(25016);let o=a.bL,d=a.l9;a.bm;let m=a.ZL,x=l.forwardRef((e,t)=>
1{let{className:r,...l}=e;return(0,s.jsx)(a.hJ,{className:(0,c.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...l,ref:t})});x.displayName=a.hJ.displayName;let f=(0,n.F)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),u=l.forwardRef((e,t)=>{let{side:r="right",className:l,children:n,...o}=e;return(0,s.jsxs)(m,{children:[(0,s.jsx)(x,{}),(0,s.jsxs)(a.UC,{ref:t,className:(0,c.cn)(f({side:r}),l),...o,children:[n,(0,s.jsxs)(a.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(i.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=a.UC.displayName;let h=e=>{let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};h.displayName="SheetHeader";let p=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.hE,{ref:t,className:(0,c.cn)("text-lg font-semibold text-foreground",r),...l})});p.displayName=a.hE.displayName;let g=l.forwardRef((e,t)=>{let{className:r,...l}=e;return(0,s.jsx)(a.VY,{ref:t,className:(0,c.cn)("text-sm text-muted-foreground",r),...l})});g.displayName=a.VY.displayName},36631:(e,t,r)=>{r.d(t,{j0:()=>n,yW:()=>i});var s=r(3909),l=r(91664),a=r(91103);async function n(e){let{id:t,page:r=1,size:n=50,selectedCategory:i,search_term:c,sort_by:o,sort_order:d}=e,m="".concat(a.C1).concat(l.A.readProducts,"?merchant_id=").concat(t,"&page=").concat(r,"&size=").concat(n,"&is_published=true");i&&0!==i&&(m+="&category_ids=".concat(i)),c&&(m+="&search_term=".concat(c)),o&&(m+="&sort_by=".concat(o)),d&&(m+="&sort_order=".concat(d));let x=await s.Ay.get(m,{headers:{"Cache-Control":"public, s-maxage=300, stale-while-revalidate=150"}});return null==x?void 0:x.data}async function i(e){let{merchantID:t,query:r,page:n}=e,i=await s.Ay.get("".concat(a.C1).concat(l.A.searchProduct(t,r,n)));return null==i?void 0:i.data}},39376:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),l=r(52619),a=r.n(l),n=r(72801),i=r(19931),c=r(74115),o=r(63498);function d(e){let{businessName:t,socialLinks:r,loyaltyEnabled:l}=e;return(0,s.jsxs)("footer",{className:"background-tertiary-color flex w-full flex-col items-center justify-center space-y-[1.62rem] px-[6rem] pb-[1.69rem] pt-[2rem] text-white",children:[(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,s.jsx)("p",{className:"font-workSans text-[0.875rem] font-semibold lg:text-[1.5rem]",children:t}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-start space-x-[1.5rem]",children:[r&&r.facebook&&(0,s.jsx)(a(),{href:r.facebook,children:(0,s.jsx)(n.A,{size:24,color:"white"})},"facebook"),r&&r.instagram&&(0,s.jsx)(a(),{href:r.instagram,children:(0,s.jsx)(i.A,{size:24,color:"white"})},"instagram"),r&&r.others&&(0,s.jsx)(a(),{href:r.others,children:(0,s.jsx)(c.A,{size:24,color:"white"})},"instagram")]})]}),l&&(0,s.jsx)(a(),{href:"/loyalty",className:"text-sm font-bold underline underline-offset-4",children:"Join our Loyalty Program"}),(0,s.jsx)(a(),{href:"https://tappi.app",className:"rounded-md bg-[#F2F1E4] px-[0.5rem] py-[0.25rem] text-[0.75rem] text-black",children:"Made with â¤ï¸ by tappi"}),(0,s.jsx)("button",{onClick:o.y,className:"text-[0.65rem] text-white/60 underline underline-offset-2 hover:text-white/80",children:"Cookie Settings"})]})}},41183:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(95155),l=r(12115),a=r(51348),n=r(20063);let i=function(e){let{iconColor:t,backgroundColor:r,background:i}=e,c=(0,n.useRouter)(),o=(0,a.l)(e=>e.cartItems),[d,m]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{(null==o?void 0:o.length)>0&&(m(!0),setTimeout(()=>{m(!1)},1e3))},[o]),(0,s.jsx)("button",{style:{backgroundColor:r,background:i},onClick:()=>c.push("/cart"),className:"cart fixed bottom-10 right-5 z-50 flex h-[3.75rem] w-[3.75rem] items-center justify-center rounded-full bg-black shadow-xl ".concat(d?"vibrate":""),children:(0,s.jsxs)("div",{className:"relative",children:[(null==o?void 0:o.length)>0&&(0,s.jsx)("div",{className:"absolute -right-4 -top-5 flex h-[1.625rem] w-[1.625rem] items-center justify-center rounded-full bg-[#F04438]",children:(0,s.jsx)("p",{className:"text-[1rem] font-bold text-white",children:null==o?void 0:o.length})}),(0,s.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.36098 7.0365C7.11148 8.0745 6.78148 9.8295 6.12298 13.341L4.99798 19.341C4.07248 24.279 3.61048 26.748 4.95898 28.374C6.30898 30 8.81998 30 13.845 30H22.155C27.18 30 29.691 30 31.041 28.374C32.391 26.748 31.926 24.279 31.002 19.341L29.877 13.341C29.217 9.831 28.8885 8.0745 27.639 7.0365C26.3895 6 24.603 6 21.03 6H14.97C11.397 6 9.61048 6 8.36098 7.0365ZM14.817 11.6265C15.0496 12.2851 15.4807 12.8553 16.0509 13.2586C16.6211 13.6619 17.3023 13.8785 18.0007 13.8785C18.6992 13.8785 19.3804 13.6619 19.9506 13.2586C20.5208 12.8553 20.9519 12.2851 21.1845 11.6265C21.2894 11.3527 21.497 11.1308 21.7632 11.0078C22.0293 10.8848 22.3329 10.8706 22.6094 10.9682C22.8858 11.0658 23.1133 11.2674 23.2433 11.5301C23.3733 11.7929 23.3956 12.096 23.3055 12.375C22.9177 13.472 22.1993 14.4218 21.2492 15.0936C20.2992 15.7654 19.1643 16.1261 18.0007 16.1261C16.8372 16.1261 15.7023 15.7654 14.7522 15.0936C13.8022 14.4218 13.0838 13.472 12.696 12.375C12.6439 12.2351 12.6202 12.0862 12.6263 11.937C12.6323 11.7879 12.668 11.6414 12.7312 11.5062C12.7944 11.3709 12.8839 11.2496 12.9945 11.1493C13.1051 11.049 13.2345 10.9717 13.3753 10.922C13.516 10.8722 13.6653 10.851 13.8143 10.8594C13.9634 10.8679 14.1092 10.906 14.2434 10.9714C14.3776 11.0369 14.4974 11.1284 14.5959 11.2406C14.6944 11.3528 14.7695 11.485 14.817 11.6265Z",fill:t})})]})})}},51348:(e,t,r)=>{r.d(t,{l:()=>a});var s=r(25959),l=r(89863);let a=(0,s.v)()((0,l.Zr)(e=>({cartItems:[],cartItemsQuantity:{},showConfirmationPrompt:!1,setCartItems:t=>e({cartItems:t}),setCartItemsQuantity:t=>e(e=>({cartItemsQuantity:"function"==typeof t?t(e.cartItemsQuantity):t})),setShowConfirmationPrompt:t=>e({showConfirmationPrompt:t}),isHydrated:!1}),{name:"shopping_cart",storage:(0,l.KU)(()=>localStorage),onRehydrateStorage:e=>{e&&(e.isHydrated=!0)}}))},56861:(e,t,r)=>{r.d(t,{default:()=>h});var s=r(95155),l=r(15239),a=r(86303),n=r(52619),i=r.n(n),c=r(25016),o=r(12115),d=r(31856),m=r(44622),x=r(20063);let f={src:"/_next/static/media/plum-hero-1.b09f2ba0.png",height:89,width:97,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAATlBMVEVMaXExD2XQ175YTWOPiJFGHYJgU3B1bHWgppBlToMmCFt8c4ihn5tNM3NAJ2QiEzuEf4hHJXbo8NJKLnJ7dINJGo9NKX5gQY1YPH5GGoe5c7uBAAAAFXRSTlMAa24Xyf15BXr9l9uh7sFnlPsi22dOwDK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAO0lEQVR4nB3ISRKAIBDF0ChDN86KH73/SS3M6lUAy00S+7a+pUnEuIyeVOhNT8pghNnPoQ+7qD8wjvsDRl4B4qgZrrMAAAAASUVORK5CYII=",blurWidth:8,blurHeight:7},u={src:"/_next/static/media/plum-hero-2.86ba899c.png",height:136,width:85,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAAQlBMVEW2gE2TeDrJjAFxTw2xgh/3qwGxpYOlmHOPZxW1nnjimgG4k0W6fQC7kDOIVwC9hRX/sgOhjVjXlwy5iyvXnynQlhwRI/+WAAAAFHRSTlMBnZxKov6YW2cK5+B0eCmk/pbh2RyDPzsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAvSURBVHicFcq3EYAwEAAwgcPb5Lj/qhyqpekYU8N07XlwlLmG8twb71pP8vKnCHwZ2QEWWKx09AAAAABJRU5ErkJggg==",blurWidth:5,blurHeight:8};function h(e){let{profileImage:t,businessName:r,industry:l}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{profileImage:t,businessName:r,industry:l}),(0,s.jsx)(g,{profileImage:t,businessName:r,industry:l})]})}function p(e){let{profileImage:t,businessName:r,industry:n}=e,o=(0,x.usePathname)();return(0,s.jsxs)("header",{className:"relative hidden w-screen items-center justify-center border-b-[4px] border-black pb-[5.38rem] pt-[3.63rem] font-rubik lg:flex",children:[(0,s.jsx)(l.default,{className:"absolute right-0 top-0",src:f,alt:"Plum shape purple",width:100,height:100}),(0,s.jsx)(l.default,{className:"absolute -bottom-10 left-0",src:u,alt:"Plum shape purple",width:100,height:100}),(0,s.jsxs)("div",{className:"relative flex h-[4.5rem] w-fit flex-row items-center justify-between border-[4px] border-black bg-white",children:[(0,s.jsx)("div",{className:"absolute -left-2 -top-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -right-2 -top-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -bottom-2 -right-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -bottom-2 -left-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)(b,{profileImage:t,businessName:r}),(0,s.jsx)("nav",{className:"ml-[5rem] flex flex-row items-center justify-between divide-x-[3px] divi
1de-black",children:(0,a.A)(n).map(e=>(0,s.jsx)(i(),{className:(0,c.cn)("h-full flex-shrink-0 border-black px-[1.25rem] py-[0.75rem] text-[1.5rem] font-semibold capitalize",(o===e.href||"/"!==e.href&&o.startsWith(e.href+"/"))&&"-underline-offset-4 underline decoration-[#FFAD03] decoration-[6px]"),href:o.includes("/preview")?"#":e.href,children:e.label},e.label))})]})]})}function g(e){let{profileImage:t,businessName:r,industry:n}=e,h=(0,x.usePathname)(),[p,g]=(0,o.useState)(!1);return(0,s.jsxs)("header",{className:"relative flex w-full flex-row items-center justify-center px-[1rem] py-[1.5rem] font-rubik lg:hidden",children:[(0,s.jsx)(l.default,{className:"absolute right-0 top-0",src:f,alt:"Plum shape purple",width:50,height:50}),(0,s.jsx)(l.default,{className:"absolute -bottom-10 left-0",src:u,alt:"Plum shape purple",width:50,height:50}),(0,s.jsxs)("div",{className:"relative flex h-[4.5rem] w-[80vw] flex-row items-center justify-between border-[3px] border-black bg-white",children:[(0,s.jsx)("div",{className:"absolute -left-2 -top-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -right-2 -top-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -bottom-2 -right-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"absolute -bottom-2 -left-2 h-[0.87rem] w-[0.87rem] border-[3px] border-black bg-white"}),(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(b,{profileImage:t,businessName:r})}),(0,s.jsxs)(d.cj,{open:p,onOpenChange:g,children:[(0,s.jsx)(d.CG,{asChild:!0,children:(0,s.jsx)(m.A,{size:30})}),(0,s.jsxs)(d.h,{className:"w-full",side:"top",children:[(0,s.jsxs)(d.Fm,{children:[(0,s.jsx)(d.qp,{}),(0,s.jsx)(d.Qs,{})]}),(0,s.jsx)(b,{profileImage:t,businessName:r}),(0,s.jsx)("div",{className:"flex w-full flex-col space-y-[1rem]",children:(0,a.A)(n).map(e=>(0,s.jsx)(i(),{className:(0,c.cn)("w-full border-b-[3px] border-b-black px-[1rem] py-[1rem] text-center text-[1.5rem] font-semibold"),href:h.includes("/preview")?"#":e.href,onClick:()=>g(!1),children:e.label},e.label))})]})]})]})]})}let b=e=>{let{profileImage:t,businessName:r}=e;return(0,s.jsx)(i(),{href:"/",className:"mx-4 flex h-[2.5rem] w-[2.5rem] flex-shrink-0 flex-row items-center",children:(0,s.jsx)(l.default,{src:t,alt:"".concat(r,"'s website"),className:"h-[2.5rem] w-[2.5rem] overflow-hidden rounded-full border-[3px] border-black object-center shadow-2xl",height:40,width:40})})}},60971:(e,t,r)=>{r.d(t,{default:()=>f});var s=r(95155),l=r(15239),a=r(86303),n=r(52619),i=r.n(n),c=r(25016),o=r(12115),d=r(31856),m=r(44622),x=r(20063);function f(e){let{profileImage:t,businessName:r,industry:l}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u,{profileImage:t,businessName:r,industry:l}),(0,s.jsx)(h,{profileImage:t,businessName:r,industry:l})]})}function u(e){let{profileImage:t,businessName:r,industry:l}=e,n=(0,x.usePathname)();return(0,s.jsxs)("header",{className:"hidden w-full flex-row items-center justify-between px-[4.38rem] pb-[1.5rem] pt-[2.56rem] font-rubik lg:flex",children:[(0,s.jsx)(p,{profileImage:t,businessName:r}),(0,s.jsx)("nav",{className:"flex flex-row items-center justify-start space-x-[1.88rem]",children:(0,a.A)(l).map(e=>(0,s.jsx)(i(),{className:(0,c.cn)("px-[0.75rem] py-[0.5rem] font-rubik text-[1rem] font-normal",(n===e.href||"/"!==e.href&&n.startsWith(e.href+"/"))&&"bg-[#EAECF0]"),href:n.includes("/preview")?"#":e.href,children:e.label},e.label))})]})}function h(e){let{profileImage:t,businessName:r,industry:l}=e,[n,f]=(0,o.useState)(!1),u=(0,x.usePathname)();return(0,s.jsxs)("header",{className:"flex w-full flex-row items-center justify-between px-[1rem] py-[1.5rem] font-rubik lg:hidden",children:[(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(p,{profileImage:t,businessName:r})}),(0,s.jsxs)(d.cj,{open:n,onOpenChange:f,children:[(0,s.jsx)(d.CG,{asChild:!0,children:(0,s.jsx)(m.A,{size:32})}),(0,s.jsxs)(d.h,{className:"w-full",side:"top",children:[(0,s.jsxs)(d.Fm,{children:[(0,s.jsx)(d.qp,{}),(0,s.jsx)(d.Qs,{})]}),(0,s.jsx)(p,{profileImage:t,businessName:r}),(0,s.jsx)("div",{className:"flex w-full flex-col space-y-[2.5rem] pt-4",children:(0,a.A)(l).map(e=>
1(0,s.jsx)(i(),{className:(0,c.cn)("w-full px-[1rem] text-center text-[0.75rem] font-normal",(u===e.href||"/"!==e.href&&u.startsWith(e.href+"/"))&&"bg-[#EAECF0] p-2.5"),href:u.includes("/preview")?"#":e.href,onClick:()=>f(!1),children:e.label},e.label))})]})]})]})}let p=e=>{let{profileImage:t,businessName:r}=e;return(0,s.jsx)(i(),{href:"/",children:(0,s.jsxs)("div",{className:"flex flex-row items-center space-x-[0.41rem]",children:[(0,s.jsx)(l.default,{src:t,alt:"".concat(r,"'s website"),className:"h-[2rem] w-[2rem] overflow-hidden rounded-full object-center shadow-2xl",height:32,width:32}),(0,s.jsx)("h1",{className:"font-rubik text-[1.25rem] font-semibold",children:r})]})})}},63498:(e,t,r)=>{r.d(t,{default:()=>x,y:()=>m});var s=r(95155),l=r(12115),a=r(97003),n=r(65659),i=r(42614),c=r(59007);let o="tappi_analytics_consent";function d(e){window.gtag&&window.gtag("consent","update",{analytics_storage:e,ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"})}function m(){localStorage.removeItem(o),window.dispatchEvent(new CustomEvent("tappi:open-cookie-settings"))}function x(){let[e,t]=(0,l.useState)(!1),[r,m]=(0,l.useState)(!1);function x(e){localStorage.setItem(o,JSON.stringify({version:"v1",value:e})),d(e),t(!1)}return((0,l.useEffect)(()=>{function e(){t(!0)}window.addEventListener("tappi:open-cookie-settings",e);let r=localStorage.getItem(o);if(r)try{let{version:e,value:s}=JSON.parse(r);"v1"!==e?t(!0):d(s)}catch(e){t(!0)}else t(!0);return()=>{window.removeEventListener("tappi:open-cookie-settings",e)}},[]),e)?(0,s.jsx)("div",{role:"dialog","aria-modal":"false","aria-label":"Cookie consent",className:"fixed bottom-0 left-0 right-0 z-[9999] border-t border-border bg-background shadow-lg",children:(0,s.jsxs)("div",{className:"mx-auto max-w-5xl px-4 py-4",children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,s.jsx)(n.A,{size:16,className:"shrink-0 text-foreground"}),(0,s.jsx)("p",{className:"text-sm font-semibold text-foreground",children:"We use analytics cookies"})]}),(0,s.jsx)("p",{className:"mb-2 text-xs leading-relaxed text-muted-foreground",children:"We use cookies to understand how people use our site. No personal data is sold or shared with third parties."}),(0,s.jsx)("button",{onClick:()=>m(e=>!e),className:"mb-3 flex items-center gap-1 text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground",children:r?(0,s.jsxs)(s.Fragment,{children:["Hide details ",(0,s.jsx)(i.A,{size:12})]}):(0,s.jsxs)(s.Fragment,{children:["See details ",(0,s.jsx)(c.A,{size:12})]})}),r&&(0,s.jsx)("div",{className:"mb-3 rounded-md border border-border bg-muted/40 px-3 py-2.5",children:(0,s.jsxs)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:[(0,s.jsx)("strong",{children:"Data controller:"})," tappi. ",(0,s.jsx)("strong",{children:"Purpose:"})," ","Google Analytics (GA4) and Google Tag Manager are used exclusively to measure anonymous traffic â page visits and navigation paths. No personal profiles are built. ",(0,s.jsx)("strong",{children:"Third parties:"})," ","Google LLC. ",(0,s.jsx)("strong",{children:"Retention:"}),' up to 14 months inside Google Analytics. You may withdraw consent at any time via the "Cookie Settings" link in the footer.'," ",(0,s.jsx)("a",{href:"https://tappi.app/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"Privacy Policy"}),"."]})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(a.$,{variant:"outline",size:"sm",onClick:()=>x("denied"),className:"flex-1 text-sm sm:flex-none",children:"Decline"}),(0,s.jsx)(a.$,{variant:"outline",size:"sm",onClick:()=>x("granted"),className:"flex-1 bg-primary text-sm text-primary-foreground hover:bg-primary/90 sm:flex-none",children:"Accept"})]})]})}):null}},64862:(e,t,r)=>{r.d(t,{default:()=>w});var s=r(95155),l=r(15239),a=r(86303),n=r(52619),i=r.n(n),c=r(25016),o=r(12115),d=r(31856),m=r(44622),x=r(26615),f=r(20063),u=r(73782),h=r(86036),p=r(71747),g=r(21001),b=r.n(g);let j=e=>e?e.filter(e=>b()().isBefore(b()(e.valid_until))):[];function w(e){let{profileImage:t,businessName:r,offer:l,document:a,phoneNumber:n,industry:i}=e,c=(0,f.useRouter)(),o=(0,h.A)(i,!!(null==a?void 0:a.document)),d=()=>{"Book Appointment"===o?c.push("/cart/checkout"):(0,p.A)(c,!!(null==a?void 0:a.document),null==a?void 0:a.document,n)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{profileImage:t,businessName:r,offer:l,industry:i,ctaText:o,ctaAction:d}),(0,s.jsx)(A,{profileImage:t,businessName:r,offer:l,ctaText:o,ctaAction:d,industry:i})]})}function y(e){let{profileImage:t,businessName:r,offer:l,industry:n,ctaText:o,ctaAction:d}=e,m=(0,f.usePathname)();return(0,s.jsxs)("div",{className:"hidden w-full lg:block",children:[j(l)&&(0,s.jsx)(N,{offer:j(l)[0]}),(0,s.jsxs)("header",{className:"flex flex-row items-center justify-between px-[4.38rem] py-[1.5rem] font-rubik",children:[(0,s.jsx)(v,{profileImage:t,businessName:r}),(0,s.jsxs)("nav",{className:"flex flex-row items-center justify-start space-x-[1.88rem]",children:[(0,a.A)(n).map(e=>
1(0,s.jsx)(i(),{className:(0,c.cn)("flex-shrink-0 px-[0.5rem] py-[0.75rem] text-[1rem] font-semibold text-[#667085]",(m===e.href||"/"!==e.href&&m.startsWith(e.href+"/"))&&"underline underline-offset-4"),href:m.includes("/preview")?"#":e.href,children:e.label},e.label)),(0,s.jsx)(u.default,{type:"primary",label:o,onClick:d})]})]})]})}function A(e){let{profileImage:t,businessName:r,offer:l,industry:n,ctaText:x,ctaAction:h}=e,[p,g]=(0,o.useState)(!1),b=(0,f.usePathname)();return(0,s.jsxs)("div",{className:"block w-full lg:hidden",children:[j(l)&&(0,s.jsx)(N,{offer:j(l)[0]}),(0,s.jsxs)("header",{className:"flex w-full flex-row items-center justify-between px-[1rem] py-[1.5rem] font-rubik",children:[(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(v,{profileImage:t,businessName:r})}),(0,s.jsxs)(d.cj,{open:p,onOpenChange:g,children:[(0,s.jsx)(d.CG,{asChild:!0,children:(0,s.jsx)(m.A,{size:32})}),(0,s.jsxs)(d.h,{className:"w-full",side:"top",children:[(0,s.jsxs)(d.Fm,{children:[(0,s.jsx)(d.qp,{children:(0,s.jsx)(v,{profileImage:t,businessName:r})}),(0,s.jsx)(d.Qs,{})]}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-center space-y-[3rem] pt-4",children:[(0,a.A)(n).map(e=>(0,s.jsx)(i(),{className:(0,c.cn)("w-full px-[1rem] text-center font-workSans text-[1rem] font-semibold text-[#667085]",(b===e.href||"/"!==e.href&&b.startsWith(e.href+"/"))&&"underline underline-offset-4"),href:b.includes("/preview")?"#":e.href,onClick:()=>g(!1),children:e.label},e.label)),(0,s.jsx)(u.default,{type:"primary",label:x,onClick:h})]})]})]})]})]})}let v=e=>{let{profileImage:t,businessName:r}=e;return(0,s.jsxs)(i(),{href:"/",className:"flex flex-row items-center space-x-[1rem]",children:[(0,s.jsx)(l.default,{src:t,alt:"".concat(r,"'s website"),className:"h-[3.13rem] w-[3.13rem] overflow-hidden rounded-full object-center",height:50,width:50}),(0,s.jsx)("h1",{className:"font-workSans text-[1.25rem] font-semibold",children:r})]})},N=e=>{let{offer:t}=e,[r,l]=(0,o.useState)(!0);return(0,s.jsx)(s.Fragment,{children:t&&r&&(0,s.jsxs)("div",{className:"background-tertiary-color flex flex-row items-center justify-between px-[3rem] py-[0.75rem]",children:[(0,s.jsx)("div",{}),(0,s.jsxs)(i(),{href:"#offers",className:"hover: font-workSans text-[1.13rem] font-semibold text-white",children:["\uD83C\uDF89"," ",(0,s.jsxs)("span",{className:"underline underline-offset-4",children:["Special Deal: ",null==t?void 0:t.title]})," ","\uD83C\uDF89"]}),(0,s.jsx)("button",{onClick:()=>l(!1),children:(0,s.jsx)(x.A,{size:16,color:"white"})})]})})}},71747:(e,t,r)=>{r.d(t,{A:()=>s});let s=(e,t,r,s)=>{if(t)e.push("".concat(r));else{let e=s.replace(/\s+/g,"").replace(/\+/g,"");window.location.href="https://wa.me/".concat(e)}}},73782:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(95155);r(12115);var l=r(94915);let a={primary:"font-workSans default-primary-button-gradient rounded-[0.5rem] w-full lg:w-fit px-[0.75rem] py-[0.75rem] text-[1rem] font-semibold text-white lg:px-[1rem] text-white lg:py-[0.5rem] lg:text-[1rem]",secondary:"font-workSans background-secondary-color rounded-[0.5rem] text-[#4B1D8F] lg:rounded-[1.875rem] gap-[0.25rem] lg:gap-[0.625rem] w-full lg:w-fit px-[0.5rem] py-[0.25rem] text-[1rem] font-medium lg:px-[1.5rem] lg:py-[0.5rem] lg:text-[1.25rem]",large:"font-workSans default-primary-button-gradient rounded-[0.5rem] w-full px-[0.75rem] py-[0.75rem] text-[1rem] font-semibold text-white lg:px-[1rem] text-white lg:py-[0.75rem] lg:text-[1.25rem]",cart:"font-workSans background-secondary-color rounded-[0.5rem] border-[1px] border-[#4B1D8F] w-full text-[#4B1D8F] lg:rounded-[1.875rem] gap-[0.25rem] lg:gap-[0.625rem] w-full lg:w-fit px-[0.5rem] py-[0.25rem] text-[1rem] font-medium lg:px-[1.5rem] lg:py-[0.5rem] lg:text-[1rem]"},n=function(e){let{label:t,type:r,onClick:n}=e;return(0,s.jsxs)("button",{onClick:n,className:"flex items-center justify-center ".concat(a[r]," flex-shrink-0"),children:[t,"secondary"===r&&(0,s.jsx)(l.A,{size:20,color:"#4B1D8F"})]})}},75216:(e,t,r)=>{r.d(t,{default:()=>d});var s=r(95155),l=r(52619),a=r.n(l),n=r(72801),i=r(19931),c=r(74115),o=r(63498);function d(e){let{businessName:t,address:r,phoneNumber:l,socialLinks:d,loyaltyEnabled:m}=e;return(0,s.jsxs)("footer",{className:"background-tertiary-color flex w-full flex-col items-center justify-center space-y-[2.81rem] px-[4.38rem] pb-[1.25rem] pt-[2rem] text-white",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-center justify-center space-y-[2.81rem] lg:flex-row lg:justify-between lg:sp
1ace-y-0",children:[(0,s.jsxs)("div",{className:"flex flex-col justify-center space-y-[1.25rem]",children:[(0,s.jsx)("p",{className:"font-rubik text-[1.25rem] font-semibold lg:text-[1.75rem]",children:t}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between space-x-[1.81rem] lg:justify-start",children:[d&&d.facebook&&(0,s.jsx)(a(),{href:d.facebook,className:"text-[0.85rem]",children:(0,s.jsx)("div",{className:"rounded-full bg-black p-1",children:(0,s.jsx)(n.A,{size:24,color:"white"})})},"facebook"),d&&d.instagram&&(0,s.jsx)(a(),{href:d.instagram,className:"text-[0.85rem]",children:(0,s.jsx)("div",{className:"rounded-full bg-black p-1",children:(0,s.jsx)(i.A,{size:24,color:"white"})})},"instagram"),d&&d.others&&(0,s.jsx)(a(),{href:d.others,className:"text-[0.85rem]",children:(0,s.jsx)("div",{className:"rounded-full bg-black p-1",children:(0,s.jsx)(c.A,{size:24,color:"white"})})},"instagram")]})]}),(0,s.jsxs)("div",{className:"flex flex-col justify-center space-y-[1.25rem] text-center text-[1rem] lg:text-[1.5rem]",children:[(0,s.jsx)("p",{className:"font-rubik font-semibold",children:"Address"}),(0,s.jsx)("p",{className:"font-rubik font-light",children:r})]}),(0,s.jsxs)("div",{className:"flex flex-col justify-center space-y-[1.25rem] text-center text-[1rem] lg:text-[1.5rem]",children:[(0,s.jsx)("p",{className:"font-rubik font-semibold",children:"Call Us"}),(0,s.jsxs)("p",{className:"font-rubik font-light",children:["+",l]})]})]}),m&&(0,s.jsx)(a(),{href:"/loyalty",className:"text-[1.5rem] font-bold underline underline-offset-4",children:"Join our Loyalty Program"}),(0,s.jsx)(a(),{href:"https://tappi.app",className:"rounded-md bg-[#F2F1E4] px-[0.5rem] py-[0.25rem] text-[0.75rem] text-black",children:"Made with â¤ï¸ by tappi"}),(0,s.jsx)("button",{onClick:o.y,className:"text-[0.65rem] text-white/60 underline underline-offset-2 hover:text-white/80",children:"Cookie Settings"})]})}},76828:(e,t,r)=>{r.d(t,{default:()=>b});var s=r(95155);r(12115);var l=r(71038),a=r(89679),n=r(47974),i=r(72801),c=r(19931),o=r(92925),d=r(52619),m=r.n(d),x=r(20063),f=r(63498);function u(e){let{businessName:t,address:r,phoneNumber:i,email:c}=e;return(0,s.jsxs)("div",{className:"footer-background flex w-full flex-col items-center justify-center gap-y-2 space-y-[1.5rem] p-4 lg:w-[30%] lg:items-start",children:[(0,s.jsx)("h2",{className:"footer-text text-[1rem] font-bold",children:t}),(0,s.jsx)("p",{className:"footer-text w-full text-center text-[0.75rem] font-normal leading-[1.5rem] lg:text-left",children:"Committed to delivering quality products and exceptional service â built to support your success."}),(0,s.jsxs)("div",{className:"flex w-full flex-col items-center justify-start space-y-[1rem] lg:items-start",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center space-x-[1rem]",children:[(0,s.jsx)(l.A,{color:"#6b7280",size:10}),(0,s.jsx)("p",{className:"footer-text text-[0.75rem]",children:r})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center space-x-[1rem]",children:[(0,s.jsx)(a.A,{color:"#6b7280",size:10}),(0,s.jsx)("p",{className:"footer-text text-[0.75rem]",children:i})]}),c&&(0,s.jsxs)("div",{className:"flex flex-row items-center space-x-[1rem]",children:[(0,s.jsx)(n.A,{color:"#6b7280",size:10}),(0,s.jsx)("p",{className:"footer-text text-[0.75rem]",children:i})]})]})]})}function h(e){let{categories:t}=e,r=(0,x.usePathname)(),l=Array.isArray(t)?t:[];return(0,s.jsxs)("div",{className:"flex w-full flex-col justify-start space-y-[1rem] p-4 text-center lg:w-fit lg:items-start",children:[(0,s.jsx)("p",{className:"footer-text footer-text w-full text-center text-[1rem] font-bold lg:text-left",children:"Shop by category"}),l.slice(0,5).map(e=>(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/category/".concat(e.id),className:"footer-text w-full flex-shrink-0 text-[0.75rem] capitalize",children:e.category_name},e.id))]})}function p(e){let{loyaltyEnabled:t}=e,r=(0,x.usePathname)();return(0,s.jsxs)("div",{className:"flex w-full flex-col justify-start space-y-[1rem] p-4 lg:w-fit lg:items-end",children:[(0,s.jsx)("p",{className:"footer-text footer-text w-full text-center text-[1rem] font-bold lg:text-end",children:"Explore more"}),(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/products",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize lg:text-end",children:"Products"}),(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/reviews",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize lg:text-end",children:"Reviews"}),(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/offers",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize lg:text-end",children:"Offers"}),(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/blog",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize lg:text-end",children:"Blog"}),(0,s.jsx)(m(),{href:r.includes("/preview")?"#":"/contact",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize lg:text-end",children:"Contact us"}),t&&(0,s.jsx)(m(),{href:"/loyalty",className:"footer-text w-full flex-shrink-0 text-center text-[0.75rem] capitalize underline underline-offset-4 lg:text-end",children:"Join our Loyalty Program"}),(0,s.jsx)("button",{onClick:f.y,className:"footer-text w-full flex-shrink-0 text-center text-[0.65rem] underline underline-offset-2 opacity-60 hover:opacity-100 lg:text-end",children:"Cookie Settings"})]})}function g(e){let{socialLinks:t}=e;return(0,s.jsxs)("div",{className:"flex w-full flex-col items-center justify-start space-y-2.5 p-4 lg:w-fit",children:[(0,s.jsx)("p",{className:"footer-text text-left text-[1rem] font-bold",children:"Find us on:"}),(0,s.jsxs)("div",{className:"flex flex-row items-center justify-between space-x-[2.81rem] lg:justify-start",children:[t&&t.facebook&&(0,s.jsx)(m(),{href:t.facebook,children:(0,s.jsx)(i.A,{color:"#6b7280"})},"facebook"),t&&t.instagram&&(0,s.jsx)(m(),{href:t.instagram,className:"text-[0.85rem]",children:(0,s.jsx)(c.A,{color:"#6b7280"})},"instagram"),t&&t.others&&(0,s.jsx)(m(),{href:t.others,className:"text-[0.85rem]",children:(0,s.jsx)(o.A,{color:"#6b7280"})},"instagram")]})]})}let b=function(e){let{businessName:t,socialLinks:r,address:l,phoneNumber:a,email:n,categories:i,loyaltyEnabled:c}=e;return(0,s.jsxs)("div",{className:"footer-background mx-auto flex w-screen flex-col items-center justify-center p-4 lg:p-8",children:[(0,s.jsxs)("div",{className:"flex w-full max-w-screen-xl flex-col items-start justify-center pb-4 lg:flex-row lg:justify-between",children:[(0,s.jsx)(u,{businessName:t,address:l,phoneNumber:a,email:n}),(0,s.jsx)(h,{categories:i}),(0,s.jsx)(p,{loyaltyEnabled:c}),(r.others||r.facebook||r.instagram)&&(0,s.jsx)(g,{socialLinks:r})]}),(0,s.jsx)("div",{className:"border-color flex w-[95vw] items-center justify-center border-t-[1px] py-8",children:(0,s.jsx)(m(),{href:"https://tappi.app",target:"_blank",className:"footer-text text-[0.75rem]",children:"Made with â¤ï¸ by tappi"})})]})}},78919:(e,t,r)=>{r.d(t,{default:()=>x});var s=r(95155),l=r(86303),a=r(52619),n=r.n(a),i=r(25016),c=r(12115),o=r(31856),d=r(44622),m=r(20063);function x(e){let{businessName:t,industry:r}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(f,{businessName:t,industry:r}),(0,s.jsx)(u,{businessName:t,industry:r})]})}function f(e){let{businessName:t,industry:r}=e,a=(0,m.usePathname)();return(0,s.jsxs)("header",{className:"background-tertiary-color hidden flex-row items-center justify-between px-[4.38rem] pb-[1.5rem] pt-[2.56rem] font-rubik text-white lg:flex",children:[(0,s.jsx)(h,{businessName:t}),(0,s.jsx)("nav",{className:"flex flex-row items-center justify-start space-x-[1.88rem]",children:(0,l.A)(r).map(e=>(0,s.jsx)(n(),{className:(0,i.cn)("px-[0.5rem] py-[0.75rem] text-[1.13rem] font-normal",a===e.href&&"underline decoration-white decoration-[2px] underline-offset-4"),href:a.includes("/preview")?"#":e.href,children:e.label},e.label))})]})}function u(e){let{businessName:t,industry:r}=e,[a,x]=(0,c.useState)(!1),f=(0,m.usePathname)();return(0,s.jsxs)("header",{className:"background-tertiary-color flex w-full flex-row items-center justify-between px-[1rem] py-[1.5rem] font-rubik text-white lg:hidden",children:[(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(h,{businessName:t})}),(0,s.jsxs)(o.cj,{open:a,onOpenChange:x,children:[(0,s.jsx)(o.CG,{asChild:!0,children:(0,s.jsx)(d.A,{size:32})}),(0,s.jsxs)(o.h,{className:"w-full",side:"top",children:[(0,s.jsxs)(o.Fm,{children:[(0,s.jsx)(o.qp,{}),(0,s.jsx)(o.Qs,{})]}),(0,s.jsx)(h,{businessName:t}),(0,s.jsx)("div",{className:"flex w-full flex-col space-y-[2.5rem] pt-4",children:(0,l.A)(r).map(e=>(0,s.jsx)(n(),{className:(0,i.cn)("w-full px-[1rem] text-center text-[1.13rem] font-normal",f===e.href&&"underline decoration-white decoration-[1px]"),href:f.includes("/preview")?"#":e.href,onClick:()=>x(!1),children:e.label},e.label))})]})]})]})}let h=e=>{let{businessName:t}=e;return(0,s.jsx)(n(),{href:"/",className:"flex flex-row items-center space-x-[0.41rem]",children:(0,s.jsx)("h1",{className:"text-[1rem] font-semibold lg:text-[1.75rem]",children:t})})}},86036:(e,t,r)=>{r.d(t,{A:()=>s});let s=function(e,t){if(t)switch(e.schema_name){case"FoodEstablishment":return"View Menu";case"LodgingBusiness":return"View Rooms";case"TravelAgency":return"View Packages";case"RealEstateAgent":return"View Listings";case"ComputerStore":case"ElectronicsStore":case"ClothingStore":return"Shop Now";case"HealthClub":return"View Membership Options";
1case"MobilePhoneStore":return"View Offers";case"Store":return"View Products";case"MedicalBusiness":case"HealthAndBeautyBusiness":return"View Services";default:return"View Price List"}switch(e.schema_name){case"FoodEstablishment":case"LodgingBusiness":case"TravelAgency":case"InternetCafe":case"Agriculture":case"Retail and Shopping":default:return"Call Us";case"HomeAndConstructionBusiness":case"AutoRepair":case"ProfessionalService":case"FinancialService":case"AutomotiveBusiness":return"Request a Quote";case"MedicalBusiness":case"HealthAndBeautyBusiness":return"Book Appointment"}}},86303:(e,t,r)=>{r.d(t,{A:()=>l});let s=function(e){switch(e.schema_name){case"FoodEstablishment":return"Menu";case"LodgingBusiness":return"Bookings";case"TravelAgency":return"Packages";case"RealEstateAgent":return"Properties";case"ComputerStore":case"ElectronicsStore":case"MobilePhoneStore":case"Store":return"Products";case"ClothingStore":return"Collection";case"HealthClub":case"FinancialService":return"Plans";case"MedicalBusiness":case"HealthAndBeautyBusiness":case"ProfessionalService":return"Services";case"HomeAndConstructionBusiness":return"Materials & Services";case"AutoRepair":case"AutomotiveBusiness":return"Auto Services";default:return"Products & Services"}},l=function(e){return[{label:"Home",href:"/"},{label:s(e),href:"/products"},{label:"Reviews",href:"/reviews"},{label:"Offers",href:"/offers"},{label:"Blog",href:"/blog"},{label:"Contact us",href:"/contact"}]}},91103:(e,t,r)=>{r.d(t,{C1:()=>l,Ky:()=>a,iP:()=>n});var s=r(95704);s.env.API_KEY,s.env.DATABASE_URL;let l="https://neo-ke.tappi.app",a=s.env.X_API_KEY;s.env.REVIEW_SCREENSHOT_URL;let n="T-Bx85TSoQ05WSGkaBlqSFK_5N7yzY_UayWX9zsmnTe04TOGwJjoSLY_psxW6SejNC4C66qZcOcG4GZR2e7GiqLQ-Web";s.env.COUNTRY_CODE},91148:(e,t,r)=>{r.d(t,{default:()=>o});var s=r(95155),l=r(86303),a=r(52619),n=r.n(a),i=r(20063),c=r(63498);function o(e){let{businessName:t,industry:r,loyaltyEnabled:a}=e,o=(0,i.usePathname)();return(0,s.jsxs)("footer",{className:"background-tertiary-color flex w-full flex-col items-center justify-center space-y-[2.81rem] px-[4.38rem] pb-[1.25rem] pt-[2rem] text-white",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col items-center space-y-[2.81rem] lg:flex-row lg:justify-between lg:space-y-0",children:[(0,s.jsx)("p",{className:"text-white",children:t}),(0,s.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-between space-x-[2.81rem] lg:justify-start",children:(0,l.A)(r).map(e=>(0,s.jsx)(n(),{href:o.includes("/preview")?"#":e.href,className:"mt-[1rem] flex-shrink-0 text-[0.85rem] lg:mt-0",children:e.label},e.label))})]}),a&&(0,s.jsx)(n(),{href:"/loyalty",className:"text-sm font-bold underline underline-offset-4",children:"Join our Loyalty Program"}),(0,s.jsx)(n(),{href:"https://tappi.app",className:"bg-[#2A2A2C] px-[0.5rem] py-[0.25rem] text-[0.75rem]",children:"Made with â¤ï¸ by tappi"}),(0,s.jsx)("button",{onClick:c.y,className:"text-[0.65rem] text-white/60 underline underline-offset-2 hover:text-white/80",children:"Cookie Settings"})]})}},91664:(e,t,r)=>{r.d(t,{A:()=>s});let s={readMerchantDetailsUsingID:e=>"/merchants/web/".concat(e),readMerchantDetailsUsingSubdomain:(e,t)=>"/merchants/web/subdomain/".concat(e,"?country_id=").concat(t),readProducts:"/products/v2/web",readDocuments:e=>"/documents/web/documents/".concat(e),readCountries:"/countries",readReviews:(e,t,r)=>"/api/0.1.0/ext/tappi/reviews?joinCode=".concat(e,"&offset=").concat(t,"&limit=").concat(r,"&showNumber=false"),postReviewImages(e,t){let{name:r,rating:s,comm_id:l,phone_number:a,review:n,purchased:i,channel:c}=t,o="/reviews/image-review?join_code=".concat(e,"&name=").concat(r,"&rating=").concat(s,"&review=").concat(n,"&purchased=").concat(i,"&channel=").concat(c);return l&&(o+="&comm_id=".concat(l)),a&&(o+="&phone_number=".concat(a)),o},postReviews:"/reviews",fetchMerchantBusinessIdentifier:e=>"/merchants/".concat(e,"/list"),getAllCoupons:e=>"/coupon-programs/".concat(e),claimCoupon:e=>"/coupon-programs/".concat(e,"/claim"),submitContact:e=>"/contacts/".concat(e),googleReviews:e=>"/google-reviews?business_name=".concat(e),categories:e=>"/products/web/categories?merchant_id=".concat(e,"&page=1&size=100"),trackSharedReviews:"/reviews/platform",getMerchantMpes
1aPaymentConfig:e=>"/payments/".concat(e,"/configurations"),createPaymentIntent:"/payments/pay/intent",triggerStkPushAsCustomer:"/payments/pay/stk",retrievePaymentIntent:"/payments/pay/intent",retrieveReview:"/review",reviewScreenshot:"/review/screenshot",reviewIntegrationNotification:"/notifications/review-integrations",whatsapp_send_order:"/whatsapp/send-order",readProductDetails:(e,t)=>"/products/web/".concat(e,"?id=").concat(t),searchProduct:(e,t,r)=>"/products/v2/web?search_term=".concat(t,"&size=50&page=").concat(null!=r?r:1,"&merchant_id=").concat(e),seo_blog:"/blogs/web",read_all_blog_slugs:"/blogs/web/slugs",leave_feedback:"/reviews/feedback",read_payment:"/payments/web/manual-confirm",orders:"/orders",submitConsent:"/consent/web/immediate",updateOrderStatus:(e,t)=>"/orders/web/".concat(e,"/reconcile-payment?merchant_id=").concat(t)}},97003:(e,t,r)=>{r.d(t,{$:()=>o,r:()=>c});var s=r(95155),l=r(12115),a=r(32467),n=r(83101),i=r(25016);let c=(0,n.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),o=l.forwardRef((e,t)=>{let{className:r,variant:l,size:n,asChild:o=!1,...d}=e,m=o?a.DX:"button";return(0,s.jsx)(m,{className:(0,i.cn)(c({variant:l,size:n,className:r})),ref:t,...d})});o.displayName="Button"},98107:(e,t,r)=>{r.d(t,{default:()=>L});var s=r(95155),l=r(12115),a=r(35108),n=r(52619),i=r.n(n),c=r(15239),o=r(90109),d=r(45218),m=r(51190),x=r(63263),f=r(51348),u=r(36631);let h=e=>{let[t,r]=(0,l.useState)(1),[s,n]=(0,l.useState)(""),[i,c]=(0,l.useState)({items:[],total:0}),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,[r,s]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let r=setTimeout(()=>s(e),t);return()=>clearTimeout(r)},[e,t]),r}(s,400),{data:d,isLoading:m}=(0,a.useQuery)(["/product-photos",t,o,e],()=>(0,u.j0)({id:e,page:t,size:50,...o.length>=3&&{search_term:o}}),{enabled:o.length>=3&&!!e});return(0,l.useEffect)(()=>{d&&c(d)},[d]),(0,l.useEffect)(()=>{r(1)},[o]),{searchedProducts:i,isLoadingProducts:m,page:t,setPage:r,searchTerm:s,setSearchTerm:n,setSearchedProducts:c}};var p=r(11314);let g=()=>(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)(p.A,{className:"h-[1.25rem] w-[1.25rem] animate-spin text-white"})});var b=r(5801),j=r(20063);let w=function(e){var t;let{searchTerm:r,searchedProducts:a,setSearchTerm:n,isLoadingProducts:o,setSearchedProducts:d}=e;(0,j.useRouter)();let m=(0,l.useRef)(null);return(0,l.useEffect)(()=>{r.length>=3&&a.items.length>0?document.body.style.overflow="hidden":document.body.style.overflow="auto";let e=e=>{let t=e.target;!m.current||m.current.contains(t)||t.closest("#navbar")||(n(""),d({items:[],total:0}))};return r.length>=3&&a.items.length>0&&document.addEventListener("mousedown",e),()=>{document.body.style.overflow="auto",document.removeEventListener("mousedown",e)}},[r.length,a.items.length,n,d]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsxs)("div",{className:"absolute right-2 top-[11rem] z-40 flex h-[15vh] w-[95vw] flex-row items-center justify-center space-x-2 bg-white drop-shadow-2xl lg:right-0 lg:top-[3.5rem] lg:w-full",children:[(0,s.jsx)(p.A,{className:"h-[1.25rem] w-[1.25rem] animate-spin text-gray-500"}),(0,s.jsx)("span",{className:"text-gray-500",children:"Searching..."})]}),(0,s.jsx)("div",{ref:m,className:"absolute right-2 top-[11rem] z-40 grid max-h-[40vh] w-[95vw] grid-cols-2 divide-x-[1px] divide-y-[1px] divide-border overflow-y-scroll roun
1ded-b-md bg-white drop-shadow-2xl lg:right-0 lg:top-[3.5rem] lg:max-h-[40vh] lg:w-full lg:grid-cols-3",children:r.length>=3&&(null==a||null==(t=a.items.slice(0,30))?void 0:t.map(e=>(0,s.jsx)(i(),{href:"/products/".concat(e.id),className:"flex cursor-pointer flex-row items-start justify-between space-x-2 px-4 py-2 transition-colors active:bg-gray-100",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.default,{src:e.thumbnail_url||e.photo_url,alt:e.product_name,className:"h-[3rem] w-[3rem] overflow-hidden object-cover object-center lg:h-[4.063rem] lg:w-[4.063rem]",width:65,height:65}),(0,s.jsxs)("div",{className:"flex flex-col items-end justify-start space-y-[1rem]",children:[(0,s.jsx)("h3",{className:"text-right text-[0.75rem] font-semibold text-black",children:e.product_name}),(0,s.jsx)("div",{className:"accent-text text-[1rem] font-bold",children:(0,s.jsx)(b.default,{amount:e.price||0})})]})]})},e.id)))})]})};function y(e){let{phoneNumber:t,loyaltyEnabled:r}=e;return(0,s.jsx)("div",{className:"flex h-10 w-screen items-center justify-center px-4 accent-background",children:(0,s.jsxs)("div",{className:"flex w-full max-w-screen-xl flex-row items-center justify-between py-4",children:[(0,s.jsxs)("p",{className:"text-[0.875rem] font-bold text-white",children:["Call: ",t]}),r?(0,s.jsx)(i(),{href:"/loyalty",className:"text-[0.875rem] font-bold uppercase text-white underline",children:"Join our loyalty program and earn rewards on every purchase!"}):(0,s.jsx)("p",{className:"text-[0.875rem] font-bold text-white",children:"SHOP FOR QUALITY PRODUCTS AND ENJOY HIGH QUALITY SERVICE"})]})})}function A(e){let{profileImage:t,businessName:r,merchantId:l}=e;return(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-screen-xl flex-row items-center justify-between space-x-[2rem] p-4",children:[(0,s.jsx)(v,{profileImage:t,businessName:r}),(0,s.jsx)(N,{merchantId:l}),(0,s.jsx)(k,{})]})}let v=e=>{let{profileImage:t,businessName:r}=e;return(0,s.jsx)(i(),{href:"/",className:"flex flex-row items-center space-x-[1rem]",children:(0,s.jsx)(c.default,{src:t,alt:"".concat(r,"'s website"),className:"h-[3.13rem] w-[15.13rem] overflow-hidden rounded-full object-cover object-center",height:50,width:150})})},N=e=>{let{merchantId:t}=e,{setSearchTerm:r,isLoadingProducts:l,searchTerm:a,searchedProducts:n,setSearchedProducts:i}=h(t);return(0,s.jsxs)("div",{className:"border-color relative flex flex-1 flex-row items-center justify-between rounded-md border-[1px] px-2 py-1.5",children:[(0,s.jsx)("input",{value:a,onChange:e=>r(e.target.value),type:"text",placeholder:"Start typing to search (min. 3 letters)",className:"w-full rounded-lg px-4 py-2 outline-none ring-0 focus-within:outline-none focus-within:ring-0 focus:ring-0"}),(0,s.jsx)("div",{className:"flex h-[2.5rem] w-[2.5rem] items-center justify-center rounded-md accent-background",children:l?(0,s.jsx)(g,{}):(0,s.jsx)(o.A,{size:20,color:"white"})}),(0,s.jsx)(w,{searchTerm:a,searchedProducts:n,setSearchTerm:r,isLoadingProducts:l,setSearchedProducts:i})]})}
1,k=()=>{let e=(0,j.usePathname)(),t=(0,f.l)(e=>e.cartItems);return(0,s.jsxs)(i(),{href:e.includes("/preview")?"#":"/cart",className:"relative flex h-[2.5rem] w-[2.5rem] items-center justify-center rounded-full accent-background",children:[(0,s.jsx)("span",{className:"background-primary-color absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full border-[1px] border-[#1d4ed8] text-[0.75rem] text-[#1d4ed8]",children:t.length}),(0,s.jsx)(d.A,{size:20,color:"white"})]})},C=e=>{let{categories:t}=e,r=Array.isArray(t)?t:[],a=(0,j.usePathname)(),n=(0,l.useRef)(null),c=e=>{n.current&&n.current.scrollBy({left:e,behavior:"smooth"})};return(0,s.jsx)("div",{className:"relative mx-auto flex w-screen items-center justify-center px-4 accent-background",children:(0,s.jsxs)("div",{className:"flex w-full max-w-screen-xl flex-row items-center justify-between space-x-[4rem] py-4",children:[(0,s.jsxs)("div",{className:"relative flex w-[50vw] flex-1 items-center justify-start space-x-[2rem]",children:[(0,s.jsx)("button",{onClick:()=>c(-150),className:"absolute left-0 z-10 hidden h-8 w-8 items-center justify-center rounded-full bg-white/20 text-white hover:bg-white/40 md:flex",children:(0,s.jsx)(m.A,{size:20})}),(0,s.jsx)("div",{ref:n,className:"scrollbar-hide hover:scrollbar-show mask-fade-right flex flex-1 flex-row items-center justify-start divide-x divide-white overflow-x-auto scroll-smooth px-8",children:r.map(e=>(0,s.jsx)(i(),{href:a.includes("/preview")?"#":"/category/".concat(e.id),className:"flex-shrink-0 px-[1rem] text-[0.875rem] font-bold text-white",children:e.category_name},e.id))}),(0,s.jsx)("button",{onClick:()=>c(150),className:"absolute right-0 z-10 hidden h-8 w-8 items-center justify-center rounded-full bg-white/20 text-white hover:bg-white/40 md:flex",children:(0,s.jsx)(x.A,{size:20})})]}),(0,s.jsx)(i(),{href:a.includes("/preview")?"#":"/contact",className:"flex-shrink-0 text-[0.875rem] font-bold text-white",children:"Contact Us"})]})})},S=function(e){let{phoneNumber:t,profileImage:r,businessName:l,categories:a,merchantId:n,loyaltyEnabled:i}=e;return(0,s.jsxs)("div",{id:"navbar",className:"background-primary-color hidden w-screen flex-col items-center justify-center lg:block",children:[(0,s.jsx)(y,{phoneNumber:t,loyaltyEnabled:i}),(0,s.jsx)(A,{profileImage:r,businessName:l,merchantId:n}),(0,s.jsx)(C,{categories:a})]})};var E=r(44622),P=r(31856);let I=e=>{let{profileImage:t,businessName:r,categories:a}=e,n=(0,j.usePathname)(),[c,o]=(0,l.useState)(!1),d=Array.isArray(a)?a:[];return(0,s.jsxs)(P.cj,{open:c,onOpenChange:o,children:[(0,s.jsx)(P.CG,{asChild:!0,children:(0,s.jsx)(E.A,{size:32})}),(0,s.jsxs)(P.h,{className:"w-full",side:"left",children:[(0,s.jsxs)(P.Fm,{children:[(0,s.jsx)(P.qp,{children:(0,s.jsx)(_,{profileImage:t,businessName:r})}),(0,s.jsx)(P.Qs,{})]}),(0,s.jsxs)("div",{className:"flex h-[90vh] w-full flex-col items-center space-y-[3rem] overflow-y-hidden pt-4",children:[(0,s.jsx)("p",{className:"w-full text-left text-[1rem] font-bold text-black",children:"Shop by category"}),(0,s.jsx)("div",{className:"flex w-full flex-1 flex-col items-center justify-start divide-y-[1px] divide-gray-400 overflow-y-scroll",children:d.map(e=>(0,s.jsx)(i(),{href:n.includes("/preview")?"#":"/category/".concat(e.id),className:"w-full flex-shrink-0 py-[1rem] text-[0.75rem] font-bold capitalize text-black",children:e.category_name},e.id))})]})]})]})},z=e=>{let{merchantId:t,loyaltyEnabled:r}=e,{setSearchTerm:l,isLoadingProducts:a,searchTerm:n,searchedProducts:i,setSearchedProducts:c}=h(t);return(0,s.jsxs)("div",{className:"w-full px-4 py-4 accent-background",children:[r&&(0,s.jsxs)("div",{className:"text-md mb-5 w-full px-[1.25rem] py-[0.75rem] text-center font-spaceGrotesk font-bold text-white",children:["Join our loyalty program and earn rewards on every purchase!"," ",(0,s.jsx)("a",{href:"/loyalty",className:"font-semibold underline underline-offset-4",children:"Sign up now"}),"."]}),(0,s.jsxs)("div",{className:"border-color relative flex flex-1 flex-row items-center justify-between rounded-md border-[1px] bg-white px-2 py-1.5",children:[(0,s.jsx)("input",{value:n,onChange:e=>l(e.target.value),type:"text",placeholder:"Start typing to search (min. 3 letters)",className:"w-full rounded-lg px-4 py-2 outline-none ring-0 focus-within:outline-none focus-within:ring-0 focus:ring-0"}),(0,s.jsx)("div",{className:"flex h-[2.5rem] w-[2.5rem] items-center justify-center rounded-md accent-background",children:a?(0,s.jsx)(g,{}):(0,s.jsx)(o.A,{size:20,color:"white"})})]}),(0,s.jsx)(w,{searchedProducts:i,setSearchTerm:l,isLoadingProducts:a,searchTerm:n,setSearchedProducts:c})]})},_=e=>{let{profileImage:t,businessName:r}=e;return(0,s.jsx)(i(),{href:"/",className:"flex flex-row items-center space-x-[1rem]",children:(0,s.jsx)(c.default,{src:t,alt:"".concat(r,"'s website"),className:"h-[3.13rem] w-[3.13rem] overflow-hidden rounded-full object-cover object-center",height:50,width:50})})},R=()=>{let e=(0,j.usePathname)(),t=(0,f.l)(e=>e.cartItems);return(0,s.jsxs)(i(),{href:e.includes("/preview")?"#":"/cart",className:"relative flex h-[3.13rem] w-[3.13rem] items-center justify-center rounded-full",children:[(0,s.jsx)("span",{className:"absolute -right-1 -top-1 flex h-6 w-6 items-center justify-center rounded-full border-[1px] border-[#1d4ed8] text-[0.8rem] text-white accent-background",children:t.length}),(0,s.jsx)(d.A,{size:30,color:"black"})]})},F=function(e){let{profileImage:t,businessName:r,categories:l,merchantId:a,loyaltyEnabled:n}=e;return(0,s.jsxs)("div",{id:"navbar",className:"background-primary-color block w-full lg:hidden",children:[(0,s.jsxs)("header",{className:"flex w-full flex-row items-center justify-between px-[1rem] py-[1.5rem] font-rubik",children:[(0,s.jsx)(I,{profileImage:t,businessName:r,categories:l}),(0,s.jsx)("div",{className:"flex items-center gap-x-4",children:(0,s.jsx)(_,{profileImage:t,businessName:r})}),(0,s.jsx)(R,{})]}),(0,s.jsx)(z,{merchantId:a,loyaltyEnabled:n})]})},B=new a.QueryClient({defaultOptions:{queries:{refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!0,retry:!1}}}),L=function(e){let{profileImage:t,businessName:r,phoneNumber:l,categories:n,merchantId:i,loyaltyEnabled:c}=e;return(0,s.jsxs)(a.QueryClientProvider,{client:B,children:[(0,s.jsx)(S,{profileImage:t,businessName:r,phoneNumber:l,categories:n,merchantId:i,loyaltyEnabled:c}),(0,s.jsx)(F,{profileImage:t,businessName:r,categories:n,merchantId:i,loyaltyEnabled:c})]})}}}]);
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.