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,MAAe,CACrE,IAAIL,KAAY4C,EACZ7C,EAAoByB,EAAEoB,EAAa5C,KACrCD,EAAoBS,EAAER,GAAY4C,EAAY5C,IAGhD,GAAG6C,EAAS,IAAInC,EAASmC,EAAQ9C,GAGlC,IADG4C,GAA4BA,EAA2BzQ,GACrDyB,EAAIgN,EAAStJ,OAAQ1D,IACzB8O,EAAU9B,EAAShN,GAChBoM,EAAoByB,EAAEgB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgB7B,EAAShN,IAAM,EAEhC,OAAOoM,EAAoBU,EAAEC,IAG1BoC,EAAqBC,KAAwB,kBAAIA,KAAwB,mBAAK,GAClFD,EAAmBpL,QAAQgL,EAAqB9I,KAAK,KAAM,IAC3DkJ,EAAmBjP,KAAO6O,EAAqB9I,KAAK,KAAMkJ,EAAmBjP,KAAK+F,KAAKkJ,I,GC/CvF,IAAIE,EAAsBjD,EAAoBU,OAAEP,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,QAC1GiD,EAAsBjD,EAAoBU,EAAEuC,G","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/common/config/config.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/_bookdata.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/_jsonloader.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/_branch.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/common/utils/array.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/_recommend.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/_scrollevent.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/intro/main.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/branches/main.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/kanso/_dom.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/kanso/main.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/ui/main.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top.es6","webpack:///../html/member/lp/Kansonomori2024/assets/sp/es6/top/main.es6","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/global","webpack:///webpack/runtime/harmony module decorator","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};","const Config = {\n image_dir_common: \"./assets/img/\",\n image_dir: \"./assets/sp/img/\",\n json_file: \"./assets/data/data.json\",\n};\n\nexport default Config;\n","import Config from \"../../common/config/config\";\n\nexport default class BookData {\n constructor(data) {\n this.data = data;\n this._init();\n }\n\n get _allData() {\n return this.data();\n }\n\n get _bookFile() {\n return `${this.BOOK_PATH + this.data[\"会社識別子\"] + this.data[\"コンテンツID\"]}.jpg`;\n }\n\n get _title() {\n return this.data[\"タイトル\"];\n }\n\n get _usrDatas() {\n return this.USER_DATAS;\n }\n\n get _tags() {\n return this.TAGS;\n }\n\n get _link() {\n return `/member/ShowContents?contentsCd=${this.data['会社識別子'] + this.data['コンテンツID']}`;\n }\n\n get _author() {\n return this.data[\"作者\"];\n }\n\n get _publish() {\n return this.data[\"出版社\"];\n }\n\n get _excerpt() {\n return this.data[\"コンテンツ説明文\"];\n }\n\n get _bindData() {\n return { title: this._title, bookfile: this._bookFile, tags: this._tags, link: this._link, author: this._author, publish: this._publish, excerpt: this._excerpt };\n }\n\n _init() {\n this.BOOK_PATH = `${Config.image_dir_common}top/books/`;\n this.USER_DATAS = this._setUsrData();\n this.TAGS = this._setTags();\n }\n\n _setTags() {\n this.TAGS = [];\n\n for (let i = 1; i <= 5; i++) {\n const tag = this.data[`タグ${i}`];\n if (tag != \"\") this.TAGS.push(tag);\n }\n\n return this.TAGS;\n }\n\n _setUsrData() {\n this.USER_DATAS = [];\n\n for (let i = 1; i <= 5; i++) {\n const grade = this.data[`学年${i}`];\n const name = this.data[`ペンネーム${i}`];\n const kanso = this.data[`感想${i}`];\n\n if (kanso != \"\") {\n this.USER_DATAS.push({ 学年: grade, ペンネーム: name, 感想: kanso });\n }\n }\n\n return this.USER_DATAS;\n }\n}\n","import Config from \"../../common/config/config\";\nimport BookData from \"./_bookdata\";\n\nexport default class JsonLoader {\n constructor() {\n this._init();\n }\n\n /**\n * JSONデータの読み込み\n * @param {function} JSON読み込み完了後のコールバック\n */\n start(callback) {\n this.callback = callback;\n this._load();\n }\n\n _init() {\n this.JSON_URL = Config.json_file;\n\n // s1:小学校低学年、s2:小学校中学年、s3:小学校高学年、chu:中学生\n this.books = {\n s1: [],\n s2: [],\n s3: [],\n chu: [],\n };\n }\n\n _load() {\n const xhr = new XMLHttpRequest();\n xhr.open(\"GET\", this.JSON_URL);\n xhr.withCredentials = true;\n xhr.setRequestHeader(\"Content-Type\", \"application/json\");\n xhr.onload = () => {\n this._parseJson(JSON.parse(xhr.response));\n if (this.callback) this.callback(this.books);\n };\n xhr.onerror = () => {\n console.log(xhr.status);\n };\n xhr.send();\n }\n\n _parseJson(datas) {\n datas.some((data) => {\n const grade = data[\"対象学年\"];\n const book = new BookData(data);\n\n if (grade == \"小学校低学年\") this.books[\"s1\"].push(book);\n else if (grade == \"小学校中学年\") this.books[\"s2\"].push(book);\n else if (grade == \"小学校高学年\") this.books[\"s3\"].push(book);\n else if (grade == \"中学生\") this.books[\"chu\"].push(book);\n });\n }\n}\n","import Config from \"../../common/config/config\";\n\nexport default class Branch {\n constructor(books, index, grade, isTitle) {\n this.books = books;\n this.index = index;\n this.grade = grade;\n this.isTitle = isTitle;\n this.typeIndex = ((this.index - 1) % 8) + 1;\n this._init();\n }\n\n update() {\n //const sy = window.pageYOffset;\n //const oy = this.$self.getBoundingClientRect().top + sy;\n //const triggerpos = sy + window.innerHeight;\n\n if (!this.$self.classList.contains(\"-active\")) {\n //if(triggerpos >= oy){\n this._attention();\n this.$self.classList.add(\"-active\");\n //}\n }\n }\n\n _init() {\n this.nowIndex = -1;\n\n this.$inner = document.querySelector(\".js-main-inner-sp\");\n this.$self = null;\n this.$books = null;\n this._create();\n this._ui();\n }\n\n _create() {\n // const tag = `\n //
\n //
\n //
\n //
\n // ${this._getTitleTag()}\n //
\n //
\n // ${this._getBooksTag()}\n //
\n //
`;\n\n const tag = `\n
\n
\n ${this._getTitleTag()}\n
\n
\n ${this._getBooksTag()}\n
\n
`;\n\n this.$inner.insertAdjacentHTML(\"beforeend\", tag);\n this.$self = this.$inner.lastElementChild;\n this.$main = this.$self.querySelector(\".branches__main\");\n this.items = this.$self.querySelectorAll(\".branches__item\");\n }\n\n _getTitleTag() {\n // spでは方向を分けない\n if (!this.isTitle) return \"\";\n // const vect = (this.index%2 == 0) ? 'l' : 'r';\n // return `

