PageSourceSearch

https://replika-online.pl/wp-content/plugins/wt-smart-coupon-pro/b…/frontend.js?ver=17e30c676470df448e24

js replika-online.pl collected 2026-10-02 12:21:27 UTC 3,846 bytes, 96 lines download raw bytes

vendor: 112 bytes, lines 1-5
1/******/ (() => { // webpackBootstrap
2/******/ 	"use strict";
3/******/ 	var __webpack_modules__ = ({
4
5/***/ "./s
5rc/store-credit/block.json":
6/*!*************************************!*\
7  !*** ./src/store-credit/block.json ***!
8  \*************************************/
9/***/ ((module) => {
10
11module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wt-sc-blocks/store-credit","version":"1.0.0","title":"Store credit","category":"woocommerce","keywords":["Store credit","WooCommerce"],"icon":"","description":"Store credit related operations.","parent":["woocommerce/cart-items-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"textdomain":"wt-smart-coupons-for-woocommerce"}');
12
13/***/ })
13
14
15/******/ 	});
16/************************************************************************/
17/******/ 	// The module cache
18/******/ 	var __webpack_module_cache__ = {};
19/******/ 	
20/******/ 	// The require function
21/******/ 	function __webpack_require__(moduleId) {
22/******/ 		// Check if module is in cache
23/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
24/******/ 		if (cachedModule !== undefined) {
25/******/ 			return cachedModule.exports;
26/******/ 		}
27/******/ 		// Create a new module (and put it into the cache)
28/******/ 		var module = __webpack_module_cache__[moduleId] = {
29/******/ 			// no module.id needed
30/******/ 			// no module.loaded needed
31/******/ 			exports: {}
32/******/ 		};
33/******/ 	
34/******/ 		// Execute the module function
35/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
36/******/ 	
37/******/ 		// Return the exports of the module
38/******/ 		return module.exports;
39/******/ 	}
40/******/ 	
41/************************************************************************/
42/******/ 	/* webpack/runtime/make namespace object */
43/******/ 	(() => {
44/******/ 		// define __esModule on exports
45/******/ 		__webpack_require__.r = (exports) => {
46/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48/******/ 			}
49/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
50/******/ 		};
51/******/ 	})();
52/******/ 	
53/************************************************************************/
54var __webpack_exports__ = {};
55// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
56(() => {
57/*!**************************************!*\
58  !*** ./src/store-credit/frontend.js ***!
59  \**************************************/
60__webpack_require__.r(__webpack_exports__);
61/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./block.json */ "./src/store-credit/block.json");
62
63
64// Global import
65const {
66  registerCheckoutFilters
67} = window.wc.blocksCheckout;
68const updateCartItemImage = (defaultValue, extensions, args) => {
69  const cartitem_giftcard_image = args?.cart?.extensions?.wt_sc_blocks?.cartitem_giftcard_image;
70  const cart_item_key = args?.cartItem?.key;
71  if (cart_item_key && cartitem_giftcard_image && cartitem_giftcard_image[cart_item_key]) {
72    if (args.cartItem.images.length) {
73      args.cartItem.images[0].src = cartitem_giftcard_image[cart_item_key];
74      args.cartItem.images[0].thumbnail = cartitem_giftcard_image[cart_item_key];
75    } else {
76      args.cartItem.images = [{
77        'id': 0,
78        'src': cartitem_giftcard_image[cart_item_key],
79        'thumbnail': cartitem_giftcard_image[cart_item_key],
80        'srcset': '',
81        'sizes': '',
82        'name': '',
83        'alt': ''
84      }];
85    }
86  }
87  return defaultValue;
88};
89registerCheckoutFilters('wt-sc-blocks-update-cart-item-image', {
90  itemName: updateCartItemImage
91});
92})();
93
94/******/ })()
95;
96//# sourceMappingURL=frontend.js.map

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.