{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/single-theme-minimal/index.js","webpack:///./src/single-theme-minimal/js/script.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","Number","pad","size","String","this","length","updateCountDown","countDownDate","offset","countdown_message","distance","Date","getTime","days","Math","floor","hours","minutes","seconds","current_message","replace","$","html","clearInterval","x","jQuery","document","ready","sessionStorage","getItem","prop","addClass","click","event","toggleClass","hide","parents","css","fadeIn","focus","okzoom","width","height","window","attr","imagen","children","end_date","DecoWorx","Spar","config","timeServer","server_time","nowServer","show_countdown","nowClient","setInterval","prepareCountDown","setTopPadding","on","basename","location","pathname","substr","lastIndexOf","navItems","querySelectorAll","item","link","querySelector","getAttribute","className","textContent","span","createElement","appendChild","createTextNode","append","change","setItem","getElementById"],"mappings":"aACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,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,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAAb,EAAA,cAAiDmB,OAAA,KAQjDrB,EAAAsB,EAAA,SAAAD,EA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,GAEA,IAAAuC,EAAAjB,OAAAkB,SAAAC,SACAF,IAAAG,OAAAH,EAAAI,YAAA,QAGA,IADA,IAAAC,EAAAvC,SAAAwC,iBAAA,uBACAlG,EAAA,EAAgBA,EAAAiG,EAAA5D,SAAqBrC,EAAA,CACrC,IAAAmG,EAAAF,EAAAjG,GACAoG,EAAAD,EAAAE,cAAA,KAEA,GAAAD,KAAAE,aAAA,UAAAV,EAAA,CACAQ,EAAA,SACAD,EAAAI,WAAA,UAEAH,EAAAI,aAAA,IACA,IAAAC,EAAA/C,SAAAgD,cAAA,QACAD,EAAAF,UAAA,UACAE,EAAAE,YAAAjD,SAAAkD,eAAA,cACAR,EAAAO,YAAAF,GAEA,OAIAR,EAAAvC,SAAAwC,iBAAA,+BACA,IAAAlG,EAAA,EAAgBA,EAAAiG,EAAA5D,SAAqBrC,GACrCoG,EAAAH,EAAAjG,IACAsG,aAAA,UAAAV,IACAQ,EAAA,UAIA3C,OAAA,QAAAoD,OAAA,eAAA7B,SAAAC,KAAAC,OAAA,0DAIA7B,EAAA,gDAAAyD,OAAA,WACAzD,EAAA,2BAAAa,YAAA,eApGAN,eAAAC,QAAA,cACA,QAAAD,eAAAC,QAAA,aAAAD,eAAAmD,QAAA,gBAEAnD,eAAAmD,QAAA,kBAwGA1D,EAAAsB,QAAAgB,GAAA,oBACAD,MAIA,IAAAA,EAAA,WACArC,EAAA,QAAAgB,IAAA,cAAAX,SAAAsD,eAAA","file":"single-theme-minimal/index.61abd55e1c5d9b60de74.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, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\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 = \"/themes/global/dist/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 33);\n","require('./js/script.js');","Number.prototype.pad = function(size) {\n\t//Only run with positive numbers\n\tvar s = String(this);\n\twhile (s.length < (size || 2)) {s = \"0\" + s;}\n\treturn s;\n}\n\nvar updateCountDown = function(countDownDate,offset,countdown_message) {\n\tvar now = new Date().getTime () - offset;\n\t// Find the distance between now and the count down date\n\tvar distance = countDownDate - now;\n\t// Time calculations for days, hours, minutes and seconds\n\tvar days = Math.floor (distance / (1000 * 60 * 60 * 24));\n\tvar hours = Math.floor (distance % (1000 * 60 * 60 * 24) / (1000 * 60 * 60));\n\tvar minutes = Math.floor (distance % (1000 * 60 * 60) / (1000 * 60));\n\tvar seconds = Math.floor((distance % (1000 * 60)) / 1000);\n\tcurrent_message = 'DD HH MM SS'\n\t\t .replace ('DD', days.pad(2) + 'd')\n\t\t .replace ('HH', hours.pad(2) + 'h')\n\t\t .replace ('MM', minutes.pad(2) + 'm')\n\t\t .replace ('SS', seconds.pad(2) + 's')\n\t\t .replace ('00d 00h ', '')\n\t\t .replace ('00d ', '');\n\t\t// Display the result in the element with id=\"countDownMessage\"\n\t\t$ ('#countDownMessage').html (\n\t\t '' +\n\t\t\tcountdown_message.replace ('COUNTDOWN', '' + current_message + \"\") +\n\t\t\t''\n\t\t);\n\t\t// If the count down is finished, write some text\n\t\tif (distance < 0) {\n\t\t clearInterval (x);\n\t\t $ ('#countDownMessage').html (\n\t\t\t'' + 'This store is closing now' + ''\n\t\t );\n\t\t}\n}\n\nvar x = null;//interval\n\nvar prepareCountDown = function(){\n\tend_date = DecoWorx.Spar.config.end_date;\n\ttimeServer = DecoWorx.Spar.config.server_time;\n\tnowServer = new Date(timeServer).getTime();\n\t/**\n\t * //IE 11 not support end_date + ' 23 59 59' string.\n\t */\n\tif (end_date != null && DecoWorx.Spar.config.show_countdown == true) {\n\n\t\tvar countDownDate = new Date (end_date);\n\t\tvar nowClient = new Date().getTime ();\n\t\toffset = nowServer - nowClient;\n\t\tcountdown_message = DecoWorx.Spar.config.countdown_message;\n\t // Update the count down every 1 minute\n\t updateCountDown(countDownDate,offset,countdown_message);\n var x = setInterval (function () {\n updateCountDown(countDownDate,offset,countdown_message);\n\t },\n // Get today's date and time\n 1000 //1 update per second\n );\n }\n }\n\n var toggleFundraiserState = function(){\n\t//Check if 'minimized value exists in sessionstorage and toggle state in sessionStorage accordingly\n\tif(sessionStorage.getItem('minimized')){\n\t\tsessionStorage.getItem('minimized') == 'true' ? sessionStorage.setItem('minimized', false) : sessionStorage.setItem('minimized', true)\n\t}else{\n\t\tsessionStorage.setItem('minimized', true)\n\t}\n}\n\nvar setFundraiserState = function(){\n\t//Set fundraiser checkbox according to 'minimized' value in sessionStorage\n\tsessionStorage.getItem('minimized') == 'false' || !sessionStorage.getItem('minimized') ? $('.fundraiser-checkbox').prop('checked', false) : $('.fundraiser-checkbox').prop('checked', true)\n\t//Make fundraiser container visible after setting checkbox option\n\t$('.fundraiser-container').addClass('visible')\n}\n\njQuery(document).ready(function($) {\n\n\t//minimize or expand fundraiser container according to sessionStorage 'minimize' value\n\tsetFundraiserState()\n\n\t/* SEARCH index*/\n\t$('.li-search a').click(function(event) {\n\t\t$(this).toggleClass('active');\n\t\t$('.search').toggleClass('active');\n\t});\n\t/* SEARCH INDEX 2 */\n\t$('.li-search-b').click(function(event) {\n\t\t$(this).hide();\n\t\t$(this).parents('.container').css('position','relative');\n\t\t$('form.search.b').fadeIn('0.1s');\n\t\t$('form.search.b input').focus();\n\t});\n\n\t/* PRODUCT PAGE FUNCTIONALITY */\n\t/* Zomm on image */\n\t$(function(){\n \t$('#zoom').okzoom({\n \twidth: 150,\n \theight: 150\n \t});\n\t});\n\n\tif ($(window).width() < 768) {\n\t\t$('.img-responsive.product').attr('id', '')\n\t}\n\n\t /* Filter Side Bar Image on click */\n\t$('ul.side-images li').click(function(event) {\n\t\t/* Act on the event */\n\t\t// var imagen = $(this).children('img').attr('src');\n\t\tvar imagen = $(this).children('img').attr('data-large-src');\n\t\t$('.img-responsive.product').attr('src',imagen)\n\n\t\t// console.log( \"imagen this\", this )\n\t});\n\tprepareCountDown();\n\n\t//Set body padding top according to height of to p nav/header\n\tsetTopPadding();\n\n});\n\n\n\njQuery(document).on( 'spar-ready', function(event,$) {\n\t/* update navigation items */\n\tvar basename = window.location.pathname\n\tbasename = basename.substr( basename.lastIndexOf('/') + 1 )\n\n\tvar navItems = document.querySelectorAll( \"[class~='nav-item']\")\n\tfor( var i = 0; i < navItems.length; ++i ) {\n\t\tvar item = navItems[i]\n\t\tvar link = item.querySelector( \"a\" )\n\n\t\tif ( link && link.getAttribute( \"href\" ) === basename ) {\n\t\t\tlink[ \"href\" ] = \"#\"\n\t\t\titem.className += \" active\"\n\n\t\t\tlink.textContent += \" \"\n\t\t\tvar span = document.createElement( \"span\" )\n\t\t\tspan.className = \"sr-only\"\n\t\t\tspan.appendChild( document.createTextNode(\"(current)\") )\n\t\t\tlink.appendChild( span )\n\n\t\t\tbreak\n\t\t}\n\t}\n\n\tnavItems = document.querySelectorAll( 'footer ul[class~=\"pages\"] a')\n\tfor( var i = 0; i < navItems.length; ++i ) {\n\t\tlink = navItems[i]\n\t\tif ( link.getAttribute( \"href\" ) === basename ) {\n\t\t\tlink[ \"href\" ] = \"#\"\n\t\t}\n\t}\n\n jQuery('head').append('');\n})\n\n//toggle fundraiser dropdown caret\n$('#fundraiser-toggle, #fundraiser-gauge-toggle').change(function() {\n\t$('.fundraiser-container i').toggleClass('fa-caret-up')\n\t\n\t//When clicking caret to minimize or expand the fundraiser container, store this state in sessionStorage\n\ttoggleFundraiserState()\n });\n\n//Set body padding top according to height top header nav\n$(window).on('resize', function(){\n\tsetTopPadding();\n});\n\n//This function adds padding top to body to account for fixed positioned nav/header\nvar setTopPadding = function(){\n\t$('body').css('padding-top', (document.getElementById('main-top-header').clientHeight) + 'px')\n}\n"],"sourceRoot":""}