{"version":3,"file":"SizesButtons.S3tccpmh.mjs","names":["Phosphor","React.useContext","React.useMemo","React.Fragment","sharedStyle.className","React.useRef","React.useId","className","sharedStyle.css","sharedStyle.fonts","React.useState","React.useRef","debugDiv","sessionId","cartItem"],"sources":["https:/framerusercontent.com/modules/ntUECWRtXyUP7ZFuCf0X/Cs4wo41JtpBqY4uMGGRJ/afo5_SnZl.js","https:/framerusercontent.com/modules/X6GUEus9y498DGnWPJq0/BxYGEB56u4JHKAk0SnWP/SizesButtons.js"],"sourcesContent":["// Generated by Framer (5bbf1f3)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,getFontsFromSharedStyle,Link,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{Icon as Phosphor}from\"https://framerusercontent.com/modules/tYScH7LTqUtz5KUaUAYP/p8dptk4UIND8hbFWz9V7/Phosphor.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/qrtOp1WBHnHthaKaBPjw/NdsbrlpCqIyarSY6CLAh/r5GGLxW14.js\";const PhosphorFonts=getFonts(Phosphor);const enabledGestures={iGOEHSEfF:{hover:true}};const serializationHash=\"framer-rk2Ey\";const variantClassNames={iGOEHSEfF:\"framer-v-u2uba4\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={bounce:.2,delay:0,duration:.4,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const getProps=({click,height,id,link,title,width,...props})=>{return{...props,cOaiSNywe:click??props.cOaiSNywe,lnzDaaQhg:link??props.lnzDaaQhg,y3UhdoRIa:title??props.y3UhdoRIa??\"Shipping and Payment\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Variants=motion.create(React.Fragment);const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,y3UhdoRIa,cOaiSNywe,lnzDaaQhg,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({defaultVariant:\"iGOEHSEfF\",enabledGestures,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1r9usvq=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(cOaiSNywe){const res=await cOaiSNywe(...args);if(res===false)return false;}});const sharedStyleClassNames=[sharedStyle.className];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const ref1=React.useRef(null);const defaultLayoutId=React.useId();const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsx(Link,{href:lnzDaaQhg,nodeId:\"iGOEHSEfF\",openInNewTab:false,smoothScroll:true,children:/*#__PURE__*/_jsxs(motion.a,{...restProps,...gestureHandlers,className:`${cx(scopingClassNames,\"framer-u2uba4\",className,classNames)} framer-14tmni5`,\"data-framer-name\":\"Default\",\"data-highlight\":true,layoutDependency:layoutDependency,layoutId:\"iGOEHSEfF\",onTap:onTap1r9usvq,ref:ref??ref1,style:{...style},...addPropertyOverrides({\"iGOEHSEfF-hover\":{\"data-framer-name\":undefined}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsxs(motion.div,{className:\"framer-dnbdxg\",\"data-framer-name\":\"Wrapper\",layoutDependency:layoutDependency,layoutId:\"C5FC_0B6m\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-17ph0qp\",\"data-styles-preset\":\"r5GGLxW14\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-b1c5dec8-1d45-4559-9244-2734d7cb1ac7, rgb(0, 0, 0)))\"},children:\"Shipping and Payment\"})}),className:\"framer-2upkm5\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"CwQsLBAKc\",style:{\"--extracted-r6o4lv\":\"var(--token-b1c5dec8-1d45-4559-9244-2734d7cb1ac7, rgb(0, 0, 0))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:y3UhdoRIa,verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-xaqcq7-container\",layoutDependency:layoutDependency,layoutId:\"AApjfA0Ks-container\",children:/*#__PURE__*/_jsx(Phosphor,{color:\"var(--token-b1c5dec8-1d45-4559-9244-2734d7cb1ac7, rgb(0, 0, 0))\",height:\"100%\",iconSearch:\"House\",iconSelection:\"CaretRight\",id:\"AApjfA0Ks\",layoutId:\"AApjfA0Ks\",mirrored:false,selectByList:true,style:{height:\"100%\",width:\"100%\"},weight:\"regular\",width:\"100%\",...addPropertyOverrides({\"iGOEHSEfF-hover\":{color:\"var(--token-71059033-f734-455a-9a53-a4addc2a9428, rgb(164, 164, 164))\"}},baseVariant,gestureVariant)})})})]}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-jyv89l\",\"data-framer-name\":\"Line\",layoutDependency:layoutDependency,layoutId:\"gX1AZpmUq\",style:{backgroundColor:\"var(--token-f7c85e94-8e07-48bc-8103-9da0ff00a404, rgb(238, 238, 238))\"}})]})})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-rk2Ey.framer-14tmni5, .framer-rk2Ey .framer-14tmni5 { display: block; }\",\".framer-rk2Ey.framer-u2uba4 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 15px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; text-decoration: none; width: 520px; }\",\".framer-rk2Ey .framer-dnbdxg { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; height: min-content; justify-content: space-between; overflow: hidden; padding: 0px; position: relative; width: 100%; }\",\".framer-rk2Ey .framer-2upkm5 { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-rk2Ey .framer-xaqcq7-container { flex: none; height: 18px; position: relative; width: 18px; }\",\".framer-rk2Ey .framer-jyv89l { flex: none; height: 1px; overflow: hidden; position: relative; width: 100%; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-rk2Ey.framer-u2uba4 { gap: 0px; } .framer-rk2Ey.framer-u2uba4 > * { margin: 0px; margin-bottom: calc(15px / 2); margin-top: calc(15px / 2); } .framer-rk2Ey.framer-u2uba4 > :first-child { margin-top: 0px; } .framer-rk2Ey.framer-u2uba4 > :last-child { margin-bottom: 0px; } }\",...sharedStyle.css];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 34\n * @framerIntrinsicWidth 520\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"]},\"FcpjjxfJ3\":{\"layout\":[\"fixed\",\"auto\"]}}}\n * @framerVariables {\"y3UhdoRIa\":\"title\",\"cOaiSNywe\":\"click\",\"lnzDaaQhg\":\"link\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const Framerafo5_SnZl=withCSS(Component,css,\"framer-rk2Ey\");export default Framerafo5_SnZl;Framerafo5_SnZl.displayName=\"Cart / Details Trigger\";Framerafo5_SnZl.defaultProps={height:34,width:520};addPropertyControls(Framerafo5_SnZl,{y3UhdoRIa:{defaultValue:\"Shipping and Payment\",displayTextArea:false,title:\"Title\",type:ControlType.String},cOaiSNywe:{title:\"Click\",type:ControlType.EventHandler},lnzDaaQhg:{title:\"Link\",type:ControlType.Link}});addFonts(Framerafo5_SnZl,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]},...PhosphorFonts,...getFontsFromSharedStyle(sharedStyle.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerafo5_SnZl\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"34\",\"framerIntrinsicWidth\":\"520\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"FcpjjxfJ3\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerVariables\":\"{\\\"y3UhdoRIa\\\":\\\"title\\\",\\\"cOaiSNywe\\\":\\\"click\\\",\\\"lnzDaaQhg\\\":\\\"link\\\"}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SizeSelector(props){const{sizes:propSizes,links:propLinks,productId,productName,productImage,productPrice}=props;// 🔠 Преобразуем строку размеров в массив\nconst sizes=typeof propSizes===\"string\"?propSizes.split(\",\").map(s=>s.trim()):[\"S\",\"M\",\"L\",\"XL\"];// Автоматически выбираем первый размер по умолчанию\nconst[selectedSize,setSelectedSize]=React.useState(sizes[0]||null);const[isAdding,setIsAdding]=React.useState(false);const[isBuying,setIsBuying]=React.useState(false);const[cartItem,setCartItem]=React.useState(null);const[sessionId,setSessionId]=React.useState(null);const[isSessionReady,setIsSessionReady]=React.useState(false);const linkRef=React.useRef(null);// Supabase конфигурация\nconst supabaseUrl=\"https://dfeyqacizforoyvkmvlb.supabase.co\";const supabaseKey=\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImRmZXlxYWNpemZvcm95dmttdmxiIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTc4NTA4NDcsImV4cCI6MjA3MzQyNjg0N30.S9a6TYkpZGgER0f1tk5kMwbFqtqdFw8XAHLyN7OT4Kg\";const[supabase,setSupabase]=React.useState(null);// --- ОБНОВЛЕННАЯ ЛОГИКА ОПРЕДЕЛЕНИЯ ВАЛЮТЫ И РЕГИОНА ---\nconst deriveRegionAndCurrencyFromPath=()=>{const path=window.location.pathname;let region=null;let currency=\"usd\"// Валюта по умолчанию (английская)\n;if(path.endsWith(\"/pl\")){region=\"pl\";currency=\"pln\";}else if(path.endsWith(\"/eu\")){region=\"eu\";currency=\"eur\";}else if(path.endsWith(\"/bel\")){region=\"bel\";currency=\"byn\";}else if(path.endsWith(\"/ru\")){region=\"ru\";currency=\"rub\";}else if(path.endsWith(\"/en\")){region=\"en\";currency=\"usd\";}return{region,currency};};const{region:currentRegionSuffix,currency:currentProductCurrency}=deriveRegionAndCurrencyFromPath();// --- ДИАГНОСТИЧЕСКАЯ ФУНКЦИЯ ---\nconst logDiagnostic=(message,data=null)=>{const timestamp=new Date().toISOString();const isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);const logData={timestamp,message,isMobile,userAgent:navigator.userAgent,screenSize:`${window.screen.width}x${window.screen.height}`,viewportSize:`${window.innerWidth}x${window.innerHeight}`,url:window.location.href,data};console.log(`🔍 [${timestamp}] ${message}`,logData);// Показываем диагностику на экране для мобильных устройств\nif(isMobile&&window.location.search.includes(\"debug=true\")){const debugDiv=document.getElementById(\"debug-info\");if(debugDiv){debugDiv.innerHTML+=`<div style=\"margin-bottom: 5px; padding: 2px; background: rgba(255,255,255,0.1); border-radius: 3px;\">${timestamp}: ${message}</div>`;}}};// Инициализация диагностической панели\nReact.useEffect(()=>{const isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);if(isMobile&&window.location.search.includes(\"debug=true\")){// Удаляем существующую панель если есть\nconst existingDiv=document.getElementById(\"debug-info\");if(existingDiv){existingDiv.remove();}// Создаем новую диагностическую панель\nconst debugDiv=document.createElement(\"div\");debugDiv.id=\"debug-info\";debugDiv.style.cssText=`\n                position: fixed;\n                top: 0;\n                left: 0;\n                background: rgba(0,0,0,0.95);\n                color: white;\n                padding: 10px;\n                z-index: 99999;\n                font-size: 12px;\n                max-height: 300px;\n                overflow-y: auto;\n                width: 100%;\n                box-sizing: border-box;\n                border: 2px solid #00ff00;\n                font-family: monospace;\n            `;// Добавляем заголовок\ndebugDiv.innerHTML='<div style=\"font-weight: bold; color: #00ff00; margin-bottom: 10px;\">🔍 MOBILE DEBUG PANEL</div>';document.body.appendChild(debugDiv);logDiagnostic(\"Debug panel initialized for mobile\");// Добавляем кнопку для очистки логов\nconst clearButton=document.createElement(\"button\");clearButton.textContent=\"Clear Logs\";clearButton.style.cssText=`\n                position: fixed;\n                top: 10px;\n                right: 10px;\n                background: #ff0000;\n                color: white;\n                border: none;\n                padding: 5px 10px;\n                border-radius: 3px;\n                z-index: 100000;\n                font-size: 12px;\n            `;clearButton.onclick=()=>{const debugDiv=document.getElementById(\"debug-info\");if(debugDiv){debugDiv.innerHTML='<div style=\"font-weight: bold; color: #00ff00; margin-bottom: 10px;\">🔍 MOBILE DEBUG PANEL</div>';}};document.body.appendChild(clearButton);}},[]);// Инициализация Supabase и сессии\nReact.useEffect(()=>{const initSupabaseAndSession=async()=>{try{logDiagnostic(\"Starting Supabase initialization\");// Инициализируем Supabase\nconst{createClient}=await import(\"@supabase/supabase-js\");const client=createClient(supabaseUrl,supabaseKey);setSupabase(client);logDiagnostic(\"Supabase client created successfully\");// Инициализируем сессию\nlet sessionId=localStorage.getItem(\"framer_cart_session\");if(!sessionId){sessionId=\"guest_\"+Date.now()+\"_\"+Math.random().toString(36).substr(2,9);localStorage.setItem(\"framer_cart_session\",sessionId);logDiagnostic(\"Created new session\",{sessionId});// Сохраняем сессию в Supabase\nconst{error}=await client.from(\"guest_sessions\").insert({id:sessionId,user_agent:navigator.userAgent});if(error){logDiagnostic(\"Failed to create session in Supabase\",error);console.error(\"Failed to create session:\",error);}else{logDiagnostic(\"Session saved to Supabase successfully\");}}else{logDiagnostic(\"Using existing session\",{sessionId});// Обновляем активность существующей сессии\nconst{error}=await client.from(\"guest_sessions\").update({last_activity:new Date}).eq(\"id\",sessionId);if(error){logDiagnostic(\"Failed to update session activity\",error);}else{logDiagnostic(\"Session activity updated successfully\");}}setSessionId(sessionId);setIsSessionReady(true);logDiagnostic(\"Initialization completed successfully\");}catch(error){logDiagnostic(\"Initialization failed\",error);console.error(\"Failed to initialize:\",error);// Fallback: создаем локальную сессию\nconst fallbackId=\"fallback_\"+Date.now();localStorage.setItem(\"framer_cart_session\",fallbackId);setSessionId(fallbackId);setIsSessionReady(true);logDiagnostic(\"Using fallback session\",{fallbackId});}};initSupabaseAndSession();},[]);// Проверяем, есть ли товар с выбранным размером в корзине\nReact.useEffect(()=>{if(!supabase||!sessionId||!productId||!selectedSize){setCartItem(null);return;}checkCartItem();},[supabase,sessionId,productId,selectedSize]);const checkCartItem=async()=>{try{logDiagnostic(\"Checking cart item\",{productId,selectedSize,sessionId});const{data,error}=await supabase.from(\"cart_items\").select(\"id, quantity\").eq(\"session_id\",sessionId).eq(\"product_id\",productId).eq(\"size\",selectedSize).single();if(error){logDiagnostic(\"Cart item check failed\",error);}else{logDiagnostic(\"Cart item check successful\",data);}setCartItem(data||null);}catch(error){logDiagnostic(\"Cart item check error\",error);setCartItem(null);}};// 🔗 Преобразуем строку ссылок в объект\nconst sizeLinks=React.useMemo(()=>{if(!propLinks||typeof propLinks!==\"string\")return{};return propLinks.split(\",\").reduce((acc,pair)=>{const[key,...rest]=pair.split(\":\");const value=rest.join(\":\").trim();if(key&&value)acc[key.trim()]=value;return acc;},{});},[propLinks]);// Существующая логика покупки (не изменена)\nconst handleBuy=()=>{if(!selectedSize){alert(\"Please select a size first.\");return;}const rawLink=sizeLinks[selectedSize];if(!rawLink){alert(`No link defined for size ${selectedSize}`);return;}const url=rawLink.startsWith(\"http\")?rawLink:`https://${rawLink}`;if(linkRef.current){linkRef.current.setAttribute(\"href\",url);linkRef.current.click();}};// Улучшенная логика добавления в корзину с диагностикой\nconst handleAddToCart=async()=>{logDiagnostic(\"Add to cart button clicked\",{selectedSize,productId,productName,productPrice,currentProductCurrency,isSessionReady,hasSupabase:!!supabase,hasSessionId:!!sessionId});if(!selectedSize){alert(\"Please select a size first.\");return;}if(!isSessionReady){alert(\"Initializing cart... Please wait.\");return;}if(!supabase||!sessionId){alert(\"Cart initialization error\");return;}if(!productId||!productName||!productPrice){alert(\"Insufficient product data\");return;}setIsAdding(true);try{if(cartItem){// Товар с таким размером уже есть - увеличиваем количество\nlogDiagnostic(\"Updating existing cart item\",{cartItemId:cartItem.id,currentQuantity:cartItem.quantity});const{error}=await supabase.from(\"cart_items\").update({quantity:cartItem.quantity+1,updated_at:new Date}).eq(\"id\",cartItem.id);if(error){logDiagnostic(\"Failed to update cart item\",error);throw error;}logDiagnostic(\"Cart item updated successfully\");showNotification(`${productName} (size ${selectedSize}) quantity increased!`);}else{// Новый товар или новый размер - добавляем новую позицию\nconst newItem={session_id:sessionId,product_id:productId,name:productName,size:selectedSize,image:productImage||null,price:parseFloat(productPrice),currency:currentProductCurrency,quantity:1};logDiagnostic(\"Adding new item to cart\",newItem);const{error}=await supabase.from(\"cart_items\").insert(newItem);if(error){logDiagnostic(\"Failed to insert cart item\",{error:error.message,code:error.code,details:error.details,hint:error.hint});throw error;}logDiagnostic(\"Cart item inserted successfully\");showNotification(`${productName} (size ${selectedSize}) added to cart!`);}// Обновляем информацию о товаре в корзине\nawait checkCartItem();// Уведомляем другие компоненты об изменении корзины\nlocalStorage.setItem(\"framer_cart_updated\",Date.now().toString());window.dispatchEvent(new CustomEvent(\"cartUpdated\"));logDiagnostic(\"Cart update completed successfully\");}catch(error){logDiagnostic(\"Add to cart failed\",{error:error.message,code:error.code,details:error.details,hint:error.hint,stack:error.stack});console.error(\"Failed to add to cart:\",error);// Более информативные сообщения об ошибках\nlet errorMessage=\"Failed to add item to cart\";if(error.code===\"23505\"){errorMessage=\"Item already exists in cart\";}else if(error.code===\"23502\"){errorMessage=\"Missing required data\";}else if(error.message.includes(\"network\")){errorMessage=\"Network error. Please check your connection\";}else if(error.message.includes(\"timeout\")){errorMessage=\"Request timeout. Please try again\";}else if(error.message.includes(\"fetch\")){errorMessage=\"Connection error. Please try again\";}alert(`${errorMessage}. Check console for details.`);}finally{setIsAdding(false);}};// Новая логика Buy Now - сразу создает Stripe сессию\nconst handleBuyNow=async()=>{logDiagnostic(\"Buy Now button clicked\",{selectedSize,productId,productName,productPrice,currentProductCurrency});if(!selectedSize){alert(\"Please select a size first.\");return;}if(!isSessionReady){alert(\"Initializing... Please wait.\");return;}if(!productId||!productName||!productPrice){alert(\"Insufficient product data\");return;}setIsBuying(true);try{// Подготавливаем данные для Stripe\nconst cartItem={product_id:productId,name:productName,size:selectedSize,image:productImage||null,price:parseFloat(productPrice),currency:currentProductCurrency,quantity:1};// Формируем successUrl и cancelUrl с учетом регионального суффикса\nconst successUrl=`${window.location.origin}/success${currentRegionSuffix?`/${currentRegionSuffix}`:\"\"}`;const cancelUrl=`${window.location.origin}/cart${currentRegionSuffix?`/${currentRegionSuffix}`:\"\"}`;logDiagnostic(\"Creating Stripe session\",{cartItem,successUrl,cancelUrl,currency:currentProductCurrency});// Создаем Stripe сессию\nconst response=await fetch(\"https://mirzoeva-git.vercel.app/api/create-checkout-session\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify({cartItems:[cartItem],sessionId:sessionId,successUrl:successUrl,cancelUrl:cancelUrl,currency:currentProductCurrency})});logDiagnostic(\"Stripe API response received\",{status:response.status,statusText:response.statusText});const data=await response.json();if(data.url){logDiagnostic(\"Stripe session created successfully\",{url:data.url});// Перенаправляем на Stripe Checkout\nwindow.location.href=data.url;}else{logDiagnostic(\"Stripe session creation failed\",data);throw new Error(data.error||\"Failed to create checkout session\");}}catch(error){logDiagnostic(\"Buy Now failed\",error);console.error(\"Buy Now error:\",error);alert(\"Failed to start checkout. Please try again.\");}finally{setIsBuying(false);}};const showNotification=message=>{const notification=document.createElement(\"div\");notification.className=\"cart-notification\";notification.textContent=message;notification.style.cssText=`\n            position: fixed;\n            top: 20px;\n            right: 20px;\n            background: #4CAF50;\n            color: white;\n            padding: 15px 20px;\n            border-radius: 5px;\n            z-index: 1000;\n            font-family: sans-serif;\n            box-shadow: 0 4px 12px rgba(0,0,0,0.15);\n        `;document.body.appendChild(notification);setTimeout(()=>{notification.remove();},3e3);};// Определяем состояние кнопки Add to Cart\nconst getAddToCartButtonState=()=>{if(!isSessionReady)return{text:\"Initializing...\",disabled:true};if(isAdding)return{text:\"Adding...\",disabled:true};if(!selectedSize)return{text:\"Select Size\",disabled:true};if(cartItem)return{text:`Add More (${cartItem.quantity})`,disabled:false};return{text:\"Add to Cart\",disabled:false};};// Определяем состояние кнопки Buy Now\nconst getBuyNowButtonState=()=>{if(!isSessionReady)return{text:\"Initializing...\",disabled:true};if(isBuying)return{text:\"Processing...\",disabled:true};if(!selectedSize)return{text:\"Select Size\",disabled:true};return{text:\"Buy Now\",disabled:false};};const addToCartButtonState=getAddToCartButtonState();const buyNowButtonState=getBuyNowButtonState();return /*#__PURE__*/_jsxs(motion.div,{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"stretch\",gap:16,padding:0,fontFamily:\"sans-serif\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",gap:10,justifyContent:\"start\"},children:sizes.map(size=>/*#__PURE__*/_jsx(motion.button,{whileTap:{scale:.9},onClick:()=>setSelectedSize(size),style:{padding:\"10px 18px\",borderRadius:0,backgroundColor:selectedSize===size?\"#000\":\"#fff\",color:selectedSize===size?\"#fff\":\"#000\",fontWeight:\"bold\",cursor:\"pointer\",border:\"1px solid #ddd\"},children:size},size))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:12},children:[/*#__PURE__*/_jsx(motion.button,{whileTap:{scale:buyNowButtonState.disabled?1:.98},onClick:handleBuyNow,disabled:buyNowButtonState.disabled,style:{width:\"320px\",padding:\"12px\",backgroundColor:buyNowButtonState.disabled?\"#6c757d\":\"#000\",color:\"#fff\",border:\"none\",borderRadius:0,fontWeight:\"bold\",fontSize:16,cursor:buyNowButtonState.disabled?\"not-allowed\":\"pointer\",opacity:buyNowButtonState.disabled?.7:1,transition:\"all 0.2s ease\"},children:buyNowButtonState.text}),/*#__PURE__*/_jsx(motion.button,{whileTap:{scale:addToCartButtonState.disabled?1:.98},onClick:handleAddToCart,disabled:addToCartButtonState.disabled,style:{width:\"320px\",padding:\"12px\",backgroundColor:addToCartButtonState.disabled?\"#6c757d\":\"#000\",color:\"#fff\",border:\"none\",borderRadius:0,fontWeight:\"bold\",fontSize:16,cursor:addToCartButtonState.disabled?\"not-allowed\":\"pointer\",opacity:addToCartButtonState.disabled?.7:1,transition:\"all 0.2s ease\"},children:addToCartButtonState.text})]}),/*#__PURE__*/_jsx(\"a\",{ref:linkRef,href:\"#\",target:\"_blank\",style:{display:\"none\"}})]});}// 🔧 Контролы для Framer\naddPropertyControls(SizeSelector,{sizes:{title:\"Sizes\",type:ControlType.String,defaultValue:\"S, M, L, XL\"},links:{title:\"Links\",type:ControlType.String,defaultValue:\"S:https://google.com, M:https://yandex.ru, L:https://buy-l.com, XL:https://buy-xl.com\"},productId:{title:\"Product ID\",type:ControlType.String,defaultValue:\"product_1\"},productName:{title:\"Product Name\",type:ControlType.String,defaultValue:\"Classic T-Shirt\"},productImage:{title:\"Product Image URL\",type:ControlType.String,defaultValue:\"https://via.placeholder.com/300x300\"},productPrice:{title:\"Product Price\",type:ControlType.String,defaultValue:\"1500\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SizeSelector\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SizesButtons.map"],"mappings":"q1BAC0xB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,+CAAz4B,IAA6N,IAAkE,IAA4B,IAA0H,IAAyH,CAAM,EAAc,EAASA,EAAS,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,CAAC,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,CAA8L,EAAY,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,GAAG,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOC,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,EAAS,GAAU,CAAC,QAAM,SAAO,KAAG,OAAK,QAAM,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UA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