1/******/ (() => { // webpackBootstrap 2/******/ var __webpack_modules__ = ({ 3
4/***/ "./front/front.js": 5/*!************************!*\ 6 !*** ./front/front.js ***! 7 \************************/ 8/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 9 10"use strict"; 11__webpack_require__.r(__webpack_exports__); 12/* harmony import */ var _lib_bootstrap_rating_input_bootstrap_rating_input_min__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/bootstrap-rating-input/bootstrap-rating-input.min */ "./front/lib/bootstrap-rating-input/bootstrap-rating-input.min.js"); 13/* harmony import */ var _lib_bootstrap_rating_input_bootstrap_rating_input_min__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_lib_bootstrap_rating_input_bootstrap_rating_input_min__WEBPACK_IMPORTED_MODULE_0__); 14 15 16iqitreviews.script = function () { 17 var $productReviewForm = $('#iqitreviews-productreview-form'); 18 return { 19 'init': function init() { 20 if (iqitTheme.pp_tabs == 'tabh' || iqitTheme.pp_tabs == 'tabha') { 21 $('#iqitreviews-rating-product').on('click', function () { 22 var element = document.getElementById("product-infos-tabs"); 23 $('.nav-tabs a[data-iqitextra="iqit-reviews-tab"]').tab('show'); 24 25 if (typeof element != 'undefined' && element != null) { 26 element.scrollIntoView(); 27 } 28 }); 29 } else { 30 $('#iqitreviews-rating-product').on('click', function () { 31 document.getElementById("iqit-reviews-tab").scrollIntoView(); 32 }); 33 } 34 35 $productReviewForm.submit(function (e) { 36 e.preventDefault(); 37 var $productReviewFormAlert = $('#iqitreviews-productreview-form-alert'), 38 $productReviewFormSuccessAlert = $('#iqitreviews-productreview-form-success-alert'); 39 $.post($(this).attr('action'), $(this).serialize(), null, 'json').then(function (resp) { 40 if (!resp.success) { 41 var htmlResp = '<strong>' + resp.data.message + '</strong>'; 42 htmlResp = htmlResp + '<ul>'; 43 $.each(resp.data.errors, function (index, value) { 44 htmlResp = htmlResp + '<li>' + value + '</li>'; 45 }); 46 htmlResp = htmlResp + '</ul>'; 47 $productReviewFormAlert.html(htmlResp); 48 $productReviewFormAlert.removeClass('hidden-xs-up'); 49 } else { 50 var _htmlResp = '<strong>' + resp.data.message + '</strong>'; 51 52 $productReviewFormSuccessAlert.html(_htmlResp); 53 $productReviewFormSuccessAlert.removeClass('hidden-xs-up'); 54 $('#iqit-reviews-modal').modal('hide'); 55 } 56 }).fail(function (resp) { 57 $productReviewFormAlert.html(resp); 58 $productReviewFormAlert.removeClass('invisible'); 59 }); 60 e.preventDefault(); 61 }); 62 } 63 }; 64}(); 65 66$(document).ready(function () { 67 iqitreviews.script.init(); 68}); 69 70/***/ }), 71
72/***/ "./front/lib/bootstrap-rating-input/bootstrap-rating-input.min.js": 73/*!************************************************************************!*\ 74 !*** ./front/lib/bootstrap-rating-input/bootstrap-rating-input.min.js ***! 75 \************************************************************************/ 76/***/ (() => { 77 78function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } 79 80!function (a) { 81 "use strict"; 82 83 function b(a) { 84 return "[data-value" + (a ? "=" + a : "") + "]"; 85 } 86 87 function c(a, b, c) { 88 var d = c.activeIcon, 89 e = c.inactiveIcon; 90 a.removeClass(b ? e : d).addClass(b ? d : e); 91 } 92 93 function d(b, c) { 94 var d = a.extend({}, i, b.data(), c); 95 return d.inline = "" === d.inline || d.inline, d.readonly = "" === d.readonly || d.readonly, d.clearable === !1 ? d.clearableLabel = "" : d.clearableLabel = d.clearable, d.clearable = "" === d.clearable || d.clearable, d; 96 } 97 98 function e(b, c) { 99 if (c.inline) var d = a('<span class="rating-input"></span>');else var d = a('<div class="rating-input"></div>'); 100 d.addClass(b.attr("class")), d.removeClass("rating"); 101 102 for (var e = c.min; e <= c.max; e++) { 103 d.append('<i class="' + c.iconLib + '" data-value="' + e + '"></i>'); 104 } 105 106 return c.clearable && !c.readonly && d.append(" ").append('<a class="' + f + '"><i class="' + c.iconLib + " " + c.clearableIcon + '"/>' + c.clearableLabel + "</a>"), d; 107 } 108 109 var f = "rating-clear", 110 g = "." + f, 111 h = "hidden", 112 i = { 113 min: 1, 114 max: 5, 115 "empty-value": 0, 116 iconLib: "glyphicon", 117 activeIcon: "glyphicon-star", 118 inactiveIcon: "glyphicon-star-empty", 119 clearable: !1, 120 clearableIcon: "glyphicon-remove", 121 inline: !1, 122 readonly: !1 123 }, 124 j = function j(a, b) { 125 var c = this.$input = a; 126 this.options = d(c, b); 127 var f = this.$el = e(c, this.options); 128 c.addClass(h).before(f), c.attr("type", "hidden"), this.highlight(c.val()); 129 }; 130 131 j.VERSION = "0.4.0", j.DEFAULTS = i, j.prototype = { 132 clear: function clear() { 133 this.setValue(this.options["empty-value"]); 134 }, 135 setValue: function setValue(a) { 136 this.highlight(a), this.updateInput(a); 137 }, 138 highlight: function highlight(a, d) { 139 var e = this.options, 140 f = this.$el; 141 142 if (a >= this.options.min && a <= this.options.max) { 143 var i = f.find(b(a)); 144 c(i.prevAll("i").andSelf(), !0, e), c(i.nextAll("i"), !1, e); 145 } else c(f.find(b()), !1, e); 146 147 d || (a && a != this.options["empty-value"] ? f.find(g).removeClass(h) : f.find(g).addClass(h)); 148 }, 149 updateInput: function updateInput(a) { 150 var b = this.$input; 151 b.val() != a && b.val(a).change(); 152 } 153 }; 154 155 var k = a.fn.rating = function (c) { 156 return this.filter("input[type=number]").each(function () { 157 var d = a(this), 158 e = "object" == _typeof(c) && c || {}, 159 f = new j(d, e); 160 f.options.readonly || f.$el.on("mouseenter", b(), function () { 161 f.highlight(a(this).data("value"), !0); 162 }).on("mouseleave", b(), function () { 163 f.highlight(d.val(), !0); 164 }).on("click", b(), function () { 165 f.setValue(a(this).data("value")); 166 }).on("click", g, function () { 167 f.clear(); 168 }); 169 }); 170 }; 171 172 k.Constructor = j, a(function () { 173 a("input.rating[type=number]").each(function () { 174 a(this).rating(); 175 }); 176 }); 177}(jQuery); 178 179/***/ }), 180 181/***/ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./front/front.scss": 182/*!*****************************************************************************************************************************************************************************************!*\ 183 !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./front/front.scss ***! 184 \*****************************************************************************************************************************************************************************************/ 185/***/ (() => { 186 187// extracted by mini-css-extract-plugin 188 189/***/ }), 190
191/***/ "./front/front.scss": 192/*!**************************!*\ 193 !*** ./front/front.scss ***! 194 \**************************/ 195/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 196 197"use strict"; 198__webpack_require__.r(__webpack_exports__); 199/* harmony export */ __webpack_require__.d(__webpack_exports__, { 200/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) 201/* harmony export */ }); 202/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); 203/* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); 204/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_1_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_front_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!../node_modules/css-loader/dist/cjs.js!../node_modules/sass-loader/dist/cjs.js!./front.scss */ "./node_modules/mini-css-extract-plugin/dist/loader.js??ruleSet[1].rules[1].use[1]!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./front/front.scss"); 205/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_1_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_front_scss__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_1_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_front_scss__WEBPACK_IMPORTED_MODULE_1__); 206 207 208 209var options = {}; 210 211options.insert = "head"; 212options.singleton = false; 213 214var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_1_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_front_scss__WEBPACK_IMPORTED_MODULE_1___default()), options); 215 216 217 218/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((_node_modules_mini_css_extract_plugin_dist_loader_js_ruleSet_1_rules_1_use_1_node_modules_css_loader_dist_cjs_js_node_modules_sass_loader_dist_cjs_js_front_scss__WEBPACK_IMPORTED_MODULE_1___default().locals) || {}); 219 220/***/ }), 221
vendor: 7,474 bytes, lines 222-499
222/***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js": 223/*!****************************************************************************!*\ 224 !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***! 225 \****************************************************************************/ 226/***/ ((module, __unused_webpack_exports, __webpack_require__) => { 227 228"use strict"; 229 230 231var isOldIE = function isOldIE() { 232 var memo; 233 return function memorize() { 234 if (typeof memo === 'undefined') { 235 // Test for IE <= 9 as proposed by Browserhacks 236 // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805 237 // Tests for existence of standard globals is to allow style-loader 238 // to operate correctly into non-standard environments 239 // @see https://github.com/webpack-contrib/style-loader/issues/177 240 memo = Boolean(window && document && document.all && !window.atob); 241 } 242 243 return memo; 244 }; 245}(); 246 247var getTarget = function getTarget() { 248 var memo = {}; 249 return function memorize(target) { 250 if (typeof memo[target] === 'undefined') { 251 var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself 252 253 if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) { 254 try { 255 // This will throw an exception if access to iframe is blocked 256 // due to cross-origin restrictions 257 styleTarget = styleTarget.contentDocument.head; 258 } catch (e) { 259 // istanbul ignore next 260 styleTarget = null; 261 } 262 } 263 264 memo[target] = styleTarget; 265 } 266 267 return memo[target]; 268 }; 269}(); 270 271var stylesInDom = []; 272 273function getIndexByIdentifier(identifier) { 274 var result = -1; 275 276 for (var i = 0; i < stylesInDom.length; i++) { 277 if (stylesInDom[i].identifier === identifier) { 278 result = i; 279 break; 280 } 281 } 282 283 return result; 284} 285 286function modulesToDom(list, options) { 287 var idCountMap = {}; 288 var identifiers = []; 289 290 for (var i = 0; i < list.length; i++) { 291 var item = list[i]; 292 var id = options.base ? item[0] + options.base : item[0]; 293 var count = idCountMap[id] || 0; 294 var identifier = "".concat(id, " ").concat(count); 295 idCountMap[id] = count + 1; 296 var index = getIndexByIdentifier(identifier); 297 var obj = { 298 css: item[1], 299 media: item[2], 300 sourceMap: item[3] 301 }; 302 303 if (index !== -1) { 304 stylesInDom[index].references++; 305 stylesInDom[index].updater(obj); 306 } else { 307 stylesInDom.push({ 308 identifier: identifier, 309 updater: addStyle(obj, options), 310 references: 1 311 }); 312 } 313 314 identifiers.push(identifier); 315 } 316 317 return identifiers; 318} 319 320function insertStyleElement(options) { 321 var style = document.createElement('style'); 322 var attributes = options.attributes || {}; 323 324 if (typeof attributes.nonce === 'undefined') { 325 var nonce = true ? __webpack_require__.nc : 0; 326 327 if (nonce) { 328 attributes.nonce = nonce; 329 } 330 } 331 332 Object.keys(attributes).forEach(function (key) { 333 style.setAttribute(key, attributes[key]); 334 }); 335 336 if (typeof options.insert === 'function') { 337 options.insert(style); 338 } else { 339 var target = getTarget(options.insert || 'head'); 340 341 if (!target) { 342 throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid."); 343 } 344 345 target.appendChild(style); 346 } 347 348 return style; 349} 350 351function removeStyleElement(style) { 352 // istanbul ignore if 353 if (style.parentNode === null) { 354 return false; 355 } 356 357 style.parentNode.removeChild(style); 358} 359/* istanbul ignore next */ 360 361 362var replaceText = function replaceText() { 363 var textStore = []; 364 return function replace(index, replacement) { 365 textStore[index] = replacement; 366 return textStore.filter(Boolean).join('\n'); 367 }; 368}(); 369 370function applyToSingletonTag(style, index, remove, obj) { 371 var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE 372 373 /* istanbul ignore if */ 374 375 if (style.styleSheet) { 376 style.styleSheet.cssText = replaceText(index, css); 377 } else { 378 var cssNode = document.createTextNode(css); 379 var childNodes = style.childNodes; 380 381 if (childNodes[index]) { 382 style.removeChild(childNodes[index]); 383 } 384 385 if (childNodes.length) { 386 style.insertBefore(cssNode, childNodes[index]); 387 } else { 388 style.appendChild(cssNode); 389 } 390 } 391} 392 393function applyToTag(style, options, obj) { 394 var css = obj.css; 395 var media = obj.media; 396 var sourceMap = obj.sourceMap; 397 398 if (media) { 399 style.setAttribute('media', media); 400 } else { 401 style.removeAttribute('media'); 402 } 403 404 if (sourceMap && typeof btoa !== 'undefined') { 405 css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */"); 406 } // For old IE 407 408 /* istanbul ignore if */ 409 410 411 if (style.styleSheet) { 412 style.styleSheet.cssText = css; 413 } else { 414 while (style.firstChild) { 415 style.removeChild(style.firstChild); 416 } 417 418 style.appendChild(document.createTextNode(css)); 419 } 420} 421 422var singleton = null; 423var singletonCounter = 0; 424 425function addStyle(obj, options) { 426 var style; 427 var update; 428 var remove; 429 430 if (options.singleton) { 431 var styleIndex = singletonCounter++; 432 style = singleton || (singleton = insertStyleElement(options)); 433 update = applyToSingletonTag.bind(null, style, styleIndex, false); 434 remove = applyToSingletonTag.bind(null, style, styleIndex, true); 435 } else { 436 style = insertStyleElement(options); 437 update = applyToTag.bind(null, style, options); 438 439 remove = function remove() { 440 removeStyleElement(style); 441 }; 442 } 443 444 update(obj); 445 return function updateStyle(newObj) { 446 if (newObj) { 447 if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) { 448 return; 449 } 450 451 update(obj = newObj); 452 } else { 453 remove(); 454 } 455 }; 456} 457 458module.exports = function (list, options) { 459 options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> 460 // tags it will allow on a page 461 462 if (!options.singleton && typeof options.singleton !== 'boolean') { 463 options.singleton = isOldIE(); 464 } 465 466 list = list || []; 467 var lastIdentifiers = modulesToDom(list, options); 468 return function update(newList) { 469 newList = newList || []; 470 471 if (Object.prototype.toString.call(newList) !== '[object Array]') { 472 return; 473 } 474 475 for (var i = 0; i < lastIdentifiers.length; i++) { 476 var identifier = lastIdentifiers[i]; 477 var index = getIndexByIdentifier(identifier); 478 stylesInDom[index].references--; 479 } 480 481 var newLastIdentifiers = modulesToDom(newList, options); 482 483 for (var _i = 0; _i < lastIdentifiers.length; _i++) { 484 var _identifier = lastIdentifiers[_i]; 485 486 var _index = getIndexByIdentifier(_identifier); 487 488 if (stylesInDom[_index].references === 0) { 489 stylesInDom[_index].updater(); 490 491 stylesInDom.splice(_index, 1); 492 } 493 } 494 495 lastIdentifiers = newLastIdentifiers; 496 }; 497}; 498 499/***/ })
vendor: 3,393 bytes, lines 499-585
499 500 501/******/ }); 502/************************************************************************/ 503/******/ // The module cache 504/******/ var __webpack_module_cache__ = {}; 505/******/ 506/******/ // The require function 507/******/ function __webpack_require__(moduleId) { 508/******/ // Check if module is in cache 509/******/ var cachedModule = __webpack_module_cache__[moduleId]; 510/******/ if (cachedModule !== undefined) { 511/******/ return cachedModule.exports; 512/******/ } 513/******/ // Create a new module (and put it into the cache) 514/******/ var module = __webpack_module_cache__[moduleId] = { 515/******/ // no module.id needed 516/******/ // no module.loaded needed 517/******/ exports: {} 518/******/ }; 519/******/ 520/******/ // Execute the module function 521/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 522/******/ 523/******/ // Return the exports of the module 524/******/ return module.exports; 525/******/ } 526/******/ 527/************************************************************************/ 528/******/ /* webpack/runtime/compat get default export */ 529/******/ (() => { 530/******/ // getDefaultExport function for compatibility with non-harmony modules 531/******/ __webpack_require__.n = (module) => { 532/******/ var getter = module && module.__esModule ? 533/******/ () => (module['default']) : 534/******/ () => (module); 535/******/ __webpack_require__.d(getter, { a: getter }); 536/******/ return getter; 537/******/ }; 538/******/ })(); 539/******/ 540/******/ /* webpack/runtime/define property getters */ 541/******/ (() => { 542/******/ // define getter functions for harmony exports 543/******/ __webpack_require__.d = (exports, definition) => { 544/******/ for(var key in definition) { 545/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 546/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 547/******/ } 548/******/ } 549/******/ }; 550/******/ })(); 551/******/ 552/******/ /* webpack/runtime/hasOwnProperty shorthand */ 553/******/ (() => { 554/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) 555/******/ })(); 556/******/ 557/******/ /* webpack/runtime/make namespace object */ 558/******/ (() => { 559/******/ // define __esModule on exports 560/******/ __webpack_require__.r = (exports) => { 561/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 562/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 563/******/ } 564/******/ Object.defineProperty(exports, '__esModule', { value: true }); 565/******/ }; 566/******/ })(); 567/******/ 568/************************************************************************/ 569var __webpack_exports__ = {}; 570// This entry need to be wrapped in an IIFE because it need to be in strict mode. 571(() => { 572"use strict"; 573/*!************************!*\ 574 !*** ./front/index.js ***! 575 \************************/ 576__webpack_require__.r(__webpack_exports__); 577/* harmony import */ var _front_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./front.js */ "./front/front.js"); 578/* harmony import */ var _front_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./front.scss */ "./front/front.scss"); 579 580 581})(); 582 583/******/ })() 584; 585//# 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.