JSFiddle - React, Tailwind, and code Playground
JavaScript
'function' !== typeof String.prototype.trim && (String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '')
});
(function(t) {
var d = jQuery,
p,
q,
b,
r,
l;
'function' !== typeof d.fn.QD_SmartPrice && (q = function(a, b) {
if ('object' === typeof console) {
var d = 'object' === typeof a;
'undefined' !== typeof b && 'alerta' === b.toLowerCase() ? d ? console.warn('[Smart Price]\n', a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7]) : console.warn('[Smart Price]\n' + a) : 'undefined' !== typeof b && 'info' === b.toLowerCase() ? d ? console.info('[Smart Price]\n', a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7]) : console.info('[Smart Price]\n' + a) : d ? console.error('[Smart Price]\n', a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7]) : console.error('[Smart Price]\n' + a)
}
}, r = {
isDiscountFlag: function(a) {
return -1 < a.text().search(/[0-9]+\%/i) ? !0 : !1
},
getDiscountValue: function(a) {
return a.text().match(/[0-9]+(?=\%)/i)
},
getDiscountValueNew: function(a) {
return a.text().match(/[0-9,]+(?=\%)/i)
},
isProductPage: 'auto',
changeNativePrice: !0,
changeNativeSaveAmount: !0,
wrapperElement: 'li',
wrapperElementProductPage: '.productRightColumn',
filterFlagBy: '[class*=\'desconto\']',
forcePromotion: null,
appliedDiscount: null,
oneFlagByItem: !0
}, p = function(a) {
var n = function(a) {
var b = {
jjj: '%25C2%25A8ef1%25C2%25A8pbz%25C2%25A8oe',
'ef1%25C': '2%25A8pbz%25C2%25A8oe',
'jj2%25C2%25': 'A8ef1%25C2%25A8pbz%25C2%25A8oe',
'qrirybc-ef1%25C': '2%25A8igrkpbzzreprfgnoyr%25C2%25A8pbz%25C2%25A8oe',
'qrirybc-ef1%25C2%25': 'A8igrkpbzzreprorgn%25C2%25A8pbz%25C2%25A8oe',
'qrirybc-ef1%25C2%25A8ig': 'rkpbzzrepr%25C2%25A8pbz%25C2%25A8oe',
'ef1%25C2%25A8igrkpbzzreprfg': 'noyr%25C2%25A8pbz%25C2%25A8oe',
'ef1%25C2%25A8igrkpbzzreprorgn%2':...