PageSourceSearch

https://www.build-up.net/assets/MCCIAProjectsPage-JehQU338.js

js build-up.net collected 2026-10-04 02:23:53 UTC 28,585 bytes, 11 lines download raw bytes

1import{g as be,r,F as je,h as we,u as ve,j as e,z as Se}from"./index-DSOyD0eD.js";import{f as Q,c as Ce}from"./currencyUtils-C1_rwnsg.js";import{G as Ie}from"./grid-2x2-BIkxHW_m.js";import{L as ke}from"./list-My5Yt0o2.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};p.SENTRY_RELEASE={id:"4711d94e578d6bf38dae418c9ced80dbb09f55ce"};var m=new p.Error().stack;m&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[m]="df85c04c-de81-4770-9f6d-a3030fb9820f",p._sentryDebugIdIdentifier="sentry-dbid-df85c04c-de81-4770-9f6d-a3030fb9820f")}catch{}})();const Re=()=>{var X,Z;const p=be(),[m,z]=r.useState("list"),[u,v]=r.useState(""),[x,w]=r.useState(((X=p.state)==null?void 0:X.domainName)||""),[F,N]=r.useState(""),[U,ee]=r.useState([]),[M,te]=r.useState([]),[j,W]=r.useState([]),[B,R]=r.useState(!1),[l,ie]=r.useState(null),[g,oe]=r.useState(null),[ne,re]=r.useState([]),[E,se]=r.useState(null),[le,D]=r.useState(!0),[ae,$]=r.useState(!0),[de,S]=r.useState(!1),[Y,C]=r.useState(!1),{currentUser:a}=r.useContext(je),{preferredCurrency:H,countryCode:pe,country:xe}=we(),P=ve(),{domainName:ce}=p.state||{};console.log("Domain Name from Navigation State:",ce);const q=t=>t.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").trim(),T=t=>{const i=q(t.title);P(`/mccia-simulation/${i}`,{state:{immersionId:t._id||t.id,immersionData:t}})},A=t=>{const i=q(t.title);P(`/mccia-simulation/${i}`,{state:{immersionId:t._id||t.id,immersionData:t}})};r.useEffect(()=>{const t=async()=>{D(!0),S(!1);try{const o=await(await fetch(`/api/immersions/getPreviewImmersionStatus/${a==null?void 0:a.uid}`)).json();o.success?(se(o.data),console.log("Preview Immersion Status:",o.data)):(console.error("Error fetching preview immersion status:",o.message),S(!0))}catch(i){console.error("Error fetching preview immersion status:",i),S(!0)}finally{D(!1)}};a!=null&&a.uid?t():(D(!1),S(!1))},[a==null?void 0:a.uid]),console.log("Preview Immersion Status State:",M);const y=!le&&!de&&(a==null?void 0:a.uid)&&(E===null||E&&E.immersionId===null);r.useEffect(()=>{if(y){const t=setTimeout(()=>{C(!0)},500);return()=>clearTimeout(t)}},[y]);const V=()=>e.jsx("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2e3,padding:"20px",boxSizing:"border-box"},onClick:()=>C(!1),children:e.jsxs("div",{style:{backgroundColor:"white",borderRadius:"16px",padding:"32px",maxWidth:"500px",width:"100%",textAlign:"center",boxShadow:"0 20px 60px rgba(0,0,0,0.3)",position:"relative"},onClick:t=>t.stopPropagation(),children:[e.jsx("button",{onClick:()=>C(!1),style:{position:"absolute",top:"16px",right:"16px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#64748b",padding:"4px"},children:"×"}),e.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"🎉"}),e.jsx("h2",{style:{fontSize:"28px",fontWeight:"700",color:"#1a202c",marginBottom:"16px",fontFamily:"MyFont, -apple-system, sans-serif"},children:"Welcome to MCCIA Industry Projects!"}),e.jsxs("p",{style:{fontSize:"16px",color:"#64748b",lineHeight:"1.6",marginBottom:"24px",fontFamily:"spFont, -apple-system, sans-serif"},children:["As a new user, you get ",e.jsx("strong",{style:{color:"#10B981"},children:"one free preview"})," of any simulation! Choose any immersion and click ",e.jsx("strong",{children:'"🎁 Try for Free"'})," to experience our interactive learning platform."]}),e.jsx("div",{style:{display:"flex",gap:"12px",justifyContent:"center"},children:e.jsx("button",{onClick:()=>C(!1),style:{backgroundColor:"#10B981",color:"white",border:"none",padding:"12px 24px",borderRadius:"8px",fontSize:"16px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease",fontFamily:"Arial, sans-serif"},children:"🚀 Start Exploring"})})]})}),he=()=>{const t=`
2      @keyframes skeleton-loading {
3        0% {
4          background-position: -200px 0;
5        }
6        100% {
7          background-position: calc(200px + 100%) 0;
8        }
9      }
10    `,i={background:"linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",backgroundSize:"200px 100%",animation:"skeleton-loading 1.5s infinite",borderRadius:"8px"},o=()=>e.jsxs("div",{style:{backgroundColor:"white",borderRadius:"8px",overflow:"hidden",boxShadow:"0 2px 8px rgba(0,0,0,0.1)",display:"flex",flexDirection:window.innerWidth<=768?"column":"row",minHeight:"300px",width:"100%",maxWidth:"1000px",margin:"0 auto",border:"1px solid #e0e0e0"},children:[e.jsx("div",{style:{width:window.innerWidth<=768?"100%":"50%",height:window.innerWidth<=768?"200px":"300px",overflow:"hidden",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:8},children:e.jsx("div",{style:{width:"100%",height:"100%",...i}})}),e.jsxs("div",{style:{width:window.innerWidth<=768?"100%":"50%",padding:"20px",display:"flex",flexDirection:"column",gap:"15p
10x"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{height:window.innerWidth<=768?"1rem":"1.2rem",width:"80%",marginBottom:"8px",...i}}),e.jsx("div",{style:{height:window.innerWidth<=768?"0.85rem":"1rem",width:"100%",marginBottom:"15px",...i}})]}),e.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"center"},children:[e.jsx("div",{style:{height:"32px",width:"100px",...i}}),e.jsx("div",{style:{height:"28px",width:"80px",...i}})]})]})]});return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:t}),e.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"40px 20px",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",minHeight:"100vh"},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:"48px"},children:[e.jsx("div",{style:{height:"48px",width:"200px",margin:"0 auto 16px auto",...i}}),e.jsx("div",{style:{height:"18px",width:"300px",margin:"0 auto 8px auto",...i}}),e.jsx("div",{style:{height:"18px",width:"250px",margin:"0 auto",...i}})]}),e.jsx("div",{style:{marginBottom:"32px"},children:e.jsx("div",{style:{height:"56px",width:"100%",borderRadius:"50px",...i}})}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},children:[e.jsx("div",{style:{height:"32px",width:"150px",...i}}),e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx("div",{style:{height:"40px",width:"40px",borderRadius:"8px",...i}}),e.jsx("div",{style:{height:"40px",width:"40px",borderRadius:"8px",...i}})]})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:Array(6).fill().map((s,f)=>e.jsx(o,{},f))})]})]})};r.useEffect(()=>{(async()=>{try{$(!0);const i=await fetch("/api/immersions/getAllSimulations");if(i.ok){const o=await i.json();console.log("Fetched immersions:",o);const s=(o.data||[]).map(d=>{const c=d.domainId&&d.domainId.length>0&&d.domainId[0].name||null,n=d.careerId&&d.careerId.length>0&&d.careerId[0].name||null;return{...d,domainName:c,careerName:n}});te(s);const f=[...new Set(s.map(d=>d.domainName).filter(d=>d!==null))].sort();ee(f)}else console.error("Failed to fetch immersions")}catch(i){console.error("Error fetching immersions:",i)}finally{$(!1)}})()},[]),r.useEffect(()=>{(async()=>{if(!(a!=null&&a.uid)){console.log("No current user found");return}try{const i=await fetch(`/api/immersions/getAllImmersionsIds/${a.uid}`);if(i.ok){const o=await i.json();console.log("Fetched immersion IDs:",o),re(o.data||[])}else{const o=await i.json();console.error("Failed to fetch immersion IDs:",o.message)}}catch(i){console.error("Error fetching immersion IDs:",i)}})()},[a==null?void 0:a.uid]),r.useEffect(()=>{var t;(t=p.state)!=null&&t.domainName&&w(p.state.domainName)},[(Z=p.state)==null?void 0:Z.domainName]),r.useEffect(()=>{var t;(t=p.state)!=null&&t.selectedPackage&&(ie(p.state.selectedPackage),oe(p.state.maxImmersions))},[p.state]);const I=t=>ne.includes(t),ge=["6937eb1ed2399b871d10c474","6937d963d2399b871d10bbca"],L=M.filter(t=>ge.includes(t._id)),ue=()=>{if(!l)return"";const t=l.price;return H==="USD"?Q(Ce(t,"INR","USD"),"USD"):Q(t,"INR")},G=t=>{if(I(t._id)){alert("You have already purchased this immersion!");return}const i=b();if(g&&i>=g){alert(`You can only select ${g} immersions with your ${l==null?void 0:l.name}.`);return}W(o=>o.find(f=>f._id===t._id)?(alert("This immersion is already selected!"),o):[...o,{...t,_id:t._id,quantity:1}])},k=()=>!g||b()<g,K=t=>I(t._id)||_(t._id)?!1:k(),O=t=>{W(i=>i.filter(o=>o._id!==t))},fe=(t,i)=>{if(i<=0){O(t);return}const o=b(),s=j.find(d=>d.id===t),f=i-((s==null?void 0:s.quantity)||0);if(g&&o+f>g){alert(`You can only select ${g} immersions with your ${(l==null?void 0:l.name)||"selected package"}.`);return}W(d=>d.map(c=>c.id===t?{...c,quantity:i}:c))},J=()=>l?l.price.toFixed(2):j.reduce((t,i)=>t+i.price*i.quantity,0).toFixed(2),b=()=>j.reduce((t,i)=>t+i.quantity,0),_=t=>j.some(i=>i._id===t),me=t=>{var c;const i=I(t._id),o=_(t._id),s=K(t),d=(n=>!n||n.length===0?"Beginner":n.includes("11")||n.includes("12")?"Intermediate":(n.includes("9")||n.includes("10"),"Beginner"))(t.eligibleGrades);return e.jsxs("div",{style:{backgroundColor:"white",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",transition:"transform 0.3s ease, box-shadow 0.3s ease",display:"flex",flexDirection:window.innerWidth<=768?"column":"row",width:"100%",border:i?"2px solid #10B981":"1px solid #e2e8f0",opacity:!s&&!o&&!i&&!y?.6:1,position:"relative"},onMouseEnter:n=>{n.currentTarget.style.transform="translateY(-4px)",n.currentTarget.style.boxShadow="0 8px 20px rgba(0,0,0,0.12)"},onMouseLeave:n=>{n.currentTarget.style.transform="translateY(0)",n.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.08)"},children:[i&&e.jsx("div",{style:{position:"absolute",top:"4px",right:"4px",backgroundColor:"#10B981",color:"white",padding:"4px 10px",borderRadius:"6px",fontSize:"12px",fontWeight:"600",zIndex:10},children:"✓ Purchased"}),e.jsx("div",{style:{width:window.innerWidth<=768?"100%":"350px",height:window.innerWidth<=768?"200px":"350px",flexShrink:0,overflow:"hidden",padding:"1rem",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("img",{src:t.bannerImage||"/placeholder.svg",alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"8px"}})}),e.jsxs("div",{style:{flex:1,padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{children:[e.jsx("h2",{style:{fontSize:"22px",color:"rgb(0, 0, 0)",marginBottom:"8px",lineHeight:"1.3",fontFamily:"spFont, serif"},children:t.title}),t.careerName&&e.jsx("div",{style:{display:"inline-block",backgroundColor:"#FEF3C7",borderRadius:"9999px",padding:"4px 12px",marginBottom:"12px"},children:e.jsxs("span",{style:{fontSize:"14px",color:"#92400E",fontWeight:"600"},children:["Career: ",t.careerName]})}),e.jsx("p",{style:{fontSize:"1.1rem",color:"#666",lineHeight:"1.4",marginBottom:"15px",fontFamily:"spFont, serif"},children:t.tagline}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"16
10px"},children:(c=t.domainId)==null?void 0:c.map((n,h)=>e.jsx("span",{style:{backgroundColor:h%3===0?"rgba(13, 180, 210, 0.15)":h%3===1?"rgba(138, 92, 246, 0.15)":"rgba(22, 163, 74, 0.15)",color:h%3===0?"#0E7490":h%3===1?"#5B21B6":"#15803D",borderRadius:"9999px",padding:"4px 12px",fontSize:"14px",fontWeight:"600"},children:n.name},h))}),e.jsxs("div",{style:{fontSize:"14.1px",color:"#475569",fontFamily:"spFont, sans-serif"},children:[e.jsx("strong",{children:"Duration:"})," ",t.duration," • ",e.jsx("strong",{children:"Level:"})," ",d]})]}),e.jsx("div",{style:{marginTop:"auto",display:"flex",gap:"12px",alignItems:"center"},children:i?e.jsxs(e.Fragment,{children:[e.jsx("button",{style:{backgroundColor:"#2563EB",color:"white",border:"none",padding:"12px 24px",borderRadius:"8px",fontSize:"16px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease"},onClick:()=>T(t),children:"✓ Start Learning"}),e.jsx("button",{style:{backgroundColor:"transparent",color:"#475569",border:"1px solid #cbd5e1",padding:"12px 24px",borderRadius:"8px",fontSize:"16px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease"},onClick:()=>T(t),children:"View Details"})]}):e.jsxs(e.Fragment,{children:[e.jsx("button",{style:{backgroundColor:y?"#10B981":"#2E437C",color:"white",border:"none",padding:"12px 24px",borderRadius:"8px",fontSize:"16px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease"},onClick:()=>A(t),children:y?"🎁 View Industry Project":"View Industry Project"}),l&&e.jsx("button",{style:{backgroundColor:o?"#10B981":s?"#2563EB":"#ccc",color:"white",border:"none",padding:"12px 24px",borderRadius:"8px",fontSize:"16px",fontWeight:"600",cursor:s||o?"pointer":"not-allowed",transition:"all 0.3s ease"},onClick:()=>s&&G(t),disabled:!s&&!o,children:o?"✓ Added":s?"Add to Cart":"Limit Reached"})]})})]})]},t._id||t.id)},ye=t=>{var c;const i=I(t._id),o=_(t._id),s=K(t),d=(n=>!n||n.length===0?"Beginner":n.includes("11")||n.includes("12")?"Intermediate":(n.includes("9")||n.includes("10"),"Beginner"))(t.eligibleGrades);return e.jsxs("div",{style:{backgroundColor:"white",borderRadius:"16px",overflow:"hidden",boxShadow:"0 4px 12px rgba(0,0,0,0.08)",transition:"transform 0.3s ease, box-shadow 0.3s ease",display:"flex",flexDirection:"row",width:"100%",maxWidth:"none",margin:"0 auto",minHeight:"280px",border:i?"2px solid #10B981":"1px solid #e2e8f0",opacity:!s&&!o&&!i&&!y?.6:1,position:"relative"},onMouseEnter:n=>{n.currentTarget.style.transform="translateY(-4px)",n.currentTarget.style.boxShadow="0 8px 20px rgba(0,0,0,0.12)"},onMouseLeave:n=>{n.currentTarget.style.transform="translateY(0)",n.currentTarget.style.boxShadow="0 4px 12px rgba(0,0,0,0.08)"},children:[i&&e.jsx("div",{style:{position:"absolute",top:"4px",right:"4px",backgroundColor:"#10B981",color:"white",padding:"4px 10px",borderRadius:"6px",fontSize:"12px",fontWeight:"600",zIndex:10},children:"✓ Purchased"}),e.jsx("div",{style:{width:"250px",height:"100%",flexShrink:0,overflow:"hidden",padding:"1rem",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx("img",{src:t.bannerImage||"/placeholder.svg",alt:t.title,style:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"8px"}})}),e.jsxs("div",{style:{flex:1,padding:"24px",display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{flex:1},children:[e.jsx("h2",{style:{fontSize:"18px",color:"rgb(0, 0, 0)",marginBottom:"8px",lineHeight:"1.3",fontFamily:"spFont, serif",fontWeight:"600"},children:t.title}),t.careerName&&e.jsx("div",{style:{display:"inline-block",backgroundColor:"#FEF3C7",borderRadius:"9999px",padding:"4px 12px",marginBottom:"12px"},children:e.jsxs("span",{style:{fontSize:"14px",color:"#92400E",fontWeight:"600"},children:["Career: ",t.careerName]})}),e.jsx("p",{style:{fontSize:"14px",color:"#666",lineHeight:"1.4",marginBottom:"15px",fontFamily:"spFont, serif",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:t.tagline}),e.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"8px",marginBottom:"16px"},children:(c=t.domainId)==null?void 0:c.slice(0,3).map((n,h)=>e.jsx("span",{style:{backgroundColor:h%3===0?"rgba(13, 180, 210, 0.15)":h%3===1?"rgba(138, 92, 246, 0.15)":"rgba(22, 163, 74, 0.15)",color:h%3===0?"#0E7490":h%3===1?"#5B21B6":"#15803D",borderRadius:"9999px",padding:"4px 12px",fontSize:"14px",fontWeight:"600"},children:n.name},h))}),e.jsxs("div",{style:{fontSize:"14.1px",color:"#475569",fontFamily:"spFont, sans-serif"},children:[e.jsx("strong",{children:"Duration:"})," ",t.duration," • ",e.jsx("strong",{children:"Level:"})," ",d]})]}),e.jsx("div",{style:{marginTop:"auto",display:"flex",gap:"12px",alignItems:"center",flexWrap:"wrap"},children:i?e.jsxs(e.Fragment,{children:[e.jsx("button",{style:{backgroundColor:"#2563EB",color:"white",border:"none",padding:"12px 16px",borderRadius:"8px",fontSize:"13px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease",flex:"1",minWidth:"100px"},onClick:()=>T(t),children:"✓ Start Learning"}),e.jsx("button",{style:{backgroundColor:"transparent",color:"#475569",border:"1px solid #cbd5e1",padding:"12px 16px",borderRadius:"8px",fontSize:"13px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease",flex:"1",minWidth:"100px"},onClick:()=>A(t),children:"View Details"})]}):e.jsxs(e.Fragment,{children:[e.jsx("button",{style:{backgroundColor:y?"#10B981":"#2E437C",color:"white",border:"none",padding:"12px 16px",borderRadius:"8px",fontSize:"13px",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease",flex:l?"1":"1 1 100%",minWidth:"100px"},onClick:()=>A(t),children:y?"🎁 View Industry Project":"View Industry Project"}),l&&e.jsx("button",{style:{backgroundColor:o?"#10B981":s?"#2563EB":"#ccc",color:"white",border:"none",padding:"12px 16px",borderRadius:"8px",fontSize:"13px",fontWeight:"600",cursor:s||o?"pointer":"not-allowed",transition:"all 0.3s ease",flex:"1",minWidth:"100px"},onClick:()=>s&&G(t),disabled:!s&&!o,children:o?"✓ Added":s?"Add to Cart":"Limit Reached"})]})})]})]},t._id||t.id)};return ae?e.jsxs(e.Fragment,{children:[e.jsx(he,{}),Y&&e.jsx(V,{})]}):e.jsxs("div",{style:{maxWidth:"1200px",margin:"0 auto",padding:"40px 20px",fontFamily:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",minHeight:"100vh"},children:[l&&e.jsx("div",{style:{position:"fixed",bottom:"20px",right:"20px",zIndex:1e3},children:e.jsxs("button",{onClick:()=>R(!B),style:{backgroundColor:"#2E437C",color:"white",border:"none",borderRadius:"50%",width:"60px",height:"60px",fontSize:"24px",cursor:"pointer",boxShadow:"0 4px 12px rgba(0,0,0,0.2)",position:"relative",transition:"all 0.3s ease"},children:["🛒",b()>0&&e.jsx("span",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#EF4444",color:"white",borderRadius:"50%",width:"25px",height:"25px",fontSize:"12px",fontWeight:"bold",display:"flex",alignItems:"center",justifyContent:"center"},children:b()})]})}),B&&e.jsxs("div",{style:{position:"fixed",top:"0",right:"0",width:"400px",height:"100vh",backgroundColor:"white",boxShadow:"-4px 0 20px rgba(0,0,0,0.1)",zIndex:1001,padding:"20px",overflowY:"auto"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px",borderBottom:"2px s
10olid #e2e8f0",paddingBottom:"15px"},children:[e.jsx("h2",{style:{fontSize:"1.5rem",fontWeight:"bold",color:"#1a202c",margin:"0"},children:"Shopping Cart"}),e.jsx("button",{onClick:()=>R(!1),style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#64748b"},children:"×"})]}),l&&e.jsxs("div",{style:{background:"#f8f9fa",padding:"12px",borderRadius:"8px",marginBottom:"20px",fontSize:"14px",color:"#666"},children:[e.jsx("strong",{children:l.name}),e.jsx("br",{}),"Limit: ",b()," / ",g," immersions"]}),j.length===0?e.jsxs("div",{style:{textAlign:"center",padding:"40px 20px",color:"#64748b"},children:[e.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"🛒"}),e.jsx("p",{children:"Your cart is empty"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:"20px"},children:j.map(t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",border:"1px solid #e2e8f0",borderRadius:"8px",marginBottom:"10px"},children:[e.jsx("img",{src:t.bannerImage||"/placeholder.svg",alt:t.title,style:{width:"60px",height:"60px",objectFit:"cover",borderRadius:"4px"}}),e.jsxs("div",{style:{flex:1},children:[e.jsx("h4",{style:{fontSize:"0.9rem",fontWeight:"600",color:"#1a202c",margin:"0 0 4px 0"},children:t.title}),!l&&e.jsxs("p",{style:{fontSize:"0.8rem",color:"#64748b",margin:"0 0 8px 0"},children:["$",t.price]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("button",{onClick:()=>fe(t._id||t.id,t.quantity+1),style:{backgroundColor:k()?"#e2e8f0":"#ccc",border:"none",borderRadius:"4px",width:"24px",height:"24px",cursor:k()?"pointer":"not-allowed",fontSize:"16px",display:"flex",alignItems:"center",justifyContent:"center"},disabled:!k(),children:"+"}),e.jsx("button",{onClick:()=>O(t._id||t.id),style:{backgroundColor:"#EF4444",color:"white",border:"none",borderRadius:"4px",padding:"4px 8px",cursor:"pointer",fontSize:"12px",marginLeft:"auto"},children:"Remove"})]})]})]},t._id||t.id))}),e.jsxs("div",{style:{borderTop:"2px solid #e2e8f0",paddingTop:"15px",marginTop:"20px"},children:[l?e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{backgroundColor:"#f8f9fa",padding:"12px",borderRadius:"6px",marginBottom:"15px",fontSize:"14px",color:"#64748b"},children:[e.jsx("div",{style:{fontWeight:"600",color:"#1a202c",marginBottom:"4px"},children:l.name}),e.jsxs("div",{children:[b()," of ",g," immersions selected"]}),e.jsxs("div",{style:{fontSize:"12px",marginTop:"4px"},children:["Fixed package price - Valid for ",l.expiry]})]}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"1.2rem",fontWeight:"bold",color:"#1a202c",marginBottom:"15px"},children:[e.jsx("span",{children:"Package Total:"}),e.jsx("span",{children:ue()})]})]}):e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"1.2rem",fontWeight:"bold",color:"#1a202c",marginBottom:"15px"},children:[e.jsx("span",{children:"Total:"}),e.jsxs("span",{children:["$",J()]})]}),e.jsx("button",{style:{width:"100%",backgroundColor:"#2E437C",color:"white",border:"none",padding:"12px",borderRadius:"8px",fontSize:"1rem",fontWeight:"600",cursor:"pointer",transition:"all 0.3s ease"},onClick:()=>{P("/checkout",{state:{cart:j,selectedPackage:l,totalPrice:J(),totalItems:b(),preferredCurrency:H,countryCode:pe,country:xe}})},children:"Proceed to Checkout"})]})]})]}),B&&e.jsx("div",{style:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"rgba(0,0,0,0.5)",zIndex:1e3},onClick:()=>R(!1)}),e.jsxs("div",{style:{textAlign:"center",marginBottom:"48px"},children:[e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"12px",marginBottom:"16px"},children:[e.jsx("h1",{style:{fontSize:"48px",color:"#1a202c",margin:"0",position:"relative",fontFamily:"MyFont",letterSpacing:"-1px"},children:"MCCIA Industry Projects"}),e.jsx("span",{style:{backgroundColor:"#2563EB",color:"white",borderRadius:"9999px",padding:"6px 18px",fontSize:"1rem",fontWeight:"600",marginLeft:"8px",boxShadow:"0 2px 8px rgba(37,99,235,0.08)",fontFamily:"spFont, -apple-system, sans-serif"},children:"MCCIA Exclusive"})]}),e.jsx("p",{style:{fontSize:"18px",margin:"0 0 8px 0",fontFamily:"spFont, -apple-system, sans-serif",color:"#64748b",fontWeight:"500"},children:"Explore MCCIA's exclusive industry projects. Experience a career before you choose it — start your first MCCIA project now."})]}),e.jsxs("div",{style:{marginBottom:"32px",display:"flex",flexDirection:window.innerWidth<=768?"column":"row",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{position:"relative",flex:window.innerWidth<=768?"none":"3",width:window.innerWidth<=768?"100%":"auto"},children:[e.jsx("input",{type:"text",placeholder:"Search industry projects...",value:u,onChange:t=>v(t.target.value),style:{width:"100%",padding:"16px 20px 16px 50px",fontSize:"16px",border:"2px s
10olid #e2e8f0",borderRadius:"50px",outline:"none",backgroundColor:"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)",boxSizing:"border-box"}}),e.jsx("div",{style:{position:"absolute",left:"20px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8",fontSize:"20px"},children:"🔍"})]}),e.jsxs("div",{style:{position:"relative",flex:window.innerWidth<=768?"none":"2",width:window.innerWidth<=768?"100%":"auto",minWidth:"200px"},children:[e.jsx("div",{style:{position:"absolute",left:"15px",top:"50%",transform:"translateY(-50%)",color:"#94a3b8",fontSize:"16px",pointerEvents:"none",zIndex:1},children:"🏢"}),e.jsxs("select",{value:x,onChange:t=>w(t.target.value),style:{width:"100%",padding:"16px 20px 16px 45px",paddingRight:"45px",fontSize:"16px",border:x?"2px solid #2563EB":"2px solid #e2e8f0",borderRadius:"12px",outline:"none",backgroundColor:x?"#EBF4FF":"white",boxShadow:"0 2px 8px rgba(0,0,0,0.04)",cursor:"pointer",appearance:"none",fontFamily:"spFont, -apple-system, sans-serif",color:x?"#1a202c":"#94a3b8",fontWeight:x?"600":"400"},children:[e.jsx("option",{value:"",children:"Filter by Domain"}),U.map(t=>e.jsx("option",{value:t,children:t},t))]}),e.jsx(Se,{size:20,style:{position:"absolute",right:"15px",top:"50%",transform:"translateY(-50%)",color:x?"#2563EB":"#94a3b8",pointerEvents:"none"}})]})]}),(u||x||F)&&e.jsxs("div",{style:{marginBottom:"24px",display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap",padding:"16px",backgroundColor:"#F8FAFC",borderRadius:"12px",border:"1px solid #E2E8F0"},children:[e.jsx("span",{style:{fontSize:"14px",color:"#64748b",fontFamily:"spFont, -apple-system, sans-serif",fontWeight:"600"},children:"Active filters:"}),u&&e.jsxs("span",{style:{backgroundColor:"#2563EB",color:"white",padding:"6px 12px",borderRadius:"20px",fontSize:"12px",fontWeight:"600",display:"flex",alignItems:"center",gap:"6px"},children:['🔍 "',u,'"',e.jsx("button",{onClick:()=>v(""),style:{background:"rgba(255,255,255,0.3)",border:"none",borderRadius:"50%",width:"16px",height:"16px",cursor:"pointer",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:"×"})]}),x&&e.jsxs("span",{style:{backgroundColor:"#2563EB",color:"white",padding:"6px 12px",borderRadius:"20px",fontSize:"12px",fontWeight:"600",display:"flex",alignItems:"center",gap:"6px"},children:["🏢 ",x,e.jsx("button",{onClick:()=>w(""),style:{background:"rgba(255,255,255,0.3)",border:"none",borderRadius:"50%",width:"16px",height:"16px",cursor:"pointer",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:"×"})]}),F&&e.jsxs("span",{style:{backgroundColor:"#10B981",color:"white",padding:"6px 12px",borderRadius:"20px",fontSize:"12px",fontWeight:"600",display:"flex",alignItems:"center",gap:"6px"},children:["📊 ",F,e.jsx("button",{onClick:()=>N(""),style:{background:"rgba(255,255,255,0.3)",border:"none",borderRadius:"50%",width:"16px",height:"16px",cursor:"pointer",color:"white",fontSize:"10px",display:"flex",alignItems:"center",justifyContent:"center"},children:"×"})]}),e.jsx("button",{onClick:()=>{v(""),w(""),N("")},style:{backgroundColor:"#EF4444",color:"white",border:"none",padding:"6px 12px",borderRadius:"20px",fontSize:"12px",cursor:"pointer",fontWeight:"600",transition:"all 0.2s ease"},children:"Clear all filters"})]}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px",flexWrap:"wrap",gap:"16px"},children:[e.jsx("h2",{style:{fontSize:"2rem",color:"#1a202c",margin:"0",fontFamily:"MyFont, -apple-system, sans-serif"},children:"All Industry Projects"}),e.jsxs("div",{style:{display:"flex",gap:"8px"},children:[e.jsx("button",{onClick:()=>z("card"),style:{padding:"8px",border:"none",borderRadius:"8px",backgroundColor:m==="card"?"#1a202c":"#e2e8f0",color:m==="card"?"white":"#64748b",cursor:"pointer",fontSize:"18px",minWidth:"40px"},children:e.jsx(Ie,{size:24})}),e.jsx("button",{onClick:()=>z("list"),style:{padding:"8px",border:"none",borderRadius:"8px",backgroundColor:m==="list"?"#1a202c":"#e2e8f0",color:m==="list"?"white":"#64748b",cursor:"pointer",fontSize:"18px",minWidth:"40px"},children:e.jsx(ke,{size:24})})]})]}),m==="list"?e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"20px",maxWidth:"1000px",margin:"0 auto"},children:L.map(me)}):e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(550px, 1fr))",gap:"24px",maxWidth:"1400px",margin:"0 auto",padding:"0 8px"},children:L.map(ye)}),L.length===0&&(u||x)&&e.jsxs("div",{style:{textAlign:"center",padding:"80px 20px",color:"#64748b"}
10,children:[e.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:"🔍"}),e.jsx("h3",{style:{marginBottom:"8px",fontSize:"24px",color:"#1a202c"},children:"No immersions found"}),e.jsx("p",{style:{fontSize:"16px",marginBottom:"16px"},children:u&&x?`No results for "${u}" in ${x} domain.`:u?`No results for "${u}".`:`No immersions found in ${x} domain.`}),e.jsx("button",{onClick:()=>{v(""),w("")},style:{backgroundColor:"#2E437C",color:"white",border:"none",padding:"8px 16px",borderRadius:"8px",fontSize:"14px",cursor:"pointer",fontFamily:"Arial, sans-serif"},children:"Clear filters"})]}),Y&&e.jsx(V,{})]})};export{Re as default};
11//# sourceMappingURL=MCCIAProjectsPage-JehQU338.js.map

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.