PageSourceSearch

https://membermaker.app/assets/controllers/check_in_link_copy_cont…7bf546969459685fc217f7d9ca68535c924ac56e.js

js membermaker.app collected 2026-10-02 01:14:30 UTC 835 bytes, 22 lines download raw bytes

1import { Controller } from "@hotwired/stimulus"
2
3export default class extends Controller {
4  static targets = ["url", "status"]
5
6  async copy() {
7    try {
8      await navigator.clipboard.writeText(this.urlTarget.value)
9      this.statusTarget.textContent = "Link copied."
10      const detail = {}
11      for (const key of ["event_present", "prompt_group_present", "repeat_limit_enabled"]) {
12        const value = this.element.getAttribute(`data-web-analytics-${key.replaceAll("_", "-")}`)
13        if (value === "0" || value === "1") detail[key] = Number(value)
14      }
15      this.element.dispatchEvent(new CustomEvent("web-check-in:copy", { bubbles: true, detail }))
16    } catch (_) {
17      this.urlTarget.hidden = false
18      this.urlTarget.select()
19      this.statusTarget.textContent = "Select and copy the link above."
20    }
21  }
22};

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.