1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="63b7bd10-ecc6-43c9-9b79-49ed93a454db",e._sentryDebugIdIdentifier="sentry-dbid-63b7bd10-ecc6-43c9-9b79-49ed93a454db")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"6ffbd01cf0691a08705f62d968183afee02bdfcf"},(globalThis.webpackChunktop_webgroup=globalThis.webpackChunktop_webgroup||[]).push([[2868,5986],{78848(e){var t;t=function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach(function(n){t(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var s=function(e){return"string"==typeof e?document.querySelector(e):e()},c=function(e,t){var n="string"==typeof e?document.createElement(e):e;for(var r in t){var i=t[r];if("inside"===r)i.append(n);else if("dest"===r)s(i[0]).insertAdjacentElement(i[1],n);else if("around"===r){var o=i;o.parentNode.insertBefore(n,o),n.append(o),null!=o.getAttribute("autofocus")&&o.focus()}else r in n?n[r]=i:n.setAttribute(r,i)}return n},u=function(e,t){return e=String(e).toLowerCase(),t?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC"):e},l=function(e,t){return c("mark",r({innerHTML:e},"string"==typeof t&&{class:t})).outerHTML},d=function(e,t){t.input.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:t.feedback,cancelable:!0}))},f=function(e,t,n){var r=n||{},i=r.mode,o=r.diacritics,a=r.highlight,s=u(t,o);if(t=String(t),e=u(e,o),"loose"===i){var c=(e=e.replace(/ /g,"")).length,d=0,f=Array.from(t).map(function(t,n){return d<c&&s[n]===e[d]&&(t=a?l(t,a):t,d++),t}).join("");if(d===c)return f}else{var p=s.indexOf(e);if(~p)return e=t.substring(p,p+e.length),a?t.replace(e,l(e,a)):t}},p=function(e,t){return new Promise(function(n,r){var i;return(i=e.data).cache&&i.store?n():new Promise(function(e,n){return"function"==typeof i.src?i.src(t).then(e,n):e(i.src)}).then(function(t){try{return e.feedback=i.store=t,d("response",e),n()}catch(e){return r(e)}},r)})},y=function(e,t){var n=t.data,r=t.searchEngine,i=[];n.store.forEach(function(o,s){var c=function(n){var a=n?o[n]:o,s="function"==typeof r?r(e,a):f(e,a,{mode:r,diacritics:t.diacritics,highlight:t.resultItem.highlight});if(s){var c={match:s,value:o};n&&(c.key=n),i.push(c)}};if(n.keys){var u,l=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=a(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}(n.keys);try{for(l.s();!(u=l.n()).done;)c(u.value)}catch(e){l.e(e)}finally{l.f()}}else c()}),n.filter&&(i=n.filter(i));var o=i.slice(0,t.resultsList.maxResults);t.feedback={query:e,matches:i,results:o},d("results",t)},m="aria-expanded",h="aria-activedescendant",b="aria-selected",v=function(e,t){e.feedback.selection=r({index:t},e.feedback.results[t])},g=function(e){e.isOpen||((e.wrapper||e.input).setAttribute(m,!0),e.list.removeAttribute("hidden"),e.isOpen=!0,d("open",e))},w=function(e){e.isOpen&&((e.wrapper||e.input).setAttribute(m,!1),e.input.setAttribute(h,""),e.list.setAttribute("hidden",""),e.isOpen=!1,d("close",e))},_=function(e,t){var n=t.resultItem,r=t.list.getElementsByTagName(n.tag),o=!!n.selected&&n.selected.split(" ");if(t.isOpen&&r.length){var a,s,c=t.cursor;e>=r.length&&(e=0),e<0&&(e=r.length-1),t.cursor=e,c>-1&&(r[c].removeAttribute(b),o&&(s=r[c].classList).remove.apply(s,i(o))),r[e].setAttribute(b,!0),o&&(a=r[e].classList).add.apply(a,i(o)),t.input.setAttribute(h,r[t.cursor].id
1),t.list.scrollTop=r[e].offsetTop-t.list.clientHeight+r[e].clientHeight+5,t.feedback.cursor=t.cursor,v(t,e),d("navigate",t)}},k=function(e){_(e.cursor+1,e)},E=function(e){_(e.cursor-1,e)},I=function(e,t,n){(n=n>=0?n:e.cursor)<0||(e.feedback.event=t,v(e,n),d("selection",e),w(e))};function A(e,t){var n=this;return new Promise(function(i,o){var a,s;return a=t||((s=e.input)instanceof HTMLInputElement||s instanceof HTMLTextAreaElement?s.value:s.innerHTML),function(e,t,n){return t?t(e):e.length>=n}(a=e.query?e.query(a):a,e.trigger,e.threshold)?p(e,a).then(function(t){try{return e.feedback instanceof Error?i():(y(a,e),e.resultsList&&function(e){var t=e.resultsList,n=e.list,i=e.resultItem,o=e.feedback,a=o.matches,s=o.results;if(e.cursor=-1,n.innerHTML="",a.length||t.noResults){var u=new DocumentFragment;s.forEach(function(e,t){var n=c(i.tag,r({id:"".concat(i.id,"_").concat(t),role:"option",innerHTML:e.match,inside:u},i.class&&{class:i.class}));i.element&&i.element(n,e)}),n.append(u),t.element&&t.element(n,o),g(e)}else w(e)}(e),u.call(n))}catch(e){return o(e)}},o):(w(e),u.call(n));function u(){return i()}})}var O=function(e,t){for(var n in e)for(var r in e[n])t(n,r)};function L(e){var t=this;return new Promise(function(n,i){var o,a,s;if(o=e.placeHolder,s={role:"combobox","aria-owns":(a=e.resultsList).id,"aria-haspopup":!0,"aria-expanded":!1},c(e.input,r(r({"aria-controls":a.id,"aria-autocomplete":"both"},o&&{placeholder:o}),!e.wrapper&&r({},s))),e.wrapper&&(e.wrapper=c("div",r({around:e.input,class:e.name+"_wrapper"},s))),a&&(e.list=c(a.tag,r({dest:[a.destination,a.position],id:a.id,role:"listbox",hidden:"hidden"},a.class&&{class:a.class}))),function(e){var t,n,i,o=e.events,a=(t=function(){return A(e)},n=e.debounce,function(){clearTimeout(i),i=setTimeout(function(){return t()},n)}),s=e.events=r({input:r({},o&&o.input)},e.resultsList&&{list:o?r({},o.list):{}}),c={input:{input:function(){a()},keydown:function(t){!function(e,t){switch(e.keyCode){case 40:case 38:e.preventDefault(),40===e.keyCode?k(t):E(t);break;case 13:t.submit||e.preventDefault(),t.cursor>=0&&I(t,e);break;case 9:t.resultsList.tabSelect&&t.cursor>=0&&I(t,e);break;case 27:t.input.value="",d("clear",t),w(t)}}(t,e)},blur:function(){w(e)}},list:{mousedown:function(e){e.preventDefault()},click:function(t){!function(e,t){var n=t.resultItem.tag.toUpperCase(),r=Array.from(t.list.querySelectorAll(n)),i=e.target.closest(n);i&&i.nodeName===n&&I(t,e,r.indexOf(i))}(t,e)}}};O(c,function(t,n){(e.resultsList||"input"===n)&&(s[t][n]||(s[t][n]=c[t][n]))}),O(s,function(t,n){e[t].addEventListener(n,s[t][n])})}(e),e.data.cache)return p(e).then(function(e){try{return u.call(t)}catch(e){return i(e)}},i);function u(){return d("init",e),n()}return u.call(t)})}function S(e){var t=e.prototype;t.init=function(){L(this)},t.start=function(e){A(this,e)},t.unInit=function(){if(this.wrapper){var e=this.wrapper.parentNode;e.insertBefore(this.input,this.wrapper),e.removeChild(this.wrapper)}var t;O((t=this).events,function(e,n){t[e].removeEventListener(n,t.events[e][n])})},t.open=function(){g(this)},t.close=function(){w(this)},t.goTo=function(e){_(e,this)},t.next=function(){k(this)},t.previous=function(){E(this)},t.select=function(e){I(this,null,e)},t.search=function(e,t,n){return f(e,t,n)}}return function e(t){this.options=t,this.id=e.instances=(e.instances||0)+1,this.name="autoComplete",this.wrapper=1,this.threshold=1,this.debounce=0,this.resultsList={position:"afterend",tag:"ul",maxResults:5},this.resultItem={tag:"li"},function(e){var t=e.name,n=e.options,r=e.resultsList,i=e.resultItem;for(var a in n)if("object"===o(n[a]))for(var c in e[a]||(e[a]={}),n[a])e[a][c]=n[a][c];else e[a]=n[a];e.selector=e.selector||"#"+t,r.destination=r.destination||e.selector,r.id=r.id||t+"_list_"+e.id,i.id=i.id||t+"_result",e.input=s(e.selector)}(this),S.call(this,e),L(this)}},e.exports=t()},45986(e,t,n){"use strict";n.d(t,{addressAutocompleteInit:()=>i});var r=n(52868);const i=function(e,t){(0,r.autoCompleteLocationIq)({selector:"#address-full-input",countryCode:t,placeHolder:"",apiKey:e,on_select_callback:function({address:e,result:t,...n},r){document.getElementById("geo_locality").value=t.city||"",document.getElementById("geo_postal_code").value=t.postcode||"",document.getElementById("geo_route").value=t.address||"",document.getElementById("geo_streetnumber").value=e.house_number||"",document.getElementById("geo_administrative_area_level_1").value=e.suburb||"",document.getElementById("geo_administrative_area_level_2").value=e.state||"",document.getElementById("geo_country").value=e.country_code||"",document.getElementById("geo_latitude").value=n.lat??"",document.getElementById("geo_longitude").value=n.lon??""}})}},52868(e,t,n){"use strict";n.d(t,{autoCompleteLocationIq:()=>o});var r=n(78848),i=n.n(r);const o=function(e={selector:"",placeHolder:"",apiKey:"",on_select_callback:null,countryCode:"FR,BE,CH,AD",
1search:"full"}){if(document.querySelector(`.autoComplete_wrapper > ${e.selector}`))return;function t(e){if(e.address){let t=e.address.city||"";let n=(e.address.house_number||"")+" "+(e.address.road||"");const r=e.address.postcode||"",i=e.type;"city"===i||"village"===i||"town"===i?(t=e.address.name,n=""):"locality"!==i&&"highway"!==e.class||(t=e.address.city,n=e.address.name),t=t.toUpperCase(),e.result={address:n,postcode:r,city:t},e.display=n+(n?", ":"")+r+" "+t;const o=(e.address.country||"").trim();e.display_with_country=o?`${e.display} \u2014 ${o}`:e.display}}const n=e.countryCode;let r="highway,place:house,place:city,place:town,place:village";"city"===e.search&&(r="place:city,place:town,place:village");const o="https://api.locationiq.com/v1/autocomplete.php?key="+e.apiKey+"&limit=5"+`&accept-language=${window.currentLocale}&countrycodes=${n}&tag=`+r+"&dedupe=1&q=",a={};return new Promise(n=>{const r=new(i())({selector:e.selector,placeHolder:e.placeHolder,debounce:500,threshold:3,diacritics:!1,resultsList:{class:"autocomplete-address-result"},resultItem:{element:(e,t)=>{e.setAttribute("data-action","click->marketplace--search-animation#handleResultOnClick");const n=t?.value?.display_with_country;n&&(e.textContent=n)}},data:{src:async e=>{if(e){if(a[e])return a[e];try{const n=await fetch(o+e),r=await n.json();return r.forEach(t),a[e]=r,r}catch(n){return n}}},keys:["display"],cache:!1},query:e=>e.replaceAll(/\s+/g," ").trim(),searchEngine:function(e,t){return t},events:{input:{selection:t=>{if(13!==t.detail.event.keyCode){const n=t.detail.selection.value;r.input.value=n.display,"function"===typeof e.on_select_callback&&e.on_select_callback(n,r.input)}}}}});n(r)})}}}]); 2//# sourceMappingURL=5986-cc431e49432d403eb942.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.