PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
plugins
/
woocommerce-admin
/
dist
/
currency
this.wc=this.wc||{},this.wc.currency=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=803)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},23:function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},29:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"ADMIN_URL",function(){return p}),n.d(r,"COUNTRIES",function(){return y}),n.d(r,"CURRENCY",function(){return d}),n.d(r,"LOCALE",function(){return b}),n.d(r,"ORDER_STATUSES",function(){return S}),n.d(r,"SITE_TITLE",function(){return m}),n.d(r,"WC_ASSET_URL",function(){return g}),n.d(r,"DEFAULT_DATE_RANGE",function(){return O}),n.d(r,"getSetting",function(){return v}),n.d(r,"setSetting",function(){return w});var o=n(56),u=n(23),i=n.n(u),c=n(70);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach(function(e){i()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var s={adminUrl:"",countries:[],currency:{code:"USD",precision:2,symbol:"$",symbolPosition:"left",decimalSeparator:".",priceFormat:"%1$s%2$s",thousandSeparator:","},defaultDateRange:"period=month&compare=previous_year",locale:{siteLocale:"en_US",userLocale:"en_US",weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},orderStatuses:[],siteTitle:"",wcAssetUrl:""},l=a({},s,{},"object"===("undefined"==typeof wcSettings?"undefined":n.n(c)()(wcSettings))?wcSettings:{});l.currency=a({},s.currency,{},l.currency),l.locale=a({},s.locale,{},l.locale);var p=l.adminUrl,y=l.countries,d=l.currency,b=l.locale,S=l.orderStatuses,m=l.siteTitle,g=l.wcAssetUrl,O=l.defaultDateRange;function v(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t})(l.hasOwnProperty(t)?l[t]:e,e)}function w(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t};l[t]=n(e)}n.d(e,"a",function(){return T}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return j}),n.d(e,"e",function(){return U}),n.d(e,"f",function(){return R}),n.d(e,"g",function(){return A});var E=o&&void 0!==o.getSetting?o:r,T=E.ADMIN_URL,h=(E.COUNTRIES,E.CURRENCY),_=E.LOCALE,j=E.ORDER_STATUSES,U=(E.SITE_TITLE,E.WC_ASSET_URL),R=(E.DEFAULT_DATE_RANGE,E.getSetting),A=E.setSetting},40:function(t,e){!function(){t.exports=this.wc.number}()},56:function(t,e){!function(){t.exports=this.wc.wcSettings}()},70:function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=r=function(t){return n(t)}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(e)}t.exports=r},803:function(t,e,n){"use strict";n.r(e),n.d(e,"formatCurrency",function(){return c}),n.d(e,"getCurrencyFormatDecimal",function(){return f}),n.d(e,"getCurrencyFormatString",function(){return a}),n.d(e,"renderCurrency",function(){return s});var r=n(0),o=n(1),u=n(40),i=n(29);function c(t,e){e||(e=i.b.symbol);var n=i.b.precision,r=Object(u.numberFormat)(t,n),c=i.b.priceFormat;return""===r?r:Object(o.sprintf)(c,e,r)}function f(t){var e=i.b.precision,n=void 0===e?2:e;return"number"!=typeof t&&(t=parseFloat(t)),Number.isNaN(t)?0:Math.round(t*Math.pow(10,n))/Math.pow(10,n)}function a(t){var e=i.b.precision,n=void 0===e?2:e;return"number"!=typeof t&&(t=parseFloat(t)),Number.isNaN(t)?"":t.toFixed(n)}function s(t,e){return"number"!=typeof t&&(t=parseFloat(t)),t<0?Object(r.createElement)("span",{className:"is-negative"},c(t,e)):c(t,e)}}});
[+]
..
[-] index.js
[edit]