PageSourceSearch

https://www.hakufsa.co.il/assets/BoxModels3D-CJse87Xa.js

js hakufsa.co.il collected 2026-10-03 18:46:26 UTC 9,637 bytes, 5 lines download raw bytes

1import{a as d,u as x,j as e}from"./query-Dyum9OBd.js";import{l as A}from"./threeDModels-CSF6CjnX.js";import{b as T,P as p,w as H,E as J,v as X,o as Y}from"./index-CxMXDIdf.js";import{b as Z,L as ee}from"./react-vendor-jEa6xgcc.js";import{I as te}from"./input-BUlNWmcE.js";import{B as z}from"./badge-CWUZIYDq.js";import{L as se}from"./loader-circle-DM9dszRR.js";import"./supabase-DZohnnlO.js";import"./motion-Bl2iohUo.js";function ue(){var y,f,w,j,v,k,N,_,I,S;const[n,F]=d.useState(""),[ae,re]=d.useState("grid");d.useEffect(()=>{window.scrollTo(0,0)},[]);const{data:O=[],isLoading:G}=x({queryKey:["all-box-models"],queryFn:()=>A("-created_date"),staleTime:1e3*60*15,gcTime:1e3*60*30,refetchOnWindowFocus:!1}),{data:P=[],isLoading:R}=x({queryKey:["all-games"],queryFn:()=>X(),staleTime:1e3*60*15,gcTime:1e3*60*30,refetchOnWindowFocus:!1}),{data:r=[]}=x({queryKey:["settings"],queryFn:()=>Y(),staleTime:1/0,gcTime:1e3*60*60,refetchOnWindowFocus:!1}),g=(y=r.find(t=>t.key==="box_models_3d_background"))==null?void 0:y.value,K=parseInt(((f=r.find(t=>t.key==="global_game_background_opacity"))==null?void 0:f.value)||"92"),Q=parseInt(((w=r.find(t=>t.key==="box_models_3d_background_opacity"))==null?void 0:w.value)||String(K)),m=parseInt(((j=r.find(t=>t.key==="box_models_3d_background_blur"))==null?void 0:j.value)||"0"),u=parseInt(((v=r.find(t=>t.key==="scanlines_intensity"))==null?void 0:v.value)||"25")/100,l=parseInt(((k=r.find(t=>t.key==="pixel_grid_intensity"))==null?void 0:k.value)||"4")/100,b=parseInt(((N=r.find(t=>t.key==="vignette_radial_intensity"))==null?void 0:N.value)||"60")/100,i=parseInt(((_=r.find(t=>t.key==="vignette_sides_intensity"))==null?void 0:_.value)||"50")/100,U=((I=r.find(t=>t.key==="crt_effect_enabled"))==null?void 0:I.value)!=="false",h=parseInt(((S=r.find(t=>t.key==="crt_effect_intensity"))==null?void 0:S.value)||"50"),W=Math.min(1,h/100),s=h/100,V=P.reduce((t,a)=>(t[a.id]=a,t),{}),o=O.map(t=>({...t,game:V[t.game_id]})).filter(t=>{var $,L,M,B,C,D,q,E;if(!n.trim())return!0;const a=n.toLowerCase();return((L=($=t.game)==null?void 0:$.title)==null?void 0:L.toLowerCase().includes(a))||((B=(M=t.game)==null?void 0:M.title_english)==null?void 0:B.toLowerCase().includes(a))||((D=(C=t.game)==null?void 0:C.developer)==null?void 0:D.toLowerCase().includes(a))||((E=(q=t.game)==null?void 0:q.publisher)==null?void 0:E.toLowerCase().includes(a))}),c=G||R;return"https://www.hakufsa.co.il"+T("BoxModels3D"),e.jsxs("div",{className:"min-h-screen relative overflow-x-hidden",children:[e.jsxs(Z,{children:[e.jsx("title",{children:"גלריית מודלים תלת-מימדיים - הקופסא"}),e.jsx("meta",{name:"description",content:"צפו באוסף מודלים תלת-מימדיים של קופסאות משחקי מחשב רטרו. סובבו, תתקרבו וחקרו את הקופסאות המקוריות מכל זווית."}),e.jsx("link",{rel:"canonical",href:"https://www.hakufsa.co.il/BoxModels3D"}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:title",content:"גלריית מודלים תלת-מימדיים - הקופסא"}),e.jsx("meta",{property:"og:description",content:"צפו באוסף מודלים תלת-מימדיים של קופסאות משחקי מחשב רטרו"}),e.jsx("meta",{property:"og:url",content:"https://www.hakufsa.co.il/BoxModels3D"}),e.jsx("meta",{property:"og:image",content:"https://yliswenkhoesjvgnlmts.supabase.co/storage/v1/object/public/site-assets/logo.png"})]}),e.jsxs("div",{className:"fixed inset-0 z-0",children:[e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:g?`url(${g})`:"url('https://yliswenkhoesjvgnlmts.supabase.co/storage/v1/object/public/site-assets/grunge-wall-texture.jpg')",backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed",imageRendering:"auto",filter:m>0?`blur(${m}px)`:"none"}}),e.jsx("div",{className:"absolute inset-0 bg-[#1a1a1a]",style:{opacity:Q/100}}),U&&e.jsxs("div",{className:"absolute inset-0 pointer-events-none",style:{opacity:W},children:[e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`repeating-linear-gradient(0deg, rgba(0,0,0,${u*s}) 0px, rgba(0,0,0,${u*s}) 3px, transparent 3px, transparent 6px)`,backgroundSize:"100% 6px"}}),e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:`repeating-linear-gradient(90deg, rgba(255,0,0,${l*s}) 0px, rgba(255,0,0,${l*s}) 2px, rgba(0,255,0,${l*s}) 2px, rgba(0,255,0,${l*s}) 4px, rgba(0,0,255,${l*s}) 4px, rgba(0,0,255,${l*s}) 6px, transparent 6px, transparent 8px)`,backgroundSize:"8px 100%"}}),e.jsx("div",{className:"absolute inset-0",style:{background:`
2                  radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0,0,0,${b*s}) 100%),
3                  linear-gradient(90deg, rgba(0,0,0,${i*s}
3) 0%, transparent 15%, transparent 85%, rgba(0,0,0,${i*s}) 100%),
4                  linear-gradient(0deg, rgba(0,0,0,${i*.6*s}) 0%, transparent 15%, transparent 85%, rgba(0,0,0,${i*.6*s}) 100%)
5                `,boxShadow:`inset 0 0 ${200*s}px rgba(0,0,0,${b*s})`}})]})]}),e.jsx("div",{className:"relative z-10 py-8 sm:py-12 md:py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-8 sm:mb-12",children:[e.jsxs("div",{className:"inline-flex items-center justify-center gap-3 mb-4",children:[e.jsx(p,{className:"w-10 h-10 sm:w-12 sm:h-12 text-[#f5c518]"}),e.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-white uppercase",style:{textShadow:"3px 3px 6px rgba(0,0,0,1), -1px -1px 3px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.9)"},children:"גלריית מודלים תלת-מימדיים"})]}),e.jsx("p",{className:"text-base sm:text-lg md:text-xl text-gray-300 max-w-3xl mx-auto",style:{textShadow:"2px 2px 4px rgba(0,0,0,0.9)"},children:"חקרו את אוסף קופסאות המשחקים שלנו מכל זווית - סובבו, זומו וגלו את הפרטים המדהימים של הקופסאות המקוריות"})]}),e.jsx("div",{className:"max-w-2xl mx-auto mb-8 sm:mb-12",children:e.jsxs("div",{className:"relative",children:[e.jsx(H,{className:"absolute right-4 top-1/2 transform -translate-y-1/2 w-5 h-5 text-gray-400"}),e.jsx(te,{type:"text",placeholder:"חפש משחקים, מפתחים או מפיצים...",value:n,onChange:t=>F(t.target.value),className:"w-full pr-12 pl-4 py-6 text-lg bg-black/40 backdrop-blur-md border-2 border-white/20 text-white placeholder:text-gray-400 focus:border-[#f5c518] transition-colors"})]})}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4 mb-8",children:[e.jsxs(z,{className:"text-lg px-6 py-2 bg-[#f5c518] text-black font-bold",style:{textShadow:"none"},children:[o.length," מודלים זמינים"]}),n&&e.jsx(z,{className:"text-lg px-6 py-2 bg-white/10 backdrop-blur-md text-white border-2 border-white/30",children:"מציג תוצאות חיפוש"})]}),c&&e.jsxs("div",{className:"flex flex-col items-center justify-center py-20",children:[e.jsx(se,{className:"w-16 h-16 text-[#f5c518] animate-spin mb-4"}),e.jsx("p",{className:"text-xl text-white",style:{textShadow:"2px 2px 4px rgba(0,0,0,0.9)"},children:"טוען מודלים תלת-מימדיים..."})]}),!c&&o.length===0&&e.jsxs("div",{className:"text-center py-20",children:[e.jsx(p,{className:"w-24 h-24 text-gray-600 mx-auto mb-6 opacity-50"}),e.jsx("h2",{className:"text-2xl font-bold text-white mb-4",style:{textShadow:"2px 2px 4px rgba(0,0,0,0.9)"},children:n?"לא נמצאו תוצאות":"עדיין אין מודלים תלת-מימדיים"}),e.jsx("p",{className:"text-gray-400 text-lg",style:{textShadow:"2px 2px 4px rgba(0,0,0,0.9)"},children:n?"נסה לחפש משהו אחר":"מודלים תלת-מימדיים יתווספו בקרוב"})]}),!c&&o.length>0&&e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-4 sm:gap-6",children:o.map(t=>{const a=t.game;return a?e.jsxs(ee,{to:T("BoxModel3DDetails")+`?id=${t.id}`,onClick:()=>sessionStorage.setItem("box3d_referrer","BoxModels3D"),className:"group relative",children:[e.jsxs("div",{className:"aspect-[3/4] rounded-xl overflow-hidden bg-black/40 backdrop-blur-md border-2 border-white/20 hover:border-[#f5c518] transition-all duration-300 hover:scale-105 hover:shadow-2xl hover:shadow-[#f5c518]/30",children:[t.front_image?e.jsx("img",{src:t.front_image,alt:a.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(p,{className:"w-12 h-12 text-gray-600"})}),e.jsxs("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300 flex flex-col items-center justify-center gap-2 p-4",children:[e.jsx(J,{className:"w-8 h-8 text-[#f5c518]"}),e.jsx("p",{className:"text-white text-sm font-bold text-center",children:"צפה במודל תלת-מימדי"})]}),t.is_gatefold&&e.jsx("div",{className:"absolute top-2 left-2 bg-purple-600 text-white text-xs px-2 py-1 rounded-full font-bold shadow-lg",children:"📖 Gatefold"})]}),e.jsxs("div",{className:"mt-3",children:[e.jsx("h3",{className:"text-sm sm:text-base font-bold text-white line-clamp-2 group-hover:text-[#f5c518] transition-colors",style:{textShadow:"2px 2px 4px rgba(0,0,0,0.9)"},children:a.title}),a.year&&e.jsx("p",{className:"text-xs text-gray-400 mt-1",style:{textShadow:"1px 1px 2px rgba(0,0,0,0.9)"},children:a.year})]})]},t.id):null})})]})})]})}export{ue 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.