wonder-image 2.1.1-alpha.4 → 2.1.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/frontend/body-end.js +1 -1
- package/dist/frontend/body-end.js.map +1 -1
- package/dist/images/ad.svg +114 -112
- package/dist/images/ae.svg +5 -5
- package/dist/images/af.svg +7 -7
- package/dist/images/ag.svg +8 -8
- package/dist/images/ai.svg +14 -14
- package/dist/images/al.svg +4 -4
- package/dist/images/am.svg +4 -4
- package/dist/images/ao.svg +3 -3
- package/dist/images/aq.svg +4 -4
- package/dist/images/ar.svg +22 -22
- package/dist/images/as.svg +71 -72
- package/dist/images/at.svg +3 -3
- package/dist/images/au.svg +7 -7
- package/dist/images/ax.svg +3 -3
- package/dist/images/bw.svg +4 -4
- package/dist/images/by.svg +5 -5
- package/dist/images/cg.svg +6 -6
- package/dist/images/cm.svg +5 -5
- package/dist/images/co.svg +4 -4
- package/dist/images/cr.svg +4 -4
- package/dist/images/cu.svg +3 -3
- package/dist/images/cv.svg +3 -3
- package/dist/images/cx.svg +8 -8
- package/dist/images/cy.svg +5 -5
- package/dist/images/dg.svg +125 -125
- package/dist/images/do.svg +53 -54
- package/dist/images/eac.svg +11 -11
- package/dist/images/ec.svg +119 -119
- package/dist/images/es-ga.svg +182 -182
- package/dist/images/eu.svg +3 -3
- package/dist/images/fi.svg +4 -4
- package/dist/images/fk.svg +73 -74
- package/dist/images/fr.svg +4 -4
- package/dist/images/gb.svg +6 -6
- package/dist/images/gd.svg +19 -19
- package/dist/images/ge.svg +5 -5
- package/dist/images/gm.svg +7 -12
- package/dist/images/gs.svg +118 -119
- package/dist/images/gw.svg +13 -11
- package/dist/images/hk.svg +7 -7
- package/dist/images/hn.svg +9 -9
- package/dist/images/ic.svg +4 -4
- package/dist/images/id.svg +3 -3
- package/dist/images/ie.svg +4 -4
- package/dist/images/iq.svg +5 -5
- package/dist/images/ir.svg +211 -211
- package/dist/images/is.svg +6 -6
- package/dist/images/it.svg +4 -4
- package/dist/images/je.svg +61 -61
- package/dist/images/jp.svg +5 -5
- package/dist/images/ki.svg +30 -30
- package/dist/images/kn.svg +8 -8
- package/dist/images/kr.svg +21 -14
- package/dist/images/la.svg +6 -6
- package/dist/images/lb.svg +7 -7
- package/dist/images/lc.svg +5 -5
- package/dist/images/li.svg +4 -4
- package/dist/images/lt.svg +2 -2
- package/dist/images/ly.svg +7 -7
- package/dist/images/md.svg +59 -58
- package/dist/images/mh.svg +5 -4
- package/dist/images/mo.svg +6 -6
- package/dist/images/mq.svg +4 -4
- package/dist/images/mr.svg +5 -5
- package/dist/images/ms.svg +24 -28
- package/dist/images/mt.svg +30 -32
- package/dist/images/mu.svg +5 -5
- package/dist/images/mv.svg +5 -5
- package/dist/images/mw.svg +8 -13
- package/dist/images/ne.svg +5 -5
- package/dist/images/ni.svg +6 -6
- package/dist/images/nr.svg +6 -6
- package/dist/images/nu.svg +9 -9
- package/dist/images/pc.svg +32 -32
- package/dist/images/ph.svg +5 -5
- package/dist/images/pn.svg +52 -52
- package/dist/images/pr.svg +7 -7
- package/dist/images/qa.svg +3 -3
- package/dist/images/ro.svg +4 -4
- package/dist/images/rw.svg +5 -5
- package/dist/images/sb.svg +7 -7
- package/dist/images/si.svg +12 -12
- package/dist/images/sm.svg +58 -60
- package/dist/images/st.svg +6 -6
- package/dist/images/tl.svg +7 -7
- package/dist/images/tn.svg +3 -3
- package/dist/images/tt.svg +6 -4
- package/dist/images/tv.svg +8 -8
- package/dist/images/tz.svg +9 -7
- package/dist/images/un.svg +12 -12
- package/dist/images/va.svg +9 -9
- package/dist/images/vc.svg +6 -6
- package/dist/images/ve.svg +6 -6
- package/dist/images/vg.svg +8 -8
- package/dist/images/vi.svg +18 -18
- package/dist/images/vn.svg +5 -5
- package/dist/images/wf.svg +4 -4
- package/dist/images/xx.svg +3 -3
- package/dist/images/za.svg +9 -9
- package/dist/images/zw.svg +3 -3
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see body-end.js.LICENSE.txt */
|
|
2
|
-
(()=>{var n={6867(n){n.exports="function alertContainer() {\n\n if (document.querySelector('.alert-container')) {\n\n var container = document.querySelector('.alert-container');\n\n } else {\n\n var container = document.createElement('div');\n container.classList.add('alert-container');\n container.classList.add('p-f');\n container.classList.add('top');\n container.classList.add('start');\n container.classList.add('w-100');\n container.classList.add('h-100');\n container.classList.add('no-interaction');\n container.style.zIndex = \"1000\";\n\n document.body.insertBefore(container, document.body.firstChild);\n\n }\n\n return container;\n\n}\n\nfunction alertToast(alert) {\n\n var container = alertContainer();\n\n if (alert == 801) {\n\n container.innerHTML += NO_INTERNET_ALERT;\n\n } else {\n\n API_CLIENT_APP.post(\"/frontend/alert/\", { code: alert })\n .then(data => {\n\n container.innerHTML += data.response;\n \n var url = new URL(window.location.href);\n url.searchParams.delete('alert');\n window.history.replaceState(null, null, url);\n\n })\n .catch(error => console.error(error));\n\n }\n\n setTimeout(() => {\n document.querySelectorAll('.wi-alert.wi-show').forEach(element => {\n element.classList.remove('wi-show');\n });\n }, 4000);\n\n}"},5068(n){n.exports="function setAos() {\n\n if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {\n AOS.init({\n disable: 'mobile'\n });\n } else {\n AOS.init();\n }\n\n}"},7244(n){n.exports="function toggleDropdown(container) {\n\n if (container.classList.contains('wi-show')) {\n closeDropdown(container);\n } else {\n openDropdown(container);\n }\n \n}\n\nfunction openDropdown(container) {\n\n container.classList.add('wi-show'); \n\n if (container.querySelector('i.bi-chevron-down')) {\n container.querySelector('i.bi-chevron-down').classList.add('bi-chevron-up');\n container.querySelector('i.bi-chevron-down').classList.remove('bi-chevron-down');\n }\n\n if (container.querySelector('i.bi-plus')) {\n container.querySelector('i.bi-plus').classList.add('bi-dash');\n container.querySelector('i.bi-plus').classList.remove('bi-plus');\n }\n\n if (container.querySelector('i.bi-plus-lg')) {\n container.querySelector('i.bi-plus-lg').classList.add('bi-dash-lg');\n container.querySelector('i.bi-plus-lg').classList.remove('bi-plus-lg');\n }\n \n}\n\nfunction closeDropdown(container) {\n\n container.classList.remove('wi-show'); \n\n if (container.querySelector('i.bi-chevron-up')) {\n container.querySelector('i.bi-chevron-up').classList.add('bi-chevron-down');\n container.querySelector('i.bi-chevron-up').classList.remove('bi-chevron-up');\n }\n\n if (container.querySelector('i.bi-dash')) {\n container.querySelector('i.bi-dash').classList.add('bi-plus');\n container.querySelector('i.bi-dash').classList.remove('bi-dash');\n }\n\n if (container.querySelector('i.bi-dash-lg')) {\n container.querySelector('i.bi-dash-lg').classList.add('bi-plus-lg');\n container.querySelector('i.bi-dash-lg').classList.remove('bi-dash-lg');\n }\n \n}\n\nfunction setDropdown() {\n \n document.querySelectorAll(\".wi-dropdown-btn .wi-switcher\").forEach(element => {\n\n element.onclick = function() { toggleDropdown(element.parentElement); };\n \n element.parentElement.onmouseleave = function() { closeDropdown(element.parentElement); };\n \n });\n\n document.querySelectorAll(\".wi-dropdown-box .wi-switcher\").forEach(element => {\n\n if (element.parentElement.classList.contains('wi-show')) {\n openDropdown(element.parentElement);\n }\n\n element.onclick = function() { toggleDropdown(element.parentElement); };\n \n });\n\n}"},2787(n){n.exports='/**\n * \n * GOOGLE MAPS API\n * \n */\n\nfunction checkInputPlace(input, autocomplete) {\n \n var inputContainer = input.parentElement;\n\n var country = inputContainer.querySelector(\'[data-wi-spi="country"]\');\n var province = inputContainer.querySelector(\'[data-wi-spi="province"]\');\n var cap = inputContainer.querySelector(\'[data-wi-spi="cap"]\');\n var city = inputContainer.querySelector(\'[data-wi-spi="city"]\');\n var street = inputContainer.querySelector(\'[data-wi-spi="street"]\');\n var number = inputContainer.querySelector(\'[data-wi-spi="number"]\');\n\n country.value = "";\n province.value = "";\n cap.value = "";\n city.value = "";\n street.value = "";\n number.value = "";\n\n removeInputError(input);\n\n if (autocomplete.getPlace()) {\n\n var place = autocomplete.getPlace();\n\n if (place.address_components) {\n\n for (const component of place.address_components) {\n \n const componentType = component.types;\n\n if (componentType.includes(\'street_number\')) { number.value = component.long_name; }\n if (componentType.includes(\'route\')) { street.value = component.short_name; }\n if (componentType.includes(\'administrative_area_level_3\') || componentType.includes(\'postal_town\')) { city.value = component.short_name; }\n if (componentType.includes(\'postal_code\') || componentType.includes(\'postal_code_prefix\')) { cap.value = component.short_name; }\n if (componentType.includes(\'administrative_area_level_2\')) { province.value = component.short_name; }\n if (componentType.includes(\'country\')) { country.value = component.short_name; }\n\n }\n\n if (country.value == "" || province.value == "" || cap.value == "" || city.value == "" || street.value == "" || number.value == "") {\n \n var error = "Indirizzo non valido";\n\n if (country.value == "") {\n error += ", manca il paese";\n } else if (province.value == "") {\n error += ", manca la provincia";\n } else if (cap.value == "") {\n error += ", manca il cap";\n } else if (city.value == "") {\n error += ", manca la città";\n } else if (street.value == "") {\n error += ", manca la via";\n } else if (number.value == "") {\n error += ", manca il numero civico";\n }\n\n inputError(input, error);\n \n }\n\n } else {\n\n inputError(input, \'Indirizzo non valido\');\n\n }\n\n } else {\n\n inputError(input, \'Indirizzo non valido\');\n\n }\n\n check();\n\n}\n\nfunction setPlace(input, country = null, province = null, cap = null, city = null, street = null, number = null) {\n\n var inputContainer = input.parentElement;\n\n var countryInput = inputContainer.querySelector(\'[data-wi-spi="country"]\');\n var provinceInput = inputContainer.querySelector(\'[data-wi-spi="province"]\');\n var capInput = inputContainer.querySelector(\'[data-wi-spi="cap"]\');\n var cityInput = inputContainer.querySelector(\'[data-wi-spi="city"]\');\n var streetInput = inputContainer.querySelector(\'[data-wi-spi="street"]\');\n var numberInput = inputContainer.querySelector(\'[data-wi-spi="number"]\');\n\n if (country == null) {\n\n country = countryInput.value;\n province = provinceInput.value;\n cap = capInput.value;\n city = cityInput.value;\n street = streetInput.value;\n number = numberInput.value;\n\n } else {\n\n countryInput.value = country;\n provinceInput.value = province;\n capInput.value = cap;\n cityInput.value = city;\n streetInput.value = street;\n numberInput.value = number;\n \n }\n\n if (country != "" || province != "" || cap != "" || city != "" || street != "" || number != "") {\n \n var address = street+\', \'+number+\', \'+city+\', \'+province+\', \'+country;\n input.value = address;\n\n checkLabel();\n check();\n\n }\n\n}\n\n/**\n * \n * inputCountry() - inputStates()\n * \n */\n\nfunction setInputCountry() {\n\n document.querySelectorAll("[data-wi-input-country=\'true\']").forEach(element => {\n element.addEventListener("change", searchStates);\n element.addEventListener("focusout", searchStates);\n });\n\n}\n\nfunction setCountryState(input, country, state) {\n\n textListValue(input, country);\n searchStates(input, state);\n \n}\n\nfunction searchStates(event, stateValue = null) {\n\n if (typeof event.target !== "undefined") {\n var inputCountry = event.target;\n } else {\n var inputCountry = event;\n }\n \n var form = inputCountry.form;\n var inputCountryName = inputCountry.dataset.wiName.replace(\'-text\', \'\');\n var inputStateName = inputCountry.dataset.wiInputState;\n\n var inputState = form.querySelector(\'input[data-wi-name="\'+inputStateName+\'-text"]\');\n\n inputState.disabled = true;\n inputState.value = "";\n\n delay(100).then(() => {\n\n if (form.querySelector(\'input[name="\'+inputCountryName+\'"]:checked\') != null) {\n\n var country = form.querySelector(\'input[name="\'+inputCountryName+\'"]:checked\').value;\n \n if (inputState.dataset.wiListStates != country) {\n \n inputState.dataset.wiListStates = country;\n\n loadingSpinner(true);\n\n $.ajax({\n type: "POST",\n url: pathApp+\'/api/states.php\',\n data: { \n post: \'true\',\n country: country\n }, \n success: function (data) {\n\n const response = JSON.parse(data);\n\n textListOptions( inputState, response );\n\n inputState.disabled = false;\n\n if (stateValue != null && stateValue != "") { textListValue(inputState, stateValue); }\n\n loadingSpinner(false);\n\n },\n error: function (XMLHttpRequest) {\n\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner(false);\n\n }\n });\n\n } else {\n\n inputState.disabled = false;\n \n }\n\n }\n\n });\n\n}'},7350(n){n.exports='var x, i, j, l, ll, selElmnt, a, b, c;\n\n// Le liste dei select sono position:absolute dentro .wi-input-container: un\n// antenato con overflow:hidden le ritaglierebbe. All\'apertura la lista passa a\n// position:fixed con coordinate calcolate dal box selezionato, cosi\' esce da\n// qualsiasi overflow:hidden mantenendolo sul form. Riposizionata su scroll/resize.\nfunction positionSelectList(container) {\n\n if (!container) { return; }\n\n var selected = container.querySelector(".select-selected");\n var list = container.querySelector(".select-items");\n\n if (!selected || !list) { return; }\n\n var rect = selected.getBoundingClientRect();\n\n list.style.position = "fixed";\n list.style.top = rect.bottom + "px";\n list.style.left = rect.left + "px";\n list.style.width = rect.width + "px";\n list.style.zIndex = "1000";\n\n}\n\nfunction clearSelectListPosition(container) {\n\n if (!container) { return; }\n\n var list = container.querySelector(".select-items");\n\n if (!list) { return; }\n\n list.style.position = "";\n list.style.top = "";\n list.style.left = "";\n list.style.width = "";\n list.style.zIndex = "";\n\n}\n\nfunction repositionActiveSelect() {\n\n document.querySelectorAll(".wi-input-container.wi-list-active").forEach(positionSelectList);\n\n}\n\n// Un solo observer segue l\'apertura/chiusura (classe wi-list-active) di ogni\n// container, indipendentemente da come viene attivata la lista.\nvar wiSelectObserver = new MutationObserver(function(mutations) {\n\n mutations.forEach(function(mutation) {\n\n var el = mutation.target;\n\n if (!el.classList || !el.classList.contains("wi-input-container")) { return; }\n\n if (el.classList.contains("wi-list-active")) {\n positionSelectList(el);\n } else {\n clearSelectListPosition(el);\n }\n\n });\n\n});\n\nwindow.addEventListener("scroll", repositionActiveSelect, true);\nwindow.addEventListener("resize", repositionActiveSelect);\n\n// Look for any elements with the class "custom-select":\nx = document.querySelectorAll("[data-wi-select=\'true\']");\nl = x.length;\n\nfor (i = 0; i < l; i++) {\n\n selElmnt = x[i].getElementsByTagName("select")[0];\n ll = selElmnt.length;\n\n // For each element, create a new DIV that will act as the selected item:\n a = document.createElement("DIV");\n a.setAttribute("class", "select-selected wi-input");\n a.innerHTML = selElmnt.selectedIndex >= 0\n ? selElmnt.options[selElmnt.selectedIndex].innerHTML\n : "";\n x[i].appendChild(a);\n\n // For each element, create a new DIV that will contain the option list:\n b = document.createElement("DIV");\n b.setAttribute("class", "select-items wi-input-list no-scrollbar");\n\n for (j = 0; j < ll; j++) {\n\n // For each option in the original select element, create a new DIV that will act as an option item:\n c = document.createElement("DIV");\n c.id = selElmnt.options[j].value;\n c.dataset.wiOptionIndex = j;\n c.setAttribute("class", "wi-input-list-value");\n c.innerHTML = selElmnt.options[j].innerHTML;\n\n // Se è impostato un valore di default selezionalo\n if (j === selElmnt.selectedIndex) { c.classList.add("same-as-selected"); }\n\n c.addEventListener("click", function(e) {\n\n // When an item is clicked, update the original select box, and the selected item:\n var y, k, s, h, yl, optionIndex, previousIndex;\n s = this.parentNode.parentNode.getElementsByTagName("select")[0];\n previousIndex = s.selectedIndex;\n optionIndex = parseInt(this.dataset.wiOptionIndex, 10);\n h = this.parentNode.previousSibling;\n\n if (!Number.isNaN(optionIndex) && s.options[optionIndex]) {\n s.selectedIndex = optionIndex;\n h.innerHTML = s.options[optionIndex].innerHTML;\n y = this.parentNode.querySelectorAll(".same-as-selected");\n y.forEach(function(option) { option.classList.remove("same-as-selected"); });\n this.setAttribute("class", "wi-input-list-value same-as-selected");\n }\n\n h.click();\n\n if (s.selectedIndex !== previousIndex) {\n s.dispatchEvent(new Event("input", { bubbles: true }));\n s.dispatchEvent(new Event("change", { bubbles: true }));\n }\n\n });\n\n b.appendChild(c);\n\n }\n\n x[i].appendChild(b);\n\n // Segue i cambi di stato del container per riposizionare la lista aperta.\n wiSelectObserver.observe(x[i], { attributes: true, attributeFilter: ["class"] });\n\n a.addEventListener("click", function(e) {\n\n // When the select box is clicked, close any other select boxes, and open/close the current select box\n e.stopPropagation();\n closeAllSelect(this);\n this.classList.toggle("select-arrow-active");\n this.parentNode.classList.toggle("wi-list-active");\n check();\n\n });\n\n}\n\nfunction closeAllSelect(elmnt) {\n\n // A function that will close all select boxes in the document, except the current select box:\n var x, y, i, xl, yl, arrNo = [];\n x = document.getElementsByClassName("select-items");\n y = document.getElementsByClassName("select-selected");\n var container = document.querySelector(".wi-input-container.wi-list-active");\n xl = x.length;\n yl = y.length;\n\n for (i = 0; i < yl; i++) {\n if (elmnt == y[i]) {\n arrNo.push(i)\n }else{\n y[i].classList.remove("select-arrow-active");\n }\n }\n\n if (container != null) {\n container.classList.remove("wi-list-active");\n }\n\n}\n\n// If the user clicks anywhere outside the select box, then close all select boxes:\ndocument.addEventListener("click", closeAllSelect);\n'},4428(n){n.exports='function formToArray(formElements) {\n\n const ARRAY = {};\n\n for (let i = 0; i < formElements.length; i++) {\n\n var add = false;\n\n var input = formElements[i];\n\n if (input.type == \'checkbox\' || input.type == \'radio\') {\n if (input.checked == true) { var add = true; }\n } else {\n if (input.value != "") { var add = true;}\n }\n\n if (add) {\n\n var inputName = input.name;\n var inputValue = input.value;\n\n if (inputName.includes("[]")) {\n\n inputName = inputName.replace("[]", "");\n\n if (inputName in ARRAY) {\n inputName = inputName.replace("[]", "");\n ARRAY[inputName].push(inputValue);\n } else {\n inputName = inputName.replace("[]", "");\n ARRAY[inputName] = [];\n ARRAY[inputName].push(inputValue);\n }\n \n } else {\n\n if (inputName in ARRAY) {\n\n } else {\n ARRAY[inputName] = inputValue;\n }\n\n }\n\n }\n\n }\n\n return ARRAY;\n \n}\n\nfunction prettyFormResponse(data) {\n\n if (data != \'\') {\n \n console.log(\'ERRORE FORM: \'+data);\n\n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n container.innerHTML = \'<div class="title-big a-c"><i class="bi bi-x-circle tx-danger"></i></div><div class="subtitle mt-8 a-c">C\\\'è stato un problema con l\\\'invio della tua richiesta</div><div class="c-w mt-10"><a onclick="location.reload();" class="btn btn-primary c-w">Riprova</a></div>\';\n\n } else {\n \n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n container.innerHTML = \'<div class="title-big a-c"><i class="bi bi-check2-circle tx-success"></i></div><div class="subtitle mt-8 a-c">La tua richiesta è stata inviata con successo!</div><div class="c-w mt-10"><a onclick="location.reload(); " class="btn btn-primary c-w">Torna al sito</a></div>\';\n\n }\n \n}\n\nfunction sendForm(button, url, responseFunction = prettyFormResponse) {\n\n loadingSpinner();\n\n const VALUES = formToArray(button.form.elements);\n var form = JSON.stringify(VALUES);\n\n $.ajax({\n type: "POST",\n url: url,\n data: { \n post: \'true\',\n form: form\n }, \n success: function (data) {\n\n if (responseFunction != null) {\n if (typeof responseFunction === \'function\') {\n responseFunction(data);\n } else {\n loadingSpinner();\n }\n }\n\n },\n error: function (XMLHttpRequest) {\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner();\n }\n });\n\n}\n\nfunction formUpload(form, url, responseFunction = prettyFormResponse) {\n\n loadingSpinner();\n \n var formData = new FormData(form);\n formData.append(\'post\', \'true\');\n \n $.ajax({\n type: "POST",\n url: url,\n data: formData,\n contentType: false,\n cache: false,\n processData:false, \n success: function (data) {\n\n if (responseFunction != null) {\n if (typeof responseFunction === \'function\') {\n responseFunction(data);\n } else {\n loadingSpinner();\n }\n }\n\n },\n error: function (XMLHttpRequest) {\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner();\n }\n });\n\n}\n \nasync function formSubmit(form, endpoint = \'/frontend/form/\', callback = loadingResponse ) {\n\n loadingSpinner();\n\n var data = new FormData(form);\n let response;\n\n try {\n\n response = await API_CLIENT.post(endpoint, data);\n\n } catch (error) {\n console.error(error);\n response = error;\n }\n\n if (typeof callback === \'function\') {\n callback(response);\n } else {\n loadingSpinner();\n }\n\n}\n\nfunction loadingResponse(data) {\n\n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n\n var icon = `<i class="bi bi-check2-circle tx-success"></i>`;\n var action = `location.reload();`;\n var text = data.response;\n var buttonLabel = \'back_site\';\n\n if (!data.success) {\n\n icon = `<i class="bi bi-x-circle tx-danger"></i>`;\n action = `loadingSpinner();`;\n\n buttonLabel = \'retry\';\n\n }\n\n buttonLabel = __t(\'components.buttons.\'+buttonLabel)\n\n container.innerHTML = `\n <div class="title-big a-c">\n ${icon}\n </div>\n <div class="subtitle mt-8 a-c"> ${text} </div>\n <div class="c-w mt-10">\n <a onclick="${action}" class="btn btn-primary c-w"> ${buttonLabel} </a>\n </div>\n `;\n\n}'},8516(n){n.exports='function menuMobile(hamburger = "#hamburger", navMobile = "#nav-mobile") { \n \n if (hamburger != null) { document.querySelector(hamburger).classList.toggle("click"); }\n if (navMobile != null) { document.querySelector(navMobile).classList.toggle("show"); }\n\n if (document.querySelector(hamburger).classList.contains("click")) {\n disableScroll();\n } else {\n enableScroll();\n }\n\n}'},148(n){n.exports="function modal(selector) {\n\n setUpModal(selector);\n\n var modal = document.querySelector(selector);\n\n modal.classList.toggle('wi-show');\n modal.classList.toggle('no-interaction');\n\n if (modal.classList.contains('wi-show')) {\n disableScroll();\n } else {\n enableScroll();\n }\n\n}\n\nfunction setUpModal(selector) {\n \n document.querySelectorAll(selector + ' .wi-close-modal').forEach(element => {\n if (element.onclick == null) {\n element.onclick = function() { modal(selector) };\n }\n });\n\n}"},225(n){n.exports="function setUpPage() {\n\n var PAGE_URL = new URL(window.location.href);\n\n if (PAGE_URL.searchParams.get('scroll')) {\n \n var idScroll = PAGE_URL.searchParams.get('scroll');\n scrolla('#'+idScroll);\n\n }\n\n // L'alert non viene passato solo tramite GET ma anche tramite variabile php\n // if (PAGE_URL.searchParams.get('alert')) {\n // var alertCode = PAGE_URL.searchParams.get('alert'); alertToast(alertCode);\n // }\n\n setInput();\n setDropdown();\n setVideoJS();\n setTooltip();\n \n window.dispatchEvent(new Event('loaded'));\n \n};"},4642(n){n.exports=function(n){function e(n){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",n)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(n):"undefined"!=typeof eval?eval.call(null,n):e("EvalError: No eval function available")}catch(n){e(n)}}},1120(n,e,t){t(4642)(t(6867))},2051(n,e,t){t(4642)(t(5068))},1809(n,e,t){t(4642)(t(7244))},7154(n,e,t){t(4642)(t(2787))},8865(n,e,t){t(4642)(t(7350))},1123(n,e,t){t(4642)(t(4428))},5329(n,e,t){t(4642)(t(8516))},871(n,e,t){t(4642)(t(148))},7186(n,e,t){t(4642)(t(225))}};const e={};function t(i){const a=e[i];if(void 0!==a)return a.exports;const o=e[i]={exports:{}};return n[i](o,o.exports,t),o.exports}t.n=n=>{const e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},t.d=(n,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var a=e[i++],o=e[i++];t.o(n,a)?0===o&&i++:0===o?Object.defineProperty(n,a,{enumerable:!0,value:e[i++]}):Object.defineProperty(n,a,{enumerable:!0,get:o})}else for(var a in e)t.o(e,a)&&!t.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:e[a]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),(()=>{"use strict";t(2051),t(5329),t(1120),t(1809),t(871),t(7154),t(8865),t(1123),t(7186)})()})();
|
|
2
|
+
(()=>{var n={6867(n){n.exports="function alertContainer() {\n\n if (document.querySelector('.alert-container')) {\n\n var container = document.querySelector('.alert-container');\n\n } else {\n\n var container = document.createElement('div');\n container.classList.add('alert-container');\n container.classList.add('p-f');\n container.classList.add('top');\n container.classList.add('start');\n container.classList.add('w-100');\n container.classList.add('h-100');\n container.classList.add('no-interaction');\n container.style.zIndex = \"1000\";\n\n document.body.insertBefore(container, document.body.firstChild);\n\n }\n\n return container;\n\n}\n\nfunction alertToast(alert) {\n\n var container = alertContainer();\n\n if (alert == 801) {\n\n container.innerHTML += NO_INTERNET_ALERT;\n\n } else {\n\n API_CLIENT_APP.post(\"/frontend/alert/\", { code: alert })\n .then(data => {\n\n container.innerHTML += data.response;\n \n var url = new URL(window.location.href);\n url.searchParams.delete('alert');\n window.history.replaceState(null, null, url);\n\n })\n .catch(error => console.error(error));\n\n }\n\n setTimeout(() => {\n document.querySelectorAll('.wi-alert.wi-show').forEach(element => {\n element.classList.remove('wi-show');\n });\n }, 4000);\n\n}"},5068(n){n.exports="function setAos() {\n\n if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {\n AOS.init({\n disable: 'mobile'\n });\n } else {\n AOS.init();\n }\n\n}"},7244(n){n.exports="function toggleDropdown(container) {\n\n if (container.classList.contains('wi-show')) {\n closeDropdown(container);\n } else {\n openDropdown(container);\n }\n \n}\n\nfunction openDropdown(container) {\n\n container.classList.add('wi-show'); \n\n if (container.querySelector('i.bi-chevron-down')) {\n container.querySelector('i.bi-chevron-down').classList.add('bi-chevron-up');\n container.querySelector('i.bi-chevron-down').classList.remove('bi-chevron-down');\n }\n\n if (container.querySelector('i.bi-plus')) {\n container.querySelector('i.bi-plus').classList.add('bi-dash');\n container.querySelector('i.bi-plus').classList.remove('bi-plus');\n }\n\n if (container.querySelector('i.bi-plus-lg')) {\n container.querySelector('i.bi-plus-lg').classList.add('bi-dash-lg');\n container.querySelector('i.bi-plus-lg').classList.remove('bi-plus-lg');\n }\n \n}\n\nfunction closeDropdown(container) {\n\n container.classList.remove('wi-show'); \n\n if (container.querySelector('i.bi-chevron-up')) {\n container.querySelector('i.bi-chevron-up').classList.add('bi-chevron-down');\n container.querySelector('i.bi-chevron-up').classList.remove('bi-chevron-up');\n }\n\n if (container.querySelector('i.bi-dash')) {\n container.querySelector('i.bi-dash').classList.add('bi-plus');\n container.querySelector('i.bi-dash').classList.remove('bi-dash');\n }\n\n if (container.querySelector('i.bi-dash-lg')) {\n container.querySelector('i.bi-dash-lg').classList.add('bi-plus-lg');\n container.querySelector('i.bi-dash-lg').classList.remove('bi-dash-lg');\n }\n \n}\n\nfunction setDropdown() {\n \n document.querySelectorAll(\".wi-dropdown-btn .wi-switcher\").forEach(element => {\n\n element.onclick = function() { toggleDropdown(element.parentElement); };\n \n element.parentElement.onmouseleave = function() { closeDropdown(element.parentElement); };\n \n });\n\n document.querySelectorAll(\".wi-dropdown-box .wi-switcher\").forEach(element => {\n\n if (element.parentElement.classList.contains('wi-show')) {\n openDropdown(element.parentElement);\n }\n\n element.onclick = function() { toggleDropdown(element.parentElement); };\n \n });\n\n}"},2787(n){n.exports='/**\n * \n * GOOGLE MAPS API\n * \n */\n\nfunction checkInputPlace(input, autocomplete) {\n \n var inputContainer = input.parentElement;\n\n var country = inputContainer.querySelector(\'[data-wi-spi="country"]\');\n var province = inputContainer.querySelector(\'[data-wi-spi="province"]\');\n var cap = inputContainer.querySelector(\'[data-wi-spi="cap"]\');\n var city = inputContainer.querySelector(\'[data-wi-spi="city"]\');\n var street = inputContainer.querySelector(\'[data-wi-spi="street"]\');\n var number = inputContainer.querySelector(\'[data-wi-spi="number"]\');\n\n country.value = "";\n province.value = "";\n cap.value = "";\n city.value = "";\n street.value = "";\n number.value = "";\n\n removeInputError(input);\n\n if (autocomplete.getPlace()) {\n\n var place = autocomplete.getPlace();\n\n if (place.address_components) {\n\n for (const component of place.address_components) {\n \n const componentType = component.types;\n\n if (componentType.includes(\'street_number\')) { number.value = component.long_name; }\n if (componentType.includes(\'route\')) { street.value = component.short_name; }\n if (componentType.includes(\'administrative_area_level_3\') || componentType.includes(\'postal_town\')) { city.value = component.short_name; }\n if (componentType.includes(\'postal_code\') || componentType.includes(\'postal_code_prefix\')) { cap.value = component.short_name; }\n if (componentType.includes(\'administrative_area_level_2\')) { province.value = component.short_name; }\n if (componentType.includes(\'country\')) { country.value = component.short_name; }\n\n }\n\n if (country.value == "" || province.value == "" || cap.value == "" || city.value == "" || street.value == "" || number.value == "") {\n \n var error = "Indirizzo non valido";\n\n if (country.value == "") {\n error += ", manca il paese";\n } else if (province.value == "") {\n error += ", manca la provincia";\n } else if (cap.value == "") {\n error += ", manca il cap";\n } else if (city.value == "") {\n error += ", manca la città";\n } else if (street.value == "") {\n error += ", manca la via";\n } else if (number.value == "") {\n error += ", manca il numero civico";\n }\n\n inputError(input, error);\n \n }\n\n } else {\n\n inputError(input, \'Indirizzo non valido\');\n\n }\n\n } else {\n\n inputError(input, \'Indirizzo non valido\');\n\n }\n\n check();\n\n}\n\nfunction setPlace(input, country = null, province = null, cap = null, city = null, street = null, number = null) {\n\n var inputContainer = input.parentElement;\n\n var countryInput = inputContainer.querySelector(\'[data-wi-spi="country"]\');\n var provinceInput = inputContainer.querySelector(\'[data-wi-spi="province"]\');\n var capInput = inputContainer.querySelector(\'[data-wi-spi="cap"]\');\n var cityInput = inputContainer.querySelector(\'[data-wi-spi="city"]\');\n var streetInput = inputContainer.querySelector(\'[data-wi-spi="street"]\');\n var numberInput = inputContainer.querySelector(\'[data-wi-spi="number"]\');\n\n if (country == null) {\n\n country = countryInput.value;\n province = provinceInput.value;\n cap = capInput.value;\n city = cityInput.value;\n street = streetInput.value;\n number = numberInput.value;\n\n } else {\n\n countryInput.value = country;\n provinceInput.value = province;\n capInput.value = cap;\n cityInput.value = city;\n streetInput.value = street;\n numberInput.value = number;\n \n }\n\n if (country != "" || province != "" || cap != "" || city != "" || street != "" || number != "") {\n \n var address = street+\', \'+number+\', \'+city+\', \'+province+\', \'+country;\n input.value = address;\n\n checkLabel();\n check();\n\n }\n\n}\n\n/**\n * \n * inputCountry() - inputStates()\n * \n */\n\nfunction setInputCountry() {\n\n document.querySelectorAll("[data-wi-input-country=\'true\']").forEach(element => {\n element.addEventListener("change", searchStates);\n element.addEventListener("focusout", searchStates);\n });\n\n}\n\nfunction setCountryState(input, country, state) {\n\n textListValue(input, country);\n searchStates(input, state);\n \n}\n\nfunction searchStates(event, stateValue = null) {\n\n if (typeof event.target !== "undefined") {\n var inputCountry = event.target;\n } else {\n var inputCountry = event;\n }\n \n var form = inputCountry.form;\n var inputCountryName = inputCountry.dataset.wiName.replace(\'-text\', \'\');\n var inputStateName = inputCountry.dataset.wiInputState;\n\n var inputState = form.querySelector(\'input[data-wi-name="\'+inputStateName+\'-text"]\');\n\n inputState.disabled = true;\n inputState.value = "";\n\n delay(100).then(() => {\n\n if (form.querySelector(\'input[name="\'+inputCountryName+\'"]:checked\') != null) {\n\n var country = form.querySelector(\'input[name="\'+inputCountryName+\'"]:checked\').value;\n \n if (inputState.dataset.wiListStates != country) {\n \n inputState.dataset.wiListStates = country;\n\n loadingSpinner(true);\n\n $.ajax({\n type: "POST",\n url: pathApp+\'/api/states.php\',\n data: { \n post: \'true\',\n country: country\n }, \n success: function (data) {\n\n const response = JSON.parse(data);\n\n textListOptions( inputState, response );\n\n inputState.disabled = false;\n\n if (stateValue != null && stateValue != "") { textListValue(inputState, stateValue); }\n\n loadingSpinner(false);\n\n },\n error: function (XMLHttpRequest) {\n\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner(false);\n\n }\n });\n\n } else {\n\n inputState.disabled = false;\n \n }\n\n }\n\n });\n\n}'},7350(n){n.exports='var x, i, j, l, ll, selElmnt, a, b, c;\n\n// Le liste dei select sono position:absolute dentro .wi-input-container: un\n// antenato con overflow:hidden le ritaglierebbe. All\'apertura la lista passa a\n// position:fixed con coordinate calcolate dal box selezionato, cosi\' esce da\n// qualsiasi overflow:hidden mantenendolo sul form. Il Popover API porta la lista\n// nel top layer senza cambiarne il parent DOM, evitando clipping e containing\n// block creati da transform. Il calcolo dell\'origine resta come fallback.\nfunction positionSelectList(container) {\n\n if (!container) { return; }\n\n var selected = container.querySelector(".select-selected");\n var list = container.querySelector(".select-items");\n\n if (!selected || !list) { return; }\n\n var rect = selected.getBoundingClientRect();\n var borderBottom = Number.parseFloat(getComputedStyle(selected).borderBottomWidth) || 0;\n var listTop = rect.bottom - borderBottom;\n var transition = list.style.transition;\n var supportsPopover = typeof list.showPopover === "function";\n\n list.style.transition = "none";\n list.style.position = "fixed";\n list.style.boxSizing = "border-box";\n list.style.width = rect.width + "px";\n list.style.zIndex = "1000";\n\n if (supportsPopover) {\n list.style.inset = "auto";\n list.style.margin = "0";\n list.style.padding = "0";\n list.style.top = listTop + "px";\n list.style.left = rect.left + "px";\n\n if (!list.matches(":popover-open")) { list.showPopover(); }\n\n list.getBoundingClientRect();\n list.style.transition = transition;\n return;\n }\n\n list.style.top = "0px";\n list.style.left = "0px";\n\n var origin = list.getBoundingClientRect();\n\n list.style.top = (listTop - origin.top) + "px";\n list.style.left = (rect.left - origin.left) + "px";\n\n // Applica le coordinate senza animarle dall\'origin temporanea.\n list.getBoundingClientRect();\n list.style.transition = transition;\n\n}\n\nfunction clearSelectListPosition(container) {\n\n if (!container) { return; }\n\n var list = container.querySelector(".select-items");\n\n if (!list) { return; }\n\n if (typeof list.hidePopover === "function" && list.matches(":popover-open")) {\n list.hidePopover();\n }\n\n list.style.position = "";\n list.style.boxSizing = "";\n list.style.inset = "";\n list.style.margin = "";\n list.style.padding = "";\n list.style.top = "";\n list.style.left = "";\n list.style.width = "";\n list.style.zIndex = "";\n\n}\n\nfunction repositionActiveSelect() {\n\n document.querySelectorAll(".wi-input-container.wi-list-active").forEach(positionSelectList);\n\n}\n\n// Un solo observer segue l\'apertura/chiusura (classe wi-list-active) di ogni\n// container, indipendentemente da come viene attivata la lista.\nvar wiSelectObserver = new MutationObserver(function(mutations) {\n\n mutations.forEach(function(mutation) {\n\n var el = mutation.target;\n\n if (!el.classList || !el.classList.contains("wi-input-container")) { return; }\n\n if (el.classList.contains("wi-list-active")) {\n positionSelectList(el);\n } else {\n clearSelectListPosition(el);\n }\n\n });\n\n});\n\nwindow.addEventListener("scroll", repositionActiveSelect, true);\nwindow.addEventListener("resize", repositionActiveSelect);\n\nif (window.visualViewport) {\n window.visualViewport.addEventListener("scroll", repositionActiveSelect);\n window.visualViewport.addEventListener("resize", repositionActiveSelect);\n}\n\n// Look for any elements with the class "custom-select":\nx = document.querySelectorAll("[data-wi-select=\'true\']");\nl = x.length;\n\nfor (i = 0; i < l; i++) {\n\n selElmnt = x[i].getElementsByTagName("select")[0];\n ll = selElmnt.length;\n\n // For each element, create a new DIV that will act as the selected item:\n a = document.createElement("DIV");\n a.setAttribute("class", "select-selected wi-input");\n a.innerHTML = selElmnt.selectedIndex >= 0\n ? selElmnt.options[selElmnt.selectedIndex].innerHTML\n : "";\n x[i].appendChild(a);\n\n // For each element, create a new DIV that will contain the option list:\n b = document.createElement("DIV");\n b.setAttribute("class", "select-items wi-input-list no-scrollbar");\n b.setAttribute("popover", "manual");\n\n for (j = 0; j < ll; j++) {\n\n // For each option in the original select element, create a new DIV that will act as an option item:\n c = document.createElement("DIV");\n c.id = selElmnt.options[j].value;\n c.dataset.wiOptionIndex = j;\n c.setAttribute("class", "wi-input-list-value");\n c.innerHTML = selElmnt.options[j].innerHTML;\n\n // Se è impostato un valore di default selezionalo\n if (j === selElmnt.selectedIndex) { c.classList.add("same-as-selected"); }\n\n c.addEventListener("click", function(e) {\n\n // When an item is clicked, update the original select box, and the selected item:\n var y, s, h, container, optionIndex, previousIndex;\n container = this.closest("[data-wi-select=\'true\']");\n s = container ? container.querySelector("select") : null;\n h = container ? container.querySelector(".select-selected") : null;\n\n if (!s || !h) { return; }\n\n previousIndex = s.selectedIndex;\n optionIndex = parseInt(this.dataset.wiOptionIndex, 10);\n\n if (!Number.isNaN(optionIndex) && s.options[optionIndex]) {\n s.selectedIndex = optionIndex;\n h.innerHTML = s.options[optionIndex].innerHTML;\n y = this.parentNode.querySelectorAll(".same-as-selected");\n y.forEach(function(option) { option.classList.remove("same-as-selected"); });\n this.setAttribute("class", "wi-input-list-value same-as-selected");\n }\n\n closeSelect(container);\n\n if (s.selectedIndex !== previousIndex) {\n s.dispatchEvent(new Event("input", { bubbles: true }));\n s.dispatchEvent(new Event("change", { bubbles: true }));\n }\n\n });\n\n b.appendChild(c);\n\n }\n\n x[i].appendChild(b);\n\n // Segue i cambi di stato del container per riposizionare la lista aperta.\n wiSelectObserver.observe(x[i], { attributes: true, attributeFilter: ["class"] });\n\n a.addEventListener("click", function(e) {\n\n // When the select box is clicked, close any other select boxes, and open/close the current select box\n e.stopPropagation();\n\n if (this.parentNode.classList.contains("wi-list-active")) {\n closeSelect(this.parentNode);\n } else {\n openSelect(this.parentNode);\n }\n\n check();\n\n });\n\n}\n\nfunction openSelect(container) {\n\n closeAllSelect();\n\n var selected = container.querySelector(".select-selected");\n\n container.classList.add("wi-list-active");\n if (selected) { selected.classList.add("select-arrow-active"); }\n\n}\n\nfunction closeSelect(container) {\n\n if (!container) { return; }\n\n var selected = container.querySelector(".select-selected");\n\n container.classList.remove("wi-list-active");\n if (selected) { selected.classList.remove("select-arrow-active"); }\n\n}\n\nfunction closeAllSelect() {\n\n // Close every open custom select.\n document.querySelectorAll("[data-wi-select=\'true\'].wi-list-active").forEach(closeSelect);\n\n}\n\n// If the user clicks anywhere outside the select box, then close all select boxes:\ndocument.addEventListener("click", closeAllSelect);\n'},4428(n){n.exports='function formToArray(formElements) {\n\n const ARRAY = {};\n\n for (let i = 0; i < formElements.length; i++) {\n\n var add = false;\n\n var input = formElements[i];\n\n if (input.type == \'checkbox\' || input.type == \'radio\') {\n if (input.checked == true) { var add = true; }\n } else {\n if (input.value != "") { var add = true;}\n }\n\n if (add) {\n\n var inputName = input.name;\n var inputValue = input.value;\n\n if (inputName.includes("[]")) {\n\n inputName = inputName.replace("[]", "");\n\n if (inputName in ARRAY) {\n inputName = inputName.replace("[]", "");\n ARRAY[inputName].push(inputValue);\n } else {\n inputName = inputName.replace("[]", "");\n ARRAY[inputName] = [];\n ARRAY[inputName].push(inputValue);\n }\n \n } else {\n\n if (inputName in ARRAY) {\n\n } else {\n ARRAY[inputName] = inputValue;\n }\n\n }\n\n }\n\n }\n\n return ARRAY;\n \n}\n\nfunction prettyFormResponse(data) {\n\n if (data != \'\') {\n \n console.log(\'ERRORE FORM: \'+data);\n\n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n container.innerHTML = \'<div class="title-big a-c"><i class="bi bi-x-circle tx-danger"></i></div><div class="subtitle mt-8 a-c">C\\\'è stato un problema con l\\\'invio della tua richiesta</div><div class="c-w mt-10"><a onclick="location.reload();" class="btn btn-primary c-w">Riprova</a></div>\';\n\n } else {\n \n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n container.innerHTML = \'<div class="title-big a-c"><i class="bi bi-check2-circle tx-success"></i></div><div class="subtitle mt-8 a-c">La tua richiesta è stata inviata con successo!</div><div class="c-w mt-10"><a onclick="location.reload(); " class="btn btn-primary c-w">Torna al sito</a></div>\';\n\n }\n \n}\n\nfunction sendForm(button, url, responseFunction = prettyFormResponse) {\n\n loadingSpinner();\n\n const VALUES = formToArray(button.form.elements);\n var form = JSON.stringify(VALUES);\n\n $.ajax({\n type: "POST",\n url: url,\n data: { \n post: \'true\',\n form: form\n }, \n success: function (data) {\n\n if (responseFunction != null) {\n if (typeof responseFunction === \'function\') {\n responseFunction(data);\n } else {\n loadingSpinner();\n }\n }\n\n },\n error: function (XMLHttpRequest) {\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner();\n }\n });\n\n}\n\nfunction formUpload(form, url, responseFunction = prettyFormResponse) {\n\n loadingSpinner();\n \n var formData = new FormData(form);\n formData.append(\'post\', \'true\');\n \n $.ajax({\n type: "POST",\n url: url,\n data: formData,\n contentType: false,\n cache: false,\n processData:false, \n success: function (data) {\n\n if (responseFunction != null) {\n if (typeof responseFunction === \'function\') {\n responseFunction(data);\n } else {\n loadingSpinner();\n }\n }\n\n },\n error: function (XMLHttpRequest) {\n ajaxRequestError(XMLHttpRequest);\n loadingSpinner();\n }\n });\n\n}\n \nasync function formSubmit(form, endpoint = \'/frontend/form/\', callback = loadingResponse ) {\n\n loadingSpinner();\n\n var data = new FormData(form);\n let response;\n\n try {\n\n response = await API_CLIENT.post(endpoint, data);\n\n } catch (error) {\n console.error(error);\n response = error;\n }\n\n if (typeof callback === \'function\') {\n callback(response);\n } else {\n loadingSpinner();\n }\n\n}\n\nfunction loadingResponse(data) {\n\n var container = document.querySelector("#loading-spinner .center");\n container.classList.add("w-80");\n\n var icon = `<i class="bi bi-check2-circle tx-success"></i>`;\n var action = `location.reload();`;\n var text = data.response;\n var buttonLabel = \'back_site\';\n\n if (!data.success) {\n\n icon = `<i class="bi bi-x-circle tx-danger"></i>`;\n action = `loadingSpinner();`;\n\n buttonLabel = \'retry\';\n\n }\n\n buttonLabel = __t(\'components.buttons.\'+buttonLabel)\n\n container.innerHTML = `\n <div class="title-big a-c">\n ${icon}\n </div>\n <div class="subtitle mt-8 a-c"> ${text} </div>\n <div class="c-w mt-10">\n <a onclick="${action}" class="btn btn-primary c-w"> ${buttonLabel} </a>\n </div>\n `;\n\n}'},8516(n){n.exports='function menuMobile(hamburger = "#hamburger", navMobile = "#nav-mobile") { \n \n if (hamburger != null) { document.querySelector(hamburger).classList.toggle("click"); }\n if (navMobile != null) { document.querySelector(navMobile).classList.toggle("show"); }\n\n if (document.querySelector(hamburger).classList.contains("click")) {\n disableScroll();\n } else {\n enableScroll();\n }\n\n}'},148(n){n.exports="function modal(selector) {\n\n setUpModal(selector);\n\n var modal = document.querySelector(selector);\n\n modal.classList.toggle('wi-show');\n modal.classList.toggle('no-interaction');\n\n if (modal.classList.contains('wi-show')) {\n disableScroll();\n } else {\n enableScroll();\n }\n\n}\n\nfunction setUpModal(selector) {\n \n document.querySelectorAll(selector + ' .wi-close-modal').forEach(element => {\n if (element.onclick == null) {\n element.onclick = function() { modal(selector) };\n }\n });\n\n}"},225(n){n.exports="function setUpPage() {\n\n var PAGE_URL = new URL(window.location.href);\n\n if (PAGE_URL.searchParams.get('scroll')) {\n \n var idScroll = PAGE_URL.searchParams.get('scroll');\n scrolla('#'+idScroll);\n\n }\n\n // L'alert non viene passato solo tramite GET ma anche tramite variabile php\n // if (PAGE_URL.searchParams.get('alert')) {\n // var alertCode = PAGE_URL.searchParams.get('alert'); alertToast(alertCode);\n // }\n\n setInput();\n setDropdown();\n setVideoJS();\n setTooltip();\n \n window.dispatchEvent(new Event('loaded'));\n \n};"},4642(n){n.exports=function(n){function e(n){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",n)}try{"undefined"!=typeof execScript&&"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener?execScript(n):"undefined"!=typeof eval?eval.call(null,n):e("EvalError: No eval function available")}catch(n){e(n)}}},1120(n,e,t){t(4642)(t(6867))},2051(n,e,t){t(4642)(t(5068))},1809(n,e,t){t(4642)(t(7244))},7154(n,e,t){t(4642)(t(2787))},8865(n,e,t){t(4642)(t(7350))},1123(n,e,t){t(4642)(t(4428))},5329(n,e,t){t(4642)(t(8516))},871(n,e,t){t(4642)(t(148))},7186(n,e,t){t(4642)(t(225))}};const e={};function t(i){const o=e[i];if(void 0!==o)return o.exports;const a=e[i]={exports:{}};return n[i](a,a.exports,t),a.exports}t.n=n=>{const e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},t.d=(n,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var o=e[i++],a=e[i++];t.o(n,o)?0===a&&i++:0===a?Object.defineProperty(n,o,{enumerable:!0,value:e[i++]}):Object.defineProperty(n,o,{enumerable:!0,get:a})}else for(var o in e)t.o(e,o)&&!t.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:e[o]})},t.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),(()=>{"use strict";t(2051),t(5329),t(1120),t(1809),t(871),t(7154),t(8865),t(1123),t(7186)})()})();
|
|
3
3
|
//# sourceMappingURL=body-end.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend/body-end.js","mappings":";qBAAAA,EAAAC,QAAA,w7CCAAD,EAAAC,QAAA,iPCAAD,EAAAC,QAAA,+zECAAD,EAAAC,QAAA,mpNCAAD,EAAAC,QAAA,g1LCAAD,EAAAC,QAAA,wmKCAAD,EAAAC,QAAA,sbCAAD,EAAAC,QAAA,2kBCAAD,EAAAC,QAAA,6mBCIAD,EAAAC,QAAA,SAAAC,GACA,SAAAC,EAAAC,GACA,oBAAAC,UACAA,QAAAD,OAAAC,QAAAF,KAAA,kBAAAC,EACA,CAOA,IACA,oBAAAE,YAJA,oBAAAC,aAAA,oBAAAC,iBAKAF,WAAAJ,GACI,oBAAAO,KACJA,KAAAC,KAAA,KAAAR,GAEAC,EAAA,wCAEA,CAAG,MAAAC,GACHD,EAAAC,EACA,CACA,eC1BAO,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,mBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,mBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,QCC1G,MAAAC,EAAA,GAGA,SAAAD,EAAAE,GAEA,MAAAC,EAAAF,EAAAC,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAb,QAGA,MAAAD,EAAAY,EAAAC,GAAA,CAGAZ,QAAA,IAOA,OAHAe,EAAAH,GAAAb,EAAAA,EAAAC,QAAAU,GAGAX,EAAAC,OACA,CCrBAU,EAAAM,EAAAjB,IACA,MAAAkB,EAAAlB,GAAAA,EAAAmB,WACA,IAAAnB,EAAA,QACA,MAEA,OADAW,EAAAS,EAAAF,EAAA,CAAiCG,EAAAH,IACjCA,GCLAP,EAAAS,EAAA,CAAAnB,EAAAqB,KACA,GAAAC,MAAAC,QAAAF,GAEA,IADA,IAAAG,EAAA,EACAA,EAAAH,EAAAI,QAAA,CACA,IAAAC,EAAAL,EAAAG,KACAG,EAAAN,EAAAG,KACAd,EAAAkB,EAAA5B,EAAA0B,GAMK,IAAAC,GAAyBH,IAL9B,IAAAG,EACAE,OAAAC,eAAA9B,EAAA0B,EAAA,CAA2CK,YAAA,EAAAC,MAAAX,EAAAG,OAE3CK,OAAAC,eAAA9B,EAAA0B,EAAA,CAA2CK,YAAA,EAAAE,IAAAN,GAG3C,MAEA,QAAAD,KAAAL,EACAX,EAAAkB,EAAAP,EAAAK,KAAAhB,EAAAkB,EAAA5B,EAAA0B,IACAG,OAAAC,eAAA9B,EAAA0B,EAAA,CAA0CK,YAAA,EAAAE,IAAAZ,EAAAK,MClB1ChB,EAAAkB,EAAA,CAAAM,EAAAC,IAAAN,OAAAO,UAAAC,eAAA5B,KAAAyB,EAAAC","sources":["webpack://wonder-image/./src/build/frontend/js/alert.js","webpack://wonder-image/./src/build/frontend/js/aos.js","webpack://wonder-image/./src/build/frontend/js/dropdown.js","webpack://wonder-image/./src/build/frontend/js/form/place.js","webpack://wonder-image/./src/build/frontend/js/form/select.js","webpack://wonder-image/./src/build/frontend/js/form/send.js","webpack://wonder-image/./src/build/frontend/js/header.js","webpack://wonder-image/./src/build/frontend/js/modal.js","webpack://wonder-image/./src/build/frontend/js/pageSetUp.js","webpack://wonder-image/./node_modules/script-loader/addScript.js","webpack://wonder-image/./src/build/frontend/js/alert.js?37ef","webpack://wonder-image/./src/build/frontend/js/aos.js?68ca","webpack://wonder-image/./src/build/frontend/js/dropdown.js?51db","webpack://wonder-image/./src/build/frontend/js/form/place.js?6f16","webpack://wonder-image/./src/build/frontend/js/form/select.js?c3d3","webpack://wonder-image/./src/build/frontend/js/form/send.js?2a0e","webpack://wonder-image/./src/build/frontend/js/header.js?c891","webpack://wonder-image/./src/build/frontend/js/modal.js?9265","webpack://wonder-image/./src/build/frontend/js/pageSetUp.js?f423","webpack://wonder-image/webpack/bootstrap","webpack://wonder-image/webpack/runtime/compat get default export","webpack://wonder-image/webpack/runtime/define property getters","webpack://wonder-image/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["module.exports = \"function alertContainer() {\\n\\n if (document.querySelector('.alert-container')) {\\n\\n var container = document.querySelector('.alert-container');\\n\\n } else {\\n\\n var container = document.createElement('div');\\n container.classList.add('alert-container');\\n container.classList.add('p-f');\\n container.classList.add('top');\\n container.classList.add('start');\\n container.classList.add('w-100');\\n container.classList.add('h-100');\\n container.classList.add('no-interaction');\\n container.style.zIndex = \\\"1000\\\";\\n\\n document.body.insertBefore(container, document.body.firstChild);\\n\\n }\\n\\n return container;\\n\\n}\\n\\nfunction alertToast(alert) {\\n\\n var container = alertContainer();\\n\\n if (alert == 801) {\\n\\n container.innerHTML += NO_INTERNET_ALERT;\\n\\n } else {\\n\\n API_CLIENT_APP.post(\\\"/frontend/alert/\\\", { code: alert })\\n .then(data => {\\n\\n container.innerHTML += data.response;\\n \\n var url = new URL(window.location.href);\\n url.searchParams.delete('alert');\\n window.history.replaceState(null, null, url);\\n\\n })\\n .catch(error => console.error(error));\\n\\n }\\n\\n setTimeout(() => {\\n document.querySelectorAll('.wi-alert.wi-show').forEach(element => {\\n element.classList.remove('wi-show');\\n });\\n }, 4000);\\n\\n}\"","module.exports = \"function setAos() {\\n\\n if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {\\n AOS.init({\\n disable: 'mobile'\\n });\\n } else {\\n AOS.init();\\n }\\n\\n}\"","module.exports = \"function toggleDropdown(container) {\\n\\n if (container.classList.contains('wi-show')) {\\n closeDropdown(container);\\n } else {\\n openDropdown(container);\\n }\\n \\n}\\n\\nfunction openDropdown(container) {\\n\\n container.classList.add('wi-show'); \\n\\n if (container.querySelector('i.bi-chevron-down')) {\\n container.querySelector('i.bi-chevron-down').classList.add('bi-chevron-up');\\n container.querySelector('i.bi-chevron-down').classList.remove('bi-chevron-down');\\n }\\n\\n if (container.querySelector('i.bi-plus')) {\\n container.querySelector('i.bi-plus').classList.add('bi-dash');\\n container.querySelector('i.bi-plus').classList.remove('bi-plus');\\n }\\n\\n if (container.querySelector('i.bi-plus-lg')) {\\n container.querySelector('i.bi-plus-lg').classList.add('bi-dash-lg');\\n container.querySelector('i.bi-plus-lg').classList.remove('bi-plus-lg');\\n }\\n \\n}\\n\\nfunction closeDropdown(container) {\\n\\n container.classList.remove('wi-show'); \\n\\n if (container.querySelector('i.bi-chevron-up')) {\\n container.querySelector('i.bi-chevron-up').classList.add('bi-chevron-down');\\n container.querySelector('i.bi-chevron-up').classList.remove('bi-chevron-up');\\n }\\n\\n if (container.querySelector('i.bi-dash')) {\\n container.querySelector('i.bi-dash').classList.add('bi-plus');\\n container.querySelector('i.bi-dash').classList.remove('bi-dash');\\n }\\n\\n if (container.querySelector('i.bi-dash-lg')) {\\n container.querySelector('i.bi-dash-lg').classList.add('bi-plus-lg');\\n container.querySelector('i.bi-dash-lg').classList.remove('bi-dash-lg');\\n }\\n \\n}\\n\\nfunction setDropdown() {\\n \\n document.querySelectorAll(\\\".wi-dropdown-btn .wi-switcher\\\").forEach(element => {\\n\\n element.onclick = function() { toggleDropdown(element.parentElement); };\\n \\n element.parentElement.onmouseleave = function() { closeDropdown(element.parentElement); };\\n \\n });\\n\\n document.querySelectorAll(\\\".wi-dropdown-box .wi-switcher\\\").forEach(element => {\\n\\n if (element.parentElement.classList.contains('wi-show')) {\\n openDropdown(element.parentElement);\\n }\\n\\n element.onclick = function() { toggleDropdown(element.parentElement); };\\n \\n });\\n\\n}\"","module.exports = \"/**\\n * \\n * GOOGLE MAPS API\\n * \\n */\\n\\nfunction checkInputPlace(input, autocomplete) {\\n \\n var inputContainer = input.parentElement;\\n\\n var country = inputContainer.querySelector('[data-wi-spi=\\\"country\\\"]');\\n var province = inputContainer.querySelector('[data-wi-spi=\\\"province\\\"]');\\n var cap = inputContainer.querySelector('[data-wi-spi=\\\"cap\\\"]');\\n var city = inputContainer.querySelector('[data-wi-spi=\\\"city\\\"]');\\n var street = inputContainer.querySelector('[data-wi-spi=\\\"street\\\"]');\\n var number = inputContainer.querySelector('[data-wi-spi=\\\"number\\\"]');\\n\\n country.value = \\\"\\\";\\n province.value = \\\"\\\";\\n cap.value = \\\"\\\";\\n city.value = \\\"\\\";\\n street.value = \\\"\\\";\\n number.value = \\\"\\\";\\n\\n removeInputError(input);\\n\\n if (autocomplete.getPlace()) {\\n\\n var place = autocomplete.getPlace();\\n\\n if (place.address_components) {\\n\\n for (const component of place.address_components) {\\n \\n const componentType = component.types;\\n\\n if (componentType.includes('street_number')) { number.value = component.long_name; }\\n if (componentType.includes('route')) { street.value = component.short_name; }\\n if (componentType.includes('administrative_area_level_3') || componentType.includes('postal_town')) { city.value = component.short_name; }\\n if (componentType.includes('postal_code') || componentType.includes('postal_code_prefix')) { cap.value = component.short_name; }\\n if (componentType.includes('administrative_area_level_2')) { province.value = component.short_name; }\\n if (componentType.includes('country')) { country.value = component.short_name; }\\n\\n }\\n\\n if (country.value == \\\"\\\" || province.value == \\\"\\\" || cap.value == \\\"\\\" || city.value == \\\"\\\" || street.value == \\\"\\\" || number.value == \\\"\\\") {\\n \\n var error = \\\"Indirizzo non valido\\\";\\n\\n if (country.value == \\\"\\\") {\\n error += \\\", manca il paese\\\";\\n } else if (province.value == \\\"\\\") {\\n error += \\\", manca la provincia\\\";\\n } else if (cap.value == \\\"\\\") {\\n error += \\\", manca il cap\\\";\\n } else if (city.value == \\\"\\\") {\\n error += \\\", manca la città\\\";\\n } else if (street.value == \\\"\\\") {\\n error += \\\", manca la via\\\";\\n } else if (number.value == \\\"\\\") {\\n error += \\\", manca il numero civico\\\";\\n }\\n\\n inputError(input, error);\\n \\n }\\n\\n } else {\\n\\n inputError(input, 'Indirizzo non valido');\\n\\n }\\n\\n } else {\\n\\n inputError(input, 'Indirizzo non valido');\\n\\n }\\n\\n check();\\n\\n}\\n\\nfunction setPlace(input, country = null, province = null, cap = null, city = null, street = null, number = null) {\\n\\n var inputContainer = input.parentElement;\\n\\n var countryInput = inputContainer.querySelector('[data-wi-spi=\\\"country\\\"]');\\n var provinceInput = inputContainer.querySelector('[data-wi-spi=\\\"province\\\"]');\\n var capInput = inputContainer.querySelector('[data-wi-spi=\\\"cap\\\"]');\\n var cityInput = inputContainer.querySelector('[data-wi-spi=\\\"city\\\"]');\\n var streetInput = inputContainer.querySelector('[data-wi-spi=\\\"street\\\"]');\\n var numberInput = inputContainer.querySelector('[data-wi-spi=\\\"number\\\"]');\\n\\n if (country == null) {\\n\\n country = countryInput.value;\\n province = provinceInput.value;\\n cap = capInput.value;\\n city = cityInput.value;\\n street = streetInput.value;\\n number = numberInput.value;\\n\\n } else {\\n\\n countryInput.value = country;\\n provinceInput.value = province;\\n capInput.value = cap;\\n cityInput.value = city;\\n streetInput.value = street;\\n numberInput.value = number;\\n \\n }\\n\\n if (country != \\\"\\\" || province != \\\"\\\" || cap != \\\"\\\" || city != \\\"\\\" || street != \\\"\\\" || number != \\\"\\\") {\\n \\n var address = street+', '+number+', '+city+', '+province+', '+country;\\n input.value = address;\\n\\n checkLabel();\\n check();\\n\\n }\\n\\n}\\n\\n/**\\n * \\n * inputCountry() - inputStates()\\n * \\n */\\n\\nfunction setInputCountry() {\\n\\n document.querySelectorAll(\\\"[data-wi-input-country='true']\\\").forEach(element => {\\n element.addEventListener(\\\"change\\\", searchStates);\\n element.addEventListener(\\\"focusout\\\", searchStates);\\n });\\n\\n}\\n\\nfunction setCountryState(input, country, state) {\\n\\n textListValue(input, country);\\n searchStates(input, state);\\n \\n}\\n\\nfunction searchStates(event, stateValue = null) {\\n\\n if (typeof event.target !== \\\"undefined\\\") {\\n var inputCountry = event.target;\\n } else {\\n var inputCountry = event;\\n }\\n \\n var form = inputCountry.form;\\n var inputCountryName = inputCountry.dataset.wiName.replace('-text', '');\\n var inputStateName = inputCountry.dataset.wiInputState;\\n\\n var inputState = form.querySelector('input[data-wi-name=\\\"'+inputStateName+'-text\\\"]');\\n\\n inputState.disabled = true;\\n inputState.value = \\\"\\\";\\n\\n delay(100).then(() => {\\n\\n if (form.querySelector('input[name=\\\"'+inputCountryName+'\\\"]:checked') != null) {\\n\\n var country = form.querySelector('input[name=\\\"'+inputCountryName+'\\\"]:checked').value;\\n \\n if (inputState.dataset.wiListStates != country) {\\n \\n inputState.dataset.wiListStates = country;\\n\\n loadingSpinner(true);\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: pathApp+'/api/states.php',\\n data: { \\n post: 'true',\\n country: country\\n }, \\n success: function (data) {\\n\\n const response = JSON.parse(data);\\n\\n textListOptions( inputState, response );\\n\\n inputState.disabled = false;\\n\\n if (stateValue != null && stateValue != \\\"\\\") { textListValue(inputState, stateValue); }\\n\\n loadingSpinner(false);\\n\\n },\\n error: function (XMLHttpRequest) {\\n\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner(false);\\n\\n }\\n });\\n\\n } else {\\n\\n inputState.disabled = false;\\n \\n }\\n\\n }\\n\\n });\\n\\n}\"","module.exports = \"var x, i, j, l, ll, selElmnt, a, b, c;\\n\\n// Le liste dei select sono position:absolute dentro .wi-input-container: un\\n// antenato con overflow:hidden le ritaglierebbe. All'apertura la lista passa a\\n// position:fixed con coordinate calcolate dal box selezionato, cosi' esce da\\n// qualsiasi overflow:hidden mantenendolo sul form. Riposizionata su scroll/resize.\\nfunction positionSelectList(container) {\\n\\n if (!container) { return; }\\n\\n var selected = container.querySelector(\\\".select-selected\\\");\\n var list = container.querySelector(\\\".select-items\\\");\\n\\n if (!selected || !list) { return; }\\n\\n var rect = selected.getBoundingClientRect();\\n\\n list.style.position = \\\"fixed\\\";\\n list.style.top = rect.bottom + \\\"px\\\";\\n list.style.left = rect.left + \\\"px\\\";\\n list.style.width = rect.width + \\\"px\\\";\\n list.style.zIndex = \\\"1000\\\";\\n\\n}\\n\\nfunction clearSelectListPosition(container) {\\n\\n if (!container) { return; }\\n\\n var list = container.querySelector(\\\".select-items\\\");\\n\\n if (!list) { return; }\\n\\n list.style.position = \\\"\\\";\\n list.style.top = \\\"\\\";\\n list.style.left = \\\"\\\";\\n list.style.width = \\\"\\\";\\n list.style.zIndex = \\\"\\\";\\n\\n}\\n\\nfunction repositionActiveSelect() {\\n\\n document.querySelectorAll(\\\".wi-input-container.wi-list-active\\\").forEach(positionSelectList);\\n\\n}\\n\\n// Un solo observer segue l'apertura/chiusura (classe wi-list-active) di ogni\\n// container, indipendentemente da come viene attivata la lista.\\nvar wiSelectObserver = new MutationObserver(function(mutations) {\\n\\n mutations.forEach(function(mutation) {\\n\\n var el = mutation.target;\\n\\n if (!el.classList || !el.classList.contains(\\\"wi-input-container\\\")) { return; }\\n\\n if (el.classList.contains(\\\"wi-list-active\\\")) {\\n positionSelectList(el);\\n } else {\\n clearSelectListPosition(el);\\n }\\n\\n });\\n\\n});\\n\\nwindow.addEventListener(\\\"scroll\\\", repositionActiveSelect, true);\\nwindow.addEventListener(\\\"resize\\\", repositionActiveSelect);\\n\\n// Look for any elements with the class \\\"custom-select\\\":\\nx = document.querySelectorAll(\\\"[data-wi-select='true']\\\");\\nl = x.length;\\n\\nfor (i = 0; i < l; i++) {\\n\\n selElmnt = x[i].getElementsByTagName(\\\"select\\\")[0];\\n ll = selElmnt.length;\\n\\n // For each element, create a new DIV that will act as the selected item:\\n a = document.createElement(\\\"DIV\\\");\\n a.setAttribute(\\\"class\\\", \\\"select-selected wi-input\\\");\\n a.innerHTML = selElmnt.selectedIndex >= 0\\n ? selElmnt.options[selElmnt.selectedIndex].innerHTML\\n : \\\"\\\";\\n x[i].appendChild(a);\\n\\n // For each element, create a new DIV that will contain the option list:\\n b = document.createElement(\\\"DIV\\\");\\n b.setAttribute(\\\"class\\\", \\\"select-items wi-input-list no-scrollbar\\\");\\n\\n for (j = 0; j < ll; j++) {\\n\\n // For each option in the original select element, create a new DIV that will act as an option item:\\n c = document.createElement(\\\"DIV\\\");\\n c.id = selElmnt.options[j].value;\\n c.dataset.wiOptionIndex = j;\\n c.setAttribute(\\\"class\\\", \\\"wi-input-list-value\\\");\\n c.innerHTML = selElmnt.options[j].innerHTML;\\n\\n // Se è impostato un valore di default selezionalo\\n if (j === selElmnt.selectedIndex) { c.classList.add(\\\"same-as-selected\\\"); }\\n\\n c.addEventListener(\\\"click\\\", function(e) {\\n\\n // When an item is clicked, update the original select box, and the selected item:\\n var y, k, s, h, yl, optionIndex, previousIndex;\\n s = this.parentNode.parentNode.getElementsByTagName(\\\"select\\\")[0];\\n previousIndex = s.selectedIndex;\\n optionIndex = parseInt(this.dataset.wiOptionIndex, 10);\\n h = this.parentNode.previousSibling;\\n\\n if (!Number.isNaN(optionIndex) && s.options[optionIndex]) {\\n s.selectedIndex = optionIndex;\\n h.innerHTML = s.options[optionIndex].innerHTML;\\n y = this.parentNode.querySelectorAll(\\\".same-as-selected\\\");\\n y.forEach(function(option) { option.classList.remove(\\\"same-as-selected\\\"); });\\n this.setAttribute(\\\"class\\\", \\\"wi-input-list-value same-as-selected\\\");\\n }\\n\\n h.click();\\n\\n if (s.selectedIndex !== previousIndex) {\\n s.dispatchEvent(new Event(\\\"input\\\", { bubbles: true }));\\n s.dispatchEvent(new Event(\\\"change\\\", { bubbles: true }));\\n }\\n\\n });\\n\\n b.appendChild(c);\\n\\n }\\n\\n x[i].appendChild(b);\\n\\n // Segue i cambi di stato del container per riposizionare la lista aperta.\\n wiSelectObserver.observe(x[i], { attributes: true, attributeFilter: [\\\"class\\\"] });\\n\\n a.addEventListener(\\\"click\\\", function(e) {\\n\\n // When the select box is clicked, close any other select boxes, and open/close the current select box\\n e.stopPropagation();\\n closeAllSelect(this);\\n this.classList.toggle(\\\"select-arrow-active\\\");\\n this.parentNode.classList.toggle(\\\"wi-list-active\\\");\\n check();\\n\\n });\\n\\n}\\n\\nfunction closeAllSelect(elmnt) {\\n\\n // A function that will close all select boxes in the document, except the current select box:\\n var x, y, i, xl, yl, arrNo = [];\\n x = document.getElementsByClassName(\\\"select-items\\\");\\n y = document.getElementsByClassName(\\\"select-selected\\\");\\n var container = document.querySelector(\\\".wi-input-container.wi-list-active\\\");\\n xl = x.length;\\n yl = y.length;\\n\\n for (i = 0; i < yl; i++) {\\n if (elmnt == y[i]) {\\n arrNo.push(i)\\n }else{\\n y[i].classList.remove(\\\"select-arrow-active\\\");\\n }\\n }\\n\\n if (container != null) {\\n container.classList.remove(\\\"wi-list-active\\\");\\n }\\n\\n}\\n\\n// If the user clicks anywhere outside the select box, then close all select boxes:\\ndocument.addEventListener(\\\"click\\\", closeAllSelect);\\n\"","module.exports = \"function formToArray(formElements) {\\n\\n const ARRAY = {};\\n\\n for (let i = 0; i < formElements.length; i++) {\\n\\n var add = false;\\n\\n var input = formElements[i];\\n\\n if (input.type == 'checkbox' || input.type == 'radio') {\\n if (input.checked == true) { var add = true; }\\n } else {\\n if (input.value != \\\"\\\") { var add = true;}\\n }\\n\\n if (add) {\\n\\n var inputName = input.name;\\n var inputValue = input.value;\\n\\n if (inputName.includes(\\\"[]\\\")) {\\n\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n\\n if (inputName in ARRAY) {\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n ARRAY[inputName].push(inputValue);\\n } else {\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n ARRAY[inputName] = [];\\n ARRAY[inputName].push(inputValue);\\n }\\n \\n } else {\\n\\n if (inputName in ARRAY) {\\n\\n } else {\\n ARRAY[inputName] = inputValue;\\n }\\n\\n }\\n\\n }\\n\\n }\\n\\n return ARRAY;\\n \\n}\\n\\nfunction prettyFormResponse(data) {\\n\\n if (data != '') {\\n \\n console.log('ERRORE FORM: '+data);\\n\\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n container.innerHTML = '<div class=\\\"title-big a-c\\\"><i class=\\\"bi bi-x-circle tx-danger\\\"></i></div><div class=\\\"subtitle mt-8 a-c\\\">C\\\\'è stato un problema con l\\\\'invio della tua richiesta</div><div class=\\\"c-w mt-10\\\"><a onclick=\\\"location.reload();\\\" class=\\\"btn btn-primary c-w\\\">Riprova</a></div>';\\n\\n } else {\\n \\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n container.innerHTML = '<div class=\\\"title-big a-c\\\"><i class=\\\"bi bi-check2-circle tx-success\\\"></i></div><div class=\\\"subtitle mt-8 a-c\\\">La tua richiesta è stata inviata con successo!</div><div class=\\\"c-w mt-10\\\"><a onclick=\\\"location.reload(); \\\" class=\\\"btn btn-primary c-w\\\">Torna al sito</a></div>';\\n\\n }\\n \\n}\\n\\nfunction sendForm(button, url, responseFunction = prettyFormResponse) {\\n\\n loadingSpinner();\\n\\n const VALUES = formToArray(button.form.elements);\\n var form = JSON.stringify(VALUES);\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: { \\n post: 'true',\\n form: form\\n }, \\n success: function (data) {\\n\\n if (responseFunction != null) {\\n if (typeof responseFunction === 'function') {\\n responseFunction(data);\\n } else {\\n loadingSpinner();\\n }\\n }\\n\\n },\\n error: function (XMLHttpRequest) {\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner();\\n }\\n });\\n\\n}\\n\\nfunction formUpload(form, url, responseFunction = prettyFormResponse) {\\n\\n loadingSpinner();\\n \\n var formData = new FormData(form);\\n formData.append('post', 'true');\\n \\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: formData,\\n contentType: false,\\n cache: false,\\n processData:false, \\n success: function (data) {\\n\\n if (responseFunction != null) {\\n if (typeof responseFunction === 'function') {\\n responseFunction(data);\\n } else {\\n loadingSpinner();\\n }\\n }\\n\\n },\\n error: function (XMLHttpRequest) {\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner();\\n }\\n });\\n\\n}\\n \\nasync function formSubmit(form, endpoint = '/frontend/form/', callback = loadingResponse ) {\\n\\n loadingSpinner();\\n\\n var data = new FormData(form);\\n let response;\\n\\n try {\\n\\n response = await API_CLIENT.post(endpoint, data);\\n\\n } catch (error) {\\n console.error(error);\\n response = error;\\n }\\n\\n if (typeof callback === 'function') {\\n callback(response);\\n } else {\\n loadingSpinner();\\n }\\n\\n}\\n\\nfunction loadingResponse(data) {\\n\\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n\\n var icon = `<i class=\\\"bi bi-check2-circle tx-success\\\"></i>`;\\n var action = `location.reload();`;\\n var text = data.response;\\n var buttonLabel = 'back_site';\\n\\n if (!data.success) {\\n\\n icon = `<i class=\\\"bi bi-x-circle tx-danger\\\"></i>`;\\n action = `loadingSpinner();`;\\n\\n buttonLabel = 'retry';\\n\\n }\\n\\n buttonLabel = __t('components.buttons.'+buttonLabel)\\n\\n container.innerHTML = `\\n <div class=\\\"title-big a-c\\\">\\n ${icon}\\n </div>\\n <div class=\\\"subtitle mt-8 a-c\\\"> ${text} </div>\\n <div class=\\\"c-w mt-10\\\">\\n <a onclick=\\\"${action}\\\" class=\\\"btn btn-primary c-w\\\"> ${buttonLabel} </a>\\n </div>\\n `;\\n\\n}\"","module.exports = \"function menuMobile(hamburger = \\\"#hamburger\\\", navMobile = \\\"#nav-mobile\\\") { \\n \\n if (hamburger != null) { document.querySelector(hamburger).classList.toggle(\\\"click\\\"); }\\n if (navMobile != null) { document.querySelector(navMobile).classList.toggle(\\\"show\\\"); }\\n\\n if (document.querySelector(hamburger).classList.contains(\\\"click\\\")) {\\n disableScroll();\\n } else {\\n enableScroll();\\n }\\n\\n}\"","module.exports = \"function modal(selector) {\\n\\n setUpModal(selector);\\n\\n var modal = document.querySelector(selector);\\n\\n modal.classList.toggle('wi-show');\\n modal.classList.toggle('no-interaction');\\n\\n if (modal.classList.contains('wi-show')) {\\n disableScroll();\\n } else {\\n enableScroll();\\n }\\n\\n}\\n\\nfunction setUpModal(selector) {\\n \\n document.querySelectorAll(selector + ' .wi-close-modal').forEach(element => {\\n if (element.onclick == null) {\\n element.onclick = function() { modal(selector) };\\n }\\n });\\n\\n}\"","module.exports = \"function setUpPage() {\\n\\n var PAGE_URL = new URL(window.location.href);\\n\\n if (PAGE_URL.searchParams.get('scroll')) {\\n \\n var idScroll = PAGE_URL.searchParams.get('scroll');\\n scrolla('#'+idScroll);\\n\\n }\\n\\n // L'alert non viene passato solo tramite GET ma anche tramite variabile php\\n // if (PAGE_URL.searchParams.get('alert')) {\\n // var alertCode = PAGE_URL.searchParams.get('alert'); alertToast(alertCode);\\n // }\\n\\n setInput();\\n setDropdown();\\n setVideoJS();\\n setTooltip();\\n \\n window.dispatchEvent(new Event('loaded'));\\n \\n};\"","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/alert.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/aos.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/dropdown.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/place.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/select.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/send.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/header.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/modal.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/pageSetUp.js\"))","// The module cache\nconst __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tconst 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\tconst 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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tconst getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter/value functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tif(Array.isArray(definition)) {\n\t\tvar i = 0;\n\t\twhile(i < definition.length) {\n\t\t\tvar key = definition[i++];\n\t\t\tvar binding = definition[i++];\n\t\t\tif(!__webpack_require__.o(exports, key)) {\n\t\t\t\tif(binding === 0) {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, value: definition[i++] });\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: binding });\n\t\t\t\t}\n\t\t\t} else if(binding === 0) { i++; }\n\t\t}\n\t} else {\n\t\tfor(var key in definition) {\n\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t\t}\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))"],"names":["module","exports","src","log","error","console","execScript","attachEvent","addEventListener","eval","call","__webpack_require__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","Array","isArray","i","length","key","binding","o","Object","defineProperty","enumerable","value","get","obj","prop","prototype","hasOwnProperty"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"frontend/body-end.js","mappings":";qBAAAA,EAAAC,QAAA,w7CCAAD,EAAAC,QAAA,iPCAAD,EAAAC,QAAA,+zECAAD,EAAAC,QAAA,mpNCAAD,EAAAC,QAAA,koPCAAD,EAAAC,QAAA,wmKCAAD,EAAAC,QAAA,sbCAAD,EAAAC,QAAA,2kBCAAD,EAAAC,QAAA,6mBCIAD,EAAAC,QAAA,SAAAC,GACA,SAAAC,EAAAC,GACA,oBAAAC,UACAA,QAAAD,OAAAC,QAAAF,KAAA,kBAAAC,EACA,CAOA,IACA,oBAAAE,YAJA,oBAAAC,aAAA,oBAAAC,iBAKAF,WAAAJ,GACI,oBAAAO,KACJA,KAAAC,KAAA,KAAAR,GAEAC,EAAA,wCAEA,CAAG,MAAAC,GACHD,EAAAC,EACA,CACA,eC1BAO,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,oBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,mBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,mBCA1GA,EAAQ,KAARA,CAAkGA,EAAQ,QCC1G,MAAAC,EAAA,GAGA,SAAAD,EAAAE,GAEA,MAAAC,EAAAF,EAAAC,GACA,QAAAE,IAAAD,EACA,OAAAA,EAAAb,QAGA,MAAAD,EAAAY,EAAAC,GAAA,CAGAZ,QAAA,IAOA,OAHAe,EAAAH,GAAAb,EAAAA,EAAAC,QAAAU,GAGAX,EAAAC,OACA,CCrBAU,EAAAM,EAAAjB,IACA,MAAAkB,EAAAlB,GAAAA,EAAAmB,WACA,IAAAnB,EAAA,QACA,MAEA,OADAW,EAAAS,EAAAF,EAAA,CAAiCG,EAAAH,IACjCA,GCLAP,EAAAS,EAAA,CAAAnB,EAAAqB,KACA,GAAAC,MAAAC,QAAAF,GAEA,IADA,IAAAG,EAAA,EACAA,EAAAH,EAAAI,QAAA,CACA,IAAAC,EAAAL,EAAAG,KACAG,EAAAN,EAAAG,KACAd,EAAAkB,EAAA5B,EAAA0B,GAMK,IAAAC,GAAyBH,IAL9B,IAAAG,EACAE,OAAAC,eAAA9B,EAAA0B,EAAA,CAA2CK,YAAA,EAAAC,MAAAX,EAAAG,OAE3CK,OAAAC,eAAA9B,EAAA0B,EAAA,CAA2CK,YAAA,EAAAE,IAAAN,GAG3C,MAEA,QAAAD,KAAAL,EACAX,EAAAkB,EAAAP,EAAAK,KAAAhB,EAAAkB,EAAA5B,EAAA0B,IACAG,OAAAC,eAAA9B,EAAA0B,EAAA,CAA0CK,YAAA,EAAAE,IAAAZ,EAAAK,MClB1ChB,EAAAkB,EAAA,CAAAM,EAAAC,IAAAN,OAAAO,UAAAC,eAAA5B,KAAAyB,EAAAC","sources":["webpack://wonder-image/./src/build/frontend/js/alert.js","webpack://wonder-image/./src/build/frontend/js/aos.js","webpack://wonder-image/./src/build/frontend/js/dropdown.js","webpack://wonder-image/./src/build/frontend/js/form/place.js","webpack://wonder-image/./src/build/frontend/js/form/select.js","webpack://wonder-image/./src/build/frontend/js/form/send.js","webpack://wonder-image/./src/build/frontend/js/header.js","webpack://wonder-image/./src/build/frontend/js/modal.js","webpack://wonder-image/./src/build/frontend/js/pageSetUp.js","webpack://wonder-image/./node_modules/script-loader/addScript.js","webpack://wonder-image/./src/build/frontend/js/alert.js?37ef","webpack://wonder-image/./src/build/frontend/js/aos.js?68ca","webpack://wonder-image/./src/build/frontend/js/dropdown.js?51db","webpack://wonder-image/./src/build/frontend/js/form/place.js?6f16","webpack://wonder-image/./src/build/frontend/js/form/select.js?c3d3","webpack://wonder-image/./src/build/frontend/js/form/send.js?2a0e","webpack://wonder-image/./src/build/frontend/js/header.js?c891","webpack://wonder-image/./src/build/frontend/js/modal.js?9265","webpack://wonder-image/./src/build/frontend/js/pageSetUp.js?f423","webpack://wonder-image/webpack/bootstrap","webpack://wonder-image/webpack/runtime/compat get default export","webpack://wonder-image/webpack/runtime/define property getters","webpack://wonder-image/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["module.exports = \"function alertContainer() {\\n\\n if (document.querySelector('.alert-container')) {\\n\\n var container = document.querySelector('.alert-container');\\n\\n } else {\\n\\n var container = document.createElement('div');\\n container.classList.add('alert-container');\\n container.classList.add('p-f');\\n container.classList.add('top');\\n container.classList.add('start');\\n container.classList.add('w-100');\\n container.classList.add('h-100');\\n container.classList.add('no-interaction');\\n container.style.zIndex = \\\"1000\\\";\\n\\n document.body.insertBefore(container, document.body.firstChild);\\n\\n }\\n\\n return container;\\n\\n}\\n\\nfunction alertToast(alert) {\\n\\n var container = alertContainer();\\n\\n if (alert == 801) {\\n\\n container.innerHTML += NO_INTERNET_ALERT;\\n\\n } else {\\n\\n API_CLIENT_APP.post(\\\"/frontend/alert/\\\", { code: alert })\\n .then(data => {\\n\\n container.innerHTML += data.response;\\n \\n var url = new URL(window.location.href);\\n url.searchParams.delete('alert');\\n window.history.replaceState(null, null, url);\\n\\n })\\n .catch(error => console.error(error));\\n\\n }\\n\\n setTimeout(() => {\\n document.querySelectorAll('.wi-alert.wi-show').forEach(element => {\\n element.classList.remove('wi-show');\\n });\\n }, 4000);\\n\\n}\"","module.exports = \"function setAos() {\\n\\n if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {\\n AOS.init({\\n disable: 'mobile'\\n });\\n } else {\\n AOS.init();\\n }\\n\\n}\"","module.exports = \"function toggleDropdown(container) {\\n\\n if (container.classList.contains('wi-show')) {\\n closeDropdown(container);\\n } else {\\n openDropdown(container);\\n }\\n \\n}\\n\\nfunction openDropdown(container) {\\n\\n container.classList.add('wi-show'); \\n\\n if (container.querySelector('i.bi-chevron-down')) {\\n container.querySelector('i.bi-chevron-down').classList.add('bi-chevron-up');\\n container.querySelector('i.bi-chevron-down').classList.remove('bi-chevron-down');\\n }\\n\\n if (container.querySelector('i.bi-plus')) {\\n container.querySelector('i.bi-plus').classList.add('bi-dash');\\n container.querySelector('i.bi-plus').classList.remove('bi-plus');\\n }\\n\\n if (container.querySelector('i.bi-plus-lg')) {\\n container.querySelector('i.bi-plus-lg').classList.add('bi-dash-lg');\\n container.querySelector('i.bi-plus-lg').classList.remove('bi-plus-lg');\\n }\\n \\n}\\n\\nfunction closeDropdown(container) {\\n\\n container.classList.remove('wi-show'); \\n\\n if (container.querySelector('i.bi-chevron-up')) {\\n container.querySelector('i.bi-chevron-up').classList.add('bi-chevron-down');\\n container.querySelector('i.bi-chevron-up').classList.remove('bi-chevron-up');\\n }\\n\\n if (container.querySelector('i.bi-dash')) {\\n container.querySelector('i.bi-dash').classList.add('bi-plus');\\n container.querySelector('i.bi-dash').classList.remove('bi-dash');\\n }\\n\\n if (container.querySelector('i.bi-dash-lg')) {\\n container.querySelector('i.bi-dash-lg').classList.add('bi-plus-lg');\\n container.querySelector('i.bi-dash-lg').classList.remove('bi-dash-lg');\\n }\\n \\n}\\n\\nfunction setDropdown() {\\n \\n document.querySelectorAll(\\\".wi-dropdown-btn .wi-switcher\\\").forEach(element => {\\n\\n element.onclick = function() { toggleDropdown(element.parentElement); };\\n \\n element.parentElement.onmouseleave = function() { closeDropdown(element.parentElement); };\\n \\n });\\n\\n document.querySelectorAll(\\\".wi-dropdown-box .wi-switcher\\\").forEach(element => {\\n\\n if (element.parentElement.classList.contains('wi-show')) {\\n openDropdown(element.parentElement);\\n }\\n\\n element.onclick = function() { toggleDropdown(element.parentElement); };\\n \\n });\\n\\n}\"","module.exports = \"/**\\n * \\n * GOOGLE MAPS API\\n * \\n */\\n\\nfunction checkInputPlace(input, autocomplete) {\\n \\n var inputContainer = input.parentElement;\\n\\n var country = inputContainer.querySelector('[data-wi-spi=\\\"country\\\"]');\\n var province = inputContainer.querySelector('[data-wi-spi=\\\"province\\\"]');\\n var cap = inputContainer.querySelector('[data-wi-spi=\\\"cap\\\"]');\\n var city = inputContainer.querySelector('[data-wi-spi=\\\"city\\\"]');\\n var street = inputContainer.querySelector('[data-wi-spi=\\\"street\\\"]');\\n var number = inputContainer.querySelector('[data-wi-spi=\\\"number\\\"]');\\n\\n country.value = \\\"\\\";\\n province.value = \\\"\\\";\\n cap.value = \\\"\\\";\\n city.value = \\\"\\\";\\n street.value = \\\"\\\";\\n number.value = \\\"\\\";\\n\\n removeInputError(input);\\n\\n if (autocomplete.getPlace()) {\\n\\n var place = autocomplete.getPlace();\\n\\n if (place.address_components) {\\n\\n for (const component of place.address_components) {\\n \\n const componentType = component.types;\\n\\n if (componentType.includes('street_number')) { number.value = component.long_name; }\\n if (componentType.includes('route')) { street.value = component.short_name; }\\n if (componentType.includes('administrative_area_level_3') || componentType.includes('postal_town')) { city.value = component.short_name; }\\n if (componentType.includes('postal_code') || componentType.includes('postal_code_prefix')) { cap.value = component.short_name; }\\n if (componentType.includes('administrative_area_level_2')) { province.value = component.short_name; }\\n if (componentType.includes('country')) { country.value = component.short_name; }\\n\\n }\\n\\n if (country.value == \\\"\\\" || province.value == \\\"\\\" || cap.value == \\\"\\\" || city.value == \\\"\\\" || street.value == \\\"\\\" || number.value == \\\"\\\") {\\n \\n var error = \\\"Indirizzo non valido\\\";\\n\\n if (country.value == \\\"\\\") {\\n error += \\\", manca il paese\\\";\\n } else if (province.value == \\\"\\\") {\\n error += \\\", manca la provincia\\\";\\n } else if (cap.value == \\\"\\\") {\\n error += \\\", manca il cap\\\";\\n } else if (city.value == \\\"\\\") {\\n error += \\\", manca la città\\\";\\n } else if (street.value == \\\"\\\") {\\n error += \\\", manca la via\\\";\\n } else if (number.value == \\\"\\\") {\\n error += \\\", manca il numero civico\\\";\\n }\\n\\n inputError(input, error);\\n \\n }\\n\\n } else {\\n\\n inputError(input, 'Indirizzo non valido');\\n\\n }\\n\\n } else {\\n\\n inputError(input, 'Indirizzo non valido');\\n\\n }\\n\\n check();\\n\\n}\\n\\nfunction setPlace(input, country = null, province = null, cap = null, city = null, street = null, number = null) {\\n\\n var inputContainer = input.parentElement;\\n\\n var countryInput = inputContainer.querySelector('[data-wi-spi=\\\"country\\\"]');\\n var provinceInput = inputContainer.querySelector('[data-wi-spi=\\\"province\\\"]');\\n var capInput = inputContainer.querySelector('[data-wi-spi=\\\"cap\\\"]');\\n var cityInput = inputContainer.querySelector('[data-wi-spi=\\\"city\\\"]');\\n var streetInput = inputContainer.querySelector('[data-wi-spi=\\\"street\\\"]');\\n var numberInput = inputContainer.querySelector('[data-wi-spi=\\\"number\\\"]');\\n\\n if (country == null) {\\n\\n country = countryInput.value;\\n province = provinceInput.value;\\n cap = capInput.value;\\n city = cityInput.value;\\n street = streetInput.value;\\n number = numberInput.value;\\n\\n } else {\\n\\n countryInput.value = country;\\n provinceInput.value = province;\\n capInput.value = cap;\\n cityInput.value = city;\\n streetInput.value = street;\\n numberInput.value = number;\\n \\n }\\n\\n if (country != \\\"\\\" || province != \\\"\\\" || cap != \\\"\\\" || city != \\\"\\\" || street != \\\"\\\" || number != \\\"\\\") {\\n \\n var address = street+', '+number+', '+city+', '+province+', '+country;\\n input.value = address;\\n\\n checkLabel();\\n check();\\n\\n }\\n\\n}\\n\\n/**\\n * \\n * inputCountry() - inputStates()\\n * \\n */\\n\\nfunction setInputCountry() {\\n\\n document.querySelectorAll(\\\"[data-wi-input-country='true']\\\").forEach(element => {\\n element.addEventListener(\\\"change\\\", searchStates);\\n element.addEventListener(\\\"focusout\\\", searchStates);\\n });\\n\\n}\\n\\nfunction setCountryState(input, country, state) {\\n\\n textListValue(input, country);\\n searchStates(input, state);\\n \\n}\\n\\nfunction searchStates(event, stateValue = null) {\\n\\n if (typeof event.target !== \\\"undefined\\\") {\\n var inputCountry = event.target;\\n } else {\\n var inputCountry = event;\\n }\\n \\n var form = inputCountry.form;\\n var inputCountryName = inputCountry.dataset.wiName.replace('-text', '');\\n var inputStateName = inputCountry.dataset.wiInputState;\\n\\n var inputState = form.querySelector('input[data-wi-name=\\\"'+inputStateName+'-text\\\"]');\\n\\n inputState.disabled = true;\\n inputState.value = \\\"\\\";\\n\\n delay(100).then(() => {\\n\\n if (form.querySelector('input[name=\\\"'+inputCountryName+'\\\"]:checked') != null) {\\n\\n var country = form.querySelector('input[name=\\\"'+inputCountryName+'\\\"]:checked').value;\\n \\n if (inputState.dataset.wiListStates != country) {\\n \\n inputState.dataset.wiListStates = country;\\n\\n loadingSpinner(true);\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: pathApp+'/api/states.php',\\n data: { \\n post: 'true',\\n country: country\\n }, \\n success: function (data) {\\n\\n const response = JSON.parse(data);\\n\\n textListOptions( inputState, response );\\n\\n inputState.disabled = false;\\n\\n if (stateValue != null && stateValue != \\\"\\\") { textListValue(inputState, stateValue); }\\n\\n loadingSpinner(false);\\n\\n },\\n error: function (XMLHttpRequest) {\\n\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner(false);\\n\\n }\\n });\\n\\n } else {\\n\\n inputState.disabled = false;\\n \\n }\\n\\n }\\n\\n });\\n\\n}\"","module.exports = \"var x, i, j, l, ll, selElmnt, a, b, c;\\n\\n// Le liste dei select sono position:absolute dentro .wi-input-container: un\\n// antenato con overflow:hidden le ritaglierebbe. All'apertura la lista passa a\\n// position:fixed con coordinate calcolate dal box selezionato, cosi' esce da\\n// qualsiasi overflow:hidden mantenendolo sul form. Il Popover API porta la lista\\n// nel top layer senza cambiarne il parent DOM, evitando clipping e containing\\n// block creati da transform. Il calcolo dell'origine resta come fallback.\\nfunction positionSelectList(container) {\\n\\n if (!container) { return; }\\n\\n var selected = container.querySelector(\\\".select-selected\\\");\\n var list = container.querySelector(\\\".select-items\\\");\\n\\n if (!selected || !list) { return; }\\n\\n var rect = selected.getBoundingClientRect();\\n var borderBottom = Number.parseFloat(getComputedStyle(selected).borderBottomWidth) || 0;\\n var listTop = rect.bottom - borderBottom;\\n var transition = list.style.transition;\\n var supportsPopover = typeof list.showPopover === \\\"function\\\";\\n\\n list.style.transition = \\\"none\\\";\\n list.style.position = \\\"fixed\\\";\\n list.style.boxSizing = \\\"border-box\\\";\\n list.style.width = rect.width + \\\"px\\\";\\n list.style.zIndex = \\\"1000\\\";\\n\\n if (supportsPopover) {\\n list.style.inset = \\\"auto\\\";\\n list.style.margin = \\\"0\\\";\\n list.style.padding = \\\"0\\\";\\n list.style.top = listTop + \\\"px\\\";\\n list.style.left = rect.left + \\\"px\\\";\\n\\n if (!list.matches(\\\":popover-open\\\")) { list.showPopover(); }\\n\\n list.getBoundingClientRect();\\n list.style.transition = transition;\\n return;\\n }\\n\\n list.style.top = \\\"0px\\\";\\n list.style.left = \\\"0px\\\";\\n\\n var origin = list.getBoundingClientRect();\\n\\n list.style.top = (listTop - origin.top) + \\\"px\\\";\\n list.style.left = (rect.left - origin.left) + \\\"px\\\";\\n\\n // Applica le coordinate senza animarle dall'origin temporanea.\\n list.getBoundingClientRect();\\n list.style.transition = transition;\\n\\n}\\n\\nfunction clearSelectListPosition(container) {\\n\\n if (!container) { return; }\\n\\n var list = container.querySelector(\\\".select-items\\\");\\n\\n if (!list) { return; }\\n\\n if (typeof list.hidePopover === \\\"function\\\" && list.matches(\\\":popover-open\\\")) {\\n list.hidePopover();\\n }\\n\\n list.style.position = \\\"\\\";\\n list.style.boxSizing = \\\"\\\";\\n list.style.inset = \\\"\\\";\\n list.style.margin = \\\"\\\";\\n list.style.padding = \\\"\\\";\\n list.style.top = \\\"\\\";\\n list.style.left = \\\"\\\";\\n list.style.width = \\\"\\\";\\n list.style.zIndex = \\\"\\\";\\n\\n}\\n\\nfunction repositionActiveSelect() {\\n\\n document.querySelectorAll(\\\".wi-input-container.wi-list-active\\\").forEach(positionSelectList);\\n\\n}\\n\\n// Un solo observer segue l'apertura/chiusura (classe wi-list-active) di ogni\\n// container, indipendentemente da come viene attivata la lista.\\nvar wiSelectObserver = new MutationObserver(function(mutations) {\\n\\n mutations.forEach(function(mutation) {\\n\\n var el = mutation.target;\\n\\n if (!el.classList || !el.classList.contains(\\\"wi-input-container\\\")) { return; }\\n\\n if (el.classList.contains(\\\"wi-list-active\\\")) {\\n positionSelectList(el);\\n } else {\\n clearSelectListPosition(el);\\n }\\n\\n });\\n\\n});\\n\\nwindow.addEventListener(\\\"scroll\\\", repositionActiveSelect, true);\\nwindow.addEventListener(\\\"resize\\\", repositionActiveSelect);\\n\\nif (window.visualViewport) {\\n window.visualViewport.addEventListener(\\\"scroll\\\", repositionActiveSelect);\\n window.visualViewport.addEventListener(\\\"resize\\\", repositionActiveSelect);\\n}\\n\\n// Look for any elements with the class \\\"custom-select\\\":\\nx = document.querySelectorAll(\\\"[data-wi-select='true']\\\");\\nl = x.length;\\n\\nfor (i = 0; i < l; i++) {\\n\\n selElmnt = x[i].getElementsByTagName(\\\"select\\\")[0];\\n ll = selElmnt.length;\\n\\n // For each element, create a new DIV that will act as the selected item:\\n a = document.createElement(\\\"DIV\\\");\\n a.setAttribute(\\\"class\\\", \\\"select-selected wi-input\\\");\\n a.innerHTML = selElmnt.selectedIndex >= 0\\n ? selElmnt.options[selElmnt.selectedIndex].innerHTML\\n : \\\"\\\";\\n x[i].appendChild(a);\\n\\n // For each element, create a new DIV that will contain the option list:\\n b = document.createElement(\\\"DIV\\\");\\n b.setAttribute(\\\"class\\\", \\\"select-items wi-input-list no-scrollbar\\\");\\n b.setAttribute(\\\"popover\\\", \\\"manual\\\");\\n\\n for (j = 0; j < ll; j++) {\\n\\n // For each option in the original select element, create a new DIV that will act as an option item:\\n c = document.createElement(\\\"DIV\\\");\\n c.id = selElmnt.options[j].value;\\n c.dataset.wiOptionIndex = j;\\n c.setAttribute(\\\"class\\\", \\\"wi-input-list-value\\\");\\n c.innerHTML = selElmnt.options[j].innerHTML;\\n\\n // Se è impostato un valore di default selezionalo\\n if (j === selElmnt.selectedIndex) { c.classList.add(\\\"same-as-selected\\\"); }\\n\\n c.addEventListener(\\\"click\\\", function(e) {\\n\\n // When an item is clicked, update the original select box, and the selected item:\\n var y, s, h, container, optionIndex, previousIndex;\\n container = this.closest(\\\"[data-wi-select='true']\\\");\\n s = container ? container.querySelector(\\\"select\\\") : null;\\n h = container ? container.querySelector(\\\".select-selected\\\") : null;\\n\\n if (!s || !h) { return; }\\n\\n previousIndex = s.selectedIndex;\\n optionIndex = parseInt(this.dataset.wiOptionIndex, 10);\\n\\n if (!Number.isNaN(optionIndex) && s.options[optionIndex]) {\\n s.selectedIndex = optionIndex;\\n h.innerHTML = s.options[optionIndex].innerHTML;\\n y = this.parentNode.querySelectorAll(\\\".same-as-selected\\\");\\n y.forEach(function(option) { option.classList.remove(\\\"same-as-selected\\\"); });\\n this.setAttribute(\\\"class\\\", \\\"wi-input-list-value same-as-selected\\\");\\n }\\n\\n closeSelect(container);\\n\\n if (s.selectedIndex !== previousIndex) {\\n s.dispatchEvent(new Event(\\\"input\\\", { bubbles: true }));\\n s.dispatchEvent(new Event(\\\"change\\\", { bubbles: true }));\\n }\\n\\n });\\n\\n b.appendChild(c);\\n\\n }\\n\\n x[i].appendChild(b);\\n\\n // Segue i cambi di stato del container per riposizionare la lista aperta.\\n wiSelectObserver.observe(x[i], { attributes: true, attributeFilter: [\\\"class\\\"] });\\n\\n a.addEventListener(\\\"click\\\", function(e) {\\n\\n // When the select box is clicked, close any other select boxes, and open/close the current select box\\n e.stopPropagation();\\n\\n if (this.parentNode.classList.contains(\\\"wi-list-active\\\")) {\\n closeSelect(this.parentNode);\\n } else {\\n openSelect(this.parentNode);\\n }\\n\\n check();\\n\\n });\\n\\n}\\n\\nfunction openSelect(container) {\\n\\n closeAllSelect();\\n\\n var selected = container.querySelector(\\\".select-selected\\\");\\n\\n container.classList.add(\\\"wi-list-active\\\");\\n if (selected) { selected.classList.add(\\\"select-arrow-active\\\"); }\\n\\n}\\n\\nfunction closeSelect(container) {\\n\\n if (!container) { return; }\\n\\n var selected = container.querySelector(\\\".select-selected\\\");\\n\\n container.classList.remove(\\\"wi-list-active\\\");\\n if (selected) { selected.classList.remove(\\\"select-arrow-active\\\"); }\\n\\n}\\n\\nfunction closeAllSelect() {\\n\\n // Close every open custom select.\\n document.querySelectorAll(\\\"[data-wi-select='true'].wi-list-active\\\").forEach(closeSelect);\\n\\n}\\n\\n// If the user clicks anywhere outside the select box, then close all select boxes:\\ndocument.addEventListener(\\\"click\\\", closeAllSelect);\\n\"","module.exports = \"function formToArray(formElements) {\\n\\n const ARRAY = {};\\n\\n for (let i = 0; i < formElements.length; i++) {\\n\\n var add = false;\\n\\n var input = formElements[i];\\n\\n if (input.type == 'checkbox' || input.type == 'radio') {\\n if (input.checked == true) { var add = true; }\\n } else {\\n if (input.value != \\\"\\\") { var add = true;}\\n }\\n\\n if (add) {\\n\\n var inputName = input.name;\\n var inputValue = input.value;\\n\\n if (inputName.includes(\\\"[]\\\")) {\\n\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n\\n if (inputName in ARRAY) {\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n ARRAY[inputName].push(inputValue);\\n } else {\\n inputName = inputName.replace(\\\"[]\\\", \\\"\\\");\\n ARRAY[inputName] = [];\\n ARRAY[inputName].push(inputValue);\\n }\\n \\n } else {\\n\\n if (inputName in ARRAY) {\\n\\n } else {\\n ARRAY[inputName] = inputValue;\\n }\\n\\n }\\n\\n }\\n\\n }\\n\\n return ARRAY;\\n \\n}\\n\\nfunction prettyFormResponse(data) {\\n\\n if (data != '') {\\n \\n console.log('ERRORE FORM: '+data);\\n\\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n container.innerHTML = '<div class=\\\"title-big a-c\\\"><i class=\\\"bi bi-x-circle tx-danger\\\"></i></div><div class=\\\"subtitle mt-8 a-c\\\">C\\\\'è stato un problema con l\\\\'invio della tua richiesta</div><div class=\\\"c-w mt-10\\\"><a onclick=\\\"location.reload();\\\" class=\\\"btn btn-primary c-w\\\">Riprova</a></div>';\\n\\n } else {\\n \\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n container.innerHTML = '<div class=\\\"title-big a-c\\\"><i class=\\\"bi bi-check2-circle tx-success\\\"></i></div><div class=\\\"subtitle mt-8 a-c\\\">La tua richiesta è stata inviata con successo!</div><div class=\\\"c-w mt-10\\\"><a onclick=\\\"location.reload(); \\\" class=\\\"btn btn-primary c-w\\\">Torna al sito</a></div>';\\n\\n }\\n \\n}\\n\\nfunction sendForm(button, url, responseFunction = prettyFormResponse) {\\n\\n loadingSpinner();\\n\\n const VALUES = formToArray(button.form.elements);\\n var form = JSON.stringify(VALUES);\\n\\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: { \\n post: 'true',\\n form: form\\n }, \\n success: function (data) {\\n\\n if (responseFunction != null) {\\n if (typeof responseFunction === 'function') {\\n responseFunction(data);\\n } else {\\n loadingSpinner();\\n }\\n }\\n\\n },\\n error: function (XMLHttpRequest) {\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner();\\n }\\n });\\n\\n}\\n\\nfunction formUpload(form, url, responseFunction = prettyFormResponse) {\\n\\n loadingSpinner();\\n \\n var formData = new FormData(form);\\n formData.append('post', 'true');\\n \\n $.ajax({\\n type: \\\"POST\\\",\\n url: url,\\n data: formData,\\n contentType: false,\\n cache: false,\\n processData:false, \\n success: function (data) {\\n\\n if (responseFunction != null) {\\n if (typeof responseFunction === 'function') {\\n responseFunction(data);\\n } else {\\n loadingSpinner();\\n }\\n }\\n\\n },\\n error: function (XMLHttpRequest) {\\n ajaxRequestError(XMLHttpRequest);\\n loadingSpinner();\\n }\\n });\\n\\n}\\n \\nasync function formSubmit(form, endpoint = '/frontend/form/', callback = loadingResponse ) {\\n\\n loadingSpinner();\\n\\n var data = new FormData(form);\\n let response;\\n\\n try {\\n\\n response = await API_CLIENT.post(endpoint, data);\\n\\n } catch (error) {\\n console.error(error);\\n response = error;\\n }\\n\\n if (typeof callback === 'function') {\\n callback(response);\\n } else {\\n loadingSpinner();\\n }\\n\\n}\\n\\nfunction loadingResponse(data) {\\n\\n var container = document.querySelector(\\\"#loading-spinner .center\\\");\\n container.classList.add(\\\"w-80\\\");\\n\\n var icon = `<i class=\\\"bi bi-check2-circle tx-success\\\"></i>`;\\n var action = `location.reload();`;\\n var text = data.response;\\n var buttonLabel = 'back_site';\\n\\n if (!data.success) {\\n\\n icon = `<i class=\\\"bi bi-x-circle tx-danger\\\"></i>`;\\n action = `loadingSpinner();`;\\n\\n buttonLabel = 'retry';\\n\\n }\\n\\n buttonLabel = __t('components.buttons.'+buttonLabel)\\n\\n container.innerHTML = `\\n <div class=\\\"title-big a-c\\\">\\n ${icon}\\n </div>\\n <div class=\\\"subtitle mt-8 a-c\\\"> ${text} </div>\\n <div class=\\\"c-w mt-10\\\">\\n <a onclick=\\\"${action}\\\" class=\\\"btn btn-primary c-w\\\"> ${buttonLabel} </a>\\n </div>\\n `;\\n\\n}\"","module.exports = \"function menuMobile(hamburger = \\\"#hamburger\\\", navMobile = \\\"#nav-mobile\\\") { \\n \\n if (hamburger != null) { document.querySelector(hamburger).classList.toggle(\\\"click\\\"); }\\n if (navMobile != null) { document.querySelector(navMobile).classList.toggle(\\\"show\\\"); }\\n\\n if (document.querySelector(hamburger).classList.contains(\\\"click\\\")) {\\n disableScroll();\\n } else {\\n enableScroll();\\n }\\n\\n}\"","module.exports = \"function modal(selector) {\\n\\n setUpModal(selector);\\n\\n var modal = document.querySelector(selector);\\n\\n modal.classList.toggle('wi-show');\\n modal.classList.toggle('no-interaction');\\n\\n if (modal.classList.contains('wi-show')) {\\n disableScroll();\\n } else {\\n enableScroll();\\n }\\n\\n}\\n\\nfunction setUpModal(selector) {\\n \\n document.querySelectorAll(selector + ' .wi-close-modal').forEach(element => {\\n if (element.onclick == null) {\\n element.onclick = function() { modal(selector) };\\n }\\n });\\n\\n}\"","module.exports = \"function setUpPage() {\\n\\n var PAGE_URL = new URL(window.location.href);\\n\\n if (PAGE_URL.searchParams.get('scroll')) {\\n \\n var idScroll = PAGE_URL.searchParams.get('scroll');\\n scrolla('#'+idScroll);\\n\\n }\\n\\n // L'alert non viene passato solo tramite GET ma anche tramite variabile php\\n // if (PAGE_URL.searchParams.get('alert')) {\\n // var alertCode = PAGE_URL.searchParams.get('alert'); alertToast(alertCode);\\n // }\\n\\n setInput();\\n setDropdown();\\n setVideoJS();\\n setTooltip();\\n \\n window.dispatchEvent(new Event('loaded'));\\n \\n};\"","/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nmodule.exports = function(src) {\n\tfunction log(error) {\n\t\t(typeof console !== \"undefined\")\n\t\t&& (console.error || console.log)(\"[Script Loader]\", error);\n\t}\n\n\t// Check for IE =< 8\n\tfunction isIE() {\n\t\treturn typeof attachEvent !== \"undefined\" && typeof addEventListener === \"undefined\";\n\t}\n\n\ttry {\n\t\tif (typeof execScript !== \"undefined\" && isIE()) {\n\t\t\texecScript(src);\n\t\t} else if (typeof eval !== \"undefined\") {\n\t\t\teval.call(null, src);\n\t\t} else {\n\t\t\tlog(\"EvalError: No eval function available\");\n\t\t}\n\t} catch (error) {\n\t\tlog(error);\n\t}\n}\n","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/alert.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/aos.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/dropdown.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/place.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/select.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/form/send.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/header.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/modal.js\"))","require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/script-loader/addScript.js\")(require(\"!!/Users/andreamarinoni/Developer/packages/lib/node_modules/raw-loader/index.js!/Users/andreamarinoni/Developer/packages/lib/src/build/frontend/js/pageSetUp.js\"))","// The module cache\nconst __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tconst 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\tconst 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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tconst getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter/value functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tif(Array.isArray(definition)) {\n\t\tvar i = 0;\n\t\twhile(i < definition.length) {\n\t\t\tvar key = definition[i++];\n\t\t\tvar binding = definition[i++];\n\t\t\tif(!__webpack_require__.o(exports, key)) {\n\t\t\t\tif(binding === 0) {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, value: definition[i++] });\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: binding });\n\t\t\t\t}\n\t\t\t} else if(binding === 0) { i++; }\n\t\t}\n\t} else {\n\t\tfor(var key in definition) {\n\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t\t}\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))"],"names":["module","exports","src","log","error","console","execScript","attachEvent","addEventListener","eval","call","__webpack_require__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","Array","isArray","i","length","key","binding","o","Object","defineProperty","enumerable","value","get","obj","prop","prototype","hasOwnProperty"],"sourceRoot":""}
|