PageSourceSearch

https://static-prod.remymartin.com/app/themes/remy/js/zipSelector.c0e06edbba441e182d63.js

js remymartin.com collected 2026-10-02 17:21:33 UTC 2,287 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkremy_martin_2020=self.webpackChunkremy_martin_2020||[]).push([[5985],{9952:(S,p,s)=>{s.r(p);var u=s(6808),a=s.n(u),h=s(2093),c=(t,e,i)=>new Promise((n,l)=>{var f=o=>{try{r(i.next(o))}catch(d){l(d)}},v=o=>{try{r(i.throw(o))}catch(d){l(d)}},r=o=>o.done?n(o.value):Promise.resolve(o.value).then(f,v);r((i=i.apply(t,e)).next())});window.ZipSelectorModel=()=>({open:!1,state:"",zip:a().get("RM_ZIP")||"",states:[],zips:[],invalid:!1,closeZipSelector(){(0,h.fW)(),this.open=!1,this.invalid=!1},openZipSelector(){(0,h.dR)(this.$el.querySelector(".state-selector__states")),this.fetchStates(),this.fetchZips(),this.open=!0},selectState(t){return c(this,null,function*(){var e,i;a().set("RM_STATE",t,{expires:365,secure:!0,domain:".remymartin.com"}),a().set("RM_STATE",t,{expires:365,secure:!0});const n=(i=(e=Object.values(ShopifyBuy.UI.domains)[0])==null?void 0:e.components)==null?void 0:i.cart;if(n){const l=Object.values(n)[0];l&&(l.isEmpty||(yield l.empty()))}window.location.reload()})},fetchStates(){return c(this,null,function*(){const t=yield s.e(5510).then(s.t.bind(s,3080,19));this.states=t.default?t.default:t,this.getState()})},fetchZips(){return c(this,null,function*(){const t=yield s.e(2111).then(s.t.bind(s,8660,19));this.zips=t.default?t.default:t})},escKeyPress(t){this.open&&t.keyCode===27&&this.closeZipSelector()},registerEvents(){document.addEventListener("zipSelectorEvent",t=>{t.detail&&(t.detail.state==="open"&&this.openZipSelector(),t.detail.state==="close"&&this.closeZipSelector())},{passive:!0}),document.addEventListener("keydown",t=>this.escKeyPress(t),{passive:!0}),window.onpageshow=t=>{t.persisted&&this.closeZipSelector()},document.addEventListener("click",t=>{this.$el.contains(t.target)&&!this.$el.querySelector(".zip-selector__inner").contains(t.target)&&this.closeZipSelector()},{passive:!0})},getState(){var t;const e=a().get("RM_STATE"),i=(t=this.states.find(n=>n.province===e))==null?void 0:t["province-long"];this.state=i||e},onSubmit(){this.zips.find(e=>e.zip===this.zip&&e.state==="AZ")?(a().set("RM_ZIP",this.zip,{expires:365,secure:!0}),this.closeZipSelector(),window.location.reload()):this.invalid=!0},init(){this.options=JSON.parse(JSON.stringify(this.$el.dataset)),this.registerEvents(),this.getState()}})}}]);

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.