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AQA,OAL1D,I,oBCdAvC,EAAAA,MAAAA,QACAA,EAAAA,MAAAA,QACAA,EAAQ,MACRA,EAAQ,MACRA,EAAQ,MAKRA,EAAQ,MACRA,EAAQ,MAKOA,EAAAA,MAKfwC,GAAO,WACLC,IAAAA,KAAS,CAAEC,MAAM,IACjBC,IC3BF,WACE,MAAMC,EAAiBzC,SAASC,iBAC9B,iDAGF,GAAGH,QAAQ0B,KAAKiB,GAAgB,SAAUC,GACxC,8BAA8BC,MAAM,KAAK7C,SAAQ,SAAU2B,GACzDiB,EAAShB,iBAAiBD,GAAO,WAC/B,GAAIjB,OAAOS,WAAa,IAAK,CAC3B,MAAM2B,EAASF,EAASG,cAAc,4BAExB,eAAVpB,GACFiB,EAAShC,UAAUE,IAAI,WAEvBgB,EAAEgB,GAAQF,SAAS,UAEnBd,EAAEgB,GAAQF,SAAS,QAEnBE,EAAOE,OAEX,CACF,GACF,GACF,GACD,CDICC,GAEAnB,IAAIoB,SAAS,CACXC,SAAU,yBAEVC,QAAS,SAAUC,EAAWC,GAC5B,OAAOxB,EAAEyB,MAAMC,SAASC,KAAK,cAAcC,MAC7C,GAEJ,G,oEElCIC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACtE,EAAOD,GAAI,GAAI,GAAG,CAAC,QAAU,EAAE,QAAU,GAAG,MAAQ,GAAG,SAAW,GAAG,WAAa,MAEhH,K","sources":["webpack://academy_sites/./app/javascript/channels/ sync _channel\\.js$","webpack://academy_sites/./app/javascript/images/ sync ^\\.\\/.*$","webpack://academy_sites/./app/javascript/channels/index.js","webpack://academy_sites/./app/javascript/src/frontend/landkit/navbar.js","webpack://academy_sites/./app/javascript/stylesheets/frontend.scss?9872","webpack://academy_sites/./app/javascript/packs/frontend.js","webpack://academy_sites/./app/javascript/src/frontend/landkit/dropdown.js","webpack://academy_sites/./app/javascript/stylesheets/frontend.scss?e54d"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 3760;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./favicons/apple-touch-icon-180x180.png\": 6650,\n\t\"./favicons/favicon.svg\": 7686,\n\t\"./favicons/icon-144x144.png\": 369,\n\t\"./favicons/icon-16x16.png\": 5815,\n\t\"./favicons/icon-192x192.png\": 8409,\n\t\"./favicons/icon-32x32.png\": 7263,\n\t\"./favicons/icon-48x48.png\": 25,\n\t\"./favicons/icon-512x512.png\": 3705,\n\t\"./favicons/icon-96x96.png\": 7543,\n\t\"./ofsted-good.svg\": 2709,\n\t\"./ofsted-outstanding.svg\": 9174,\n\t\"./pages/careers-advice/progress-careers-logo.png\": 1666,\n\t\"./pages/curriculum_overview/dtl-model.svg\": 7277,\n\t\"./pages/honours/badges.png\": 8369,\n\t\"./pages/honours/logo.png\": 148,\n\t\"./pages/honours/screenshot.png\": 873,\n\t\"./pages/the_elephant_group/the-elephant-group-logo.png\": 7155,\n\t\"./pages/uniform/trutex-preloved-left.svg\": 6036,\n\t\"./pages/uniform/trutex-preloved-right.svg\": 4715,\n\t\"./phone-free-school.svg\": 96,\n\t\"./streamline/duotone/programming/information.svg\": 706,\n\t\"./streamline/multicolor/business/fail-ice-cream.svg\": 6958,\n\t\"./streamline/multicolor/computer-programming/responsive-design.svg\": 6631,\n\t\"./streamline/multicolor/content/contract-book-pencil.svg\": 1648,\n\t\"./streamline/multicolor/content/document-approve.svg\": 8993,\n\t\"./streamline/multicolor/content/stamp-document-approve.svg\": 3556,\n\t\"./streamline/multicolor/content/view-eye.svg\": 4845,\n\t\"./streamline/multicolor/design/origami-paper-bird.svg\": 6636,\n\t\"./streamline/multicolor/ecology/ecosystem-half-globe.svg\": 9157,\n\t\"./streamline/multicolor/education/education-aid.svg\": 7340,\n\t\"./streamline/multicolor/education/education-reward.svg\": 4279,\n\t\"./streamline/multicolor/education/owl-laptop-study.svg\": 6206,\n\t\"./streamline/multicolor/education/teacher-shapes.svg\": 2568,\n\t\"./streamline/multicolor/mail/mail-letter.svg\": 7542,\n\t\"./streamline/multicolor/money/mobile-smartphone-credit-card-payment.svg\": 6879,\n\t\"./streamline/multicolor/rewards/star-rate.svg\": 3054,\n\t\"./streamline/multicolor/team-work/team-vote-hand-raise.svg\": 2831,\n\t\"./streamline/multicolor/travel/balloon.svg\": 9448,\n\t\"./streamline/multicolor/users/user.svg\": 1286,\n\t\"./streamline/multicolor/work/office-time.svg\": 1144\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 = 6190;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context(\".\", true, /_channel\\.js$/);\nchannels.keys().forEach(channels);\n","export default (function () {\n const navbarTogglable = document.querySelectorAll(\".navbar-togglable\");\n const navbarCollapse = document.querySelectorAll(\".navbar-collapse\");\n const windowEvents = [\"load\", \"scroll\"];\n let isLight = false;\n\n function makeNavbarDark(navbar) {\n navbar.classList.remove(\"navbar-light\");\n navbar.classList.remove(\"bg-white\");\n navbar.classList.add(\"navbar-dark\");\n\n isLight = false;\n }\n\n function makeNavbarLight(navbar) {\n navbar.classList.remove(\"navbar-dark\");\n navbar.classList.add(\"navbar-light\");\n navbar.classList.add(\"bg-white\");\n\n isLight = true;\n }\n\n function toggleNavbar(navbar) {\n const scrollTop = window.pageYOffset;\n\n if (scrollTop && !isLight) {\n makeNavbarLight(navbar);\n }\n\n if (!scrollTop) {\n makeNavbarDark(navbar);\n }\n }\n\n function getScrollbarWidth() {\n return window.innerWidth - document.documentElement.clientWidth;\n }\n\n function overflowHide() {\n const scrollbarWidth = getScrollbarWidth();\n\n document.documentElement.style.overflow = \"hidden\";\n document.body.style.paddingRight = scrollbarWidth + \"px\";\n }\n\n function overflowShow() {\n document.documentElement.style.overflow = \"\";\n }\n\n [].forEach.call(navbarTogglable, function (navbar) {\n windowEvents.forEach(function (event) {\n window.addEventListener(event, function () {\n toggleNavbar(navbar);\n });\n });\n });\n\n [].forEach.call(navbarCollapse, function (collapse) {\n $(collapse).on({\n \"show.bs.collapse\": function () {\n overflowHide();\n },\n \"hidden.bs.collapse\": function () {\n overflowShow();\n },\n });\n });\n});\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./frontend.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[5].use[1]!../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[5].use[2]!./frontend.scss\";\n export default content && content.locals ? content.locals : undefined;\n","// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n\nrequire(\"@rails/ujs\").start();\nrequire(\"@rails/activestorage\").start();\nrequire(\"trix\");\nrequire(\"@rails/actiontext\");\nrequire(\"channels\");\nimport \"bootstrap\";\nimport AOS from \"aos\";\nimport landKitNavbarInit from \"../src/frontend/landkit/navbar\";\nimport landKitDropdownInit from \"../src/frontend/landkit/dropdown\";\nrequire(\"@fancyapps/fancybox\");\nrequire(\"@fancyapps/fancybox/dist/jquery.fancybox.css\");\n// Uncomment to copy all static images under ../images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\nconst images = require.context(\"../images\", true);\nconst imagePath = (name) => images(name, true);\n\nimport \"../stylesheets/frontend\";\n\njQuery(function () {\n AOS.init({ once: true });\n landKitNavbarInit();\n landKitDropdownInit();\n\n $().fancybox({\n selector: \".attachment--preview a\",\n\n caption: function (_instance, _item) {\n return $(this).parent().find(\"figcaption\").text();\n },\n });\n});\n","export default (function () {\n const navbarDropdown = document.querySelectorAll(\n \".navbar-nav .dropdown, .navbar-nav .dropright\",\n );\n\n [].forEach.call(navbarDropdown, function (dropdown) {\n \"mouseenter mouseleave click\".split(\" \").forEach(function (event) {\n dropdown.addEventListener(event, function () {\n if (window.innerWidth > 991) {\n const toggle = dropdown.querySelector('[data-toggle=\"dropdown\"]');\n\n if (event === \"mouseenter\") {\n dropdown.classList.add(\"hovered\");\n\n $(toggle).dropdown(\"show\");\n } else {\n $(toggle).dropdown(\"hide\");\n\n toggle.blur();\n }\n }\n });\n });\n });\n});\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"\", \"\",{\"version\":3,\"sources\":[],\"names\":[],\"mappings\":\"\",\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","channels","require","forEach","navbarTogglable","document","querySelectorAll","navbarCollapse","windowEvents","isLight","toggleNavbar","navbar","scrollTop","window","pageYOffset","classList","remove","add","makeNavbarLight","makeNavbarDark","overflowHide","scrollbarWidth","innerWidth","documentElement","clientWidth","style","overflow","body","paddingRight","call","event","addEventListener","collapse","$","on","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","jQuery","AOS","once","landKitNavbarInit","navbarDropdown","dropdown","split","toggle","querySelector","blur","landKitDropdownInit","fancybox","selector","caption","_instance","_item","this","parent","find","text","___CSS_LOADER_EXPORT___","push"],"sourceRoot":""}