1/* stimulusFetch: 'lazy' */ 2import { Controller } from '@hotwired/stimulus'; 3 4// noinspection JSUnusedGlobalSymbols loaded via stimulus 5/** 6 * @property {string} eparamValue 7 * @property {string} formidValue 8 */ 9export default class extends Controller { 10 11 static values = { 12 eparam: String, 13 formid: String 14 } 15 16 renderForm() { 17 window.EmbedManager.embed({ 18 key: "https://fs7.formsite.com/res/showFormEmbed?EParam=" + this.eparamValue + "&" + this.formidValue, 19 width: "100%", 20 mobileResponsive: true 21 }); 22 } 23 24 connect() { 25 /* curator-feed-default-feed-layout */ 26 const script = document.createElement('script'); 27 script.async = true; 28 script.src = 'https://fs7.formsite.com/include/form/embedManager.js?' + this.formidValue; 29 script.onload = () => this.renderForm(); 30 this.element.appendChild(script); 31 } 32}
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.