{"version":3,"file":"bundle.js","sources":["../../../src/js/settings.js","../../../src/js/module/addARIACurrent.js","../../../src/js/module/fade.js","../../../src/js/module/customEvent.js","../../../src/js/module/slide.js","../../../src/js/module/device.js","../../../src/js/module/scroll2AddClass.js","../../../src/js/module/gnavToggle.js","../../../src/js/module/langNavToggle.js","../../../src/js/module/MyTab.js","../../../src/js/module/accordion.js","../../../src/js/main.js"],"sourcesContent":["const BREAK_POINTS = { \"ltSP\": 767, \"gtTAB\": 768, \"ltTAB\": 992, \"gtPC\": 992 }\n\nexport { BREAK_POINTS };\n","export default function () {\n\n //.nav-main 内の現在のページのリンクに @aria-current を追加 .js-throwgh があるものは除く\n const path = location.pathname\n const mainLink = document.querySelectorAll('.l-nav__list a');\n const pageLink = document.querySelectorAll('.p-pagelink a');\n const catLink = document.querySelectorAll('.p-catlink a');\n\n\tif(path.match('/ir/')) {\n\t\tdocument.querySelector('.l-nav__list a[href=\"/ir/\"]').setAttribute('aria-current', 'page');\n\t}\n\n\n [].forEach.call(mainLink, el => {\n if (el.getAttribute('href') == path) {\n if (!el.classList.contains('js-throwgh')) {\n el.setAttribute('aria-current', 'page');\n\t\t\t\tif(el.closest('.l-nav__children')) {\n\t\t\t\t\tconst closest = el.closest('.l-nav__item');\n\t\t\t\t\tconst a = closest.querySelector(':scope > a');\n\t\t\t\t\ta.setAttribute('aria-current', 'page');\n\t\t\t\t}\n }\n }\n });\n [].forEach.call(pageLink, el => {\n\t\tif (path.match(el.getAttribute('href'))) {\n if (!el.classList.contains('js-throwgh')) {\n el.setAttribute('aria-current', 'page');\n }\n }\n });\n [].forEach.call(catLink, el => {\n\t\tif (path.match(el.getAttribute('href'))) {\n el.closest('li').remove();\n }\n\n });\n\n\tif (path.match('/product/medical_products/')) {\n\t\tconst items = document.querySelectorAll('.p-catlink li');\n\t\tif(items.length > 1) {\n\t\t\titems[2].remove();\n\t\t}\n \t}\n}\n","function fadeOut(elBtn, elTarget, d = 250){\n return new Promise((resolve, reject) => {\n if(elTarget.getAttribute(\"aria-hidden\") == \"true\") {\n resolve(elTarget);\n return 1;\n }\n elTarget.style.display = 'inherit';\n elTarget.style.opacity = 1;\n elTarget.style.transition = 'opacity '+d+'ms';\n elTarget.setAttribute(\"aria-hidden\", true);\n setTimeout(()=> {\n elTarget.style.opacity = 0;\n }, 10);\n\n elTarget.addEventListener('transitionend', (e) => {\n if(e.target.getAttribute(\"aria-hidden\") == \"true\") {\n elTarget.style.display = 'none';\n }\n resolve(e);\n },\n { once : true});\n });\n}\n\nfunction fadeIn(elBtn, elTarget, d = 250){\n return new Promise((resolve, reject) => {\n elTarget.style.display = 'inherit';\n elTarget.style.opacity = 0;\n elTarget.style.transition = 'opacity '+d+'ms';\n elTarget.style.transition = 'opacity '+d+'ms';\n elTarget.setAttribute(\"aria-hidden\", false);\n setTimeout(()=> {\n elTarget.style.opacity = 1;\n }, 10);\n\n elTarget.addEventListener('transitionend', (e) => {\n console.log(\"inherit\");\n resolve(e);\n },\n { once : true});\n });\n};\n\nconst fadeToggle = function(elBtn, elTarget) {\n const compStyles = window.getComputedStyle(elTarget);\n let prm;\n if(compStyles.getPropertyValue('display') == 'none') {\n prm = fadeIn(elBtn, elTarget);\n } else {\n prm = fadeOut(elBtn, elTarget);\n }\n return prm;\n};\n\nexport {fadeOut, fadeIn, fadeToggle};\n","export default function (element, event, obj) {\n\tif(!obj) {\n\t\tobj = {};\n\t}\n\n\tif ( typeof window.CustomEvent === \"function\" ) {\n\t\telement.dispatchEvent(new CustomEvent(event, {\n\t\t\tdetail: obj\n\t\t\t})\n\t\t);\n\t} else {\n\t\tparams = { bubbles: false, cancelable: false, detail: obj };\n\t\tvar evt = document.createEvent( 'CustomEvent' );\n\t\tevt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );\n\t}\n}\n","import trigger from './customEvent';\n//要素の高さを変化させながら表示切り替え\nfunction slideUp(el, duration){\n return new Promise((resolve, reject) => {\n\t\tel.style.height = el.offsetHeight + \"px\";\n\t\tel.offsetHeight;\n\t\tel.style.transitionProperty = \"height, margin, padding\";\n\t\tel.style.transitionDuration = duration + \"ms\";\n\t\tel.style.transitionTimingFunction = \"ease\";\n\t\tel.style.overflow = \"hidden\";\n\t\tel.style.height = 0;\n\t\tel.style.paddingTop = 0;\n\t\tel.style.paddingBottom = 0;\n\t\tel.style.marginTop = 0;\n\t\tel.style.marginBottom = 0;\n\t\tsetTimeout(function() {\n\t\t\tel.style.display = \"none\";\n\t\t\tel.style.removeProperty(\"height\");\n\t\t\tel.style.removeProperty(\"padding-top\");\n\t\t\tel.style.removeProperty(\"padding-bottom\");\n\t\t\tel.style.removeProperty(\"margin-top\");\n\t\t\tel.style.removeProperty(\"margin-bottom\");\n\t\t\tel.style.removeProperty(\"overflow\");\n\t\t\tel.style.removeProperty(\"transition-duration\");\n\t\t\tel.style.removeProperty(\"transition-property\");\n\t\t\tel.style.removeProperty(\"transition-timing-function\");\n\t\t\tel.classList.remove('is-processing');\n\t\t\ttrigger(window, 'changeHeight');\n resolve(el);\n\t\t}, duration);\n });\n};\n// slideDown\nfunction slideDown(el, duration) {\n return new Promise((resolve, reject) => {\n\t\tel.style.removeProperty(\"display\");\n\t\tlet display = window.getComputedStyle(el).display;\n\t\tif (display === \"none\") {\n\t\t\tdisplay = \"block\";\n\t\t}\n\t\tel.style.display = display;\n\t\tlet height = el.offsetHeight;\n\t\tel.style.overflow = \"hidden\";\n\t\tel.style.height = 0;\n\t\tel.style.paddingTop = 0;\n\t\tel.style.paddingBottom = 0;\n\t\tel.style.marginTop = 0;\n\t\tel.style.marginBottom = 0;\n\t\tel.offsetHeight;\n\t\tel.style.transitionProperty = \"height, margin, padding\";\n\t\tel.style.transitionDuration = duration + \"ms\";\n\t\tel.style.transitionTimingFunction = \"ease\";\n\t\tel.style.height = height + \"px\";\n\t\tel.style.removeProperty(\"padding-top\");\n\t\tel.style.removeProperty(\"padding-bottom\");\n\t\tel.style.removeProperty(\"margin-top\");\n\t\tel.style.removeProperty(\"margin-bottom\");\n\t\tsetTimeout(function() {\n\t\t\tel.style.removeProperty(\"height\");\n\t\t\tel.style.removeProperty(\"overflow\");\n\t\t\tel.style.removeProperty(\"transition-duration\");\n\t\t\tel.style.removeProperty(\"transition-property\");\n\t\t\tel.style.removeProperty(\"transition-timing-function\");\n\t\t\tel.classList.remove('is-processing');\n\t\t\ttrigger(window, 'changeHeight');\n\t\t\tresolve(el);\n\t\t}, duration);\n });\n};\n\nfunction slideToggle(elBtn, el) {\n\tif(!el) {\n\t\tnew Error(\"el が存在しません\");\n\t\treturn;\n\t}\n\tif(el.classList.contains('is-processing')) {\n\t\treturn;\n\t} else {\n\t\tel.classList.add('is-processing');\n\t}\n\tif (window.getComputedStyle(el).display === \"none\") {\n\t\treturn slideDown(el, 400);\n\t} else {\n\t\treturn slideUp(el, 400);\n\t}\n};\n\nexport {slideUp, slideDown, slideToggle};\n","const ua = window.navigator.userAgent.toLowerCase();\nconst isTouch = ('createTouch' in document);\nlet isAndroid = false;\nlet isTouchDevice = false;\nif(ua.indexOf(\"android\") != -1) {\n\tisAndroid = true;\n}\nif(isAndroid) {\n\tisTouchDevice = true;\n}\nif(isTouch) {\n\tisTouchDevice = true;\n}\nconst myDevice = {\n\tisTouch : isTouch,\n\tisAndroid : isAndroid,\n\tisTouchDevice : isTouchDevice\n};\n\nexport {myDevice};\n","\nimport trigger from './customEvent';\nimport {myDevice} from './device';\n\nexport default function () {\n //自身の位置までウィンドウスクロールされると、クラスを追加\n\n\tconst wel = document.querySelectorAll('.js-scroll-points');\n\tconst el = document.querySelectorAll('.js-scroll-point');\n\tlet elpos = [];\n\tlet welpos = [];\n\tlet winH, docH;\n\n\tfunction setPos() {\n\t\twinH = window.innerHeight;\n\t\tdocH = document.body.clientHeight;\n\t\telpos = [];\n\t\twelpos = [];\n\t\tvar scTop = window.pageYOffset || document.documentElement.scrollTop;\n\t\t[].forEach.call(el, function (el) {\n\t\t\tvar rect = el.getBoundingClientRect();\n\t\t\telpos.push([el, rect.top + scTop - winH * .7])\n\t\t});\n\n\t\t[].forEach.call(wel, function (el) {\n\t\t\tvar rect = el.getBoundingClientRect();\n\t\t\twelpos.push([el, rect.top + scTop - winH * .7])\n\t\t});\n\t}\n\n\tsetTimeout(function() {\n\t\tsetPos();\n\t\ttrigger(window, 'scroll');\n\t}, 1000);\n\n\n\twindow.addEventListener('scroll', function(e) {\n\t\tconst scTop = window.pageYOffset || document.documentElement.scrollTop;\n\n\t\t//一番下までスクロールされていれば全て処理\n\t\tif(scTop + winH >= docH) {\n\t\t\telpos.forEach(function(v,i) {\n\t\t\t\tv[0].classList.add('is-fire');\n\t\t\t});\n\t\t\twelpos.forEach(function(v,i) {\n\t\t\t\tvar innerEl = v[0].querySelectorAll('.js-tran');\n\t\t\t\t[].forEach.call(innerEl, function (el, i) {\n\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\tel.classList.add('is-fire');\n\t\t\t\t\t}, 400 * i)\n\t\t\t\t});\n\t\t\t});\n\t\t} else {\n\t\t\telpos.forEach(function(v,i) {\n\t\t\t\tif (scTop >= v[1]) {\n\t\t\t\t\tv[0].classList.add('is-fire');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\twelpos.forEach(function(v,i) {\n\t\t\t\tif (scTop >= v[1]) {\n\t\t\t\t\tvar innerEl = v[0].querySelectorAll('.js-tran');\n\t\t\t\t\t[].forEach.call(innerEl, function (el, i) {\n\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\tel.classList.add('is-fire');\n\t\t\t\t\t\t}, 280 * i)\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t});\n\n if (!myDevice.isTouchDevice) {\n\t\twindow.addEventListener('resize', setPos);\n\t}\n\twindow.addEventListener('changeHeight', setPos);\n\n}\n","import {BREAK_POINTS} from '../settings';\nimport {myDevice} from './device';\n\nexport default function() {\n //ハンバーガーメニュークリックと画面サイズに応じて aria 属性とクラス名の切り替え\n let elWrapper,elBtns,elTarget, elBody, scTop, elHtml;\n\n function init() {\n\t\telBody = document.querySelector('body');\n elHtml = document.querySelector('html');\n elWrapper = document.querySelector('.js-gnav-wrapper');\n elBtns = document.querySelectorAll('.js-gnav-toggle');\n const targetId = document.querySelector('.js-gnav-toggle').getAttribute('aria-controls');\n\t\telTarget = document.getElementById(targetId);\n if(window.innerWidth > BREAK_POINTS.ltSP) {\n show();\n } else {\n hide();\n }\n\n [].forEach.call(elBtns, el => {\n el.addEventListener('click', clickHandle)\n })\n }\n\n\tfunction setElmsAttribute(elms, name, value) {\n\t\t[].forEach.call(elms, el => {\n\t\t\tel.setAttribute(name, value);\n\t\t});\n\t}\n\n\tfunction hide() {\n\t\telBody.classList.remove('is-fix');\n\t\twindow.scrollBy(0, scTop);\n\t\tsetTimeout(function() {\n\t\t\telHtml.classList.remove('is-fix');\n\t\t},250);\n\t\tsetElmsAttribute(elBtns, \"aria-expanded\", false);\n\t\telTarget.setAttribute(\"aria-hidden\", true);\n\t\t[].forEach.call(elBtns, el => {\n\t\t\tel.classList.remove('is-active');\n\t\t});\n\t}\n\n\tfunction show() {\n\t\tscTop = window.pageYOffset || document.documentElement.scrollTop;\n\t\tsetTimeout(function() {\n\t\t\telHtml.classList.add('is-fix');\n\t\t\telBody.classList.add('is-fix');\n\t\t},250);\n\t\tsetElmsAttribute(elBtns, \"aria-expanded\", true);\n\t\telTarget.setAttribute(\"aria-hidden\", false);\n\t\t[].forEach.call(elBtns, el => {\n\t\t\tel.classList.add('is-active');\n\t\t});\n\t}\n\n function toggleAtributes() {\n if(elTarget.getAttribute('aria-hidden') == \"true\") {\n\t\t\tshow();\n } else {\n\t\t\thide();\n }\n }\n\n function clickHandle(e) {\n e.preventDefault();\n toggleAtributes();\n }\n\n window.addEventListener('DOMContentLoaded', init);\n\tif(!myDevice.isTouchDevice) {\n\t\twindow.addEventListener('resize', init);\n\t}\n}\n","import {myDevice} from './device.js';\n\nfunction langNavToggle() {\n //ハンバーガーメニュークリックと画面サイズに応じて aria 属性とクラス名の切り替え\n const toggleBtns = document.querySelectorAll('.js-lang-toggle');\n const targetId = document.querySelector('.js-lang-toggle').getAttribute('aria-controls');\n\tconst expandTarget = document.getElementById(targetId);\n\n\n\tfunction setElmsAttribute(elms, name, value) {\n\t\t[].forEach.call(elms, el => {\n\t\t\tel.setAttribute(name, value);\n\t\t});\n\t}\n\n\tfunction hide() {\n\t\tsetElmsAttribute(toggleBtns, \"aria-expanded\", false);\n\t\texpandTarget.setAttribute(\"aria-hidden\", true);\n\t\t[].forEach.call(toggleBtns, btn => {\n\t\t\tbtn.classList.remove('is-active');\n\t\t});\n\t}\n\n\tfunction show() {\n\t\tsetElmsAttribute(toggleBtns, \"aria-expanded\", true);\n\t\texpandTarget.setAttribute(\"aria-hidden\", false);\n\t\t[].forEach.call(toggleBtns, btn => {\n\t\t\tbtn.classList.add('is-active');\n\t\t});\n\t}\n\n function toggleAtributes() {\n if(expandTarget.getAttribute('aria-hidden') == \"true\") {\n\t\t\tshow();\n } else {\n\t\t\thide();\n }\n }\n\n function clickHandle(e) {\n e.preventDefault();\n toggleAtributes();\n }\n\n\t[].forEach.call(toggleBtns, btn => {\n\t\tbtn.addEventListener('click', clickHandle)\n\t})\n}\n\nexport {langNavToggle};\n","export class MyTab {\n\n constructor(wrapElId) {\n\t\tthis.selectedPanel = false;\n\t\tthis.wrapEl = document.getElementById(wrapElId);\n\t\tif(!this.wrapEl) {\n\t\t\treturn false;\n\t\t}\n this.tabList = this.wrapEl.querySelector('[role=\"tablist\"]');\n\t\tthis.lists = this.wrapEl.querySelectorAll('[role=\"tab\"]');\n\t\tthis.panels = this.wrapEl.querySelectorAll('[role=\"tabpanel\"]');\n this.focusIndex = 0;\n\n [].forEach.call(this.lists, (btn) => {\n btn.addEventListener('click', (e) => {\n const btnEl = e.currentTarget;\n const targetId = btnEl.getAttribute('aria-controls');\n const target = document.getElementById(targetId);\n [].forEach.call(this.lists, (list) => {\n list.setAttribute('aria-selected', 'false');\n list.setAttribute('tabindex', '-1');\n });\n [].forEach.call(this.panels, (panel) => {\n panel.setAttribute('hidden', 'hidden');\n });\n target.removeAttribute('hidden');\n btnEl.setAttribute('aria-selected', 'true');\n btnEl.setAttribute('tabindex', '0');\n btnEl.focus();\n this.focusIndex = [].slice.call(this.lists).indexOf(btnEl);\n var event = new CustomEvent(\"tabChanged\",{\n detail: {\n currentBtn: btnEl,\n currentPanel: target\n }\n });\n this.wrapEl.dispatchEvent(event);\n });\n });\n\n this.tabList.addEventListener(\"keydown\", e => {\n if (e.keyCode === 39 || e.keyCode === 37) {\n if (e.keyCode === 39) {\n this.focusIndex++;\n if (this.focusIndex >= this.lists.length) { // 最後にいる場合は、最初に移動\n this.focusIndex = 0;\n }\n\n } else if (e.keyCode === 37) { // 左に移動\n this.focusIndex--;\n if (this.focusIndex < 0) { // 最初にいる場合は、最後に移動\n this.focusIndex = this.lists.length - 1;\n }\n }\n var event = new CustomEvent(\"click\");\n this.lists[this.focusIndex].dispatchEvent(event);\n }\n });\n\t}\n\n element() {\n return this.wrapEl;\n }\n\n}\n","export default function() {\n\tconst accordions = document.querySelectorAll('.js-accordion');\n\n\t[].forEach.call(accordions, (item) => {\n\t\tconst summary = item.querySelector('summary');\n\t\tconst content = item.querySelector('.js-accordion-content');\n\t\tconst options = { fill: \"forwards\", duration: 350 };\n\t\tlet isAnimation = false;\n\t\titem.style.overflow = \"hidden\";\n\n\t\tsummary.onclick = (e) => {\n\t\t\te.preventDefault();\n\t\t\tconst summaryHeight = summary.offsetHeight;\n\t\t\tlet animate;\n\t\t\tlet contentHeight;\n\t\t\tif(!isAnimation) {\n\t\t\t\tisAnimation = true;\n\t\t\t\tif(item.open) {\n\t\t\t\t\tcontentHeight = content.offsetHeight;\n\t\t\t\t\tanimate = item.animate( { height: [contentHeight + summaryHeight +'px', summaryHeight +'px'] }, options );\n\t\t\t\t\tanimate.finished.then( (anim) => {\n\t\t\t\t\t\titem.open = false;\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\titem.open = true;\n\t\t\t\t\tcontentHeight = content.offsetHeight;\n\t\t\t\t\tanimate = item.animate( { height: [summaryHeight +'px', contentHeight + summaryHeight +'px'] }, options );\n\t\t\t\t}\n\t\t\t\tanimate.finished.then( (anim) => {\n\t\t\t\t\tisAnimation = false;\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n\n\twindow.onresize = (e) => {\n\t\t[].forEach.call(accordions, (item) => {\n\t\t\tconst summary = item.querySelector('summary');\n\t\t\tconst content = item.querySelector('.js-accordion-content');\n\t\t\tconst resizeOptions = { fill: \"forwards\", duration: 0 };\n\t\t\tconst summaryHeight = summary.offsetHeight;\n\t\t\tif(item.open) {\n\t\t\t\tconst contentHeight = content.offsetHeight;\n\t\t\t\tanimate = item.animate( { height: [contentHeight + summaryHeight +'px', contentHeight + summaryHeight +'px'] }, resizeOptions );\n\t\t\t} else {\n\t\t\t\tanimate = item.animate( { height: [summaryHeight +'px', summaryHeight +'px'] }, resizeOptions );\n\t\t\t}\n\t\t});\n\t};\n}\n","import { BREAK_POINTS } from './settings';\nimport addARIACurrent from './module/addARIACurrent';\nimport {fadeToggle} from './module/fade';\nimport {slideToggle} from './module/slide';\nimport scroll2AddClass from './module/scroll2AddClass';\nimport gnavToggle from './module/gnavToggle';\nimport {langNavToggle} from './module/langNavToggle';\nimport {MyTab} from './module/MyTab.js';\nimport accordion from './module/accordion.js';\n(function () {\n\n window.addEventListener('DOMContentLoaded', function(e) {\n addARIACurrent();\n slideToggle();\n scroll2AddClass();\n\t\taccordion();\n\n\t\tconst tab = new MyTab('js-tab');\n\t\tif(tab) {\n\t\t\tconst element = tab.element();\n\t\t}\n\n\t\tconst searchModal = this.document.getElementById('js-search-modal');\n const searchToggleBtns = document.querySelectorAll('.js-search-toggle');\n [].forEach.call(searchToggleBtns, function (searchToggleBtn) {\n\t\t\tsearchToggleBtn.addEventListener('click',function(e) {\n\t\t\t\te.preventDefault();\n\t\t\t\tif(searchModal.classList.contains('is-show')) {\n\t\t\t\t\tsearchModal.classList.remove('is-show');\n\t\t\t\t} else {\n\t\t\t\t\tsearchModal.classList.add('is-show');\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n const unitEl = document.querySelectorAll('.js-fade-unit');\n [].forEach.call(unitEl, function (el) {\n const btn = el.querySelector('.js-fade-switch')\n const elTarget = el.querySelector('.js-fade-target');\n btn.addEventListener('click', function(e) {\n fadeToggle(e.currentTarget, elTarget);\n })\n });\n\n\t\tconst sunitEl = document.querySelectorAll('.js-slide-unit');\n\n\t\t[].forEach.call(sunitEl, function (el) {\n\t\t\tconst sbtn = el.querySelector('.js-slide-switch')\n\t\t\tconst selTarget = el.querySelector('.js-slide-target');\n\t\t\tsbtn.addEventListener('click', function(e) {\n\t\t\t\tslideToggle(el.currentTarget, selTarget);\n\t\t\t});\n\t\t});\n\n\t\tif ( window.innerWidth < BREAK_POINTS.gtTAB) {\n\t\t\tconst spunitEl = document.querySelectorAll('.js-sp-slide-unit');\n\n\t\t\t[].forEach.call(spunitEl, function (el) {\n\t\t\t\tconst sbtn = el.querySelector('.js-sp-slide-switch')\n\t\t\t\tconst selTarget = el.querySelector('.js-sp-slide-target');\n\t\t\t\tsbtn.addEventListener('click', function(e) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\te.currentTarget.querySelector('.p-icon-toggle').classList.toggle('is');\n\t\t\t\t\tslideToggle(el.currentTarget, selTarget);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n });\n\n\tconst header = document.querySelector('.l-header');\n\n window.addEventListener('scroll', function(e) {\n\t\tvar scTop = window.pageYOffset || document.documentElement.scrollTop;\n\t\tif(scTop > 100) {\n\t\t\theader.classList.add('is-scrolled');\n\t\t} else {\n\t\t\theader.classList.remove('is-scrolled');\n\t\t}\n });\n\n\tgnavToggle();\n\tlangNavToggle();\n\n})();\n"],"names":["BREAK_POINTS","path","location","pathname","mainLink","document","querySelectorAll","pageLink","catLink","match","querySelector","setAttribute","forEach","call","el","getAttribute","classList","contains","closest","a","remove","items","length","fadeOut","elBtn","elTarget","d","Promise","resolve","reject","style","display","opacity","transition","setTimeout","addEventListener","e","target","once","fadeIn","console","log","fadeToggle","compStyles","window","getComputedStyle","prm","getPropertyValue","element","event","obj","CustomEvent","dispatchEvent","detail","params","bubbles","cancelable","evt","createEvent","initCustomEvent","slideUp","duration","height","offsetHeight","transitionProperty","transitionDuration","transitionTimingFunction","overflow","paddingTop","paddingBottom","marginTop","marginBottom","removeProperty","trigger","slideDown","slideToggle","Error","add","ua","navigator","userAgent","toLowerCase","isTouch","isAndroid","isTouchDevice","indexOf","myDevice","wel","elpos","welpos","winH","docH","setPos","innerHeight","body","clientHeight","scTop","pageYOffset","documentElement","scrollTop","rect","getBoundingClientRect","push","top","v","i","innerEl","elWrapper","elBtns","elBody","elHtml","init","targetId","getElementById","innerWidth","ltSP","show","hide","clickHandle","setElmsAttribute","elms","name","value","scrollBy","toggleAtributes","preventDefault","langNavToggle","toggleBtns","expandTarget","btn","MyTab","wrapElId","selectedPanel","wrapEl","tabList","lists","panels","focusIndex","btnEl","currentTarget","list","panel","removeAttribute","focus","slice","currentBtn","currentPanel","keyCode","accordions","item","summary","content","options","fill","isAnimation","onclick","summaryHeight","animate","contentHeight","open","finished","then","anim","onresize","resizeOptions","addARIACurrent","scroll2AddClass","accordion","tab","searchModal","searchToggleBtns","searchToggleBtn","unitEl","sunitEl","sbtn","selTarget","gtTAB","spunitEl","toggle","header","gnavToggle"],"mappings":"AAAA,IAAMA,YAAY,GAAG;AAAE,EAAA,MAAA,EAAQ,GAAV;AAAe,EAAA,OAAA,EAAS,GAAxB;AAA6B,EAAA,OAAA,EAAS,GAAtC;EAA2C,MAAQ,EAAA,GAAA;AAAnD,CAArB;;ACAe,uBAAY,IAAA;AAEzB;AACA,EAAA,IAAMC,IAAI,GAAGC,QAAQ,CAACC,QAAtB,CAAA;AACA,EAAA,IAAMC,QAAQ,GAAGC,QAAQ,CAACC,gBAAT,CAA0B,gBAA1B,CAAjB,CAAA;AACA,EAAA,IAAMC,QAAQ,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