From 304f513440e108755a364baf247327bf6bca9b0f Mon Sep 17 00:00:00 2001 From: merelendor Date: Tue, 22 Aug 2023 02:14:00 +0300 Subject: [PATCH] seo, components update --- api/index.php | 258 +++- images/icons/approve_icon.svg | 5 - images/icons/preapproval_icon.svg | 5 + .../calculator/templates/.default/script.js | 4 +- .../catalog.landing.body/component.php | 2 + .../templates/.default/template.php | 7 +- .../catalog.landing.engine_fuel/component.php | 2 + .../templates/.default/template.php | 7 +- .../.description.php | 8 + .../catalog.landing.promo.model/component.php | 131 ++ .../ru/.description.php | 4 + .../templates/.default/script.js | 0 .../templates/.default/style.css | 0 .../templates/.default/template.php | 57 + .../evolution/catalog.light/.description.php | 8 + .../evolution/catalog.light/.parameters.php | 14 + .../evolution/catalog.light/component.php | 116 ++ .../catalog.light/lang/ru/.description.php | 4 + .../catalog.light/lang/ru/.parameters.php | 2 + .../templates/.default/script.js | 26 + .../templates/.default/style.css | 0 .../templates/.default/template.php | 42 + .../catalog.light/templates/ajax/template.php | 22 + .../catalog.promo.model/component.php | 18 +- .../evolution/catalog/component.php | 6 +- .../catalog/templates/.default/template.php | 19 +- .../evolution/preapproval/.description.php | 8 + .../evolution/preapproval/component.php | 34 + .../preapproval/lang/ru/.description.php | 4 + .../preapproval/templates/.default/script.js | 461 ++++++ .../preapproval/templates/.default/style.css | 37 + .../templates/.default/template.php | 121 ++ .../templates/.default/template.php | 4 +- .../used.catalog.position/component.php | 6 +- .../templates/.default/script.js | 81 +- .../templates/.default/style.css | 33 +- .../templates/.default/template.php | 12 +- .../evolution/used.catalog/component.php | 19 +- .../templates/.default/template.php | 17 +- local/ilsa_update.php | 179 ++- local/include/footer.php | 113 +- .../templates/evolution/css/footer/style.css | 1 + local/templates/evolution/css/forms/style.css | 788 +++++++++- .../templates/evolution/css/forms/style.less | 137 +- local/templates/evolution/css/var.css | 1312 ++++++++++++++++- local/templates/evolution/css/var.less | 4 +- .../evolution/js/jquery.inputmask.min.js | 8 + local/templates/evolution/js/main.js | 4 +- 48 files changed, 3915 insertions(+), 235 deletions(-) delete mode 100644 images/icons/approve_icon.svg create mode 100644 images/icons/preapproval_icon.svg create mode 100644 local/components/evolution/catalog.landing.promo.model/.description.php create mode 100644 local/components/evolution/catalog.landing.promo.model/component.php create mode 100644 local/components/evolution/catalog.landing.promo.model/ru/.description.php create mode 100644 local/components/evolution/catalog.landing.promo.model/templates/.default/script.js create mode 100644 local/components/evolution/catalog.landing.promo.model/templates/.default/style.css create mode 100644 local/components/evolution/catalog.landing.promo.model/templates/.default/template.php create mode 100644 local/components/evolution/catalog.light/.description.php create mode 100644 local/components/evolution/catalog.light/.parameters.php create mode 100644 local/components/evolution/catalog.light/component.php create mode 100644 local/components/evolution/catalog.light/lang/ru/.description.php create mode 100644 local/components/evolution/catalog.light/lang/ru/.parameters.php create mode 100644 local/components/evolution/catalog.light/templates/.default/script.js create mode 100644 local/components/evolution/catalog.light/templates/.default/style.css create mode 100644 local/components/evolution/catalog.light/templates/.default/template.php create mode 100644 local/components/evolution/catalog.light/templates/ajax/template.php create mode 100644 local/components/evolution/preapproval/.description.php create mode 100644 local/components/evolution/preapproval/component.php create mode 100644 local/components/evolution/preapproval/lang/ru/.description.php create mode 100644 local/components/evolution/preapproval/templates/.default/script.js create mode 100644 local/components/evolution/preapproval/templates/.default/style.css create mode 100644 local/components/evolution/preapproval/templates/.default/template.php create mode 100644 local/templates/evolution/js/jquery.inputmask.min.js diff --git a/api/index.php b/api/index.php index 8d6052a..db84b73 100644 --- a/api/index.php +++ b/api/index.php @@ -355,13 +355,30 @@ switch($PARAM_1) { if($auth['username'] !== 'crm') { header('HTTP/1.0 401 Unauthorized'); print json_encode(["status" => "error", "error" => "unauthorized", "message" => "Unauthorized"]); die(); } + $email = $REQ['email']; + $phone = (int)$REQ['phone']; + $password = $REQ['password']; + + if(empty($email) && empty($phone)) + { + header('HTTP/1.0 400 Bad Request'); print json_encode(["status" => "error", "error" => "empty email and phone", "message" => "Bad Request"]); die(); + } + + $real_email = true; + if(empty($email)) + { + $email = $phone."@evoleasing.ru"; + $real_email = false; + $password = md5($email); + } + $profile = [ "XML_ID" => $REQ['crm_id'], - "LOGIN" => $REQ['email'], + "LOGIN" => $email, "NAME" => $REQ['firstname'], "SECOND_NAME" => $REQ['secondname'], "LAST_NAME" => $REQ['lastname'], - "EMAIL" => $REQ['email'], + "EMAIL" => $email, "UF_ORG_TITLE" => (string)$REQ['org_title'], "UF_INN" => (string)$REQ['inn'], "UF_KPP" => (string)$REQ['kpp'], @@ -369,10 +386,15 @@ switch($PARAM_1) "UF_PHONE_NUMBER" => (int)$REQ['phone'], ]; + if(!$real_email) + { + $profile["UF_IS_VALID_EMAIL"] = "нет"; + } + $user_registered_id = null; $company_registered_id = null; - $existed_users_res = \CUser::GetList(["ID" => "ASC"], false, [ "LOGIN" => $REQ['email'] ], []); + $existed_users_res = \CUser::GetList(["ID" => "ASC"], false, [ "LOGIN" => $email ], []); while($existed_user = $existed_users_res->Fetch()) { $user_registered_id = $existed_user["ID"]; @@ -397,13 +419,13 @@ switch($PARAM_1) $company_message = "Вам предоставлен доступ к Личному кабинету следующей организации:

\n\n"; $company_message .= $REQ['org_title'].", ИНН: ".$REQ['inn']."
\n"; - if(SEND_EMAIL_REGISTRATION_JOIN) + if(SEND_EMAIL_REGISTRATION_JOIN && $real_email) { \Bitrix\Main\Mail\Event::send([ "EVENT_NAME" => "CLIENT_USER_INVITE", "LID" => "s1", "C_FIELDS" => Array( - "EMAIL" => $REQ['email'], + "EMAIL" => $email, "COMPANIES" => $company_message, ) ]); @@ -481,22 +503,22 @@ switch($PARAM_1) { $user = new \CUser; - $profile["PASSWORD"] = $REQ['password']; - $profile["CONFIRM_PASSWORD"] = $REQ['password']; + $profile["PASSWORD"] = $password; + $profile["CONFIRM_PASSWORD"] = $password; $ID = $user->Add($profile); if (intval($ID) > 0) { - if(SEND_EMAIL_REGISTRATION_CREATE) + if(SEND_EMAIL_REGISTRATION_CREATE && $real_email) { \Bitrix\Main\Mail\Event::send([ "EVENT_NAME" => "USER_INFO", "LID" => "s1", "C_FIELDS" => Array( - "EMAIL" => $REQ['email'], + "EMAIL" => $email, "ORG_NAME" => $REQ['org_title'], - "LOGIN" => $REQ['email'], - "PASS" => $REQ['password'], + "LOGIN" => $email, + "PASS" => $password, ) ]); } @@ -753,6 +775,7 @@ switch($PARAM_1) "phone" => $ar_user['UF_PHONE_NUMBER'], "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], "is_admin" => $companies[0]['is_admin'], + "valid_email" => $ar_user['UF_IS_VALID_EMAIL'], ]; print json_encode([ @@ -849,6 +872,7 @@ switch($PARAM_1) "lastname" => $ar_user['LAST_NAME'], "phone" => $ar_user['UF_PHONE_NUMBER'], "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], + "valid_email" => $ar_user['UF_IS_VALID_EMAIL'], ]; $companies = getCompaniesForUser($ar_user['ID']); @@ -2032,23 +2056,110 @@ switch($PARAM_1) case "programs": { - if(CModule::IncludeModule('iblock')) + switch($PARAM_2) { - $programs = []; - $programs_res = CIBlockElement::GetList(["SORT" => "ASC"], ["ACTIVE" => "Y", "IBLOCK_ID" => 3], false, []); - while ($programs_ob_element = $programs_res->GetNextElement()) + case "brands": { - $programs_ar_res = $programs_ob_element->GetFields(); + if(CModule::IncludeModule('iblock')) + { + define("USED", filter_var($REQ['USED'], FILTER_VALIDATE_BOOLEAN)); + $filter = [ "ACTIVE" => "Y", ]; - $programs[] = [ - "name" => $programs_ar_res['NAME'], - "code" => $programs_ar_res['CODE'], - ]; + if(!empty($REQ['PROGRAM'])) { $filter['PROPERTY_LEASING_PROGRAMS'] = $REQ['PROGRAM']; } + + $brands = []; + $brands_ids = []; + $iterator = CIBlockElement::GetPropertyValues( USED ? IBLOCK_ID_CATALOG_CARS_USED : IBLOCK_ID_CATALOG_CARS_NEW, $filter, true, [ 'ID' => [ USED ? PROPERTY_ID_CATALOG_CARS_USED_BRAND : PROPERTY_ID_CATALOG_CARS_NEW_BRAND ] ] ); + while ($row = $iterator->Fetch()) + { + array_push($brands_ids, $row[ USED ? PROPERTY_ID_CATALOG_CARS_USED_BRAND : PROPERTY_ID_CATALOG_CARS_NEW_BRAND ]); + } + + $brands_ids = array_values(array_unique($brands_ids)); + + $brands_res = CIBlockElement::GetList(["NAME" => "ASC"], array_merge([ "IBLOCK_ID" => USED ? IBLOCK_ID_BRANDS_USED : IBLOCK_ID_BRANDS ], [ "ID" => $brands_ids ]), false, []); + while ($brands_ob_element = $brands_res->GetNextElement()) + { + $brands_ar_res = $brands_ob_element->GetFields(); + $brands_ar_res['PROPERTIES'] = $brands_ob_element->GetProperties(); + + array_push($brands, [ + "id" => $brands_ar_res['ID'], + "value" => $brands_ar_res['CODE'], + "text" => $brands_ar_res['NAME'], + "uid" => $brands_ar_res['PROPERTIES']['UID']['VALUE'], + ]); + } + + print json_encode([ + "brands" => $brands, + ]); + } } + break; - print json_encode([ - "programs" => $programs, - ]); + case "models": + { + if(CModule::IncludeModule('iblock')) + { + define("USED", filter_var($REQ['USED'], FILTER_VALIDATE_BOOLEAN)); + $filter = [ "ACTIVE" => "Y", "PROPERTY_BRAND" => $REQ['BRAND_ID'] ]; + + if(!empty($REQ['PROGRAM'])) { $filter['PROPERTY_LEASING_PROGRAMS'] = $REQ['PROGRAM']; } + + $models = []; + $models_ids = []; + $iterator = CIBlockElement::GetPropertyValues( USED ? IBLOCK_ID_CATALOG_CARS_USED : IBLOCK_ID_CATALOG_CARS_NEW, $filter, true, [ 'ID' => [ USED ? PROPERTY_ID_CATALOG_CARS_USED_MODEL : PROPERTY_ID_CATALOG_CARS_NEW_MODEL ] ] ); + while ($row = $iterator->Fetch()) + { + array_push($models_ids, $row[ USED ? PROPERTY_ID_CATALOG_CARS_USED_MODEL : PROPERTY_ID_CATALOG_CARS_NEW_MODEL ]); + } + + $models_ids = array_values(array_unique($models_ids)); + + $models_res = CIBlockElement::GetList(["NAME" => "ASC"], array_merge([ "IBLOCK_ID" => USED ? IBLOCK_ID_MODELS_USED : IBLOCK_ID_MODELS ], [ "ID" => $models_ids ]), false, []); + while ($models_ob_element = $models_res->GetNextElement()) + { + $models_ar_res = $models_ob_element->GetFields(); + $models_ar_res['PROPERTIES'] = $models_ob_element->GetProperties(); + + array_push($models, [ + "id" => $models_ar_res['ID'], + "value" => $models_ar_res['CODE'], + "text" => $models_ar_res['NAME'], + "uid" => $models_ar_res['PROPERTIES']['UID']['VALUE'], + ]); + } + + print json_encode([ + "models" => $models, + ]); + } + } + break; + + default: + { + if(CModule::IncludeModule('iblock')) + { + $programs = []; + $programs_res = CIBlockElement::GetList(["SORT" => "ASC"], ["ACTIVE" => "Y", "IBLOCK_ID" => 3], false, []); + while ($programs_ob_element = $programs_res->GetNextElement()) + { + $programs_ar_res = $programs_ob_element->GetFields(); + + $programs[] = [ + "name" => $programs_ar_res['NAME'], + "code" => $programs_ar_res['CODE'], + ]; + } + + print json_encode([ + "programs" => $programs, + ]); + } + } + break; } } break; @@ -2274,6 +2385,8 @@ switch($PARAM_1) "utm_content" => $_COOKIE['utm_content'], "page_url" => $REQ['FORM_FIELD_PAGE_URL'], "page_name" => $REQ['FORM_FIELD_PAGE_NAME'], + "sale_type" => $REQ['FORM_FIELD_SALE_TYPE'], + "inn" => $REQ['FORM_FIELD_INN'], ]; if(!empty($REQ['FORM_FIELD_IS_IZT'])) { @@ -2615,7 +2728,8 @@ switch($PARAM_1) "lastname" => $ar_user['LAST_NAME'], "phone" => $ar_user['UF_PHONE_NUMBER'], "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], - "is_admin" => $companies[0]['is_admin'], + "is_admin" => $companies[0]['is_admin'], + "valid_email" => $ar_user['UF_IS_VALID_EMAIL'], ]; print json_encode([ @@ -2669,6 +2783,7 @@ switch($PARAM_1) "phone_number" => $ar_user['UF_PHONE_NUMBER'], "phone_verified" => $ar_user['UF_PHONE_VERIFIED'], "is_admin" => $companies[0]['is_admin'], + "valid_email" => $ar_user['UF_IS_VALID_EMAIL'], ], "company" => [ "inn" => $companies[0]['inn'], @@ -2953,6 +3068,101 @@ switch($PARAM_1) } break; + case "preapproval": + { + $payload = [ + "inn" => $_REQUEST['vat'], + ]; + + $payload_json = json_encode($payload); + + $c = curl_init(); + curl_setopt($c, CURLOPT_URL, API_HOST."/site/FindClientInDatabase?inn=".$_REQUEST['vat']); + curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30); + curl_setopt($c, CURLOPT_TIMEOUT, 30); + curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); + + $response = curl_exec($c); + $response_decoded = json_decode($response, true); + curl_close($c); + + print json_encode([ + "client" => $response_decoded['client_status'], + ]); + + die(); + } + break; + + case "feedbacks": + { + switch($PARAM_2) + { + case "add": + { + if(CModule::IncludeModule('iblock')) + { + $auth = (array) \Bitrix\Main\Web\JWT::decode($REQ['token'], $secret_crm, ["HS256"]); + + $rs_user = \CUser::GetByLogin($auth['login']); + $ar_user = $rs_user->Fetch(); + + $company_res = CIBlockElement::GetList([ 'id' => 'desc' ], [ 'IBLOCK_ID' => IBLOCK_ID_CLIENTS, 'CODE' => $auth['acc_number'] ], false, []); + + while ($company_element = $company_res->GetNextElement()) + { + $company_record = $company_element->GetFields(); + $company_record['PROPERTIES'] = $company_element->GetProperties(); + } + + $feedback_properties = [ + "NAME" => "Отзыв от ".date("Y.m.d H:i:s"), + "CLIENT" => $company_record['ID'], + "CLIENT_CODE" => $auth['acc_number'], + "USER" => $ar_user['ID'], + "PERSON" => $REQ['name'], + "PHONE" => $REQ['phone'], + "EVALUATION" => $REQ['rating'], + "COMPANY_NAME" => $company_record['NAME'], + "COMPANY_INN" => $company_record['PROPERTIES']['INN']['VALUE'], + ]; + + $ar_new_feedback = [ + 'IBLOCK_ID' => IBLOCK_ID_FEEDBACKS, + 'NAME' => "Отзыв от ".$company_record['NAME']." ".date("Y.m.d H:i:s"), + "PREVIEW_TEXT" => $REQ['comment'], + 'PROPERTY_VALUES' => $feedback_properties, + 'ACTIVE' => 'Y', // активен + ]; + + $new_feedback = new CIBlockElement; + if($new_feedback_id = $new_feedback->Add($ar_new_feedback)) + { + + } + + print json_encode([ + "status" => "success", + "auth" => $auth, + ]); + + die(); + } + } + break; + + default: + { + die(); + } + break; + } + } + break; + default: { print json_encode([]); diff --git a/images/icons/approve_icon.svg b/images/icons/approve_icon.svg deleted file mode 100644 index 9124f27..0000000 --- a/images/icons/approve_icon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/images/icons/preapproval_icon.svg b/images/icons/preapproval_icon.svg new file mode 100644 index 0000000..ced2f2f --- /dev/null +++ b/images/icons/preapproval_icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/local/components/evolution/calculator/templates/.default/script.js b/local/components/evolution/calculator/templates/.default/script.js index 4f9d9d4..9ff1184 100644 --- a/local/components/evolution/calculator/templates/.default/script.js +++ b/local/components/evolution/calculator/templates/.default/script.js @@ -33,9 +33,9 @@ function calculate(param, value) redemption_payment: calculation.redemption_payment, }, function(response) { - for(let i in response) - { calculation[i] = parseInt(response[i], 10); } + for(let i in response) { calculation[i] = parseInt(response[i], 10); } + $("#calculator_car_price_text").text(calculation['car_price'].toLocaleString()+" ₽"); $("#calculator_monthly_payment_value").text(calculation['monthly_payment'].toLocaleString()); $("#calculator_tax_savings_value").text((calculation['tax_savings'] + calculation['vat_reimbursement']).toLocaleString()); $("#calculator_tax_savings_percent").text(Math.round((calculation['tax_savings']+calculation['vat_reimbursement']) / (calculation['car_price'] / 100))); diff --git a/local/components/evolution/catalog.landing.body/component.php b/local/components/evolution/catalog.landing.body/component.php index 3053c05..bf44b47 100644 --- a/local/components/evolution/catalog.landing.body/component.php +++ b/local/components/evolution/catalog.landing.body/component.php @@ -220,6 +220,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->AddChainItem($breadcrumb['NAME'], $breadcrumb['URL']); } + $arResult['SHOW_PROMO_MODELS'] = true; + $this->IncludeComponentTemplate(); } } \ No newline at end of file diff --git a/local/components/evolution/catalog.landing.body/templates/.default/template.php b/local/components/evolution/catalog.landing.body/templates/.default/template.php index 96a93e5..c30633e 100644 --- a/local/components/evolution/catalog.landing.body/templates/.default/template.php +++ b/local/components/evolution/catalog.landing.body/templates/.default/template.php @@ -174,13 +174,12 @@ if(!empty($arResult['SUBTITLE'])) IncludeComponent( - "evolution:catalog.promo.model", + "evolution:catalog.landing.promo.model", "", Array( "COUNT" => 3, - "BRAND_NAME" => $arResult['TITLES']['BRAND'], - "BRAND_CODE" => $arResult['SELECTED']['BRAND'], - "BRAND_UID" => $arResult['SELECTED']['BRAND_UID'], + "PROPERTIES_FILTER_ARRAY" => [ "PROPERTY_BODY" => $arResult['BODY'], ], + "PROPERTIES_FILTER_ARRAY_MODELS" => [ "PROPERTY_PROMO_BODY_VALUE" => "Да" ], "PATH" => $arParams['PATH'], ) ); ?> diff --git a/local/components/evolution/catalog.landing.engine_fuel/component.php b/local/components/evolution/catalog.landing.engine_fuel/component.php index 91bf532..9ee365f 100644 --- a/local/components/evolution/catalog.landing.engine_fuel/component.php +++ b/local/components/evolution/catalog.landing.engine_fuel/component.php @@ -221,6 +221,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->AddChainItem($breadcrumb['NAME'], $breadcrumb['URL']); } + $arResult['SHOW_PROMO_MODELS'] = true; + $this->IncludeComponentTemplate(); } } \ No newline at end of file diff --git a/local/components/evolution/catalog.landing.engine_fuel/templates/.default/template.php b/local/components/evolution/catalog.landing.engine_fuel/templates/.default/template.php index e5552e4..9372f09 100644 --- a/local/components/evolution/catalog.landing.engine_fuel/templates/.default/template.php +++ b/local/components/evolution/catalog.landing.engine_fuel/templates/.default/template.php @@ -174,13 +174,12 @@ if(!empty($arResult['SUBTITLE'])) IncludeComponent( - "evolution:catalog.promo.model", + "evolution:catalog.landing.promo.model", "", Array( "COUNT" => 3, - "BRAND_NAME" => $arResult['TITLES']['BRAND'], - "BRAND_CODE" => $arResult['SELECTED']['BRAND'], - "BRAND_UID" => $arResult['SELECTED']['BRAND_UID'], + "PROPERTIES_FILTER_ARRAY" => [ "PROPERTY_ENGINE_FUEL" => $arResult['ENGINE_FUEL'], ], + "PROPERTIES_FILTER_ARRAY_MODELS" => [ "PROPERTY_PROMO_ENGINE_FUEL_VALUE" => "Да" ], "PATH" => $arParams['PATH'], ) ); ?> diff --git a/local/components/evolution/catalog.landing.promo.model/.description.php b/local/components/evolution/catalog.landing.promo.model/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/catalog.landing.promo.model/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/catalog.landing.promo.model/component.php b/local/components/evolution/catalog.landing.promo.model/component.php new file mode 100644 index 0000000..b38c0bf --- /dev/null +++ b/local/components/evolution/catalog.landing.promo.model/component.php @@ -0,0 +1,131 @@ +StartResultCache(60*60*24, md5(var_export($_POST, true)))) +{ + if(CModule::IncludeModule('iblock')) + { + $arResult = [ + 'MODELS' => [], + ]; + + $models_ids = []; + $iterator = CIBlockElement::GetPropertyValues( IBLOCK_ID_CATALOG_CARS_NEW, $arParams['PROPERTIES_FILTER_ARRAY'], true, [ 'ID' => [ PROPERTY_ID_CATALOG_CARS_NEW_MODEL ] ] ); + while ($row = $iterator->Fetch()) + { + array_push($models_ids, $row[ PROPERTY_ID_CATALOG_CARS_NEW_MODEL ]); + } + + $models_ids = array_values(array_unique($models_ids)); + + $models_sort = [ "SORT" => "ASC" ]; + $models_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "ID" => $models_ids, ]; + $models_filter = array_merge($models_filter, $arParams['PROPERTIES_FILTER_ARRAY_MODELS']); + + $models_res = CIBlockElement::GetList($models_sort, $models_filter, false, []); + while ($models_element = $models_res->GetNextElement()) + { + $models_ar_res = $models_element->GetFields(); + $models_ar_res['PROPERTIES'] = $models_element->GetProperties(); + $models_ar_res['ITEMS'] = []; + + $brands_res = CIBlockElement::GetList([ "SORT" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_BRANDS, "PROPERTY_UID" => $models_ar_res['PROPERTIES']['BRAND_UID']['VALUE'], ], false, []); + while ($brands_element = $brands_res->GetNextElement()) + { + $brands_ar_res = $brands_element->GetFields(); + $models_ar_res['BRAND_NAME'] = $brands_ar_res['NAME']; + $models_ar_res['BRAND_CODE'] = $brands_ar_res['CODE']; + } + + $cars_sort = [ "NAME" => "ASC" ]; + $cars_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "PROPERTY_MODEL" => $models_ar_res['ID'], ]; + $cars_filter = array_merge($cars_filter, $arParams['PROPERTIES_FILTER_ARRAY']); + + $position_res = CIBlockElement::GetList($cars_sort, $cars_filter, false, [ "nPageSize" => 3 ]); + + while ($position_element = $position_res->GetNextElement()) + { + $ar_res = $position_element->GetFields(); + $ar_res['PROPERTIES'] = $position_element->GetProperties(); + $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(IBLOCK_ID_BRANDS, $ar_res['PROPERTIES']['BRAND']['VALUE']); + $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(IBLOCK_ID_MODELS, $ar_res['PROPERTIES']['MODEL']['VALUE']); + $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(IBLOCK_ID_MODIFICATIONS, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); + + $ar_res['CALCULATION'] = []; + $ar_res['CALCULATION']['MONTHLY'] = number_format(($ar_res['PROPERTIES']['PRICE']['VALUE'] / CALCULATION_COEFFICIENT), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_TAX'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_VAT'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + + $models_ar_res['ITEMS'][] = $ar_res; + } + + $arResult['MODELS'][] = $models_ar_res; + } + + /* + $models_sort = [ "SORT" => "ASC" ]; + $models_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, ]; + $models_filter = array_merge($models_filter, $arParams['FILTER']); + + $models_res = CIBlockElement::GetList($sort, $filter, false, []); + while ($models_element = $models_res->GetNextElement()) + { + $models_ar_res = $models_element->GetFields(); + $models_ar_res['PROPERTIES'] = $models_element->GetProperties(); + $models_ar_res['ITEMS'] = []; + + if(!isset($arParams['BRAND_CODE'])) + { + $brands_res = CIBlockElement::GetList([ "SORT" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_BRANDS, "CODE" => $models_ar_res['PROPERTIES']['BRAND_UID']['VALUE'], ], false, [ "nPageSize" => 1 ]); + while ($brands_element = $brands_res->GetNextElement()) + { + $brands_ar_res = $brands_element->GetFields(); + $arParams['BRAND_CODE'] = $brands_ar_res['CODE']; + } + } + + $cars_sort = [ "NAME" => "ASC" ]; + $cars_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "PROPERTY_MODEL" => $models_ar_res['ID'], ]; + + $position_res = CIBlockElement::GetList($cars_sort, $cars_filter, false, [ "nPageSize" => 3 ]); + + while ($position_element = $position_res->GetNextElement()) + { + $ar_res = $position_element->GetFields(); + $ar_res['PROPERTIES'] = $position_element->GetProperties(); + $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(IBLOCK_ID_BRANDS, $ar_res['PROPERTIES']['BRAND']['VALUE']); + $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(IBLOCK_ID_MODELS, $ar_res['PROPERTIES']['MODEL']['VALUE']); + $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(IBLOCK_ID_MODIFICATIONS, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); + + $ar_res['CALCULATION'] = []; + $ar_res['CALCULATION']['MONTHLY'] = number_format(($ar_res['PROPERTIES']['PRICE']['VALUE'] / CALCULATION_COEFFICIENT), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_TAX'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_VAT'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + + $models_ar_res['ITEMS'][] = $ar_res; + } + + $arResult['MODELS'][] = $models_ar_res; + } + */ + + $this->IncludeComponentTemplate(); + } +} \ No newline at end of file diff --git a/local/components/evolution/catalog.landing.promo.model/ru/.description.php b/local/components/evolution/catalog.landing.promo.model/ru/.description.php new file mode 100644 index 0000000..2b0707f --- /dev/null +++ b/local/components/evolution/catalog.landing.promo.model/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/catalog.landing.promo.model/templates/.default/script.js b/local/components/evolution/catalog.landing.promo.model/templates/.default/script.js new file mode 100644 index 0000000..e69de29 diff --git a/local/components/evolution/catalog.landing.promo.model/templates/.default/style.css b/local/components/evolution/catalog.landing.promo.model/templates/.default/style.css new file mode 100644 index 0000000..e69de29 diff --git a/local/components/evolution/catalog.landing.promo.model/templates/.default/template.php b/local/components/evolution/catalog.landing.promo.model/templates/.default/template.php new file mode 100644 index 0000000..d8b4f3e --- /dev/null +++ b/local/components/evolution/catalog.landing.promo.model/templates/.default/template.php @@ -0,0 +1,57 @@ +setFrameMode(true); +?> + 0): ?> + +

+
+ +
+ + <?= $arItem['PROPERTIES']['BRAND']['RELATED']['NAME']; ?> <?= $arItem['PROPERTIES']['MODEL']['RELATED']['NAME']; ?> <?= $arItem['PROPERTIES']['BODY']['VALUE']; ?> +

+

+ + , , л.с. +

+
    +
  • +

    Ежемесячный платёж (от)

    +

    р.

    +
  • +
  • +

    Стоимость автомобиля (от)

    +

    р.

    +
  • +
  • +

    Экономия по налогу на прибыль (до)

    +

    р.

    +
  • +
  • +

    НДС к возмещению из бюджета (до)

    +

    р.

    +
  • +
+ +

+
+ +
+ //" style="cursor:pointer;"> + Показать еще + + + \ No newline at end of file diff --git a/local/components/evolution/catalog.light/.description.php b/local/components/evolution/catalog.light/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/catalog.light/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/catalog.light/.parameters.php b/local/components/evolution/catalog.light/.parameters.php new file mode 100644 index 0000000..0597273 --- /dev/null +++ b/local/components/evolution/catalog.light/.parameters.php @@ -0,0 +1,14 @@ + array( + 'MAP_WIDTH' => array( + 'NAME' => GetMessage('COUNT_PER_PAGE'), + 'TYPE' => 'STRING', + 'DEFAULT' => '3', + 'PARENT' => 'BASE', + ), + ), +); +?> \ No newline at end of file diff --git a/local/components/evolution/catalog.light/component.php b/local/components/evolution/catalog.light/component.php new file mode 100644 index 0000000..f7f20fb --- /dev/null +++ b/local/components/evolution/catalog.light/component.php @@ -0,0 +1,116 @@ +StartResultCache(60*60*24, md5(var_export($_POST, true)))) +{ + if(CModule::IncludeModule('iblock')) + { + $breadcrumbs = []; + $canonical = []; + + $arResult = [ + 'SELECTED' => [], + 'TITLES' => [], + 'ITEMS' => [], + 'FILTER_ARRAY' => [], + ]; + + $query = null; + $query_arr = []; + + $pages_url = $arParams['PATH']; + + //'=PROPERTY_BODY' => $bodies_ar_res['NAME'] + $sort = Array("SORT" => "ASC", "PROPERTY_PRICE" => "DESC"); + $filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW ]; + $options = [ "nPageSize" => !empty($arParams['COUNT_PER_PAGE']) ? $arParams['COUNT_PER_PAGE'] : 15 ]; + + if(isset($arParams['FILTER'])) + { + $filter = array_merge($filter, $arParams['FILTER']); + } + if(isset($arParams['SORT'])) + { + $sort = $arParams['SORT']; + } + + $res = CIBlockElement::GetList($sort, $filter, false, $options); + + while ($obElement = $res->GetNextElement()) + { + $ar_res = $obElement->GetFields(); + $ar_res['PROPERTIES'] = $obElement->GetProperties(); + $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(IBLOCK_ID_BRANDS, $ar_res['PROPERTIES']['BRAND']['VALUE']); + $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(IBLOCK_ID_MODELS, $ar_res['PROPERTIES']['MODEL']['VALUE']); + $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(IBLOCK_ID_MODIFICATIONS, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); + + $ar_res['CALCULATION'] = []; + $ar_res['CALCULATION']['MONTHLY'] = number_format(($ar_res['PROPERTIES']['PRICE']['VALUE'] / CALCULATION_COEFFICIENT), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_TAX'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + $ar_res['CALCULATION']['SAVINGS_VAT'] = number_format((($ar_res['PROPERTIES']['PRICE']['VALUE'] / 100) * 4), 0, ".", " "); + + $arResult['ITEMS'][] = $ar_res; + } + + $arResult['SECTION_CODE'] = !empty($arParams['section_code']) ? $arParams['section_code'] : $pages_url; + $arResult['QUERY'] = $query; + + if(count($arResult['ITEMS']) > 0 && $arParams["PAGINATION"] == "Y") + { + $arResult["NAV_STRING"] = $res->GetPageNavStringEx( + $navComponentObject, + "", + "catalog", + "N", + null, + [ + "section_code" => $arResult['SECTION_CODE'], + "query" => $arResult['QUERY'], + ] + ); + } + + $arResult['PAGE_CURRENT'] = $res->NavPageNomer; + $arResult['PAGE_COUNT'] = $res->NavPageCount; + + if(isset($_REQUEST['ajax'])) + { + $GLOBALS['APPLICATION']->RestartBuffer(); + + $this->IncludeComponentTemplate(); + $items = ob_get_contents(); + ob_end_clean(); + + header('Content-Type: application/json; charset=utf-8'); + + $response = [ + 'ITEMS' => json_encode(str_replace(["\t","\r","\n"], ["","",""], $items), JSON_UNESCAPED_SLASHES), + 'PAGE_CURRENT' => $arResult['PAGE_CURRENT'], + 'PAGE_COUNT' => $arResult['PAGE_COUNT'], + 'PAGINATION' => json_encode(str_replace(["\t","\r","\n"], ["","",""], $arResult['NAV_STRING']), JSON_UNESCAPED_SLASHES), + ]; + + print json_encode($response, JSON_UNESCAPED_SLASHES); + + die(); + } + else + { + $this->IncludeComponentTemplate(); + } + } +} \ No newline at end of file diff --git a/local/components/evolution/catalog.light/lang/ru/.description.php b/local/components/evolution/catalog.light/lang/ru/.description.php new file mode 100644 index 0000000..08f6c52 --- /dev/null +++ b/local/components/evolution/catalog.light/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/catalog.light/lang/ru/.parameters.php b/local/components/evolution/catalog.light/lang/ru/.parameters.php new file mode 100644 index 0000000..f1b414e --- /dev/null +++ b/local/components/evolution/catalog.light/lang/ru/.parameters.php @@ -0,0 +1,2 @@ +setFrameMode(true); +?> + + +

+ 0): ?> +
+ + IncludeComponent( + "evolution:catalog.list.item", + "", + $arItem + ); ?> + +
+ 1 && $arResult['PAGE_CURRENT'] != $arResult['PAGE_COUNT']): ?> + + + Показать еще + + + \ No newline at end of file diff --git a/local/components/evolution/catalog.light/templates/ajax/template.php b/local/components/evolution/catalog.light/templates/ajax/template.php new file mode 100644 index 0000000..d76618e --- /dev/null +++ b/local/components/evolution/catalog.light/templates/ajax/template.php @@ -0,0 +1,22 @@ +setFrameMode(true); + +?> + + IncludeComponent( + "evolution:catalog.list.item", + "", + $arItem + ); ?> + \ No newline at end of file diff --git a/local/components/evolution/catalog.promo.model/component.php b/local/components/evolution/catalog.promo.model/component.php index 4d7c0c7..5c9a571 100644 --- a/local/components/evolution/catalog.promo.model/component.php +++ b/local/components/evolution/catalog.promo.model/component.php @@ -26,22 +26,28 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) 'MODELS' => [], ]; - $models_res = CIBlockElement::GetList([ "SORT" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_BRAND_UID" => $arParams['BRAND_UID'], "PROPERTY_PROMO_VALUE" => "Да" ], false, []); + $models_sort = [ "SORT" => "ASC" ]; + $models_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_MODELS, "PROPERTY_BRAND_UID" => $arParams['BRAND_UID'], "PROPERTY_PROMO_VALUE" => "Да" ]; + + $models_res = CIBlockElement::GetList($models_sort, $models_filter, false, []); while ($models_element = $models_res->GetNextElement()) { $models_ar_res = $models_element->GetFields(); $models_ar_res['PROPERTIES'] = $models_element->GetProperties(); $models_ar_res['ITEMS'] = []; - $position_res = CIBlockElement::GetList([ "NAME" => "ASC" ], [ "ACTIVE" => "Y", "IBLOCK_ID" => 1, "PROPERTY_MODEL" => $models_ar_res['ID'], ], false, [ "nPageSize" => 3 ]); - + $cars_sort = [ "NAME" => "ASC" ]; + $cars_filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "PROPERTY_MODEL" => $models_ar_res['ID'], ]; + + $position_res = CIBlockElement::GetList($cars_sort, $cars_filter, false, [ "nPageSize" => 3 ]); + while ($position_element = $position_res->GetNextElement()) { $ar_res = $position_element->GetFields(); $ar_res['PROPERTIES'] = $position_element->GetProperties(); - $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(8, $ar_res['PROPERTIES']['BRAND']['VALUE']); - $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(9, $ar_res['PROPERTIES']['MODEL']['VALUE']); - $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(10, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); + $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(IBLOCK_ID_BRANDS, $ar_res['PROPERTIES']['BRAND']['VALUE']); + $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(IBLOCK_ID_MODELS, $ar_res['PROPERTIES']['MODEL']['VALUE']); + $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(IBLOCK_ID_MODIFICATIONS, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); $ar_res['CALCULATION'] = []; $ar_res['CALCULATION']['MONTHLY'] = number_format(($ar_res['PROPERTIES']['PRICE']['VALUE'] / CALCULATION_COEFFICIENT), 0, ".", " "); diff --git a/local/components/evolution/catalog/component.php b/local/components/evolution/catalog/component.php index 94acd28..f58f69e 100644 --- a/local/components/evolution/catalog/component.php +++ b/local/components/evolution/catalog/component.php @@ -359,9 +359,9 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $ar_res = $obElement->GetFields(); $ar_res['PROPERTIES'] = $obElement->GetProperties(); - $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(8, $ar_res['PROPERTIES']['BRAND']['VALUE']); - $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(9, $ar_res['PROPERTIES']['MODEL']['VALUE']); - $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(10, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); + $ar_res['PROPERTIES']['BRAND']['RELATED'] = get_related(IBLOCK_ID_BRANDS, $ar_res['PROPERTIES']['BRAND']['VALUE']); + $ar_res['PROPERTIES']['MODEL']['RELATED'] = get_related(IBLOCK_ID_MODELS, $ar_res['PROPERTIES']['MODEL']['VALUE']); + $ar_res['PROPERTIES']['MODIFICATION']['RELATED'] = get_related(IBLOCK_ID_MODIFICATIONS, $ar_res['PROPERTIES']['MODIFICATION']['VALUE']); $ar_res['CALCULATION'] = []; $ar_res['CALCULATION']['MONTHLY'] = number_format(($ar_res['PROPERTIES']['PRICE']['VALUE'] / CALCULATION_COEFFICIENT), 0, ".", " "); diff --git a/local/components/evolution/catalog/templates/.default/template.php b/local/components/evolution/catalog/templates/.default/template.php index 4aaf2e8..e520c11 100644 --- a/local/components/evolution/catalog/templates/.default/template.php +++ b/local/components/evolution/catalog/templates/.default/template.php @@ -165,7 +165,24 @@ if(!empty($arResult['SUBTITLE']))

Модель на данный момент отсутствует в каталоге, но это не означает, что мы не сможем её для Вас найти. Оставьте заявку или позвоните по номеру горячей линии 8 800 333 75 75 и мы найдём Вам автомобиль!

-

Посмотрите другие модели :

+ Посмотрите другие модели :

+ */?> + IncludeComponent( + "evolution:catalog.light", + isset($_REQUEST['ajax']) ? "ajax" : "", + array( + "TITLE" => "Посмотрите похожие автомобили на ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL'], + "PAGINATION" => "Y", + "COUNT_PER_PAGE" => 3, + //"BODY" => $_REQUEST['BODY'], + //"BODY_SLUG" => $_REQUEST['BODY_SLUG'], + //"SORT" => $_REQUEST['SORT'], + "PATH" => "/catalog/", + ) + ); + ?> diff --git a/local/components/evolution/preapproval/.description.php b/local/components/evolution/preapproval/.description.php new file mode 100644 index 0000000..a20bdf3 --- /dev/null +++ b/local/components/evolution/preapproval/.description.php @@ -0,0 +1,8 @@ + GetMessage("DEFAULT_NAME"), + "DESCRIPTION" => GetMessage("DEFAULT_DESC"), +); +?> \ No newline at end of file diff --git a/local/components/evolution/preapproval/component.php b/local/components/evolution/preapproval/component.php new file mode 100644 index 0000000..bf73341 --- /dev/null +++ b/local/components/evolution/preapproval/component.php @@ -0,0 +1,34 @@ +StartResultCache(60*60*24, md5(var_export($_POST, true)))) +{ + if(CModule::IncludeModule('iblock')) + { + $sort = Array("SORT" => "ASC", "NAME" => "ASC"); + $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_PROGRAMS, "PROPERTY_PREAPPROVAL_VALUE" => "Да" ); + $options = false; + + $arResult['PROGRAMS'] = []; + + $programs_res = CIBlockElement::GetList($sort, $filter, false, []); + while ($programs_ob_element = $programs_res->GetNextElement()) + { + $programs_ar_res = $programs_ob_element->GetFields(); + $programs_ar_res['PROPERTIES'] = $programs_ob_element->GetProperties(); + + $arResult['PROGRAMS'][] = [ "CODE" => $programs_ar_res['PROPERTIES']['CODE']['VALUE'], "NAME" => $programs_ar_res['PROPERTIES']['PREAPPROVAL_NAME']['VALUE'] ]; + } + + $this->IncludeComponentTemplate(); + } +} \ No newline at end of file diff --git a/local/components/evolution/preapproval/lang/ru/.description.php b/local/components/evolution/preapproval/lang/ru/.description.php new file mode 100644 index 0000000..90904d1 --- /dev/null +++ b/local/components/evolution/preapproval/lang/ru/.description.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/local/components/evolution/preapproval/templates/.default/script.js b/local/components/evolution/preapproval/templates/.default/script.js new file mode 100644 index 0000000..4f1be6c --- /dev/null +++ b/local/components/evolution/preapproval/templates/.default/script.js @@ -0,0 +1,461 @@ +const programs_with_catalog = ["la", "lkt"]; + +var preapproval_selected_program = undefined; +var preapproval_selected_brand = undefined; +var preapproval_exists = false; +var preapproval_payload = { + vat: "", + program: "", + brand: "", + model: "", + price: "", + name: "", + phone: "", +}; + +var leasing_form_submitting = false; + +function preapproval_object_check_errors() +{ + var valid = true; + console.log({ preapproval_payload }) + + if(preapproval_payload.vat === "") + { + valid = false; + console.log("preapproval_vat"); + $("#preapproval_vat_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите ИНН организации"); + } + else + { + if(preapproval_payload.vat.toString().length < 10) + { + $("#preapproval_vat_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите корректный ИНН"); + } + } + + if(preapproval_payload.price === "") + { + valid = false; + console.log("preapproval_price"); + $("#preapproval_price_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите цену объекта лизинга"); + } + + if(preapproval_payload.program === "") + { + valid = false; + console.log("preapproval_program_wrapper"); + $("#preapproval_program_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите выберите программу"); + } + + if(preapproval_payload.brand === "") + { + valid = false; + if(programs_with_catalog.indexOf(preapproval_selected_program) > -1) + { + console.log(1); + $("#preapproval_brand_select_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите марку"); + } + else + { + console.log(2); + $("#preapproval_brand_input_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите марку"); + } + } + + if(preapproval_payload.model === "" && preapproval_payload.brand !== "Другая марка") + { + valid = false; + if(programs_with_catalog.indexOf(preapproval_selected_program) > -1) + { + console.log(3); + if(preapproval_payload.brand !== "") + { + $("#preapproval_model_select_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите модель"); + } + } + else + { + console.log(4); + $("#preapproval_model_input_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите марку"); + } + } + + return valid; +} + +function preapproval_form_check_errors() +{ + console.log("preapproval_form_check_errors()", { preapproval_payload }); + + var valid = true; + + if(preapproval_payload.name === "") + { + valid = false; + $("#preapproval_name_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите с кем связаться"); + } + + if(preapproval_payload.phone === "") + { + valid = false; + $("#preapproval_phone_wrapper").addClass("error").attr("data-error", "Пожалуйста, укажите номер телефона"); + } + + if(!$("#preapproval_form_policy_checkbox").is(':checked')) + { + valid = false; + $("#preapproval_form_policy_wrapper").addClass("error"); + } + + return valid; +} + +(function InitAprrove() +{ + $("#preapproval_block").find(".block_toggle") + .on("mouseenter", function() { + $("#preapproval_block_span_wrapper").css("margin-left", "-20px" ); + $("#preapproval_block_span").removeClass("span_hidden").css("transform", "translate(0px, 0px)"); + }) + .on("mouseleave", function() { + $("#preapproval_block_span_wrapper").css("margin-left", "-500px"); + $("#preapproval_block_span").add("span_hidden").css("transform", "translate(-500px, 0px)"); + }); + + setTimeout(function() + { + $("#preapproval_block_span_wrapper").css("margin-left", "-500px"); + $(".span_animate_out").removeClass("span_animate_out").addClass("span_hidden"); + }, 2000); + + const wrap = $("#preapproval_block"); + const form = $(wrap).find("form"); + + const checkFields = () => + { + var currentStep = $(".step.active"); + var inputsFilled = currentStep.find("input, select").filter(function() + { + return $(this).val() === ""|| $(this).val() === null; + }).length === 0; + + if(!inputsFilled) + { + alert("Пожалуйста, заполните все поля."); + } + return inputsFilled; + } + + $(wrap).on("click", ".block_toggle", function(e) + { + e.preventDefault(); + $(wrap).toggleClass("active"); + $(wrap).find(".block_title").text("Получите предварительное одобрение за 1 минуту"); + $(wrap).find(".step").eq(0).addClass("active").siblings().removeClass("active"); + }); + + $(wrap).on("change", "#preapproval_program", function(e) + { + console.log(e.target); + preapproval_selected_program = e.target.value; + preapproval_payload.program = $(this).find("option:selected").text(); + $("#preapproval_program_wrapper").removeClass("error").removeAttr("data-error"); + preapproval_payload.brand = ""; + preapproval_payload.model = ""; + $("#preapproval_brand_input").val(""); + $("#preapproval_model_input").val(""); + + $("#preapproval_brand_select").attr("disabled", true); + $("#preapproval_brand_select").empty(); + $("#preapproval_brand_select").append(''); + + $("#preapproval_model_select").attr("disabled", true); + $("#preapproval_model_select").empty(); + $("#preapproval_model_select").append(''); + + if(programs_with_catalog.indexOf(preapproval_selected_program) > -1) + { + $("#preapproval_brand_select_wrapper").css("display", "block"); + $("#preapproval_model_select_wrapper").css("display", "block"); + $("#preapproval_brand_input_wrapper").css("display", "none"); + $("#preapproval_model_input_wrapper").css("display", "none"); + + $.get("/api/programs/brands/", { "PROGRAM": preapproval_selected_program }, function(response) + { + if(response.brands !== undefined) + { + if(response.brands.length > 0) + { + for(let i in response.brands) + { + $("#preapproval_brand_select").append(''); + } + $("#preapproval_brand_select").append(''); + + $("#preapproval_brand_select").attr("disabled", false); + } + } + }); + } + else + { + $("#preapproval_brand_select_wrapper").css("display", "none"); + $("#preapproval_model_select_wrapper").css("display", "none"); + $("#preapproval_brand_input_wrapper").css("display", "block"); + $("#preapproval_model_input_wrapper").css("display", "block"); + } + }); + + $(wrap).on("change", "#preapproval_brand_select", function(e) + { + preapproval_selected_brand = e.target.value; + preapproval_payload.brand = $(this).find("option:selected").text(); + $("#preapproval_brand_select_wrapper").removeClass("error").removeAttr("data-error"); + $("#preapproval_brand_input_wrapper").removeClass("error").removeAttr("data-error"); + + if(preapproval_selected_brand === "Другая марка") + { + $("#preapproval_model_select").attr("disabled", true); + $("#preapproval_model_select").empty(); + $("#preapproval_model_select").append(''); + preapproval_payload.model = ""; + } + else + { + $.get("/api/programs/models/", { "PROGRAM": preapproval_selected_program, "BRAND_ID": preapproval_selected_brand }, function(response) + { + $("#preapproval_model_select").attr("disabled", true); + $("#preapproval_model_select").empty(); + $("#preapproval_model_select").append(''); + + if(response.models !== undefined) + { + if(response.models.length > 0) + { + for(let i in response.models) + { + $("#preapproval_model_select").append(''); + } + $("#preapproval_model_select").append(''); + + $("#preapproval_model_select").attr("disabled", false); + } + } + }); + } + }); + + $(wrap).on("change", "#preapproval_model_select", function(e) + { + preapproval_payload.model = $(this).find("option:selected").text(); + $("#preapproval_model_select_wrapper").removeClass("error").removeAttr("data-error"); + $("#preapproval_model_input_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $("#preapproval_vat").on("input", function(e) + { + preapproval_payload.vat = e.target.value; + $("#preapproval_vat_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $("#preapproval_price").on("input", function(e) + { + preapproval_payload.price = e.target.value; + $("#preapproval_price_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $("#preapproval_brand_input").on("input", function(e) + { + preapproval_payload.brand = e.target.value; + $("#preapproval_brand_input_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $("#preapproval_model_input").on("input", function(e) + { + preapproval_payload.model = e.target.value; + $("#preapproval_model_input_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $("#preapproval_name").on("input", function(e) + { + preapproval_payload.name = e.target.value; + $("#preapproval_name_wrapper").removeClass("error").removeAttr("data-error"); + }); + + $(wrap).on("click", ".next", function(e) + { + e.preventDefault(); + var currentStep = $(".step.active"); + + if(preapproval_object_check_errors()) + { + console.log({ preapproval_payload }); + + currentStep.removeClass("active"); + currentStep.next(".step").addClass("active"); +// $(wrap).find(".block_title").text("Вам предварительно одобрено всё"); + + $.post("/api/preapproval/", { vat: preapproval_payload.vat }, function(response) + { + console.log("/api/preapproval/", { response }); + + $(".loading_spinner").css("display", "none"); + $("#preapproval_form").css("display", "block"); + + if(response.client === "partner") + { + preapproval_exists = true; + $("#preapproval_status").text("Мы Вас узнали 😊"); + $(".preapproval_exists").css("display", "block"); + } + else + { + $("#preapproval_status").text("Вам предварительно одобрено всё"); + $(".preapproval_new").css("display", "block"); + } + + //$(form).reset(); + //$(wrap).find(".block_close").click(); + }); + } + }); + + $(form).on("submit", function(e) + { + e.preventDefault(); + var currentStep = $(".step.active"); + + if(preapproval_form_check_errors()) + { + console.log({ preapproval_payload }); + + $(".loading_spinner").css("display", "inline-block"); + currentStep.removeClass("active"); + currentStep.next(".step").addClass("active"); + + var formData = new FormData($("#form_leasing_request")[0]); + formData.append("form", "FORM_LEASING_REQUESTS"); + formData.append("FORM_FIELD_FIO", preapproval_payload.name); + formData.append("FORM_FIELD_PHONE", preapproval_payload.phone); + formData.append("FORM_FIELD_PAGE_NAME", document.title); + formData.append("FORM_FIELD_PAGE_URL", window.location.href); + formData.append("FORM_FIELD_BRAND", preapproval_payload.brand); + formData.append("FORM_FIELD_MODEL", preapproval_payload.model); + formData.append("FORM_FIELD_PRICE", preapproval_payload.price); + formData.append("FORM_FIELD_PROGRAM", preapproval_payload.program); + formData.append("FORM_FIELD_INN", preapproval_payload.vat); + + grecaptcha.ready(function() + { + grecaptcha.execute($("meta[name=recaptcha_site_key]") + .attr("content"), { action: 'submit' }) + .then(function(token) + { + formData.append("recaptcha_token", token); + + $.ajax( + { + url: "/api/forms/", type: 'POST', success: function(response) + { + $(".loading_spinner").css("display", "none"); + + if(response.status === "complete") + { + try + { + ym(66905533,'reachGoal','leasingform') + } + catch(e) + { + console.error(e); + } + + if(preapproval_exists) + { + $(".preapproval_exists_success").css("display", "block"); + } + else + { + $(".preapproval_new_success").css("display", "block"); + } + } + else if(response.status === "error") + { + if(response.message === "recaptcha_error") + { + $(".preapproval_error_recaptcha_message").css("display", "block"); + } + else + { + $(".preapproval_error_message").css("display", "block"); + } + } + }, data: formData, + dataType: "json", + cache: false, contentType: false, processData: false + }); + }); + }); + + /* + $.post("/api/preapproval/send/", preapproval_payload, function(response) + { + }); + */ + + /* + $.post("/api/preapproval/", preapproval_payload, function(response) + { + console.log("send"); + $(form).reset(); + $(wrap).find(".block_close").click(); + $("#approval_status").text("Вам предварительно одобрено всё"); + $("#approval_status").text("Мы Вас узнали 😊"); + $("#approval_comment").text("Оставьте контактные данные и мы свяжемся с Вами"); + $("#approval_comment").text("Ваш менеджер по лизингу свяжется с Вами в ближайшее время"); + }); + */ + } + }) + + $("#preapproval_form_policy_checkbox").on("change", function(e) + { + if($(this).is(':checked')) + { + $("#preapproval_send_button").attr("disabled", false); + } + else + { + $("#preapproval_send_button").attr("disabled", true); + } + }); +}()); + +$(document).ready(function() +{ + $("#preapproval_phone").inputmask('+7 (999) 999-9999', { + oncomplete: function(event) { + const phone = event.target.value.replace(/\D/g, ""); + preapproval_payload.phone = phone; + $("#preapproval_phone_wrapper").removeClass("error").removeAttr("data-error"); + }, + onincomplete: function(event) { + preapproval_payload.phone = event.target.value.replace(/\D/g, ""); + }, + onBeforePaste: function(pastedValue, opts) { + preapproval_payload.phone = pastedValue; + $("#preapproval_phone_wrapper").removeClass("error").removeAttr("data-error"); + return pastedValue; + }, + onBeforeMask: function(value, opts) + { + const phone = value.replace(/\D/g, ""); + if(phone.length === 11) + { + preapproval_payload.phone = phone; + $("#preapproval_phone_wrapper").removeClass("error").removeAttr("data-error"); + } + }, + }); +}); diff --git a/local/components/evolution/preapproval/templates/.default/style.css b/local/components/evolution/preapproval/templates/.default/style.css new file mode 100644 index 0000000..ddac1f6 --- /dev/null +++ b/local/components/evolution/preapproval/templates/.default/style.css @@ -0,0 +1,37 @@ +@keyframes loading_spinner_animation { + 0% { transform: translate(-50%,-50%) rotate(0deg); } + 100% { transform: translate(-50%,-50%) rotate(360deg); } +} + +.loading_spinner_animation div { + position: absolute; + width: 130px; + height: 130px; + border: 5px solid #1c01a9; + border-top-color: transparent; + border-radius: 50%; +} + +.loading_spinner_animation div { + animation: loading_spinner_animation 1s linear infinite; + top: 100px; + left: 100px +} + +.loading_spinner { + width: 54px; + height: 54px; + display: inline-block; + overflow: hidden; + background: none; +} + +.loading_spinner_animation { + width: 100%; + height: 100%; + position: relative; + transform: translateZ(0) scale(0.28); + backface-visibility: hidden; + transform-origin: 0 0; /* see note above */ +} +.loading_spinner_animation div { box-sizing: content-box; } \ No newline at end of file diff --git a/local/components/evolution/preapproval/templates/.default/template.php b/local/components/evolution/preapproval/templates/.default/template.php new file mode 100644 index 0000000..5a17e75 --- /dev/null +++ b/local/components/evolution/preapproval/templates/.default/template.php @@ -0,0 +1,121 @@ +setFrameMode(true); +?> + +
+ + +
+
+ +

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + + + +
+ +
+ +
+ +
+
+
+
+
+
+ + + +
+ +
+
+
+
+
+
+ + + + +
+
+
+
\ No newline at end of file diff --git a/local/components/evolution/used.catalog.list.item/templates/.default/template.php b/local/components/evolution/used.catalog.list.item/templates/.default/template.php index bd85a02..42c757a 100644 --- a/local/components/evolution/used.catalog.list.item/templates/.default/template.php +++ b/local/components/evolution/used.catalog.list.item/templates/.default/template.php @@ -32,7 +32,9 @@ if(!empty($arParams['PROPERTIES']['PARKING_CITY']['VALUE'])) { array_push($descr
Спецпредложение
-
Резерв до
+ time()): ?> +
Резерв до
+
Доступно в лизинг
diff --git a/local/components/evolution/used.catalog.position/component.php b/local/components/evolution/used.catalog.position/component.php index c18fe98..fe84685 100644 --- a/local/components/evolution/used.catalog.position/component.php +++ b/local/components/evolution/used.catalog.position/component.php @@ -63,8 +63,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) array_push($arResult['PHOTOS_120'], CFile::GetPath($photo_id)); } - $APPLICATION->AddHeadString(''); - //$APPLICATION->AddHeadString(''); + //$APPLICATION->AddHeadString(''); + $APPLICATION->AddHeadString(''); } if(empty($ar_res['NAME'])) { define('ERROR_404', 'Y'); } @@ -79,6 +79,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->SetPageProperty("title", $meta['ELEMENT_META_TITLE']); $APPLICATION->SetPageProperty("keywords", $meta['ELEMENT_META_KEYWORDS']); $APPLICATION->SetPageProperty("description", $meta['ELEMENT_META_DESCRIPTION']); + + $APPLICATION->SetPageProperty("robots", "noindex, nofollow"); } $this->IncludeComponentTemplate(); diff --git a/local/components/evolution/used.catalog.position/templates/.default/script.js b/local/components/evolution/used.catalog.position/templates/.default/script.js index a869094..4c44ff5 100644 --- a/local/components/evolution/used.catalog.position/templates/.default/script.js +++ b/local/components/evolution/used.catalog.position/templates/.default/script.js @@ -116,7 +116,8 @@ function calculator_car_price_save() function fullpage_prev() { - if(fullscreen && current_image > 0) + //fullscreen && + if(current_image > 0) { $(".photo_480_"+current_image).animate({ opacity: 0.0, }, 500); current_image--; @@ -133,8 +134,8 @@ function fullpage_prev() function fullpage_next() { - console.log("fullpage_next()"); - if(fullscreen && current_image < max_images) +// console.log("fullpage_next()"); + if(current_image < max_images) { $(".photo_480_"+current_image).animate({ opacity: 0.0, }, 500); current_image++; @@ -396,41 +397,65 @@ $(function() fullpage_next(); } }); + + $('.scroll_images').on("scroll", function(event) + { + var scrollPanelWidth = $('.scroll_images').outerWidth(true); + + if(event.target.scrollLeft > 0) + { + $(".scroll_images_button_left").css("display", "block"); + } + else + { + $(".scroll_images_button_left").css("display", "none"); + } + + if((event.target.scrollLeft + scrollPanelWidth) >= event.target.scrollWidth) + { + $(".scroll_images_button_right").css("display", "none"); + } + else + { + $(".scroll_images_button_right").css("display", "block"); + } + }); }); -const gestureZone = document.getElementById('overlay_image'); +const gestureZone = document.getElementById('photo_480_wrapper'); +const gestureZoneFullImage = document.getElementById('overlay_image'); gestureZone.addEventListener('touchstart', function(event) { - touchstartX = event.changedTouches[0].screenX; - touchstartY = event.changedTouches[0].screenY; + touchstartX = event.changedTouches[0].screenX; + touchstartY = event.changedTouches[0].screenY; }, false); gestureZone.addEventListener('touchend', function(event) { - touchendX = event.changedTouches[0].screenX; - touchendY = event.changedTouches[0].screenY; - handleGesture(); + touchendX = event.changedTouches[0].screenX; + touchendY = event.changedTouches[0].screenY; + handleGesture(); }, false); -function handleGesture() { - if (touchendX < touchstartX) { - fullpage_next(); - console.log('<< LEFT'); - } - - if (touchendX > touchstartX) { - fullpage_prev(); - console.log('RIGHT >>'); - } +gestureZoneFullImage.addEventListener('touchstart', function(event) { + touchstartX = event.changedTouches[0].screenX; + touchstartY = event.changedTouches[0].screenY; +}, false); - if (touchendY < touchstartY) { - console.log('Swiped up'); +gestureZoneFullImage.addEventListener('touchend', function(event) { + touchendX = event.changedTouches[0].screenX; + touchendY = event.changedTouches[0].screenY; + handleGesture(); +}, false); + +function handleGesture() +{ + if (touchendX < touchstartX) + { + fullpage_next(); } - if (touchendY > touchstartY) { - console.log('Swiped down'); - } - - if (touchendY === touchstartY) { - console.log('Tap'); - } + if (touchendX > touchstartX) + { + fullpage_prev(); + } } \ No newline at end of file diff --git a/local/components/evolution/used.catalog.position/templates/.default/style.css b/local/components/evolution/used.catalog.position/templates/.default/style.css index 9f30817..97aba6e 100644 --- a/local/components/evolution/used.catalog.position/templates/.default/style.css +++ b/local/components/evolution/used.catalog.position/templates/.default/style.css @@ -1,3 +1,7 @@ +.scroll_images_wrapper { + position: relative; +} + .scroll_images { width: 100%; height: auto; @@ -21,7 +25,7 @@ visibility: hidden; } -@media all and (max-width: 768px) { +@media all and (max-width: 767px) { .scroll_images { margin: 2px -16px; width: calc(100% + 32px); @@ -56,7 +60,7 @@ .thumb { display: flex; width: 33.333%; - margin: 2px 0px 8px 0px; + margin: 2px 0px 4px 0px; margin-right: 0; overflow: hidden; cursor: pointer; @@ -77,11 +81,11 @@ } } -@media all and (max-width: 768px) { +@media all and (max-width: 767px) { .thumb { width: auto; min-width: 90px; - height: 88px; + height: 75px; } } @@ -118,7 +122,7 @@ position: relative; } -@media all and (max-width: 768px) { +@media all and (max-width: 767px) { #photo_480_wrapper { margin: 0 -16px; width: calc(100% + 32px); @@ -327,6 +331,7 @@ position: absolute; display: block; top: 50%; + margin-top: -9px; transform: translateY(-18px); bottom: 0; cursor: pointer; @@ -338,20 +343,34 @@ } } +@media all and (max-width: 1024px) +{ + .scroll_images_button_left { + display: none !important; + } + + .scroll_images_button_right { + display: none !important; + } +} + .scroll_images_button_left { - left: 3px; + left: 0px; background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M27 16H5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 7L5 16L14 25' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: 19px; background-position: center; + border-radius: 0px; + display: none; } .scroll_images_button_right { - right:3px; + right:0px; background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 16H27' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M18 7L27 16L18 25' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); background-repeat: no-repeat; background-size: 19px; background-position: center; + border-radius: 0px; } .car_container_used { diff --git a/local/components/evolution/used.catalog.position/templates/.default/template.php b/local/components/evolution/used.catalog.position/templates/.default/template.php index 9590466..2d3848d 100644 --- a/local/components/evolution/used.catalog.position/templates/.default/template.php +++ b/local/components/evolution/used.catalog.position/templates/.default/template.php @@ -36,7 +36,7 @@ $this->setFrameMode(true); -


с пробегомдля юридических лиц и ИП

+


с пробегом

0): ?>
Скидка
@@ -45,7 +45,9 @@ $this->setFrameMode(true);
Спецпредложение
-
Резерв до
+ time()): ?> +
Резерв до
+
Доступно в лизинг
@@ -82,7 +84,7 @@ $this->setFrameMode(true);
-
+
$thumb): ?> @@ -132,9 +134,9 @@ $this->setFrameMode(true);

Приобретите на выгодных условиях

-

"> +

"> Стоимость авто - "> + font-size: 9999999) ? "30px" : "34px"; ?>">

