{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/javascript/packs/stamp_rallies/show.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","howToModal","howToOpen","howToClose","rewardModal","resetButton","rewardButton","checkPoints","document","getElementsByClassName","stampRally","localStorage","getItem","loadingScreen","getElementById","setFillHeight","vh","window","innerHeight","documentElement","style","setProperty","concat","hideLoading","classList","add","judgeAllButtonChecked","checkPointsArray","parsedStampRally","checked","localCheckPoints","stamp_rallies","gon","stamp_rally_slug","check_points","is_multiple_check_point","showStampMultipleCheckPoint","imgDomList","length","loadPromiseArr","forEach","img","push","Promise","resolve","reject","timeout","onload","setAttribute","parentElement","remove","clearTimeout","src","dataset","image","setTimeout","performance","now","all","then","err","alert","loadStamps","filter","imgElm","slug","clear_point","clearPoint","stampArrayOn","Array","slice","count","map","el","getAttribute","keys","newDataSlugArray","stampArrayOff","dataSlugArray","dataslug","_toConsumableArray","Set","localCheckPointsKey","_loop","obj_off","obj_on","j","displayCheckedStamp","JSON","parse","attachTriggerIfInitAll","addEventListener","scrollTop","lotteryCompleteCheck","exchanged_lottery","confirm","setItem","stringify","location","reload"],"mappings":"aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX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AAS,WACvCvF,EAAYoB,UAAUC,IAAI,aAE1B8B,YAAW,WACW/C,SAASC,uBAAuB,uBAAuB,GAC/DmF,UAAY,CAC1B,GAAG,IACL,IAqCFC,GACF,IAEA5E,OAAO0E,iBAAiB,SAAU5E,E","file":"js/stamp_rallies/show-ecc504696e07852e9711.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 22);\n","//変数定義\nlet howToModal = null;\nlet howToOpen = null;\nlet howToClose = null;\nlet rewardModal = null;\nlet resetButton = null;\nlet rewardButton = null;\n\nconst checkPoints = document.getElementsByClassName(\"collection-item\");\nconst stampClear = document.getElementsByClassName(\"stamp-clear\");\nconst stampRally = localStorage.getItem(\"stamp_rallies\");\n\nconst loadingScreen = document.getElementById(\"loading-screen\");\n/**\n * =======================================================\n */\n\n/**\n * 初期化関数\n * =======================================================\n */\n\n// モーダル\nconst initModal = () => {\n howToModal = document.getElementById(\"howto\");\n howToOpen = document.getElementById(\"howto-open\");\n howToClose = document.getElementById(\"howto-close\");\n rewardButton = document.getElementById(\"reward-btn\");\n rewardModal = document.getElementById(\"reward-modal\");\n resetButton = document.getElementById(\"reset-btn\");\n};\n\n/**\n * =======================================================\n */\n\n/**\n * 処理関数\n * =======================================================\n */\n\nconst setFillHeight = () => {\n const vh = window.innerHeight * 0.01;\n document.documentElement.style.setProperty(\"--vh\", `${vh}px`);\n};\n\nconst hideLoading = () => {\n loadingScreen.classList.add(\"is-hidden\");\n};\n\n//遊び方のボタン表示・非表示\nconst switchModal = () => {\n if (howToOpen) {\n howToOpen.addEventListener(\"click\", () => {\n howToModal.classList.remove(\"howto-is-hidden\");\n });\n }\n if (howToClose) {\n howToClose.addEventListener(\"click\", () => {\n howToModal.classList.add(\"howto-is-hidden\");\n // modal is-hiddenのtransition時間の関係で0.3秒後としてます\n setTimeout(() => {\n const howToInner = document.getElementsByClassName(\"howto__inner\")[0];\n howToInner.scrollTop = 0;\n }, 300);\n });\n }\n};\n\nconst loadStamps = (imgDomList) => {\n let loadStartTime;\n\n if (imgDomList.length === 0 && loadingScreen) {\n hideLoading();\n return;\n }\n\n const loadPromiseArr = [];\n\n imgDomList.forEach((img) => {\n loadPromiseArr.push(\n new Promise((resolve, reject) => {\n let timeout;\n\n img.onload = () => {\n img.setAttribute(\"data-get\", true);\n if (img.parentElement.classList[0] == 'no-action') {\n img.parentElement.classList.remove('no-action');\n }\n clearTimeout(timeout);\n resolve();\n };\n img.src = img.dataset.image;\n\n timeout = setTimeout(() => {\n reject(\"timeout\");\n }, 20000);\n })\n );\n });\n\n loadStartTime = performance.now();\n Promise.all(loadPromiseArr)\n .then(() => {\n if (loadingScreen) {\n hideLoading();\n }\n })\n .catch((err) => {\n if (err && err === \"timeout\") {\n alert(\"読み込みがタイムアウトしました。ページを再読み込みしてください\");\n return;\n }\n\n alert(\"エラー:スタンプ画像の読み込みに失敗しました\");\n });\n};\n\nconst judgeAllButtonChecked = (checkPointsArray, parsedStampRally) => {\n let checked = false;\n let localCheckPoints =\n parsedStampRally.stamp_rallies[gon.stamp_rally_slug].check_points;\n\n if (!gon.is_multiple_check_point) {\n const loadImgList = checkPointsArray.filter((imgElm) => {\n return typeof localCheckPoints[imgElm.dataset.slug] != \"undefined\";\n });\n\n loadStamps(loadImgList);\n } else {\n // gon.is_multiple_check_point = trueのとき\n // 1箇所のチェックポイントで 複数回チェックイン可能設定のとき\n showStampMultipleCheckPoint(localCheckPoints);\n }\n if (gon.clear_point > 0) {\n clearPoint = gon.clear_point;\n } else {\n clearPoint = checkPointsArray.length;\n }\n if (gon.is_multiple_check_point) {\n const stampArrayOn = Array.prototype.slice.call(\n document.getElementsByClassName(\"collection-item-on\")\n );\n let count = 0;\n stampArrayOn.map((el) => {\n if (el.getAttribute(\"data-get\") == \"true\") count += 1;\n });\n if (count >= clearPoint) checked = true;\n }\n if (clearPoint <= Object.keys(localCheckPoints).length) {\n checked = true;\n }\n return checked;\n};\n\nconst getDataSlugVariation = (checkPointsArray) => {\n let newDataSlugArray = new Array();\n checkPointsArray.map((el) => {\n dataslug = el.getAttribute(\"data-slug\");\n newDataSlugArray.push(dataslug);\n });\n newDataSlugArray = [...new Set(newDataSlugArray)];\n return newDataSlugArray;\n};\n\nconst showStampMultipleCheckPoint = (localCheckPoints) => {\n const stampArrayOff = Array.prototype.slice.call(\n document.getElementsByClassName(\"collection-item-off\")\n );\n const stampArrayOn = Array.prototype.slice.call(\n document.getElementsByClassName(\"collection-item-on\")\n );\n const dataSlugArray = getDataSlugVariation(stampArrayOff);\n const localCheckPointsKey = Object.keys(localCheckPoints);\n\n for (let i = 0; i < dataSlugArray.length; i++) {\n dataSlugArray[i] = {\n slug: dataSlugArray[i],\n obj_off: [],\n obj_on: [],\n };\n // dataSlugArrayに、slug(パラメータ)に応じたスタンプ要素on/offのデータ格納\n stampArrayOff.map((el) => {\n if (el.getAttribute(\"data-slug\") == dataSlugArray[i].slug)\n dataSlugArray[i].obj_off.push(el);\n });\n stampArrayOn.map((el) => {\n if (el.getAttribute(\"data-slug\") == dataSlugArray[i].slug)\n dataSlugArray[i].obj_on.push(el);\n });\n localCheckPointsKey.map((el) => {\n // localstorageにパラメーター(スタンプ)があるカテゴリ\n if (el == dataSlugArray[i].slug) {\n let count = localCheckPoints[el].count;\n for (let j = 0; j < dataSlugArray[i].obj_off.length; j++) {\n // countの数だけonに\n if (j < count) {\n dataSlugArray[i].obj_off[j].classList.add(\"is-hidden\");\n dataSlugArray[i].obj_on[j].setAttribute(\"data-get\", true);\n dataSlugArray[i].obj_on[j].classList.remove(\"is-hidden\");\n }\n }\n }\n });\n }\n hideLoading();\n};\n\n//報酬ボタンの表示\nconst enableRewardButton = () => {\n rewardButton.classList.remove(\"c-btn__unable\");\n};\n\nconst disableRewardButton = () => {\n rewardButton.classList.add(\"c-btn__unable\");\n};\n\n//スタンプ全ゲット時 報酬ボタンの挙動\nconst showRewardModal = () => {\n rewardButton.addEventListener(\"click\", () => {\n if (rewardModal != null) {\n rewardModal.classList.remove(\"is-hidden\");\n }\n });\n};\n\n//スタンプ全リセットボタンの挙動\nconst resetButtonFunc = () => {\n if (!resetButton) return;\n resetButton.addEventListener(\"click\", () => {\n const result = window.confirm(\"スタンプをリセットします。よろしいですか?\");\n if (result) {\n const parsedStampRally = JSON.parse(stampRally);\n let delete_stamp_rally = parsedStampRally.stamp_rallies;\n delete delete_stamp_rally[gon.stamp_rally_slug];\n localStorage.setItem(\"stamp_rallies\", JSON.stringify(parsedStampRally));\n location.reload();\n }\n });\n};\n\nconst closeModalBtn = () => {\n if (document.getElementById(\"reward-modal-btn\") != null) {\n const rewardModalBtn = document.getElementById(\"reward-modal-btn\");\n rewardModalBtn.addEventListener(\"click\", () => {\n rewardModal.classList.add(\"is-hidden\");\n // modal is-hiddenのtransition時間の関係で0.3秒後としてます\n setTimeout(() => {\n const rewardInner = document.getElementsByClassName(\"reward-modal__inner\")[0];\n rewardInner.scrollTop = 0;\n }, 300);\n });\n }\n};\n\n//獲得したスタンプの表示\nconst displayCheckedStamp = () => {\n let checkPointsArray = Array.prototype.slice.call(checkPoints);\n const parsedStampRally = JSON.parse(stampRally);\n\n if (parsedStampRally && parsedStampRally.stamp_rallies[gon.stamp_rally_slug]) {\n checked = judgeAllButtonChecked(checkPointsArray, parsedStampRally);\n if (checked && rewardButton) {\n enableRewardButton();\n }\n } else {\n hideLoading();\n }\n};\n\nconst attachTriggerIfInitAll = () => {\n switchModal();\n displayCheckedStamp();\n};\n\nconst lotteryCompleteCheck = () => {\n if (gon.exchanged_lottery && rewardButton) {\n disableRewardButton();\n }\n};\n\nwindow.addEventListener(\"load\", () => {\n initModal();\n setFillHeight();\n attachTriggerIfInitAll();\n resetButtonFunc();\n showRewardModal();\n closeModalBtn();\n lotteryCompleteCheck();\n});\n\nwindow.addEventListener(\"resize\", setFillHeight);\n"],"sourceRoot":""}