File "index.js"

Full Path: /home/vantageo/public_html/cache/.wp-cli/wp-content/plugins/woocommerce/packages/woocommerce-admin/dist/number/index.js
File size: 4.14 KB
MIME-type: text/plain
Charset: utf-8

this.wc=this.wc||{},this.wc.number=function(t){var r={};function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)e.d(n,o,function(r){return t[r]}.bind(null,o));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=583)}({146:function(t,r){t.exports=function(t){if(Array.isArray(t))return t}},147:function(t,r){t.exports=function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(e.push(u.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return e}}},148:function(t,r){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},30:function(t,r,e){var n=e(146),o=e(147),i=e(98),u=e(148);t.exports=function(t,r){return n(t)||o(t,r)||i(t,r)||u()}},4:function(t,r){t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}},583:function(t,r,e){"use strict";e.r(r),e.d(r,"numberFormat",(function(){return l})),e.d(r,"formatValue",(function(){return s})),e.d(r,"calculateDelta",(function(){return p}));var n=e(4),o=e.n(n),i=e(30),u=e.n(i);function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function c(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var f=e(584);function l(t,r){var e=t.precision,n=void 0===e?null:e,o=t.decimalSeparator,i=void 0===o?".":o,a=t.thousandSeparator,c=void 0===a?",":a;if("number"!=typeof r&&(r=parseFloat(r)),isNaN(r))return"";var l=parseInt(n,10);if(isNaN(l)){var s=r.toString().split("."),p=u()(s,2)[1];l=p?p.length:0}return f(r,l,i,c)}function s(t,r,e){if(!Number.isFinite(e))return null;switch(r){case"average":return Math.round(e);case"number":return l(c(c({},t),{},{precision:null}),e)}}function p(t,r){return Number.isFinite(t)&&Number.isFinite(r)?0===r?0:Math.round((t-r)/r*100):null}},584:function(t,r,e){"use strict";t.exports=function(t,r,e,n){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,i=isFinite(+r)?Math.abs(r):0,u=void 0===n?",":n,a=void 0===e?".":e,c="";return(c=(i?function(t,r){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+r)+"e-"+r);var e=(""+t).split("e"),n="";return+e[1]+r>0&&(n="+"),(+(Math.round(+e[0]+"e"+n+(+e[1]+r))+"e-"+r)).toFixed(r)}(o,i).toString():""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,u)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}},87:function(t,r){t.exports=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}},98:function(t,r,e){var n=e(87);t.exports=function(t,r){if(t){if("string"==typeof t)return n(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}}});