PageSourceSearch

https://www.naehpark.com/theme/a146590f153a32560bfcdd0ace926236/js…t.LoyxxAddressAutoComplete.plugin.2a77c9.js

js naehpark.com collected 2026-09-26 07:31:39 UTC 4,201 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[81863],{863:(e,t,i)=>{i.r(t),i.d(t,{default:()=>n});class n extends window.PluginBaseClass{static #e=this.options={zipInputBilling:"input#billingAddressAddressZipcode",zipInputShipping:"input#shippingAddressAddressZipcode",streetInputBilling:"input#billingAddress-AddressStreet",streetInputBillingId:"billingAddress-AddressStreet",streetInputShipping:"input#shippingAddress-AddressStreet",streetInputShippingId:"shippingAddress-AddressStreet",streetNameInputBilling:"input#billingAddress-StreetName",streetNameInputShipping:"input#shippingAddress-StreetName",houseNumberInputBilling:"input#billingAddress-HouseNumber",houseNumberInputShipping:"input#shippingAddress-HouseNumber",countrySelectBilling:"#billingAddressAddressCountry",countrySelectShipping:"#shippingAddressAddressCountry",stateSelectBilling:"#billingAddressAddressCountryState",stateSelectShipping:"#shippingAddressAddressCountryState",cityInputBilling:"input#billingAddressAddressCity",cityInputShipping:"input#shippingAddressAddressCity"};init(){let e=this.options;if(void 0===window.google||""===window.enableGoogleAutoComplete||""===window.loyxxGoogleApiKey.trim())return;let t=document.querySelector(e.streetNameInputBilling);this.streetInputBilling=null!==t?t:document.querySelector(e.streetInputBilling),this.houseNumberInputBilling=null!==t?document.querySelector(e.houseNumberInputBilling):null;let i=document.querySelector(e.streetNameInputShipping);this.streetInputShipping=null!==i?i:document.querySelector(e.streetInputShipping),this.houseNumberInputShipping=null!==i?document.querySelector(e.houseNumberInputShipping):null,this.zipInputBilling=document.querySelector(e.zipInputBilling),this.zipInputShipping=document.querySelector(e.zipInputShipping),this.countrySelectBilling=document.querySelector(e.countrySelectBilling),this.countrySelectShipping=document.querySelector(e.countrySelectShipping),this.stateSelectBilling=document.querySelector(e.stateSelectBilling),this.stateSelectShipping=document.querySelector(e.stateSelectShipping),this.geocodeService=new window.google.maps.Geocoder,this.cityInputBilling=document.querySelector(e.cityInputBilling),this.cityInputShipping=document.querySelector(e.cityInputShipping),this.registerEvents()}registerEvents(){let e={fields:["name","place_id"],strictBounds:!1,types:[]};null!==this.streetInputBilling&&this._attachAutocomplete(this.streetInputBilling,this.houseNumberInputBilling,this.cityInputBilling,this.zipInputBilling,this.countrySelectBilling,this.stateSelectBilling,e),null!==this.streetInputShipping&&this._attachAutocomplete(this.streetInputShipping,this.houseNumberInputShipping,this.cityInputShipping,this.zipInputShipping,this.countrySelectShipping,this.stateSelectShipping,e)}_attachAutocomplete(e,t,i,n,l,s,p){let u=this,r=new window.google.maps.places.Autocomplete(e,p);r.addListener("place_changed",()=>{e.value="",null!==t&&(t.value=""),null!==i&&(i.value=""),null!==n&&(n.value=""),null!==l&&(l.value=""),null!==s&&(s.value="");let p=r.getPlace();u.geocodeService.geocode({placeId:p.place_id},function(r,o){if(o!==window.google.maps.GeocoderStatus.OK||!r[0])return;let d="",c="",g="",h="",a="",S="";for(let e=0;e<r[0].address_components.length;e++){let t=r[0].address_components[e];"route"===t.types[0]&&(d=t.long_name),"street_number"===t.types[0]&&(c=t.long_name),"locality"===t.types[0]&&(g=t.long_name),"postal_code"===t.types[0]&&(h=t.long_name),"country"===t.types[0]&&(a=t.short_name),"administrative_area_level_1"===t.types[0]&&(S=t.long_name)}null!==t?(e.value=d,t.value=c,t.dispatchEvent(new Event("change"))):e.value=u.getProperName(p),null!==i&&(i.value=g,i.dispatchEvent(new Event("change"))),null!==n&&(n.value=h,n.dispatchEvent(new Event("change"))),null!==l&&u.setCountry(l,a),null!==s&&u.setState(s,S)})})}setCountry(e,t){void 0!==window.loyxxSw6ConversionCheckoutCountryIsoMap&&window.loyxxSw6ConversionCheckoutCountryIsoMap[t]&&(e.value=window.loyxxSw6ConversionCheckoutCountryIsoMap[t])}setState(e,t){e.querySelectorAll("option").forEach(i=>{i.innerText.trim()===t&&(e.value=i.value)})}getProperName(e){let t=e.name,i=e.name.split(",");return""!==i[0]&&(t=i[0]),t}}}}]);

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.