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GAChBf,EAAoB2B,EAAES,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOrC,EAAoBQ,EAAEC,EAC9B,EAEIoC,EAAqBC,KAAwB,kBAAIA,KAAwB,mBAAK,GAClFD,EAAmBvE,QAAQgE,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,IC/CvF,IAAII,EAAsBjD,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,WAAa,OAAOH,EAAoB,IAAM,IAChHiD,EAAsBjD,EAAoBQ,EAAEyC,E","sources":["webpack:///webpack/runtime/chunk loaded","webpack:///./src/taiken/es6/top/scrollfunc.es6","webpack:///./src/taiken/es6/top.es6","webpack:///./src/taiken/es6/top/main.es6","webpack:///webpack/bootstrap","webpack:///webpack/runtime/define property getters","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};","import { gsap } from 'gsap';\nimport { ScrollTrigger } from 'gsap/ScrollTrigger';\nimport { ScrollToPlugin } from 'gsap/ScrollToPlugin';\n\ngsap.registerPlugin(ScrollTrigger);\ngsap.registerPlugin(ScrollToPlugin);\n\nexport default class ScrollFunc {\n constructor() {\n this.headerOffset = 0;\n this.toTopBtnGap = 35;\n this.init();\n }\n\n init() {\n this.smoothScroll();\n this.setNumForAdjustment();\n window.addEventListener('load', () => {\n this.onScroll();\n\n // テンプレート側のツールチップが3000ms後に出現するので待つ\n setTimeout(() => {\n this.refresh();\n }, 3100);\n });\n\n // リサイズ後に実行\n let timeoutID = 0;\n let delay = 200;\n\n window.addEventListener(\n 'resize',\n () => {\n clearTimeout(timeoutID);\n timeoutID = setTimeout(() => {\n this.refresh();\n this.setNumForAdjustment();\n }, delay);\n },\n false\n );\n }\n\n refresh() {\n ScrollTrigger.refresh();\n }\n\n setNumForAdjustment() {\n if (window.innerWidth > 768) {\n this.headerOffset = 60;\n } else {\n this.headerOffset = 70;\n }\n }\n\n onScroll() {\n // 汎用フェードインに使用\n const revealElm = document.querySelectorAll('.js-scrollreveal');\n\n [...revealElm].forEach((el) => {\n ScrollTrigger.create({\n trigger: el,\n start: 'top 80%',\n //markers: true,\n onEnter: () => {\n el.classList.add('-reveal');\n },\n });\n });\n\n // 個別の動きに使用\n const funcElm = document.querySelectorAll('.js-scrollfunc,.js-scrollfunc-up');\n\n [...funcElm].forEach((el) => {\n ScrollTrigger.create({\n trigger: el,\n start: 'top 80%',\n //markers: true,\n onEnter: () => {\n el.classList.add('-scrollin');\n },\n });\n });\n\n const toTopBtn = document.querySelector('.js-totoplink');\n const that = this;\n\n ScrollTrigger.create({\n trigger: '.nm__footer',\n start: `top bottom-=${that.toTopBtnGap}`,\n onEnter: () => {\n toTopBtn.classList.add('-absolute');\n },\n onLeaveBack: () => {\n toTopBtn.classList.remove('-absolute');\n },\n });\n }\n\n smoothScroll() {\n const triggers = document.querySelectorAll('.js-smoothscroll');\n const pagetop = document.querySelectorAll('.js-pagetop');\n\n triggers.forEach((el) => {\n el.addEventListener('click', (e) => {\n e.preventDefault();\n const hash = el.getAttribute('href');\n gsap.to(window, { duration: 1, scrollTo: { y: hash, offsetY: this.headerOffset }, ease: 'circ.inOut' });\n });\n });\n\n pagetop.forEach((el) => {\n el.addEventListener('click', (e) => {\n e.preventDefault();\n gsap.to(window, { duration: 1, scrollTo: { y: 0 }, ease: 'circ.inOut' });\n });\n });\n }\n}\n","import Top from './top/main.es6';\n\nconst top = new Top();\n","import ScrollFunc from './scrollfunc.es6';\n\nexport default class Main {\n constructor() {\n window.addEventListener('DOMContentLoaded', () => {\n this.init();\n });\n }\n\n init() {\n this.scrollfunc = new ScrollFunc();\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","// 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__.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\t684: 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[chunkId] = 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, [121], function() { return __webpack_require__(290); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","gsap","registerPlugin","ScrollTrigger","ScrollToPlugin","ScrollFunc","constructor","this","headerOffset","toTopBtnGap","init","smoothScroll","setNumForAdjustment","window","addEventListener","onScroll","setTimeout","refresh","timeoutID","clearTimeout","innerWidth","document","querySelectorAll","forEach","el","create","trigger","start","onEnter","classList","add","toTopBtn","querySelector","onLeaveBack","remove","triggers","pagetop","e","preventDefault","hash","getAttribute","to","duration","scrollTo","y","offsetY","ease","scrollfunc","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","d","definition","o","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""}