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YD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgB1B,EAAS9H,IAAM,EAEhC,OAAOoH,EAAoBQ,EAAEC,IAG1BoC,EAAqBC,KAAwB,kBAAIA,KAAwB,mBAAK,GAClFD,EAAmBpI,QAAQ6H,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,I,GC/CvF,IAAII,EAAsBjD,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,SAC1GiD,EAAsBjD,EAAoBQ,EAAEyC,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/util/shpq.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/common/events.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/common/modal.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/common/accordion.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/config.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/util/params.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/common/main.es6","webpack:///../html/member/lp/ChuKansoubun202407/assets/es6/main.es6","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/jsonp chunk loading","webpack:///webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","export default class SHPQ {\n constructor() {\n this.storageKey = '/member/lp/ChuKansoubun202407';\n this.state = '';\n this.device = this.deviceCheck();\n this.query = this.getQuery();\n this.hash = location.hash;\n this.path = location.pathname;\n this.availableCSSanim = 'transition' in document.body.style;\n this.init();\n }\n\n init() {}\n\n /* ------------------------------------------------------------------------------------------\n Helper Functions\n -------------------------------------------------------------------------------------------- */\n\n //User Agent取得\n deviceCheck() {\n const u = window.navigator.userAgent.toLowerCase();\n return {\n tablet:\n (u.indexOf('windows') != -1 && u.indexOf('touch') != -1 && u.indexOf('tablet pc') == -1) ||\n u.indexOf('ipad') != -1 ||\n (u.indexOf('android') != -1 && u.indexOf('mobile') == -1) ||\n (u.indexOf('firefox') != -1 && u.indexOf('tablet') != -1) ||\n u.indexOf('kindle') != -1 ||\n u.indexOf('silk') != -1 ||\n u.indexOf('playbook') != -1,\n mobile:\n (u.indexOf('windows') != -1 && u.indexOf('phone') != -1) ||\n u.indexOf('iphone') != -1 ||\n u.indexOf('ipod') != -1 ||\n (u.indexOf('android') != -1 && u.indexOf('mobile') != -1) ||\n (u.indexOf('firefox') != -1 && u.indexOf('mobile') != -1) ||\n u.indexOf('blackberry') != -1,\n };\n }\n\n getQuery() {\n //パラメータ取得\n const arg = {};\n const pair = location.search.substring(1).split('&');\n for (let i = 0; pair[i]; i++) {\n let kv = pair[i].split('=');\n arg[kv[0]] = kv[1];\n }\n return arg;\n }\n\n saveStorage(datas) {\n const date = new Date();\n datas.expire = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59).getTime();\n localStorage.setItem(this.storageKey, JSON.stringify(datas));\n }\n\n getStorage() {\n const datas = JSON.parse(localStorage.getItem(this.storageKey));\n if (!datas) return {};\n if (datas.expire < new Date().getTime()) {\n localStorage.removeItem(this.storageKey);\n return {};\n }\n return datas;\n }\n\n clearStorage() {\n localStorage.clear(this.storageKey);\n }\n}\n","export default class Events {\n constructor() {\n this.datas = SHPQ.getStorage();\n this.init();\n }\n\n init() {\n this.setModalInBack();\n this.closeModalInNrw();\n\n const that = this;\n\n //直前まで開いていたタブ\n const lastTab = this.datas.lastTab || 0;\n\n this.setTab(lastTab);\n\n //直前まで開いていたモーダル\n const lastModal = this.datas.lastModal;\n\n const openBtns = document.querySelectorAll('.js-modal_open');\n const closeBtns = document.querySelectorAll('.js-modal_close');\n\n openBtns.forEach((openBtn) => {\n const modalID = openBtn.getAttribute('data-modalid');\n\n openBtn.addEventListener('click', () => {\n if (lastModal) {\n this.datas.lastModal = null;\n }\n this.datas.lastModal = modalID;\n SHPQ.saveStorage(this.datas);\n });\n });\n\n //モーダルを閉じたらストレージの記録削除\n closeBtns.forEach((closeBtn) => {\n closeBtn.addEventListener('click', () => {\n this.datas.lastModal = null;\n SHPQ.saveStorage(this.datas);\n });\n });\n\n //タブの切り替え\n const tablists = document.querySelectorAll('.js-tablist');\n\n tablists.forEach((tablist, index) => {\n tablist.addEventListener('click', () => {\n let isMenu = document.querySelector('.is-current-menu');\n let isTab = document.querySelector('.is-current-tab');\n const trigger = tablist.getAttribute('data-tablist');\n const tgt = `[data-tabcontainer=\"${trigger}\"]`;\n console.log(isMenu);\n\n if (isMenu) {\n isMenu.classList.remove('is-current-menu');\n }\n if (isTab) {\n isTab.classList.remove('is-current-tab');\n }\n tablist.classList.add('is-current-menu');\n const target = document.querySelector(tgt);\n if (target) {\n target.classList.add('is-current-tab');\n }\n\n isMenu = tablist;\n isTab = target;\n\n // まなびライブラリーおもしろいランキングは、縦をフルにする\n that.changeManabiHeight(trigger);\n\n that.datas.lastTab = index;\n SHPQ.saveStorage(that.datas);\n });\n });\n }\n\n //ブラウザバック時のタブの復元\n setTab(_lastTab) {\n const tablist = document.querySelectorAll('.js-tablist');\n const tgtTab = tablist[_lastTab];\n const trigger = tgtTab.getAttribute('data-tablist');\n const tgt = `[data-tabcontainer=\"${trigger}\"]`;\n let isMenu = document.querySelector('.is-current-menu');\n let isTab = document.querySelector('.is-current-tab');\n\n window.addEventListener('pageshow', () => {\n const entries = performance.getEntriesByType('navigation');\n entries.forEach((entry) => {\n if (entry.type === 'back_forward') {\n if (isMenu) {\n isMenu.classList.remove('is-current-menu');\n }\n if (isTab) {\n isTab.classList.remove('is-current-tab');\n }\n\n tgtTab.classList.add('is-current-menu');\n const target = document.querySelector(tgt);\n if (target) {\n target.classList.add('is-current-tab');\n }\n\n // コンテンツの高さ調整\n this.changeManabiHeight(trigger);\n }\n });\n });\n }\n\n //ブラウザバック時のモーダルの復元\n setModalInBack() {\n const lastModal = this.datas.lastModal;\n const modals = document.querySelectorAll('.js-modal');\n\n window.addEventListener('pageshow', () => {\n const entries = performance.getEntriesByType('navigation');\n entries.forEach((entry) => {\n if (entry.type === 'back_forward') {\n modals.forEach((modal) => {\n let modalID = modal.getAttribute('data-modalID');\n if (modalID === lastModal) {\n modal.classList.add('-active');\n } else {\n modal.classList.remove('-active');\n }\n });\n }\n });\n });\n }\n\n // コンテンツ高さを変える\n changeManabiHeight(key) {\n const lower = document.querySelector('.lower');\n if (/interest/.test(key) || /tips/.test(key)) {\n lower.classList.add('-h100');\n } else {\n lower.classList.remove('-h100');\n }\n }\n\n // スマホ幅でモーダルを閉じる\n closeModalInNrw() {\n const modals = document.querySelectorAll('.js-modal');\n const nrwWidth = 768;\n\n window.addEventListener('resize', () => {\n const windowWidth = window.innerWidth;\n if (windowWidth <= nrwWidth) {\n modals.forEach((modal) => {\n if (modal.classList.contains('-active')) {\n modal.classList.remove('-active');\n }\n });\n }\n });\n }\n}\n","export default class Modal {\n constructor() {\n this.init();\n }\n\n init() {\n this.eventBind();\n }\n\n resetEvent() {\n this.eventBind('reset');\n }\n\n eventBind(resetOption) {\n const openbuttons = [...document.querySelectorAll('.js-modal_open')];\n const closebuttons = [...document.querySelectorAll('.js-modal_close')];\n // const modals = [...document.querySelectorAll('.js-modal')];\n\n const handleOpen = (e) => {\n e.preventDefault();\n const modalID = e.currentTarget.getAttribute('data-modalID');\n const tgtmodal = document.querySelector(`.js-modal[data-modalID=${modalID}]`);\n\n switch (modalID) {\n case 'stampcard':\n tgtmodal.setAttribute('data-stamp', 'stamp');\n\n break;\n }\n\n document.body.classList.add('-lock');\n tgtmodal && tgtmodal.classList.add('-active');\n window.scroll({\n top: 0,\n behavior: 'smooth',\n });\n };\n\n const handleClose = (e) => {\n document.body.classList.remove('-lock');\n // modals.forEach((el) => el.classList.remove('-active'));\n e.currentTarget.closest('.js-modal').classList.remove('-active');\n };\n\n openbuttons.forEach((el) => {\n resetOption && el.removeEventListener('click', handleOpen);\n el.addEventListener('click', handleOpen);\n });\n\n closebuttons.forEach((el) => {\n resetOption && el.removeEventListener('click', handleClose);\n el.addEventListener('click', handleClose);\n });\n }\n}\n","export default class Accordion {\n constructor() {\n this.init();\n }\n\n init() {\n this.setAcc();\n }\n\n setAcc() {\n const allAcc = document.querySelectorAll('.js-acc');\n\n allAcc.forEach((acc) => {\n const btn = acc.querySelector('.js-acc-btn');\n const more = acc.querySelector('.js-acc-more');\n const wrapper = acc.querySelector('.js-acc-more-wrapper');\n\n btn.addEventListener('click', () => {\n if (acc.classList.contains('is-open')) {\n acc.classList.remove('is-open');\n more.style.height = 0 + 'px';\n } else {\n acc.classList.add('is-open');\n const contHeight = wrapper.offsetHeight;\n more.style.height = contHeight + 'px';\n }\n });\n });\n }\n}\n","export const Config = {\n // パラメータの使用(false でも一部使用)\n USE_PARAM: true,\n};\n","import { Config } from '../config.es6';\n\nexport default class Param {\n\n constructor() {\n\n this.ARG = {}; // パラメータのオブジェクト\n this.TODAY = new Date(); // 今日の日付\n this.init();\n\n }\n\n init() {\n\n // パラメータを取得\n this.getParam();\n\n // パラメータの使用\n if (Config.USE_PARAM) {\n // 今日の日付を変更\n this.changeToday();\n }\n\n }\n\n getParam() {\n\n const param = location.search.substring(1).split('&');\n\n // 取得したパラメータをオブジェクトに格納\n for (let i = 0; param[i]; i++) {\n let key = param[i].split('=');\n this.ARG[key[0]] = key[1];\n }\n\n }\n\n changeToday() {\n\n if (this.ARG.date) {\n let dateTime = this.ARG.date;\n dateTime += this.ARG.time ? ' ' + this.ARG.time : '';\n this.TODAY = new Date(dateTime);\n }\n\n }\n\n getUpdate(date) {\n\n const regex = /^(\\d+)\\/(\\d+)\\/(\\d+)$/;\n\n // タイマーが日付のみで更新時間が設定されている場合は、更新時間を追加\n if (date.match(regex) && Config.UPDATE_TIME) {\n date += ' ' + Config.UPDATE_TIME;\n }\n\n return new Date(date);\n\n }\n\n inheritParams() {\n const param = document.location.search;\n const urls = document.querySelectorAll('.js-url');\n for(let i = 0; i < urls.length; i++) {\n const href = urls[i].getAttribute('href');\n const _href = href + param;\n urls[i].setAttribute('href', _href);\n }\n }\n}","import gsap from 'gsap';\nimport SHPQ from '../util/shpq';\nimport Events from '../common/events';\nimport Modal from '../common/modal';\nimport Accordion from '../common/accordion';\nimport Params from '../util/params';\n\nwindow.$ = window.jQuery = $; // jQueryをグローバルスコープでも使えるように\nexport default class Main {\n constructor() {\n gsap.config({ nullTargetWarn: false });\n this.init();\n }\n\n init() {\n window.SHPQ = new SHPQ();\n this.events = new Events();\n this.modal = new Modal();\n this.accordion = new Accordion();\n\n this.params = new Params();\n this.params.inheritParams();\n }\n}\n","import Main from './common/main';\nconst main = new Main();\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkbuild\"] = self[\"webpackChunkbuild\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [736], function() { return __webpack_require__(8024); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","SHPQ","this","storageKey","state","device","deviceCheck","query","getQuery","hash","location","path","pathname","availableCSSanim","document","body","style","init","u","window","navigator","userAgent","toLowerCase","tablet","indexOf","mobile","arg","pair","search","substring","split","i","kv","datas","date","Date","expire","getFullYear","getMonth","getDate","getTime","localStorage","setItem","JSON","stringify","parse","getItem","removeItem","clear","Events","getStorage","setModalInBack","closeModalInNrw","that","lastTab","setTab","lastModal","openBtns","querySelectorAll","closeBtns","forEach","openBtn","modalID","getAttribute","addEventListener","saveStorage","closeBtn","tablist","index","isMenu","querySelector","isTab","trigger","tgt","console","log","classList","remove","add","target","changeManabiHeight","_lastTab","tgtTab","performance","getEntriesByType","entry","type","modals","modal","key","lower","test","innerWidth","contains","Modal","eventBind","resetOption","openbuttons","closebuttons","handleOpen","e","preventDefault","currentTarget","tgtmodal","setAttribute","scroll","top","behavior","handleClose","closest","el","removeEventListener","Accordion","setAcc","acc","btn","more","wrapper","height","contHeight","offsetHeight","Config","USE_PARAM","Param","ARG","TODAY","getParam","changeToday","param","dateTime","time","match","UPDATE_TIME","urls","length","_href","$","jQuery","Main","gsap","nullTargetWarn","events","accordion","params","Params","inheritParams","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","splice","r","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}