{"version":3,"file":"shared-lib.Bw6046JH.mjs","names":["e","React","useState","useRef","metadata","p","u","t","metadata","siteMetadata","metadataVersion","__FramerMetadata__","metadata","siteMetadata"],"sources":["https:/framerusercontent.com/modules/fUN4YMtUOs7qsQFq6tpp/feBsUkgCnRTykUDWRFOF/FramerBasic.js","https:/framerusercontent.com/modules/x6nTeURBOCp5cIsiXL9L/3oXvJbdemMEII9RSNh2A/siteMetadata.js","https:/framerusercontent.com/modules/mGH74qsNPODlTOoc6pOM/AeCNrONrggDCz2no16O3/augiA20Il.js","https:/framerusercontent.com/modules/AVQzkMZHCYCADXCsDoJi/7pSFVPel1G2TbmOagl15/NUxtzgbw3.js"],"sourcesContent":["/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 380\n * @framerIntrinsicHeight 400\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React,{useState,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// --------------------------------------------------------------------------\n// ADVANCED CODE PROTECTION UTILITIES\n// --------------------------------------------------------------------------\n// Obfuscated strings storage\nconst _0x4f8a={cmpName:atob(\"Q29uZmlndXJhdG9yQmFzaWM=\"),errMsg:atob(\"QWNjZXNzIGRlbmllZA==\"),licMsg:atob(\"SW52YWxpZCBsaWNlbnNl\"),devMsg:atob(\"RGV2ZWxvcG1lbnQgdG9vbHMgZGV0ZWN0ZWQ=\")};// Generate browser fingerprint for unique identification\nfunction generateFingerprint(){const canvas=document.createElement(\"canvas\");const ctx=canvas.getContext(\"2d\");if(ctx){ctx.textBaseline=\"top\";ctx.font=\"14px Arial\";ctx.fillText(\"fp_test\",2,2);}const fp=[navigator.userAgent.slice(0,50),navigator.language,screen.colorDepth,screen.width+\"x\"+screen.height,new Date().getTimezoneOffset(),canvas.toDataURL().slice(-50)].join(\"|\");return btoa(fp).slice(0,20);}// Environment validation\nfunction validateEnvironment(){const checks=[()=>typeof window!==\"undefined\",()=>typeof document!==\"undefined\",()=>!window.phantom,()=>!window.callPhantom,()=>!window.__nightmare,()=>!window.seleniumWebdriver,()=>!document.$cdc_asdjflasutopfhvcZLmcfl_];return checks.every(check=>{try{return check();}catch{return false;}});}// DevTools detection (non-aggressive)\nlet _devToolsOpen=false;function detectDevTools(){const threshold=160;const widthThreshold=window.outerWidth-window.innerWidth>threshold;const heightThreshold=window.outerHeight-window.innerHeight>threshold;return widthThreshold||heightThreshold;}// Code integrity monitoring\nfunction monitorCodeIntegrity(){const originalStringify=JSON.stringify.toString();const originalFetch=window.fetch?.toString()||\"\";setInterval(()=>{try{const currentStringify=JSON.stringify.toString();const currentFetch=window.fetch?.toString()||\"\";if(currentStringify!==originalStringify||currentFetch!==originalFetch){console.warn(\"Code modification detected\");}}catch(e){// Silently handle errors to avoid breaking functionality\n}},1e4);}// Time-based validation\nconst _startTime=Date.now();function validateTimeBasedAccess(){const runTime=Date.now()-_startTime;const maxRunTime=24*60*60*1e3// 24 hours\n;if(runTime>maxRunTime){console.warn(\"Session expired\");return false;}return true;}// DOM protection monitoring\nfunction protectDOM(){const observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.type===\"childList\"){mutation.addedNodes.forEach(node=>{if(node.nodeName===\"SCRIPT\"&&node.textContent?.includes(\"eval\")||node.textContent?.includes(\"debugger\")){node.remove();}});}});});try{observer.observe(document.body,{childList:true,subtree:true});}catch(e){// Silently handle if body not available yet\n}return observer;}// Enhanced copy protection with advanced features\nfunction addAdvancedProtection(){try{// Environment validation\nif(!validateEnvironment()){console.warn(_0x4f8a.errMsg);}// Start integrity monitoring\nmonitorCodeIntegrity();// Start DOM protection\nprotectDOM();// Periodic DevTools detection (non-blocking)\nsetInterval(()=>{if(detectDevTools()&&!_devToolsOpen){_devToolsOpen=true;console.warn(_0x4f8a.devMsg);}else if(!detectDevTools()&&_devToolsOpen){_devToolsOpen=false;}},2e3);// Time-based validation\nsetInterval(()=>{validateTimeBasedAccess();},6e4);}catch(error){// Silently handle errors to avoid breaking functionality\nconsole.warn(\"Protection init failed:\",error.message);}}// Basic copy protection (enhanced)\nfunction addCopyProtection(){// Generate unique session fingerprint\nconst sessionFP=generateFingerprint();sessionStorage.setItem(\"_fp\",sessionFP);// Disable right-click context menu\ndocument.addEventListener(\"contextmenu\",e=>{e.preventDefault();return false;});// Disable text selection\ndocument.addEventListener(\"selectstart\",e=>{e.preventDefault();return false;});// Disable drag\ndocument.addEventListener(\"dragstart\",e=>{e.preventDefault();return false;});// Enhanced keyboard shortcuts blocking\ndocument.addEventListener(\"keydown\",e=>{const blockedKeys=[// Development tools\ne.keyCode===123,e.ctrlKey&&e.shiftKey&&e.keyCode===73,e.ctrlKey&&e.shiftKey&&e.keyCode===67,e.ctrlKey&&e.shiftKey&&e.keyCode===74,// Copy/paste operations\ne.ctrlKey&&e.keyCode===65,e.ctrlKey&&e.keyCode===67,e.ctrlKey&&e.keyCode===88,e.ctrlKey&&e.keyCode===86,e.ctrlKey&&e.keyCode===83,e.ctrlKey&&e.keyCode===85,// Additional shortcuts\ne.ctrlKey&&e.keyCode===80,e.keyCode===44];if(blockedKeys.some(blocked=>blocked)){e.preventDefault();e.stopPropagation();return false;}});// Start advanced protection\naddAdvancedProtection();}// --------------------------------------------------------------------------\n// THEME: Framer theme detection (FIXED - no system fallback)\n// --------------------------------------------------------------------------\nfunction useFramerTheme(){const getTheme=()=>{if(typeof document===\"undefined\")return\"light\";return document.body.dataset.framerTheme||\"light\";};const[theme,setTheme]=React.useState(getTheme);React.useEffect(()=>{if(typeof document===\"undefined\")return;const observer=new MutationObserver(()=>setTheme(getTheme()));observer.observe(document.body,{attributes:true,attributeFilter:[\"data-framer-theme\"]});// sync once on mount, in case body already has theme\nsetTheme(getTheme());return()=>observer.disconnect();},[]);return theme;}// --------------------------------------------------------------------------\n// HOOK: DIMENSIONS (optional for \"isMobile\")\n// --------------------------------------------------------------------------\nfunction useWindowDimensions(){function getWindowDimensions(){if(typeof window!==\"undefined\"){return{width:window.innerWidth,height:window.innerHeight};}else{return{width:1024,height:768};}}const[windowDimensions,setWindowDimensions]=useState(getWindowDimensions);useEffect(()=>{if(typeof window===\"undefined\")return;function handleResize(){setWindowDimensions(getWindowDimensions());}window.addEventListener(\"resize\",handleResize);return()=>window.removeEventListener(\"resize\",handleResize);},[]);return windowDimensions;}// --------------------------------------------------------------------------\n// WORKER BASE (prefers props.workerUrl, falls back to default)\n// --------------------------------------------------------------------------\nfunction getWorkerBase(props){const fallback=\"https://confbasic-worker.license-proxy.workers.dev\";const base=(props?.workerUrl||fallback).replace(/\\/$/,\"\");return base;}// --------------------------------------------------------------------------\n// GET CURRENCY SYMBOL\n// --------------------------------------------------------------------------\nfunction getCurrencySymbol(currency){switch((currency||\"\").toUpperCase()){case\"USD\":return\"$\";case\"EUR\":return\"€\";case\"GBP\":return\"\\xa3\";default:return currency?currency.toUpperCase():\"$\";}}// --------------------------------------------------------------------------\n// MAP OBJECT-FIT\n// --------------------------------------------------------------------------\nfunction mapFit(typeOption){switch(typeOption){case\"fill\":return\"fill\";case\"fit\":return\"contain\";case\"stretch\":return\"fill\";case\"tile\":return\"repeat\";default:return\"cover\";}}// --------------------------------------------------------------------------\n// RESOLVE IMAGE URL (handles public paths, http->https, strips fragments, fallback)\n// --------------------------------------------------------------------------\nfunction resolveImageUrl(raw,fallback){const PLACEHOLDER=fallback||\"https://placehold.co/1200x800?text=Image\";const s=(raw||\"\").trim();if(!s)return PLACEHOLDER;// Public path from /public (e.g. /images/hero.jpg)\nif(s.startsWith(\"/\")){if(typeof window!==\"undefined\"&&window.location?.origin){return`${window.location.origin}${s}`;}return s;}// Force https when possible\nif(s.startsWith(\"http:\"))return s.replace(/^http:/,\"https:\").split(\"#\")[0];// Clean up fragments for cache consistency\nif(s.startsWith(\"https:\"))return s.split(\"#\")[0];// Allow data: and blob: as-is (editor mode)\nif(s.startsWith(\"data:\")||s.startsWith(\"blob:\"))return s;return s;}/**\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 380\n * @framerIntrinsicHeight 400\n */// --------------------------------------------------------------------------\n// COMPONENT: ConfiguratorBasic\n// --------------------------------------------------------------------------\nexport function ConfiguratorBasic(props){const{style}=props;const framerTheme=useFramerTheme();const adminMode=props.themeMode||\"auto\";const effectiveTheme=adminMode===\"auto\"?framerTheme:adminMode;const[cart,setCart]=useState([]);const[isPopupOpen,setIsPopupOpen]=useState(false);const wrapperRef=useRef(null);// Detectar mobile (<768)\nconst{width}=useWindowDimensions();const isMobile=width<768;// Moneda\nconst currencySymbol=getCurrencySymbol(props.currency);// Add enhanced copy protection on mount\nuseEffect(()=>{addCopyProtection();// Additional runtime validation\nconst validateInterval=setInterval(()=>{try{// Validate component hasn't been tampered with\nif(!validateTimeBasedAccess()){clearInterval(validateInterval);}// Check fingerprint consistency\nconst currentFP=generateFingerprint();const storedFP=sessionStorage.getItem(\"_fp\");if(storedFP&&currentFP!==storedFP){console.warn(\"Fingerprint mismatch detected\");}}catch(e){// Silently handle errors\n}},3e4)// Check every 30 seconds\n;return()=>clearInterval(validateInterval);},[]);// Inject global styles (FIXED - removed system theme fallback)\nuseEffect(()=>{const styleId=\"ecommerce-plugin-styles\";const css=`\n            .ecommerce-plugin-wrapper {\n                /* Enhanced copy protection */\n                -webkit-user-select: none !important;\n                -moz-user-select: none !important;\n                -ms-user-select: none !important;\n                user-select: none !important;\n                \n                /* Disable drag and touch operations */\n                -webkit-user-drag: none !important;\n                -khtml-user-drag: none !important;\n                -moz-user-drag: none !important;\n                -o-user-drag: none !important;\n                user-drag: none !important;\n                \n                /* Disable print */\n                -webkit-print-color-adjust: exact;\n                print-color-adjust: exact;\n                \n                /* Disable text highlighting */\n                -webkit-touch-callout: none !important;\n                -webkit-tap-highlight-color: transparent !important;\n                \n                /* Hide from screen readers when needed */\n                -webkit-appearance: none;\n                -moz-appearance: none;\n                appearance: none;\n                \n                /* Disable outline on focus */\n                outline: none !important;\n                \n                /* Advanced pointer events control */\n                pointer-events: auto;\n                \n                /* Local palette with fallbacks if Framer tokens are missing */\n                --bg: var(--framer-color-bg, #ffffff);\n                --bg-secondary: var(--framer-color-bg-secondary, #f4f5f7);\n                --bg-tertiary: var(--framer-color-bg-tertiary, #eceff3);\n                --fg: var(--framer-color-text, #0b0d12);\n                --fg-subtle: var(--framer-color-text-secondary, #5b6471);\n                --divider: var(--framer-color-divider, #e5e7eb);\n                --tint: var(--framer-color-tint, #6969ff);\n\n                /* Typography: single global font */\n                --font-family: ${props.font?.fontFamily||props.fontFamily||'\"Poppins\", sans-serif'};\n                --font-size: ${typeof props.font?.fontSize===\"number\"?props.font.fontSize:14}px;\n                --line-height: ${typeof props.font?.lineHeight===\"number\"?props.font.lineHeight:1.2};\n                --letter-spacing: ${typeof props.font?.letterSpacing===\"number\"?props.font.letterSpacing+\"px\":\"normal\"};\n                --text-align: ${props.font&&props.font.textAlign?props.font.textAlign:\"inherit\"};\n\n                /* Scales (Option A) */\n                --title-scale: ${typeof props.titleScale===\"number\"&&!isNaN(props.titleScale)?props.titleScale:2.142857};\n                --subtitle-scale: ${typeof props.subtitleScale===\"number\"&&!isNaN(props.subtitleScale)?props.subtitleScale:1.428571};\n                --price-number-scale: ${typeof props.priceNumberScale===\"number\"&&!isNaN(props.priceNumberScale)?props.priceNumberScale:1.857143};\n                --button-scale: ${typeof props.buttonScale===\"number\"&&!isNaN(props.buttonScale)?props.buttonScale:1.142857};\n                --size-scale: ${typeof props.sizeScale===\"number\"&&!isNaN(props.sizeScale)?props.sizeScale:1};\n                --size-chip-font-size: calc(var(--font-size) * var(--size-scale));\n\n                /* Derived sizes */\n                --title-size: calc(var(--font-size) * var(--title-scale));\n                --subtitle-size: calc(var(--font-size) * var(--subtitle-scale));\n                --price-number-size: calc(var(--font-size) * var(--price-number-scale));\n                --button-font-size: calc(var(--font-size) * var(--button-scale));\n            }\n            /* FIXED: Only respond to Framer's theme, no system fallback */\n            [data-framer-theme=\"dark\"] .ecommerce-plugin-wrapper,\n            .ecommerce-plugin-wrapper[data-framer-theme=\"dark\"],\n            [data-theme=\"dark\"] .ecommerce-plugin-wrapper,\n            .ecommerce-plugin-wrapper[data-theme=\"dark\"] {\n                --bg: #0b0d12;\n                --bg-secondary: #141821;\n                --bg-tertiary: #1b2130;\n                --fg: #e5e7eb;\n                --fg-subtle: #9aa3b2;\n                --divider: #2a3446;\n                --tint: var(--framer-color-tint, #8ea2ff);\n            }\n            [data-framer-theme=\"light\"] .ecommerce-plugin-wrapper,\n            .ecommerce-plugin-wrapper[data-framer-theme=\"light\"],\n            [data-theme=\"light\"] .ecommerce-plugin-wrapper,\n            .ecommerce-plugin-wrapper[data-theme=\"light\"] {\n                --bg: #ffffff;\n                --bg-secondary: #f4f5f7;\n                --bg-tertiary: #eceff3;\n                --fg: #0b0d12;\n                --fg-subtle: #5b6471;\n                --divider: #e5e7eb;\n                --tint: var(--framer-color-tint, #6969ff);\n            }\n            @import url(\"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap\");\n            * {\n                margin: 0;\n                padding: 0;\n                box-sizing: border-box;\n            }\n            /* Force our component and all descendants to use the chosen font */\n            .ecommerce-plugin-wrapper,\n            .ecommerce-plugin-wrapper * {\n                font-family: var(--font-family) !important;\n                font-size: var(--font-size);\n                line-height: var(--line-height);\n                letter-spacing: var(--letter-spacing);\n                /* Additional copy protection */\n                -webkit-touch-callout: none;\n                -webkit-user-select: none;\n                -khtml-user-select: none;\n                -moz-user-select: none;\n                -ms-user-select: none;\n                user-select: none;\n            }\n            /* Ensure UI controls use the selected font */\n            .ecommerce-plugin-wrapper button,\n            .ecommerce-plugin-wrapper input,\n            .ecommerce-plugin-wrapper select,\n            .ecommerce-plugin-wrapper textarea {\n                font-family: var(--font-family) !important;\n            }\n            /* Text alignment from legacy Font control */\n            .ecommerce-plugin-wrapper .card-header,\n            .ecommerce-plugin-wrapper .card-header h3,\n            .ecommerce-plugin-wrapper .card-header p,\n            .ecommerce-plugin-wrapper .popup h3,\n            .ecommerce-plugin-wrapper .popup .cart-item .info p {\n                text-align: var(--text-align);\n            }\n            .ecommerce-plugin-wrapper {\n                display: flex;\n                flex-direction: column;\n                position: relative;\n                width: 100%;\n                height: 100%;\n                overflow: visible;\n                background: transparent;\n                color: var(--fg);\n                /* card border color (customizable, defaults to divider) */\n                --card-border: ${props.showBorder?`${props.borderColor}`:`var(--divider)`};\n            }\n            /* ---- MAIN CARD ---- */\n            .card {\n                display: flex;\n                flex-direction: column;\n                width: 100%;\n                height: 100%;\n                background: var(--bg);\n                border-radius: 20px;\n                border: ${props.showBorder?`2px solid var(--card-border)`:\"none\"};\n                box-shadow: ${props.showShadow?\"0 8px 30px rgba(0, 0, 0, 0.1)\":\"none\"} !important;\n                overflow: hidden;\n                cursor: default;\n                padding: 25px;\n                box-sizing: border-box;\n            }\n            .card-header {\n                position: relative;\n                line-height: 2rem;\n                flex-shrink: 0;\n            }\n            .card-header h3 {\n                color: var(--fg);\n                font-size: var(--title-size);\n            }\n            .card-header p {\n                color: var(--fg-subtle);\n                font-size: var(--subtitle-size);\n            }\n            .product-label {\n                position: absolute;\n                top: -10px;\n                right: -70px;\n                padding: 6px 60px;\n                background-color: #FFC107;\n                color: var(--fg);\n                font-weight: 700;\n                font-size: 0.85rem;\n                text-transform: uppercase;\n                box-shadow: none !important;\n                pointer-events: none;\n                display: inline-flex;\n                align-items: center;\n                justify-content: center;\n                white-space: nowrap;\n                line-height: normal;\n                transform: rotate(45deg);\n                transform-origin: center center;\n                z-index: 3;\n                clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);\n            }\n            /* Mask to make the ribbon corner transparent */\n            .product-label::before {\n                content: \"\";\n                position: absolute;\n                top: -1px;\n                right: -1px;\n                width: 44px;\n                height: 44px;\n                background: transparent;\n                border-top-right-radius: 22px;\n                z-index: 4;\n                pointer-events: none;\n            }\n            .card-img {\n                position: relative;\n                width: 100%;\n                flex: 1;\n                margin: 22px 0;\n                overflow: hidden;\n                border-radius: 13px;\n                display: flex;\n                min-height: 300px;\n            }\n            .card-img img,\n            .card-img-tile {\n                width: 100%;\n                height: 100%;\n                transition: opacity 0.3s ease;\n                /* Enhanced image protection */\n                -webkit-user-drag: none !important;\n                -khtml-user-drag: none !important;\n                -moz-user-drag: none !important;\n                -o-user-drag: none !important;\n                user-drag: none !important;\n                -webkit-user-select: none !important;\n                -moz-user-select: none !important;\n                -ms-user-select: none !important;\n                user-select: none !important;\n                /* Prevent image context menu */\n                pointer-events: none;\n                /* Prevent image saving */\n                -webkit-touch-callout: none !important;\n                -webkit-tap-highlight-color: transparent !important;\n            }\n            .card-img img {\n                object-fit: cover;\n            }\n            .card-details {\n                display: flex;\n                flex-wrap: wrap;\n                justify-content: space-between;\n                align-items: center;\n                flex-shrink: 0;\n                gap: 10px;\n            }\n            .card-details .price p {\n                color: var(--fg-subtle);\n                font-size: 20px;\n            }\n            .card-details .price strong {\n                color: var(--fg);\n                font-size: var(--price-number-size);\n            }\n            .colors {\n                display: flex;\n                gap: 10px;\n            }\n            .colors div {\n                cursor: pointer;\n                width: 35px;\n                height: 35px;\n                border-radius: 50%;\n                position: relative;\n                border: 1px solid var(--divider);\n                transition: border 0.3s;\n            }\n            .colors div.selected {\n                border: 2px solid var(--tint);\n            }\n            .colors div i {\n                position: absolute;\n                top: 5px;\n                left: 5px;\n                color: #ffffff;\n                font-size: 25px;\n                opacity: 0;\n                transition: 0.3s;\n                text-shadow: 0 0 5px rgba(0,0,0,0.85);\n            }\n            .colors div.selected i {\n                opacity: 1;\n            }\n            .card-extras {\n                display: flex;\n                flex-wrap: wrap;\n                justify-content: space-between;\n                align-items: center;\n                gap: 10px;\n            }\n            .card-sizes {\n                display: flex;\n                gap: 10px;\n                margin-top: 10px;\n            }\n            .card-sizes span {\n                cursor: pointer;\n                color: var(--fg);\n                background: var(--bg-secondary);\n                border-radius: 12px;\n                padding: 6px 12px;\n                transition: 0.3s;\n                font-size: var(--size-chip-font-size);\n            }\n            .card-sizes span.selected {\n                color: var(--tint);\n                background: var(--bg-tertiary);\n                border-radius: 10px;\n            }\n            .card-sizes span:hover {\n                background-color: var(--bg-tertiary);\n                border-radius: 10px;\n            }\n            .quantity-selector {\n                display: flex;\n                align-items: center;\n                gap: 10px;\n            }\n            .quantity-selector button {\n                width: 32px;\n                height: 32px;\n                padding: 0;\n                display: inline-flex;\n                align-items: center;\n                justify-content: center;\n                line-height: 1;\n                font-weight: 600;\n                border: 1px solid var(--divider);\n                background: var(--bg-tertiary);\n                color: var(--fg);\n                cursor: pointer;\n                font-size: 16px;\n                border-radius: 8px;\n            }\n            .quantity-selector button:hover {\n                background: var(--bg-secondary);\n            }\n            .quantity-selector button:focus-visible {\n                outline: 2px solid var(--tint);\n                outline-offset: 1px;\n            }\n            .quantity-selector span {\n                min-width: 20px;\n                text-align: center;\n                line-height: 1;\n                font-variant-numeric: tabular-nums;\n                color: var(--fg);\n            }\n            .card-footer {\n                text-align: center;\n                margin-top: 15px;\n                width: 100%;\n                flex-shrink: 0;\n            }\n            .card-footer button {\n                cursor: pointer;\n                width: 100%;\n                height: 46px;\n                border-radius: 12px;\n                background: ${props.buttonColor};\n                color: #fff;\n                font-size: var(--button-font-size);\n                letter-spacing: 0.5px;\n                transition: 0.4s;\n                box-shadow: none !important;\n                border: none;\n            }\n            .card-footer button:hover {\n                background-color: ${props.buttonHoverColor};\n            }\n            @media (max-width: 600px) {\n                .ecommerce-plugin-wrapper {\n                    padding-bottom: 70px;\n                }\n                .card {\n                    position: relative !important;\n                    padding-bottom: 60px !important;\n                    overflow: hidden !important;\n                }\n                .card-details {\n                    flex-wrap: nowrap;\n                    justify-content: flex-start;\n                    align-items: center;\n                    gap: 10px;\n                }\n                .card-details .price { margin: 0; }\n                .card-details .colors { margin-left: auto; }\n                .card-extras {\n                    display: flex;\n                    flex-wrap: nowrap !important;\n                    justify-content: space-between !important;\n                    align-items: center !important;\n                }\n                .card-extras .card-sizes { width: 100%; }\n                .quantity-selector { margin-left: auto !important; }\n                .card-footer {\n                    position: relative !important;\n                    margin-top: 15px !important;\n                    background: none !important;\n                    padding: 0 !important;\n                    width: 100% !important;\n                }\n                .card-footer button { width: 100% !important; margin: 0 !important; }\n                .popup { width: 100% !important; max-width: none; margin: 0 !important; padding: 15px !important; border-radius: 15px !important; height: auto; max-height: 90vh; overflow-y: auto; }\n                .popup .cart-item { flex-direction: column; align-items: flex-start; gap: 10px; }\n                .popup .cart-item img { width: 80px; height: 80px; margin: 0; }\n                .popup .cart-item .info { margin-left: 0; }\n                .popup .cart-item .details { display: none; }\n                .popup .actions { flex-direction: row !important; justify-content: space-between !important; gap: 10px !important; }\n                .popup .actions button { width: 48% !important; }\n                .popup .close-btn { top: 10px; right: 10px; }\n                .popup .cart-item .controls { justify-content: flex-end !important; width: 100% !important; }\n                .popup .cart-item .controls button { pointer-events: auto !important; }\n            }\n            /* ---- CART POPUP ---- */\n            .popup-overlay {\n                position: fixed;\n                top: 0;\n                left: 0;\n                width: 100%;\n                height: 100%;\n                background: rgba(0, 0, 0, 0.5);\n                display: flex;\n                justify-content: center;\n                align-items: center;\n                z-index: 999999;\n                overflow-x: hidden;\n                padding: 0 10px;\n                pointer-events: none;\n            }\n            .popup {\n                position: relative;\n                pointer-events: auto;\n                width: 90%;\n                max-width: 700px;\n                max-height: 90vh;\n                overflow-y: auto;\n                padding: 30px;\n                background: var(--bg);\n                color: var(--fg);\n                border-radius: 20px;\n                box-shadow: none !important;\n                transition: 0.3s;\n                margin: 20px;\n            }\n            .popup h3 {\n                color: var(--fg);\n                font-size: 28px;\n                margin-bottom: 25px;\n                text-align: center;\n            }\n            .popup .cart-item {\n                display: flex;\n                align-items: center;\n                justify-content: space-between;\n                padding: 12px 0;\n                border-bottom: 1px solid var(--divider);\n            }\n            .popup .cart-item img {\n                width: 150px;\n                height: 150px;\n                border-radius: 8px;\n                object-fit: cover;\n                /* Enhanced image protection */\n                -webkit-user-drag: none !important;\n                -khtml-user-drag: none !important;\n                -moz-user-drag: none !important;\n                -o-user-drag: none !important;\n                user-drag: none !important;\n                -webkit-user-select: none !important;\n                -moz-user-select: none !important;\n                -ms-user-select: none !important;\n                user-select: none !important;\n                -webkit-touch-callout: none !important;\n                -webkit-tap-highlight-color: transparent !important;\n                pointer-events: none;\n            }\n            .popup .cart-item .info { flex-grow: 1; margin-left: 15px; }\n            .popup .cart-item .info strong { color: var(--fg); font-size: 18px; margin-bottom: 8px; display: block; }\n            .popup .cart-item .info p { color: var(--fg-subtle); font-size: 16px; margin: 5px 0; line-height: 1.4; }\n            .popup .cart-item .info .details { display: flex; flex-wrap: nowrap; gap: 30px; align-items: center; }\n            .popup .cart-item .controls { display: flex; align-items: center; }\n            .popup .cart-item .controls button { background: var(--bg-secondary); color: var(--fg); border: none; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-weight: bold; font-size: 14px; }\n            .popup .cart-item .controls span { margin: 0 10px; min-width: 20px; text-align: center; font-size: 16px; color: var(--fg); }\n            .popup .popup-total { color: var(--fg); font-size: 20px; font-weight: bold; margin-top: 20px; text-align: right; }\n            .popup .actions { margin-top: 25px; display: flex; justify-content: space-between; }\n            .popup .actions button { cursor: pointer; width: 48%; height: 50px; border-radius: 10px; background: ${props.buttonColor}; color: #fff; font-size: var(--button-font-size); letter-spacing: 0.3px; transition: 0.3s; border: none; }\n            .ecommerce-plugin-wrapper .popup .cart-item .controls button,\n            .ecommerce-plugin-wrapper .quantity-selector button {\n                font-family: var(--font-family) !important;\n                font-size: var(--button-font-size);\n            }\n            .popup .actions button:hover { background-color: ${props.buttonHoverColor}; }\n            .popup .actions button.continue { background-color: var(--bg-secondary) !important; color: var(--fg) !important; }\n            .popup .actions button.continue:hover { background-color: var(--bg-tertiary) !important; }\n            .popup .close-btn { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: var(--fg); font-size: 28px; cursor: pointer; }\n\n            /* Dark-specific tweaks */\n            [data-framer-theme=\"dark\"] .ecommerce-plugin-wrapper .card-sizes span.selected,\n            .ecommerce-plugin-wrapper[data-framer-theme=\"dark\"] .card-sizes span.selected,\n            [data-theme=\"dark\"] .ecommerce-plugin-wrapper .card-sizes span.selected,\n            .ecommerce-plugin-wrapper[data-theme=\"dark\"] .card-sizes span.selected {\n                box-shadow: 0 0 0 1px var(--tint) inset;\n            }\n\n            /* Light-specific tweaks */\n            [data-framer-theme=\"light\"] .ecommerce-plugin-wrapper .card-sizes span:hover,\n            .ecommerce-plugin-wrapper[data-framer-theme=\"light\"] .card-sizes span:hover,\n            [data-theme=\"light\"] .ecommerce-plugin-wrapper .card-sizes span:hover,\n            .ecommerce-plugin-wrapper[data-theme=\"light\"] .card-sizes span:hover {\n                box-shadow: 0 0 0 1px var(--divider) inset;\n            }\n        `;let styleEl=document.getElementById(styleId);if(!styleEl){styleEl=document.createElement(\"style\");styleEl.id=styleId;document.head.appendChild(styleEl);}styleEl.innerHTML=css;},[props.font,props.fontFamily,props.buttonColor,props.buttonHoverColor,props.titleFontSize,props.descriptionFontSize,props.showBorder,props.borderColor,props.showShadow,props.titleScale,props.subtitleScale,props.priceNumberScale,props.buttonScale,props.sizeScale,effectiveTheme]);// Keep typography variables in sync immediately on Font changes (affects cart too)\nuseEffect(()=>{const el=wrapperRef.current;if(!el)return;const ff=props.font?.fontFamily||props.fontFamily||'\"Poppins\", sans-serif';const fs=typeof props.font?.fontSize===\"number\"?props.font.fontSize:14;const lh=typeof props.font?.lineHeight===\"number\"?props.font.lineHeight:1.2;const ls=typeof props.font?.letterSpacing===\"number\"?props.font.letterSpacing+\"px\":\"normal\";const ta=props.font&&props.font.textAlign?props.font.textAlign:\"inherit\";el.style.setProperty(\"--font-family\",ff);el.style.setProperty(\"--font-size\",fs+\"px\");el.style.setProperty(\"--line-height\",String(lh));el.style.setProperty(\"--letter-spacing\",ls);el.style.setProperty(\"--text-align\",ta);},[props.font,props.fontFamily]);// Force theme on wrapper when themeMode is not \"auto\" (ensures dark overrides even if the page is light)\nuseEffect(()=>{const forced=props?.themeMode;const el=wrapperRef.current;if(!el)return;if(forced&&forced!==\"auto\"){// set attributes for CSS selectors\nel.setAttribute(\"data-framer-theme\",effectiveTheme);el.setAttribute(\"data-theme\",effectiveTheme);// also set inline CSS variables to guarantee the palette is applied\nconst isDark=effectiveTheme===\"dark\";const vars=isDark?{\"--bg\":\"#0b0d12\",\"--bg-secondary\":\"#141821\",\"--bg-tertiary\":\"#1b2130\",\"--fg\":\"#e5e7eb\",\"--fg-subtle\":\"#9aa3b2\",\"--divider\":\"#2a3446\",\"--tint\":\"#8ea2ff\"}:{\"--bg\":\"#ffffff\",\"--bg-secondary\":\"#f4f5f7\",\"--bg-tertiary\":\"#eceff3\",\"--fg\":\"#0b0d12\",\"--fg-subtle\":\"#5b6471\",\"--divider\":\"#e5e7eb\",\"--tint\":\"#6969ff\"};Object.entries(vars).forEach(([k,v])=>{el.style.setProperty(k,String(v));});}else{// auto: remove forced attributes and inline vars\nel.removeAttribute(\"data-framer-theme\");el.removeAttribute(\"data-theme\");[\"--bg\",\"--bg-secondary\",\"--bg-tertiary\",\"--fg\",\"--fg-subtle\",\"--divider\",\"--tint\"].forEach(k=>el.style.removeProperty(k));}},[effectiveTheme,props?.themeMode]);// --------------------------------------------------------------------------\n// Helper: Create checkout session via Worker (now passes line_items with images)\n// --------------------------------------------------------------------------\nasync function createCheckoutSessionOnWorker({amountTotalCents,lineItems,currency,successUrl,cancelUrl,license,mode=\"payment\",metadata,description}){const base=getWorkerBase(props);// Build a pass-through object that mirrors Stripe's Checkout Session params\nconst sessionParams={mode,line_items:lineItems,currency,success_url:successUrl||(typeof window!==\"undefined\"?window.location.href+\"?success=true\":\"https://example.com/success\"),cancel_url:cancelUrl||(typeof window!==\"undefined\"?window.location.href+\"?canceled=true\":\"https://example.com/cancel\"),payment_intent_data:description||metadata?{description:description||undefined,metadata:metadata||undefined}:undefined,metadata};// Single POST helper with explicit CORS mode\nasync function postJSON(url,body){const resp=await fetch(url,{method:\"POST\",mode:\"cors\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(body)});if(!resp.ok){const text=await resp.text();const err=new Error(`Worker error ${resp.status}: ${text}`);// @ts-ignore attach for upper handler\nerr.status=resp.status;throw err;}return await resp.json();}// Payload our Worker understands\nconst payload={license,amount_total_cents:amountTotalCents,allow_line_items_pass_through:true,session_params:sessionParams,currency,mode,success_url:sessionParams.success_url,cancel_url:sessionParams.cancel_url,line_items:lineItems,metadata,description};// Try a few well-known endpoints to avoid 404/405 mismatches across Worker versions\nconst candidates=[`${base}/create-checkout-session`,`${base}/plugin/create-checkout-session`,`${base}/checkout/create`,`${base}/api/create-checkout-session`];let lastError=null;for(const url of candidates){try{return await postJSON(url,payload);}catch(e){lastError=e;// If it's a classic route mismatch (404/405), continue trying next\nconst status=e&&e.status||0;if(status!==404&&status!==405){throw e;}}}// If we got here, none of the endpoints worked\nthrow lastError||new Error(\"Worker endpoint not found (tried multiple routes)\");}// --------------------------------------------------------------------------\n// Cart functions\n// --------------------------------------------------------------------------\nconst handleAddToCart=(product,quantity)=>{setCart(prevCart=>{const index=prevCart.findIndex(item=>item.id===product.id&&(item.selectedSize?.label||\"\")===(product.selectedSize?.label||\"\")&&(item.selectedColor?.color||\"\")===(product.selectedColor?.color||\"\"));if(index>=0){const updatedCart=[...prevCart];updatedCart[index].quantity+=quantity;return updatedCart;}else{return[...prevCart,{...product,quantity}];}});setIsPopupOpen(true);};const handleUpdateQuantity=(index,delta)=>{setCart(prevCart=>prevCart.map((item,i)=>i===index?{...item,quantity:Math.max(1,item.quantity+delta)}:item));};const handleRemoveProduct=indexToRemove=>{setCart(prevCart=>prevCart.filter((_,i)=>i!==indexToRemove));};const handleCheckout=async(_finalTotal,_chosenDescription)=>{try{if(cart.length===0){alert(\"The cart is empty\");return;}// Stripe expects uppercase currency codes typically\nconst curr=(props.currency||\"USD\").toUpperCase();// Build line_items including images, name with options, and description so they appear in Checkout\nconst baseLineItems=cart.map(p=>{let finalPrice=p.basePrice;if(p.selectedSize?.additionalPrice)finalPrice+=p.selectedSize.additionalPrice;if(p.selectedColor?.additionalPrice)finalPrice+=p.selectedColor.additionalPrice;const unitAmount=Math.max(0,Math.round((Number(finalPrice)+Number.EPSILON)*100));// Ensure a valid HTTPS image URL is sent (Stripe only shows https, not data: or blob:)\nconst rawImg=p.displayImage&&String(p.displayImage)||p.image?.source?.src&&String(p.image.source.src)||\"\";const imageUrl=rawImg&&/^https?:\\/\\//i.test(rawImg)?rawImg.replace(/^http:/i,\"https:\"):\"\";// Compact but informative name; include size & color\nconst nameParts=[p.title];if(p.selectedSize?.label)nameParts.push(`Size: ${p.selectedSize.label}`);if(p.selectedColor?.color)nameParts.push(`Color: ${p.selectedColor.color}`);// Rich description so it's visible in the Stripe dashboard/receipt\nconst descriptionParts=[];if(p.description)descriptionParts.push(p.description);descriptionParts.push(`Base: ${props.currency} ${Number(p.basePrice).toFixed(2)}`);if(p.selectedSize?.label)descriptionParts.push(`Size: ${p.selectedSize.label} (+${props.currency} ${Number(p.selectedSize.additionalPrice||0).toFixed(2)})`);if(p.selectedColor?.color)descriptionParts.push(`Color: ${p.selectedColor.color} (+${props.currency} ${Number(p.selectedColor.additionalPrice||0).toFixed(2)})`);const productData={name:nameParts.join(\" • \"),description:descriptionParts.join(\" | \"),images:imageUrl?[imageUrl.replace(/^http:/i,\"https:\").split(\"#\")[0]]:undefined};return{price_data:{currency:curr,unit_amount:unitAmount,product_data:productData},quantity:Math.max(1,parseInt(String(p.quantity),10)||1),metadata:{product_id:String(p.id??\"\"),base_price:String(Number(p.basePrice||0).toFixed(2)),size_label:p.selectedSize?.label??\"\",size_extra:String(Number(p.selectedSize?.additionalPrice||0).toFixed(2)),color_name:p.selectedColor?.color??\"\",color_extra:String(Number(p.selectedColor?.additionalPrice||0).toFixed(2)),final_unit_amount:String((unitAmount/100).toFixed(2)),image_used:productData.images?.[0]||\"\"}};});// Optional: add tax as a separate line item if tax% is configured\nconst lineItems=[...baseLineItems];const taxPercent=Number(props.tax)||0;// Subtotal without tax (items only)\nconst itemsSubtotalCents=baseLineItems.reduce((acc,li)=>{const ua=Number(li?.price_data?.unit_amount||0);const qty=Math.max(1,parseInt(String(li?.quantity||1),10)||1);return acc+ua*qty;},0);if(taxPercent>0){const taxCents=Math.max(0,Math.round(itemsSubtotalCents*taxPercent/100))|0;if(taxCents>0){lineItems.push({price_data:{currency:curr,unit_amount:taxCents,product_data:{name:`Tax (${taxPercent}%)`}},quantity:1});}}// Ensure images are valid https URLs; if not, drop images field to avoid Stripe rejecting them\nlineItems.forEach(li=>{const imgs=li?.price_data?.product_data?.images;if(Array.isArray(imgs)){const cleaned=imgs.map(u=>String(u||\"\").trim()).filter(u=>/^https:\\/\\//i.test(u)).map(u=>u.split(\"#\")[0]);if(cleaned.length>0){li.price_data.product_data.images=cleaned;}else{delete li.price_data.product_data.images;}}});// Build a summary for metadata / dashboard visibility\nconst orderSummary=baseLineItems.map((li,idx)=>{const name=li?.price_data?.product_data?.name||`Item ${idx+1}`;const qty=li?.quantity||1;const ua=(li?.price_data?.unit_amount||0)/100;return`${idx+1}) ${name} x${qty} @ ${curr} ${ua.toFixed(2)}`;}).concat(taxPercent>0?[`Tax: ${taxPercent}%`]:[]).join(\" | \");const orderMetadata={currency:curr,items_count:String(baseLineItems.length),tax_percent:String(Number(props.tax||0)),summary:orderSummary};// Compute total (items + tax)\nconst totalCents=lineItems.reduce((acc,li)=>{const ua=Number(li?.price_data?.unit_amount||0);const qty=Math.max(1,Number(li?.quantity||1));return acc+ua*qty;},0);if(!Number.isFinite(totalCents)||totalCents<=0){throw new Error(\"Calculated total is invalid (amount_total_cents <= 0)\");}const{url}=await createCheckoutSessionOnWorker({amountTotalCents:totalCents,lineItems,currency:curr,successUrl:props.redirectUrl?`${props.redirectUrl}?success=true`:undefined,cancelUrl:props.redirectUrl?`${props.redirectUrl}?canceled=true`:undefined,license:props?.license||\"default\",mode:\"payment\",metadata:orderMetadata,description:orderSummary});if(url){window.location.href=url;}else{alert(\"Could not create checkout session\");}}catch(err){console.error(\"Checkout error:\",err);const msg=typeof err?.message===\"string\"?err.message:String(err);alert(`Checkout error: ${msg}`);}};// --------------------------------------------------------------------------\n// Component rendering (if the license is valid)\n// --------------------------------------------------------------------------\nreturn /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,className:\"ecommerce-plugin-wrapper\",\"data-framer-theme\":effectiveTheme,\"data-theme\":effectiveTheme,style:{...style,width:\"100%\",height:\"100%\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(ProductCard,{product:props.product,onAddToCart:handleAddToCart,showSizes:props.showSizes,showColors:props.showColors,currencySymbol:currencySymbol,buttonLabel:props.buttonLabel})}),isPopupOpen&&/*#__PURE__*/_jsx(CartPopup,{cart:cart,onClose:()=>setIsPopupOpen(false),onRemoveProduct:handleRemoveProduct,onUpdateQuantity:handleUpdateQuantity,onCheckout:handleCheckout,currencySymbol:currencySymbol,tax:props.tax})]});}// --------------------------------------------------------------------------\n// COMPONENT: PRODUCT CARD\n// --------------------------------------------------------------------------\nfunction ProductCard({product,onAddToCart,showSizes,showColors,currencySymbol,buttonLabel}){const basePrice=product.basePrice||0;const sizes=product.sizes||[];const colors=product.colors||[];// --- NEW: Image handling depending on PRO ---\n// Safe placeholder; override via props if desired\nconst DEFAULT_PLACEHOLDER=\"https://placehold.co/1200x800?text=Image\";// Initially loads the image if it exists; otherwise, uses the placeholder.\nconst imageSource=resolveImageUrl(typeof product.image===\"object\"&&product.image.source?.src?String(typeof product.image.source.src===\"string\"?product.image.source.src:product.image.source.src?.src||\"\"):typeof product.image===\"string\"?product.image:\"\",DEFAULT_PLACEHOLDER);// Extracts the \"Type\" (object-fit) from the image; if not defined, uses \"cover\"\nconst mainType=typeof product.image===\"object\"&&product.image.source&&product.image.source.Type||\"cover\";// State for the current image and opacity (for transition effect)\nconst[currentImage,setCurrentImage]=useState(imageSource);const[imgOpacity,setImgOpacity]=useState(1);// State for selection options\nconst[selectedSize,setSelectedSize]=useState(null);const[selectedColor,setSelectedColor]=useState(null);const[quantity,setQuantity]=useState(1);// Function to get the image associated with a color\nfunction getColorImage(col){if(!col)return null;if(typeof col.image===\"object\"&&col.image){const maybeSrc=typeof col.image.src===\"string\"?col.image.src:col.image.src?.src||\"\";if(maybeSrc)return resolveImageUrl(String(maybeSrc));}else if(typeof col.image===\"string\"){return resolveImageUrl(col.image);}return null;}// Calculates the final object-fit: if the selected color has its Type defined, uses that; otherwise, uses the main image's Type\nfunction getFinalFit(){if(selectedColor&&typeof selectedColor.Type===\"string\"){return selectedColor.Type;}return mainType;}// Updates the current image when the color changes; if no color is selected, reverts to the main image\nuseEffect(()=>{if(!selectedColor){setImgOpacity(0);const t=setTimeout(()=>{setCurrentImage(imageSource);setImgOpacity(1);},300);return()=>clearTimeout(t);}const newSrc=resolveImageUrl(selectedColor.showCanvas&&selectedColor.canvasImage?selectedColor.canvasImage:selectedColor.image||imageSource);setImgOpacity(0);const t=setTimeout(()=>{setCurrentImage(newSrc);setImgOpacity(1);},300);return()=>clearTimeout(t);},[selectedColor,imageSource]);// Final price calculation (including extras if added in other controls)\nlet finalPrice=basePrice;if(selectedSize?.additionalPrice)finalPrice+=selectedSize.additionalPrice;if(selectedColor?.additionalPrice)finalPrice+=selectedColor.additionalPrice;const handleBuyNow=e=>{e.stopPropagation();// If no size or color has been selected, defaults to the first available\nconst finalSize=selectedSize||(sizes.length?sizes[0]:null);const finalColor=selectedColor||(colors.length?colors[0]:null);onAddToCart({...product,basePrice,selectedSize:finalSize,selectedColor:finalColor,displayImage:currentImage,displayAlt:finalColor?.alt||(typeof product.image===\"object\"?product.image.source.alt:product.title),displayType:finalColor?.Type||getFinalFit()},quantity);setQuantity(1);};function renderImage(){if(getFinalFit()===\"tile\"){return /*#__PURE__*/_jsx(\"div\",{className:\"card-img-tile\",style:{backgroundImage:`url(${resolveImageUrl(currentImage,DEFAULT_PLACEHOLDER)})`,backgroundRepeat:\"repeat\",backgroundSize:\"auto\",opacity:imgOpacity}});}else if(getFinalFit()===\"stretch\"){return /*#__PURE__*/_jsx(\"div\",{className:\"card-img-tile\",style:{backgroundImage:`url(${resolveImageUrl(currentImage,DEFAULT_PLACEHOLDER)})`,backgroundRepeat:\"no-repeat\",backgroundPosition:\"center\",backgroundSize:\"100% 100%\",opacity:imgOpacity}});}else{return /*#__PURE__*/_jsx(\"img\",{src:resolveImageUrl(currentImage,DEFAULT_PLACEHOLDER),alt:selectedColor?.alt||(typeof product.image===\"object\"?product.image.source?.src?.alt||product.image.source?.alt:undefined)||product.title,style:{opacity:imgOpacity,transition:\"opacity 0.3s ease\",objectFit:mapFit(getFinalFit())}});}}return /*#__PURE__*/_jsxs(\"div\",{className:\"card\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"card-header\",children:[/*#__PURE__*/_jsx(\"h3\",{children:product.title}),/*#__PURE__*/_jsx(\"p\",{children:product.description}),product.label&&/*#__PURE__*/_jsx(\"div\",{className:\"product-label\",children:product.label})]}),/*#__PURE__*/_jsx(\"div\",{className:\"card-img\",children:renderImage()}),/*#__PURE__*/_jsxs(\"div\",{className:\"card-details\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"price\",children:[/*#__PURE__*/_jsx(\"p\",{children:\"Price\"}),/*#__PURE__*/_jsxs(\"strong\",{children:[currencySymbol,finalPrice.toFixed(2)]})]}),showColors&&colors.length>0&&/*#__PURE__*/_jsx(\"div\",{className:\"colors\",children:colors.map((col,i)=>/*#__PURE__*/_jsx(\"div\",{className:selectedColor===col?\"selected\":\"\",onClick:e=>{e.stopPropagation();setSelectedColor(col);},style:{background:col.color},children:selectedColor===col&&/*#__PURE__*/_jsx(\"i\",{className:\"bx bx-check\"})},i))})]}),showSizes&&sizes.length>0?/*#__PURE__*/_jsxs(\"div\",{className:\"card-extras\",style:{justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"card-sizes\",children:sizes.map((s,i)=>/*#__PURE__*/_jsx(\"span\",{className:selectedSize===s?\"selected\":\"\",onClick:e=>{e.stopPropagation();setSelectedSize(s);},children:s.label},i))}),/*#__PURE__*/_jsxs(\"div\",{className:\"quantity-selector\",children:[/*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();setQuantity(Math.max(1,quantity-1));},children:\"-\"}),/*#__PURE__*/_jsx(\"span\",{children:quantity}),/*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();setQuantity(quantity+1);},children:\"+\"})]})]}):/*#__PURE__*/_jsx(\"div\",{className:\"card-extras\",style:{justifyContent:\"flex-end\"},children:/*#__PURE__*/_jsxs(\"div\",{className:\"quantity-selector\",children:[/*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();setQuantity(Math.max(1,quantity-1));},children:\"-\"}),/*#__PURE__*/_jsx(\"span\",{children:quantity}),/*#__PURE__*/_jsx(\"button\",{onClick:e=>{e.stopPropagation();setQuantity(quantity+1);},children:\"+\"})]})}),/*#__PURE__*/_jsx(\"div\",{className:\"card-footer\",children:/*#__PURE__*/_jsx(\"button\",{onClick:handleBuyNow,children:buttonLabel})})]});}// --------------------------------------------------------------------------\n// COMPONENT: CART POPUP\n// --------------------------------------------------------------------------\nfunction CartPopup({cart,onClose,onRemoveProduct,onUpdateQuantity,onCheckout,currencySymbol,tax}){const subTotal=cart.reduce((acc,product)=>{let finalPrice=product.basePrice;if(product.selectedSize?.additionalPrice){finalPrice+=product.selectedSize.additionalPrice;}if(product.selectedColor?.additionalPrice){finalPrice+=product.selectedColor.additionalPrice;}return acc+finalPrice*product.quantity;},0);const taxAmount=tax?subTotal*tax/100:0;const finalTotal=subTotal+taxAmount;function buildDescriptionForStripe(){let desc=\"Cart items:\\n\";cart.forEach((p,idx)=>{let line=`${idx+1}) ${p.title}`;if(p.selectedSize)line+=` - Size: ${p.selectedSize.label}`;if(p.selectedColor)line+=` - Color: ${p.selectedColor.color}`;line+=` - Qty: ${p.quantity}\n`;desc+=line;});if(tax)desc+=`Tax: ${tax}% applied\n`;desc+=`Final total: ${currencySymbol}${finalTotal.toFixed(2)}`;return desc;}return /*#__PURE__*/_jsx(\"div\",{className:\"popup-overlay\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"popup\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"close-btn\",onClick:onClose,children:\"\\xd7\"}),/*#__PURE__*/_jsx(\"h3\",{children:\"Cart Summary\"}),cart.map((product,index)=>{let finalPrice=product.basePrice;if(product.selectedSize?.additionalPrice){finalPrice+=product.selectedSize.additionalPrice;}if(product.selectedColor?.additionalPrice){finalPrice+=product.selectedColor.additionalPrice;}return /*#__PURE__*/_jsxs(\"div\",{className:\"cart-item\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"img\",{src:resolveImageUrl(product.displayImage||(typeof product.image?.source?.src===\"string\"?(product.image?.source?.src):(product.image?.source?.src)?.src||\"\")),alt:product.displayAlt||(typeof product.image===\"object\"?product.image.source?.src?.alt||product.image.source?.alt:undefined)||product.title}),/*#__PURE__*/_jsxs(\"div\",{className:\"info\",children:[/*#__PURE__*/_jsx(\"strong\",{children:product.title}),/*#__PURE__*/_jsx(\"p\",{children:product.description}),/*#__PURE__*/_jsxs(\"div\",{className:\"details\",children:[product.selectedSize&&/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontSize:\"14px\"},children:\"Size:\"}),\" \",product.selectedSize.label,\" (+ $\",product.selectedSize.additionalPrice||0,\")\"]}),product.selectedColor&&/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontSize:\"14px\"},children:\"Color:\"}),\" \",product.selectedColor.color,\" (+ $\",product.selectedColor.additionalPrice||0,\")\"]}),/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{fontSize:\"14px\"},children:\"Qty:\"}),\" \",product.quantity]})]})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"controls\",children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>onUpdateQuantity(index,-1),children:\"-\"}),/*#__PURE__*/_jsx(\"span\",{children:product.quantity}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>onUpdateQuantity(index,1),children:\"+\"}),/*#__PURE__*/_jsx(\"button\",{style:{marginLeft:\"10px\"},onClick:()=>onRemoveProduct(index),children:\"X\"})]})]},index);}),/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:\"20px\",fontSize:\"16px\",color:\"var(--fg)\"},children:[/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Subtotal:\"}),\" \",currencySymbol,subTotal.toFixed(2)]}),tax?/*#__PURE__*/_jsxs(\"p\",{children:[\"Tax (\",tax,\"%): +\",currencySymbol,taxAmount.toFixed(2)]}):null]}),/*#__PURE__*/_jsxs(\"div\",{className:\"popup-total\",children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Total:\"}),\" \",currencySymbol,finalTotal.toFixed(2)]}),/*#__PURE__*/_jsxs(\"div\",{className:\"actions\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"continue\",onClick:onClose,children:\"Continue Shopping\"}),/*#__PURE__*/_jsx(\"button\",{className:\"checkout\",onClick:()=>{const desc=buildDescriptionForStripe();onCheckout(finalTotal,desc);},children:\"Proceed to Checkout\"})]})]})});}// --------------------------------------------------------------------------\n// DEFAULT PROPS and PROPERTY CONTROLS\n// --------------------------------------------------------------------------\nConfiguratorBasic.defaultProps={redirectUrl:\"https://your-redirect-url.com\",workerUrl:\"https://confbasic-worker.license-proxy.workers.dev\",showSizes:true,showColors:true,currency:\"USD\",tax:0,buttonLabel:\"Add to Cart\",fontFamily:'\"Poppins\", sans-serif',buttonColor:\"#6969ff\",buttonHoverColor:\"#252528\",titleFontSize:30,descriptionFontSize:20,showBorder:true,borderColor:\"#dfdfdf\",showShadow:false,themeMode:\"auto\",product:{id:1,image:{source:{src:\"/images/sample-product.jpg\",alt:\"Sample image\",Type:\"cover\"}},title:\"Bikerss\",description:\"Nice bike Electric\",basePrice:1e3,label:\"New\",sizes:[{label:\"Size M\",additionalPrice:0},{label:\"Size L\",additionalPrice:50}],colors:[{color:\"#FF3322\",image:\"\",alt:\"Color Red\",Type:\"cover\",additionalPrice:20},{color:\"#000000\",image:\"\",alt:\"Color Black\",Type:\"cover\",additionalPrice:0}]}};addPropertyControls(ConfiguratorBasic,{themeMode:{group:\"🎚️ Theme\",type:ControlType.Enum,title:\"Mode\",options:[\"auto\",\"light\",\"dark\"],optionTitles:[\"Auto\",\"Light\",\"Dark\"],defaultValue:\"auto\",description:\"Choose Auto (system), Light or Dark\"},redirectUrl:{group:\"🔐 1. Stripe\",type:ControlType.String,title:\"Redirect URL\",defaultValue:\"https://your-redirect-url.com\"},workerUrl:{group:\"🔐 1. Stripe\",type:ControlType.String,title:\"Worker URL\",defaultValue:\"https://confbasic-worker.license-proxy.workers.dev\",placeholder:\"https://your-worker.your-subdomain.workers.dev\",description:\"Paste your Worker URL (e.g. https://myworker.user.workers.dev)\"},product:{group:\"🛒 2. Product\",type:ControlType.Object,title:\"Product\",controls:{id:{type:ControlType.Number,title:\"ID\",defaultValue:1},image:{type:ControlType.Object,title:\"Image\",controls:{source:{type:ControlType.Object,title:\"Source\",controls:{src:{type:ControlType.ResponsiveImage,title:\"Image\"},Type:{type:ControlType.Enum,title:\"Type\",options:[\"fill\",\"fit\",\"stretch\",\"tile\",\"cover\"],optionTitles:[\"Fill\",\"Fit\",\"Stretch\",\"Tile\",\"Cover\"],defaultValue:\"cover\"}}}}},title:{type:ControlType.String,title:\"Title\"},description:{type:ControlType.String,title:\"Description\"},label:{type:ControlType.String,title:\"Label\"},basePrice:{type:ControlType.Number,title:\"Base Price\",defaultValue:1999},sizes:{type:ControlType.Array,title:\"Sizes\",propertyControl:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\"},additionalPrice:{type:ControlType.Number,title:\"Extra\"}}}},colors:{type:ControlType.Array,title:\"Colors\",propertyControl:{type:ControlType.Object,controls:{color:{type:ControlType.Color,title:\"Color\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"\"},Type:{type:ControlType.Enum,title:\"Type\",options:[\"fill\",\"fit\",\"stretch\",\"tile\",\"cover\"],optionTitles:[\"Fill\",\"Fit\",\"Stretch\",\"Tile\",\"Cover\"],defaultValue:\"cover\"},additionalPrice:{type:ControlType.Number,title:\"Extra\"}}}}}},font:{group:\"🎨 3. Styles\",type:ControlType.Font,title:\"Font\",controls:[\"family\",\"weight\",\"style\",\"lineHeight\",\"letterSpacing\",\"textAlign\"],defaultFontType:\"sans-serif\",defaultValue:{lineHeight:1.2},hidden:props=>!!props.typography},// Move scale controls after font\ntitleScale:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Title scale\",defaultValue:2.142857,min:.5,max:4,step:.05,displayStepper:true,description:\"Title = base \\xd7 scale\"},subtitleScale:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Subtitle scale\",defaultValue:1.428571,min:.5,max:3,step:.05,displayStepper:true,description:\"Subtitle = base \\xd7 scale\"},priceNumberScale:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Price number scale\",defaultValue:1.857143,min:.5,max:4,step:.05,displayStepper:true,description:\"Price number = base \\xd7 scale\"},buttonScale:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Button font scale\",defaultValue:1.142857,min:.5,max:3,step:.05,displayStepper:true,description:\"Buttons = base \\xd7 scale\"},// fontFamily and the rest remain below\nfontFamily:{group:\"🎨 3. Styles\",type:ControlType.String,title:\"Font Family (legacy)\",defaultValue:'\"Poppins\", sans-serif',description:\"Fallback when Font control is not used\",hidden:props=>!!(props.font&&props.font.fontFamily)},buttonColor:{group:\"🎨 3. Styles\",type:ControlType.Color,title:\"Button Color\",defaultValue:\"#6969ff\"},buttonHoverColor:{group:\"🎨 3. Styles\",type:ControlType.Color,title:\"Button Hover Color\",defaultValue:\"#252528\"},titleFontSize:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Title Font Size (legacy)\",defaultValue:30,hidden:()=>true},descriptionFontSize:{group:\"🎨 3. Styles\",type:ControlType.Number,title:\"Description Font Size (legacy)\",defaultValue:20,hidden:()=>true},showBorder:{group:\"🎨 3. Styles\",type:ControlType.Boolean,title:\"Show Border\",defaultValue:true},borderColor:{group:\"🎨 3. Styles\",type:ControlType.Color,title:\"Border Color\",defaultValue:\"#dfdfdf\",hidden:props=>!props.showBorder},showShadow:{group:\"🎨 3. Styles\",type:ControlType.Boolean,title:\"Show Shadow\",defaultValue:false},showSizes:{group:\"🖼️ 4. Product View\",type:ControlType.Boolean,title:\"Show Sizes\"},showColors:{group:\"🖼️ 4. Product View\",type:ControlType.Boolean,title:\"Show Colors\"},currency:{group:\"💰 5. Price and currency\",type:ControlType.String,title:\"Currency\",defaultValue:\"USD\"},tax:{group:\"💰 5. Price and currency\",type:ControlType.Number,title:\"Tax (%)\",min:0,defaultValue:0},buttonLabel:{group:\"🧩 6. Buy Button\",type:ControlType.String,title:\"Buy Button Text\",defaultValue:\"Add to Cart\"}});export default ConfiguratorBasic;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ConfiguratorBasic\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"380\"}},\"ConfiguratorBasic\":{\"type\":\"reactComponent\",\"name\":\"ConfiguratorBasic\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"380\",\"framerIntrinsicHeight\":\"400\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"* @framerSupportedLayoutWidth any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FramerBasic.map","// Generated by Framer (c99c261)\nexport default function metadata(params,activeLocale){return{description:\"Demo Basic Version - Framer configurator\",favicon:\"https://framerusercontent.com/assets/ozEBXJ8RVlUZggxNZdYFSDfTLg4.svg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/pND1EfYitqMfl7knnhEku0HoCAw.png\",title:\"Demo Basic Version - Framer configurator\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (c2a8602)\nimport siteMetadata from\"https://framerusercontent.com/modules/x6nTeURBOCp5cIsiXL9L/3oXvJbdemMEII9RSNh2A/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"17p90oq\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"1lxza8x\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-fppTo\",title:siteMetadata(params,activeLocale).title||\"Home\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (8c7c84e)\nimport siteMetadata from\"https://framerusercontent.com/modules/x6nTeURBOCp5cIsiXL9L/3oXvJbdemMEII9RSNh2A/siteMetadata.js\";export default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1wcvzh6\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"19vz19\",mediaQuery:\"(min-width: 810px) and (max-width: 1199.98px)\"},{hash:\"94d6d5\",mediaQuery:\"(max-width: 809.98px)\"}],description:siteMetadata(params,activeLocale).description,elements:{},robots:\"max-image-preview:large\",serializationId:\"framer-yl4Zx\",title:siteMetadata(params,activeLocale).title||\"Demo\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"uVAWA,SAAS,GAAqB,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAAO,EAAI,EAAO,WAAW,KAAK,CAAI,IAAK,EAAI,aAAa,MAAM,EAAI,KAAK,aAAa,EAAI,SAAS,UAAU,EAAE,EAAE,EAAE,IAAM,EAAG,CAAC,EAAU,UAAU,MAAM,EAAE,GAAG,CAAC,EAAU,SAAS,OAAO,WAAW,OAAO,MAAM,IAAI,OAAO,OAAO,IAAI,MAAM,CAAC,mBAAmB,CAAC,EAAO,WAAW,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,KAAK,EAAG,CAAC,MAAM,EAAE,GAAG,CAClZ,SAAS,GAAqB,CAA+N,MAAjN,KAAY,IAAS,WAAgB,OAAO,SAAW,QAAgB,CAAC,EAAO,YAAY,CAAC,EAAO,gBAAgB,CAAC,EAAO,gBAAgB,CAAC,EAAO,sBAAsB,CAAC,SAAS,6BAA6B,CAAe,MAAM,GAAO,CAAC,GAAG,CAAC,OAAO,GAAO,MAAO,CAAC,MAAO,KAAS,CAC3S,SAAS,GAAgB,CAAC,IAA0B,EAAe,EAAO,WAAW,EAAO,WAAW,IAAgB,EAAgB,EAAO,YAAY,EAAO,YAAY,IAAU,OAAO,GAAgB,EACtO,SAAS,GAAsB,CAAC,IAAM,EAAkB,KA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