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iB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;ACN2B;AAC0B;AACE;AACS;AACnB;AAE7C5D,QAAQ,CAACG,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;EACxD;EACAmD,uEAAW,CAAC,CAAC;EAEb,IAAI,CAACtD,QAAQ,CAACC,aAAa,CAAC,WAAW,CAAC,EAAE;IACxC6D,kEAAQ,CAAC,CAAC;EACZ;;EAGA;EACA;EACA;;EAEA,IAAG9D,QAAQ,CAACC,aAAa,CAAC,SAAS,CAAC,EAAC;IACnCQ,+DAAS,CAAC,CAAC;EACb;AACF,CAAC,CAAC,C","sources":["webpack://bs-base/./assets/src/js/modules/animation/scroll_from_up.js","webpack://bs-base/./assets/src/js/modules/arrive-map.js","webpack://bs-base/./assets/src/js/modules/header/bodyHidden.js","webpack://bs-base/./assets/src/js/modules/header/fixedHeader.js","webpack://bs-base/./assets/src/js/modules/header/mainMenu.js","webpack://bs-base/./assets/src/scss/my.scss?d852","webpack://bs-base/webpack/bootstrap","webpack://bs-base/webpack/runtime/define property getters","webpack://bs-base/webpack/runtime/hasOwnProperty shorthand","webpack://bs-base/webpack/runtime/make namespace object","webpack://bs-base/./assets/src/js/main.js"],"sourcesContent":["export default function scroll_from_up() {\n const btn = document.querySelector(\".home-intro__arrow-down\");\n const about = document.querySelector(\".about\");\n\n btn.addEventListener(\"click\", (e) => {\n e.preventDefault();\n about.scrollIntoView({\n block: \"center\",\n behavior: \"smooth\",\n });\n });\n}\n","export default function arriveMap() {\n const maps = document.querySelectorAll('.arrive__item');\n\n maps.forEach((item, index) => {\n const lat = item.querySelector('.lat').textContent;\n const long = item.querySelector('.long').textContent;\n let id = index + 1;\n id = 'map-'+id;\n\n arriveMap(id, lat, long, 11.5);\n });\n\n\n function arriveMap(id, lat, long, zoom) {\n const coords = [lat, long];\n const marker_url = 'bs-chioggia';\n\n let map = L.map(id).setView(coords, zoom);\n\n let myIcon = L.icon({\n iconUrl: '/wp-content/themes/' + marker_url + '/assets/i/static/map-icon.png',\n iconSize: [44, 56],\n iconAnchor: [44, 56],\n shadowSize: [68, 95],\n shadowAnchor: [22, 94]\n });\n\n L.marker(coords, { icon: myIcon }).addTo(map)\n\n\n L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {\n maxZoom: 24,\n icon: \"/wp-content/themes/\" + marker_url + \"/assets/i/static/marker-icon.png\",\n id: 'mapbox/streets-v11',\n attribution: '© OpenStreetMap',\n }).addTo(map);\n\n \n }\n}","function getScrollBarWidth() {\n let div = document.createElement('div');\n div.style.overflowY = 'scroll';\n div.style.width = '50px';\n div.style.height = '50px';\n document.body.append(div);\n let scrollWidth = div.offsetWidth - div.clientWidth;\n div.remove();\n return scrollWidth;\n}\n\nexport function bodyHidden() {\n const body = document.querySelector('body');\n body.style.overflow = 'hidden';\n body.style.width = '100vw';\n body.style.paddingRight = getScrollBarWidth() + 'px';\n}\n\nexport function bodyVisible() {\n const body = document.querySelector('body');\n body.style.overflow = 'initial';\n body.style.width = 'auto';\n body.style.paddingRight = '0';\n}\n","export default function fixedHeader() {\n const header = document.querySelector(\".main-header\");\n window.addEventListener(\"scroll\", () => {\n if (window.pageYOffset > 500) {\n if (!header.classList.contains(\"active\")) {\n header.classList.add(\"active\");\n setTimeout(() => {\n header.classList.remove(\"main-header--hidden\");\n }, 400);\n }\n } else {\n if (header.classList.contains(\"active\")) {\n header.classList.remove(\"active\");\n }\n }\n });\n}\n","import { bodyHidden, bodyVisible } from \"./bodyHidden\";\n\nexport function mainMenu() {\n const mainMenu = document.querySelector('#js-main-menu');\n const sandwichWrap = document.querySelector('#js-sandwitch-wrap');\n let url_pathname = window.location.pathname;\n url_pathname = url_pathname.replace(/\\//g, '');\n\n sandwichWrap.addEventListener('mousedown', function (e) {\n e.preventDefault();\n\n if (mainMenu.classList.contains('fixed')) {\n mainMenu.classList.remove('fixed');\n bodyVisible();\n } else {\n mainMenu.classList.add('fixed');\n bodyHidden();\n }\n sandwichWrap.classList.toggle('sandwitch--active');\n });\n\n if (window.location.pathname !== \"/\") {\n mainMenu.querySelectorAll('.menu-item').forEach(item => {\n const href = item.querySelector('a').getAttribute('href');\n\n if (href.includes(url_pathname)) {\n item.classList.add('current-menu-item');\n }\n });\n }\n}","// extracted by mini-css-extract-plugin\nexport {};","// 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","// define getter functions for harmony exports\n__webpack_require__.d = (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 = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import \"./../scss/my.scss\";\r\nimport { mainMenu } from \"./modules/header/mainMenu\";\r\nimport fixedHeader from \"./modules/header/fixedHeader\";\r\nimport scroll_from_up from \"./modules/animation/scroll_from_up\";\r\nimport arriveMap from './modules/arrive-map';\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n // streetMap();\r\n fixedHeader();\r\n\r\n if (!document.querySelector(\"body.home\")) {\r\n mainMenu();\r\n }\r\n\r\n\r\n // if (document.querySelector(\"body.home\")) {\r\n // scroll_from_up();\r\n // }\r\n\r\n if(document.querySelector('.arrive')){\r\n arriveMap();\r\n }\r\n});\r\n"],"names":["scroll_from_up","btn","document","querySelector","about","addEventListener","e","preventDefault","scrollIntoView","block","behavior","arriveMap","maps","querySelectorAll","forEach","item","index","lat","textContent","long","id","zoom","coords","marker_url","map","L","setView","myIcon","icon","iconUrl","iconSize","iconAnchor","shadowSize","shadowAnchor","marker","addTo","tileLayer","maxZoom","attribution","getScrollBarWidth","div","createElement","style","overflowY","width","height","body","append","scrollWidth","offsetWidth","clientWidth","remove","bodyHidden","overflow","paddingRight","bodyVisible","fixedHeader","header","window","pageYOffset","classList","contains","add","setTimeout","mainMenu","sandwichWrap","url_pathname","location","pathname","replace","toggle","href","getAttribute","includes"],"sourceRoot":""}