PageSourceSearch

https://jalt.org/wp-content/plugins/woocommerce-smart-coupons/asse…/store-credit-balance.min.js?ver=9.82.1

js jalt.org collected 2026-10-01 10:22:00 UTC 1,153 bytes, 1 lines download raw bytes

1!function(){"use strict";if(!window.WC_SC_Store_Credit_Balance)return;const e=WC_SC_Store_Credit_Balance.i18n.balance_label;let c={};function t(t){const o=c[t.code];if(!o)return t.label||t.code;const n=o?.plain?.remaining||"",r=o?.plain?.total||"";if(!n||!r)return t.label||t.code;const a=e.replace(/%1\$s/g,n).replace(/%2\$s/g,r);return(t.label||t.code)+" ( "+a+" )"}function o(){const e=function(){const e=window.wp?.data?.select("wc/store/cart");if(!e)return[];const c=e.getCartData();if(!c||!c.extensions)return[];const t=c.extensions;return t["wc-sc-block-store-credit-balance"]&&"object"==typeof t["wc-sc-block-store-credit-balance"]?t["wc-sc-block-store-credit-balance"]:[]}();c=Array.isArray(e)?e.reduce(((e,c)=>(c&&c.coupon_code&&(e[c.coupon_code]=c),e)),{}):{}}function n(){!function(){if(!window.wc||!window.wc.blocksCheckout)return;const{registerCheckoutFilters:e}=window.wc.blocksCheckout;e("wc-sc-block-store-credit-balance",{coupons:e=>Array.isArray(e)?(o(),e.map((e=>e?.code&&"smart_coupon"===e.discount_type&&c[e.code]?{...e,label:t(e)}:e))):e})}()}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()}();

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.