PageSourceSearch

https://www.naehpark.com/theme/a146590f153a32560bfcdd0ace926236/js…out.LoyxxCCCountrySelector.plugin.771e2f.js

js naehpark.com collected 2026-09-26 07:31:40 UTC 1,805 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[96260],{260:(t,e,i)=>{i.r(e),i.d(e,{default:()=>r});class r extends window.PluginBaseClass{static #t=this.options={countrySelectSelector:".country-select",initialCountryAttribute:"data-initial-country-id",countryStateSelectSelector:".country-state-select",initialCountryStateAttribute:"data-initial-country-state-id",countryStatePlaceholderSelector:'[data-placeholder-option="true"]'};init(){this.el=this.el.closest(".row"),this.initSelects()}initSelects(){let{countrySelectSelector:t,countryStateSelectSelector:e,initialCountryAttribute:i,initialCountryStateAttribute:n}=r.options,s=this.el.querySelector(t),o=this.el.querySelector(e),a=s.getAttribute(i),l=o.getAttribute(n);s.addEventListener("change",this.onChangeCountry.bind(this)),a&&this.requestStateData(a,l)}onChangeCountry(t){let e=t.target.value;this.requestStateData(e)}requestStateData(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let e=JSON.stringify({countryId:t});fetch(window.router["frontend.country.country-data"],{method:"POST",headers:{"Content-Type":"application/json"},body:e}).then(t=>t.json()).then(t=>{!function(t,e,i,r){let{stateRequired:n}=t,{countryStateSelectSelector:s,countryStatePlaceholderSelector:o}=r;!function(t,e,i){let r=t.querySelector(i),n=t.parentNode.querySelector("label"),s=void 0!==n&&n;if(e){r.setAttribute("disabled","disabled"),s&&"*"!==n.innerText.trim().substr(-1,1)&&(n.innerText=`${n.innerText}*`),"shippingAddress"===t.dataset.prefix&&setTimeout(()=>{t.removeAttribute("required","required")},2e3);return}s&&"*"===n.innerText.substr(-1,1)&&(n.innerText=n.innerText.substr(0,n.innerText.length-1)),r.removeAttribute("disabled"),t.removeAttribute("required")}(i.querySelector(s),n,`option${o}`)}(t,0,this.el,r.options)})}}}}]);

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.