widget-crm-form
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -1,1 +0,1 @@ | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[790],{8790:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q},init:function(){return K}});var r={};n.r(r),n.d(r,{mask:function(){return y}});var i={};n.r(i),n.d(i,{Toast:function(){return G},auth:function(){return L},cases:function(){return C},forms:function(){return _},gtm:function(){return F},localeUrl:function(){return U},sentry:function(){return j},swiper:function(){return X},youtube:function(){return R}});var o={};n.r(o);var a=n(644),u=n.n(a),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},c=window.Vue,l=window.Vuex;c.use(l);var d={namespaced:!0,state:{forms:{}},getters:{forms:function(e){return e.forms}},mutations:{setForm:function(e,t){c.set(e.forms,t.id,t)}}},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(e){return e.gallery},activeGalleryID:function(e){return e.activeGalleryID},activeSlide:function(e){return e.activeSlide},url:function(e){return e.url},headers:function(e){return e.headers}},mutations:{setGallery:function(e,t){c.set(e.gallery,t.id,t.data)},setActiveGalleryID:function(e,t){return e.activeGalleryID=t},setActiveSlide:function(e,t){return e.activeSlide=t}},actions:{getProductData:function(e,t){var n=e.getters;return u().get("".concat(n.url,"/review/product_card_list"),{params:t,headers:n.headers})},vote:function(e,t){var n=e.getters;return u().put("".concat(n.url,"/review/").concat(t.id,"/vote"),{user:t.user,is_like:t.vote},{headers:n.headers})},getItemInfo:function(e,t){var n=e.getters;return u().get("".concat(n.url,"/review/info/").concat(t.id),{headers:n.headers})},sendFeedback:function(e,t){var n=e.getters;return u().post("".concat(n.url,"/feedbacks/"),t,{headers:s(s({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})},sendReview:function(e,t){var n=e.getters;return u().post("".concat(n.url,"/review/"),t,{headers:s(s({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})}}},f=new l.Store({modules:{crm:d,menu:{namespaced:!0,state:{open:!1,load:!1,list:[]},getters:{open:function(e){return e.open}},mutations:{setOpen:function(e,t){return e.open=t}}},reviews:m},state:{ww:0,wh:0,margin:"0"},getters:{ww:function(e){return e.ww},wh:function(e){return e.wh},margin:function(e){return e.margin}},mutations:{setWw:function(e,t){return e.ww=t},setWh:function(e,t){return e.wh=t},setMargin:function(e,t){return e.margin=t}},actions:{bodyScrollRemove:function(e){var t=e.state;(0,e.commit)("setMargin","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),document.body.style.paddingRight=t.margin,document.body.classList.add("ep-blocked-scroll")},bodyScrollAdd:function(e){var t=e.state;(0,e.commit)("setMargin","0"),document.body.style.paddingRight=t.margin,document.body.classList.remove("ep-blocked-scroll")},youtubeValidate:function(e,t){return u().get("/nuxt-api/youtube/",{params:t})}}}),p=n(5186),h={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>»")}},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:"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>»")}};window.Vue.use(p.Z);var g=new p.Z({locale:window.LANG_ID||"ua",messages:{ua:h,ru:v}}),w={icons:function(){return n.e(369).then(n.bind(n,4369))},"crm-form":function(){return Promise.all([n.e(421),n.e(457)]).then(n.bind(n,457))},"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-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(463).then(n.bind(n,7463))},"ui-row":function(){return n.e(663).then(n.bind(n,1663))},"ui-popup":function(){return n.e(28).then(n.bind(n,3028))},"ui-button":function(){return n.e(985).then(n.bind(n,7985))},"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 Promise.all([n.e(421),n.e(624)]).then(n.bind(n,7624))},"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(1).then(n.bind(n,1001))},"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 Promise.all([n.e(421),n.e(691)]).then(n.bind(n,4691))},"reviews-slider":function(){return Promise.all([n.e(421),n.e(658)]).then(n.bind(n,5658))},"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 Promise.all([n.e(421),n.e(536)]).then(n.bind(n,5536))},"reviews-forms-review":function(){return Promise.all([n.e(421),n.e(234)]).then(n.bind(n,3234))},"reviews-forms-thank":function(){return n.e(732).then(n.bind(n,732))},"reviews-gallery":function(){return Promise.all([n.e(421),n.e(268)]).then(n.bind(n,4268))},"reviews-gallery-slider":function(){return Promise.all([n.e(421),n.e(906)]).then(n.bind(n,4906))},"reviews-product":function(){return Promise.all([n.e(421),n.e(803)]).then(n.bind(n,803))},"reviews-product-forms":function(){return n.e(645).then(n.bind(n,9645))},"reviews-product-rating":function(){return n.e(907).then(n.bind(n,9536))}},b=function(){function e(e,t){this.tokens={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},F:{pattern:/[А-яЁёҐґєЄіІїЇйЙ]/,transform:function(e){return e.toLocaleUpperCase()}},"!":{escape:!0}},this.el=e,this.mask=t}return e.event=function(e){return new Event(e)},e.prototype.maskIt=function(e){for(var t=0,n=0,r="";t<this.mask.length&&n<e.length;){var i=this.mask[t],o=this.tokens[i],a=e[n];o&&!o.escape&&o.pattern?(o.pattern.test(a)&&(r+=o.transform?o.transform(a):a,t++),n++):(o&&o.escape&&(t++,i=this.mask[t]),r+=i,a===i&&n++,t++)}for(var u="";t<this.mask.length;){i=this.mask[t];if(this.tokens["".concat(i)]){u="";break}u+=i,t++}return r+u},e.prototype.init=function(){var t=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=t.maskIt(n.value);i<n.value.length&&n.value.charAt(i-1)!==o;)i++;n===document.activeElement&&n.setSelectionRange(i,i),n.dispatchEvent(e.event("input"))}}));var r=this.maskIt(n.value);r!==n.value&&(n.value=r,n.dispatchEvent(e.event("input")))}},e}(),y={inserted:function(e,t){var n=t.value;n&&new b(e,n).init()}},k=n(4845),S=n(9705),A=function(){function e(e){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=e}return e.prototype.test=function(e,t){switch(e){case"empty":return this.empty.test(String(t.value||"").trim());case"tel":return this.tel.test(String(t.value.replace(/\(|\)|\s+|-/g,"")).trim());case"email":return""===t.value||this.email.test(String(t.value).trim());case"check-online":return""===t.value||this.checkOnline.test(String(t.value).trim());case"check-offline":return""===t.value||this.checkOffline.test(String(t.value).trim());case"date":return""===t.value||this.date.test(String(t.value).trim());case"pass":return this.pass.test(String(t.value).trim());case"login":return this.email.test(String(t.value).trim())||this.tel.test(String(t.value.replace(/\(|\)|\s+|-/g,"")).trim());case"new-pass":return this.pass.test(String(t.value).trim())&&this.pass2.test(String(t.value).trim())&&this.pass3.test(String(t.value).trim())&&this.pass4.test(String(t.value).trim());case"sms":return this.sms.test(String(t.value).trim());case"confirm":return!t.confirm||t.value===t.confirm.value&&this.pass.test(String(t.value).trim())&&this.pass2.test(String(t.value).trim())&&this.pass3.test(String(t.value).trim())&&this.pass4.test(String(t.value).trim());case"check":return t.value;case"upload":return!t.min||!t.loadFiles||t.min<=t.loadFiles.length;case"youtube":return""===t.value.trim()||!t.error&&Boolean((n=t.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},e.prototype.validate=function(e,t){for(var n,r=!0,i=0,o=e;i<o.length;i++){var a=o[i];for(var u in a.regex)this.test(a.regex[Number(u)],a)||((null==a?void 0:a.confirm)&&a.value?t&&(a.confirm.error=this.error[a.regex[Number(u)]]||!0):t&&(a.error=(null===(n=this.error)||void 0===n?void 0:n[a.regex[Number(u)]])||!0),r=!1)}return r},e.prototype.clear=function(e){for(var t=0,n=e;t<n.length;t++){n[t].value=""}},e.prototype.getParams=function(e){for(var t,n={},r=0,i=e;r<i.length;r++){var o=i[r];o.code&&("login"!==o.code||o.value.includes("@")||(o.value=(t=o.value,1===t.indexOf("800")||0===t.indexOf("800")?new b(null,"0 800 XX XX XX").maskIt(t):new b(null,"+38 XXX XXX XX XX").maskIt(t)).replace(/\s/g,"")),n[String(o.code)]=o.value,o.confirm&&(n[String(o.confirm.code)]=o.confirm.value))}return n},e.prototype.send=function(e,t){this.validate(e,!0)&&t()},e}(),$=A,I=function(){function e(){}return e.install=function(e){e.prototype.$forms=function(){return new $(h.error)},e.forms=e.prototype.$forms},e}(),_=I,x=function(e,t,n){e=Math.round(100*Number(e))/100;var r=n?"":e;return(0^e)!==e?r+" "+t[0]:Number(e)>10&&Number(e)<20?r+" "+t[3]:Number(e)%10==1?r+" "+t[1]:Number(e)%10>1&&Number(e)%10<5?r+" "+t[2]:r+" "+t[3]},E=function(){function e(){}return e.install=function(e){e.prototype.$cases=x,e.cases=e.prototype.$cases},e}(),C=E,P=function(){function e(){}return e.install=function(e){window.USER_ID?e.prototype.$auth={loggedIn:Boolean(window.USER_ID),user:{data:{ID:window.USER_ID,NAME:window.USER_NAME,EMAIL:window.USER_EMAIL}}}:e.prototype.$auth={loggedIn:!1}},e}(),L=P,D=function(){function e(){}return e.install=function(e){e.prototype.$gtm=e.prototype.$gtm||{push:function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}}},e}(),F=D,N=function(){function e(){}return e.install=function(e){e.prototype.$sentry={captureException:function(){return!0},captureEvent:function(){return!0}}},e}(),j=N,B=function(){function e(){}return e.install=function(e){e.prototype.$swiper=function(e,t){return new window.Swiper(e,t)}},e}(),X=B,Z=function(e){var t=e.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return!t||11!==t[7].length&&"TEST"!==t[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(t[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(t[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(t[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:t[7],image:{default:"https://i.ytimg.com/vi/".concat(t[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(t[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(t[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(t[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(t[7],"/maxresdefault.jpg")}}},O=function(){function e(){}return e.install=function(e){e.prototype.$youtube=Z},e}(),R=O,T=function(){function e(){}return e.install=function(e){e.prototype.$localeUrl=function(e){return"/ua"+e},e.localeUrl=e.prototype.$localeUrl},e}(),U=T,q=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("transition",{attrs:{name:"fade"}},[e.items.length&&e.init?t("div",{class:e.$style.wrapper},[t("transition-group",{attrs:{name:"list",tag:"div"}},e._l(e.items,(function(n){return t("div",{key:n.key,class:[e.$style.toast,e.$style[n.theme]],domProps:{innerHTML:e._s(n.message)},on:{click:function(t){return e.remove(n)}}})})),0)],1):e._e()])};q._withStripped=!0;var z=k.default.extend({data:function(){return{items:[],init:!1}},mounted:function(){this.init=!0},methods:{s:function(e){this.add(e,"is-success")},w:function(e){this.add(e,"is-warning")},e:function(e){this.add(e,"is-error")},add:function(e,t){var n=this;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var r={message:e,theme:t,key:Number(new Date)};this.items.push(r),setTimeout((function(){n.remove(r)}),6e3)},remove:function(e){this.items.includes(e)&&this.items.splice(this.items.indexOf(e),1)}}}),M={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var G=(0,n(1900).Z)(z,q,[],!1,(function(e){this.$style=M.locals||M}),null,null).exports;G.install=function(e){e.prototype.$toast=new G},k.default.use(S.ZP,{theme:"light-border",arrow:!0});var V=function(){return n.e(319).then(n.bind(n,8319))},W=function(){return n.e(891).then(n.bind(n,5891))},H=function(){return n.e(586).then(n.bind(n,586))},Y=window.Vue,J=function(){function e(){}return e.addBlock=function(e){return document.body.appendChild(e),e},e.appendSprite=function(){document.body.insertAdjacentHTML("afterbegin",'<div id="crm-form-sprite"></div>'),new Y({store:f,render:function(e){return e(H)}}).$mount(document.getElementById("crm-form-sprite"))},e.initFormComponent=function(e,t,n,r){new Y({i18n:g,store:f,render:function(e){return e(V,{props:{id:t,items:r,type:n}})}}).$mount(e)},e.initReviewsComponent=function(e,t){new Y({i18n:g,store:f,render:function(e){return e(W,{props:t})}}).$mount(e)},e.initPopup=function(t){e.initFormComponent(e.addBlock(document.createElement("div")),t,"popup")},e.initPopupSelect=function(t){e.initFormComponent(e.addBlock(document.createElement("div")),null,"select",t)},e.init=function(){for(var t=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];e.initReviewsComponent(o,{id:Number(o.dataset.reviews),page:o.dataset.page})}for(var a=function(t){if("static"===t.dataset.type)e.initFormComponent(t,Number(t.dataset.formId),"static");else t.addEventListener("click",(function(){e.initPopup(Number(t.dataset.formId))}))},u=0,s=t;u<s.length;u++){a(o=s[u])}try{for(var c=function(t){t.addEventListener("click",(function(){e.initFormComponent(e.addBlock(document.createElement("div")),null,"select",JSON.parse(t.dataset.formItems))}))},l=0,d=n;l<d.length;l++){c(o=d[l])}}catch(e){console.warn("Помилка в масиві даних, перевірте data-form-items")}},e.install=function(){for(var t in i)Y.use(i[t]);for(var t in o)Y.filter(t,o[t]);for(var t in r)Y.directive(t,r[t]);for(var t in w)Y.component(t,w[t]);e.appendSprite(),e.init()},e}(),K=function(){return Y.use(J)},Q=J}}]); | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[790],{8790:function(e,t,n){n.r(t),n.d(t,{default:function(){return Q},init:function(){return K}});var r={};n.r(r),n.d(r,{mask:function(){return y}});var i={};n.r(i),n.d(i,{Toast:function(){return G},auth:function(){return L},cases:function(){return C},forms:function(){return _},gtm:function(){return F},localeUrl:function(){return U},sentry:function(){return j},swiper:function(){return X},youtube:function(){return R}});var o={};n.r(o);var a=n(644),u=n.n(a),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},c=window.Vue,l=window.Vuex;c.use(l);var d={namespaced:!0,state:{forms:{}},getters:{forms:function(e){return e.forms}},mutations:{setForm:function(e,t){c.set(e.forms,t.id,t)}}},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(e){return e.gallery},activeGalleryID:function(e){return e.activeGalleryID},activeSlide:function(e){return e.activeSlide},url:function(e){return e.url},headers:function(e){return e.headers}},mutations:{setGallery:function(e,t){c.set(e.gallery,t.id,t.data)},setActiveGalleryID:function(e,t){return e.activeGalleryID=t},setActiveSlide:function(e,t){return e.activeSlide=t}},actions:{getProductData:function(e,t){var n=e.getters;return u().get("".concat(n.url,"/review/product_card_list"),{params:t,headers:n.headers})},vote:function(e,t){var n=e.getters;return u().put("".concat(n.url,"/review/").concat(t.id,"/vote"),{user:t.user,is_like:t.vote},{headers:n.headers})},getItemInfo:function(e,t){var n=e.getters;return u().get("".concat(n.url,"/review/info/").concat(t.id),{headers:n.headers})},sendFeedback:function(e,t){var n=e.getters;return u().post("".concat(n.url,"/feedbacks/"),t,{headers:s(s({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})},sendReview:function(e,t){var n=e.getters;return u().post("".concat(n.url,"/review/"),t,{headers:s(s({},n.headers),{"Content-Type":"application/x-www-form-urlencoded"})})}}},f=new l.Store({modules:{crm:d,menu:{namespaced:!0,state:{open:!1,load:!1,list:[]},getters:{open:function(e){return e.open}},mutations:{setOpen:function(e,t){return e.open=t}}},reviews:m},state:{ww:0,wh:0,margin:"0"},getters:{ww:function(e){return e.ww},wh:function(e){return e.wh},margin:function(e){return e.margin}},mutations:{setWw:function(e,t){return e.ww=t},setWh:function(e,t){return e.wh=t},setMargin:function(e,t){return e.margin=t}},actions:{bodyScrollRemove:function(e){var t=e.state;(0,e.commit)("setMargin","".concat(window.innerWidth-document.documentElement.clientWidth,"px")),document.body.style.paddingRight=t.margin,document.body.classList.add("ep-blocked-scroll")},bodyScrollAdd:function(e){var t=e.state;(0,e.commit)("setMargin","0"),document.body.style.paddingRight=t.margin,document.body.classList.remove("ep-blocked-scroll")},youtubeValidate:function(e,t){return u().get("/nuxt-api/youtube/",{params:t})}}}),p=n(5186),h={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>»")}},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:"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>»")}};window.Vue.use(p.Z);var g=new p.Z({locale:window.LANG_ID||"ua",messages:{ua:h,ru:v}}),w={icons:function(){return n.e(369).then(n.bind(n,4369))},"crm-form":function(){return Promise.all([n.e(421),n.e(457)]).then(n.bind(n,457))},"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-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(463).then(n.bind(n,7463))},"ui-row":function(){return n.e(663).then(n.bind(n,1663))},"ui-popup":function(){return n.e(28).then(n.bind(n,3028))},"ui-button":function(){return n.e(985).then(n.bind(n,7985))},"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 Promise.all([n.e(421),n.e(624)]).then(n.bind(n,7624))},"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(1).then(n.bind(n,1001))},"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 Promise.all([n.e(421),n.e(691)]).then(n.bind(n,4691))},"reviews-slider":function(){return Promise.all([n.e(421),n.e(658)]).then(n.bind(n,5658))},"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 Promise.all([n.e(421),n.e(536)]).then(n.bind(n,5536))},"reviews-forms-review":function(){return Promise.all([n.e(421),n.e(234)]).then(n.bind(n,3234))},"reviews-forms-thank":function(){return n.e(732).then(n.bind(n,732))},"reviews-gallery":function(){return Promise.all([n.e(421),n.e(268)]).then(n.bind(n,4268))},"reviews-gallery-slider":function(){return Promise.all([n.e(421),n.e(906)]).then(n.bind(n,4906))},"reviews-product":function(){return Promise.all([n.e(421),n.e(803)]).then(n.bind(n,803))},"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))}},b=function(){function e(e,t){this.tokens={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},F:{pattern:/[А-яЁёҐґєЄіІїЇйЙ]/,transform:function(e){return e.toLocaleUpperCase()}},"!":{escape:!0}},this.el=e,this.mask=t}return e.event=function(e){return new Event(e)},e.prototype.maskIt=function(e){for(var t=0,n=0,r="";t<this.mask.length&&n<e.length;){var i=this.mask[t],o=this.tokens[i],a=e[n];o&&!o.escape&&o.pattern?(o.pattern.test(a)&&(r+=o.transform?o.transform(a):a,t++),n++):(o&&o.escape&&(t++,i=this.mask[t]),r+=i,a===i&&n++,t++)}for(var u="";t<this.mask.length;){i=this.mask[t];if(this.tokens["".concat(i)]){u="";break}u+=i,t++}return r+u},e.prototype.init=function(){var t=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=t.maskIt(n.value);i<n.value.length&&n.value.charAt(i-1)!==o;)i++;n===document.activeElement&&n.setSelectionRange(i,i),n.dispatchEvent(e.event("input"))}}));var r=this.maskIt(n.value);r!==n.value&&(n.value=r,n.dispatchEvent(e.event("input")))}},e}(),y={inserted:function(e,t){var n=t.value;n&&new b(e,n).init()}},k=n(4845),S=n(9705),A=function(){function e(e){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=e}return e.prototype.test=function(e,t){switch(e){case"empty":return this.empty.test(String(t.value||"").trim());case"tel":return this.tel.test(String(t.value.replace(/\(|\)|\s+|-/g,"")).trim());case"email":return""===t.value||this.email.test(String(t.value).trim());case"check-online":return""===t.value||this.checkOnline.test(String(t.value).trim());case"check-offline":return""===t.value||this.checkOffline.test(String(t.value).trim());case"date":return""===t.value||this.date.test(String(t.value).trim());case"pass":return this.pass.test(String(t.value).trim());case"login":return this.email.test(String(t.value).trim())||this.tel.test(String(t.value.replace(/\(|\)|\s+|-/g,"")).trim());case"new-pass":return this.pass.test(String(t.value).trim())&&this.pass2.test(String(t.value).trim())&&this.pass3.test(String(t.value).trim())&&this.pass4.test(String(t.value).trim());case"sms":return this.sms.test(String(t.value).trim());case"confirm":return!t.confirm||t.value===t.confirm.value&&this.pass.test(String(t.value).trim())&&this.pass2.test(String(t.value).trim())&&this.pass3.test(String(t.value).trim())&&this.pass4.test(String(t.value).trim());case"check":return t.value;case"upload":return!t.min||!t.loadFiles||t.min<=t.loadFiles.length;case"youtube":return""===t.value.trim()||!t.error&&Boolean((n=t.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},e.prototype.validate=function(e,t){for(var n,r=!0,i=0,o=e;i<o.length;i++){var a=o[i];for(var u in a.regex)this.test(a.regex[Number(u)],a)||((null==a?void 0:a.confirm)&&a.value?t&&(a.confirm.error=this.error[a.regex[Number(u)]]||!0):t&&(a.error=(null===(n=this.error)||void 0===n?void 0:n[a.regex[Number(u)]])||!0),r=!1)}return r},e.prototype.clear=function(e){for(var t=0,n=e;t<n.length;t++){n[t].value=""}},e.prototype.getParams=function(e){for(var t,n={},r=0,i=e;r<i.length;r++){var o=i[r];o.code&&("login"!==o.code||o.value.includes("@")||(o.value=(t=o.value,1===t.indexOf("800")||0===t.indexOf("800")?new b(null,"0 800 XX XX XX").maskIt(t):new b(null,"+38 XXX XXX XX XX").maskIt(t)).replace(/\s/g,"")),n[String(o.code)]=o.value,o.confirm&&(n[String(o.confirm.code)]=o.confirm.value))}return n},e.prototype.send=function(e,t){this.validate(e,!0)&&t()},e}(),$=A,I=function(){function e(){}return e.install=function(e){e.prototype.$forms=function(){return new $(h.error)},e.forms=e.prototype.$forms},e}(),_=I,x=function(e,t,n){e=Math.round(100*Number(e))/100;var r=n?"":e;return(0^e)!==e?r+" "+t[0]:Number(e)>10&&Number(e)<20?r+" "+t[3]:Number(e)%10==1?r+" "+t[1]:Number(e)%10>1&&Number(e)%10<5?r+" "+t[2]:r+" "+t[3]},E=function(){function e(){}return e.install=function(e){e.prototype.$cases=x,e.cases=e.prototype.$cases},e}(),C=E,P=function(){function e(){}return e.install=function(e){window.USER_ID?e.prototype.$auth={loggedIn:Boolean(window.USER_ID),user:{data:{ID:window.USER_ID,NAME:window.USER_NAME,EMAIL:window.USER_EMAIL}}}:e.prototype.$auth={loggedIn:!1}},e}(),L=P,D=function(){function e(){}return e.install=function(e){e.prototype.$gtm=e.prototype.$gtm||{push:function(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}}},e}(),F=D,N=function(){function e(){}return e.install=function(e){e.prototype.$sentry={captureException:function(){return!0},captureEvent:function(){return!0}}},e}(),j=N,B=function(){function e(){}return e.install=function(e){e.prototype.$swiper=function(e,t){return new window.Swiper(e,t)}},e}(),X=B,Z=function(e){var t=e.match(/^.*((youtu\.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/);return!t||11!==t[7].length&&"TEST"!==t[7]?void 0:{videoBanner:"https://www.youtube.com/embed/".concat(t[7],"?autoplay=1&mute=1&rel=0&controls=0&fs=0&disablekb=1&loop=1&playlist=").concat(t[7],"&modestbranding=1"),video:"https://www.youtube.com/embed/".concat(t[7],"?rel=0&Description=0&showinfo=0&enablejsapi=1&autoplay=1&mute=1"),id:t[7],image:{default:"https://i.ytimg.com/vi/".concat(t[7],"/default.jpg"),mqdefault:"https://i.ytimg.com/vi/".concat(t[7],"/mqdefault.jpg"),hqdefault:"https://i.ytimg.com/vi/".concat(t[7],"/hqdefault.jpg"),sddefault:"https://i.ytimg.com/vi/".concat(t[7],"/sddefault.jpg"),maxresdefault:"https://i.ytimg.com/vi/".concat(t[7],"/maxresdefault.jpg")}}},O=function(){function e(){}return e.install=function(e){e.prototype.$youtube=Z},e}(),R=O,T=function(){function e(){}return e.install=function(e){e.prototype.$localeUrl=function(e){return"/ua"+e},e.localeUrl=e.prototype.$localeUrl},e}(),U=T,q=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("transition",{attrs:{name:"fade"}},[e.items.length&&e.init?t("div",{class:e.$style.wrapper},[t("transition-group",{attrs:{name:"list",tag:"div"}},e._l(e.items,(function(n){return t("div",{key:n.key,class:[e.$style.toast,e.$style[n.theme]],domProps:{innerHTML:e._s(n.message)},on:{click:function(t){return e.remove(n)}}})})),0)],1):e._e()])};q._withStripped=!0;var z=k.default.extend({data:function(){return{items:[],init:!1}},mounted:function(){this.init=!0},methods:{s:function(e){this.add(e,"is-success")},w:function(e){this.add(e,"is-warning")},e:function(e){this.add(e,"is-error")},add:function(e,t){var n=this;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var r={message:e,theme:t,key:Number(new Date)};this.items.push(r),setTimeout((function(){n.remove(r)}),6e3)},remove:function(e){this.items.includes(e)&&this.items.splice(this.items.indexOf(e),1)}}}),M={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var G=(0,n(1900).Z)(z,q,[],!1,(function(e){this.$style=M.locals||M}),null,null).exports;G.install=function(e){e.prototype.$toast=new G},k.default.use(S.ZP,{theme:"light-border",arrow:!0});var V=function(){return n.e(319).then(n.bind(n,8319))},W=function(){return n.e(891).then(n.bind(n,5891))},H=function(){return n.e(586).then(n.bind(n,586))},Y=window.Vue,J=function(){function e(){}return e.addBlock=function(e){return document.body.appendChild(e),e},e.appendSprite=function(){document.body.insertAdjacentHTML("afterbegin",'<div id="crm-form-sprite"></div>'),new Y({store:f,render:function(e){return e(H)}}).$mount(document.getElementById("crm-form-sprite"))},e.initFormComponent=function(e,t,n,r){new Y({i18n:g,store:f,render:function(e){return e(V,{props:{id:t,items:r,type:n}})}}).$mount(e)},e.initReviewsComponent=function(e,t){new Y({i18n:g,store:f,render:function(e){return e(W,{props:t})}}).$mount(e)},e.initPopup=function(t){e.initFormComponent(e.addBlock(document.createElement("div")),t,"popup")},e.initPopupSelect=function(t){e.initFormComponent(e.addBlock(document.createElement("div")),null,"select",t)},e.init=function(){for(var t=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];e.initReviewsComponent(o,{id:Number(o.dataset.reviews),page:o.dataset.page})}for(var a=function(t){if("static"===t.dataset.type)e.initFormComponent(t,Number(t.dataset.formId),"static");else t.addEventListener("click",(function(){e.initPopup(Number(t.dataset.formId))}))},u=0,s=t;u<s.length;u++){a(o=s[u])}try{for(var c=function(t){t.addEventListener("click",(function(){e.initFormComponent(e.addBlock(document.createElement("div")),null,"select",JSON.parse(t.dataset.formItems))}))},l=0,d=n;l<d.length;l++){c(o=d[l])}}catch(e){console.warn("Помилка в масиві даних, перевірте data-form-items")}},e.install=function(){for(var t in i)Y.use(i[t]);for(var t in o)Y.filter(t,o[t]);for(var t in r)Y.directive(t,r[t]);for(var t in w)Y.component(t,w[t]);e.appendSprite(),e.init()},e}(),K=function(){return Y.use(J)},Q=J}}]); |
@@ -1,1 +0,1 @@ | ||
!function(){var e,t,n,r,o,i,u={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])}}};!function(){r(this,void 0,void 0,(function(){var e,t,r,i,u,a,c,l;return o(this,(function(o){switch(o.label){case 0:return e=window,(t=window.Vue)?[3,2]:[4,n.e(845).then(n.bind(n,4845))];case 1:t=o.sent().default,o.label=2;case 2:return e.Vue=t,r=window,(i=window.Vuex)?[3,4]:[4,n.e(421).then(n.bind(n,4421))];case 3:i=o.sent().default,o.label=4;case 4:return r.Vuex=i,u=window,(a=window.Swiper)?[3,6]:[4,n.e(229).then(n.bind(n,5229))];case 5:a=o.sent().default,o.label=6;case 6:return u.Swiper=a,c=window,(l=window.axios)?[3,8]:[4,n.e(644).then(n.t.bind(n,644,23))];case 7:l=o.sent().default,o.label=8;case 8:return c.axios=l,n.e(677).then(n.bind(n,6677)),[2]}}))}))}()}},a={};function c(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return u[e].call(n.exports,n,n.exports,c),n.exports}c.m=u,c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},c.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);c.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},c.d(o,i),o},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=function(e){return Promise.all(Object.keys(c.f).reduce((function(t,n){return c.f[n](e,t),t}),[]))},c.u=function(e){return e+".js"},c.miniCssF=function(e){return e+".css"},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="widget-crm-form:",c.l=function(e,t,o,i){if(n[e])n[e].push(t);else{var u,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==r+o){u=s;break}}u||(a=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,c.nc&&u.setAttribute("nonce",c.nc),u.setAttribute("data-webpack",r+o),u.src=e),n[e]=[t];var d=function(t,r){u.onerror=u.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),a&&document.head.appendChild(u)}},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;c.g.importScripts&&(e=c.g.location+"");var t=c.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(/\/[^\/]+$/,"/"),c.p=e}(),o=function(e){return new Promise((function(t,n){var r=c.miniCssF(e),o=c.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)}))},i={843:0},c.f.miniCss=function(e,t){i[e]?t.push(i[e]):0!==i[e]&&{1:1,28:1,37:1,82:1,96:1,108:1,211:1,234:1,268:1,282:1,286:1,319:1,347:1,356:1,436:1,457:1,463:1,536:1,538:1,614:1,624:1,636:1,645:1,654:1,658:1,663:1,691:1,701:1,717:1,718:1,732:1,790:1,803:1,856:1,891:1,906:1,907:1,961:1,985:1}[e]&&t.push(i[e]=o(e).then((function(){i[e]=0}),(function(t){throw delete i[e],t})))},function(){var e={843:0};c.f.j=function(t,n){var r=c.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=c.p+c.u(t),u=new Error;c.l(i,(function(n){if(c.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;u.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],u=n[1],a=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in u)c.o(u,r)&&(c.m[r]=u[r]);if(a)a(c)}for(t&&t(n);l<i.length;l++)o=i[l],c.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))}();c(5325)}(); | ||
!function(){var e,t,n,r,o,i,u={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])}}};!function(){r(this,void 0,void 0,(function(){var e,t,r,i,u,a,c,l;return o(this,(function(o){switch(o.label){case 0:return e=window,(t=window.Vue)?[3,2]:[4,n.e(845).then(n.bind(n,4845))];case 1:t=o.sent().default,o.label=2;case 2:return e.Vue=t,r=window,(i=window.Vuex)?[3,4]:[4,n.e(421).then(n.bind(n,4421))];case 3:i=o.sent().default,o.label=4;case 4:return r.Vuex=i,u=window,(a=window.Swiper)?[3,6]:[4,n.e(229).then(n.bind(n,5229))];case 5:a=o.sent().default,o.label=6;case 6:return u.Swiper=a,c=window,(l=window.axios)?[3,8]:[4,n.e(644).then(n.t.bind(n,644,23))];case 7:l=o.sent().default,o.label=8;case 8:return c.axios=l,n.e(677).then(n.bind(n,6677)),[2]}}))}))}()}},a={};function c(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return u[e].call(n.exports,n,n.exports,c),n.exports}c.m=u,c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},c.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);c.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&r&&n;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach((function(e){i[e]=function(){return n[e]}}));return i.default=function(){return n},c.d(o,i),o},c.d=function(e,t){for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=function(e){return Promise.all(Object.keys(c.f).reduce((function(t,n){return c.f[n](e,t),t}),[]))},c.u=function(e){return e+".js"},c.miniCssF=function(e){return e+".css"},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="widget-crm-form:",c.l=function(e,t,o,i){if(n[e])n[e].push(t);else{var u,a;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==r+o){u=s;break}}u||(a=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,c.nc&&u.setAttribute("nonce",c.nc),u.setAttribute("data-webpack",r+o),u.src=e),n[e]=[t];var d=function(t,r){u.onerror=u.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((function(e){return e(r)})),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),a&&document.head.appendChild(u)}},c.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;c.g.importScripts&&(e=c.g.location+"");var t=c.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(/\/[^\/]+$/,"/"),c.p=e}(),o=function(e){return new Promise((function(t,n){var r=c.miniCssF(e),o=c.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)}))},i={843:0},c.f.miniCss=function(e,t){i[e]?t.push(i[e]):0!==i[e]&&{1:1,28:1,37:1,82:1,96:1,108:1,211:1,234:1,268:1,282:1,286:1,319:1,347:1,356:1,436:1,457:1,463:1,536:1,538:1,562:1,614:1,624:1,636:1,645:1,654:1,658:1,663:1,691:1,701:1,717:1,718:1,732:1,790:1,803:1,856:1,891:1,906:1,961:1,985:1}[e]&&t.push(i[e]=o(e).then((function(){i[e]=0}),(function(t){throw delete i[e],t})))},function(){var e={843:0};c.f.j=function(t,n){var r=c.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=c.p+c.u(t),u=new Error;c.l(i,(function(n){if(c.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;u.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",u.name="ChunkLoadError",u.type=o,u.request=i,r[1](u)}}),"chunk-"+t,t)}};var t=function(t,n){var r,o,i=n[0],u=n[1],a=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in u)c.o(u,r)&&(c.m[r]=u[r]);if(a)a(c)}for(t&&t(n);l<i.length;l++)o=i[l],c.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))}();c(5325)}(); |
{ | ||
"name": "widget-crm-form", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"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
939680