1import ApplicationController from "application_controller" 2 3export default class extends ApplicationController { 4 static values = { path: String } 5 6 connect() { 7 (function (C, A, L) { let p = function (a, ar) { a.q.push(ar); }; let d = C.document; C.Cal = C.Cal || function () { let cal = C.Cal; let ar = arguments; if (!cal.loaded) { cal.ns = {}; cal.q = cal.q || []; d.head.appendChild(d.createElement("script")).src = A; cal.loaded = true; } if (ar[0] === L) { const api = function () { p(api, arguments); }; const namespace = ar[1]; api.q = api.q || []; typeof namespace === "string" ? (cal.ns[namespace] = api) && p(api, ar) : p(cal, ar); return; } p(cal, ar); }; })(window, "https://app.cal.com/embed/embed.js", "init") 8 9 Cal("init", { 10 origin: "https://app.cal.com" 11 }) 12 Cal("inline", { 13 elementOrSelector: this.element, 14 calLink: this.pathValue 15 }) 16 Cal("ui", { 17 theme: "light" 18 }) 19 } 20}
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.