@factoringplus/pl-components-pack-v3 0.4.52 → 0.4.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24718,9 +24718,9 @@ const _sfc_main$z = {
24718
24718
  prop: __props.prop
24719
24719
  }, {
24720
24720
  default: withCtx(() => [
24721
- !unref(currency) ? (openBlock(), createBlock(_component_el_input, {
24721
+ !unref(currency) ? (openBlock(), createBlock(_component_el_input, mergeProps({
24722
24722
  key: 0,
24723
- class: normalizeClass({ padding: props.prefix }),
24723
+ class: { padding: props.prefix },
24724
24724
  minlength: __props.minLength,
24725
24725
  maxlength: __props.maxLength,
24726
24726
  disabled: props.disabled,
@@ -24728,11 +24728,12 @@ const _sfc_main$z = {
24728
24728
  modelValue: unref(modelValue),
24729
24729
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
24730
24730
  type: unref(getTypeInput),
24731
- resize: "none",
24731
+ resize: "none"
24732
+ }, _ctx.$attrs, {
24732
24733
  autosize: { minRows: 3, maxRows: 6 },
24733
24734
  clearable: props.clearable,
24734
24735
  onInput: updateValue
24735
- }, null, 8, ["class", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24736
+ }), null, 16, ["class", "minlength", "maxlength", "disabled", "placeholder", "modelValue", "type", "clearable"])) : (openBlock(), createBlock(_component_el_input, mergeProps({
24736
24737
  key: 1,
24737
24738
  onKeydown: keydown,
24738
24739
  class: { padding: props.prefix },
@@ -45,7 +45,7 @@
45
45
  * Vue Currency Input 2.4.0
46
46
  * (c) 2018-2022 Matthias Stiller
47
47
  * @license MIT
48
- */const escapeRegExp=V=>V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),removeLeadingZeros=V=>V.replace(/^0+(0$|[^0])/,"$1"),count=(V,z)=>(V.match(new RegExp(escapeRegExp(z),"g"))||[]).length,substringBefore=(V,z)=>V.substring(0,V.indexOf(z));var CurrencyDisplay;(function(V){V.symbol="symbol",V.narrowSymbol="narrowSymbol",V.code="code",V.name="name",V.hidden="hidden"})(CurrencyDisplay||(CurrencyDisplay={}));var ValueScaling;(function(V){V.precision="precision",V.thousands="thousands",V.millions="millions",V.billions="billions"})(ValueScaling||(ValueScaling={}));const DECIMAL_SEPARATORS=[",",".","\u066B"],INTEGER_PATTERN="(0|[1-9]\\d*)";class CurrencyFormat{constructor(z){var y,j,$,le,Fe,Ve;const{currency:de,currencyDisplay:oe,locale:ae,precision:ue,accountingSign:Ne}=z;this.locale=ae,this.options={style:"currency",currency:de,currencySign:Ne?"accounting":void 0,currencyDisplay:oe!==CurrencyDisplay.hidden?oe:void 0};const pe=new Intl.NumberFormat(ae,this.options),he=pe.formatToParts(123456);this.currency=(y=he.find(({type:ze})=>ze==="currency"))===null||y===void 0?void 0:y.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(ze=>ze.toLocaleString(ae)),this.decimalSymbol=(j=he.find(({type:ze})=>ze==="decimal"))===null||j===void 0?void 0:j.value,this.groupingSymbol=($=he.find(({type:ze})=>ze==="group"))===null||$===void 0?void 0:$.value,this.minusSign=(le=pe.formatToParts(-1).find(({type:ze})=>ze==="minusSign"))===null||le===void 0?void 0:le.value,this.decimalSymbol===void 0?this.minimumFractionDigits=this.maximumFractionDigits=0:typeof ue=="number"?this.minimumFractionDigits=this.maximumFractionDigits=ue:(this.minimumFractionDigits=(Fe=ue==null?void 0:ue.min)!==null&&Fe!==void 0?Fe:pe.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=(Ve=ue==null?void 0:ue.max)!==null&&Ve!==void 0?Ve:pe.resolvedOptions().maximumFractionDigits);const ie=ze=>substringBefore(ze,this.digits[1]),xe=ze=>ze.substring(ze.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=ie(pe.format(1)),this.suffix=xe(pe.format(1)),this.negativePrefix=ie(pe.format(-1)),this.negativeSuffix=xe(pe.format(-1))}parse(z){if(z){const y=this.isNegative(z);z=this.normalizeDigits(z),z=this.stripCurrency(z,y),z=this.stripSignLiterals(z);const j=this.decimalSymbol?`(?:${escapeRegExp(this.decimalSymbol)}(\\d*))?`:"",$=this.stripGroupingSeparator(z).match(new RegExp(`^${INTEGER_PATTERN}${j}$`));if($&&this.isValidIntegerFormat(this.decimalSymbol?z.split(this.decimalSymbol)[0]:z,Number($[1])))return Number(`${y?"-":""}${this.onlyDigits($[1])}.${this.onlyDigits($[2]||"")}`)}return null}isValidIntegerFormat(z,y){const j={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(y.toLocaleString(this.locale,{...j,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(y.toLocaleString(this.locale,{...j,useGrouping:!1})),!1)].includes(z)}format(z,y={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return z!=null?z.toLocaleString(this.locale,{...this.options,...y}):""}toFraction(z){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(z.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(z){return!!this.normalizeDigits(this.stripGroupingSeparator(z)).match(new RegExp(`^${INTEGER_PATTERN}${escapeRegExp(this.decimalSymbol)}$`))}isNegative(z){return z.startsWith(this.negativePrefix)||this.minusSign===void 0&&(z.startsWith("(")||z.startsWith("-"))||this.minusSign!==void 0&&z.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(z,y){return`${y?this.negativePrefix:this.prefix}${z}${y?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(z){return this.groupingSymbol!==void 0?z.replace(new RegExp(escapeRegExp(this.groupingSymbol),"g"),""):z}stripSignLiterals(z){return this.minusSign!==void 0?z.replace("-",this.minusSign).replace(this.minusSign,""):z.replace(/[-()]/g,"")}stripCurrency(z,y){return z.replace(y?this.negativePrefix:this.prefix,"").replace(y?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(z,y){return DECIMAL_SEPARATORS.forEach(j=>{z=z.substr(0,y)+z.substr(y).replace(j,this.decimalSymbol)}),z}normalizeDigits(z){return this.digits[0]!=="0"&&this.digits.forEach((y,j)=>{z=z.replace(new RegExp(y,"g"),String(j))}),z}onlyDigits(z){return this.normalizeDigits(z).replace(/\D+/g,"")}onlyLocaleDigits(z){return z.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class AbstractInputMask{constructor(z){this.currencyFormat=z}}class DefaultInputMask extends AbstractInputMask{conformToMask(z,y=""){const j=this.currencyFormat.isNegative(z),$=he=>he===""&&j&&!(this.currencyFormat.minusSign===void 0?y===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:y===this.currencyFormat.negativePrefix),le=he=>{if($(he))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(he))return he;if(he.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(he)}return null};let Fe=z;Fe=this.currencyFormat.stripCurrency(Fe,j),Fe=this.currencyFormat.stripSignLiterals(Fe);const Ve=le(Fe);if(Ve!=null)return this.currencyFormat.insertCurrency(Ve,j);const[de,...oe]=Fe.split(this.currencyFormat.decimalSymbol),ae=removeLeadingZeros(this.currencyFormat.onlyDigits(de)),ue=this.currencyFormat.onlyDigits(oe.join("")).substr(0,this.currencyFormat.maximumFractionDigits),Ne=oe.length>0&&ue.length===0,pe=ae===""&&j&&(this.currencyFormat.minusSign===void 0?y===z.slice(0,-2)+this.currencyFormat.negativeSuffix:y===z.slice(0,-1));return Ne||pe||$(ae)?y:ae.match(/\d+/)?{numberValue:Number(`${j?"-":""}${ae}.${ue}`),fractionDigits:ue}:""}}class AutoDecimalDigitsInputMask extends AbstractInputMask{conformToMask(z,y=""){if(z===""||this.currencyFormat.parse(y)===0&&this.currencyFormat.stripCurrency(y,!0).slice(0,-1)===this.currencyFormat.stripCurrency(z,!0))return"";const j=this.currencyFormat.isNegative(z),$=this.currencyFormat.stripSignLiterals(z)===""?-0:Number(`${j?"-":""}${removeLeadingZeros(this.currencyFormat.onlyDigits(z))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:$,fractionDigits:$.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const DEFAULT_OPTIONS={locale:void 0,currency:void 0,currencyDisplay:void 0,exportValueAsInteger:!1,hideGroupingSeparatorOnFocus:!0,hideCurrencySymbolOnFocus:!0,hideNegligibleDecimalDigitsOnFocus:!0,precision:void 0,autoDecimalDigits:!1,valueRange:void 0,autoSign:!0,useGrouping:!0,valueScaling:void 0};class CurrencyInput{constructor(z,y){this.el=z,this.numberValue=null,this.addEventListener(),this.init(y),this.setValue(this.currencyFormat.parse(this.el.value))}setOptions(z){this.init(z),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){return{number:this.valueScaling&&this.numberValue!=null?this.toInteger(this.numberValue,this.valueScaling):this.numberValue,formatted:this.formattedValue}}setValue(z){const y=this.valueScaling!==void 0&&z!=null?this.toFloat(z,this.valueScaling):z;y!==this.numberValue&&this.applyFixedFractionFormat(y)}dispatchEvent(z){this.el.dispatchEvent(new CustomEvent(z,{detail:this.getValue()}))}init(z){this.options={...DEFAULT_OPTIONS,...z},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new CurrencyFormat(this.options),this.numberMask=this.options.autoDecimalDigits?new AutoDecimalDigitsInputMask(this.currencyFormat):new DefaultInputMask(this.currencyFormat);const y={[ValueScaling.precision]:this.currencyFormat.maximumFractionDigits,[ValueScaling.thousands]:3,[ValueScaling.millions]:6,[ValueScaling.billions]:9};this.options.exportValueAsInteger?this.valueScaling=y[ValueScaling.precision]:this.valueScaling=this.options.valueScaling?y[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=this.valueScaling!==void 0&&this.options.valueScaling!==ValueScaling.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var z,y;let j=this.toFloat(-Number.MAX_SAFE_INTEGER);return((z=this.options.valueRange)===null||z===void 0?void 0:z.min)!==void 0&&(j=Math.max((y=this.options.valueRange)===null||y===void 0?void 0:y.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&j<0&&(j=0),j}getMaxValue(){var z,y;let j=this.toFloat(Number.MAX_SAFE_INTEGER);return((z=this.options.valueRange)===null||z===void 0?void 0:z.max)!==void 0&&(j=Math.min((y=this.options.valueRange)===null||y===void 0?void 0:y.max,this.toFloat(Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&j<0&&(j=this.toFloat(Number.MAX_SAFE_INTEGER)),j}toFloat(z,y){return z/Math.pow(10,y!=null?y:this.valueScalingFractionDigits)}toInteger(z,y){return Number(z.toFixed(y!=null?y:this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(z){return z!=null?Math.min(Math.max(z,this.minValue),this.maxValue):z}applyFixedFractionFormat(z,y=!1){this.format(this.currencyFormat.format(this.validateValueRange(z))),(z!==this.numberValue||y)&&this.dispatchEvent("change")}format(z,y=!1){if(z!=null){this.decimalSymbolInsertedAt!==void 0&&(z=this.currencyFormat.normalizeDecimalSeparator(z,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const j=this.numberMask.conformToMask(z,this.formattedValue);let $;if(typeof j=="object"){const{numberValue:le,fractionDigits:Fe}=j;let{maximumFractionDigits:Ve,minimumFractionDigits:de}=this.currencyFormat;this.focus?de=y?Fe.replace(/0+$/,"").length:Math.min(Ve,Fe.length):Number.isInteger(le)&&!this.options.autoDecimalDigits&&(this.options.precision===void 0||de===0)&&(de=Ve=0),$=this.toInteger(Math.abs(le))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(le,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:de,maximumFractionDigits:Ve})}else $=j;this.options.autoSign&&(this.maxValue<=0&&!this.currencyFormat.isNegative($)&&this.currencyFormat.parse($)!==0&&($=$.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&($=$.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix))),(this.options.currencyDisplay===CurrencyDisplay.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&($=$.replace(this.currencyFormat.negativePrefix,this.currencyFormat.minusSign!==void 0?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,this.currencyFormat.minusSign!==void 0?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=$,this.numberValue=this.currencyFormat.parse($)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.dispatchEvent("input")}addEventListener(){this.el.addEventListener("input",z=>{if(!z.detail){const{value:y,selectionStart:j}=this.el,$=z;if(j&&$.data&&DECIMAL_SEPARATORS.includes($.data)&&(this.decimalSymbolInsertedAt=j-1),this.format(y),this.focus&&j!=null){const le=()=>{const{prefix:Fe,suffix:Ve,decimalSymbol:de,maximumFractionDigits:oe,groupingSymbol:ae}=this.currencyFormat;let ue=y.length-j;const Ne=this.formattedValue.length;if(this.currencyFormat.minusSign===void 0&&(y.startsWith("(")||y.startsWith("-"))&&!y.endsWith(")"))return Ne-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(j).length:1;if(this.formattedValue.substr(j,1)===ae&&count(this.formattedValue,ae)===count(y,ae)+1)return Ne-ue-1;if(Ne<ue)return j;if(de!==void 0&&y.indexOf(de)!==-1){const pe=y.indexOf(de)+1;if(Math.abs(Ne-y.length)>1&&j<=pe)return this.formattedValue.indexOf(de)+1;!this.options.autoDecimalDigits&&j>pe&&this.currencyFormat.onlyDigits(y.substr(pe)).length-1===oe&&(ue-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===CurrencyDisplay.hidden?Ne-ue:Math.max(Ne-Math.max(ue,Ve.length),Fe.length)};this.setCaretPosition(le())}}},{capture:!0}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:z,selectionStart:y,selectionEnd:j}=this.el;if(this.format(z,this.options.hideNegligibleDecimalDigitsOnFocus),y!=null&&j!=null&&Math.abs(y-j)>0)this.setCaretPosition(0,this.el.value.length);else if(y!=null){const $=this.getCaretPositionOnFocus(z,y);this.setCaretPosition($)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",z=>{z.detail||this.dispatchEvent("change")},{capture:!0})}getCaretPositionOnFocus(z,y){if(this.numberValue==null)return y;const{prefix:j,negativePrefix:$,suffix:le,negativeSuffix:Fe,groupingSymbol:Ve,currency:de}=this.currencyFormat,oe=this.numberValue<0,ae=oe?$:j,ue=ae.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===CurrencyDisplay.hidden){if(oe){if(y<=1)return 1;if(z.endsWith(")")&&y>z.indexOf(")"))return this.formattedValue.length-1}}else{const pe=oe?Fe.length:le.length;if(y>=z.length-pe)return this.formattedValue.length-pe;if(y<ue)return ue}let Ne=y;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==CurrencyDisplay.hidden&&y>=ue&&de!==void 0&&ae.includes(de)&&(Ne-=ue,oe&&(Ne+=1)),this.options.hideGroupingSeparatorOnFocus&&Ve!==void 0&&(Ne-=count(z.substring(0,y),Ve)),Ne}setCaretPosition(z,y=z){this.el.setSelectionRange(z,y)}}const findInput=V=>V!=null&&V.matches("input")?V:V==null?void 0:V.querySelector("input");var useCurrencyInput=(V,z)=>{var y;let j,$;const le=vue.ref(null),Fe=vue.ref(null),Ve=vue.ref(null),de=vue.getCurrentInstance(),oe=(Ie,Ce)=>de==null?void 0:de.emit(Ie,Ce),ae=(y=de==null?void 0:de.attrs.modelModifiers)===null||y===void 0?void 0:y.lazy,ue=vue.computed(()=>de==null?void 0:de.props.modelValue),Ne="update:modelValue",pe=ae?"update:modelValue":"change",he=!ae,ie=ae||!(de!=null&&de.attrs.onChange),xe=Ie=>{Ie.detail&&(z!==!1&&ue.value!==Ie.detail.number&&oe(Ne,Ie.detail.number),Ve.value=Ie.detail.number,Fe.value=Ie.detail.formatted)},ze=Ie=>{Ie.detail&&(z!==!1&&oe(pe,Ie.detail.number),Ve.value=Ie.detail.number,Fe.value=Ie.detail.formatted)};return vue.watch(le,Ie=>{var Ce,$e;Ie?($=findInput(($e=(Ce=Ie)===null||Ce===void 0?void 0:Ce.$el)!==null&&$e!==void 0?$e:Ie),$?(j=new CurrencyInput($,V),he&&$.addEventListener("input",xe),ie&&$.addEventListener("change",ze),j.setValue(ue.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')):j=null}),vue.onUnmounted(()=>{he&&($==null||$.removeEventListener("input",xe)),ie&&($==null||$.removeEventListener("change",ze))}),{inputRef:le,numberValue:Ve,formattedValue:Fe,setValue:Ie=>j==null?void 0:j.setValue(Ie),setOptions:Ie=>j==null?void 0:j.setOptions(Ie)}},plCurrency_vue_vue_type_style_index_0_lang="";const _hoisted_1$w=vue.createElementVNode("span",{class:"pl-currency__rub-icon"},"\u20BD",-1),__default__$a={name:"PlCurrency"},_sfc_main$B=Object.assign(__default__$a,{props:{width:String,modelValue:Number,round:{type:Boolean,default:!1},currencyInputOptions:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V,{modelValue:j,round:$,currencyInputOptions:le}=vue.toRefs(y),Fe=vue.reactive({currency:"EUR",currencyDisplay:"hidden",precision:$.value?0:2,hideGroupingSeparatorOnFocus:!1,...vue.unref(le)}),{inputRef:Ve,formattedValue:de,setValue:oe}=useCurrencyInput(Fe);return vue.watch(j,ae=>{oe(ae)}),(ae,ue)=>{const Ne=ElInput;return vue.openBlock(),vue.createBlock(Ne,vue.mergeProps({style:`width: ${V.width};`},ae.$attrs,{ref_key:"inputRef",ref:Ve,modelValue:vue.unref(de),"onUpdate:modelValue":ue[0]||(ue[0]=pe=>vue.isRef(de)?de.value=pe:null),class:"pl-currency"}),{append:vue.withCtx(()=>[_hoisted_1$w]),_:1},16,["style","modelValue"])}}}),PlCurrencyPlugin={install(V){V.component("PlCurrency",_sfc_main$B)}};var form="";const _sfc_main$A={__name:"pl-form",setup(V,{expose:z}){const y=vue.ref(null);return z({elFormRef:y}),(j,$)=>{const le=ElForm;return vue.openBlock(),vue.createBlock(le,vue.mergeProps({ref_key:"elFormRef",ref:y},j.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(j.$slots,"default")]),_:3},16)}}},PlFormPlugin={install(V){V.component("PlForm",_sfc_main$A)}};var formItem="",_imports_0$8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOCAyLjVDNC45NjIxNCAyLjUgMi41IDQuOTYyMTQgMi41IDhDMi41IDExLjAzNzkgNC45NjIxNCAxMy41IDggMTMuNUMxMS4wMzc5IDEzLjUgMTMuNSAxMS4wMzc5IDEzLjUgOEMxMy41IDQuOTYyMTQgMTEuMDM3OSAyLjUgOCAyLjVaTTEuNSA4QzEuNSA0LjQwOTg2IDQuNDA5ODYgMS41IDggMS41QzExLjU5MDEgMS41IDE0LjUgNC40MDk4NiAxNC41IDhDMTQuNSAxMS41OTAxIDExLjU5MDEgMTQuNSA4IDE0LjVDNC40MDk4NiAxNC41IDEuNSAxMS41OTAxIDEuNSA4Wk02LjE2NjY3IDYuNTU1MzNDNi4xNjY2NyA1LjU0MjUyIDYuOTg3MTkgNC43MjIgOCA0LjcyMkM5LjAxMjgxIDQuNzIyIDkuODMzMzMgNS41NDI1MiA5LjgzMzMzIDYuNTU1MzNDOS44MzMzMyA3LjM1MTQ2IDkuMzE0NDYgNy43NzEyNiA4Ljk1MzQ4IDguMDE0Nkw4Ljk1Mjg2IDguMDE1MDFDOC42NDc3OSA4LjIyIDguNSA4LjM4NDg2IDguNSA4LjY2NjY3VjguODMzMzNDOC41IDkuMTA5NDggOC4yNzYxNCA5LjMzMzMzIDggOS4zMzMzM0M3LjcyMzg2IDkuMzMzMzMgNy41IDkuMTA5NDggNy41IDguODMzMzNWOC42NjY2N0M3LjUgNy44NTkzIDguMDI1MzQgNy40MzM1IDguMzk0OTIgNy4xODUxM0M4LjY5MjMzIDYuOTg0NiA4LjgzMzMzIDYuODI1NzYgOC44MzMzMyA2LjU1NTMzQzguODMzMzMgNi4wOTQ4MSA4LjQ2MDUyIDUuNzIyIDggNS43MjJDNy41Mzk0OCA1LjcyMiA3LjE2NjY3IDYuMDk0ODEgNy4xNjY2NyA2LjU1NTMzQzcuMTY2NjcgNi44MzE0OCA2Ljk0MjgxIDcuMDU1MzMgNi42NjY2NyA3LjA1NTMzQzYuMzkwNTIgNy4wNTUzMyA2LjE2NjY3IDYuODMxNDggNi4xNjY2NyA2LjU1NTMzWk03LjMzMzM0IDEwLjgzNTFDNy4zMzE2MyAxMC40NjQzIDcuNjMyNSAxMC4xNjY3IDcuOTk5MzMgMTAuMTY2N0M4LjM2Njg0IDEwLjE2NjcgOC42NjY2NyAxMC40NjM5IDguNjY2NjcgMTAuODMzM0M4LjY2NjY3IDExLjIwMTUgOC4zNjgxNCAxMS41IDggMTEuNUM3LjYzMjQ2IDExLjUgNy4zMzQzMSAxMS4yMDI1IDcuMzMzMzQgMTAuODM1MVpNNy42NjY2NyAxMC44MzQ1TDcuMzMzMzUgMTAuODM3QzcuMzMzMzQgMTAuODM2NCA3LjMzMzM0IDEwLjgzNTcgNy4zMzMzNCAxMC44MzUxQzcuMzMzMzMgMTAuODM0NSA3LjMzMzMzIDEwLjgzMzkgNy4zMzMzMyAxMC44MzMzSDcuNjY2NjdDNy42NjY2NyAxMC44MzM3IDcuNjY2NjcgMTAuODM0MSA3LjY2NjY3IDEwLjgzNDVaIiBmaWxsPSIjNTA1MDUxIi8+DQo8L3N2Zz4NCg==",_imports_2$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik03Ljk5OTAyIDhMMTUuOTk5IDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjxwYXRoIGQ9Ik0xNS45OTkgOEw3Ljk5OTAyIDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjwvc3ZnPg0K",_imports_1$3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xNC40NzQ5IDQuNTI1MTNDMTUuODQxNyA1Ljg5MTk3IDE1Ljg0MTcgOC4xMDgwNCAxNC40NzQ5IDkuNDc0ODhDMTMuMTA4IDEwLjg0MTcgMTAuODkyIDEwLjg0MTcgOS41MjUxMyA5LjQ3NDg4QzguMTU4MjkgOC4xMDgwNCA4LjE1ODI5IDUuODkxOTcgOS41MjUxMyA0LjUyNTEzQzEwLjg5MiAzLjE1ODI5IDEzLjEwOCAzLjE1ODI5IDE0LjQ3NDkgNC41MjUxMyIgc3Ryb2tlPSIjNjU2NTY3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQgMTguNDk5OFYxOS40OTk4QzQgMjAuMDUxOCA0LjQ0OCAyMC40OTk4IDUgMjAuNDk5OEgxOUMxOS41NTIgMjAuNDk5OCAyMCAyMC4wNTE4IDIwIDE5LjQ5OThWMTguNDk5OEMyMCAxNS40NzM4IDE2LjA0OCAxMy41MDc4IDEyIDEzLjUwNzhDNy45NTIgMTMuNTA3OCA0IDE1LjQ3MzggNCAxOC40OTk4WiIgc3Ryb2tlPSIjNjU2NTY3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8L3N2Zz4NCg==",plInput_vue_vue_type_style_index_0_lang$1="";const _hoisted_1$v={key:0,class:"info-svg",src:_imports_0$8,alt:"info"},_hoisted_2$r=["src"],_sfc_main$z={__name:"pl-input",props:{modelValue:{required:!0},icon:{type:Boolean,default:!1},helper:{type:String,default:""},rules:{type:Object,default:function(){return{}}},prop:{type:String,default:"name"},getValid:{type:Boolean,default:!1},maxLength:{type:Number,default:210},minLength:{type:Number},isError:{type:Boolean,default:!1},optional:{type:String,default:""},prefix:{default:!1},clearable:{type:Boolean,default:!1},type:{type:String,default:"text"},label:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},widthLabel:{type:String,default:"100px"},currency:{type:Boolean,default:!1},round:{type:Boolean,default:!1},currencyInputOptions:{type:Object,default:()=>({})},valueRange:{type:Object,default:()=>({min:0})}},emits:["update:modelValue","validate","isValid"],setup(V,{emit:z}){const y=V,j=vue.ref(),{getValid:$,currency:le,round:Fe,currencyInputOptions:Ve,valueRange:de}=vue.toRefs(y),oe=vue.computed({get:()=>y.modelValue,set:dU=>{z("update:modelValue",dU)}}),ae=vue.reactive({[y.prop]:oe}),ue=vue.reactive({currency:"RUB",currencyDisplay:"hidden",precision:Fe.value?0:2,hideNegligibleDecimalDigitsOnFocus:!1,hideGroupingSeparatorOnFocus:!1,valueRange:vue.unref(de),...vue.unref(Ve)}),{inputRef:Ne,formattedValue:pe,setValue:he}=useCurrencyInput(ue);vue.unref(le)&&vue.watch(oe,dU=>{he(dU)});let ie=!1;const xe=(dU,rU,TU)=>{if(vue.unref(le)&&!ie&&pe.value.length<1){ie=!ie,j.value.resetFields();return}z("validate",dU,rU,TU)};vue.watch(oe,dU=>{ae[y.prop]=dU});const ze=dU=>{y.type==="number"?!isNaN(dU)&&!dU.includes(".")&&!dU.includes("+")&&!dU.includes("-")&&!dU.includes(",")&&z("update:modelValue",dU):z("update:modelValue",dU)},Ie=vue.computed(()=>{switch(y.type){case"text":return"text";case"textarea":return"textarea";case"number":return"text"}}),Ce=()=>{z("update:modelValue","")};let $e=vue.ref(0);const nU="id"+Math.random();setTimeout(()=>{const dU=document.getElementById(`${nU}`);$e.value=dU.children[0].children[0].clientWidth},0),vue.watch($,dU=>{dU&&(j.value.validate(),z("isValid"))});const RU=dU=>{let TU=dU.target.parentElement.parentElement.querySelector(".el-input__inner");setTimeout(()=>{TU.focus()})},VU=dU=>{const{keyCode:rU}=dU;if(rU>=96&&rU<=105||rU>=48&&rU<=57||rU===46||rU===8){const{selectionStart:TU,selectionEnd:JU}=dU.target,mU=dU.target.value.length;setTimeout(()=>{let pU=dU.target.value.length;rU===46&&(pU+=1);let iU;TU===JU||TU+1===JU?(iU=TU+(pU-mU),rU===8&&(pU===mU?iU-=1:JU!==TU&&(iU+=1)),iU<0&&(iU=0),JU===TU&&JU===iU&&pU===mU&&rU!==8&&rU!==46&&(iU+=1)):iU=JU-mU+pU,dU.target.selectionStart=iU,dU.target.selectionEnd=iU})}};return(dU,rU)=>{const TU=ElInput,JU=ElFormItem,mU=ElForm;return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(mU,{onValidate:xe,"label-position":"top",model:ae,ref_key:"refInput",ref:j,rules:V.rules},{default:vue.withCtx(()=>[vue.createElementVNode("div",{id:"form",class:vue.normalizeClass([V.icon&&!V.label?"padding-form":""])},[y.icon?(vue.openBlock(),vue.createElementBlock("img",_hoisted_1$v)):vue.createCommentVNode("",!0),y.prefix?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:vue.normalizeClass(["prefix-icon",[!V.label||"prefixWithLabel"]]),alt:"user",src:V.prefix!==!0?V.prefix:vue.unref(_imports_1$3)},null,10,_hoisted_2$r)):vue.createCommentVNode("",!0),y.clearable?(vue.openBlock(),vue.createElementBlock("img",{key:2,onClick:Ce,class:vue.normalizeClass(["clearBtn",[!V.label&&!V.icon?"clearNoLabel":""]]),src:_imports_2$2,alt:"clear"},null,2)):vue.createCommentVNode("",!0),y.optional&&V.label?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:"optional-text",style:vue.normalizeStyle({left:vue.unref($e)+"px"})},vue.toDisplayString(y.optional),5)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{id:nU},[vue.createVNode(JU,{class:vue.normalizeClass({"is-error":V.isError}),"show-message":!0,label:y.label,prop:V.prop},{default:vue.withCtx(()=>[vue.unref(le)?(vue.openBlock(),vue.createBlock(TU,vue.mergeProps({key:1,onKeydown:VU,class:{padding:y.prefix},minlength:V.minLength,maxlength:V.maxLength,disabled:y.disabled,placeholder:y.placeholder,resize:"none"},dU.$attrs,{ref_key:"inputRef",ref:Ne,modelValue:vue.unref(pe),"onUpdate:modelValue":rU[2]||(rU[2]=pU=>vue.isRef(pe)?pe.value=pU:null)}),vue.createSlots({_:2},[vue.unref(le)?{name:"append",fn:vue.withCtx(()=>[vue.createElementVNode("span",{class:"pl-currency__rub-icon",onClick:rU[1]||(rU[1]=pU=>RU(pU))},"\u20BD")])}:void 0]),1040,["class","minlength","maxlength","disabled","placeholder","modelValue"])):(vue.openBlock(),vue.createBlock(TU,{key:0,class:vue.normalizeClass({padding:y.prefix}),minlength:V.minLength,maxlength:V.maxLength,disabled:y.disabled,placeholder:y.placeholder,modelValue:vue.unref(oe),"onUpdate:modelValue":rU[0]||(rU[0]=pU=>vue.isRef(oe)?oe.value=pU:null),type:vue.unref(Ie),resize:"none",autosize:{minRows:3,maxRows:6},clearable:y.clearable,onInput:ze},null,8,["class","minlength","maxlength","disabled","placeholder","modelValue","type","clearable"]))]),_:1},8,["class","label","prop"])]),V.isError?(vue.openBlock(),vue.createElementBlock("p",{key:4,class:vue.normalizeClass({isError:y.isError})},vue.toDisplayString(y.helper),3)):vue.createCommentVNode("",!0)],2)]),_:1},8,["model","rules"])])}}},PlInputPlugin={install(V){V.component("PlInput",_sfc_main$z)}},_sfc_main$y={__name:"pl-input-native",setup(V,{expose:z}){const y=vue.ref(null);return z({elInputRef:y}),(j,$)=>{const le=ElInput;return vue.openBlock(),vue.createBlock(le,vue.mergeProps({ref_key:"elInputRef",ref:y},j.$attrs),vue.createSlots({_:2},[vue.renderList(j.$slots,(Fe,Ve)=>({name:Ve,fn:vue.withCtx(de=>[vue.renderSlot(j.$slots,Ve,vue.normalizeProps(vue.guardReactiveProps(de)))])}))]),1040)}}},PlInputNativePlugin={install(V){V.component("PlInputNative",_sfc_main$y)}};var _export_sfc=(V,z)=>{const y=V.__vccOpts||V;for(const[j,$]of z)y[j]=$;return y};const _sfc_main$x={};function _sfc_render$3(V,z){const y=ElFormItem;return vue.openBlock(),vue.createBlock(y,vue.normalizeProps(vue.guardReactiveProps(V.$attrs)),vue.createSlots({default:vue.withCtx(()=>[vue.renderSlot(V.$slots,"default")]),_:2},[vue.renderList(V.$slots,(j,$)=>({name:$,fn:vue.withCtx(le=>[vue.renderSlot(V.$slots,$,vue.normalizeProps(vue.guardReactiveProps(le)))])}))]),1040)}var PlFormItem=_export_sfc(_sfc_main$x,[["render",_sfc_render$3]]);const PlFormItemPlugin={install(V){V.component("PlFormItem",PlFormItem)}};var button="";const _hoisted_1$u=vue.createElementVNode("p",null,"Hello NPM!",-1),_hoisted_2$q=vue.createTextVNode("Increment count"),__default__$9={name:"TestViteNpmComponent"},_sfc_main$w=Object.assign(__default__$9,{setup(V){const z=vue.ref(""),y=vue.ref(0),j=()=>y.value++;return($,le)=>{const Fe=ElInput,Ve=ElButton;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[_hoisted_1$u,vue.createElementVNode("div",null,[vue.createVNode(Fe,{modelValue:z.value,"onUpdate:modelValue":le[0]||(le[0]=de=>z.value=de),style:{width:"40%"}},null,8,["modelValue"]),vue.createElementVNode("div",null,"This is input message: "+vue.toDisplayString(z.value),1)]),vue.createElementVNode("div",null,[vue.createVNode(Ve,{type:"primary",onClick:j},{default:vue.withCtx(()=>[_hoisted_2$q]),_:1}),vue.createElementVNode("div",null,"This is count: "+vue.toDisplayString(y.value),1)])],64)}}}),TestViteNpmComponentPlugin={install(V){V.component("TestViteNpmComponent",_sfc_main$w)}};var plButton_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$v={__name:"pl-button",props:{beforeIcon:{type:String,default:null},afterIcon:{type:String,default:null},onlyIcon:{type:String,default:null},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},type:{type:String,default:"primary"}},emits:["onClick"],setup(V,{emit:z}){const y=V;return(j,$)=>{const le=vue.resolveComponent("vue-feather"),Fe=ElButton;return vue.openBlock(),vue.createBlock(Fe,vue.mergeProps(j.$attrs,{class:[y.size==="medium"?"big":"",y.onlyIcon?"btn-icon":""],disabled:V.disabled,type:V.type,onClick:z.onClick}),{default:vue.withCtx(()=>[V.beforeIcon&&!V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:0,class:vue.normalizeClass(["icon icon__before",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]]),type:V.beforeIcon},null,8,["class","type"])):vue.createCommentVNode("",!0),V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:1,class:vue.normalizeClass(["icon icon__before only-icon",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]]),type:V.onlyIcon},null,8,["class","type"])):vue.createCommentVNode("",!0),V.onlyIcon?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",{key:2,class:vue.normalizeClass(["btn-text",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]])},[vue.renderSlot(j.$slots,"default",{},void 0,!0)],2)),V.afterIcon&&!V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:3,class:vue.normalizeClass([[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""],"icon icon__after"]),type:V.afterIcon},null,8,["class","type"])):vue.createCommentVNode("",!0)]),_:3},16,["class","disabled","type","onClick"])}}};var PlButton=_export_sfc(_sfc_main$v,[["__scopeId","data-v-26f1d202"]]);const PlButtonPlugin={install(V){V.component("PlButton",PlButton)}};var datePicker="",scrollbar="",popper="",ru$1={name:"ru",el:{colorpicker:{confirm:"OK",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"},datepicker:{now:"\u0421\u0435\u0439\u0447\u0430\u0441",today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"OK",selectDate:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",selectTime:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0440\u0435\u043C\u044F",startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",startTime:"\u0412\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",endTime:"\u0412\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",prevYear:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",nextYear:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",prevMonth:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",nextMonth:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",year:"",month1:"\u042F\u043D\u0432\u0430\u0440\u044C",month2:"\u0424\u0435\u0432\u0440\u0430\u043B\u044C",month3:"\u041C\u0430\u0440\u0442",month4:"\u0410\u043F\u0440\u0435\u043B\u044C",month5:"\u041C\u0430\u0439",month6:"\u0418\u044E\u043D\u044C",month7:"\u0418\u044E\u043B\u044C",month8:"\u0410\u0432\u0433\u0443\u0441\u0442",month9:"\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C",month10:"\u041E\u043A\u0442\u044F\u0431\u0440\u044C",month11:"\u041D\u043E\u044F\u0431\u0440\u044C",month12:"\u0414\u0435\u043A\u0430\u0431\u0440\u044C",week:"\u043D\u0435\u0434\u0435\u043B\u044F",weeks:{sun:"\u0412\u0441",mon:"\u041F\u043D",tue:"\u0412\u0442",wed:"\u0421\u0440",thu:"\u0427\u0442",fri:"\u041F\u0442",sat:"\u0421\u0431"},months:{jan:"\u042F\u043D\u0432",feb:"\u0424\u0435\u0432",mar:"\u041C\u0430\u0440",apr:"\u0410\u043F\u0440",may:"\u041C\u0430\u0439",jun:"\u0418\u044E\u043D",jul:"\u0418\u044E\u043B",aug:"\u0410\u0432\u0433",sep:"\u0421\u0435\u043D",oct:"\u041E\u043A\u0442",nov:"\u041D\u043E\u044F",dec:"\u0414\u0435\u043A"}},select:{loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",placeholder:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C"},cascader:{noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",placeholder:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"},pagination:{goto:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438",pagesize:" \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",total:"\u0412\u0441\u0435\u0433\u043E {total}",pageClassifier:""},messagebox:{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",confirm:"OK",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",error:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u0430\u043D\u043D\u044B\u0445"},upload:{deleteTip:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 [\u0423\u0434\u0430\u043B\u0438\u0442\u044C] \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",preview:"\u041F\u0440\u0435\u0432\u044C\u044E",continue:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"},table:{emptyText:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",confirmFilter:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",resetFilter:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",clearFilter:"\u0412\u0441\u0435",sumText:"\u0421\u0443\u043C\u043C\u0430"},tree:{emptyText:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"},transfer:{noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",titles:["\u0421\u043F\u0438\u0441\u043E\u043A 1","\u0421\u043F\u0438\u0441\u043E\u043A 2"],filterPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E",noCheckedFormat:"{total} \u043F\u0443\u043D\u043A\u0442\u043E\u0432",hasCheckedFormat:"{checked}/{total} \u0432\u044B\u0431\u0440\u0430\u043D\u043E"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"OK",cancelButtonText:"\u041E\u0442\u043C\u0435\u043D\u0430"}}},ru={exports:{}};(function(V,z){(function(y,j){V.exports=j(dayjs_min.exports)})(commonjsGlobal,function(y){function j(he){return he&&typeof he=="object"&&"default"in he?he:{default:he}}var $=j(y),le="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),Fe="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),Ve="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),de="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),oe=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function ae(he,ie,xe){var ze,Ie;return xe==="m"?ie?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":he+" "+(ze=+he,Ie={mm:ie?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"}[xe].split("_"),ze%10==1&&ze%100!=11?Ie[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ie[1]:Ie[2])}var ue=function(he,ie){return oe.test(ie)?le[he.month()]:Fe[he.month()]};ue.s=Fe,ue.f=le;var Ne=function(he,ie){return oe.test(ie)?Ve[he.month()]:de[he.month()]};Ne.s=de,Ne.f=Ve;var pe={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:ue,monthsShort:Ne,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:ae,mm:ae,h:"\u0447\u0430\u0441",hh:ae,d:"\u0434\u0435\u043D\u044C",dd:ae,M:"\u043C\u0435\u0441\u044F\u0446",MM:ae,y:"\u0433\u043E\u0434",yy:ae},ordinal:function(he){return he},meridiem:function(he){return he<4?"\u043D\u043E\u0447\u0438":he<12?"\u0443\u0442\u0440\u0430":he<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};return $.default.locale(pe,null,!0),pe})})(ru);var plDatePickerRange_vue_vue_type_style_index_0_lang="";const __default__$8={name:"PlDatePickerRange"},_sfc_main$u=Object.assign(__default__$8,{props:{modelValue:{type:Array,default:null},format:{type:String,default:"DD.MM.YYYY"},startPlaceholder:{type:String,default:"\u0414\u0430\u0442\u0430 \u043E\u0442"},endPlaceholder:{type:String,default:"\u0414\u0430\u0442\u0430 \u0434\u043E"},pickerOptions:{type:Object,default:()=>({firstDayOfWeek:1})},width:{type:String,default:"224px"}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V;dayjs.locale("ru");const{modelValue:j}=vue.toRefs(y),$=vue.ref([]),le=vue.ref(null);return vue.watch($,Fe=>{z("update:modelValue",Fe)}),vue.watch(j,()=>{$.value=j.value}),$.value=j.value,(Fe,Ve)=>{const de=ElDatePicker;return vue.openBlock(),vue.createBlock(vue.unref(ElConfigProvider),{locale:vue.unref(ru$1)},{default:vue.withCtx(()=>[vue.createVNode(de,vue.mergeProps({ref_key:"innerDatePicker",ref:le},Fe.$attrs,{modelValue:$.value,"onUpdate:modelValue":Ve[0]||(Ve[0]=oe=>$.value=oe),format:V.format,"picker-options":V.pickerOptions,"start-placeholder":V.startPlaceholder,"end-placeholder":V.endPlaceholder,type:"daterange",style:`width: ${V.width};`}),null,16,["modelValue","format","picker-options","start-placeholder","end-placeholder","style"])]),_:1},8,["locale"])}}});var plDatePicker_vue_vue_type_style_index_0_lang="";const _hoisted_1$t=["id"],__default__$7={name:"PlDatePicker"},_sfc_main$t=Object.assign(__default__$7,{props:{modelValue:{type:Date,default:null},format:{type:String,default:"DD.MM.YYYY"},placeholder:{type:String,default:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443"},pickerOptions:{type:Object,default:()=>({firstDayOfWeek:1})},width:{type:String,default:"220px"},defaultValue:{type:Date,default:null},type:{type:String,default:"date"},isLastDayOfMonth:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V;dayjs.locale("ru");const{modelValue:j}=vue.toRefs(y),$=vue.ref(null),le=vue.ref(null),Fe=vue.computed(()=>y.leftIcon?"left-icon":"right-icon");return vue.watch($,Ve=>{z("update:modelValue",Ve)}),vue.watch(j,()=>{$.value=j.value}),$.value=j.value,(Ve,de)=>{const oe=ElDatePicker;return vue.openBlock(),vue.createElementBlock("div",{id:vue.unref(Fe),style:{width:"100%"}},[vue.createVNode(vue.unref(ElConfigProvider),{locale:vue.unref(ru$1)},{default:vue.withCtx(()=>[vue.createVNode(oe,vue.mergeProps({ref_key:"innerDatePicker",ref:le},Ve.$attrs,{modelValue:$.value,"onUpdate:modelValue":de[0]||(de[0]=ae=>$.value=ae),format:V.format,"picker-options":V.pickerOptions,placeholder:V.placeholder,clearable:!1,style:`width: ${V.width};`,type:V.type,class:"pl-date-picker"}),null,16,["modelValue","format","picker-options","placeholder","style","type"])]),_:1},8,["locale"])],8,_hoisted_1$t)}}});var root="",common="";const PlDatePickerPlugin={install(V){V.component("PlDatePickerRange",_sfc_main$u),V.component("PlDatePicker",_sfc_main$t)}};var loading="",dialog="",overlay="",tag="",option="",optionGroup="",select="",lodash={exports:{}};/**
48
+ */const escapeRegExp=V=>V.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),removeLeadingZeros=V=>V.replace(/^0+(0$|[^0])/,"$1"),count=(V,z)=>(V.match(new RegExp(escapeRegExp(z),"g"))||[]).length,substringBefore=(V,z)=>V.substring(0,V.indexOf(z));var CurrencyDisplay;(function(V){V.symbol="symbol",V.narrowSymbol="narrowSymbol",V.code="code",V.name="name",V.hidden="hidden"})(CurrencyDisplay||(CurrencyDisplay={}));var ValueScaling;(function(V){V.precision="precision",V.thousands="thousands",V.millions="millions",V.billions="billions"})(ValueScaling||(ValueScaling={}));const DECIMAL_SEPARATORS=[",",".","\u066B"],INTEGER_PATTERN="(0|[1-9]\\d*)";class CurrencyFormat{constructor(z){var y,j,$,le,Fe,Ve;const{currency:de,currencyDisplay:oe,locale:ae,precision:ue,accountingSign:Ne}=z;this.locale=ae,this.options={style:"currency",currency:de,currencySign:Ne?"accounting":void 0,currencyDisplay:oe!==CurrencyDisplay.hidden?oe:void 0};const pe=new Intl.NumberFormat(ae,this.options),he=pe.formatToParts(123456);this.currency=(y=he.find(({type:ze})=>ze==="currency"))===null||y===void 0?void 0:y.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(ze=>ze.toLocaleString(ae)),this.decimalSymbol=(j=he.find(({type:ze})=>ze==="decimal"))===null||j===void 0?void 0:j.value,this.groupingSymbol=($=he.find(({type:ze})=>ze==="group"))===null||$===void 0?void 0:$.value,this.minusSign=(le=pe.formatToParts(-1).find(({type:ze})=>ze==="minusSign"))===null||le===void 0?void 0:le.value,this.decimalSymbol===void 0?this.minimumFractionDigits=this.maximumFractionDigits=0:typeof ue=="number"?this.minimumFractionDigits=this.maximumFractionDigits=ue:(this.minimumFractionDigits=(Fe=ue==null?void 0:ue.min)!==null&&Fe!==void 0?Fe:pe.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=(Ve=ue==null?void 0:ue.max)!==null&&Ve!==void 0?Ve:pe.resolvedOptions().maximumFractionDigits);const ie=ze=>substringBefore(ze,this.digits[1]),xe=ze=>ze.substring(ze.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=ie(pe.format(1)),this.suffix=xe(pe.format(1)),this.negativePrefix=ie(pe.format(-1)),this.negativeSuffix=xe(pe.format(-1))}parse(z){if(z){const y=this.isNegative(z);z=this.normalizeDigits(z),z=this.stripCurrency(z,y),z=this.stripSignLiterals(z);const j=this.decimalSymbol?`(?:${escapeRegExp(this.decimalSymbol)}(\\d*))?`:"",$=this.stripGroupingSeparator(z).match(new RegExp(`^${INTEGER_PATTERN}${j}$`));if($&&this.isValidIntegerFormat(this.decimalSymbol?z.split(this.decimalSymbol)[0]:z,Number($[1])))return Number(`${y?"-":""}${this.onlyDigits($[1])}.${this.onlyDigits($[2]||"")}`)}return null}isValidIntegerFormat(z,y){const j={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(y.toLocaleString(this.locale,{...j,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(y.toLocaleString(this.locale,{...j,useGrouping:!1})),!1)].includes(z)}format(z,y={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return z!=null?z.toLocaleString(this.locale,{...this.options,...y}):""}toFraction(z){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(z.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(z){return!!this.normalizeDigits(this.stripGroupingSeparator(z)).match(new RegExp(`^${INTEGER_PATTERN}${escapeRegExp(this.decimalSymbol)}$`))}isNegative(z){return z.startsWith(this.negativePrefix)||this.minusSign===void 0&&(z.startsWith("(")||z.startsWith("-"))||this.minusSign!==void 0&&z.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(z,y){return`${y?this.negativePrefix:this.prefix}${z}${y?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(z){return this.groupingSymbol!==void 0?z.replace(new RegExp(escapeRegExp(this.groupingSymbol),"g"),""):z}stripSignLiterals(z){return this.minusSign!==void 0?z.replace("-",this.minusSign).replace(this.minusSign,""):z.replace(/[-()]/g,"")}stripCurrency(z,y){return z.replace(y?this.negativePrefix:this.prefix,"").replace(y?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(z,y){return DECIMAL_SEPARATORS.forEach(j=>{z=z.substr(0,y)+z.substr(y).replace(j,this.decimalSymbol)}),z}normalizeDigits(z){return this.digits[0]!=="0"&&this.digits.forEach((y,j)=>{z=z.replace(new RegExp(y,"g"),String(j))}),z}onlyDigits(z){return this.normalizeDigits(z).replace(/\D+/g,"")}onlyLocaleDigits(z){return z.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class AbstractInputMask{constructor(z){this.currencyFormat=z}}class DefaultInputMask extends AbstractInputMask{conformToMask(z,y=""){const j=this.currencyFormat.isNegative(z),$=he=>he===""&&j&&!(this.currencyFormat.minusSign===void 0?y===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:y===this.currencyFormat.negativePrefix),le=he=>{if($(he))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(he))return he;if(he.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(he)}return null};let Fe=z;Fe=this.currencyFormat.stripCurrency(Fe,j),Fe=this.currencyFormat.stripSignLiterals(Fe);const Ve=le(Fe);if(Ve!=null)return this.currencyFormat.insertCurrency(Ve,j);const[de,...oe]=Fe.split(this.currencyFormat.decimalSymbol),ae=removeLeadingZeros(this.currencyFormat.onlyDigits(de)),ue=this.currencyFormat.onlyDigits(oe.join("")).substr(0,this.currencyFormat.maximumFractionDigits),Ne=oe.length>0&&ue.length===0,pe=ae===""&&j&&(this.currencyFormat.minusSign===void 0?y===z.slice(0,-2)+this.currencyFormat.negativeSuffix:y===z.slice(0,-1));return Ne||pe||$(ae)?y:ae.match(/\d+/)?{numberValue:Number(`${j?"-":""}${ae}.${ue}`),fractionDigits:ue}:""}}class AutoDecimalDigitsInputMask extends AbstractInputMask{conformToMask(z,y=""){if(z===""||this.currencyFormat.parse(y)===0&&this.currencyFormat.stripCurrency(y,!0).slice(0,-1)===this.currencyFormat.stripCurrency(z,!0))return"";const j=this.currencyFormat.isNegative(z),$=this.currencyFormat.stripSignLiterals(z)===""?-0:Number(`${j?"-":""}${removeLeadingZeros(this.currencyFormat.onlyDigits(z))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:$,fractionDigits:$.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const DEFAULT_OPTIONS={locale:void 0,currency:void 0,currencyDisplay:void 0,exportValueAsInteger:!1,hideGroupingSeparatorOnFocus:!0,hideCurrencySymbolOnFocus:!0,hideNegligibleDecimalDigitsOnFocus:!0,precision:void 0,autoDecimalDigits:!1,valueRange:void 0,autoSign:!0,useGrouping:!0,valueScaling:void 0};class CurrencyInput{constructor(z,y){this.el=z,this.numberValue=null,this.addEventListener(),this.init(y),this.setValue(this.currencyFormat.parse(this.el.value))}setOptions(z){this.init(z),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){return{number:this.valueScaling&&this.numberValue!=null?this.toInteger(this.numberValue,this.valueScaling):this.numberValue,formatted:this.formattedValue}}setValue(z){const y=this.valueScaling!==void 0&&z!=null?this.toFloat(z,this.valueScaling):z;y!==this.numberValue&&this.applyFixedFractionFormat(y)}dispatchEvent(z){this.el.dispatchEvent(new CustomEvent(z,{detail:this.getValue()}))}init(z){this.options={...DEFAULT_OPTIONS,...z},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new CurrencyFormat(this.options),this.numberMask=this.options.autoDecimalDigits?new AutoDecimalDigitsInputMask(this.currencyFormat):new DefaultInputMask(this.currencyFormat);const y={[ValueScaling.precision]:this.currencyFormat.maximumFractionDigits,[ValueScaling.thousands]:3,[ValueScaling.millions]:6,[ValueScaling.billions]:9};this.options.exportValueAsInteger?this.valueScaling=y[ValueScaling.precision]:this.valueScaling=this.options.valueScaling?y[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=this.valueScaling!==void 0&&this.options.valueScaling!==ValueScaling.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var z,y;let j=this.toFloat(-Number.MAX_SAFE_INTEGER);return((z=this.options.valueRange)===null||z===void 0?void 0:z.min)!==void 0&&(j=Math.max((y=this.options.valueRange)===null||y===void 0?void 0:y.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&j<0&&(j=0),j}getMaxValue(){var z,y;let j=this.toFloat(Number.MAX_SAFE_INTEGER);return((z=this.options.valueRange)===null||z===void 0?void 0:z.max)!==void 0&&(j=Math.min((y=this.options.valueRange)===null||y===void 0?void 0:y.max,this.toFloat(Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&j<0&&(j=this.toFloat(Number.MAX_SAFE_INTEGER)),j}toFloat(z,y){return z/Math.pow(10,y!=null?y:this.valueScalingFractionDigits)}toInteger(z,y){return Number(z.toFixed(y!=null?y:this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(z){return z!=null?Math.min(Math.max(z,this.minValue),this.maxValue):z}applyFixedFractionFormat(z,y=!1){this.format(this.currencyFormat.format(this.validateValueRange(z))),(z!==this.numberValue||y)&&this.dispatchEvent("change")}format(z,y=!1){if(z!=null){this.decimalSymbolInsertedAt!==void 0&&(z=this.currencyFormat.normalizeDecimalSeparator(z,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const j=this.numberMask.conformToMask(z,this.formattedValue);let $;if(typeof j=="object"){const{numberValue:le,fractionDigits:Fe}=j;let{maximumFractionDigits:Ve,minimumFractionDigits:de}=this.currencyFormat;this.focus?de=y?Fe.replace(/0+$/,"").length:Math.min(Ve,Fe.length):Number.isInteger(le)&&!this.options.autoDecimalDigits&&(this.options.precision===void 0||de===0)&&(de=Ve=0),$=this.toInteger(Math.abs(le))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(le,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:de,maximumFractionDigits:Ve})}else $=j;this.options.autoSign&&(this.maxValue<=0&&!this.currencyFormat.isNegative($)&&this.currencyFormat.parse($)!==0&&($=$.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&($=$.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix))),(this.options.currencyDisplay===CurrencyDisplay.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&($=$.replace(this.currencyFormat.negativePrefix,this.currencyFormat.minusSign!==void 0?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,this.currencyFormat.minusSign!==void 0?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=$,this.numberValue=this.currencyFormat.parse($)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.dispatchEvent("input")}addEventListener(){this.el.addEventListener("input",z=>{if(!z.detail){const{value:y,selectionStart:j}=this.el,$=z;if(j&&$.data&&DECIMAL_SEPARATORS.includes($.data)&&(this.decimalSymbolInsertedAt=j-1),this.format(y),this.focus&&j!=null){const le=()=>{const{prefix:Fe,suffix:Ve,decimalSymbol:de,maximumFractionDigits:oe,groupingSymbol:ae}=this.currencyFormat;let ue=y.length-j;const Ne=this.formattedValue.length;if(this.currencyFormat.minusSign===void 0&&(y.startsWith("(")||y.startsWith("-"))&&!y.endsWith(")"))return Ne-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(j).length:1;if(this.formattedValue.substr(j,1)===ae&&count(this.formattedValue,ae)===count(y,ae)+1)return Ne-ue-1;if(Ne<ue)return j;if(de!==void 0&&y.indexOf(de)!==-1){const pe=y.indexOf(de)+1;if(Math.abs(Ne-y.length)>1&&j<=pe)return this.formattedValue.indexOf(de)+1;!this.options.autoDecimalDigits&&j>pe&&this.currencyFormat.onlyDigits(y.substr(pe)).length-1===oe&&(ue-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===CurrencyDisplay.hidden?Ne-ue:Math.max(Ne-Math.max(ue,Ve.length),Fe.length)};this.setCaretPosition(le())}}},{capture:!0}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:z,selectionStart:y,selectionEnd:j}=this.el;if(this.format(z,this.options.hideNegligibleDecimalDigitsOnFocus),y!=null&&j!=null&&Math.abs(y-j)>0)this.setCaretPosition(0,this.el.value.length);else if(y!=null){const $=this.getCaretPositionOnFocus(z,y);this.setCaretPosition($)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",z=>{z.detail||this.dispatchEvent("change")},{capture:!0})}getCaretPositionOnFocus(z,y){if(this.numberValue==null)return y;const{prefix:j,negativePrefix:$,suffix:le,negativeSuffix:Fe,groupingSymbol:Ve,currency:de}=this.currencyFormat,oe=this.numberValue<0,ae=oe?$:j,ue=ae.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===CurrencyDisplay.hidden){if(oe){if(y<=1)return 1;if(z.endsWith(")")&&y>z.indexOf(")"))return this.formattedValue.length-1}}else{const pe=oe?Fe.length:le.length;if(y>=z.length-pe)return this.formattedValue.length-pe;if(y<ue)return ue}let Ne=y;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==CurrencyDisplay.hidden&&y>=ue&&de!==void 0&&ae.includes(de)&&(Ne-=ue,oe&&(Ne+=1)),this.options.hideGroupingSeparatorOnFocus&&Ve!==void 0&&(Ne-=count(z.substring(0,y),Ve)),Ne}setCaretPosition(z,y=z){this.el.setSelectionRange(z,y)}}const findInput=V=>V!=null&&V.matches("input")?V:V==null?void 0:V.querySelector("input");var useCurrencyInput=(V,z)=>{var y;let j,$;const le=vue.ref(null),Fe=vue.ref(null),Ve=vue.ref(null),de=vue.getCurrentInstance(),oe=(Ie,Ce)=>de==null?void 0:de.emit(Ie,Ce),ae=(y=de==null?void 0:de.attrs.modelModifiers)===null||y===void 0?void 0:y.lazy,ue=vue.computed(()=>de==null?void 0:de.props.modelValue),Ne="update:modelValue",pe=ae?"update:modelValue":"change",he=!ae,ie=ae||!(de!=null&&de.attrs.onChange),xe=Ie=>{Ie.detail&&(z!==!1&&ue.value!==Ie.detail.number&&oe(Ne,Ie.detail.number),Ve.value=Ie.detail.number,Fe.value=Ie.detail.formatted)},ze=Ie=>{Ie.detail&&(z!==!1&&oe(pe,Ie.detail.number),Ve.value=Ie.detail.number,Fe.value=Ie.detail.formatted)};return vue.watch(le,Ie=>{var Ce,$e;Ie?($=findInput(($e=(Ce=Ie)===null||Ce===void 0?void 0:Ce.$el)!==null&&$e!==void 0?$e:Ie),$?(j=new CurrencyInput($,V),he&&$.addEventListener("input",xe),ie&&$.addEventListener("change",ze),j.setValue(ue.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')):j=null}),vue.onUnmounted(()=>{he&&($==null||$.removeEventListener("input",xe)),ie&&($==null||$.removeEventListener("change",ze))}),{inputRef:le,numberValue:Ve,formattedValue:Fe,setValue:Ie=>j==null?void 0:j.setValue(Ie),setOptions:Ie=>j==null?void 0:j.setOptions(Ie)}},plCurrency_vue_vue_type_style_index_0_lang="";const _hoisted_1$w=vue.createElementVNode("span",{class:"pl-currency__rub-icon"},"\u20BD",-1),__default__$a={name:"PlCurrency"},_sfc_main$B=Object.assign(__default__$a,{props:{width:String,modelValue:Number,round:{type:Boolean,default:!1},currencyInputOptions:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V,{modelValue:j,round:$,currencyInputOptions:le}=vue.toRefs(y),Fe=vue.reactive({currency:"EUR",currencyDisplay:"hidden",precision:$.value?0:2,hideGroupingSeparatorOnFocus:!1,...vue.unref(le)}),{inputRef:Ve,formattedValue:de,setValue:oe}=useCurrencyInput(Fe);return vue.watch(j,ae=>{oe(ae)}),(ae,ue)=>{const Ne=ElInput;return vue.openBlock(),vue.createBlock(Ne,vue.mergeProps({style:`width: ${V.width};`},ae.$attrs,{ref_key:"inputRef",ref:Ve,modelValue:vue.unref(de),"onUpdate:modelValue":ue[0]||(ue[0]=pe=>vue.isRef(de)?de.value=pe:null),class:"pl-currency"}),{append:vue.withCtx(()=>[_hoisted_1$w]),_:1},16,["style","modelValue"])}}}),PlCurrencyPlugin={install(V){V.component("PlCurrency",_sfc_main$B)}};var form="";const _sfc_main$A={__name:"pl-form",setup(V,{expose:z}){const y=vue.ref(null);return z({elFormRef:y}),(j,$)=>{const le=ElForm;return vue.openBlock(),vue.createBlock(le,vue.mergeProps({ref_key:"elFormRef",ref:y},j.$attrs),{default:vue.withCtx(()=>[vue.renderSlot(j.$slots,"default")]),_:3},16)}}},PlFormPlugin={install(V){V.component("PlForm",_sfc_main$A)}};var formItem="",_imports_0$8="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOCAyLjVDNC45NjIxNCAyLjUgMi41IDQuOTYyMTQgMi41IDhDMi41IDExLjAzNzkgNC45NjIxNCAxMy41IDggMTMuNUMxMS4wMzc5IDEzLjUgMTMuNSAxMS4wMzc5IDEzLjUgOEMxMy41IDQuOTYyMTQgMTEuMDM3OSAyLjUgOCAyLjVaTTEuNSA4QzEuNSA0LjQwOTg2IDQuNDA5ODYgMS41IDggMS41QzExLjU5MDEgMS41IDE0LjUgNC40MDk4NiAxNC41IDhDMTQuNSAxMS41OTAxIDExLjU5MDEgMTQuNSA4IDE0LjVDNC40MDk4NiAxNC41IDEuNSAxMS41OTAxIDEuNSA4Wk02LjE2NjY3IDYuNTU1MzNDNi4xNjY2NyA1LjU0MjUyIDYuOTg3MTkgNC43MjIgOCA0LjcyMkM5LjAxMjgxIDQuNzIyIDkuODMzMzMgNS41NDI1MiA5LjgzMzMzIDYuNTU1MzNDOS44MzMzMyA3LjM1MTQ2IDkuMzE0NDYgNy43NzEyNiA4Ljk1MzQ4IDguMDE0Nkw4Ljk1Mjg2IDguMDE1MDFDOC42NDc3OSA4LjIyIDguNSA4LjM4NDg2IDguNSA4LjY2NjY3VjguODMzMzNDOC41IDkuMTA5NDggOC4yNzYxNCA5LjMzMzMzIDggOS4zMzMzM0M3LjcyMzg2IDkuMzMzMzMgNy41IDkuMTA5NDggNy41IDguODMzMzNWOC42NjY2N0M3LjUgNy44NTkzIDguMDI1MzQgNy40MzM1IDguMzk0OTIgNy4xODUxM0M4LjY5MjMzIDYuOTg0NiA4LjgzMzMzIDYuODI1NzYgOC44MzMzMyA2LjU1NTMzQzguODMzMzMgNi4wOTQ4MSA4LjQ2MDUyIDUuNzIyIDggNS43MjJDNy41Mzk0OCA1LjcyMiA3LjE2NjY3IDYuMDk0ODEgNy4xNjY2NyA2LjU1NTMzQzcuMTY2NjcgNi44MzE0OCA2Ljk0MjgxIDcuMDU1MzMgNi42NjY2NyA3LjA1NTMzQzYuMzkwNTIgNy4wNTUzMyA2LjE2NjY3IDYuODMxNDggNi4xNjY2NyA2LjU1NTMzWk03LjMzMzM0IDEwLjgzNTFDNy4zMzE2MyAxMC40NjQzIDcuNjMyNSAxMC4xNjY3IDcuOTk5MzMgMTAuMTY2N0M4LjM2Njg0IDEwLjE2NjcgOC42NjY2NyAxMC40NjM5IDguNjY2NjcgMTAuODMzM0M4LjY2NjY3IDExLjIwMTUgOC4zNjgxNCAxMS41IDggMTEuNUM3LjYzMjQ2IDExLjUgNy4zMzQzMSAxMS4yMDI1IDcuMzMzMzQgMTAuODM1MVpNNy42NjY2NyAxMC44MzQ1TDcuMzMzMzUgMTAuODM3QzcuMzMzMzQgMTAuODM2NCA3LjMzMzM0IDEwLjgzNTcgNy4zMzMzNCAxMC44MzUxQzcuMzMzMzMgMTAuODM0NSA3LjMzMzMzIDEwLjgzMzkgNy4zMzMzMyAxMC44MzMzSDcuNjY2NjdDNy42NjY2NyAxMC44MzM3IDcuNjY2NjcgMTAuODM0MSA3LjY2NjY3IDEwLjgzNDVaIiBmaWxsPSIjNTA1MDUxIi8+DQo8L3N2Zz4NCg==",_imports_2$2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik03Ljk5OTAyIDhMMTUuOTk5IDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjxwYXRoIGQ9Ik0xNS45OTkgOEw3Ljk5OTAyIDE2IiBzdHJva2U9IiM1MDUwNTEiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjwvc3ZnPg0K",_imports_1$3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik0xNC40NzQ5IDQuNTI1MTNDMTUuODQxNyA1Ljg5MTk3IDE1Ljg0MTcgOC4xMDgwNCAxNC40NzQ5IDkuNDc0ODhDMTMuMTA4IDEwLjg0MTcgMTAuODkyIDEwLjg0MTcgOS41MjUxMyA5LjQ3NDg4QzguMTU4MjkgOC4xMDgwNCA4LjE1ODI5IDUuODkxOTcgOS41MjUxMyA0LjUyNTEzQzEwLjg5MiAzLjE1ODI5IDEzLjEwOCAzLjE1ODI5IDE0LjQ3NDkgNC41MjUxMyIgc3Ryb2tlPSIjNjU2NTY3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQgMTguNDk5OFYxOS40OTk4QzQgMjAuMDUxOCA0LjQ0OCAyMC40OTk4IDUgMjAuNDk5OEgxOUMxOS41NTIgMjAuNDk5OCAyMCAyMC4wNTE4IDIwIDE5LjQ5OThWMTguNDk5OEMyMCAxNS40NzM4IDE2LjA0OCAxMy41MDc4IDEyIDEzLjUwNzhDNy45NTIgMTMuNTA3OCA0IDE1LjQ3MzggNCAxOC40OTk4WiIgc3Ryb2tlPSIjNjU2NTY3IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+DQo8L3N2Zz4NCg==",plInput_vue_vue_type_style_index_0_lang$1="";const _hoisted_1$v={key:0,class:"info-svg",src:_imports_0$8,alt:"info"},_hoisted_2$r=["src"],_sfc_main$z={__name:"pl-input",props:{modelValue:{required:!0},icon:{type:Boolean,default:!1},helper:{type:String,default:""},rules:{type:Object,default:function(){return{}}},prop:{type:String,default:"name"},getValid:{type:Boolean,default:!1},maxLength:{type:Number,default:210},minLength:{type:Number},isError:{type:Boolean,default:!1},optional:{type:String,default:""},prefix:{default:!1},clearable:{type:Boolean,default:!1},type:{type:String,default:"text"},label:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},widthLabel:{type:String,default:"100px"},currency:{type:Boolean,default:!1},round:{type:Boolean,default:!1},currencyInputOptions:{type:Object,default:()=>({})},valueRange:{type:Object,default:()=>({min:0})}},emits:["update:modelValue","validate","isValid"],setup(V,{emit:z}){const y=V,j=vue.ref(),{getValid:$,currency:le,round:Fe,currencyInputOptions:Ve,valueRange:de}=vue.toRefs(y),oe=vue.computed({get:()=>y.modelValue,set:dU=>{z("update:modelValue",dU)}}),ae=vue.reactive({[y.prop]:oe}),ue=vue.reactive({currency:"RUB",currencyDisplay:"hidden",precision:Fe.value?0:2,hideNegligibleDecimalDigitsOnFocus:!1,hideGroupingSeparatorOnFocus:!1,valueRange:vue.unref(de),...vue.unref(Ve)}),{inputRef:Ne,formattedValue:pe,setValue:he}=useCurrencyInput(ue);vue.unref(le)&&vue.watch(oe,dU=>{he(dU)});let ie=!1;const xe=(dU,rU,TU)=>{if(vue.unref(le)&&!ie&&pe.value.length<1){ie=!ie,j.value.resetFields();return}z("validate",dU,rU,TU)};vue.watch(oe,dU=>{ae[y.prop]=dU});const ze=dU=>{y.type==="number"?!isNaN(dU)&&!dU.includes(".")&&!dU.includes("+")&&!dU.includes("-")&&!dU.includes(",")&&z("update:modelValue",dU):z("update:modelValue",dU)},Ie=vue.computed(()=>{switch(y.type){case"text":return"text";case"textarea":return"textarea";case"number":return"text"}}),Ce=()=>{z("update:modelValue","")};let $e=vue.ref(0);const nU="id"+Math.random();setTimeout(()=>{const dU=document.getElementById(`${nU}`);$e.value=dU.children[0].children[0].clientWidth},0),vue.watch($,dU=>{dU&&(j.value.validate(),z("isValid"))});const RU=dU=>{let TU=dU.target.parentElement.parentElement.querySelector(".el-input__inner");setTimeout(()=>{TU.focus()})},VU=dU=>{const{keyCode:rU}=dU;if(rU>=96&&rU<=105||rU>=48&&rU<=57||rU===46||rU===8){const{selectionStart:TU,selectionEnd:JU}=dU.target,mU=dU.target.value.length;setTimeout(()=>{let pU=dU.target.value.length;rU===46&&(pU+=1);let iU;TU===JU||TU+1===JU?(iU=TU+(pU-mU),rU===8&&(pU===mU?iU-=1:JU!==TU&&(iU+=1)),iU<0&&(iU=0),JU===TU&&JU===iU&&pU===mU&&rU!==8&&rU!==46&&(iU+=1)):iU=JU-mU+pU,dU.target.selectionStart=iU,dU.target.selectionEnd=iU})}};return(dU,rU)=>{const TU=ElInput,JU=ElFormItem,mU=ElForm;return vue.openBlock(),vue.createElementBlock("div",null,[vue.createVNode(mU,{onValidate:xe,"label-position":"top",model:ae,ref_key:"refInput",ref:j,rules:V.rules},{default:vue.withCtx(()=>[vue.createElementVNode("div",{id:"form",class:vue.normalizeClass([V.icon&&!V.label?"padding-form":""])},[y.icon?(vue.openBlock(),vue.createElementBlock("img",_hoisted_1$v)):vue.createCommentVNode("",!0),y.prefix?(vue.openBlock(),vue.createElementBlock("img",{key:1,class:vue.normalizeClass(["prefix-icon",[!V.label||"prefixWithLabel"]]),alt:"user",src:V.prefix!==!0?V.prefix:vue.unref(_imports_1$3)},null,10,_hoisted_2$r)):vue.createCommentVNode("",!0),y.clearable?(vue.openBlock(),vue.createElementBlock("img",{key:2,onClick:Ce,class:vue.normalizeClass(["clearBtn",[!V.label&&!V.icon?"clearNoLabel":""]]),src:_imports_2$2,alt:"clear"},null,2)):vue.createCommentVNode("",!0),y.optional&&V.label?(vue.openBlock(),vue.createElementBlock("div",{key:3,class:"optional-text",style:vue.normalizeStyle({left:vue.unref($e)+"px"})},vue.toDisplayString(y.optional),5)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{id:nU},[vue.createVNode(JU,{class:vue.normalizeClass({"is-error":V.isError}),"show-message":!0,label:y.label,prop:V.prop},{default:vue.withCtx(()=>[vue.unref(le)?(vue.openBlock(),vue.createBlock(TU,vue.mergeProps({key:1,onKeydown:VU,class:{padding:y.prefix},minlength:V.minLength,maxlength:V.maxLength,disabled:y.disabled,placeholder:y.placeholder,resize:"none"},dU.$attrs,{ref_key:"inputRef",ref:Ne,modelValue:vue.unref(pe),"onUpdate:modelValue":rU[2]||(rU[2]=pU=>vue.isRef(pe)?pe.value=pU:null)}),vue.createSlots({_:2},[vue.unref(le)?{name:"append",fn:vue.withCtx(()=>[vue.createElementVNode("span",{class:"pl-currency__rub-icon",onClick:rU[1]||(rU[1]=pU=>RU(pU))},"\u20BD")])}:void 0]),1040,["class","minlength","maxlength","disabled","placeholder","modelValue"])):(vue.openBlock(),vue.createBlock(TU,vue.mergeProps({key:0,class:{padding:y.prefix},minlength:V.minLength,maxlength:V.maxLength,disabled:y.disabled,placeholder:y.placeholder,modelValue:vue.unref(oe),"onUpdate:modelValue":rU[0]||(rU[0]=pU=>vue.isRef(oe)?oe.value=pU:null),type:vue.unref(Ie),resize:"none"},dU.$attrs,{autosize:{minRows:3,maxRows:6},clearable:y.clearable,onInput:ze}),null,16,["class","minlength","maxlength","disabled","placeholder","modelValue","type","clearable"]))]),_:1},8,["class","label","prop"])]),V.isError?(vue.openBlock(),vue.createElementBlock("p",{key:4,class:vue.normalizeClass({isError:y.isError})},vue.toDisplayString(y.helper),3)):vue.createCommentVNode("",!0)],2)]),_:1},8,["model","rules"])])}}},PlInputPlugin={install(V){V.component("PlInput",_sfc_main$z)}},_sfc_main$y={__name:"pl-input-native",setup(V,{expose:z}){const y=vue.ref(null);return z({elInputRef:y}),(j,$)=>{const le=ElInput;return vue.openBlock(),vue.createBlock(le,vue.mergeProps({ref_key:"elInputRef",ref:y},j.$attrs),vue.createSlots({_:2},[vue.renderList(j.$slots,(Fe,Ve)=>({name:Ve,fn:vue.withCtx(de=>[vue.renderSlot(j.$slots,Ve,vue.normalizeProps(vue.guardReactiveProps(de)))])}))]),1040)}}},PlInputNativePlugin={install(V){V.component("PlInputNative",_sfc_main$y)}};var _export_sfc=(V,z)=>{const y=V.__vccOpts||V;for(const[j,$]of z)y[j]=$;return y};const _sfc_main$x={};function _sfc_render$3(V,z){const y=ElFormItem;return vue.openBlock(),vue.createBlock(y,vue.normalizeProps(vue.guardReactiveProps(V.$attrs)),vue.createSlots({default:vue.withCtx(()=>[vue.renderSlot(V.$slots,"default")]),_:2},[vue.renderList(V.$slots,(j,$)=>({name:$,fn:vue.withCtx(le=>[vue.renderSlot(V.$slots,$,vue.normalizeProps(vue.guardReactiveProps(le)))])}))]),1040)}var PlFormItem=_export_sfc(_sfc_main$x,[["render",_sfc_render$3]]);const PlFormItemPlugin={install(V){V.component("PlFormItem",PlFormItem)}};var button="";const _hoisted_1$u=vue.createElementVNode("p",null,"Hello NPM!",-1),_hoisted_2$q=vue.createTextVNode("Increment count"),__default__$9={name:"TestViteNpmComponent"},_sfc_main$w=Object.assign(__default__$9,{setup(V){const z=vue.ref(""),y=vue.ref(0),j=()=>y.value++;return($,le)=>{const Fe=ElInput,Ve=ElButton;return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[_hoisted_1$u,vue.createElementVNode("div",null,[vue.createVNode(Fe,{modelValue:z.value,"onUpdate:modelValue":le[0]||(le[0]=de=>z.value=de),style:{width:"40%"}},null,8,["modelValue"]),vue.createElementVNode("div",null,"This is input message: "+vue.toDisplayString(z.value),1)]),vue.createElementVNode("div",null,[vue.createVNode(Ve,{type:"primary",onClick:j},{default:vue.withCtx(()=>[_hoisted_2$q]),_:1}),vue.createElementVNode("div",null,"This is count: "+vue.toDisplayString(y.value),1)])],64)}}}),TestViteNpmComponentPlugin={install(V){V.component("TestViteNpmComponent",_sfc_main$w)}};var plButton_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$v={__name:"pl-button",props:{beforeIcon:{type:String,default:null},afterIcon:{type:String,default:null},onlyIcon:{type:String,default:null},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},type:{type:String,default:"primary"}},emits:["onClick"],setup(V,{emit:z}){const y=V;return(j,$)=>{const le=vue.resolveComponent("vue-feather"),Fe=ElButton;return vue.openBlock(),vue.createBlock(Fe,vue.mergeProps(j.$attrs,{class:[y.size==="medium"?"big":"",y.onlyIcon?"btn-icon":""],disabled:V.disabled,type:V.type,onClick:z.onClick}),{default:vue.withCtx(()=>[V.beforeIcon&&!V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:0,class:vue.normalizeClass(["icon icon__before",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]]),type:V.beforeIcon},null,8,["class","type"])):vue.createCommentVNode("",!0),V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:1,class:vue.normalizeClass(["icon icon__before only-icon",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]]),type:V.onlyIcon},null,8,["class","type"])):vue.createCommentVNode("",!0),V.onlyIcon?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",{key:2,class:vue.normalizeClass(["btn-text",[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""]])},[vue.renderSlot(j.$slots,"default",{},void 0,!0)],2)),V.afterIcon&&!V.onlyIcon?(vue.openBlock(),vue.createBlock(le,{key:3,class:vue.normalizeClass([[y.type==="secondary"?"btn-text-secondary":"",y.type==="tertiary"?"btn-text-tertiary":""],"icon icon__after"]),type:V.afterIcon},null,8,["class","type"])):vue.createCommentVNode("",!0)]),_:3},16,["class","disabled","type","onClick"])}}};var PlButton=_export_sfc(_sfc_main$v,[["__scopeId","data-v-26f1d202"]]);const PlButtonPlugin={install(V){V.component("PlButton",PlButton)}};var datePicker="",scrollbar="",popper="",ru$1={name:"ru",el:{colorpicker:{confirm:"OK",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C"},datepicker:{now:"\u0421\u0435\u0439\u0447\u0430\u0441",today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",confirm:"OK",selectDate:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",selectTime:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0440\u0435\u043C\u044F",startDate:"\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",startTime:"\u0412\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430",endDate:"\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",endTime:"\u0412\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",prevYear:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",nextYear:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",prevMonth:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",nextMonth:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",year:"",month1:"\u042F\u043D\u0432\u0430\u0440\u044C",month2:"\u0424\u0435\u0432\u0440\u0430\u043B\u044C",month3:"\u041C\u0430\u0440\u0442",month4:"\u0410\u043F\u0440\u0435\u043B\u044C",month5:"\u041C\u0430\u0439",month6:"\u0418\u044E\u043D\u044C",month7:"\u0418\u044E\u043B\u044C",month8:"\u0410\u0432\u0433\u0443\u0441\u0442",month9:"\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C",month10:"\u041E\u043A\u0442\u044F\u0431\u0440\u044C",month11:"\u041D\u043E\u044F\u0431\u0440\u044C",month12:"\u0414\u0435\u043A\u0430\u0431\u0440\u044C",week:"\u043D\u0435\u0434\u0435\u043B\u044F",weeks:{sun:"\u0412\u0441",mon:"\u041F\u043D",tue:"\u0412\u0442",wed:"\u0421\u0440",thu:"\u0427\u0442",fri:"\u041F\u0442",sat:"\u0421\u0431"},months:{jan:"\u042F\u043D\u0432",feb:"\u0424\u0435\u0432",mar:"\u041C\u0430\u0440",apr:"\u0410\u043F\u0440",may:"\u041C\u0430\u0439",jun:"\u0418\u044E\u043D",jul:"\u0418\u044E\u043B",aug:"\u0410\u0432\u0433",sep:"\u0421\u0435\u043D",oct:"\u041E\u043A\u0442",nov:"\u041D\u043E\u044F",dec:"\u0414\u0435\u043A"}},select:{loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",placeholder:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C"},cascader:{noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",placeholder:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"},pagination:{goto:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438",pagesize:" \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",total:"\u0412\u0441\u0435\u0433\u043E {total}",pageClassifier:""},messagebox:{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435",confirm:"OK",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",error:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u0430\u043D\u043D\u044B\u0445"},upload:{deleteTip:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 [\u0423\u0434\u0430\u043B\u0438\u0442\u044C] \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F",delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",preview:"\u041F\u0440\u0435\u0432\u044C\u044E",continue:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C"},table:{emptyText:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",confirmFilter:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",resetFilter:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",clearFilter:"\u0412\u0441\u0435",sumText:"\u0421\u0443\u043C\u043C\u0430"},tree:{emptyText:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"},transfer:{noMatch:"\u0421\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u0439 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",titles:["\u0421\u043F\u0438\u0441\u043E\u043A 1","\u0421\u043F\u0438\u0441\u043E\u043A 2"],filterPlaceholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043B\u044E\u0447\u0435\u0432\u043E\u0435 \u0441\u043B\u043E\u0432\u043E",noCheckedFormat:"{total} \u043F\u0443\u043D\u043A\u0442\u043E\u0432",hasCheckedFormat:"{checked}/{total} \u0432\u044B\u0431\u0440\u0430\u043D\u043E"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"OK",cancelButtonText:"\u041E\u0442\u043C\u0435\u043D\u0430"}}},ru={exports:{}};(function(V,z){(function(y,j){V.exports=j(dayjs_min.exports)})(commonjsGlobal,function(y){function j(he){return he&&typeof he=="object"&&"default"in he?he:{default:he}}var $=j(y),le="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),Fe="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),Ve="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),de="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),oe=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function ae(he,ie,xe){var ze,Ie;return xe==="m"?ie?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":he+" "+(ze=+he,Ie={mm:ie?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"}[xe].split("_"),ze%10==1&&ze%100!=11?Ie[0]:ze%10>=2&&ze%10<=4&&(ze%100<10||ze%100>=20)?Ie[1]:Ie[2])}var ue=function(he,ie){return oe.test(ie)?le[he.month()]:Fe[he.month()]};ue.s=Fe,ue.f=le;var Ne=function(he,ie){return oe.test(ie)?Ve[he.month()]:de[he.month()]};Ne.s=de,Ne.f=Ve;var pe={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:ue,monthsShort:Ne,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:ae,mm:ae,h:"\u0447\u0430\u0441",hh:ae,d:"\u0434\u0435\u043D\u044C",dd:ae,M:"\u043C\u0435\u0441\u044F\u0446",MM:ae,y:"\u0433\u043E\u0434",yy:ae},ordinal:function(he){return he},meridiem:function(he){return he<4?"\u043D\u043E\u0447\u0438":he<12?"\u0443\u0442\u0440\u0430":he<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};return $.default.locale(pe,null,!0),pe})})(ru);var plDatePickerRange_vue_vue_type_style_index_0_lang="";const __default__$8={name:"PlDatePickerRange"},_sfc_main$u=Object.assign(__default__$8,{props:{modelValue:{type:Array,default:null},format:{type:String,default:"DD.MM.YYYY"},startPlaceholder:{type:String,default:"\u0414\u0430\u0442\u0430 \u043E\u0442"},endPlaceholder:{type:String,default:"\u0414\u0430\u0442\u0430 \u0434\u043E"},pickerOptions:{type:Object,default:()=>({firstDayOfWeek:1})},width:{type:String,default:"224px"}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V;dayjs.locale("ru");const{modelValue:j}=vue.toRefs(y),$=vue.ref([]),le=vue.ref(null);return vue.watch($,Fe=>{z("update:modelValue",Fe)}),vue.watch(j,()=>{$.value=j.value}),$.value=j.value,(Fe,Ve)=>{const de=ElDatePicker;return vue.openBlock(),vue.createBlock(vue.unref(ElConfigProvider),{locale:vue.unref(ru$1)},{default:vue.withCtx(()=>[vue.createVNode(de,vue.mergeProps({ref_key:"innerDatePicker",ref:le},Fe.$attrs,{modelValue:$.value,"onUpdate:modelValue":Ve[0]||(Ve[0]=oe=>$.value=oe),format:V.format,"picker-options":V.pickerOptions,"start-placeholder":V.startPlaceholder,"end-placeholder":V.endPlaceholder,type:"daterange",style:`width: ${V.width};`}),null,16,["modelValue","format","picker-options","start-placeholder","end-placeholder","style"])]),_:1},8,["locale"])}}});var plDatePicker_vue_vue_type_style_index_0_lang="";const _hoisted_1$t=["id"],__default__$7={name:"PlDatePicker"},_sfc_main$t=Object.assign(__default__$7,{props:{modelValue:{type:Date,default:null},format:{type:String,default:"DD.MM.YYYY"},placeholder:{type:String,default:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443"},pickerOptions:{type:Object,default:()=>({firstDayOfWeek:1})},width:{type:String,default:"220px"},defaultValue:{type:Date,default:null},type:{type:String,default:"date"},isLastDayOfMonth:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(V,{emit:z}){const y=V;dayjs.locale("ru");const{modelValue:j}=vue.toRefs(y),$=vue.ref(null),le=vue.ref(null),Fe=vue.computed(()=>y.leftIcon?"left-icon":"right-icon");return vue.watch($,Ve=>{z("update:modelValue",Ve)}),vue.watch(j,()=>{$.value=j.value}),$.value=j.value,(Ve,de)=>{const oe=ElDatePicker;return vue.openBlock(),vue.createElementBlock("div",{id:vue.unref(Fe),style:{width:"100%"}},[vue.createVNode(vue.unref(ElConfigProvider),{locale:vue.unref(ru$1)},{default:vue.withCtx(()=>[vue.createVNode(oe,vue.mergeProps({ref_key:"innerDatePicker",ref:le},Ve.$attrs,{modelValue:$.value,"onUpdate:modelValue":de[0]||(de[0]=ae=>$.value=ae),format:V.format,"picker-options":V.pickerOptions,placeholder:V.placeholder,clearable:!1,style:`width: ${V.width};`,type:V.type,class:"pl-date-picker"}),null,16,["modelValue","format","picker-options","placeholder","style","type"])]),_:1},8,["locale"])],8,_hoisted_1$t)}}});var root="",common="";const PlDatePickerPlugin={install(V){V.component("PlDatePickerRange",_sfc_main$u),V.component("PlDatePicker",_sfc_main$t)}};var loading="",dialog="",overlay="",tag="",option="",optionGroup="",select="",lodash={exports:{}};/**
49
49
  * @license
50
50
  * Lodash <https://lodash.com/>
51
51
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "require": "./dist/pl-components-pack-v3.umd.js"
14
14
  }
15
15
  },
16
- "version": "0.4.52",
16
+ "version": "0.4.53",
17
17
  "scripts": {
18
18
  "dev": "vite",
19
19
  "build": "vue-tsc --noEmit && vite build",