PageSourceSearch

https://eddwight.com/assets/spree/storefront/controllers/checkout_…e3f309d7b8583474d708a0110733ab874e01a199.js

js eddwight.com collected 2026-10-02 10:03:17 UTC 448 bytes, 1 lines download raw bytes

1import{Controller}from"@hotwired/stimulus";export default class extends Controller{static targets=["promotionEmailField"];connect(){this.element.addEventListener("submit",this.copyEmailFieldToForm.bind(this))}disconnect(){this.element.removeEventListener("submit",this.copyEmailFieldToForm.bind(this))}copyEmailFieldToForm(e){const t=document.getElementById("order_ship_address_attributes_email");t&&(this.promotionEmailFieldTarget.value=t.value)}}

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.