\"\"

`;\n return `

\"\"

`;\n }\n\n _getBooksTag() {\n let tags = \"\";\n\n for (let i = 0; i < this.books.length; i++) {\n tags += `\n
\n
\"${this.books[i]._title}\"
\n
\n
\n

${this._getBaText(this.books[i])}

\n
\n
\n
`;\n }\n\n return tags;\n }\n\n _getBaText(book) {\n if (book._usrDatas.length == 0) return \"\";\n\n let text = book._usrDatas[0][\"感想\"].trim();\n if (text.length > 20) text = `${text.substr(0, 17)}...`;\n return text;\n }\n\n _ui() {\n [...this.$self.querySelectorAll(\".branches__item\")].forEach(($book) => {\n $book.addEventListener(\"click\", () => {\n const data = this.books[$book.getAttribute(\"data-index\")];\n window.manabiKansoSP.show(data, this.grade);\n });\n });\n }\n\n /**\n * 定期的なアテンション処理\n * @param _delay {number}\n */\n _attention(_delay) {\n let delay = _delay ? _delay : 0;\n\n this.nowIndex = Math.floor(Math.random() * this.items.length);\n const $target = this.items[this.nowIndex];\n\n if ($target.classList.contains(\"-active\")) {\n $target.classList.add(\"-att\");\n\n setTimeout(() => {\n $target.classList.remove(\"-att\");\n }, 3000);\n\n if (this.items.length === 1) {\n delay = Math.floor(Math.random() * 2000) + 2500;\n } else {\n delay = Math.floor(Math.random() * 2000) + 2000;\n }\n }\n\n setTimeout(() => {\n this._attention();\n }, delay);\n }\n}\n","/**\n * @classdesc 配列系のユーティリティ クラス\n */\nexport default class ArrayUtils{\n\n /**\n * 配列をシャッフルする\n */\n static shuffleArray(array){\n\n for(let i=array.length-1; i>=0; i--){\n const j = Math.floor(Math.random() * (i + 1));\n [array[i], array[j]] = [array[j], array[i]];\n }\n \n return array;\n }\n\n\n /**\n * Arrayから重複なく値を取り出す\n */\n static getRandomSelect(array, num){\n const a = array;\n const t = [];\n const r = [];\n let l = a.length;\n let n = num < l ? num : l;\n\n while(n-- > 0){\n let i = Math.random() * l | 0;\n r[n] = t[i] || a[i];\n --l;\n t[i] = t[l] || a[l];\n }\n\n return r;\n }\n}\n","import ArrayUtils from \"../../common/utils/array\";\n\nexport default class Recommend {\n constructor() {\n this._init();\n }\n\n _init() {\n this.$book = document.querySelector(\".js-pageHeader__recommend__book-sp\");\n this.$bookImg = this.$book.querySelector(\"img\");\n\n this.$book.addEventListener(\"click\", () => {\n window.manabiKansoSP.show(this.datas, this.grade);\n });\n\n document.querySelector(\".js-pageHeader__recommend__title-sp\").addEventListener(\"click\", () => {\n window.manabiKansoSP.show(this.datas, this.grade);\n });\n }\n\n setup(books) {\n this.grade = \"\";\n this.datas = this._getRandomBook(books);\n this.$bookImg.setAttribute(\"src\", this.datas._bookFile);\n }\n\n _getRandomBook(books) {\n this.grade = ArrayUtils.shuffleArray([\"s1\", \"s2\", \"s3\", \"chu\"])[0];\n return ArrayUtils.shuffleArray(books[this.grade])[0];\n }\n}\n","import Config from \"../../common/config/config\";\nexport default class ScrollEvent {\n constructor() {\n this._init();\n }\n\n start(branchList) {\n this.branchList = branchList;\n this.$books = document.querySelectorAll(\".branches__item\");\n window.addEventListener(\"resize\", this._checkScrollPos.bind(this));\n window.addEventListener(\"scroll\", this._checkScrollPos.bind(this));\n this._checkScrollPos();\n this._branchUpdate();\n }\n\n _init() {\n this.wh = window.innerHeight;\n this.scrolled_y = window.pageYOffset;\n }\n\n _checkScrollPos() {\n this.wh = window.innerHeight;\n this.scrolled_y = window.pageYOffset;\n //this._branchUpdate();\n this._bookItemUpdate();\n this._fixContent();\n }\n\n _branchUpdate() {\n for (let i = 0; i < this.branchList.length; i++) {\n this.branchList[i].update();\n }\n }\n\n _bookItemUpdate() {\n [...this.$books].forEach(($book) => {\n const oy = $book.getBoundingClientRect().top + this.scrolled_y;\n // const sy = this.scrolled_y+this.wh*0.5;\n const sy = this.scrolled_y + this.wh * 0.8;\n\n if (sy >= oy) {\n if (!$book.classList.contains(\"-active\")) {\n const delay = Math.random() * 700;\n\n setTimeout(() => {\n $book.classList.add(\"-active\");\n }, delay);\n }\n }\n });\n }\n\n _fixContent() {\n const owl = document.getElementById(\"owl\");\n const topbtn = document.querySelector(\".c-visible_nrw .c-topbtn\");\n const questionary = document.getElementById(\"qform\");\n\n if (owl && topbtn && questionary) {\n const questionaryTop = questionary.offsetTop;\n\n this.scrolled_y = window.pageYOffset;\n this.wh = window.innerHeight;\n\n if (this.scrolled_y + this.wh >= questionaryTop + 10) {\n owl.classList.remove(\"-fixed\");\n topbtn.classList.remove(\"-fixed\");\n } else {\n owl.classList.add(\"-fixed\");\n topbtn.classList.add(\"-fixed\");\n }\n }\n }\n}\n","import { TweenMax, TimelineMax, Power2, Back } from \"gsap\";\n\nexport default class Intro {\n constructor() {\n this._init();\n }\n\n start(callback = null) {\n this.callback = callback;\n\n if (window.innerWidth <= 768) {\n this._initAnime();\n this._setAnime();\n }\n }\n\n _init() {\n this.$main = document.querySelector(\".c-main\");\n this.$page_title = document.querySelector(\".pageHeader__title-sp\");\n this.$recommend = document.querySelector(\".pageHeader__recommend-sp\");\n this.$recommend_title = document.querySelector(\".pageHeader__recommend-sp__title\");\n this.$recommend_book = document.querySelector(\".pageHeader__recommend-sp__book img\");\n this.branches = document.querySelectorAll(\".branches\");\n }\n\n _initAnime() {\n TweenMax.set(this.$page_title, { opacity: 0, rotation: 40, xPercent: 30 });\n TweenMax.set(this.$recommend, { opacity: 0, rotation: 40, xPercent: 30 });\n TweenMax.set(this.$recommend_title, { opacity: 0, rotation: -20 });\n TweenMax.set(this.$recommend_book, { opacity: 0, scale: 0.5 });\n TweenMax.set(this.branches, { opacity: 0, top: 20 });\n }\n\n _setAnime() {\n const tl = new TimelineMax();\n tl.call(this._showMain.bind(this), null, null, 0.5).call(this._showHeader.bind(this), null, null, 0.75).call(this._showHBranch.bind(this), null, null, 1);\n\n TweenMax.set(this.$main, { opacity: 0, visibility: \"visible\" });\n }\n\n _showMain() {\n TweenMax.to(this.$main, 0.5, { opacity: 1, ease: Power2.out });\n }\n\n _showHeader() {\n TweenMax.to(this.$page_title, 0.8, { opacity: 1, rotation: 0, xPercent: 0, ease: Back.easeOut.config(1.7) });\n TweenMax.to(this.$recommend, 0.8, { delay: 0.1, opacity: 1, rotation: 0, xPercent: 0, ease: Back.easeOut.config(1.7) });\n TweenMax.to(this.$recommend_title, 0.35, { delay: 1.0, opacity: 1, rotation: 0, ease: Back.easeOut.config(1.7) });\n TweenMax.to(this.$recommend_book, 0.35, { delay: 1.1, opacity: 1, scale: 1, ease: Power2.out });\n }\n\n _showHBranch() {\n TweenMax.to(this.branches, 0.7, { opacity: 1, top: 0, ease: Power2.out });\n if (this.callback) this.callback();\n }\n}\n","import JsonLoader from \"./_jsonloader\";\nimport Branch from \"./_branch\";\nimport Recommend from \"./_recommend\";\nimport ScrollEvent from \"./_scrollevent\";\nimport Intro from \"../intro/main\";\n\nexport default class Branches {\n constructor() {\n this._init();\n }\n\n _init() {\n this.books = {};\n this.createCount = 0;\n\n this.loader = new JsonLoader();\n this.loader.start(this._jsonLoaded.bind(this));\n }\n\n _jsonLoaded(books) {\n this.branchList = [];\n this.books = books;\n this._createBranch(\"s1\");\n this._createBranch(\"s2\");\n this._createBranch(\"s3\");\n this._createBranch(\"chu\");\n\n this.recommend = new Recommend();\n this.recommend.setup(this.books);\n\n this.intro = new Intro();\n this.intro.start(() => {});\n\n this.sce = new ScrollEvent();\n this.sce.start(this.branchList);\n }\n\n _createBranch(grade) {\n const datas = this.books[grade];\n if (datas.length == 0) return;\n\n const maxIndex = Math.ceil(datas.length / 2);\n const split = this._splitArray(datas, 2);\n\n for (let i = 0; i < maxIndex; i++) {\n const isTitle = i == 0 ? true : false;\n const branch = new Branch(split[i], ++this.createCount, grade, isTitle);\n this.branchList.push(branch);\n }\n }\n\n /**\n * n個づつ配列を分割する\n * @param array {Array} 分割もtの配列\n * @param n {int} 分割個数\n * @returns {Array}\n */\n _splitArray(array, n) {\n return array.reduce((a, c, i) => (i % n == 0 ? [...a, [c]] : [...a.slice(0, -1), [...a[a.length - 1], c]]), []);\n }\n}\n","import Config from \"../../common/config/config\";\n\nexport default class KansoDOM {\n constructor() {\n this._init();\n }\n\n setBook(bookData) {\n this._updateBookDom(bookData);\n }\n\n setUser(userData) {\n this._updateUserDom(userData);\n }\n\n change(datas, isInit = false) {\n this.datas = datas;\n this._updateUserDom();\n this._updateDom();\n }\n\n reset() {\n this.$book.setAttribute(\"src\", \"\");\n this.$usrName.innerHTML = \"\";\n this.$usrText.innerHTML = \"\";\n this.$title.innerHTML = \"\";\n this.$author.innerHTML = \"\";\n this.$publish.innerHTML = \"\";\n this.$excerpt.innerHTML = \"\";\n this.$tags.innerHTML = \"\";\n }\n\n _init() {\n this._setBaseDom();\n\n this.$self = document.querySelector(\".kanso-sp\");\n this.$usrName = this.$self.querySelector(\".js-kanso-username\");\n this.$usrText = this.$self.querySelector(\".js-kanso-usertext\");\n this.$book = this.$self.querySelector(\".js-book\");\n this.$readbtn = this.$self.querySelector(\".kanso__readbtn\");\n this.$tags = this.$self.querySelector(\".js-kanso-tags\");\n this.$title = this.$self.querySelector(\".js-kanso-title\");\n this.$author = this.$self.querySelector(\".js-kanso-author\");\n this.$publish = this.$self.querySelector(\".js-kanso-publish\");\n this.$excerpt = this.$self.querySelector(\".js-kanso-excerpt\");\n }\n\n _setBaseDom() {\n const tag = `\n
\n
\n
\n

