PageSourceSearch

https://phila2000.com/modules/iqitwishlist/views/js/front.js

js phila2000.com collected 2026-10-05 11:41:13 UTC 6,141 bytes, 182 lines download raw bytes

1/******/ (function(modules) { // webpackBootstrap�
2/******/ 	// The module cache�
3/******/ 	var installedModules = {};�
4/******/�
5/******/ 	// The require function�
6/******/ 	function __webpack_require__(moduleId) {�
7/******/�
8/******/ 		// Check if module is in cache�
9/******/ 		if(installedModules[moduleId])�
10/******/ 			return installedModules[moduleId].exports;�
11/******/�
12/******/ 		// Create a new module (and put it into the cache)�
13/******/ 		var module = installedModules[moduleId] = {�
14/******/ 			exports: {},�
15/******/ 			id: moduleId,�
16/******/ 			loaded: false�
17/******/ 		};�
18/******/�
19/******/ 		// Execute the module function�
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);�
21/******/�
22/******/ 		// Flag the module as loaded�
23/******/ 		module.loaded = true;�
24/******/�
25/******/ 		// Return the exports of the module�
26/******/ 		return module.exports;�
27/******/ 	}�
28/******/�
29/******/�
30/******/ 	// expose the modules object (__webpack_modules__)�
31/******/ 	__webpack_require__.m = modules;�
32/******/�
33/******/ 	// expose the module cache�
34/******/ 	__webpack_require__.c = installedModules;�
35/******/�
36/******/ 	// __webpack_public_path__�
37/******/ 	__webpack_require__.p = "";�
38/******/�
39/******/ 	// Load entry module and return exports�
40/******/ 	return __webpack_require__(0);�
41/******/ })�
42/************************************************************************/�
43/******/ ([�
44/* 0 */�
45/***/ (function(module, exports, __webpack_require__) {�
46�
47	'use strict';�
48	�
49	__webpack_require__(1);�
50	�
51	__webpack_require__(2);�
52�
53/***/ }),�
54/* 1 */�
55/***/ (function(module, exports) {�
56�
57	'use strict';�
58	�
59	$(document).ready(function () {�
60	�
61	    $('#iqitwishlist-nb').text(iqitwishlist.nbProducts);�
62	�
63	    $('body').on('click', '.js-iqitwishlist-add', function (event) {�
64	        var self = this;�
65	        prestashop.emit('clickIqitWishlistAdd', {�
66	            dataset: self.dataset,�
67	            self: self�
68	        });�
69	        event.preventDefault();�
70	    });�
71	�
72	    $('body').on('click', '.js-iqitwishlist-remove', function (event) {�
73	�
74	        var self = this;�
75	        prestashop.emit('clickIqitWishlistRemove', {�
76	            dataset: self.dataset�
77	        });�
78	        event.preventDefault();�
79	    });�
80	�
81	    prestashop.on('clickIqitWishlistAdd', function (elm) {�
82	�
83	        var data = {�
84	            'process': 'add',�
85	            'ajax': 1,�
86	            'idProduct': elm.dataset.idProduct,�
87	            'idProductAttribute': elm.dataset.idProductAttribute�
88	        };�
89	�
90	        $.post(elm.dataset.url, data, null, 'json').then(function (resp) {�
91	�
92	            if (!resp.success && resp.data.type == 'notLogged') {�
93	                var quickModal = $('.modal.quickview').first();�
94	�
95	                if (quickModal.length) {�
96	                    $(quickModal).modal('hide');�
97	                    $(quickModal).on('hidden.bs.modal', function (e) {�
98	                        $('#iqitwishlist-modal').modal('show');�
99	                    });�
100	                } else {�
101	                    $('#iqitwishlist-modal').modal('show');�
102	                }�
103	�
104	                return;�
105	            }�
106	            $(elm.self).addClass('iqitwishlist-added');�
107	            if (resp.success) {�
108	                (function () {�
109	                    iqitwishlist.nbProducts++;�
110	                    $('#iqitwishlist-nb').text(iqitwishlist.nbProducts);�
111	�
112	                    var $notification = $('#iqitwishlist-notification');�
113	                    $notification.addClass('ns-show');�
114	�
115	                    setTimeout(function () {�
116	                        $notification.removeClass('ns-show');�
117	                    }, 3500);�
118	                })();�
119	            }�
120	        }).fail(function (resp) {�
121	            prestashop.emit('handleError', { eventType: 'clickIqitWishlistAdd', resp: resp });�
122	        });�
123	    });�
124	�
125	    prestashop.on('clickIqitWishlistRemove', function (elm) {�
126	�
127	        var data = {�
128	            'process': 'remove',�
129	            'ajax': 1,�
130	            'idProduct': elm.dataset.idProduct�
131	        };�
132	�
133	        $.post(elm.dataset.url, data, null, 'json').then(function (resp) {�
134	            console.log('#iqitwishlist-product-' + elm.dataset.idProduct);�
135	            $('#iqitwishlist-product-' + elm.dataset.idProduct).remove();�
136	            iqitwishlist.nbProducts--;�
137	            $('#iqitwishlist-nb').text(iqitwishlist.nbProducts);�
138	�
139	            if (iqitwishlist.nbProducts == 0) {�
140	                $('#iqitwishlist-warning').removeClass('hidden-xs-up');�
141	                $('#iqitwishlist-crosseling, #iqitwishlist-share').addClass('hidden-xs-up');�
142	            }�
143	        }).fail(function (resp) {�
144	            prestashop.emit('handleError', { eventType: 'clickIqitWishlistRemove', resp: resp });�
145	        });�
146	    });�
147	�
148	    prestashop.on('updatedProduct', function (elm) {�
149	        $('#iqit-wishlist-product-btn').data('id-product-attribute', elm.id_product_attribute);�
150	        $('#iqit-wishlist-product-btn').attr('data-id-product-attribute', elm.id_product_attribute);�
151	    });�
152	�
153	    $('#iqitwishlist-clipboard-btn').on('click', function () {�
154	�
155	        var $btn = $(this);�
156	�
157	        var copyInput = $btn.closest('.input-group').children('input.js-to-cl
157ipboard');�
158	        copyInput.select();�
159	�
160	        try {�
161	            var successful = document.execCommand('copy');�
162	            if (successful) {�
163	                $btn.text($btn.data('textCopied'));�
164	                setTimeout(function () {�
165	                    $btn.text($btn.data('textCopy'));�
166	                }, 1500);�
167	            }�
168	        } catch (err) {�
169	            console.log('Oops, unable to copy');�
170	        }�
171	    });�
172	});�
173�
174/***/ }),�
175/* 2 */�
176/***/ (function(module, exports) {�
177�
178	// removed by extract-text-webpack-plugin�
179�
180/***/ })�
181/******/ ]);�
182//# sourceMappingURL=front.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.