widget-crm-form
Advanced tools
Comparing version 5.0.9 to 5.0.10
@@ -1,1 +0,1 @@ | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[197],{7197:function(t,e,n){n.r(e),n.d(e,{default:function(){return M},init:function(){return z}});var r={};n.r(r),n.d(r,{mask:function(){return k}});var i={};n.r(i),n.d(i,{Toast:function(){return X},auth:function(){return _},cases:function(){return P},forms:function(){return Z},gtm:function(){return E},localeUrl:function(){return F},sentry:function(){return x},swiper:function(){return C},youtube:function(){return D}});var o={};n.r(o);var a=n(4845),s=n(644),u=n.n(s),c=n(4421),l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)};a.ZP.use(c.ZP);var d={namespaced:!0,state:{forms:{}},getters:{forms:function(t){return t.forms}},mutations:{setForm:function(t,e){a.ZP.set(t.forms,e.id,e)}}},m={namespaced:!0,state:{gallery:{},activeGalleryID:"",activeSlide:0,url:"".concat(window.API_URL||"http://api.27ua.curkevich.dev.27.local","/api/v1"),headers:{Authorization:"Bearer bpYIx0JrpxAieYi85a8WAwKy6he9qPLUQ8Rt677C",Accept:"text/json"}},getters:{gallery:function(t){return t.gallery},activeGalleryID:function(t){return t.activeGalleryID},activeSlide:function(t){return t.activeSlide},url:function(t){return t.url},headers:function(t){return t.headers}},mutations:{setGallery:function(t,e){a.ZP.set(t.gallery,e.id,e.data)},setActiveGalleryID:function(t,e){return t.activeGalleryID=e},setActiveSlide:function(t,e){return t.activeSlide=e}},actions:{getProductData:function(t,e){var n=t.getters;return u().get("".concat(n.url,"/review/product_card_list"),{params:e,headers:n.headers})},vote:function(t,e){var n=t.getters;return u().put("".concat(n.url,"/review/").concat(e.id,"/vote"),{user:e.user,is_like:e.vote},{headers:n.headers})},getItemInfo:function(t,e){var n=t.getters;return u().get("".concat(n.url,"/review/info/").concat(e.id),{headers:n.headers})},sendFeedback:function(t,e){var n=t.getters;return u().post("".concat(n.url,"/feedbacks/"),e,{headers:l(l({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})},sendReview:function(t,e){var n=t.getters;return u().post("".concat(n.url,"/review/"),e,{headers:l(l({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})}}},f={namespaced:!0,state:{ww:0,wh:0,scrollTop:0,margin:"0"},getters:{ww:function(t){return t.ww},wh:function(t){return t.wh},scrollTop:function(t){return t.scrollTop},margin:function(t){return t.margin}},mutations:{setWw:function(t,e){return t.ww=e},setWh:function(t,e){return t.wh=e},setScrollTop:function(t,e){return t.scrollTop=e},setMargin:function(t,e){return t.margin=e}},actions:{bodyScrollRemove:function(t){var e=t.state;(0,t.commit)("setMargin","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),document.body.style.paddingRight=e.margin,document.body.classList.add("ep-blocked-scroll")},bodyScrollAdd:function(t){var e=t.state;(0,t.commit)("setMargin","0"),document.body.style.paddingRight=e.margin,document.body.classList.remove("ep-blocked-scroll")}}},p=new c.ZP.Store({modules:{crm:d,menu:{namespaced:!0,state:{open:!1,load:!1,list:[]},getters:{open:function(t){return t.open}},mutations:{setOpen:function(t,e){return t.open=e}}},reviews:m,window:f}}),h=n(5186),v={actions:"Акції",price:{price:"ціна",action:"акційна ціна",benefit:{points:"Бали Вигода",superCashBack:"Супер кешбек",cashBack:"CashBack",cases:["бала","бал","бали","балів"]}},models:["варіанта","варіант","варіанта","варіантів"],ended:"Закінчився",delivery:{no:"Без доставки",yes:"Доставимо",none:"Доставка недоступна"},pickup:{yes:"Є самовивіз із",none:"Привеземо в"},status:{350:"Товар доступний в інших магазинах"},button:{by:"Купити",shop:"Найближчий магазин",toFavorite:"в обране",toCompare:"до порівняння",favorite:"Обране",compare:"Порівняння",send:"Відправити",close:"Закрити",moreDetail:"Детальніше",select:"Обрати",noInMarket:"Наявність в магазинах",filter:"Фільтрувати",toOrder:"під замовлення",sort:"Сортувати","pre-order":"Передзамовити"},product:{action:"Гарантовано низька ціна",none:"Немає в наявності"},error:{email:"введіть правильний email",tel:"введіть правильний телефон",login:"введіть правильний телефон або email",pass:"введіть пароль (мін 8 символів)","new-pass":"пароль не відповідає правилам",confirm:"паролі не співпадають",sms:"введіть код (6 цифр)",empty:"обов'язкове поле","check-online":"перевірте номер замовлення","check-offline":"перевірте номер чеку",date:"пеервірте дату"},search:{placeholder:"Пошук",no:"результатів не знайдено"},privacy:{text:"Залишаючи свої контактні дані, я погоджуюсь з ",link:"політикою конфіденційності",title:"політика конфіденційності"},messages:{thank:"Дякуємо!",error:"Помилка!"},blocks:{viewedProducts:"Ви дивились",recommendation:"Рекомендовано для вас"},locations:{all:"Всі",online:"Центр видачі замовлень",switcher:{list:"списком",map:"на карті"},shops:{1:"Епіцентр",2:"Нова лінія",3:"Інтерспорт",4:"Галереї Деко",5:"ЕПІК",6:"TAF",7:"4F",10:"ЦВЗ",11:"МТВ"},schedule:["Пн-пт","Сб","Нд","Пн-сб","Пн-нд","Сб-нд"],attribution:"Дані карт © ".concat((new Date).getFullYear()," ЧАО «<a href='https://api.visicom.ua/'>Візіком</a>»")}},g={actions:"Акции",price:{price:"цена",action:"акционная цена",benefit:{points:"Баллы Выгода",superCashBack:"Супер кешбэк",cashBack:"CashBack",cases:["балла","балл","балла","баллов"]}},models:["варианта","вариант","варианта","вариантов"],ended:"Закончился",delivery:{no:"Без доставки",yes:"Доставим",none:"Доставка недоступна"},pickup:{yes:"Есть самовывоз из",none:"Привезём в"},status:{350:"Товар доступен в других магазинах"},button:{by:"Купить",shop:"Ближайший магазин",toFavorite:"в желания",toCompare:"в сравнения",favorite:"Желания",compare:"Сравнения",send:"Отправить",close:"Закрыть",moreDetail:"Подробнее",select:"Выбрать",noInMarket:"Наличие в магазинах",filter:"Фильтровать",toOrder:"Под заказ",sort:"Coртирвать","pre-order":"Предзаказать"},product:{action:"Гарантированно низкая цена",none:"Нет в наличии"},error:{email:"введите правильный email",tel:"введите правильный телефон",login:"введите правильний телефон или email",pass:"введите пароль (мин 8 символов)","new-pass":"пароль не отвечает правилам",confirm:"пароли не совпадают",sms:"введите код (6 цифр)",empty:"обязательное поле","check-online":"проверьте номер заказа","check-offline":"проверьте номер чека",date:"проверьте дату"},search:{placeholder:"Поиск",no:"результатов не найдено"},privacy:{text:"Оставляя свои контактные данные, я соглашаюсь c ",link:"политикой конфиденциальности",title:"политика конфиденциальности"},messages:{thank:"Спасибо!",error:"Ошибка!"},blocks:{viewedProducts:"Вы смотрели",recommendation:"Рекомендовано для вас"},locations:{all:"Всe",online:"Центр выдачи заказов",switcher:{list:"списком",map:"на карте"},shops:{1:"Эпицентр",2:"Новая линия",3:"Интерспорт",4:"Галереи Деко",5:"ЭПИК",6:"TAF",7:"4F",10:"ЦВЗ",11:"МТВ"},schedule:["Пн-пт","Сб","Вс","Пн-сб","Пн-вс","Сб-вс"],attribution:"Данные карт © ".concat((new Date).getFullYear()," ЧАО «<a href='https://api.visicom.ua/'>Визиком</a>»")}};a.ZP.use(h.Z);var w=new h.Z({locale:window.LANG_ID||"ua",messages:{ua:v,ru:g}}),b={icons:function(){return n.e(369).then(n.bind(n,4369))},"crm-form":function(){return n.e(965).then(n.bind(n,8965))},"crm-form-subject":function(){return n.e(436).then(n.bind(n,8436))},"svg-icon":function(){return n.e(856).then(n.bind(n,5856))},"ui-background":function(){return n.e(262).then(n.bind(n,4262))},"ui-loader":function(){return n.e(356).then(n.bind(n,6356))},"ui-tabs":function(){return n.e(282).then(n.bind(n,7282))},"ui-grid":function(){return n.e(804).then(n.bind(n,6804))},"ui-row":function(){return n.e(902).then(n.bind(n,5902))},"ui-popup":function(){return n.e(20).then(n.bind(n,8020))},"ui-button":function(){return n.e(790).then(n.bind(n,5790))},"ui-btn-close":function(){return n.e(961).then(n.bind(n,3961))},"ui-btn-more-small":function(){return n.e(654).then(n.bind(n,6654))},"ui-bar":function(){return n.e(286).then(n.bind(n,8286))},"ui-form-assessment":function(){return n.e(717).then(n.bind(n,7717))},"ui-form-checkbox":function(){return n.e(108).then(n.bind(n,1108))},"ui-form-impression":function(){return n.e(347).then(n.bind(n,5347))},"ui-form-input-animate":function(){return n.e(82).then(n.bind(n,1082))},"ui-form-input":function(){return n.e(758).then(n.bind(n,8758))},"ui-form-radio":function(){return n.e(718).then(n.bind(n,3718))},"ui-form-rating":function(){return n.e(614).then(n.bind(n,8614))},"ui-form-select":function(){return n.e(920).then(n.bind(n,1920))},"ui-form-upload":function(){return n.e(211).then(n.bind(n,3211))},"ui-form-error":function(){return n.e(37).then(n.bind(n,9037))},"reviews-item":function(){return n.e(857).then(n.bind(n,6857))},"reviews-slider":function(){return n.e(93).then(n.bind(n,1093))},"reviews-filters":function(){return n.e(701).then(n.bind(n,4701))},"reviews-filters-item":function(){return n.e(636).then(n.bind(n,7636))},"reviews-forms-feedback":function(){return n.e(33).then(n.bind(n,8033))},"reviews-forms-review":function(){return n.e(227).then(n.bind(n,5227))},"reviews-forms-thank":function(){return n.e(732).then(n.bind(n,732))},"reviews-gallery":function(){return n.e(670).then(n.bind(n,8670))},"reviews-gallery-slider":function(){return n.e(757).then(n.bind(n,4757))},"reviews-product":function(){return n.e(352).then(n.bind(n,5352))},"reviews-product-forms":function(){return n.e(645).then(n.bind(n,9645))},"reviews-product-rating":function(){return n.e(562).then(n.bind(n,562))}},y=function(){function t(t,e){this.tokens={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleLowerCase()}},F:{pattern:/[А-яЁёҐґєЄіІїЇйЙ]/,transform:function(t){return t.toLocaleUpperCase()}},"!":{escape:!0}},this.el=t,this.mask=e}return t.event=function(t){return new Event(t)},t.prototype.maskIt=function(t){for(var e=0,n=0,r="";e<this.mask.length&&n<t.length;){var i=this.mask[e],o=this.tokens[i],a=t[n];o&&!o.escape&&o.pattern?(o.pattern.test(a)&&(r+=o.transform?o.transform(a):a,e++),n++):(o&&o.escape&&(e++,i=this.mask[e]),r+=i,a===i&&n++,e++)}for(var s="";e<this.mask.length;){i=this.mask[e];if(this.tokens["".concat(i)]){s="";break}s+=i,e++}return r+s},t.prototype.init=function(){var e=this,n=this.el;if(n){n.addEventListener("input",(function(r){if(r.isTrusted){var i=Number(n.selectionEnd),o=n.value[i-1];for(n.value=e.maskIt(n.value);i<n.value.length&&n.value.charAt(i-1)!==o;)i++;n===document.activeElement&&n.setSelectionRange(i,i),n.dispatchEvent(t.event("input"))}}));var r=this.maskIt(n.value);r!==n.value&&(n.value=r,n.dispatchEvent(t.event("input")))}},t}(),k={inserted:function(t,e){var n=e.value;n&&new y(t,n).init()}},S=n(9705),A=function(){function t(t){this.email=/^[_A-Za-z0-9-\\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$/,this.tel=/^((8|\+38)[- ]?)?\(?(039|050|063|066|067|068|073|091|092|093|094|095|096|097|098|099)\)?([- ]?)?[\d\- ]{7,10}$/,this.checkOffline=/^[0-9A-Za-zА-яЁёҐґєЄіІїЇйЙ]{2,5}(-)[\d]{7,7}$/,this.checkOnline=/^[\d]{7,}$/,this.date=/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,this.empty=/\S{1,}$/,this.sms=/\S{6}$/,this.pass=/\S{8}$/,this.pass2=/(?=.*?[A-Z])+(?=.*?[a-z])/g,this.pass3=/(?=.*?[0-9])/g,this.pass4=/(?=.*?[.<>/?;:'"[\]{}\\/|`~!@#$^&*()\-_+=])/g,this.error=t}return t.prototype.test=function(t,e){switch(t){case"empty":return this.empty.test(String(e.value||"").trim());case"tel":return this.tel.test(String(e.value.replace(/\(|\)|\s+|-/g,"")).trim());case"email":return""===e.value||this.email.test(String(e.value).trim());case"check-online":return""===e.value||this.checkOnline.test(String(e.value).trim());case"check-offline":return""===e.value||this.checkOffline.test(String(e.value).trim());case"date":return""===e.value||this.date.test(String(e.value).trim());case"pass":return this.pass.test(String(e.value).trim());case"login":return this.email.test(String(e.value).trim())||this.tel.test(String(e.value.replace(/\(|\)|\s+|-/g,"")).trim());case"new-pass":return this.pass.test(String(e.value).trim())&&this.pass2.test(String(e.value).trim())&&this.pass3.test(String(e.value).trim())&&this.pass4.test(String(e.value).trim());case"sms":return this.sms.test(String(e.value).trim());case"confirm":return!e.confirm||e.value===e.confirm.value&&this.pass.test(String(e.value).trim())&&this.pass2.test(String(e.value).trim())&&this.pass3.test(String(e.value).trim())&&this.pass4.test(String(e.value).trim());case"check":return e.value;case"upload":return!e.min||!e.loadFiles||e.min<=e.loadFiles.length;case"youtube":return""===e.value.trim()||!e.error&&Boolean((n=e.value,!(r=n.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/))||11!==r[7].length&&"TEST"!==r[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(r[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(r[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(r[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:r[7],image:{default:"https://i.ytimg.com/vi/".concat(r[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(r[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(r[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(r[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(r[7],"/maxresdefault.jpg")}}));default:return!0}var n,r},t.prototype.validate=function(t,e){for(var n,r=!0,i=0,o=t;i<o.length;i++){var a=o[i];for(var s in a.regex)this.test(a.regex[Number(s)],a)||((null==a?void 0:a.confirm)&&a.value?e&&(a.confirm.error=this.error[a.regex[Number(s)]]||!0):e&&(a.error=(null===(n=this.error)||void 0===n?void 0:n[a.regex[Number(s)]])||!0),r=!1)}return r},t.prototype.clear=function(t){for(var e=0,n=t;e<n.length;e++){n[e].value=""}},t.prototype.getParams=function(t){for(var e,n={},r=0,i=t;r<i.length;r++){var o=i[r];o.code&&("login"!==o.code||o.value.includes("@")||(o.value=(e=o.value,1===e.indexOf("800")||0===e.indexOf("800")?new y(null,"0 800 XX XX XX").maskIt(e):new y(null,"+38 XXX XXX XX XX").maskIt(e)).replace(/\s/g,"")),n[String(o.code)]=o.value,o.confirm&&(n[String(o.confirm.code)]=o.confirm.value))}return n},t.prototype.send=function(t,e){this.validate(t,!0)&&e()},t}(),$=A,Z=function(){function t(){}return t.install=function(t){t.prototype.$forms=function(){return new $(v.error)},t.forms=t.prototype.$forms},t}(),I=function(t,e,n){t=Math.round(100*Number(t))/100;var r=n?"":t;return(0^t)!==t?r+" "+e[0]:Number(t)>10&&Number(t)<20?r+" "+e[3]:Number(t)%10==1?r+" "+e[1]:Number(t)%10>1&&Number(t)%10<5?r+" "+e[2]:r+" "+e[3]},P=function(){function t(){}return t.install=function(t){t.prototype.$cases=I,t.cases=t.prototype.$cases},t}(),_=function(){function t(){}return t.install=function(t){window.USER_ID?t.prototype.$auth={loggedIn:Boolean(window.USER_ID),user:{data:{ID:window.USER_ID,NAME:window.USER_NAME,EMAIL:window.USER_EMAIL}}}:t.prototype.$auth={loggedIn:!1}},t}(),E=function(){function t(){}return t.install=function(t){t.prototype.$gtm=t.prototype.$gtm||{push:function(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}}},t}(),x=function(){function t(){}return t.install=function(t){t.prototype.$sentry={captureException:function(){return!0},captureEvent:function(){return!0}}},t}(),C=function(){function t(){}return t.install=function(t){t.prototype.$swiper=function(t,e){return new window.Swiper(t,e)}},t}(),L=function(t){var e=t.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return!e||11!==e[7].length&&"TEST"!==e[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(e[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(e[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(e[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:e[7],image:{default:"https://i.ytimg.com/vi/".concat(e[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(e[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(e[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(e[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(e[7],"/maxresdefault.jpg")}}},D=function(){function t(){}return t.install=function(t){t.prototype.$youtube=L},t}(),F=function(){function t(){}return t.install=function(t){t.prototype.$localeUrl=function(t){return"/ua"+t},t.localeUrl=t.prototype.$localeUrl},t}(),N=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[t.items.length&&t.init?e("div",{class:t.$style.wrapper},[e("transition-group",{attrs:{name:"list",tag:"div"}},t._l(t.items,(function(n){return e("div",{key:n.key,class:[t.$style.toast,t.$style[n.theme]],domProps:{innerHTML:t._s(n.message)},on:{click:function(e){return t.remove(n)}}})})),0)],1):t._e()])};N._withStripped=!0;var T={data:()=>({items:[],init:!1}),mounted(){this.init=!0},methods:{s(t){this.add(t,"is-success")},w(t){this.add(t,"is-warning")},e(t){this.add(t,"is-error")},add(t,e){this.$parent||(this.$mount(),document.body.appendChild(this.$el));const n={message:t,theme:e,key:Number(new Date)};this.items.push(n),setTimeout((()=>{this.remove(n)}),6e3)},remove(t){this.items.includes(t)&&this.items.splice(this.items.indexOf(t),1)}}},j={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var B=(0,n(1900).Z)(T,N,[],!1,(function(t){this.$style=j.locals||j}),null,null).exports,X=a.ZP.extend({mixins:[B]});X.install=function(t){t.prototype.$toast=new X},a.ZP.use(S.ZP,{theme:"light-border",arrow:!0});var O=function(){return n.e(319).then(n.bind(n,8319))},R=function(){return n.e(782).then(n.bind(n,782))},U=function(){return n.e(275).then(n.bind(n,6275))},q=function(){function t(){}return t.addBlock=function(t){return document.body.appendChild(t),t},t.appendSprite=function(){document.body.insertAdjacentHTML("afterbegin",'<div id="crm-form-sprite"></div>'),new a.ZP({store:p,render:function(t){return t(R)}}).$mount(document.getElementById("crm-form-sprite"))},t.initFormComponent=function(t,e,n,r){new a.ZP({i18n:w,store:p,render:function(t){return t(O,{props:{id:e,items:r,type:n}})}}).$mount(t)},t.initReviewsComponent=function(t,e){new a.ZP({i18n:w,store:p,render:function(t){return t(U,{props:e})}}).$mount(t)},t.initPopup=function(e){t.initFormComponent(t.addBlock(document.createElement("div")),e,"popup")},t.initPopupSelect=function(e){t.initFormComponent(t.addBlock(document.createElement("div")),null,"select",e)},t.init=function(){for(var e=Array.from(document.querySelectorAll("[data-form-id]")),n=Array.from(document.querySelectorAll("[data-form-items]")),r=0,i=Array.from(document.querySelectorAll("[data-reviews]"));r<i.length;r++){var o=i[r];t.initReviewsComponent(o,{id:Number(o.dataset.reviews),page:o.dataset.page})}for(var a=function(e){if("static"===e.dataset.type)t.initFormComponent(e,Number(e.dataset.formId),"static");else e.addEventListener("click",(function(){t.initPopup(Number(e.dataset.formId))}))},s=0,u=e;s<u.length;s++){a(o=u[s])}try{for(var c=function(e){e.addEventListener("click",(function(){t.initFormComponent(t.addBlock(document.createElement("div")),null,"select",JSON.parse(e.dataset.formItems))}))},l=0,d=n;l<d.length;l++){c(o=d[l])}}catch(t){console.warn("Помилка в масиві даних, перевірте data-form-items")}},t.install=function(){for(var e in i)a.ZP.use(i[e]);for(var e in o)a.ZP.filter(e,o[e]);for(var e in r)a.ZP.directive(e,r[e]);for(var e in b)a.ZP.component(e,b[e]);t.appendSprite(),t.init()},t}(),z=function(){return a.ZP.use(q)},M=q}}]); | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[197],{7197:function(t,e,n){n.r(e),n.d(e,{default:function(){return M},init:function(){return z}});var r={};n.r(r),n.d(r,{mask:function(){return k}});var i={};n.r(i),n.d(i,{Toast:function(){return X},auth:function(){return _},cases:function(){return P},forms:function(){return Z},gtm:function(){return E},localeUrl:function(){return F},sentry:function(){return x},swiper:function(){return C},youtube:function(){return D}});var o={};n.r(o);var a=n(4845),s=n(644),u=n.n(s),c=n(4421),l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},l.apply(this,arguments)};a.ZP.use(c.ZP);var d={namespaced:!0,state:{forms:{}},getters:{forms:function(t){return t.forms}},mutations:{setForm:function(t,e){a.ZP.set(t.forms,e.id,e)}}},m={namespaced:!0,state:{gallery:{},activeGalleryID:"",activeSlide:0,url:"".concat(window.API_URL||"http://api.27ua.curkevich.dev.27.local","/api/v1"),headers:{Authorization:"Bearer bpYIx0JrpxAieYi85a8WAwKy6he9qPLUQ8Rt677C",Accept:"text/json"}},getters:{gallery:function(t){return t.gallery},activeGalleryID:function(t){return t.activeGalleryID},activeSlide:function(t){return t.activeSlide},url:function(t){return t.url},headers:function(t){return t.headers}},mutations:{setGallery:function(t,e){a.ZP.set(t.gallery,e.id,e.data)},setActiveGalleryID:function(t,e){return t.activeGalleryID=e},setActiveSlide:function(t,e){return t.activeSlide=e}},actions:{getProductData:function(t,e){var n=t.getters;return u().get("".concat(n.url,"/review/product_card_list"),{params:e,headers:n.headers})},vote:function(t,e){var n=t.getters;return u().put("".concat(n.url,"/review/").concat(e.id,"/vote"),{user:e.user,is_like:e.vote},{headers:n.headers})},getItemInfo:function(t,e){var n=t.getters;return u().get("".concat(n.url,"/review/info/").concat(e.id),{headers:n.headers})},sendFeedback:function(t,e){var n=t.getters;return u().post("".concat(n.url,"/feedbacks/"),e,{headers:l(l({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})},sendReview:function(t,e){var n=t.getters;return u().post("".concat(n.url,"/review/"),e,{headers:l(l({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})}}},f={namespaced:!0,state:{ww:0,wh:0,scrollTop:0,margin:"0"},getters:{ww:function(t){return t.ww},wh:function(t){return t.wh},scrollTop:function(t){return t.scrollTop},margin:function(t){return t.margin}},mutations:{setWw:function(t,e){return t.ww=e},setWh:function(t,e){return t.wh=e},setScrollTop:function(t,e){return t.scrollTop=e},setMargin:function(t,e){return t.margin=e}},actions:{bodyScrollRemove:function(t){var e=t.state;(0,t.commit)("setMargin","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),document.body.style.paddingRight=e.margin,document.body.classList.add("ep-blocked-scroll")},bodyScrollAdd:function(t){var e=t.state;(0,t.commit)("setMargin","0"),document.body.style.paddingRight=e.margin,document.body.classList.remove("ep-blocked-scroll")}}},p=new c.ZP.Store({modules:{crm:d,menu:{namespaced:!0,state:{open:!1,load:!1,list:[]},getters:{open:function(t){return t.open}},mutations:{setOpen:function(t,e){return t.open=e}}},reviews:m,window:f}}),h=n(5186),v={actions:"Акції",price:{price:"ціна",action:"акційна ціна",benefit:{points:"Бали Вигода",superCashBack:"Супер кешбек",cashBack:"CashBack",cases:["бала","бал","бали","балів"]}},models:["варіанта","варіант","варіанта","варіантів"],ended:"Закінчився",delivery:{no:"Без доставки",yes:"Доставимо",none:"Доставка недоступна"},pickup:{yes:"Є самовивіз із",none:"Привеземо в"},status:{350:"Товар доступний в інших магазинах"},button:{by:"Купити",shop:"Найближчий магазин",toFavorite:"в обране",toCompare:"до порівняння",favorite:"Обране",compare:"Порівняння",send:"Відправити",close:"Закрити",moreDetail:"Детальніше",select:"Обрати",noInMarket:"Наявність в магазинах",filter:"Фільтрувати",toOrder:"під замовлення",sort:"Сортувати","pre-order":"Передзамовити"},product:{action:"Гарантовано низька ціна",none:"Немає в наявності"},error:{email:"введіть правильний email",tel:"введіть правильний телефон",login:"введіть правильний телефон або email",pass:"введіть пароль (мін 8 символів)","new-pass":"пароль не відповідає правилам",confirm:"паролі не співпадають",sms:"введіть код (6 цифр)",empty:"обов'язкове поле","check-online":"перевірте номер замовлення","check-offline":"перевірте номер чеку",date:"пеервірте дату"},search:{placeholder:"Пошук",no:"результатів не знайдено"},privacy:{text:"Залишаючи свої контактні дані, я погоджуюсь з ",link:"політикою конфіденційності",title:"політика конфіденційності"},messages:{thank:"Дякуємо!",error:"Помилка!"},blocks:{viewedProducts:"Ви дивились",recommendation:"Рекомендовано для вас"},locations:{all:"Всі",online:"Центр видачі замовлень",switcher:{list:"списком",map:"на карті"},shops:{1:"Епіцентр",2:"Нова лінія",3:"Інтерспорт",4:"Галереї Деко",5:"ЕПІК",6:"TAF",7:"4F",10:"ЦВЗ",11:"МТВ"},schedule:["Пн-пт","Сб","Нд","Пн-сб","Пн-нд","Сб-нд"],attribution:"Дані карт © ".concat((new Date).getFullYear()," ЧАО «<a href='https://api.visicom.ua/'>Візіком</a>»")}},g={actions:"Акции",price:{price:"цена",action:"акционная цена",benefit:{points:"Баллы Выгода",superCashBack:"Супер кешбэк",cashBack:"CashBack",cases:["балла","балл","балла","баллов"]}},models:["варианта","вариант","варианта","вариантов"],ended:"Закончился",delivery:{no:"Без доставки",yes:"Доставим",none:"Доставка недоступна"},pickup:{yes:"Есть самовывоз из",none:"Привезём в"},status:{350:"Товар доступен в других магазинах"},button:{by:"Купить",shop:"Ближайший магазин",toFavorite:"в желания",toCompare:"в сравнения",favorite:"Желания",compare:"Сравнения",send:"Отправить",close:"Закрыть",moreDetail:"Подробнее",select:"Выбрать",noInMarket:"Наличие в магазинах",filter:"Фильтровать",toOrder:"Под заказ",sort:"Coртирвать","pre-order":"Предзаказать"},product:{action:"Гарантированно низкая цена",none:"Нет в наличии"},error:{email:"введите правильный email",tel:"введите правильный телефон",login:"введите правильний телефон или email",pass:"введите пароль (мин 8 символов)","new-pass":"пароль не отвечает правилам",confirm:"пароли не совпадают",sms:"введите код (6 цифр)",empty:"обязательное поле","check-online":"проверьте номер заказа","check-offline":"проверьте номер чека",date:"проверьте дату"},search:{placeholder:"Поиск",no:"результатов не найдено"},privacy:{text:"Оставляя свои контактные данные, я соглашаюсь c ",link:"политикой конфиденциальности",title:"политика конфиденциальности"},messages:{thank:"Спасибо!",error:"Ошибка!"},blocks:{viewedProducts:"Вы смотрели",recommendation:"Рекомендовано для вас"},locations:{all:"Всe",online:"Центр выдачи заказов",switcher:{list:"списком",map:"на карте"},shops:{1:"Эпицентр",2:"Новая линия",3:"Интерспорт",4:"Галереи Деко",5:"ЭПИК",6:"TAF",7:"4F",10:"ЦВЗ",11:"МТВ"},schedule:["Пн-пт","Сб","Вс","Пн-сб","Пн-вс","Сб-вс"],attribution:"Данные карт © ".concat((new Date).getFullYear()," ЧАО «<a href='https://api.visicom.ua/'>Визиком</a>»")}};a.ZP.use(h.Z);var w=new h.Z({locale:window.LANG_ID||"ua",messages:{ua:v,ru:g}}),b={icons:function(){return n.e(369).then(n.bind(n,4369))},"crm-form":function(){return n.e(965).then(n.bind(n,8965))},"crm-form-subject":function(){return n.e(436).then(n.bind(n,8436))},"svg-icon":function(){return n.e(856).then(n.bind(n,5856))},"ui-background":function(){return n.e(262).then(n.bind(n,4262))},"ui-loader":function(){return n.e(356).then(n.bind(n,6356))},"ui-tabs":function(){return n.e(282).then(n.bind(n,7282))},"ui-grid":function(){return n.e(804).then(n.bind(n,6804))},"ui-row":function(){return n.e(902).then(n.bind(n,5902))},"ui-popup":function(){return n.e(20).then(n.bind(n,8020))},"ui-button":function(){return n.e(790).then(n.bind(n,5790))},"ui-btn-close":function(){return n.e(961).then(n.bind(n,3961))},"ui-btn-more-small":function(){return n.e(654).then(n.bind(n,6654))},"ui-bar":function(){return n.e(286).then(n.bind(n,8286))},"ui-form-assessment":function(){return n.e(717).then(n.bind(n,7717))},"ui-form-checkbox":function(){return n.e(108).then(n.bind(n,1108))},"ui-form-impression":function(){return n.e(347).then(n.bind(n,5347))},"ui-form-input-animate":function(){return n.e(82).then(n.bind(n,1082))},"ui-form-input":function(){return n.e(758).then(n.bind(n,8758))},"ui-form-radio":function(){return n.e(718).then(n.bind(n,3718))},"ui-form-rating":function(){return n.e(614).then(n.bind(n,8614))},"ui-form-select":function(){return n.e(920).then(n.bind(n,1920))},"ui-form-upload":function(){return n.e(211).then(n.bind(n,3211))},"ui-form-error":function(){return n.e(37).then(n.bind(n,9037))},"reviews-item":function(){return n.e(857).then(n.bind(n,6857))},"reviews-slider":function(){return n.e(147).then(n.bind(n,8147))},"reviews-filters":function(){return n.e(701).then(n.bind(n,4701))},"reviews-filters-item":function(){return n.e(636).then(n.bind(n,7636))},"reviews-forms-feedback":function(){return n.e(33).then(n.bind(n,8033))},"reviews-forms-review":function(){return n.e(227).then(n.bind(n,5227))},"reviews-forms-thank":function(){return n.e(732).then(n.bind(n,732))},"reviews-gallery":function(){return n.e(670).then(n.bind(n,8670))},"reviews-gallery-slider":function(){return n.e(757).then(n.bind(n,4757))},"reviews-product":function(){return n.e(352).then(n.bind(n,5352))},"reviews-product-forms":function(){return n.e(645).then(n.bind(n,9645))},"reviews-product-rating":function(){return n.e(562).then(n.bind(n,562))}},y=function(){function t(t,e){this.tokens={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleLowerCase()}},F:{pattern:/[А-яЁёҐґєЄіІїЇйЙ]/,transform:function(t){return t.toLocaleUpperCase()}},"!":{escape:!0}},this.el=t,this.mask=e}return t.event=function(t){return new Event(t)},t.prototype.maskIt=function(t){for(var e=0,n=0,r="";e<this.mask.length&&n<t.length;){var i=this.mask[e],o=this.tokens[i],a=t[n];o&&!o.escape&&o.pattern?(o.pattern.test(a)&&(r+=o.transform?o.transform(a):a,e++),n++):(o&&o.escape&&(e++,i=this.mask[e]),r+=i,a===i&&n++,e++)}for(var s="";e<this.mask.length;){i=this.mask[e];if(this.tokens["".concat(i)]){s="";break}s+=i,e++}return r+s},t.prototype.init=function(){var e=this,n=this.el;if(n){n.addEventListener("input",(function(r){if(r.isTrusted){var i=Number(n.selectionEnd),o=n.value[i-1];for(n.value=e.maskIt(n.value);i<n.value.length&&n.value.charAt(i-1)!==o;)i++;n===document.activeElement&&n.setSelectionRange(i,i),n.dispatchEvent(t.event("input"))}}));var r=this.maskIt(n.value);r!==n.value&&(n.value=r,n.dispatchEvent(t.event("input")))}},t}(),k={inserted:function(t,e){var n=e.value;n&&new y(t,n).init()}},S=n(9705),A=function(){function t(t){this.email=/^[_A-Za-z0-9-\\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$/,this.tel=/^((8|\+38)[- ]?)?\(?(039|050|063|066|067|068|073|091|092|093|094|095|096|097|098|099)\)?([- ]?)?[\d\- ]{7,10}$/,this.checkOffline=/^[0-9A-Za-zА-яЁёҐґєЄіІїЇйЙ]{2,5}(-)[\d]{7,7}$/,this.checkOnline=/^[\d]{7,}$/,this.date=/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,this.empty=/\S{1,}$/,this.sms=/\S{6}$/,this.pass=/\S{8}$/,this.pass2=/(?=.*?[A-Z])+(?=.*?[a-z])/g,this.pass3=/(?=.*?[0-9])/g,this.pass4=/(?=.*?[.<>/?;:'"[\]{}\\/|`~!@#$^&*()\-_+=])/g,this.error=t}return t.prototype.test=function(t,e){switch(t){case"empty":return this.empty.test(String(e.value||"").trim());case"tel":return this.tel.test(String(e.value.replace(/\(|\)|\s+|-/g,"")).trim());case"email":return""===e.value||this.email.test(String(e.value).trim());case"check-online":return""===e.value||this.checkOnline.test(String(e.value).trim());case"check-offline":return""===e.value||this.checkOffline.test(String(e.value).trim());case"date":return""===e.value||this.date.test(String(e.value).trim());case"pass":return this.pass.test(String(e.value).trim());case"login":return this.email.test(String(e.value).trim())||this.tel.test(String(e.value.replace(/\(|\)|\s+|-/g,"")).trim());case"new-pass":return this.pass.test(String(e.value).trim())&&this.pass2.test(String(e.value).trim())&&this.pass3.test(String(e.value).trim())&&this.pass4.test(String(e.value).trim());case"sms":return this.sms.test(String(e.value).trim());case"confirm":return!e.confirm||e.value===e.confirm.value&&this.pass.test(String(e.value).trim())&&this.pass2.test(String(e.value).trim())&&this.pass3.test(String(e.value).trim())&&this.pass4.test(String(e.value).trim());case"check":return e.value;case"upload":return!e.min||!e.loadFiles||e.min<=e.loadFiles.length;case"youtube":return""===e.value.trim()||!e.error&&Boolean((n=e.value,!(r=n.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/))||11!==r[7].length&&"TEST"!==r[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(r[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(r[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(r[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:r[7],image:{default:"https://i.ytimg.com/vi/".concat(r[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(r[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(r[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(r[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(r[7],"/maxresdefault.jpg")}}));default:return!0}var n,r},t.prototype.validate=function(t,e){for(var n,r=!0,i=0,o=t;i<o.length;i++){var a=o[i];for(var s in a.regex)this.test(a.regex[Number(s)],a)||((null==a?void 0:a.confirm)&&a.value?e&&(a.confirm.error=this.error[a.regex[Number(s)]]||!0):e&&(a.error=(null===(n=this.error)||void 0===n?void 0:n[a.regex[Number(s)]])||!0),r=!1)}return r},t.prototype.clear=function(t){for(var e=0,n=t;e<n.length;e++){n[e].value=""}},t.prototype.getParams=function(t){for(var e,n={},r=0,i=t;r<i.length;r++){var o=i[r];o.code&&("login"!==o.code||o.value.includes("@")||(o.value=(e=o.value,1===e.indexOf("800")||0===e.indexOf("800")?new y(null,"0 800 XX XX XX").maskIt(e):new y(null,"+38 XXX XXX XX XX").maskIt(e)).replace(/\s/g,"")),n[String(o.code)]=o.value,o.confirm&&(n[String(o.confirm.code)]=o.confirm.value))}return n},t.prototype.send=function(t,e){this.validate(t,!0)&&e()},t}(),$=A,Z=function(){function t(){}return t.install=function(t){t.prototype.$forms=function(){return new $(v.error)},t.forms=t.prototype.$forms},t}(),I=function(t,e,n){t=Math.round(100*Number(t))/100;var r=n?"":t;return(0^t)!==t?r+" "+e[0]:Number(t)>10&&Number(t)<20?r+" "+e[3]:Number(t)%10==1?r+" "+e[1]:Number(t)%10>1&&Number(t)%10<5?r+" "+e[2]:r+" "+e[3]},P=function(){function t(){}return t.install=function(t){t.prototype.$cases=I,t.cases=t.prototype.$cases},t}(),_=function(){function t(){}return t.install=function(t){window.USER_ID?t.prototype.$auth={loggedIn:Boolean(window.USER_ID),user:{data:{ID:window.USER_ID,NAME:window.USER_NAME,EMAIL:window.USER_EMAIL}}}:t.prototype.$auth={loggedIn:!1}},t}(),E=function(){function t(){}return t.install=function(t){t.prototype.$gtm=t.prototype.$gtm||{push:function(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}}},t}(),x=function(){function t(){}return t.install=function(t){t.prototype.$sentry={captureException:function(){return!0},captureEvent:function(){return!0}}},t}(),C=function(){function t(){}return t.install=function(t){t.prototype.$swiper=function(t,e){return new window.Swiper(t,e)}},t}(),L=function(t){var e=t.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return!e||11!==e[7].length&&"TEST"!==e[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(e[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(e[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(e[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:e[7],image:{default:"https://i.ytimg.com/vi/".concat(e[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(e[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(e[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(e[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(e[7],"/maxresdefault.jpg")}}},D=function(){function t(){}return t.install=function(t){t.prototype.$youtube=L},t}(),F=function(){function t(){}return t.install=function(t){t.prototype.$localeUrl=function(t){return"/ua"+t},t.localeUrl=t.prototype.$localeUrl},t}(),N=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[t.items.length&&t.init?e("div",{class:t.$style.wrapper},[e("transition-group",{attrs:{name:"list",tag:"div"}},t._l(t.items,(function(n){return e("div",{key:n.key,class:[t.$style.toast,t.$style[n.theme]],domProps:{innerHTML:t._s(n.message)},on:{click:function(e){return t.remove(n)}}})})),0)],1):t._e()])};N._withStripped=!0;var T={data:()=>({items:[],init:!1}),mounted(){this.init=!0},methods:{s(t){this.add(t,"is-success")},w(t){this.add(t,"is-warning")},e(t){this.add(t,"is-error")},add(t,e){this.$parent||(this.$mount(),document.body.appendChild(this.$el));const n={message:t,theme:e,key:Number(new Date)};this.items.push(n),setTimeout((()=>{this.remove(n)}),6e3)},remove(t){this.items.includes(t)&&this.items.splice(this.items.indexOf(t),1)}}},j={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var B=(0,n(1900).Z)(T,N,[],!1,(function(t){this.$style=j.locals||j}),null,null).exports,X=a.ZP.extend({mixins:[B]});X.install=function(t){t.prototype.$toast=new X},a.ZP.use(S.ZP,{theme:"light-border",arrow:!0});var O=function(){return n.e(319).then(n.bind(n,8319))},R=function(){return n.e(782).then(n.bind(n,782))},U=function(){return n.e(275).then(n.bind(n,6275))},q=function(){function t(){}return t.addBlock=function(t){return document.body.appendChild(t),t},t.appendSprite=function(){document.body.insertAdjacentHTML("afterbegin",'<div id="crm-form-sprite"></div>'),new a.ZP({store:p,render:function(t){return t(R)}}).$mount(document.getElementById("crm-form-sprite"))},t.initFormComponent=function(t,e,n,r){new a.ZP({i18n:w,store:p,render:function(t){return t(O,{props:{id:e,items:r,type:n}})}}).$mount(t)},t.initReviewsComponent=function(t,e){new a.ZP({i18n:w,store:p,render:function(t){return t(U,{props:e})}}).$mount(t)},t.initPopup=function(e){t.initFormComponent(t.addBlock(document.createElement("div")),e,"popup")},t.initPopupSelect=function(e){t.initFormComponent(t.addBlock(document.createElement("div")),null,"select",e)},t.init=function(){for(var e=Array.from(document.querySelectorAll("[data-form-id]")),n=Array.from(document.querySelectorAll("[data-form-items]")),r=0,i=Array.from(document.querySelectorAll("[data-reviews]"));r<i.length;r++){var o=i[r];t.initReviewsComponent(o,{id:Number(o.dataset.reviews),page:o.dataset.page})}for(var a=function(e){if("static"===e.dataset.type)t.initFormComponent(e,Number(e.dataset.formId),"static");else e.addEventListener("click",(function(){t.initPopup(Number(e.dataset.formId))}))},s=0,u=e;s<u.length;s++){a(o=u[s])}try{for(var c=function(e){e.addEventListener("click",(function(){t.initFormComponent(t.addBlock(document.createElement("div")),null,"select",JSON.parse(e.dataset.formItems))}))},l=0,d=n;l<d.length;l++){c(o=d[l])}}catch(t){console.warn("Помилка в масиві даних, перевірте data-form-items")}},t.install=function(){for(var e in i)a.ZP.use(i[e]);for(var e in o)a.ZP.filter(e,o[e]);for(var e in r)a.ZP.directive(e,r[e]);for(var e in b)a.ZP.component(e,b[e]);t.appendSprite(),t.init()},t}(),z=function(){return a.ZP.use(q)},M=q}}]); |
@@ -1,1 +0,1 @@ | ||
!function(){var e,t,n,r,o={5325:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};r(this,void 0,void 0,(function(){var e,t,r,i,u,a,c,l,s;return o(this,(function(o){switch(o.label){case 0:return window.Swiper?[3,10]:[4,n.e(229).then(n.bind(n,5229))];case 1:return e=o.sent().default,[4,n.e(229).then(n.bind(n,5229))];case 2:return t=o.sent().Navigation,[4,n.e(229).then(n.bind(n,5229))];case 3:return r=o.sent().Pagination,[4,n.e(229).then(n.bind(n,5229))];case 4:return i=o.sent().Scrollbar,[4,n.e(229).then(n.bind(n,5229))];case 5:return u=o.sent().EffectFade,[4,n.e(229).then(n.bind(n,5229))];case 6:return a=o.sent().Grid,[4,n.e(229).then(n.bind(n,5229))];case 7:return c=o.sent().A11y,[4,n.e(229).then(n.bind(n,5229))];case 8:return l=o.sent().Autoplay,[4,n.e(229).then(n.bind(n,5229))];case 9:s=o.sent().Thumbs,e.use([t,r,i,u,a,c,l,s]),window.Swiper=e,o.label=10;case 10:return[4,n.e(677).then(n.bind(n,6677))];case 11:return o.sent(),[2]}}))}))}},i={};function u(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,u),n.exports}u.m=o,u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,n){return u.f[n](e,t),t}),[]))},u.u=function(e){return e+".js"},u.miniCssF=function(e){return e+".css"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="widget-crm-form:",u.l=function(n,r,o,i){if(e[n])e[n].push(r);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+o){a=f;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,u.nc&&a.setAttribute("nonce",u.nc),a.setAttribute("data-webpack",t+o),a.src=n),e[n]=[r];var d=function(t,r){a.onerror=a.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),t)return t(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;u.g.importScripts&&(e=u.g.location+"");var t=u.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.p=e}(),n=function(e){return new Promise((function(t,n){var r=u.miniCssF(e),o=u.p+r;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(u=n[r]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(o===e||o===t))return u}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var u;if((o=(u=i[r]).getAttribute("data-href"))===e||o===t)return u}}(r,o))return t();!function(e,t,n,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(i){if(o.onerror=o.onload=null,"load"===i.type)n();else{var u=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=u,c.request=a,o.parentNode.removeChild(o),r(c)}},o.href=t,document.head.appendChild(o)}(e,o,t,n)}))},r={843:0},u.f.miniCss=function(e,t){r[e]?t.push(r[e]):0!==r[e]&&{20:1,33:1,37:1,82:1,93:1,108:1,197:1,211:1,227:1,262:1,275:1,282:1,286:1,319:1,347:1,352:1,356:1,436:1,455:1,538:1,562:1,614:1,636:1,645:1,654:1,670:1,701:1,717:1,718:1,732:1,757:1,758:1,790:1,804:1,856:1,857:1,902:1,920:1,961:1,965:1}[e]&&t.push(r[e]=n(e).then((function(){r[e]=0}),(function(t){throw delete r[e],t})))},function(){var e={843:0};u.f.j=function(t,n){var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=u.p+u.u(t),a=new Error;u.l(i,(function(n){if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],a=n[1],c=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);if(c)c(u)}for(t&&t(n);l<i.length;l++)o=i[l],u.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();u(5325)}(); | ||
!function(){var e,t,n,r,o={5325:function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function u(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,a)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=t.call(e,u)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};r(this,void 0,void 0,(function(){var e,t,r,i,u,a,c,l,s;return o(this,(function(o){switch(o.label){case 0:return window.Swiper?[3,10]:[4,n.e(229).then(n.bind(n,5229))];case 1:return e=o.sent().default,[4,n.e(229).then(n.bind(n,5229))];case 2:return t=o.sent().Navigation,[4,n.e(229).then(n.bind(n,5229))];case 3:return r=o.sent().Pagination,[4,n.e(229).then(n.bind(n,5229))];case 4:return i=o.sent().Scrollbar,[4,n.e(229).then(n.bind(n,5229))];case 5:return u=o.sent().EffectFade,[4,n.e(229).then(n.bind(n,5229))];case 6:return a=o.sent().Grid,[4,n.e(229).then(n.bind(n,5229))];case 7:return c=o.sent().A11y,[4,n.e(229).then(n.bind(n,5229))];case 8:return l=o.sent().Autoplay,[4,n.e(229).then(n.bind(n,5229))];case 9:s=o.sent().Thumbs,e.use([t,r,i,u,a,c,l,s]),window.Swiper=e,o.label=10;case 10:return[4,n.e(677).then(n.bind(n,6677))];case 11:return o.sent(),[2]}}))}))}},i={};function u(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e].call(n.exports,n,n.exports,u),n.exports}u.m=o,u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,n){return u.f[n](e,t),t}),[]))},u.u=function(e){return e+".js"},u.miniCssF=function(e){return e+".css"},u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="widget-crm-form:",u.l=function(n,r,o,i){if(e[n])e[n].push(r);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),s=0;s<l.length;s++){var f=l[s];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+o){a=f;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,u.nc&&a.setAttribute("nonce",u.nc),a.setAttribute("data-webpack",t+o),a.src=n),e[n]=[r];var d=function(t,r){a.onerror=a.onload=null,clearTimeout(h);var o=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(r)})),t)return t(r)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;u.g.importScripts&&(e=u.g.location+"");var t=u.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.p=e}(),n=function(e){return new Promise((function(t,n){var r=u.miniCssF(e),o=u.p+r;if(function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(u=n[r]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(o===e||o===t))return u}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var u;if((o=(u=i[r]).getAttribute("data-href"))===e||o===t)return u}}(r,o))return t();!function(e,t,n,r){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(i){if(o.onerror=o.onload=null,"load"===i.type)n();else{var u=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=u,c.request=a,o.parentNode.removeChild(o),r(c)}},o.href=t,document.head.appendChild(o)}(e,o,t,n)}))},r={843:0},u.f.miniCss=function(e,t){r[e]?t.push(r[e]):0!==r[e]&&{20:1,33:1,37:1,82:1,108:1,147:1,197:1,211:1,227:1,262:1,275:1,282:1,286:1,319:1,347:1,352:1,356:1,436:1,455:1,538:1,562:1,614:1,636:1,645:1,654:1,670:1,701:1,717:1,718:1,732:1,757:1,758:1,790:1,804:1,856:1,857:1,902:1,920:1,961:1,965:1}[e]&&t.push(r[e]=n(e).then((function(){r[e]=0}),(function(t){throw delete r[e],t})))},function(){var e={843:0};u.f.j=function(t,n){var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=u.p+u.u(t),a=new Error;u.l(i,(function(n){if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],a=n[1],c=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);if(c)c(u)}for(t&&t(n);l<i.length;l++)o=i[l],u.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();u(5325)}(); |
{ | ||
"name": "widget-crm-form", | ||
"version": "5.0.9", | ||
"version": "5.0.10", | ||
"description": "epicentrk", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
918050
1477