\n

\n
\n
\n
    \n
\n

\n
\"\"
\n

\n

\n \n

\n
\n
\"PREV\"
\n
\"NEXT\"
\n
\"閉じる\"
\n
\n
`;\n\n document.body.insertAdjacentHTML(\"beforeend\", tag);\n }\n\n _updateUserDom(userData) {\n this.$usrName.innerHTML = `${userData[\"学年\"]} ${userData[\"ペンネーム\"]}`;\n this.$usrText.innerHTML = userData[\"感想\"];\n }\n\n _updateBookDom(bookData) {\n this.$book.setAttribute(\"src\", bookData.bookfile);\n\n this.$title.innerHTML = bookData.title;\n // this.$author.innerHTML = `[作] ${bookData.author}`;\n this.$author.innerHTML = `${bookData.author}`;\n this.$publish.innerHTML = `[出版社] ${bookData.publish}`;\n this.$excerpt.innerHTML = bookData.excerpt;\n\n if (bookData.link == \"\") {\n this.$readbtn.style.display = \"none\";\n } else {\n this.$readbtn.style.display = \"block\";\n const envURL = document.querySelector(\".js-envurl\").getAttribute(\"href\");\n this.$readbtn.querySelector(\"a\").setAttribute(\"href\", envURL + bookData.link);\n }\n\n for (let i = 0; i < bookData.tags.length; i++) {\n const tag = `
  • ${bookData.tags[i]}
  • `;\n this.$tags.insertAdjacentHTML(\"beforeend\", tag);\n }\n }\n}\n","import { TweenMax, Power2 } from \"gsap\";\n\nimport KansoDOM from \"./_dom\";\n\nexport default class Kanso {\n constructor() {\n this._init();\n }\n\n show(data, grade) {\n this.data = data;\n this.grade = grade;\n this.maxIndex = data._usrDatas.length;\n this.dom.setUser(data._usrDatas[this.nowIndex]);\n this.dom.setBook(data._bindData);\n\n TweenMax.set(this.$inner, { opacity: 0, y: 40 });\n TweenMax.to(this.$inner, 0.5, { opacity: 1, y: 0, ease: Power2.out });\n\n this.$self.classList.add(\"-active\");\n this.$self.classList.add(`-${this.grade}`);\n\n // 顔アイコン部分\n this.$usrName.dataset.index = this.nowIndex;\n }\n\n hide() {\n this.$self.classList.remove(\"-active\");\n this.$self.classList.remove(`-${this.grade}`);\n this.dom.reset();\n this.nowIndex = 0;\n this.maxIndex = 0;\n this.grade = \"\";\n\n console.log(this.$self);\n }\n\n _init() {\n this.dom = new KansoDOM();\n this.nowIndex = 0;\n this.maxIndex = 0;\n this.grade = \"\";\n\n this.$self = document.querySelector(\".kanso-sp\");\n this.$inner = this.$self.querySelector(\".kanso__inner\");\n this.$btnPrev = this.$self.querySelector(\".js-kanso-prev\");\n this.$btnNext = this.$self.querySelector(\".js-kanso-next\");\n this.$btnClose = this.$self.querySelector(\".js-kanso-close\");\n this.$usrName = this.$self.querySelector(\".js-kanso-username\");\n this.$usrText = this.$self.querySelector(\".js-kanso-usertext\");\n\n this._ui();\n }\n\n _ui() {\n this.$btnPrev.addEventListener(\"click\", () => {\n --this.nowIndex;\n if (this.nowIndex < 0) this.nowIndex = this.maxIndex - 1;\n this.dom.setUser(this.data._usrDatas[this.nowIndex]);\n\n // 顔アイコン部分\n this.$usrName.dataset.index = this.nowIndex;\n\n this._changeAnime();\n });\n\n this.$btnNext.addEventListener(\"click\", () => {\n ++this.nowIndex;\n if (this.nowIndex >= this.maxIndex) this.nowIndex = 0;\n this.dom.setUser(this.data._usrDatas[this.nowIndex]);\n\n // 顔アイコン部分\n this.$usrName.dataset.index = this.nowIndex;\n\n this._changeAnime();\n });\n\n this.$btnClose.addEventListener(\"click\", () => {\n this.hide();\n });\n\n const $cmain = document.querySelector(\".c-main\");\n if ($cmain.classList.contains(\"-open\")) {\n this.$self.classList.add(\"-open\");\n }\n\n\n const mediaQueryList = window.matchMedia('(min-width: 769px)');\n mediaQueryList.addEventListener(\"change\", e=>{\n if(e.matches) this.hide();\n });\n }\n\n _changeAnime() {\n TweenMax.set([this.$usrName, this.$usrText], { opacity: 0, x: 40 });\n TweenMax.to(this.$usrName, 0.5, { opacity: 1, x: 0, ease: Power2.out });\n TweenMax.to(this.$usrText, 0.5, { delay: 0.15, opacity: 1, x: 0, ease: Power2.out });\n }\n}\n","import {TweenMax, Power2} from 'gsap';\n\n\nexport default class UI{\n\n\n constructor(){\n this._init();\n }\n\n\n _init(){\n this._ui();\n }\n\n\n _ui(){\n\n\n [...document.querySelectorAll('.js-top')].forEach(($elem)=>{\n\n $elem.addEventListener('click', (e)=>{\n e.preventDefault();\n TweenMax.to([document.querySelector(\"html\"),document.querySelector(\"body\")], 0.5, {scrollTop:0, ease:Power2.easeOut});\n });\n });\n\n\t\tconst links = document.querySelectorAll('a.js-smooth');\n\t\tfor(let i=0; i{\n\t\t\t\te.preventDefault();\n\t\t\t\tconst $target = document.querySelector($a.getAttribute('href'));\n\t\t\t\tconst targetPos = $target.getBoundingClientRect().top + window.pageYOffset;\n\t\t\t\tTweenMax.to([document.querySelector(\"html\"),document.querySelector(\"body\")], 0.7, {scrollTop:targetPos, ease:Power2.easeOut});\n\t\t\t});\n\t\t}\n\t}\n}\n","import Main from \"./top/main\";\n\nconst main = new Main();\n","import Branches from \"./branches/main\";\nimport Kanso from \"./kanso/main\";\nimport UI from \"./ui/main\";\n\nexport default class Main {\n constructor() {\n this._init();\n }\n\n _init() {\n window.manabiKansoSP = new Kanso();\n this.branches = new Branches();\n this.ui = new UI();\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\tid: moduleId,\n\t\tloaded: false,\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// Flag the module as loaded\n\tmodule.loaded = true;\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__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\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__(122); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","BookData","constructor","data","this","_init","_allData","_bookFile","BOOK_PATH","_title","_usrDatas","USER_DATAS","_tags","TAGS","_link","_author","_publish","_excerpt","_bindData","title","bookfile","tags","link","author","publish","excerpt","_setUsrData","_setTags","i","tag","push","grade","name","kanso","JsonLoader","start","callback","_load","JSON_URL","books","s1","s2","s3","chu","xhr","XMLHttpRequest","open","withCredentials","setRequestHeader","onload","_parseJson","JSON","parse","response","onerror","console","log","status","send","datas","some","book","Branch","index","isTitle","typeIndex","update","$self","classList","contains","_attention","add","nowIndex","$inner","document","querySelector","$books","_create","_ui","_getTitleTag","_getBooksTag","insertAdjacentHTML","lastElementChild","$main","items","querySelectorAll","length","_getBaText","text","trim","substr","forEach","$book","addEventListener","getAttribute","window","manabiKansoSP","show","_delay","delay","Math","floor","random","$target","setTimeout","remove","ArrayUtils","static","array","j","num","a","t","r","l","n","Recommend","$bookImg","setup","_getRandomBook","setAttribute","shuffleArray","ScrollEvent","branchList","_checkScrollPos","bind","_branchUpdate","wh","innerHeight","scrolled_y","pageYOffset","_bookItemUpdate","_fixContent","oy","getBoundingClientRect","top","owl","getElementById","topbtn","questionary","questionaryTop","offsetTop","Intro","innerWidth","_initAnime","_setAnime","$page_title","$recommend","$recommend_title","$recommend_book","branches","opacity","rotation","xPercent","scale","call","_showMain","_showHeader","_showHBranch","visibility","ease","Branches","createCount","loader","_jsonLoaded","_createBranch","recommend","intro","sce","maxIndex","ceil","split","_splitArray","branch","reduce","c","slice","KansoDOM","setBook","bookData","_updateBookDom","setUser","userData","_updateUserDom","change","isInit","_updateDom","reset","$usrName","innerHTML","$usrText","$title","$author","$publish","$excerpt","$tags","_setBaseDom","$readbtn","body","style","display","envURL","Kanso","dom","y","dataset","hide","$btnPrev","$btnNext","$btnClose","_changeAnime","matchMedia","e","matches","x","UI","$elem","preventDefault","scrollTop","links","$a","targetPos","ui","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","id","loaded","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","Object","keys","every","key","splice","d","definition","o","defineProperty","enumerable","get","g","globalThis","Function","hmd","create","children","set","Error","obj","prop","prototype","hasOwnProperty","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}