New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-currency-input

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-currency-input - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

dist/vue-currency-input.umd.min.js

@@ -1,1 +0,1 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-currency-input"]=t(require("vue")):e["vue-currency-input"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),o=n("07e3"),i=n("8e60"),u=n("63b6"),a=n("9138"),c=n("ebfd").KEY,f=n("294c"),l=n("dbdb"),s=n("45f2"),p=n("62a0"),d=n("5168"),v=n("ccb9"),h=n("6718"),m=n("47ee"),b=n("9003"),y=n("e4ae"),g=n("f772"),x=n("36c3"),w=n("1bc3"),O=n("aebd"),S=n("a159"),E=n("0395"),C=n("bf0b"),P=n("d9f6"),j=n("c3a1"),_=C.f,T=P.f,k=E.f,N=r.Symbol,F=r.JSON,$=F&&F.stringify,V="prototype",I=d("_hidden"),M=d("toPrimitive"),A={}.propertyIsEnumerable,D=l("symbol-registry"),R=l("symbols"),W=l("op-symbols"),L=Object[V],U="function"==typeof N,J=r.QObject,q=!J||!J[V]||!J[V].findChild,B=i&&f(function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=_(L,t);r&&delete L[t],T(e,t,n),r&&e!==L&&T(L,t,r)}:T,z=function(e){var t=R[e]=S(N[V]);return t._k=e,t},G=U&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},K=function(e,t,n){return e===L&&K(W,t,n),y(e),t=w(t,!0),y(n),o(R,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:O(0,!1)})):(o(e,I)||T(e,I,O(1,{})),e[I][t]=!0),B(e,t,n)):T(e,t,n)},X=function(e,t){y(e);var n,r=m(t=x(t)),o=0,i=r.length;while(i>o)K(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?S(e):X(S(e),t)},Q=function(e){var t=A.call(this,e=w(e,!0));return!(this===L&&o(R,e)&&!o(W,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,I)&&this[I][e])||t)},H=function(e,t){if(e=x(e),t=w(t,!0),e!==L||!o(R,t)||o(W,t)){var n=_(e,t);return!n||!o(R,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Z=function(e){var t,n=k(x(e)),r=[],i=0;while(n.length>i)o(R,t=n[i++])||t==I||t==c||r.push(t);return r},ee=function(e){var t,n=e===L,r=k(n?W:x(e)),i=[],u=0;while(r.length>u)!o(R,t=r[u++])||n&&!o(L,t)||i.push(R[t]);return i};U||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===L&&t.call(W,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),B(this,e,O(1,n))};return i&&q&&B(L,e,{configurable:!0,set:t}),z(e)},a(N[V],"toString",function(){return this._k}),C.f=H,P.f=K,n("6abf").f=E.f=Z,n("355d").f=Q,n("9aa9").f=ee,i&&!n("b8e3")&&a(L,"propertyIsEnumerable",Q,!0),v.f=function(e){return z(d(e))}),u(u.G+u.W+u.F*!U,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=j(d.store),oe=0;re.length>oe;)h(re[oe++]);u(u.S+u.F*!U,"Symbol",{for:function(e){return o(D,e+="")?D[e]:D[e]=N(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!U,"Object",{create:Y,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:H,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),F&&u(u.S+u.F*(!U||f(function(){var e=N();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,$.apply(F,r)}}),N[V][M]||n("35e8")(N[V],M,N[V].valueOf),s(N,"Symbol"),s(Math,"Math",!0),s(r.JSON,"JSON",!0)},"0395":function(e,t,n){var r=n("36c3"),o=n("6abf").f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return u.slice()}};e.exports.f=function(e){return u&&"[object Window]"==i.call(e)?a(e):o(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0fc9":function(e,t,n){var r=n("3a38"),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},"11a6":function(e,t,n){e.exports=n("454f")},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"32a6":function(e,t,n){var r=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(e){return o(r(e))}})},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),o=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),o=n("25eb");e.exports=function(e){return r(o(e))}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4521:function(e,t,n){e.exports=n("ed33")},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"45f2":function(e,t,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),o=n("9aa9"),i=n("355d");e.exports=function(e){var t=r(e),n=o.f;if(n){var u,a=n(e),c=i.f,f=0;while(a.length>f)c.call(e,u=a[f++])&&t.push(u)}return t}},5168:function(e,t,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,u="function"==typeof i,a=e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))};a.store=r},5559:function(e,t,n){var r=n("dbdb")("keys"),o=n("62a0");e.exports=function(e){return r[e]||(r[e]=o(e))}},"584a":function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");e.exports=function(e){return function(t,n,u){var a,c=r(t),f=o(c.length),l=i(u,f);if(e&&n!=n){while(f>l)if(a=c[l++],a!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5f2d":function(e,t,n){e.exports=n("8aae")},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),o=n("584a"),i=n("d864"),u=n("35e8"),a=n("07e3"),c="prototype",f=function(e,t,n){var l,s,p,d=e&f.F,v=e&f.G,h=e&f.S,m=e&f.P,b=e&f.B,y=e&f.W,g=v?o:o[t]||(o[t]={}),x=g[c],w=v?r:h?r[t]:(r[t]||{})[c];for(l in v&&(n=t),n)s=!d&&w&&void 0!==w[l],s&&a(g,l)||(p=s?w[l]:n[l],g[l]=v&&"function"!=typeof w[l]?n[l]:b&&s?i(p,r):y&&w[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(p):m&&"function"==typeof p?i(Function.call,p):p,m&&((g.virtual||(g.virtual={}))[l]=p,e&f.R&&x&&!x[l]&&u(x,l,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},6718:function(e,t,n){var r=n("e53d"),o=n("584a"),i=n("b8e3"),u=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:u.f(e)})}},"6abf":function(e,t,n){var r=n("e6f3"),o=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"7e90":function(e,t,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){o(e);var n,u=i(t),a=u.length,c=0;while(a>c)r.f(e,n=u[c++],t[n]);return e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8bbf":function(t,n){t.exports=e},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},a159:function(e,t,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),u=n("5559")("IE_PROTO"),a=function(){},c="prototype",f=function(){var e,t=n("1ec9")("iframe"),r=i.length,o="<",u=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+u+"document.F=Object"+o+"/script"+u),e.close(),f=e.F;while(r--)delete f[c][i[r]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[u]=e):n=f(),void 0===t?n:o(n,t)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b447:function(e,t,n){var r=n("3a38"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},bf0b:function(e,t,n){var r=n("355d"),o=n("aebd"),i=n("36c3"),u=n("1bc3"),a=n("07e3"),c=n("794b"),f=Object.getOwnPropertyDescriptor;t.f=n("8e60")?f:function(e,t){if(e=i(e),t=u(t,!0),c)try{return f(e,t)}catch(n){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),o=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},c3a1:function(e,t,n){var r=n("e6f3"),o=n("1691");e.exports=Object.keys||function(e){return r(e,o)}},ccb9:function(e,t,n){t.f=n("5168")},ccd8:function(e,t,n){e.exports=n("fde4")},ce7e:function(e,t,n){var r=n("63b6"),o=n("584a"),i=n("294c");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],u={};u[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},d9f6:function(e,t,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),u=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),u=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);while(t.length>c)r(a,n=t[c++])&&(~i(f,n)||f.push(n));return f}},ebfd:function(e,t,n){var r=n("62a0")("meta"),o=n("f772"),i=n("07e3"),u=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},f=!n("294c")(function(){return c(Object.preventExtensions({}))}),l=function(e){u(e,r,{value:{i:"O"+ ++a,w:{}}})},s=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},p=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return f&&v.NEED&&c(e)&&!i(e,r)&&l(e),e},v=e.exports={KEY:r,NEED:!1,fastKey:s,getWeak:p,onFreeze:d}},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=n("ccd8"),i=n.n(o),u=n("4521"),a=n.n(u),c=n("5f2d"),f=n.n(c),l=n("11a6"),s=n.n(l);function p(e,t,n){return t in e?s()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=f()(n);"function"===typeof a.a&&(r=r.concat(a()(n).filter(function(e){return i()(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}const v=[],h="";function m({previousConformedValue:e=h,previousPlaceholder:t=h,currentCaretPosition:n=0,conformedValue:r,rawValue:o,placeholderChar:i,placeholder:u,indexesOfPipedChars:a=v,caretTrapIndexes:c=v}){if(0===n||!o.length)return 0;const f=o.length,l=e.length,s=u.length,p=r.length,d=f-l,m=d>0,b=0===l,y=d>1&&!m&&!b;if(y)return n;const g=m&&(e===r||r===u);let x,w,O=0;if(g)O=n-d;else{const e=r.toLowerCase(),c=o.toLowerCase(),f=c.substr(0,n).split(h),l=f.filter(t=>-1!==e.indexOf(t));w=l[l.length-1];const s=t.substr(0,l.length).split(h).filter(e=>e!==i).length,d=u.substr(0,l.length).split(h).filter(e=>e!==i).length,v=d!==s,b=void 0!==t[l.length-1]&&void 0!==u[l.length-2]&&t[l.length-1]!==i&&t[l.length-1]!==u[l.length-1]&&t[l.length-1]===u[l.length-2];!m&&(v||b)&&s>0&&u.indexOf(w)>-1&&void 0!==o[n]&&(x=!0,w=o[n]);const y=a.map(t=>e[t]),g=y.filter(e=>e===w).length,S=l.filter(e=>e===w).length,E=u.substr(0,u.indexOf(i)).split(h).filter((e,t)=>e===w&&o[t]!==e).length,C=E+S+g+(x?1:0);let P=0;for(let t=0;t<p;t++){const n=e[t];if(O=t+1,n===w&&P++,P>=C)break}}if(m){let e=O;for(let t=O;t<=s;t++)if(u[t]===i&&(e=t),u[t]===i||-1!==c.indexOf(t)||t===s)return e}else if(x){for(let v=O-1;v>=0;v--)if(r[v]===w||-1!==c.indexOf(v)||0===v)return v}else for(let v=O;v>=0;v--)if(u[v-1]===i||-1!==c.indexOf(v)||0===v)return v}const b="_",y="function",g=[];function x(e=g,t=b){if(!w(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\n"+`The placeholder character that was received is: ${JSON.stringify(t)}\n\n`+`The mask that was received is: ${JSON.stringify(e)}`);return e.map(e=>{return e instanceof RegExp?t:e}).join("")}function w(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function O(e){return"string"===typeof e||e instanceof String}function S(e){return"number"===typeof e&&void 0===e.length&&!isNaN(e)}const E="[]";function C(e){const t=[];let n;while(n=e.indexOf(E),-1!==n)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}const P=[],j="";function _(e=j,t=P,n={}){if(!w(t)){if(typeof t!==y)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=C(t).maskWithoutCaretTraps}const{guide:r=!0,previousConformedValue:o=j,placeholderChar:i=b,placeholder:u=x(t,i),currentCaretPosition:a,keepCharPositions:c}=n,f=!1===r&&void 0!==o,l=e.length,s=o.length,p=u.length,d=t.length,v=l-s,h=v>0,m=a+(h?-v:0),g=m+Math.abs(v);if(!0===c&&!h){let t=j;for(let e=m;e<g;e++)u[e]===i&&(t+=i);e=e.slice(0,m)+t+e.slice(m,l)}const O=e.split(j).map((e,t)=>({char:e,isNew:t>=m&&t<g}));for(let b=l-1;b>=0;b--){const{char:e}=O[b];if(e!==i){const t=b>=m&&s===d;e===u[t?b-v:b]&&O.splice(b,1)}}let S=j,E=!1;e:for(let b=0;b<p;b++){const e=u[b];if(e===i){if(O.length>0)while(O.length>0){const{char:e,isNew:n}=O.shift();if(e===i&&!0!==f){S+=i;continue e}if(t[b].test(e)){if(!0===c&&!1!==n&&o!==j&&!1!==r&&h){const t=O.length;let n=null;for(let e=0;e<t;e++){const t=O[e];if(t.char!==i&&!1===t.isNew)break;if(t.char===i){n=e;break}}null!==n?(S+=e,O.splice(n,1)):b--}else S+=e;continue e}E=!0}!1===f&&(S+=u.substr(b,p));break}S+=e}if(f&&!1===h){let e=null;for(let t=0;t<S.length;t++)u[t]===i&&(e=t);S=null!==e?S.substr(0,e+1):j}return{conformedValue:S,meta:{someCharsRejected:E}}}const T="",k="none",N="object",F="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),$="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:setTimeout;function V(e){const t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update(n,{inputElement:r,mask:o,guide:i,pipe:u,placeholderChar:a=b,keepCharPositions:c=!1,showMask:f=!1}=e){if("undefined"===typeof n&&(n=r.value),n===t.previousConformedValue)return;let l,s;if(typeof o===N&&void 0!==o.pipe&&void 0!==o.mask&&(u=o.pipe,o=o.mask),o instanceof Array&&(l=x(o,a)),!1===o)return;const p=M(n),{selectionEnd:d}=r,{previousConformedValue:v,previousPlaceholder:h}=t;let g;if(typeof o===y){if(s=o(p,{currentCaretPosition:d,previousConformedValue:v,placeholderChar:a}),!1===s)return;const{maskWithoutCaretTraps:e,indexes:t}=C(s);s=e,g=t,l=x(s,a)}else s=o;const w={previousConformedValue:v,guide:i,placeholderChar:a,pipe:u,placeholder:l,currentCaretPosition:d,keepCharPositions:c},{conformedValue:S}=_(p,s,w),E=typeof u===y;let P={};E&&(P=u(S,{rawValue:p,...w}),!1===P?P={value:v,rejected:!0}:O(P)&&(P={value:P}));const j=E?P.value:S,k=m({previousConformedValue:v,previousPlaceholder:h,conformedValue:j,placeholder:l,rawValue:p,currentCaretPosition:d,placeholderChar:a,indexesOfPipedChars:P.indexesOfPipedChars,caretTrapIndexes:g}),F=j===l&&0===k,$=f?l:T,V=F?$:j;t.previousConformedValue=V,t.previousPlaceholder=l,r.value!==V&&(r.value=V,I(r,k))}}}function I(e,t){document.activeElement===e&&(F?$(()=>e.setSelectionRange(t,t,k),0):e.setSelectionRange(t,t,k))}function M(e){if(O(e))return e;if(S(e))return String(e);if(void 0===e||null===e)return T;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value "+`received was:\n\n ${JSON.stringify(e)}`)}var A=n("8bbf"),D=n.n(A),R={locale:void 0,currency:"EUR",distractionFree:!0,min:null,max:null,validateOnInput:!1},W=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},L=function(e){return e.replace(/\D+/g,"")},U=function(e,t){return t&&e.startsWith(t)?e.substr(t.length):e},J=function(e,t){return t&&e.endsWith(t)?e.slice(0,-1*t.length):e},q=function(e,t){if("number"===typeof e)return e;if(e&&"string"===typeof e&&e.trim().length){var n=e.startsWith("-"),r=e.split(t),o=L(r[0]);if(n&&(o="-".concat(o)),2===r.length&&(o+=".".concat(L(r[1]))),o)return o=Number(o),Number.isNaN(o)?null:o}return null},B=/\d/,z="[]",G=function(e){return e.split("").map(function(e){return B.test(e)?B:e})},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.prefix,n=e.suffix,r=e.thousandsSeparatorSymbol,o=e.allowDecimal,i=e.allowNegative,u=e.decimalSymbol,a=e.decimalLimit,c=t?t.length:0,f=n?n.length:0;return function(){var e,l,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",p=s.indexOf(u),d=-1!==p,v=s.startsWith("-")&&i;if(s=U(s,"-"),s=U(s,t),s=J(s,n),d&&o){var h=s.split(u);e=h[0],l=G(L(h[1]))}else e=s;e=L(e),e=e.replace(/^0+(0$|[^0])/,"$1"),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,r);var m=G(e);return d&&o&&(m.push(z,u,z),l&&("number"===typeof a&&(l=l.slice(0,a)),m=m.concat(l))),c>0&&(m=t.split("").concat(m)),v&&(m=[/-/].concat(m)),f>0&&(m=m.concat(n.split(""))),m}},X=function(e,t){var n=new Intl.NumberFormat(e,{style:"currency",currency:t}),r=n.format(1234),o=(r.match(/0/g)||[]).length,i=o>0?r.substr(r.indexOf("4")+1,1):null,u=null!==i,a=r.substring(0,r.indexOf("1")),c=r.substring(r.lastIndexOf(o>0?"0":"4")+1),f=r.substr(r.indexOf("1")+1,1);return{prefix:a,suffix:c,thousandsSeparatorSymbol:f,decimalSymbol:i,decimalLimit:o,allowDecimal:u}},Y={bind:function(e,t){var n=H(e,t.value);D.a.nextTick(function(){Z(n,W(n.value)?Number(n.value):null)}),n.addEventListener("input",function(t){var r=t.detail;ee(n,r?r.value:n.value),e.dispatchEvent(new Event("value-change"))},{capture:!0}),n.addEventListener("focus",function(){var e=n.$ci,t=e.options,r=e.currencyFormatConfig;n.$ci.focus=!0,t.distractionFree&&setTimeout(function(){var e=te(n);ee(n,q(n.value,r.decimalSymbol)),n.setSelectionRange(e,e)},0)}),n.addEventListener("blur",function(){n.$ci.focus=!1,Z(n)})},componentUpdated:function(e,t){if(t.value&&Q(t.oldValue,t.value)){var n=H(e,t.value);Z(n,n.$ci.numberValue)}}},Q=function(e,t){return Object.keys(R).some(function(n){return e[n]!==t[n]})},H=function(e,t){var n=e.matches("input")?e:e.querySelector("input");if(!n)throw new Error("The directive must be applied on an element consists of an input element");var r=d({},D.a.prototype.$CI_DEFAULT_OPTIONS||R,t);if(null!=r.min&&null!=r.max&&r.min>r.max)throw new Error("Invalid number range");return n.$ci=d({},n.$ci||{},{options:r,currencyFormatConfig:X(r.locale,r.currency),textMaskInputElement:V({inputElement:n,mask:[]})}),n},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q(e.value,e.$ci.currencyFormatConfig.decimalSymbol);null==t||e.$ci.currencyFormatConfig.allowDecimal||(t=Math.round(t)),ee(e,t),e.dispatchEvent(new Event("input"))},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.$ci,r=n.options,o=n.currencyFormatConfig,i=n.textMaskInputElement,u=n.focus,a=u&&r.distractionFree;"number"===typeof t&&(null!=r.min&&t<r.min&&(t=r.min),null!=r.max&&t>r.max&&(t=r.max),t=new Intl.NumberFormat(r.locale,{minimumFractionDigits:a?0:o.decimalLimit}).format(t),r.distractionFree&&(t+=" ")),i.update(t,{inputElement:e,pipe:function(e,t){var n=t.previousConformedValue;if(r.validateOnInput){if(null!=r.min&&q(e,o.decimalSymbol)<r.min)return n;if(null!=r.max&&q(e,o.decimalSymbol)>r.max)return n}return e},mask:K(d({},o,{prefix:a?"":o.prefix,suffix:a?"":o.suffix,thousandsSeparatorSymbol:a?"":o.thousandsSeparatorSymbol,allowNegative:null===r.min&&null===r.max||r.min<0||r.max<0}))}),e.$ci.numberValue=q(e.value,o.decimalSymbol)},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.$ci.currencyFormatConfig,n=t.prefix,r=t.thousandsSeparatorSymbol;return Math.max(0,e.selectionStart-n.length-(e.value.substring(0,e.selectionStart).match(new RegExp("."===r?"\\.":r,"g"))||[]).length)},ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",e._g({directives:[{name:"currency",rawName:"v-currency",value:e.options,expression:"options"}],domProps:{value:e.formattedValue}},e.listeners()))},re=[],oe={name:"CurrencyInput",directives:{currency:Y},model:{event:"value-change"},props:{value:{type:Number,default:null},locale:{type:String,default:void 0},currency:{type:String,default:void 0},distractionFree:{type:Boolean,default:void 0},min:{type:Number,default:void 0},max:{type:Number,default:void 0},validateOnInput:{type:Boolean,default:void 0}},data:function(){return{formattedValue:this.value}},computed:{options:function(){var e=this,t=d({},this.$CI_DEFAULT_OPTIONS||R);return Object.keys(t).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t}},watch:{value:function(e){this.$el.$ci.focus||this.$el.dispatchEvent(new CustomEvent("input",{detail:{value:e}}))}},methods:{listeners:function(){var e=this;return d({},this.$listeners,{"value-change":function(t){var n=t.target;e.$emit("value-change",n.$ci.numberValue),e.formattedValue=n.value}})}}},ie=oe;function ue(e,t,n,r,o,i,u,a){var c,f="function"===typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},f._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(f.functional){f._injectStyles=c;var l=f.render;f.render=function(e,t){return c.call(t),l(e,t)}}else{var s=f.beforeCreate;f.beforeCreate=s?[].concat(s,c):[c]}return{exports:e,options:f}}var ae=ue(ie,ne,re,!1,null,null,null),ce=ae.exports,fe={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.componentName,r=void 0===n?ce.name:n,o=t.directiveName,i=void 0===o?"currency":o,u=t.globalOptions,a=void 0===u?{}:u,c=d({},R,a);e.prototype.$CI_DEFAULT_OPTIONS=c,e.component(r,ce),e.directive(i,Y),e.prototype.$parseCurrency=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.locale,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.currency;return q(e,X(t,n).decimalSymbol)}}},le=fe;"undefined"!==typeof window&&window.Vue&&window.Vue.use(fe),n.d(t,"CurrencyInput",function(){return ce}),n.d(t,"CurrencyDirective",function(){return Y});t["default"]=le},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}}})});
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-currency-input"]=t(require("vue")):e["vue-currency-input"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),o=n("07e3"),i=n("8e60"),u=n("63b6"),a=n("9138"),c=n("ebfd").KEY,f=n("294c"),l=n("dbdb"),s=n("45f2"),p=n("62a0"),d=n("5168"),v=n("ccb9"),h=n("6718"),m=n("47ee"),b=n("9003"),y=n("e4ae"),g=n("f772"),x=n("36c3"),w=n("1bc3"),O=n("aebd"),S=n("a159"),E=n("0395"),C=n("bf0b"),P=n("d9f6"),j=n("c3a1"),_=C.f,T=P.f,k=E.f,N=r.Symbol,F=r.JSON,$=F&&F.stringify,V="prototype",I=d("_hidden"),M=d("toPrimitive"),A={}.propertyIsEnumerable,D=l("symbol-registry"),R=l("symbols"),L=l("op-symbols"),W=Object[V],U="function"==typeof N,J=r.QObject,q=!J||!J[V]||!J[V].findChild,B=i&&f(function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=_(W,t);r&&delete W[t],T(e,t,n),r&&e!==W&&T(W,t,r)}:T,z=function(e){var t=R[e]=S(N[V]);return t._k=e,t},G=U&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},K=function(e,t,n){return e===W&&K(L,t,n),y(e),t=w(t,!0),y(n),o(R,t)?(n.enumerable?(o(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:O(0,!1)})):(o(e,I)||T(e,I,O(1,{})),e[I][t]=!0),B(e,t,n)):T(e,t,n)},X=function(e,t){y(e);var n,r=m(t=x(t)),o=0,i=r.length;while(i>o)K(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?S(e):X(S(e),t)},Q=function(e){var t=A.call(this,e=w(e,!0));return!(this===W&&o(R,e)&&!o(L,e))&&(!(t||!o(this,e)||!o(R,e)||o(this,I)&&this[I][e])||t)},H=function(e,t){if(e=x(e),t=w(t,!0),e!==W||!o(R,t)||o(L,t)){var n=_(e,t);return!n||!o(R,t)||o(e,I)&&e[I][t]||(n.enumerable=!0),n}},Z=function(e){var t,n=k(x(e)),r=[],i=0;while(n.length>i)o(R,t=n[i++])||t==I||t==c||r.push(t);return r},ee=function(e){var t,n=e===W,r=k(n?L:x(e)),i=[],u=0;while(r.length>u)!o(R,t=r[u++])||n&&!o(W,t)||i.push(R[t]);return i};U||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(L,n),o(this,I)&&o(this[I],e)&&(this[I][e]=!1),B(this,e,O(1,n))};return i&&q&&B(W,e,{configurable:!0,set:t}),z(e)},a(N[V],"toString",function(){return this._k}),C.f=H,P.f=K,n("6abf").f=E.f=Z,n("355d").f=Q,n("9aa9").f=ee,i&&!n("b8e3")&&a(W,"propertyIsEnumerable",Q,!0),v.f=function(e){return z(d(e))}),u(u.G+u.W+u.F*!U,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=j(d.store),oe=0;re.length>oe;)h(re[oe++]);u(u.S+u.F*!U,"Symbol",{for:function(e){return o(D,e+="")?D[e]:D[e]=N(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!U,"Object",{create:Y,defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:H,getOwnPropertyNames:Z,getOwnPropertySymbols:ee}),F&&u(u.S+u.F*(!U||f(function(){var e=N();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(n=t=r[1],(g(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,$.apply(F,r)}}),N[V][M]||n("35e8")(N[V],M,N[V].valueOf),s(N,"Symbol"),s(Math,"Math",!0),s(r.JSON,"JSON",!0)},"0395":function(e,t,n){var r=n("36c3"),o=n("6abf").f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return u.slice()}};e.exports.f=function(e){return u&&"[object Window]"==i.call(e)?a(e):o(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0fc9":function(e,t,n){var r=n("3a38"),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},"11a6":function(e,t,n){e.exports=n("454f")},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"32a6":function(e,t,n){var r=n("241e"),o=n("c3a1");n("ce7e")("keys",function(){return function(e){return o(r(e))}})},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),o=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),o=n("25eb");e.exports=function(e){return r(o(e))}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4521:function(e,t,n){e.exports=n("ed33")},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"45f2":function(e,t,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"47ee":function(e,t,n){var r=n("c3a1"),o=n("9aa9"),i=n("355d");e.exports=function(e){var t=r(e),n=o.f;if(n){var u,a=n(e),c=i.f,f=0;while(a.length>f)c.call(e,u=a[f++])&&t.push(u)}return t}},5168:function(e,t,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,u="function"==typeof i,a=e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))};a.store=r},5559:function(e,t,n){var r=n("dbdb")("keys"),o=n("62a0");e.exports=function(e){return r[e]||(r[e]=o(e))}},"584a":function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");e.exports=function(e){return function(t,n,u){var a,c=r(t),f=o(c.length),l=i(u,f);if(e&&n!=n){while(f>l)if(a=c[l++],a!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5f2d":function(e,t,n){e.exports=n("8aae")},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),o=n("584a"),i=n("d864"),u=n("35e8"),a=n("07e3"),c="prototype",f=function(e,t,n){var l,s,p,d=e&f.F,v=e&f.G,h=e&f.S,m=e&f.P,b=e&f.B,y=e&f.W,g=v?o:o[t]||(o[t]={}),x=g[c],w=v?r:h?r[t]:(r[t]||{})[c];for(l in v&&(n=t),n)s=!d&&w&&void 0!==w[l],s&&a(g,l)||(p=s?w[l]:n[l],g[l]=v&&"function"!=typeof w[l]?n[l]:b&&s?i(p,r):y&&w[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(p):m&&"function"==typeof p?i(Function.call,p):p,m&&((g.virtual||(g.virtual={}))[l]=p,e&f.R&&x&&!x[l]&&u(x,l,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},6718:function(e,t,n){var r=n("e53d"),o=n("584a"),i=n("b8e3"),u=n("ccb9"),a=n("d9f6").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:u.f(e)})}},"6abf":function(e,t,n){var r=n("e6f3"),o=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"7e90":function(e,t,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){o(e);var n,u=i(t),a=u.length,c=0;while(a>c)r.f(e,n=u[c++],t[n]);return e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8bbf":function(t,n){t.exports=e},"8e60":function(e,t,n){e.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},a159:function(e,t,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),u=n("5559")("IE_PROTO"),a=function(){},c="prototype",f=function(){var e,t=n("1ec9")("iframe"),r=i.length,o="<",u=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+u+"document.F=Object"+o+"/script"+u),e.close(),f=e.F;while(r--)delete f[c][i[r]];return f()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[c]=r(e),n=new a,a[c]=null,n[u]=e):n=f(),void 0===t?n:o(n,t)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b447:function(e,t,n){var r=n("3a38"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},bf0b:function(e,t,n){var r=n("355d"),o=n("aebd"),i=n("36c3"),u=n("1bc3"),a=n("07e3"),c=n("794b"),f=Object.getOwnPropertyDescriptor;t.f=n("8e60")?f:function(e,t){if(e=i(e),t=u(t,!0),c)try{return f(e,t)}catch(n){}if(a(e,t))return o(!r.f.call(e,t),e[t])}},bf90:function(e,t,n){var r=n("36c3"),o=n("bf0b").f;n("ce7e")("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},c3a1:function(e,t,n){var r=n("e6f3"),o=n("1691");e.exports=Object.keys||function(e){return r(e,o)}},ccb9:function(e,t,n){t.f=n("5168")},ccd8:function(e,t,n){e.exports=n("fde4")},ce7e:function(e,t,n){var r=n("63b6"),o=n("584a"),i=n("294c");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],u={};u[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},d9f6:function(e,t,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),u=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),u=n("5559")("IE_PROTO");e.exports=function(e,t){var n,a=o(e),c=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);while(t.length>c)r(a,n=t[c++])&&(~i(f,n)||f.push(n));return f}},ebfd:function(e,t,n){var r=n("62a0")("meta"),o=n("f772"),i=n("07e3"),u=n("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},f=!n("294c")(function(){return c(Object.preventExtensions({}))}),l=function(e){u(e,r,{value:{i:"O"+ ++a,w:{}}})},s=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},p=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},d=function(e){return f&&v.NEED&&c(e)&&!i(e,r)&&l(e),e},v=e.exports={KEY:r,NEED:!1,fastKey:s,getWeak:p,onFreeze:d}},ed33:function(e,t,n){n("014b"),e.exports=n("584a").Object.getOwnPropertySymbols},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=n("ccd8"),i=n.n(o),u=n("4521"),a=n.n(u),c=n("5f2d"),f=n.n(c),l=n("11a6"),s=n.n(l);function p(e,t,n){return t in e?s()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=f()(n);"function"===typeof a.a&&(r=r.concat(a()(n).filter(function(e){return i()(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}const v=[],h="";function m({previousConformedValue:e=h,previousPlaceholder:t=h,currentCaretPosition:n=0,conformedValue:r,rawValue:o,placeholderChar:i,placeholder:u,indexesOfPipedChars:a=v,caretTrapIndexes:c=v}){if(0===n||!o.length)return 0;const f=o.length,l=e.length,s=u.length,p=r.length,d=f-l,m=d>0,b=0===l,y=d>1&&!m&&!b;if(y)return n;const g=m&&(e===r||r===u);let x,w,O=0;if(g)O=n-d;else{const e=r.toLowerCase(),c=o.toLowerCase(),f=c.substr(0,n).split(h),l=f.filter(t=>-1!==e.indexOf(t));w=l[l.length-1];const s=t.substr(0,l.length).split(h).filter(e=>e!==i).length,d=u.substr(0,l.length).split(h).filter(e=>e!==i).length,v=d!==s,b=void 0!==t[l.length-1]&&void 0!==u[l.length-2]&&t[l.length-1]!==i&&t[l.length-1]!==u[l.length-1]&&t[l.length-1]===u[l.length-2];!m&&(v||b)&&s>0&&u.indexOf(w)>-1&&void 0!==o[n]&&(x=!0,w=o[n]);const y=a.map(t=>e[t]),g=y.filter(e=>e===w).length,S=l.filter(e=>e===w).length,E=u.substr(0,u.indexOf(i)).split(h).filter((e,t)=>e===w&&o[t]!==e).length,C=E+S+g+(x?1:0);let P=0;for(let t=0;t<p;t++){const n=e[t];if(O=t+1,n===w&&P++,P>=C)break}}if(m){let e=O;for(let t=O;t<=s;t++)if(u[t]===i&&(e=t),u[t]===i||-1!==c.indexOf(t)||t===s)return e}else if(x){for(let v=O-1;v>=0;v--)if(r[v]===w||-1!==c.indexOf(v)||0===v)return v}else for(let v=O;v>=0;v--)if(u[v-1]===i||-1!==c.indexOf(v)||0===v)return v}const b="_",y="function",g=[];function x(e=g,t=b){if(!w(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\n"+`The placeholder character that was received is: ${JSON.stringify(t)}\n\n`+`The mask that was received is: ${JSON.stringify(e)}`);return e.map(e=>{return e instanceof RegExp?t:e}).join("")}function w(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function O(e){return"string"===typeof e||e instanceof String}function S(e){return"number"===typeof e&&void 0===e.length&&!isNaN(e)}const E="[]";function C(e){const t=[];let n;while(n=e.indexOf(E),-1!==n)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}const P=[],j="";function _(e=j,t=P,n={}){if(!w(t)){if(typeof t!==y)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=C(t).maskWithoutCaretTraps}const{guide:r=!0,previousConformedValue:o=j,placeholderChar:i=b,placeholder:u=x(t,i),currentCaretPosition:a,keepCharPositions:c}=n,f=!1===r&&void 0!==o,l=e.length,s=o.length,p=u.length,d=t.length,v=l-s,h=v>0,m=a+(h?-v:0),g=m+Math.abs(v);if(!0===c&&!h){let t=j;for(let e=m;e<g;e++)u[e]===i&&(t+=i);e=e.slice(0,m)+t+e.slice(m,l)}const O=e.split(j).map((e,t)=>({char:e,isNew:t>=m&&t<g}));for(let b=l-1;b>=0;b--){const{char:e}=O[b];if(e!==i){const t=b>=m&&s===d;e===u[t?b-v:b]&&O.splice(b,1)}}let S=j,E=!1;e:for(let b=0;b<p;b++){const e=u[b];if(e===i){if(O.length>0)while(O.length>0){const{char:e,isNew:n}=O.shift();if(e===i&&!0!==f){S+=i;continue e}if(t[b].test(e)){if(!0===c&&!1!==n&&o!==j&&!1!==r&&h){const t=O.length;let n=null;for(let e=0;e<t;e++){const t=O[e];if(t.char!==i&&!1===t.isNew)break;if(t.char===i){n=e;break}}null!==n?(S+=e,O.splice(n,1)):b--}else S+=e;continue e}E=!0}!1===f&&(S+=u.substr(b,p));break}S+=e}if(f&&!1===h){let e=null;for(let t=0;t<S.length;t++)u[t]===i&&(e=t);S=null!==e?S.substr(0,e+1):j}return{conformedValue:S,meta:{someCharsRejected:E}}}const T="",k="none",N="object",F="undefined"!==typeof navigator&&/Android/i.test(navigator.userAgent),$="undefined"!==typeof requestAnimationFrame?requestAnimationFrame:setTimeout;function V(e){const t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update(n,{inputElement:r,mask:o,guide:i,pipe:u,placeholderChar:a=b,keepCharPositions:c=!1,showMask:f=!1}=e){if("undefined"===typeof n&&(n=r.value),n===t.previousConformedValue)return;let l,s;if(typeof o===N&&void 0!==o.pipe&&void 0!==o.mask&&(u=o.pipe,o=o.mask),o instanceof Array&&(l=x(o,a)),!1===o)return;const p=M(n),{selectionEnd:d}=r,{previousConformedValue:v,previousPlaceholder:h}=t;let g;if(typeof o===y){if(s=o(p,{currentCaretPosition:d,previousConformedValue:v,placeholderChar:a}),!1===s)return;const{maskWithoutCaretTraps:e,indexes:t}=C(s);s=e,g=t,l=x(s,a)}else s=o;const w={previousConformedValue:v,guide:i,placeholderChar:a,pipe:u,placeholder:l,currentCaretPosition:d,keepCharPositions:c},{conformedValue:S}=_(p,s,w),E=typeof u===y;let P={};E&&(P=u(S,{rawValue:p,...w}),!1===P?P={value:v,rejected:!0}:O(P)&&(P={value:P}));const j=E?P.value:S,k=m({previousConformedValue:v,previousPlaceholder:h,conformedValue:j,placeholder:l,rawValue:p,currentCaretPosition:d,placeholderChar:a,indexesOfPipedChars:P.indexesOfPipedChars,caretTrapIndexes:g}),F=j===l&&0===k,$=f?l:T,V=F?$:j;t.previousConformedValue=V,t.previousPlaceholder=l,r.value!==V&&(r.value=V,I(r,k))}}}function I(e,t){document.activeElement===e&&(F?$(()=>e.setSelectionRange(t,t,k),0):e.setSelectionRange(t,t,k))}function M(e){if(O(e))return e;if(S(e))return String(e);if(void 0===e||null===e)return T;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value "+`received was:\n\n ${JSON.stringify(e)}`)}var A=n("8bbf"),D=n.n(A),R={locale:void 0,currency:"EUR",distractionFree:!0,min:null,max:null,validateOnInput:!1},L=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},W=function(e){return e.replace(/\D+/g,"")},U=function(e,t){return t&&e.startsWith(t)?e.substr(t.length):e},J=function(e,t){return t&&e.endsWith(t)?e.slice(0,-1*t.length):e},q=function(e,t){if("number"===typeof e)return e;if(e&&"string"===typeof e&&e.trim().length){var n=e.startsWith("-"),r=e.split(t),o=W(r[0]);if(n&&(o="-".concat(o)),2===r.length&&(o+=".".concat(W(r[1]))),o)return o=Number(o),Number.isNaN(o)?null:o}return null},B=/\d/,z="[]",G=function(e){return e.split("").map(function(e){return B.test(e)?B:e})},K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.prefix,n=e.suffix,r=e.thousandsSeparatorSymbol,o=e.allowDecimal,i=e.allowNegative,u=e.decimalSymbol,a=e.decimalLimit,c=t?t.length:0,f=n?n.length:0;return function(){var e,l,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",p=s.indexOf(u),d=-1!==p,v=s.startsWith("-")&&i;if(s=U(s,"-"),s=U(s,t),s=J(s,n),d&&o){var h=s.split(u);e=h[0],l=G(W(h[1]))}else e=s;e=W(e),e=e.replace(/^0+(0$|[^0])/,"$1"),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,r);var m=G(e);return d&&o&&(m.push(z,u,z),l&&("number"===typeof a&&(l=l.slice(0,a)),m=m.concat(l))),c>0&&(m=t.split("").concat(m)),v&&(m=[/-/].concat(m)),f>0&&(m=m.concat(n.split(""))),m}},X=function(e,t){var n=new Intl.NumberFormat(e,{style:"currency",currency:t}),r=n.format(1234),o=(r.match(/0/g)||[]).length,i=o>0?r.substr(r.indexOf("4")+1,1):null,u=null!==i,a=r.substring(0,r.indexOf("1")),c=r.substring(r.lastIndexOf(o>0?"0":"4")+1),f=r.substr(r.indexOf("1")+1,1);return{prefix:a,suffix:c,thousandsSeparatorSymbol:f,decimalSymbol:i,decimalLimit:o,allowDecimal:u}},Y={bind:function(e,t){var n=H(e,t.value);D.a.nextTick(function(){Z(n,L(n.value)?Number(n.value):null)}),n.addEventListener("input",function(){ee(n)},{capture:!0}),n.addEventListener("format",function(e){var t=e.detail;n.$ci.focus||(ee(n,t.value),n.dispatchEvent(new Event("format-complete")))}),n.addEventListener("focus",function(){var e=n.$ci,t=e.options,r=e.currencyFormatConfig;n.$ci.focus=!0,t.distractionFree&&setTimeout(function(){var e=te(n);ee(n,q(n.value,r.decimalSymbol)),n.setSelectionRange(e,e)},0)}),n.addEventListener("blur",function(){n.$ci.focus=!1,Z(n)})},componentUpdated:function(e,t){if(t.value&&Q(t.oldValue,t.value)){var n=H(e,t.value);Z(n,n.$ci.numberValue)}}},Q=function(e,t){return Object.keys(R).some(function(n){return e[n]!==t[n]})},H=function(e,t){var n=e.matches("input")?e:e.querySelector("input");if(!n)throw new Error("The directive must be applied on an element consists of an input element");var r=d({},D.a.prototype.$CI_DEFAULT_OPTIONS||R,t);if(null!=r.min&&null!=r.max&&r.min>r.max)throw new Error("Invalid number range");return n.$ci=d({},n.$ci||{},{options:r,currencyFormatConfig:X(r.locale,r.currency),textMaskInputElement:V({inputElement:n,mask:[]})}),n},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q(e.value,e.$ci.currencyFormatConfig.decimalSymbol);null==t||e.$ci.currencyFormatConfig.allowDecimal||(t=Math.round(t)),ee(e,t),e.dispatchEvent(new Event("input"))},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.$ci,r=n.options,o=n.currencyFormatConfig,i=n.textMaskInputElement,u=n.focus,a=u&&r.distractionFree;"number"===typeof t&&(null!=r.min&&t<r.min&&(t=r.min),null!=r.max&&t>r.max&&(t=r.max),t=new Intl.NumberFormat(r.locale,{minimumFractionDigits:a?0:o.decimalLimit}).format(t),r.distractionFree&&(t+=" ")),i.update(t,{inputElement:e,pipe:function(e,t){var n=t.previousConformedValue;if(r.validateOnInput){if(null!=r.min&&q(e,o.decimalSymbol)<r.min)return n;if(null!=r.max&&q(e,o.decimalSymbol)>r.max)return n}return e},mask:K(d({},o,{prefix:a?"":o.prefix,suffix:a?"":o.suffix,thousandsSeparatorSymbol:a?"":o.thousandsSeparatorSymbol,allowNegative:null===r.min&&null===r.max||r.min<0||r.max<0}))}),e.$ci.numberValue=q(e.value,o.decimalSymbol)},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.$ci.currencyFormatConfig,n=t.prefix,r=t.thousandsSeparatorSymbol;return Math.max(0,e.selectionStart-n.length-(e.value.substring(0,e.selectionStart).match(new RegExp("."===r?"\\.":r,"g"))||[]).length)},ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",e._g({directives:[{name:"currency",rawName:"v-currency",value:e.options,expression:"options"}],domProps:{value:e.formattedValue}},e.listeners()))},re=[],oe={name:"CurrencyInput",directives:{currency:Y},props:{value:{type:Number,default:null},locale:{type:String,default:void 0},currency:{type:String,default:void 0},distractionFree:{type:Boolean,default:void 0},min:{type:Number,default:void 0},max:{type:Number,default:void 0},validateOnInput:{type:Boolean,default:void 0}},data:function(){return{formattedValue:this.value}},computed:{options:function(){var e=this,t=d({},this.$CI_DEFAULT_OPTIONS||R);return Object.keys(t).forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},decimalSymbol:function(){return X(this.options.locale,this.options.currency).decimalSymbol}},watch:{value:function(e){this.$el.dispatchEvent(new CustomEvent("format",{detail:{value:e}}))}},methods:{listeners:function(){var e=this;return d({},this.$listeners,{input:function(){return e.emitValue()},"format-complete":function(){return e.emitValue()}})},emitValue:function(){this.$emit("input",q(this.$el.value,this.decimalSymbol)),this.formattedValue=this.$el.value}}},ie=oe;function ue(e,t,n,r,o,i,u,a){var c,f="function"===typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(u)},f._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(f.functional){f._injectStyles=c;var l=f.render;f.render=function(e,t){return c.call(t),l(e,t)}}else{var s=f.beforeCreate;f.beforeCreate=s?[].concat(s,c):[c]}return{exports:e,options:f}}var ae=ue(ie,ne,re,!1,null,null,null),ce=ae.exports,fe={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.componentName,r=void 0===n?ce.name:n,o=t.directiveName,i=void 0===o?"currency":o,u=t.globalOptions,a=void 0===u?{}:u,c=d({},R,a);e.prototype.$CI_DEFAULT_OPTIONS=c,e.component(r,ce),e.directive(i,Y),e.prototype.$parseCurrency=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.locale,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.currency;return q(e,X(t,n).decimalSymbol)}}},le=fe;"undefined"!==typeof window&&window.Vue&&window.Vue.use(fe),n.d(t,"CurrencyInput",function(){return ce}),n.d(t,"CurrencyDirective",function(){return Y});t["default"]=le},fde4:function(e,t,n){n("bf90");var r=n("584a").Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}}})});
{
"name": "vue-currency-input",
"description": "Easy input of currency formatted numbers for Vue.js.",
"version": "1.4.0",
"version": "1.4.1",
"license": "MIT",

@@ -6,0 +6,0 @@ "unpkg": "dist/vue-currency-input.umd.min.js",

@@ -15,7 +15,13 @@ import createTextMaskInputElement from 'text-mask-core/src/createTextMaskInputElement'

inputElement.addEventListener('input', ({ detail }) => {
format(inputElement, detail ? detail.value : inputElement.value)
el.dispatchEvent(new Event('value-change'))
inputElement.addEventListener('input', () => {
format(inputElement)
}, { capture: true })
inputElement.addEventListener('format', ({ detail }) => {
if (!inputElement.$ci.focus) {
format(inputElement, detail.value)
inputElement.dispatchEvent(new Event('format-complete'))
}
})
inputElement.addEventListener('focus', () => {

@@ -22,0 +28,0 @@ const { options, currencyFormatConfig } = inputElement.$ci

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc