templates/Slivki/offers/details.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ parent() }}{{ currentPage is defined and currentPage != 1 ? ' - Страница №' ~ currentPage }}{% endblock %}
  3. {% block messenger %}{% endblock %}
  4. {% block stylesheets %}
  5.     <link rel="stylesheet" href="/css/statistics_modal.css?v=4"/>
  6.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css"/>
  7.     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css">
  8.     <link rel="stylesheet" href="/admin/plugins/datetimepicker/css/bootstrap-datetimepicker.min.css">
  9.     <link rel="stylesheet" href="/admin/plugins/datatables/jquery.dataTables.min.css"/>
  10.     <link rel="stylesheet" href="/admin/plugins/colorpicker/bootstrap-colorpicker.min.css"/>
  11.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.css">
  12.     <link rel="stylesheet" href="/css/swiper/swiper.min.css"/>
  13.     <link href="/css/bootstrap3.3.6.min.css" type="text/css" rel="stylesheet">
  14.     <link rel="stylesheet"
  15.           href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/css/bootstrap-datetimepicker-standalone.min.css"
  16.           integrity="sha512-L0/PNISezIYAoqFXBGP9EJ4qLH8XF356+Lo92vzloQqk7HUpZ4FN1x1dUOnsUAUjHTSxXxeaD0HXfrANhtJOEA=="
  17.           crossorigin="anonymous" referrerpolicy="no-referrer"/>
  18.     {{ parent() }}
  19.     <link href="/css/offers.min.css?v={{ offers_css }}" rel="stylesheet" type="text/css"/>
  20.     <link href="/css/foodForGift.css?v={{ food_for_gift_css }}" rel="stylesheet" type="text/css"/>
  21.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
  22.           integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw=="
  23.           crossorigin="anonymous" referrerpolicy="no-referrer"/>
  24. {% endblock %}
  25. {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  26. {% set subscribed = app.user and isSubscriber(app.user) %}
  27.     {% block ogimage %}
  28.         {% if detailMediaList|length > 0 %}
  29.             <meta property="og:image"
  30.                   content="{{ app.request.getSchemeAndHttpHost() }}{{ getImageURL(detailMediaList|first, 522, 322) }}"/>
  31.             <meta property="og:image:width" content="522"/>
  32.             <meta property="og:image:height" content="322"/>
  33.         {% else %}
  34.             {{ parent() }}
  35.         {% endif %}
  36.     {% endblock %}
  37. {% block header %}
  38.     {% embed 'header.html.twig' %}
  39.         {% block headerTopMenu %}
  40.             {{ parent() }}
  41.         {% endblock %}
  42.     {% endembed %}
  43. {% endblock %}
  44. {% block mainColumnClass %} one-column bg-white{% endblock %}
  45. {% block main_content %}
  46.     {% set isPickupEnabled = offer.getOnlineOrderSettings().isPickupEnabled() is defined ? offer.getOnlineOrderSettings().isPickupEnabled() %}
  47.     {% set isDeliveryEnabled = offer.getOnlineOrderSettings().isDeliveryEnabled() is defined ? offer.getOnlineOrderSettings().isDeliveryEnabled() %}
  48.     {% set ratingWithCount = getEntityRatingWithCount(constant('Slivki\\Entity\\Category::OFFER_CATEGORY_ID'), offer.getID()) %}
  49.     {% if isPickupEnabled or isDeliveryEnabled %}
  50.         <input id="deliveryMethodEnabled" type="hidden" value="{{ isDeliveryEnabled == '' ? '2' : '1' }}">
  51.     {% endif %}
  52.     <input id="offerID" type="hidden" value="{{ offer.getID() }}">
  53.     <input id="isMedicalCenter" type="hidden"
  54.            value="{{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID') }}">
  55.     <input type="hidden" id="stock-id" value="{{ offer.getID() }}">
  56.     <input type="hidden" id="stock-link" value="{{ app.request.getSchemeAndHttpHost() ~ app.request.getRequestUri() }}">
  57.     {% if subscribed %}
  58.         <input id="allowedCodesCountBySubscription" type="hidden" value="{{ allowedCodesCountBySubscription }}">
  59.     {% endif %}
  60.     {% if app.user %}
  61.         <input id="splitTotalCodesCountByUser" type="hidden" value="{{ app.user.getCodesCountByOffer(offer) }}">
  62.         <input type="hidden" id="customerID" value="{{ app.user.getID() }}"/>
  63.     {% endif %}
  64.     <input type="hidden" id="codeCost" value="{{ codeCost }}">
  65.     <input type="hidden" class="buyOrderAmount form-element" type="text"
  66.            value="{{ codeCost }}"/>
  67.     <div class="content-wrapper">
  68.         <div class="content-wrapper-offers" itemscope itemtype="https://schema.org/Product">
  69.             <div class="d-flex pb-2" style="padding: 10px 34px;">
  70.                 <div class="col-6">
  71.                     {% include 'Slivki/breadcrumbs.html.twig' with { 'parentCategoryList': parentCategoryList, 'supplierCategoryData': offer.getSupplierCategoryData() } only %}
  72.                 </div>
  73.                 <div class="col-6">
  74.                     <p class="color-violet text-end cursor-pointer" data-toggle="modal"
  75.                        data-target="{{ app.user ? '#complaintModal' : '.modal-auth' }}">
  76.                         Пожаловаться на акцию</p>
  77.                 </div>
  78.             </div>
  79.             <h3 class="offers-tittle" style="color: {{ offer.getTitleFontColor() }};">{{ offer.getTitle()|raw }}</h3>
  80.             <div class="content-offers-top pb-0">
  81.                 <div class="left-top-block">
  82.                     {% if app.user() and not pastOffer %}
  83.                         <div class="button-add-follow fovoutite-block"
  84.                              onclick="onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})"
  85.                              data-html="true"
  86.                              data-toggle="tooltip"
  87.                              data-placement="top"
  88.                              data-original-title="Добавить в <br> избранное"
  89.                         >
  90.                             <img src="{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}">
  91.                         </div>
  92.                     {% endif %}
  93.                     <div class="content-wrapper-carousel position-relative" style="margin-bottom: 28px">
  94.                         <div class="stock-image">
  95.                             <div id="offerImageSlider" class="m-0 swiper-container">
  96.                                 {% if is_granted('ROLE_ADMIN') and not offer.isWithoutCodes() %}
  97.                                     <div id="statisticsButton" data-toggle="modal" data-target="#statisticOffersPopup">
  98.                                         <img width="37" height="37" src="/images/statistics.png"/>
  99.                                     </div>
  100.                                 {% endif %}
  101.                                 <div class="swiper-wrapper"
  102.                                      data-pixel={{ offer.getID() == constant('Slivki\\Entity\\Offer::BETERA_OFFER_ID') ? 'https://amc.yandex.ru/show?cmn_id=26372&plt_id=194140&crv_id=464042&evt_t=render&ad_type=banner&rnd=%system.random%' }}>
  103.                                     {% set medias = detailMediaList %}
  104.                                     {% set mediaCount = medias|length %}
  105.                                     {% if mediaCount > 1 %}
  106.                                         {% for media in medias %}
  107.                                             <div class="swiper-slide">
  108.                                                 {% if media.isYoutube() %}
  109.                                                     <input class="js-src-video" type="hidden"
  110.                                                            value="https://www.youtube.com/embed/{{ media.getName() }}">
  111.                                                 {% else %}
  112.                                                     <img class="img-fluid lazyload" alt="{{ media.getDescription() }}"
  113.                                                          src="{{ getImageURL(media, 1044, 644) }}"/>
  114.                                                 {% endif %}
  115.                                             </div>
  116.                                         {% endfor %}
  117.                                     {% elseif mediaCount == 1 %}
  118.                                         <div>
  119.                                             <img class="img-fluid lazyload" alt="{{ medias[0].getDescription() }}"
  120.                                                  src="{{ getImageURL(medias[0], 1044, 644) }}"/>
  121.                                         </div>
  122.                                     {% endif %}
  123.                                 </div>
  124.                                 {% if mediaCount > 1 %}
  125.                                     <div class="swiper-pagination mt-2"></div>
  126.                                     <div class="swiper-button-next"></div>
  127.                                     <div class="swiper-button-prev"></div>
  128.                                 {% endif %}
  129.                             </div>
  130.                         </div>
  131.                         {% if not offer.isWithoutCodes() %}
  132.                             <div class="discount-block">
  133.                                 {{ offer.getDiscount() }}
  134.                             </div>
  135.                         {% endif %}
  136.                         {% if offer.isWithoutCodes() %}
  137.                             <div class="button-add-follow button-add-follow-teaser fovoutite-block"
  138.                                  onclick="onFavouriteClickOffer({{ offer.getID() }}, {{ isOfferFavourite ? 'true' : 'false' }})"
  139.                                  data-html="true"
  140.                                  data-toggle="tooltip"
  141.                                  data-placement="top"
  142.                                  data-original-title="Добавить в <br> избранное"
  143.                             >
  144.                                 <img src="{{ isOfferFavourite ? '/images/heart_active.svg' : '/images/offers/follow.svg' }}">
  145.                             </div>
  146.                         {% endif %}
  147.                     </div>
  148.                 </div>
  149.                 <div class="right-top-block">
  150.                     <div class="offers-description">
  151.                         {% if pastOffer or offer.getFreeCodesCount() == 0 %}
  152.                             <div class="past-offer mt-5 pt-5">
  153.                                 <i class="slivki-icon-minus-circled"></i>
  154.                                 <p>Упс, акция завершена!</p>
  155.                                 <a href="#offersConditions" class="buttons-link-offers">
  156.                                     Условия
  157.                                 </a>
  158.                                 <a href="#conditionAddress" class="buttons-link-offers">
  159.                                     Адрес, телефоны
  160.                                 </a>
  161.                                 <a href="#offersReview" class="buttons-link-offers">
  162.                                     Отзывы
  163.                                 </a>
  164.                             </div>
  165.                         {% else %}
  166.                             {% if not offer.isInFreeCodesCategory() and not offer.isWithoutCodes() %}
  167.                                 <div class="d-flex statistic-block {% if is_granted('ROLE_ADMIN') %}justify-content-between{% endif %} col px-2 my-0">
  168.                                     <p class="text-dark-violet font-size-0750 text-end w-auto"
  169.                                        data-toggle="tooltip"
  170.                                        data-html="true" data-placement="top"
  171.                                        data-original-title="Кол-во продаж к кол-ву просмотров. <br> Конверсия за 30 дней">
  172.                                         Конверсия {{ getOfferConversion(offer.getID()) }}%</p>
  173.                                 </div>
  174.                             {% endif %}
  175.                             {% if not offer.isWithoutCodes() %}
  176.                                 <div class="d-flex offers-description--item">
  177.                                     <div class="col">
  178.                                         <p class="color-dark-gray px-0 mb-0">Взято всего:</p>
  179.                                     </div>
  180.                                     <div class="col font-bold text-end">
  181.                                         <p> {{ multiplePoolOfferUsedCodesCount is defined ? multiplePoolOfferUsedCodesCount : usedCodesCount }}
  182.                                             {{ ['промокод', 'промокода', 'промокодов']|plural(usedCodesCount) }}
  183.                                             из {{ allCodesCount }}</p>
  184.                                     </div>
  185.                                 </div>
  186.                                 <div class="d-flex px-2 my-0">
  187.                                     <div class="col">
  188.                                         <p class="color-dark-gray mb-0">Взято сутки/месяц:</p>
  189.                                     </div>
  190.                                     <div class="col font-bold text-end pl-2">
  191.                                         <p>{{ todayPurchaseCount }}
  192.                                             /{{ getOfferMonthlyPurchaseCount(offer.getID(), 30) > 0 ? getOfferMonthlyPurchaseCount(offer.getID(), 30) : 0 }} {{ ['промокод', 'промокода', 'промокодов']|plural(todayPurchaseCount) }}
  193.                                         </p>
  194.                                     </div>
  195.                                 </div>
  196.                             {% endif %}
  197.                             <div class="d-flex {{ offer.isWithoutCodes() ? 'pl-2' : 'offers-description--item' }}">
  198.                                 <div class="col">
  199.                                     <p class="color-dark-gray">Просмотров сутки/месяц:</p>
  200.                                 </div>
  201.                                 <div class="col font-bold text-end">
  202.                                     <p>{{ todayVisitCount }}/{{ visitCount }}</p>
  203.                                 </div>
  204.                             </div>
  205.                             {% if not offer.isWithoutCodes() %}
  206.                                 <div class="d-flex px-2 my-0">
  207.                                     <div class="col">
  208.                                         <p class="color-dark-gray">До завершения:&nbsp;</p>
  209.                                     </div>
  210.                                     <div class="col text-end">
  211.                                         {% if freeCodesCount > 0 %}
  212.                                             <input type="hidden" id="daysLeft" value="{{ daysLeft }} &nbsp;"/>
  213.                                             <input type="hidden" id="hoursLeft" value="{{ hoursLeft }} &nbsp;"/>
  214.                                             <input type="hidden" id="minutesLeft" value="{{ minutesLeft }} &nbsp;"/>
  215.                                             <input type="hidden" id="secondsLeft"
  216.                                                    value="{{ offer.getActiveTill().diff(date()).format('%s') }}"/>
  217.                                             <span id="days">{{ daysLeft }}
  218.                                             &nbsp</span>{{ ['день', 'дня', 'дней']|plural(daysLeft) }},&nbsp;
  219.                                             <span id="hours">{{ hoursLeft }}&nbsp</span>час{{ ['', 'а', 'ов']|plural(hoursLeft) }}&nbsp;
  220.                                         {% endif %}
  221.                                     </div>
  222.                                 </div>
  223.                             {% endif %}
  224.                             <div class="d-flex offers-description--item js-to-review-block">
  225.                                 <div class="col">
  226.                                     <p class="color-dark-gray">Отзывы/оценка:</p>
  227.                                 </div>
  228.                                 <div class="col font-bold text-end">
  229.                                     <p>{{ commentsAmount }} /
  230.                                         <r data-html="true"
  231.                                            data-toggle="tooltip"
  232.                                            data-placement="top"
  233.                                            data-original-title="Рейтинг компании <br> за 90 дней">
  234.                                             <span class="yellow-span">★</span>{{ offer.getRating() }}</r>
  235.                                     </p>
  236.                                 </div>
  237.                             </div>
  238.                             <div class="d-flex offer-price-block">
  239.                                 <div class="col px-2">
  240.                                     <p class="color-dark-gray">Стоимость:</p>
  241.                                 </div>
  242.                                 <div class="col text-end">
  243.                                     <span id="offerRegularPrice"
  244.                                           class="regular-price">{{ offer.getRegularPrice() }}</span>
  245.                                     <span class="discount-price">&nbsp;&nbsp;{{ offer.getOfferPrice()|replace({'(': '<span id="details-offer-price">(', ')': ')</span>'})|raw }}</span>
  246.                                 </div>
  247.                             </div>
  248.                             {% if offer.isWithoutCodes() %}
  249.                                 <a href="/moya_akciya" target="_blank">
  250.                                     <img class="mt-2" src="/images/платидари.png" style="border-radius: 8px"/>
  251.                                 </a>
  252.                             {% endif %}
  253.                         {% endif %}
  254.                     </div>
  255.                     {% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
  256.                         <div class="buttons-wrapper-offers">
  257.                             <a id="deliveryBtn" href="{{ offer.getOnlineRegistrationLink() }}" style="margin: 14px 0;"
  258.                                class="online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  259.                                 Онлайн-запись
  260.                             </a>
  261.                         </div>
  262.                     {% endif %}
  263.                         {% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
  264.                     <div class="d-flex" style="min-height: 90px;align-items: end;">
  265.                         <div class="buttons-wrapper-offers">
  266.                             {% if hasDelivery is defined %}
  267.                                 {% if not offer.isBuyCodeDisable() %}
  268.                                     {% include 'Slivki/offers/buy_button.html.twig' %}
  269.                                 {% endif %}
  270.                                 {% if offer.isFoodOnlineOrderAllowedOnSite() %}
  271.                                     <a id="deliveryBtn" href="{{ getLinkFoodOnlineOrder(offer) }}"
  272.                                        class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  273.                                         <div style="flex-direction: column;">
  274.                                             <p>Заказать онлайн {{ offer.getDiscount() }}</p>
  275.                                             {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) or
  276.                                                 offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY'))%}
  277.                                            <p style="text-transform: math-auto;">доступна оплата SlivkiPay + 5%</p>
  278.                                                 {% endif %}
  279.                                         </div>
  280.                                     </a>
  281.                                 {% endif %}
  282.                                 {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
  283.                                     {% if offer.getID() == constant('Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
  284.                                         <a id="deliveryBtn" href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  285.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  286.                                             Получить скидку {{ offer.getDiscount() }}
  287.                                         </a>
  288.                                     {% elseif offer.getID() in constant('Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS') %}
  289.                                         <a id="deliveryBtn2"
  290.                                            href="{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}"
  291.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  292.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  293.                                         </a>
  294.                                     {% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
  295.                                         <a id="deliveryBtn" href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  296.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  297.                                             <div style="flex-direction: column;">
  298.                                                 <p>Оплатить онлайн {{ offer.getDiscount() }}</p>
  299.                                                 {% if offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) %}
  300.                                                     <p style="text-transform: math-auto;">доступна оплата SlivkiPay + 5%</p>
  301.                                                 {% endif %}
  302.                                             </div>
  303.                                         </a>
  304.                                     {% endif %}
  305.                                 {% endif %}
  306.                                 {% if offer.isTireOnlineOrderAllowedOnSite() %}
  307.                                     <a id="deliveryBtn" href="{{ offer.getOnlineRegistrationLink() }}"
  308.                                        class="online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  309.                                         Онлайн-запись
  310.                                     </a>
  311.                                 {% endif %}
  312.                             {% elseif isAllowedByOnlyCode %}
  313.                                 <div class="col">
  314.                                     {% include 'Slivki/offers/buy_button.html.twig' %}
  315.                                 </div>
  316.                             {% endif %}
  317.                             {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
  318.                             <div class="col mb-2">
  319.                                     <a class="button-gift" data-toggle="modal" data-target="#choiceGiftModal">
  320.                                         <div class="button-gift-text">
  321.                                             <p>ЕДА В ПОДАРОК 😋</p>
  322.                                             <p>Подарю сам или подарят мне</p>
  323.                                         </div>
  324.                                         <div class="button-gift-item-button">
  325.                                             <div class="new">NEW</div>
  326.                                         </div>
  327.                                     </a>
  328.                                 </div>
  329.                         </div>
  330.                             {% endif %}
  331.                             {% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE')) %}
  332.                                 <div class="col mb-3" style="width: 350px;margin: 0 auto">
  333.                                 </div>
  334.                             {% endif %}
  335.                             {% endif %}
  336.                         </div>
  337.                     </div>
  338.                 </div>
  339.             </div>
  340.             <div id="conditions_offers" class="d-flex" style="{{ pastOffer ? 'display: none!important' : '' }}">
  341.                 <div class="content-wrapper-col-left pt-0">
  342.                     <div id="offersConditions" class="offers-conditions active" style="max-height: fit-content;">
  343.                         <div class="offer-titles mb-2 mt-0"><h2>Условия</h2></div>
  344.                         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  345.                         <div id="startOfOfferCondition"></div>
  346.                         {% if offer.getID() != 239232 %}
  347.                         {% endif %}
  348.                         {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  349.                             <p>
  350.                                 {% set codeTill = offer.getCodeActiveTill() %}
  351.                                 {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  352.                                 {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  353.                                 {% if not offer.isHideFeatures() %}
  354.                                     - Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
  355.                                     <br/>
  356.                                 {% endif %}
  357.                                 {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  358.                                     - Стоимость промокода: {{ codeCost }} руб.
  359.                                 {% endif %}
  360.                             </p>
  361.                         {% endif %}
  362.                         <div class="offer-details-conditions offers-conditions p-0">
  363.                             {{ offer.getConditions()|raw }}
  364.                             {# Таблица с прейскурантом для акции с квестами "Ящик Пандоры" #}
  365.                             {% if offer.getID() == 143528 %}
  366.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  367.                             {% elseif offer.getID() == 282234 %}
  368.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  369.                             {% endif %}
  370.                             {% if not offer.isWithoutCodes() %}
  371.                                 {% include "Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig" %}
  372.                             {% endif %}
  373.                             {% if not offer.isHideFeatures() %}
  374.                                 </br>
  375.                                 <div class="offer-titles mb-2 mt-0"><h2>Особенности</h2></div>
  376.                                 <div class="offer-details-conditions">
  377.                                     {% if not offer.isWithoutCodes() %}
  378.                                         - Скидка предоставляется только при наличии промокода.
  379.                                     {% endif %}
  380.                                     {{ offer.getFeatures()|raw }}
  381.                                 </div>
  382.                                 - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  383.                             {% endif %}
  384.                         </div>
  385.                         <div id="endOfOfferCondition"></div>
  386.                         <div class="clear"></div>
  387.                     </div>
  388.                     {% if offer.getShopMedias()|length > 0 %}
  389.                         <div class="offer-titles mb-2 mt-0"><h2>Галерея</h2></div>
  390.                     {% endif %}
  391.                     <div id="offerConditionsSlider"
  392.                          class="my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}">
  393.                         {% if offer.getShopMedias()|length > 0 %}
  394.                             <div class="screenshot-container">
  395.                                 {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  396.                                     <div class="screenshot screenshot-story" data-toggle="modal"
  397.                                          data-target="#detailsStoryPopup">
  398.                                         <img src="{{ galleryVideos.getImageUrl() }}" width="300"
  399.                                              alt="Видео" border="0"/>
  400.                                         <div class="screenshot-story-btn"></div>
  401.                                         <div class="screenshot-story-tittle">{{ galleryVideos.getTitle() }}</div>
  402.                                     </div>
  403.                                 {% endif %}
  404.                                 {% for media in offer.getShopMedias() %}
  405.                                     <div class="screenshot">
  406.                                         <a href="{{ getImageURL(media, 0, 0) }}" title="{{ media.getDescription() }}"
  407.                                            data-lightbox="image">
  408.                                             <img src="{{ getImageURL(media, 300, 0) }}" width="300"
  409.                                                  alt="{{ media.getDescription() }}" border="0"/>
  410.                                         </a>
  411.                                     </div>
  412.                                 {% endfor %}
  413.                             </div>
  414.                         {% endif %}
  415.                     </div>
  416.                     <div id="examplesOfWorksBlock" class="">
  417.                         <div class="headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header">
  418.                             <div class="offer-titles"><h5 class="m-0">Фото
  419.                                     работ{# <div class="example-of-works-count-container"><span>1234</span></div> #}</h5>
  420.                             </div>
  421.                             <div class="examples-works-tooltip-filter">
  422.                                 <div class="tooltip-content">
  423.                                     <div class="tooltip-title border-bottom-f d-flex">Показать сначала:</div>
  424.                                     {% for key,sortItem in constant('Slivki\\Paginator\\WorkExample\\WorkExamplePaginatorInterface::SORT') %}
  425.                                         <div class="radio">
  426.                                             <input id="filter{{ key }}" type="radio" name="filter"
  427.                                                    data-direction="{{ sortItem.direction }}"
  428.                                                    value="{{ sortItem.field }}" {{ loop.first ? 'checked' }}>
  429.                                             <label for="filter{{ key }}"
  430.                                                    class="cursor-pointer">{{ sortItem.name }}</label>
  431.                                         </div>
  432.                                     {% endfor %}
  433.                                     <div class="tooltip-title border-top-f d-flex">Диапазон цены:</div>
  434.                                     <div id="workExamplePriceRangeInputs" class="price-range-inputs d-flex">
  435.                                         <div class="price-range-input"><input type="number" placeholder="Цена от"
  436.                                                                               id="priceFrom" name="priceFrom" min="0"
  437.                                                                               max="199" step="1"></div>
  438.                                         <div class="price-range-input"><input type="number" placeholder="Цена до"
  439.                                                                               id="priceTo" name="priceTo" min="0"
  440.                                                                               max="200" step="1"></div>
  441.                                     </div>
  442.                                     <div id="workExampleRangeSlider" class="range-slider">
  443.                                         <div class="range-labels">
  444.                                             <span id="workSimplesRangeLableStart"
  445.                                                   class="range-label range-label-start"></span>
  446.                                             <span>-</span>
  447.                                             <span id="workSimplesRangeLableEnd"
  448.                                                   class="range-label range-label-end"></span>
  449.                                         </div>
  450.                                         <input class="work-simples-input" type="range" name="startRange"
  451.                                                id="startRange">
  452.                                         <input class="work-simples-input" type="range" name="finishRange"
  453.                                                id="finishRange">
  454.                                         <div class="track-wrapper">
  455.                                             <div class="track"></div>
  456.                                             <div id="workSimplesSliderBetween" class="range-between"></div>
  457.                                             <div id="workSimplesTumbLeft" class="thumb left"></div>
  458.                                             <div id="workSimplesTumbRight" class="thumb right"></div>
  459.                                         </div>
  460.                                     </div>
  461.                                     <div id="buttonFilterBoxExamplesWork" class="buttonFilterBox">Показать</div>
  462.                                 </div>
  463.                                 <div id="buttonFilterBoxExamplesWork" class="d-flex cursor-pointer">Сортировка<img
  464.                                             width="25" class="pl-2" src="/images/sort_image.svg"/></div>
  465.                             </div>
  466.                         </div>
  467.                         {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  468.                     </div>
  469.                     <div id="beautyMastersBlock" class="beauty-masters-container beauty-masters-offer desk">
  470.                         <div id="beautyMastersHeader"
  471.                              class="tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none"><h2>
  472.                                 {{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</h2>
  473.                         </div>
  474.                         {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  475.                     </div>
  476.                     <div id="offersDescription" class="offers-conditions mt-3">
  477.                         {% if offer.isShowProductsInOfferDescription() %}
  478.                             <div id="foodItemsBlock">
  479.                                 <div class="offer-titles mb-2 mt-0"><h2>Описание</h2></div>
  480.                                 {% if isPickupEnabled and isDeliveryEnabled %}
  481.                                     <div id="fixedFiltersOffer" class="w-auto px-2 d-flex"
  482.                                          style="position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;">
  483.                                         <div class="col d-flex align-items-center text-white justify-content-end px-0"></div>
  484.                                         <div class="switch-delivery-pickup-block px-0 ">
  485.                                             <a data-type-delivery="1"
  486.                                                class="switch-delivery-pickup-item button-tab-delivery delivery-type active">
  487.                                                 <p class="m-0">Доставка</p>
  488.                                                 <small>удобно👌</small>
  489.                                             </a>
  490.                                             <a data-type-delivery="2"
  491.                                                class="switch-delivery-pickup-item pickup-type button-tab-pickup">
  492.                                                 <p class="m-0"> Самовывоз</p>
  493.                                                 <small>еще дешевле🔥</small>
  494.                                             </a>
  495.                                         </div>
  496.                                     </div>
  497.                                 {% endif %}
  498.                                 <div id="foodBlock"></div>
  499.                                 <div id="foodOptionsBlock"></div>
  500.                             </div>
  501.                         {% endif %}
  502.                         <div class="description" id="descriptionText">
  503.                             {% for offerDescription in offer.getDescriptionList() %}
  504.                                 {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  505.                                 {% if offerDescriptionSliderImages|length > 0 %}
  506.                                     <div class="sale-description-carousel">
  507.                                         <div id="saleDescriptionSliderFor{{ offerDescription.getID() }}"
  508.                                              class="sale-description-slider-for">
  509.                                             {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  510.                                                 <div><img data-lazy="{{ offerDescriptionSliderImage.getImageUrl() }}"/>
  511.                                                 </div>
  512.                                             {% endfor %}
  513.                                         </div>
  514.                                     </div>
  515.                                 {% endif %}
  516.                                 {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  517.                                 {#                                <div id="showMoreDescription" #}
  518.                                 {#                                     class="{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == "" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style="color: #ecf0f1;">.</span></p>' ? 'd-none' : "" }}"> #}
  519.                                 {#                                    <div class="w-100 position-absolute bottom-0" #}
  520.                                 {#                                         style="background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);"></div> #}
  521.                                 {#                                    <p class="w-100 position-absolute bottom-0">Подробнее</p> #}
  522.                                 {#                                </div> #}
  523.                             {% endfor %}
  524.                         </div>
  525.                     </div>
  526.                     <div class="tab-pane fade" id="offerLocationTab">
  527.                         <i class="fa fa-spinner fa-spin"></i>
  528.                     </div>
  529.                     <div id="offersReview" class="offers-review">
  530.                         {{ comments|raw }}
  531.                     </div>
  532.                 </div>
  533.                 <div class="content-wrapper-col-right">
  534.                     <div id="conditionAddress">
  535.                         <div class="offer-titles mb-2 mt-0"><h2>Контакты</h2></div>
  536.                         <div style="display:none">{{ offer.getAddress() }}</div>
  537.                         <div id="offerConditionLogo">
  538.                             {{ offer.getLogo()|raw }}
  539.                         </div>
  540.                         <div id="dataFromLocation">
  541.                             <div class="move-data">
  542.                                 {% if geoLocations|length > 0 %}
  543.                                     <div class="geo-location-block" style="display: block">
  544.                                         {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  545.                                         <div id="offerGeoLocationData" data-json="{{ offerGeoLocationData }}"></div>
  546.                                         <div class="distance d-none">
  547.                                             <i class="slivki-icon slivki-icon-direction"></i> <img class='ajaxLoader'
  548.                                                                                                    src='/images/ajax-loader-16x16.gif'
  549.                                                                                                    alt='Загрузка...'/><span></span>
  550.                                         </div>
  551.                                         <div class="offer-details-map category-map-wrapper category-map"
  552.                                              id="offerMapCanvas">
  553.                                             <div id="mapCollapseBtn" class="button button--map-collapse capsuled"
  554.                                                  onclick="offerMapToggleSize();">Развернуть
  555.                                             </div>
  556.                                             <a id="setUserLocationBtn" href="#" class="capsuled">Указать
  557.                                                 местоположение</a>
  558.                                             <div id="zoomIn"></div>
  559.                                             <div id="zoomOut"></div>
  560.                                         </div>
  561.                                     </div>
  562.                                 {% endif %}
  563.                                 <div class="before-map" style="clear:both;"></div>
  564.                             </div>
  565.                         </div>
  566.                         {% if (offer.getLocation()|preg_replace("/<[^>]*>/", '')|replace({"\n": '', "\r": '', '&nbsp;': '', ' ': ''}) != '') %}
  567.                             {{ offer.getLocation()|raw }}
  568.                             {% set phoneNumbers = offer.getPhoneNumbers() %}
  569.                             {% if phoneNumbers.count() > 0 %}
  570.                                 <div class="text-bold">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
  571.                             {% endif %}
  572.                             {% for phoneNumber in phoneNumbers %}
  573.                                 {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  574.                             {% endfor %}
  575.                         {% else %}
  576.                             {% set geoLocationsCount = geoLocations.count() %}
  577.                             {% set commonWoringHours = offer.getCommonWorkingHours() %}
  578.                             {% if commonWoringHours != '' %}
  579.                                 <br>
  580.                                 <div class="text-bold">Время работы:</div>
  581.                                 {{ commonWoringHours|raw }}
  582.                             {% endif %}
  583.                             {% for geoLocation in geoLocations %}
  584.                                 {% set margin = false %}
  585.                                 <div class="offer-details-geolocation-item my-3">
  586.                                     <div class="font-bold font-size-17">г. {{ geoLocation.getCity() }}
  587.                                         , {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}
  588.                                         <br>{{ geoLocation.getLabel() }}</div>
  589.                                     <div class="location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}">
  590.                                         {% if geoLocation.getWorkingHours()|trim != '' %}
  591.                                             {% set margin = true %}
  592.                                             <div class="offer-details-work-hours">Время работы:
  593.                                             </div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
  594.                                         {% endif %}
  595.                                         {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  596.                                         {% if phoneNumbers.count() > 0 %}
  597.                                         {% set margin = true %}
  598.                                         <span>
  599.                                             <div class="offer-details-phone-item">
  600.                                                 <div class="full-phone-item">
  601.                                                     {% for phoneNumber  in phoneNumbers %}
  602.                                                         {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  603.                                                     {% endfor %}
  604.                                                 </div>
  605.                                             </div>
  606.                                         {% endif %}
  607. {#                                            {% if margin %}#}
  608. {#                                                <br>#}
  609. {#                                            {% endif %}#}
  610.                                             </span>
  611.                                         {% if geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
  612.                                             <div class="callback-button" data-id="{{ geoLocation.getId() }}">Обратный
  613.                                                 звонок
  614.                                             </div>
  615.                                         {% endif %}
  616.                                     </div>
  617.                                     {% if geoLocationsCount > 2 %}
  618.                                         <a data-id="{{ geoLocation.getID() }}"
  619.                                            class="text-slivki location-more-info-toggle">Подробнее</a>
  620.                                     {% endif %}
  621.                                 </div>
  622.                             {% endfor %}
  623.                             {# {% if geoLocationsCount > 4 %} #}
  624.                             {# <div class="text-center"> #}
  625.                             {# <a id="showMoreAddressInDetailsLink" class="button" href="#">Еще адреса</a> #}
  626.                             {# </div> #}
  627.                             {# {% endif %} #}
  628.                             {% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  629.                             {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  630.                                 <div class="text-bold">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
  631.                                 </div>
  632.                                 <div class="offer-details-phone-item">
  633.                                     <div class="full-phone-item">
  634.                                         {% for phoneNumber  in phoneNumbersWithoutGeoLocations %}
  635.                                             {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  636.                                         {% endfor %}
  637.                                     </div>
  638.                                 </div>
  639.                                 {% if phoneNumber is defined and phoneNumber.getCallbackChatId() and phoneNumber.getCallbackChatId() != '' %}
  640.                                     <div class="callback-button" data-id="{{ phoneNumber.getId() }}">Обратный звонок
  641.                                     </div>
  642.                                 {% endif %}
  643.                             {% endif %}
  644.                         {% endif %}
  645.                         <div id="phoneOffersBlock" class="offer-details-legal-info">{{ offer.getLegal()|raw }}</div>
  646.                         <div class="offer-titles offer-titles-mobile mt-0 mb-0"><h5 class="mt-0 mb-0">Написать</h5>
  647.                         </div>
  648.                         <div class="col px-0">
  649.                             <a class="tg-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center"
  650.                                href="https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}"
  651.                                style="width: 200px">
  652.                                 <img class="mr-2" src="/images/tg.svg" width="20" height="18">
  653.                                 <span class="float-right">Telegram</span>
  654.                             </a>
  655.                             {% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
  656. {#                            <a class="vb-button offer-phone-mob btn btn-block bg-slivki text-white py-1 no-decoration my-2 d-flex justify-content-center align-items-center"#}
  657. {#                               href='viber://chat?number="  {{ viberNumber }} "' style="width: 200px">#}
  658. {#                                <img class="mr-2" src="/images/vb.svg" width="20" height="18">#}
  659. {#                                <span class="float-right">Viber</span>#}
  660. {#                            </a>#}
  661.                         </div>
  662.                     </div>
  663.                     {% include 'Slivki/offers/share.html.twig' %}
  664.                     {% include "Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig" %}
  665.                     <p class="tittle-messenger-offers d-none">Мы всегда рады помочь: служба поддержки Slivki.by ответит
  666.                         на
  667.                         любой
  668.                         ваш вопрос</p>
  669.                 </div>
  670.             </div>
  671.         </div>
  672.         {% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
  673.             <div class="col px-3">
  674.                 <div class="related-offers-title">Другие похожие предложения:</div>
  675.                 <div class="related-offers-list stock-group-list">
  676.                     {{ relatedOfferListHtml|raw }}
  677.                 </div>
  678.             </div>
  679.         {% endif %}
  680.     </div>
  681.     {% if lastPurchaseText is defined %}
  682.         <div id="lastPurchaseNofify"><a href="#"><i class="slivki-icon-close-thin"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
  683.         </div>
  684.     {% endif %}
  685. {% endblock %}
  686. {% block popups %}
  687.     {{ parent() }}
  688.     {% if not pastOffer %}
  689.         {% include 'Slivki/popups/header_offers.html.twig' %}
  690.     {% endif %}
  691.     {% include 'Slivki/share_block.html.twig' %}
  692.     {% include 'Slivki/popups/callback.html.twig' %}
  693.     {% include 'Slivki/offers/complaint.html.twig' %}
  694.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
  695.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  696.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  697.     {% endif %}
  698.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  699.     {% include 'Slivki/popups/statistics_popup.html.twig' %}
  700.     {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  701.     {% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  702.     {% if offer.isGiftCertificateOffer() %}
  703.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  704.     {% endif %}
  705.     {% if app.user %}
  706.         {% include 'Slivki/popups/mail_offers.html.twig' %}
  707.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  708.         {% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
  709.         {% if not isMobileDevice() or offerIsFreeForUser %}
  710.             {% if not codeCostInCurrency is defined and codeCostInCurrency is not null %}
  711.                 {% set codeCostInCurrency = null %}
  712.             {% endif %}
  713.             {% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
  714.             {% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  715.         {% endif %}
  716.         {% if not isMobileDevice() %}
  717.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  718.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  719.             {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  720.         {% endif %}
  721.     {% else %}
  722.         {% if not isMobileDevice() %}
  723.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  724.         {% endif %}
  725.     {% endif %}
  726. {% endblock %}
  727. {% block javascripts %}
  728.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"
  729.             integrity="sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ=="
  730.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  731.     <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
  732.     <script src="//api-maps.yandex.ru/2.1.29/?lang=ru-RU" type="text/javascript"></script>
  733.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
  734.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js"
  735.             integrity="sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg=="
  736.             crossorigin="anonymous"></script>
  737.     <script src="https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js"></script>
  738.     <script src="/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js"></script>
  739.     <script src="/js/swiper-js/swiper.min.js"></script>
  740.     <script src="/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}"></script>
  741.     {{ parent() }}
  742.     <script src="/js/offer.js?v={{ offer_js_version }}"></script>
  743.     <script src="/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}"></script>
  744.     <script src="/js/common-old.js?v={{ common_old_js_version }}"></script>
  745.     <script type="text/javascript">
  746.         {% if preview is defined and preview %}
  747.         var offerPreview = 1;
  748.         {% else %}
  749.         var offerPreview = 0;
  750.         {% endif %}
  751.         {% if app.request.query.has('checkOrder') %}
  752.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  753.         {% endif %}
  754.     </script>
  755.     <script src="/js/offer-new.js?v={{ offer_new_js_version }}"/>
  756. {% endblock %}
  757. {% block assetsBottom %}
  758.     {{ parent() }}
  759.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"
  760.             integrity="sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw=="
  761.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  762.     <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"
  763.             integrity="sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ=="
  764.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  765.     {#    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>#}
  766.     <script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script>
  767.     <script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
  768.     <script type="text/javascript" src="/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}"
  769.             charset="utf-8"></script>
  770.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js"
  771.             integrity="sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ=="
  772.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  773.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js"
  774.             integrity="sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA=="
  775.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  776.     <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>
  777.     <script type="module" src="/js/work_examples/work_examples.js?v={{ work_examples_js_version }}"></script>
  778.     <script type="module" src="/js/beauty/masters.js?v={{ beauty_masters_js_version }}"></script>
  779. {% endblock %}
  780. {% block RTBHouse %}
  781.     <script>
  782.         try {
  783.             (function () {
  784.                 var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = [];
  785.                 rtbhTags.push("pr_" + hash + "_offer_" + document.getElementById('offerID').value);
  786.                 rtbhTags.push("pr_" + hash + "_uid_" + document.getElementById('rtbhUID').value);
  787.                 var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key);
  788.                 if (!lid) {
  789.                     lid = "";
  790.                     var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  791.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  792.                     window.localStorage.setItem(key, lid);
  793.                 }
  794.                 rtbhTags.push("pr_" + hash + "_lid_" + lid);
  795.                 var ifr = document.createElement("iframe"),
  796.                     sr = encodeURIComponent(document.referrer ? document.referrer : ""),
  797.                     su = encodeURIComponent(document.location.href ? document.location.href : ""),
  798.                     ifrSrc = "https://" + prefix + "creativecdn.com/tags?type=iframe",
  799.                     tmstmp = encodeURIComponent("" + Date.now());
  800.                 for (var i = 0; i < rtbhTags.length; i++) {
  801.                     ifrSrc += "&id=" + encodeURIComponent(rtbhTags[i]);
  802.                 }
  803.                 ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
  804.                 ifr.setAttribute("src", ifrSrc);
  805.                 ifr.setAttribute("width", "1");
  806.                 ifr.setAttribute("height", "1");
  807.                 ifr.setAttribute("scrolling", "no");
  808.                 ifr.setAttribute("frameBorder", "0");
  809.                 ifr.setAttribute("style", "display:none");
  810.                 ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade");
  811.                 if (document.body) {
  812.                     document.body.appendChild(ifr);
  813.                 } else {
  814.                     window.addEventListener('DOMContentLoaded', function () {
  815.                         document.body.appendChild(ifr);
  816.                     });
  817.                 }
  818.             })();
  819.         } catch (e) {
  820.         } </script>
  821. {% endblock %}