PageSourceSearch

https://indianterrain.com/cdn/shop/t/109/assets/brand-footer-forms.js?v=120501485338106707371789714702

js indianterrain.com collected 2026-10-03 21:52:03 UTC 1,894 bytes, 1 lines download raw bytes

1const EMBED="shopify-forms-embed";const STYLE_ID="brand-footer-forms-style";class BrandFooterForms extends HTMLElement{#mount;#render;#embed;connectedCallback(){this.#mount=new MutationObserver(()=>this.#attach());this.#mount.observe(this,{childList:true,subtree:true});this.#attach()}disconnectedCallback(){this.#mount?.disconnect();this.#render?.disconnect();this.#embed=void 0}#attach(){const embed=this.querySelector(EMBED);if(!embed||embed===this.#embed||!embed.shadowRoot)return;this.#embed=embed;this.#mount.disconnect();const root=embed.shadowRoot;this.#render?.disconnect();this.#render=new MutationObserver(()=>this.#dress(root));this.#render.observe(root,{childList:true,subtree:true});this.#dress(root)}#dress(root){const form=root.querySelector('form[data-testid="form"]');const success=root.querySelector('[data-testid="banner-success"]');if(!form&&!success)return;this.#style(root);if(form)this.#word(form);if(success)this.#wordSuccess(success);this.classList.add("is-live")}#style(root){if(root.getElementById(STYLE_ID))return;const style=this.querySelector("template[data-forms-style]")?.content.querySelector("style");if(!style)return;const sheet=style.cloneNode(true);sheet.id=STYLE_ID;root.append(sheet)}#word(form){const{placeholder,label}=this.dataset;const input=form.querySelector('input[data-testid="field-email"]');if(input instanceof HTMLInputElement&&placeholder&&input.placeholder!==placeholder){input.placeholder=placeholder}
1const button=form.querySelector('button[data-testid="btn-form-submit"]');if(button&&label&&!button.querySelector("svg")&&button.textContent!==label){button.textContent=label}}#wordSuccess(banner){const{success}=this.dataset;const line=banner.querySelector("p");if(line&&success&&line.textContent!==success)line.textContent=success}}if(!customElements.get("brand-footer-forms")){customElements.define("brand-footer-forms",BrandFooterForms)}

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.