1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5818],{52292:(e,t,a)=>{a.d(t,{B2:()=>x,Fp:()=>c,WF:()=>p,c5:()=>h,to:()=>m,uK:()=>f,wk:()=>d,zo:()=>u});var s=a(95155),n=a(91337),r=a(33210),i=a(29857);a(5199);var l=a(41455),o=a(12115);let c=({children:e,className:t})=>{let[a,r]=(0,o.useState)(!1),[i,l]=(0,o.useState)(!1),c=(0,o.useRef)(0),d=(0,o.useRef)(!1),x=(0,o.useCallback)(()=>{let e=window.scrollY;e>0?(r(!0),l(e>c.current&&e>150)):(r(!1),l(!1)),c.current=e,d.current=!1},[]);return(0,o.useEffect)(()=>{c.current=window.scrollY;let e=()=>{d.current||(window.requestAnimationFrame(x),d.current=!0)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[x]),(0,s.jsx)("div",{style:{transform:i?"translateY(-150px)":"translateY(0px)"},className:(0,n.cn)("fixed inset-x-0 top-0 z-[2000] landing-section-container max-w-[1650px]! mx-auto transition-all duration-700 ease-out delay-100",t,a?"pt-0!":""),children:(0,s.jsx)("div",{className:(0,n.cn)("landing-content-padding",a?"px-0! md:px-0!":""),children:o.Children.map(e,e=>(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{visible:a}):e)})})},d=({children:e,className:t,visible:a})=>(0,s.jsx)("div",{style:{width:a?"min(calc(100vw - 2rem), 1280px)":"
1100%",maxWidth:"calc(100vw - 2rem)",transform:a?"translateY(20px)":"translateY(0)",contain:"none",willChange:"width, transform"},className:(0,n.cn)("relative z-[60] mx-auto hidden min-[881px]:flex w-full flex-row items-center justify-between self-start rounded-full py-[2px] transition-all duration-700 ease-out delay-100",a?"glass_card_black px-3 shadow-2xl":"landing-content-container border-transparent shadow-none",t),children:e}),x=e=>e.startsWith("/")&&!e.startsWith("//"),p=({items:e,children:t,className:a,onItemClick:r})=>{let[i,c]=(0,o.useState)(null);return(0,s.jsxs)("div",{onMouseLeave:()=>c(null),className:(0,n.cn)("absolute inset-0 hidden flex-1 flex-row items-center justify-center space-x-2 text-sm font-medium text-zinc-300 transition duration-200 hover:text-white min-[881px]:flex min-[881px]:space-x-2",a),children:[e?.map((e,t)=>{let a=x(e.link)?l.N_:"a";return(0,s.jsxs)(a,{onMouseEnter:()=>c(t),onClick:r,target:e.target??"_self",rel:e.rel??void 0,className:(0,n.cn)("group relative px-4 h-[48px] flex text-white",e.className),href:e.link,children:[(0,s.jsx)("div",{className:(0,n.cn)("absolute inset-0 h-full w-full rounded-full bg-white/[0.07] transition-all duration-200 ease-out",i===t?"opacity-100 scale-100":"opacity-0 scale-95")}),(0,s.jsx)("span",{className:"relative z-20 font-bricolage uppercase text-white/50 group-hover:text-white transition-colors duration-200 text-[14px] my-auto",children:e.name})]},`link-${t}`)}),t]})},h=({children:e,className:t,visible:a})=>(0,s.jsx)("div",{style:{width:a?"90%":"100%",paddingLeft:a?"12px":"0px",paddingRight:a?"12px":"0px",borderRadius:a?"4px":"2rem",transform:a?"translateY(20px)":"translateY(0)",contain:"none",willChange:"width, transform, padding, border-radius"},className:(0,n.cn)("relative z-50 mx-auto flex w-full max-w-[calc(100vw-2rem)] flex-col items-center justify-between bg-transparent py-2 min-[881px]:hidden rounded-[18px]! transition-all duration-300 ease-out",a?"glass_card_black pt-0 shadow-2xl":"border-transparent shadow-none",t),children:e}),m=({children:e,className:t})=>(0,s.jsx)("div",{className:(0,n.cn)("flex w-full flex-row items-center justify-between",t),children:e}),u=({children:e,className:t,isOpen:a})=>(0,s.jsx)("div",{className:(0,n.cn)("absolute inset-x-0 top-20 z-50 flex w-full flex-col items-start justify-start gap-4 roun
1ded-[24px] bg-neutral-950/90 px-6 py-4 border border-white/10 transition-all duration-300 ease-in-out",a?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 -translate-y-2 pointer-events-none",t),children:e}),f=({isOpen:e,onClick:t})=>e?(0,s.jsx)(r.A,{className:"text-white",onClick:t}):(0,s.jsx)(i.A,{className:"text-white",onClick:t})},60693:(e,t,a)=>{a.d(t,{r:()=>d});var s=a(95155),n=a(74937),r=a(45601),i=a(2693),l=a(82464),o=a(37002),c=a(41455);function d(){let{openAuthModal:e}=(0,r.w)(),{language:t}=(0,i.n)(),a=l.P[t],d=(0,o.useGlobalStore)(e=>e.current_user),x=null!=d&&!d.IsGuest,p=(0,c.rd)(),h=async()=>{x?p.push("/home"):await e(!0)};return(0,s.jsxs)("button",{onClick:h,"aria-label":a.landing.start_gifting,className:"cursor-pointer inline-flex items-center gap-3 h-[48px] pl-[5px] pr-6 rounded-full bg-gradient-to-br from-[#0a2240] to-[#103460] border border-white/10 text-white text-[14px] font-semibold uppercase whitespace-nowrap no-underline will-change-transform transition-[transform,box-shadow] transition-all duration-300 hover:-translate-y-0.5 hover:scale-[1.02] hover:shadow-[0_6px_28px_rgba(0,80,151,0.35)]",children:[(0,s.jsx)("span",{className:"flex items-center justify-center w-[38px] h-[38px] rounded-full bg-black/25 flex-shrink-0 ",children:(0,s.jsx)(n.A,{src:"/sugary-web-assets/icons/lock.svg",alt:"lock",width:22,height:22})}),x?a.landing.start_gifting:a.auth.sign_in]})}},65818:(e,t,a)=>{a.d(t,{default:()=>v});var s=a(95155),n=a(52292),r=a(12115),i=a(41455),l=a(74937),o=a(5199),c=a(60693),d=a(6962),x=a(66088),p=a(61878),h=a(33210),m=a(68245),u=a(91459),f=a(54419),w=a(2693),g=a(37002),b=a(82464),j=a(45601);let y=`${"https://d1wh1xji6f82aw.cloudfront.net/".replace(/\/$/,"")}/WebImages`,N=()=>{let[e,t]=(0,r.useState)(!1),{language:a}=(0,w.n)(),n=b.P[a];return(0,s.jsxs)("div",{onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),className:"relative shrink-0 z-50",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>t(e=>!e),"aria-label":n.landing.download_app,className:"cursor-pointer font-poppins bg-white/5 inline-flex items-center justify-center gap-2 h-[48px] rounded-full text-white text-[13px] font-semibold uppercase whitespace-nowrap hover:bg-white/[0.07] transition-all duration-150 w-[48px] px-0 min-[1101px]:w-auto min-[1101px]:px-4",children:[(0,s.jsx)(d.A,{size:18,className:"shrink-0"}),(0,s.jsx)("span",{className:"hidden min-[1101px]:inline",children:n.landing.download_app}),(0,s.jsx)(x.A,{size:14,className:`hidden min-[1101px]:inline-block transition-transform duration-200 shrink-0 ${e?"rotate-180":""}`})]}),(0,s.jsx)("div",{className:` 2 absolute right-0 min-[1101px]:left-0 top-[52px] min-w-full w-max transition-all duration-300 ease-out bg-black/95 rounded-[22px] border border-white/10 shadow-2xl z-50 3 ${e?"opacity-100 translate-y-0 pointer-events-auto":"opacity-0 -translate-y-2 pointer-events-none"} 4 `,children:(0,s.jsxs)("ul",{className:"px-[12px] py-[5px] m-0",children:[(0,s.jsx)("li",{className:"cursor-pointer list-none py-[11px] text-center text-sm transition-all duration-100 ease-in-out border-b border-white/5",children:(0,s.jsxs)(i.N_,{href:"https://apps.apple.com/us/app/sugary-gift-app/id6444475666",target:"_blank",className:"text-white no-underline transition-all duration-100 ease-in-out opacity-60 hover:opacity-100 text-sm text-center flex justify-center items-center",style:{fontFamily:"Cairo, sans-serif"},children:[(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/apple.svg",alt:n.footer.app_store,width:16,height:16,className:"h-4 mr-[0.3rem]"}),"App Store"]})}),(0,s.jsx)("li",{className:"cursor-pointer list-none py-[11px] text-center text-sm transition-all duration-100 ease-in-out border-b border-white/5",children:(0,s.jsxs)(i.N_,{href:"https://play.google.com/store/apps/details?id=com.app.sugary",target:"_blank",className:"text-white no-underline transition-all duration-100 ease-in-out opacity-60 hover:opacity-100 text-sm text-center flex justify-center items-center",style:{fontFamily:"Cairo, sans-serif"},children:[(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/playstore.svg",alt:n.footer.google_play,width:16,height:16,className:"h-4 mr-[0.3rem]"}),"Play Store"]})}),(0,s.jsx)("li",{className:"cursor-pointer list-none py-[11px] text-center text-sm transition-all duration-100 ease-in-out border-b border-white/5",children:(0,s.jsxs)(i.N_,{href:"tel:+971526604952",className:"text-white no-underline transition-all duration-100 ease-in-out opacity-60 hover:opacity-100 text-sm text-center flex justify-center items-center",style:{fontFamily:"Cairo, sans-serif"},children:[(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/phone.svg",alt:"Phone",width:16,height:16,className:"h-4 mr-[0.3rem]"}),"+1 7078SUGARY"]})}),(0,s.jsxs)("li",{className:"border-b-0 flex justify-center mt-2 cursor-pointer list-none py-[11px] text-center text-sm gap-1",children:[(0,s.jsx)(i.N_,{href:"https://instagram.com/sugary.gifts",target:"_blank",className:"mx-[2px] opacity-60 hover:opacity-100 transition-all duration-100 ease-in-out",children:(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/instagram.svg",width:20,height:20,alt:"Instagram",className:"h-5 w-5"})}),(0,s.jsx)(i.N_,{href:"https://www.facebook.com/sugary.gifting",target:"_blank",className:"mx-[2px] opacity-60 hover:opacity-100 transition-all duration-100 ease-in-out",children:(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/fb.svg",width:20,height:20,alt:"Facebook",className:"h-5 w-5"})}),(0,s.jsx)(i.N_,{href:"https://www.linkedin.com/company/20402144",target:"_blank",className:"mx-[2px] opacity-60 hover:opacity-100 transition-all duration-100 ease-in-out",children:(0,s.jsx)(l.A,{src:"https://d1wh1xji6f82aw.cloudfront.net/WebImages/Icons/linkedin.svg",width:20,height:20,alt:"LinkedIn",className:"h-5 w-5"})}),(0,s.jsx)(i.N_,{href:"https://www.youtube.com/@sugarygifts",target:"_blank",className:"mx-[2px] opacity-60 hover:opacity-100 transition-all duration-100 ease-in-out",children:(0,s.jsx)(l.A,{src:"/sugary-web-assets/icons/youtube.svg",width:20,height:20,alt:"Youtube",className:"h-5 w-5"})})]})]})})]})};function v({className:e}){let t=(0,i.rd)(),a=(0,g.useGlobalStore)(e=>e.current_user),{openAuthModal:d}=(0,j.w)(),{language:x}=(0,w.n)(),_=b.P[x],[k,C]=(0,r.useState)(!1),[I,A]=(0,r.useState)(!1),z=e=>{e.trim()&&(t.push(`/search?q=${encodeURIComponent(e.trim())}`),C(!1))},S=[{name:_.landing.become_partner,link:"/partner",className:"hidden min-[1101px]:flex"}],$=a?"/home":"/";return(0,s.jsx)("div",{className:"relative w-full",children:(0,s.jsxs)(n.Fp,{className:`top-2 ${e}`,children:[(0,s.jsxs)(n.wk,{className:"hidden min-[881px]:flex items-center justify-between gap-2 lg:gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",children:[(0,s.jsx)(i.N_,{href:$,className:"relative z-20 mr-1 flex items-center space-x-2 px-2 py-1.5 shrink-0","aria-label":"Sugary",children:(0,s.jsx)(o.d,{className:"w-[100px] lg:w-[120px] h-auto mt-[12px] ml-[6px]"})}),(0,s.jsx)("div",{className:"flex-1 min-w-[130px] max-w-[400px] mx-1",children:(0,s.jsx)(f.T,{handleSearch:z,placeholderText:_.header.search,className:"w-full"})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 lg:gap-3 mr-[4px] shrink-0",children:[(0,s.jsx)(n.WF,{items:S,className:"!relative !inset-auto !flex-none flex items-center",children:(0,s.jsx)(N,{})}),(0,s.jsxs)(u.m_,{children:[(0,s.jsx)(u.k$,{asChild:!0,children:(0,s.jsx)("div",{className:"shrink-0 flex items-center cursor-pointer",children:(0,s.jsx)(m.c,{variant:"text-circle"})})}),(0,s.jsx)(u.ZI,{side:"bottom",className:"bg-white text-sm font-semibold rounded-xl border border-gray-100 shadow-2xl",children:(0,s.jsxs)("p",{children:[_.header.language," & ",_.header.currency]})})]}),(0,s.jsx)(c.r,{})]})]}),(0,s.jsxs)(n.c5,{children:[(0,s.jsxs)(n.to,{children:[(0,s.jsx)(i.N_,{href:$,className:"relative z-20 mr-2 flex items-center space-x-2 px-2 ml-2 py-1 shrink-0","aria-label":"Sugary",children:(0,s.jsx)(o.d,{className:"w-[100px] xs:w-[110px] h-auto mt-3 translate-y-1.5"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mr-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>C(e=>
4!e),className:`cursor-pointer grid place-items-center h-[48px] w-[48px] rounded-full glass_card_black transition-all duration-200 border ${k?"border-white/30 bg-white/10 text-white":"border-white/10 hover:bg-white/5 text-white/80"}`,"aria-label":"Open search","aria-expanded":k,children:(0,s.jsx)(p.A,{size:16})}),(0,s.jsxs)(u.m_,{children:[(0,s.jsx)(u.k$,{asChild:!0,children:(0,s.jsx)("div",{className:"shrink-0 flex items-center cursor-pointer",children:(0,s.jsx)(m.c,{variant:"text-circle"})})}),(0,s.jsx)(u.ZI,{side:"bottom",className:"bg-white text-sm font-semibold rounded-xl border border-gray-100 shadow-2xl",children:(0,s.jsxs)("p",{children:[_.header.language," & ",_.header.currency]})})]}),(0,s.jsx)("div",{className:"w-1"}),(0,s.jsx)(n.uK,{isOpen:I,onClick:()=>A(!I)})]})]}),k&&(0,s.jsx)("div",{className:"w-full px-2 py-2 animate-in fade-in slide-in-from-top-2 duration-200",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(f.T,{handleSearch:z,placeholderText:_.header.search,className:"flex-1 w-full",autoFocus:!0}),(0,s.jsx)("button",{type:"button",onClick:()=>C(!1),className:"cursor-pointer shrink-0 grid place-items-center h-[48px] w-[48px] rounded-full glass_card_black border border-white/10 hover:bg-white/5 transition-all duration-200","aria-label":"Close search",children:(0,s.jsx)(h.A,{size:17,className:"text-white/80"})})]})}),(0,s.jsxs)(n.zo,{isOpen:I,onClose:()=>A(!1),children:[S.map((e,t)=>{let a=(0,n.B2)(e.link)?i.N_:"a";return(0,s.jsx)(a,{href:e.link,target:e.target??"_self",onClick:()=>A(!1),className:"flex items-center justify-center w-full px-5 py-3.5 rounded-[14px] text-white text-[14px] font-bold uppercase no-underline bg-white/10 border border-white/20 transition-all duration-200 hover:bg-white/15 active:scale-[0.98]",children:(0,s.jsx)("span",{className:"block",children:e.name})},`mobile-link-${t}`)}),!a&&(0,s.jsx)("button",{type:"button",className:"flex items-center justify-center w-full px-5 py-3.5 rounded-[14px] text-white text-[14px] font-bold uppercase bg-gradient-to-br from-[#0a2240] to-[#103460] border border-white/10 transition-all duration-300 hover:shadow-[0_6px_28px_rgba(0,80,151,0.35)] active:scale-[0.98] cursor-pointer",onClick:()=>{A(!1),d(!0)},children:(0,s.jsx)("span",{className:"block",children:_.auth.sign_in})}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4 w-full",children:[(0,s.jsxs)(i.N_,{href:"https://apps.apple.com/us/app/sugary-gift-app/id6444475666",target:"_blank",className:"w-full flex items-center gap-3 px-4 py-3 bg-white/5 glass_card rounded-2xl hover:bg-white/10 hover:border-white/20 transition-all group animate-image-reveal",children:[(0,s.jsx)(l.A,{src:`${y}/Icons/apple.svg`,alt:_.footer.app_store,width:20,height:20,className:"brightness-0 invert opacity-80 group-hover:opacity-100 transition-opacity"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] leading-none text-white/40 font-medium",children:_.footer.download_on}),(0,s.jsx)("span",{className:"text-[12px] font-bold leading-none text-white/90 mt-1",children:_.footer.app_store})]})]}),(0,s.jsxs)(i.N_,{href:"https://play.google.com/store/apps/details?id=com.app.sugary",target:"_blank",className:"w-full flex items-center gap-3 px-4 py-3 bg-white/5 glass_card rounded-2xl hover:bg-white/10 hover:border-white/20 transition-all group animate-image-reveal",children:[(0,s.jsx)(l.A,{src:`${y}/Icons/playstore.svg`,alt:_.footer.google_play,width:20,height:20,className:"opacity-80 group-hover:opacity-100 transition-opacity"}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[10px] leading-none text-white/40 font-medium",children:_.footer.get_it_on}),(0,s.jsx)("span",{className:"text-[12px] font-bold leading-none text-white/90 mt-1",children:_.footer.google_play})]})]})]})]})]})]})})}}}]);
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.