{"version":3,"file":"BookingForm.BWiRRcAx.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/q62h3DorzsNW8jb3XftG/i0tV5VsQykafAHXXjmBM/BookingForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function BookingForm(props){const{token,locale,show_all_cars,car_id,car_name,rental_object,hidden_car_year,show_email,show_phone,show_middlename,show_birthday,show_passport,show_address,show_driver_license,email_required,phone_required,middlename_required,birthday_required,passport_required,driver_license_required,places,equipment,chairs,boosters,agreement_text,agreement_link_text,agreement_link,hide_icon,button_classes,container_classes}=props;React.useEffect(()=>{const scriptId=\"rentprog-script\";if(!document.getElementById(scriptId)){const script=document.createElement(\"script\");script.src=\"https://rentprog-b5205.web.app/js/app.js\";script.id=scriptId;document.body.appendChild(script);}const styleId=\"rentprog-custom-style\";if(!document.getElementById(styleId)){const style=document.createElement(\"style\");style.id=styleId;style.innerHTML=`\n                rentprog-widget .agreement-text {\n                    font-size: 12px !important;\n                    font-weight: normal !important;\n                    line-height: 1.4 !important;\n                    color: #666 !important;\n                }\n                \n                ${hide_icon?\"rentprog-widget .icon { display: none !important; }\":\"\"}\n            `;document.head.appendChild(style);}},[hide_icon]);const agreement=agreement_text&&agreement_link_text&&agreement_link?JSON.stringify({text:agreement_text,link_text:agreement_link_text,link:agreement_link}):undefined;return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"link\",{href:\"https://rentprog-b5205.web.app/css/app.css\",rel:\"stylesheet\"}),/*#__PURE__*/_jsx(\"div\",{children:/*#__PURE__*/_jsx(\"rentprog-widget\",{token:token,locale:locale,show_all_cars:show_all_cars,car_id:car_id,car_name:car_name,rental_object:rental_object,hidden_car_year:hidden_car_year,show_email:show_email,show_phone:show_phone,show_middlename:show_middlename,show_birthday:show_birthday,show_passport:show_passport,show_address:show_address,show_driver_license:show_driver_license,email_required:email_required,phone_required:phone_required,middlename_required:middlename_required,birthday_required:birthday_required,passport_required:passport_required,driver_license_required:driver_license_required,places:places,equipment:equipment,chairs:chairs,boosters:boosters,agreement:agreement,button_classes:button_classes,container_classes:container_classes,icon_classes:hide_icon?\"hidden\":\"h-14 w-14 bg-yellow-200 rounded-full flex flex-shrink-0 justify-center items-center text-yellow-500 text-2xl font-mono\"})})]});}addPropertyControls(BookingForm,{token:{type:ControlType.String,title:\"API Token\",defaultValue:\"\"},locale:{type:ControlType.Enum,title:\"Locale\",options:[\"ru\",\"en\",\"de\",\"fr\",\"pt\",\"es\",\"hi\",\"sr\",\"tr\",\"th\",\"it\",\"id\",\"pl\",\"ro\"],optionTitles:[\"Русский\",\"English\",\"Deutsch\",\"Fran\\xe7ais\",\"Portugu\\xeas\",\"Espa\\xf1ol\",\"Hindi\",\"Сербский\",\"Турецкий\",\"Тайский\",\"Итальянский\",\"Индонезийский\",\"Польский\",\"Румынский\"],defaultValue:\"ru\"},show_all_cars:{type:ControlType.Boolean,title:\"Показывать все авто\",defaultValue:false},car_id:{type:ControlType.String,title:\"Car ID\",defaultValue:\"\"},car_name:{type:ControlType.String,title:\"Car Name\",defaultValue:\"\"},rental_object:{type:ControlType.String,title:\"Rental Label\",defaultValue:\"Выберите автомобиль\"},hidden_car_year:{type:ControlType.Boolean,title:\"Скрыть год авто\",defaultValue:false},show_email:{type:ControlType.Boolean,title:\"Показать Email\",defaultValue:false},show_phone:{type:ControlType.Boolean,title:\"Показать Телефон\",defaultValue:false},show_middlename:{type:ControlType.Boolean,title:\"Показать Отчество\",defaultValue:false},show_birthday:{type:ControlType.Boolean,title:\"Показать ДР\",defaultValue:false},show_passport:{type:ControlType.Boolean,title:\"Показать Паспорт\",defaultValue:false},show_address:{type:ControlType.Boolean,title:\"Показать Адрес\",defaultValue:false},show_driver_license:{type:ControlType.Boolean,title:\"Показать ВУ\",defaultValue:false},email_required:{type:ControlType.Boolean,title:\"Email обязателен\",defaultValue:false},phone_required:{type:ControlType.Boolean,title:\"Телефон обязателен\",defaultValue:false},middlename_required:{type:ControlType.Boolean,title:\"Отчество обязательно\",defaultValue:false},birthday_required:{type:ControlType.Boolean,title:\"ДР обязателен\",defaultValue:false},passport_required:{type:ControlType.Boolean,title:\"Паспорт обязателен\",defaultValue:false},driver_license_required:{type:ControlType.Boolean,title:\"ВУ обязательно\",defaultValue:false},places:{type:ControlType.String,title:\"Места (JSON)\",defaultValue:'[{\"place\":\"Офис\",\"price\":0},{\"place\":\"Аэропорт\",\"price\":800}]'},equipment:{type:ControlType.String,title:\"Оборудование (JSON)\",defaultValue:\"\"},chairs:{type:ControlType.String,title:\"Кресла (JSON)\",defaultValue:\"\"},boosters:{type:ControlType.String,title:\"Бустеры (JSON)\",defaultValue:\"\"},agreement_text:{type:ControlType.String,title:\"Текст соглашения\",defaultValue:\"\"},agreement_link_text:{type:ControlType.String,title:\"Текст ссылки\",defaultValue:\"\"},agreement_link:{type:ControlType.String,title:\"Ссылка\",defaultValue:\"\"},hide_icon:{type:ControlType.Boolean,title:\"Скрыть иконку\",defaultValue:true},button_classes:{type:ControlType.String,title:\"Классы кнопки\",defaultValue:\"text-xl lg:text-lg h-full lg:h-full bg-yellow-500 flex justify-center items-center w-full text-white px-4 py-3 mt-2 rounded-md focus:outline-none\"},container_classes:{type:ControlType.String,title:\"Классы контейнера\",defaultValue:\"relative bg-white shadow rounded-md p-0 m-0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"BookingForm\":{\"type\":\"reactComponent\",\"name\":\"BookingForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookingForm.map"],"mappings":"wLAA+J,SAAgB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,gBAAc,SAAO,WAAS,gBAAc,kBAAgB,aAAW,aAAW,kBAAgB,gBAAc,gBAAc,eAAa,sBAAoB,iBAAe,iBAAe,sBAAoB,oBAAkB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