widget-crm-form
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -1,1 +0,1 @@ | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[693],{7693:function(t,e,n){n.r(e),n.d(e,{default:function(){return E},init:function(){return N}});var r={};n.r(r),n.d(r,{mask:function(){return h}});var i={};n.r(i),n.d(i,{Toast:function(){return _},cases:function(){return S},forms:function(){return y},localeUrl:function(){return Z}});var o={};n.r(o);var s=n(4845),a=n(4421);s.ZP.use(a.ZP);var u={namespaced:!0,state:{forms:{}},getters:{forms:function(t){return t.forms}},mutations:{setForm:function(t,e){s.ZP.set(t.forms,e.id,e)}}},c=new a.ZP.Store({modules:{crm:u,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}}}},state:{ww:0,wh:0,margin:"0"},getters:{ww:function(t){return t.ww},wh:function(t){return t.wh},margin:function(t){return t.margin}},mutations:{setWw:function(t,e){return t.ww=e},setWh:function(t,e){return t.wh=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")}}}),l=n(5186),m={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:"Фільтрувати",sort:"Сортувати","pre-order":"Передзамовити"},product:{action:"Гарантовано низька ціна",none:"Немає в наявності"},error:{email:"введіть правильний email",tel:"введіть правильний телефон",login:"введіть правильний телефон або email",pass:"введіть пароль (мін 8 символів)","new-pass":"пароль не відповідає правилам",confirm:"паролі не співпадають",sms:"введіть код (6 цифр)",empty:"обов'язкове поле"},search:{placeholder:"Пошук",no:"результатів не знайдено"},privacy:{text:"Залишаючи свої контактні дані, я погоджуюсь з ",link:"політикою конфіденційності",title:"політика конфіденційності"},messages:{thank:"Дякуємо!"},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>»")}};s.ZP.use(l.Z);var f=new l.Z({locale:"ua",messages:{ua:m}}),d={icons:function(){return n.e(521).then(n.bind(n,521))},crm:function(){return n.e(29).then(n.bind(n,5029))},subject:function(){return n.e(18).then(n.bind(n,7018))},"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-popup":function(){return n.e(32).then(n.bind(n,7032))},"ui-button":function(){return n.e(433).then(n.bind(n,4433))},"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(665).then(n.bind(n,3665))},"ui-form-impression":function(){return n.e(904).then(n.bind(n,4904))},"ui-form-input-animate":function(){return n.e(82).then(n.bind(n,1082))},"ui-form-input":function(){return n.e(400).then(n.bind(n,7400))},"ui-form-radio":function(){return n.e(879).then(n.bind(n,879))},"ui-form-rating":function(){return n.e(887).then(n.bind(n,5887))},"ui-form-select":function(){return n.e(627).then(n.bind(n,8627))},"ui-form-upload":function(){return n.e(645).then(n.bind(n,2645))},"ui-form-error":function(){return n.e(37).then(n.bind(n,9037))}},p=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],s=t[n];o&&!o.escape&&o.pattern?(o.pattern.test(s)&&(r+=o.transform?o.transform(s):s,e++),n++):(o&&o.escape&&(e++,i=this.mask[e]),r+=i,s===i&&n++,e++)}for(var a="";e<this.mask.length;){i=this.mask[e];if(this.tokens["".concat(i)]){a="";break}a+=i,e++}return r+a},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}(),h={inserted:function(t,e){var n=e.value;n&&new p(t,n).init()}},v=n(9705),g=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.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 this.email.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;default:return!0}},t.prototype.validate=function(t,e){for(var n,r=!0,i=0,o=t;i<o.length;i++){var s=o[i];for(var a in s.regex)this.test(s.regex[Number(a)],s)||((null==s?void 0:s.confirm)&&s.value?e&&(s.confirm.error=this.error[s.regex[Number(a)]]||!0):e&&(s.error=(null===(n=this.error)||void 0===n?void 0:n[s.regex[Number(a)]])||!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 p(null,"0 800 XX XX XX").maskIt(e):new p(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}(),b=g,y=function(){function t(){}return t.install=function(t){t.prototype.$forms=function(){return new b(m.error)},t.forms=t.prototype.$forms},t}(),k=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]},w=function(){function t(){}return t.install=function(t){t.prototype.$cases=k,t.cases=t.prototype.$cases},t}(),S=w,Z=function(){function t(){}return t.install=function(t){t.prototype.$localeUrl=function(t){return"/ua"+t},t.localeUrl=t.prototype.$localeUrl},t}(),P=function(){var t=this,e=t._self._c;t._self._setupProxy;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()])};P._withStripped=!0;var $=s.ZP.extend({data:function(){return{items:[],init:!1}},mounted:function(){this.init=!0},methods:{s:function(t){this.add(t,"is-success")},w:function(t){this.add(t,"is-warning")},e:function(t){this.add(t,"is-error")},add:function(t,e){var n=this;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var r={message:t,theme:e,key:Number(new Date)};this.items.push(r),setTimeout((function(){n.remove(r)}),6e3)},remove:function(t){this.items.includes(t)&&this.items.splice(this.items.indexOf(t),1)}}}),A={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var _=(0,n(1900).Z)($,P,[],!1,(function(t){this.$style=A.locals||A}),null,null).exports;_.install=function(t){t.prototype.$toast=new _},s.ZP.use(v.ZP,{theme:"light-border",arrow:!0});var X=function(){return n.e(519).then(n.bind(n,5519))},C=function(){return n.e(586).then(n.bind(n,586))},x=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 s.ZP({store:c,render:function(t){return t(C)}}).$mount(document.getElementById("crm-form-sprite"))},t.initComponent=function(t,e,n,r){new s.ZP({i18n:f,store:c,render:function(t){return t(X,{props:{id:e,items:r,type:n}})}}).$mount(t)},t.initPopup=function(e){t.initComponent(t.addBlock(document.createElement("div")),e,"popup")},t.initPopupSelect=function(e){t.initComponent(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=function(e){if("static"===e.dataset.type)t.initComponent(e,Number(e.dataset.formId),"static");else e.addEventListener("click",(function(){t.initPopup(Number(e.dataset.formId))}))},i=0,o=e;i<o.length;i++){r(o[i])}try{for(var s=function(e){e.addEventListener("click",(function(){t.initComponent(t.addBlock(document.createElement("div")),null,"select",JSON.parse(e.dataset.formItems))}))},a=0,u=n;a<u.length;a++){s(u[a])}}catch(t){console.warn("Помилка в масиві даних, перевірте data-form-items")}},t.install=function(){for(var e in i)s.ZP.use(i[e]);for(var e in o)s.ZP.filter(e,o[e]);for(var e in r)s.ZP.directive(e,r[e]);for(var e in d)s.ZP.component(e,d[e]);t.appendSprite(),t.init()},t}(),N=function(){return s.ZP.use(x)},E=x}}]); | ||
"use strict";(self.webpackChunkwidget_crm_form=self.webpackChunkwidget_crm_form||[]).push([[693],{7693:function(t,e,n){n.r(e),n.d(e,{default:function(){return E},init:function(){return N}});var r={};n.r(r),n.d(r,{mask:function(){return h}});var i={};n.r(i),n.d(i,{Toast:function(){return _},cases:function(){return S},forms:function(){return y},localeUrl:function(){return Z}});var o={};n.r(o);var s=n(4845),a=n(4421);s.ZP.use(a.ZP);var u={namespaced:!0,state:{forms:{}},getters:{forms:function(t){return t.forms}},mutations:{setForm:function(t,e){s.ZP.set(t.forms,e.id,e)}}},c=new a.ZP.Store({modules:{crm:u,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}}}},state:{ww:0,wh:0,margin:"0"},getters:{ww:function(t){return t.ww},wh:function(t){return t.wh},margin:function(t){return t.margin}},mutations:{setWw:function(t,e){return t.ww=e},setWh:function(t,e){return t.wh=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")}}}),l=n(5186),m={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:"Фільтрувати",sort:"Сортувати","pre-order":"Передзамовити"},product:{action:"Гарантовано низька ціна",none:"Немає в наявності"},error:{email:"введіть правильний email",tel:"введіть правильний телефон",login:"введіть правильний телефон або email",pass:"введіть пароль (мін 8 символів)","new-pass":"пароль не відповідає правилам",confirm:"паролі не співпадають",sms:"введіть код (6 цифр)",empty:"обов'язкове поле"},search:{placeholder:"Пошук",no:"результатів не знайдено"},privacy:{text:"Залишаючи свої контактні дані, я погоджуюсь з ",link:"політикою конфіденційності",title:"політика конфіденційності"},messages:{thank:"Дякуємо!"},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>»")}};s.ZP.use(l.Z);var f=new l.Z({locale:"ua",messages:{ua:m}}),d={icons:function(){return n.e(521).then(n.bind(n,521))},"crm-form":function(){return n.e(47).then(n.bind(n,8047))},"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-popup":function(){return n.e(32).then(n.bind(n,7032))},"ui-button":function(){return n.e(433).then(n.bind(n,4433))},"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(665).then(n.bind(n,3665))},"ui-form-impression":function(){return n.e(904).then(n.bind(n,4904))},"ui-form-input-animate":function(){return n.e(82).then(n.bind(n,1082))},"ui-form-input":function(){return n.e(400).then(n.bind(n,7400))},"ui-form-radio":function(){return n.e(879).then(n.bind(n,879))},"ui-form-rating":function(){return n.e(887).then(n.bind(n,5887))},"ui-form-select":function(){return n.e(123).then(n.bind(n,123))},"ui-form-upload":function(){return n.e(645).then(n.bind(n,2645))},"ui-form-error":function(){return n.e(37).then(n.bind(n,9037))}},p=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],s=t[n];o&&!o.escape&&o.pattern?(o.pattern.test(s)&&(r+=o.transform?o.transform(s):s,e++),n++):(o&&o.escape&&(e++,i=this.mask[e]),r+=i,s===i&&n++,e++)}for(var a="";e<this.mask.length;){i=this.mask[e];if(this.tokens["".concat(i)]){a="";break}a+=i,e++}return r+a},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}(),h={inserted:function(t,e){var n=e.value;n&&new p(t,n).init()}},v=n(9705),g=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.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 this.email.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;default:return!0}},t.prototype.validate=function(t,e){for(var n,r=!0,i=0,o=t;i<o.length;i++){var s=o[i];for(var a in s.regex)this.test(s.regex[Number(a)],s)||((null==s?void 0:s.confirm)&&s.value?e&&(s.confirm.error=this.error[s.regex[Number(a)]]||!0):e&&(s.error=(null===(n=this.error)||void 0===n?void 0:n[s.regex[Number(a)]])||!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 p(null,"0 800 XX XX XX").maskIt(e):new p(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}(),b=g,y=function(){function t(){}return t.install=function(t){t.prototype.$forms=function(){return new b(m.error)},t.forms=t.prototype.$forms},t}(),k=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]},w=function(){function t(){}return t.install=function(t){t.prototype.$cases=k,t.cases=t.prototype.$cases},t}(),S=w,Z=function(){function t(){}return t.install=function(t){t.prototype.$localeUrl=function(t){return"/ua"+t},t.localeUrl=t.prototype.$localeUrl},t}(),P=function(){var t=this,e=t._self._c;t._self._setupProxy;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()])};P._withStripped=!0;var $=s.ZP.extend({data:function(){return{items:[],init:!1}},mounted:function(){this.init=!0},methods:{s:function(t){this.add(t,"is-success")},w:function(t){this.add(t,"is-warning")},e:function(t){this.add(t,"is-error")},add:function(t,e){var n=this;this.$parent||(this.$mount(),document.body.appendChild(this.$el));var r={message:t,theme:e,key:Number(new Date)};this.items.push(r),setTimeout((function(){n.remove(r)}),6e3)},remove:function(t){this.items.includes(t)&&this.items.splice(this.items.indexOf(t),1)}}}),A={wrapper:"epicentrk_BuKk",toast:"epicentrk_HZbH","is-warning":"epicentrk_ddys","is-error":"epicentrk_maxL"};var _=(0,n(1900).Z)($,P,[],!1,(function(t){this.$style=A.locals||A}),null,null).exports;_.install=function(t){t.prototype.$toast=new _},s.ZP.use(v.ZP,{theme:"light-border",arrow:!0});var X=function(){return n.e(615).then(n.bind(n,5615))},C=function(){return n.e(586).then(n.bind(n,586))},x=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 s.ZP({store:c,render:function(t){return t(C)}}).$mount(document.getElementById("crm-form-sprite"))},t.initComponent=function(t,e,n,r){new s.ZP({i18n:f,store:c,render:function(t){return t(X,{props:{id:e,items:r,type:n}})}}).$mount(t)},t.initPopup=function(e){t.initComponent(t.addBlock(document.createElement("div")),e,"popup")},t.initPopupSelect=function(e){t.initComponent(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=function(e){if("static"===e.dataset.type)t.initComponent(e,Number(e.dataset.formId),"static");else e.addEventListener("click",(function(){t.initPopup(Number(e.dataset.formId))}))},i=0,o=e;i<o.length;i++){r(o[i])}try{for(var s=function(e){e.addEventListener("click",(function(){t.initComponent(t.addBlock(document.createElement("div")),null,"select",JSON.parse(e.dataset.formItems))}))},a=0,u=n;a<u.length;a++){s(u[a])}}catch(t){console.warn("Помилка в масиві даних, перевірте data-form-items")}},t.install=function(){for(var e in i)s.ZP.use(i[e]);for(var e in o)s.ZP.filter(e,o[e]);for(var e in r)s.ZP.directive(e,r[e]);for(var e in d)s.ZP.component(e,d[e]);t.appendSprite(),t.init()},t}(),N=function(){return s.ZP.use(x)},E=x}}]); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var e,t,n,r,o,i={},u={};function a(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.m=i,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+".js"},a.miniCssF=function(e){return e+".css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="widget-crm-form:",a.l=function(n,r,o,i){if(e[n])e[n].push(r);else{var u,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==n||s.getAttribute("data-webpack")==t+o){u=s;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.setAttribute("data-webpack",t+o),u.src=n),e[n]=[r];var d=function(t,r){u.onerror=u.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],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),c&&document.head.appendChild(u)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;a.g.importScripts&&(e=a.g.location+"");var t=a.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(/\/[^\/]+$/,"/"),a.p=e}(),n=function(e){return new Promise((function(t,n){var r=a.miniCssF(e),o=a.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},a.f.miniCss=function(e,t){r[e]?t.push(r[e]):0!==r[e]&&{18:1,29:1,32:1,37:1,82:1,286:1,356:1,400:1,433:1,519:1,627:1,645:1,665:1,693:1,717:1,856:1,879:1,887:1,904: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};a.f.j=function(t,n){var r=a.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=a.p+a.u(t),u=new Error;a.l(i,(function(n){if(a.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],c=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(c)c(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.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))}(),function(e){document.querySelectorAll("[data-form-id]").length&&Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(e){e.init()})),document.querySelectorAll("[data-form-items]").length&&Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(e){e.init()})),e.crmFormsPopupSelect=function(e){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(t){t.init(),t.default.initPopupSelect(e)}))},e.crmFormsPopup=function(e){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(t){t.init(),t.default.initPopup(e)}))},e.crmFormsStatic=function(e,t){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(n){n.init(),n.default.initComponent(e,t,"static")}))},e.addFonts=function(){var e=document.createElement("link");e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap",document.head.appendChild(e)}}(o||(o={})),window.EpicentrK=o}(); | ||
!function(){"use strict";var e,t,n,r,o,i={},u={};function a(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return i[e](n,n.exports,a),n.exports}a.m=i,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+".js"},a.miniCssF=function(e){return e+".css"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="widget-crm-form:",a.l=function(n,r,o,i){if(e[n])e[n].push(r);else{var u,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==n||s.getAttribute("data-webpack")==t+o){u=s;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,a.nc&&u.setAttribute("nonce",a.nc),u.setAttribute("data-webpack",t+o),u.src=n),e[n]=[r];var d=function(t,r){u.onerror=u.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],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),c&&document.head.appendChild(u)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;a.g.importScripts&&(e=a.g.location+"");var t=a.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(/\/[^\/]+$/,"/"),a.p=e}(),n=function(e){return new Promise((function(t,n){var r=a.miniCssF(e),o=a.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},a.f.miniCss=function(e,t){r[e]?t.push(r[e]):0!==r[e]&&{32:1,37:1,47:1,82:1,123:1,286:1,356:1,400:1,433:1,436:1,538:1,615:1,645:1,665:1,693:1,717:1,856:1,879:1,887:1,904: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};a.f.j=function(t,n){var r=a.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=a.p+a.u(t),u=new Error;a.l(i,(function(n){if(a.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],c=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in u)a.o(u,r)&&(a.m[r]=u[r]);if(c)c(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.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))}(),window.process={client:!0},function(e){document.querySelectorAll("[data-form-id]").length&&Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(e){e.init()})),document.querySelectorAll("[data-form-items]").length&&Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(e){e.init()})),e.crmFormsPopupSelect=function(e){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(t){t.init(),t.default.initPopupSelect(e)}))},e.crmFormsPopup=function(e){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(t){t.init(),t.default.initPopup(e)}))},e.crmFormsStatic=function(e,t){Promise.all([a.e(246),a.e(693)]).then(a.bind(a,7693)).then((function(n){n.init(),n.default.initComponent(e,t,"static")}))},e.addFonts=function(){var e=document.createElement("link");e.rel="stylesheet",e.href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap",document.head.appendChild(e)}}(o||(o={})),window.EpicentrK=o}(); |
{ | ||
"name": "widget-crm-form", | ||
"version": "4.0.2", | ||
"version": "4.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
575223
51
1132