const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mobile-menu-BlwkAITJ.js","assets/app-B_ZX9s-f.js","assets/l10n-DcwN6OTl.js","assets/app-storage-C9xzSwF5.js","assets/reactivity.esm-bundler-TBnlQ4HO.js","assets/get-noun-BKydS539.js","assets/Dropdown-DuRM0P9P.js","assets/runtime-core.esm-bundler-CtbKWpOt.js","assets/Dropdown-BNKy_mVI.css","assets/IconArrowRight-B6Yrp32z.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/runtime-dom.esm-bundler-D0PMhT9J.js","assets/preload-helper-BfFHrpNk.js","assets/app-faq-C-LUugtq.js","assets/vue.esm-bundler-CqruLpPh.js","assets/compiler-dom.esm-bundler-CjhovOSX.js","assets/get_products_prices-Ni6IOOB5.js","assets/index-C4eorY6x.js","assets/Preloader-BWC0RtFs.js","assets/vue-multiselect-KooFg5xR.js","assets/vue-multiselect.esm-B4krHJ5S.js","assets/vue-the-mask-Cx4EZ0QQ.js","assets/index-DCCONfuO.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/mobile-menu-DigYnKBD.css","assets/modal-auth-CP7yVX_8.js","assets/Modal-XTNZ1vHD.js","assets/IconLoading-CzGyiZ68.js","assets/Notice-Ij25ON0L.js","assets/Notice-BklxyQlP.css","assets/InputCheckbox-Dfrh7aQZ.js","assets/modal-auth-ZhBI0zmp.css","assets/MobileSearch-BUeL5Nl6.js","assets/MobileSearch-CB7qJIRj.css","assets/NoticeModal-DAaVKaG0.js","assets/NoticeModal-CKoVHx0G.css","assets/TabBar-B6Fb5Z_F.js","assets/TabBar-BMZ__BaV.css","assets/modal-select-city-Di1TFrg6.js"])))=>i.map(i=>d[i]); import{_ as Y}from"./preload-helper-BfFHrpNk.js";import"./app-B_ZX9s-f.js";import{a as Nt}from"./app-faq-C-LUugtq.js";import"./vue.esm-bundler-CqruLpPh.js";import{g as Ht}from"./get_products_prices-Ni6IOOB5.js";import{a as vt}from"./index-C4eorY6x.js";import{l as bt}from"./l10n-DcwN6OTl.js";import{P as Ot}from"./Preloader-BWC0RtFs.js";import"./vue-multiselect-KooFg5xR.js";import{_ as wt}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{s as qt}from"./vue-multiselect.esm-B4krHJ5S.js";import{ar as st,A as Rt,aj as X,aN as K,N as tt,I as D,H as U,e as gt,G as Z,F as ht,ap as Wt,O as ot}from"./runtime-core.esm-bundler-CtbKWpOt.js";import{_ as G,M as _t}from"./reactivity.esm-bundler-TBnlQ4HO.js";import{v as Xt}from"./vue-the-mask-Cx4EZ0QQ.js";import{c as Ft}from"./runtime-dom.esm-bundler-D0PMhT9J.js";import"./app-storage-C9xzSwF5.js";import"./compiler-dom.esm-bundler-CjhovOSX.js";import"./get-noun-BKydS539.js";import"./index-DCCONfuO.js";import"./_commonjsHelpers-D6-XlEtG.js";window.data_layer={view_item_list:[],create_product_obj(t){var i,e,s,o,c;const a={item_brand:(i=t.partner)==null?void 0:i.name,item_category:(e=t.category)==null?void 0:e.name,item_category2:(s=globalParams.city)==null?void 0:s.long_name,item_id:t.id,item_name:t.product_name,item_variant:((o=t.customized_product_data)==null?void 0:o.name)||"",price:((c=t.customized_product_data)==null?void 0:c.price)||t.price,quantity:t.quantity||1};return Number.isInteger(parseInt(t.index))&&(a.index=t.index+1),a},push_ecommerce(t,a=null,i={},e=""){let s=!0;try{s=JSON.parse(get_cookie("send_analytics")||!0)}catch(o){console.warn({message:"Ошибка при получении значения куки send_analytics",exception:o})}if(s){if(a){let o=[];Array.isArray(a)?a.length&&(a[0].item_name?o=o.concat(a):o=o.concat(a.map(c=>this.create_product_obj(c)))):o.push(this.create_product_obj(a)),i.items=o}dataLayer.push({ecommerce:null}),dataLayer.push({event:t,ecommerce:i,payment_name:e})}}};window.dataLayer=[];addEventListener("beforeunload",()=>{if(!data_layer.view_item_list.length)return;data_layer.push_ecommerce("view_item_list",data_layer.view_item_list);const t=new FormData;t.set("event","view_item_list"),t.set("product_ids",data_layer.view_item_list.map(a=>a.item_id)),navigator.sendBeacon("/nuxt_api/view_products",t)});const Ut={ids:[get_cookie("_ga"),get_cookie("_ym_uid")],ids_min_qty:globalParams.domain_id===1?2:1,init(){window.analytic=this,this.ids=this.ids.filter(t=>t),browser_storage.local.getItem("analytic_ids")!==this.ids.join("__")&&axios.post("/nuxt_api/visit",{referrer:document.referrer}).then(()=>{this.ids.length{const a=t.target.closest(".js_callback-btn");a&&this.show_modal(a)}),this.el_form.addEventListener("submit",t=>{t.preventDefault(),swal.blockUI();let a=t.target.dataset,i=document.getElementById("js_callback__phone"),e=document.getElementsByName("cf-turnstile-response")[0],s={"cf-turnstile-response":e.value,phone:i.value},o="/ajax/callback";if(a.productId&&(s={"cf-turnstile-response":e.value,city_id:globalParams.city.id,customization_code:a.customizationCode,phone:i.value,product_id:a.productId},o="/api/orders/quick-order"),!e.value){toastr.error(trans.common.turnstile_error),swal.close();return}axios.post(o,s).then(()=>{document.getElementById("modal-callback").Modal.hide(),toastr.success(trans.common.one_click_thanks),i.value=""}).catch(c=>{var r,n;(n=(r=c==null?void 0:c.response)==null?void 0:r.data.errors)!=null&&n.length?c.response.data.errors.forEach(d=>toastr.error(d.title)):(toastr.error(trans.common.error),handling_error(c)),turnstile.reset()}).then(()=>swal.close())}))},show_modal(t,a=this.el_form){if(!a)return;i(),e(t);function i(){if(window.app_env==="dev")return;if(a.cf_turnstile){turnstile.reset();return}const s=document.getElementById("js_callback__form-btn-submit");s.disabled=!0;const o=document.createElement("script");o.onerror=()=>a.cf_turnstile=null,o.onload=()=>{document.getElementById("js_cf-turnstile").innerHTML="",s.disabled=!1},o.src="https://challenges.cloudflare.com/turnstile/v0/api.js",a.cf_turnstile=o,document.head.appendChild(o)}function e(s){let o=s.dataset,c=document.getElementById("js_callback__img"),r=document.getElementById("js_callback__product-name"),n=document.getElementById("js_callback__product-price");o.productId&&(c.src=o.img,r.innerHTML=o.name,n.textContent=o.price,data_layer.push_ecommerce("one_click_order")),c.hidden=!o.img,r.hidden=!o.name,n.hidden=!o.price,document.getElementById("js_callback__delivery").hidden=!o.productId,a.dataset.customizationCode=o.customizationCode||"",a.dataset.productId=o.productId||"",document.getElementById("modal-callback").Modal.show()}}};/*! * Native JavaScript for Bootstrap v3.0.10 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2020 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */var pt="webkitTransition"in document.head.style?"webkitTransitionEnd":"transitionend",yt="webkitTransition"in document.head.style||"transition"in document.head.style,Yt="webkitTransition"in document.head.style?"webkitTransitionDuration":"transitionDuration";function lt(t){var a=yt?parseFloat(getComputedStyle(t)[Yt]):0;return a=typeof a=="number"&&!isNaN(a)?a*1e3:0,a}function S(t,a){var i=0,e=lt(t);e?t.addEventListener(pt,function s(o){!i&&a(o),i=1,t.removeEventListener(pt,s)}):setTimeout(function(){!i&&a(),i=1},17)}function L(t,a){var i=a&&a instanceof Element?a:document;return t instanceof Element?t:i.querySelector(t)}function C(t,a,i){var e=new CustomEvent(t+".bs."+a,{cancelable:!0});return e.relatedTarget=i,e}function y(t){this&&this.dispatchEvent(t)}function Lt(t){var a=this,i,e=C("close","alert"),s=C("closed","alert");function o(){i.classList.contains("fade")?S(i,n):n()}function c(d){d=d?"addEventListener":"removeEventListener",t[d]("click",r,!1)}function r(d){i=d&&d.target.closest(".alert"),t=L('[data-dismiss="alert"]',i),t&&i&&(t===d.target||t.contains(d.target))&&a.close()}function n(){c(),i.parentNode.removeChild(i),y.call(i,s)}a.close=function(){if(i&&t&&i.classList.contains("show")){if(y.call(i,e),e.defaultPrevented)return;a.dispose(),i.classList.remove("show"),o()}},a.dispose=function(){c(),delete t.Alert},t=L(t),i=t.closest(".alert"),t.Alert&&t.Alert.dispose(),t.Alert||c(1),a.element=t,t.Alert=a}function Et(t){var a=this,i,e=C("change","button");function s(d){var l,g=d.target.tagName==="LABEL"?d.target:d.target.closest("LABEL")?d.target.closest("LABEL"):null;if(l=g&&g.getElementsByTagName("INPUT")[0],!!l){if(y.call(l,e),y.call(t,e),l.type==="checkbox"){if(e.defaultPrevented)return;l.checked?(g.classList.remove("active"),l.getAttribute("checked"),l.removeAttribute("checked"),l.checked=!1):(g.classList.add("active"),l.getAttribute("checked"),l.setAttribute("checked","checked"),l.checked=!0),t.toggled||(t.toggled=!0)}if(l.type==="radio"&&!t.toggled){if(e.defaultPrevented)return;(!l.checked||d.screenX===0&&d.screenY==0)&&(g.classList.add("active"),g.classList.add("focus"),l.setAttribute("checked","checked"),l.checked=!0,t.toggled=!0,Array.from(i).map(function(h){var f=h.getElementsByTagName("INPUT")[0];h!==g&&h.classList.contains("active")&&(y.call(f,e),h.classList.remove("active"),f.removeAttribute("checked"),f.checked=!1)}))}setTimeout(function(){t.toggled=!1},50)}}function o(d){var l=d.which||d.keyCode;l===32&&d.target===document.activeElement&&s(d)}function c(d){var l=d.which||d.keyCode;l===32&&d.preventDefault()}function r(d){if(d.target.tagName==="INPUT"){var l=d.type==="focusin"?"add":"remove";d.target.closest(".btn").classList[l]("focus")}}function n(d){d=d?"addEventListener":"removeEventListener",t[d]("click",s,!1),t[d]("keyup",o,!1),t[d]("keydown",c,!1),t[d]("focusin",r,!1),t[d]("focusout",r,!1)}a.dispose=function(){n(),delete t.Button},t=L(t),t.Button&&t.Button.dispose(),i=t.getElementsByClassName("btn"),i.length&&(t.Button||n(1),t.toggled=!1,t.Button=a,Array.from(i).map(function(d){!d.classList.contains("active")&&L("input:checked",d)&&d.classList.add("active"),d.classList.contains("active")&&!L("input:checked",d)&&d.classList.remove("active")}))}var J="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],zt=function(){var t=!1;try{var a=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",function i(){document.removeEventListener("DOMContentLoaded",i,a)},a)}catch{}return t}(),W=zt?{passive:!0}:!1;function Jt(t){var a=t.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;return a.top<=i&&a.bottom>=0}function kt(t,a){a=a||{};var i=this,e,s,o,c,r,n,d,l,g;function h(){s.interval!==!1&&!t.classList.contains("paused")&&(t.classList.add("paused"),!e.isSliding&&(clearInterval(e.timer),e.timer=null))}function f(){s.interval!==!1&&t.classList.contains("paused")&&(t.classList.remove("paused"),!e.isSliding&&(clearInterval(e.timer),e.timer=null),!e.isSliding&&i.cycle())}function m(u){if(u.preventDefault(),!e.isSliding){var E=u.target;if(E&&!E.classList.contains("active")&&E.getAttribute("data-slide-to"))e.index=parseInt(E.getAttribute("data-slide-to"));else return!1;i.slideTo(e.index)}}function v(u){if(u.preventDefault(),!e.isSliding){var E=u.currentTarget||u.srcElement;E===d?e.index++:E===n&&e.index--,i.slideTo(e.index)}}function I(u){var E=u.which;if(!e.isSliding){switch(E){case 39:e.index++;break;case 37:e.index--;break;default:return}i.slideTo(e.index)}}function A(u){u=u?"addEventListener":"removeEventListener",s.pause&&s.interval&&(t[u](J[0],h,!1),t[u](J[1],f,!1),t[u]("touchstart",h,W),t[u]("touchend",f,W)),s.touch&&r.length>1&&t[u]("touchstart",w,W),d&&d[u]("click",v,!1),n&&n[u]("click",v,!1),l&&l[u]("click",m,!1),s.keyboard&&window[u]("keydown",I,!1)}function _(u){u=u?"addEventListener":"removeEventListener",t[u]("touchmove",b,W),t[u]("touchend",x,W)}function w(u){e.isTouch||(e.touchPosition.startX=u.changedTouches[0].pageX,t.contains(u.target)&&(e.isTouch=!0,_(1)))}function b(u){if(!e.isTouch){u.preventDefault();return}if(e.touchPosition.currentX=u.changedTouches[0].pageX,u.type==="touchmove"&&u.changedTouches.length>1)return u.preventDefault(),!1}function x(u){if(!(!e.isTouch||e.isSliding)&&(e.touchPosition.endX=e.touchPosition.currentX||u.changedTouches[0].pageX,e.isTouch)){if((!t.contains(u.target)||!t.contains(u.relatedTarget))&&Math.abs(e.touchPosition.startX-e.touchPosition.endX)<75)return!1;e.touchPosition.currentXe.touchPosition.startX&&e.index--,e.isTouch=!1,i.slideTo(e.index),_()}}function P(u){Array.from(g).map(function(E){E.classList.remove("active")}),g[u]&&g[u].classList.add("active")}function j(u){if(e.touchPosition){var E=e.index,R=u&&u.target!==r[E]?u.elapsedTime*1e3+100:20,z=i.getActiveIndex(),$=e.direction==="left"?"next":"prev";e.isSliding&&setTimeout(function(){e.touchPosition&&(e.isSliding=!1,r[E].classList.add("active"),r[z].classList.remove("active"),r[E].classList.remove("carousel-item-"+$),r[E].classList.remove("carousel-item-"+e.direction),r[z].classList.remove("carousel-item-"+e.direction),y.call(t,c),!document.hidden&&s.interval&&!t.classList.contains("paused")&&i.cycle())},R)}}if(i.cycle=function(){e.timer&&(clearInterval(e.timer),e.timer=null),e.timer=setInterval(function(){var u=e.index||i.getActiveIndex();Jt(t)&&(u++,i.slideTo(u))},s.interval)},i.slideTo=function(u){if(!e.isSliding){var E=i.getActiveIndex(),R;E!==u&&(Eu||E===r.length-1&&u===0)&&(e.direction="right"),u<0?u=r.length-1:u>=r.length&&(u=0),R=e.direction==="left"?"next":"prev",o=C("slide","carousel",r[u]),c=C("slid","carousel",r[u]),y.call(t,o),!o.defaultPrevented&&(e.index=u,e.isSliding=!0,clearInterval(e.timer),e.timer=null,P(u),lt(r[u])&&t.classList.contains("slide")?(r[u].classList.add("carousel-item-"+R),r[u].offsetWidth,r[u].classList.add("carousel-item-"+e.direction),r[E].classList.add("carousel-item-"+e.direction),S(r[u],j)):(r[u].classList.add("active"),r[u].offsetWidth,r[E].classList.remove("active"),setTimeout(function(){e.isSliding=!1,s.interval&&t&&!t.classList.contains("paused")&&i.cycle(),y.call(t,c)},100))))}},i.getActiveIndex=function(){return Array.from(r).indexOf(t.getElementsByClassName("carousel-item active")[0])||0},i.dispose=function(){var u=["left","right","prev","next"];Array.from(r).map(function(E,R){E.classList.contains("active")&&P(R),u.map(function(z){return E.classList.remove("carousel-item-"+z)})}),clearInterval(e.timer),A(),e={},s={},delete t.Carousel},t=L(t),t.Carousel&&t.Carousel.dispose(),r=t.getElementsByClassName("carousel-item"),n=t.getElementsByClassName("carousel-control-prev")[0],d=t.getElementsByClassName("carousel-control-next")[0],l=t.getElementsByClassName("carousel-indicators")[0],g=l&&l.getElementsByTagName("LI")||[],!(r.length<2)){var k=t.getAttribute("data-interval"),T=k==="false"?0:parseInt(k),H=t.getAttribute("data-touch")==="false"?0:1,p=t.getAttribute("data-pause")==="hover"||!1,M=t.getAttribute("data-keyboard")==="true"||!1,O=a.interval,q=a.touch;s={},s.keyboard=a.keyboard===!0||M,s.pause=a.pause==="hover"||p?"hover":!1,s.touch=q||H,s.interval=typeof O=="number"?O:O===!1||T===0||T===!1?0:isNaN(T)?5e3:T,i.getActiveIndex()<0&&(r.length&&r[0].classList.add("active"),g.length&&P(0)),e={},e.direction="left",e.index=0,e.timer=null,e.isSliding=!1,e.isTouch=!1,e.touchPosition={startX:0,currentX:0,endX:0},A(1),s.interval&&i.cycle(),t.Carousel=i}}function Ct(t,a){a=a||{};var i=this,e=null,s=null,o,c,r,n,d,l;function g(m,v){y.call(m,r),!r.defaultPrevented&&(m.isAnimating=!0,m.classList.add("collapsing"),m.classList.remove("collapse"),m.style.height=m.scrollHeight+"px",S(m,function(){m.isAnimating=!1,m.setAttribute("aria-expanded","true"),v.setAttribute("aria-expanded","true"),m.classList.remove("collapsing"),m.classList.add("collapse"),m.classList.add("show"),m.style.height="",y.call(m,n)}))}function h(m,v){y.call(m,d),!d.defaultPrevented&&(m.isAnimating=!0,m.style.height=m.scrollHeight+"px",m.classList.remove("collapse"),m.classList.remove("show"),m.classList.add("collapsing"),m.offsetWidth,m.style.height="0px",S(m,function(){m.isAnimating=!1,m.setAttribute("aria-expanded","false"),v.setAttribute("aria-expanded","false"),m.classList.remove("collapsing"),m.classList.add("collapse"),m.style.height="",y.call(m,l)}))}i.toggle=function(m){(m&&m.target.tagName==="A"||t.tagName==="A")&&m.preventDefault(),(t.contains(m.target)||m.target===t)&&(s.classList.contains("show")?i.hide():i.show())},i.hide=function(){s.isAnimating||(h(s,t),t.classList.add("collapsed"))},i.show=function(){e&&(o=e.getElementsByClassName("collapse show")[0],c=o&&(L('[data-target="#'+o.id+'"]',e)||L('[href="#'+o.id+'"]',e))),s.isAnimating||(c&&o!==s&&(h(o,c),c.classList.add("collapsed")),g(s,t),t.classList.remove("collapsed"))},i.dispose=function(){t.removeEventListener("click",i.toggle,!1),delete t.Collapse},t=L(t),t.Collapse&&t.Collapse.dispose();var f=t.getAttribute("data-parent");r=C("show","collapse"),n=C("shown","collapse"),d=C("hide","collapse"),l=C("hidden","collapse"),s=L(a.target||t.getAttribute("data-target")||t.getAttribute("href")),s.isAnimating=!1,e=t.closest(a.parent||f),t.Collapse||t.addEventListener("click",i.toggle,!1),t.Collapse=i}function Q(t){t.focus?t.focus():t.setActive()}function Tt(t,a){var i=this,e,s,o,c,r=null,n,d,l=[],g;function h(_){(_.href&&_.href.slice(-1)==="#"||_.parentNode&&_.parentNode.href&&_.parentNode.href.slice(-1)==="#")&&this.preventDefault()}function f(){var _=t.open?"addEventListener":"removeEventListener";document[_]("click",m,!1),document[_]("keydown",I,!1),document[_]("keyup",A,!1),document[_]("focus",m,!1)}function m(_){var w=_.target,b=w&&(w.getAttribute("data-toggle")||w.parentNode&&w.parentNode.getAttribute&&w.parentNode.getAttribute("data-toggle"));_.type==="focus"&&(w===t||w===d||d.contains(w))||(w===d||d.contains(w))&&(g||b)||(r=w===t||t.contains(w)?t:null,i.hide(),h.call(_,w))}function v(_){r=t,i.show(),h.call(_,_.target)}function I(_){var w=_.which||_.keyCode;(w===38||w===40)&&_.preventDefault()}function A(_){var w=_.which||_.keyCode,b=document.activeElement,x=b===t,P=d.contains(b),j=b.parentNode===d||b.parentNode.parentNode===d,k=l.indexOf(b);j&&(k=x?0:w===38?k>1?k-1:0:w===40&&k=c,I=n.top+o.h/2+l.h/2>=r,A=n.top-o.h<0,_=n.left-o.w<0,w=n.top+o.h+l.h>=r,b=n.left+o.w+l.w>=c;i=(i==="left"||i==="right")&&_&&b?"top":i,i=i==="top"&&A?"bottom":i,i=i==="bottom"&&w?"top":i,i=i==="left"&&_?"right":i,i=i==="right"&&b?"left":i;var x,P,j,k,T,H;a.className.indexOf(i)===-1&&(a.className=a.className.replace(s,i)),T=h.offsetWidth,H=h.offsetHeight,i==="left"||i==="right"?(i==="left"?P=n.left+d.x-o.w-(g?T:0):P=n.left+d.x+l.w,f?(x=n.top+d.y,j=l.h/2-T):I?(x=n.top+d.y-o.h+l.h,j=o.h-l.h/2-T):(x=n.top+d.y-o.h/2+l.h/2,j=o.h/2-(g?H*.9:H/2))):(i==="top"||i==="bottom")&&(i==="top"?x=n.top+d.y-o.h-(g?H:0):x=n.top+d.y+l.h,m?(P=0,k=n.left+l.w/2-T):v?(P=c-o.w*1.01,k=o.w-(c-n.left)+l.w/2-T/2):(P=n.left+d.x-o.w/2+l.w/2,k=o.w/2-(g?T:T/2))),a.style.top=x+"px",a.style.left=P+"px",j&&(h.style.top=j+"px"),k&&(h.style.left=k+"px")}function jt(t,a){a=a||{};var i=this,e=null,s=0,o=/(iPhone|iPod|iPad)/.test(navigator.userAgent),c,r,n={},d,l,g,h,f,m,v,I,A,_,w,b,x,P,j,k,T;function H(B){e!==null&&B.target===L(".close",e)&&i.hide()}function p(){return{0:a.title||t.getAttribute("data-title")||null,1:a.content||t.getAttribute("data-content")||null}}function M(){n.container.removeChild(e),s=null,e=null}function O(){c=p()[0]||null,r=p()[1],r=r?r.trim():null,e=document.createElement("div");var B=document.createElement("div");if(B.classList.add("arrow"),e.appendChild(B),r!==null&&n.template===null){if(e.setAttribute("role","tooltip"),c!==null){var et=document.createElement("h3");et.classList.add("popover-header"),et.innerHTML=n.dismissible?c+v:c,e.appendChild(et)}var it=document.createElement("div");it.classList.add("popover-body"),it.innerHTML=n.dismissible&&c===null?r+v:r,e.appendChild(it)}else{var at=document.createElement("div");at.innerHTML=n.template.trim(),e.className=at.firstChild.className,e.innerHTML=at.firstChild.innerHTML;var mt=L(".popover-header",e),ft=L(".popover-body",e);c&&mt&&(mt.innerHTML=c.trim()),r&&ft&&(ft.innerHTML=r.trim())}n.container.appendChild(e),e.style.display="block",!e.classList.contains("popover")&&e.classList.add("popover"),!e.classList.contains(n.animation)&&e.classList.add(n.animation),!e.classList.contains(T)&&e.classList.add(T)}function q(){!e.classList.contains("show")&&e.classList.add("show")}function u(){Pt(t,e,n.placement,n.container)}function E(){e===null&&t.focus()}function R(B){B=B?"addEventListener":"removeEventListener",n.trigger==="hover"?(t[B](xt.down,i.show),t[B](J[0],i.show),n.dismissible||t[B](J[1],i.hide)):n.trigger=="click"?t[B](n.trigger,i.toggle):n.trigger=="focus"&&(o&&t[B]("click",E,!1),t[B](n.trigger,i.toggle))}function z(B){e&&e.contains(B.target)||B.target===t||t.contains(B.target)||i.hide()}function $(B){B=B?"addEventListener":"removeEventListener",n.dismissible?document[B]("click",H,!1):(n.trigger=="focus"&&t[B]("blur",i.hide),n.trigger=="hover"&&document[B]("touchstart",z,W)),window[B]("resize",i.hide,W)}function ct(){$(1),y.call(t,A)}function dt(){$(),M(),y.call(t,w)}i.toggle=function(){e===null?i.show():i.hide()},i.show=function(){clearTimeout(s),s=setTimeout(function(){if(e===null){if(y.call(t,I),I.defaultPrevented)return;O(),u(),q(),n.animation?S(e,ct):ct()}},20)},i.hide=function(){clearTimeout(s),s=setTimeout(function(){if(e&&e!==null&&e.classList.contains("show")){if(y.call(t,_),_.defaultPrevented)return;e.classList.remove("show"),n.animation?S(e,dt):dt()}},n.delay)},i.dispose=function(){i.hide(),R(),delete t.Popover},t=L(t),t.Popover&&t.Popover.dispose(),d=t.getAttribute("data-trigger"),l=t.getAttribute("data-animation"),g=t.getAttribute("data-placement"),h=t.getAttribute("data-dismissible"),f=t.getAttribute("data-delay"),m=t.getAttribute("data-container"),v='',I=C("show","popover"),A=C("shown","popover"),_=C("hide","popover"),w=C("hidden","popover"),b=L(a.container),x=L(m),P=t.closest(".modal"),j=t.closest(".fixed-top"),k=t.closest(".fixed-bottom"),n.template=a.template?a.template:null,n.trigger=a.trigger?a.trigger:d||"hover",n.animation=a.animation&&a.animation!=="fade"?a.animation:l||"fade",n.placement=a.placement?a.placement:g||"top",n.delay=parseInt(a.delay||f)||200,n.dismissible=!!(a.dismissible||h==="true"),n.container=b||x||j||k||P||document.body,T="bs-popover-"+n.placement;var ut=p();c=ut[0],r=ut[1],!(!r&&!n.template)&&(t.Popover||R(1),t.Popover=i)}function Bt(t,a){a=a||{};var i=this,e,s,o,c,r,n={};function d(){var f=c.getElementsByTagName("A");e.length!==f.length&&(e.items=[],e.targets=[],Array.from(f).map(function(m){var v=m.getAttribute("href"),I=v&&v.charAt(0)==="#"&&v.slice(-1)!=="#"&&L(v);I&&(e.items.push(m),e.targets.push(I))}),e.length=f.length)}function l(f){var m=e.items[f],v=e.targets[f],I=m.classList.contains("dropdown-item")&&m.closest(".dropdown-menu"),A=I&&I.previousElementSibling,_=m.nextElementSibling,w=_&&_.getElementsByClassName("active").length,b=e.isWindow&&v.getBoundingClientRect(),x=m.classList.contains("active")||!1,P=(e.isWindow?b.top+e.scrollOffset:v.offsetTop)-n.offset,j=e.isWindow?b.bottom+e.scrollOffset-n.offset:e.targets[f+1]?e.targets[f+1].offsetTop-n.offset:t.scrollHeight,k=w||e.scrollOffset>=P&&j>e.scrollOffset;if(!x&&k)m.classList.add("active"),A&&!A.classList.contains("active")&&A.classList.add("active"),y.call(t,C("activate","scrollspy",e.items[f]));else if(x&&!k)m.classList.remove("active"),A&&A.classList.contains("active")&&!m.parentNode.getElementsByClassName("active").length&&A.classList.remove("active");else if(x&&k||!k&&!x)return}function g(){d(),e.scrollOffset=e.isWindow?It().y:t.scrollTop,e.items.map(function(f,m){return l(m)})}function h(f){f=f?"addEventListener":"removeEventListener",r[f]("scroll",i.refresh,W),window[f]("resize",i.refresh,W)}i.refresh=function(){g()},i.dispose=function(){h(),delete t.ScrollSpy},t=L(t),t.ScrollSpy&&t.ScrollSpy.dispose(),s=t.getAttribute("data-target"),o=t.getAttribute("data-offset"),c=L(a.target||s),r=t.offsetHeight1&&(H=T[T.length-1]),H}function j(){return L(P().getAttribute("href"))}function k(T){T.preventDefault(),l=T.currentTarget,!s.isAnimating&&i.show()}i.show=function(){if(l=l||t,!l.classList.contains("active")){if(m=L(l.getAttribute("href")),h=P(),f=j(),n=C("hide","tab",l),y.call(h,n),n.defaultPrevented)return;s.isAnimating=!0,h.classList.remove("active"),h.setAttribute("aria-selected","false"),l.classList.add("active"),l.setAttribute("aria-selected","true"),o&&(t.parentNode.classList.contains("dropdown-menu")?o.classList.contains("active")||o.classList.add("active"):o.classList.contains("active")&&o.classList.remove("active")),f.classList.contains("fade")?(f.classList.remove("show"),S(f,x)):x()}},i.dispose=function(){t.removeEventListener("click",k,!1),delete t.Tab},t=L(t),t.Tab&&t.Tab.dispose(),e=t.getAttribute("data-height"),s=t.closest(".nav"),o=s&&L(".dropdown-toggle",s),_=!(!yt||a.height===!1||e==="false"),s.isAnimating=!1,t.Tab||t.addEventListener("click",k,!1),_&&(g=j().parentNode),t.Tab=i}function Mt(t,a){a=a||{};var i=this,e,s=0,o,c,r,n,d,l,g,h={};function f(){e.classList.remove("showing"),e.classList.add("show"),y.call(e,l),h.autohide&&i.hide()}function m(){e.classList.add("hide"),y.call(e,g)}function v(){e.classList.remove("show"),h.animation?S(e,m):m()}function I(){clearTimeout(s),t.removeEventListener("click",i.hide,!1),delete t.Toast}i.show=function(){if(e&&!e.classList.contains("show")){if(y.call(e,n),n.defaultPrevented)return;h.animation&&e.classList.add("fade"),e.classList.remove("hide"),e.offsetWidth,e.classList.add("showing"),h.animation?S(e,f):f()}},i.hide=function(A){if(e&&e.classList.contains("show")){if(y.call(e,d),d.defaultPrevented)return;A?v():s=setTimeout(v,h.delay)}},i.dispose=function(){h.animation?S(e,I):I()},t=L(t),t.Toast&&t.Toast.dispose(),e=t.closest(".toast"),o=t.getAttribute("data-animation"),c=t.getAttribute("data-autohide"),r=t.getAttribute("data-delay"),n=C("show","toast"),d=C("hide","toast"),l=C("shown","toast"),g=C("hidden","toast"),h.animation=a.animation===!1||o==="false"?0:1,h.autohide=a.autohide===!1||c==="false"?0:1,h.delay=parseInt(a.delay||r)||500,t.Toast||t.addEventListener("click",i.hide,!1),t.Toast=i}function St(t,a){a=a||{};var i=this,e=null,s=0,o,c,r,n,d,l,g,h,f,m,v,I,A,_,w,b={};function x(){return t.getAttribute("title")||t.getAttribute("data-title")||t.getAttribute("data-original-title")}function P(){b.container.removeChild(e),e=null,s=null}function j(){if(o=x(),o){if(e=document.createElement("div"),b.template){var u=document.createElement("div");u.innerHTML=b.template.trim(),e.className=u.firstChild.className,e.innerHTML=u.firstChild.innerHTML,L(".tooltip-inner",e).innerHTML=o.trim()}else{var E=document.createElement("div");E.classList.add("arrow"),e.appendChild(E);var R=document.createElement("div");R.classList.add("tooltip-inner"),e.appendChild(R),R.innerHTML=o}e.style.left="0",e.style.top="0",e.setAttribute("role","tooltip"),!e.classList.contains("tooltip")&&e.classList.add("tooltip"),!e.classList.contains(b.animation)&&e.classList.add(b.animation),!e.classList.contains(w)&&e.classList.add(w),b.container.appendChild(e)}}function k(){Pt(t,e,b.placement,b.container)}function T(){!e.classList.contains("show")&&e.classList.add("show")}function H(u){e&&e.contains(u.target)||u.target===t||t.contains(u.target)||i.hide()}function p(u){u=u?"addEventListener":"removeEventListener",document[u]("touchstart",H,W),window[u]("resize",i.hide,W)}function M(){p(1),y.call(t,g)}function O(){p(),P(),y.call(t,f)}function q(u){u=u?"addEventListener":"removeEventListener",t[u](xt.down,i.show,!1),t[u](J[0],i.show,!1),t[u](J[1],i.hide,!1)}i.show=function(){clearTimeout(s),s=setTimeout(function(){if(e===null){if(y.call(t,l),l.defaultPrevented)return;j()!==!1&&(k(),T(),b.animation?S(e,M):M())}},20)},i.hide=function(){clearTimeout(s),s=setTimeout(function(){if(e&&e.classList.contains("show")){if(y.call(t,h),h.defaultPrevented)return;e.classList.remove("show"),b.animation?S(e,O):O()}},b.delay)},i.toggle=function(){e?i.hide():i.show()},i.dispose=function(){q(),i.hide(),t.setAttribute("title",t.getAttribute("data-original-title")),t.removeAttribute("data-original-title"),delete t.Tooltip},t=L(t),t.Tooltip&&t.Tooltip.dispose(),c=t.getAttribute("data-animation"),r=t.getAttribute("data-placement"),n=t.getAttribute("data-delay"),d=t.getAttribute("data-container"),l=C("show","tooltip"),g=C("shown","tooltip"),h=C("hide","tooltip"),f=C("hidden","tooltip"),m=L(a.container),v=L(d),I=t.closest(".modal"),A=t.closest(".fixed-top"),_=t.closest(".fixed-bottom"),b.animation=a.animation&&a.animation!=="fade"?a.animation:c||"fade",b.placement=a.placement?a.placement:r||"top",b.template=a.template?a.template:null,b.delay=parseInt(a.delay||n)||200,b.container=m||v||A||_||I||document.body,w="bs-tooltip-"+b.placement,o=x(),o&&(t.Tooltip||(t.setAttribute("data-original-title",o),t.removeAttribute("title"),q(1)),t.Tooltip=i)}var N={};function Zt(t,a){Array.from(a).map(function(i){return new t(i)})}function nt(t){t=t||document;for(var a in N)Zt(N[a][0],t.querySelectorAll(N[a][1]))}N.Alert=[Lt,'[data-dismiss="alert"]'];N.Button=[Et,'[data-toggle="buttons"]'];N.Carousel=[kt,'[data-ride="carousel"]'];N.Collapse=[Ct,'[data-toggle="collapse"]'];N.Dropdown=[Tt,'[data-toggle="dropdown"]'];N.Modal=[At,'[data-toggle="modal"]'];N.Popover=[jt,'[data-toggle="popover"],[data-tip="popover"]'];N.ScrollSpy=[Bt,'[data-spy="scroll"]'];N.Tab=[Dt,'[data-toggle="tab"]'];N.Toast=[Mt,'[data-dismiss="toast"]'];N.Tooltip=[St,'[data-toggle="tooltip"],[data-tip="tooltip"]'];document.body?nt():document.addEventListener("DOMContentLoaded",function t(){nt(),document.removeEventListener("DOMContentLoaded",t,!1)},!1);function Gt(t,a){Array.from(a).map(function(i){return i[t].dispose()})}function Qt(t){t=t||document;for(var a in N)Gt(a,t.querySelectorAll(N[a][1]))}var $t="3.0.10",F={Alert:Lt,Button:Et,Carousel:kt,Collapse:Ct,Dropdown:Tt,Modal:At,Popover:jt,ScrollSpy:Bt,Tab:Dt,Toast:Mt,Tooltip:St,initCallback:nt,removeDataAPI:Qt,componentsInit:N,Version:$t};const Kt=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),te={init(){const t=document.forms.js_search;if(!t)return;const a=document.getElementById("js_search__btn-clear"),i=document.getElementById("js_search__input"),e=document.getElementById("js_search__direct-page");let s=[],o=null;a.addEventListener("click",()=>{i.value="",o.hidden=!0,a.hidden=!0,document.body.classList.remove("new-modal-open"),requestAnimationFrame(()=>i.focus())}),e.addEventListener("click",()=>{c()}),i.addEventListener("input",r=>{const n=r.target.value.trim();a.hidden=!n,debounce(()=>{o||(o=document.createElement("div"),o.className="site-search-result",o.hidden=!0,i.after(o)),n.length>2?(e.inner_html||(e.inner_html=e.innerHTML,e.innerHTML=''),vt({q:n}).then(d=>{s=d.data;let l="";if(s.length){let f="",m="";s.forEach(v=>{const A=``,_=`${A+v.name}`;v.type==="menu"?f+=_:m+=_}),m&&(l+=`
${trans.common.products}
${m}
`),f&&(l+=`
${trans.common.categories}
${f}
`)}else l="
"+trans.common.nothing_found+"
";o.innerHTML=l;const g=document.documentElement.clientHeight,h=i.getBoundingClientRect();g-h.bottomtoastr.error(trans.common.error)).finally(()=>{e.inner_html&&(e.innerHTML=e.inner_html,e.inner_html="")})):(o.hidden=!0,document.body.classList.remove("new-modal-open"))},300,this)()}),i.addEventListener("blur",r=>{const n=r.target.value.trim();n&&axios.post("/ajax/search-query/register",{query:n})}),t.addEventListener("submit",r=>{r.preventDefault(),c()});function c(r=i.value){browser_storage.local.setItem("search_data",JSON.stringify({query:r,data:s})),location.assign("/search?q="+encodeURIComponent(r))}}},V={el:null,init(){const t=this.el=document.getElementById("js_header");if(!t)return null;if(viewport_width<992)t.scroll_pos=0,window.addEventListener("scroll",()=>{t.scroll_ticking||(t.scroll_ticking=!0,requestAnimationFrame(()=>{window.scrollY?(t.classList.add("header_scroll"),scrollY<(V.el.dataset.scrollY||200)||scrollYt.scroll_pos+50&&(t.style.transform="translateY(calc(-100% - 4px))",t.scroll_pos=scrollY)):(t.classList.remove("header_scroll"),t.style.height=""),t.scroll_ticking=!1}))});else{const a=t.getBoundingClientRect();t.style.top=`-${a.bottom-a.top-document.getElementById("js_header__bottom-panel").clientHeight}px`,window.addEventListener("scroll",()=>t.classList.toggle("header_scroll",!!scrollY))}return te.init(),this.init_catalog_menu(),this.init_city_confirmation(),this.init_modal_menu(),this.init_modal_auth(),this.init_mobile_search(),{el:t}},init_catalog_menu(){if(viewport_width<992)return;const t=document.getElementById("js_all-catalog-menu-dropdown");if(!t)return;const a=document.getElementById("js_all-catalog-menu-btn"),i=document.getElementById("js_all-catalog-menu");let e=null;a.addEventListener("mouseenter",()=>{clearTimeout(i.timer),clearTimeout(i.timer_2),d()}),a.addEventListener("mouseleave",()=>{this.init_catalog_menu.active||(i.timer=setTimeout(()=>o(),250))}),i.addEventListener("mouseenter",()=>{clearTimeout(i.timer),clearTimeout(i.timer_2)}),i.addEventListener("mouseleave",()=>{this.init_catalog_menu.active||(i.timer_2=setTimeout(()=>o(),250))}),a.addEventListener("click",l);function s(g){const h=g.currentTarget;h.classList.toggle("all-catalog-menu__list-item-more_active"),h.textContent=h.classList.contains("all-catalog-menu__list-item-more_active")?trans.common.roll_up:trans.common.show_more,forEachDOMCollection(h.closest(".js_all-catalog-menu__list-group").querySelectorAll(".js_all-catalog-menu__list-item"),(f,m)=>{m<9||(f.hidden=!f.hidden)})}function o(){t.classList.remove("all-catalog-menu-dropdown_show"),e.remove();const g=document.getElementById("js_all-catalog-menu__main-list");g.removeEventListener("mouseleave",r),g.removeEventListener("mouseover",n),window.removeEventListener("keyup",c),forEachDOMCollection(".js_all-catalog-menu__list-item-more",h=>{h.removeEventListener("click",s)})}function c(g){g.keyCode===27&&document.getElementById("js_all-catalog-menu-btn").click()}function r(){clearTimeout(n.timer_id)}function n(g){clearTimeout(n.timer_id),n.timer_id=setTimeout(()=>{var f;if(!g.target.classList.contains("js_all-catalog-menu__main-list-item"))return;(f=this.querySelector(".all-catalog-menu__main-list-item_active"))==null||f.classList.remove("all-catalog-menu__main-list-item_active"),g.target.classList.add("all-catalog-menu__main-list-item_active");let h=null;forEachDOMCollection(document.querySelectorAll(".js_all-catalog-menu__list"),m=>{m.dataset.id===g.target.dataset.id?(m.hidden=!1,document.getElementById("js_all-catalog-menu__secondary-lists").scrollTo(0,0),h=m):m.hidden=!0}),i.classList.toggle("all-catalog-menu_compact",!h)},32)}function d(){t.classList.add("all-catalog-menu-dropdown_show"),e==null||e.remove(),e=document.createElement("div"),e.classList.add("all-catalog-menu-bg"),e.onclick=()=>{V.init_catalog_menu.active=!1,o()},V.el.after(e);const g=document.getElementById("js_all-catalog-menu__main-list");g.addEventListener("mouseleave",r),g.addEventListener("mouseover",n),window.addEventListener("keyup",c),forEachDOMCollection(".js_all-catalog-menu__list-item-more",h=>{h.addEventListener("click",s)})}function l(){V.init_catalog_menu.active=!V.init_catalog_menu.active,V.init_catalog_menu.active?d():o()}},init_city_confirmation(){setTimeout(()=>{if(get_cookie("city_confirmed"))return;const a=document.getElementById("js_confirm-city");if(!a)return;let i=document.getElementById("js_btn-show-modal-select-city_desktop");viewport_width<992&&(i=document.getElementById("js_btn-show-modal-select-city")),new F.Popover(i,{content:a.outerHTML,placement:"bottom",template:'',trigger:"manual"}),a.remove();let e=parseInt(browser_storage.session.getItem("city_confirmed"))||0;if(e>=3){s();return}browser_storage.session.setItem("city_confirmed",++e),i.addEventListener("shown.bs.popover",()=>{forEachDOMCollection(".js_confirm-city__btn",o=>{o.addEventListener("click",function(){s(),this.dataset.target&&new F.Modal(this.dataset.target).show()},{once:!0})})}),i.Popover.show(),setTimeout(s,6e4);function s(){i.Popover.dispose(),set_cookie("city_confirmed",1,{"max-age":86400})}},1e3)},init_mobile_search(){var t;(t=document.getElementById("js_btn-show-mobile-search"))==null||t.addEventListener("click",()=>{global_storage.layers.footer.mobile_search=!0})},init_modal_menu(){var a,i;global_storage.app_modal_menu={app:null,show(){if(!global_storage.app_modal_menu.app)return t();global_storage.app_modal_menu.app.show()}},(a=document.getElementById("js_app-mobile-menu"))==null||a.addEventListener("click",t,{once:!0}),(i=document.getElementById("js_header__menu-item_btn-more"))==null||i.addEventListener("click",()=>{global_storage.app_modal_menu.show()});async function t(){swal.blockUI(),await Y(()=>import("./mobile-menu-BlwkAITJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),setTimeout(()=>swal.close(),200)}},init_modal_auth(){var a;global_storage.app_modal_auth={app:null,close(){global_storage.app_modal_auth.app&&global_storage.app_modal_auth.app.close()},show(){if(!global_storage.app_modal_auth.app)return t();global_storage.app_modal_auth.app.show()}},(a=document.getElementById("js_app-modal-auth__btn"))==null||a.addEventListener("click",t,{once:!0});function t(){swal.blockUI(),get_translations("auth.passwords.policy",async()=>{await Y(()=>import("./modal-auth-CP7yVX_8.js"),__vite__mapDeps([25,26,11,7,4,10,27,2,3,5,28,29,30,31])),setTimeout(()=>swal.close(),200)})}}};function ee(t,a="menu"){return axios.get("/api/menu/catalog",{params:{city_id:t,domain_id:globalParams.domain_id,view_type:a}}).then(i=>i.data)}const ie={name:"SearchProducts",components:{VMultiselect:qt},mixins:[bt],data(){return{list:[],loading:!1,query:"",trans}},methods:{close_product_search(){!this.query.length<3||axios.post("/ajax/search-query/register",{query:this.query})},get_products(t){this.query=t,!(t.length<3)&&(this.loading=!0,debounce(()=>{vt({q:t}).then(a=>this.list=a.data).catch(()=>toastr.error(trans.common.error)).finally(()=>this.loading=!1)},500,this)())},select_product(t){location.assign(t.url)}}},ae={class:"search-products__item"},se=["src"];function oe(t,a,i,e,s,o){const c=st("v-multiselect");return X(),Rt(c,{ref:"multiselect",class:"search-products",options:s.list,loading:s.loading,"internal-search":!1,label:"name","track-by":"id",placeholder:t.$translate("common.search_in_site"),onClose:a[0]||(a[0]=r=>o.close_product_search()),onSearchChange:a[1]||(a[1]=r=>o.get_products(r)),onSelect:a[2]||(a[2]=r=>o.select_product(r))},{caret:K(()=>a[3]||(a[3]=[D("div",{class:"search-products__caret"},[D("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[D("path",{d:"M16.6101 16.6101C19.7236 13.4966 19.7236 8.44862 16.6101 5.33512C13.4966 2.22163 8.44862 2.22163 5.33512 5.33512C2.22163 8.44862 2.22163 13.4966 5.33512 16.6101C8.44862 19.7236 13.4966 19.7236 16.6101 16.6101ZM16.6101 16.6101L21 21",stroke:"#C0C6CE","stroke-width":"1.5","stroke-linecap":"round"})])],-1)])),option:K(r=>[D("div",ae,[D("img",{class:"img-fluid search-products__item-img",src:r.option.images?r.option.images[0].small_image:"/img/default_bouquet.png",width:"48",height:"48",alt:""},null,8,se),tt(" "+G(r.option.name),1)])]),noOptions:K(()=>a[4]||(a[4]=[tt(" ")])),noResult:K(()=>[tt(G(s.query.length>2&&!s.loading?t.$translate("common.nothing_found"):""),1)]),_:1},8,["options","loading","placeholder"])}const ne=wt(ie,[["render",oe]]),re={name:"MobileCatalogMenu",components:{Preloader:Ot,SearchProducts:ne},mixins:[bt],props:{homeUrl:{required:!0,type:String}},emits:["close"],data(){return{active_item:null,data:null,loading:!1,parent_items:[],trans,visible:!1}},computed:{logo(){const t={height:"36px",url:"",width:""};return globalParams.domain_id===1?(t.url="/img/flomarket-logo.svg",t.width="140px"):(t.url="/img/mgf-logo.svg",t.width="188px"),t},menu(){var a,i;let t=this.data;return(a=this.active_item)!=null&&a.categories?Object.keys(this.active_item.categories).length===1?t=this.active_item.categories[Object.keys(this.active_item.categories)[0]].items:t=this.active_item.categories:Object.keys(((i=this.active_item)==null?void 0:i.items)||{}).length&&(t=this.active_item.items),t}},mounted(){this.show(),this.get_catalog_menu()},beforeUnmount(){this.close()},methods:{back(){if(this.active_item){this.active_item=this.parent_items.pop();return}this.close()},check_item_holiday(t){return t.id===1146},close(){this.visible=!1,document.body.classList.remove("new-modal-open"),this.$emit("close")},get_catalog_menu(){this.loading=!0,ee(globalParams.city.id).then(({data:t})=>this.data=t).finally(()=>this.loading=!1)},select_item(t,a,i=!1){if(i){location.assign(a.url);return}if(!(a.url&&a.url!=="#"&&t.target.tagName==="A")){if(!a.categories&&!Object.keys(a.items||{}).length){location.assign(a.url);return}t.preventDefault(),this.parent_items.push(this.active_item),this.active_item=a,this.$refs["scroll-box"].scrollTo(0,0)}},show(){var t;(t=window.vue_sidebar)==null||t.close(),requestAnimationFrame(()=>{setTimeout(()=>{document.body.classList.add("new-modal-open"),this.visible=!0},32)})}}},le={class:"mobile-catalog-menu__content"},ce={class:"mobile-catalog-menu__box mobile-catalog-menu__header"},de=["href"],ue=["src","width","height"],me={ref:"scroll-box",class:"mobile-catalog-menu__box mobile-menu-catalog"},fe={key:1,class:"d-flex",style:{height:"100%"}},ge={key:2,class:"mobile-menu-catalog__list"},he=["onClick"],_e=["onClick"],pe=["src"],ve=["href"],be=["href"],we={class:"mobile-menu-catalog__item-title mobile-menu-catalog__item-title_accent"};function ye(t,a,i,e,s,o){const c=st("SearchProducts"),r=st("Preloader");return X(),U("div",{class:_t(["mobile-catalog-menu",{"mobile-catalog-menu_show":s.visible}])},[D("div",le,[D("div",ce,[D("a",{href:i.homeUrl},[D("img",{class:"img-fluid",src:o.logo.url,width:o.logo.width,height:o.logo.height,alt:""},null,8,ue)],8,de),D("button",{type:"button",class:"fm-btn fm-btn_icon fm-btn_icon-tertiary ml-auto mobile-catalog-menu__header-btn",onClick:a[0]||(a[0]=n=>o.close())},a[2]||(a[2]=[D("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[D("path",{d:"M7.75781 7.75732L16.2431 16.2426",stroke:"#656D77","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),D("path",{d:"M7.75691 16.2426L16.2422 7.75732",stroke:"#656D77","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),gt(c)]),D("div",me,[s.active_item?(X(),U("button",{key:0,type:"button",class:_t(["fm-btn fm-btn_text mb-3 mobile-menu-catalog__btn-back",{"mobile-menu-catalog__btn-back_bold":s.active_item}]),onClick:a[1]||(a[1]=n=>o.back())},[a[3]||(a[3]=D("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[D("path",{fill:"currentColor",d:"M12.5011 17.225C12.3428 17.225 12.1845 17.1667 12.0595 17.0417L6.62612 11.6084C5.74279 10.725 5.74279 9.27502 6.62612 8.39168L12.0595 2.95835C12.3011 2.71668 12.7011 2.71668 12.9428 2.95835C13.1845 3.20002 13.1845 3.60002 12.9428 3.84168L7.50946 9.27502C7.10946 9.67502 7.10946 10.325 7.50946 10.725L12.9428 16.1583C13.1845 16.4 13.1845 16.8 12.9428 17.0417C12.8178 17.1584 12.6595 17.225 12.5011 17.225Z"})],-1)),tt(" "+G(s.active_item.title),1)],2)):Z("",!0),s.loading?(X(),U("div",fe,[gt(r)])):o.menu?(X(),U("div",ge,[(X(!0),U(ht,null,Wt(o.menu,(n,d)=>(X(),U(ht,{key:d},[o.check_item_holiday(n)?(X(),U("div",{key:0,class:"mobile-menu-catalog__item mobile-menu-catalog__item_holiday",onClick:l=>o.select_item(l,n,!0)},null,8,he)):Z("",!0),D("div",{class:"mobile-menu-catalog__item",onClick:l=>o.select_item(l,n)},[n.image?(X(),U("img",{key:0,class:"img-fluid mobile-menu-catalog__item-img",src:n.image.small_image,width:"48",height:"48",alt:""},null,8,pe)):Z("",!0),D("a",{class:"mobile-menu-catalog__item-title",href:n.url||"#"},G(n.title),9,ve),a[4]||(a[4]=D("svg",{class:"ml-auto",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[D("path",{d:"M8.91156 20.67C8.72156 20.67 8.53156 20.6 8.38156 20.45C8.09156 20.16 8.09156 19.68 8.38156 19.39L14.9016 12.87C15.3816 12.39 15.3816 11.61 14.9016 11.13L8.38156 4.61002C8.09156 4.32002 8.09156 3.84002 8.38156 3.55002C8.67156 3.26002 9.15156 3.26002 9.44156 3.55002L15.9616 10.07C16.4716 10.58 16.7616 11.27 16.7616 12C16.7616 12.73 16.4816 13.42 15.9616 13.93L9.44156 20.45C9.29156 20.59 9.10156 20.67 8.91156 20.67Z",fill:"#C0C6CE"})],-1))],8,_e)],64))),128)),s.active_item&&s.active_item.url&&s.active_item.url!=="#"?(X(),U("a",{key:0,class:"mobile-menu-catalog__item",href:s.active_item.url},[D("span",we,G(t.$translate("common.view_all")),1),a[5]||(a[5]=D("svg",{class:"ml-auto",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[D("path",{d:"M8.91156 20.67C8.72156 20.67 8.53156 20.6 8.38156 20.45C8.09156 20.16 8.09156 19.68 8.38156 19.39L14.9016 12.87C15.3816 12.39 15.3816 11.61 14.9016 11.13L8.38156 4.61002C8.09156 4.32002 8.09156 3.84002 8.38156 3.55002C8.67156 3.26002 9.15156 3.26002 9.44156 3.55002L15.9616 10.07C16.4716 10.58 16.7616 11.27 16.7616 12C16.7616 12.73 16.4816 13.42 15.9616 13.93L9.44156 20.45C9.29156 20.59 9.10156 20.67 8.91156 20.67Z",fill:"#C0C6CE"})],-1))],8,be)):Z("",!0)])):Z("",!0)],512)])],2)}const Le=wt(re,[["render",ye]]),Ee={init(){return create_vue_app({name:"layerFooter",components:{MobileCatalogMenu:Le,MobileSearch:ot(()=>Y(()=>import("./MobileSearch-BUeL5Nl6.js"),__vite__mapDeps([32,17,2,3,4,5,18,10,7,11,33]))),NoticeModal:ot(()=>Y(()=>import("./NoticeModal-DAaVKaG0.js"),__vite__mapDeps([34,26,11,7,4,10,35])))},data(){return{catalog_menu:{active:!1},mobile_search:!1,modals:{notice_modal:!1}}},created(){this.check_country_israel()},methods:{check_country_israel(){this.modals.notice_modal=globalParams.country.id===212&&!browser_storage.local.getItem("notice-modal"),document.addEventListener("change-city",t=>{t.detail.country.id===212&&browser_storage.local.setItem("notice-modal","")})}}}).mount("#js_foot")}},ke={init(){if(!(viewport_width>1199))return create_vue_app({name:"layerTabBar",components:{TabBar:ot(()=>Y(()=>import("./TabBar-B6Fb5Z_F.js"),__vite__mapDeps([36,27,10,7,4,37])))},data(){var t;return{active:!0,cart_qty:parseInt(((t=document.getElementById("js_head-cart__qty"))==null?void 0:t.textContent)||0),catalog_menu:global_storage.layers.footer.catalog_menu}}}).mount("#js_layer-tab-bar")}},Ce={init(){viewport_width<992||requestAnimationFrame(()=>{const t=document.getElementById("js_mobile-app-line");if(!t)return;t.addEventListener("click",a);function a(i){i.target.closest("#js_mobile-app-line__btn-close")?(t.removeEventListener("click",a),this.parentElement.removeChild(this),set_cookie("mobile_app_line","true",{"max-age":1800})):(new F.Modal("#js_modal-mobile-app-line").show(),data_layer.push_ecommerce("click_download_app"))}})}},rt={el:null,close(){this.el.classList.remove("mobile-app-widget_show"),document.body.classList.remove("new-modal-open"),this.el.removeEventListener("click",this.listener),set_cookie("mobile_app","true",{"max-age":1800})},init(){globalParams.device==="mobile"&&(this.el=document.getElementById("js_mobile-app-widget"),this.el&&setTimeout(()=>{window.addEventListener("scroll",()=>{setTimeout(()=>{this.show(),this.touch()},200)},{once:!0})},200))},show(){this.el.classList.add("mobile-app-widget_show"),document.body.classList.add("new-modal-open"),this.el.addEventListener("click",this.listener)},listener(t){t.target!==this&&!t.target.closest(".js_mobile-app-widget__btn")||rt.close()},touch(){const t=document.getElementById("js_mobile-app-widget__body");t.addEventListener("touchstart",c,{passive:this}),t.addEventListener("touchmove",r,!1),t.addEventListener("touchend",n,!1);let a=!1,i=!1,e=!1,s=null,o=null;function c(d){const l=d.touches[0];s=l.clientX,o=l.clientY}function r(d){if(d.preventDefault(),a)return;const l=d.touches[0];let g=l.clientX,h=l.clientY,f=s-g,m=o-h;i||Math.abs(f)=0?(t.style.bottom="",e=!1):(t.style.bottom=m+"px",e=!0)):a=!0}function n(){a=!1,i=!1,e&&rt.close()}}},Te={init(){requestAnimationFrame(()=>{const t=document.getElementById("js_seoblocks-contents__body");if(!t||t.scrollHeight<=t.clientHeight)return;t.classList.add("seoblocks-contents__body_small");const a=document.getElementById("js_seoblocks-contents__btn");a.classList.remove("d-none"),a.addEventListener("click",()=>{t.classList.add("seoblocks-contents__body_full"),t.classList.remove("seoblocks-contents__body_small"),a.classList.add("d-none")})})}};global_storage.layers={footer:null,header:null};get_translations("common.subscribe");global_storage.url_search_params=new URLSearchParams(location.search);window.BSN=Kt;window.click_link_to_mobile_app=(t,a="")=>{t.preventDefault();const i=t.currentTarget;if(data_layer.push_ecommerce(a||"click_download_app"),globalParams.device==="desktop"&&"qr"in i.dataset)new F.Modal("#js_modal-mobile-app-line").show();else{const e="https://myglobalflowers.go.link/4tZQq",s=new URLSearchParams("adj_creative=site"),o=JSON.parse(get_cookie("utm_")||null)||{};s.set("adj_campaign",o.utm_source||"direct"),s.set("adj_adgroup",o.utm_medium||"direct"),s.set("adj_label",o.utm_campaign||"direct"),window.open(e+"?"+s.toString(),"_blank")}};window.create_vue_app=t=>{var e;const a=t.data;(typeof a=="object"||!("data"in t))&&(t.data=function(){return a});const i=Ft(t);return i.config.compilerOptions.whitespace="preserve",i.config.compilerOptions.isCustomElement=s=>["noindex"].includes(s),i.config.errorHandler=(s,o,c)=>{var r;console.error(s),console.log(c),(r=window.Sentry)==null||r.captureException(s)},i.config.performance=!0,(e=create_vue_app.components)==null||e.forEach(s=>i.component(s.name,s.data)),i.directive("lazyload",{beforeMount(s){observers.lazy_load.observe(s)}}),i.directive("mask",Xt.mask),i.directive("popover",{beforeMount(s,o){let c={};o.modifiers.html&&(c.html=!0),o.modifiers.top&&(c.placement="top");let r=s.querySelector(".js-popover-content-box");r&&(c.content=r.innerHTML),new F.Popover(s,c)},beforeUnmount(s){s.Popover.dispose()}}),i.directive("tooltip",{beforeMount(s,o){o.value&&(s.title=o.value);let c={boundary:"viewport",container:o.modifiers.container_this?s:"body"};o.modifiers.html&&(c.html=!0),new F.Tooltip(s,c)},mounted(s,o){o.modifiers.show&&s.Tooltip.show()},updated(s,o){o.value!==o.oldValue&&(s.dataset.originalTitle=o.value||"")},beforeUnmount(s){s.Tooltip.dispose()}}),i.mixin({mounted(){F.initCallback()}}),t.el&&i.mount(t.el),i};window.load_talk_me=()=>{if(app_env!=="dev"&&!window.hidden_talk_me&&!globalParams.partnerId&&!global_storage.url_search_params.has("disable_chat")){const t=document.createElement("script");t.id="supportScript",t.src="https://lcab.talk-me.ru/support/support.js?h=7b982eb8db1f688c3f95e89c8cc0903b",t.onload=()=>{let a=0;const i=setInterval(e,1e3);function e(){++a,(a>5||window.TalkMe)&&(clearInterval(i),window.TalkMe&&(forEachDOMCollection(".js_btn-talk-me_open",s=>{s.addEventListener("click",o=>{o.preventDefault(),TalkMe("openSupport")}),s.hidden=!1}),window.dispatchEvent(new CustomEvent("load-talk-me"))))}},document.head.appendChild(t)}};window.SelectCityMixin=function(){return{data:{cities:{data:[],loading:!1,val:null}},methods:{getCity(t=""){this.cities.data.length&&!t||(this.cities.loading=!0,debounce(()=>{var a;axios.get("/ajax/cities/search",{params:{count:15,country_id:globalParams.city.country_id,product_id:(a=document.getElementById("js_product"))==null?void 0:a.dataset.id,q:t}}).then(i=>{const e=[3596,3608,3611,3614,3617];this.cities.data=i.data.data.map(s=>{const o=[s.region.name];return s.country&&!e.includes(s.region.id)&&o.push(s.country.name),s.location=o.join(", "),s})}).catch(()=>toastr.error(trans.common.error)).then(()=>this.cities.loading=!1)},500,this)())},openMultiselect(){this.cities.data.length||this.getCity()},selectCity(t){swal.blockUI(),set_cookie("city_confirmed",1,{"max-age":86400});let a="/";window.catalog_params&&location.pathname.replace("/"+globalParams.city.slug,"/")!=="/"&&!document.getElementById("js_app-geopage-country")&&!document.getElementById("js_app-geopage-city")&&!document.getElementById("js_app-state")?a=location.pathname.replace("/"+globalParams.city.slug,"")+"?city_id="+t.id:location.pathname.includes("/products/")?(a=location.pathname+"?city_id="+t.id,browser_storage.local.setItem("changed_city",!0)):t.product_url?a=location.pathname+"?city_id="+t.id:globalParams.domain_id===1&&~t.url.indexOf("city_id")?a="/bouquets?city_id="+t.id:a=t.url,t.new_url=a;const i=new CustomEvent("change-city",{cancelable:!0,detail:t});document.dispatchEvent(i)&&location.assign(a)}}}};Ut.init();if(window.app_env==="prod"){let t=function(a=window,i=document,e="dataLayer"){a[e]=a[e]||[],a[e].push({"gtm.start":Date.now(),event:"gtm.js"});const s=i.createElement("script");s.src="https://www.googletagmanager.com/gtm.js?id=GTM-"+(globalParams.domain_id===1?"WCKS34ZP":"5Q2W88VN"),i.head.appendChild(s)};if(global_storage.url_search_params.has("disable_gtm")||t(),globalParams.domain_id===1&&!global_storage.url_search_params.has("disable_ya")){window.ym=window.ym||function(){(ym.a=ym.a||[]).push(arguments)},ym.l=Date.now();const a=document.createElement("script");a.src="https://mc.yandex.ru/metrika/tag.js",document.head.appendChild(a),ym(53212054,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0,ecommerce:"dataLayer"})}(function(a,i,e,s,o,c){a[o]=a[o]||function(){(a[o].a=a[o].a||[]).push(arguments)},c=i.createElement(e),c.async=!0,c.onerror=function(){window.ab_flags={},window.dispatchEvent(new CustomEvent("ya_flags"))},c.src=s,i.head.insertAdjacentElement("afterbegin",c)})(window,document,"script","https://abt.s3.yandex.net/expjs/latest/exp.js","ymab"),ymab("metrika.53212054","init",function(a){window.ab_flags=a.flags,window.dispatchEvent(new CustomEvent("ya_flags"))}),global_storage.url_search_params.has("disable_sentry")||setTimeout(()=>Y(()=>import("./sentry-ogE-9Xn8.js"),[]),3e3)}document.addEventListener("DOMContentLoaded",()=>{var a,i;global_storage.layers.header=V.init(),Vt.init(),Ce.init(),rt.init(),(a=document.getElementById("js_modal-select-city"))==null||a.addEventListener("show.bs.modal",async()=>{window.app_modal_select_city||(swal.blockUI(),await Y(()=>import("./modal-select-city-Di1TFrg6.js"),__vite__mapDeps([38,19,20,11,7,4])),swal.close())}),(i=document.getElementById("js_form-order-status"))==null||i.addEventListener("submit",function(){event.preventDefault(),swal.blockUI();let e=document.getElementById("js_order-status-result");axios.get(this.getAttribute("action"),{params:{number:document.getElementById("js_order-status-number").value.trim()}}).then(s=>{s.data.type==="message"?(e.removeAttribute("hidden"),e.textContent=s.data.status):s.data.type==="redirect"&&(window.location.href=s.data.data)}).catch(s=>{var o;((o=s.response)==null?void 0:o.status)===404?(e.removeAttribute("hidden"),e.textContent=trans.common.order_not_found):(toastr.error(trans.common.error),handling_error(s))}).then(()=>swal.close())}),forEachDOMCollection(".js_form-login",e=>{e.addEventListener("submit",s=>{s.preventDefault(),axios.post(e.action,{email:e.elements.login.value,password:e.elements.password.value}).then(o=>{const c={"max-age":31536e5};set_cookie("auth_access",o.data.data.access,c),set_cookie("auth_access_expire",o.data.data.expire,c),set_cookie("auth_refresh",o.data.data.refresh,c);const r=new CustomEvent("login",{cancelable:!0});document.dispatchEvent(r)&&(o.data.data.partner?location.href="/pa":location.reload())}).catch(()=>{e.querySelector(".js_form-login-error").hidden=!1})})}),Te.init(),requestAnimationFrame(()=>{global_storage.layers.footer=Ee.init(),global_storage.layers.tab_bar=ke.init(),Nt(),t()}),setTimeout(()=>{forEachDOMCollection(".js_pseudo-link",s=>{s.addEventListener("mouseover",o);function o(c){if(c.currentTarget.removeEventListener("mouseover",o),s.tagName==="A")s.href=s.dataset.href;else{const r=document.createElement("a");r.className=c.currentTarget.className,r.innerHTML=c.currentTarget.innerHTML,r.href=c.currentTarget.dataset.href,c.currentTarget.parentNode.replaceChild(r,c.currentTarget)}}}),forEachDOMCollection(".js_footer__menu-title",s=>{s.addEventListener("click",()=>{s.closest(".js_footer__menu").classList.toggle("footer__menu_open")})}),requestAnimationFrame(()=>{observers.trustpilot_widget=new ObserverConstructor("#js_trustpilot-widget",{},(s,o)=>{s.forEach(c=>{if(!c.isIntersecting)return;o.unobserve(c.target);const r=document.createElement("script");r.src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js",document.head.appendChild(r)})}),observers.trustpilot_widget.observe()});const e=document.getElementById("js_subscribe-form");e&&e.addEventListener("submit",s=>{s.preventDefault(),swal.blockUI();let o=document.getElementById("js_subscribe-input").value.trim();axios.post(e.action,{email:o}).then(()=>{new F.Modal("#js_modal-subscribe").show(),swal.close(),toastr.success(trans.subscribe.you_have_successfully_subscribed)}).catch(c=>{if(swal.close(),c.response.status===403)toastr.error(trans.subscribe.you_already_subscribed);else if(c.response.status===409)swal.fire(trans.subscribe.you_already_subscribed,trans.subscribe.we_now_send_confirmation_email).then(()=>{axios.post(e.dataset.urlConfirmation,{email:o}).then(()=>{new F.Modal("#js_modal-subscribe").hide(),toastr.success(trans.subscribe.verification_email_sent)}).catch(()=>toastr.error(trans.subscribe.failed_send_confirmation_email))});else if(c.response.status===422){let r=c.response.data.errors;r&&Array.isArray(r.email)?toastr.error(r.email[0]):toastr.error(trans.common.error)}else toastr.error(trans.common.error)})})},100),setTimeout(()=>{e();function e(){let c=document.getElementById("js_cookie-notification");if(!c)return;browser_storage.local.getItem("cookie_notification_date")||(c.hidden=!1,browser_storage.local.setItem("cookie_notification_date",Date.now()),c.querySelector("#js_cookie-notification__btn-close").addEventListener("click",()=>{c.hidden=!0}))}const s=document.createElement("div");s.className="btn-back-top",document.body.appendChild(s),window.addEventListener("scroll",()=>{s.classList.toggle("btn-back-top_show",pageYOffset>300)}),s.addEventListener("click",o);function o(){pageYOffset>0?(window.scrollBy(0,(pageYOffset+100)/-6),o.timer_id=setTimeout(o,20)):clearTimeout(o.timer_id)}},4e3);function t(){var s;if(!globalParams.skeleton||(s=document.querySelector(".js_product-card"))!=null&&s.dataset.price)return;const e=new Set;forEachDOMCollection(".js_product-card",o=>{o.get_price||e.add(o.dataset.id)}),Ht([...e])}});viewport_width>1199&&setTimeout(()=>load_talk_me(),5e3);requestAnimationFrame(()=>{const t={"max-age":2419200};set_cookie("currency",globalParams.currency.code,t),set_cookie("domain",JSON.stringify({city_id:globalParams.city.id,country_id:globalParams.city.country_id,id:globalParams.domain_id,locale:globalParams.lang.current}),t)});export{Vt as c};