{"version":3,"file":"frame_poll_controller-DfwKmGEU.js","names":[],"sources":["../../../app/javascript/entrypoints/site_controllers/frame_poll_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\n// Asks its Turbo frame again after a few seconds, for content prepared in the background (the\n// website check of a diagnostic). The server stops the loop by answering without this controller.\nexport default class extends Controller {\n static values = { url: String, delay: { type: Number, default: 4000 } }\n\n connect() {\n this.timer = setTimeout(() => {\n const frame = this.element.closest(\"turbo-frame\")\n if (frame) frame.src = this.urlValue\n }, this.delayValue)\n }\n\n disconnect() {\n clearTimeout(this.timer)\n }\n}\n"],"mappings":"4GAIA,EAAA,cAA6B,CAAW,CACtC,OAAO,OAAS,CAAE,IAAK,OAAQ,MAAO,CAAE,KAAM,OAAQ,QAAS,IAAM,CAAE,CAEvE,SAAU,CACR,KAAK,MAAQ,eAAiB,CAC5B,IAAM,EAAQ,KAAK,QAAQ,QAAQ,cAAc,CAC7C,IAAO,EAAM,IAAM,KAAK,WAC3B,KAAK,WAAW,CAGrB,YAAa,CACX,aAAa,KAAK,MAAM"}