1import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{d as t,i as n,t as r,u as i}from"./button-BRhMMokE.js";import{t as a}from"./router-compat-BycnWsTm.js";import{a as o}from"./dist-CqPHDj2N.js";import{t as s}from"./arrow-right-DCB5DMn-.js";import{t as c}from"./award-BMuUA_mO.js";import{t as l}from"./building-2-D6_JwI_K.js";import{t as u}from"./chef-hat-C1sMJjaO.js";import{t as d}from"./chevron-left-BZtJ6MHx.js";import{t as f}from"./chevron-right-BLABY_uu.js";import{t as p}from"./clock-DNr-LdYa.js";import{n as m}from"./LanguageContext-DY01oGfY.js";import{t as h}from"./map-pin-Bs4OWzDX.js";import{t as g}from"./message-square-VnXry_gx.js";import{t as _}from"./mic-B_5ZmTko.js";import{t as v}from"./phone-Cqp0b26s.js";import{t as y}from"./shopping-bag-BLXT51ar.js";import{t as b}from"./star-DH3pzw4f.js";import{A as x,D as S,P as C,T as w,a as T,c as E,d as D,f as ee,g as O,h as k,i as A,k as j,l as M,m as N,o as P,p as F,s as I,u as L}from"./index-BWLRzRkE.js";import{t as R}from"./input-BGXmoTjz.js";import{t as z}from"./label-DTgy3WzC.js";import{a as B,n as V,o as H,r as U,t as W}from"./dialog-Bmi0BMCP.js";import{t as G}from"./CustomerChatbot-Cdvrv3Ta.js";import{t as K}from"./wholesale-hero-CTTL37cB.js";import{n as q,t as te}from"./CookingGuideSubscribeForm-Cw31jajg.js";var J=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Y=n(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),X=n(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),Z=e(t(),1),Q=i(),ne=()=>{let[e,t]=(0,Z.useState)(0),{t:n,language:i}=m(),a=[{id:0,title:n(`hero.slide1.title`),subtitle:n(`hero.slide1.subtitle`),description:n(`hero.slide1.description`),image:D,cta:n(`hero.slide1.cta`),ctaLink:`/collections/special-promotion`,external:!1},{id:1,title:i===`zh-HK`?`æ¹ç¼ä¾æ`:i===`zh-CN`?`æ¹åä¾åº`:`Wholesale Supply`,subtitle:i===`zh-HK`?`ð¨ é¤å»³åé
åºå°æ¥ä¾æ`:i===`zh-CN`?`ð¨ é¤å
åé
åºä¸ä¸ä¾åº`:`ð¨ For Restaurants & Hotels`,description:i===`zh-HK`?`é ç´æå¤§å©é£ææ¹ç¼ â åèãèå£«ãæ°é®®æç²ã鬿çã`:i===`zh-CN`?`顶级æå¤§å©é£ææ¹å â å»èãèå£«ãæ°é²æç²ãé
±æçã`:`Premium Italian ingredients wholesale â cold cuts, cheeses, fresh pasta, sauces & more.`,image:K,cta:i===`zh-HK`?`æ¥çæ¹ç¼è©³æ
`:i===`zh-CN`?`æ¥çæ¹å详æ
`:`View Wholesale Details`,ctaLink:`/wholesale`,external:!1},{id:2,title:i===`zh-HK`?`æå¤§å©ç¹é£ªæå`:i===`zh-CN`?`æå¤§å©ç¹é¥ªæå`:`Italian Cooking Guide`,subtitle:i===`zh-HK`||i===`zh-CN`?`ð 10é宿´ç³»å`:`ð Complete 10-Episode Series`,description:i===`zh-HK`?`å
è²»å¸ç¿æ£å®æå¤§å©ç¹é£ªæå·§ï¼ç±å°æ¥å»å¸«ææã`:i===`zh-CN`?`å
è´¹å¦ä¹ æ£å®æå¤§å©ç¹é¥ªæå·§ï¼ç±ä¸ä¸å¨å¸ææã`:`Learn authentic Italian cooking techniques from professional chefs â free masterclass.`,image:q,cta:i===`zh-HK`?`ç«å³è§ç`:i===`zh-CN`?`ç«å³è§ç`:`Watch Now`,ctaLink:`/italian-cooking-guide`,external:!1}];(0,Z.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%a.length)},6e3);return()=>clearInterval(e)},[a.length]);let o=e=>t(e),s=()=>t(e=>(e-1+a.length)%a.length),c=()=>t(e=>(e+1)%a.length),l=(e,t,n)=>{if(!n&&t.startsWith(`#`)){e.preventDefault();let n=document.querySelector(t);n&&n.scrollIntoView({behavior:`smooth`})}};return(0,Q.jsxs)(`section`,{className:`relative h-svh min-h-[600px] overflow-hidden`,children:[a.map((t,i)=>(0,Q.jsxs)(`div`,{className:`absolute inset-0 transition-opacity duration-1000 ${i===e?`opacity-100 pointer-events-auto`:`opacity-0 pointer-events-none`}`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0`,children:[(0,Q.jsx)(`img`,{src:t.image,alt:t.title,width:1920,height:1080,className:`absolute inset-0 w-full h-full object-cover object-center`,loading:i===0?`eager`:`lazy`,fetchPriority:i===0?`high`:`auto`,decoding:`async`}),(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-background via-background/80 to-transparent`})]}),(0,Q.jsx)(`div`,{className:`relative h-full container mx-auto px-4 flex items-center pb-16 md:pb-0`,children:(0,Q.jsxs)(`div`,{className:`max-w-2xl pl-2 md:pl-0 pr-4 md:pr-0`,children:[(0,Q.jsx)(`span`,{className:`inline-block text-italian-gold text-sm uppercase tracking-[0.2em] sm:tracking-[0.3em] font-medium mb-2 sm:mb-4 ${i===e?`animate-fade-up`:``}`,style:{animationDelay:`0.2s`},children:n(`hero.brandName`)}),(0,Q.jsx)(`h1`,{className:`font-display text-4xl sm:text-5xl md:text-7xl lg:text-8xl font-bold leading-tight mb-1 sm:mb-2 ${i===e?`animate-fade-up`:``}`,style:{animationDelay:`0.4s`},children:t.title}),(0,Q.jsx)(`h2`,{className:`font-display text-xl sm:text-2xl md:text-3xl lg:text-4xl font-light text-italian-cream mb-2 sm:mb-6 ${i===e?`animate-fade-up`:``}`,style:{animationDelay:`0.5s`},children:t.subtitle}),(0,Q.jsx)(`p`,{className:`text-base sm:text-lg text-muted-foreground mb-4 sm:mb-8 max-w-lg ${i===e?`animate-fade-up`:``}`,style:{animationDelay:`0.6s`},children:t.description}),(0,Q.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-stretch sm:items-center gap-2 sm:gap-4 ${i===e?`animate-fade-up`:``}`,style:{animationDelay:`0.8s`}
1,children:[(0,Q.jsx)(r,{size:`lg`,className:`bg-italian-green hover:bg-italian-green/90 text-foreground px-6 sm:px-8 py-4 sm:py-6 text-sm sm:text-lg`,asChild:!0,children:t.external?(0,Q.jsx)(`a`,{href:t.ctaLink,target:`_blank`,rel:`noopener noreferrer`,children:t.cta}):(0,Q.jsx)(`a`,{href:t.ctaLink,onClick:e=>l(e,t.ctaLink,t.external),children:t.cta})}),(0,Q.jsx)(r,{variant:`outline`,size:`lg`,className:`px-6 sm:px-8 py-4 sm:py-6 text-sm sm:text-lg border-foreground/20 hover:bg-foreground/10`,asChild:!0,children:(0,Q.jsx)(`a`,{href:`/collections`,children:n(`hero.exploreShop`)})})]})]})})]},t.id)),(0,Q.jsx)(`button`,{onClick:s,className:`absolute left-2 md:left-8 top-1/2 -translate-y-1/2 w-8 h-8 md:w-12 md:h-12 rounded-full bg-background/60 backdrop-blur-sm flex items-center justify-center hover:bg-background/80 transition-colors z-10`,"aria-label":`Previous slide`,children:(0,Q.jsx)(d,{className:`w-4 h-4 md:w-6 md:h-6`})}),(0,Q.jsx)(`button`,{onClick:c,className:`absolute right-2 md:right-8 top-1/2 -translate-y-1/2 w-8 h-8 md:w-12 md:h-12 rounded-full bg-background/60 backdrop-blur-sm flex items-center justify-center hover:bg-background/80 transition-colors z-10`,"aria-label":`Next slide`,children:(0,Q.jsx)(f,{className:`w-4 h-4 md:w-6 md:h-6`})}),(0,Q.jsx)(`div`,{className:`absolute bottom-12 md:bottom-20 left-1/2 -translate-x-1/2 flex items-center gap-3`,children:a.map((t,n)=>(0,Q.jsx)(`button`,{onClick:()=>o(n),className:`h-2 rounded-full transition-all duration-300 ${n===e?`w-8 bg-italian-gold`:`w-2 bg-foreground
1/30 hover:bg-foreground/50`}`,"aria-label":`Go to slide ${n+1}`},n))}),(0,Q.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 bg-italian-red py-3`,children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsxs)(`p`,{className:`text-center text-sm md:text-base font-medium`,children:[`ð `,n(`hero.promoBanner`)]})})})]})},re=()=>(0,Q.jsxs)(`section`,{className:`py-16 md:py-24 bg-gradient-to-br from-[#1e5799] via-[#2989d8] to-[#207cca] relative overflow-hidden`,children:[(0,Q.jsx)(`div`,{className:`absolute top-10 right-10 opacity-10`,children:(0,Q.jsx)(v,{className:`w-32 h-32 text-white`})}),(0,Q.jsx)(`div`,{className:`absolute bottom-10 left-10 opacity-10`,children:(0,Q.jsx)(g,{className:`w-24 h-24 text-white`})}),(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsxs)(`div`,{className:`max-w-4xl mx-auto text-center`,children:[(0,Q.jsx)(`span`,{className:`inline-block bg-italian-gold text-white text-xs font-bold px-4 py-1.5 rounded-full mb-6 uppercase tracking-wider`,children:`New Launch`}),(0,Q.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-4 uppercase tracking-wide`,children:`Talking Shopping`}),(0,Q.jsx)(`p`,{className:`text-white/90 text-lg md:text-xl italic mb-8`,children:`"Like speaking to your grocer in Rome, but digital."`}),(0,Q.jsx)(`p`,{className:`text-white/80 text-base md:text-lg mb-10 max-w-2xl mx-auto`,children:`We are proud to launch an exclusive innovation for The Italian Club Group. Forget browsing endless pages.`}),(0,Q.jsx)(`div`,{className:`flex flex-col md:flex-row items-start md:items-center justify-center gap-6 mb-12`,children:[{icon:_,title:`Send Voice Notes:`,description:`"I need ingredients for Lasagna."`},{icon:Y,title:`Chat in Real-Time:`,description:`Ask for cooking tips.`},{icon:x,title:`Instant Cart:`,description:`We fill it for you.`}].map((e,t)=>(0,Q.jsxs)(`div`,{className:`flex items-start gap-3 text-left`,children:[(0,Q.jsx)(`div`,{className:`flex-shrink-0 w-6 h-6 rounded-full bg-italian-gold/20 flex items-center justify-center mt-0.5`,children:(0,Q.jsx)(o,{className:`w-4 h-4 text-italian-gold`})}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:`text-white font-semibold`,children:e.title}),` `,(0,Q.jsx)(`span`,{className:`text-white/80`,children:e.description})]})]},t))}),(0,Q.jsxs)(`div`,{className:`max-w-md mx-auto mb-10 space-y-4`,children:[(0,Q.jsx)(`div`,{className:`flex justify-end animate-fade-in`,style:{animationDelay:`0.2s`,animationFillMode:`both`},children:(0,Q.jsx)(`div`,{className:`bg-italian-gold text-white px-4 py-3 rounded-2xl rounded-br-md max-w-xs shadow-lg`,children:(0,Q.jsx)(`p`,{className:`text-sm`,children:`Hey, I need a good red wine for steak.`})})}),(0,Q.jsx)(`div`,{className:`flex justify-start animate-fade-in`,style:{animationDelay:`0.8s`,animationFillMode:`both`},children:(0,Q.jsx)(`div`,{className:`bg-white text-gray-800 px-4 py-3 rounded-2xl rounded-bl-md max-w-xs shadow-lg`,children:(0,Q.jsx)(`p`,{className:`text-sm`,children:`Buongiorno! I suggest our Barolo DOCG. Shall I add it to your cart?`})})})]}),(0,Q.jsx)(`div`,{className:`flex justify-center`,children:(0,Q.jsxs)(r,{onClick:()=>{let e=document.querySelector(`[aria-label="Open AI Chat"]`);e&&e.click()},size:`lg`,className:`bg-secondary hover:bg-secondary/90 text-white font-bold uppercase tracking-wider px-8 py-6 text-base rounded-lg shadow-xl transition-all hover:scale-105 flex items-center gap-3`,children:[(0,Q.jsx)(g,{className:`w-5 h-5`}),`Chat Now`]})}),(0,Q.jsxs)(`p`,{className:`mt-6 text-white/60 text-sm`,children:[`Powered by`,` `,(0,Q.jsx)(`a`,{href:`https://smert.ai`,target:`_blank`,rel:`noopener noreferrer`,className:`text-italian-gold hover:text-italian-gold/80 transition-colors underline underline-offset-2`,children:`Smert.ai`})]})]})})]}),ie=[{id:1,nameKey:`specialPromotion`,image:F,href:`/collections/special-promotion`},{id:2,nameKey:`readyToEat`,image:ee,href:`/collections/ready-to-eat`},{id:3,nameKey:`coldCuts`,image:D,href:`/collections/italian-cold-cuts`},{id:4,nameKey:`italianCheese`,image:L,href:`/collections/italian-cheese`},{id:5,nameKey:`pasta`,image:M,href:`/collections/italian-pasta-1`},{id:8,nameKey:`seafood`,image:E,href:`/collections/seafood`},{id:9,nameKey:`italianBakery`,image:I,href:`/collections/bread-bakery`},{id:10,nameKey:`oliveOilVinegar`,image:P,href:`/collections/extra-virgin-olive-oil-vinegar`},{id:11,nameKey:`italianButcher`,image:T,href:`/collections/italian-butcher`},{id:12,nameKey:`grocery`,image:A,href:`/collections/grocery-online`}],ae=({src:e,alt:t,priority:n=!1})=>{let[r,i]=(0,Z.useState)(!1);return(0,Q.jsxs)(`div`,{className:`absolute inset-0`,children:[(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-muted flex items-center justify-center`,children:(0,Q.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:`Loading...`})}),!r&&(0,Q.jsx)(`img`,{src:e,alt:t,className:`absolute inset-0 w-full h-full object-cover transition-transform duration-700 group-hover:scale-110`,loading:n?`eager`:`lazy`,decoding:`async`,onError:()=>i(!0)})]})},oe=()=>{let{t:e,language:t}=m(),n=t===`zh-HK`||t===`zh-CN`;return(0,Q.jsx)(`section`,{id:`shop`,className:`py-20 bg-background`,children:(0,Q.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,Q.jsxs)(`div`,{className:`text-center mb-16`,children:[(0,Q.jsx)(`span`,{className:`text-italian-gold text-sm uppercase tracking-[0.3em] font-medium`,children:e(`categories.sectionLabel`)}),(0,Q.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl font-bold mt-3 mb-4 ${n?`font-chinese-display`:``}`,children:e(`categories.title`)}),(0,Q.jsx)(`p`,{className:`text-muted-foreground max-w-2xl mx-auto ${n?`font-chinese-body`:``}`,children:e(`categories.description`)})]}),(0,Q.jsx)(`div`,{className:`grid grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-6`,children:ie.map((t,r)=>(0,Q.jsxs)(a,{to:t.href,className:`group relative overflow-hidden rounded-lg aspect-[4/3] shadow-card`,style:{animationDelay:`${r*.1}s`},children:[(0,Q.jsx)(ae,{src:t.image,alt:e(`categories.names.${t.nameKey}`),priority:r<6}),(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-background via-background/40 to-transparent opacity-80 group-hover:opacity-90 transition-opacity duration-300`}),(0,Q.jsxs)(`div`,{className:`absolute inset-0 flex flex-col justify-end p-3 sm:p-6`,children:[(0,Q.jsx)(`h3`,{className:`font-display text-base sm:text-2xl font-bold mb-1 sm:mb-2 group-hover:text-italian-gold transition-colors ${n?`font-chinese-display`:``}`,children:e(`categories.names.${t.nameKey}`)}),(0,Q.jsxs)(`span`,{className:`inline-flex items-center text-xs sm:text-sm text-italian-green font-medium ${n?`font-chinese-body`:``}`,children:[e(`categories.shopNow`),(0,Q.jsx)(`svg`,{className:`w-3 h-3 sm:w-4 sm:h-4 ml-1 sm:ml-2 transform group-hover:translate-x-1 transition-transform`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,Q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M9 5l7 7-7 7`})})]})]})]},t.id))})]})})},se=()=>{let{t:e,language:t}=m(),n=t===`zh-HK`||t===`zh-CN`;return(0,Q.jsxs)(`section`,{className:`relative py-16 bg-gradient-to-r from-italian-red via-italian-red/95 to-italian-red overflow-hidden`,children:[(0,Q.jsxs)(`div`,{className:`absolute inset-0 opacity-10`,children:[(0,Q.jsx)(`div`,{className:`absolute top-0 left-1/4 w-64 h-64 bg-italian-gold rounded-full blur-3xl`}),(0,Q.jsx)(`div`,{className:`absolute bottom-0 right-1/4 w-96 h-96 bg-ital
1ian-cream rounded-full blur-3xl`})]}),(0,Q.jsx)(`div`,{className:`container mx-auto px-4 relative`,children:(0,Q.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-8 items-center`,children:[(0,Q.jsx)(`div`,{className:`order-2 md:order-1`,children:(0,Q.jsxs)(`div`,{className:`relative aspect-[4/3] rounded-2xl overflow-hidden shadow-2xl`,children:[(0,Q.jsx)(`img`,{src:`https://images.unsplash.com/photo-1574071318508-1cdbab80d002?w=800&h=600&fit=crop`,alt:`Fresh homemade pizza with authentic Italian ingredients`,className:`w-full h-full object-cover`}),(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/30 to-transparent`})]})}),(0,Q.jsxs)(`div`,{className:`order-1 md:order-2 text-center md:text-left`,children:[(0,Q.jsx)(`span`,{className:`inline-block text-italian-cream/90 text-sm uppercase tracking-[0.2em] font-medium mb-2 ${n?`font-chinese-body`:``}`,children:e(`pizzaBanner.label`)}),(0,Q.jsx)(`h2`,{className:`font-display text-3xl md:text-4xl lg:text-5xl font-bold text-foreground mb-3 ${n?`font-chinese-display`:``}`,children:e(`pizzaBanner.title`)}),(0,Q.jsx)(`p`,{className:`text-foreground/90 text-lg max-w-xl mb-6 ${n?`font-chinese-body`:``}`,children:e(`pizzaBanner.description`)}),(0,Q.jsx)(r,{size:`lg`,className:`bg-italian-green hover:bg-italian-green/90 text-foreground px-8 py-6 text-lg shadow-lg ${n?`font-chinese-body`:``}`,asChild:!0,children:(0,Q.jsx)(`a`,{href:`/collections/pizza-experience`,children:e(`pizzaBanner.cta`)})})]})]})})]})};function ce(){let[e,t]=(0,Z.useState)([]),[n,r]=(0,Z.useState)(!0);(0,Z.useEffect)(()=>{i()},[]);let i=async()=>{try{let{data:e,error:n}=await w.from(`customer_reviews`).select(`id, customer_name, rating, review_text, booking_date, created_at`).eq(`is_published`,!0).gte(`rating`,4).is(`booking_date`,null).order(`created_at`,{ascending:!1}).limit(6);if(n)throw n;t(e||[])}catch(e){console.error(`Error loading reviews:`,e)}finally{r(!1)}};if(n||e.length===0)return null;let a=e=>Array.from({length:5}).map((t,n)=>(0,Q.jsx)(b,{className:`h-4 w-4 ${n<e?`fill-[#d4af37] text-[#d4af37]`:`text-muted-foreground`}`},n));return(0,Q.jsx)(`section`,{className:`py-16 md:py-24 bg-gradient-to-b from-background to-muted/30`,children:(0,Q.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,Q.jsxs)(`div`,{className:`text-center mb-12`,children:[(0,Q.jsx)(`h2`,{className:`font-display text-3xl md:text-4xl font-bold text-foreground mb-4`,children:`What Our Customers Say`}),(0,Q.jsx)(`p`,{className:`text-muted-foreground max-w-2xl mx-auto`,children:`Feedback from our online shop customers`})]}),(0,Q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`,children:e.map(e=>(0,Q.jsxs)(`div`,{className:`bg-card rounded-xl p-6 shadow-lg border border-border hover:shadow-xl transition-shadow relative`,children:[(0,Q.jsx)(X,{className:`absolute top-4 right-4 h-8 w-8 text-primary/10`}),(0,Q.jsx)(`div`,{className:`flex items-center gap-1 mb-3`,children:a(e.rating)}),e.review_text&&(0,Q.jsxs)(`p`,{className:`text-foreground/80 text-sm leading-relaxed mb-4 line-clamp-4`,children:[`"`,e.review_text,`"`]}),(0,Q.jsxs)(`div`,{className:`flex items-center justify-between mt-auto pt-4 border-t border-border/50`,children:[(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`p`,{className:`font-medium text-foreground`,children:e.customer_name||`Happy Customer`})}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-1 text-[#d4af37]`,children:[(0,Q.jsx)(b,{className:`h-4 w-4 fill-current`}),(0,Q.jsx)(`span`,{className:`text-sm font-semibold`,children:e.rating})]})]})]},e.id))})]})})}var le=()=>{let{t:e}=m(),t=[{title:e(`cookingCourse.features.episodes`),description:e(`cookingCourse.features.episodesDesc`)},{title:e(`cookingCourse.features.fassona`),description:e(`cookingCourse.features.fassonaDesc`)},{title:e(`cookingCourse.features.truffle`),description:e(`cookingCourse.features.truffleDesc`)},{title:e(`cookingCourse.features.freshPasta`),description:e(`cookingCourse.features.freshPastaDesc`)},{title:e(`cookingCourse.features.wine`),description:e(`cookingCourse.features.wineDesc`)}];return(0,Q.jsx)(`section`,{id:`cooking-course`,className:`py-20 bg-ital
1ian-cream/10`,children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsxs)(`div`,{className:`grid lg:grid-cols-2 gap-12 items-start`,children:[(0,Q.jsxs)(`div`,{className:`text-center lg:text-left`,children:[(0,Q.jsx)(`span`,{className:`inline-block bg-italian-red text-foreground px-6 py-2 rounded-full text-sm font-medium mb-6`,children:e(`cookingCourse.badge`)}),(0,Q.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl font-bold mb-4`,children:e(`cookingCourse.title`)}),(0,Q.jsxs)(`div`,{className:`flex justify-center lg:justify-start gap-4 mb-6`,children:[(0,Q.jsx)(`div`,{className:`w-24 h-1 bg-italian-green rounded-full`}),(0,Q.jsx)(`div`,{className:`w-24 h-1 bg-background rounded-full`}),(0,Q.jsx)(`div`,{className:`w-24 h-1 bg-italian-red rounded-full`})]}),(0,Q.jsx)(`p`,{className:`text-muted-foreground mb-8 text-lg`,children:e(`cookingCourse.description`)}),(0,Q.jsxs)(`div`,{className:`space-y-4`,children:[(0,Q.jsx)(`h3`,{className:`font-display text-xl font-semibold text-italian-green`,children:e(`cookingCourse.seriesTitle`)}),t.map((e,t)=>(0,Q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Q.jsx)(`div`,{className:`w-6 h-6 rounded-full bg-italian-green/20 flex items-center justify-center shrink-0 mt-0.5`,children:(0,Q.jsx)(o,{className:`w-4 h-4 text-italian-green`})}),(0,Q.jsxs)(`p`,{children:[(0,Q.jsx)(`strong`,{children:e.title}),` `,e.description]})]},t))]})]}),(0,Q.jsxs)(`div`,{className:`bg-italian-red rounded-2xl p-6 md:p-8`,children:[(0,Q.jsxs)(`div`,{className:`text-center mb-6 text-foreground`,children:[(0,Q.jsx)(`h3`,{className:`font-display text-2xl md:text-3xl font-bold mb-2`,children:e(`cookingCourse.formTitle`)}),(0,Q.jsx)(`p`,{className:`opacity-90`,children:e(`cookingCourse.formSubtitle`)})]}),(0,Q.jsx)(te,{})]})]})})})},ue=()=>{let{t:e,language:t}=m(),n=t===`zh-HK`||t===`zh-CN`;return(0,Q.jsx)(`section`,{className:`py-20 bg-card border-y border-border`,children:(0,Q.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,Q.jsxs)(`div`,{className:`text-center mb-12`,children:[(0,Q.jsx)(`span`,{className:`text-italian-gold text-sm uppercase tracking-[0.3em] font-medium ${n?`font-chinese-body`:``}`,children:e(`delivery.label`)}),(0,Q.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl font-bold mt-3 mb-4 ${n?`font-chinese-display`:``}`,children:e(`delivery.title`)}),(0,Q.jsx)(`p`,{className:`text-muted-foreground max-w-2xl mx-auto ${n?`font-chinese-body`:``}`,children:e(`delivery.description`)})]}),(0,Q.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-6 max-w-4xl mx-auto`,children:[(0,Q.jsxs)(`div`,{className:`bg-background rounded-xl p-6 border border-border`,children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,Q.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-italian-green/20 flex items-center justify-center`,children:(0,Q.jsx)(j,{className:`w-6 h-6 text-italian-green`})}),(0,Q.jsxs)(`div`,{className:n?`font-chinese-body`:``,children:[(0,Q.jsx)(`h3`,{className:`font-display text-lg font-bold ${n?`font-chinese-display`:``}`,children:e(`delivery.standard.title`)}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.standard.subtitle`)})]})]}),(0,Q.jsxs)(`ul`,{className:`space-y-3 ${n?`font-chinese-body`:``}`,children:[(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(h,{className:`w-4 h-4 text-italian-green shrink-0 mt-0.5`}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`p`,{className:`text-sm font-medium`,children:e(`delivery.standard.coverage`)})})]}),(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(`span`,{className:`w-4 h-4 flex items-center justify-center text-italian-green font-bold text-xs`,children:`$`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`p`,{className:`text-sm`,children:[(0,Q.jsx)(`span`,{className:`text-italian-green font-semibold`,children:e(`delivery.standard.freeLabel`)}),` `,e(`delivery.standard.freeCondition`)]}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.standard.paidCondition`)})]})]}),(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(p,{className:`w-4 h-4 text-italian-green shrink-0 mt-0.5`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`text-sm`,children:e(`delivery.standard.timing`)}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.standard.timingNote`)})]})]})]})]}),(0,Q.jsxs)(`div`,{className:`bg-background rounded-xl p-6 border border-italian-gold/30`,children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-3 mb-5`,children:[(0,Q.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-italian-gold/20 flex items-center justify-center`,children:(0,Q.jsx)(S,{className:`w-6 h-6 text-italian-gold`})}),(0,Q.jsxs)(`div`,{className:n?`font-chinese-body`:``,children:[(0,Q.jsx)(`h3`,{className:`font-display text-lg font-bold ${n?`font-chinese-display`:``}`,children:e(`delivery.express.title`)}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.express.subtitle`)})]})]}),(0,Q.jsxs)(`ul`,{className:`space-y-3 ${n?`font-chinese-body`:``}`,children:[(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(h,{className:`w-4 h-4 text-italian-gold shrink-0 mt-0.5`}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(`p`,{className:`text-sm font-medium`,children:e(`delivery.express.coverage`)})})]}),(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(`span`,{className:`w-4 h-4 flex items-center justify-center text-italian-gold font-bold text-xs`,children:`$`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`text-sm`,children:e(`delivery.express.pricing`)}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.express.pricingNote`)})]})]}),(0,Q.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Q.jsx)(p,{className:`w-4 h-4 text-italian-gold shrink-0 mt-0.5`}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`text-sm`,children:e(`delivery.express.timing`)}),(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e(`delivery.express.timingNote`)})]})]})]})]})]})]})})},de=()=>{let{t:e,language:t}=m(),n=t===`zh-HK`||t===`zh-CN`;return(0,Q.jsx)(`section`,{className:`py-16 md:py-24 bg-gradient-to-b from-background to-muted/30`,children:(0,Q.jsxs)(`div`,{className:`container mx-auto px-4`,children:[(0,Q.jsxs)(`div`,{className:`text-center mb-12`,children:[(0,Q.jsx)(`span`,{className:`text-italian-green text-sm uppercase tracking-[0.3em] font-medium ${n?`font-chinese-body`:``}`,children:e(`news.label`)}),(0,Q.jsx)(`h2`,{className:`font-display text-4xl md:text-5xl font-bold mt-3 mb-4 ${n?`font-chinese-display`:``}`,children:e(`news.title`)}),(0,Q.jsx)(`p`,{className:`text-muted-foreground max-w-2xl mx-auto ${n?`font-chinese-body`:``}`,children:e(`news.description`)})]}
1),(0,Q.jsx)(`div`,{className:`max-w-6xl mx-auto space-y-8`,children:(0,Q.jsx)(`div`,{className:`bg-card rounded-2xl overflow-hidden shadow-card border border-border`,children:(0,Q.jsxs)(`div`,{className:`grid md:grid-cols-2 gap-0`,children:[(0,Q.jsxs)(`div`,{className:`relative aspect-square md:aspect-auto`,children:[(0,Q.jsx)(`video`,{src:`/images/products/paccheri-3-tomatoes.mp4`,className:`w-full h-full object-cover`,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,poster:`/images/products/paccheri-3-tomatoes.png`}),(0,Q.jsx)(`div`,{className:`absolute top-4 left-4`,children:(0,Q.jsx)(`span`,{className:`px-3 py-1 text-sm font-bold bg-italian-green text-white rounded-full`,children:`NEW`})})]}),(0,Q.jsxs)(`div`,{className:`p-6 md:p-8 flex flex-col justify-center`,children:[(0,Q.jsx)(`h3`,{className:`font-display text-2xl md:text-3xl font-bold mb-4 ${n?`font-chinese-display`:``}`,children:e(`news.items.paccheri3Tomatoes.title`)}),(0,Q.jsx)(`p`,{className:`text-muted-foreground mb-6 ${n?`font-chinese-body`:``}`,children:e(`news.items.paccheri3Tomatoes.description`)}),(0,Q.jsx)(`div`,{className:`flex flex-wrap gap-3 mb-6`,children:(0,Q.jsxs)(`div`,{className:`flex items-center gap-2 bg-italian-green/10 border border-italian-green/30 rounded-full px-4 py-2`,children:[(0,Q.jsx)(y,{className:`w-4 h-4 text-italian-green`}),(0,Q.jsx)(`span`,{className:`font-medium text-sm ${n?`font-chinese-body`:``}`,children:e(`news.items.paccheri3Tomatoes.shopPrice`)})]})}),(0,Q.jsxs)(`div`,{className:`bg-muted/50 rounded-xl p-4 mb-6`,children:[(0,Q.jsx)(`p`,{className:`text-sm font-semibold text-foreground mb-3 ${n?`font-chinese-body`:``}`,children:e(`news.doItAtHome.title`)}),(0,Q.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,Q.jsx)(`div`,{className:`flex-shrink-0`,children:(0,Q.jsx)(`img`,{src:`/images/products/3-tomatoes-parmigiano-sauce.png`,alt:`3 Tomatoes & Parmigiano Sauce`,className:`w-16 h-16 object-cover rounded-lg border border-border`})}),(0,Q.jsx)(`div`,{className:`flex-shrink-0`,children:(0,Q.jsx)(`img`,{src:`/images/products/paccheri-pasta-250g.png`,alt:`Paccheri Pasta 250g`,className:`w-16 h-16 object-cover rounded-lg border border-border`})}),(0,Q.jsx)(`div`,{className:`flex-1`,children:(0,Q.jsx)(`p`,{className:`text-xs text-muted-foreground ${n?`font-chinese-body`:``}`,children:e(`news.doItAtHome.combo`)})})]})]}),(0,Q.jsxs)(`div`,{className:`flex flex-wrap gap-3`,children:[(0,Q.jsx)(r,{asChild:!0,className:`bg-italian-green hover:bg-italian-green/90`,children:(0,Q.jsxs)(`a`,{href:`/shop`,className:n?`font-chinese-body`:``,children:[(0,Q.jsx)(J,{className:`w-4 h-4 mr-2`}),e(`news.items.paccheri3Tomatoes.shopCta`)]})}),(0,Q.jsx)(r,{asChild:!0,variant:`outline`,children:(0,Q.jsxs)(`a`,{href:`/products/paccheri-pasta-250g`,className:n?`font-chinese-body`:``,children:[(0,Q.jsx)(y,{className:`w-4 h-4 mr-2`}),e(`news.items.paccheriPasta.shopCta`)]})})]})]})]})})})]})})},fe=()=>{let{language:e}=m(),t=e===`zh-HK`||e===`zh-CN`,n={badge:t?`æ¹ç¼å伿¥åä½`:`Wholesale & B2B`,title:t?`çºæ¨çé¤é£²æ¥åæä¾åªè³ªæå¤§å©èªè飿`:`Certified Italian Products for Your Hospitality Business`,subtitle:t?`æåéé Italian Ventures çºé¦æ¸¯åæ¾³éçé¤å»³ãé åºãé å§ååå¡å»³æä¾æ£å®æå¤§å©èªè飿æ¹ç¼æååå°å±¬B2Bå¹³å°ã`:`Through Italian Ventures, we supply certified Italian ingredients wholesale to restaurants, hotels, bars & cafés across Hong Kong & Macau with our dedicated B2B platform.`,cta:t?`è¯çµ¡æå`:`Get in Touch`,features:t?[{icon:u,label:`æ£å®æå¤§å©èªè飿`},{icon:l,label:`é¤é£²æ¥æ¹ç¼å¹æ ¼`},{icon:c,label:`Italian Ventures å°å±¬å¹³å°`}]:[{icon:u,label:`Certified Italian Products`},{icon:l,label:`Wholesale Pricing`},{icon:c,label:`Italian Ventures Platform`}]};return(0,Q.jsxs)(`section`,{id:`wholesale`,className:`relative py-20 md:py-28 overflow-hidden`,children:[(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-cover bg-center`,style:{backgroundImage:`url(${K})`}}),(0,Q.jsx)(`div`,{className:`absolute inset-0 bg-black/65`}),(0,Q.jsx)(`div`,{className:`container mx-auto px-4 relative z-10`,children:(0,Q.jsxs)(`div`,{className:`max-w-3xl mx-auto text-center`,children:[(0,Q.jsx)(`span`,{className:`inline-block px-4 py-1.5 rounded-full bg-white/15 text-white text-sm font-semibold tracking-wide uppercase mb-6 backdrop-blur-sm`,children:n.badge}),(0,Q.jsx)(`h2`,{className:`text-3xl md:text-4xl font-bold text-white mb-4`,children:n.title}),(0,Q.jsx)(`p`,{className:`text-lg text-white/80 mb-8 leading-relaxed`,children:n.subtitle}),(0,Q.jsx)(`div`,{className:`flex flex-wrap justify-center gap-6 mb-10`,children:n.features.map((e,t)=>(0,Q.jsxs)(`div`,{className:`flex items-center gap-2 text-white/90`,children:[(0,Q.jsx)(e.icon,{className:`w-5 h-5 text-white`}),(0,Q.jsx)(`span`,{className:`text-sm font-medium`,children:e.label})]},t))}),(0,Q.jsx)(r,{size:`lg`,asChild:!0,className:`bg-primary hover:bg-primary/90 text-primary-foreground`,children:(0,Q.jsxs)(a,{to:`/wholesale`,children:[n.cta,(0,Q.jsx)(s,{className:`w-4 h-4 ml-2`})]})})]})})]})},pe=({section:e})=>{switch(e.section_type){case`hero`:return(0,Q.jsx)(ne,{});case`talking_shopping`:return(0,Q.jsx)(re,{});case`category_grid`:return(0,Q.jsx)(oe,{});case`pizza_banner`:return(0,Q.jsx)(se,{});case`festive`:case`happy_hours`:case`menu`:case`booking`:return null;case`reviews`:return(0,Q.jsx)(ce,{});case`cooking_course`:return(0,Q.jsx)(le,{});case`delivery`:return(0,Q.jsx)(ue,{});case`news`:return(0,Q.jsx)(de,{});case`wholesale`:return(0,Q.jsx)(fe,{});case`banner`:return(0,Q.jsx)($,{content:e.content});case`text_block`:return(0,Q.jsx)(me,{content:e.content});case`cta`:return(0,Q.jsx)(he,{content:e.content});case`features`:return(0,Q.jsx)(ge,{content:e.content});case`image_gallery`:return(0,Q.jsx)(_e,{content:e.content});default:return null}},$=({content:e})=>{let{heading:t,subheading:n,imageUrl:i,ctaText:a,ctaLink:o,backgroundColor:s}=e;return(0,Q.jsx)(`section`,{className:`py-12 md:py-16`,style:{backgroundColor:s||void 0},children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsxs)(`div`,{className:`flex flex-col md:flex-row items-center gap-8`,children:[i&&(0,Q.jsx)(`div`,{className:`flex-shrink-0`,children:(0,Q.jsx)(`img`,{src:i,alt:t||`The Italian Club Hong Kong promotional banner`,className:`w-full md:w-64 h-48 object-cover rounded-lg`})}),(0,Q.jsxs)(`div`,{className:`text-center md:text-left`,children:[t&&(0,Q.jsx)(`h2`,{className:`text-2xl md:text-4xl font-bold mb-2`,children:t}),n&&(0,Q.jsx)(`p`,{className:`text-lg opacity-90 mb-4`,children:n}),a&&o&&(0,Q.jsx)(r,{asChild:!0,children:(0,Q.jsx)(`a`,{href:o,children:a})})]})]})})})},me=({content:e})=>{let{heading:t,body:n}=e;return(0,Q.jsx)(`section`,{className:`py-12 md:py-16 bg-background`,children:(0,Q.jsxs)(`div`,{className:`container mx-auto px-4 max-w-3xl text-center`,children:[t&&(0,Q.jsx)(`h2`,{className:`text-2xl md:text-3xl font-bold mb-4`,children:t}),n&&(0,Q.jsx)(`div`,{className:`prose prose-lg max-w-none text-muted-foreground`,children:n.split(` 2`).map((e,t)=>(0,Q.jsx)(`p`,{children:e},t))})]})})},he=({content:e})=>{let{heading:t,description:n,buttonText:i,buttonLink:a,imageUrl:o}=e;return(0,Q.jsx)(`section`,{className:`py-16 md:py-24 bg-primary/5`,children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsxs)(`div`,{className:`flex flex-col md:flex-row items-center gap-12`,children:[(0,Q.jsxs)(`div`,{className:`flex-1 text-center md:text-left`,children:[t&&(0,Q.jsx)(`h2`,{className:`text-3xl md:text-4xl font-bold mb-4`,children:t}),n&&(0,Q.jsx)(`p`,{className:`text-lg text-muted-foreground mb-6`,children:n}),i&&a&&(0,Q.jsx)(r,{size:`lg`,asChild:!0,children:(0,Q.jsx)(`a`,{href:a,children:i})})]}),o&&(0,Q.jsx)(`div`,{className:`flex-shrink-0`,children:(0,Q.jsx)(`img`,{src:o,alt:t||`Italian gourmet products from The Italian Club Hong Kong`,className:`w-full md:w-96 h-64 object-cover rounded-xl shadow-lg`})})]})})})},ge=({content:e})=>{let{items:t}=e;return t?.length?(0,Q.jsx)(`section`,{className:`py-16 md:py-24 bg-background`,children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-8`,children:t.map((e,t)=>(0,Q.jsxs)(`div`,{className:`text-center p-6 rounded-xl bg-card border`,children:[(0,Q.jsx)(`div`,{className:`w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center mx-auto mb-4`,children:(0,Q.jsx)(`span`,{className:`text-2xl`,children:`â`})}),e.title&&(0,Q.jsx)(`h3`,{className:`text-xl font-semibold mb-2`,children:e.title}),e.description&&(0,Q.jsx)(`p`,{className:`text-muted-foreground`,children:e.description})]},t))})})}):null},_e=({content:e})=>{let{images:t,layout:n}=e;return t?.length?(0,Q.jsx)(`section`,{className:`py-12 md:py-16 bg-background`,children:(0,Q.jsx)(`div`,{className:`container mx-auto px-4`,children:(0,Q.jsx)(`div`,{className:n===`carousel`?`flex gap-4 overflow-x-auto`:`grid grid-cols-2 md:grid-cols-4 gap-4`,children:t.map((e,t)=>(0,Q.jsx)(`img`,{src:e,alt:`The Italian Club Hong Kong gallery photo ${t+1}`,className:`w-full h-48 object-cover rounded-lg`},t))})})}):null},ve=()=>{let{t:e,language:t}=m(),n=t===`zh-HK`||t===`zh-CN`,[i,a]=(0,Z.useState)(!1),[o,s]=(0,Z.useState)(!1),[c,l]=(0,Z.useState)(``),[u,d]=(0,Z.useState)(``),[f,p]=(0,Z.useState)(``),{toast:h}=C();(0,Z.useEffect)(()=>
2{if(!sessionStorage.getItem(`vip-club-popup-dismissed`)){let e=setTimeout(()=>a(!0),3e3);return()=>clearTimeout(e)}},[]);let g=()=>{sessionStorage.setItem(`vip-club-popup-dismissed`,`true`),a(!1)};return(0,Q.jsx)(W,{open:i,onOpenChange:e=>{e||g()},children:(0,Q.jsxs)(V,{className:`sm:max-w-md border-2 border-amber-500/30 bg-gradient-to-b from-amber-50 to-orange-50 dark:from-amber-950/40 dark:to-orange-950/30`,children:[(0,Q.jsxs)(B,{className:`text-center`,children:[(0,Q.jsx)(`div`,{className:`text-4xl mb-2 text-center`,children:`ð®ð¹â¨`}),(0,Q.jsx)(H,{className:`text-xl text-amber-800 dark:text-amber-300 ${n?`font-chinese-display`:`font-display`}`,children:e(`vipClub.title`)}),(0,Q.jsx)(U,{className:`text-amber-900/80 dark:text-amber-200/80 ${n?`font-chinese-body`:``}`,children:e(`vipClub.description`)})]}),(0,Q.jsxs)(`form`,{onSubmit:async n=>{if(n.preventDefault(),!(!u.trim()||!c.trim())){s(!0);try{let{error:n}=await w.functions.invoke(`vip-club-subscribe`,{body:{email:u.trim().toLowerCase(),first_name:c.trim(),phone:f.trim()||null,language:t}});if(n)throw n;h({title:e(`vipClub.successTitle`),description:e(`vipClub.successMessage`)}),g()}catch(e){console.error(`VIP subscribe error:`,e),h({title:`Error`,description:`Something went wrong. Please try again.`,variant:`destructive`})}finally{s(!1)}}},className:`space-y-4 mt-2`,children:[(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsxs)(z,{htmlFor:`vip-first-name`,className:`text-amber-900 dark:text-amber-200 ${n?`font-chinese-body`:``}`,children:[e(`vipClub.firstName`),` *`]}),(0,Q.jsx)(R,{id:`vip-first-name`,value:c,onChange:e=>l(e.target.value),required:!0,maxLength:100,className:`border-amber-300 dark:border-amber-700 bg-white/80 dark:bg-black/20`})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsxs)(z,{htmlFor:`vip-email`,className:`text-amber-900 dark:text-amber-200 ${n?`font-chinese-body`:``}`,children:[e(`vipClub.email`),` *`]}),(0,Q.jsx)(R,{id:`vip-email`,type:`email`,value:u,onChange:e=>d(e.target.value),required:!0,maxLength:255,className:`border-amber-300 dark:border-amber-700 bg-white/80 dark:bg-black/20`})]}),(0,Q.jsxs)(`div`,{className:`space-y-2`,children:[(0,Q.jsx)(z,{htmlFor:`vip-phone`,className:`text-amber-900 dark:text-amber-200 ${n?`font-chinese-body`:``}`,children:e(`vipClub.phone`)}),(0,Q.jsx)(R,{id:`vip-phone`,type:`tel`,value:f,onChange:e=>p(e.target.value),maxLength:20,className:`border-amber-300 dark:border-amber-700 bg-white/80 dark:bg-black/20`})]}),(0,Q.jsx)(r,{type:`submit`,disabled:o,className:`w-full bg-amber-700 hover:bg-amber-800 text-white mt-2`,children:o?`...`:e(`vipClub.submit`)})]})]})})},ye=()=>{let{language:e,t}=m(),[n,r]=(0,Z.useState)([]);(0,Z.useLayoutEffect)(()=>{window.scrollTo(0,0)},[]);let[i,a]=(0,Z.useState)(!0);(0,Z.useEffect)(()=>{o();let e=w.channel(`homepage-sections`).on(`postgres_changes`,{event:`*`,schema:`public`,table:`website_sections`},()=>{o()}).subscribe((e,t)=>{});return()=>{w.removeChannel(e)}},[]);let o=async()=>{try{let{data:e,error:t}=await w.from(`website_sections`).select(`*`).eq(`is_active`,!0).order(`order_index`,{ascending:!0});if(t)throw t;let n=(e||[]).map(e=>({...e,content:e.content}));r(n.map(e=>({...e,is_active:e.is_active??!0})))}catch(e){console.error(`Error fetching sections:`,e)}finally{a(!1)}};return i?(0,Q.jsxs)(`div`,{className:`min-h-screen bg-background`,children:[(0,Q.jsx)(O,{}),(0,Q.jsx)(`main`,{className:`flex items-center justify-center min-h-[50vh]`,children:(0,Q.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-b-2 border-primary`})}),(0,Q.jsx)(k,{})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(N,{title:t(`seo.home.title`),description:t(`seo.home.description`),keywords:t(`seo.home.keywords`),canonical:`/`,language:e}),(0,Q.jsxs)(`div`,{className:`min-h-screen bg-background`,children:[(0,Q.jsx)(O,{}),(0,Q.jsx)(`main`,{children:n.map(e=>(0,Q.jsx)(`div`,{"data-section-type":e.section_type,children:(0,Q.jsx)(pe,{section:e})},e.id))}),(0,Q.jsx)(k,{}),(0,Q.jsx)(G,{}),(0,Q.jsx)(ve,{})]})]})};export{ye as component};
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.