1import{d as f,r as c,j as e,s as u}from"./index-Be8-hj6s.js";import{H as g}from"./Header-97DAI2AW.js";import{C as x,d as p}from"./card-w5M3P-Rq.js";import{B as j}from"./button-BORCEMyi.js";import{B as d}from"./badge-ie0uubD0.js";import{S as i}from"./skeleton-DHO6vW7Q.js";import{S as m}from"./sparkles-m0LGhb1R.js";import{T as h}from"./tag-B565o2qs.js";import{C as N}from"./clock-DSq05KbH.js";import"./index-DzRiaOF2.js";import"./index-Mxdyh0KS.js";import"./index-mINF-Uu4.js";import"./index-l2YwUJNT.js";import"./dialog-B132tgpV.js";import"./index-DXNeBmJ2.js";import"./index-oKY9GSD_.js";import"./chevron-right-D4zlfXFE.js";import"./BackButton-CEJlFcJx.js";import"./arrow-right-DOPtNtrX.js";import"./index-BQyQSVMm.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const y=f("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]),b=s=>{const l=new Date,t=new Date(s+"T23:59:59").getTime()-l.getTime();if(t<=0)return{days:0,hours:0,minutes:0,expired:!0};const r=Math.floor(t/(1e3*60*60*24)),a=Math.floor(t%(1e3*60*60*24)/(1e3*60*60)),n=Math.floor(t%(1e3*60*60)/(1e3*60));return{days:r,hours:a,minutes:n,expired:!1}},w=({validUntil:s})=>{if(b(s).expired)return e.jsx("div",{className:"bg-muted/50 rounded-lg p-3 text-center",children:e.jsx("span",{className:"text-muted-foreground font-medium",children:"×××צע ×סת×××"})});const[o,t,r]=s.split("-"),a=`${r}/${t}/${o}`;return e.jsx("div",{className:"bg-primary/10 rounded-lg p-4 border border-primary/20 text-center",children:e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx(N,{className:"w-5 h-5 text-primary"}),e.jsx("span",{className:"text-xl font-medium text-primary",children:"×ת××§×£ ×¢×:"}),e.jsx("span",{className:"text-2xl font-bold text-primary",children:a})]})})},v=({deal:s})=>{const l=()=>{const o="972542604031",t=encodeURIComponent(`×× × ×× ×× ××¤× ××ª× ×××× ×××צע ×©× ××××ש ×©× ${s.title}`);window.open(`https://wa.me/${o}?text=${t}`,"_blank")};return e.jsxs(x,{className:"overflow-hidden border-0 shadow-xl bg-card hover:shadow-2xl transition-all duration-500 group animate-fade-in",children:[s.image_url&&e.jsxs("div",{className:"relative h-48 md:h-56 overflow-hidden",children:[e.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
6parent to-transparent"}),s.discount_percentage&&e.jsxs(d,{className:"absolute top-4 left-4 bg-primary text-primary-foreground px-4 py-2 shadow-lg animate-pulse",children:[e.jsx(y,{className:"w-4 h-4 ml-1"}),s.discount_percentage,"% ×× ××"]}),e.jsxs(d,{className:"absolute top-4 right-4 bg-secondary text-secondary-foreground shadow-lg",children:[e.jsx(m,{className:"w-3 h-3 ml-1"}),"××צע ×××××"]})]}),e.jsxs(p,{className:"p-6 space-y-5",children:[e.jsx("h3",{className:"text-2xl font-bold transition-colors duration-300",style:{color:"#e1dd52"},children:s.title}),e.jsx("p",{className:"text-xl text-muted-foreground leading-relaxed break-words",children:s.description}),(s.price_before||s.price_after)&&e.jsxs("div",{className:"flex items-center justify-center gap-4 py-4 bg-primary/5 rounded-xl",children:[s.price_before&&e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("span",{className:"text-xl text-muted-foreground",children:"×××ר ר×××"}),e.jsxs("span",{className:"text-xl line-through text-muted-foreground",children:["âª",s.price_before]})]}),s.price_before&&s.price_after&&e.jsx("div",{className:"text-3xl text-primary",children:"â"}),s.price_after&&e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("span",{className:"text-xl text-primary font-medium",children:"×××ר ××צע"}),e.jsxs("span",{className:"text-3xl font-bold text-primary",children:["âª",s.price_after]})]})]}),e.jsx(w,{validUntil:s.valid_until}),e.jsxs(j,{onClick:l,className:"w-full h-14 text-xl font-bold bg-primary hover:bg-primary/90 text-primary-foreground shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02]",children:[e.jsx(h,{className:"w-5 h-5 ml-2"}),s.cta_text]})]})]})},k=()=>e.jsxs(x,{className:"overflow-hidden",children:[e.jsx(i,{className:"h-56 w-full"}),e.jsxs(p,{className:"p-6 space-y-4",children:[e.jsx(i,{className:"h-8 w-3/4"}),e.jsx(i,{className:"h-4 w-full"}),e.jsx(i,{className:"h-4 w-2/3"}),e.jsx(i,{className:"h-20 w-full"}),e.jsx(i,{className:"h-14 w-full"})]})]});function J(){const[s,l]=c.useState([]),[o,t]=c.useState(!0);return c.useEffect(()=>{(async()=>{try{const{data:a,error:n}=await u.from("monthly_deals").select("*").eq("is_active",!0).order("created_at",{ascending:!1});if(n)throw n;l(a||[])}catch(a){console.error("Error fetching deals:",a)}finally{t(!1)}})()},[]),e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(g,{}),e.jsxs("main",{className:"container mx-auto px-4 md:px-6 py-8 md:py-12",children:[e.jsxs("div",{className:"text-center mb-8 md:mb-12 animate-fade-in",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 md:px-4 py-2 bg-primary/10 rounded-full mb-3 md:mb-4",children:[e.jsx(m,{className:"w-4 h-4 md:w-5 md:h-5 text-primary animate-pulse"}),e.jsx("span",{className:"text-primary font-medium text-xl",children:"××××× ×××ת ××××××ת"}),e.jsx(m,{className:"w-4 h-4 md:w-5 md:h-5 text-primary animate-pulse"})]}),e.jsx("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-3 md:mb-4 text-foreground break-words",children:"×××¦×¢× ××××ש"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto break-words px-2",children:"×צע×ת ×××¢×××ת ××× ××× PhysioClick - ×× ×ª×¤×¡×¤×¡×!"})]}),o?e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 lg:gap-8",children:[1,2,3].map(r=>e.jsx(k,{},r))}):s.length===0?e.jsxs("div",{className:"text-center py-16 md:py-20 px-4",children:[e.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 mx-auto mb-4 md:mb-6 bg-primary/10 rounded-full flex items-center justify-center",children:e.jsx(h,{className:"w-10 h-10 md:w-12 md:h-12 text-primary"})}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground mb-2 break-words",children:"××× ××צע×× ×¤×¢×××× ×ר××¢"}),e.jsx("p",{className:"text-xl text-muted-foreground break-words",children:"×××¨× ×קר×× ×××××§ ××צע×× ××ש××!"})]}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6 lg:gap-8",children:s.map(r=>e.jsx(v,{deal:r},r.id))})]})]})}export{J as default};
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.