{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./frontend/js/head.js"],"names":["d","A17","window","de","documentElement","w","h","getElementsByTagName","s","a","browserSpec","querySelectorAll","history","pushState","implementation","hasFeature","touch","documentTouch","DocumentTouch","objectFit","style","className","replace","disableSS","test","readyState","setTimeout","i","styleSheets","length","ss","title","disabled","disableSSff3","addEventListener","body","insSvg","db","createElement","innerHTML","responseText","insertBefore","childNodes","src","appendChild","document"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;AClFA;AACA;AAEA;AACA,CAAC,UAASA,CAAT,EAAY;AAEX;AACA,MAAIC,GAAG,GAAGC,MAAM,CAACD,GAAP,IAAc,EAAxB;AAAA,MACIE,EAAE,GAAGH,CAAC,CAACI,eADX;AAAA,MAEIC,CAAC,GAAGH,MAFR;AAAA,MAGII,CAAC,GAAGN,CAAC,CAACO,oBAAF,CAAuB,MAAvB,EAA+B,CAA/B,CAHR;AAAA,MAIIC,CAJJ;AAAA,MAIOC,CAJP,CAHW,CASX;;AACAR,KAAG,CAACS,WAAJ,GAAmB,QAAOV,CAAC,CAACW,gBAAT,KAA6B,sBAAsBN,CAAnD,IAAwDA,CAAC,CAACO,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,gBAAvB,EAAyC;AACvC,UAAIlC,CAAC,CAACmC,IAAN,EAAY;AACVT,kBAAU,CAAC,YAAU;AACnB1B,WAAC,CAACyB,UAAF,GAAe,UAAf;AACD,SAFS,EAER,GAFQ,CAAV;AAGD,OAJD,MAIO;AACLC,kBAAU,CAACO,YAAD,EAAc,CAAd,CAAV;AACD;AACF;AACF,GAjDU,CAmDX;;;AACA,WAASG,MAAT,GAAkB;AAChB,QAAI,KAAKZ,IAAL,CAAUxB,CAAC,CAACyB,UAAZ,CAAJ,EAA6B;AAC3BC,gBAAU,CAACU,MAAD,EAAQ,CAAR,CAAV;AACD,KAFD,MAEO;AACL,UAAIC,EAAE,GAAGrC,CAAC,CAACmC,IAAX;AACA,UAAI3B,CAAC,GAAGR,CAAC,CAACsC,aAAF,CAAgB,KAAhB,CAAR;AACA9B,OAAC,CAACa,SAAF,GAAc,YAAd;AACAb,OAAC,CAAC+B,SAAF,GAAc9B,CAAC,CAAC+B,YAAhB;AACAH,QAAE,CAACI,YAAH,CAAgBjC,CAAhB,EAAmB6B,EAAE,CAACK,UAAH,CAAc,CAAd,CAAnB;AACD;AACF;;AAED,MAAGzC,GAAG,CAACS,WAAJ,KAAoB,OAAvB,EAA+B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACAuB,gBAAY;AACZV,aAAS;AACV,GAZD,MAYO;AACLf,KAAC,GAAGR,CAAC,CAACsC,aAAF,CAAgB,QAAhB,CAAJ;AACA9B,KAAC,CAACmC,GAAF,GAAQ,uEAAR;AACArC,KAAC,CAACsC,WAAF,CAAcpC,CAAd,EAHK,CAIL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AACF,CA1FD,EA0FGqC,QA1FH,E","file":"head.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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./frontend/js/head.js\");\n","// Contents to be minified and placed inline in the document header\n// Doc: https://code.area17.com/a17/fe-boilerplate/wikis/js-head\n\n// go go\n(function(d) {\n\n // set up a master object\n var A17 = window.A17 || {},\n de = d.documentElement,\n w = window,\n h = d.getElementsByTagName('head')[0],\n s, a;\n\n // test for HTML5 vs HTML4 support, cutting the mustard\n A17.browserSpec = (typeof d.querySelectorAll && 'addEventListener' in w && w.history.pushState && d.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#BasicStructure', '1.1')) ? 'html5' : 'html4';\n\n // test for touch support. Caution: this is dangerous: https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/\n A17.touch = (('ontouchstart' in w) || w.documentTouch && d instanceof DocumentTouch) ? true : false;\n\n // testing for object fit support\n A17.objectFit = ('objectFit' in de.style);\n\n // expose A17\n window.A17 = A17;\n\n // add class names\n de.className = de.className.replace(/\\bno-js\\b/,' js '+A17.browserSpec+(A17.touch ? ' touch' : ' no-touch')+(A17.objectFit ? ' objectFit' : ' no-objectFit'));\n\n // disable all the stylesheets, except the html4css one\n function disableSS() {\n if (/in/.test(d.readyState)) {\n setTimeout(disableSS,9);\n } else {\n for(var i = 0; i < d.styleSheets.length; i++){\n var ss = d.styleSheets[i];\n if (ss.title !== 'html4css') {\n ss.disabled = true;\n }\n }\n }\n }\n\n // FF < 3.6 didn't have document.readyState - hacky shim for it\n function disableSSff3() {\n if (!d.readyState && d.addEventListener) {\n if (d.body) {\n setTimeout(function(){\n d.readyState = 'complete';\n },500);\n } else {\n setTimeout(disableSSff3,9);\n }\n }\n }\n\n // insert sprite SVG on DOM ready\n function insSvg() {\n if (/in/.test(d.readyState)) {\n setTimeout(insSvg,9);\n } else {\n var db = d.body;\n var s = d.createElement('div');\n s.className = 'svg-sprite';\n s.innerHTML = a.responseText;\n db.insertBefore(s, db.childNodes[0]);\n }\n }\n\n if(A17.browserSpec === 'html4'){\n // if an old browser - sort the page out for showing the html4css\n // s = d.createElement('link');\n // s.rel = 'stylesheet';\n // s.title = 'html4css';\n // s.href = '/dist/styles/html4css.css';\n // h.appendChild(s);\n // s = d.createElement('script');\n // s.src = '//legacypicturefill.s3.amazonaws.com/legacypicturefill.min.js';\n // h.appendChild(s);\n disableSSff3();\n disableSS();\n } else {\n s = d.createElement('script');\n s.src = '//cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.2/picturefill.min.js';\n h.appendChild(s);\n // if not an old browser - ajax in the sprite\n // a = new XMLHttpRequest();\n // a.open('GET', '/dist/icons/icons.svg', true);\n // a.send();\n // a.onload = function(e) {\n // if (a.status >= 200 && a.status < 400){\n // insSvg();\n // }\n // };\n }\n})(document);\n"],"sourceRoot":""}