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AAQC,IAAI,sCAGRvB,GAAUA,EAAOgC,WACnBhC,EAAOgC,UAAUf,IAGvB,EACD,CACF,IAEFI,OAAOY,IACNX,QAAQW,MAAM,4CAA6CA,EAAM,GAEvE,C","sources":["webpack://9th-builder-front/./app/javascript/images/ sync ^\\.\\/.*$","webpack://9th-builder-front/./app/javascript/javascripts/common/cookiechoices.js","webpack://9th-builder-front/./app/javascript/packs/home.js","webpack://9th-builder-front/./app/javascript/packs/serviceWorkerRegistration.js"],"sourcesContent":["var map = {\n\t\"./9th_builder.png\": 15018,\n\t\"./9th_builder.webp\": 77435,\n\t\"./account/admin.png\": 89978,\n\t\"./account/admin2.png\": 94994,\n\t\"./account/avatar.png\": 23028,\n\t\"./account/help.png\": 59750,\n\t\"./account/iconlist.png\": 94760,\n\t\"./account/iconlist2.png\": 98920,\n\t\"./account/logout.png\": 65037,\n\t\"./account/pref.png\": 64744,\n\t\"./account/tournois.png\": 90812,\n\t\"./card-cover-battle.png\": 74516,\n\t\"./card-cover-essenceOfWar.png\": 40015,\n\t\"./card-cover-ninthAge.png\": 93686,\n\t\"./card-cover-theOldWorld.png\": 97724,\n\t\"./card-cover.png\": 49603,\n\t\"./cart/map_icon_std_orange.svg\": 99358,\n\t\"./cart/map_icon_text_bordered.svg\": 73759,\n\t\"./cart/map_icon_text_indigo.svg\": 19400,\n\t\"./cart/map_icon_text_red.svg\": 62103,\n\t\"./cart/map_icon_violet.svg\": 34643,\n\t\"./cart/map_icon_yellow.svg\": 4690,\n\t\"./en/add_army_folder.png\": 33281,\n\t\"./en/all_armies.png\": 64144,\n\t\"./en/all_army_singularity.png\": 51812,\n\t\"./en/all_magic_banners.png\": 54350,\n\t\"./en/all_magic_item_categories.png\": 42639,\n\t\"./en/all_magics.png\": 71743,\n\t\"./en/all_model_rules.png\": 7876,\n\t\"./en/all_versions.png\": 95384,\n\t\"./en/army_folder.png\": 83141,\n\t\"./en/bancom.png\": 22037,\n\t\"./en/bt_lexicon_entry.png\": 4709,\n\t\"./en/bt_new_army_list.png\": 26989,\n\t\"./en/bt_new_army_list_unit.png\": 68076,\n\t\"./en/bt_new_paint_list.png\": 13672,\n\t\"./en/bt_search_army_list.png\": 75757,\n\t\"./en/bt_tool-pairing.png\": 87935,\n\t\"./en/bt_tool-search-rule.png\": 80588,\n\t\"./en/magic_items/category_23.png\": 61816,\n\t\"./en/magic_items/category_24.png\": 41431,\n\t\"./en/magic_items/category_25.png\": 67790,\n\t\"./en/magic_items/category_26.png\": 70213,\n\t\"./en/magic_items/category_28.png\": 33003,\n\t\"./en/magic_items/category_29.png\": 69346,\n\t\"./en/magic_items/category_30.png\": 53832,\n\t\"./en/magic_items/category_31.png\": 47697,\n\t\"./en/magic_items/category_45.png\": 70164,\n\t\"./en/magic_items/category_46.png\": 44655,\n\t\"./en/magic_items/category_47.png\": 5638,\n\t\"./en/version_battle.png\": 50618,\n\t\"./en/version_essenceOfWar.png\": 78177,\n\t\"./en/version_ninthAge.png\": 82732,\n\t\"./en/version_theOldWorld.png\": 80730,\n\t\"./fond/bg_army_list_unit_overview.png\": 29886,\n\t\"./fond/bg_army_list_unit_overview_content.png\": 24212,\n\t\"./fond/bg_army_list_unit_overview_content_mobile.png\": 7923,\n\t\"./fond/bg_army_list_unit_overview_left.png\": 84088,\n\t\"./fond/bg_army_list_unit_overview_left_mobile.png\": 13399,\n\t\"./fond/bg_army_list_unit_overview_right.png\": 88429,\n\t\"./fond/bg_army_list_unit_overview_right_mobile.png\": 36536,\n\t\"./fond/bg_army_list_unit_overview_value_points.png\": 57924,\n\t\"./fond/bg_army_list_value_points.png\": 52907,\n\t\"./fond/bg_army_value_points.png\": 49144,\n\t\"./fond/bg_army_value_points1.png\": 19699,\n\t\"./fond/bg_army_value_points2.png\": 28856,\n\t\"./fond/bg_body.jpg\": 82725,\n\t\"./fond/bg_body2.png\": 75395,\n\t\"./fond/bg_popin.png\": 29713,\n\t\"./fond/bg_popin_old.png\": 96735,\n\t\"./fond/bg_search.png\": 35497,\n\t\"./fond/bg_spell.png\": 89251,\n\t\"./fond/border_popin.png\": 72934,\n\t\"./fond/bt_close.png\": 27622,\n\t\"./fond/fbnews.png\": 11092,\n\t\"./fond/loading.gif\": 27086,\n\t\"./fond/loading3.gif\": 78141,\n\t\"./fond/orga1.png\": 11953,\n\t\"./fond/orga2.png\": 35706,\n\t\"./fond/profil.png\": 32715,\n\t\"./fond/profil2.png\": 7953,\n\t\"./fond/puce2.png\": 47264,\n\t\"./fond/rulespe.png\": 30801,\n\t\"./header/9thmobile.png\": 78518,\n\t\"./header/bg-mobile.png\": 45053,\n\t\"./header/bg_footer.png\": 29632,\n\t\"./header/bg_header.png\": 82366,\n\t\"./header/bg_home.jpg\": 64604,\n\t\"./header/bg_home1.png\": 48595,\n\t\"./header/log_left.png\": 34523,\n\t\"./header/log_right.png\": 56164,\n\t\"./header/logmob_left.png\": 55693,\n\t\"./header/logmob_right.png\": 92206,\n\t\"./header/sword.png\": 29534,\n\t\"./langues/langue-de.png\": 26045,\n\t\"./langues/langue-en.png\": 88693,\n\t\"./langues/langue-es.png\": 43920,\n\t\"./langues/langue-fr.png\": 45640,\n\t\"./langues/langue-hu.png\": 84041,\n\t\"./langues/langue-it.png\": 17739,\n\t\"./langues/langue-pl.png\": 57552,\n\t\"./langues/langue-ru.png\": 4139,\n\t\"./langues/langue-sr.png\": 54995,\n\t\"./langues/langue-zh.png\": 88662,\n\t\"./links/accessibility.webp\": 5850,\n\t\"./links/contactus.webp\": 58426,\n\t\"./links/contactus1.webp\": 20225,\n\t\"./links/discord.webp\": 9294,\n\t\"./links/fb.webp\": 89322,\n\t\"./links/joinville.webp\": 78418,\n\t\"./links/pict_links.webp\": 59132,\n\t\"./links/pict_links_origine.webp\": 81102,\n\t\"./links/privacy.webp\": 11578,\n\t\"./links/resbat.webp\": 20587,\n\t\"./links/twit.webp\": 35362,\n\t\"./pdf/bg_header.png\": 46155,\n\t\"./terrain/field.png\": 35205,\n\t\"./terrain/forest.png\": 14710,\n\t\"./terrain/hill.png\": 80920,\n\t\"./terrain/impassableterrain.png\": 24757,\n\t\"./terrain/impassableterrain_small.png\": 92201,\n\t\"./terrain/ruins.png\": 11016,\n\t\"./terrain/wall.png\": 88649,\n\t\"./terrain/waterterrain.png\": 61301\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 86190;","/*\n Copyright 2014 Google Inc. All rights reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n */\n\n(function (window) {\n if (!!window.cookieChoices) {\n return window.cookieChoices;\n }\n\n var document = window.document;\n\n var cookieChoices = (function () {\n var cookieName = 'displayCookieConsent';\n var cookieConsentId = 'cookieChoiceInfo';\n var dismissLinkId = 'cookieChoiceDismiss';\n\n function _createHeaderElement(cookieText, dismissText, linkText, linkHref) {\n var butterBarStyles =\n 'position:fixed;width:100%;background-color:#8B0000;color:#FFFFFF;' +\n 'margin:0; left:0; bottom:0; padding:4px;z-index:1000;text-align:center;';\n\n var cookieConsentElement = document.createElement('div');\n cookieConsentElement.id = cookieConsentId;\n cookieConsentElement.style.cssText = butterBarStyles;\n cookieConsentElement.appendChild(_createConsentText(cookieText));\n\n if (!!linkText && !!linkHref) {\n cookieConsentElement.appendChild(\n _createInformationLink(linkText, linkHref),\n );\n }\n cookieConsentElement.appendChild(_createDismissLink(dismissText));\n\n return cookieConsentElement;\n }\n\n function _createDialogElement(cookieText, dismissText, linkText, linkHref) {\n var glassStyle =\n 'position:fixed;width:100%;height:100%;z-index:999;' +\n 'top:0;left:0;opacity:0.5;filter:alpha(opacity=50);' +\n 'background-color:#ccc;';\n var dialogStyle = 'z-index:1000;position:fixed;left:50%;top:50%';\n var contentStyle =\n 'position:relative;left:-50%;margin-top:-25%;' +\n 'background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;';\n\n var cookieConsentElement = document.createElement('div');\n cookieConsentElement.id = cookieConsentId;\n\n var glassPanel = document.createElement('div');\n glassPanel.style.cssText = glassStyle;\n\n var content = document.createElement('div');\n content.style.cssText = contentStyle;\n\n var dialog = document.createElement('div');\n dialog.style.cssText = dialogStyle;\n\n var dismissLink = _createDismissLink(dismissText);\n dismissLink.style.display = 'block';\n dismissLink.style.textAlign = 'right';\n dismissLink.style.marginTop = '8px';\n\n content.appendChild(_createConsentText(cookieText));\n if (!!linkText && !!linkHref) {\n content.appendChild(_createInformationLink(linkText, linkHref));\n }\n content.appendChild(dismissLink);\n dialog.appendChild(content);\n cookieConsentElement.appendChild(glassPanel);\n cookieConsentElement.appendChild(dialog);\n return cookieConsentElement;\n }\n\n function _setElementText(element, text) {\n element.innerText = text;\n }\n\n function _createConsentText(cookieText) {\n var consentText = document.createElement('span');\n _setElementText(consentText, cookieText);\n return consentText;\n }\n\n function _createDismissLink(dismissText) {\n var dismissLink = document.createElement('a');\n _setElementText(dismissLink, dismissText);\n dismissLink.id = dismissLinkId;\n dismissLink.href = '#';\n dismissLink.style.marginLeft = '15px';\n dismissLink.style.color = '#FFFFFF';\n return dismissLink;\n }\n\n function _createInformationLink(linkText, linkHref) {\n var infoLink = document.createElement('a');\n _setElementText(infoLink, linkText);\n infoLink.href = linkHref;\n infoLink.target = '_blank';\n infoLink.style.marginLeft = '15px';\n infoLink.style.color = '#FFFFFF';\n return infoLink;\n }\n\n function _dismissLinkClick() {\n _saveUserPreference();\n _removeCookieConsent();\n return false;\n }\n\n function _showCookieConsent(\n cookieText,\n dismissText,\n linkText,\n linkHref,\n isDialog,\n ) {\n if (_shouldDisplayConsent()) {\n _removeCookieConsent();\n var consentElement = isDialog\n ? _createDialogElement(cookieText, dismissText, linkText, linkHref)\n : _createHeaderElement(cookieText, dismissText, linkText, linkHref);\n var fragment = document.createDocumentFragment();\n fragment.appendChild(consentElement);\n document.body.appendChild(fragment.cloneNode(true));\n document.getElementById(dismissLinkId).onclick = _dismissLinkClick;\n }\n }\n\n function showCookieConsentBar(cookieText, dismissText, linkText, linkHref) {\n _showCookieConsent(cookieText, dismissText, linkText, linkHref, false);\n }\n\n function showCookieConsentDialog(\n cookieText,\n dismissText,\n linkText,\n linkHref,\n ) {\n _showCookieConsent(cookieText, dismissText, linkText, linkHref, true);\n }\n\n function _removeCookieConsent() {\n var cookieChoiceElement = document.getElementById(cookieConsentId);\n if (cookieChoiceElement != null) {\n cookieChoiceElement.parentNode.removeChild(cookieChoiceElement);\n }\n }\n\n function _saveUserPreference() {\n // Set the cookie expiry to one year after today.\n var expiryDate = new Date();\n expiryDate.setFullYear(expiryDate.getFullYear() + 1);\n document.cookie =\n cookieName + '=y; path=/; expires=' + expiryDate.toGMTString();\n }\n\n function _shouldDisplayConsent() {\n // Display the header only if the cookie has not been set.\n return !document.cookie.match(new RegExp(cookieName + '=([^;]+)'));\n }\n\n var exports = {};\n exports.showCookieConsentBar = showCookieConsentBar;\n exports.showCookieConsentDialog = showCookieConsentDialog;\n return exports;\n })();\n\n window.cookieChoices = cookieChoices;\n return cookieChoices;\n})(this);\n","import * as serviceWorkerRegistration from './serviceWorkerRegistration';\n\nrequire.context('../images', true);\n\nrequire('jquery');\nrequire('jquery-ui');\nrequire('jquery-ujs');\n\nimport 'bootstrap';\nimport '../javascripts/common/cookiechoices';\n\n$(function () {\n $('.main-nav a:not(.dropdown-toggle)').bind('click', function (event) {\n var $anchor = $(this);\n\n $('html, body')\n .stop()\n .animate(\n {\n scrollTop: $($anchor.attr('href')).offset().top,\n },\n 1500,\n 'easeInOutExpo',\n );\n\n event.preventDefault();\n });\n});\n\nserviceWorkerRegistration.register();\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://cra.link/PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/,\n ),\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = '/service-worker.js';\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://cra.link/PWA',\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://cra.link/PWA.',\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.',\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","window","cookieChoices","document","cookieName","cookieConsentId","dismissLinkId","_setElementText","element","text","innerText","_createConsentText","cookieText","consentText","createElement","_createDismissLink","dismissText","dismissLink","href","style","marginLeft","color","_createInformationLink","linkText","linkHref","infoLink","target","_dismissLinkClick","expiryDate","Date","setFullYear","getFullYear","cookie","toGMTString","_removeCookieConsent","_showCookieConsent","isDialog","match","RegExp","consentElement","cookieConsentElement","glassPanel","cssText","content","dialog","display","textAlign","marginTop","appendChild","_createDialogElement","_createHeaderElement","fragment","createDocumentFragment","body","cloneNode","getElementById","onclick","cookieChoiceElement","parentNode","removeChild","this","require","$","bind","event","$anchor","stop","animate","scrollTop","attr","offset","top","preventDefault","serviceWorkerRegistration","isLocalhost","Boolean","location","hostname","register","config","navigator","URL","process","origin","addEventListener","swUrl","fetch","headers","then","response","contentType","get","status","indexOf","serviceWorker","ready","registration","unregister","reload","registerValidSW","catch","console","log","checkValidServiceWorker","onupdatefound","installingWorker","installing","onstatechange","state","controller","onUpdate","onSuccess","error"],"sourceRoot":""}