{ "version": 3, "sources": ["../modules/itrrecycles.com/form/accordion/shared/index.js", "../node_modules/tiny-slider/src/helpers/raf.js", "../node_modules/tiny-slider/src/helpers/caf.js", "../node_modules/tiny-slider/src/helpers/extend.js", "../node_modules/tiny-slider/src/helpers/checkStorageValue.js", "../node_modules/tiny-slider/src/helpers/setLocalStorage.js", "../node_modules/tiny-slider/src/helpers/getSlideId.js", "../node_modules/tiny-slider/src/helpers/getBody.js", "../node_modules/tiny-slider/src/helpers/docElement.js", "../node_modules/tiny-slider/src/helpers/setFakeBody.js", "../node_modules/tiny-slider/src/helpers/resetFakeBody.js", "../node_modules/tiny-slider/src/helpers/calc.js", "../node_modules/tiny-slider/src/helpers/percentageLayout.js", "../node_modules/tiny-slider/src/helpers/mediaquerySupport.js", "../node_modules/tiny-slider/src/helpers/createStyleSheet.js", "../node_modules/tiny-slider/src/helpers/addCSSRule.js", "../node_modules/tiny-slider/src/helpers/removeCSSRule.js", "../node_modules/tiny-slider/src/helpers/getCssRulesLength.js", "../node_modules/tiny-slider/src/helpers/toDegree.js", "../node_modules/tiny-slider/src/helpers/getTouchDirection.js", "../node_modules/tiny-slider/src/helpers/forEach.js", "../node_modules/tiny-slider/src/helpers/classListSupport.js", "../node_modules/tiny-slider/src/helpers/hasClass.js", "../node_modules/tiny-slider/src/helpers/addClass.js", "../node_modules/tiny-slider/src/helpers/removeClass.js", "../node_modules/tiny-slider/src/helpers/hasAttr.js", "../node_modules/tiny-slider/src/helpers/getAttr.js", "../node_modules/tiny-slider/src/helpers/isNodeList.js", "../node_modules/tiny-slider/src/helpers/setAttrs.js", "../node_modules/tiny-slider/src/helpers/removeAttrs.js", "../node_modules/tiny-slider/src/helpers/arrayFromNodeList.js", "../node_modules/tiny-slider/src/helpers/hideElement.js", "../node_modules/tiny-slider/src/helpers/showElement.js", "../node_modules/tiny-slider/src/helpers/isVisible.js", "../node_modules/tiny-slider/src/helpers/whichProperty.js", "../node_modules/tiny-slider/src/helpers/has3DTransforms.js", "../node_modules/tiny-slider/src/helpers/getEndProperty.js", "../node_modules/tiny-slider/src/helpers/passiveOption.js", "../node_modules/tiny-slider/src/helpers/addEvents.js", "../node_modules/tiny-slider/src/helpers/removeEvents.js", "../node_modules/tiny-slider/src/helpers/events.js", "../node_modules/tiny-slider/src/helpers/jsTransform.js", "../node_modules/tiny-slider/src/tiny-slider.js", "../modules/itrrecycles.com/form/carousel/logos/index.js"], "sourcesContent": ["const $ = (selector, parent = document) => parent.querySelector(selector);\nconst $$ = (selector, parent = document) => parent.querySelectorAll(selector);\n\n/**\n * Handles keyboard navigations on the \n *\n * * Down Arrow: moves focus to next `` in the accordion,\n * or the first ``.\n * * Up Arrow: moves focus to previous `` in the accordion,\n * or the last ``.\n * * Home : moves focus to the first accordion header.\n * * End : moves focus to the last accordion header.\n * @param {KeyboardEvent} event\n */\nfunction onKeyDownOnAccordion(event) {\n const target = /** @type {HTMLElement} */(event.target);\n const key = event.key;\n\n // Ignores if event is not coming from an accordion header.\n if (target.tagName !== \"SUMMARY\") {\n return;\n }\n\n // Ignore other keys\n if ([\"Down\", \"ArrowDown\", \"Up\", \"ArrowUp\", \"Home\", \"End\"].indexOf(key) === -1) {\n return;\n }\n\n const accordion = target.closest(\".accordion\");\n const triggers = Array.from(accordion.querySelectorAll(\"summary\"));\n const length = triggers.length;\n const index = triggers.indexOf(target);\n let newIndex;\n\n switch (key) {\n case \"Down\": // IE/Edge specific value\n case \"ArrowDown\":\n newIndex = (index + length + 1) % length;\n break;\n case \"Up\": // IE/Edge specific value\n case \"ArrowUp\":\n newIndex = (index + length -1) % length;\n break;\n case \"Home\":\n // Go to first accordion\n newIndex = 0;\n break;\n case \"End\":\n // Go to last accordion\n newIndex = length - 1;\n break;\n }\n\n triggers[newIndex].focus();\n event.preventDefault();\n}\n\ndocument.querySelectorAll(\".accordion\").forEach((accordion) => {\n let details = $$(\"details\", accordion);\n\n details.forEach ((detail) => {\n detail.addEventListener(\"toggle\", function(e) {\n\n if (e.target.getAttribute(\"open\") !== null) {\n $$(\"details[open]\", accordion).forEach((openTab) => {\n if (openTab !== e.target) {\n openTab.removeAttribute(\"open\");\n }\n })\n\n let scrollTop = window.pageYOffset || document.documentElement.scrollTop\n let samBar = 0;\n\n if ($(\"body\").classList.contains(\"samadmin\")) {\n samBar = 97;\n }\n\n window.scroll({\n top: e.target.getBoundingClientRect()[\"top\"] + scrollTop - samBar - 20,\n behavior: 'smooth'\n });\n }\n })\n })\n accordion.addEventListener(\"keydown\", onKeyDownOnAccordion);\n});", "var win = window;\n\nexport var raf = win.requestAnimationFrame\n || win.webkitRequestAnimationFrame\n || win.mozRequestAnimationFrame\n || win.msRequestAnimationFrame\n || function(cb) { return setTimeout(cb, 16); };\n", "var win = window;\n\nexport var caf = win.cancelAnimationFrame\n || win.mozCancelAnimationFrame\n || function(id){ clearTimeout(id); };\n", "export function extend() {\n var obj, name, copy,\n target = arguments[0] || {},\n i = 1,\n length = arguments.length;\n\n for (; i < length; i++) {\n if ((obj = arguments[i]) !== null) {\n for (name in obj) {\n copy = obj[name];\n\n if (target === copy) {\n continue;\n } else if (copy !== undefined) {\n target[name] = copy;\n }\n }\n }\n }\n return target;\n}", "export function checkStorageValue (value) {\n return ['true', 'false'].indexOf(value) >= 0 ? JSON.parse(value) : value;\n}", "export function setLocalStorage(storage, key, value, access) {\n if (access) {\n try { storage.setItem(key, value); } catch (e) {}\n }\n return value;\n}", "export function getSlideId() {\n var id = window.tnsId;\n window.tnsId = !id ? 1 : id + 1;\n \n return 'tns' + window.tnsId;\n}", "export function getBody () {\n var doc = document,\n body = doc.body;\n\n if (!body) {\n body = doc.createElement('body');\n body.fake = true;\n }\n\n return body;\n}", "export var docElement = document.documentElement;", "import { docElement } from './docElement.js';\n\nexport function setFakeBody (body) {\n var docOverflow = '';\n if (body.fake) {\n docOverflow = docElement.style.overflow;\n //avoid crashing IE8, if background image is used\n body.style.background = '';\n //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible\n body.style.overflow = docElement.style.overflow = 'hidden';\n docElement.appendChild(body);\n }\n\n return docOverflow;\n}", "import { docElement } from './docElement.js';\n\nexport function resetFakeBody (body, docOverflow) {\n if (body.fake) {\n body.remove();\n docElement.style.overflow = docOverflow;\n // Trigger layout so kinetic scrolling isn't disabled in iOS6+\n // eslint-disable-next-line\n docElement.offsetHeight;\n }\n}", "// get css-calc \n// @return - false | calc | -webkit-calc | -moz-calc\n// @usage - var calc = getCalc(); \nimport { getBody } from './getBody.js';\nimport { setFakeBody } from './setFakeBody.js';\nimport { resetFakeBody } from './resetFakeBody.js';\n\nexport function calc() {\n var doc = document, \n body = getBody(),\n docOverflow = setFakeBody(body),\n div = doc.createElement('div'), \n result = false;\n\n body.appendChild(div);\n try {\n var str = '(10px * 10)',\n vals = ['calc' + str, '-moz-calc' + str, '-webkit-calc' + str],\n val;\n for (var i = 0; i < 3; i++) {\n val = vals[i];\n div.style.width = val;\n if (div.offsetWidth === 100) { \n result = val.replace(str, ''); \n break;\n }\n }\n } catch (e) {}\n \n body.fake ? resetFakeBody(body, docOverflow) : div.remove();\n\n return result;\n}", "// get subpixel support value\n// @return - boolean\nimport { getBody } from './getBody.js';\nimport { setFakeBody } from './setFakeBody.js';\nimport { resetFakeBody } from './resetFakeBody.js';\n\nexport function percentageLayout() {\n // check subpixel layout supporting\n var doc = document,\n body = getBody(),\n docOverflow = setFakeBody(body),\n wrapper = doc.createElement('div'),\n outer = doc.createElement('div'),\n str = '',\n count = 70,\n perPage = 3,\n supported = false;\n\n wrapper.className = \"tns-t-subp2\";\n outer.className = \"tns-t-ct\";\n\n for (var i = 0; i < count; i++) {\n str += '
';\n }\n\n outer.innerHTML = str;\n wrapper.appendChild(outer);\n body.appendChild(wrapper);\n\n supported = Math.abs(wrapper.getBoundingClientRect().left - outer.children[count - perPage].getBoundingClientRect().left) < 2;\n\n body.fake ? resetFakeBody(body, docOverflow) : wrapper.remove();\n\n return supported;\n}", "import { getBody } from './getBody.js';\nimport { setFakeBody } from './setFakeBody.js';\nimport { resetFakeBody } from './resetFakeBody.js';\n\nexport function mediaquerySupport () {\n if (window.matchMedia || window.msMatchMedia) {\n return true;\n }\n \n var doc = document,\n body = getBody(),\n docOverflow = setFakeBody(body),\n div = doc.createElement('div'),\n style = doc.createElement('style'),\n rule = '@media all and (min-width:1px){.tns-mq-test{position:absolute}}',\n position;\n\n style.type = 'text/css';\n div.className = 'tns-mq-test';\n\n body.appendChild(style);\n body.appendChild(div);\n\n if (style.styleSheet) {\n style.styleSheet.cssText = rule;\n } else {\n style.appendChild(doc.createTextNode(rule));\n }\n\n position = window.getComputedStyle ? window.getComputedStyle(div).position : div.currentStyle['position'];\n\n body.fake ? resetFakeBody(body, docOverflow) : div.remove();\n\n return position === \"absolute\";\n}\n", "// create and append style sheet\nexport function createStyleSheet (media, nonce) {\n // Create the