1import"./global-jquery-CDd9sieU.js";import{P as o}from"./registerPlugin-4JOtW-KC.js";import{s as c}from"./autocomplete-DYxxC0cr.js";import{i as p}from"./handlerShim-BYTyRQMS.js";import{$ as s}from"./jquery-WKbeL-yW.js";import"./LazyLoading-Nfw3y1Yi.js";import"./graphql-lsp-B6A8sSuz.js";class r{constructor(t,i){this.$container=t,this.options=i,this.$input=t.find("input[type='text']"),this.$button=t.find("button"),this.init()}static frontend(t,i){return new this(s(t),i)}init(){c(this.$input.get(0),"/~shipcalc/postcode/autocomplete/?term=:term",{onSelect:t=>{this.select(t.id)}}),this.$button.click(t=>{const i=this.$input.val();this.select(i)})}select(t){const i={shipcalcdesttest:t};this.options.planId>1&&(i.shipcalcdesttestplan=this.options.planId),s.ajax({data:i,method:"POST",url:window.location.href}).then(e=>{const n=this.$container.attr("id");o.getInstance().replaceEl(this.$container.get(0),s(e).find(`#${n}`).get(0))})}}const g=p(r);export{r as CheckDestTest,g as handler};
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.