@factoringplus/pl-components-pack-v3 0.1.0 → 0.1.1

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.
@@ -992,5 +992,5 @@ const __exports__ = pl_currencyvue_type_script_setup_true_lang_js;
992
992
 
993
993
  /***/ })
994
994
 
995
- /******/ })["default"];
995
+ /******/ });
996
996
  //# sourceMappingURL=pl-components-pack-v3.common.js.map
@@ -1001,6 +1001,6 @@ const __exports__ = pl_currencyvue_type_script_setup_true_lang_js;
1001
1001
 
1002
1002
  /***/ })
1003
1003
 
1004
- /******/ })["default"];
1004
+ /******/ });
1005
1005
  });
1006
1006
  //# sourceMappingURL=pl-components-pack-v3.umd.js.map
@@ -4,5 +4,5 @@
4
4
  * (c) 2018-2022 Matthias Stiller
5
5
  * @license MIT
6
6
  */
7
- const u=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=t=>t.replace(/^0+(0$|[^0])/,"$1"),l=(t,i)=>(t.match(new RegExp(u(i),"g"))||[]).length,m=(t,i)=>t.substring(0,t.indexOf(i));var h,d;(function(t){t["symbol"]="symbol",t["narrowSymbol"]="narrowSymbol",t["code"]="code",t["name"]="name",t["hidden"]="hidden"})(h||(h={})),function(t){t["precision"]="precision",t["thousands"]="thousands",t["millions"]="millions",t["billions"]="billions"}(d||(d={}));const p=[",",".","٫"],g="(0|[1-9]\\d*)";class f{constructor(t){var i,e,n,r,s,o;const{currency:a,currencyDisplay:u,locale:c,precision:l,accountingSign:d}=t;this.locale=c,this.options={style:"currency",currency:a,currencySign:d?"accounting":void 0,currencyDisplay:u!==h.hidden?u:void 0};const p=new Intl.NumberFormat(c,this.options),g=p.formatToParts(123456);this.currency=null===(i=g.find(({type:t})=>"currency"===t))||void 0===i?void 0:i.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(t=>t.toLocaleString(c)),this.decimalSymbol=null===(e=g.find(({type:t})=>"decimal"===t))||void 0===e?void 0:e.value,this.groupingSymbol=null===(n=g.find(({type:t})=>"group"===t))||void 0===n?void 0:n.value,this.minusSign=null===(r=p.formatToParts(-1).find(({type:t})=>"minusSign"===t))||void 0===r?void 0:r.value,void 0===this.decimalSymbol?this.minimumFractionDigits=this.maximumFractionDigits=0:"number"===typeof l?this.minimumFractionDigits=this.maximumFractionDigits=l:(this.minimumFractionDigits=null!==(s=null===l||void 0===l?void 0:l.min)&&void 0!==s?s:p.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=null!==(o=null===l||void 0===l?void 0:l.max)&&void 0!==o?o:p.resolvedOptions().maximumFractionDigits);const f=t=>m(t,this.digits[1]),v=t=>t.substring(t.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=f(p.format(1)),this.suffix=v(p.format(1)),this.negativePrefix=f(p.format(-1)),this.negativeSuffix=v(p.format(-1))}parse(t){if(t){const i=this.isNegative(t);t=this.normalizeDigits(t),t=this.stripCurrency(t,i),t=this.stripSignLiterals(t);const e=this.decimalSymbol?`(?:${u(this.decimalSymbol)}(\\d*))?`:"",n=this.stripGroupingSeparator(t).match(new RegExp(`^${g}${e}$`));if(n&&this.isValidIntegerFormat(this.decimalSymbol?t.split(this.decimalSymbol)[0]:t,Number(n[1])))return Number(`${i?"-":""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2]||"")}`)}return null}isValidIntegerFormat(t,i){const e={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(i.toLocaleString(this.locale,{...e,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(i.toLocaleString(this.locale,{...e,useGrouping:!1})),!1)].includes(t)}format(t,i={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return null!=t?t.toLocaleString(this.locale,{...this.options,...i}):""}toFraction(t){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(t.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(t){return!!this.normalizeDigits(this.stripGroupingSeparator(t)).match(new RegExp(`^${g}${u(this.decimalSymbol)}$`))}isNegative(t){return t.startsWith(this.negativePrefix)||void 0===this.minusSign&&(t.startsWith("(")||t.startsWith("-"))||void 0!==this.minusSign&&t.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(t,i){return`${i?this.negativePrefix:this.prefix}${t}${i?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(t){return void 0!==this.groupingSymbol?t.replace(new RegExp(u(this.groupingSymbol),"g"),""):t}stripSignLiterals(t){return void 0!==this.minusSign?t.replace("-",this.minusSign).replace(this.minusSign,""):t.replace(/[-()]/g,"")}stripCurrency(t,i){return t.replace(i?this.negativePrefix:this.prefix,"").replace(i?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(t,i){return p.forEach(e=>{t=t.substr(0,i)+t.substr(i).replace(e,this.decimalSymbol)}),t}normalizeDigits(t){return"0"!==this.digits[0]&&this.digits.forEach((i,e)=>{t=t.replace(new RegExp(i,"g"),String(e))}),t}onlyDigits(t){return this.normalizeDigits(t).replace(/\D+/g,"")}onlyLocaleDigits(t){return t.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class v{constructor(t){this.currencyFormat=t}}class y extends v{conformToMask(t,i=""){const e=this.currencyFormat.isNegative(t),n=t=>""===t&&e&&!(void 0===this.currencyFormat.minusSign?i===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:i===this.currencyFormat.negativePrefix),r=t=>{if(n(t))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(t))return t;if(t.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(t)}return null};let s=t;s=this.currencyFormat.stripCurrency(s,e),s=this.currencyFormat.stripSignLiterals(s);const o=r(s);if(null!=o)return this.currencyFormat.insertCurrency(o,e);const[a,...u]=s.split(this.currencyFormat.decimalSymbol),l=c(this.currencyFormat.onlyDigits(a)),m=this.currencyFormat.onlyDigits(u.join("")).substr(0,this.currencyFormat.maximumFractionDigits),h=u.length>0&&0===m.length,d=""===l&&e&&(void 0===this.currencyFormat.minusSign?i===t.slice(0,-2)+this.currencyFormat.negativeSuffix:i===t.slice(0,-1));return h||d||n(l)?i:l.match(/\d+/)?{numberValue:Number(`${e?"-":""}${l}.${m}`),fractionDigits:m}:""}}class F extends v{conformToMask(t,i=""){if(""===t||0===this.currencyFormat.parse(i)&&this.currencyFormat.stripCurrency(i,!0).slice(0,-1)===this.currencyFormat.stripCurrency(t,!0))return"";const e=this.currencyFormat.isNegative(t),n=""===this.currencyFormat.stripSignLiterals(t)?-0:Number(`${e?"-":""}${c(this.currencyFormat.onlyDigits(t))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:n,fractionDigits:n.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const b={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 S{constructor(t,i){this.el=t,this.numberValue=null,this.addEventListener(),this.init(i),this.setValue(this.currencyFormat.parse(this.el.value))}setOptions(t){this.init(t),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){const t=this.valueScaling&&null!=this.numberValue?this.toInteger(this.numberValue,this.valueScaling):this.numberValue;return{number:t,formatted:this.formattedValue}}setValue(t){const i=void 0!==this.valueScaling&&null!=t?this.toFloat(t,this.valueScaling):t;i!==this.numberValue&&this.applyFixedFractionFormat(i)}dispatchEvent(t){this.el.dispatchEvent(new CustomEvent(t,{detail:this.getValue()}))}init(t){this.options={...b,...t},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new f(this.options),this.numberMask=this.options.autoDecimalDigits?new F(this.currencyFormat):new y(this.currencyFormat);const i={[d.precision]:this.currencyFormat.maximumFractionDigits,[d.thousands]:3,[d.millions]:6,[d.billions]:9};this.options.exportValueAsInteger?this.valueScaling=i[d.precision]:this.valueScaling=this.options.valueScaling?i[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=void 0!==this.valueScaling&&this.options.valueScaling!==d.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var t,i;let e=this.toFloat(-Number.MAX_SAFE_INTEGER);return void 0!==(null===(t=this.options.valueRange)||void 0===t?void 0:t.min)&&(e=Math.max(null===(i=this.options.valueRange)||void 0===i?void 0:i.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&e<0&&(e=0),e}getMaxValue(){var t,i;let e=this.toFloat(Number.MAX_SAFE_INTEGER);return void 0!==(null===(t=this.options.valueRange)||void 0===t?void 0:t.max)&&(e=Math.min(null===(i=this.options.valueRange)||void 0===i?void 0:i.max,this.toFloat(Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&e<0&&(e=this.toFloat(Number.MAX_SAFE_INTEGER)),e}toFloat(t,i){return t/Math.pow(10,null!==i&&void 0!==i?i:this.valueScalingFractionDigits)}toInteger(t,i){return Number(t.toFixed(null!==i&&void 0!==i?i:this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(t){return null!=t?Math.min(Math.max(t,this.minValue),this.maxValue):t}applyFixedFractionFormat(t,i=!1){this.format(this.currencyFormat.format(this.validateValueRange(t))),(t!==this.numberValue||i)&&this.dispatchEvent("change")}format(t,i=!1){if(null!=t){void 0!==this.decimalSymbolInsertedAt&&(t=this.currencyFormat.normalizeDecimalSeparator(t,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const e=this.numberMask.conformToMask(t,this.formattedValue);let n;if("object"===typeof e){const{numberValue:t,fractionDigits:r}=e;let{maximumFractionDigits:s,minimumFractionDigits:o}=this.currencyFormat;this.focus?o=i?r.replace(/0+$/,"").length:Math.min(s,r.length):!Number.isInteger(t)||this.options.autoDecimalDigits||void 0!==this.options.precision&&0!==o||(o=s=0),n=this.toInteger(Math.abs(t))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(t,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:o,maximumFractionDigits:s})}else n=e;this.options.autoSign&&(this.maxValue<=0&&!this.currencyFormat.isNegative(n)&&0!==this.currencyFormat.parse(n)&&(n=n.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&(n=n.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix))),(this.options.currencyDisplay===h.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&(n=n.replace(this.currencyFormat.negativePrefix,void 0!==this.currencyFormat.minusSign?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,void 0!==this.currencyFormat.minusSign?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=n,this.numberValue=this.currencyFormat.parse(n)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.dispatchEvent("input")}addEventListener(){this.el.addEventListener("input",t=>{if(!t.detail){const{value:i,selectionStart:e}=this.el,n=t;if(e&&n.data&&p.includes(n.data)&&(this.decimalSymbolInsertedAt=e-1),this.format(i),this.focus&&null!=e){const t=()=>{const{prefix:t,suffix:n,decimalSymbol:r,maximumFractionDigits:s,groupingSymbol:o}=this.currencyFormat;let a=i.length-e;const u=this.formattedValue.length;if(void 0===this.currencyFormat.minusSign&&(i.startsWith("(")||i.startsWith("-"))&&!i.endsWith(")"))return u-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(e).length:1;if(this.formattedValue.substr(e,1)===o&&l(this.formattedValue,o)===l(i,o)+1)return u-a-1;if(u<a)return e;if(void 0!==r&&-1!==i.indexOf(r)){const t=i.indexOf(r)+1;if(Math.abs(u-i.length)>1&&e<=t)return this.formattedValue.indexOf(r)+1;!this.options.autoDecimalDigits&&e>t&&this.currencyFormat.onlyDigits(i.substr(t)).length-1===s&&(a-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===h.hidden?u-a:Math.max(u-Math.max(a,n.length),t.length)};this.setCaretPosition(t())}}},{capture:!0}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:t,selectionStart:i,selectionEnd:e}=this.el;if(this.format(t,this.options.hideNegligibleDecimalDigitsOnFocus),null!=i&&null!=e&&Math.abs(i-e)>0)this.setCaretPosition(0,this.el.value.length);else if(null!=i){const e=this.getCaretPositionOnFocus(t,i);this.setCaretPosition(e)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",t=>{t.detail||this.dispatchEvent("change")},{capture:!0})}getCaretPositionOnFocus(t,i){if(null==this.numberValue)return i;const{prefix:e,negativePrefix:n,suffix:r,negativeSuffix:s,groupingSymbol:o,currency:a}=this.currencyFormat,u=this.numberValue<0,c=u?n:e,m=c.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===h.hidden){if(u){if(i<=1)return 1;if(t.endsWith(")")&&i>t.indexOf(")"))return this.formattedValue.length-1}}else{const e=u?s.length:r.length;if(i>=t.length-e)return this.formattedValue.length-e;if(i<m)return m}let d=i;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==h.hidden&&i>=m&&void 0!==a&&c.includes(a)&&(d-=m,u&&(d+=1)),this.options.hideGroupingSeparatorOnFocus&&void 0!==o&&(d-=l(t.substring(0,i),o)),d}setCaretPosition(t,i=t){this.el.setSelectionRange(t,i)}}const x=t=>(null===t||void 0===t?void 0:t.matches("input"))?t:null===t||void 0===t?void 0:t.querySelector("input");var D=t=>{var i;let e,n;const r=Object(a["ref"])(null),s=Object(a["ref"])(null),o=Object(a["getCurrentInstance"])(),u=(t,i)=>null===o||void 0===o?void 0:o.emit(t,i),c=a["isVue3"]&&(null===(i=null===o||void 0===o?void 0:o.attrs.modelModifiers)||void 0===i?void 0:i.lazy),l=Object(a["computed"])(()=>null===o||void 0===o?void 0:o.props[a["isVue3"]?"modelValue":"value"]),m=a["isVue3"]?"update:modelValue":"input",h=c?"update:modelValue":"change",d=!a["isVue3"]||!c,p=!a["isVue3"]||c||!(null===o||void 0===o?void 0:o.attrs.onChange),g=t=>{t.detail&&(l.value!==t.detail.number&&u(m,t.detail.number),s.value=t.detail.formatted)},f=t=>{t.detail&&(u(h,t.detail.number),s.value=t.detail.formatted)};return Object(a["watch"])(r,i=>{var r,s;i?(n=x(null!==(s=null===(r=i)||void 0===r?void 0:r.$el)&&void 0!==s?s:i),n?(e=new S(n,t),d&&n.addEventListener("input",g),p&&n.addEventListener("change",f),e.setValue(l.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')):e=null}),Object(a["onUnmounted"])(()=>{d&&(null===n||void 0===n||n.removeEventListener("input",g)),p&&(null===n||void 0===n||n.removeEventListener("change",f))}),{inputRef:r,formattedValue:s,setValue:t=>null===e||void 0===e?void 0:e.setValue(t),setOptions:t=>null===e||void 0===e?void 0:e.setOptions(t)}},V=Object(o["createElementVNode"])("span",{class:"pl-currency__rub-icon"},"₽",-1),E={props:{modelValue:String},emits:["update:modelValue"],setup:function(t,i){var e=i.emit,n=Object(o["ref"])(null),r=Object(o["reactive"])({currency:"EUR",currencyDisplay:"hidden",precision:2}),s=D(r),a=s.inputRef;return Object(o["watch"])(n,(function(t){e("update:modelValue",t)})),function(t,i){var e=Object(o["resolveComponent"])("el-input");return Object(o["openBlock"])(),Object(o["createBlock"])(e,Object(o["mergeProps"])(t.$attrs,{ref_key:"inputRef",ref:a,modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=function(t){return n.value=t}),class:"pl-currency"}),{append:Object(o["withCtx"])((function(){return[V]})),_:1},16,["modelValue"])}}};e("3df6");const O=E;var M=O,$=M;i["default"]=$}})["default"]}));
7
+ const u=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=t=>t.replace(/^0+(0$|[^0])/,"$1"),l=(t,i)=>(t.match(new RegExp(u(i),"g"))||[]).length,m=(t,i)=>t.substring(0,t.indexOf(i));var h,d;(function(t){t["symbol"]="symbol",t["narrowSymbol"]="narrowSymbol",t["code"]="code",t["name"]="name",t["hidden"]="hidden"})(h||(h={})),function(t){t["precision"]="precision",t["thousands"]="thousands",t["millions"]="millions",t["billions"]="billions"}(d||(d={}));const p=[",",".","٫"],g="(0|[1-9]\\d*)";class f{constructor(t){var i,e,n,r,s,o;const{currency:a,currencyDisplay:u,locale:c,precision:l,accountingSign:d}=t;this.locale=c,this.options={style:"currency",currency:a,currencySign:d?"accounting":void 0,currencyDisplay:u!==h.hidden?u:void 0};const p=new Intl.NumberFormat(c,this.options),g=p.formatToParts(123456);this.currency=null===(i=g.find(({type:t})=>"currency"===t))||void 0===i?void 0:i.value,this.digits=[0,1,2,3,4,5,6,7,8,9].map(t=>t.toLocaleString(c)),this.decimalSymbol=null===(e=g.find(({type:t})=>"decimal"===t))||void 0===e?void 0:e.value,this.groupingSymbol=null===(n=g.find(({type:t})=>"group"===t))||void 0===n?void 0:n.value,this.minusSign=null===(r=p.formatToParts(-1).find(({type:t})=>"minusSign"===t))||void 0===r?void 0:r.value,void 0===this.decimalSymbol?this.minimumFractionDigits=this.maximumFractionDigits=0:"number"===typeof l?this.minimumFractionDigits=this.maximumFractionDigits=l:(this.minimumFractionDigits=null!==(s=null===l||void 0===l?void 0:l.min)&&void 0!==s?s:p.resolvedOptions().minimumFractionDigits,this.maximumFractionDigits=null!==(o=null===l||void 0===l?void 0:l.max)&&void 0!==o?o:p.resolvedOptions().maximumFractionDigits);const f=t=>m(t,this.digits[1]),v=t=>t.substring(t.lastIndexOf(this.decimalSymbol?this.digits[0]:this.digits[1])+1);this.prefix=f(p.format(1)),this.suffix=v(p.format(1)),this.negativePrefix=f(p.format(-1)),this.negativeSuffix=v(p.format(-1))}parse(t){if(t){const i=this.isNegative(t);t=this.normalizeDigits(t),t=this.stripCurrency(t,i),t=this.stripSignLiterals(t);const e=this.decimalSymbol?`(?:${u(this.decimalSymbol)}(\\d*))?`:"",n=this.stripGroupingSeparator(t).match(new RegExp(`^${g}${e}$`));if(n&&this.isValidIntegerFormat(this.decimalSymbol?t.split(this.decimalSymbol)[0]:t,Number(n[1])))return Number(`${i?"-":""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2]||"")}`)}return null}isValidIntegerFormat(t,i){const e={...this.options,minimumFractionDigits:0};return[this.stripCurrency(this.normalizeDigits(i.toLocaleString(this.locale,{...e,useGrouping:!0})),!1),this.stripCurrency(this.normalizeDigits(i.toLocaleString(this.locale,{...e,useGrouping:!1})),!1)].includes(t)}format(t,i={minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits}){return null!=t?t.toLocaleString(this.locale,{...this.options,...i}):""}toFraction(t){return`${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(t.substr(1)).substr(0,this.maximumFractionDigits)}`}isFractionIncomplete(t){return!!this.normalizeDigits(this.stripGroupingSeparator(t)).match(new RegExp(`^${g}${u(this.decimalSymbol)}$`))}isNegative(t){return t.startsWith(this.negativePrefix)||void 0===this.minusSign&&(t.startsWith("(")||t.startsWith("-"))||void 0!==this.minusSign&&t.replace("-",this.minusSign).startsWith(this.minusSign)}insertCurrency(t,i){return`${i?this.negativePrefix:this.prefix}${t}${i?this.negativeSuffix:this.suffix}`}stripGroupingSeparator(t){return void 0!==this.groupingSymbol?t.replace(new RegExp(u(this.groupingSymbol),"g"),""):t}stripSignLiterals(t){return void 0!==this.minusSign?t.replace("-",this.minusSign).replace(this.minusSign,""):t.replace(/[-()]/g,"")}stripCurrency(t,i){return t.replace(i?this.negativePrefix:this.prefix,"").replace(i?this.negativeSuffix:this.suffix,"")}normalizeDecimalSeparator(t,i){return p.forEach(e=>{t=t.substr(0,i)+t.substr(i).replace(e,this.decimalSymbol)}),t}normalizeDigits(t){return"0"!==this.digits[0]&&this.digits.forEach((i,e)=>{t=t.replace(new RegExp(i,"g"),String(e))}),t}onlyDigits(t){return this.normalizeDigits(t).replace(/\D+/g,"")}onlyLocaleDigits(t){return t.replace(new RegExp(`[^${this.digits.join("")}]*`,"g"),"")}}class v{constructor(t){this.currencyFormat=t}}class y extends v{conformToMask(t,i=""){const e=this.currencyFormat.isNegative(t),n=t=>""===t&&e&&!(void 0===this.currencyFormat.minusSign?i===this.currencyFormat.negativePrefix+this.currencyFormat.negativeSuffix:i===this.currencyFormat.negativePrefix),r=t=>{if(n(t))return"";if(this.currencyFormat.maximumFractionDigits>0){if(this.currencyFormat.isFractionIncomplete(t))return t;if(t.startsWith(this.currencyFormat.decimalSymbol))return this.currencyFormat.toFraction(t)}return null};let s=t;s=this.currencyFormat.stripCurrency(s,e),s=this.currencyFormat.stripSignLiterals(s);const o=r(s);if(null!=o)return this.currencyFormat.insertCurrency(o,e);const[a,...u]=s.split(this.currencyFormat.decimalSymbol),l=c(this.currencyFormat.onlyDigits(a)),m=this.currencyFormat.onlyDigits(u.join("")).substr(0,this.currencyFormat.maximumFractionDigits),h=u.length>0&&0===m.length,d=""===l&&e&&(void 0===this.currencyFormat.minusSign?i===t.slice(0,-2)+this.currencyFormat.negativeSuffix:i===t.slice(0,-1));return h||d||n(l)?i:l.match(/\d+/)?{numberValue:Number(`${e?"-":""}${l}.${m}`),fractionDigits:m}:""}}class F extends v{conformToMask(t,i=""){if(""===t||0===this.currencyFormat.parse(i)&&this.currencyFormat.stripCurrency(i,!0).slice(0,-1)===this.currencyFormat.stripCurrency(t,!0))return"";const e=this.currencyFormat.isNegative(t),n=""===this.currencyFormat.stripSignLiterals(t)?-0:Number(`${e?"-":""}${c(this.currencyFormat.onlyDigits(t))}`)/Math.pow(10,this.currencyFormat.maximumFractionDigits);return{numberValue:n,fractionDigits:n.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)}}}const b={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 S{constructor(t,i){this.el=t,this.numberValue=null,this.addEventListener(),this.init(i),this.setValue(this.currencyFormat.parse(this.el.value))}setOptions(t){this.init(t),this.applyFixedFractionFormat(this.numberValue,!0)}getValue(){const t=this.valueScaling&&null!=this.numberValue?this.toInteger(this.numberValue,this.valueScaling):this.numberValue;return{number:t,formatted:this.formattedValue}}setValue(t){const i=void 0!==this.valueScaling&&null!=t?this.toFloat(t,this.valueScaling):t;i!==this.numberValue&&this.applyFixedFractionFormat(i)}dispatchEvent(t){this.el.dispatchEvent(new CustomEvent(t,{detail:this.getValue()}))}init(t){this.options={...b,...t},this.options.autoDecimalDigits?(this.options.hideNegligibleDecimalDigitsOnFocus=!1,this.el.setAttribute("inputmode","numeric")):this.el.setAttribute("inputmode","decimal"),this.currencyFormat=new f(this.options),this.numberMask=this.options.autoDecimalDigits?new F(this.currencyFormat):new y(this.currencyFormat);const i={[d.precision]:this.currencyFormat.maximumFractionDigits,[d.thousands]:3,[d.millions]:6,[d.billions]:9};this.options.exportValueAsInteger?this.valueScaling=i[d.precision]:this.valueScaling=this.options.valueScaling?i[this.options.valueScaling]:void 0,this.valueScalingFractionDigits=void 0!==this.valueScaling&&this.options.valueScaling!==d.precision?this.valueScaling+this.currencyFormat.maximumFractionDigits:this.currencyFormat.maximumFractionDigits,this.minValue=this.getMinValue(),this.maxValue=this.getMaxValue()}getMinValue(){var t,i;let e=this.toFloat(-Number.MAX_SAFE_INTEGER);return void 0!==(null===(t=this.options.valueRange)||void 0===t?void 0:t.min)&&(e=Math.max(null===(i=this.options.valueRange)||void 0===i?void 0:i.min,this.toFloat(-Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&e<0&&(e=0),e}getMaxValue(){var t,i;let e=this.toFloat(Number.MAX_SAFE_INTEGER);return void 0!==(null===(t=this.options.valueRange)||void 0===t?void 0:t.max)&&(e=Math.min(null===(i=this.options.valueRange)||void 0===i?void 0:i.max,this.toFloat(Number.MAX_SAFE_INTEGER))),!this.options.autoSign&&e<0&&(e=this.toFloat(Number.MAX_SAFE_INTEGER)),e}toFloat(t,i){return t/Math.pow(10,null!==i&&void 0!==i?i:this.valueScalingFractionDigits)}toInteger(t,i){return Number(t.toFixed(null!==i&&void 0!==i?i:this.valueScalingFractionDigits).split(".").join(""))}validateValueRange(t){return null!=t?Math.min(Math.max(t,this.minValue),this.maxValue):t}applyFixedFractionFormat(t,i=!1){this.format(this.currencyFormat.format(this.validateValueRange(t))),(t!==this.numberValue||i)&&this.dispatchEvent("change")}format(t,i=!1){if(null!=t){void 0!==this.decimalSymbolInsertedAt&&(t=this.currencyFormat.normalizeDecimalSeparator(t,this.decimalSymbolInsertedAt),this.decimalSymbolInsertedAt=void 0);const e=this.numberMask.conformToMask(t,this.formattedValue);let n;if("object"===typeof e){const{numberValue:t,fractionDigits:r}=e;let{maximumFractionDigits:s,minimumFractionDigits:o}=this.currencyFormat;this.focus?o=i?r.replace(/0+$/,"").length:Math.min(s,r.length):!Number.isInteger(t)||this.options.autoDecimalDigits||void 0!==this.options.precision&&0!==o||(o=s=0),n=this.toInteger(Math.abs(t))>Number.MAX_SAFE_INTEGER?this.formattedValue:this.currencyFormat.format(t,{useGrouping:this.options.useGrouping&&!(this.focus&&this.options.hideGroupingSeparatorOnFocus),minimumFractionDigits:o,maximumFractionDigits:s})}else n=e;this.options.autoSign&&(this.maxValue<=0&&!this.currencyFormat.isNegative(n)&&0!==this.currencyFormat.parse(n)&&(n=n.replace(this.currencyFormat.prefix,this.currencyFormat.negativePrefix)),this.minValue>=0&&(n=n.replace(this.currencyFormat.negativePrefix,this.currencyFormat.prefix))),(this.options.currencyDisplay===h.hidden||this.focus&&this.options.hideCurrencySymbolOnFocus)&&(n=n.replace(this.currencyFormat.negativePrefix,void 0!==this.currencyFormat.minusSign?this.currencyFormat.minusSign:"(").replace(this.currencyFormat.negativeSuffix,void 0!==this.currencyFormat.minusSign?"":")").replace(this.currencyFormat.prefix,"").replace(this.currencyFormat.suffix,"")),this.el.value=n,this.numberValue=this.currencyFormat.parse(n)}else this.el.value="",this.numberValue=null;this.formattedValue=this.el.value,this.dispatchEvent("input")}addEventListener(){this.el.addEventListener("input",t=>{if(!t.detail){const{value:i,selectionStart:e}=this.el,n=t;if(e&&n.data&&p.includes(n.data)&&(this.decimalSymbolInsertedAt=e-1),this.format(i),this.focus&&null!=e){const t=()=>{const{prefix:t,suffix:n,decimalSymbol:r,maximumFractionDigits:s,groupingSymbol:o}=this.currencyFormat;let a=i.length-e;const u=this.formattedValue.length;if(void 0===this.currencyFormat.minusSign&&(i.startsWith("(")||i.startsWith("-"))&&!i.endsWith(")"))return u-this.currencyFormat.negativeSuffix.length>1?this.formattedValue.substring(e).length:1;if(this.formattedValue.substr(e,1)===o&&l(this.formattedValue,o)===l(i,o)+1)return u-a-1;if(u<a)return e;if(void 0!==r&&-1!==i.indexOf(r)){const t=i.indexOf(r)+1;if(Math.abs(u-i.length)>1&&e<=t)return this.formattedValue.indexOf(r)+1;!this.options.autoDecimalDigits&&e>t&&this.currencyFormat.onlyDigits(i.substr(t)).length-1===s&&(a-=1)}return this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===h.hidden?u-a:Math.max(u-Math.max(a,n.length),t.length)};this.setCaretPosition(t())}}},{capture:!0}),this.el.addEventListener("focus",()=>{this.focus=!0,setTimeout(()=>{const{value:t,selectionStart:i,selectionEnd:e}=this.el;if(this.format(t,this.options.hideNegligibleDecimalDigitsOnFocus),null!=i&&null!=e&&Math.abs(i-e)>0)this.setCaretPosition(0,this.el.value.length);else if(null!=i){const e=this.getCaretPositionOnFocus(t,i);this.setCaretPosition(e)}})}),this.el.addEventListener("blur",()=>{this.focus=!1,this.applyFixedFractionFormat(this.numberValue)}),this.el.addEventListener("change",t=>{t.detail||this.dispatchEvent("change")},{capture:!0})}getCaretPositionOnFocus(t,i){if(null==this.numberValue)return i;const{prefix:e,negativePrefix:n,suffix:r,negativeSuffix:s,groupingSymbol:o,currency:a}=this.currencyFormat,u=this.numberValue<0,c=u?n:e,m=c.length;if(this.options.hideCurrencySymbolOnFocus||this.options.currencyDisplay===h.hidden){if(u){if(i<=1)return 1;if(t.endsWith(")")&&i>t.indexOf(")"))return this.formattedValue.length-1}}else{const e=u?s.length:r.length;if(i>=t.length-e)return this.formattedValue.length-e;if(i<m)return m}let d=i;return this.options.hideCurrencySymbolOnFocus&&this.options.currencyDisplay!==h.hidden&&i>=m&&void 0!==a&&c.includes(a)&&(d-=m,u&&(d+=1)),this.options.hideGroupingSeparatorOnFocus&&void 0!==o&&(d-=l(t.substring(0,i),o)),d}setCaretPosition(t,i=t){this.el.setSelectionRange(t,i)}}const x=t=>(null===t||void 0===t?void 0:t.matches("input"))?t:null===t||void 0===t?void 0:t.querySelector("input");var D=t=>{var i;let e,n;const r=Object(a["ref"])(null),s=Object(a["ref"])(null),o=Object(a["getCurrentInstance"])(),u=(t,i)=>null===o||void 0===o?void 0:o.emit(t,i),c=a["isVue3"]&&(null===(i=null===o||void 0===o?void 0:o.attrs.modelModifiers)||void 0===i?void 0:i.lazy),l=Object(a["computed"])(()=>null===o||void 0===o?void 0:o.props[a["isVue3"]?"modelValue":"value"]),m=a["isVue3"]?"update:modelValue":"input",h=c?"update:modelValue":"change",d=!a["isVue3"]||!c,p=!a["isVue3"]||c||!(null===o||void 0===o?void 0:o.attrs.onChange),g=t=>{t.detail&&(l.value!==t.detail.number&&u(m,t.detail.number),s.value=t.detail.formatted)},f=t=>{t.detail&&(u(h,t.detail.number),s.value=t.detail.formatted)};return Object(a["watch"])(r,i=>{var r,s;i?(n=x(null!==(s=null===(r=i)||void 0===r?void 0:r.$el)&&void 0!==s?s:i),n?(e=new S(n,t),d&&n.addEventListener("input",g),p&&n.addEventListener("change",f),e.setValue(l.value)):console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.')):e=null}),Object(a["onUnmounted"])(()=>{d&&(null===n||void 0===n||n.removeEventListener("input",g)),p&&(null===n||void 0===n||n.removeEventListener("change",f))}),{inputRef:r,formattedValue:s,setValue:t=>null===e||void 0===e?void 0:e.setValue(t),setOptions:t=>null===e||void 0===e?void 0:e.setOptions(t)}},V=Object(o["createElementVNode"])("span",{class:"pl-currency__rub-icon"},"₽",-1),E={props:{modelValue:String},emits:["update:modelValue"],setup:function(t,i){var e=i.emit,n=Object(o["ref"])(null),r=Object(o["reactive"])({currency:"EUR",currencyDisplay:"hidden",precision:2}),s=D(r),a=s.inputRef;return Object(o["watch"])(n,(function(t){e("update:modelValue",t)})),function(t,i){var e=Object(o["resolveComponent"])("el-input");return Object(o["openBlock"])(),Object(o["createBlock"])(e,Object(o["mergeProps"])(t.$attrs,{ref_key:"inputRef",ref:a,modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=function(t){return n.value=t}),class:"pl-currency"}),{append:Object(o["withCtx"])((function(){return[V]})),_:1},16,["modelValue"])}}};e("3df6");const O=E;var M=O,$=M;i["default"]=$}})}));
8
8
  //# sourceMappingURL=pl-components-pack-v3.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://@factoringplus/pl-components-pack-v3/webpack/universalModuleDefinition","webpack://@factoringplus/pl-components-pack-v3/webpack/bootstrap","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue?e10c","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@soda/get-current-script/index.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/vue-demi/lib/index.mjs","webpack://@factoringplus/pl-components-pack-v3/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/vue-currency-input/dist/index.esm.js","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue?d609","webpack://@factoringplus/pl-components-pack-v3/./entry.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","getCurrentScript","descriptor","getOwnPropertyDescriptor","document","currentScript","Error","err","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","exec","stack","scriptLocation","line","currentLocation","location","href","replace","hash","scripts","getElementsByTagName","documentElement","outerHTML","RegExp","trim","length","readyState","src","innerHTML","isVue3","window","match","escapeRegExp","str","removeLeadingZeros","count","search","substringBefore","substring","indexOf","CurrencyDisplay","ValueScaling","DECIMAL_SEPARATORS","INTEGER_PATTERN","CurrencyFormat","options","_a","_b","_c","_d","_e","_f","currency","currencyDisplay","locale","precision","accountingSign","style","currencySign","undefined","hidden","numberFormat","Intl","NumberFormat","formatParts","formatToParts","find","type","digits","map","toLocaleString","decimalSymbol","groupingSymbol","minusSign","minimumFractionDigits","maximumFractionDigits","min","resolvedOptions","max","getPrefix","getSuffix","lastIndexOf","prefix","format","suffix","negativePrefix","negativeSuffix","negative","isNegative","normalizeDigits","stripCurrency","stripSignLiterals","fraction","stripGroupingSeparator","isValidIntegerFormat","split","Number","onlyDigits","formattedNumber","integerNumber","useGrouping","includes","onlyLocaleDigits","substr","startsWith","from","forEach","digit","index","String","join","AbstractInputMask","currencyFormat","DefaultInputMask","previousConformedValue","isEmptyNegativeValue","checkIncompleteValue","isFractionIncomplete","toFraction","incompleteValue","insertCurrency","integer","integerDigits","fractionDigits","invalidFraction","invalidNegativeValue","slice","numberValue","AutoDecimalDigitsInputMask","parse","Math","pow","toFixed","DEFAULT_OPTIONS","exportValueAsInteger","hideGroupingSeparatorOnFocus","hideCurrencySymbolOnFocus","hideNegligibleDecimalDigitsOnFocus","autoDecimalDigits","valueRange","autoSign","valueScaling","CurrencyInput","el","addEventListener","init","setValue","applyFixedFractionFormat","toInteger","number","formatted","formattedValue","newValue","toFloat","eventName","dispatchEvent","CustomEvent","detail","getValue","setAttribute","numberMask","valueScalingOptions","thousands","millions","billions","valueScalingFractionDigits","minValue","getMinValue","maxValue","getMaxValue","MAX_SAFE_INTEGER","maxFractionDigits","forcedChange","validateValueRange","hideNegligibleDecimalDigits","decimalSymbolInsertedAt","normalizeDecimalSeparator","conformedValue","conformToMask","focus","isInteger","abs","e","selectionStart","inputEvent","data","getCaretPositionAfterFormat","caretPositionFromLeft","newValueLength","endsWith","decimalSymbolPosition","setCaretPosition","capture","setTimeout","selectionEnd","caretPositionOnFocus","getCaretPositionOnFocus","currentPrefix","prefixLength","suffixLength","result","start","end","setSelectionRange","findInput","matches","querySelector","useCurrencyInput","numberInput","input","inputRef","instance","emit","event","lazyModel","attrs","modelModifiers","lazy","props","changeEvent","hasInputEventListener","hasChangeEventListener","onChange","onInput","$el","console","error","removeEventListener","setOptions","innerValue","ref","reactive","watch","__exports__","PlCurrency"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,wCAA0CD,EAAQG,QAAQ,QAElEJ,EAAK,wCAA0CC,EAAQD,EAAK,SAR9D,CASoB,qBAATO,KAAuBA,KAAOC,MAAO,SAASC,GACzD,O,YCTE,IAAIC,EAAmB,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SACjBE,UAAW,IAGb,EAAqBwJ,EAAiBlK,GAA9BqK,EAAR,EAAQA,S,OAERsB,mBAAMH,GAAY,SAAC7E,GACjB4D,EAAK,oBAAqB5D,M,yXC7B5B,MAAMiF,EAAc,EAEL,QCLAC,ICAA,kB","file":"@factoringplus/pl-components-pack-v3.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@factoringplus/pl-components-pack-v3\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"@factoringplus/pl-components-pack-v3\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./pl-currency.vue?vue&type=style&index=0&id=0538fbc8&lang=scss\"","// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.getCurrentScript = factory();\n }\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*<script>([\\\\d\\\\D]*?)<\\\\/script>[\\\\d\\\\D]*', 'i');\n inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();\n }\n \n for (var i = 0; i < scripts.length; i++) {\n // If ready state is interactive, return the script tag\n if (scripts[i].readyState === 'interactive') {\n return scripts[i];\n }\n \n // If src matches, return the script tag\n if (scripts[i].src === scriptLocation) {\n return scripts[i];\n }\n \n // If inline source matches, return the script tag\n if (\n scriptLocation === currentLocation &&\n scripts[i].innerHTML &&\n scripts[i].innerHTML.trim() === inlineScriptSource\n ) {\n return scripts[i];\n }\n }\n \n // If no match, return null\n return null;\n }\n };\n\n return getCurrentScript\n}));\n","import * as Vue from 'vue'\n\nvar isVue2 = false\nvar isVue3 = true\nvar Vue2 = undefined\n\nfunction install() {}\n\nexport function set(target, key, val) {\n if (Array.isArray(target)) {\n target.length = Math.max(target.length, key)\n target.splice(key, 1, val)\n return val\n }\n target[key] = val\n return val\n}\n\nexport function del(target, key) {\n if (Array.isArray(target)) {\n target.splice(key, 1)\n return\n }\n delete target[key]\n}\n\nexport * from 'vue'\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/**\n * Vue Currency Input 2.4.0\n * (c) 2018-2022 Matthias Stiller\n * @license MIT\n */\nimport { ref, getCurrentInstance, isVue3, computed, watch, onUnmounted } from 'vue-demi';\n\nconst escapeRegExp = (str) => {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n};\nconst removeLeadingZeros = (str) => {\n return str.replace(/^0+(0$|[^0])/, '$1');\n};\nconst count = (str, search) => {\n return (str.match(new RegExp(escapeRegExp(search), 'g')) || []).length;\n};\nconst substringBefore = (str, search) => {\n return str.substring(0, str.indexOf(search));\n};\n\nvar CurrencyDisplay;\n(function (CurrencyDisplay) {\n CurrencyDisplay[\"symbol\"] = \"symbol\";\n CurrencyDisplay[\"narrowSymbol\"] = \"narrowSymbol\";\n CurrencyDisplay[\"code\"] = \"code\";\n CurrencyDisplay[\"name\"] = \"name\";\n CurrencyDisplay[\"hidden\"] = \"hidden\";\n})(CurrencyDisplay || (CurrencyDisplay = {}));\nvar ValueScaling;\n(function (ValueScaling) {\n ValueScaling[\"precision\"] = \"precision\";\n ValueScaling[\"thousands\"] = \"thousands\";\n ValueScaling[\"millions\"] = \"millions\";\n ValueScaling[\"billions\"] = \"billions\";\n})(ValueScaling || (ValueScaling = {}));\nconst parse = (formattedValue, options) => {\n return new CurrencyFormat(options).parse(formattedValue);\n};\n\nconst DECIMAL_SEPARATORS = [',', '.', '٫'];\nconst INTEGER_PATTERN = '(0|[1-9]\\\\d*)';\nclass CurrencyFormat {\n constructor(options) {\n var _a, _b, _c, _d, _e, _f;\n const { currency, currencyDisplay, locale, precision, accountingSign } = options;\n this.locale = locale;\n this.options = {\n style: 'currency',\n currency,\n currencySign: accountingSign ? 'accounting' : undefined,\n currencyDisplay: currencyDisplay !== CurrencyDisplay.hidden ? currencyDisplay : undefined\n };\n const numberFormat = new Intl.NumberFormat(locale, this.options);\n const formatParts = numberFormat.formatToParts(123456);\n this.currency = (_a = formatParts.find(({ type }) => type === 'currency')) === null || _a === void 0 ? void 0 : _a.value;\n this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) => i.toLocaleString(locale));\n this.decimalSymbol = (_b = formatParts.find(({ type }) => type === 'decimal')) === null || _b === void 0 ? void 0 : _b.value;\n this.groupingSymbol = (_c = formatParts.find(({ type }) => type === 'group')) === null || _c === void 0 ? void 0 : _c.value;\n this.minusSign = (_d = numberFormat.formatToParts(-1).find(({ type }) => type === 'minusSign')) === null || _d === void 0 ? void 0 : _d.value;\n if (this.decimalSymbol === undefined) {\n this.minimumFractionDigits = this.maximumFractionDigits = 0;\n }\n else if (typeof precision === 'number') {\n this.minimumFractionDigits = this.maximumFractionDigits = precision;\n }\n else {\n this.minimumFractionDigits = (_e = precision === null || precision === void 0 ? void 0 : precision.min) !== null && _e !== void 0 ? _e : numberFormat.resolvedOptions().minimumFractionDigits;\n this.maximumFractionDigits = (_f = precision === null || precision === void 0 ? void 0 : precision.max) !== null && _f !== void 0 ? _f : numberFormat.resolvedOptions().maximumFractionDigits;\n }\n const getPrefix = (str) => {\n return substringBefore(str, this.digits[1]);\n };\n const getSuffix = (str) => {\n return str.substring(str.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);\n };\n this.prefix = getPrefix(numberFormat.format(1));\n this.suffix = getSuffix(numberFormat.format(1));\n this.negativePrefix = getPrefix(numberFormat.format(-1));\n this.negativeSuffix = getSuffix(numberFormat.format(-1));\n }\n parse(str) {\n if (str) {\n const negative = this.isNegative(str);\n str = this.normalizeDigits(str);\n str = this.stripCurrency(str, negative);\n str = this.stripSignLiterals(str);\n const fraction = this.decimalSymbol ? `(?:${escapeRegExp(this.decimalSymbol)}(\\\\d*))?` : '';\n const match = this.stripGroupingSeparator(str).match(new RegExp(`^${INTEGER_PATTERN}${fraction}$`));\n if (match && this.isValidIntegerFormat(this.decimalSymbol ? str.split(this.decimalSymbol)[0] : str, Number(match[1]))) {\n return Number(`${negative ? '-' : ''}${this.onlyDigits(match[1])}.${this.onlyDigits(match[2] || '')}`);\n }\n }\n return null;\n }\n isValidIntegerFormat(formattedNumber, integerNumber) {\n const options = { ...this.options, minimumFractionDigits: 0 };\n return [\n this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, {\n ...options,\n useGrouping: true\n })), false),\n this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, {\n ...options,\n useGrouping: false\n })), false)\n ].includes(formattedNumber);\n }\n format(value, options = {\n minimumFractionDigits: this.minimumFractionDigits,\n maximumFractionDigits: this.maximumFractionDigits\n }) {\n return value != null ? value.toLocaleString(this.locale, { ...this.options, ...options }) : '';\n }\n toFraction(str) {\n return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(str.substr(1)).substr(0, this.maximumFractionDigits)}`;\n }\n isFractionIncomplete(str) {\n return !!this.normalizeDigits(this.stripGroupingSeparator(str)).match(new RegExp(`^${INTEGER_PATTERN}${escapeRegExp(this.decimalSymbol)}$`));\n }\n isNegative(str) {\n return (str.startsWith(this.negativePrefix) ||\n (this.minusSign === undefined && (str.startsWith('(') || str.startsWith('-'))) ||\n (this.minusSign !== undefined && str.replace('-', this.minusSign).startsWith(this.minusSign)));\n }\n insertCurrency(str, negative) {\n return `${negative ? this.negativePrefix : this.prefix}${str}${negative ? this.negativeSuffix : this.suffix}`;\n }\n stripGroupingSeparator(str) {\n return this.groupingSymbol !== undefined ? str.replace(new RegExp(escapeRegExp(this.groupingSymbol), 'g'), '') : str;\n }\n stripSignLiterals(str) {\n if (this.minusSign !== undefined) {\n return str.replace('-', this.minusSign).replace(this.minusSign, '');\n }\n else {\n return str.replace(/[-()]/g, '');\n }\n }\n stripCurrency(str, negative) {\n return str.replace(negative ? this.negativePrefix : this.prefix, '').replace(negative ? this.negativeSuffix : this.suffix, '');\n }\n normalizeDecimalSeparator(str, from) {\n DECIMAL_SEPARATORS.forEach((s) => {\n str = str.substr(0, from) + str.substr(from).replace(s, this.decimalSymbol);\n });\n return str;\n }\n normalizeDigits(str) {\n if (this.digits[0] !== '0') {\n this.digits.forEach((digit, index) => {\n str = str.replace(new RegExp(digit, 'g'), String(index));\n });\n }\n return str;\n }\n onlyDigits(str) {\n return this.normalizeDigits(str).replace(/\\D+/g, '');\n }\n onlyLocaleDigits(str) {\n return str.replace(new RegExp(`[^${this.digits.join('')}]*`, 'g'), '');\n }\n}\n\nclass AbstractInputMask {\n constructor(currencyFormat) {\n this.currencyFormat = currencyFormat;\n }\n}\nclass DefaultInputMask extends AbstractInputMask {\n conformToMask(str, previousConformedValue = '') {\n const negative = this.currencyFormat.isNegative(str);\n const isEmptyNegativeValue = (str) => str === '' &&\n negative &&\n !(this.currencyFormat.minusSign === undefined\n ? previousConformedValue === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix\n : previousConformedValue === this.currencyFormat.negativePrefix);\n const checkIncompleteValue = (str) => {\n if (isEmptyNegativeValue(str)) {\n return '';\n }\n else if (this.currencyFormat.maximumFractionDigits > 0) {\n if (this.currencyFormat.isFractionIncomplete(str)) {\n return str;\n }\n else if (str.startsWith(this.currencyFormat.decimalSymbol)) {\n return this.currencyFormat.toFraction(str);\n }\n }\n return null;\n };\n let value = str;\n value = this.currencyFormat.stripCurrency(value, negative);\n value = this.currencyFormat.stripSignLiterals(value);\n const incompleteValue = checkIncompleteValue(value);\n if (incompleteValue != null) {\n return this.currencyFormat.insertCurrency(incompleteValue, negative);\n }\n const [integer, ...fraction] = value.split(this.currencyFormat.decimalSymbol);\n const integerDigits = removeLeadingZeros(this.currencyFormat.onlyDigits(integer));\n const fractionDigits = this.currencyFormat.onlyDigits(fraction.join('')).substr(0, this.currencyFormat.maximumFractionDigits);\n const invalidFraction = fraction.length > 0 && fractionDigits.length === 0;\n const invalidNegativeValue = integerDigits === '' &&\n negative &&\n (this.currencyFormat.minusSign === undefined\n ? previousConformedValue === str.slice(0, -2) + this.currencyFormat.negativeSuffix\n : previousConformedValue === str.slice(0, -1));\n if (invalidFraction || invalidNegativeValue || isEmptyNegativeValue(integerDigits)) {\n return previousConformedValue;\n }\n else if (integerDigits.match(/\\d+/)) {\n return {\n numberValue: Number(`${negative ? '-' : ''}${integerDigits}.${fractionDigits}`),\n fractionDigits\n };\n }\n else {\n return '';\n }\n }\n}\nclass AutoDecimalDigitsInputMask extends AbstractInputMask {\n conformToMask(str, previousConformedValue = '') {\n if (str === '' ||\n (this.currencyFormat.parse(previousConformedValue) === 0 &&\n this.currencyFormat.stripCurrency(previousConformedValue, true).slice(0, -1) === this.currencyFormat.stripCurrency(str, true))) {\n return '';\n }\n const negative = this.currencyFormat.isNegative(str);\n const numberValue = this.currencyFormat.stripSignLiterals(str) === ''\n ? -0\n : Number(`${negative ? '-' : ''}${removeLeadingZeros(this.currencyFormat.onlyDigits(str))}`) / Math.pow(10, this.currencyFormat.maximumFractionDigits);\n return {\n numberValue,\n fractionDigits: numberValue.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)\n };\n }\n}\n\nconst DEFAULT_OPTIONS = {\n locale: undefined,\n currency: undefined,\n currencyDisplay: undefined,\n exportValueAsInteger: false,\n hideGroupingSeparatorOnFocus: true,\n hideCurrencySymbolOnFocus: true,\n hideNegligibleDecimalDigitsOnFocus: true,\n precision: undefined,\n autoDecimalDigits: false,\n valueRange: undefined,\n autoSign: true,\n useGrouping: true,\n valueScaling: undefined\n};\nclass CurrencyInput {\n constructor(el, options) {\n this.el = el;\n this.numberValue = null;\n this.addEventListener();\n this.init(options);\n this.setValue(this.currencyFormat.parse(this.el.value));\n }\n setOptions(options) {\n this.init(options);\n this.applyFixedFractionFormat(this.numberValue, true);\n }\n getValue() {\n const numberValue = this.valueScaling && this.numberValue != null ? this.toInteger(this.numberValue, this.valueScaling) : this.numberValue;\n return { number: numberValue, formatted: this.formattedValue };\n }\n setValue(value) {\n const newValue = this.valueScaling !== undefined && value != null ? this.toFloat(value, this.valueScaling) : value;\n if (newValue !== this.numberValue) {\n this.applyFixedFractionFormat(newValue);\n }\n }\n dispatchEvent(eventName) {\n this.el.dispatchEvent(new CustomEvent(eventName, { detail: this.getValue() }));\n }\n init(options) {\n this.options = {\n ...DEFAULT_OPTIONS,\n ...options\n };\n if (this.options.autoDecimalDigits) {\n this.options.hideNegligibleDecimalDigitsOnFocus = false;\n this.el.setAttribute('inputmode', 'numeric');\n }\n else {\n this.el.setAttribute('inputmode', 'decimal');\n }\n this.currencyFormat = new CurrencyFormat(this.options);\n this.numberMask = this.options.autoDecimalDigits ? new AutoDecimalDigitsInputMask(this.currencyFormat) : new DefaultInputMask(this.currencyFormat);\n const valueScalingOptions = {\n [ValueScaling.precision]: this.currencyFormat.maximumFractionDigits,\n [ValueScaling.thousands]: 3,\n [ValueScaling.millions]: 6,\n [ValueScaling.billions]: 9\n };\n if (this.options.exportValueAsInteger) {\n this.valueScaling = valueScalingOptions[ValueScaling.precision];\n }\n else {\n this.valueScaling = this.options.valueScaling ? valueScalingOptions[this.options.valueScaling] : undefined;\n }\n this.valueScalingFractionDigits =\n this.valueScaling !== undefined && this.options.valueScaling !== ValueScaling.precision\n ? this.valueScaling + this.currencyFormat.maximumFractionDigits\n : this.currencyFormat.maximumFractionDigits;\n this.minValue = this.getMinValue();\n this.maxValue = this.getMaxValue();\n }\n getMinValue() {\n var _a, _b;\n let min = this.toFloat(-Number.MAX_SAFE_INTEGER);\n if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.min) !== undefined) {\n min = Math.max((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.min, this.toFloat(-Number.MAX_SAFE_INTEGER));\n }\n if (!this.options.autoSign && min < 0) {\n min = 0;\n }\n return min;\n }\n getMaxValue() {\n var _a, _b;\n let max = this.toFloat(Number.MAX_SAFE_INTEGER);\n if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.max) !== undefined) {\n max = Math.min((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.max, this.toFloat(Number.MAX_SAFE_INTEGER));\n }\n if (!this.options.autoSign && max < 0) {\n max = this.toFloat(Number.MAX_SAFE_INTEGER);\n }\n return max;\n }\n toFloat(value, maxFractionDigits) {\n return value / Math.pow(10, maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits);\n }\n toInteger(value, maxFractionDigits) {\n return Number(value\n .toFixed(maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits)\n .split('.')\n .join(''));\n }\n validateValueRange(value) {\n return value != null ? Math.min(Math.max(value, this.minValue), this.maxValue) : value;\n }\n applyFixedFractionFormat(number, forcedChange = false) {\n this.format(this.currencyFormat.format(this.validateValueRange(number)));\n if (number !== this.numberValue || forcedChange) {\n this.dispatchEvent('change');\n }\n }\n format(value, hideNegligibleDecimalDigits = false) {\n if (value != null) {\n if (this.decimalSymbolInsertedAt !== undefined) {\n value = this.currencyFormat.normalizeDecimalSeparator(value, this.decimalSymbolInsertedAt);\n this.decimalSymbolInsertedAt = undefined;\n }\n const conformedValue = this.numberMask.conformToMask(value, this.formattedValue);\n let formattedValue;\n if (typeof conformedValue === 'object') {\n const { numberValue, fractionDigits } = conformedValue;\n let { maximumFractionDigits, minimumFractionDigits } = this.currencyFormat;\n if (this.focus) {\n minimumFractionDigits = hideNegligibleDecimalDigits\n ? fractionDigits.replace(/0+$/, '').length\n : Math.min(maximumFractionDigits, fractionDigits.length);\n }\n else if (Number.isInteger(numberValue) && !this.options.autoDecimalDigits && (this.options.precision === undefined || minimumFractionDigits === 0)) {\n minimumFractionDigits = maximumFractionDigits = 0;\n }\n formattedValue =\n this.toInteger(Math.abs(numberValue)) > Number.MAX_SAFE_INTEGER\n ? this.formattedValue\n : this.currencyFormat.format(numberValue, {\n useGrouping: this.options.useGrouping && !(this.focus && this.options.hideGroupingSeparatorOnFocus),\n minimumFractionDigits,\n maximumFractionDigits\n });\n }\n else {\n formattedValue = conformedValue;\n }\n if (this.options.autoSign) {\n if (this.maxValue <= 0 && !this.currencyFormat.isNegative(formattedValue) && this.currencyFormat.parse(formattedValue) !== 0) {\n formattedValue = formattedValue.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix);\n }\n if (this.minValue >= 0) {\n formattedValue = formattedValue.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix);\n }\n }\n if (this.options.currencyDisplay === CurrencyDisplay.hidden || (this.focus && this.options.hideCurrencySymbolOnFocus)) {\n formattedValue = formattedValue\n .replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== undefined ? this.currencyFormat.minusSign : '(')\n .replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== undefined ? '' : ')')\n .replace(this.currencyFormat.prefix, '')\n .replace(this.currencyFormat.suffix, '');\n }\n this.el.value = formattedValue;\n this.numberValue = this.currencyFormat.parse(formattedValue);\n }\n else {\n this.el.value = '';\n this.numberValue = null;\n }\n this.formattedValue = this.el.value;\n this.dispatchEvent('input');\n }\n addEventListener() {\n this.el.addEventListener('input', (e) => {\n if (!e.detail) {\n const { value, selectionStart } = this.el;\n const inputEvent = e;\n if (selectionStart && inputEvent.data && DECIMAL_SEPARATORS.includes(inputEvent.data)) {\n this.decimalSymbolInsertedAt = selectionStart - 1;\n }\n this.format(value);\n if (this.focus && selectionStart != null) {\n const getCaretPositionAfterFormat = () => {\n const { prefix, suffix, decimalSymbol, maximumFractionDigits, groupingSymbol } = this.currencyFormat;\n let caretPositionFromLeft = value.length - selectionStart;\n const newValueLength = this.formattedValue.length;\n if (this.currencyFormat.minusSign === undefined && (value.startsWith('(') || value.startsWith('-')) && !value.endsWith(')')) {\n return newValueLength - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(selectionStart).length : 1;\n }\n if (this.formattedValue.substr(selectionStart, 1) === groupingSymbol &&\n count(this.formattedValue, groupingSymbol) === count(value, groupingSymbol) + 1) {\n return newValueLength - caretPositionFromLeft - 1;\n }\n if (newValueLength < caretPositionFromLeft) {\n return selectionStart;\n }\n if (decimalSymbol !== undefined && value.indexOf(decimalSymbol) !== -1) {\n const decimalSymbolPosition = value.indexOf(decimalSymbol) + 1;\n if (Math.abs(newValueLength - value.length) > 1 && selectionStart <= decimalSymbolPosition) {\n return this.formattedValue.indexOf(decimalSymbol) + 1;\n }\n else {\n if (!this.options.autoDecimalDigits && selectionStart > decimalSymbolPosition) {\n if (this.currencyFormat.onlyDigits(value.substr(decimalSymbolPosition)).length - 1 === maximumFractionDigits) {\n caretPositionFromLeft -= 1;\n }\n }\n }\n }\n return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden\n ? newValueLength - caretPositionFromLeft\n : Math.max(newValueLength - Math.max(caretPositionFromLeft, suffix.length), prefix.length);\n };\n this.setCaretPosition(getCaretPositionAfterFormat());\n }\n }\n }, { capture: true });\n this.el.addEventListener('focus', () => {\n this.focus = true;\n setTimeout(() => {\n const { value, selectionStart, selectionEnd } = this.el;\n this.format(value, this.options.hideNegligibleDecimalDigitsOnFocus);\n if (selectionStart != null && selectionEnd != null && Math.abs(selectionStart - selectionEnd) > 0) {\n this.setCaretPosition(0, this.el.value.length);\n }\n else if (selectionStart != null) {\n const caretPositionOnFocus = this.getCaretPositionOnFocus(value, selectionStart);\n this.setCaretPosition(caretPositionOnFocus);\n }\n });\n });\n this.el.addEventListener('blur', () => {\n this.focus = false;\n this.applyFixedFractionFormat(this.numberValue);\n });\n this.el.addEventListener('change', (e) => {\n if (!e.detail) {\n this.dispatchEvent('change');\n }\n }, { capture: true });\n }\n getCaretPositionOnFocus(value, selectionStart) {\n if (this.numberValue == null) {\n return selectionStart;\n }\n const { prefix, negativePrefix, suffix, negativeSuffix, groupingSymbol, currency } = this.currencyFormat;\n const isNegative = this.numberValue < 0;\n const currentPrefix = isNegative ? negativePrefix : prefix;\n const prefixLength = currentPrefix.length;\n if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden) {\n if (isNegative) {\n if (selectionStart <= 1) {\n return 1;\n }\n else if (value.endsWith(')') && selectionStart > value.indexOf(')')) {\n return this.formattedValue.length - 1;\n }\n }\n }\n else {\n const suffixLength = isNegative ? negativeSuffix.length : suffix.length;\n if (selectionStart >= value.length - suffixLength) {\n return this.formattedValue.length - suffixLength;\n }\n else if (selectionStart < prefixLength) {\n return prefixLength;\n }\n }\n let result = selectionStart;\n if (this.options.hideCurrencySymbolOnFocus &&\n this.options.currencyDisplay !== CurrencyDisplay.hidden &&\n selectionStart >= prefixLength &&\n currency !== undefined &&\n currentPrefix.includes(currency)) {\n result -= prefixLength;\n if (isNegative) {\n result += 1;\n }\n }\n if (this.options.hideGroupingSeparatorOnFocus && groupingSymbol !== undefined) {\n result -= count(value.substring(0, selectionStart), groupingSymbol);\n }\n return result;\n }\n setCaretPosition(start, end = start) {\n this.el.setSelectionRange(start, end);\n }\n}\n\nconst findInput = (el) => ((el === null || el === void 0 ? void 0 : el.matches('input')) ? el : el === null || el === void 0 ? void 0 : el.querySelector('input'));\nvar useCurrencyInput = (options) => {\n var _a;\n let numberInput;\n let input;\n const inputRef = ref(null);\n const formattedValue = ref(null);\n const instance = getCurrentInstance();\n const emit = (event, value) => instance === null || instance === void 0 ? void 0 : instance.emit(event, value);\n const lazyModel = isVue3 && ((_a = instance === null || instance === void 0 ? void 0 : instance.attrs.modelModifiers) === null || _a === void 0 ? void 0 : _a.lazy);\n const numberValue = computed(() => instance === null || instance === void 0 ? void 0 : instance.props[isVue3 ? 'modelValue' : 'value']);\n const inputEvent = isVue3 ? 'update:modelValue' : 'input';\n const changeEvent = lazyModel ? 'update:modelValue' : 'change';\n const hasInputEventListener = !isVue3 || !lazyModel;\n const hasChangeEventListener = !isVue3 || lazyModel || !(instance === null || instance === void 0 ? void 0 : instance.attrs.onChange);\n const onInput = (e) => {\n if (e.detail) {\n if (numberValue.value !== e.detail.number) {\n emit(inputEvent, e.detail.number);\n }\n formattedValue.value = e.detail.formatted;\n }\n };\n const onChange = (e) => {\n if (e.detail) {\n emit(changeEvent, e.detail.number);\n formattedValue.value = e.detail.formatted;\n }\n };\n watch(inputRef, (value) => {\n var _a, _b;\n if (value) {\n input = findInput((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.$el) !== null && _b !== void 0 ? _b : value);\n if (input) {\n numberInput = new CurrencyInput(input, options);\n if (hasInputEventListener) {\n input.addEventListener('input', onInput);\n }\n if (hasChangeEventListener) {\n input.addEventListener('change', onChange);\n }\n numberInput.setValue(numberValue.value);\n }\n else {\n console.error('No input element found. Please make sure that the \"inputRef\" template ref is properly assigned.');\n }\n }\n else {\n numberInput = null;\n }\n });\n onUnmounted(() => {\n if (hasInputEventListener) {\n input === null || input === void 0 ? void 0 : input.removeEventListener('input', onInput);\n }\n if (hasChangeEventListener) {\n input === null || input === void 0 ? void 0 : input.removeEventListener('change', onChange);\n }\n });\n return {\n inputRef,\n formattedValue,\n setValue: (value) => numberInput === null || numberInput === void 0 ? void 0 : numberInput.setValue(value),\n setOptions: (options) => numberInput === null || numberInput === void 0 ? void 0 : numberInput.setOptions(options)\n };\n};\n\nexport { CurrencyDisplay, ValueScaling, useCurrencyInput as default, parse, useCurrencyInput };\n","<template>\n <el-input\n v-bind=\"$attrs\"\n ref=\"inputRef\"\n v-model=\"innerValue\"\n class=\"pl-currency\">\n <template #append>\n <span class=\"pl-currency__rub-icon\">&#x20bd;</span>\n </template>\n </el-input>\n</template>\n\n<script setup>\nimport { ref, reactive, watch } from 'vue';\nimport { useCurrencyInput } from 'vue-currency-input';\n\n// eslint-disable-next-line no-unused-vars,no-undef\nconst props = defineProps({\n modelValue: String,\n});\n\n// eslint-disable-next-line no-undef\nconst emit = defineEmits(['update:modelValue']);\n\nconst innerValue = ref(null);\nconst options = reactive({\n currency: 'EUR',\n currencyDisplay: 'hidden',\n precision: 2,\n});\n\nconst { inputRef } = useCurrencyInput(options);\n\nwatch(innerValue, (newValue) => {\n emit('update:modelValue', newValue);\n});\n</script>\n\n<style lang=\"scss\">\n.pl-currency {\n width: 30%;\n &__rub-icon {\n font-size: 20px;\n opacity: 0.3;\n }\n}\n</style>\n","import script from \"./pl-currency.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./pl-currency.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./pl-currency.vue?vue&type=style&index=0&id=0538fbc8&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import PlCurrency from './src/components/pl-currency/src/pl-currency.vue';\n\nexport default PlCurrency;\n\n// // Объявление функции установки, выполняемой Vue.use()\n// export function install(Vue) {\n// if (install.installed) {\n// return;\n// }\n// install.installed = true;\n// Vue.component('PlCurrency', PlCurrency);\n// }\n//\n// // Создание значения модуля для Vue.use()\n// const plugin = {\n// install,\n// };\n//\n// // Автоматическая установка, когда vue найден (например в браузере с помощью тега <script>)\n// let GlobalVue = null;\n// if (typeof window !== 'undefined') {\n// GlobalVue = window.Vue;\n// } else if (typeof global !== 'undefined') {\n// GlobalVue = global.Vue;\n// }\n// if (GlobalVue) {\n// GlobalVue.use(plugin);\n// }\n//\n// PlCurrency.install = install;\n//\n// // Экспорт компонента, для использования в качестве модуля (npm/webpack/etc.)\n// export default {\n// version: '0.1.0',\n// install,\n// PlCurrency,\n// };\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://@factoringplus/pl-components-pack-v3/webpack/universalModuleDefinition","webpack://@factoringplus/pl-components-pack-v3/webpack/bootstrap","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue?e10c","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@soda/get-current-script/index.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/vue-demi/lib/index.mjs","webpack://@factoringplus/pl-components-pack-v3/external {\"commonjs\":\"vue\",\"commonjs2\":\"vue\",\"root\":\"Vue\"}","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/vue-currency-input/dist/index.esm.js","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue","webpack://@factoringplus/pl-components-pack-v3/./src/components/pl-currency/src/pl-currency.vue?d609","webpack://@factoringplus/pl-components-pack-v3/./entry.js","webpack://@factoringplus/pl-components-pack-v3/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__8bbf__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","getCurrentScript","descriptor","getOwnPropertyDescriptor","document","currentScript","Error","err","pageSource","inlineScriptSourceRegExp","inlineScriptSource","ieStackRegExp","ffStackRegExp","stackDetails","exec","stack","scriptLocation","line","currentLocation","location","href","replace","hash","scripts","getElementsByTagName","documentElement","outerHTML","RegExp","trim","length","readyState","src","innerHTML","isVue3","window","match","escapeRegExp","str","removeLeadingZeros","count","search","substringBefore","substring","indexOf","CurrencyDisplay","ValueScaling","DECIMAL_SEPARATORS","INTEGER_PATTERN","CurrencyFormat","options","_a","_b","_c","_d","_e","_f","currency","currencyDisplay","locale","precision","accountingSign","style","currencySign","undefined","hidden","numberFormat","Intl","NumberFormat","formatParts","formatToParts","find","type","digits","map","toLocaleString","decimalSymbol","groupingSymbol","minusSign","minimumFractionDigits","maximumFractionDigits","min","resolvedOptions","max","getPrefix","getSuffix","lastIndexOf","prefix","format","suffix","negativePrefix","negativeSuffix","negative","isNegative","normalizeDigits","stripCurrency","stripSignLiterals","fraction","stripGroupingSeparator","isValidIntegerFormat","split","Number","onlyDigits","formattedNumber","integerNumber","useGrouping","includes","onlyLocaleDigits","substr","startsWith","from","forEach","digit","index","String","join","AbstractInputMask","currencyFormat","DefaultInputMask","previousConformedValue","isEmptyNegativeValue","checkIncompleteValue","isFractionIncomplete","toFraction","incompleteValue","insertCurrency","integer","integerDigits","fractionDigits","invalidFraction","invalidNegativeValue","slice","numberValue","AutoDecimalDigitsInputMask","parse","Math","pow","toFixed","DEFAULT_OPTIONS","exportValueAsInteger","hideGroupingSeparatorOnFocus","hideCurrencySymbolOnFocus","hideNegligibleDecimalDigitsOnFocus","autoDecimalDigits","valueRange","autoSign","valueScaling","CurrencyInput","el","addEventListener","init","setValue","applyFixedFractionFormat","toInteger","number","formatted","formattedValue","newValue","toFloat","eventName","dispatchEvent","CustomEvent","detail","getValue","setAttribute","numberMask","valueScalingOptions","thousands","millions","billions","valueScalingFractionDigits","minValue","getMinValue","maxValue","getMaxValue","MAX_SAFE_INTEGER","maxFractionDigits","forcedChange","validateValueRange","hideNegligibleDecimalDigits","decimalSymbolInsertedAt","normalizeDecimalSeparator","conformedValue","conformToMask","focus","isInteger","abs","e","selectionStart","inputEvent","data","getCaretPositionAfterFormat","caretPositionFromLeft","newValueLength","endsWith","decimalSymbolPosition","setCaretPosition","capture","setTimeout","selectionEnd","caretPositionOnFocus","getCaretPositionOnFocus","currentPrefix","prefixLength","suffixLength","result","start","end","setSelectionRange","findInput","matches","querySelector","useCurrencyInput","numberInput","input","inputRef","instance","emit","event","lazyModel","attrs","modelModifiers","lazy","props","changeEvent","hasInputEventListener","hasChangeEventListener","onChange","onInput","$el","console","error","removeEventListener","setOptions","innerValue","ref","reactive","watch","__exports__","PlCurrency"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,kBAAZC,SAA0C,kBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,QACR,oBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIJ,GACe,kBAAZC,QACdA,QAAQ,wCAA0CD,EAAQG,QAAQ,QAElEJ,EAAK,wCAA0CC,EAAQD,EAAK,SAR9D,CASoB,qBAATO,KAAuBA,KAAOC,MAAO,SAASC,GACzD,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUV,QAGnC,IAAIC,EAASO,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHZ,QAAS,IAUV,OANAa,EAAQH,GAAUI,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASS,GAG/DR,EAAOW,GAAI,EAGJX,EAAOD,QA0Df,OArDAS,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,EAAoBQ,EAAI,SAASjB,EAASkB,EAAMC,GAC3CV,EAAoBW,EAAE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,EAAarC,EAAEzB,OAAOR,QAC3BE,EAAezK,MAAQwM,EAAEzB,OAAOP,YAiCxC,OA9BA,mBAAM4D,EAAWpO,IACb,IAAIgE,EAAIC,EACJjE,GACAmO,EAAQL,EAA8E,QAAnE7J,EAAsB,QAAhBD,EAAKhE,SAA0B,IAAPgE,OAAgB,EAASA,EAAGkL,WAAwB,IAAPjL,EAAgBA,EAAKjE,GAC/GmO,GACAD,EAAc,IAAIlE,EAAcmE,EAAOpK,GACnC+K,GACAX,EAAMjE,iBAAiB,QAAS+E,GAEhCF,GACAZ,EAAMjE,iBAAiB,SAAU8E,GAErCd,EAAY9D,SAASnB,EAAYjJ,QAGjCmP,QAAQC,MAAM,oGAIlBlB,EAAc,OAGtB,yBAAY,KACJY,IACU,OAAVX,QAA4B,IAAVA,GAA4BA,EAAMkB,oBAAoB,QAASJ,IAEjFF,IACU,OAAVZ,QAA4B,IAAVA,GAA4BA,EAAMkB,oBAAoB,SAAUL,MAGnF,CACHZ,WACA3D,iBACAL,SAAWpK,GAA0B,OAAhBkO,QAAwC,IAAhBA,OAAyB,EAASA,EAAY9D,SAASpK,GACpGsP,WAAavL,GAA4B,OAAhBmK,QAAwC,IAAhBA,OAAyB,EAASA,EAAYoB,WAAWvL,K,2KCnjB5GwL,EAAaC,iBAAI,MACjBzL,EAAU0L,sBAAS,CACvBnL,SAAU,MACVC,gBAAiB,SACjBE,UAAW,IAGb,EAAqBwJ,EAAiBlK,GAA9BqK,EAAR,EAAQA,S,OAERsB,mBAAMH,GAAY,SAAC7E,GACjB4D,EAAK,oBAAqB5D,M,yXC7B5B,MAAMiF,EAAc,EAEL,QCLAC,ICAA","file":"@factoringplus/pl-components-pack-v3.umd.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@factoringplus/pl-components-pack-v3\"] = factory(require(\"vue\"));\n\telse\n\t\troot[\"@factoringplus/pl-components-pack-v3\"] = factory(root[\"Vue\"]);\n})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"fb15\");\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./pl-currency.vue?vue&type=style&index=0&id=0538fbc8&lang=scss\"","// addapted from the document.currentScript polyfill by Adam Miller\n// MIT license\n// source: https://github.com/amiller-gh/currentScript-polyfill\n\n// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.getCurrentScript = factory();\n }\n}(typeof self !== 'undefined' ? self : this, function () {\n function getCurrentScript () {\n var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')\n // for chrome\n if (!descriptor && 'currentScript' in document && document.currentScript) {\n return document.currentScript\n }\n\n // for other browsers with native support for currentScript\n if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {\n return document.currentScript\n }\n \n // IE 8-10 support script readyState\n // IE 11+ & Firefox support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n var ieStackRegExp = /.*at [^(]*\\((.*):(.+):(.+)\\)$/ig,\n ffStackRegExp = /@([^@]*):(\\d+):(\\d+)\\s*$/ig,\n stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),\n scriptLocation = (stackDetails && stackDetails[1]) || false,\n line = (stackDetails && stackDetails[2]) || false,\n currentLocation = document.location.href.replace(document.location.hash, ''),\n pageSource,\n inlineScriptSourceRegExp,\n inlineScriptSource,\n scripts = document.getElementsByTagName('script'); // Live NodeList collection\n \n if (scriptLocation === currentLocation) {\n pageSource = document.documentElement.outerHTML;\n inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*<script>([\\\\d\\\\D]*?)<\\\\/script>[\\\\d\\\\D]*', 'i');\n inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();\n }\n \n for (var i = 0; i < scripts.length; i++) {\n // If ready state is interactive, return the script tag\n if (scripts[i].readyState === 'interactive') {\n return scripts[i];\n }\n \n // If src matches, return the script tag\n if (scripts[i].src === scriptLocation) {\n return scripts[i];\n }\n \n // If inline source matches, return the script tag\n if (\n scriptLocation === currentLocation &&\n scripts[i].innerHTML &&\n scripts[i].innerHTML.trim() === inlineScriptSource\n ) {\n return scripts[i];\n }\n }\n \n // If no match, return null\n return null;\n }\n };\n\n return getCurrentScript\n}));\n","import * as Vue from 'vue'\n\nvar isVue2 = false\nvar isVue3 = true\nvar Vue2 = undefined\n\nfunction install() {}\n\nexport function set(target, key, val) {\n if (Array.isArray(target)) {\n target.length = Math.max(target.length, key)\n target.splice(key, 1, val)\n return val\n }\n target[key] = val\n return val\n}\n\nexport function del(target, key) {\n if (Array.isArray(target)) {\n target.splice(key, 1)\n return\n }\n delete target[key]\n}\n\nexport * from 'vue'\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","/**\n * Vue Currency Input 2.4.0\n * (c) 2018-2022 Matthias Stiller\n * @license MIT\n */\nimport { ref, getCurrentInstance, isVue3, computed, watch, onUnmounted } from 'vue-demi';\n\nconst escapeRegExp = (str) => {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n};\nconst removeLeadingZeros = (str) => {\n return str.replace(/^0+(0$|[^0])/, '$1');\n};\nconst count = (str, search) => {\n return (str.match(new RegExp(escapeRegExp(search), 'g')) || []).length;\n};\nconst substringBefore = (str, search) => {\n return str.substring(0, str.indexOf(search));\n};\n\nvar CurrencyDisplay;\n(function (CurrencyDisplay) {\n CurrencyDisplay[\"symbol\"] = \"symbol\";\n CurrencyDisplay[\"narrowSymbol\"] = \"narrowSymbol\";\n CurrencyDisplay[\"code\"] = \"code\";\n CurrencyDisplay[\"name\"] = \"name\";\n CurrencyDisplay[\"hidden\"] = \"hidden\";\n})(CurrencyDisplay || (CurrencyDisplay = {}));\nvar ValueScaling;\n(function (ValueScaling) {\n ValueScaling[\"precision\"] = \"precision\";\n ValueScaling[\"thousands\"] = \"thousands\";\n ValueScaling[\"millions\"] = \"millions\";\n ValueScaling[\"billions\"] = \"billions\";\n})(ValueScaling || (ValueScaling = {}));\nconst parse = (formattedValue, options) => {\n return new CurrencyFormat(options).parse(formattedValue);\n};\n\nconst DECIMAL_SEPARATORS = [',', '.', '٫'];\nconst INTEGER_PATTERN = '(0|[1-9]\\\\d*)';\nclass CurrencyFormat {\n constructor(options) {\n var _a, _b, _c, _d, _e, _f;\n const { currency, currencyDisplay, locale, precision, accountingSign } = options;\n this.locale = locale;\n this.options = {\n style: 'currency',\n currency,\n currencySign: accountingSign ? 'accounting' : undefined,\n currencyDisplay: currencyDisplay !== CurrencyDisplay.hidden ? currencyDisplay : undefined\n };\n const numberFormat = new Intl.NumberFormat(locale, this.options);\n const formatParts = numberFormat.formatToParts(123456);\n this.currency = (_a = formatParts.find(({ type }) => type === 'currency')) === null || _a === void 0 ? void 0 : _a.value;\n this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((i) => i.toLocaleString(locale));\n this.decimalSymbol = (_b = formatParts.find(({ type }) => type === 'decimal')) === null || _b === void 0 ? void 0 : _b.value;\n this.groupingSymbol = (_c = formatParts.find(({ type }) => type === 'group')) === null || _c === void 0 ? void 0 : _c.value;\n this.minusSign = (_d = numberFormat.formatToParts(-1).find(({ type }) => type === 'minusSign')) === null || _d === void 0 ? void 0 : _d.value;\n if (this.decimalSymbol === undefined) {\n this.minimumFractionDigits = this.maximumFractionDigits = 0;\n }\n else if (typeof precision === 'number') {\n this.minimumFractionDigits = this.maximumFractionDigits = precision;\n }\n else {\n this.minimumFractionDigits = (_e = precision === null || precision === void 0 ? void 0 : precision.min) !== null && _e !== void 0 ? _e : numberFormat.resolvedOptions().minimumFractionDigits;\n this.maximumFractionDigits = (_f = precision === null || precision === void 0 ? void 0 : precision.max) !== null && _f !== void 0 ? _f : numberFormat.resolvedOptions().maximumFractionDigits;\n }\n const getPrefix = (str) => {\n return substringBefore(str, this.digits[1]);\n };\n const getSuffix = (str) => {\n return str.substring(str.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);\n };\n this.prefix = getPrefix(numberFormat.format(1));\n this.suffix = getSuffix(numberFormat.format(1));\n this.negativePrefix = getPrefix(numberFormat.format(-1));\n this.negativeSuffix = getSuffix(numberFormat.format(-1));\n }\n parse(str) {\n if (str) {\n const negative = this.isNegative(str);\n str = this.normalizeDigits(str);\n str = this.stripCurrency(str, negative);\n str = this.stripSignLiterals(str);\n const fraction = this.decimalSymbol ? `(?:${escapeRegExp(this.decimalSymbol)}(\\\\d*))?` : '';\n const match = this.stripGroupingSeparator(str).match(new RegExp(`^${INTEGER_PATTERN}${fraction}$`));\n if (match && this.isValidIntegerFormat(this.decimalSymbol ? str.split(this.decimalSymbol)[0] : str, Number(match[1]))) {\n return Number(`${negative ? '-' : ''}${this.onlyDigits(match[1])}.${this.onlyDigits(match[2] || '')}`);\n }\n }\n return null;\n }\n isValidIntegerFormat(formattedNumber, integerNumber) {\n const options = { ...this.options, minimumFractionDigits: 0 };\n return [\n this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, {\n ...options,\n useGrouping: true\n })), false),\n this.stripCurrency(this.normalizeDigits(integerNumber.toLocaleString(this.locale, {\n ...options,\n useGrouping: false\n })), false)\n ].includes(formattedNumber);\n }\n format(value, options = {\n minimumFractionDigits: this.minimumFractionDigits,\n maximumFractionDigits: this.maximumFractionDigits\n }) {\n return value != null ? value.toLocaleString(this.locale, { ...this.options, ...options }) : '';\n }\n toFraction(str) {\n return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(str.substr(1)).substr(0, this.maximumFractionDigits)}`;\n }\n isFractionIncomplete(str) {\n return !!this.normalizeDigits(this.stripGroupingSeparator(str)).match(new RegExp(`^${INTEGER_PATTERN}${escapeRegExp(this.decimalSymbol)}$`));\n }\n isNegative(str) {\n return (str.startsWith(this.negativePrefix) ||\n (this.minusSign === undefined && (str.startsWith('(') || str.startsWith('-'))) ||\n (this.minusSign !== undefined && str.replace('-', this.minusSign).startsWith(this.minusSign)));\n }\n insertCurrency(str, negative) {\n return `${negative ? this.negativePrefix : this.prefix}${str}${negative ? this.negativeSuffix : this.suffix}`;\n }\n stripGroupingSeparator(str) {\n return this.groupingSymbol !== undefined ? str.replace(new RegExp(escapeRegExp(this.groupingSymbol), 'g'), '') : str;\n }\n stripSignLiterals(str) {\n if (this.minusSign !== undefined) {\n return str.replace('-', this.minusSign).replace(this.minusSign, '');\n }\n else {\n return str.replace(/[-()]/g, '');\n }\n }\n stripCurrency(str, negative) {\n return str.replace(negative ? this.negativePrefix : this.prefix, '').replace(negative ? this.negativeSuffix : this.suffix, '');\n }\n normalizeDecimalSeparator(str, from) {\n DECIMAL_SEPARATORS.forEach((s) => {\n str = str.substr(0, from) + str.substr(from).replace(s, this.decimalSymbol);\n });\n return str;\n }\n normalizeDigits(str) {\n if (this.digits[0] !== '0') {\n this.digits.forEach((digit, index) => {\n str = str.replace(new RegExp(digit, 'g'), String(index));\n });\n }\n return str;\n }\n onlyDigits(str) {\n return this.normalizeDigits(str).replace(/\\D+/g, '');\n }\n onlyLocaleDigits(str) {\n return str.replace(new RegExp(`[^${this.digits.join('')}]*`, 'g'), '');\n }\n}\n\nclass AbstractInputMask {\n constructor(currencyFormat) {\n this.currencyFormat = currencyFormat;\n }\n}\nclass DefaultInputMask extends AbstractInputMask {\n conformToMask(str, previousConformedValue = '') {\n const negative = this.currencyFormat.isNegative(str);\n const isEmptyNegativeValue = (str) => str === '' &&\n negative &&\n !(this.currencyFormat.minusSign === undefined\n ? previousConformedValue === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix\n : previousConformedValue === this.currencyFormat.negativePrefix);\n const checkIncompleteValue = (str) => {\n if (isEmptyNegativeValue(str)) {\n return '';\n }\n else if (this.currencyFormat.maximumFractionDigits > 0) {\n if (this.currencyFormat.isFractionIncomplete(str)) {\n return str;\n }\n else if (str.startsWith(this.currencyFormat.decimalSymbol)) {\n return this.currencyFormat.toFraction(str);\n }\n }\n return null;\n };\n let value = str;\n value = this.currencyFormat.stripCurrency(value, negative);\n value = this.currencyFormat.stripSignLiterals(value);\n const incompleteValue = checkIncompleteValue(value);\n if (incompleteValue != null) {\n return this.currencyFormat.insertCurrency(incompleteValue, negative);\n }\n const [integer, ...fraction] = value.split(this.currencyFormat.decimalSymbol);\n const integerDigits = removeLeadingZeros(this.currencyFormat.onlyDigits(integer));\n const fractionDigits = this.currencyFormat.onlyDigits(fraction.join('')).substr(0, this.currencyFormat.maximumFractionDigits);\n const invalidFraction = fraction.length > 0 && fractionDigits.length === 0;\n const invalidNegativeValue = integerDigits === '' &&\n negative &&\n (this.currencyFormat.minusSign === undefined\n ? previousConformedValue === str.slice(0, -2) + this.currencyFormat.negativeSuffix\n : previousConformedValue === str.slice(0, -1));\n if (invalidFraction || invalidNegativeValue || isEmptyNegativeValue(integerDigits)) {\n return previousConformedValue;\n }\n else if (integerDigits.match(/\\d+/)) {\n return {\n numberValue: Number(`${negative ? '-' : ''}${integerDigits}.${fractionDigits}`),\n fractionDigits\n };\n }\n else {\n return '';\n }\n }\n}\nclass AutoDecimalDigitsInputMask extends AbstractInputMask {\n conformToMask(str, previousConformedValue = '') {\n if (str === '' ||\n (this.currencyFormat.parse(previousConformedValue) === 0 &&\n this.currencyFormat.stripCurrency(previousConformedValue, true).slice(0, -1) === this.currencyFormat.stripCurrency(str, true))) {\n return '';\n }\n const negative = this.currencyFormat.isNegative(str);\n const numberValue = this.currencyFormat.stripSignLiterals(str) === ''\n ? -0\n : Number(`${negative ? '-' : ''}${removeLeadingZeros(this.currencyFormat.onlyDigits(str))}`) / Math.pow(10, this.currencyFormat.maximumFractionDigits);\n return {\n numberValue,\n fractionDigits: numberValue.toFixed(this.currencyFormat.maximumFractionDigits).slice(-this.currencyFormat.maximumFractionDigits)\n };\n }\n}\n\nconst DEFAULT_OPTIONS = {\n locale: undefined,\n currency: undefined,\n currencyDisplay: undefined,\n exportValueAsInteger: false,\n hideGroupingSeparatorOnFocus: true,\n hideCurrencySymbolOnFocus: true,\n hideNegligibleDecimalDigitsOnFocus: true,\n precision: undefined,\n autoDecimalDigits: false,\n valueRange: undefined,\n autoSign: true,\n useGrouping: true,\n valueScaling: undefined\n};\nclass CurrencyInput {\n constructor(el, options) {\n this.el = el;\n this.numberValue = null;\n this.addEventListener();\n this.init(options);\n this.setValue(this.currencyFormat.parse(this.el.value));\n }\n setOptions(options) {\n this.init(options);\n this.applyFixedFractionFormat(this.numberValue, true);\n }\n getValue() {\n const numberValue = this.valueScaling && this.numberValue != null ? this.toInteger(this.numberValue, this.valueScaling) : this.numberValue;\n return { number: numberValue, formatted: this.formattedValue };\n }\n setValue(value) {\n const newValue = this.valueScaling !== undefined && value != null ? this.toFloat(value, this.valueScaling) : value;\n if (newValue !== this.numberValue) {\n this.applyFixedFractionFormat(newValue);\n }\n }\n dispatchEvent(eventName) {\n this.el.dispatchEvent(new CustomEvent(eventName, { detail: this.getValue() }));\n }\n init(options) {\n this.options = {\n ...DEFAULT_OPTIONS,\n ...options\n };\n if (this.options.autoDecimalDigits) {\n this.options.hideNegligibleDecimalDigitsOnFocus = false;\n this.el.setAttribute('inputmode', 'numeric');\n }\n else {\n this.el.setAttribute('inputmode', 'decimal');\n }\n this.currencyFormat = new CurrencyFormat(this.options);\n this.numberMask = this.options.autoDecimalDigits ? new AutoDecimalDigitsInputMask(this.currencyFormat) : new DefaultInputMask(this.currencyFormat);\n const valueScalingOptions = {\n [ValueScaling.precision]: this.currencyFormat.maximumFractionDigits,\n [ValueScaling.thousands]: 3,\n [ValueScaling.millions]: 6,\n [ValueScaling.billions]: 9\n };\n if (this.options.exportValueAsInteger) {\n this.valueScaling = valueScalingOptions[ValueScaling.precision];\n }\n else {\n this.valueScaling = this.options.valueScaling ? valueScalingOptions[this.options.valueScaling] : undefined;\n }\n this.valueScalingFractionDigits =\n this.valueScaling !== undefined && this.options.valueScaling !== ValueScaling.precision\n ? this.valueScaling + this.currencyFormat.maximumFractionDigits\n : this.currencyFormat.maximumFractionDigits;\n this.minValue = this.getMinValue();\n this.maxValue = this.getMaxValue();\n }\n getMinValue() {\n var _a, _b;\n let min = this.toFloat(-Number.MAX_SAFE_INTEGER);\n if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.min) !== undefined) {\n min = Math.max((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.min, this.toFloat(-Number.MAX_SAFE_INTEGER));\n }\n if (!this.options.autoSign && min < 0) {\n min = 0;\n }\n return min;\n }\n getMaxValue() {\n var _a, _b;\n let max = this.toFloat(Number.MAX_SAFE_INTEGER);\n if (((_a = this.options.valueRange) === null || _a === void 0 ? void 0 : _a.max) !== undefined) {\n max = Math.min((_b = this.options.valueRange) === null || _b === void 0 ? void 0 : _b.max, this.toFloat(Number.MAX_SAFE_INTEGER));\n }\n if (!this.options.autoSign && max < 0) {\n max = this.toFloat(Number.MAX_SAFE_INTEGER);\n }\n return max;\n }\n toFloat(value, maxFractionDigits) {\n return value / Math.pow(10, maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits);\n }\n toInteger(value, maxFractionDigits) {\n return Number(value\n .toFixed(maxFractionDigits !== null && maxFractionDigits !== void 0 ? maxFractionDigits : this.valueScalingFractionDigits)\n .split('.')\n .join(''));\n }\n validateValueRange(value) {\n return value != null ? Math.min(Math.max(value, this.minValue), this.maxValue) : value;\n }\n applyFixedFractionFormat(number, forcedChange = false) {\n this.format(this.currencyFormat.format(this.validateValueRange(number)));\n if (number !== this.numberValue || forcedChange) {\n this.dispatchEvent('change');\n }\n }\n format(value, hideNegligibleDecimalDigits = false) {\n if (value != null) {\n if (this.decimalSymbolInsertedAt !== undefined) {\n value = this.currencyFormat.normalizeDecimalSeparator(value, this.decimalSymbolInsertedAt);\n this.decimalSymbolInsertedAt = undefined;\n }\n const conformedValue = this.numberMask.conformToMask(value, this.formattedValue);\n let formattedValue;\n if (typeof conformedValue === 'object') {\n const { numberValue, fractionDigits } = conformedValue;\n let { maximumFractionDigits, minimumFractionDigits } = this.currencyFormat;\n if (this.focus) {\n minimumFractionDigits = hideNegligibleDecimalDigits\n ? fractionDigits.replace(/0+$/, '').length\n : Math.min(maximumFractionDigits, fractionDigits.length);\n }\n else if (Number.isInteger(numberValue) && !this.options.autoDecimalDigits && (this.options.precision === undefined || minimumFractionDigits === 0)) {\n minimumFractionDigits = maximumFractionDigits = 0;\n }\n formattedValue =\n this.toInteger(Math.abs(numberValue)) > Number.MAX_SAFE_INTEGER\n ? this.formattedValue\n : this.currencyFormat.format(numberValue, {\n useGrouping: this.options.useGrouping && !(this.focus && this.options.hideGroupingSeparatorOnFocus),\n minimumFractionDigits,\n maximumFractionDigits\n });\n }\n else {\n formattedValue = conformedValue;\n }\n if (this.options.autoSign) {\n if (this.maxValue <= 0 && !this.currencyFormat.isNegative(formattedValue) && this.currencyFormat.parse(formattedValue) !== 0) {\n formattedValue = formattedValue.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix);\n }\n if (this.minValue >= 0) {\n formattedValue = formattedValue.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix);\n }\n }\n if (this.options.currencyDisplay === CurrencyDisplay.hidden || (this.focus && this.options.hideCurrencySymbolOnFocus)) {\n formattedValue = formattedValue\n .replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== undefined ? this.currencyFormat.minusSign : '(')\n .replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== undefined ? '' : ')')\n .replace(this.currencyFormat.prefix, '')\n .replace(this.currencyFormat.suffix, '');\n }\n this.el.value = formattedValue;\n this.numberValue = this.currencyFormat.parse(formattedValue);\n }\n else {\n this.el.value = '';\n this.numberValue = null;\n }\n this.formattedValue = this.el.value;\n this.dispatchEvent('input');\n }\n addEventListener() {\n this.el.addEventListener('input', (e) => {\n if (!e.detail) {\n const { value, selectionStart } = this.el;\n const inputEvent = e;\n if (selectionStart && inputEvent.data && DECIMAL_SEPARATORS.includes(inputEvent.data)) {\n this.decimalSymbolInsertedAt = selectionStart - 1;\n }\n this.format(value);\n if (this.focus && selectionStart != null) {\n const getCaretPositionAfterFormat = () => {\n const { prefix, suffix, decimalSymbol, maximumFractionDigits, groupingSymbol } = this.currencyFormat;\n let caretPositionFromLeft = value.length - selectionStart;\n const newValueLength = this.formattedValue.length;\n if (this.currencyFormat.minusSign === undefined && (value.startsWith('(') || value.startsWith('-')) && !value.endsWith(')')) {\n return newValueLength - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(selectionStart).length : 1;\n }\n if (this.formattedValue.substr(selectionStart, 1) === groupingSymbol &&\n count(this.formattedValue, groupingSymbol) === count(value, groupingSymbol) + 1) {\n return newValueLength - caretPositionFromLeft - 1;\n }\n if (newValueLength < caretPositionFromLeft) {\n return selectionStart;\n }\n if (decimalSymbol !== undefined && value.indexOf(decimalSymbol) !== -1) {\n const decimalSymbolPosition = value.indexOf(decimalSymbol) + 1;\n if (Math.abs(newValueLength - value.length) > 1 && selectionStart <= decimalSymbolPosition) {\n return this.formattedValue.indexOf(decimalSymbol) + 1;\n }\n else {\n if (!this.options.autoDecimalDigits && selectionStart > decimalSymbolPosition) {\n if (this.currencyFormat.onlyDigits(value.substr(decimalSymbolPosition)).length - 1 === maximumFractionDigits) {\n caretPositionFromLeft -= 1;\n }\n }\n }\n }\n return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden\n ? newValueLength - caretPositionFromLeft\n : Math.max(newValueLength - Math.max(caretPositionFromLeft, suffix.length), prefix.length);\n };\n this.setCaretPosition(getCaretPositionAfterFormat());\n }\n }\n }, { capture: true });\n this.el.addEventListener('focus', () => {\n this.focus = true;\n setTimeout(() => {\n const { value, selectionStart, selectionEnd } = this.el;\n this.format(value, this.options.hideNegligibleDecimalDigitsOnFocus);\n if (selectionStart != null && selectionEnd != null && Math.abs(selectionStart - selectionEnd) > 0) {\n this.setCaretPosition(0, this.el.value.length);\n }\n else if (selectionStart != null) {\n const caretPositionOnFocus = this.getCaretPositionOnFocus(value, selectionStart);\n this.setCaretPosition(caretPositionOnFocus);\n }\n });\n });\n this.el.addEventListener('blur', () => {\n this.focus = false;\n this.applyFixedFractionFormat(this.numberValue);\n });\n this.el.addEventListener('change', (e) => {\n if (!e.detail) {\n this.dispatchEvent('change');\n }\n }, { capture: true });\n }\n getCaretPositionOnFocus(value, selectionStart) {\n if (this.numberValue == null) {\n return selectionStart;\n }\n const { prefix, negativePrefix, suffix, negativeSuffix, groupingSymbol, currency } = this.currencyFormat;\n const isNegative = this.numberValue < 0;\n const currentPrefix = isNegative ? negativePrefix : prefix;\n const prefixLength = currentPrefix.length;\n if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === CurrencyDisplay.hidden) {\n if (isNegative) {\n if (selectionStart <= 1) {\n return 1;\n }\n else if (value.endsWith(')') && selectionStart > value.indexOf(')')) {\n return this.formattedValue.length - 1;\n }\n }\n }\n else {\n const suffixLength = isNegative ? negativeSuffix.length : suffix.length;\n if (selectionStart >= value.length - suffixLength) {\n return this.formattedValue.length - suffixLength;\n }\n else if (selectionStart < prefixLength) {\n return prefixLength;\n }\n }\n let result = selectionStart;\n if (this.options.hideCurrencySymbolOnFocus &&\n this.options.currencyDisplay !== CurrencyDisplay.hidden &&\n selectionStart >= prefixLength &&\n currency !== undefined &&\n currentPrefix.includes(currency)) {\n result -= prefixLength;\n if (isNegative) {\n result += 1;\n }\n }\n if (this.options.hideGroupingSeparatorOnFocus && groupingSymbol !== undefined) {\n result -= count(value.substring(0, selectionStart), groupingSymbol);\n }\n return result;\n }\n setCaretPosition(start, end = start) {\n this.el.setSelectionRange(start, end);\n }\n}\n\nconst findInput = (el) => ((el === null || el === void 0 ? void 0 : el.matches('input')) ? el : el === null || el === void 0 ? void 0 : el.querySelector('input'));\nvar useCurrencyInput = (options) => {\n var _a;\n let numberInput;\n let input;\n const inputRef = ref(null);\n const formattedValue = ref(null);\n const instance = getCurrentInstance();\n const emit = (event, value) => instance === null || instance === void 0 ? void 0 : instance.emit(event, value);\n const lazyModel = isVue3 && ((_a = instance === null || instance === void 0 ? void 0 : instance.attrs.modelModifiers) === null || _a === void 0 ? void 0 : _a.lazy);\n const numberValue = computed(() => instance === null || instance === void 0 ? void 0 : instance.props[isVue3 ? 'modelValue' : 'value']);\n const inputEvent = isVue3 ? 'update:modelValue' : 'input';\n const changeEvent = lazyModel ? 'update:modelValue' : 'change';\n const hasInputEventListener = !isVue3 || !lazyModel;\n const hasChangeEventListener = !isVue3 || lazyModel || !(instance === null || instance === void 0 ? void 0 : instance.attrs.onChange);\n const onInput = (e) => {\n if (e.detail) {\n if (numberValue.value !== e.detail.number) {\n emit(inputEvent, e.detail.number);\n }\n formattedValue.value = e.detail.formatted;\n }\n };\n const onChange = (e) => {\n if (e.detail) {\n emit(changeEvent, e.detail.number);\n formattedValue.value = e.detail.formatted;\n }\n };\n watch(inputRef, (value) => {\n var _a, _b;\n if (value) {\n input = findInput((_b = (_a = value) === null || _a === void 0 ? void 0 : _a.$el) !== null && _b !== void 0 ? _b : value);\n if (input) {\n numberInput = new CurrencyInput(input, options);\n if (hasInputEventListener) {\n input.addEventListener('input', onInput);\n }\n if (hasChangeEventListener) {\n input.addEventListener('change', onChange);\n }\n numberInput.setValue(numberValue.value);\n }\n else {\n console.error('No input element found. Please make sure that the \"inputRef\" template ref is properly assigned.');\n }\n }\n else {\n numberInput = null;\n }\n });\n onUnmounted(() => {\n if (hasInputEventListener) {\n input === null || input === void 0 ? void 0 : input.removeEventListener('input', onInput);\n }\n if (hasChangeEventListener) {\n input === null || input === void 0 ? void 0 : input.removeEventListener('change', onChange);\n }\n });\n return {\n inputRef,\n formattedValue,\n setValue: (value) => numberInput === null || numberInput === void 0 ? void 0 : numberInput.setValue(value),\n setOptions: (options) => numberInput === null || numberInput === void 0 ? void 0 : numberInput.setOptions(options)\n };\n};\n\nexport { CurrencyDisplay, ValueScaling, useCurrencyInput as default, parse, useCurrencyInput };\n","<template>\n <el-input\n v-bind=\"$attrs\"\n ref=\"inputRef\"\n v-model=\"innerValue\"\n class=\"pl-currency\">\n <template #append>\n <span class=\"pl-currency__rub-icon\">&#x20bd;</span>\n </template>\n </el-input>\n</template>\n\n<script setup>\nimport { ref, reactive, watch } from 'vue';\nimport { useCurrencyInput } from 'vue-currency-input';\n\n// eslint-disable-next-line no-unused-vars,no-undef\nconst props = defineProps({\n modelValue: String,\n});\n\n// eslint-disable-next-line no-undef\nconst emit = defineEmits(['update:modelValue']);\n\nconst innerValue = ref(null);\nconst options = reactive({\n currency: 'EUR',\n currencyDisplay: 'hidden',\n precision: 2,\n});\n\nconst { inputRef } = useCurrencyInput(options);\n\nwatch(innerValue, (newValue) => {\n emit('update:modelValue', newValue);\n});\n</script>\n\n<style lang=\"scss\">\n.pl-currency {\n width: 30%;\n &__rub-icon {\n font-size: 20px;\n opacity: 0.3;\n }\n}\n</style>\n","import script from \"./pl-currency.vue?vue&type=script&setup=true&lang=js\"\nexport * from \"./pl-currency.vue?vue&type=script&setup=true&lang=js\"\n\nimport \"./pl-currency.vue?vue&type=style&index=0&id=0538fbc8&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import PlCurrency from './src/components/pl-currency/src/pl-currency.vue';\n\nexport default PlCurrency;\n\n// // Объявление функции установки, выполняемой Vue.use()\n// export function install(Vue) {\n// if (install.installed) {\n// return;\n// }\n// install.installed = true;\n// Vue.component('PlCurrency', PlCurrency);\n// }\n//\n// // Создание значения модуля для Vue.use()\n// const plugin = {\n// install,\n// };\n//\n// // Автоматическая установка, когда vue найден (например в браузере с помощью тега <script>)\n// let GlobalVue = null;\n// if (typeof window !== 'undefined') {\n// GlobalVue = window.Vue;\n// } else if (typeof global !== 'undefined') {\n// GlobalVue = global.Vue;\n// }\n// if (GlobalVue) {\n// GlobalVue.use(plugin);\n// }\n//\n// PlCurrency.install = install;\n//\n// // Экспорт компонента, для использования в качестве модуля (npm/webpack/etc.)\n// export default {\n// version: '0.1.0',\n// install,\n// PlCurrency,\n// };\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factoringplus/pl-components-pack-v3",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/vue.config.js CHANGED
@@ -1,8 +1,3 @@
1
1
  module.exports = {
2
2
  lintOnSave: false,
3
- configureWebpack: {
4
- output: {
5
- libraryExport: 'default',
6
- },
7
- },
8
3
  };