{"version":3,"file":"AddToCart.CSdueT1X.mjs","names":["useState","productsDatabase","_Fragment","Button","Typography","Box","MuiLink","Snackbar","FormControl","Select","MenuItem","untypedProductsDatabase"],"sources":["https:/framerusercontent.com/modules/Zd3rwoWV8tvjecYpAgsN/7hlIO23lmoQcGZO10eKo/AddToCart.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType,Link}from\"framer\";import Button from\"@mui/material/Button\";import Snackbar from\"@mui/material/Snackbar\";import Typography from\"@mui/material/Typography\";import Box from\"@mui/material/Box\";import{Select,MenuItem,FormControl,Link as MuiLink}from\"@mui/material\";import{productsDatabase as untypedProductsDatabase}from\"https://framer.com/m/productsDatabase-2qMR.js@0oWCrlJztx0sAsop0prG\";// product db\nconst productsDatabase=untypedProductsDatabase;// export const productsDatabase = {\n//     ne_companion: {\n//         type: \"Companion device\",\n//         shopTitle: \"Companion device\",\n//         title: \"Companion device\",\n//         cost: 750,\n//         description: \"Neon ships with a Samsung Galaxy S25\",\n//         abbrDescription: \"Neon works with a Samsung Galaxy S25.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/ne-companion-s25.webp\",\n//         shopImage: \"https://assets.pupil-labs.com/neon/ne-companion-s25.webp\",\n//     },\n//     ne_xr_quest3: {\n//         type: \"Quest 3 \",\n//         shopTitle: \"System - Neon Quest 3 Add-on\",\n//         title: \"Neon Quest 3 Add-on\",\n//         cost: 5900,\n//         description:\n//             \"Neon eye tracking add-on for Quest 3. Quest 3 HMD not included.\",\n//         discount: 700,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/xr-quest3.webp\",\n//     },\n//     ne_xr_quest3_frame: {\n//         type: \"Quest 3 \",\n//         shopTitle: \"Frame Mount\",\n//         title: \"Quest 3 Frame Mount\",\n//         cost: 450,\n//         description:\n//             \"Frame mount to integrate Neon into Quest 3. Quest 3 HMD not included.\",\n//         discount: 0,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/xr-quest3-frame.webp\",\n//     },\n//     ne_xr_pico4: {\n//         type: \"Pico 4\",\n//         shopTitle: \"System - Neon Pico 4 Add-on\",\n//         title: \"Neon Pico 4 Add-on\",\n//         cost: 5900,\n//         description:\n//             \"Neon eye tracking add-on for Pico 4 and Pico 4 Enterprise. Pico 4 HMD not included.\",\n//         discount: 700,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/pico-addon-bundle.webp\",\n//     },\n//     ne_xr_pico4_frame: {\n//         type: \"Pico 4\",\n//         shopTitle: \"Frame mount\",\n//         title: \"Neon Pico 4 Frame Mount\",\n//         cost: 450,\n//         description:\n//             \"Frame mount to integrate Neon into Pico 4 and Pico 4 Enterprise. Pico 4 HMD not included.\",\n//         discount: 0,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/pico-addon-frame-mount.webp\",\n//     },\n//     htcvive_e200b: {\n//         type: \"HTC Vive\",\n//         shopTitle: \"Binocular Add-on\",\n//         title: \"HTC Vive Binocular Add-on\",\n//         cost: 1400,\n//         description:\n//             \"HTC Vive, Vive Pro, or Vive Cosmos eye tracking add-on with 2 x 200Hz eye cameras.\",\n//         discount: 0,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/htcvive-e200b.webp\",\n//     },\n//     epsonbt300_w120_e200b: {\n//         title: \"Epson BT300 Add-on\",\n//         cost: 1750,\n//         description:\n//             \"Epson Moverio BT300 eye camera mounts, USBC clip, cable harness, binocular 200Hz eye cameras, high speed world camera.\",\n//         discount: 0,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/epsonbt300-w120-e200b.webp\",\n//     },\n//     hololens_w120_e200b: {\n//         type: \"Microsoft HoloLens\",\n//         shopTitle: \"Binocular Add-on\",\n//         title: \"HoloLens Binocular Add-on\",\n//         cost: 1750,\n//         description:\n//             \"Microsoft HoloLens eye tracking add-on with 2 x 200Hz eye cameras and 1 x high speed world camera.\",\n//         discount: 0,\n//         categories: [\"vr_ar\"],\n//         img: \"https://assets.pupil-labs.com/vr-ar/hololens-w120-e200b.webp\",\n//     },\n//     support_ws_1: {\n//         type: \"Support\",\n//         shopTitle: \"Intermediate Workshop\",\n//         title: \"Intermediate Workshop\",\n//         cost: 1500,\n//         description:\n//             \"Learn to build your eye tracking pipeline with Pupil Neon or Pupil Core. 3 x 1 hour video calls and 6 months of email support.\",\n//         discount: 0,\n//         categories: [\"support\"],\n//         img: \"https://assets.pupil-labs.com/support/pl-workshops.webp\",\n//     },\n//     support_ws_2: {\n//         type: \"Support\",\n//         shopTitle: \"Comprehensive Workshop\",\n//         title: \"Comprehensive Workshop\",\n//         cost: 3000,\n//         description:\n//             \"Go from the basics of data collection Pupil Neon or Pupil Core all the way to advanced analysis and beyond! 7 x 1 hour video calls and 12 months of email support.\",\n//         discount: 0,\n//         categories: [\"support\"],\n//         img: \"https://assets.pupil-labs.com/support/pl-workshops.webp\",\n//     },\n//     pc: {\n//         type: \"Pupil Core\",\n//         shopTitle: \"Pupil Core headset\",\n//         title: \"Pupil Core\",\n//         cost: 3440,\n//         description:\n//             \"Pupil Core eye tracking headset.<br>World camera: high speed 120Hz world camera<br>Eye cameras: 200Hz binocular eye cameras. Includes 30 minute onboarding video call.\",\n//         discount: 590,\n//         categories: [\"core\"],\n//         img: \"https://assets.pupil-labs.com/core/pupil-w120-e200b.webp\",\n//     },\n//     camera_e200r: {\n//         type: \"Pupil Core\",\n//         shopTitle: \"Eye camera\",\n//         title: \"Eye Camera\",\n//         cost: 650,\n//         description:\n//             \"IR eye tracking camera - right eye camera. Use to upgrade existing 120Hz Pupil Core headsets. No tools required. Or use as hardware for custom prototype development.\",\n//         discount: 0,\n//         categories: [\"core/accessories\"],\n//         img: \"https://assets.pupil-labs.com/core/camera-e200r.webp\",\n//     },\n//     camera_e200l: {\n//         type: \"Pupil Core\",\n//         shopTitle: \"Eye camera\",\n//         title: \"Eye Camera\",\n//         cost: 650,\n//         description:\n//             \"IR eye tracking camera - left eye camera. Use to upgrade existing 120Hz Pupil Core headsets. No tools required. Or use as hardware for custom prototype development.\",\n//         discount: 0,\n//         categories: [\"core/accessories\"],\n//         img: \"https://assets.pupil-labs.com/core/camera-e200r.webp\",\n//     },\n//     pi_v1_glasses: {\n//         type: \"Pupil Invisible\",\n//         shopTitle: \"System - Pupil Invisible\",\n//         title: \"Pupil Invisible\",\n//         cost: 5900,\n//         description:\n//             \"Machine learning powered eye tracking glasses. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"invisible\"],\n//         img: \"https://assets.pupil-labs.com/pi/pi.webp\",\n//     },\n//     pi_lenskit: {\n//         type: \"Pupil Invisible\",\n//         shopTitle: \"Prescription Lens Kit\",\n//         title: \"Prescription Lens Kit\",\n//         cost: 1200,\n//         description:\n//             \"Prescription lens kit to accommodate a variety of wearers.\",\n//         discount: 0,\n//         categories: [\"invisible/accessories\"],\n//         img: \"https://assets.pupil-labs.com/pi/pi-lenskit.webp\",\n//     },\n//     pi_oneplus8: {\n//         title: \"Pupil Invisible Companion\",\n//         cost: 750,\n//         description:\n//             \"Additional Pupil Invisible Companion device. Connects to Pupil Invisible glasses. Use for real-time gaze estimation, real-time streaming over WiFi, recording, and optional connectivity to Pupil Cloud to upload your recordings.\",\n//         discount: 0,\n//         categories: [\"invisible/accessories\"],\n//         img: \"https://assets.pupil-labs.com/pi/pi-oneplus8.webp\",\n//     },\n//     pi_strap: {\n//         type: \"Pupil Invisible\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure your Pupil Invisible glasses for sports and other dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"invisible/accessories\"],\n//         img: \"https://assets.pupil-labs.com/pi/pi-strap.webp\",\n//     },\n//     ne_jan_frame: {\n//         title: \"Just act natural (Frame for Neon)\",\n//         cost: 450,\n//         description:\n//             \"Standard adult sized glasses frames used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-front-black-frameonly.webp\",\n//     },\n//     ne_jan_hs_frame: {\n//         type: \"Just act natural\",\n//         shopTitle: \"Frame only\",\n//         title: \"Just act natural (Frame for Neon)\",\n//         cost: 500,\n//         description:\n//             \"Standard adult sized glasses frames used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-front-hs-frame.webp\",\n//     },\n//     ne_icscn_frame: {\n//         title: \"I can see clearly now (Frame for Neon)\",\n//         cost: 1950,\n//         description:\n//             \"Adult sized glasses frames used with the Neon eye tracking module. With exchangeable lenses from -3 to +3 diopter in 0.5 steps.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-front-black-frameonly.webp\",\n//     },\n//     ne_icscn_hs_frame: {\n//         type: \"I can see clearly now\",\n//         shopTitle: \"Frame only + Lens kit\",\n//         title: \"I can see clearly now (Frame for Neon)\",\n//         cost: 2000,\n//         description:\n//             \"Adult sized glasses frames used with the Neon eye tracking module. With exchangeable lenses from -3 to +3 diopter in 0.5 steps.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-front-hs-frame.webp\",\n//     },\n//     ne_afag_frame: {\n//         title: \"All fun and games (Frame for Neon)\",\n//         cost: 450,\n//         description:\n//             \"Child sized glasses frames for ages 2-8 used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-front-black-frameonly.webp\",\n//     },\n//     ne_afag_hs_frame: {\n//         type: \"All fun and games\",\n//         shopTitle: \"Frame only\",\n//         title: \"All fun and games (Frame for Neon)\",\n//         cost: 500,\n//         description:\n//             \"Child sized glasses frames for ages 2-8 used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-front-hs-frame.webp\",\n//     },\n//     ne_afag_hs_lenskit: {\n//         type: \"All fun and games\",\n//         shopTitle: \"Lens kit\",\n//         title: \"All fun and games - lens kit\",\n//         cost: 1500,\n//         description:\n//             \"Prescription lens kit for All fun and games frame. 13 lens pairs cover the range (in diopters): -3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-hs-extension.webp\",\n//     },\n//     ne_ycbmw_frame: {\n//         title: \"You can be my wingman (Frame for Neon)\",\n//         cost: 650,\n//         description:\n//             \"Adult sized glasses frames for use in cockpits used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"\",\n//     },\n//     ne_itto_frame: {\n//         title: \"Is this thing on? (Frame for Neon)\",\n//         cost: 450,\n//         description:\n//             \"Minimal frame without lenses used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"\",\n//     },\n//     ne_itto_hs_frame: {\n//         type: \"Is this thing on?\",\n//         shopTitle: \"Frame only\",\n//         title: \"Is this thing on? (Frame for Neon)\",\n//         cost: 500,\n//         description:\n//             \"Minimal frame without lenses used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/itto-front-hs-frame.webp\",\n//     },\n//     ne_bsts_frame: {\n//         title: \"Better safe than sorry (Frame for Neon)\",\n//         cost: 650,\n//         description:\n//             \"Adult sized frame used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-front-black-frameonly.webp\",\n//     },\n//     ne_bsts_hs_frame: {\n//         type: \"Better safe than sorry\",\n//         shopTitle: \"Frame only\",\n//         title: \"Better safe than sorry (Frame for Neon)\",\n//         cost: 700,\n//         description:\n//             \"Adult sized frame used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-front-hs-frame.webp\",\n//     },\n//     ne_rsg_frame: {\n//         type: \"Ready set go!\",\n//         shopTitle: \"Frame only\",\n//         title: \"Ready set go! (Headset for Neon)\",\n//         cost: 540,\n//         description:\n//             \"Adjustable headband form factor for sports and highly dynamic movement used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/rsg-front-black-frameonly.webp\",\n//     },\n//     ne_bm_frame: {\n//         type: \"Bare metal\",\n//         shopTitle: \"Nest PCB\",\n//         title: \"Bare Metal (Nest PCB for Neon)\",\n//         cost: 350,\n//         description:\n//             \"Nest PCB for prototyping and development used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/bm-front-black-pcbonly.webp\",\n//     },\n//     ne_fyeo_frame: {\n//         title: \"For your eyes only (Frame for Neon)\",\n//         cost: 450,\n//         description:\n//             \"Standard adult sized glasses frames used with the Neon eye tracking module with no scene camera.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"\",\n//     },\n//     ne_icscn_hs_extension: {\n//         type: \"I can see clearly now\",\n//         shopTitle: \"Extended range lens kit\",\n//         title: \"I can see clearly now - extended range lens kit\",\n//         cost: 2000,\n//         description:\n//             \"Prescription lens kit for I can see clearly now frame. 20 lens pairs cover the range (in diopters): -6.0, -5.5 -5.0, -4.5, -4.0, -3.5, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75, 1.25, 1.75, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0,\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-extension-black.webp\",\n//     },\n//     ne_strap_clamp: {\n//         type: \"Just act natural / I can see clearly now\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable head strap to Neon eye tracking glasses. Compatible with 'Just act natural' and 'I can see clearly now' frames. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-icscn-clamp-headstrap.webp\",\n//     },\n//     ne_strap_slot: {\n//         type: \"Better safe than sorry / Is this thing on?\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable head strap to Neon eye tracking glasses. Compatible with 'Better safe than sorry' and 'Is this thing on?' frames. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-itto-slot-headstrap.webp\",\n//     },\n//     ne_strap_slot_kids: {\n//         type: \"Crawl walk run\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable head strap to Neon eye tracking glasses. Compatible with 'Crawl walk run' frames. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/cwr-slot-headstrap.webp\",\n//     },\n//     ne_strap_pin_kids: {\n//         type: \"All fun and games\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable head strap to Neon eye tracking glasses. Compatible with 'All fun and games' frames. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-headstrap.webp\",\n//     },\n//     ne_jan_strap: {\n//         type: \"Just act natural\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure Neon - Just act natural - eye tracking glasses for dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-headstrap.webp\",\n//     },\n//     ne_bsts_strap: {\n//         type: \"Better safe than sorry\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure Neon - Better safe than sorry - eye tracking glasses for dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-headstrap.webp\",\n//     },\n//     ne_afag_strap: {\n//         type: \"All fun and games\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure Neon - All fun and games - eye tracking glasses for dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-headstrap.webp\",\n//     },\n//     ne_icscn_strap: {\n//         type: \"I can see clearly now\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure Neon - I can see clearly now - eye tracking glasses for dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-headstrap.webp\",\n//     },\n//     ne_itto_strap: {\n//         type: \"Is this thing on?\",\n//         shopTitle: \"Head strap\",\n//         title: \"Head Strap\",\n//         cost: 50,\n//         description:\n//             \"Adjustable strap to secure Neon - Is this thing on? - eye tracking glasses for dynamic activities. Easy snap-on connection to glasses frame. Adjust the fit by pulling the tabs.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/itto-headstrap.webp\",\n//     },\n//     ne_jan: {\n//         title: \"Just act natural - Neon eye tracking system\",\n//         cost: 5900,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frames. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-front-black.webp\",\n//     },\n//     ne_jan_hs: {\n//         type: \"Just act natural\",\n//         shopTitle: \"System - Just act natural\",\n//         title: \"Just act natural - Neon eye tracking system\",\n//         cost: 5950,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frames. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-front-hs.webp\",\n//     },\n//     ne_ntsh_hs: {\n//         type: \"Nothing to see here\",\n//         shopTitle: \"System - Nothing to see here\",\n//         title: \"Nothing to see here - Neon eye tracking system\",\n//         cost: 6100,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frame. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/jan-incognito-front-hs.webp\",\n//     },\n//     ne_ntsh_hs_frame: {\n//         type: \"Nothing to see here\",\n//         shopTitle: \"Frame only\",\n//         title: \"Nothing to see here (Frame for Neon)\",\n//         cost: 650,\n//         description:\n//             \"A frame that conceals the Neon module with the look and feel of normal glasses.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/ntsh-front-hs-frame.webp\",\n//     },\n//     ne_icscn: {\n//         title: \"I can see clearly now - Neon eye tracking system\",\n//         cost: 7400,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frames with prescription lenses from -3 to +3 diopter in 0.5 steps. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-front-black.webp\",\n//     },\n//     ne_icscn_hs: {\n//         type: \"I can see clearly now\",\n//         shopTitle: \"System - I can see clearly now\",\n//         title: \"I can see clearly now - Neon eye tracking system\",\n//         cost: 7450,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frames with prescription lenses from -3 to +3 diopter in 0.5 steps. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/icscn-front-hs.webp\",\n//     },\n//     ne_afag: {\n//         title: \"All fun and games - Neon eye tracking system\",\n//         cost: 5900,\n//         description:\n//             \"Machine learning powered eye tracking system. Child sized glasses frames for ages 2-8. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-front-black.webp\",\n//     },\n//     ne_afag_hs: {\n//         type: \"All fun and games\",\n//         shopTitle: \"System - All fun and games\",\n//         title: \"All fun and games - Neon eye tracking system\",\n//         cost: 5950,\n//         description:\n//             \"Machine learning powered eye tracking system. Child sized glasses frames for ages 2-8. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/afag-front-hs.webp\",\n//     },\n//     ne_ycbmw: {\n//         title: \"You can be my wingman - Neon eye tracking system\",\n//         cost: 6100,\n//         description:\n//             \"Machine learning powered eye tracking system. Adult sized glasses frames for use in cockpits. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"\",\n//     },\n//     ne_itto: {\n//         title: \"Is this thing on - Neon eye tracking system\",\n//         cost: 5900,\n//         description:\n//             \"Machine learning powered eye tracking system. Minimal frame without lenses. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"\",\n//     },\n//     ne_itto_hs: {\n//         type: \"Is this thing on?\",\n//         shopTitle: \"System - Is this thing on?\",\n//         title: \"Is this thing on - Neon eye tracking system\",\n//         cost: 5950,\n//         description:\n//             \"Machine learning powered eye tracking system. Minimal frame without lenses. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/itto-front-hs.webp\",\n//     },\n//     ne_bsts: {\n//         title: \"Better safe than sorry - Neon eye tracking system\",\n//         cost: 6100,\n//         description:\n//             \"Machine learning powered eye tracking system. Adult sized safety and performance frame used with the Neon eye tracking module. Safety rating in progress. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-front-black.webp\",\n//     },\n//     ne_bsts_hs: {\n//         type: \"Better safe than sorry\",\n//         shopTitle: \"System - Better safe than sorry\",\n//         title: \"Better safe than sorry - Neon eye tracking system\",\n//         cost: 6150,\n//         description:\n//             \"Machine learning powered eye tracking system. Adult sized frame used with the Neon eye tracking module. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/bsts-front-hs.webp\",\n//     },\n//     ne_rsg: {\n//         title: \"Ready set go - Neon eye tracking system\",\n//         cost: 5900,\n//         description:\n//             \"Machine learning powered eye tracking system. Adjustable headband form factor for sports and highly dynamic movement. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/rsg-front-black.webp\",\n//     },\n//     ne_rsg_hs: {\n//         type: \"Ready set go!\",\n//         shopTitle: \"System - Ready set go!\",\n//         title: \"Ready set go - Neon eye tracking system\",\n//         cost: 5990,\n//         description:\n//             \"Machine learning powered eye tracking system. Adjustable headband form factor for sports and highly dynamic movement. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/rsg-front-cable-hs.webp\",\n//     },\n//     ne_rsg_hs_frame: {\n//         type: \"Ready set go!\",\n//         shopTitle: \"Frame only\",\n//         title: \"Ready set go! (Headset for Neon)\",\n//         cost: 540,\n//         description:\n//             \"Adjustable headband form factor for sports and highly dynamic movement used with the Neon eye tracking module.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/rsg-front-hs-frame.webp\",\n//     },\n//     ne_bm: {\n//         type: \"Bare metal\",\n//         shopTitle: \"System - Bare metal\",\n//         title: \"Bare metal - Neon eye tracking system\",\n//         cost: 5800,\n//         description:\n//             \"Machine learning powered eye tracking system. Neon module and Nest PCB for integrations and prototyping. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/bm-front-black.webp\",\n//     },\n//     ne_cwr_hs: {\n//         type: \"Crawl walk run\",\n//         shopTitle: \"System - Crawl walk run\",\n//         title: \"Crawl walk run - Neon eye tracking system\",\n//         cost: 5990,\n//         description:\n//             \"Machine learning powered eye tracking system. Frame for kids 2-8 years old. Flexible and lightweight frame with integrated head strap. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/cwr-front-hs.webp\",\n//     },\n//     ne_cwr_hs_frame: {\n//         type: \"Crawl walk run\",\n//         shopTitle: \"Frame only\",\n//         title: \"Crawl walk run (Frame for Neon)\",\n//         cost: 540,\n//         description:\n//             \"A flexible and lightweight frame with integrated headstrap for kids ages 2-8.\",\n//         discount: 0,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/cwr-front-hs-frame.webp\",\n//     },\n//     ne_emym: {\n//         type: \"Every move you make\",\n//         shopTitle: \"System - Every move you make\",\n//         title: \"Every move you make - Neon eye tracking system\",\n//         cost: 6400,\n//         description:\n//             \"Machine learning powered eye tracking system. Minimal frame without lenses. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call. Ships with 6 x 12mm motion capture markers and mounts.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/emym-front.webp\",\n//     },\n//     ne_emym_frame: {\n//         type: \"Every move you make\",\n//         shopTitle: \"Frame only\",\n//         title: \"Every move you make (Frame for Neon)\",\n//         cost: 950,\n//         description:\n//             \"A minimal frame for motion capture research. Ships with 6 x 12mm motion capture markers and mounts.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/emym-front-frame.webp\",\n//     },\n//     ne_tgtde: {\n//         type: \"The goggles, they do everything\",\n//         shopTitle: \"System - The goggles, they do everything\",\n//         title: \"The goggles, they do everything - Neon eye tracking system\",\n//         cost: 6100,\n//         description:\n//             \"Machine learning powered eye tracking system. Goggles from UVEX with clear plano lenses. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/tgtde-front-hs.webp\",\n//     },\n//     ne_tgtde_frame: {\n//         type: \"The goggles, they do everything\",\n//         shopTitle: \"Frame only\",\n//         title: \"The goggles, they do everything (Frame for Neon)\",\n//         cost: 650,\n//         description:\n//             \"Eye tracking goggles for laboratory and clean room environments. Goggles from UVEX with clear plano lenses.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/tgtde-front-hs-frame.webp\",\n//     },\n//     ne_ictcn: {\n//         type: \"I can track clearly now\",\n//         shopTitle: \"System - I can track clearly now\",\n//         title: \"I can track clearly now - Neon eye tracking system\",\n//         cost: 7900,\n//         description:\n//             \"Machine learning powered eye tracking system. Standard adult sized glasses frame with prescription lenses from -3 to +3 diopter in 0.5 steps. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/ictcn-front-hs.webp\",\n//     },\n//     ne_ictcn_frame: {\n//         type: \"I can track clearly now\",\n//         shopTitle: \"Frame only\",\n//         title: \"I can track clearly now (Frame for Neon)\",\n//         cost: 2450,\n//         description:\n//             \"Glasses frame for motion capture research with an interchangeable prescription lens kit. Quickly swap lenses thanks to a secure magnetic connection. Prescription lenses from -3 to +3 diopter in 0.5 steps.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/ictcn-front-hs-frame.webp\",\n//     },\n//     ne_so: {\n//         type: \"Safety on\",\n//         shopTitle: \"System - Safety on\",\n//         title: \"Safety on - Neon eye tracking system\",\n//         cost: 6150,\n//         description:\n//             \"Machine learning powered eye tracking system. Mil-spec clear/plano lens from Revision. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/so-front-hs.webp\",\n//     },\n//     ne_so_frame: {\n//         type: \"Safety on\",\n//         shopTitle: \"Frame only\",\n//         title: \"Safety on (Frame for Neon)\",\n//         cost: 700,\n//         description:\n//             \"Eye tracking glasses with safety rated lenses with a durable and minimal frame. Mil-spec clear/plano lens from Revision.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/so-front-hs-frame.webp\",\n//     },\n//     ne_ac: {\n//         type: \"All clear\",\n//         shopTitle: \"System - All clear\",\n//         title: \"All clear - Neon eye tracking system\",\n//         cost: 6200,\n//         description:\n//             \"Machine learning powered eye tracking system. Mil-spec goggles from ESS with clear/plano lens. Android device for real-time gaze estimation, wearer management, recording, and real-time streaming. Includes 30 minute onboarding video call.\",\n//         discount: 700,\n//         categories: [\"neon\"],\n//         img: \"https://assets.pupil-labs.com/neon/ac-front.webp\",\n//     },\n//     ne_ac_frame: {\n//         type: \"All clear\",\n//         shopTitle: \"Frame only\",\n//         title: \"All clear (Frame for Neon)\",\n//         cost: 750,\n//         description:\n//             \"Eye tracking goggles for high risk professional performance. Mil-spec goggles from ESS with clear/plano lens.\",\n//         discount: 0,\n//         categories: [\"neon/accessories\"],\n//         img: \"https://assets.pupil-labs.com/neon/ac-front-frame.webp\",\n//     },\n//     cloud_storage_1: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Unlimited Storage Add-On\",\n//         title: \"1 Year: Pupil Cloud Unlimited Storage Add-On\",\n//         cost: 750,\n//         description:\n//             \"1 year of unlimited storage for your eye tracking recordings in Pupil Cloud. This add-on applies to a single eye tracking device.\",\n//         discount: 250,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     // discounted 2 years by 5%\n//     cloud_storage_2: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Unlimited Storage Add-On\",\n//         title: \"2 Years: Pupil Cloud Unlimited Storage Add-On\",\n//         cost: 1425,\n//         description:\n//             \"2 years of unlimited storage for your eye tracking recordings in Pupil Cloud. This add-on applies to a single eye tracking device.\",\n//         discount: 475,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     // discounted 3 years by 10%\n//     cloud_storage_3: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Unlimited Storage Add-On\",\n//         title: \"3 Years: Pupil Cloud Unlimited Storage Add-On\",\n//         cost: 2025,\n//         description:\n//             \"3 years of unlimited storage for your eye tracking recordings in Pupil Cloud. This add-on applies to a single eye tracking device.\",\n//         discount: 675,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     cloud_anon_1: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Anonymization Add-On\",\n//         title: \"1 Year: Pupil Cloud Anonymization Add-On\",\n//         cost: 1150,\n//         description:\n//             \"1 year of anonymization features for your recordings in Pupil Cloud. Blur faces on upload and create custom DPAs. This add-on applies to a single eye tracking device.\",\n//         discount: 320,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     // discounted 2 years by 5%\n//     cloud_anon_2: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Anonymization Add-On\",\n//         title: \"2 Years: Pupil Cloud Anonymization Add-On\",\n//         cost: 2185,\n//         description:\n//             \"2 years of anonymization features for your recordings in Pupil Cloud. Blur faces on upload and custom DPAs. This add-on applies to a single eye tracking device.\",\n//         discount: 608,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     // discounted 3 years by 10%\n//     cloud_anon_3: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Anonymization Add-On\",\n//         title: \"3 Years: Pupil Cloud Anonymization Add-On\",\n//         cost: 3105,\n//         description:\n//             \"3 years of anonymization features for your recordings in Pupil Cloud. Blur faces on upload and custom DPAs. This add-on applies to a single eye tracking device.\",\n//         discount: 864,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n//     cloud_custom: {\n//         type: \"Pupil Cloud Add-on\",\n//         shopTitle: \"Custom Add-on\",\n//         title: \"Custom Cloud Add-on\",\n//         cost: 1000,\n//         description: \"Custom Cloud Add-on.\",\n//         discount: 0,\n//         categories: [\"cloud\"],\n//         img: \"https://assets.pupil-labs.com/cloud/pc-addons.webp\",\n//     },\n// }\nconst head3TitleMedium={fontSize:\"16px\",lineHeight:1.4,margin:0,padding:0,fontWeight:500,fontFamily:\"Inter\",color:\"#E3E2E6\"};const bodyMediumText={fontSize:\"14px\",fontWeight:400,lineHeight:1.5,fontFamily:\"Inter\",color:\"#C4C6D0\"};const linkText={fontSize:\"12px\",fontWeight:500,lineHeight:1.4,fontFamily:\"Inter\",color:\"#E3E2E6\"};function OptimizationFriendly({loading,loaded}){const[isLoading,setLoading]=useState(true);useEffect(()=>setLoading(false),[]);return isLoading?loading:loaded;}const NOTHING_SELECTED=\"NOTHING_SELECTED\";export function AddToCartComponent(props){const[isHover,setIsHover]=useState(false);const[showSnackbar,setShowSnackbar]=useState(false);const[idStorage,setIdStorage]=useState(NOTHING_SELECTED);const[idPrivacy,setIdPrivacy]=useState(NOTHING_SELECTED);const handleMouseEnter=()=>{setIsHover(true);};const handleMouseLeave=()=>{setIsHover(false);};const buttonStyle={textDecoration:\"none\",padding:\"8px 16px\",border:\"none\",borderRadius:\"8px\",backgroundColor:isHover?\"rgb(26, 104,205)\":\"#1263cc\",color:\"white\",width:\"100%\",transition:\"backgroundColor .2s cubic-bezier(.4,0,.6,1)\",cursor:\"pointer\"};const imgStyle={width:\"100%\",height:\"auto\"};const setProductsToCart=(products,pid)=>{if(!products)return;if(products[pid]){products[pid].qty=Number(products[pid].qty)+1;const stringified=JSON.stringify(products);localStorage.setItem(\"cart_items\",stringified);window.dispatchEvent(new Event(\"storage\"));}else{const selectedProduct={...productsDatabase[pid]};selectedProduct.qty=1;products[pid]=selectedProduct;const stringified=JSON.stringify(products);localStorage.setItem(\"cart_items\",stringified);window.dispatchEvent(new Event(\"storage\"));}};const addProductToCart=PID=>{if(!PID)return;const cartItems=localStorage.getItem(\"cart_items\");const parsedData=JSON.parse(cartItems);if(props.selectAddons){if(idStorage!==NOTHING_SELECTED)setProductsToCart(parsedData||{},idStorage);if(idPrivacy!==NOTHING_SELECTED)setProductsToCart(parsedData||{},idPrivacy);}setProductsToCart(parsedData||{},PID);window.dispatchEvent(new Event(\"productAdded\"));if(props.showSnackbar){setShowSnackbar(true);}};const handleOnClose=(event,reason)=>{if(reason===\"clickaway\"){return;}setShowSnackbar(false);// navigate to cart\n};const Action=/*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(Link,{href:\"/cart\",children:/*#__PURE__*/_jsx(Button,{size:\"small\",color:\"primary\",onClick:handleOnClose,children:\"View cart\"})})});const capitalizeFirstWord=str=>str.charAt(0).toUpperCase()+str.slice(1);return /*#__PURE__*/_jsxs(_Fragment,{children:[props.selectAddons?/*#__PURE__*/_jsxs(_Fragment,{children:[\" \",/*#__PURE__*/_jsx(Typography,{variant:\"h3\",style:head3TitleMedium,children:\"Pupil Cloud Add-ons\"}),/*#__PURE__*/_jsx(Typography,{variant:\"h3\",style:bodyMediumText,sx:{mt:1},children:\"Every Neon bundle includes Pupil Cloud access with 2 hours free storage per device, gaze mapping, visualization, and data export.\"}),/*#__PURE__*/_jsx(Box,{sx:{mb:2,mt:1},children:/*#__PURE__*/_jsx(MuiLink,{href:\"/products/cloud/pricing\",sx:{color:linkText.color,textDecorationColor:linkText.color,fontSize:linkText.fontSize,fontFamily:linkText.fontFamily,lineHeight:linkText.lineHeight},children:\"Learn more\"})}),/*#__PURE__*/_jsxs(Box,{sx:{border:\"1px solid #44474F\",borderRadius:2,my:2},children:[/*#__PURE__*/_jsxs(Box,{sx:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",px:2,py:1,borderBottom:\"1px solid #44474F\",textAligb:\"center\"},children:[/*#__PURE__*/_jsx(Typography,{component:\"p\",style:bodyMediumText,children:\"Unlimited storage\"}),/*#__PURE__*/_jsx(CustomSelect,{value:idStorage,productIds:[\"cloud_storage_1\",\"cloud_storage_2\",\"cloud_storage_3\"],onChange:id=>{setIdStorage(id);}})]}),/*#__PURE__*/_jsxs(Box,{sx:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",px:2,py:1},children:[/*#__PURE__*/_jsx(Typography,{component:\"p\",style:bodyMediumText,children:\"Privacy features\"}),/*#__PURE__*/_jsx(CustomSelect,{value:idPrivacy,productIds:[\"cloud_anon_1\",\"cloud_anon_2\",\"cloud_anon_3\"],onChange:id=>{setIdPrivacy(id);}})]})]}),\" \"]}):null,/*#__PURE__*/_jsx(Button,{variant:\"contained\",fullWidth:true,sx:{\"&.MuiButton-root\":{borderRadius:`${props.rounded?\"24px\":\"8px\"}`,textTransform:\"unset\",padding:\"8px 24px\",minHeight:\"34px\",backgroundColor:props.bgColor,fontFamily:\"Inter\",fontWeight:\"medium\",fontSize:\"14px\",lineHeight:\"1.3\",color:\"white\",\"&:hover\":{backgroundColor:props.bgColor!==\"#005BBF\"?\"#46464A\":\"#1A68CD\"}}},onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick:()=>addProductToCart(props.productId),children:capitalizeFirstWord(\"Add to cart\")}),props.selectAddons?/*#__PURE__*/_jsxs(Box,{sx:{display:\"flex\",justifyContent:\"space-between\",mt:2},children:[/*#__PURE__*/_jsx(Typography,{variant:\"h3\",style:head3TitleMedium,children:\"Total\"}),/*#__PURE__*/_jsx(Typography,{variant:\"h3\",style:head3TitleMedium,children:new Intl.NumberFormat(\"en-En\",{maximumFractionDigits:0,style:\"currency\",currency:\"EUR\"}).format(productsDatabase[props.productId].cost+(props.selectAddons?(idPrivacy!==NOTHING_SELECTED?productsDatabase[idPrivacy].cost:0)+(idStorage!==NOTHING_SELECTED?productsDatabase[idStorage].cost:0):0)).replace(/^(\\D+)/,\"$1 \").replace(/\\s+/,\" \")})]}):null,/*#__PURE__*/_jsx(Snackbar,{open:showSnackbar,anchorOrigin:{vertical:\"bottom\",horizontal:\"right\"},autoHideDuration:4e3,onClose:handleOnClose,message:\"Added to cart\",action:Action,sx:{\"&.MuiSnackbar-root .MuiSnackbarContent-root\":{backgroundColor:\"rgb(0, 91, 191)\",borderRadius:\"9999px\",padding:\"6px 24px\"},\"&.MuiSnackbar-root .MuiSnackbarContent-message\":{color:\"white\"},\"&.MuiSnackbar-root .MuiButtonBase-root\":{color:\"rgb(170, 199, 255)\"}}})]});}function CustomSelect(props){return /*#__PURE__*/_jsx(FormControl,{size:\"small\",children:/*#__PURE__*/_jsxs(Select,{variant:\"filled\",value:props.value,onChange:e=>{props.onChange(e.target.value);},sx:{...bodyMediumText,minWidth:155,\"& > div\":{color:bodyMediumText.color,py:.25,borderRadius:1,backgroundColor:\"#292A2D\",\":hover\":{backgroundColor:\"#343538\",borderRadius:1},\":focus\":{backgroundColor:\"#343538\",borderRadius:1}},\"& > div > div\":{borderRadius:1},\":before\":{borderBottom:\"none !important\"},\":after\":{borderBottom:\"none\"},\"& > svg\":{color:bodyMediumText.color}},MenuProps:{slotProps:{paper:{sx:{backgroundColor:\"#292A2D\",color:bodyMediumText.color,\"& > ul > li\":{minWidth:155,py:.5,px:1,minHeight:32},\"&& .Mui-selected\":{backgroundColor:\"#343538 !important\"}}}}},children:[/*#__PURE__*/_jsx(MenuItem,{value:NOTHING_SELECTED,sx:bodyMediumText,children:\"Not included\"}),props.productIds.map(id=>{const product=productsDatabase[id];if(!product)return null;return /*#__PURE__*/_jsx(MenuItem,{value:id,children:/*#__PURE__*/_jsxs(Box,{sx:{display:\"flex\",gap:1,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{...bodyMediumText,minWidth:53},children:product.title.split(\":\")[0]?.toLowerCase()}),/*#__PURE__*/_jsx(\"span\",{style:{...bodyMediumText,marginLeft:\"auto\",textAlign:\"right\"},children:new Intl.NumberFormat(\"en-En\",{maximumFractionDigits:0,style:\"currency\",currency:\"EUR\"}).format(product.cost).replace(/^(\\D+)/,\"$1 \").replace(/\\s+/,\" \")})]})},id);})]})});}export default function AddToCart(props){return /*#__PURE__*/_jsx(OptimizationFriendly,{// Always show the LogIn button while the page is loading,\n// and thus showing the pre-rendered content.\nloading:null,// After the page loads, we'll check the actual logged-in\n// status and either switch to the GoToDashboard button, or\n// keep the LogIn button.\nloaded:/*#__PURE__*/_jsx(AddToCartComponent,{productId:props.productId,rounded:props.rounded,showSnackbar:props.showSnackbar,selectAddons:props.selectAddons,bgColor:props.bgColor})});}AddToCart.defaultProps={productId:\"ne_jan_hs\",rounded:false,showSnackbar:true,selectAddons:false,bgColor:\"#005BBF\"};AddToCartComponent.defaultProps={productId:\"ne_jan_hs\",rounded:false,showSnackbar:true,selectAddons:false,bgColor:\"#005BBF\"};CustomSelect.defaultProps={onChange:id=>{},value:\"cloud_storage_1\",productIds:[\"cloud_storage_1\",\"cloud_storage_2\",\"cloud_storage_3\"]};addPropertyControls(AddToCart,{productId:{title:\"Product Id\",type:ControlType.String},rounded:{title:\"Rounded\",type:ControlType.Boolean},showSnackbar:{title:\"Show Snackbar\",type:ControlType.Boolean},selectAddons:{title:\"Select Addons\",type:ControlType.Boolean},bgColor:{title:\"Background color\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"ProductsDatabaseType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProductsDBKeys\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProductType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"AddToCartComponent\":{\"type\":\"reactComponent\",\"name\":\"AddToCartComponent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"ProductsSelectionType\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"AddToCart\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AddToCart.map"],"mappings":"unBAm0BuU,SAAS,EAAqB,CAAC,UAAQ,UAAQ,CAAC,GAAK,CAAC,EAAU,GAAYA,EAAS,GAAK,CAAqC,OAApC,MAAc,EAAW,GAAM,CAAC,EAAE,CAAC,CAAQ,EAAU,EAAQ,EAAkD,SAAgB,EAAmB,EAAM,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAM,CAAC,EAAa,GAAiBA,EAAS,GAAM,CAAM,CAAC,EAAU,GAAcA,EAAS,EAAiB,CAAM,CAAC,EAAU,GAAcA,EAAS,EAAiB,CAAO,MAAqB,CAAC,EAAW,GAAK,EAAS,MAAqB,CAAC,EAAW,GAAM,EAA6S,GAAmB,EAAS,IAAM,CAAK,KAAgB,GAAG,EAAS,GAAK,CAAC,EAAS,GAAK,IAAI,OAAO,EAAS,GAAK,IAAI,CAAC,EAAE,IAAM,EAAY,KAAK,UAAU,EAAS,CAAC,aAAa,QAAQ,aAAa,EAAY,CAAC,EAAO,cAAc,IAAI,MAAM,UAAU,CAAC,KAAM,CAAC,IAAM,EAAgB,CAAC,GAAGC,EAAiB,GAAK,CAAC,EAAgB,IAAI,EAAE,EAAS,GAAK,EAAgB,IAAM,EAAY,KAAK,UAAU,EAAS,CAAC,aAAa,QAAQ,aAAa,EAAY,CAAC,EAAO,cAAc,IAAI,MAAM,UAAU,CAAC,GAAU,EAAiB,GAAK,CAAC,GAAG,CAAC,EAAI,OAAO,IAAM,EAAU,aAAa,QAAQ,aAAa,CAAO,EAAW,KAAK,MAAM,EAAU,CAAI,EAAM,eAAiB,IAAY,GAAiB,EAAkB,GAAY,EAAE,CAAC,EAAU,CAAI,IAAY,GA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