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vF,IAAII,EAAsB1C,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,SAC1G0C,EAAsB1C,EAAoBQ,EAAEkC,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///../html/member/lp/Kowai202403/assets/es6/top/_main.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/_scroll.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/booklist/_auto-scroll.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/booklist/_insert-html.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/booklist/_modal.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/booklist/_slider.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top/booklist/_booklist.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/top.es6","webpack:///../html/member/lp/Kowai202403/assets/es6/common/_config.es6","webpack:///webpack/bootstrap","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 Main {\r\n constructor() {\r\n this._$main = document.querySelector('.l-main');\r\n\r\n this._init();\r\n }\r\n\r\n _init() {\r\n this._setLoaded();\r\n }\r\n\r\n _setLoaded() {\r\n this._$main.classList.add('-loaded');\r\n }\r\n\r\n get $main() {\r\n return this._$main;\r\n }\r\n\r\n get isNarrow() {\r\n return window.matchMedia('(max-width: 769px)').matches;\r\n }\r\n}\r\n","export default class Scroll {\r\n constructor() {\r\n this.isNarrow = TOP.main.isNarrow;\r\n\r\n this._init();\r\n }\r\n\r\n _init() {\r\n this._setSmoothScroll();\r\n this._setScrollEvent();\r\n }\r\n\r\n _setSmoothScroll() {\r\n const $smoothArr = [...document.querySelectorAll('.js-smooth')];\r\n\r\n $smoothArr.forEach($smooth => this._addClick($smooth));\r\n }\r\n\r\n _addClick($smooth) {\r\n $smooth.addEventListener('click', e => {\r\n e.preventDefault();\r\n\r\n const selector = e.currentTarget.hash || 'html',\r\n $target = document.querySelector(selector),\r\n y = $target.getBoundingClientRect().top,\r\n gap = this.isNarrow ? 44 : 0;\r\n\r\n window.scrollTo({\r\n behavior: 'smooth',\r\n top: window.pageYOffset + y - gap,\r\n });\r\n });\r\n }\r\n\r\n _setScrollEvent() {\r\n const $showArr = [...document.querySelectorAll('[data-show]')],\r\n $animationArr = [...document.querySelectorAll('.js-animation')];\r\n\r\n $showArr.forEach($show => this._setObserve($show, '-active', { rootMargin: '0px 0px -20%' }));\r\n $animationArr.forEach($animation => this._setObserve($animation, '-running'));\r\n }\r\n\r\n _setObserve($el, activeClass, option = {}) {\r\n const setEntries = entries => entries.forEach(entry => this._changeActive(entry, activeClass)),\r\n intersection = new IntersectionObserver(setEntries, option);\r\n\r\n intersection.observe($el);\r\n }\r\n\r\n _changeActive(entry, activeClass) {\r\n if (!entry.isIntersecting && activeClass == '-active') return;\r\n\r\n const method = entry.isIntersecting ? 'add' : 'remove';\r\n\r\n entry.target.classList[method](activeClass);\r\n }\r\n}\r\n","export default class AutoScroll {\r\n constructor() {\r\n this._$kansoArr = [...document.querySelectorAll('.js-kanso')];\r\n }\r\n\r\n setAutoScroll() {\r\n this._$kansoArr.forEach($kanso => {\r\n const $kansoTxtArr = [...$kanso.querySelectorAll('.js-kanso__txt span')],\r\n $kansoTtlArr = [...$kanso.querySelectorAll('.js-kanso__ttl span')];\r\n\r\n this._changeActive($kansoTxtArr[0], $kansoTtlArr[0], 'add');\r\n this._addTransitionend($kanso, $kansoTxtArr, $kansoTtlArr);\r\n });\r\n }\r\n\r\n _changeActive($txtEl, $ttlEl, method) {\r\n $txtEl.classList[method]('-active');\r\n $ttlEl.classList[method]('-active');\r\n }\r\n\r\n _addTransitionend($kanso, $kansoTxtArr, $kansoTtlArr) {\r\n let order = 0;\r\n\r\n $kansoTxtArr.forEach($kansoTxt => {\r\n $kansoTxt.addEventListener('animationend', e => {\r\n if (e.animationName == 'sec__kanso__txt__show') return;\r\n\r\n const $activeTxt = $kanso.querySelector('.js-kanso__txt .-active'),\r\n $activeTtl = $kanso.querySelector('.js-kanso__ttl .-active');\r\n\r\n order++;\r\n order >= $kansoTxtArr.length && (order = 0);\r\n\r\n this._changeActive($activeTxt, $activeTtl, 'remove');\r\n setTimeout(() => this._changeActive($kansoTxtArr[order], $kansoTtlArr[order], 'add'));\r\n });\r\n });\r\n }\r\n}\r\n","import AutoScroll from './_auto-scroll';\r\n\r\nexport default class InsertHtml {\r\n constructor() {\r\n this._autoScroll = new AutoScroll();\r\n }\r\n\r\n setInsertHtml(booklist) {\r\n this.json = booklist.json;\r\n\r\n this.json.forEach((obj, i) => {\r\n const $sec = document.querySelector(`[data-lv='${obj['こわさレベル']}']`);\r\n\r\n this._insertKansoHtml($sec, obj, i);\r\n this._insertBookHtml($sec, obj);\r\n });\r\n\r\n const _kansoAnimation = (retry = 0) => {\r\n document.querySelectorAll('.js-kanso__txt').forEach(($kansoTxt) => {\r\n Array.from($kansoTxt.children).forEach(($kanso) => {\r\n const itemHeight = $kanso.clientHeight,\r\n lineHeight = parseFloat(getComputedStyle($kanso).lineHeight),\r\n second = Math.round(itemHeight / lineHeight) * 3;\r\n\r\n if (retry > 49) {\r\n second = 6;\r\n }\r\n\r\n $kanso.style.animationDuration = `0.5s, ${second}s`;\r\n\r\n if (itemHeight === 0 || (second === 0 && retry <= 50)) {\r\n setTimeout(() => _kansoAnimation(retry + 1), 100);\r\n return;\r\n }\r\n });\r\n });\r\n\r\n if (retry === 0) {\r\n this._autoScroll.setAutoScroll();\r\n }\r\n };\r\n\r\n _kansoAnimation();\r\n }\r\n\r\n _insertKansoHtml($sec, obj, i) {\r\n if (!obj['感想1']) return;\r\n\r\n const $kansoTxt = $sec.querySelector('.js-kanso__txt'),\r\n $kansoTtl = $sec.querySelector('.js-kanso__ttl');\r\n\r\n $kansoTxt.insertAdjacentHTML('beforeend', `${obj['感想1']}`);\r\n $kansoTtl.insertAdjacentHTML('beforeend', `${obj['タイトル']}`);\r\n }\r\n\r\n _insertBookHtml($sec, obj) {\r\n const $row = $sec.querySelector('.js-row'),\r\n ttlRuby = this._getTtlRubyHtml(obj['タイトル(ルビ)']),\r\n html = `
  • \r\n

    \r\n \"${obj['タイトル']}\"\r\n

    \r\n

    ${ttlRuby}

    \r\n

    \r\n この\r\n

    \r\n
  • `;\r\n\r\n $row.insertAdjacentHTML('beforeend', html);\r\n }\r\n\r\n /**\r\n * ルビ付きのタイトルを HTML 形式に変換して返す\r\n * @param {string} str [タイトル(ルビ)]\r\n * @return {string} タイトル\r\n */\r\n _getTtlRubyHtml(str) {\r\n const rubyArr = str.match(/\\(.*?\\)/g);\r\n\r\n if (!rubyArr) return str;\r\n\r\n rubyArr.forEach((ruby) => {\r\n ruby = ruby.slice(1).slice(0, -1);\r\n str = str.replace('[', ``);\r\n str = str.replace(']', '');\r\n });\r\n\r\n return str.replace(/\\(.*?\\)/g, '');\r\n }\r\n}\r\n","export default class Modal {\n constructor() {\n this.$main = TOP.main.$main;\n this.$modal = document.querySelector('.js-modal');\n this._$modalClose = this.$modal.querySelector('.js-modal__close');\n this._$detailLeft = this.$modal.querySelector('.js-detail__left');\n this._$detailThumb = this.$modal.querySelector('.js-detail__thumb img');\n this._$detailBtn = this.$modal.querySelector('.js-detail__btn a');\n this._$detailRight = this.$modal.querySelector('.js-detail__right');\n this._$detailTtl = this.$modal.querySelector('.js-detail__ttl');\n this._$detailAuthor = this.$modal.querySelector('.js-detail__author');\n this._$detailPublisher = this.$modal.querySelector('.js-detail__publisher');\n this._$detailOutline = this.$modal.querySelector('.js-detail__outline');\n this._$kansoInner = this.$modal.querySelector('.js-kanso__inner');\n this._$kansoItemArr = [];\n this.isNarrow = TOP.main.isNarrow;\n this.siteurl = document.querySelector('.js-siteurl');\n\n this._init();\n }\n\n _init() {\n this._addModalClose();\n }\n\n _addModalClose() {\n this._$modalClose.addEventListener('click', () => {\n this.$main.classList.remove('-activeModal');\n\n !this.isNarrow && (document.body.style.overflowY = null);\n });\n }\n\n setModal(booklist) {\n this.json = booklist.json;\n this.slider = booklist.slider;\n\n if (this.isNarrow) {\n this._$detailLeft.replaceWith(...this._$detailLeft.childNodes);\n this._$detailRight.replaceWith(...this._$detailRight.childNodes);\n }\n\n const $modalOpenArr = [...document.querySelectorAll('.js-modal__open')];\n\n $modalOpenArr.forEach($modalOpen => this._addModalOpen($modalOpen));\n }\n\n _addModalOpen($modalOpen) {\n const id = $modalOpen.dataset.id,\n obj = this.json.find(obj => obj['コンテンツID'] == id);\n\n $modalOpen.addEventListener('click', e => {\n e.preventDefault();\n\n this.$modal.dataset.lv = obj['こわさレベル'];\n this._$detailThumb.src = `${CONFIG.PATH.IMG}book/${obj['会社識別子'] + id}.jpg`;\n this._$detailBtn.href = `${this.siteurl.href}member/ShowContents?contentsCd=${obj['会社識別子']}${obj['コンテンツID']}`;\n this._$detailTtl.textContent = obj['タイトル'];\n this._$detailAuthor.textContent = obj['作者'];\n this._$detailPublisher.textContent = obj['出版社'];\n this._$detailOutline.textContent = obj['コンテンツ説明文'];\n this._$kansoInner.innerHTML = this._getKansoHtml(obj);\n this._$kansoItemArr = [...this._$kansoInner.querySelectorAll('.modal__kanso__item')];\n this.slider.order = 0;\n\n const kansoMethod = this._$kansoInner.innerHTML ? 'add' : 'remove',\n onlyMethod = this._$kansoItemArr.length == 1 ? 'add' : 'remove';\n\n this.$main.classList.add('-activeModal');\n this.$modal.classList[kansoMethod]('-kanso');\n this.$modal.classList[onlyMethod]('-only');\n\n !this.isNarrow && (document.body.style.overflowY = 'hidden');\n });\n }\n\n /**\n * みんなの感想を HTML 形式に変換して返す\n * @param {object} obj json から取得したオブジェクト\n * @returns {string}
    ***
    \n */\n _getKansoHtml(obj) {\n let html = '';\n\n for (let i = 1; i <= 5; i++) {\n if (!obj[`感想${i}`]) break;\n\n const active = i == 1 ? ' -active' : '';\n\n html += `
    \n
    ${obj[`学年${i}`]}・${obj[`ペンネーム${i}`]}
    \n
    ${obj[`感想${i}`]}
    \n
    `;\n }\n\n return html;\n }\n\n get $kansoItemArr() {\n return this._$kansoItemArr;\n }\n}\n","export default class Slider {\r\n constructor(booklist) {\r\n this.modal = booklist.modal;\r\n this.$modal = this.modal.$modal;\r\n this._$kansoPrev = this.$modal.querySelector('.js-kanso__prev');\r\n this._$kansoNext = this.$modal.querySelector('.js-kanso__next');\r\n this._order = 0;\r\n }\r\n\r\n setSlider() {\r\n this._$kansoPrev.addEventListener('click', () => {\r\n this._order--;\r\n 0 > this._order && (this._order = this.modal.$kansoItemArr.length - 1);\r\n this._changeActive();\r\n });\r\n\r\n this._$kansoNext.addEventListener('click', () => {\r\n this._order++;\r\n this._order > this.modal.$kansoItemArr.length - 1 && (this._order = 0);\r\n this._changeActive();\r\n });\r\n }\r\n\r\n _changeActive() {\r\n const $active = this.$modal.querySelector('.-active');\r\n\r\n $active.classList.remove('-active');\r\n this.modal.$kansoItemArr[this._order].classList.add('-active');\r\n }\r\n\r\n set order(num) {\r\n this._order = num;\r\n }\r\n}\r\n","import InsertHtml from './_insert-html';\r\nimport Modal from './_modal';\r\nimport Slider from './_slider';\r\n\r\nexport default class Booklist {\r\n constructor() {\r\n this._insertHtml = new InsertHtml();\r\n this.modal = new Modal();\r\n this.slider = new Slider(this);\r\n\r\n this._init();\r\n }\r\n\r\n _init() {\r\n this._getJson();\r\n }\r\n\r\n _getJson() {\r\n fetch(CONFIG.PATH.JSON)\r\n .then(response => response.json())\r\n .then(data => this._setJson(data));\r\n }\r\n\r\n _setJson(data) {\r\n this.json = data;\r\n\r\n this._insertHtml.setInsertHtml(this);\r\n this.modal.setModal(this);\r\n this.slider.setSlider();\r\n }\r\n}\r\n","import { Config } from './common/_config';\nimport Main from './top/_main';\nimport Scroll from './top/_scroll';\nimport Booklist from './top/booklist/_booklist';\n\nwindow.CONFIG = Config;\nwindow.TOP = {};\n\nwindow.addEventListener('DOMContentLoaded', () => {\n TOP.main = new Main();\n TOP.scroll = new Scroll();\n TOP.booklist = new Booklist();\n});\n","export const Config = {\n PATH: {\n IMG: 'assets/img/',\n JSON: 'assets/js/bookdata.json',\n },\n};\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","__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\t550: 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__(5598); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","Main","this","_$main","document","querySelector","_init","_setLoaded","classList","add","window","matchMedia","matches","Scroll","isNarrow","TOP","main","_setSmoothScroll","_setScrollEvent","querySelectorAll","forEach","$smooth","_addClick","addEventListener","e","preventDefault","selector","currentTarget","hash","y","getBoundingClientRect","top","gap","scrollTo","behavior","pageYOffset","$showArr","$animationArr","$show","_setObserve","rootMargin","$animation","$el","activeClass","option","setEntries","entries","entry","_changeActive","intersection","IntersectionObserver","observe","isIntersecting","method","target","AutoScroll","_$kansoArr","$kanso","$kansoTxtArr","$kansoTtlArr","_addTransitionend","$txtEl","$ttlEl","order","$kansoTxt","animationName","$activeTxt","$activeTtl","length","setTimeout","InsertHtml","_autoScroll","booklist","json","obj","i","$sec","_insertKansoHtml","_insertBookHtml","_kansoAnimation","retry","Array","from","children","itemHeight","clientHeight","lineHeight","parseFloat","getComputedStyle","second","Math","round","style","animationDuration","setAutoScroll","$kansoTtl","insertAdjacentHTML","$row","ttlRuby","_getTtlRubyHtml","html","CONFIG","PATH","IMG","str","rubyArr","match","ruby","slice","replace","Modal","$main","$modal","_$modalClose","_$detailLeft","_$detailThumb","_$detailBtn","_$detailRight","_$detailTtl","_$detailAuthor","_$detailPublisher","_$detailOutline","_$kansoInner","_$kansoItemArr","siteurl","_addModalClose","remove","body","overflowY","slider","replaceWith","childNodes","$modalOpen","_addModalOpen","id","dataset","find","lv","src","href","textContent","innerHTML","_getKansoHtml","kansoMethod","onlyMethod","Slider","modal","_$kansoPrev","_$kansoNext","_order","$kansoItemArr","num","Booklist","_insertHtml","_getJson","fetch","JSON","then","response","data","_setJson","setInsertHtml","setModal","setSlider","scroll","__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","key","splice","r","g","globalThis","Function","o","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}