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=5"/>
  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 == '' or defaultPickup is defined and defaultPickup ? '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() and getOfferConversion(offer.getID()) > 0 %}
  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="Актуальность за 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>{{ rating }}</r>
  235.                                     </p>
  236.                                 </div>
  237.                             </div>
  238.                         {% if not offer.isWithoutCodes() %}
  239.                             <div class="d-flex offer-price-block">
  240.                                 <div class="col px-2">
  241.                                     <p class="color-dark-gray">Стоимость:</p>
  242.                                 </div>
  243.                                 <div class="col text-end">
  244.                                     <span id="offerRegularPrice"
  245.                                           class="regular-price">{{ offer.getRegularPrice() }}</span>
  246.                                     <span class="discount-price">&nbsp;&nbsp;{{ offer.getOfferPrice()|replace({'(': '<span id="details-offer-price">(', ')': ')</span>'})|raw }}</span>
  247.                                 </div>
  248.                             </div>
  249.                         {% endif %}
  250.                         {% endif %}
  251.                     </div>
  252.                     {% if offer.isTireOnlineOrderAllowedOnSite() and offer.isWithoutCodes() %}
  253.                         <div class="buttons-wrapper-offers">
  254.                             <a id="deliveryBtn" href="{{ offer.getOnlineRegistrationLink() }}" style="margin: 14px 0;"
  255.                                class="online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  256.                                 Онлайн-запись
  257.                             </a>
  258.                         </div>
  259.                     {% endif %}
  260.                         {% if offer.getFreeCodesCount() > 0 and not offer.isWithoutCodes() %}
  261.                     <div class="d-flex" style="min-height: 90px;align-items: end;">
  262.                         <div class="buttons-wrapper-offers">
  263.                             {% if hasDelivery is defined %}
  264.                                 {% if not offer.isBuyCodeDisable() %}
  265.                                     {% include 'Slivki/offers/buy_button.html.twig' %}
  266.                                 {% endif %}
  267.                                 {% if offer.isFoodOnlineOrderAllowedOnSite() %}
  268.                                     <a id="deliveryBtn" href="{{ getLinkFoodOnlineOrder(offer) }}"
  269.                                        class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  270.                                         <div style="flex-direction: column;">
  271.                                             <p>Заказать онлайн {{ offer.getDiscount() }}</p>
  272.                                             {% if offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['delivery'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) or
  273.                                                 offer.getOnlineOrderSettings() is not null and offer.getOnlineOrderSettings().allowedPaymentMethods['pickup'][4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY'))%}
  274.                                            <p style="text-transform: math-auto;">доступна оплата SlivkiPay + 5%</p>
  275.                                                 {% endif %}
  276.                                         </div>
  277.                                     </a>
  278.                                 {% endif %}
  279.                                 {% if offer.isGiftCertificateOnlineOrderAllowedOnSite() %}
  280.                                     {% if offer.getID() == constant('Slivki\\Entity\\Offer::MINSK_WORLD_CERTIFICATE_OFFER_ID') %}
  281.                                         <a id="deliveryBtn" href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  282.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  283.                                             Получить скидку {{ offer.getDiscount() }}
  284.                                         </a>
  285.                                     {% elseif offer.getID() in constant('Slivki\\Entity\\Offer::FREESTYLE_OFFER_IDS') %}
  286.                                         <a id="deliveryBtn2"
  287.                                            href="{{ getLinkGiftCertificateOnlineOrderByOnlyCode(offer) }}"
  288.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  289.                                             ПОЛУЧИТЬ СКИДКУ {{ offer.getDiscount() }}
  290.                                         </a>
  291.                                     {% elseif not offer.isFoodOnlineOrderAllowedOnSite() %}
  292.                                         <a id="deliveryBtn" href="{{ getLinkGiftCertificateOnlineOrder(offer) }}"
  293.                                            class="d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  294.                                             <div style="flex-direction: column;">
  295.                                                 <p>Оплатить онлайн {{ offer.getDiscount() }}</p>
  296.                                                 {% if offer.getAllowedPaymentMethodsForCertificate() is defined and offer.getAllowedPaymentMethodsForCertificate() is not null and offer.getAllowedPaymentMethodsForCertificate()[4] == 1 and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY')) %}
  297.                                                     <p style="text-transform: math-auto;">доступна оплата SlivkiPay + 5%</p>
  298.                                                 {% endif %}
  299.                                             </div>
  300.                                         </a>
  301.                                     {% endif %}
  302.                                 {% endif %}
  303.                                 {% if offer.isTireOnlineOrderAllowedOnSite() %}
  304.                                     <a id="deliveryBtn" href="{{ offer.getOnlineRegistrationLink() }}"
  305.                                        class="online-zapis d-flex justify-content-center align-items-center text-uppercase button-by-code button">
  306.                                         Онлайн-запись
  307.                                     </a>
  308.                                 {% endif %}
  309.                             {% elseif isAllowedByOnlyCode %}
  310.                                 <div class="col">
  311.                                     {% include 'Slivki/offers/buy_button.html.twig' %}
  312.                                 </div>
  313.                             {% endif %}
  314.                             {% if not pastOffer and offer.getFreeCodesCount() > 0 and offer.isOnlineOrderGiftEnabled() and offer.isFoodOnlineOrderAllowedOnSite() %}
  315.                             <div class="col mb-2">
  316.                                     <a class="button-gift" data-toggle="modal" data-target="#choiceGiftModal">
  317.                                         <div class="button-gift-text">
  318.                                             <p>ЕДА В ПОДАРОК 😋</p>
  319.                                             <p>Подарю сам или подарят мне</p>
  320.                                         </div>
  321.                                         <div class="button-gift-item-button">
  322.                                             <div class="new">NEW</div>
  323.                                         </div>
  324.                                     </a>
  325.                                 </div>
  326.                         </div>
  327.                             {% endif %}
  328.                             {% if not pastOffer and offer.isGiftCertificateOnlineOrderAllowedOnSite() and isServerFeatureEnabled(constant('Slivki\\Enum\\SwitcherFeatures::SLIVKI_PAY_FOR_CERTIFICATE')) %}
  329.                                 <div class="col mb-3" style="width: 350px;margin: 0 auto">
  330.                                 </div>
  331.                             {% endif %}
  332.                             {% endif %}
  333.                         </div>
  334.                     </div>
  335.                 </div>
  336.             </div>
  337.             <div id="conditions_offers" class="d-flex" style="{{ pastOffer ? 'display: none!important' : '' }}">
  338.                 <div class="content-wrapper-col-left pt-0">
  339.                     <div id="offersConditions" class="offers-conditions active" style="max-height: fit-content;">
  340.                         <div class="offer-titles mb-2 mt-0"><h2>Условия</h2></div>
  341.                         {% set isOfferFavourite = app.user ? app.user.isOfferFavourite(offer) : false %}
  342.                         <div id="startOfOfferCondition"></div>
  343.                         {% if offer.getID() != 239232 %}
  344.                         {% endif %}
  345.                         {% if not offer.isWithoutCodes() and offer.getID() != 140553 %}
  346.                             <p>
  347.                                 {% set codeTill = offer.getCodeActiveTill() %}
  348.                                 {% set codeFrom = offer.getActiveTill()|date_modify('-1 day') %}
  349.                                 {% set codeFrom = codeFrom > codeTill ? codeTill : codeFrom %}
  350.                                 {% if not offer.isHideFeatures() %}
  351.                                     - Получить промокод можно до {{ codeFrom|date('d.m') }}, воспользоваться {{ offer.getID() != 134390 ? 'до' }} {{ codeTill|date('d.m.y') }}
  352.                                     <br/>
  353.                                 {% endif %}
  354.                                 {% if offer.isShowPriceInConditions() and not offerIsFreeForUser %}
  355.                                     - Стоимость промокода: {{ codeCost }} руб.
  356.                                 {% endif %}
  357.                             </p>
  358.                         {% endif %}
  359.                         <div class="offer-details-conditions offers-conditions p-0">
  360.                             {{ offer.getConditions()|raw }}
  361.                             {# Таблица с прейскурантом для акции с квестами "Ящик Пандоры" #}
  362.                             {% if offer.getID() == 143528 %}
  363.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer2.html.twig' %}
  364.                             {% elseif offer.getID() == 282234 %}
  365.                                 {% include 'Slivki/offers/table_for_pandorra_box_offer4.html.twig' %}
  366.                             {% endif %}
  367.                             {% if not offer.isWithoutCodes() %}
  368.                                 {% include "Slivki#{regional_template_path}/phrase_subscription_in_offer_page.html.twig" %}
  369.                             {% endif %}
  370.                             {% if not offer.isHideFeatures() %}
  371.                                 </br>
  372.                                 <div class="offer-titles mb-2 mt-0"><h2>Особенности</h2></div>
  373.                                 <div class="offer-details-conditions">
  374.                                     {% if not offer.isWithoutCodes() %}
  375.                                         - Скидка предоставляется только при наличии промокода.
  376.                                     {% endif %}
  377.                                     {{ offer.getFeatures()|raw }}
  378.                                 </div>
  379.                                 - Поставщик несет полную ответственность перед потребителем за достоверность информации.
  380.                             {% endif %}
  381.                         </div>
  382.                         <div id="endOfOfferCondition"></div>
  383.                         <div class="clear"></div>
  384.                     </div>
  385.                     {% if offer.getShopMedias()|length > 0 %}
  386.                         <div class="offer-titles mb-2 mt-0"><h2>Галерея</h2></div>
  387.                     {% endif %}
  388.                     <div id="offerConditionsSlider"
  389.                          class="my-4 screenshots {{ offer.getShopMedias()|length == 0 or freeCodesCount == 0 ? 'empty' }}">
  390.                         {% if offer.getShopMedias()|length > 0 %}
  391.                             <div class="screenshot-container">
  392.                                 {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  393.                                     <div class="screenshot screenshot-story" data-toggle="modal"
  394.                                          data-target="#detailsStoryPopup">
  395.                                         <img src="{{ galleryVideos.getImageUrl() }}" width="300"
  396.                                              alt="Видео" border="0"/>
  397.                                         <div class="screenshot-story-btn"></div>
  398.                                         <div class="screenshot-story-tittle">{{ galleryVideos.getTitle() }}</div>
  399.                                     </div>
  400.                                 {% endif %}
  401.                                 {% for media in offer.getShopMedias() %}
  402.                                     <div class="screenshot">
  403.                                         <a href="{{ getImageURL(media, 0, 0) }}" title="{{ media.getDescription() }}"
  404.                                            data-lightbox="image">
  405.                                             <img src="{{ getImageURL(media, 300, 0) }}" width="300"
  406.                                                  alt="{{ media.getDescription() }}" border="0"/>
  407.                                         </a>
  408.                                     </div>
  409.                                 {% endfor %}
  410.                             </div>
  411.                         {% endif %}
  412.                     </div>
  413.                     <div id="examplesOfWorksBlock" class="">
  414.                         <div class="headerBlockCategory examples d-none bg-white px-0 pb-0 bg-transpanent examples-block-offer-header">
  415.                             <div class="offer-titles"><h5 class="m-0">Фото
  416.                                     работ{# <div class="example-of-works-count-container"><span>1234</span></div> #}</h5>
  417.                             </div>
  418.                             <div class="examples-works-tooltip-filter">
  419.                                 <div class="tooltip-content">
  420.                                     <div class="tooltip-title border-bottom-f d-flex">Показать сначала:</div>
  421.                                     {% for key,sortItem in constant('Slivki\\Paginator\\WorkExample\\WorkExamplePaginatorInterface::SORT') %}
  422.                                         <div class="radio">
  423.                                             <input id="filter{{ key }}" type="radio" name="filter"
  424.                                                    data-direction="{{ sortItem.direction }}"
  425.                                                    value="{{ sortItem.field }}" {{ loop.first ? 'checked' }}>
  426.                                             <label for="filter{{ key }}"
  427.                                                    class="cursor-pointer">{{ sortItem.name }}</label>
  428.                                         </div>
  429.                                     {% endfor %}
  430.                                     <div class="tooltip-title border-top-f d-flex">Диапазон цены:</div>
  431.                                     <div id="workExamplePriceRangeInputs" class="price-range-inputs d-flex">
  432.                                         <div class="price-range-input"><input type="number" placeholder="Цена от"
  433.                                                                               id="priceFrom" name="priceFrom" min="0"
  434.                                                                               max="199" step="1"></div>
  435.                                         <div class="price-range-input"><input type="number" placeholder="Цена до"
  436.                                                                               id="priceTo" name="priceTo" min="0"
  437.                                                                               max="200" step="1"></div>
  438.                                     </div>
  439.                                     <div id="workExampleRangeSlider" class="range-slider">
  440.                                         <div class="range-labels">
  441.                                             <span id="workSimplesRangeLableStart"
  442.                                                   class="range-label range-label-start"></span>
  443.                                             <span>-</span>
  444.                                             <span id="workSimplesRangeLableEnd"
  445.                                                   class="range-label range-label-end"></span>
  446.                                         </div>
  447.                                         <input class="work-simples-input" type="range" name="startRange"
  448.                                                id="startRange">
  449.                                         <input class="work-simples-input" type="range" name="finishRange"
  450.                                                id="finishRange">
  451.                                         <div class="track-wrapper">
  452.                                             <div class="track"></div>
  453.                                             <div id="workSimplesSliderBetween" class="range-between"></div>
  454.                                             <div id="workSimplesTumbLeft" class="thumb left"></div>
  455.                                             <div id="workSimplesTumbRight" class="thumb right"></div>
  456.                                         </div>
  457.                                     </div>
  458.                                     <div id="buttonFilterBoxExamplesWork" class="buttonFilterBox">Показать</div>
  459.                                 </div>
  460.                                 <div id="buttonFilterBoxExamplesWork" class="d-flex cursor-pointer">Сортировка<img
  461.                                             width="25" class="pl-2" src="/images/sort_image.svg"/></div>
  462.                             </div>
  463.                         </div>
  464.                         {% include 'Slivki/works-examples/examples_of_works_gallery.html.twig' %}
  465.                     </div>
  466.                     <div id="beautyMastersBlock" class="beauty-masters-container beauty-masters-offer desk">
  467.                         <div id="beautyMastersHeader"
  468.                              class="tittleBlockCategory position-relative offer-titles mb-2 mt-0 d-none"><h2>
  469.                                 {{ parentCategoryList and parentCategoryList[0].getID() == constant('Slivki\\Entity\\Category::MEDICAL_CENTER_CATEGORY_ID') ? 'Врачи' : 'Найти своего мастера' }}</h2>
  470.                         </div>
  471.                         {% include 'Slivki/beauty/beauty_masters.html.twig' %}
  472.                     </div>
  473.                     <div id="offersDescription" class="offers-conditions mt-3">
  474.                         {% if offer.isShowProductsInOfferDescription() %}
  475.                             <div id="foodItemsBlock">
  476.                                 <div class="offer-titles mb-2 mt-0"><h2>Описание</h2></div>
  477.                                 {% if isPickupEnabled and isDeliveryEnabled %}
  478.                                     <div id="fixedFiltersOffer" class="w-auto px-2 d-flex"
  479.                                          style="position: relative;background: linear-gradient(180deg, #A839FF 0%, #6747e5 100%), #6747E5;border-radius: 8px;padding: 10px 0;">
  480.                                         <div class="col d-flex align-items-center text-white justify-content-end px-0"></div>
  481.                                         <div class="switch-delivery-pickup-block px-0 ">
  482.                                             <a data-type-delivery="1"
  483.                                                class="switch-delivery-pickup-item button-tab-delivery delivery-type {{ defaultPickup is defined and defaultPickup ? '' : 'active'}}">
  484.                                                 <p class="m-0">Доставка</p>
  485.                                                 <small>удобно👌</small>
  486.                                             </a>
  487.                                             <a data-type-delivery="2"
  488.                                                class="switch-delivery-pickup-item pickup-type button-tab-pickup {{ defaultPickup is defined and defaultPickup ? 'active' : active }}">
  489.                                                 <p class="m-0"> Самовывоз</p>
  490.                                                 <small>еще дешевле🔥</small>
  491.                                             </a>
  492.                                         </div>
  493.                                     </div>
  494.                                 {% endif %}
  495.                                 <div id="foodBlock"></div>
  496.                                 <div id="foodOptionsBlock"></div>
  497.                             </div>
  498.                         {% endif %}
  499.                         <div class="description" id="descriptionText">
  500.                             {% for offerDescription in offer.getDescriptionList() %}
  501.                                 {% set offerDescriptionSliderImages = offerDescription.getEntityDescriptionSliderImages() %}
  502.                                 {% if offerDescriptionSliderImages|length > 0 %}
  503.                                     <div class="sale-description-carousel">
  504.                                         <div id="saleDescriptionSliderFor{{ offerDescription.getID() }}"
  505.                                              class="sale-description-slider-for">
  506.                                             {% for offerDescriptionSliderImage in offerDescriptionSliderImages %}
  507.                                                 <div><img data-lazy="{{ offerDescriptionSliderImage.getImageUrl() }}"/>
  508.                                                 </div>
  509.                                             {% endfor %}
  510.                                         </div>
  511.                                     </div>
  512.                                 {% endif %}
  513.                                 {{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw }}
  514.                                 {#                                <div id="showMoreDescription" #}
  515.                                 {#                                     class="{{ addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == "" or addLazyAndLightboxImagesInDescription(offerDescription.getDescription())|raw == '<p><span style="color: #ecf0f1;">.</span></p>' ? 'd-none' : "" }}"> #}
  516.                                 {#                                    <div class="w-100 position-absolute bottom-0" #}
  517.                                 {#                                         style="background: linear-gradient(360deg, #FFFFFF 15.15%, rgba(255, 255, 255, 0) 206.06%);"></div> #}
  518.                                 {#                                    <p class="w-100 position-absolute bottom-0">Подробнее</p> #}
  519.                                 {#                                </div> #}
  520.                             {% endfor %}
  521.                         </div>
  522.                     </div>
  523.                     <div class="tab-pane fade" id="offerLocationTab">
  524.                         <i class="fa fa-spinner fa-spin"></i>
  525.                     </div>
  526.                     <div id="offersReview" class="offers-review">
  527.                         {{ comments|raw }}
  528.                     </div>
  529.                 </div>
  530.                 <div class="content-wrapper-col-right">
  531.                     <div id="conditionAddress">
  532.                         <div class="offer-titles mb-2 mt-0"><h2>Контакты</h2></div>
  533.                         <div style="display:none">{{ offer.getAddress() }}</div>
  534.                         <div id="offerConditionLogo">
  535.                             {{ offer.getLogo()|raw }}
  536.                         </div>
  537.                         <div id="dataFromLocation">
  538.                             <div class="move-data">
  539.                                 {% if geoLocations|length > 0 %}
  540.                                     <div class="geo-location-block" style="display: block">
  541.                                         {% include 'Slivki/offers/geo_location_data.html.twig' with {'offer': offer} only %}
  542.                                         <div id="offerGeoLocationData" data-json="{{ offerGeoLocationData }}"></div>
  543.                                         <div class="distance d-none">
  544.                                             <i class="slivki-icon slivki-icon-direction"></i> <img class='ajaxLoader'
  545.                                                                                                    src='/images/ajax-loader-16x16.gif'
  546.                                                                                                    alt='Загрузка...'/><span></span>
  547.                                         </div>
  548.                                         <div class="offer-details-map category-map-wrapper category-map"
  549.                                              id="offerMapCanvas">
  550.                                             <div id="mapCollapseBtn" class="button button--map-collapse capsuled"
  551.                                                  onclick="offerMapToggleSize();">Развернуть
  552.                                             </div>
  553.                                             <a id="setUserLocationBtn" href="#" class="capsuled">Указать
  554.                                                 местоположение</a>
  555.                                             <div id="zoomIn"></div>
  556.                                             <div id="zoomOut"></div>
  557.                                         </div>
  558.                                     </div>
  559.                                 {% endif %}
  560.                                 <div class="before-map" style="clear:both;"></div>
  561.                             </div>
  562.                         </div>
  563.                         {% if (offer.getLocation()|preg_replace("/<[^>]*>/", '')|replace({"\n": '', "\r": '', '&nbsp;': '', ' ': ''}) != '') %}
  564.                             {{ offer.getLocation()|raw }}
  565.                             {% set phoneNumbers = offer.getPhoneNumbers() %}
  566.                             {% if phoneNumbers.count() > 0 %}
  567.                                 <div class="text-bold">Телефон{{ phoneNumbers.count() > 1 ? 'ы' }}:</div>
  568.                             {% endif %}
  569.                             {% for phoneNumber in phoneNumbers %}
  570.                                 {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  571.                             {% endfor %}
  572.                         {% else %}
  573.                             {% set geoLocationsCount = geoLocations.count() %}
  574.                             {% set commonWoringHours = offer.getCommonWorkingHours() %}
  575.                             {% if commonWoringHours != '' %}
  576.                                 <br>
  577.                                 <div class="text-bold">Время работы:</div>
  578.                                 {{ commonWoringHours|raw }}
  579.                             {% endif %}
  580.                             {% for geoLocation in geoLocations %}
  581.                                 {% set margin = false %}
  582.                                 <div class="offer-details-geolocation-item my-3">
  583.                                     <div class="font-bold font-size-17">г. {{ geoLocation.getCity() }}
  584.                                         , {{ geoLocation.getStreet() }}, {{ geoLocation.getHouse() }}
  585.                                         <br>{{ geoLocation.getLabel() }}</div>
  586.                                     <div class="location-more-info {{ geoLocationsCount > 2 ? 'hidden' }}">
  587.                                         {% if geoLocation.getWorkingHours()|trim != '' %}
  588.                                             {% set margin = true %}
  589.                                             <div class="offer-details-work-hours">Время работы:
  590.                                             </div> {{ geoLocation.getWorkingHours()|nl2br|raw }}
  591.                                         {% endif %}
  592.                                         {% set phoneNumbers = geoLocation.getPhoneNumbers() %}
  593.                                         {% if phoneNumbers.count() > 0 %}
  594.                                         {% set margin = true %}
  595.                                         <span>
  596.                                             <div class="offer-details-phone-item">
  597.                                                 <div class="full-phone-item">
  598.                                                     {% for phoneNumber  in phoneNumbers %}
  599.                                                         {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  600.                                                     {% endfor %}
  601.                                                 </div>
  602.                                             </div>
  603.                                         {% endif %}
  604. {#                                            {% if margin %}#}
  605. {#                                                <br>#}
  606. {#                                            {% endif %}#}
  607.                                             </span>
  608.                                         {% if geoLocation.getCallbackChatId() and geoLocation.getCallbackChatId() != '' %}
  609.                                             <div class="callback-button" data-id="{{ geoLocation.getId() }}">Обратный
  610.                                                 звонок
  611.                                             </div>
  612.                                         {% endif %}
  613.                                     </div>
  614.                                     {% if geoLocationsCount > 2 %}
  615.                                         <a data-id="{{ geoLocation.getID() }}"
  616.                                            class="text-slivki location-more-info-toggle">Подробнее</a>
  617.                                     {% endif %}
  618.                                 </div>
  619.                             {% endfor %}
  620.                             {# {% if geoLocationsCount > 4 %} #}
  621.                             {# <div class="text-center"> #}
  622.                             {# <a id="showMoreAddressInDetailsLink" class="button" href="#">Еще адреса</a> #}
  623.                             {# </div> #}
  624.                             {# {% endif %} #}
  625.                             {% set phoneNumbersWithoutGeoLocations = offer.getPhoneNumbersWithoutGeoLocations() %}
  626.                             {% if phoneNumbersWithoutGeoLocations|length > 0 %}
  627.                                 <div class="text-bold">Телефон{{ phoneNumbersWithoutGeoLocations|length > 1 ? 'ы' }}:
  628.                                 </div>
  629.                                 <div class="offer-details-phone-item">
  630.                                     <div class="full-phone-item">
  631.                                         {% for phoneNumber  in phoneNumbersWithoutGeoLocations %}
  632.                                             {{ phoneNumber.getNumber() }} {{ phoneNumber.getLabel() }}<br/>
  633.                                         {% endfor %}
  634.                                     </div>
  635.                                 </div>
  636.                                 {% if phoneNumber is defined and phoneNumber.getCallbackChatId() and phoneNumber.getCallbackChatId() != '' %}
  637.                                     <div class="callback-button" data-id="{{ phoneNumber.getId() }}">Обратный звонок
  638.                                     </div>
  639.                                 {% endif %}
  640.                             {% endif %}
  641.                         {% endif %}
  642.                         <div id="phoneOffersBlock" class="offer-details-legal-info">{{ offer.getLegal()|raw }}</div>
  643.                         <div class="offer-titles offer-titles-mobile mt-0 mb-0"><h5 class="mt-0 mb-0">Написать</h5>
  644.                         </div>
  645.                         <div class="col px-0">
  646.                             <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"
  647.                                href="https://t.me/{{ offer.getTelegram() != null ? offer.getTelegram() : 'slivkislivkiby' }}"
  648.                                style="width: 200px">
  649.                                 <img class="mr-2" src="/images/tg.svg" width="20" height="18">
  650.                                 <span class="float-right">Telegram</span>
  651.                             </a>
  652.                             {% set viberNumber = offer.getViber() != null ? offer.getViber() : '+375295084444' %}
  653. {#                            <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"#}
  654. {#                               href='viber://chat?number="  {{ viberNumber }} "' style="width: 200px">#}
  655. {#                                <img class="mr-2" src="/images/vb.svg" width="20" height="18">#}
  656. {#                                <span class="float-right">Viber</span>#}
  657. {#                            </a>#}
  658.                         </div>
  659.                     </div>
  660.                     {% include 'Slivki/offers/share.html.twig' %}
  661.                     {% include "Slivki#{regional_template_path}/jivosite/button_offers_page.html.twig" %}
  662.                     <p class="tittle-messenger-offers d-none">Мы всегда рады помочь: служба поддержки Slivki.by ответит
  663.                         на
  664.                         любой
  665.                         ваш вопрос</p>
  666.                 </div>
  667.             </div>
  668.         </div>
  669.         {% if (pastOffer or freeCodesCount == 0) and relatedOfferListHtml is defined %}
  670.             <div class="col px-3">
  671.                 <div class="related-offers-title">Другие похожие предложения:</div>
  672.                 <div class="related-offers-list stock-group-list">
  673.                     {{ relatedOfferListHtml|raw }}
  674.                 </div>
  675.             </div>
  676.         {% endif %}
  677.     </div>
  678.     {% if lastPurchaseText is defined %}
  679.         <div id="lastPurchaseNofify"><a href="#"><i class="slivki-icon-close-thin"></i></a>Последний раз промокод<br>получен {{ lastPurchaseText }}
  680.         </div>
  681.     {% endif %}
  682. {% endblock %}
  683. {% block popups %}
  684.     {{ parent() }}
  685.     {% if not pastOffer %}
  686.         {% include 'Slivki/popups/header_offers.html.twig' %}
  687.     {% endif %}
  688.     {% include 'Slivki/share_block.html.twig' %}
  689.     {% include 'Slivki/popups/callback.html.twig' %}
  690.     {% include 'Slivki/offers/complaint.html.twig' %}
  691.     {% include 'Slivki/orderAsGift/foodForGift.html.twig' %}
  692.     {% if  galleryVideos.getVideos() is defined and galleryVideos.getVideos()|length > 0 %}
  693.         {% include 'Slivki/popups/details-story-popup.html.twig' %}
  694.     {% endif %}
  695.     {% include 'Slivki/popups/comment_media_block_popup.html.twig' %}
  696.     {% include 'Slivki/popups/statistics_popup.html.twig' %}
  697.     {% include 'Slivki/mobile/popup/buy_codes_avways_app.html.twig' %}
  698.     {% include 'Slivki/delivery/modal/details.html.twig' with {'isOfferPage': true} %}
  699.     {% if offer.isGiftCertificateOffer() %}
  700.         {% include 'Slivki/popups/step_buy_certificate.twig' with {'deliveryLink': deliveryLink} %}
  701.     {% endif %}
  702.     {% if app.user %}
  703.         {% include 'Slivki/popups/mail_offers.html.twig' %}
  704.         {% include 'Slivki/popups/rating_edit_popup.html.twig' %}
  705.         {% include 'Slivki/popups/popup_subscription_limited.html.twig' %}
  706.         {% if not isMobileDevice() or offerIsFreeForUser %}
  707.             {% if not codeCostInCurrency is defined and codeCostInCurrency is not null %}
  708.                 {% set codeCostInCurrency = null %}
  709.             {% endif %}
  710.             {% include 'Slivki/popups/confirm_box.html.twig' with {'codeCost': codeCost, 'offerID': offer.getID(), 'codeCostInCurrency': codeCostInCurrency} %}
  711.             {% include 'Slivki/popups/confirm_subscription_card_popup.html.twig' with {'creditCards': app.user.getActiveCreditCards()} %}
  712.         {% endif %}
  713.         {% if not isMobileDevice() %}
  714.             {% include 'Slivki/popups/add_comment_popup.html.twig' with {'id': 'addVoteBox'} %}
  715.             {% include 'Slivki/popups/edit_comment_popup.html.twig' with {'id': 'editVoteBox'} %}
  716.             {% include 'Slivki/popups/comment_censor_message.html.twig' with {'id': 'commentCensorMessage'} %}
  717.         {% endif %}
  718.     {% else %}
  719.         {% if not isMobileDevice() %}
  720.             {% include 'Slivki/popups/comment_only_registered_popup.html.twig' with {'id': 'onlyRegistered'} %}
  721.         {% endif %}
  722.     {% endif %}
  723. {% endblock %}
  724. {% block javascripts %}
  725.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.lazyload/1.9.1/jquery.lazyload.min.js"
  726.             integrity="sha512-jNDtFf7qgU0eH/+Z42FG4fw3w7DM/9zbgNPe3wfJlCylVDTT3IgKW5r92Vy9IHa6U50vyMz5gRByIu4YIXFtaQ=="
  727.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  728.     <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
  729.     <script src="//api-maps.yandex.ru/2.1.29/?lang=ru-RU" type="text/javascript"></script>
  730.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
  731.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/locale/ru.min.js"
  732.             integrity="sha512-QezkC2mljFGA2zQBPe+FrNA7i2RVFaYOfdQHk6icEap1TZX/Q6MNx+0AOTr9msSec0LsMrpURxfgJSbodYoiLg=="
  733.             crossorigin="anonymous"></script>
  734.     <script src="https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js"></script>
  735.     <script src="/js/hotel-datepicker-3.6.5/hotel-datepicker.min.js"></script>
  736.     <script src="/js/swiper-js/swiper.min.js"></script>
  737.     <script src="/js/story-slider/story-slider-js.js?v={{ story_slider_js_version }}"></script>
  738.     {{ parent() }}
  739.     <script src="/js/offer.js?v={{ offer_js_version }}"></script>
  740.     <script src="/js/offer/offerDescriptionItems.js?v={{ offer_description_items_js_version }}"></script>
  741.     <script src="/js/common-old.js?v={{ common_old_js_version }}"></script>
  742.     <script type="text/javascript">
  743.         {% if preview is defined and preview %}
  744.         var offerPreview = 1;
  745.         {% else %}
  746.         var offerPreview = 0;
  747.         {% endif %}
  748.         {% if app.request.query.has('checkOrder') %}
  749.         initCheckOfferOrderStatus({{ app.request.get('checkOrder') }});
  750.         {% endif %}
  751.     </script>
  752.     <script src="/js/offer-new.js?v={{ offer_new_js_version }}"/>
  753. {% endblock %}
  754. {% block assetsBottom %}
  755.     {{ parent() }}
  756.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js"
  757.             integrity="sha512-zlWWyZq71UMApAjih4WkaRpikgY9Bz1oXIW5G0fED4vk14JjGlQ1UmkGM392jEULP8jbNMiwLWdM8Z87Hu88Fw=="
  758.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  759.     <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"
  760.             integrity="sha512-Y+0b10RbVUTf3Mi0EgJue0FoheNzentTMMIE2OreNbqnUPNbQj8zmjK3fs5D2WhQeGWIem2G2UkKjAL/bJ/UXQ=="
  761.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  762.     {#    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>#}
  763.     <script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script>
  764.     <script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
  765.     <script type="text/javascript" src="/js/statistics_offer/statistics_offer.js?v={{ statistics_offer_js_version }}"
  766.             charset="utf-8"></script>
  767.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/jquery.easypiechart.min.js"
  768.             integrity="sha512-DHNepbIus9t4e6YoMBSJLwl+nnm0tIwMBonsQQ+W9NKN6gVVVbomJs9Ii3mQ+HzGZiU5FyJLdnAz9a63ZgZvTQ=="
  769.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  770.     <script src="https://cdnjs.cloudflare.com/ajax/libs/easy-pie-chart/2.1.6/easypiechart.min.js"
  771.             integrity="sha512-1yldf7W5suy0ko2u4OGU1qyeGrzh9+A3uyWGH4ws8MbndaWxZsgnzy6uqqBq7NUU/ImI1Js5kqDbunovCN1JqA=="
  772.             crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  773.     <script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>
  774.     <script type="module" src="/js/work_examples/work_examples.js?v={{ work_examples_js_version }}"></script>
  775.     <script type="module" src="/js/beauty/masters.js?v={{ beauty_masters_js_version }}"></script>
  776. {% endblock %}
  777. {% block RTBHouse %}
  778.     <script>
  779.         try {
  780.             (function () {
  781.                 var prefix = "", hash = "TS5TS2S9bdSbgKBA4Q2H", rtbhTags = [];
  782.                 rtbhTags.push("pr_" + hash + "_offer_" + document.getElementById('offerID').value);
  783.                 rtbhTags.push("pr_" + hash + "_uid_" + document.getElementById('rtbhUID').value);
  784.                 var key = "__rtbhouse.lid", lid = window.localStorage.getItem(key);
  785.                 if (!lid) {
  786.                     lid = "";
  787.                     var pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
  788.                     for (var i = 0; i < 20; i++) lid += pool.charAt(Math.floor(Math.random() * pool.length));
  789.                     window.localStorage.setItem(key, lid);
  790.                 }
  791.                 rtbhTags.push("pr_" + hash + "_lid_" + lid);
  792.                 var ifr = document.createElement("iframe"),
  793.                     sr = encodeURIComponent(document.referrer ? document.referrer : ""),
  794.                     su = encodeURIComponent(document.location.href ? document.location.href : ""),
  795.                     ifrSrc = "https://" + prefix + "creativecdn.com/tags?type=iframe",
  796.                     tmstmp = encodeURIComponent("" + Date.now());
  797.                 for (var i = 0; i < rtbhTags.length; i++) {
  798.                     ifrSrc += "&id=" + encodeURIComponent(rtbhTags[i]);
  799.                 }
  800.                 ifrSrc += "&su=" + su + "&sr=" + sr + "&ts=" + tmstmp;
  801.                 ifr.setAttribute("src", ifrSrc);
  802.                 ifr.setAttribute("width", "1");
  803.                 ifr.setAttribute("height", "1");
  804.                 ifr.setAttribute("scrolling", "no");
  805.                 ifr.setAttribute("frameBorder", "0");
  806.                 ifr.setAttribute("style", "display:none");
  807.                 ifr.setAttribute("referrerpolicy", "no-referrer-when-downgrade");
  808.                 if (document.body) {
  809.                     document.body.appendChild(ifr);
  810.                 } else {
  811.                     window.addEventListener('DOMContentLoaded', function () {
  812.                         document.body.appendChild(ifr);
  813.                     });
  814.                 }
  815.             })();
  816.         } catch (e) {
  817.         } </script>
  818. {% endblock %}