PageSourceSearch

https://ovelinmall-ovelin-mall.hf.space/assets/flash-3IbmdbB9.js

js ovelinmall-ovelin-mall.hf.space collected 2026-10-03 17:12:39 UTC 2,315 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-query-vWFYep2x.js";import{u as n,r,L as d}from"./vendor-router-ChBioB4i.js";import{d as o}from"./index-C0Hc7JXq.js";import{f as l}from"./utils-wzIOu-RZ.js";import{C as m}from"./CountdownTimer-TGtH_VO7.js";import"./vendor-react-LI-sLqvG.js";import"./vendor-motion-CyE-KEXQ.js";function v(){const[,c]=n(),[a,i]=r.useState([]);return r.useEffect(()=>{const t=()=>o("/api/flash-sales/active").then(i).catch(()=>i([]));t();const s=setInterval(t,15e3);return()=>clearInterval(s)},[]),e.jsxs("div",{className:"min-h-[100dvh] pb-20",children:[e.jsxs("div",{className:"px-4 py-5 flex items-center justify-between",children:[e.jsx("h1",{className:"text-xl font-bold text-pink-700 dark:text-pink-300",children:"⚡ العروض السريعة"}),e.jsx("button",{onClick:()=>c("/"),className:"text-pink-500 text-sm",children:"رجوع"})]}),a.length?e.jsx("div",{className:"px-4 grid grid-cols-2 gap-3",children:a.map(t=>{const s=Number(t.price)*(100-t.discountPct)/100;return e.jsxs(d,{href:`/product/${t.productId}`,className:"fancy-card dark:bg-zinc-900 rounded-2xl overflow-hidden dark:border-pink-900/30",children:[e.jsxs("div",{className:"aspect-square bg-gradient-to-br from-pink-100 to-white relative",children:[t.imageUrl?e.jsx("img",{src:t.imageUrl,alt:t.productName,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center text-5xl",children:"🔥"}),e.jsxs("div",{className:"absolute top-2 right-2 bg-pink-500 text-white text-xs font-bold px-2 py-1 rounded-full",children:["-",t.discountPct,"%"]})]}),e.jsxs("div",{className:"p-3",children:[e.jsx("div",{className:"font-medium text-sm line-clamp-2 leading-tight",children:t.productName}),e.jsxs("div",{className:"flex items-baseline gap-2 mt-2",children:[e.jsxs("span",{className:"font-bold text-pink-600",children:[l(s)," ج.س"]}),e.jsx("span",{className:"text-xs line-through text-zinc-400",children:l(Number(t.price))})]}),e.jsx("div",{className:"mt-2",children:e.jsx(m,{endsAt:t.endsAt})})]})]},t.id)})}):e.jsxs("div",{className:"text-center py-12 text-zinc-500",children:[e.jsx("div",{className:"text-5xl mb-3",children:"🌸"}),"لا توجد عروض سريعة حالياً",e.jsx("br",{}),"تابعنا للحصول على آخر العروض"]})]})}export{v 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.