{"version":3,"sources":["webpack:///webpack/bootstrap 40d6a714e5432ad682d7","webpack:///./services/russellhobbs/subdomains/cdn/js/quiz-campaign.custom.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","$","window","on","masonry","itemSelector","columnWidth","percentPosition","document","querySelector","swiper","destroy","Swiper","pagination","el","type","clickable","loop","slidesPerView","spaceBetween","speed","autoplay","breakpoints","480","1000","ready","e","preventDefault","url","this","attr","navigation","addToCart","event"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAZ,EAAAmB,EAAA,SAAAhB,GACA,IAAAS,EAAAT,KAAAiB,WACA,WAA2B,OAAAjB,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAH,EAAAU,EAAAE,EAAA,IAAAA,GACAA,GAIAZ,EAAAa,EAAA,SAAAQ,EAAAC,GAAsD,OAAAR,OAAAS,UAAAC,eAAAjB,KAAAc,EAAAC,IAGtDtB,EAAAyB,EAAA,IAGAzB,IAAA0B,EAAA,+DC7DAC,EAAEC,QAAQC,GAAG,OAAQ,YAEjBF,EAAE,iDAAiDG,SAC/CC,aAAc,SACdC,YAAa,eACbC,iBAAiB,IAIjBC,SAASC,cAAc,uBACHD,SAASC,cAAc,qBAAqBC,OAClDC,UAGlB,IAAIC,OAAO,4DACPC,YACIC,GAAI,qBACJC,KAAM,UACNC,WAAW,GAEfC,MAAM,EACNC,cAAe,EACfC,aAAc,EACdC,MAAO,IACPC,UAAU,EACVC,aACIC,KACIL,cAAe,GAEnBM,MACIN,cAAe,QAO/BjB,EAAEO,UAAUiB,MAAM,WACdxB,EAAE,mBAAmBE,GAAG,QAAS,cAAc,SAASuB,GACpDA,EAAEC,iBACF,IAAIC,EAAM3B,EAAE4B,MAAMC,KAAK,QACvBC,WAAWC,UAAUC,MAAOL","file":"/services/russellhobbs/subdomains/cdn/build/quiz-campaigns/custom.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 108);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 40d6a714e5432ad682d7","$(window).on(\"load\", function() {\n\n    $('.moment-maker .quiz__campaign-endpoint-blocks').masonry({\n        itemSelector: '.block',\n        columnWidth: '.block-sizer',\n        percentPosition: true\n    });\n\n    //As spaceBetween not being set globally, per campaign, unset and reset this nasty way\n    if( document.querySelector('.swiper-container') ) {\n        var relatedSwiper = document.querySelector('.swiper-container').swiper;\n        relatedSwiper.destroy();\n    }\n\n    new Swiper('.moment-maker .quiz__campaign__endpoint-related-carousel', {\n        pagination: {\n            el: '.swiper-pagination',\n            type: 'bullets',\n            clickable: true,\n        },\n        loop: true,\n        slidesPerView: 3,\n        spaceBetween: 0,\n        speed: 500,\n        autoplay: true,\n        breakpoints: {\n            480: {\n                slidesPerView: 1\n            },\n            1000: {\n                slidesPerView: 2\n            }\n        }\n    });\n\n});\n\n$(document).ready(function(){\n    $(\".quiz__campaign\").on(\"click\", \".basket-add\",function(e){\n        e.preventDefault();\n        let url = $(this).attr('href');\n        navigation.addToCart(event, url);\n    });\n})\n\n\n// WEBPACK FOOTER //\n// ./services/russellhobbs/subdomains/cdn/js/quiz-campaign.custom.js"],"sourceRoot":""}