(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h["Ups Lil UI Library"]={},h.Vue))})(this,function(h,e){"use strict";const f=(t,n)=>{const o=t.__vccOpts||t;for(const[r,i]of n)o[r]=i;return o},E={props:{iconId:{type:String,required:!0},iconColor:{type:String,required:!1,default:""}}},I=["xlink:href"];function _(t,n,o,r,i,l){return e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({fill:o.iconColor}),class:e.normalizeClass(["icon",t.$attrs.class]),"aria-hidden":"true"},[e.createElementVNode("use",{"xlink:href":`#${o.iconId}`},null,8,I)],6)}const g=f(E,[["render",_]]);function $(){if(typeof window>"u"||typeof document>"u")return()=>{};const t=window._SVG_SPRITE_IDS_=window._SVG_SPRITE_IDS_||[],n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.position="absolute",n.style.width="0",n.style.height="0";function o(){document.body.insertBefore(n,document.body.firstChild)}return document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o(),function(i,l){(t.indexOf(l)>-1||document.getElementById(l))&&console.warn(`Icon #${l} was duplicately registered. It must be globally unique.`),t.push(l),n.insertAdjacentHTML("beforeend",i)}}const k=$();k('',"icon-warning-bfaf2b");const w="icon-warning-bfaf2b",x={props:{img:{default:"alert"},text:{required:!0},title:{required:!1}},components:{IconBase:g},data(){return{iconWarning:w}}},N={class:"tooltip"},D={class:"tooltiptext"};function F(t,n,o,r,i,l){const s=e.resolveComponent("IconBase");return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(s,{iconId:i.iconWarning},null,8,["iconId"]),e.createElementVNode("span",D,e.toDisplayString(o.text),1)])}const B=f(x,[["render",F],["__scopeId","data-v-0b7c0c90"]]),M={components:{VueTooltip:B},props:{modelValue:{type:String,default:""},label:{type:String,default:""},max:{type:Number,default:30},min:{type:Number,default:1},warningMsg:String,tooltipMsg:String,rule:{type:String,default:"^[0-9А-Яа-я\\-\\s]+$"},warningFlag:{type:Boolean,default:!1},sintax:{type:String,default:"^[0-9А-Яа-я\\-\\s]$"},capitalize:Boolean,column:{type:Boolean,default:!0},decimal:Boolean,placeholder:String,mobile:{type:Boolean,default:!1},width:{type:String,default:"350px"}},setup(t,{emit:n}){const o=e.ref(!1),r=e.ref(t.warningMsg);e.watch(()=>t.value,c=>{c===null&&(o.value=!1)}),e.watch(()=>o.value,c=>{n("valid",!c)},{immediate:!0});const i=c=>{let m=c.target.value;if(t.mobile?c.inputType=="deleteContentBackward"?m=m.endsWith("-")?m.slice(0,-1):m:c.inputType=="insertFromPaste"?m=m.startsWith("+")?m.slice(1):m:[5,9,10,12].includes(m.length)&&m[m.length-1]!=="-"&&(m=m.slice(0,-1)+"-"+m.slice(-1)):m=t.capitalize?m.toUpperCase():m,n("update:modelValue",m),m===null){o.value=!1;return}if(t.min&&m.length0){o.value=!0;return}if(m.length<1){r.value="Заполните поле",o.value=!0;return}r.value=t.warningMsg,l(m)},l=c=>{o.value=!s(c)},s=c=>t.rule?new RegExp(t.rule).test(c):!0;return{tooltipFlag:o,warn:r,handleKeyDown:c=>{c.key},onPaste:c=>{const m=c.clipboardData.getData("text");l(m),s(m)||c.preventDefault()},handleInput:i,checkSintax:c=>{const m=c.target.value;let b=String.fromCharCode(c.keyCode);if(m.length<1&&b==" "){c.preventDefault();return}let jt=new RegExp(t.sintax);if(t.decimal&&b=="."&&m.indexOf(".")>-1){c.preventDefault();return}t.mobile&&m.length==t.max||jt.test(b)&&m.lengthr.handleInput&&r.handleInput(...a)),onKeypress:n[1]||(n[1]=a=>r.checkSintax(a)),onKeydown:n[2]||(n[2]=a=>r.handleKeyDown(a)),onPaste:n[3]||(n[3]=a=>r.onPaste(a)),placeholder:o.placeholder,autocomplete:o.mobile?"username":"on"},null,42,L),r.tooltipFlag&&o.tooltipMsg?(e.openBlock(),e.createBlock(s,{key:1,class:"tooltip",text:o.tooltipMsg},null,8,["text"])):e.createCommentVNode("",!0)],2),r.tooltipFlag?(e.openBlock(),e.createElementBlock("span",T,e.toDisplayString(r.warn),1)):e.createCommentVNode("",!0)])],6)}const u=f(M,[["render",R],["__scopeId","data-v-785ccf93"]]),y={backspace:8,left:37,up:38,right:39,down:40},P={name:"CodeInput",props:{type:{type:String,default:"number"},className:String,fields:{type:Number,default:6},fieldWidth:{type:Number,default:58},fieldHeight:{type:Number,default:54},autoFocus:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},title:String,change:Function,complete:Function,loading:{type:Boolean,default:!1}},data(){const{fields:t,values:n}=this;let o,r=0;if(n&&n.length){o=[];for(let i=0;i=t?0:n.length}else o=Array(t).fill("");this.iRefs=[];for(let i=0;i=this.fields||!o(n[r]));r++)this.values[r]=n[r]},onFocus(t){t.target.select(t)},onValueChange(t){const n=parseInt(t.target.dataset.id),{type:o,fields:r}=this;if(o==="number"&&(t.target.value=t.target.value.replace(/[^\d]/gi,"")),t.target.value===""||o==="number"&&!t.target.validity.valid)return;let i;const l=t.target.value;let{values:s}=this;if(s=Object.assign([],s),l.length>1){let a=l.length+n-1;a>=r&&(a=r-1),i=this.iRefs[a],l.split("").forEach((p,c)=>{const m=n+c;m=n&&this.$emit("complete",o)}}},V=t=>(e.pushScopeId("data-v-6025c7f0"),t=t(),e.popScopeId(),t),K={key:0,class:"title"},U={class:"react-code-input"},W=["type","pattern","autoFocus","data-id","value","disabled","required"],q=[V(()=>e.createElementVNode("div",{class:"blur"},null,-1)),V(()=>e.createElementVNode("svg",{class:"spin",viewBox:"0 0 1024 1024","data-icon":"loading",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[e.createElementVNode("path",{fill:"#006fff",d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"})],-1))];function H(t,n,o,r,i,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"react-code-input-container":!0,[o.className]:!!o.className}),style:e.normalizeStyle({width:`${o.fields*o.fieldWidth}px`}),onPaste:n[3]||(n[3]=(...s)=>l.handlePaste&&l.handlePaste(...s))},[o.title?(e.openBlock(),e.createElementBlock("p",K,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.values,(s,a)=>(e.openBlock(),e.createElementBlock("input",{key:`${t.id}-${a}`,type:o.type==="number"?"tel":o.type,pattern:o.type==="number"?"[0-9]":null,autoFocus:o.autoFocus&&!o.loading&&a===i.autoFocusIndex,style:e.normalizeStyle({width:`${o.fieldWidth}px`,height:`${o.fieldHeight}px`}),"data-id":a,value:s,ref_for:!0,ref:t.iRefs[a],onInput:n[0]||(n[0]=(...d)=>l.onValueChange&&l.onValueChange(...d)),onFocus:n[1]||(n[1]=(...d)=>l.onFocus&&l.onFocus(...d)),onKeydown:n[2]||(n[2]=(...d)=>l.onKeyDown&&l.onKeyDown(...d)),disabled:o.disabled,required:o.required,maxlength:"1"},null,44,W))),128))]),o.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:"loading",style:e.normalizeStyle({lineHeight:`${o.fieldHeight}px`})},q,4)):e.createCommentVNode("",!0)],38)}const j=f(P,[["render",H],["__scopeId","data-v-6025c7f0"]]),Z={data(){return{options:{title:"",placeholder:"",format:null,maxlength:30,minlength:null,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[А-Яа-я- ]$"}}}},G={data(){return{options:{title:"",placeholder:"7xxx-xxx-xx-xx",format:"^\\+?\\d{4}-\\d{3}-\\d{2}-\\d{2}$",maxlength:14,minlength:14,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[0-9]$"}}}},Q={data(){return{options:{title:"",placeholder:"",format:"^\\+[1-9]{1}[0-9]{3,14}$",maxlength:14,minlength:null,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[0-9+]$"}}}},Y={data(){return{options:{title:"",placeholder:"Введите Email",format:"^\\w+([\\.-]?\\w+)*@\\w+([\\.-]?\\w+)*(\\.\\w{2,3})+$",maxlength:30,minlength:null,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[A-Za-z0-9@.\\-_]$"}}}},J={data(){return{options:{title:"",format:"^\\d{12}$",maxlength:12,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[0-9]$"}}}},X={data(){return{options:{title:"КБе",format:"^[1-2][1-9]$",maxlength:2,tooltip:"Обязательное поле",warn:"Код КБе может быть только от 11 до 29",sintax:"^[0-9]$"}}}},v={data(){return{options:{title:"БИН",format:"^\\d{4}[4-6][0-3]\\d{6}$",maxlength:12,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[0-9]$"}}}},ee={data(){return{options:{title:"БИК",format:"^[A-Z]{8}$",maxlength:8,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[A-z]$"}}}},te={data(){return{options:{title:"Счет",format:"^KZ\\d{18}$",maxlength:20,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"^[A-z0-9]$"}}}},ne={data(){return{options:{title:"Тариф",format:"^\\d*.?\\d*$",maxlength:10,minlength:null,tooltip:"Обязательное поле",warn:"Не соответствует формату",sintax:"[0-9.]"}}}},oe={mixins:[te],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function le(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),title:t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.maxlength,warningMsg:t.options.warn,sintax:t.options.sintax,capitalize:"",column:""},t.$attrs),null,16,["modelValue","title","rule","tooltipMsg","max","min","warningMsg","sintax"])}const ae=f(oe,[["render",le]]),ie={mixins:[ee],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function se(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.maxlength,warningMsg:t.options.warn,sintax:t.options.sintax,capitalize:""},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const re=f(ie,[["render",se]]),ce={mixins:[v],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function de(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.maxlength,warningMsg:t.options.warn,sintax:t.options.sintax},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const me=f(ce,[["render",de]]),pe={mixins:[Y],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function he(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),placeholder:t.options.placeholder,label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.minlength,warningMsg:t.options.warn,sintax:t.options.sintax},t.$attrs),null,16,["modelValue","placeholder","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const fe=f(pe,[["render",he]]),ue={mixins:[Z],components:{FormInput:u},props:{value:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.value},set(t){this.$emit("input",t)}}}};function ge(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.minlength,warningMsg:t.options.warn,sintax:t.options.sintax,placeholder:t.options.placeholder},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax","placeholder"])}const ke=f(ue,[["render",ge]]),ye={mixins:[J],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function be(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.maxlength,warningMsg:t.options.warn,sintax:t.options.sintax},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const we=f(ye,[["render",be]]),Be={mixins:[X],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function Ve(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.maxlength,warningMsg:t.options.warn,sintax:t.options.sintax},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const Se=f(Be,[["render",Ve]]),Ce={mixins:[Q],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function Ee(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.minlength,warningMsg:t.options.warn,sintax:t.options.sintax,capitalize:""},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const Ie=f(Ce,[["render",Ee]]),_e={mixins:[G],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function $e(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.minlength,warningMsg:t.options.warn,sintax:t.options.sintax,placeholder:t.options.placeholder,capitalize:"",mobile:""},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax","placeholder"])}const xe=f(_e,[["render",$e]]),Ne={mixins:[ne],components:{FormInput:u},emits:["update:modelValue"],props:{modelValue:{type:String},label:{type:String,default:""}},computed:{inputVal:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function De(t,n,o,r,i,l){const s=e.resolveComponent("FormInput");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.inputVal,"onUpdate:modelValue":n[0]||(n[0]=a=>l.inputVal=a),label:o.label||t.options.title,rule:t.options.format,tooltipMsg:t.options.tooltip,max:t.options.maxlength,min:t.options.minlength,warningMsg:t.options.warn,sintax:t.options.sintax,decimal:""},t.$attrs),null,16,["modelValue","label","rule","tooltipMsg","max","min","warningMsg","sintax"])}const Fe=f(Ne,[["render",De]]);k('',"icon-eye-460f16");const Me="icon-eye-460f16",Oe={class:"input-password-container"},ze=["type","placeholder"],Ae=f({__name:"InputPassword",props:{modelValue:String,placeholder:{type:String,default:"Пароль"}},emits:["update:modelValue"],setup(t,{emit:n}){const o=t,r=n,i=e.ref(""),l=d=>{i.value=d.target.value,r("update:modelValue",i.value)};e.watchEffect(()=>{i.value=o.modelValue});const s=e.ref("password"),a=()=>{s.value==="password"?s.value="text":s.value="password"};return(d,p)=>(e.openBlock(),e.createElementBlock("div",Oe,[e.withDirectives(e.createElementVNode("input",{type:s.value,placeholder:t.placeholder,"onUpdate:modelValue":p[0]||(p[0]=c=>i.value=c),onInput:l,autocomplete:"on"},null,40,ze),[[e.vModelDynamic,i.value]]),e.withDirectives(e.createElementVNode("div",{class:"icon",onClick:a},[e.createVNode(g,{iconId:e.unref(Me)},null,8,["iconId"])],512),[[e.vShow,i.value]])]))}},[["__scopeId","data-v-4878215a"]]);k('',"icon-arrow-down-4c8d77");const Le="icon-arrow-down-4c8d77",Te={components:{IconBase:g},props:{options:{required:!0},defaultValue:{required:!1},label:{type:String,default:""}},data(){return{isClicked:!1,isChosed:!1,chosedValue:null,chosedName:null,optionValue:null,icon:"SelectArrow.svg",iconUp:"Arrow-up.svg",isMouseLeftClick:!1,tabOption:1,windowHeight:null,topOffset:null,scrollTop:null,reverseOptions:!1,chosedOptionId:0,arrowDown:Le}},methods:{scrollToElement(t){try{let o=document.getElementById("option"+t).offsetTop;document.getElementById("options-container").scrollTo({top:o,behavior:"smooth"})}catch(n){console.log(n);return}},onResize(){this.windowHeight=window.innerHeight},handleScroll(){this.scrollTop=window.scrollY},handleEnter(){var t=this.options[this.tabOption].name,n=this.options[this.tabOption].value,o=this.tabOption;this.handleChoice(t,n,o)},pressMouseLeft(){this.isMouseLeftClick=!0},goUp(){if(this.tabOption==0){this.tabOption=this.options.length-1;return}this.tabOption-1==0?this.options[this.tabOption-1].value==this.optionValue?this.tabOption=this.options.length-1:this.tabOption-=1:this.options[this.tabOption-1].value==this.optionValue?this.tabOption-=2:this.tabOption-=1},goDown(){if(this.tabOption==this.options.length-1){this.options[0].value==this.optionValue?this.tabOption=1:this.tabOption=0;return}this.tabOption+1==this.options.length-1?this.options[this.tabOption+1].value==this.optionValue?this.tabOption=0:this.tabOption+=1:this.options[this.tabOption+1].value==this.optionValue?this.tabOption+=2:this.tabOption+=1},pressUp(){this.reverseOptions?this.goDown():this.goUp()},pressDown(){this.reverseOptions?this.goUp():this.goDown()},onFocus(){this.isClicked=!0,document.documentElement.style.overflow="hidden"},offFocus(){this.isClicked=!1,document.documentElement.style.overflow="auto"},showOrHide(){},handleChoice(t,n,o){this.$refs.select.blur(),this.isChosed=!1,this.chosedName=t,this.optionValue=n,this.chosedOptionId=o,this.$emit("chosed-option",this.chosedName,this.optionValue)},getPosition(){this.topOffset=this.$refs.select.getBoundingClientRect().top}},mounted(){this.getPosition()},computed:{filteredArray:function(){var t=[];for(let n=0;n0&&(this.tabOption=0)),this.getPosition();var t=this.topOffset-this.scrollTop;if(t>this.windowHeight/2?this.reverseOptions=!0:this.reverseOptions=!1,this.isClicked){document.documentElement.style.overflow="hidden";return}else document.documentElement.style.overflow="auto"},options:function(){this.options.length>0&&(this.optionValue=this.options[0].value,this.chosedName=this.options[0].text)},tabOption:function(){this.isClicked&&this.scrollToElement(this.tabOption)}},created(){this.options.length>0&&(this.optionValue=this.options[0].value,this.chosedName=this.options[0].text),this.$emit("chosed-option",this.chosedName,this.optionValue),window.addEventListener("scroll",this.handleScroll()),this.$nextTick(()=>{window.addEventListener("resize",this.onResize())})},unmounted(){window.removeEventListener("scroll",this.handleScroll()),window.removeEventListener("resize",this.onResize())}},Re={class:"select-root"},Pe={key:0},Ke=["id","onClick"];function Ue(t,n,o,r,i,l){const s=e.resolveComponent("IconBase");return e.openBlock(),e.createElementBlock("div",Re,[o.label?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{onBlur:n[1]||(n[1]=(...a)=>l.offFocus&&l.offFocus(...a)),onFocus:n[2]||(n[2]=(...a)=>l.onFocus&&l.onFocus(...a)),tabindex:"0",ref:"select",class:"select-dropdown",onKeyup:[n[3]||(n[3]=e.withKeys((...a)=>l.pressUp&&l.pressUp(...a),["up"])),n[5]||(n[5]=e.withKeys((...a)=>l.handleEnter&&l.handleEnter(...a),["enter"]))],onKeydown:n[4]||(n[4]=e.withKeys((...a)=>l.pressDown&&l.pressDown(...a),["down"]))},[e.createElementVNode("div",{onClick:n[0]||(n[0]=(...a)=>l.showOrHide&&l.showOrHide(...a)),class:"main-a option-selected",ref:"selectBody"},[e.createElementVNode("span",null,e.toDisplayString(i.chosedName),1),o.options.length>1?(e.openBlock(),e.createBlock(s,{key:0,iconId:i.arrowDown,height:"8px",width:"12px",class:e.normalizeClass(i.isClicked?"arr-up":"arr-down")},null,8,["iconId","class"])):e.createCommentVNode("",!0)],512),i.isClicked&&o.options.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["options-container",{reverse:i.reverseOptions,regular:!i.reverseOptions}]),id:"options-container"},[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.options,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value!=i.optionValue?(e.openBlock(),e.createElementBlock("div",{id:"option"+d,key:d,class:e.normalizeClass(["option",{"key-up":i.tabOption==d}]),value:"item.value",onClick:p=>l.handleChoice(a.text,a.value,d)},[(e.openBlock(),e.createElementBlock("span",{key:d+"msg"},e.toDisplayString(a.text),1))],10,Ke)):e.createCommentVNode("",!0)],64))),256))])],2)):e.createCommentVNode("",!0)],544)])}const We=f(Te,[["render",Ue],["__scopeId","data-v-01259a0d"]]),qe={};function He(t,n,o,r,i,l){return e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})}const je=f(qe,[["render",He],["__scopeId","data-v-06ebe762"]]),Ze={};function Ge(t,n,o,r,i,l){return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade",duration:1e3},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})}const Qe=f(Ze,[["render",Ge],["__scopeId","data-v-3bc654e2"]]),Ye={name:"UserDevider",props:{title:{type:String,required:!0}},data(){return{}},mounted(){},methods:{}};function Je(t,n,o,r,i,l){return e.openBlock(),e.createElementBlock("div",null,e.toDisplayString(o.title),1)}const Xe=f(Ye,[["render",Je],["__scopeId","data-v-d7d8fbc5"]]),ve={name:"CustomTable",components:{IconBase:g},props:{tableData:{type:Object,default:()=>{}},"bottom-row":{type:Boolean,default:!1},"custom-class":{type:String,default:""}},data(){return{}},methods:{clickIcon(t,n){this.$emit("click-icon",t,n)}}},et={key:0},tt={key:1,class:"table-iLS"},nt={class:"table-td-flex-container"},ot=["onClick"],lt=["colspan"];function at(t,n,o,r,i,l){const s=e.resolveComponent("IconBase");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["table-section-iLS",t.customClass])},[o.tableData?(e.openBlock(),e.createElementBlock("table",tt,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.headers,(a,d)=>(e.openBlock(),e.createElementBlock("th",{key:d},e.toDisplayString(a),1))),128)),e.renderSlot(t.$slots,"header",{},void 0,!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tableData.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(p,c)=>(e.openBlock(),e.createElementBlock("td",{key:c},[e.createElementVNode("div",nt,[e.createTextVNode(e.toDisplayString(p)+" ",1),c==a.length-1?e.renderSlot(t.$slots,"extrabutton",{key:0},void 0,!0):e.createCommentVNode("",!0)])]))),128)),"icons"in o.tableData?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.tableData.icons,(p,c)=>(e.openBlock(),e.createElementBlock("td",{key:p.title},[e.createElementVNode("div",{onClick:m=>l.clickIcon(d,c),class:"icons"},[e.createVNode(s,{iconId:p.icon,class:e.normalizeClass("icons")},null,8,["iconId"])],8,ot)]))),128)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"content",{},void 0,!0)]),t.bottomRow?(e.openBlock(),e.createElementBlock("tr",{key:d+"slt"},[e.createElementVNode("td",{colspan:a.length},[e.renderSlot(t.$slots,"bottom-row",{class:"bottom-row",index:d},void 0,!0)],8,lt)])):e.createCommentVNode("",!0)],64))),128))])])):(e.openBlock(),e.createElementBlock("span",et,"No data"))],2)}const it=f(ve,[["render",at],["__scopeId","data-v-44cb9bd8"]]),st={name:"CustomTable",components:{IconBase:g},props:{name:{type:String},"table-data":{type:Object},"hide-table":{default:!1,required:!1},checkbox:{default:!1},"specific-checkbox":{required:!1,default:()=>[]},"specific-btn":{default:!1,required:!1},"custom-btn":{default:!1},"exp-row":{required:!1,type:Boolean,default:!1},"bottom-row":{default:!1},"close-all":{required:!1},last:{type:Boolean},"blue-arrow":{type:Boolean,default:!0},"justify-start":{type:Boolean},"th-style":{type:Object},"action-style":{type:Object}},data(){return{state:[],isRowExpanded:[],checkboxList:[]}},created(){var n;let t=0;for(t;t<((n=this.tableData)==null?void 0:n.data.length);t++)this.state.push(!1),this.isRowExpanded.push(!1),this.checkbox&&this.checkboxList.push(!1);this.expRow&&(this.isRowExpanded[this.expRow]=!0)},methods:{handleEnterCheckbox(t){this.checkboxList[t]=!this.checkboxList[t]},clickIcon(t,n){this.$emit("click-icon",t,n,this.state)},clickAction(t,n){if(this.state[t]=!this.state[t],this.state[t]){let o=0;for(o;o0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["table-section-iLS",t.$attrs.class])},[o.name?(e.openBlock(),e.createElementBlock("h1",rt,e.toDisplayString(o.name),1)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"filters",{},void 0,!0),t.tableData?e.withDirectives((e.openBlock(),e.createElementBlock("table",dt,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableData.headers,(a,d)=>(e.openBlock(),e.createElementBlock("th",{key:d,style:e.normalizeStyle(t.thStyle)},e.toDisplayString(a),5))),128)),e.renderSlot(t.$slots,"header",{},void 0,!0),"buttons"in t.tableData?(e.openBlock(),e.createElementBlock("th",{key:0,style:e.normalizeStyle(t.thStyle)},e.toDisplayString(t.tableData.buttons.header),5)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"last-header",{},void 0,!0),o.last?(e.openBlock(),e.createElementBlock("th",{key:1,style:e.normalizeStyle(t.thStyle)},"Подробнее",4)):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tableData.data,(a,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[e.createElementVNode("tr",mt,[e.renderSlot(t.$slots,"content",{},void 0,!0),"icons"in t.tableData?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.tableData.icons,(p,c)=>(e.openBlock(),e.createElementBlock("td",{key:p.title},[e.createElementVNode("div",{onClick:m=>l.clickIcon(d,c),class:"icons"},[e.createVNode(s,{iconId:p.icon,class:e.normalizeClass("table-icon")},null,8,["iconId"])],8,pt)]))),128)):e.createCommentVNode("",!0),"parsingErrors"in t.tableData?(e.openBlock(),e.createElementBlock("td",ht,e.toDisplayString(t.tableData.parsingErrors[d].msg),1)):t.tableData.parsingErrors!==void 0&&t.tableData.parsingErrors.length<1?(e.openBlock(),e.createElementBlock("td",ft,"Ok")):e.createCommentVNode("",!0),"errors"in t.tableData?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(a,(p,c)=>(e.openBlock(),e.createElementBlock("td",{key:c,class:e.normalizeClass({warning:p==""&&t.tableData.errors[d].length>0&&c==t.tableData.errors[d]})},e.toDisplayString(p),3))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[o.checkbox&&t.specificCheckbox&&t.specificCheckbox[d]?(e.openBlock(),e.createElementBlock("td",ut,[e.createElementVNode("div",gt,[e.createElementVNode("label",kt,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":p=>i.checkboxList[d]=p,tabindex:"-1",type:"checkbox"},null,8,yt),[[e.vModelCheckbox,i.checkboxList[d]]]),e.createElementVNode("span",{class:"checkmark",tabindex:"0",onKeyup:e.withKeys(p=>l.handleEnterCheckbox(d),["enter"])},null,40,bt)])])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(p,c)=>(e.openBlock(),e.createElementBlock("td",{onClick:m=>l.expandRow(d),key:c},[e.createElementVNode("div",{class:e.normalizeClass({"clm-start":t.justifyStart&&c=="Name","clm-flex":c!="Name"})},[t.justifyStart&&c=="Name"?(e.openBlock(),e.createBlock(s,{key:0,iconName:p},null,8,["iconName"])):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(p),1)],2)],8,wt))),128))],64)),"buttons"in t.tableData?(e.openBlock(),e.createElementBlock("td",Bt,[t.customBtn?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.specificBtn?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.tableData.buttons.data,(p,c)=>(e.openBlock(),e.createElementBlock("a",{style:e.normalizeStyle(t.actionStyle),class:"btn underline",onClick:m=>l.clickAction(d,c),key:c},e.toDisplayString(p),13,Ct))),128)):(e.openBlock(),e.createElementBlock("span",St,"Нельзя отменить!"))],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.tableData.buttons.data,(p,c)=>(e.openBlock(),e.createElementBlock("a",{style:e.normalizeStyle(t.actionStyle),class:"btn underline",onKeyup:e.withKeys(m=>l.clickAction(d,c),["enter"]),onClick:m=>l.clickAction(d,c),key:c},e.toDisplayString(p),45,Vt))),128))])):e.createCommentVNode("",!0),o.last?(e.openBlock(),e.createElementBlock("td",{key:6,onClick:p=>l.expandRow(d)},[e.createVNode(s,{class:e.normalizeClass({"rotate-up":!i.isRowExpanded[d],"rotate-down":i.isRowExpanded[d]}),iconName:t.blueArrow?"blue-arrow":"subtract"},null,8,["class","iconName"])],8,Et)):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"table"},{default:e.withCtx(()=>[i.isRowExpanded[d]?(e.openBlock(),e.createElementBlock("tr",{key:-(d+1)},[e.renderSlot(t.$slots,"extended-item",{item:a},void 0,!0)])):e.createCommentVNode("",!0)]),_:2},1024)],64))),128)),t.bottomRow?(e.openBlock(),e.createElementBlock("tr",It,[e.createElementVNode("td",null,[e.renderSlot(t.$slots,"bottom-row",{class:"bottom-row"},void 0,!0)])])):e.createCommentVNode("",!0)])],512)),[[e.vShow,!t.hideTable]]):(e.openBlock(),e.createElementBlock("span",ct,"No data"))],2)):e.createCommentVNode("",!0)}const $t=f(st,[["render",_t],["__scopeId","data-v-c5a3901b"]]);k('',"icon-close-5ee2f1");const S="icon-close-5ee2f1",xt={class:"header"},Nt={class:"content"},Dt={class:"btns-row"},Ft=f({__name:"ModalWindow",props:{show:Boolean,title:{type:String,default:"Modal Window"},closeIcon:{type:Boolean,default:!0},styleBg:{type:Object,default:()=>({})},styleWin:{type:Object,default:()=>({})}},emits:["close"],setup(t,{expose:n,emit:o}){e.defineComponent({name:"ModalWindow"});const r=t,i=o,l=()=>{i("close")};n({closeModal:l});const s=e.ref(!1),a=e.ref(null),d=e.ref(null);return e.watch(()=>r.show,p=>{s.value=p,r.closeIcon&&p&&e.nextTick(()=>{a.value.focus()})},{immediate:!0}),(p,c)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade",duration:250},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{tabindex:"0",ref_key:"modalContainerRef",ref:d,class:"modal-container",style:e.normalizeStyle(t.styleBg),onKeyup:e.withKeys(l,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["modal-window","inner",p.$attrs.class]),style:e.normalizeStyle(t.styleWin)},[e.createElementVNode("div",xt,[e.createElementVNode("h2",null,e.toDisplayString(t.title),1),t.closeIcon?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"closeIconRef",ref:a,tabindex:"0",class:"close-icon underline",onKeydown:c[0]||(c[0]=e.withKeys(e.withModifiers(()=>{},["shift","prevent"]),["tab"])),onKeyup:e.withKeys(l,["enter"]),onClick:l},[e.createVNode(g,{iconId:e.unref(S)},null,8,["iconId"])],544)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Nt,[e.renderSlot(p.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",Dt,[e.renderSlot(p.$slots,"btns",{},void 0,!0)])],6)],36),[[e.vShow,s.value]])]),_:3}))}},[["__scopeId","data-v-80014dfe"]]);function Mt(t){return new RegExp(/^\d*\.?\d+(s|ms)$/).test(t)}function Ot(t,n,o){const r={},i=n.match(/^\d*\.?\d+/)[0],l=n.match(/s|(ms)$/)[0],s=Math.round(i*1e3*o)/1e3;return r[t]=s+l,r}const zt={name:"SpinnerLoader",props:{loading:{type:Boolean,default:!0},size:{type:Number,default:35},color:{type:String,default:"#3498db"},duration:{type:String,default:"1.2s",validator:Mt}},data(){return{spinnerStyleDuration:{animationDuration:this.duration},spinnerStyle:{top:`${this.size*.0375}px`,left:`${this.size*.4625}px`,width:`${this.size*.075}px`,height:`${this.size*.225}px`,background:this.color}}},computed:{divsStyles(){const t=[];for(let n=1;n<=12;n++)t.push(Ot("animationDelay",this.duration,.083*n-1));return t}}};function At(t,n,o,r,i,l){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"lds-spinner",style:e.normalizeStyle({width:`${o.size}px`,height:`${o.size}px`})},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,s=>e.createElementVNode("div",{key:`lds-spinner-${s}`,style:e.normalizeStyle([i.spinnerStyleDuration,{transformOrigin:`${o.size*.5}px ${o.size*.5}px`},l.divsStyles[s-1]])},[e.createElementVNode("div",{class:"div-after",style:e.normalizeStyle([i.spinnerStyle])},null,4)],4)),64))],4)),[[e.vShow,o.loading]])}const Lt=f(zt,[["render",At],["__scopeId","data-v-f3f30b32"]]);k('',"icon-info-5fe70c");const C="icon-info-5fe70c";k('',"icon-error-06b12b");const Tt="icon-error-06b12b";k('',"icon-success-c6d5a3");const Rt="icon-success-c6d5a3",Pt={components:{IconBase:g},inject:["alertStore"],props:{"alert-type":{type:String,default:"info"},useStore:{type:Boolean,default:!0},"color-info":{type:String,default:"#2585EE"},"color-warning":{type:String,default:"#FFCF40"},"color-error":{type:String,default:"#F2363B"},"color-success":{type:String,default:"#22C993"},isClicked:{type:Boolean,default:!1},"alert-text":{type:String,default:"This is an alert"},wide:{type:Boolean,default:!1},store:{type:String,default:"pinia"},style:{type:Object,default:()=>({})}},data(){return{alertIcon:()=>{switch(this.useStore?this.alertStore.type:this.alertType){case"error":return Tt;case"warning":return w;case"success":return Rt;case"info":return C;default:return C}},iconClose:S}},computed:{borderColor(){const t=this.useStore?this.alertStore.type:this.alertType;let n=null;switch(t){case"error":n=this.colorError;break;case"warning":n=this.colorWarning;break;case"success":n=this.colorSuccess;break;case"info":n=this.colorInfo;break}let o={borderLeft:"5px solid "+n};if(this.style)for(const r in this.style)o[r]=this.style[r];return o}},methods:{hideSlot(){this.useStore?this.alertStore.height?this.alertStore.clickAlertWide(!1):this.alertStore.clickAlert(!1):this.$emit("update:is-clicked",!1)}},mounted(){this.$nextTick(function(){this.$refs.closeIconRef.focus()})},watch:{isClicked(t){t&&this.$nextTick(()=>{this.$refs.closeIconRef.focus()})},"alertStore.isClicked"(t){t&&this.$nextTick(()=>{this.$refs.closeIconRef.focus()})}}},Kt={class:"first"};function Ut(t,n,o,r,i,l){const s=e.resolveComponent("IconBase");return e.openBlock(),e.createBlock(e.Transition,{name:"slide-fade",duration:250},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{tabindex:"-1",ref:"alertRef",class:e.normalizeClass(["ealert-container",t.$attrs.class]),onKeydown:n[3]||(n[3]=e.withKeys((...a)=>l.hideSlot&&l.hideSlot(...a),["esc"]))},[e.createElementVNode("div",{class:e.normalizeClass(["ealert-container__popup",{wide:o.useStore?l.alertStore.height:o.wide}]),style:e.normalizeStyle(l.borderColor)},[e.createElementVNode("div",Kt,[e.createVNode(s,{class:e.normalizeClass("alert-icon"),iconId:i.alertIcon()},null,8,["iconId"]),e.createElementVNode("span",null,e.toDisplayString(o.useStore?l.alertStore.text:t.alertText),1)]),e.createElementVNode("div",{class:"close underline",tabindex:"0",ref:"closeIconRef",onClick:n[0]||(n[0]=(...a)=>l.hideSlot&&l.hideSlot(...a)),onKeydown:[n[1]||(n[1]=e.withKeys(e.withModifiers(()=>{},["shift","prevent"]),["tab"])),n[2]||(n[2]=e.withKeys((...a)=>l.hideSlot&&l.hideSlot(...a),["enter"]))]},[e.createVNode(s,{class:e.normalizeClass("close-icon"),iconId:i.iconClose},null,8,["iconId"])],544)],6)],34),[[e.vShow,o.useStore?l.alertStore.isClicked:o.isClicked]])]),_:1})}const Wt=f(Pt,[["render",Ut],["__scopeId","data-v-68bec444"]]),qt={state:{isClicked:!1,defAlert:{text:"Hello from store",type:"info"},height:!1},actions:{successSave(t){t.commit("clickAlert",!0),t.commit("setMessage",{text:"Данные успешно сохранены",type:"warning"})},callAlert(t,n){t.commit("setMessage",n),t.commit("setHeight",!0),t.commit("clickAlert",!0)}},mutations:{setHeight(t,n){t.height=n},clickAlertWide(t,n){t.height=!0,t.isClicked=n},clickAlert(t,n){t.height=!1,t.isClicked=n},setMessage(t,n){t.defAlert.text=n.text,t.defAlert.type=n.type}},getters:{isClicked:t=>t.isClicked,defAlert:t=>t.defAlert,height:t=>t.height}},Ht={state:()=>({isClicked:!1,height:!1,text:"Hello from store",type:"info"}),actions:{callWarn(t){this.callAlert({text:t,type:"warning"})},callInfo(t){this.callAlert({text:t,type:"info"})},callErr(t){this.callAlert({text:t,type:"error"})},callSuccess(t){this.callAlert({text:t,type:"success"})},callAlert(t){this.setDefAlert(t),this.setHeight(!0),this.clickAlert(!0)},setHeight(t){this.height=t},clickAlertWide(t){this.height=!0,this.isClicked=t},clickAlert(t){this.height=!1,this.isClicked=t},setDefAlert(t){this.text=t.text,this.type=t.type}}};h.BaseTransition=je,h.CodeInput=j,h.CustomSelect=We,h.CustomTable=$t,h.DefaultAlert=Wt,h.FormInput=u,h.IconBase=g,h.InputAcc=ae,h.InputBik=re,h.InputBin=me,h.InputEmail=fe,h.InputFIO=ke,h.InputIIN=we,h.InputKbe=Se,h.InputPassword=Ae,h.InputPhone=Ie,h.InputPhoneLogin=xe,h.InputTariff=Fe,h.ModalWindow=Ft,h.SlideTransition=Qe,h.SpinnerLoader=Lt,h.TableLite=it,h.UserDevider=Xe,h.VueTooltip=B,h.appAlertPinia=Ht,h.appAlertVue=qt,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});