(window.webpackJsonp=window.webpackJsonp||[]).push([[171,39,226],{1191:function(e,t,n){var map={"./child-1.jpg":823,"./child-2.jpg":824,"./child-3.jpg":825,"./child-4.jpg":826};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(map,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return map[e]}r.keys=function(){return Object.keys(map)},r.resolve=o,e.exports=r,r.id=1191},1192:function(e,t,n){"use strict";n(956)},1194:function(e,t,n){"use strict";n(957)},1195:function(e,t,n){"use strict";n(958)},1486:function(e,t,n){"use strict";n.r(t);n(18),n(22),n(13),n(21),n(28),n(51),n(67),n(50),n(68);var r=n(7),o=n(1),c=n(0),l=(n(12),n(46),n(57),n(23),n(55),n(48),n(17),n(49),n(19),n(36),n(90),n(34),n(27),n(42),n(45),n(334),n(95),n(124),n(35),n(24),n(631)),m=n(918),d=n(919),v=n(917),f=n(32),h=(n(196),{data:function(){return{}},computed:{items:function(){return[{label:"от 2 до 6 лет",value:"2-6",img:"child-1"},{label:"от 7 до 11 лет",value:"7-11",img:"child-2"},{label:"от 12 до 18 лет",value:"12-18",img:"child-3"},{label:"старше 18 лет",value:"19",img:"child-4"}]},setBenefits:function(){return[{label:"Проверка зрения за 40 минут",img:"benefits_time"},{label:"Дипломированные врачи и оптометристы с большим опытом",img:"benefits_personal"},{label:"Современное оборудование",img:"benefits_equipment"},{label:"До 20 тестов",img:"benefits_tests"}]},cmsPageInfo:function(){return Number.parseFloat(159)}},methods:{tapAge:function(e){this.$emit("change",{name:"age",value:e.value})}}}),x=(n(1192),n(5)),component=Object(x.a)(h,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"grid grid-cols-1 sm:grid-cols-3 xl:grid-cols-4 gap-4 sm:gap-6"},e._l(e.items,(function(t,o){return r("div",{key:"card-age-"+o,staticClass:"card-age",on:{click:function(){return e.tapAge(t)}}},[r("div",{staticClass:"card-age__label"},[r("div",{staticClass:"tm-appointment_age-img"},[r("img",{attrs:{src:n(1191)("./"+t.img+".jpg"),alt:"img"}})]),e._v(" "),r("div",{staticClass:"tm-appointment_age-label"},[e._v("\n          "+e._s(t.label)+"\n        ")])])])})),0),e._v(" "),r("div",{staticClass:"zapis-cms-page"},[r("cms-page",{attrs:{"page-id":e.cmsPageInfo,"hide-head":!0}})],1)])}),[],!1,null,"29ddaafd",null),_=component.exports;installComponents(component,{CmsPage:n(638).default});var y=n(911),C=n(920),w=n(921),S=n(912),$=n(809),O=n(1472);n(1193);function k(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function A(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function P(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?A(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):A(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var E={name:"ZapisIndex",components:{SPage:l.a,Stepper:m.a,ServiceSelection:y.a,SalonSelection:C.a,SpecialistsSelection:w.a,Form:S.a,ServiceModal:d.a,AgeSelection:_,PopUpSelectionContactLenses:$.a,BlockCertificateAdvertising:v.a},mixins:[f.a,f.d],asyncData:function(e){return Object(c.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,l,m,d,v,f,h,x,_,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.$api,c=e.params,l=e.error,m=e.req,d=(null==m||null===(n=m.headers)||void 0===n?void 0:n.host)||(null===(r=window)||void 0===r?void 0:r.location.host)||"",!String(d||"").includes("kazan.")){t.next=5;break}return l({statusCode:404,message:"Страница не найдена"}),t.abrupt("return",{});case 5:return t.next=7,o.agent.transport.get("services?expand=stores,image&dev=1");case 7:return v=t.sent,f=v.data,t.next=11,o.agent.transport.get("stores");case 11:return h=t.sent,x=h.data,t.next=15,o.agent.transport.get("specialist?expand=stores");case 15:return _=t.sent,y=_.data,t.abrupt("return",{services:f,salons:x,specialists:y,readServiceSlug:(null==c?void 0:c.slug)||""});case 18:case"end":return t.stop()}}),t)})))()},data:function(){return{salons:[],specialists:[],form:{age:"",service:"",salon:"",specialist:"",address:""},sendedForm:{},breadcrumbs:[{title:"Главная",path:"/"},{title:"Запись на приём",path:"/zapis"}],popUpSelectionContactLenses:{},readServiceSlug:"",hashSalon:"",stage:0,permittedStage:0,openModal:!1,isAppointmentSended:!1,isOpenPopUpSelectionContactLenses:!1,uid:null,uuid:null}},watch:{"$route.query":function(){this.initForm()}},mounted:function(){var e,t;this.initUuid(),this.initForm();var n=P({},this.form),r=(null===(e=this.$route.hash)||void 0===e||null===(t=e.split("#"))||void 0===t?void 0:t[1])||"";Boolean(r)&&(n.salon=Number(r),this.hashSalon=r),this.form=n},computed:{salonServices:function(){var e=this.hashSalon;return e?this.services.filter((function(t){return Boolean(t.stores.find((function(t){return String(t.id)===e})))})):this.services},salonAddressHash:function(){var e,t=this;return(null===(e=this.salons.find((function(e){return String(e.id)===t.hashSalon})))||void 0===e?void 0:e.address)||""},messageSuccessAppointment:function(){var e,t,form=P({},this.form),n=P({},this.sendedForm);if(!form.service||-1===form.service||!form.salon||-1===form.salon||!form.specialist||-1===form.specialist)return"В ближайшее время с вами свяжется наш менеджер, чтобы подтвердить информацию и назначить удобное время посещения нашего специалиста";var r="";"2-6"===form.age&&(r="от 2 до 6 лет"),"7-11"===form.age&&(r="от 7 до 11 лет"),"12-18"===form.age&&(r="от 12 до 18 лет"),"19"===form.age&&(r="старше 18 лет");var o=null===(e=this.specialists.find((function(e){return e.id===n.specialist_id})))||void 0===e?void 0:e.name,c=null===(t=this.services.find((function(e){return e.id===n.service_id})))||void 0===t?void 0:t.name,l=this.salons.find((function(e){return e.id===n.store_id})),m=(n.date||"").split("-").reverse().join("."),d=(n.begin||"").split(":").splice(0,2).join(":");(n.end||"").split(":").splice(0,2).join(":");return'\n      Вы записаны на прием в салон "Очки для Вас"!</br>\n      Услуга: <span class="text-primary">'.concat(c,'</span></br>\n      Специалист: <span class="text-primary">').concat(o,'</span></br>\n      Дата, время: <span class="text-primary">').concat(m," ").concat(d,'</span></br>\n      Адрес: <span class="text-primary">').concat((null==l?void 0:l.address)||"",'</span></br>\n      Услуга для возраста: <span class="text-primary">').concat(r,"</span></br>\n      Рады будем вас видеть!\n      ")},isShowCalendarButton:function(){return Boolean(!0)}},methods:{initUuid:function(){var e,t={},n=k(new URLSearchParams(window.location.search));try{for(n.s();!(e=n.n()).done;){var o=Object(r.a)(e.value,2),c=o[0],l=o[1];t[c]=l}}catch(e){n.e(e)}finally{n.f()}if(null!=t&&t.uuid){this.uid=null==t?void 0:t.uid,this.uuid=null==t?void 0:t.uuid;var m=[Boolean(null==t?void 0:t.step_age)&&"step_age=".concat(null==t?void 0:t.step_age),Boolean(null==t?void 0:t.step_service)&&"step_service=".concat(null==t?void 0:t.step_service),Boolean(null==t?void 0:t.step_store)&&"step_store=".concat(null==t?void 0:t.step_store),Boolean(null==t?void 0:t.step_specialist)&&"step_specialist=".concat(null==t?void 0:t.step_specialist)].filter((function(e){return!!e})).join("&");window.history.replaceState(null,null,"".concat(this.$route.path,"?").concat(m))}},addToCalendar:function(){var e,t=this,n=this.salons.find((function(e){return e.id===t.sendedForm.store_id})),r=null===(e=this.services.find((function(e){return e.id===t.sendedForm.service_id})))||void 0===e?void 0:e.name.replace(/\((.*?)\)/,"").trim();console.log(r,"serviceName"),Object(O.a)({name:"".concat(r," по адресу ").concat((null==n?void 0:n.address)||""),description:"".concat(this.sendedForm.comment),startDate:this.sendedForm.date,endDate:this.sendedForm.date,startTime:this.sendedForm.begin,endTime:this.sendedForm.end,options:["Apple","Google","iCal","Microsoft365","Outlook.com","Yahoo"],timeZone:"Asia/Yekaterinburg",iCalFileName:"Reminder-Event",language:"ru"})},disableInput:function(){this.$refs.input.setAttribute("disabled","disabled"),this.$refs.input.classList.add("disabled-opacity")},initForm:function(){this.isAppointmentSended=!1;var e=(window.location.search||"").substr(1).split("&"),t=[],n=0,r=0,o={age:"",service:"",salon:Boolean(this.hashSalon)?Number(this.hashSalon):"",specialist:"",address:""};e.map((function(e,c){0===(c=c)&&e.indexOf("step_age")>-1&&(n=1,r=1,o.age=(e||"").split("=")[1],t.push(e)),1===c&&e.indexOf("step_service")>-1&&(n=2,r=2,o.service=+(e||"").split("=")[1],t.push(e)),2===c&&e.indexOf("step_store")>-1&&(n=3,r=3,o.salon=+(e||"").split("=")[1],t.push(e)),3===c&&e.indexOf("step_specialist")>-1&&(n=4,r=4,o.specialist=+(e||"").split("=")[1],t.push(e))})),this.uuid&&t.push("uuid=".concat(this.uuid)),this.stage=n,this.form=o,this.permittedStage=r,window.history.replaceState(null,null,"".concat(this.$route.path,"?").concat(t.join("&")))},changeForm:function(e){var t=e.name,n=e.value,r=P({},this.form);r[t]=n,this.form=r,this.updateUrl(),this.nextStage(),window.scroll({top:0,behavior:"smooth"})},changeStage:function(e){this.stage=e,this.permittedStage=e,0==this.stage&&(this.form={}),1==this.stage&&(this.form.service="",this.form.salon="",this.form.salon=""),2==this.stage&&(this.form.specialist="",this.form.salon=""),3==this.stage&&(this.form.specialist=""),this.updateUrl()},nextStage:function(){var e=0;this.form.age&&(e=1),this.form.service&&(e=2),this.form.salon&&(e=3),this.form.specialist&&(e=4),this.stage=e,this.permittedStage=e},updateUrl:function(){var e=this.$route.path,t=[];this.form.age&&t.push("step_age=".concat(this.form.age)),this.form.service&&t.push("step_service=".concat(this.form.service)),this.form.salon&&t.push("step_store=".concat(this.form.salon)),this.form.specialist&&t.push("step_specialist=".concat(this.form.specialist)),t=t.join("&"),this.$router.push("".concat(e,"?").concat(t))},selectServiceModal:function(data){var e=(this.salonServices||[]).find((function(e){return String(e.id)===String(data.serviceId)}));if(null!=e&&e.with_learning&&!data.isConfirm){var t={service:e,age:data.age};return this.popUpSelectionContactLenses=t,this.isOpenPopUpSelectionContactLenses=!0,null}this.form.age=data.age,this.changeForm({name:"service",value:data.serviceId},2)},selectPopUpSelectionContactLenses:function(data){this.form.age=this.popUpSelectionContactLenses.age,this.changeForm({name:"service",value:data.id},2),this.popUpSelectionContactLenses={},this.isOpenPopUpSelectionContactLenses=!1},onOpenServiceModal:function(e){this.readServiceSlug=e,window.history.replaceState(null,null,"/zapis/".concat(e))},onCloseServiceModal:function(){this.readServiceSlug="",window.history.replaceState(null,null,"/zapis")},successSendedForm:function(e){this.sendedForm=e,this.isAppointmentSended=!0},resetSalonHash:function(){this.hashSalon="";var form=P({},this.form);form.salon="",this.form=form}}},L=(n(1194),n(1195),Object(x.a)(E,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("s-page",{attrs:{breadcrumbs:e.breadcrumbs,container:!1}},[e.isAppointmentSended?r("div",[r("div",{staticClass:"container"},[r("div",{staticClass:"content-success-order"},[r("div"),e._v(" "),r("div",{staticClass:"--center"},[r("div",{staticClass:"border rounded-[10px] w-full"},[r("div",{staticClass:"border-b"},[r("div",{staticClass:"flex justify-center mt-20 mb-10"},[r("img",{staticClass:"inline-block w-[355px] h-[280px] object-contain",attrs:{src:n(340),alt:"registration"}})]),e._v(" "),r("div",{staticClass:"flex justify-center mb-6 px-4"},[r("p",{staticClass:"text-2xl text-secondary leading-[160%]",domProps:{innerHTML:e._s(e.messageSuccessAppointment)}})]),e._v(" "),e.isShowCalendarButton?[r("div",{staticClass:"px-4 mb-14"},[r("div",{staticClass:"add-to-calendar",on:{click:e.addToCalendar}},[e._v("Добавить в календарь\n                  ")])])]:e._e()],2),e._v(" "),r("div",{staticClass:"py-6 flex justify-center"},[r("nuxt-link",{staticClass:"text-secondary text-2xl",attrs:{to:"/"}},[e._v("Перейти на главную страницу")])],1)])]),e._v(" "),r("div",[r("BlockCertificateAdvertising")],1)])])]):r("div",[r("div",{staticClass:"container"},[r("div",{staticClass:"mb-4 sm:mb-10 flex flex-col justify-center items-center"},[r("div",{staticClass:"mb-4 flex justify-center items-center"},[r("h1",{staticClass:"text-black text-2xl sm:text-6xl"},[e._v("Запись на приём")]),e._v(" "),r("div",{staticClass:"ml-3 sm:ml-5 flex space-x-3 sm:space-x-4"},[r("a",{staticClass:"w-[28px] sm:w-[32px] h-[28px] sm:h-[32px]",attrs:{target:"_blank",href:e.appCfg.telegram}},[r("img",{attrs:{src:n(722),alt:"telegram"}})]),e._v(" "),r("a",{staticClass:"w-[28px] sm:w-[32px] h-[28px] sm:h-[32px] block sm:hidden",attrs:{target:"_blank",href:"https://api.whatsapp.com/send?phone="+e.appCfg.viber}},[r("img",{attrs:{src:n(723),alt:"viber"}})])])]),e._v(" "),r("div",{staticClass:"sm:text-lg text-[#828698]"},[e._v(e._s(e.vars["Стоимость приёма"]))])]),e._v(" "),r("div",{staticClass:"mb-4 sm:mb-12 space-x-3 sm:space-x-6 flex justify-center items-center"},[r("nuxt-link",{staticClass:"hover:opacity-70",attrs:{to:"/bystraya-zapis"}},[r("div",{staticClass:"text-[22px] sm:text-[32px]",on:{click:e.disableInput}},[e._v("Быстрая")])]),e._v(" "),r("div",[r("div",{staticClass:"cursor-pointer label"},[r("div",[r("nuxt-link",{attrs:{to:"/bystraya-zapis"}},[r("input",{ref:"input",staticClass:"toggle toggle-primary",attrs:{type:"checkbox",checked:""},on:{click:e.disableInput}}),e._v(" "),r("span",{staticClass:"toggle-mark"})])],1)])]),e._v(" "),r("div",{staticClass:"text-primary text-[22px] sm:text-[32px]"},[e._v("Подробная")])],1)]),e._v(" "),r("div",{staticClass:"mb-6 sm:mb-14 flex justify-center items-center"},[r("Stepper",{attrs:{stage:e.stage,"permitted-stage":e.permittedStage},on:{change:e.changeStage}})],1),e._v(" "),r("div",{class:{container:2!==e.stage}},[0===e.stage?r("AgeSelection",{ref:"ageSelection",attrs:{active:e.form.age},on:{change:e.changeForm}}):e._e(),e._v(" "),1===e.stage?r("ServiceSelection",{ref:"serviceSelection",attrs:{services:e.salonServices,age:e.form.age,active:e.form.service,"hash-salon":e.hashSalon,"hash-salon-address":e.salonAddressHash},on:{change:e.changeForm,openService:e.onOpenServiceModal,resetSalonHash:e.resetSalonHash}}):e._e(),e._v(" "),2===e.stage?r("SalonSelection",{ref:"salonSelection",attrs:{activeAge:e.form.age,activeServce:e.form.service,activeSalon:e.form.salon},on:{change:e.changeForm}}):e._e(),e._v(" "),3===e.stage?r("SpecialistsSelection",{ref:"specialistsSelection",attrs:{activeSpecialist:e.form.specialists,active:e.form.specialist,"active-age":e.form.age,activeServce:e.form.service,activeSalon:e.form.salon},on:{change:e.changeForm}}):e._e(),e._v(" "),4===e.stage?r("Form",{attrs:{specialists:e.specialists,services:e.services,formInfo:e.form,salons:e.salons,uid:e.uid,uuid:e.uuid},on:{send:e.successSendedForm,changeStage:e.changeStage}}):e._e()],1),e._v(" "),e.readServiceSlug?r("div",[r("ServiceModal",{attrs:{slug:e.readServiceSlug,"age-selected":e.form.age},on:{click:e.selectServiceModal,close:e.onCloseServiceModal}})],1):e._e(),e._v(" "),r("client-only",[r("PopUpSelectionContactLenses",{attrs:{open:e.isOpenPopUpSelectionContactLenses,services:e.salonServices,currentService:e.popUpSelectionContactLenses.service,"selected-age":e.popUpSelectionContactLenses.age},on:{onSelect:function(t){return e.selectPopUpSelectionContactLenses(t,!0)},onClose:function(){e.isOpenPopUpSelectionContactLenses=!1}}})],1)],1)])}),[],!1,null,"a5de628c",null));t.default=L.exports},630:function(e,t,n){e.exports={}},631:function(e,t,n){"use strict";n(41);var r=n(10),o=n(14),c=n(15),l=n(8),m=n(9),d=(n(13),n(27),n(42),n(45),n(3));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var f=function(e,t,n,desc){var r,o=arguments.length,c=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,n):desc;if("object"===("undefined"==typeof Reflect?"undefined":Object(m.a)(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,desc);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(c=(o<3?r(c):o>3?r(t,n,c):r(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},h=function(e){Object(o.a)(n,e);var t=v(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return n}(d.Vue);f([Object(d.Prop)({type:Array,default:function(){return[]}})],h.prototype,"breadcrumbs",void 0),f([Object(d.Prop)({type:String,required:!1})],h.prototype,"title",void 0),f([Object(d.Prop)({type:Boolean,default:!0})],h.prototype,"container",void 0);var x=h=f([Object(d.Component)({components:{PageBreadcrumbs:function(){return n.e(214).then(n.bind(null,1144))}}})],h),_=(n(634),n(5)),component=Object(_.a)(x,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{container:e.container}},["/"!==e.$route.path?n("div",{staticClass:"s-page__breadcrumbs mb-11"},[n("page-breadcrumbs",{attrs:{breadcrumbs:e.breadcrumbs}})],1):e._e(),!e.$scopedSlots.header&&e.title?n("div",{staticClass:"text-center mb-12"},[e.$scopedSlots.header?e._t("header"):e._e(),n("h1",{staticClass:"tm-category-title",domProps:{innerHTML:e._s(e.title)}})],2):e._e(),n("div",{staticClass:"s-page__body"},[e._t("default")],2)])}),[],!1,null,null,null);t.a=component.exports;installComponents(component,{PageBreadcrumbs:n(633).default})},634:function(e,t,n){"use strict";n(630)},637:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(36),n(17),n(34);var r=function(title,e){var t=e||{},template=[t.suffixDivider,t.suffixTitle].filter((function(e){return!!e})).join(" ");return template?"".concat(title," ").concat(template):title}},638:function(e,t,n){"use strict";n.r(t);n(41),n(18),n(21),n(28),n(51),n(27),n(67),n(42),n(68),n(45);var r=n(0),o=n(1),c=n(10),l=n(16),m=n(14),d=n(15),v=n(8),f=n(9),h=(n(12),n(13),n(23),n(35),n(19),n(17),n(55),n(49),n(48),n(22),n(50),n(24),n(36),n(46),n(57),n(649)),x=n.n(h),_=n(647),y=n.n(_),C=n(3),w=n(32),S=n(637);function $(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){l=!0,o=e},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function k(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function j(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?k(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):k(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(v.a)(e);if(t){var o=Object(v.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var P=function(e,t,n,desc){var r,o=arguments.length,c=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,n):desc;if("object"===("undefined"==typeof Reflect?"undefined":Object(f.a)(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,desc);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(c=(o<3?r(c):o>3?r(t,n,c):r(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},E=function(e){Object(m.a)(n,e);var t=A(n);function n(){var e;return Object(c.a)(this,n),(e=t.apply(this,arguments)).contentPage=null,e.pageLayout=null,e}return Object(l.a)(n,[{key:"currentPage",get:function(){return this.contentOnly&&this.contentPage?this.contentPage:this.page}},{key:"setPageLayout",value:function(){var e=this;if(this.currentPage){var t={componentName:"",props:[],breadcrumbs:[]},n=y()(x()(this.currentPage.layout.name.replace(/[\s-_]*/,"")));t.componentName="".concat(n,"Layout");var r=this.currentPage.placeholders;t.props=j(j({},r),{},{breadcrumbs:[],externalData:this.externalData});var o=this.$route.path.split("/").filter((function(p){return!!p}));if(0!==o.length){t.breadcrumbs.push({title:"Главная",path:"/"}),t.props.breadcrumbs.push({title:"Главная",path:"/"});var c,l=$(o);try{var m=function(){var n=c.value,menu=e.flatMenu.find((function(e){return e.alias===n}));if(!menu)return"continue";t.breadcrumbs.push({path:"/".concat(menu.path),title:menu.title}),t.props.breadcrumbs.push({path:"/".concat(menu.path),title:menu.title})};for(l.s();!(c=l.n()).done;)m()}catch(e){l.e(e)}finally{l.f()}}this.pageLayout=t}}}]),n}(Object(C.mixins)(w.e));P([Object(C.Prop)({type:String})],E.prototype,"pageName",void 0),P([Object(C.Prop)({type:Number})],E.prototype,"pageId",void 0),P([Object(C.Prop)({type:Number,default:0})],E.prototype,"level",void 0),P([Object(C.Prop)({type:Boolean,default:!1})],E.prototype,"contentOnly",void 0),P([Object(C.Prop)({type:Boolean,default:!1})],E.prototype,"hideHead",void 0),P([Object(C.Prop)({type:Object,default:function(){return{}}})],E.prototype,"externalData",void 0);var L=E=P([Object(C.Component)({head:function(){var e,t,n,r,o;if(this.hideHead)return{};if(this.contentOnly)return{};var head={title:"",meta:[]};if(this.page){var c=this.page.page;c&&(head.title=(null===(e=this.page.page)||void 0===e?void 0:e.titleTag)||(null===(t=this.page.page)||void 0===t?void 0:t.title)||"",head.meta.push({name:"og:title",hid:"og:title",property:"og:title",content:Object(S.a)((null===(n=this.page.page)||void 0===n?void 0:n.titleTag)||(null===(r=this.page.page)||void 0===r?void 0:r.title)||"",null===(o=this.$store.state.appState)||void 0===o?void 0:o.config)}),c.description&&(head.meta.push({hid:"metadescription",name:"description",content:c.description}),head.meta.push({name:"og:description",hid:"og:description",property:"og:description",content:c.description})),c.keywords&&head.meta.push({hid:"keywords",name:"keywords",content:c.keywords}))}return head},fetch:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var n,r,o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=((null===(n=e.$i18n)||void 0===n?void 0:n.locales)||[]).map((function(e){return e.code})),o="",e.pageName&&(o=e.pageName.split("/").filter((function(e){return!r.includes(e)})).filter(Boolean).join("/"),o="/".concat(o)),t.next=5,e.getPage({pageIdOrName:e.pageId||o,contentOnly:e.contentOnly});case 5:void 0===(c=t.sent)&&e.$nuxt.error({statusCode:404,message:"Page not found"}),e.contentOnly&&(e.contentPage=c),e.setPageLayout();case 9:case"end":return t.stop()}}),t)})))()}})],E),M=n(5),component=Object(M.a)(L,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.pageLayout&&e.contentOnly?n("layout-placeholder",{attrs:{blocks:e.pageLayout.props.content,externalData:e.externalData}}):e.pageLayout?n(e.pageLayout.componentName,e._b({tag:"component",attrs:{"page-data":e.pageLayout.pageData,externalData:e.externalData}},"component",e.pageLayout.props,!1)):e._e()}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{LayoutPlaceholder:n(643).default})},648:function(e,t,n){e.exports=n.p+"img/loading-linza-transparent.8cdc061.gif?v=1733723023315"},720:function(e,t,n){"use strict";n.r(t);var r,o=n(0),c=(n(12),n(19),n(23),n(35),n(153),n(34),n(31)),l=n(32),m={data:function(){return{form:{name:"",phone:"",message:""},isLoading:!1}},props:{title:{type:String,default:"Обратный звонок"},type:{type:String,default:"Обратный звонок"},closeNotification:{type:String,default:"Обратный звонок"}},mixins:[l.h],validations:{form:{name:{required:c.required,minLength:Object(c.minLength)(2)},phone:{required:c.required,minLength:Object(c.minLength)(18)}}},mounted:function(){this.$modal.show("callback-modal"),this.initForm()},methods:{initForm:function(){var e,t,n;if(!this.user)return null;this.form.name=(null===(e=this.user)||void 0===e?void 0:e.name)||"";var r=(""+(null===(t=this.user)||void 0===t?void 0:t.phone)).replace(/\D/g,"").substr(1).match(/^(\d{3})(\d{2})(\d{2})(\d{3})$/);this.form.phone=Boolean(null===(n=this.user)||void 0===n?void 0:n.phone)?"(".concat(r[1],") ").concat(r[2],"-").concat(r[3],"-").concat(r[4]):""},sendForm:(r=Object(o.a)(regeneratorRuntime.mark((function e(){var body;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.$v.$touch(),!this.$v.$invalid){e.next=4;break}return this.$customNotification.error("Проверьте корректность заполненных данных"),e.abrupt("return",null);case 4:return this.isLoading=!0,body={type:this.type,name:this.form.name,phone:(this.form.phone||"").replace(/\D+/g,""),message:this.form.message},e.next=8,this.$api.agent.transport.post("form/send",body);case 8:if(e.sent.data,this.isLoading=!1,!this.closeNotification){e.next=15;break}return this.$toast.success(this.closeNotification),this.$emit("close"),e.abrupt("return");case 15:this.$router.push("/zapis/success");case 16:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}},d=n(5),component=Object(d.a)(m,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("modal",{staticClass:"py-4 sm:py-20",attrs:{adaptive:!0,minWidth:300,width:800,scrollable:!0,height:"auto",classes:"!bg-transparent !h-auto !top-0",name:"callback-modal"}},[r("div",{staticClass:"bg-white rounded-[10px] px-12 relative"},[r("div",{staticClass:"py-6 flex items-center justify-center"},[r("div",{staticClass:"text-4xl text-center"},[e._v(e._s(e.title))])]),e._v(" "),r("div",{staticClass:"-mx-12 h-[1px] bg-[#E6E7EA]"}),e._v(" "),r("label",{staticClass:"flex flex-col py-[20px]"},[r("div",{staticClass:"flex items-center space-x-6 h-[60px]"},[r("div",{staticClass:"w-[130px]"},[r("div",{staticClass:"text-xl text-[#828698]"},[e._v("Имя "),r("span",{staticClass:"text-primary"},[e._v("*")])])]),e._v(" "),r("div",{staticClass:"flex-1"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.name,expression:"form.name"}],staticClass:"text-xl text-black !outline-none !shadow-none",domProps:{value:e.form.name},on:{input:function(t){t.target.composing||e.$set(e.form,"name",t.target.value)}}})])]),e._v(" "),e.$v.form.name.$dirty?r("div",{staticClass:"mt-1 text-error text-[11px] sm:text-[13px] w-full"},[e.$v.form.name.required?e._e():r("span",[e._v("\n          Обязательно к заполнению\n        ")]),e._v(" "),e.$v.form.name.minLength?e._e():r("span",[e._v("\n          Поле должно сожержать минимум "+e._s(e.$v.form.name.$params.minLength.min)+" символов\n        ")])]):e._e()]),e._v(" "),r("div",{staticClass:"-mx-12 h-[1px] bg-[#E6E7EA]"}),e._v(" "),r("label",{staticClass:"flex flex-col py-[20px]"},[r("div",{staticClass:"flex items-center space-x-6 h-[60px]"},[r("div",{staticClass:"w-[130px]"},[r("div",{staticClass:"text-xl text-[#828698]"},[e._v("Телефон "),r("span",{staticClass:"text-primary"},[e._v("*")])])]),e._v(" "),r("div",{staticClass:"flex-1"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.form.phone,expression:"form.phone"},{name:"mask",rawName:"v-mask",value:["+7 (",/[1-6, 9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/],expression:"['+7 (', /[1-6, 9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, ' ', /\\d/, /\\d/, ' ', /\\d/, /\\d/]"}],staticClass:"text-xl text-black !outline-none !shadow-none",domProps:{value:e.form.phone},on:{input:function(t){t.target.composing||e.$set(e.form,"phone",t.target.value)}}})])]),e._v(" "),e.$v.form.phone.$dirty?r("div",{staticClass:"mt-1 text-error text-[11px] sm:text-[13px] w-full"},[e.$v.form.phone.required?e._e():r("span",[e._v("\n          Обязательно к заполнению\n        ")]),e._v(" "),e.$v.form.phone.minLength?e._e():r("span",[e._v("\n          Некорректно набран номер\n        ")])]):e._e()]),e._v(" "),r("div",{staticClass:"-mx-12 h-[1px] bg-[#E6E7EA]"}),e._v(" "),r("label",{staticClass:"flex flex-col py-6"},[r("div",{staticClass:"mb-2"},[r("div",{staticClass:"text-xl text-[#828698]"},[e._v("Комментарий")])]),e._v(" "),r("div",{staticClass:"flex-1"},[r("textarea",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.message,expression:"form.message",modifiers:{trim:!0}}],staticClass:"w-full text-xl text-black !outline-none !shadow-none p-0",domProps:{value:e.form.message},on:{input:function(t){t.target.composing||e.$set(e.form,"message",t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})])]),e._v(" "),r("div",{staticClass:"-mx-12 h-[1px] bg-[#E6E7EA]"}),e._v(" "),r("div",{staticClass:"flex flex-col items-center justify-center py-6"},[r("button",{staticClass:"cursor-pointer text-2xl text-white bg-primary font-medium rounded-[10px] px-9 py-4",on:{click:e.sendForm}},[e._v("\n        Отправить\n      ")]),e._v(" "),r("div",{staticClass:"mt-8 flex items-center text-center text-[18px] space-x-2"},[r("div",{staticClass:"text-primary"},[e._v("*")]),r("div",{staticClass:"text-secondary"},[e._v("— Поля обязательные для заполнения")])])]),e._v(" "),e.isLoading?r("div",{staticClass:"absolute left-0 right-0 bottom-0 top-0 bg-white bg-opacity-80 flex items-center justify-center"},[r("img",{staticClass:"w-[250px] object-contain",attrs:{src:n(197),alt:"Загрузка",title:"linza.ru"}})]):e._e()])])}),[],!1,null,null,null);t.default=component.exports},721:function(e,t,n){e.exports={}},722:function(e,t,n){e.exports=n.p+"img/telegram.8cd624d.svg?v=1733723023315"},723:function(e,t,n){e.exports=n.p+"img/whats-app.8eb29c0.svg?v=1733723023315"},724:function(e,t,n){e.exports=n.p+"img/expert.5f545e8.gif?v=1733723023315"},725:function(e,t,n){e.exports={}},726:function(e,t,n){e.exports={}},727:function(e,t,n){e.exports={}},728:function(e,t,n){e.exports={}},729:function(e,t,n){e.exports={}},730:function(e,t,n){e.exports={}},731:function(e,t,n){e.exports={}},733:function(e,t,n){e.exports={}},809:function(e,t,n){"use strict";var r=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"selection-contact-lenses__content"},[r("div",{staticClass:"selection-contact-lenses__card-message with-custom-message"},[e._v("\n         Запись на услугу возможна только после консультации врача, нажмите «продолжить», чтобы записаться на прием.\n       ")]),e._v(" "),r("img",{attrs:{src:n(724),alt:""}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"disclaimer"},[e._v("\n        Длительность обучения: "),n("span",[e._v("20 минут")]),e._v(" (входит в стоимость услуги)\n      ")])}],o=(n(49),{mixins:[n(32).a],props:{open:{type:Boolean,default:!1},services:{type:Array,default:function(){return[]}},currentService:{type:Object,default:function(){return{}}},selectedAge:{type:String,default:""},customMessage:{type:Boolean,default:!1}},data:function(){return{yesAnswer:!1}},computed:{message:function(){return"Вы уже умеете снимать и надевать контактные линзы?"},buttonSuccess:function(){var e;return null===(e=this.vars)||void 0===e?void 0:e["popup-select-mkl__button-success"]},buttonCancen:function(){var e;return null===(e=this.vars)||void 0===e?void 0:e["popup-select-mkl__button-cancel"]}},methods:{onSuccess:function(){var e=20;"2-6"===this.selectedAge&&(e=38),"7-11"===this.selectedAge&&(e=39),"12-18"===this.selectedAge&&(e=37),this.$emit("onSelect",this.services.find((function(t){return+t.id===e}))),this.$emit("onResetCustomMessage")},onSuccessWithCustomMessage:function(){var e=8;"2-6"===this.selectedAge&&(e=40),"7-11"===this.selectedAge&&(e=42),"12-18"===this.selectedAge&&(e=41),this.$emit("onSelect",this.services.find((function(t){return+t.id===e})))},onCancel:function(){this.$emit("onSelect",this.currentService),this.$emit("onResetCustomMessage")},onSubmit:function(){this.yesAnswer?this.onCancel():this.onSuccess()},onClose:function(){this.$emit("onClose"),this.$emit("onResetCustomMessage")},onChangeYesAnswer:function(e){this.yesAnswer=e}}}),c=(n(816),n(5)),component=Object(c.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.open?n("div",{staticClass:"selection-contact-lenses"},[e.customMessage?n("div",{staticClass:"selection-contact-lenses__card with-custom-message"},[e._m(0),e._v(" "),n("div",{staticClass:"selection-contact-lenses__card-footer with-custom-message"},[n("div",{staticClass:"btn btn-primary",on:{click:e.onSuccessWithCustomMessage}},[e._v("\n          Продолжить\n        ")])])]):n("div",{staticClass:"selection-contact-lenses__card"},[n("div",{staticClass:"selection-contact-lenses__card-message"},[e._v("\n        "+e._s(e.message)+"\n      ")]),e._v(" "),n("div",{staticClass:"answer-btns"},[n("div",{staticClass:"round",on:{click:function(t){return e.onChangeYesAnswer(!0)}}},[n("input",{attrs:{type:"checkbox",id:"checkbox-yes"},domProps:{checked:!0===e.yesAnswer?"checked":""},on:{click:function(e){return e.preventDefault()}}}),e._v(" "),n("label",{attrs:{for:"checkbox-yes"}}),e._v(" "),n("span",[e._v("Да")])]),e._v(" "),n("div",{staticClass:"round",on:{click:function(t){return e.onChangeYesAnswer(!1)}}},[n("input",{attrs:{type:"checkbox",id:"checkbox-no"},domProps:{checked:!1===e.yesAnswer?"checked":""},on:{click:function(e){return e.preventDefault()}}}),e._v(" "),n("label",{attrs:{for:"checkbox-no"}}),e._v(" "),n("span",[e._v("Нет")])])]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"btn-wrapper"},[n("div",{staticClass:"btn btn-primary",on:{click:e.onSubmit}},[e._v("Продолжить")])])]),e._v(" "),n("div",{staticClass:"selection-contact-lenses__backdrop",on:{click:e.onClose}})]):e._e()}),r,!1,null,"f169144a",null);t.a=component.exports},811:function(e,t,n){"use strict";n(721)},812:function(e,t,n){"use strict";n(725)},813:function(e,t,n){"use strict";n(726)},814:function(e,t,n){"use strict";n(727)},815:function(e,t,n){"use strict";n(728)},816:function(e,t,n){"use strict";n(729)},817:function(e,t,n){"use strict";n(730)},818:function(e,t,n){"use strict";n(731)},820:function(e,t,n){"use strict";n(733)},823:function(e,t,n){e.exports=n.p+"img/child-1.2be217b.jpg?v=1733723023315"},824:function(e,t,n){e.exports=n.p+"img/child-2.6f0d6f1.jpg?v=1733723023315"},825:function(e,t,n){e.exports=n.p+"img/child-3.1684c7d.jpg?v=1733723023315"},826:function(e,t,n){e.exports=n.p+"img/child-4.5b8c80e.jpg?v=1733723023315"},911:function(e,t,n){"use strict";var r,o,c,l=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"w-[24px] sm:w-[30px] h-[24px] sm:h-[30px] flex justify-center items-center"},[t("img",{staticClass:"w-full",attrs:{src:n(154),alt:"Поиск",title:"linza.ru"}})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._v("\n        Не нашлось услуг для выбранного возраста и адреса салона."),n("br"),e._v("Пожалуйста, укажите другой адрес\n      ")])}],m=n(0),d=(n(12),n(17),n(23),n(35),n(95),n(19),n(22),n(50),n(21),n(36),n(34),{props:{service:{type:Object,default:function(){return{}}},active:{type:Boolean,default:!1}},computed:{isShowImg:function(){return!0},servicePrice:function(){return this.service.price&&0!==this.service.price?"".concat(this.service.price," ₽"):"бесплатно"},servicePriceOld:function(){if(this.service.price_old&&!(this.service.price_old<=this.service.price))return"".concat(this.service.price_old," ₽")},serviceDuration:function(){var e=this.service.duration,t=Math.floor(e/60),n=e-60*t;return[t?"".concat(t," ").concat(this.$caseWords(t,["час","часа","часов"])):void 0,n?"".concat(n," ").concat(this.$caseWords(n,["минута","минуты","минут"])):void 0].join(" ")},serviceTags:function(){return[]},servicePrepare:function(){var e;return(null===(e=this.service)||void 0===e?void 0:e.service_prepare)||""}}}),v=(n(814),n(815),n(5)),f={name:"ServiceSelection",data:function(){return{search:"",currentService:null,isCustomModalMessageEnable:!1,isOpenPopUpSelectionContactLenses:!1}},props:["services","active","hashSalon","hashSalonAddress","age"],components:{ServiceCard:Object(v.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card-service group relative z-10 hover:z-20",class:{"!border-primary":e.service.id===e.active}},[n("div",{staticClass:"flex flex-col h-full relative z-20 bg-white rounded-[10px]",on:{click:function(){return e.$emit("select",e.service)}}},[e.isShowImg?n("div",{staticClass:"service-img"},[n("nuxt-img",{attrs:{alt:e.service.name,title:e.service.name,width:"355",heigth:"210",loading:"lazy",src:String(e.service.image_id)}})],1):e._e(),e._v(" "),n("div",{staticClass:"service-name border-b px-4 pb-4 pt-4 sm:px-6 sm:pt-6 xl:px-8 xl:pt-8 text-xl xl:text-2xl font-medium text-black"},[e._v("\n            "+e._s(e.service.name)+"\n            "),e.serviceTags.length>0?n("div",{staticClass:"card-service__tags"},e._l(e.serviceTags,(function(t,r){return n("div",[e._v(e._s(t))])})),0):e._e()]),e._v(" "),n("div",{staticClass:"flex flex-col flex-1"},[n("div",{staticClass:"border-b px-4 py-2 sm:px-3 sm:py-6 xl:px-8 xl:py-4 flex space-x-3 sm:space-x-14"},[n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"text-[#828698]"},[e._v("Стоимость")]),e._v(" "),n("div",{staticClass:"text-primary font-medium"},[e._v(e._s(e.servicePrice))]),e._v(" "),e.servicePriceOld?n("div",{staticClass:"ml-2 leading-[24px] text-sm text-secondary font-medium line-through"},[e._v(e._s(e.servicePriceOld)+"\n                    ")]):e._e()]),e._v(" "),n("div",{staticClass:"flex flex-col"},[n("div",{staticClass:"text-[#828698]"},[e._v("Длительность")]),e._v(" "),n("div",{staticClass:"text-primary font-medium"},[e._v(e._s(e.serviceDuration))])])]),e._v(" "),n("div",{staticClass:"card-service__description"},[n("div",{staticClass:"px-4 py-2 sm:px-3 sm:py-6 xl:px-8 xl:py-4 flex flex-col justify-end sm:text-lg xl:text-xl text-[#5D6279]",domProps:{innerHTML:e._s(e.service.short_description)}})]),e._v(" "),e.servicePrepare?[n("div",{staticClass:"border-t px-4 py-2 sm:py-6 xl:px-8 xl:py-4 text-[#5D6279] mt-auto"},[n("div",{domProps:{innerHTML:e._s(e.servicePrepare)}})])]:e._e()],2)]),e._v(" "),n("div",{staticClass:"flex flex-col justify-end sm:opacity-0 sm:absolute -left-0.5 -right-0.5 -top-0.5 -bottom-0.5 rounded-b-[10px] sm:rounded-[10px] bg-primary z-[-3] sm:h-[0] sm:pt-14 group-hover:opacity-100 group-hover:h-[98%] group-hover:transition-height box-content duration-500"},[n("div",{staticClass:"description-btn btn btn-empty text-lg 2xl:text-xl z-30 cursor-pointer",on:{click:function(){return e.$emit("open",e.service.slug)}}},[e._v("Подробнее\n        ")])])])}),[],!1,null,"14fae140",null).exports,PopUpSelectionContactLenses:n(809).a},computed:{list:function(){var e=this;return this.services.filter((function(t){if("19"===e.age)return Boolean(!t.for_children_2_6&&!t.for_children_7_11&&!t.for_children_12_18||5===(null==t?void 0:t.category_id));var n=(e.age||"").replace("-","_");return Boolean(t["for_children_".concat(n)])})).filter((function(t){return 37===t.id||38===t.id||39===t.id||20===t.id||e.search&&-1===t.name.toLowerCase().indexOf(e.search)&&-1===t.description.toLowerCase().indexOf(e.search)?null:t}))}},watch:{list:(c=Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mathHeightTitle();case 2:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},mounted:(o=Object(m.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mathHeightTitle();case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)}),methods:{onSelect:function(e,t){return null!=e&&e.with_learning&&!t?(this.isOpenPopUpSelectionContactLenses=!0,this.currentService=e,null):5===(null==e?void 0:e.category_id)?(this.isCustomModalMessageEnable=!0,this.isOpenPopUpSelectionContactLenses=!0,null):(this.isOpenPopUpSelectionContactLenses=!1,this.isCustomModalMessageEnable=!1,void this.$emit("change",{name:"service",value:e.id},1))},onChangeSearch:function(e){this.search=e.target.value},mathHeightTitle:(r=Object(m.a)(regeneratorRuntime.mark((function e(){var t,n,r,o,c,l,d,v,f,h,x,_,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$isServer){e.next=2;break}return e.abrupt("return");case 2:return t=window.innerWidth,n=Boolean(t>1499)?4:Boolean(t>999)?3:1,r=this.list.length,o=Math.ceil(r/n),c=document.querySelectorAll(".service-name"),e.next=9,c.forEach(function(){var e=Object(m.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.style="";case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 9:for(l=0;l!==o;l++){for(d=0,v=0;v!==n;v++)d<(null===(f=c[h=v+l*n])||void 0===f?void 0:f.clientHeight)&&(d=null===(x=c[h])||void 0===x?void 0:x.clientHeight);for(_=0;_!==n;_++)c[y=_+l*n]&&(c[y].style="height: ".concat(d,"px"))}if(document.getElementById("container-service")){e.next=12;break}return e.abrupt("return");case 12:document.getElementById("container-service").style="";case 13:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)}),resetSalonHash:function(){this.$emit("resetSalonHash")},onResetCustomMessage:function(){this.isCustomModalMessageEnable=!1}}},h=(n(817),Object(v.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hashSalon?n("div",{staticClass:"mb-8 flex items-center space-x-2"},[n("div",{staticClass:"text-xl text-secondary"},[e._v("Услуги салона по адресу")]),e._v(" "),n("div",{staticClass:"text-xl text-primary font-medium"},[e._v(e._s(e.hashSalonAddress))]),e._v(" "),n("a",{staticClass:"cursor-pointer text-primary underline",attrs:{href:"/zapis"}},[e._v("Очистить")])]):e._e(),e._v(" "),n("div",{staticClass:"mb-6 xl:mb-8 w-full"},[n("div",{staticClass:"px-4 sm:px-6 flex items-center justify-between h-[40px] sm:h-[56px] border border-solid border-gray-200 rounded-[10px]"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"p-0 w-full text-lg sm:text-2xl !outline-none !shadow-none",attrs:{placeholder:"Поиск по названию услуги"},domProps:{value:e.search},on:{input:[function(t){t.target.composing||(e.search=t.target.value)},e.onChangeSearch]}}),e._v(" "),e._m(0)])]),e._v(" "),Boolean(e.list.length>0)?n("div",{staticClass:"grid grid-cols-1 sm:grid-cols-3 xl:grid-cols-4 gap-4 sm:gap-6",staticStyle:{opacity:"0"},attrs:{id:"container-service"}},e._l(e.list,(function(t,r){return n("ServiceCard",{key:r,attrs:{service:t},on:{select:e.onSelect,open:function(t){return e.$emit("openService",t)}}})})),1):e._e(),e._v(" "),Boolean(e.list.length<=0&&!!e.hashSalon)?n("div",{staticClass:"error-message-content"},[e._m(1),e._v(" "),n("button",{staticClass:"btn btn-primary",on:{click:e.resetSalonHash}},[e._v("Показать услуги в других салонах")])]):e._e(),e._v(" "),n("PopUpSelectionContactLenses",{attrs:{open:e.isOpenPopUpSelectionContactLenses,services:e.services,currentService:e.currentService,"selected-age":e.age,"custom-message":e.isCustomModalMessageEnable},on:{onSelect:function(t){return e.onSelect(t,!0)},onClose:function(){e.isOpenPopUpSelectionContactLenses=!1},onResetCustomMessage:e.onResetCustomMessage}})],1)}),l,!1,null,"effc6c1c",null));t.a=h.exports},912:function(e,t,n){"use strict";var r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 flex sm:pl-10 sm:pt-5 sm:pb-5"},[n("span",{staticClass:"text-xl text-[#828698]"},[e._v("Услуга")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 flex sm:pl-10 sm:pt-5 sm:pb-5"},[n("span",{staticClass:"text-xl text-[#828698]"},[e._v("Салон")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 flex sm:pl-10 sm:pt-5 sm:pb-5"},[n("span",{staticClass:"text-xl text-[#828698]"},[e._v("Специалист")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("\n            Телефон\n            "),n("span",{staticClass:"text-primary"},[e._v("*")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("\n            Фамилия\n            "),n("span",{staticClass:"text-primary"},[e._v("*")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("\n            Имя\n            "),n("span",{staticClass:"text-primary"},[e._v("*")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("\n            Отчество\n            "),n("span",{staticClass:"text-primary"},[e._v("*")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("Возраст")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-5/12 sm:pl-10"},[n("div",{staticClass:"text-primary text-[11px] sm:text-sm whitespace-nowrap"},[e._v("Выберите дату и время посещения\n          ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10 sm:pt-6 sm:pb-6"},[n("p",{staticClass:"text-xl text-secondary"},[e._v("E-mail")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"px-10 text-sm text-[#828698] pb-10"},[n("p",[e._v('Нажимая на кнопку «Записаться» вы принимаете условия публичной оферты и даете согласие ООО "Очки для\n          Вас" на обработку Ваших персональных данных в соответствии с Федеральным законом от 27.07.2006 г. № 152-ФЗ "О\n          персональных данных".')])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-error-content"},[r("img",{staticClass:"form-error-content__image",attrs:{src:n(121)}}),e._v(" "),r("div",{staticClass:"form-error-content__message"},[e._v("\n        По выбранным параметрам"),r("br"),e._v("запись в данный момент невозможна\n      ")])])}],o=(n(18),n(22),n(17),n(13),n(21),n(28),n(1)),c=n(26),l=n(0),m=(n(12),n(36),n(34),n(49),n(19),n(23),n(35),n(153),n(48),n(24),n(55),n(31)),d=n(939),v=n(940),f=n(720),h=n(32),x={1:"record_konsultacii",2:"record_ochki",3:"record_kontaktnye_linzy",4:"record_ok_linzy",5:"record_lechenie"};function _(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}var y={name:"Form",data:function(){return{isSubmit:!1,isModalOpen:!1,workTime:{},appointmentTime:{},specialistName:"",address:"",service:{},patientName:"",middleName:"",surname:"",childAge:null,phone:"",form:{user:1,name:""},email:"",mailingAgreement:!0,isAppointment:!0,isShowForm:!0,isLoadingInitDate:!0,disabledFormUuid:!1}},mixins:[h.h,h.a],components:{DateAndTime:d.a,DateAndTimeApi:v.a,CallBackModal:f.default},validations:function(){var e=Boolean(2===this.form.user)?{required:m.required,between:Object(m.between)(0,18)}:{};return{patientName:{required:m.required,minLength:Object(m.minLength)(2)},surname:{required:m.required,minLength:Object(m.minLength)(2)},middleName:{required:m.required,minLength:Object(m.minLength)(2)},phone:{required:m.required,minLength:Object(m.minLength)(15)},appointmentTime:{start:{required:m.required}},childAge:e}},computed:{servicePrice:function(){return this.service.price&&0!==this.service.price?"".concat(this.service.price," ₽"):"бесплатно"},serviceDuration:function(){var e=this.service.duration,t=Math.floor(e/60),n=e-60*t;return[t?"".concat(t," ").concat(this.$caseWords(t,["час","часа","часов"])):void 0,n?"".concat(n," ").concat(this.$caseWords(n,["минута","минуты","минут"])):void 0].join(" ")},addressShop:function(){var e,t=this;return(null===(e=this.salons.find((function(e){return e.id===t.formInfo.salon})))||void 0===e?void 0:e.address)||"Любой"},isShowQrCodeMessage:function(){return Boolean("да"===(this.vars["Уведомление о QR-коде ВКЛ"]||"").toLowerCase())},isApiWorkTime:function(){var e=Boolean(!!this.formInfo.salon&&-1!==this.formInfo.salon),t=Boolean(!!this.formInfo.service&&-1!==this.formInfo.service);return Boolean(e&&t)}},mounted:function(){var e=this;return Object(l.a)(regeneratorRuntime.mark((function t(){var n,r,o,l,m,d,v,f,h,x,_,y,C,w,S,$,O,k,j,A,P,E,L,M,N,R,F,I,D,B,T;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.isLoadingInitDate=!0,null,!e.uuid){t.next=7;break}return t.next=5,e.$api.agent.transport.get("/exchange/client/getByExternalId/".concat(e.uuid)).then((function(e){return e.data})).catch((function(){return null}));case 5:(o=t.sent)&&(e.phone=o.phone||"",e.surname=o.last_name||"",e.patientName=o.middle_name||"",e.middleName=o.first_name||"",e.disabledFormUuid=!0);case 7:if(e.user&&!e.uuid&&(e.patientName=(null===(l=e.user)||void 0===l?void 0:l.name)||"",v=(""+(null===(m=e.user)||void 0===m?void 0:m.phone)).replace(/\D/g,"").substr(1),f=v.match(/^(\d{3})(\d{2})(\d{2})(\d{3})$/),e.phone=Boolean(null===(d=e.user)||void 0===d?void 0:d.phone)?"(".concat(f[1],") ").concat(f[2],"-").concat(f[3],"-").concat(f[4]):""),e.specialistName=(null===(n=e.specialists.find((function(t){var n;return(null==t?void 0:t.id)===(null===(n=e.formInfo)||void 0===n?void 0:n.specialist)})))||void 0===n?void 0:n.name)||"Любой",e.address=(null===(r=e.salons.find((function(t){return t.id===e.formInfo.salon})))||void 0===r?void 0:r.address)||"Любой",(h=Object(c.a)(e.services||[]).find((function(t){return Boolean(String(t.id)===String(e.formInfo.service))})))||!e.uuid){t.next=15;break}return t.next=14,e.$api.agent.transport.get("/services/".concat(e.formInfo.service)).then((function(e){return e.data})).catch((function(){return null}));case 14:h=t.sent;case 15:if(e.service=h,x=Boolean(!!e.formInfo.salon&&-1!==e.formInfo.salon),_=Boolean(!!e.formInfo.service&&-1!==e.formInfo.service),Boolean(!!e.formInfo.specialist&&-1!==e.formInfo.specialist),e.onSetLocalForm(),!x||!_){t.next=23;break}t.next=61;break;case 23:y=e.$moment().format("DD"),C=e.$moment().format("HH"),w=e.$moment().format("mm"),S=Number("".concat(C).concat(w)),$=10,O=2,k=9,j=20,A={},P=e.$moment().set({hour:k,minute:0}),E=0;case 34:if(!(E<$)){t.next=59;break}L=e.$moment().add(E,"day"),M=L.format("DD"),N=e.$moment(L).format("YYYY-MM-DD"),R=[],F=0;case 40:if(!(F<j-k)){t.next=55;break}I=0;case 42:if(!(I<O)){t.next=52;break}if(D=e.$moment(P).add(F,"h").add(Boolean(0===I)?0:60/(I+1),"m"),B=e.$moment(P).add(F,"h").add(Boolean(I===O-1)?60:60/(I+2),"m"),!(y===M&&Number(S)>Number("".concat(B.format("HH")).concat(B.format("mm"))))){t.next=47;break}return t.abrupt("break",52);case 47:T={begin:D.format("HH:mm"),end:B.format("HH:mm")},R.push(T);case 49:I++,t.next=42;break;case 52:F++,t.next=40;break;case 55:A[N]=R;case 56:E++,t.next=34;break;case 59:e.workTime=A,e.isAppointment=!1;case 61:e.isLoadingInitDate=!1;case 62:case"end":return t.stop()}}),t)})))()},props:{formInfo:{type:Object},salons:{type:Array},specialists:{type:Array},services:{type:Array},uuid:{type:String,default:""}},methods:{onChangeForm:function(e){var t=e.name,n=e.value,r=function(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(t){Object(o.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}({},this.form);r[t]=n,this.form=r,this.onSaveLocalForm(r)},openModal:function(){var e=this;this.isModalOpen=!0,this.$nextTick((function(){e.$modal.show("callback-modal")}))},setApointmentTime:function(e){this.appointmentTime=e,this.onSaveLocalForm()},onSubmitForm:function(){var e=this;return Object(l.a)(regeneratorRuntime.mark((function t(){var n,form,r,o,c,l,m,d,v,f,h,x,_,y;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$v.$touch(),!e.$v.$invalid){t.next=5;break}return t.abrupt("return",null);case 5:if(e.isSubmit=!0,n="","2-6"===e.formInfo.age&&(n="Услуга для возраста: от 2 до 6 лет"),"7-11"===e.formInfo.age&&(n="Услуга для возраста: от 7 до 11 лет"),"12-18"===e.formInfo.age&&(n="Услуга для возраста: от 12 до 18 лет"),"19"===e.formInfo.age&&(n="Услуга для возраста: старше 18 лет"),form={name:"".concat(e.surname," ").concat(e.patientName," ").concat(e.middleName),phone:"7".concat(e.phone.replace(/\D+/g,"")),service_id:e.formInfo.service,store_id:e.formInfo.salon,specialist_id:e.formInfo.specialist,date:e.$moment(e.appointmentTime.day).format("YYYY-MM-DD"),begin:e.appointmentTime.start,end:e.appointmentTime.end,comment:n,email:e.email,additional_data:{mailing_agreement:e.mailingAgreement}},e.uid&&(form.uid=e.uid),e.formInfo.specialist&&-1!==e.formInfo.specialist||delete form.specialist_id,!e.isAppointment){t.next=30;break}return t.prev=15,t.next=18,e.$api.agent.transport.post("appointment",form);case 18:r=t.sent,r.data&&(e.isSubmit=!1,e.onResetLocalForm(),e.$emit("send",form),null!==(o=window)&&void 0!==o&&o.Comagic&&Comagic.trackEvent&&Comagic.trackEvent("Услуги","Запись"),e.$vkGoalWr("DetailedRec",{},void 0)),t.next=28;break;case 23:t.prev=23,t.t0=t.catch(15),e.isSubmit=!1,400===t.t0.response.status?e.$customNotification.error("Запись на приём в выбранный период недоступна. Пожалуйста, укажите другое время",{duration:6e3}):(m=[],Array.isArray(null===(c=t.t0.response)||void 0===c?void 0:c.data)&&null!==(l=t.t0.response)&&void 0!==l&&l.data.length&&(m=null===(d=t.t0.response)||void 0===d?void 0:d.data.map((function(e){return e.message}))),m.length||m.push("Произошла ошибка"),e.$customNotification.error(m.join(";<br/>"),{duration:6e3}));case 28:t.next=49;break;case 30:return h=(form.date||"").split("-").reverse().join("."),e.$caseWords(e.childAge,["год","года","лет"]),x="Здравствуйте, хочу записаться на прием ".concat(h," с ").concat(form.begin," по ").concat(form.end," на услугу ").concat(null===(v=e.services.find((function(e){return e.id===form.service_id})))||void 0===v?void 0:v.name,"\nСалон: ").concat((null===(f=e.salons.find((function(e){return e.id===form.store_id})))||void 0===f?void 0:f.title)||"Любой","\n").concat(n),_={type:"Запись на приём",phone:form.phone,name:form.name,message:x,email:e.email,additional_data:{mailing_agreement:e.mailingAgreement}},t.prev=34,t.next=37,e.$api.agent.transport.post("form/send",_);case 37:y=t.sent,y.data,e.onResetLocalForm(),e.isSubmit=!1,e.$emit("send",form),t.next=49;break;case 44:t.prev=44,t.t1=t.catch(34),e.isSubmit=!1,400===t.t1.response.status?e.$customNotification.error("Запись на приём в выбранный период недоступна. Пожалуйста, укажите другое время",{duration:6e3}):e.$customNotification.error("Произошла ошибка",{duration:6e3});case 49:case"end":return t.stop()}}),t,null,[[15,23],[34,44]])})))()},onSetLocalForm:function(){var e,t,n,r,o,c,l=localStorage.getItem("zapis-form-user");l=Boolean(!!l)?JSON.parse(l):{},this.form=(null===(e=l)||void 0===e?void 0:e.form)||this.form||{},this.phone=(null===(t=l)||void 0===t?void 0:t.phone)||this.phone||"",this.childAge=(null===(n=l)||void 0===n?void 0:n.childAge)||this.childAge||"",this.patientName=(null===(r=l)||void 0===r?void 0:r.patientName)||this.patientName||"",this.middleName=(null===(o=l)||void 0===o?void 0:o.middleName)||this.middleName||"",this.surname=(null===(c=l)||void 0===c?void 0:c.surname)||this.surname||""},onSaveLocalForm:function(){var e={};e.form=this.form,e.phone=this.phone,e.childAge=this.childAge,e.patientName=this.patientName,e.middleName=this.middleName,e.surname=this.surname,localStorage.setItem("zapis-form-user",JSON.stringify(e))},onResetLocalForm:function(){var e=this,t=(this.services||[]).find((function(t){var n;return Boolean(String(t.id)===String(null===(n=e.formInfo)||void 0===n?void 0:n.service))})),n=x[String(t.category_id)];this.$yandexMetrika.reachGoal(n||"record"),this.$ga.event({eventCategory:"event",eventAction:"record",eventLabel:"NA Записаться на прием"}),localStorage.removeItem("zapis-form-user")},changeShowForm:function(e){e||!this.uuid?this.isShowForm=e:this.$emit("changeStage",2)}}},C=(n(820),n(5)),component=Object(C.a)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"flex justify-center"},[e.isShowForm?[n("div",{staticClass:"-mx-5 sm:w-full max-w-[740px] sm:rounded-[10px] overflow-hidden sm:border border-solid border-[#E6E7EA]",class:{"--loading-form":e.isLoadingInitDate}},[n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(0),e._v(" "),n("div",{staticClass:"w-full sm:w-3/4 flex flex-col mt-1 sm:mt-0 sm:pt-5 sm:pb-5 sm:pl-10 sm:pr-10"},[n("span",{staticClass:"text-xl text-black"},[e._v(e._s(e.service.name))]),e._v(" "),n("div",{staticClass:"flex space-x-5 items-center"},[n("span",{staticClass:"text-sm text-primary"},[e._v(e._s(e.servicePrice))]),e._v(" "),n("span",{staticClass:"text-sm text-primary"},[e._v(e._s(e.serviceDuration))])])])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(1),e._v(" "),n("div",{staticClass:"w-full sm:w-3/4 flex flex-col mt-1 sm:mt-0 sm:pt-5 sm:pb-5 sm:pl-10 sm:pr-10"},[n("span",{staticClass:"text-xl sm:text-2xl text-black"},[e._v(e._s(e.addressShop))])])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(2),e._v(" "),n("div",{staticClass:"w-full sm:w-3/4 flex flex-col mt-1 sm:mt-0 sm:pt-5 sm:pb-5 sm:pl-10 sm:pr-10"},[n("span",{staticClass:"text-xl sm:text-2xl text-black"},[e._v(e._s(e.specialistName))])])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(3),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("div",{staticClass:"flex items-center"},[n("span",{staticClass:"text-xl sm:text-2xl"},[e._v("+7 ")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.$v.phone.$model,expression:"$v.phone.$model"},{name:"mask",rawName:"v-mask",value:["(",/[1-6, 9]/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/," ",/\d/,/\d/," ",/\d/,/\d/],expression:"['(', /[1-6, 9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, ' ', /\\d/, /\\d/, ' ', /\\d/, /\\d/]"}],staticClass:"placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{"data-form":"phone",type:"text",placeholder:"(___) __-__-___",disabled:e.disabledFormUuid},domProps:{value:e.$v.phone.$model},on:{input:[function(t){t.target.composing||e.$set(e.$v.phone,"$model",t.target.value)},e.onSaveLocalForm]}})]),e._v(" "),e.$v.phone.$dirty&&!e.$v.phone.required?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Обязательно к заполнению")]):e.$v.phone.$dirty&&!e.$v.phone.minLength?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Неверный формат номера")]):e._e()]),e._v(" "),n("div",{staticClass:"w-full sm:w-auto sm:pr-9 mt-2 sm:mt-0"},[n("button",{staticClass:"btn text-primary text-base font-medium w-full sm:w-[250px] !min-h-[40px] h-auto bg-[#F6E9F4] hover:bg-[#F6E9F4]",on:{click:e.openModal}},[e._v("Заказать обратный звонок\n          ")])])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(4),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.$v.surname.$model,expression:"$v.surname.$model",modifiers:{trim:!0}}],staticClass:"placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{disabled:e.disabledFormUuid,placeholder:"Введите фамилию",type:"text"},domProps:{value:e.$v.surname.$model},on:{input:[function(t){t.target.composing||e.$set(e.$v.surname,"$model",t.target.value.trim())},e.onSaveLocalForm],blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.$v.surname.$dirty&&!e.$v.surname.required?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Обязательно к заполнению")]):e.$v.surname.$dirty&&!e.$v.surname.minLength?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Поле должно сожержать минимум "+e._s(e.$v.surname.$params.minLength.min)+" символов")]):e._e()])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(5),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.$v.patientName.$model,expression:"$v.patientName.$model",modifiers:{trim:!0}}],staticClass:"placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{disabled:e.disabledFormUuid,placeholder:"Введите имя",type:"text","data-form":"name"},domProps:{value:e.$v.patientName.$model},on:{input:[function(t){t.target.composing||e.$set(e.$v.patientName,"$model",t.target.value.trim())},e.onSaveLocalForm],blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.$v.patientName.$dirty&&!e.$v.patientName.required?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Обязательно к заполнению")]):e.$v.patientName.$dirty&&!e.$v.patientName.minLength?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Поле должно сожержать минимум "+e._s(e.$v.patientName.$params.minLength.min)+" символов")]):e._e()])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(6),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.$v.middleName.$model,expression:"$v.middleName.$model",modifiers:{trim:!0}}],staticClass:"placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{disabled:e.disabledFormUuid,placeholder:"Введите отчество",type:"text","data-form":"middle-name"},domProps:{value:e.$v.middleName.$model},on:{input:[function(t){t.target.composing||e.$set(e.$v.middleName,"$model",t.target.value.trim())},e.onSaveLocalForm],blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.$v.middleName.$dirty&&!e.$v.middleName.required?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Обязательно к заполнению")]):e.$v.middleName.$dirty&&!e.$v.middleName.minLength?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Поле должно сожержать минимум "+e._s(e.$v.middleName.$params.minLength.min)+" символов")]):e._e()])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),2===e.form.user?n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(7),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:e.childAge,expression:"childAge",modifiers:{number:!0}},{name:"mask",rawName:"v-mask",value:"##",expression:"'##'"}],staticClass:"flex-1 placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{placeholder:"Введите возраст"},domProps:{value:e.childAge},on:{input:[function(t){t.target.composing||(e.childAge=e._n(t.target.value))},e.onSaveLocalForm],blur:function(t){return e.$forceUpdate()}}}),e._v(" "),e.$v.childAge.$dirty&&!e.$v.childAge.required?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Обязательно к заполнению")]):e._e(),e._v(" "),e.$v.childAge.$dirty&&!e.$v.childAge.between?n("span",{staticClass:"text-primary text-[11px] sm:text-sm"},[e._v("Допустимый возраст 0 - 18")]):e._e()])]):e._e(),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),e.isApiWorkTime?[n("DateAndTimeApi",{attrs:{"form-info":e.formInfo,"is-required":!0,"init-data":e.appointmentTime},on:{changeShowForm:e.changeShowForm,setApointmentTime:e.setApointmentTime}})]:e._e(),e._v(" "),e.isApiWorkTime?e._e():[Object.keys(e.workTime).length>0?n("DateAndTime",{attrs:{"work-time":e.workTime,"init-data":e.appointmentTime,"is-required":!0},on:{setApointmentTime:e.setApointmentTime}}):e._e()],e._v(" "),e.$v.appointmentTime.start.$dirty&&!e.$v.appointmentTime.start.required?n("div",{staticClass:"mt-1 flex flex-col sm:flex-row items-center px-4 sm:px-0 sm:px-0"},[n("div",{staticClass:"w-full sm:w-1/5 sm:pl-10"}),e._v(" "),e._m(8)]):e._e(),e._v(" "),n("div",{staticClass:"flex flex-col sm:flex-row items-center px-4 sm:px-0 py-4 sm:px-0"},[e._m(9),e._v(" "),n("div",{staticClass:"w-full sm:w-5/12 mt-1 sm:mt-0 sm:pt-5 sm:pb-4 sm:pl-10 sm:pr-10"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.email,expression:"email",modifiers:{trim:!0}}],staticClass:"placeholder-gray-300 w-full border-none text-xl sm:text-2xl text-[#210323] focus:text-primary focus:shadow-none focus:ring-0 focus-visible:outline-none",attrs:{placeholder:"Введите E-mail",type:"text","data-form":"middle-name"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})])]),e._v(" "),n("div",{staticClass:"w-full h-[1px] bg-[#E6E7EA]"}),e._v(" "),n("div",{staticClass:"mt-3 pl-4 sm:pl-10 flex items-center sm:mt-5"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.mailingAgreement,expression:"mailingAgreement"}],staticClass:"checkbox checkbox-primary cart-product__checked mobile",attrs:{type:"checkbox",id:"formCheckbox"},domProps:{checked:e.mailingAgreement,checked:Array.isArray(e.mailingAgreement)?e._i(e.mailingAgreement,null)>-1:e.mailingAgreement},on:{change:function(t){var n=e.mailingAgreement,r=t.target,o=!!r.checked;if(Array.isArray(n)){var c=e._i(n,null);r.checked?c<0&&(e.mailingAgreement=n.concat([null])):c>-1&&(e.mailingAgreement=n.slice(0,c).concat(n.slice(c+1)))}else e.mailingAgreement=o}}}),e._v(" "),n("label",{staticClass:"ml-4 formLabel",attrs:{for:"formCheckbox"}},[e._v("Согласие на получение информационных рассылок")])]),e._v(" "),e.isShowQrCodeMessage&&e.vars["Уведомление о QR-коде"]?n("div",{staticClass:"px-10 pt-10 text-center text-primary font-medium"},[e._v("\n        "+e._s(e.vars["Уведомление о QR-коде"])+"\n      ")]):e._e(),e._v(" "),n("div",{staticClass:"flex justify-center items-center pt-10 pb-8"},[n("button",{staticClass:"btn btn-primary !p-0",attrs:{disabled:e.isSubmit,"data-attribute":"button-make-entry"},on:{click:e.onSubmitForm}},[e.isSubmit?n("span",{staticClass:"text-2xl px-8"},[e._v("Идет запись...")]):n("span",{staticClass:"text-2xl px-8"},[e._v("Записаться")])])]),e._v(" "),e._m(10)],2),e._v(" "),e.isModalOpen?n("call-back-modal"):e._e()]:e._e(),e._v(" "),e.isShowForm?e._e():[e._m(11)]],2)}),r,!1,null,"123ffcd9",null);t.a=component.exports},917:function(e,t,n){"use strict";var r,o,c=n(0),l=(n(12),{data:function(){return{templates:[]}},mounted:(o=Object(c.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.getTemplates();case 1:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)}),methods:{getTemplates:(r=Object(c.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$api.agent.transport.get("/template").then((function(e){return e.data})).catch((function(){return[]}));case 2:t=e.sent,this.templates=t;case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}}),m=(n(811),n(5)),component=Object(m.a)(l,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._e()])}),[],!1,null,"081a5b89",null);t.a=component.exports},918:function(e,t,n){"use strict";var r={name:"Stepper",data:function(){return{stages:[{title:"Возраст",stage:0},{title:"Выбор услуги",stage:1},{title:"Выбор салона",stage:2},{title:"Выбор специалиста",stage:3},{title:"Завершение",stage:4}]}},props:["stage","permittedStage"],methods:{changeStage:function(e){if(e>this.permittedStage)return null;this.$emit("change",e)}}},o=n(5),component=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"overflow-auto sm:overflow-hidden scroll-no-visible px-4 sm:px-0"},[n("div",{staticClass:"flex items-center sm:justify-center space-x-4 sm:space-x-0"},e._l(e.stages,(function(t,r){return n("div",{key:"stage-"+r,staticClass:"flex justify-center items-center",class:{"cursor-pointer hover:!text-primary":t.stage<=e.permittedStage,"cursor-not-allowed":t.stage>e.permittedStage},on:{click:function(){return e.changeStage(t.stage)}}},[n("div",{staticClass:"flex items-center"},[n("div",{staticClass:"min-w-[20px] w-[20px] sm:w-[28px] h-[20px] sm:h-[28px] rounded-[999px] border border-solid border-gray-300 flex justify-center items-center text-base sm:text-lg text-gray-500",class:{"!text-primary":e.stage===t.stage,"!bg-primary !border-primary":e.stage>t.stage}},[e.stage<=t.stage?n("span",[e._v(e._s(t.stage+1))]):n("svg",{attrs:{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M1 3.8L6.25 8L13 1",stroke:"white","stroke-width":"2.57143"}})])]),e._v(" "),n("div",{staticClass:"ml-1 xl:ml-3 text-base sm:text-xl xl:text-2xl text-black whitespace-nowrap sm:whitespace-normal",class:{"!text-primary":e.stage===t.stage}},[e._v(e._s(t.title))])]),e._v(" "),r<e.stages.length-1?n("div",{staticClass:"hidden sm:block w-[48px] h-[1px] bg-[#cdcfd6] mx-3 xl:mx-6"}):e._e()])})),0)])}),[],!1,null,"f8bcc2f4",null);t.a=component.exports},919:function(e,t,n){"use strict";var r,o,c=n(0),l=(n(36),n(34),n(12),{name:"ServicesModal",data:function(){return{service:{},isAdditionalService:!1}},props:{slug:{type:String,default:""},ageSelected:{type:String,default:""}},created:(o=Object(c.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.loadService();case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)}),computed:{isShowImg:function(){return!0},servicePrice:function(){return this.service.price&&0!==this.service.price?"".concat(this.service.price," ₽"):"бесплатно"},serviceDuration:function(){var e=this.service.duration,t=Math.floor(e/60),n=e-60*t;return[t?"".concat(t," ").concat(this.$caseWords(t,["час","часа","часов"])):void 0,n?"".concat(n," ").concat(this.$caseWords(n,["минута","минуты","минут"])):void 0].join(" ")},servicePrepare:function(){var e;return(null===(e=this.service)||void 0===e?void 0:e.service_prepare)||""},getAgeService:function(){var e=[];return this.service.for_children_2_6&&e.push({label:"от 2 до 6 лет",value:"2-6"}),this.service.for_children_7_11&&e.push({label:"от 7 до 11 лет",value:"7-11"}),this.service.for_children_12_18&&e.push({label:"от 12 до 18 лет",value:"12-18"}),this.service.for_children_12_18||this.service.for_children_12_18||this.service.for_children_2_6||e.push({label:"старше 18 лет",value:"19"}),e}},methods:{loadService:(r=Object(c.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$api.agent.transport.get("services/".concat(this.slug));case 2:t=e.sent,n=t.data,this.$modal.show("service-card-modal"),this.service=n;case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)}),onMakeAppointment:function(){},close:function(){this.service={},this.$emit("close")},click:function(e){var t;5!==(null===(t=this.service)||void 0===t?void 0:t.category_id)?(this.$emit("click",{serviceId:this.service.id,age:e.value,isConfirm:!1}),this.close()):this.isAdditionalService=!0},clickAdditionalServices:function(){var e=8;"2-6"===this.ageSelected&&(e=40),"7-11"===this.ageSelected&&(e=42),"12-18"===this.ageSelected&&(e=41),this.$emit("click",{serviceId:e,age:this.ageSelected}),this.isAdditionalService=!1,this.close()}}}),m=(n(812),n(813),n(5)),component=Object(m.a)(l,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("Modal",{staticClass:"px-4 sm:px-0 py-4 sm:py-20",attrs:{shiftY:0,name:"service-card-modal",width:"750",height:"auto",classes:"!rounded-[10px] max-w-full !h-auto",scrollable:!0,adaptive:!0},on:{closed:e.close}},[e.isAdditionalService?r("div",{staticClass:"p-4 sm:p-7"},[r("div",{staticClass:"selection-contact-lenses__content"},[r("div",{staticClass:"selection-contact-lenses__card-message with-custom-message"},[e._v("\n         Запись на услугу возможна только после консультации врача, нажмите «продолжить», чтобы записаться на прием.\n       ")]),e._v(" "),r("img",{attrs:{src:n(724),alt:""}})]),e._v(" "),r("div",{staticClass:"selection-contact-lenses__card-footer with-custom-message"},[r("div",{staticClass:"btn btn-primary",on:{click:function(t){return e.clickAdditionalServices()}}},[e._v("\n          Продолжить\n        ")])])]):r("div",[e.isShowImg?r("div",{staticClass:"service-modal__img"},[r("nuxt-img",{attrs:{alt:e.service.name,title:e.service.name,width:"750",heigth:"460",loading:"lazy",src:String(e.service.image_id)}})],1):e._e(),e._v(" "),r("div",{staticClass:"p-4 sm:p-7"},[r("div",{staticClass:"service-modal__name "},[e._v(e._s(e.service.name))]),e._v(" "),r("div",{staticClass:"mt-4 flex space-x-6"},[r("div",[r("div",{staticClass:"sm:text-lg text-[#828698]"},[e._v("Стоимость")]),e._v(" "),r("div",{staticClass:"mt-0.5 sm:text-lg text-primary font-medium"},[e._v(e._s(e.servicePrice))])]),e._v(" "),r("div",[r("div",{staticClass:"sm:text-lg text-[#828698]"},[e._v("Длительность")]),e._v(" "),r("div",{staticClass:"mt-0.5 sm:text-lg text-primary font-medium"},[e._v(e._s(e.serviceDuration))])])]),e._v(" "),e.servicePrepare?[r("div",{staticClass:"mt-4 sm:mt-8 text-lg card-service__service-prepare"},[r("div",{domProps:{innerHTML:e._s(e.servicePrepare)}})])]:e._e(),e._v(" "),r("div",{staticClass:"mt-4 sm:mt-8 text-lg card-service__description",domProps:{innerHTML:e._s(e.service.description)}}),e._v(" "),r("div",{staticClass:"mt-6 sm:mt-10"},[e.ageSelected?[r("div",{staticClass:"ages"},[r("div",{staticClass:"card-age",on:{click:function(){return e.click({value:e.ageSelected})}}},[r("div",{staticClass:"card-age__label"},[e._v("\n                                Записаться на прием\n                            ")])])])]:e._e(),e._v(" "),e.ageSelected?e._e():[r("div",{staticClass:"form-title"},[e._v("Записаться на прием")]),e._v(" "),r("div",{staticClass:"ages"},e._l(e.getAgeService,(function(t,n){return r("div",{key:"popup-age-"+n,staticClass:"card-age",on:{click:function(){return e.click(t)}}},[r("div",{staticClass:"card-age__label"},[e._v("\n                                "+e._s(t.label)+"\n                            ")])])})),0)]],2)],2)])])}),[],!1,null,"64a5d0cc",null);t.a=component.exports},920:function(e,t,n){"use strict";var r=n(1),o=n(0),c=(n(12),n(48),n(27),n(42),n(45),n(17),n(23),n(35),n(34),n(24),n(49),n(19),n(18),n(22),n(13),n(21),n(28),n(4)),l=n.n(c),m=n(641),d=n(32);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function f(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var h={apiKey:"c7e13009-c15b-4dbc-8f0e-d807da9145ed",lang:"ru_RU",coordorder:"latlong",version:"2.1"};l.a.use(m.default,h);var x,_,y,C,w,S,$={name:"SalonSelection",data:function(){return{cities:[],yandexMapCoords:[56.838011,60.597465],salons:[],searchStore:"",activeCity:1,activeShop:-1}},props:{activeServce:{type:Number,required:!0},activeSalon:{type:[String,Number]},activeAge:{type:[String,Number]}},components:{yandexMap:function(){return Promise.resolve().then(n.bind(null,641))}},computed:{getStores:function(){var e=this;return this.salons.filter((function(t){if(t.city_id===e.activeCity&&t.address.toLowerCase().indexOf(e.searchStore.toLowerCase())>-1)return t}))}},watch:{activeServce:(S=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.yandexMapDestroy();case 2:this.yandexMapSetMarkers();case 3:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)}),activeSalon:(w=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.yandexMapDestroy();case 2:this.yandexMapSetMarkers();case 3:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)}),activeCity:(C=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.yandexMapDestroy();case 2:this.yandexMapSetMarkers();case 3:case"end":return e.stop()}}),e,this)}))),function(){return C.apply(this,arguments)}),activeShop:(y=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.yandexMapDestroy();case 2:this.yandexMapSetMarkers();case 3:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},mixins:[d.a],mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,l,m,d,v,f,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=Boolean("19"===e.activeAge)?"filter[for_not_children]=1":"filter[for_children_".concat((e.activeAge||"").replace("-","_"),"]=1"),t.next=3,e.$api.agent.transport.get("stores?".concat(l,"&filter[service_id]=").concat(e.activeServce));case 3:return m=t.sent,d=m.data,e.salons=d,v=[],e.salons.map((function(e){Boolean(v.find((function(t){return t.id===e.city_id})))||v.push({id:e.city_id,city_name:e.city_name})})),e.cities=v,f=(null===(n=e.appCfg)||void 0===n||null===(r=n.city)||void 0===r||null===(o=r.model)||void 0===o?void 0:o.name)||"Екатеринбург",h=(null===(c=e.cities.find((function(e){return(null==e?void 0:e.city_name)===f})))||void 0===c?void 0:c.id)||1,e.activeCity=h,t.next=14,e.yandexMapInit();case 14:case"end":return t.stop()}}),t)})))()},methods:{yandexMapInit:(_=Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.loadYmap)(f(f({},h),{},{debug:!0}));case 2:if(document.getElementById("yandex-map")){e.next=4;break}return e.abrupt("return",null);case 4:this.yandexMap=new ymaps.Map("yandex-map",{center:this.yandexMapCoords,zoom:12,behaviors:["drag","dblClickZoom","multiTouch"]},{maxZoom:17}),this.yandexMapSetMarkers();case 6:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)}),yandexMapSetMarkers:function(){var e=this;if(!this.yandexMap||this.getStores.length<=0)return null;var t=this.yandexMap,n=this,r=null;this.getStores.map((function(o){e.activeShop===o.id&&(r=o);var c=ymaps.templateLayoutFactory.createClass('<div class="store-map-pointer '.concat(Boolean(e.activeShop===o.id||1===e.getStores.length)?" store-map-pointer--active":"",'"><span>').concat(o.address,"</span></div>")),l=new ymaps.Placemark([o.lat,o.lon],{},{iconLayout:"default#imageWithContent",iconImageHref:"",content:"",contentLayout:"",imageSize:[60,60],imageOffset:[-30,-30],contentOffset:[30,20],iconContentLayout:c});l.events.add("click",(function(){n.setStore(o.id)})),t.geoObjects.add(l)})),Object(o.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.setBounds(t.geoObjects.getBounds(),{checkZoomRange:!0,zoomMargin:[160,0]});case 2:if(null===r){e.next=5;break}return e.next=5,t.panTo([r.lat,r.lon]);case 5:case"end":return e.stop()}}),e)})))()},yandexMapDestroy:(x=Object(o.a)(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.yandexMap){e.next=2;break}return e.abrupt("return",null);case 2:return e.next=4,null===(t=this.yandexMap)||void 0===t||null===(n=t.geoObjects)||void 0===n?void 0:n.removeAll();case 4:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)}),onChange:function(e){this.$emit("change",{name:"salon",value:e})},setCity:function(e){this.activeShop=-1,this.activeCity=e},setStore:function(e){this.activeShop=null,this.activeShop=e,this.onScrollActiveShop(e)},onScrollActiveShop:function(e){var t=document.getElementById("container-shops"),n=document.getElementById("store".concat(e)),r=t.offsetTop,o=n.offsetTop;this.$refs.refContainerShops.scrollTo({top:o-r,behavior:"smooth"})},onChangeSearch:function(e){var t=e.target;this.searchStore=t.value},getIcon:function(e){var t=Boolean(this.activeShop===e.id),n="store-map-pointer".concat(t?" store-map-pointer--active":"");return{layout:"default#imageWithContent",imageHref:"",imageSize:[60,60],imageOffset:[-30,-30],content:"",contentOffset:[30,20],contentLayout:'<div class="'.concat(n,'"><span>').concat(e.address,"</span></div>")}}}},O=(n(818),n(5)),component=Object(O.a)($,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"sm:hidden mb-8 sm:mb-12 flex items-start justify-center"},[n("button",{staticClass:"btn text-xl sm:text-2xl text-primary border-none sm:h-14 hover:bg-[#F6E9F4] bg-[#F6E9F4] btn-primary",on:{click:function(){return e.onChange(-1)}}},[e._v("\n      Любой салон\n    ")])]),e._v(" "),n("div",{staticClass:"flex justify-center items-center mb-8 sm:mb-12"},[n("div",{staticClass:"flex flex-wrap justify-center space-2 max-w-screen-lg"},e._l(e.cities,(function(t){return n("button",{key:"city-"+t.id,staticClass:"btn btn-round btn-empty btn-sm px-4 sm:px-7 sm:h-11",class:{"!bg-pink-100 !hover:bg-pink-150 !active:bg-pink-200":e.activeCity===t.id},on:{click:function(){return e.setCity(t.id)}}},[n("span",{staticClass:"text-lg sm:text-xl text-muted font-normal hover:text-stylistic",class:{"!text-stylistic":e.activeCity===t.id}},[e._v(e._s(t.city_name))])])})),0)]),e._v(" "),n("div",{staticClass:"sm:h-[730px] relative sm:-mb-20 xl:-mb-32 flex"},[n("div",{staticClass:"container py-12 max-h-full flex flex-col-reverse sm:flex-row"},[n("div",{staticClass:"min-h-[420px] flex-1 sm:absolute left-0 top-0 right-0 bottom-0 z-10",attrs:{id:"yandex-map"}}),e._v(" "),n("div",{staticClass:"mb-6 sm:mb-0 sm:py-8 h-full w-full max-w-[500px] relative z-20 flex border sm:border-none rounded-[10px]"},[n("div",{staticClass:"flex flex-col max-h-full w-full px-4 sm:px-6 xl:px-10 bg-white rounded-[10px] "},[n("div",{staticClass:"hidden sm:flex py-4 xl:py-8 items-center justify-between"},[n("div",{staticClass:"text-2xl font-medium text-black opacity-80"},[e._v("Выберите салон")]),e._v(" "),n("button",{staticClass:"px-4 py-2 rounded-[10px] bg-[#fce7f3] text-primary font-medium",on:{click:function(){return e.onChange(-1)}}},[e._v("\n              Любой салон\n            ")])]),e._v(" "),e._e(),e._v(" "),e._e(),e._v(" "),n("div",{staticClass:"hidden sm:block h-[1px] bg-[#E6E7EA] sm:-mx-6 xl:-mx-10"}),e._v(" "),n("div",{ref:"refContainerShops",staticClass:"-mx-4 sm:-mx-6 xl:-mx-10 scroll-customize max-h-full overflow-auto",attrs:{id:"container-shops"}},e._l(e.getStores,(function(t,r){return n("div",{key:r},[n("div",{staticClass:"flex flex-col sm:flex-row py-4 xl:py-6 px-4 sm:px-6 xl:px-8 cursor-pointer border border-transparent border-solid group hover:text-primary relative",class:{"border-primary":e.activeShop===t.id,"rounded-t-[10px] sm:rounded-none":0===r,"rounded-b-[10px] sm:rounded-none":r===e.getStores.length-1},attrs:{id:"store"+t.id}},[n("div",{staticClass:"sm:mr-4"},[n("div",{staticClass:"text-lg sm:text-xl text-black opacity-80 sm:mb-2 group-hover:text-primary"},[e._v(e._s(t.address))]),e._v(" "),e._l(t.working_hours.split(","),(function(t,r){return n("div",{key:r,staticClass:"mb-2 sm:mb-0 text-black opacity-40 group-hover:text-primary"},[e._v(e._s(t))])}))],2),e._v(" "),n("div",{staticClass:"sm:ml-auto"},[n("button",{staticClass:"text-[18px] bg-primary py-1.5 px-3 text-white rounded-[10px] font-medium relative z-20 btn btn-primary",on:{click:function(){return e.onChange(t.id)}}},[n("span",[e._v("Выбрать")])])]),e._v(" "),n("div",{staticClass:"absolute w-full h-full left-0 top-0 ring-0 bottom-0 z-10",on:{click:function(){return e.setStore(t.id)}}})]),e._v(" "),r<e.getStores.length-1?n("div",{staticClass:"h-[1px] bg-[#E6E7EA]"}):e._e()])})),0)])])])])])}),[],!1,null,null,null);t.a=component.exports},921:function(e,t,n){"use strict";var r=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"flex items-center justify-center"},[t("img",{staticClass:"max-w-[240px]",attrs:{src:n(648)}})])}],o=n(0),c=(n(12),n(48),n(23),n(95),n(35),n(34),n(791)),l=n(938),m={name:"SpecialistSelection",data:function(){return{search:"",about:[],specialists:null,isLoading:!0}},components:{SpecialictCard:c.default,InfoAboutSpecialist:l.a},props:{activeAge:{type:String,required:!0},activeServce:{type:Number,required:!0},activeSalon:{type:[String,Number]},activeSpecialist:{type:Number}},methods:{onSelect:function(e){this.$emit("change",{name:"specialist",value:e.id})},onChangeSearch:function(e){this.search=e.target.value},onAbout:function(e){this.about.push(e),this.$modal.show("special-modal-select")},onClose:function(){this.about=[]},getSpecialization:function(e){return(null==e?void 0:e.position)||""}},mounted:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark((function t(){var n,r,o,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Boolean("19"===e.activeAge)?"filter[for_not_children]=1":"filter[for_children_".concat((e.activeAge||"").replace("-","_"),"]=1"),r="".concat(n,"&filter[service_id]=").concat(e.activeServce).concat(Boolean(-1===e.activeSalon)?"":"&filter[store_id]=".concat(e.activeSalon)),o=Boolean(-1===e.activeSalon)?"/specialist":"/specialist/available",t.next=5,e.$api.agent.transport.get("".concat(o,"?expand=stores&").concat(r));case 5:c=t.sent,l=c.data,e.specialists=l,e.isLoading=!1;case 9:case"end":return t.stop()}}),t)})))()}},d=n(5),component=Object(d.a)(m,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isLoading?e._e():n("div",[e.specialists&&e.specialists.length>0?n("div",[n("div",{staticClass:"flex justify-center items-center mb-8 sm:mb-12"},[[12,14,30,31,10,16].includes(e.activeServce)?e._e():n("button",{staticClass:"btn text-xl sm:text-2xl text-primary border-none sm:h-14 hover:bg-[#F6E9F4] bg-[#F6E9F4] ",on:{click:function(t){return e.onSelect({id:-1})}}},[e._v("Любой специалист")])]),e._v(" "),n("div",{staticClass:"grid grid-cols-2 sm:grid-cols-5 gap-4 xl:gap-14"},e._l(e.specialists,(function(t){return n("SpecialictCard",{key:t.id,attrs:{name:t.name,specialization:e.getSpecialization(t),address:"Екатеринбург, Малышева, 84",image:t.image_id,id:t.id,title:"Подробнее"},on:{openModalBottom:function(){return e.onAbout(t)},openModalCard:function(n){return e.onSelect(t)}}})})),1)]):n("div",{staticClass:"flex justify-center items-center"},[n("p",{staticClass:"text-3xl text-primary"},[e._v("К сожалению, ни одного специалиста не найдено для данной услуги!")])]),e._v(" "),n("Modal",{staticClass:"py-4 sm:py-10 px-4 sm:px-0",attrs:{name:"special-modal-select",width:"750",height:"auto",classes:"flex flex-col !h-full !top-0 max-w-full","tab-index":"9999",scrollable:!0,adaptive:!0},on:{closed:e.onClose}},[e.about?n("InfoAboutSpecialist",{attrs:{specialist:e.about,isAppointment:!0},on:{onAppointment:e.onSelect}}):e._e(),e._v(" "),n("div",{staticClass:"sm:hidden z-[999999] fixed top-6 right-6 w-[40px] h-[40px] rounded-full bg-[white] flex items-center justify-center shadow-md",on:{click:function(t){return e.$modal.hide("special-modal-select")}}},[n("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{opacity:"0.3",d:"M7 5.37456L11.8748 0.49975C12.3235 0.0510361 13.051 0.0510357 13.4997 0.49975C13.9485 0.948464 13.9485 1.67597 13.4997 2.12469L8.62494 6.9995L13.4997 11.8743C13.9485 12.323 13.9485 13.0505 13.4997 13.4992C13.051 13.948 12.3235 13.948 11.8748 13.4992L7 8.62444L2.12519 13.4992C1.67647 13.948 0.948964 13.948 0.50025 13.4992C0.0515358 13.0505 0.0515365 12.323 0.50025 11.8743L5.37506 6.9995L0.50025 2.12469C0.0515361 1.67597 0.0515358 0.948464 0.50025 0.49975C0.948964 0.0510357 1.67647 0.0510361 2.12519 0.49975L7 5.37456Z",fill:"black"}})])])],1)],1),e._v(" "),e.isLoading?n("div",[e._m(0)]):e._e()])}),r,!1,null,"44e3f3a5",null);t.a=component.exports},956:function(e,t,n){e.exports={}},957:function(e,t,n){e.exports={}},958:function(e,t,n){e.exports={}}}]);
//# sourceMappingURL=a0c7f78.js.map?v=1733723023315