1 2 window.wc.priceFormat = (function (e) { 3 var r = {}; 4 function t(n) { 5 if (r[n]) return r[n].exports; 6 var o = (r[n] = { i: n, l: !1, exports: {} }); 7 return e[n].call(o.exports, o, o.exports, t), (o.l = !0), o.exports; 8 } 9 return ( 10 (t.m = e), 11 (t.c = r), 12 (t.d = function (e, r, n) { 13 t.o(e, r) || Object.defineProperty(e, r, { enumerable: !0, get: n }); 14 }), 15 (t.r = function (e) { 16 "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); 17 }), 18 (t.t = function (e, r) { 19 if ((1 & r && (e = t(e)), 8 & r)) return e; 20 if (4 & r && "object" == typeof e && e && e.__esModule) return e; 21 var n = Object.create(null); 22 if ((t.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: e }), 2 & r && "string" != typeof e)) 23 for (var o in e) 24 t.d( 25 n, 26 o, 27 function (r) { 28 return e[r]; 29 }.bind(null, o) 30 ); 31 return n; 32 }), 33 (t.n = function (e) { 34 var r = 35 e && e.__esModule 36 ? function () { 37 return e.default; 38 } 39 : function () { 40 return e; 41 }; 42 return t.d(r, "a", r), r; 43 }), 44 (t.o = function (e, r) { 45 return Object.prototype.hasOwnProperty.call(e, r); 46 }), 47 (t.p = ""), 48 t((t.s = 142)) 49 ); 50 })({ 51 142: function (e, r, t) { 52 "use strict"; 53 t.r(r), 54 t.d(r, "getCurrencyFromPriceResponse", function () { 55 return u; 56 }), 57 t.d(r, "getCurrency", function () { 58 return a; 59 }), 60 t.d(r, "formatPrice", function () { 61 return f; 62 }); 63 var n = t(5); 64 const o = { 65 code: n.CURRENCY.code, 66 symbol: n.CURRENCY.symbol, 67 thousandSeparator: n.CURRENCY.thousandSeparator, 68 decimalSeparator: n.CURRENCY.decimalSeparator, 69 minorUnit: n.CURRENCY.precision, 70 prefix: ((i = n.CURRENCY.symbol), (c = n.CURRENCY.symbolPosition), { left: i, left_space: " " + i, right: "", right_space: "" }[c] || ""), 71 suffix: ((e, r) => ({ left: "", left_space: "", right: e, right_space: " " + e }[r] || ""))(n.CURRENCY.symbol, n.CURRENCY.symbolPosition), 72 }; 73 var i, c; 74 const u = (e) => { 75 if (null == e || !e.currency_code) return o; 76 const { currency_code: r, currency_symbol: t, currency_thousand_separator: n, currency_decimal_separator: i, currency_minor_unit: c, currency_prefix: u, currency_suffix: a } = e; 77 return { 78 code: r || "USD", 79 symbol: t || "$", 80 thousandSeparator: "string" == typeof n ? n : ",", 81 decimalSeparator: "string" == typeof i ? i : ".", 82 minorUnit: Number.isFinite(c) ? c : 2, 83 prefix: "string" == typeof u ? u : "$", 84 suffix: "string" == typeof a ? a : "", 85 }; 86 }, 87 a = function () { 88 let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}; 89 return { ...o, ...e }; 90 }, 91 f = (e, r) => { 92 if ("" === e || void 0 === e) return ""; 93 if (typeof woocs_current_currency != 'undefined') { 94 e = e * woocs_current_currency['rate']; 95 //e = parseInt(e, 10); 96 e = Math.round(e); 97 98 } 99 const t = "number" == typeof e ? e : parseInt(e, 10); 100 if (!Number.isFinite(t)) return ""; 101 102 const n = a(r), 103 { minorUnit: o, prefix: i, suffix: c, decimalSeparator: u, thousandSeparator: f } = n, 104 s = t / 10 ** o, 105
106 { beforeDecimal: l, afterDecimal: p } = ((e) => { 107 const r = e.split("."); 108 return { beforeDecimal: r[0], afterDecimal: r[1] || "" }; 109 })(s.toString()), 110 d = `${i}${((e, r) => e.replace(/\B(?=(\d{3})+(?!\d))/g, r))(l, f)}${((e, r, t) => (e ? `${r}${e.padEnd(t, "0")}` : t > 0 ? `${r}${"0".repeat(t)}` : ""))(p, u, o)}${c}`, 111 m = document.createElement("textarea"); 112 113 return (m.innerHTML = d), m.value; 114 }; 115 }, 116 5: function (e, r) { 117 e.exports = window.wc.wcSettings; 118 }, 119 }); 120 121 122
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.