0): ?>

diff --git a/local/components/evolution/used.catalog/component.php b/local/components/evolution/used.catalog/component.php index 21a8091..2d96aca 100644 --- a/local/components/evolution/used.catalog/component.php +++ b/local/components/evolution/used.catalog/component.php @@ -96,7 +96,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arResult['SELECTED']['BRAND_ID'] = $brands_ar_res['ID']; $arResult['SELECTED']['BRAND_UID'] = $brands_ar_res['PROPERTIES']['UID']['VALUE']; $arResult['TITLES']['BRAND'] = $brands_ar_res['NAME']; - $arResult['TITLES']['TRANSCRIPTION'] = $brands_ar_res['PROPERTIES']['TRANSCRIPTION']['VALUE']; + $arResult['TITLES']['TRANSCRIPTION'] = !empty($brands_ar_res['PROPERTIES']['TRANSCRIPTION']['VALUE']) ? $brands_ar_res['PROPERTIES']['TRANSCRIPTION']['VALUE'] : $brands_ar_res['NAME']; if($brands_ar_res['ACTIVE'] === "Y") { @@ -170,6 +170,11 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $APPLICATION->SetPageProperty("robots", "noindex, nofollow"); } } + + if($models_ar_res['PROPERTIES']['SEO_INDEXING']['VALUE_XML_ID'] !== 'YES') + { + $APPLICATION->SetPageProperty("robots", "noindex, nofollow"); + } } $arResult['EXTENDED'] = true; @@ -431,13 +436,15 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { if(!empty($arResult['TITLES']['MODEL'])) { - $APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в лизинг для юридических лиц и ИП в Москве - купить новый автомобиль ".$arResult['TITLES']['TRANSCRIPTION']." ".$arResult['TITLES']['MODEL']." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("description", "Новые автомобили ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." с пробегом (б/у) в лизинг для юридических лиц и ИП в Москве - купить подержанные автомобили ".$arResult['TITLES']['TRANSCRIPTION']." ".$arResult['TITLES']['MODEL']." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Каталог автомобилей ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." с пробегом (б/у) в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить подержанные машины ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." с пробегом в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." с пробегом в лизинг, ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." подержанные в лизинг, ".$arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." бу в лизинг"); } else { - $APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." в лизинг для юридических лиц и ИП в Москве - купить новый автомобиль ".$arResult['TITLES']['TRANSCRIPTION']." в лизинг | Эволюция"); - $APPLICATION->SetPageProperty("description", "Новые автомобили ".$arResult['TITLES']['BRAND']." в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить ".$arResult['TITLES']['BRAND']." в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("title", $arResult['TITLES']['BRAND']." с пробегом (б/у) в лизинг для юридических лиц и ИП в Москве - купить подержанные автомобили ".$arResult['TITLES']['TRANSCRIPTION']." в лизинг | Эволюция"); + $APPLICATION->SetPageProperty("description", "Каталог автомобилей ".$arResult['TITLES']['BRAND']." с пробегом (б/у) в лизинг для юридических лиц и ИП в Москве и в других регионах России. Вы можете купить подержанные машины ".$arResult['TITLES']['BRAND']." с пробегом в лизинг от официальных дилеров, автосалонов на выгодных условиях со скидкой. Телефон горячей линии ".CENTRAL_PHONE_FORMATTED." - звонок по России бесплатный."); + $APPLICATION->SetPageProperty("keywords", $arResult['TITLES']['BRAND']." с пробегом в лизинг, ".$arResult['TITLES']['BRAND']." подержанные в лизинг, ".$arResult['TITLES']['BRAND']." бу в лизинг"); } } @@ -462,6 +469,8 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $arResult['PAGE_CURRENT'] = $res->NavPageNomer; $arResult['PAGE_COUNT'] = $res->NavPageCount; + $APPLICATION->AddHeadString(' 0 ? "/" : "").'"/>'); + if($arResult['MODEL_DISABLED']) { $arResult['MODEL'] = null; diff --git a/local/components/evolution/used.catalog/templates/.default/template.php b/local/components/evolution/used.catalog/templates/.default/template.php index 94e6866..872ba3f 100644 --- a/local/components/evolution/used.catalog/templates/.default/template.php +++ b/local/components/evolution/used.catalog/templates/.default/template.php @@ -21,7 +21,7 @@ if(!empty($arParams['REGION']) && $arParams['REGION'] !== "root") if(!empty($arResult['TITLES']['BRAND'])) { - $title .= " ".$arResult['TITLES']['BRAND']; + $title = "Подержанные автомобили ".$arResult['TITLES']['BRAND']; if(!empty($arResult['TITLES']['MODEL'])) { @@ -40,15 +40,20 @@ else { if(!empty($arResult['TITLES']['BRAND'])) { - $title .= "Подержанные автомобили ".$arResult['TITLES']['BRAND']; + $title = $arResult['TITLES']['BRAND']." с пробегом"; if(!empty($arResult['TITLES']['MODEL'])) { - $title = $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']; + $title = $arResult['TITLES']['BRAND']." ".$arResult['TITLES']['MODEL']." с пробегом"; } $subtitle = " в лизинг для юридических лиц и ИП"; } + else + { + $title = "Лизинг б/у автомобилей"; + $subtitle = " для юридических лиц и ИП"; + } } if(!empty($arResult['TITLE'])) @@ -77,11 +82,7 @@ if(!empty($arResult['SUBTITLE']))

- -

".$subtitle : ""; ?>

- -

".$subtitle : ""; ?>

- +

".$subtitle : ""; ?>

diff --git a/local/ilsa_update.php b/local/ilsa_update.php index 8c976ff..1a28deb 100644 --- a/local/ilsa_update.php +++ b/local/ilsa_update.php @@ -40,6 +40,8 @@ $bitrix_enabled_models = []; $api_brands = []; $api_models = []; +$api_bodies = []; +$api_engine_fuels = []; $bitrix_existed_modifications = []; $bitrix_enabled_modifications = []; @@ -47,6 +49,12 @@ $bitrix_enabled_modifications = []; $bitrix_existed_cars = []; $bitrix_enabled_cars = []; +$bitrix_existed_bodies = []; +$bitrix_enabled_bodies = []; + +$bitrix_existed_engine_fuels = []; +$bitrix_enabled_engine_fuels = []; + $all_brands_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_BRANDS, "ACTIVE" => "Y" ], false, false, [] ); while($all_brands_search_ob = $all_brands_search_res->GetNextElement()) { @@ -73,7 +81,7 @@ while($all_models_search_ob = $all_models_search_res->GetNextElement()) } } -$all_modifications_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => 10, "ACTIVE" => "Y" ], false, false, [] ); +$all_modifications_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_MODIFICATIONS, "ACTIVE" => "Y" ], false, false, [] ); while($all_modifications_search_ob = $all_modifications_search_res->GetNextElement()) { $modification_search = $all_modifications_search_ob->GetFields(); @@ -85,7 +93,7 @@ while($all_modifications_search_ob = $all_modifications_search_res->GetNextEleme } } -$all_cars_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => 1, ], false, false, [] ); +$all_cars_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, ], false, false, [] ); while($all_cars_search_ob = $all_cars_search_res->GetNextElement()) { $car_search = $all_cars_search_ob->GetFields(); @@ -98,6 +106,32 @@ while($all_cars_search_ob = $all_cars_search_res->GetNextElement()) } } +//наполняем массивы имеющихся и активных типов кузова +$all_bodies_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_BODIES, ], false, false, [] ); +while($all_bodies_search_ob = $all_bodies_search_res->GetNextElement()) +{ + $body_search = $all_bodies_search_ob->GetFields(); + + array_push( $bitrix_existed_bodies, $body_search['NAME'] ); + if($body_search['ACTIVE'] == "Y") + { + array_push( $bitrix_enabled_bodies, $body_search['NAME'] ); + } +} + +//наполняем массивы имеющихся и активных типов двигателя +$all_engine_fuels_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_ENGINE_FUELS, ], false, false, [] ); +while($all_engine_fuels_search_ob = $all_engine_fuels_search_res->GetNextElement()) +{ + $engine_fuel_search = $all_engine_fuels_search_ob->GetFields(); + + array_push( $bitrix_existed_engine_fuels, $engine_fuel_search['NAME'] ); + if($engine_fuel_search['ACTIVE'] == "Y") + { + array_push( $bitrix_enabled_engine_fuels, $engine_fuel_search['NAME'] ); + } +} + print "bitrix_existed_brands = ".count($bitrix_existed_brands)."\n"; print "bitrix_existed_models = ".count($bitrix_existed_models)."\n"; print "bitrix_existed_modifications = ".count($bitrix_existed_modifications)."\n"; @@ -403,7 +437,7 @@ function set_model_activity($model_uid, $active = "N") function set_modification_activity($modification_code, $active = "N") { $modification_id = null; - $modification_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => 10, "CODE" => $modification_code ], false, false, [] ); + $modification_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_MODIFICATIONS, "CODE" => $modification_code ], false, false, [] ); while($modification_search_ob = $modification_search_res->GetNextElement()) { @@ -437,6 +471,42 @@ function set_car_activity($car_uid, $active = "N") } } +function set_body_activity($body_name, $active = "N") +{ + $body_id = null; + $body_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_BODIES, "NAME" => $body_name ], false, false, [] ); + + while($body_search_ob = $body_search_res->GetNextElement()) + { + $body_search = $body_search_ob->GetFields(); + $body_id = $body_search['ID']; + } + + if($body_id !== null) + { + $update_element = new CIBlockElement; + $update_result = $update_element->Update($body_id, [ "ACTIVE" => $active, ]); + } +} + +function set_engine_fuel_activity($engine_fuel_name, $active = "N") +{ + $engine_fuel_id = null; + $engine_fuel_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_ENGINE_FUELS, "NAME" => $engine_fuel_name ], false, false, [] ); + + while($engine_fuel_search_ob = $engine_fuel_search_res->GetNextElement()) + { + $engine_fuel_search = $engine_fuel_search_ob->GetFields(); + $engine_fuel_id = $engine_fuel_search['ID']; + } + + if($engine_fuel_id !== null) + { + $update_element = new CIBlockElement; + $update_result = $update_element->Update($engine_fuel_id, [ "ACTIVE" => $active, ]); + } +} + function models_check($bitrix_models, $bitrix_modifications, $bitrix_modifications_codes, $brand_uid, $brand) { foreach($brand['models'] AS $model_uid => $model) @@ -503,7 +573,7 @@ function models_check($bitrix_models, $bitrix_modifications, $bitrix_modificatio $CODE = CUtil::translit( $NAME, "ru", [ "max_len" => 255, "change_case" => "L", "replace_space" => "-", "replace_other" => "-", ] ); //"ID" - $modification_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => 10, "CODE" => $CODE ], false, ["nPageSize" => 1], [] ); + $modification_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_MODIFICATIONS, "CODE" => $CODE ], false, ["nPageSize" => 1], [] ); while($modification_search_ob = $modification_search_res->GetNextElement()) { $m_res = $modification_search_ob->GetFields(); @@ -518,7 +588,7 @@ function models_check($bitrix_models, $bitrix_modifications, $bitrix_modificatio if($modification_existed === null) { $modification_element = new CIBlockElement; - $modification_payload = [ "IBLOCK_SECTION_ID" => false, "IBLOCK_ID" => 10, "PROPERTY_VALUES" => [ "MODEL_UID" => $model_uid, "TITLE" => $modification ], "NAME" => $NAME, "CODE" => $CODE, "ACTIVE" => "Y", ]; + $modification_payload = [ "IBLOCK_SECTION_ID" => false, "IBLOCK_ID" => IBLOCK_ID_MODIFICATIONS, "PROPERTY_VALUES" => [ "MODEL_UID" => $model_uid, "TITLE" => $modification ], "NAME" => $NAME, "CODE" => $CODE, "ACTIVE" => "Y", ]; if($new_modification_id = $modification_element->Add($modification_payload)) { @@ -601,6 +671,16 @@ foreach($json AS $car) "LEASING_PROGRAMS" => $car['programms'], ]; + if(!in_array($car['body'], $api_bodies)) + { + array_push($api_bodies, $car['body']); + } + + if(!in_array($car['engine']['fuel'], $api_engine_fuels)) + { + array_push($api_engine_fuels, $car['engine']['fuel']); + } + //"ID" $car_existed = null; $car_search_res = CIBlockElement::GetList( [], [ "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "PROPERTY_UID" => $car['uid'] ], false, ["nPageSize" => 1], [] ); @@ -625,7 +705,7 @@ foreach($json AS $car) //if($c === 0) //{ $car_element = new CIBlockElement; - $car_payload = [ "IBLOCK_SECTION_ID" => false, "IBLOCK_ID" => 1, "NAME" => $name, "CODE" => $code, "PROPERTY_VALUES" => $PROPERTY_VALUES, "ACTIVE" => "Y", ]; + $car_payload = [ "IBLOCK_SECTION_ID" => false, "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "NAME" => $name, "CODE" => $code, "PROPERTY_VALUES" => $PROPERTY_VALUES, "ACTIVE" => "Y", ]; if($new_car_id = $car_element->Add($car_payload)) { @@ -764,6 +844,93 @@ foreach($bitrix_enabled_brands AS $enabled_brand_uid) } } +//кузов +foreach($api_bodies AS $api_body) +{ + if(!in_array($api_body, $bitrix_enabled_bodies)) + { + //выключено + if(!in_array($api_body, $bitrix_existed_bodies)) + { + //не существует, создаем + + $code = CUtil::translit( $api_body, "ru", [ "max_len" => 255, "change_case" => "L", "replace_space" => "-", "replace_other" => "-", ] ); + $body_element = new CIBlockElement; + $body_payload = [ + "IBLOCK_ID" => IBLOCK_ID_BODIES, + "PROPERTY_VALUES" => [ + "SINGULAR_NAME" => $api_body, + "PLURAL_NAME" => $api_body, + "GENITIVE_NAME" => $api_body, + ], + "NAME" => $api_body, + "CODE" => $code, + "ACTIVE" => "Y", + ]; + + $body_element->Add($body_payload); + array_push($bitrix_existed_bodies, $api_body); + } + else + { + //существует, включаем + set_body_activity($api_body, "Y"); + } + } +} + +foreach($bitrix_existed_bodies AS $bitrix_body) +{ + if(!in_array($bitrix_body, $api_bodies)) + { + //выключаем + set_body_activity($bitrix_body, "N"); + } +} + +//топливо +foreach($api_engine_fuels AS $api_engine_fuel) +{ + if(!in_array($api_engine_fuel, $bitrix_enabled_engine_fuels)) + { + //выключено + if(!in_array($api_engine_fuel, $bitrix_existed_engine_fuels)) + { + //не существует, создаем + $code = CUtil::translit( $api_engine_fuel, "ru", [ "max_len" => 255, "change_case" => "L", "replace_space" => "-", "replace_other" => "-", ] ); + $engine_fuel_element = new CIBlockElement; + $engine_fuel_payload = [ + "IBLOCK_ID" => IBLOCK_ID_ENGINE_FUELS, + "PROPERTY_VALUES" => [ + "SINGULAR_NAME" => "автомобиль с двигателем ".$api_engine_fuel, + "PLURAL_NAME" => "автомобили с двигателем ".$api_engine_fuel, + "GENITIVE_NAME" => "автомобилей с двигателем ".$api_engine_fuel, + ], + "NAME" => $api_engine_fuel, + "CODE" => $code, + "ACTIVE" => "Y", + ]; + + $engine_fuel_element->Add($engine_fuel_payload); + array_push($bitrix_existed_engine_fuels, $api_engine_fuel); + } + else + { + //существует, включаем + set_engine_fuel_activity($api_engine_fuel, "Y"); + } + } +} + +foreach($bitrix_existed_engine_fuels AS $bitrix_engine_fuel) +{ + if(!in_array($bitrix_engine_fuel, $api_engine_fuels)) + { + //выключаем + set_engine_fuel_activity($bitrix_engine_fuel, "N"); + } +} + $trace = "Снято с публикации марок: ".$b; $traceback_message .= $trace."\n"; print "\n\n".$trace."\n\n"; diff --git a/local/include/footer.php b/local/include/footer.php index 85ad2fd..ab93cc1 100644 --- a/local/include/footer.php +++ b/local/include/footer.php @@ -79,9 +79,9 @@

