{"version":3,"file":"ServicesTabs.C2DKnovf.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/dTqCOePad9PsD50RClup/GL00xH0hOw5kSZ2Bb65y/ServicesTabs.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";import{motion,AnimatePresence}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";export default function ServicesTabs(props){const[activeTab,setActiveTab]=useState(props.defaultTab);const generateWhatsAppLink=(phone,prefix,packageName)=>{const cleanPhone=phone.replace(/[^0-9]/g,\"\");const fullMessage=`${prefix}${packageName} package.`;return`https://wa.me/${cleanPhone}?text=${encodeURIComponent(fullMessage)}`;};const tabsData={essential:{id:\"essential\",title:props.tab1Title,subtitle:props.tab1Subtitle,lines:props.tab1Lines.split(\"\\n\")},signature:{id:\"signature\",title:props.tab2Title,subtitle:props.tab2Subtitle,lines:props.tab2Lines.split(\"\\n\"),isBestChoice:true},prestige:{id:\"prestige\",title:props.tab3Title,subtitle:props.tab3Subtitle,lines:props.tab3Lines.split(\"\\n\")}};const currentData=tabsData[activeTab];return /*#__PURE__*/_jsxs(\"div\",{style:{\"--gold\":props.goldColor,\"--ivory\":props.ivoryColor,\"--graphite\":props.graphiteColor,width:\"100%\",maxWidth:\"1050px\",margin:\"0 auto\",padding:\"20px 20px 80px 20px\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"32px\",fontFamily:\"sans-serif\",overflow:\"visible\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .arg-tabs-container {\n                    display: flex;\n                    justify-content: center;\n                    gap: 20px;\n                    width: 100%;\n                    max-width: 1000px; \n                }\n                \n                .arg-tab-btn {\n                    position: relative;\n                    flex: 1;\n                    padding: 22px 16px;\n                    border-radius: 8px;\n                    font-size: 15px;\n                    font-weight: 800;\n                    text-transform: uppercase;\n                    letter-spacing: 2.5px;\n                    cursor: pointer;\n                    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);\n                    outline: none;\n                    text-align: center;\n                    white-space: nowrap;\n                    background: rgba(13, 13, 13, 0.4);\n                    border: 1px solid rgba(255, 255, 255, 0.06);\n                    color: var(--graphite);\n                    backdrop-filter: blur(20px);\n                }\n                \n                .arg-tab-btn.active {\n                    background: rgba(26, 26, 26, 0.85);\n                    border: 2px solid var(--gold);\n                    color: var(--ivory);\n                    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15), inset 0 1px 0px rgba(255,255,255,0.15);\n                }\n                \n                .arg-badge {\n                    position: absolute;\n                    top: -12px;\n                    left: 50%;\n                    transform: translateX(-50%);\n                    background: var(--gold);\n                    color: #0D0D0D;\n                    font-size: 10px;\n                    font-weight: 900;\n                    padding: 5px 10px;\n                    border-radius: 4px;\n                    letter-spacing: 1.5px;\n                    white-space: nowrap;\n                    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);\n                }\n                \n                /* ГЛАВНОЕ СТЕКЛО */\n                .arg-content-box {\n                    width: 100%;\n                    max-width: 1000px; \n                    height: 480px; \n                    border-radius: 16px;\n                    background: linear-gradient(135deg, rgba(26, 26, 26, 0.45) 0%, rgba(13, 13, 13, 0.7) 65%, rgba(201, 168, 76, 0.05) 100%);\n                    border: 1px solid rgba(201, 168, 76, 0.15);\n                    backdrop-filter: blur(40px);\n                    -webkit-backdrop-filter: blur(40px);\n                    box-shadow: 0 50px 100px rgba(0,0,0,0.8), inset 0 1px 0px rgba(255,255,255,0.18);\n                    position: relative;\n                }\n                \n                /* КОНТЕЙНЕР ДЛЯ ТЕКСТА */\n                .arg-inner-container {\n                    position: absolute;\n                    top: 0;\n                    left: 0;\n                    width: 100%;\n                    height: 100%;\n                    padding: 56px 60px;\n                    box-sizing: border-box;\n                    display: flex;\n                    flex-direction: column;\n                    align-items: center;\n                }\n                \n                /* РЕЗИНОВАЯ СЕТКА */\n                .arg-grid-list {\n                    display: grid;\n                    grid-template-columns: repeat(2, minmax(0, 1fr));\n                    gap: 20px 40px;\n                    width: 100%; \n                    margin: 0 auto;\n                }\n                \n                .arg-item-text { \n                    font-size: 19px; \n                    gap: 14px; \n                    color: var(--ivory);\n                    font-weight: 500;\n                    letter-spacing: 0.6px;\n                    display: flex;\n                    align-items: flex-start;\n                    text-align: left;\n                }\n                \n                .arg-item-bullet {\n                    color: var(--gold);\n                    flex-shrink: 0;\n                    margin-top: 3px;\n                    font-size: 14px;\n                }\n                \n                /* ОБЕРТКА КНОПКИ */\n                .arg-button-wrapper {\n                    position: absolute;\n                    bottom: 56px; \n                    left: 0;\n                    width: 100%;\n                    display: flex;\n                    justify-content: center;\n                    z-index: 10;\n                }\n                \n                .arg-book-btn {\n                    padding: 20px 54px;\n                    font-size: 14px;\n                    display: inline-block;\n                    background: var(--gold);\n                    color: #0D0D0D;\n                    text-decoration: none;\n                    border-radius: 6px;\n                    font-weight: 900;\n                    text-transform: uppercase;\n                    letter-spacing: 2px;\n                    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;\n                }\n                \n                .arg-book-btn:hover {\n                    transform: scale(1.02);\n                    box-shadow: 0 0 35px rgba(201, 168, 76, 0.4);\n                }\n                .arg-book-btn:active {\n                    transform: scale(0.98);\n                }\n                \n                /* АДАПТИВ */\n                @media (max-width: 950px) {\n                    /* ⬇️ УБРАЛИ лишнее место для планшета */\n                    .arg-content-box { height: 480px; } \n                    .arg-inner-container { padding: 48px 32px; }\n                    .arg-button-wrapper { bottom: 48px; }\n                }\n                \n                @media (max-width: 600px) {\n                    .arg-tabs-container { gap: 8px; }\n                    .arg-tab-btn { padding: 14px 4px; font-size: 11px; letter-spacing: 0.5px; border-radius: 6px; }\n                    .arg-badge { top: -8px; font-size: 7px; padding: 2px 5px; }\n                    \n                    /* ⬇️ СИЛЬНО УМЕНЬШИЛИ ВЫСОТУ ДЛЯ ТЕЛЕФОНА (было 600px) */\n                    .arg-content-box { height: 460px; } \n                    .arg-inner-container { padding: 40px 20px; }\n                    .arg-button-wrapper { bottom: 40px; }\n                    .arg-grid-list {\n                        grid-template-columns: 1fr; /* Одна колонка на телефонах */\n                        gap: 14px;\n                    }\n                    .arg-item-text { font-size: 15.5px; gap: 12px; }\n                    .arg-book-btn { padding: 16px 20px; font-size: 12px; width: calc(100% - 40px); box-sizing: border-box; text-align: center; }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"arg-tabs-container\",children:Object.values(tabsData).map(tab=>/*#__PURE__*/_jsxs(\"button\",{className:`arg-tab-btn ${activeTab===tab.id?\"active\":\"\"}`,onClick:()=>setActiveTab(tab.id),children:[tab.title,tab.isBestChoice&&/*#__PURE__*/_jsx(\"span\",{className:\"arg-badge\",children:\"BEST CHOICE\"})]},tab.id))}),/*#__PURE__*/_jsxs(\"div\",{className:\"arg-content-box\",children:[/*#__PURE__*/_jsx(AnimatePresence,{children:/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:15,filter:\"blur(5px)\"},animate:{opacity:1,y:0,filter:\"blur(0px)\"},exit:{opacity:0,y:-15,filter:\"blur(5px)\"},transition:{duration:.35,ease:\"easeInOut\"},className:\"arg-inner-container\",children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:\"0 0 12px 0\",color:\"var(--gold)\",fontWeight:900,fontSize:\"clamp(24px, 4vw, 36px)\",letterSpacing:\"4px\",textTransform:\"uppercase\",textAlign:\"center\"},children:currentData.title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:\"0 0 40px 0\",color:\"var(--ivory)\",fontWeight:500,fontSize:\"clamp(15px, 2.5vw, 20px)\",opacity:.9,textAlign:\"center\",maxWidth:\"90%\"},children:currentData.subtitle}),/*#__PURE__*/_jsx(\"div\",{className:\"arg-grid-list\",children:currentData.lines.map((line,index)=>{if(!line.trim())return null;return /*#__PURE__*/_jsxs(\"div\",{className:\"arg-item-text\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"arg-item-bullet\",children:\"✦\"}),/*#__PURE__*/_jsx(\"span\",{style:{lineHeight:\"1.4\"},children:line})]},index);})})]},activeTab)}),/*#__PURE__*/_jsx(\"div\",{className:\"arg-button-wrapper\",children:/*#__PURE__*/_jsx(\"a\",{href:generateWhatsAppLink(props.whatsappNumber,props.whatsappMessagePrefix,currentData.title),target:\"_blank\",rel:\"noopener noreferrer\",className:\"arg-book-btn\",children:props.bookingButtonText})})]})]});}addPropertyControls(ServicesTabs,{goldColor:{type:ControlType.Color,title:\"Champagne Gold\",defaultValue:\"#C9A84C\"},ivoryColor:{type:ControlType.Color,title:\"Ivory (Текст)\",defaultValue:\"#F5F0E8\"},graphiteColor:{type:ControlType.Color,title:\"Graphite (Вторичный)\",defaultValue:\"#888880\"},whatsappNumber:{type:ControlType.String,title:\"WA Номер\",defaultValue:\"35799123456\"},whatsappMessagePrefix:{type:ControlType.String,title:\"WA Сообщение\",defaultValue:\"Hello, I'd like to book the \"},bookingButtonText:{type:ControlType.String,title:\"Текст кнопки WA\",defaultValue:\"BOOK YOUR DETAIL\"},defaultTab:{type:ControlType.Enum,title:\"По умолч.\",options:[\"essential\",\"signature\",\"prestige\"],optionTitles:[\"Essential\",\"Signature\",\"Prestige\"],defaultValue:\"signature\"},tab1Title:{type:ControlType.String,title:\"Пакет 1: Имя\",defaultValue:\"ESSENTIAL\"},tab1Subtitle:{type:ControlType.String,title:\"Пакет 1: Подзаг\",defaultValue:\"Premium Wash with Detail-Driven Care\"},tab1Lines:{type:ControlType.String,title:\"Пакет 1: Пункты\",displayTextArea:true,defaultValue:\"Exterior deep wash\\nSpray wax\\nTire dressing\\nInterior vacuum\\nBrush detailing\\nSurface wipe-down\"},tab2Title:{type:ControlType.String,title:\"Пакет 2: Имя\",defaultValue:\"SIGNATURE\"},tab2Subtitle:{type:ControlType.String,title:\"Пакет 2: Подзаг\",defaultValue:\"Complete Vehicle Sanitization\"},tab2Lines:{type:ControlType.String,title:\"Пакет 2: Пункты\",displayTextArea:true,defaultValue:\"Essential Package\\nPremium paint sealant\\nSteam cleaning (seats removed)\\nOzone treatment\\nA/C sanitization\"},tab3Title:{type:ControlType.String,title:\"Пакет 3: Имя\",defaultValue:\"PRESTIGE\"},tab3Subtitle:{type:ControlType.String,title:\"Пакет 3: Подзаг\",defaultValue:\"Total Vehicle Restoration\"},tab3Lines:{type:ControlType.String,title:\"Пакет 3: Пункты\",displayTextArea:true,defaultValue:\"Signature Package\\nWheels-off arch detailing\\nUndercarriage protection\\nPaint depth analysis\\nMulti-stage correction\\nCeramic coating\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServicesTabs\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServicesTabs.map"],"mappings":"yOAA2L,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,EAAM,UAAU,EAAQ,GAAsB,EAAM,EAAO,IAAc,CAAC,IAAM,EAAW,EAAM,QAAQ,UAAU,EAAE,EAAQ,EAAY,GAAG,IAAS,EAAY,WAAW,MAAM,iBAAiB,EAAW,QAAQ,mBAAmB,CAAW,GAAI,EAAQ,EAAS,CAAC,UAAU,CAAC,GAAG,YAAY,MAAM,EAAM,UAAU,SAAS,EAAM,aAAa,MAAM,EAAM,UAAU,MAAM;CAAI,CAAC,EAAE,UAAU,CAAC,GAAG,YAAY,MAAM,EAAM,UAAU,SAAS,EAAM,aAAa,MAAM,EAAM,UAAU,MAAM;CAAI,EAAE,aAAa,EAAI,EAAE,SAAS,CAAC,GAAG,WAAW,MAAM,EAAM,UAAU,SAAS,EAAM,aAAa,MAAM,EAAM,UAAU,MAAM;CAAI,CAAC,CAAC,EAAQ,EAAY,EAAS,GAAW,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,EAAM,UAAU,UAAU,EAAM,WAAW,aAAa,EAAM,cAAc,MAAM,OAAO,SAAS,SAAS,OAAO,SAAS,QAAQ,sBAAsB,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,IAAI,OAAO,WAAW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