Мы используем cookies для улучшения использования сайта.

- + @@ -93,107 +93,10 @@ Array() ); ?> - - -
- - -
-
- -

-
- -
-
-
- -
-
- -
-
- -
-
- -
-
- -
- -
-
-
- -
-
- -
- -
-
-
-
- - -*/?> \ No newline at end of file +IncludeComponent( + "evolution:preapproval", + "", + Array() + ); +?> \ No newline at end of file diff --git a/local/templates/evolution/css/footer/style.css b/local/templates/evolution/css/footer/style.css index 4c7a248..128388d 100644 --- a/local/templates/evolution/css/footer/style.css +++ b/local/templates/evolution/css/footer/style.css @@ -85,6 +85,7 @@ footer .container { padding: 0; flex-wrap: wrap; margin-bottom: 50px; + padding-bottom: 70px; } } footer .column { diff --git a/local/templates/evolution/css/forms/style.css b/local/templates/evolution/css/forms/style.css index 841b55c..4c84190 100644 --- a/local/templates/evolution/css/forms/style.css +++ b/local/templates/evolution/css/forms/style.css @@ -1 +1,787 @@ -#filter{position:relative}#filter .container{position:relative}#filter.filter_in_catalog:not(.visible){display:none}#filter.filter_in_catalog .container{padding-top:0;padding-bottom:0;margin-bottom:40px}@media all and (max-width:1420px){#filter.filter_in_catalog .container{margin-left:0;margin-right:0;width:100%}#filter.filter_in_catalog .container .filter_header .button{bottom:10px}}@media all and (max-width:767px){#filter.filter_in_catalog .container{bottom:0px}}@media all and (max-width:1279px){#filter.filter_in_catalog .filter_body .filter_column:last-child{margin-bottom:40px}}@media all and (max-width:767px){#filter.filter_in_catalog .filter_body .filter_column:last-child{margin-bottom:15px}}#filter.filter_in_catalog .button_group{display:flex;align-items:center;gap:0 15px}@media all and (max-width:767px){#filter.filter_in_catalog .button_group{flex-wrap:wrap;gap:0;width:100%}#filter.filter_in_catalog .button_group .button{width:100% !important}#filter.filter_in_catalog .button_group a{order:1}#filter.filter_in_catalog .button_group button{order:2}}#filter.filter_in_catalog .button_group .button{position:relative;bottom:0 !important;width:auto}#filter .filter_header{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}#filter .filter_header .button{z-index:10}@media all and (max-width:1279px){#filter .filter_header .button{width:calc(50% - 15px);position:absolute;right:0;bottom:90px}}@media all and (max-width:1280px){#filter .filter_header .button{bottom:80px}}@media all and (max-width:960px){#filter .filter_header .button{bottom:50px}}@media all and (max-width:767px){#filter .filter_header .button{width:100%;bottom:60px}}#filter .filter_body{display:flex;flex-wrap:wrap;justify-content:space-between;position:relative}#filter .filter_body .filter_column{width:calc(33.333% - 21px)}@media all and (max-width:1279px){#filter .filter_body .filter_column{width:calc(100%);display:flex;justify-content:space-between}}@media all and (max-width:1279px){#filter .filter_body .filter_column:last-child{margin-bottom:70px}#filter .filter_body .filter_column .fieldgroup.no_space .form_field{width:50%}#filter .filter_body .filter_column .fieldgroup.no_space .form_field:first-child select{border-right:0}#filter .filter_body .filter_column .fieldgroup.no_space .form_field:last-child select{border-left:0}}@media all and (max-width:767px){#filter .filter_body .filter_column{width:100%;margin-bottom:0;display:block;height:100px}}@media all and (max-width:767px){#filter .filter_body:not(.static) .filter_column:nth-child(1) .fieldgroup:nth-child(2){position:absolute;top:150px;left:0;right:0}#filter .filter_body:not(.static) .filter_column:nth-child(2)>.form_field:nth-child(1){position:absolute;top:50px;left:0;right:0}#filter .filter_body:not(.static) .filter_column:nth-child(2) .fieldgroup:nth-child(2){position:absolute;top:200px;left:0;right:0}#filter .filter_body:not(.static) .filter_column:nth-child(3)>.form_field:nth-child(1){position:absolute;top:100px;left:0;right:0}#filter .filter_body:not(.static) .filter_column:nth-child(3) .fieldgroup:nth-child(2){position:absolute;top:250px;left:0;right:0}}#filter .filter_body .form_field{width:100%;margin-bottom:10px}@media all and (max-width:1279px){#filter .filter_body .form_field{width:calc(50% - 15px)}}@media all and (max-width:767px){#filter .filter_body .form_field{width:100%}}#filter .filter_body .fieldgroup{width:100%}@media all and (max-width:1279px){#filter .filter_body .fieldgroup{width:calc(50% - 15px)}}@media all and (max-width:767px){#filter .filter_body .fieldgroup{width:100%}}#filter .filter_body .fieldgroup .form_field{width:calc(50% - 5px)}@media all and (max-width:1279px){#filter .filter_body .fieldgroup .form_field{width:calc(50% - 5px)}}#catalog_small_filter{margin-bottom:70px}#catalog_small_filter.hidden{display:none}#catalog_small_filter .filter_body{display:flex;justify-content:flex-start;gap:0 16px}#catalog_small_filter .filter_body select,#catalog_small_filter .filter_body .form_field{width:100%}#catalog_small_filter .filter_body button{width:220px;min-width:220px}#catalog_small_filter .filter_body button#rich_filter_toggle{width:130px;min-width:130px}@media all and (max-width:767px){#catalog_small_filter .filter_body button#rich_filter_toggle{width:100%}}#catalog_small_filter .filter_body button#rich_filter_toggle svg{margin-right:12px}@media all and (max-width:1280px){#catalog_small_filter .filter_body{justify-content:space-between}#catalog_small_filter .filter_body .form_field{width:calc(33.333% - 30px)}#catalog_small_filter .filter_body .form_field select{width:100%}#catalog_small_filter .filter_body button{width:33.3333%}}@media all and (max-width:767px){#catalog_small_filter .filter_body{display:block}#catalog_small_filter .filter_body .form_field,#catalog_small_filter .filter_body button{width:100%;margin-bottom:8px}}#news+#order .container{max-width:1340px;padding-left:25px;padding-right:25px}#news+#order .container .order_form{margin:0 -25px}@media all and (max-width:960px){#news+#order .container .order_form{margin-top:-60px}}@media all and (max-width:767px){#news+#order .container .order_form{margin:0}}#order .order_form{position:relative;margin:0}@media all and (max-width:960px){#order .order_form{margin-top:-60px}}@media all and (max-width:767px){#order .order_form{margin:0}}#order .order_form .order_email{display:flex;align-items:center;position:absolute;z-index:1;background:#EDEFF5;height:235px;left:0;right:0;top:0;bottom:0;margin:auto}#order .order_form .order_email p{width:320px;font-size:24px;line-height:45px;padding:0 20px}@media all and (max-width:1600px) and (min-width:1280px){#order .order_form .order_email p{font-size:20px;line-height:32px}}@media all and (max-width:1280px){#order .order_form .order_email p{width:220px;font-size:13px;line-height:20px}}@media all and (max-width:767px){#order .order_form .order_email{position:relative;height:auto;margin-bottom:25px}#order .order_form .order_email p{padding:0}}#order .order_form form{width:750px;background:var(--blue);box-sizing:border-box;padding:55px 90px;margin:auto;margin-left:390px;position:relative;z-index:2}@media all and (max-width:1420px){#order .order_form form{width:550px;margin-left:320px}}@media all and (max-width:960px){#order .order_form form{width:50%;padding:15px 25px;margin-left:auto;margin-right:0}}@media all and (max-width:767px){#order .order_form form{width:auto;margin-left:-16px;margin-right:-16px;padding:25px 16px}}#order .order_form form input{margin-bottom:15px;background:rgba(255,255,255,0.2);color:#fff}#order .order_form form input::placeholder{color:#fff}#order .order_form form input[type="radio"]{display:none;visibility:hidden}#order .order_form form input[type="radio"]+label{display:block;padding-left:28px;cursor:pointer;color:#fff;margin-bottom:5px;position:relative}#order .order_form form input[type="radio"]+label:last-child{margin-bottom:15px}#order .order_form form input[type="radio"]+label:before{content:"";display:block;width:16px;min-width:16px;height:16px;background:#fff;box-sizing:border-box;border-radius:100%;margin-right:12px;position:absolute;left:0;top:0}#order .order_form form input[type="radio"]:checked+label:before{background:var(--blue);border:4px solid #fff}#order .order_form form input[type="radio"]:disabled+label:before{background:var(--gray);cursor:none}#order .order_form form .policy{position:relative;z-index:2;margin:5px 25px 45px 25px}@media all and (max-width:1600px){#order .order_form form .policy{margin-top:-5px;margin-bottom:25px;margin-left:0;margin-right:0}}#order .order_form form .policy label{color:#fff;font-weight:300}#order .order_form form .policy label:before{background:#fff;border-radius:0}#order .order_form form .policy input:checked+label:before{border-color:#fff;background:url("/images/icons/checkbox_blue.svg") no-repeat center #fff}#order .order_form form .button{display:inherit;margin-left:auto}.login{max-width:410px}.login .form_field{margin-bottom:15px}.login input[name="login"]{padding-left:32px;background:url("/images/icons/icon-login.svg") no-repeat 8px 50%}.login input[name="pass"]{padding-left:32px;background:url("/images/icons/icon-pass.svg") no-repeat 8px 50%}.login .button{width:90px;display:block;margin-left:auto}.search_form{margin-bottom:55px;margin-left:20px;margin-right:20px}@media all and (max-width:767px){.search_form{margin-bottom:35px;margin-left:0;margin-right:0}}.search_form form{display:flex;align-items:center;justify-content:space-between}.search_form form .form_field:first-child{width:calc(50% - 15px);min-width:calc(50% - 15px);margin-right:15px}.search_form form .form_field:nth-child(2),.search_form form .form_field:nth-child(3){width:100%;margin-right:15px}.search_form form .form_field.single{width:100%;margin-right:20px}.search_form form .button{width:158px;min-width:158px}@media all and (max-width:767px){.search_form form{display:block}.search_form form .form_field.single{margin-right:0;margin-bottom:10px}.search_form form .button{width:100%}.search_form form .button:disabled{background:var(--inactive)}}.reconciliation_form.small{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:420px}.reconciliation_form.small .form_field{width:calc(50% - 8px)}.reconciliation_form.small button{margin-top:35px;width:calc(45% - 8px)}.reconciliation_form.small button:last-child{width:calc(55% - 8px)}.fade{position:fixed;z-index:999;top:0;left:0;width:100%;height:100%;overflow:auto;background:rgba(0,0,0,0.5);display:block}.fade:not(.opened){display:none}.fade .modal{max-width:640px;width:100%;background:#fff;margin:100px auto;padding:45px 80px}.fade .modal .modal_footer{text-align:right;margin-top:30px}.fade .modal .modal_footer .button{margin-left:auto}#cookie{position:fixed;bottom:20px;left:20px;background:#fff;z-index:999;display:none;padding:25px 15px;max-width:320px;z-index:99;border:1px solid #EDEFF5}@media all and (max-width:768px){#cookie{bottom:0;left:0;margin:auto;max-width:none}}#cookie .close{width:22px;height:22px;border:0;background:url("/images/icons/close-blue.svg") no-repeat center;outline:none;position:absolute;top:10px;right:10px}#cookie p a{color:var(--blue)}.page_search{margin-bottom:25px}.page_search form{display:flex;align-items:center}.page_search form .form_field{width:100%}.page_search form button{min-width:90px}#preaprove_block{position:fixed;z-index:100;left:20px;bottom:25px}@media all and (max-width:1200px){#preaprove_block{display:none}}#preaprove_block.active .block_open{display:none}#preaprove_block.active .block_form{display:block}#preaprove_block .block_toggle{cursor:pointer}#preaprove_block .block_open{display:flex;align-items:center;justify-content:flex-start;gap:0 13px}#preaprove_block .block_open span{display:inline-block;font-size:15px;color:#fff;font-weight:6000;line-height:20px;padding:11px 16px;border-radius:8px;background:var(--blue)}#preaprove_block .block_open i{display:flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:100%;box-shadow:0 4px 32px 0 rgba(0,0,0,0.16);background:var(--blue);position:relative}#preaprove_block .block_open i:before{content:"";display:block;width:24px;height:24px;background:url("/images/icons/Bell.svg") no-repeat center;position:absolute;top:-3px;right:-5px}#preaprove_block .block_form{display:none;width:368px;border-radius:15px;background:var(--white, #FFF);box-shadow:0 4px 32px 0 rgba(0,0,0,0.16);overflow:hidden}#preaprove_block .block_form .block_header{height:126px;background:var(--blue);display:flex;align-items:center;justify-content:center;position:relative;padding:24px}#preaprove_block .block_form .block_header p{text-align:center;margin:40px 0 0 0;font-size:15px;line-height:23px;color:#fff;font-weight:700;max-width:235px}#preaprove_block .block_form .block_header .block_close{width:40px;height:40px;background-image:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 35C28.2843 35 35 28.2843 35 20C35 11.7157 28.2843 5 20 5C11.7157 5 5 11.7157 5 20C5 28.2843 11.7157 35 20 35Z' fill='white'/%3E%3Cpath d='M25.625 18.125L20 24.375L14.375 18.125' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");padding:0;border:0;position:absolute;top:16px;right:24px}#preaprove_block .block_form form{padding:24px}#preaprove_block .block_form form .form_field{margin-bottom:16px}#preaprove_block .block_form form .step{text-align:center}#preaprove_block .block_form form .step:not(.active){display:none}/*# sourceMappingURL=./style.css.map */ \ No newline at end of file +#filter { + position: relative; +} +#filter .container { + position: relative; +} +#filter.filter_in_catalog:not(.visible) { + display: none; +} +#filter.filter_in_catalog .container { + padding-top: 0; + padding-bottom: 0; + margin-bottom: 40px; +} +@media all and (max-width: 1420px) { + #filter.filter_in_catalog .container { + margin-left: 0; + margin-right: 0; + width: 100%; + } + #filter.filter_in_catalog .container .filter_header .button { + bottom: 10px; + } +} +@media all and (max-width: 767px) { + #filter.filter_in_catalog .container { + bottom: 0px; + } +} +@media all and (max-width: 1279px) { + #filter.filter_in_catalog .filter_body .filter_column:last-child { + margin-bottom: 40px; + } +} +@media all and (max-width: 767px) { + #filter.filter_in_catalog .filter_body .filter_column:last-child { + margin-bottom: 15px; + } +} +#filter.filter_in_catalog .button_group { + display: flex; + align-items: center; + gap: 0 15px; +} +@media all and (max-width: 767px) { + #filter.filter_in_catalog .button_group { + flex-wrap: wrap; + gap: 0; + width: 100%; + } + #filter.filter_in_catalog .button_group .button { + width: 100% !important; + } + #filter.filter_in_catalog .button_group a { + order: 1; + } + #filter.filter_in_catalog .button_group button { + order: 2; + } +} +#filter.filter_in_catalog .button_group .button { + position: relative; + bottom: 0 !important; + width: auto; +} +#filter .filter_header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 40px; +} +#filter .filter_header .button { + z-index: 10; +} +@media all and (max-width: 1279px) { + #filter .filter_header .button { + width: calc(50% - 15px); + position: absolute; + right: 0; + bottom: 90px; + } +} +@media all and (max-width: 1280px) { + #filter .filter_header .button { + bottom: 80px; + } +} +@media all and (max-width: 960px) { + #filter .filter_header .button { + bottom: 50px; + } +} +@media all and (max-width: 767px) { + #filter .filter_header .button { + width: 100%; + bottom: 60px; + } +} +#filter .filter_body { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + position: relative; +} +#filter .filter_body .filter_column { + width: calc(33.333% - 21px); +} +@media all and (max-width: 1279px) { + #filter .filter_body .filter_column { + width: calc(100%); + display: flex; + justify-content: space-between; + } +} +@media all and (max-width: 1279px) { + #filter .filter_body .filter_column:last-child { + margin-bottom: 70px; + } + #filter .filter_body .filter_column .fieldgroup.no_space .form_field { + width: 50%; + } + #filter .filter_body .filter_column .fieldgroup.no_space .form_field:first-child select { + border-right: 0; + } + #filter .filter_body .filter_column .fieldgroup.no_space .form_field:last-child select { + border-left: 0; + } +} +@media all and (max-width: 767px) { + #filter .filter_body .filter_column { + width: 100%; + margin-bottom: 0; + display: block; + height: 100px; + } +} +@media all and (max-width: 767px) { + #filter .filter_body:not(.static) .filter_column:nth-child(1) .fieldgroup:nth-child(2) { + position: absolute; + top: 150px; + left: 0; + right: 0; + } + #filter .filter_body:not(.static) .filter_column:nth-child(2) > .form_field:nth-child(1) { + position: absolute; + top: 50px; + left: 0; + right: 0; + } + #filter .filter_body:not(.static) .filter_column:nth-child(2) .fieldgroup:nth-child(2) { + position: absolute; + top: 200px; + left: 0; + right: 0; + } + #filter .filter_body:not(.static) .filter_column:nth-child(3) > .form_field:nth-child(1) { + position: absolute; + top: 100px; + left: 0; + right: 0; + } + #filter .filter_body:not(.static) .filter_column:nth-child(3) .fieldgroup:nth-child(2) { + position: absolute; + top: 250px; + left: 0; + right: 0; + } +} +#filter .filter_body .form_field { + width: 100%; + margin-bottom: 10px; +} +@media all and (max-width: 1279px) { + #filter .filter_body .form_field { + width: calc(50% - 15px); + } +} +@media all and (max-width: 767px) { + #filter .filter_body .form_field { + width: 100%; + } +} +#filter .filter_body .fieldgroup { + width: 100%; +} +@media all and (max-width: 1279px) { + #filter .filter_body .fieldgroup { + width: calc(50% - 15px); + } +} +@media all and (max-width: 767px) { + #filter .filter_body .fieldgroup { + width: 100%; + } +} +#filter .filter_body .fieldgroup .form_field { + width: calc(50% - 5px); +} +@media all and (max-width: 1279px) { + #filter .filter_body .fieldgroup .form_field { + width: calc(50% - 5px); + } +} +#catalog_small_filter { + margin-bottom: 70px; +} +#catalog_small_filter.hidden { + display: none; +} +#catalog_small_filter .filter_body { + display: flex; + justify-content: flex-start; + gap: 0 16px; +} +#catalog_small_filter .filter_body select, +#catalog_small_filter .filter_body .form_field { + width: 100%; +} +#catalog_small_filter .filter_body button { + width: 220px; + min-width: 220px; +} +#catalog_small_filter .filter_body button#rich_filter_toggle { + width: 130px; + min-width: 130px; +} +@media all and (max-width: 767px) { + #catalog_small_filter .filter_body button#rich_filter_toggle { + width: 100%; + } +} +#catalog_small_filter .filter_body button#rich_filter_toggle svg { + margin-right: 12px; +} +@media all and (max-width: 1280px) { + #catalog_small_filter .filter_body { + justify-content: space-between; + } + #catalog_small_filter .filter_body .form_field { + width: calc(33.333% - 30px); + } + #catalog_small_filter .filter_body .form_field select { + width: 100%; + } + #catalog_small_filter .filter_body button { + width: 33.3333%; + } +} +@media all and (max-width: 767px) { + #catalog_small_filter .filter_body { + display: block; + } + #catalog_small_filter .filter_body .form_field, + #catalog_small_filter .filter_body button { + width: 100%; + margin-bottom: 8px; + } +} +#news + #order .container { + max-width: 1340px; + padding-left: 25px; + padding-right: 25px; +} +#news + #order .container .order_form { + margin: 0 -25px; +} +@media all and (max-width: 960px) { + #news + #order .container .order_form { + margin-top: -60px; + } +} +@media all and (max-width: 767px) { + #news + #order .container .order_form { + margin: 0; + } +} +#order .order_form { + position: relative; + margin: 0; +} +@media all and (max-width: 960px) { + #order .order_form { + margin-top: -60px; + } +} +@media all and (max-width: 767px) { + #order .order_form { + margin: 0; + } +} +#order .order_form .order_email { + display: flex; + align-items: center; + position: absolute; + z-index: 1; + background: #EDEFF5; + height: 235px; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; +} +#order .order_form .order_email p { + width: 320px; + font-size: 24px; + line-height: 45px; + padding: 0 20px; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + #order .order_form .order_email p { + font-size: 20px; + line-height: 32px; + } +} +@media all and (max-width: 1280px) { + #order .order_form .order_email p { + width: 220px; + font-size: 13px; + line-height: 20px; + } +} +@media all and (max-width: 767px) { + #order .order_form .order_email { + position: relative; + height: auto; + margin-bottom: 25px; + } + #order .order_form .order_email p { + padding: 0; + } +} +#order .order_form form { + width: 750px; + background: var(--blue); + box-sizing: border-box; + padding: 55px 90px; + margin: auto; + margin-left: 390px; + position: relative; + z-index: 2; +} +@media all and (max-width: 1420px) { + #order .order_form form { + width: 550px; + margin-left: 320px; + } +} +@media all and (max-width: 960px) { + #order .order_form form { + width: 50%; + padding: 15px 25px; + margin-left: auto; + margin-right: 0; + } +} +@media all and (max-width: 767px) { + #order .order_form form { + width: auto; + margin-left: -16px; + margin-right: -16px; + padding: 25px 16px; + } +} +#order .order_form form input { + margin-bottom: 15px; + background: rgba(255, 255, 255, 0.2); + color: #fff; +} +#order .order_form form input::placeholder { + color: #fff; +} +#order .order_form form input[type="radio"] { + display: none; + visibility: hidden; +} +#order .order_form form input[type="radio"] + label { + display: block; + padding-left: 28px; + cursor: pointer; + color: #fff; + margin-bottom: 5px; + position: relative; +} +#order .order_form form input[type="radio"] + label:last-child { + margin-bottom: 15px; +} +#order .order_form form input[type="radio"] + label:before { + content: ""; + display: block; + width: 16px; + min-width: 16px; + height: 16px; + background: #fff; + box-sizing: border-box; + border-radius: 100%; + margin-right: 12px; + position: absolute; + left: 0; + top: 0; +} +#order .order_form form input[type="radio"]:checked + label:before { + background: var(--blue); + border: 4px solid #fff; +} +#order .order_form form input[type="radio"]:disabled + label:before { + background: var(--gray); + cursor: none; +} +#order .order_form form .policy { + position: relative; + z-index: 2; + margin: 5px 25px 45px 25px; +} +@media all and (max-width: 1600px) { + #order .order_form form .policy { + margin-top: -5px; + margin-bottom: 25px; + margin-left: 0; + margin-right: 0; + } +} +#order .order_form form .policy label { + color: #fff; + font-weight: 300; +} +#order .order_form form .policy label:before { + background: #fff; + border-radius: 0; +} +#order .order_form form .policy input:checked + label:before { + border-color: #fff; + background: url("/images/icons/checkbox_blue.svg") no-repeat center #fff; +} +#order .order_form form .button { + display: inherit; + margin-left: auto; +} +.login { + max-width: 410px; +} +.login .form_field { + margin-bottom: 15px; +} +.login input[name="login"] { + padding-left: 32px; + background: url("/images/icons/icon-login.svg") no-repeat 8px 50%; +} +.login input[name="pass"] { + padding-left: 32px; + background: url("/images/icons/icon-pass.svg") no-repeat 8px 50%; +} +.login .button { + width: 90px; + display: block; + margin-left: auto; +} +.search_form { + margin-bottom: 55px; + margin-left: 20px; + margin-right: 20px; +} +@media all and (max-width: 767px) { + .search_form { + margin-bottom: 35px; + margin-left: 0; + margin-right: 0; + } +} +.search_form form { + display: flex; + align-items: center; + justify-content: space-between; +} +.search_form form .form_field:first-child { + width: calc(50% - 15px); + min-width: calc(50% - 15px); + margin-right: 15px; +} +.search_form form .form_field:nth-child(2), +.search_form form .form_field:nth-child(3) { + width: 100%; + margin-right: 15px; +} +.search_form form .form_field.single { + width: 100%; + margin-right: 20px; +} +.search_form form .button { + width: 158px; + min-width: 158px; +} +@media all and (max-width: 767px) { + .search_form form { + display: block; + } + .search_form form .form_field.single { + margin-right: 0; + margin-bottom: 10px; + } + .search_form form .button { + width: 100%; + } + .search_form form .button:disabled { + background: var(--inactive); + } +} +.reconciliation_form.small { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + max-width: 420px; +} +.reconciliation_form.small .form_field { + width: calc(50% - 8px); +} +.reconciliation_form.small button { + margin-top: 35px; + width: calc(45% - 8px); +} +.reconciliation_form.small button:last-child { + width: calc(55% - 8px); +} +.fade { + position: fixed; + z-index: 999; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: auto; + background: rgba(0, 0, 0, 0.5); + display: block; +} +.fade:not(.opened) { + display: none; +} +.fade .modal { + max-width: 640px; + width: 100%; + background: #fff; + margin: 100px auto; + padding: 45px 80px; +} +.fade .modal .modal_footer { + text-align: right; + margin-top: 30px; +} +.fade .modal .modal_footer .button { + margin-left: auto; +} +#cookie { + position: fixed; + bottom: 20px; + left: 50%; + transform: translate(-50%, 0); + background: #fff; + z-index: 999; + display: none; + padding: 25px 15px; + z-index: 99; + border: 1px solid #EDEFF5; +} +@media all and (max-width: 1280px) { + #cookie { + bottom: 95px; + } +} +@media all and (max-width: 768px) { + #cookie { + bottom: 165px; + width: calc(100% - 32px); + } + #cookie p { + white-space: pre-wrap !important; + } +} +#cookie .close { + width: 22px; + height: 22px; + border: 0; + background: url("/images/icons/close-blue.svg") no-repeat center; + outline: none; + position: absolute; + top: 4px; + right: 4px; +} +#cookie p { + white-space: nowrap; +} +#cookie p a { + color: var(--blue); +} +@media all and (max-width: 768px) { + .cookie_spacer { + padding-bottom: 155px !important; + } +} +.page_search { + margin-bottom: 25px; +} +.page_search form { + display: flex; + align-items: center; +} +.page_search form .form_field { + width: 100%; +} +.page_search form button { + min-width: 90px; +} +#preapproval_block { + position: fixed; + z-index: 1000; + left: 20px; + bottom: 25px; +} +#preapproval_block #preapproval_block_span_wrapper { + overflow: hidden; + margin-left: -20px; + padding-left: 20px; +} +#preapproval_block .span_hidden { + z-index: 1; + transform: translate(-500px, 0px); +} +#preapproval_block .span_animate_out { + z-index: 1; + transform: translate(0px, 0px); + animation: preapproval_span_hide 1s normal forwards ease-in-out 1s; +} +#preapproval_block .span_animate_hide { + z-index: 1; + transform: translate(0px, 0px); + animation: preapproval_span_hide 1s normal forwards ease-in-out; +} +#preapproval_block .span_animate_show { + z-index: 1; + transform: translate(-500px, 0px); + animation: preapproval_span_show 1s normal forwards ease-in-out; +} +#preapproval_block i { + z-index: 2; +} +@keyframes preapproval_span_hide { + from { + transform: translate(0px, 0px); + } + to { + transform: translate(-500px, 0px); + } +} +@keyframes preapproval_span_show { + from { + transform: translate(-500px, 0px); + } + to { + transform: translate(0px, 0px); + } +} +#preapproval_block .preapproval_form_policy label { + font-size: 12px; + text-align: left; + line-height: 14px; + color: #0c0c0c; + font-weight: 300; + padding-left: 28px; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +#preapproval_block .preapproval_form_policy label:before { + background: #fff; + border-radius: 0; +} +#preapproval_block .preapproval_form_policy input:checked + label:before { + background: url("/images/icons/checkbox_white.svg") no-repeat center #1c01a9; +} +@media all and (max-width: 1280px) { + #preapproval_block { + bottom: 95px; + } +} +#preapproval_block.active .block_open { + display: none; +} +#preapproval_block.active .block_form { + display: block; +} +#preapproval_block .block_toggle { + cursor: pointer; +} +#preapproval_block .block_open { + display: flex; + align-items: center; + justify-content: flex-start; + gap: 0 13px; +} +#preapproval_block .block_open span { + display: inline-block; + font-size: 15px; + color: #fff; + font-weight: 6000; + line-height: 20px; + padding: 11px 16px; + border-radius: 8px; + background: var(--blue); +} +#preapproval_block .block_open i { + display: flex; + align-items: center; + justify-content: center; + width: 60px; + height: 60px; + border-radius: 100%; + box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.16); + background: var(--blue); + position: relative; +} +#preapproval_block .block_open i:before { + content: ""; + display: block; + width: 24px; + height: 24px; + background: url("/images/icons/Bell.svg") no-repeat center; + position: absolute; + top: -3px; + right: -5px; +} +#preapproval_block .block_form { + display: none; + width: 368px; + border-radius: 15px; + background: var(--white, #FFF); + box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.16); + overflow: hidden; +} +#preapproval_block .block_form .block_header { + height: 126px; + background: var(--blue); + display: flex; + align-items: center; + justify-content: center; + position: relative; + padding: 24px; +} +#preapproval_block .block_form .block_header p { + text-align: center; + margin: 40px 0 0 0; + font-size: 15px; + line-height: 23px; + color: #fff; + font-weight: 700; + max-width: 235px; +} +#preapproval_block .block_form .block_header .block_close { + width: 40px; + height: 40px; + background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 35C28.2843 35 35 28.2843 35 20C35 11.7157 28.2843 5 20 5C11.7157 5 5 11.7157 5 20C5 28.2843 11.7157 35 20 35Z' fill='white'/%3E%3Cpath d='M25.625 18.125L20 24.375L14.375 18.125' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A"); + padding: 0; + border: 0; + position: absolute; + top: 16px; + right: 24px; +} +#preapproval_block .block_form form { + padding: 24px; +} +#preapproval_block .block_form form .form_field { + margin-bottom: 16px; +} +#preapproval_block .block_form form .step { + text-align: center; +} +#preapproval_block .block_form form .step p { + padding: 0px 20px 20px 20px; +} +#preapproval_block .block_form form .step:not(.active) { + display: none; +} +#preapproval_block .block_form form .step .error input { + border-color: #A8026B; +} +#preapproval_block .block_form form .step .error:after { + color: #A8026B; +} diff --git a/local/templates/evolution/css/forms/style.less b/local/templates/evolution/css/forms/style.less index 049e74d..e8e8123 100644 --- a/local/templates/evolution/css/forms/style.less +++ b/local/templates/evolution/css/forms/style.less @@ -659,21 +659,28 @@ #cookie { position: fixed; bottom: 20px; - left: 20px; + left: 50%; + transform: translate(-50%, 0); background: #fff; z-index: 999; display: none; padding: 25px 15px; - max-width: 320px; z-index: 99; border: 1px solid #EDEFF5; + @media all and (max-width: 1280px) { + bottom: 95px; + } + @media all and (max-width: 768px) { - bottom: 0; - left: 0; - left: 0; - margin: auto; - max-width: none; + bottom: 165px; + width: ~"calc(100% - 32px)"; + p { white-space: pre-wrap !important; } + // bottom: 0; + // left: 0; + // left: 0; + // margin: auto; + // max-width: none; } .close { @@ -683,17 +690,24 @@ background: url("/images/icons/close-blue.svg") no-repeat center; outline: none; position: absolute; - top: 10px; - right: 10px; + top: 4px; + right: 4px; } p { + white-space: nowrap; a { color: var(--blue); } } } +.cookie_spacer { + @media all and (max-width: 768px) { + padding-bottom: 155px !important; + } +} + .page_search { margin-bottom: 25px; @@ -712,14 +726,93 @@ } // Предварительное одобрение -#preaprove_block { +#preapproval_block { position: fixed; - z-index: 100; + z-index: 1000; left: 20px; bottom: 25px; - @media all and (max-width: 1200px) { - display: none; + #preapproval_block_span_wrapper { + overflow: hidden; + margin-left: -20px; + padding-left: 20px; + } + + .span_hidden { + z-index: 1; + transform: translate(-500px, 0px); + } + + .span_animate_out { + z-index: 1; + transform: translate(0px, 0px); + animation: preapproval_span_hide 1s normal forwards ease-in-out 1s; + } + + .span_animate_hide { + z-index: 1; + transform: translate(0px, 0px); + animation: preapproval_span_hide 1s normal forwards ease-in-out; + } + + .span_animate_show { + z-index: 1; + transform: translate(-500px, 0px); + animation: preapproval_span_show 1s normal forwards ease-in-out; + } + + i { + z-index: 2; + } + + @keyframes preapproval_span_hide { + from { + transform: translate(0px, 0px); + } + + to { + transform: translate(-500px, 0px); + } + } + + @keyframes preapproval_span_show { + from { + transform: translate(-500px, 0px); + } + + to { + transform: translate(0px, 0px); + } + } + + .preapproval_form_policy { + label { + font-size: 12px; + text-align: left; + line-height: 14px; + color: rgb(12, 12, 12); + font-weight: 300; + padding-left: 28px; + + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + + &:before { + background: #fff; + border-radius: 0; + } + } + + input:checked+label:before { + background: url("/images/icons/checkbox_white.svg") no-repeat center #1c01a9; + } + } + + @media all and (max-width: 1280px) { +// display: none; + bottom: 95px; } &.active { @@ -826,9 +919,25 @@ .step { text-align: center; - &:not(.active) { + p { + padding: 0px 20px 20px 20px; + } + + &:not(.active) { display: none; } + + .error { + input { + border-color: #A8026B; + + } + + &:after { + color: #A8026B; + } + } + } } } diff --git a/local/templates/evolution/css/var.css b/local/templates/evolution/css/var.css index d4e4c29..65dfdd3 100644 --- a/local/templates/evolution/css/var.css +++ b/local/templates/evolution/css/var.css @@ -1 +1,1311 @@ -:root{--blue:#1C01A9;--blue-secondary:#85B2FC;--gray:#2C2D2E;--gray-light:rgba(0,16,61,0.06);--primary:#005FF9;--primary-light:rgba(0,95,249,0.1);--red:#ED0A34;--inactive:#EDEFF5;--green:#04A8A4;--text_not_active:#8E94A7}@font-face{font-family:'PF Din Display Pro Bold';src:url('../fonts/PFDinDisplayPro-Bold.woff') format('woff');font-weight:normal;font-style:normal}@media all and (min-width:1280px) and (max-width:1420px){.zoom-90{zoom:.9 }.zoom-80{zoom:.8 }.zoom-70{zoom:.7 }.zoom-60{zoom:.6 }.zoom-50{zoom:.5 }.zoom-40{zoom:.4 }.zoom-30{zoom:.3 }.zoom-20{zoom:.2 }.zoom-10{zoom:.1 }}@media all and (min-width:768px) and (max-width:1279px){.tb-zoom-90{zoom:.9 }.tb-zoom-80{zoom:.8 }.tb-zoom-70{zoom:.7 }.tb-zoom-60{zoom:.6 }.tb-zoom-50{zoom:.5 }.tb-zoom-40{zoom:.4 }.tb-zoom-30{zoom:.3 }.tb-zoom-20{zoom:.2 }.tb-zoom-10{zoom:.1 }}@media all and (max-width:768px){.sm-zoom-90{zoom:.9 }.sm-zoom-80{zoom:.8 }.sm-zoom-70{zoom:.7 }.sm-zoom-60{zoom:.6 }.sm-zoom-50{zoom:.5 }.sm-zoom-40{zoom:.4 }.sm-zoom-30{zoom:.3 }.sm-zoom-20{zoom:.2 }.sm-zoom-10{zoom:.1 }}html,body{scroll-behavior:smooth;cursor:default}body{font-size:15px;line-height:20px;color:#0C0C0C;font-family:'Montserrat',sans-serif;font-weight:400}@media all and (max-width:1600px) and (min-width:1280px){body{font-size:13px;line-height:20px}}@media all and (max-width:960px){body{font-size:13px;line-height:20px}}.container{padding-top:80px;padding-bottom:80px;width:100%;max-width:1310px;margin:auto;position:relative}@media all and (max-width:1600px) and (min-width:1280px){.container{padding-top:45px;padding-bottom:45px}}@media all and (max-width:960px){.container{padding-top:40px;padding-bottom:40px}}.container.wide{max-width:1340px;padding-left:25px;padding-right:25px}@media all and (max-width:767px){.container.wide{padding-left:0;padding-right:0}}@media all and (max-width:1420px){.container{width:calc(100% - 160px);margin:0 auto}}@media all and (max-width:767px){.container{margin:0 16px;width:calc(100% - 32px)}}.aside_container{display:flex;justify-content:space-between}.aside_container aside{width:415px}@media all and (max-width:960px){.aside_container aside{width:100%}}.aside_container article{width:calc(100% - 550px)}.aside_container article:only-child{width:100%}.aside_container article .info_column{padding:20px 40px;display:flex;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid #EDEFF5}.aside_container article .info_column div{width:calc(50% - 55px)}@media all and (max-width:960px){.aside_container article .info_column{padding:0}.aside_container article .info_column div{width:100%}}@media all and (max-width:960px){.aside_container article{width:100%}.aside_container article .info_column{padding:25px 0}}.aside_container.about aside{width:305px}@media all and (max-width:1600px) and (min-width:1280px){.aside_container.about aside{width:265px}}.aside_container.about article{width:calc(100% - 335px)}@media all and (max-width:1600px) and (min-width:1280px){.aside_container.about article{width:calc(100% - 295px)}}@media all and (max-width:1279px){.aside_container.about{display:block}.aside_container.about aside,.aside_container.about article{width:100%}}.section_title{font-size:50px;line-height:60px;font-weight:700;color:#0C0C0C;margin-bottom:35px;position:relative}.section_title.no-margin{margin-bottom:0}@media all and (max-width:1600px) and (min-width:1280px){.section_title{font-size:36px;line-height:48px}}@media all and (max-width:1279px){.section_title{font-size:32px;line-height:44px}}@media all and (max-width:960px){.section_title{font-size:22px;line-height:33px}}@media all and (max-width:767px){.section_title{margin-bottom:25px}}.section_title.wp{padding-right:210px}@media all and (max-width:1279px){.section_title.wp{padding-right:0}}.section_title_with_em{font-size:26px;line-height:35px;color:var(--text_not_active) !important;margin-top:0;margin-bottom:35px}@media all and (max-width:767px){.section_title_with_em{font-size:19px;line-height:26px}}.section_title_with_em em{font-size:50px;line-height:60px;font-weight:700;color:#0C0C0C;position:relative;font-style:normal}.section_title_with_em em.no-margin{margin-bottom:0}@media all and (max-width:1600px) and (min-width:1280px){.section_title_with_em em{font-size:36px;line-height:48px}}@media all and (max-width:1279px){.section_title_with_em em{font-size:32px;line-height:44px}}@media all and (max-width:960px){.section_title_with_em em{font-size:22px;line-height:33px}}@media all and (max-width:767px){.section_title_with_em em{margin-bottom:25px}}.section_title_with_em em.wp{padding-right:210px}@media all and (max-width:1279px){.section_title_with_em em.wp{padding-right:0}}.order_title{font-size:36px !important;line-height:0px !important;margin-top:28px !important;font-weight:700;color:#0C0C0C;position:relative}.order_title.no-margin{margin-bottom:0}@media all and (max-width:1600px) and (min-width:1280px){.order_title{font-size:36px !important}}@media all and (max-width:1279px){.order_title{font-size:32px !important}}@media all and (max-width:960px){.order_title{font-size:22px !important;line-height:0px !important}}@media all and (max-width:767px){.order_title{font-size:22px !important;line-height:23px !important;margin:0px !important;margin-bottom:15px !important}}.order_title.wp{padding-right:210px !important}@media all and (max-width:1279px){.order_title.wp{padding-right:0 !important}}.order_title_sub{font-size:24px !important;line-height:10px !important;font-weight:normal !important;margin-bottom:50px;color:#0C0C0C;position:relative}.order_title_sub.no-margin{margin-bottom:0}@media all and (max-width:1279px){.order_title_sub{font-size:22px !important}}@media all and (max-width:960px){.order_title_sub{font-size:20px !important;line-height:10px !important;margin-bottom:90px !important}}@media all and (max-width:767px){.order_title_sub{line-height:20px !important;font-size:18px !important;margin:0px !important;margin-bottom:30px !important}}.order_title_sub.wp{padding-right:210px}@media all and (max-width:1279px){.order_title_sub.wp{padding-right:0}}.car_position_title{font-size:26px;line-height:35px;color:var(--text_not_active) !important;margin-top:0;margin-bottom:0}@media all and (max-width:767px){.car_position_title{font-size:19px;line-height:26px}}.car_position_title em{font-size:50px;line-height:60px;font-weight:700;color:#0C0C0C;margin-bottom:35px;position:relative;font-style:normal}.car_position_title em.no-margin{margin-bottom:0}@media all and (max-width:1600px) and (min-width:1280px){.car_position_title em{font-size:36px;line-height:48px}}@media all and (max-width:1279px){.car_position_title em{font-size:32px;line-height:44px}}@media all and (max-width:960px){.car_position_title em{font-size:22px;line-height:33px}}@media all and (max-width:767px){.car_position_title em{margin-bottom:25px}}.car_position_title em.wp{padding-right:210px}@media all and (max-width:1279px){.car_position_title em.wp{padding-right:0}}h1{font-size:32px;line-height:40px}h2{font-size:24px;line-height:28px;margin-top:1.5em;margin-bottom:10px}@media all and (max-width:1600px) and (min-width:1280px){h2{font-size:22px;line-height:26px}}h2.model{font-size:26px;line-height:35px;color:var(--text_not_active);margin-top:0;margin-bottom:0}@media all and (max-width:767px){h2.model{font-size:19px;line-height:26px}}h2:first-child{margin-top:0}h3{font-size:17px;line-height:24px;margin-top:1.5em;margin-bottom:10px}h3:first-child{margin-top:0}h4{font-size:15px;line-height:20px;margin-top:1.5em;margin-bottom:10px}h4:first-child{margin-top:0}.secondary{font-size:13px;line-height:20px}.secondary.not_active{color:#8E94A7}@media all and (max-width:960px){.secondary{font-size:10px;line-height:15px}}b,strong{font-weight:700}p.primary{color:var(--blue)}a{text-decoration:none;color:var(--blue)}div{box-sizing:border-box}.clear{display:block;clear:both}@media all and (max-width:1279px){h2{font-size:20px;line-height:24px}}@media all and (max-width:736px){h1{font-size:24px;line-height:32px}h2{font-size:20px;line-height:24px}}.i-phone{padding-left:28px;background:url("/images/icons/icon-phone-hot.svg") no-repeat 0 2px}.i-phone-secondary{padding-left:28px;background:url("/images/icons/icon-phone-secondary.svg") no-repeat 0 2px}.i-address{padding-left:28px;background:url("/images/icons/icon-address.svg") no-repeat 0 2px}.i-worktime{padding-left:28px;background:url("/images/icons/icon-worktime.svg") no-repeat 0 2px}.i-pdf{padding-left:80px;background:url("/images/icons/icon-pdf.svg") no-repeat left center}.i-pdf[data-format]{background:url("/images/icons/icon-file.svg") no-repeat left center}@media all and (max-width:1600px) and (min-width:1280px){.i-pdf{padding-left:56px;background-size:42px}}@media all and (max-width:960px){.i-pdf{padding-left:55px;background-size:32px;background-position:0 5px}}.success{color:var(--green)}.danger{color:var(--red)}@media all and (max-width:767px){::-webkit-scrollbar{display:none}}.line_style{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){.line_style{display:none}}section[data-page] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page] .container:before{display:none}}section[data-page]+#order .container{border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page]+#order .container{border:0}}section[data-page][data-page="programs"] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page][data-page="programs"] .container:before{display:none}}section[data-page][data-page="programs"] .container .programs_list{position:relative}section[data-page][data-page="programs"] .container .programs_list:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:calc(25% + 7px);right:calc(25% - 23px);top:40px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="programs"] .container .programs_list:before{display:none}}section[data-page][data-page="programs"] .container .programs_list:after{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;top:40px;bottom:-80px;border-right:0;left:calc(50% + 13px)}@media all and (max-width:1279px){section[data-page][data-page="programs"] .container .programs_list:after{display:none}}section[data-page][data-page="programs"]+#order .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:calc(25% + 7px);right:calc(25% - 23px);top:0px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="programs"]+#order .container:before{display:none}}section[data-page][data-page="programs"]+#order .container:after{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;top:0px;bottom:-80px;border-right:0;left:calc(50% + 13px)}@media all and (max-width:1279px){section[data-page][data-page="programs"]+#order .container:after{display:none}}@media all and (max-width:1279px){section[data-page][data-page="programs"]+#order .container{border-right:0;border-left:0}section[data-page][data-page="programs"]+#order .container:before,section[data-page][data-page="programs"]+#order .container:after{display:none}}section[data-page][data-page="services"] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page][data-page="services"] .container:before{display:none}}section[data-page][data-page="services"] .container .services_list{position:relative}section[data-page][data-page="services"] .container .services_list:before{content:"";display:block;position:absolute;top:50px;left:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:30px;right:0;margin:auto;width:calc(33.333% + 13px);top:40px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="services"] .container .services_list:before{display:none}}section[data-page][data-page="services"]+#order .container:before{content:"";display:block;position:absolute;top:50px;left:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:30px;right:0;margin:auto;width:calc(33.333% + 13px);top:0px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="services"]+#order .container:before{display:none}}@media all and (max-width:1279px){section[data-page][data-page="services"]+#order .container{border-right:0;border-left:0}section[data-page][data-page="services"]+#order .container:before,section[data-page][data-page="services"]+#order .container:after{display:none}}section[data-page][data-page="catalog"] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page][data-page="catalog"] .container:before{display:none}}section[data-page][data-page="catalog"] .container .catalog_list{position:relative}section[data-page][data-page="catalog"] .container .catalog_list:before{content:"";display:block;position:absolute;top:50px;left:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:30px;right:0;margin:auto;width:calc(33.333% + 13px);top:40px;bottom:-200px}@media all and (max-width:1279px){section[data-page][data-page="catalog"] .container .catalog_list:before{display:none}}section[data-page][data-page="catalog"]+#order .container:before{content:"";display:block;position:absolute;top:50px;left:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:30px;right:0;margin:auto;width:calc(33.333% + 13px);top:0px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="catalog"]+#order .container:before{display:none}}@media all and (max-width:1279px){section[data-page][data-page="catalog"]+#order .container{border-right:0;border-left:0}section[data-page][data-page="catalog"]+#order .container:before,section[data-page][data-page="catalog"]+#order .container:after{display:none}}section[data-page][data-page="special"] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){section[data-page][data-page="special"] .container:before{display:none}}section[data-page][data-page="special"] .container .special_list{position:relative}section[data-page][data-page="special"] .container .special_list:after{content:"";display:block;position:absolute;top:50px;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;border-right:0;left:0;right:0;margin:auto;top:0;width:1px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="special"] .container .special_list:after{display:none}}section[data-page][data-page="special"]+#order .container:after{content:"";display:block;position:absolute;top:50px;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;border-right:0;left:0;right:0;margin:auto;top:0;width:1px;bottom:-80px}@media all and (max-width:1279px){section[data-page][data-page="special"]+#order .container:after{display:none}}[data-page="position"] .container:before{border-right:0 !important}[data-page="position"] .model_container{border-right:1px solid #EDEFF5}@media all and (max-width:1279px){[data-page="position"] .model_container{border-right:0}}[data-page="leasing_special"] .container:before{border-right:0 !important}[data-page="leasing_special"] .special_item:not(:last-child):before{content:"";display:block;width:1px;height:auto;background:#EDEFF5;position:absolute;top:30px;right:-15px;bottom:-150px}[data-page="news_main"] .news_item:not(:first-child){border-left:1px solid #fff}@media all and (max-width:767px){[data-page="news_main"] .news_item:not(:first-child){border-left:0}}[data-page="news_main"] .container:before{top:0 !important;width:391px;right:auto;bottom:-80px}[data-page="news_main"] .container:after{content:"";display:block !important;position:absolute;top:0;left:755px;z-index:-1;width:365px;bottom:-80px;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}[data-page="news_main"]+#order .container{border-right:0 !important}[data-page="news_main"]+#order .container:before{content:"";display:block !important;position:absolute;border-right:1px solid #EDEFF5;top:0 !important;left:0;width:389px;right:auto;bottom:-80px}[data-page="news_main"]+#order .container:after{content:"";display:block !important;position:absolute;top:0;left:754px;z-index:-1;width:365px;bottom:-80px;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}[data-page="about"] .container:before{content:"";display:block;position:absolute;top:50px;left:0;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}@media all and (max-width:1279px){[data-page="about"] .container:before{display:none}}[data-page="about"] .container aside{position:relative}[data-page="about"] .container aside:before{content:"";display:block;position:absolute;top:50px;left:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:auto;right:0;margin:auto;width:1px;border-left:0;top:0px;bottom:-80px}@media all and (max-width:1279px){[data-page="about"] .container aside:before{display:none}}[data-page="about"]+#order .container:before{content:"";display:block;position:absolute;top:50px;right:0;bottom:0;z-index:-1;pointer-events:none;box-sizing:border-box;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;left:0;right:auto;margin:auto;width:304px;top:0px;bottom:-80px;border-left:0}@media all and (max-width:1279px){[data-page="about"]+#order .container:before{display:none}}@media all and (max-width:1279px){[data-page="about"]+#order .container{border-right:0;border-left:0}[data-page="about"]+#order .container:before,[data-page="about"]+#order .container:after{display:none}}#main_slider{position:relative}#main_slider:after{content:"";display:block;height:1px;position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;background:#fff;opacity:.1;pointer-events:none;z-index:1}#main_slider .container{border-left:1px solid rgba(255,255,255,0.1)}@media all and (max-width:1660px){#main_slider .container{border-right:1px solid rgba(255,255,255,0.1)}}@media all and (max-width:767px){#main_slider .container{border-left:0;border-right:0}}#main_slider .container:before,#main_slider .container:after{content:"";display:block;position:absolute;top:0;left:286px;bottom:0;opacity:.1;width:286px;border-left:1px solid #fff;border-right:1px solid #fff}@media all and (max-width:1660px){#main_slider .container:before,#main_slider .container:after{left:20%;width:20%}}@media all and (max-width:767px){#main_slider .container:before,#main_slider .container:after{width:40%;left:0;right:0;margin:auto}}#main_slider .container:after{left:858px}@media all and (max-width:1660px){#main_slider .container:after{left:60%}}@media all and (max-width:767px){#main_slider .container:after{display:none}}#main_slider+#filter .container{border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5}#main_slider+#filter .container:before{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;border-left:1px solid #EDEFF5;border-right:1px solid #EDEFF5;width:calc(33.333% + 10px);pointer-events:none}@media all and (max-width:1279px){#main_slider+#filter .container{border:0}#main_slider+#filter .container:before{display:none}}.container_with_filter_with_margin{margin-bottom:0px !important;padding-bottom:20px !important}[data-custom-scroll]::-webkit-scrollbar{width:4px;height:4px}[data-custom-scroll]::-webkit-scrollbar-track{background:var(--inactive)}[data-custom-scroll]::-webkit-scrollbar-thumb{background:var(--blue);border-radius:0px}/*# sourceMappingURL=./var.css.map */ \ No newline at end of file +:root { + --blue: #1C01A9; + --blue-secondary: #85B2FC; + --gray: #2C2D2E; + --gray-light: rgba(0, 16, 61, 0.06); + --primary: #005FF9; + --primary-light: rgba(0, 95, 249, 0.1); + --red: #ED0A34; + --inactive: #EDEFF5; + --green: #04A8A4; + --text_not_active: #8E94A7; +} +@font-face { + font-family: 'PF Din Display Pro Bold'; + src: url('../fonts/PFDinDisplayPro-Bold.woff') format('woff'); + font-weight: normal; + font-style: normal; +} +html { + /* + @media all and (max-width: 1420px) and (min-width: 1280px) { + zoom: 0.7; + + #calc { + zoom: 1.4; + } + + .container, .bx-breadcrumb { + margin-left: auto; + margin-right: auto; + } + } + */ +} +@media all and (min-width: 1280px) and (max-width: 1420px) { + .zoom-90 { + zoom: .9 ; + } + .zoom-80 { + zoom: .8 ; + } + .zoom-70 { + zoom: .7 ; + } + .zoom-60 { + zoom: .6 ; + } + .zoom-50 { + zoom: .5 ; + } + .zoom-40 { + zoom: .4 ; + } + .zoom-30 { + zoom: .3 ; + } + .zoom-20 { + zoom: .2 ; + } + .zoom-10 { + zoom: .1 ; + } +} +@media all and (min-width: 768px) and (max-width: 1279px) { + .tb-zoom-90 { + zoom: .9 ; + } + .tb-zoom-80 { + zoom: .8 ; + } + .tb-zoom-70 { + zoom: .7 ; + } + .tb-zoom-60 { + zoom: .6 ; + } + .tb-zoom-50 { + zoom: .5 ; + } + .tb-zoom-40 { + zoom: .4 ; + } + .tb-zoom-30 { + zoom: .3 ; + } + .tb-zoom-20 { + zoom: .2 ; + } + .tb-zoom-10 { + zoom: .1 ; + } +} +@media all and (max-width: 768px) { + .sm-zoom-90 { + zoom: .9 ; + } + .sm-zoom-80 { + zoom: .8 ; + } + .sm-zoom-70 { + zoom: .7 ; + } + .sm-zoom-60 { + zoom: .6 ; + } + .sm-zoom-50 { + zoom: .5 ; + } + .sm-zoom-40 { + zoom: .4 ; + } + .sm-zoom-30 { + zoom: .3 ; + } + .sm-zoom-20 { + zoom: .2 ; + } + .sm-zoom-10 { + zoom: .1 ; + } +} +html, +body { + scroll-behavior: smooth; + cursor: default; +} +body { + font-size: 15px; + line-height: 20px; + color: #0C0C0C; + font-family: 'Montserrat', sans-serif; + font-weight: 400; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + body { + font-size: 13px; + line-height: 20px; + } +} +@media all and (max-width: 960px) { + body { + font-size: 13px; + line-height: 20px; + } +} +.container { + padding-top: 80px; + padding-bottom: 80px; + width: 100%; + max-width: 1310px; + margin: auto; + position: relative; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .container { + padding-top: 45px; + padding-bottom: 85px; + } +} +@media all and (max-width: 960px) { + .container { + padding-top: 40px; + padding-bottom: 40px; + } +} +.container.wide { + max-width: 1340px; + padding-left: 25px; + padding-right: 25px; +} +@media all and (max-width: 767px) { + .container.wide { + padding-left: 0; + padding-right: 0; + } +} +@media all and (max-width: 1420px) { + .container { + width: calc(100% - 160px); + margin: 0 auto; + } +} +@media all and (max-width: 767px) { + .container { + margin: 0 16px; + width: calc(100% - 32px); + } +} +.aside_container { + display: flex; + justify-content: space-between; +} +.aside_container aside { + width: 415px; +} +@media all and (max-width: 960px) { + .aside_container aside { + width: 100%; + } +} +.aside_container article { + width: calc(100% - 550px); +} +.aside_container article:only-child { + width: 100%; +} +.aside_container article .info_column { + padding: 20px 40px; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + border-bottom: 1px solid #EDEFF5; +} +.aside_container article .info_column div { + width: calc(50% - 55px); +} +@media all and (max-width: 960px) { + .aside_container article .info_column { + padding: 0; + } + .aside_container article .info_column div { + width: 100%; + } +} +@media all and (max-width: 960px) { + .aside_container article { + width: 100%; + } + .aside_container article .info_column { + padding: 25px 0; + } +} +.aside_container.about aside { + width: 305px; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .aside_container.about aside { + width: 265px; + } +} +.aside_container.about article { + width: calc(100% - 335px); +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .aside_container.about article { + width: calc(100% - 295px); + } +} +@media all and (max-width: 1279px) { + .aside_container.about { + display: block; + } + .aside_container.about aside, + .aside_container.about article { + width: 100%; + } +} +.section_title { + font-size: 50px; + line-height: 60px; + font-weight: 700; + color: #0C0C0C; + margin-bottom: 35px; + position: relative; +} +.section_title.no-margin { + margin-bottom: 0; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .section_title { + font-size: 36px; + line-height: 48px; + } +} +@media all and (max-width: 1279px) { + .section_title { + font-size: 32px; + line-height: 44px; + } +} +@media all and (max-width: 960px) { + .section_title { + font-size: 22px; + line-height: 33px; + } +} +@media all and (max-width: 767px) { + .section_title { + margin-bottom: 25px; + } +} +.section_title.wp { + padding-right: 210px; +} +@media all and (max-width: 1279px) { + .section_title.wp { + padding-right: 0; + } +} +.section_title_with_em { + font-size: 26px; + line-height: 35px; + color: var(--text_not_active) !important; + margin-top: 0; + margin-bottom: 35px; +} +@media all and (max-width: 767px) { + .section_title_with_em { + font-size: 19px; + line-height: 26px; + } +} +.section_title_with_em em { + font-size: 50px; + line-height: 60px; + font-weight: 700; + color: #0C0C0C; + position: relative; + font-style: normal; +} +.section_title_with_em em.no-margin { + margin-bottom: 0; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .section_title_with_em em { + font-size: 36px; + line-height: 48px; + } +} +@media all and (max-width: 1279px) { + .section_title_with_em em { + font-size: 32px; + line-height: 44px; + } +} +@media all and (max-width: 960px) { + .section_title_with_em em { + font-size: 22px; + line-height: 33px; + } +} +@media all and (max-width: 767px) { + .section_title_with_em em { + margin-bottom: 25px; + } +} +.section_title_with_em em.wp { + padding-right: 210px; +} +@media all and (max-width: 1279px) { + .section_title_with_em em.wp { + padding-right: 0; + } +} +.order_title { + font-size: 36px !important; + line-height: 0px !important; + margin-top: 28px !important; + font-weight: 700; + color: #0C0C0C; + position: relative; +} +.order_title.no-margin { + margin-bottom: 0; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .order_title { + font-size: 36px !important; + } +} +@media all and (max-width: 1279px) { + .order_title { + font-size: 32px !important; + } +} +@media all and (max-width: 960px) { + .order_title { + font-size: 22px !important; + line-height: 0px !important; + } +} +@media all and (max-width: 767px) { + .order_title { + font-size: 22px !important; + line-height: 23px !important; + margin: 0px !important; + margin-bottom: 15px !important; + } +} +.order_title.wp { + padding-right: 210px !important; +} +@media all and (max-width: 1279px) { + .order_title.wp { + padding-right: 0 !important; + } +} +.order_title_sub { + font-size: 24px !important; + line-height: 10px !important; + font-weight: normal !important; + margin-bottom: 50px; + color: #0C0C0C; + position: relative; +} +.order_title_sub.no-margin { + margin-bottom: 0; +} +@media all and (max-width: 1279px) { + .order_title_sub { + font-size: 22px !important; + } +} +@media all and (max-width: 960px) { + .order_title_sub { + font-size: 20px !important; + line-height: 10px !important; + margin-bottom: 90px !important; + } +} +@media all and (max-width: 767px) { + .order_title_sub { + line-height: 20px !important; + font-size: 18px !important; + margin: 0px !important; + margin-bottom: 30px !important; + } +} +.order_title_sub.wp { + padding-right: 210px; +} +@media all and (max-width: 1279px) { + .order_title_sub.wp { + padding-right: 0; + } +} +.car_position_title { + font-size: 26px; + line-height: 35px; + color: var(--text_not_active) !important; + margin-top: 0; + margin-bottom: 0; +} +@media all and (max-width: 767px) { + .car_position_title { + font-size: 19px; + line-height: 26px; + } +} +.car_position_title em { + font-size: 50px; + line-height: 60px; + font-weight: 700; + color: #0C0C0C; + margin-bottom: 35px; + position: relative; + font-style: normal; +} +.car_position_title em.no-margin { + margin-bottom: 0; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .car_position_title em { + font-size: 36px; + line-height: 48px; + } +} +@media all and (max-width: 1279px) { + .car_position_title em { + font-size: 32px; + line-height: 44px; + } +} +@media all and (max-width: 960px) { + .car_position_title em { + font-size: 22px; + line-height: 33px; + } +} +@media all and (max-width: 767px) { + .car_position_title em { + margin-bottom: 25px; + } +} +.car_position_title em.wp { + padding-right: 210px; +} +@media all and (max-width: 1279px) { + .car_position_title em.wp { + padding-right: 0; + } +} +h1 { + font-size: 32px; + line-height: 40px; +} +h2 { + font-size: 24px; + line-height: 28px; + margin-top: 1.5em; + margin-bottom: 10px; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + h2 { + font-size: 22px; + line-height: 26px; + } +} +h2.model { + font-size: 26px; + line-height: 35px; + color: var(--text_not_active); + margin-top: 0; + margin-bottom: 0; +} +@media all and (max-width: 767px) { + h2.model { + font-size: 19px; + line-height: 26px; + } +} +h2:first-child { + margin-top: 0; +} +h3 { + font-size: 17px; + line-height: 24px; + margin-top: 1.5em; + margin-bottom: 10px; +} +h3:first-child { + margin-top: 0; +} +h4 { + font-size: 15px; + line-height: 20px; + margin-top: 1.5em; + margin-bottom: 10px; +} +h4:first-child { + margin-top: 0; +} +.secondary { + font-size: 13px; + line-height: 20px; +} +.secondary.not_active { + color: #8E94A7; +} +@media all and (max-width: 960px) { + .secondary { + font-size: 10px; + line-height: 15px; + } +} +b, +strong { + font-weight: 700; +} +p.primary { + color: var(--blue); +} +a { + text-decoration: none; + color: var(--blue); +} +div { + box-sizing: border-box; +} +.clear { + display: block; + clear: both; +} +@media all and (max-width: 1279px) { + h2 { + font-size: 20px; + line-height: 24px; + } +} +@media all and (max-width: 736px) { + h1 { + font-size: 24px; + line-height: 32px; + } + h2 { + font-size: 20px; + line-height: 24px; + } +} +.i-phone { + padding-left: 28px; + background: url("/images/icons/icon-phone-hot.svg") no-repeat 0 2px; +} +.i-phone-secondary { + padding-left: 28px; + background: url("/images/icons/icon-phone-secondary.svg") no-repeat 0 2px; +} +.i-address { + padding-left: 28px; + background: url("/images/icons/icon-address.svg") no-repeat 0 2px; +} +.i-worktime { + padding-left: 28px; + background: url("/images/icons/icon-worktime.svg") no-repeat 0 2px; +} +.i-pdf { + padding-left: 80px; + background: url("/images/icons/icon-pdf.svg") no-repeat left center; +} +.i-pdf[data-format] { + background: url("/images/icons/icon-file.svg") no-repeat left center; +} +@media all and (max-width: 1600px) and (min-width: 1280px) { + .i-pdf { + padding-left: 56px; + background-size: 42px; + } +} +@media all and (max-width: 960px) { + .i-pdf { + padding-left: 55px; + background-size: 32px; + background-position: 0 5px; + } +} +.success { + color: var(--green); +} +.danger { + color: var(--red); +} +@media all and (max-width: 767px) { + ::-webkit-scrollbar { + display: none; + } +} +.line_style { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + .line_style { + display: none; + } +} +section[data-page] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page] .container:before { + display: none; + } +} +section[data-page] + #order .container { + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page] + #order .container { + border: 0; + } +} +section[data-page][data-page="programs"] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] .container:before { + display: none; + } +} +section[data-page][data-page="programs"] .container .programs_list { + position: relative; +} +section[data-page][data-page="programs"] .container .programs_list:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: calc(25% + 7px); + right: calc(25% - 23px); + top: 40px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] .container .programs_list:before { + display: none; + } +} +section[data-page][data-page="programs"] .container .programs_list:after { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + top: 40px; + bottom: -80px; + border-right: 0; + left: calc(50% + 13px); +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] .container .programs_list:after { + display: none; + } +} +section[data-page][data-page="programs"] + #order .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: calc(25% + 7px); + right: calc(25% - 23px); + top: 0px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] + #order .container:before { + display: none; + } +} +section[data-page][data-page="programs"] + #order .container:after { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + top: 0px; + bottom: -80px; + border-right: 0; + left: calc(50% + 13px); +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] + #order .container:after { + display: none; + } +} +@media all and (max-width: 1279px) { + section[data-page][data-page="programs"] + #order .container { + border-right: 0; + border-left: 0; + } + section[data-page][data-page="programs"] + #order .container:before, + section[data-page][data-page="programs"] + #order .container:after { + display: none; + } +} +section[data-page][data-page="services"] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="services"] .container:before { + display: none; + } +} +section[data-page][data-page="services"] .container .services_list { + position: relative; +} +section[data-page][data-page="services"] .container .services_list:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: 30px; + right: 0; + margin: auto; + width: calc(33.333% + 13px); + top: 40px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="services"] .container .services_list:before { + display: none; + } +} +section[data-page][data-page="services"] + #order .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: 30px; + right: 0; + margin: auto; + width: calc(33.333% + 13px); + top: 0px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="services"] + #order .container:before { + display: none; + } +} +@media all and (max-width: 1279px) { + section[data-page][data-page="services"] + #order .container { + border-right: 0; + border-left: 0; + } + section[data-page][data-page="services"] + #order .container:before, + section[data-page][data-page="services"] + #order .container:after { + display: none; + } +} +section[data-page][data-page="catalog"] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="catalog"] .container:before { + display: none; + } +} +section[data-page][data-page="catalog"] .container .catalog_list { + position: relative; +} +section[data-page][data-page="catalog"] .container .catalog_list:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: 30px; + right: 0; + margin: auto; + width: calc(33.333% + 13px); + top: 40px; + bottom: -200px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="catalog"] .container .catalog_list:before { + display: none; + } +} +section[data-page][data-page="catalog"] + #order .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: 30px; + right: 0; + margin: auto; + width: calc(33.333% + 13px); + top: 0px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="catalog"] + #order .container:before { + display: none; + } +} +@media all and (max-width: 1279px) { + section[data-page][data-page="catalog"] + #order .container { + border-right: 0; + border-left: 0; + } + section[data-page][data-page="catalog"] + #order .container:before, + section[data-page][data-page="catalog"] + #order .container:after { + display: none; + } +} +section[data-page][data-page="special"] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="special"] .container:before { + display: none; + } +} +section[data-page][data-page="special"] .container .special_list { + position: relative; +} +section[data-page][data-page="special"] .container .special_list:after { + content: ""; + display: block; + position: absolute; + top: 50px; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + border-right: 0; + left: 0; + right: 0; + margin: auto; + top: 0; + width: 1px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="special"] .container .special_list:after { + display: none; + } +} +section[data-page][data-page="special"] + #order .container:after { + content: ""; + display: block; + position: absolute; + top: 50px; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + border-right: 0; + left: 0; + right: 0; + margin: auto; + top: 0; + width: 1px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + section[data-page][data-page="special"] + #order .container:after { + display: none; + } +} +[data-page="position"] .container:before { + border-right: 0 !important; +} +[data-page="position"] .model_container { + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + [data-page="position"] .model_container { + border-right: 0; + } +} +[data-page="leasing_special"] .container:before { + border-right: 0 !important; +} +[data-page="leasing_special"] .special_item:not(:last-child):before { + content: ""; + display: block; + width: 1px; + height: auto; + background: #EDEFF5; + position: absolute; + top: 30px; + right: -15px; + bottom: -150px; +} +[data-page="news_main"] .news_item:not(:first-child) { + border-left: 1px solid #fff; +} +@media all and (max-width: 767px) { + [data-page="news_main"] .news_item:not(:first-child) { + border-left: 0; + } +} +[data-page="news_main"] .container:before { + top: 0 !important; + width: 391px; + right: auto; + bottom: -80px; +} +[data-page="news_main"] .container:after { + content: ""; + display: block !important; + position: absolute; + top: 0; + left: 755px; + z-index: -1; + width: 365px; + bottom: -80px; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +[data-page="news_main"] + #order .container { + border-right: 0 !important; +} +[data-page="news_main"] + #order .container:before { + content: ""; + display: block !important; + position: absolute; + border-right: 1px solid #EDEFF5; + top: 0 !important; + left: 0; + width: 389px; + right: auto; + bottom: -80px; +} +[data-page="news_main"] + #order .container:after { + content: ""; + display: block !important; + position: absolute; + top: 0; + left: 754px; + z-index: -1; + width: 365px; + bottom: -80px; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +[data-page="about"] .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +@media all and (max-width: 1279px) { + [data-page="about"] .container:before { + display: none; + } +} +[data-page="about"] .container aside { + position: relative; +} +[data-page="about"] .container aside:before { + content: ""; + display: block; + position: absolute; + top: 50px; + left: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: auto; + right: 0; + margin: auto; + width: 1px; + border-left: 0; + top: 0px; + bottom: -80px; +} +@media all and (max-width: 1279px) { + [data-page="about"] .container aside:before { + display: none; + } +} +[data-page="about"] + #order .container:before { + content: ""; + display: block; + position: absolute; + top: 50px; + right: 0; + bottom: 0; + z-index: -1; + pointer-events: none; + box-sizing: border-box; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + left: 0; + right: auto; + margin: auto; + width: 304px; + top: 0px; + bottom: -80px; + border-left: 0; +} +@media all and (max-width: 1279px) { + [data-page="about"] + #order .container:before { + display: none; + } +} +@media all and (max-width: 1279px) { + [data-page="about"] + #order .container { + border-right: 0; + border-left: 0; + } + [data-page="about"] + #order .container:before, + [data-page="about"] + #order .container:after { + display: none; + } +} +#main_slider { + position: relative; +} +#main_slider:after { + content: ""; + display: block; + height: 1px; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; + background: #fff; + opacity: 0.1; + pointer-events: none; + z-index: 1; +} +#main_slider .container { + border-left: 1px solid rgba(255, 255, 255, 0.1); +} +@media all and (max-width: 1660px) { + #main_slider .container { + border-right: 1px solid rgba(255, 255, 255, 0.1); + } +} +@media all and (max-width: 767px) { + #main_slider .container { + border-left: 0; + border-right: 0; + } +} +#main_slider .container:before, +#main_slider .container:after { + content: ""; + display: block; + position: absolute; + top: 0; + left: 286px; + bottom: 0; + opacity: 0.1; + width: 286px; + border-left: 1px solid #fff; + border-right: 1px solid #fff; +} +@media all and (max-width: 1660px) { + #main_slider .container:before, + #main_slider .container:after { + left: 20%; + width: 20%; + } +} +@media all and (max-width: 767px) { + #main_slider .container:before, + #main_slider .container:after { + width: 40%; + left: 0; + right: 0; + margin: auto; + } +} +#main_slider .container:after { + left: 858px; +} +@media all and (max-width: 1660px) { + #main_slider .container:after { + left: 60%; + } +} +@media all and (max-width: 767px) { + #main_slider .container:after { + display: none; + } +} +#main_slider + #filter .container { + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; +} +#main_slider + #filter .container:before { + content: ""; + display: block; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + margin: auto; + border-left: 1px solid #EDEFF5; + border-right: 1px solid #EDEFF5; + width: calc(33.333% + 10px); + pointer-events: none; +} +@media all and (max-width: 1279px) { + #main_slider + #filter .container { + border: 0; + } + #main_slider + #filter .container:before { + display: none; + } +} +.container_with_filter_with_margin { + margin-bottom: 0px !important; + padding-bottom: 20px !important; +} +[data-custom-scroll]::-webkit-scrollbar { + width: 4px; + height: 16px; +} +[data-custom-scroll]::-webkit-scrollbar-track { + background: var(--inactive); +} +[data-custom-scroll]::-webkit-scrollbar-thumb { + background: var(--blue); + border-radius: 0px; +} diff --git a/local/templates/evolution/css/var.less b/local/templates/evolution/css/var.less index e1b0376..f9cbacc 100644 --- a/local/templates/evolution/css/var.less +++ b/local/templates/evolution/css/var.less @@ -114,7 +114,7 @@ body { @media all and (max-width: 1600px) and (min-width: 1280px) { padding-top: 45px; - padding-bottom: 45px; + padding-bottom: 85px; } @media all and (max-width: 960px) { @@ -1099,7 +1099,7 @@ section[data-page] { [data-custom-scroll]::-webkit-scrollbar { width: 4px; - height: 4px; + height: 16px; } [data-custom-scroll]::-webkit-scrollbar-track { diff --git a/local/templates/evolution/js/jquery.inputmask.min.js b/local/templates/evolution/js/jquery.inputmask.min.js new file mode 100644 index 0000000..af79fa9 --- /dev/null +++ b/local/templates/evolution/js/jquery.inputmask.min.js @@ -0,0 +1,8 @@ +/*! + * dist/jquery.inputmask.min + * https://github.com/RobinHerbots/Inputmask + * Copyright (c) 2010 - 2021 Robin Herbots + * Licensed under the MIT license + * Version: 5.0.7 + */ +!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("jquery"));else if("function"==typeof define&&define.amd)define(["jquery"],t);else{var i="object"==typeof exports?t(require("jquery")):t(e.jQuery);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(self,(function(e){return function(){"use strict";var t={3046:function(e,t,i){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(3851),i(219),i(207),i(5296);var n=((a=i(2394))&&a.__esModule?a:{default:a}).default;t.default=n},8741:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=i},3976:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=i(5581))&&a.__esModule?a:{default:a};var r={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[n.default.BACKSPACE,n.default.TAB,n.default["PAUSE/BREAK"],n.default.ESCAPE,n.default.PAGE_UP,n.default.PAGE_DOWN,n.default.END,n.default.HOME,n.default.LEFT,n.default.UP,n.default.RIGHT,n.default.DOWN,n.default.INSERT,n.default.DELETE,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}};t.default=r},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={9:{validator:"[0-9\uff10-\uff19]",definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",definitionSymbol:"*"},"*":{validator:"[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"}}},3287:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,n=(a=i(2047))&&a.__esModule?a:{default:a};if(void 0===n.default)throw"jQuery not loaded!";var r=n.default;t.default=r},9845:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ua=t.mobile=t.iphone=t.iemobile=t.ie=void 0;var a,n=(a=i(9380))&&a.__esModule?a:{default:a};var r=n.default.navigator&&n.default.navigator.userAgent||"",o=r.indexOf("MSIE ")>0||r.indexOf("Trident/")>0,s="ontouchstart"in n.default,l=/iemobile/i.test(r),u=/iphone/i.test(r)&&!l;t.iphone=u,t.iemobile=l,t.mobile=s,t.ie=o,t.ua=r},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(i,"\\$1")};var i=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var a,n=i(8711),r=(a=i(5581))&&a.__esModule?a:{default:a},o=i(9845),s=i(7215),l=i(7760),u=i(4713);function c(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw r}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i=0&&h.end>0&&(e.preventDefault(),n.caret.call(t,f,h.begin,h.end))):(h.begin=n.seekNext.call(t,h.begin,!0),h.end=n.seekNext.call(t,h.begin,!0),h.end=d.length?c.length:d.length,m=f.length>=p.length?f.length:p.length,v="",g=[],k="~";c.length0;){var o=r.pop();["submit","reset"].includes(n)?null!==e.form&&i(e.form).off(n,o):i(e).off(n,o)}delete e.inputmask.events[n]}}}};t.EventRuler=l},219:function(e,t,i){var a=d(i(2394)),n=d(i(5581)),r=d(i(7184)),o=i(8711),s=i(4713);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var a,n,r=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);o=!0);}catch(e){s=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw n}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return w(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return w(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return w(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return w(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return w(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return w(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return w(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return w(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return w(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return w(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]",y,"ampm",b,1],tt:["[ap]m",y,"ampm",b,2],T:["[AP]",y,"ampm",b,1],TT:["[AP]M",y,"ampm",b,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return u(e,1)[0]})).join(""));return e}],o:[""],S:[""]},k={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function y(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function b(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function x(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var i=g[e[0][0]+"x"].slice("");return i[0]=i[0](t[0]),i[3]=i[3](t[0]),i}if(g[e[0]])return g[e[0]]}function P(e){if(!e.tokenizer){var t=[],i=[];for(var a in g)if(/\.*x$/.test(a)){var n=a[0]+"\\d+";-1===i.indexOf(n)&&i.push(n)}else-1===t.indexOf(a[0])&&t.push(a[0]);e.tokenizer="("+(i.length>0?i.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function E(e,t,i){if(!v)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var a=O(t.pos,i);if("yyyy"===a.targetMatch[0]&&t.pos-a.targetMatchIndex==2)return t.remove=t.pos+1,t}else if("02"==e.month&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=o.seekNext.call(this,t.pos+1),t;return!1}function S(e,t,i,a){var n,o,s="";for(P(i).lastIndex=0;n=P(i).exec(e);){if(void 0===t)if(o=x(n))s+="("+o[0]+")";else switch(n[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,r.default)(n[0])}else if(o=x(n))if(!0!==a&&o[3])s+=o[3].call(t.date);else o[2]?s+=t["raw"+o[2]]:s+=n[0];else s+=n[0]}return s}function w(e,t,i){for(e=String(e),t=t||2;e.length=e+1){i=a,a=P(t).exec(t.inputFormat);break}}return{targetMatchIndex:n-r,nextMatch:a,targetMatch:i}}a.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,g.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=k[e.inputFormat]||e.inputFormat,e.displayFormat=k[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=k[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=S(e.inputFormat,void 0,e),e.min=_(e.min,e.inputFormat,e),e.max=_(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,i,a,n,r,o,s){if(s)return!0;if(isNaN(i)&&e[t]!==i){var l=O(t,n);if(l.nextMatch&&l.nextMatch[0]===i&&l.targetMatch[0].length>1){var u=g[l.targetMatch[0]][0];if(new RegExp(u).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,i,a,n,r,o,l){var u,c;if(o)return!0;if(!1===a&&(((u=O(t+1,n)).targetMatch&&u.targetMatchIndex===t&&u.targetMatch[0].length>1&&void 0!==g[u.targetMatch[0]]||(u=O(t+2,n)).targetMatch&&u.targetMatchIndex===t+1&&u.targetMatch[0].length>1&&void 0!==g[u.targetMatch[0]])&&(c=g[u.targetMatch[0]][0]),void 0!==c&&(void 0!==r.validPositions[t+1]&&new RegExp(c).test(i+"0")?(e[t]=i,e[t+1]="0",a={pos:t+2,caret:t}):new RegExp(c).test("0"+i)&&(e[t]="0",e[t+1]=i,a={pos:t+2})),!1===a))return a;if(a.fuzzy&&(e=a.buffer,t=a.pos),(u=O(t,n)).targetMatch&&u.targetMatch[0]&&void 0!==g[u.targetMatch[0]]){var f=g[u.targetMatch[0]];c=f[0];var d=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(!1===new RegExp(c).test(d.join(""))&&2===u.targetMatch[0].length&&r.validPositions[u.targetMatchIndex]&&r.validPositions[u.targetMatchIndex+1]&&(r.validPositions[u.targetMatchIndex+1].input="0"),"year"==f[2])for(var p=s.getMaskTemplate.call(this,!1,1,void 0,!0),h=t+1;h=s.getTime())&&(e.date.setFullYear(m),e.year=a,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}(k,v,n)),v=function(e,t,i,a,n){if(!t)return t;if(t&&i.min&&i.min.date.getTime()==i.min.date.getTime()){var r;for(e.reset(),P(i).lastIndex=0;r=P(i).exec(i.inputFormat);){var o;if((o=x(r))&&o[3]){for(var s=o[1],l=e[o[2]],u=i.min[o[2]],c=i.max?i.max[o[2]]:u,f=[],d=!1,p=0;pu[p]):(f[p]=u[p],"year"===o[2]&&l.length-1==p&&u!=c&&(f=(parseInt(f.join(""))+1).toString().split("")),"ampm"===o[2]&&u!=c&&i.min.date.getTime()>e.date.getTime()&&(f[p]=c[p]));s.call(e._date,f.join(""))}}t=i.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&i.max&&i.max.date.getTime()==i.max.date.getTime()&&(t=i.max.date.getTime()>=e.date.getTime()),t}(k,v=E.call(this,k,v,n),n,r)),void 0!==t&&v&&a.pos!==t?{buffer:S(n.inputFormat,k,n).split(""),refreshFromBuffer:{start:t,end:a.pos},pos:a.caret||a.pos}:v},onKeyDown:function(e,t,i,a){e.ctrlKey&&e.keyCode===n.default.RIGHT&&(this.inputmask._valueSet(M(new Date,a)),p(this).trigger("setvalue"))},onUnMask:function(e,t,i){return t?S(i.outputFormat,_(e,i.inputFormat,i),i,!0):t},casing:function(e,t,i,a){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=M(e,t)),e},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(e,t,i){var a,n=(a=i(2394))&&a.__esModule?a:{default:a},r=i(8711),o=i(4713);n.default.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var s=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(e,t,i,a,n){return i-1>-1&&"."!==t.buffer[i-1]?(e=t.buffer[i-1]+e,e=i-2>-1&&"."!==t.buffer[i-2]?t.buffer[i-2]+e:"0"+e):e="00"+e,s.test(e)}n.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(e,t,i){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",i=t;if(e.separator)for(var a=0;a0&&t>0&&(!i.digitsOptional||a)){var n=e.indexOf(i.radixPoint),r=!1;i.negationSymbol.back===e[e.length-1]&&(r=!0,e.length--),-1===n&&(e.push(i.radixPoint),n=e.length-1);for(var o=1;o<=t;o++)isFinite(e[n+o])||(e[n+o]="0")}return r&&e.push(i.negationSymbol.back),e}function f(e,t){var i=0;if("+"===e){for(i in t.validPositions);i=o.seekNext.call(this,parseInt(i))}for(var a in t.tests)if((a=parseInt(a))>=i)for(var n=0,r=t.tests[a].length;n1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",i=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,i=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[i]&&(e.definitions[i]={},e.definitions[i].validator="["+e.radixPoint+"]",e.definitions[i].placeholder=e.radixPoint,e.definitions[i].static=!0,e.definitions[i].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var a,n="[+]";if(n+=u(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),n+=e._mask(e)):n+="9{+}",void 0!==e.digits&&0!==e.digits){var o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?n+=i+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(a=n+i+t+"{0,"+e.digits+"}",e.keepStatic=!0):n+=i+t+"{"+e.digits+"}")}else e.inputmode="numeric";return n+=u(e.suffix,e),n+="[-]",a&&(n=[a+u(e.suffix,e)+"[-]",n]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,r.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,r.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),n},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",definitionSymbol:"*"},"+":{validator:function(e,t,i,a,n){return n.allowMinus&&("-"===e||e===n.negationSymbol.front)}},"-":{validator:function(e,t,i,a,n){return n.allowMinus&&e===n.negationSymbol.back}}},preValidation:function(e,t,i,a,n,r,o,s){if(!1!==n.__financeInput&&i===n.radixPoint)return!1;var l=e.indexOf(n.radixPoint),u=t;if(t=function(e,t,i,a,n){return n._radixDance&&n.numericInput&&t!==n.negationSymbol.back&&e<=i&&(i>0||t==n.radixPoint)&&(void 0===a.validPositions[e-1]||a.validPositions[e-1].input!==n.negationSymbol.back)&&(e-=1),e}(t,i,l,r,n),"-"===i||i===n.negationSymbol.front){if(!0!==n.allowMinus)return!1;var c=!1,p=d("+",r),h=d("-",r);return-1!==p&&(c=[p,h]),!1!==c?{remove:c,caret:u-n.negationSymbol.back.length}:{insert:[{pos:f.call(this,"+",r),c:n.negationSymbol.front,fromIsValid:!0},{pos:f.call(this,"-",r),c:n.negationSymbol.back,fromIsValid:void 0}],caret:u+n.negationSymbol.back.length}}if(i===n.groupSeparator)return{caret:u};if(s)return!0;if(-1!==l&&!0===n._radixDance&&!1===a&&i===n.radixPoint&&void 0!==n.digits&&(isNaN(n.digits)||parseInt(n.digits)>0)&&l!==t)return{caret:n._radixDance&&t===l-1?l+1:l};if(!1===n.__financeInput)if(a){if(n.digitsOptional)return{rewritePosition:o.end};if(!n.digitsOptional){if(o.begin>l&&o.end<=l)return i===n.radixPoint?{insert:{pos:l+1,c:"0",fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(o.begin0&&""===this.__valueGet.call(this.el))return{rewritePosition:l};return{rewritePosition:t}},postValidation:function(e,t,i,a,n,r,o){if(!1===a)return a;if(o)return!0;if(null!==n.min||null!==n.max){var s=n.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&sn.min.toString().length||s<0))return!1;if(null!==n.max&&s>n.max)return!!n.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:c(n.max.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}return a},onUnMask:function(e,t,i){if(""===t&&!0===i.nullable)return t;var a=e.replace(i.prefix,"");return a=(a=a.replace(i.suffix,"")).replace(new RegExp((0,r.default)(i.groupSeparator),"g"),""),""!==i.placeholder.charAt(0)&&(a=a.replace(new RegExp(i.placeholder.charAt(0),"g"),"0")),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==a.indexOf(i.radixPoint)&&(a=a.replace(r.default.call(this,i.radixPoint),".")),a=(a=a.replace(new RegExp("^"+(0,r.default)(i.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(i.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,t){var i=(t.numericInput?e.slice().reverse():e).join("");return i=(i=(i=(i=(i=i.replace(new RegExp("^"+(0,r.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,r.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,r.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(i=i.replace((0,r.default)(t.radixPoint),".")),isFinite(i)},onBeforeMask:function(e,t){var i=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===i||(e=e.toString().replace(".",i));var a="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,n=e.split(i),o=n[0].replace(/[^\-0-9]/g,""),s=n.length>1?n[1].replace(/[^0-9]/g,""):"",l=n.length>1;e=o+(""!==s?i+s:s);var u=0;if(""!==i&&(u=t.digitsOptional?t.digitst.max&&(e=t.max.toString().replace(".",i))}return a&&"-"!==e.charAt(0)&&(e="-"+e),c(e.toString().split(""),u,t,l).join("")},onBeforeWrite:function(e,t,i,a){function n(e,t){if(!1!==a.__financeInput||t){var i=e.indexOf(a.radixPoint);-1!==i&&e.splice(i,1)}if(""!==a.groupSeparator)for(;-1!==(i=e.indexOf(a.groupSeparator));)e.splice(i,1);return e}var o,s;if(a.stripLeadingZeroes&&(s=function(e,t){var i=new RegExp("(^"+(""!==t.negationSymbol.front?(0,r.default)(t.negationSymbol.front)+"?":"")+(0,r.default)(t.prefix)+")(.*)("+(0,r.default)(t.suffix)+(""!=t.negationSymbol.back?(0,r.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),a=i?i[2]:"",n=!1;return a&&(a=a.split(t.radixPoint.charAt(0))[0],n=new RegExp("^[0"+t.groupSeparator+"]*").exec(a)),!(!n||!(n[0].length>1||n[0].length>0&&n[0].length0;d--)delete this.maskset.validPositions[u+d],delete t[u+d];if(e)switch(e.type){case"blur":case"checkval":if(null!==a.min){var p=a.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&p1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(o)),s.trigger("setvalue"),!1;if(e.ctrlKey)switch(e.keyCode){case n.default.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),s.trigger("setvalue"),!1;case n.default.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),s.trigger("setvalue"),!1}if(!e.shiftKey&&(e.keyCode===n.default.DELETE||e.keyCode===n.default.BACKSPACE||e.keyCode===n.default.BACKSPACE_SAFARI)&&i.begin!==t.length){if(t[e.keyCode===n.default.DELETE?i.begin-1:i.end]===a.negationSymbol.front)return r=t.slice().reverse(),""!==a.negationSymbol.front&&r.shift(),""!==a.negationSymbol.back&&r.pop(),s.trigger("setvalue",[r.join(""),i.begin]),!1;if(!0===a._radixDance){var f=t.indexOf(a.radixPoint);if(a.digitsOptional){if(0===f)return(r=t.slice().reverse()).pop(),s.trigger("setvalue",[r.join(""),i.begin>=r.length?r.length:i.begin]),!1}else if(-1!==f&&(i.begin=r.length?f+1:i.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t,i){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=((a=i(8741))&&a.__esModule?a:{default:a}).default?window:{};t.default=n},7760:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var i=e?e.inputmask:this;if(l.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var a=o.getBuffer.call(i).slice(),n=e.inputmask._valueGet();if(n!==t){var r=o.getLastValidPosition.call(i);-1===r&&n===o.getBufferTemplate.call(i).join("")?a=[]:-1!==r&&f.call(i,a),p(e,a)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=c,t.checkVal=d,t.clearOptionalTail=f,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,i=t.opts,a=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&c(e,e.inputmask._valueGet(!0))}var n=[],r=a.validPositions;for(var s in r)r[s]&&r[s].match&&(1!=r[s].match.static||Array.isArray(a.metadata)&&!0!==r[s].generatedInput)&&n.push(r[s].input);var l=0===n.length?"":(t.isRTL?n.reverse():n).join("");if("function"==typeof i.onUnMask){var u=(t.isRTL?o.getBuffer.call(t).slice().reverse():o.getBuffer.call(t)).join("");l=i.onUnMask.call(t,u,l,i)}return l},t.writeBuffer=p;var a,n=(a=i(5581))&&a.__esModule?a:{default:a},r=i(4713),o=i(8711),s=i(7215),l=i(9845),u=i(6030);function c(e,t){var i=e?e.inputmask:this,a=i.opts;e.inputmask.refreshValue=!1,"function"==typeof a.onBeforeMask&&(t=a.onBeforeMask.call(i,t,a)||t),d(e,!0,!1,t=t.toString().split("")),i.undoValue=i._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===o.getBufferTemplate.call(i).join("")&&-1===o.getLastValidPosition.call(i)&&e.inputmask._valueSet("")}function f(e){e.length=0;for(var t,i=r.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=i.shift());)e.push(t);return e}function d(e,t,i,a,n){var l=e?e.inputmask:this,c=l.maskset,f=l.opts,d=l.dependencyLib,h=a.slice(),m="",v=-1,g=void 0,k=f.skipOptionalPartCharacter;f.skipOptionalPartCharacter="",o.resetMaskSet.call(l),c.tests={},v=f.radixPoint?o.determineNewCaretPosition.call(l,{begin:0,end:0},!1,!1===f.__financeInput?"radixFocus":void 0).begin:0,c.p=v,l.caretPos={begin:v};var y=[],b=l.caretPos;if(h.forEach((function(e,t){if(void 0!==e){var a=new d.Event("_checkval");a.keyCode=e.toString().charCodeAt(0),m+=e;var n=o.getLastValidPosition.call(l,void 0,!0);!function(e,t){for(var i=r.getMaskTemplate.call(l,!0,0).slice(e,o.seekNext.call(l,e,!1,!1)).join("").replace(/'/g,""),a=i.indexOf(t);a>0&&" "===i[a-1];)a--;var n=0===a&&!o.isMask.call(l,e)&&(r.getTest.call(l,e).match.nativeDef===t.charAt(0)||!0===r.getTest.call(l,e).match.static&&r.getTest.call(l,e).match.nativeDef==="'"+t.charAt(0)||" "===r.getTest.call(l,e).match.nativeDef&&(r.getTest.call(l,e+1).match.nativeDef===t.charAt(0)||!0===r.getTest.call(l,e+1).match.static&&r.getTest.call(l,e+1).match.nativeDef==="'"+t.charAt(0)));if(!n&&a>0&&!o.isMask.call(l,e,!1,!0)){var s=o.seekNext.call(l,e);l.caretPos.begin0){var x,P,E=o.seekNext.call(l,-1,void 0,!1);if(!s.isComplete.call(l,o.getBuffer.call(l))&&y.length<=E||s.isComplete.call(l,o.getBuffer.call(l))&&y.length>0&&y.length!==E&&0===y[0])for(var S=E;void 0!==(x=y.shift());){var w=new d.Event("_checkval");if((P=c.validPositions[x]).generatedInput=!0,w.keyCode=P.input.charCodeAt(0),(g=u.EventHandlers.keypressEvent.call(l,w,!0,!1,i,S))&&void 0!==g.pos&&g.pos!==x&&c.validPositions[g.pos]&&!0===c.validPositions[g.pos].match.static)y.push(g.pos);else if(!g)break;S++}}t&&p.call(l,e,o.getBuffer.call(l),g?g.forwardPosition:l.caretPos.begin,n||new d.Event("checkval"),n&&("input"===n.type&&l.undoValue!==o.getBuffer.call(l).join("")||"paste"===n.type)),f.skipOptionalPartCharacter=k}function p(e,t,i,a,r){var l=e?e.inputmask:this,u=l.opts,c=l.dependencyLib;if(a&&"function"==typeof u.onBeforeWrite){var f=u.onBeforeWrite.call(l,a,t,i,u);if(f){if(f.refreshFromBuffer){var d=f.refreshFromBuffer;s.refreshFromBuffer.call(l,!0===d?d:d.start,d.end,f.buffer||t),t=o.getBuffer.call(l,!0)}void 0!==i&&(i=void 0!==f.caret?f.caret:i)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===i||void 0!==a&&"blur"===a.type||o.caret.call(l,e,i,void 0,void 0,void 0!==a&&"keydown"===a.type&&(a.keyCode===n.default.DELETE||a.keyCode===n.default.BACKSPACE)),!0===r)){var p=c(e),h=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,p.trigger("input"),setTimeout((function(){h===o.getBufferTemplate.call(l).join("")?p.trigger("cleared"):!0===s.isComplete.call(l,t)&&p.trigger("complete")}),0)}}},2394:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i(7149),i(3194);var a=i(157),n=v(i(3287)),r=v(i(9380)),o=i(2391),s=i(4713),l=i(8711),u=i(7215),c=i(7760),f=i(9716),d=v(i(7392)),p=v(i(3976)),h=v(i(8741));function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e){return e&&e.__esModule?e:{default:e}}var g=r.default.document,k="_inputmask_opts";function y(e,t,i){if(h.default){if(!(this instanceof y))return new y(e,t,i);this.dependencyLib=n.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==i&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=n.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},b(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipKeyPressEvent=!1,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.originalPlaceholder=void 0,this.isComposing=!1}}function b(e,t,i){var a=y.prototype.aliases[e];return a?(a.alias&&b(a.alias,void 0,i),n.default.extend(!0,i,a),n.default.extend(!0,i,t),!0):(null===i.mask&&(i.mask=e),!1)}y.prototype={dataAttribute:"data-inputmask",defaults:p.default,definitions:d.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:Array.from(e)).forEach((function(e,i){var s=n.default.extend(!0,{},t.opts);if(function(e,t,i,a){function o(t,n){var o=""===a?t:a+"-"+t;null!==(n=void 0!==n?n:e.getAttribute(o))&&("string"==typeof n&&(0===t.indexOf("on")?n=r.default[n]:"false"===n?n=!1:"true"===n&&(n=!0)),i[t]=n)}if(!0===t.importDataAttributes){var s,l,u,c,f=e.getAttribute(a);if(f&&""!==f&&(f=f.replace(/'/g,'"'),l=JSON.parse("{"+f+"}")),l)for(c in u=void 0,l)if("alias"===c.toLowerCase()){u=l[c];break}for(s in o("alias",u),i.alias&&b(i.alias,i,t),t){if(l)for(c in u=void 0,l)if(c.toLowerCase()===s.toLowerCase()){u=l[c];break}o(s,u)}}n.default.extend(!0,t,i),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right");("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0);return Object.keys(i).length}(e,s,n.default.extend(!0,{},t.userOptions),t.dataAttribute)){var l=(0,o.generateMaskSet)(s,t.noMasksCache);void 0!==l&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new y(void 0,void 0,!0),e.inputmask.opts=s,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=n.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,n.default)(e),e.inputmask.maskset=l,n.default.data(e,k,t.userOptions),a.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===m(e)?(n.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,l.getBuffer.call(this),0,this.opts)}return c.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){n.default.data(this.el,k,null);var e=this.opts.autoUnmask?(0,c.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==l.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),f.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),l.getBufferTemplate.call(this).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),u.isComplete.call(this,l.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=s.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");for(var i=l.getBuffer.call(this),a=l.determineLastRequiredPosition.call(this),n=i.length-1;n>a&&!l.isMask.call(this,n);n--);return i.splice(a,n+1-a),u.isComplete.call(this,i)&&e===(this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,o.generateMaskSet)(this.opts,this.noMasksCache);var i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");c.checkVal.call(this,void 0,!0,!1,i);var a=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");return t?{value:a,metadata:this.getmetadata()}:a},setValue:function(e){this.el&&(0,n.default)(this.el).trigger("setvalue",[e])},analyseMask:o.analyseMask},y.extendDefaults=function(e){n.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){n.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){n.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,i){return y(t).format(e,i)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},y.setValue=function(e,t){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,n.default)(e).trigger("setvalue",[t])}))},y.dependencyLib=n.default,r.default.Inputmask=y;var x=y;t.default=x},5296:function(e,t,i){function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var n=h(i(9380)),r=h(i(2394)),o=h(i(8741));function s(e,t){for(var i=0;i0){if(k(l=m[m.length-1],o),l.isAlternator){u=m.pop();for(var e=0;e0?(l=m[m.length-1]).matches.push(u):h.matches.push(u)}}else k(h,o)}function b(e){var t=new n.default(!0);return t.openGroup=!1,t.matches=e,t}function x(){if((s=m.pop()).openGroup=!1,void 0!==s)if(m.length>0){if((l=m[m.length-1]).matches.push(s),l.isAlternator){for(var e=(u=m.pop()).matches[0].matches?u.matches[0].matches.length:1,t=0;t0?(l=m[m.length-1]).matches.push(u):h.matches.push(u)}}else h.matches.push(s);else y()}function P(e){var t=e.pop();return t.isQuantifier&&(t=b([e.pop(),t])),t}t&&(i.optionalmarker[0]=void 0,i.optionalmarker[1]=void 0);for(;a=t?d.exec(e):f.exec(e);){if(o=a[0],t){switch(o.charAt(0)){case"?":o="{0,1}";break;case"+":case"*":o="{"+o+"}";break;case"|":if(0===m.length){var E=b(h.matches);E.openGroup=!0,m.push(E),h.matches=[],g=!0}}if("\\d"===o)o="[0-9]"}if(p)y();else switch(o.charAt(0)){case"$":case"^":t||y();break;case i.escapeChar:p=!0,t&&y();break;case i.optionalmarker[1]:case i.groupmarker[1]:x();break;case i.optionalmarker[0]:m.push(new n.default(!1,!0));break;case i.groupmarker[0]:m.push(new n.default(!0));break;case i.quantifiermarker[0]:var S=new n.default(!1,!1,!0),w=(o=o.replace(/[{}?]/g,"")).split("|"),_=w[0].split(","),M=isNaN(_[0])?_[0]:parseInt(_[0]),O=1===_.length?M:isNaN(_[1])?_[1]:parseInt(_[1]),T=isNaN(w[1])?w[1]:parseInt(w[1]);"*"!==M&&"+"!==M||(M="*"===O?0:1),S.quantifier={min:M,max:O,jit:T};var A=m.length>0?m[m.length-1].matches:h.matches;if((a=A.pop()).isAlternator){A.push(a),A=a.matches;var C=new n.default(!0),D=A.pop();A.push(C),A=C.matches,a=D}a.isGroup||(a=b([a])),A.push(a),A.push(S);break;case i.alternatormarker:if(m.length>0){var j=(l=m[m.length-1]).matches[l.matches.length-1];c=l.openGroup&&(void 0===j.matches||!1===j.isGroup&&!1===j.isAlternator)?m.pop():P(l.matches)}else c=P(h.matches);if(c.isAlternator)m.push(c);else if(c.alternatorGroup?(u=m.pop(),c.alternatorGroup=!1):u=new n.default(!1,!1,!1,!0),u.matches.push(c),m.push(u),c.openGroup){c.openGroup=!1;var B=new n.default(!0);B.alternatorGroup=!0,m.push(B)}break;default:y()}}g&&x();for(;m.length>0;)s=m.pop(),h.matches.push(s);h.matches.length>0&&(!function e(a){a&&a.matches&&a.matches.forEach((function(n,r){var o=a.matches[r+1];(void 0===o||void 0===o.matches||!1===o.isQuantifier)&&n&&n.isGroup&&(n.isGroup=!1,t||(k(n,i.groupmarker[0],0),!0!==n.openGroup&&k(n,i.groupmarker[1]))),e(n)}))}(h),v.push(h));(i.numericInput||i.isRTL)&&function e(t){for(var a in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,a)){var n=parseInt(a);if(t.matches[a].isQuantifier&&t.matches[n+1]&&t.matches[n+1].isGroup){var r=t.matches[a];t.matches.splice(a,1),t.matches.splice(n+1,0,r)}void 0!==t.matches[a].matches?t.matches[a]=e(t.matches[a]):t.matches[a]=((o=t.matches[a])===i.optionalmarker[0]?o=i.optionalmarker[1]:o===i.optionalmarker[1]?o=i.optionalmarker[0]:o===i.groupmarker[0]?o=i.groupmarker[1]:o===i.groupmarker[1]&&(o=i.groupmarker[0]),o)}var o;return t}(v[0]);return v},t.generateMaskSet=function(e,t){var i;function n(e,i,n){var o,s,l=!1;if(null!==e&&""!==e||((l=null!==n.regex)?e=(e=n.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(l=!0,e=".*")),1===e.length&&!1===n.greedy&&0!==n.repeat&&(n.placeholder=""),n.repeat>0||"*"===n.repeat||"+"===n.repeat){var u="*"===n.repeat?0:"+"===n.repeat?1:n.repeat;e=n.groupmarker[0]+e+n.groupmarker[1]+n.quantifiermarker[0]+u+","+n.repeat+n.quantifiermarker[1]}return s=l?"regex_"+n.regex:n.numericInput?e.split("").reverse().join(""):e,null!==n.keepStatic&&(s="ks_"+n.keepStatic+s),void 0===r.default.prototype.masksCache[s]||!0===t?(o={mask:e,maskToken:r.default.prototype.analyseMask(e,l,n),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:i,maskLength:void 0,jitOffset:{}},!0!==t&&(r.default.prototype.masksCache[s]=o,o=a.default.extend(!0,{},r.default.prototype.masksCache[s]))):o=a.default.extend(!0,{},r.default.prototype.masksCache[s]),o}"function"==typeof e.mask&&(e.mask=e.mask(e));if(Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var o=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){o.length>1&&(o+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?o+=t.mask:o+=t})),n(o+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}i=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?n(e.mask.mask,e.mask,e):n(e.mask,e.mask,e);null===e.keepStatic&&(e.keepStatic=!1);return i};var a=o(i(3287)),n=o(i(9695)),r=o(i(2394));function o(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,i=this.el,a=this.dependencyLib;s.EventRuler.off(i);var f=function(t,i){"textarea"!==t.tagName.toLowerCase()&&i.ignorables.push(n.default.ENTER);var l=t.getAttribute("type"),u="input"===t.tagName.toLowerCase()&&i.supportsInputType.includes(l)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!u)if("input"===t.tagName.toLowerCase()){var c=document.createElement("input");c.setAttribute("type",l),u="text"===c.type,c=null}else u="partial";return!1!==u?function(t){var n,l;function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==r.getLastValidPosition.call(e)||!0!==i.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&i.clearMaskOnLostFocus?(e.isRTL?o.clearOptionalTail.call(e,r.getBuffer.call(e).slice()).reverse():o.clearOptionalTail.call(e,r.getBuffer.call(e).slice())).join(""):n.call(this):"":n.call(this)}function c(e){l.call(this,e),this.inputmask&&(0,o.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){var f=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;f&&f.get&&f.set?(n=f.get,l=f.set,Object.defineProperty(t,"value",{get:u,set:c,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(n=function(){return this.textContent},l=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:u,set:c,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(n=t.__lookupGetter__("value"),l=t.__lookupSetter__("value"),t.__defineGetter__("value",u),t.__defineSetter__("value",c));t.inputmask.__valueGet=n,t.inputmask.__valueSet=l}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?n.call(this.el).split("").reverse().join(""):n.call(this.el)},t.inputmask._valueSet=function(t,i){l.call(this.el,null==t?"":!0!==i&&e.isRTL?t.split("").reverse().join(""):t)},void 0===n&&(n=function(){return this.value},l=function(e){this.value=e},function(t){if(a.valHooks&&(void 0===a.valHooks[t]||!0!==a.valHooks[t].inputmaskpatch)){var n=a.valHooks[t]&&a.valHooks[t].get?a.valHooks[t].get:function(e){return e.value},s=a.valHooks[t]&&a.valHooks[t].set?a.valHooks[t].set:function(e,t){return e.value=t,e};a.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var a=n(t);return-1!==r.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==i.nullable?a:""}return n(t)},set:function(e,t){var i=s(e,t);return e.inputmask&&(0,o.applyInputValue)(e,t),i},inputmaskpatch:!0}}}(t.type),function(t){s.EventRuler.on(t,"mouseenter",(function(){var t=this.inputmask._valueGet(!0);t!==(e.isRTL?r.getBuffer.call(e).reverse():r.getBuffer.call(e)).join("")&&(0,o.applyInputValue)(this,t)}))}(t))}}(t):t.inputmask=void 0,u}(i,t);if(!1!==f){e.originalPlaceholder=i.placeholder,e.maxLength=void 0!==i?i.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in i&&null===i.getAttribute("inputmode")&&(i.inputMode=t.inputmode,i.setAttribute("inputmode",t.inputmode)),!0===f&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(i.autocomplete),l.iphone&&(t.insertModeVisual=!1),s.EventRuler.on(i,"submit",c.EventHandlers.submitEvent),s.EventRuler.on(i,"reset",c.EventHandlers.resetEvent),s.EventRuler.on(i,"blur",c.EventHandlers.blurEvent),s.EventRuler.on(i,"focus",c.EventHandlers.focusEvent),s.EventRuler.on(i,"invalid",c.EventHandlers.invalidEvent),s.EventRuler.on(i,"click",c.EventHandlers.clickEvent),s.EventRuler.on(i,"mouseleave",c.EventHandlers.mouseleaveEvent),s.EventRuler.on(i,"mouseenter",c.EventHandlers.mouseenterEvent),s.EventRuler.on(i,"paste",c.EventHandlers.pasteEvent),s.EventRuler.on(i,"cut",c.EventHandlers.cutEvent),s.EventRuler.on(i,"complete",t.oncomplete),s.EventRuler.on(i,"incomplete",t.onincomplete),s.EventRuler.on(i,"cleared",t.oncleared),!0!==t.inputEventOnly&&(s.EventRuler.on(i,"keydown",c.EventHandlers.keydownEvent),s.EventRuler.on(i,"keypress",c.EventHandlers.keypressEvent),s.EventRuler.on(i,"keyup",c.EventHandlers.keyupEvent)),(l.mobile||t.inputEventOnly)&&i.removeAttribute("maxLength"),s.EventRuler.on(i,"input",c.EventHandlers.inputFallBackEvent),s.EventRuler.on(i,"compositionend",c.EventHandlers.compositionendEvent)),s.EventRuler.on(i,"setvalue",c.EventHandlers.setValueEvent),r.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var d=(i.inputmask.shadowRoot||i.ownerDocument).activeElement;if(""!==i.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||d===i){(0,o.applyInputValue)(i,i.inputmask._valueGet(!0),t);var p=r.getBuffer.call(e).slice();!1===u.isComplete.call(e,p)&&t.clearIncomplete&&r.resetMaskSet.call(e),t.clearMaskOnLostFocus&&d!==i&&(-1===r.getLastValidPosition.call(e)?p=[]:o.clearOptionalTail.call(e,p)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&d===i||""!==i.inputmask._valueGet(!0))&&(0,o.writeBuffer)(i,p),d===i&&r.caret.call(e,i,r.seekNext.call(e,r.getLastValidPosition.call(e)))}}};var a,n=(a=i(5581))&&a.__esModule?a:{default:a},r=i(8711),o=i(7760),s=i(9716),l=i(9845),u=i(7215),c=i(6030)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,a){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=a||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),a=i.length>>>0;if(0===a)return!1;for(var n=0|t,r=Math.max(n>=0?n:a-Math.abs(n),0);re.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:i},s.insertModeVisual&&!1===s.insertMode&&t===i&&(n||i++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,i);else if(window.getSelection){if(r=document.createRange(),void 0===e.firstChild||null===e.firstChild){var c=document.createTextNode("");e.appendChild(c)}r.setStart(e.firstChild,tf&&(((i=d[t]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||m&&(m!==d[t].locator[p.alternation]&&1!=i.match.static||!0===i.match.static&&i.locator[p.alternation]&&n.checkAlternationMatch.call(r,i.locator[p.alternation].toString().split(","),m.toString().split(","))&&""!==a.getTests.call(r,t)[0].def))&&u[t]===a.getPlaceholder.call(r,t,i.match));t--)c--;return e?{l:c,def:d[c]?d[c].match:void 0}:c},t.determineNewCaretPosition=function(e,t,i){var n=this,u=this.maskset,c=this.opts;t&&(n.isRTL?e.end=e.begin:e.begin=e.end);if(e.begin===e.end){switch(i=i||c.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:r.call(n).length};break;case"ignore":e.end=e.begin=l.call(n,o.call(n));break;case"radixFocus":if(function(e){if(""!==c.radixPoint&&0!==c.digits){var t=u.validPositions;if(void 0===t[e]||t[e].input===a.getPlaceholder.call(n,e)){if(e=k||d===h)&&(h=k)}e.end=e.begin=h}}return e}},t.getBuffer=r,t.getBufferTemplate=function(){var e=this.maskset;void 0===e._buffer&&(e._buffer=a.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice()));return e._buffer},t.getLastValidPosition=o,t.isMask=s,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions={},t.p=0)},t.seekNext=l,t.seekPrevious=function(e,t){var i=this,n=e-1;if(e<=0)return 0;for(;n>0&&(!0===t&&(!0!==a.getTest.call(i,n).match.newBlockMarker||!s.call(i,n,void 0,!0))||!0!==t&&!s.call(i,n,void 0,!0));)n--;return n},t.translatePosition=u;var a=i(4713),n=i(7215);function r(e){var t=this.maskset;return void 0!==t.buffer&&!0!==e||(t.buffer=a.getMaskTemplate.call(this,!0,o.call(this),!0),void 0===t._buffer&&(t._buffer=t.buffer.slice())),t.buffer}function o(e,t,i){var a=this.maskset,n=-1,r=-1,o=i||a.validPositions;for(var s in void 0===e&&(e=-1),o){var l=parseInt(s);o[l]&&(t||!0!==o[l].generatedInput)&&(l<=e&&(n=l),l>=e&&(r=l))}return-1===n||n==e?r:-1==r||e-n-1){if(i){var s=a.getTests.call(n,e);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=a.determineTestTemplate.call(n,e,a.getTests.call(n,e)),u=a.getPlaceholder.call(n,e,l.match);return l.match.def!==u}return!1}function l(e,t,i){var n=this;void 0===i&&(i=!0);for(var r=e+1;""!==a.getTest.call(n,r).match.def&&(!0===t&&(!0!==a.getTest.call(n,r).match.newBlockMarker||!s.call(n,r,void 0,!0))||!0!==t&&!s.call(n,r,void 0,i));)r++;return r}function u(e){var t=this.opts,i=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!i||(e=Math.abs(this._valueGet().length-e)),e}},4713:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=u,t.getDecisionTaker=o,t.getMaskTemplate=function(e,t,i,a,n){var r=this,o=this.opts,c=this.maskset,f=o.greedy;n&&o.greedy&&(o.greedy=!1,r.maskset.tests={});t=t||0;var p,h,m,v,g=[],k=0;do{if(!0===e&&c.validPositions[k])m=n&&c.validPositions[k].match.optionality&&void 0===c.validPositions[k+1]&&(!0===c.validPositions[k].generatedInput||c.validPositions[k].input==o.skipOptionalPartCharacter&&k>0)?u.call(r,k,d.call(r,k,p,k-1)):c.validPositions[k],h=m.match,p=m.locator.slice(),g.push(!0===i?m.input:!1===i?h.nativeDef:s.call(r,k,h));else{m=l.call(r,k,p,k-1),h=m.match,p=m.locator.slice();var y=!0!==a&&(!1!==o.jitMasking?o.jitMasking:h.jit);(v=(v&&h.static&&h.def!==o.groupSeparator&&null===h.fn||c.validPositions[k-1]&&h.static&&h.def!==o.groupSeparator&&null===h.fn)&&c.tests[k]&&1===c.tests[k].length)||!1===y||void 0===y||"number"==typeof y&&isFinite(y)&&y>k?g.push(!1===i?h.nativeDef:s.call(r,k,h)):v=!1}k++}while(!0!==h.static||""!==h.def||t>k);""===g[g.length-1]&&g.pop();!1===i&&void 0!==c.maskLength||(c.maskLength=k-1);return o.greedy=f,g},t.getPlaceholder=s,t.getTest=c,t.getTestTemplate=l,t.getTests=d,t.isSubsetOf=f;var a,n=(a=i(2394))&&a.__esModule?a:{default:a};function r(e,t){var i=(null!=e.alternation?e.mloc[o(e)]:e.locator).join("");if(""!==i)for(;i.length0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function s(e,t,i){var a=this.opts,n=this.maskset;if(void 0!==(t=t||c.call(this,e).match).placeholder||!0===i)return"function"==typeof t.placeholder?t.placeholder(a):t.placeholder;if(!0===t.static){if(e>-1&&void 0===n.validPositions[e]){var r,o=d.call(this,e),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var l=0;l1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return a.placeholder.charAt(e%a.placeholder.length)}return t.def}return a.placeholder.charAt(e%a.placeholder.length)}function l(e,t,i){return this.maskset.validPositions[e]||u.call(this,e,d.call(this,e,t?t.slice():t,i))}function u(e,t){var i=this.opts,a=function(e,t){var i=0,a=!1;t.forEach((function(e){e.match.optionality&&(0!==i&&i!==e.match.optionality&&(a=!0),(0===i||i>e.match.optionality)&&(i=e.match.optionality))})),i&&(0==e||1==t.length?i=0:a||(i=0));return i}(e,t);e=e>0?e-1:0;var n,o,s,l=r(c.call(this,e));i.greedy&&t.length>1&&""===t[t.length-1].match.def&&t.pop();for(var u=0;u0&&"master"===s.match.newBlockMarker&&(!f.match.optionality||f.match.optionality-a<1||!f.match.newBlockMarker)||s&&!i.greedy&&s.match.optionalQuantifier&&!f.match.optionalQuantifier)&&(o=d,s=f)}return s}function c(e,t){var i=this.maskset;return i.validPositions[e]?i.validPositions[e]:(t||d.call(this,e))[0]}function f(e,t,i){function a(e){for(var t,i=[],a=-1,n=0,r=e.length;nt.alternation)for(var n=t.alternation;ne+c._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+l.mask;if(h===e&&void 0===r.matches){if(v.push({match:r,locator:o.reverse(),cd:k,mloc:{}}),!r.optionality||void 0!==u||!(c.definitions&&c.definitions[r.nativeDef]&&c.definitions[r.nativeDef].optional||n.default.prototype.definitions[r.nativeDef]&&n.default.prototype.definitions[r.nativeDef].optional))return!0;g=!0,h=e}else if(void 0!==r.matches){if(r.isGroup&&u!==r){if(r=s(t.matches[t.matches.indexOf(r)+1],o,u))return!0}else if(r.isOptional){var P=r,E=v.length;if(r=y(r,i,o,u)){if(v.forEach((function(e,t){t>=E&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),a=v[v.length-1].match,void 0!==u||!p(a,P))return!0;g=!0,h=e}}else if(r.isAlternator){var S,w=r,_=[],M=v.slice(),O=o.length,T=!1,A=i.length>0?i.shift():-1;if(-1===A||"string"==typeof A){var C,D=h,j=i.slice(),B=[];if("string"==typeof A)B=A.split(",");else for(C=0;C=c.keepStatic)&&(B=B.slice(0,1));for(var N=0;Nw.matches[0].matches.length)break;S=v.slice(),h=D,v=[];for(var G=0;G0,r=_.length>0,i=j.slice()}else r=s(w.matches[A]||t.matches[A],[A].concat(o),u);if(r)return!0}else if(r.isQuantifier&&u!==t.matches[t.matches.indexOf(r)-1])for(var q=r,z=i.length>0?i.shift():0;z<(isNaN(q.quantifier.max)?z+1:q.quantifier.max)&&h<=e;z++){var Q=t.matches[t.matches.indexOf(q)-1];if(r=s(Q,[z].concat(o),Q)){if((a=v[v.length-1].match).optionalQuantifier=z>=q.quantifier.min,a.jit=(z+1)*(Q.matches.indexOf(a)+1)>q.quantifier.jit,a.optionalQuantifier&&p(a,Q)){g=!0,h=e;break}return a.jit&&(l.jitOffset[e]=Q.matches.length-Q.matches.indexOf(a)),!0}}else if(r=y(r,i,o,u))return!0}else h++;var W,Z}for(var u=i.length>0?i.shift():0;ue)break}}if(e>-1){if(void 0===t){for(var b,x=e-1;void 0===(b=l.validPositions[x]||l.tests[x])&&x>-1;)x--;void 0!==b&&x>-1&&(m=function(e,t){var i,a=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(a=u.call(o,e,t.slice()).locator.slice()).length&&(a=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===a.length?(i=e.alternation,a=e.locator.slice()):e.locator[i]&&-1===a[i].toString().indexOf(e.locator[i])&&(a[i]+=","+e.locator[i]))}))),a}(x,b),k=m.join(""),h=x)}if(l.tests[e]&&l.tests[e][0].cd===k)return l.tests[e];for(var P=m.shift();Pe)break}}return(0===v.length||g)&&v.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:k}),void 0!==t&&l.tests[e]?r=s.extend(!0,[],v):(l.tests[e]=s.extend(!0,[],v),r=l.tests[e]),v.forEach((function(e){e.match.optionality=!1})),r}},7215:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=l,t.checkAlternationMatch=function(e,t,i){for(var a,n=this.opts.greedy?t:t.slice(0,1),r=!1,o=void 0!==i?i.split(","):[],s=0;s=o.getBuffer.call(u).length&&h>=i.end&&(i.end=h+1);t===r.default.BACKSPACE?i.end-i.begin<1&&(i.begin=o.seekPrevious.call(u,i.begin)):t===r.default.DELETE&&i.begin===i.end&&(i.end=o.isMask.call(u,i.end,!0,!0)?i.end+1:o.seekNext.call(u,i.end)+1);if(!1!==(p=v.call(u,i))){if(!0!==a&&!1!==f.keepStatic||null!==f.regex&&-1!==n.getTest.call(u,i.begin).match.def.indexOf("|")){var m=l.call(u,!0);if(m){var g=void 0!==m.caret?m.caret:m.pos?o.seekNext.call(u,m.pos.begin?m.pos.begin:m.pos):o.getLastValidPosition.call(u,-1,!0);(t!==r.default.DELETE||i.begin>g)&&i.begin}}!0!==a&&(c.p=t===r.default.DELETE?i.begin+p:i.begin,c.p=o.determineNewCaretPosition.call(u,{begin:c.p,end:c.p},!1,!1===f.insertMode&&t===r.default.BACKSPACE?"none":void 0).begin)}},t.isComplete=c,t.isSelection=f,t.isValid=d,t.refreshFromBuffer=h,t.revalidateMask=v;var a,n=i(4713),r=(a=i(5581))&&a.__esModule?a:{default:a},o=i(8711),s=i(6030);function l(e,t,i,a,r,s){var u,c,f,p,h,m,v,g,k,y,b,x=this,P=this.dependencyLib,E=this.opts,S=x.maskset,w=P.extend(!0,{},S.validPositions),_=P.extend(!0,{},S.tests),M=!1,O=!1,T=void 0!==r?r:o.getLastValidPosition.call(x);if(s&&(y=s.begin,b=s.end,s.begin>s.end&&(y=s.end,b=s.begin)),-1===T&&void 0===r)u=0,c=(p=n.getTest.call(x,u)).alternation;else for(;T>=0;T--)if((f=S.validPositions[T])&&void 0!==f.alternation){if(p&&p.locator[f.alternation]!==f.locator[f.alternation])break;u=T,c=S.validPositions[u].alternation,p=f}if(void 0!==c){v=parseInt(u),S.excludes[v]=S.excludes[v]||[],!0!==e&&S.excludes[v].push((0,n.getDecisionTaker)(p)+":"+p.alternation);var A=[],C=-1;for(h=v;h=b)&&A.push(m.input),delete S.validPositions[h];for(-1===C&&void 0!==t&&(A.push(t),C=A.length-1);void 0!==S.excludes[v]&&S.excludes[v].length<10;){for(S.tests={},o.resetMaskSet.call(x,!0),M=!0,h=0;ht:e.end-e.begin>t}function d(e,t,i,a,r,s,p){var g=this,k=this.dependencyLib,y=this.opts,b=g.maskset;i=!0===i;var x=e;function P(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return t.pos-e.pos})).forEach((function(e){v.call(g,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return e.pos-t.pos})).forEach((function(e){""!==e.c&&d.call(g,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:a)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;h.call(g,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(x=e.rewritePosition,e=!0)}return e}function E(t,i,r){var s=!1;return n.getTests.call(g,t).every((function(l,c){var d=l.match;if(o.getBuffer.call(g,!0),!1!==(s=(!d.jit||void 0!==b.validPositions[o.seekPrevious.call(g,t)])&&(null!=d.fn?d.fn.test(i,b,t,r,y,f.call(g,e)):(i===d.def||i===y.skipOptionalPartCharacter)&&""!==d.def&&{c:n.getPlaceholder.call(g,t,d,!0)||d.def,pos:t}))){var p=void 0!==s.c?s.c:i,h=t;return p=p===y.skipOptionalPartCharacter&&!0===d.static?n.getPlaceholder.call(g,t,d,!0)||d.def:p,!0!==(s=P(s))&&void 0!==s.pos&&s.pos!==t&&(h=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c?!1:(!1===v.call(g,e,k.extend({},l,{input:u.call(g,p,d,h)}),a,h)&&(s=!1),!1)}return!0})),s}void 0!==e.begin&&(x=g.isRTL?e.end:e.begin);var S=!0,w=k.extend(!0,{},b.validPositions);if(!1===y.keepStatic&&void 0!==b.excludes[x]&&!0!==r&&!0!==a)for(var _=x;_<(g.isRTL?e.begin:e.end);_++)void 0!==b.excludes[_]&&(b.excludes[_]=void 0,delete b.tests[_]);if("function"==typeof y.preValidation&&!0!==a&&!0!==s&&(S=P(S=y.preValidation.call(g,o.getBuffer.call(g),x,t,f.call(g,e),y,b,e,i||r))),!0===S){if(S=E(x,t,i),(!i||!0===a)&&!1===S&&!0!==s){var M=b.validPositions[x];if(!M||!0!==M.match.static||M.match.def!==t&&t!==y.skipOptionalPartCharacter){if(y.insertMode||void 0===b.validPositions[o.seekNext.call(g,x)]||e.end>x){var O=!1;if(b.jitOffset[x]&&void 0===b.validPositions[o.seekNext.call(g,x)]&&!1!==(S=d.call(g,x+b.jitOffset[x],t,!0,!0))&&(!0!==r&&(S.caret=x),O=!0),e.end>x&&(b.validPositions[x]=void 0),!O&&!o.isMask.call(g,x,y.keepStatic&&0===x))for(var T=x+1,A=o.seekNext.call(g,x,!1,0!==x);T<=A;T++)if(!1!==(S=E(T,t,i))){S=m.call(g,x,void 0!==S.pos?S.pos:T)||S,x=T;break}}}else S={caret:o.seekNext.call(g,x)}}!1!==S||!y.keepStatic||!c.call(g,o.getBuffer.call(g))&&0!==x||i||!0===r?f.call(g,e)&&b.tests[x]&&b.tests[x].length>1&&y.keepStatic&&!i&&!0!==r&&(S=l.call(g,!0)):S=l.call(g,x,t,i,a,void 0,e),!0===S&&(S={pos:x})}if("function"==typeof y.postValidation&&!0!==a&&!0!==s){var C=y.postValidation.call(g,o.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,S,y,b,i,p);void 0!==C&&(S=!0===C?S:C)}S&&void 0===S.pos&&(S.pos=x),!1===S||!0===s?(o.resetMaskSet.call(g,!0),b.validPositions=k.extend(!0,{},w)):m.call(g,void 0,x,!0);var D=P(S);void 0!==g.maxLength&&(o.getBuffer.call(g).length>g.maxLength&&!a&&(o.resetMaskSet.call(g,!0),b.validPositions=k.extend(!0,{},w),D=!1));return D}function p(e,t,i){for(var a=this.maskset,r=!1,o=n.getTests.call(this,e),s=0;s0&&!r.validPositions[e];e--);for(var l=e;le+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return n&&r}return!1}var f=0,h=void 0!==e.begin?e.begin:e,m=void 0!==e.end?e.end:e,v=!0;if(e.begin>e.end&&(h=e.end,m=e.begin),a=void 0!==a?a:h,h!==m||l.insertMode&&void 0!==s.validPositions[a]&&void 0===i||void 0===t||t.match.optionalQuantifier||t.match.optionality){var g,k=u.extend(!0,{},s.validPositions),y=o.getLastValidPosition.call(r,void 0,!0);for(s.p=h,g=y;g>=h;g--)delete s.validPositions[g],void 0===t&&delete s.tests[g+1];var b,x,P=a,E=P;for(t&&(s.validPositions[a]=u.extend(!0,{},t),E++,P++),g=t?m:m-1;g<=y;g++){if(void 0!==(b=k[g])&&!0!==b.generatedInput&&(g>=m||g>=h&&c(g,k,{begin:h,end:m}))){for(;""!==n.getTest.call(r,E).match.def;){if(!1!==(x=p.call(r,E,b,l))||"+"===b.match.def){"+"===b.match.def&&o.getBuffer.call(r,!0);var S=d.call(r,E,b.input,"+"!==b.match.def,!0);if(v=!1!==S,P=(S.pos||E)+1,!v&&x)break}else v=!1;if(v){void 0===t&&b.match.static&&g===e.begin&&f++;break}if(!v&&o.getBuffer.call(r),E>s.maskLength)break;E++}""==n.getTest.call(r,E).match.def&&(v=!1),E=P}if(!v)break}if(!v)return s.validPositions=u.extend(!0,{},k),o.resetMaskSet.call(r,!0),!1}else t&&n.getTest.call(r,a).match.cd===t.match.cd&&(s.validPositions[a]=u.extend(!0,{},t));return o.resetMaskSet.call(r,!0),f}},2047:function(t){t.exports=e},5581:function(e){e.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"Z":90,"CONTROL":17,"PAUSE/BREAK":19,"WINDOWS_LEFT":91,"WINDOWS_RIGHT":92,"KEY_229":229}')}},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,a),r.exports}var n={};return function(){var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,i=(t=a(3046))&&t.__esModule?t:{default:t};a(443);var r=i.default;e.default=r}(),n}()})); \ No newline at end of file diff --git a/local/templates/evolution/js/main.js b/local/templates/evolution/js/main.js index 3642073..26640fb 100644 --- a/local/templates/evolution/js/main.js +++ b/local/templates/evolution/js/main.js @@ -52,11 +52,13 @@ function init() if(cookies != 'true') { $("#cookie").show(); + $("footer").find(".container").addClass("cookie_spacer"); } $('#cookie .close').click(function() { - $('#cookie').hide(); + $('#cookie').hide(); + $(".cookie_spacer").removeClass("cookie_spacer"); setCookie('Policy', 'true', '365', '/'); });