{"version":3,"file":"first_policy_controller-TORGWQa9.js","sources":["../../../app/frontend/entrypoints/admin/controllers/first_policy_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n connect() {\n document.documentElement.style.backgroundColor = \"white\";\n }\n\n disconnect() {\n document.documentElement.style.backgroundColor = \"\";\n }\n\n updateText(event) {\n const selectedOption = event.target.selectedOptions[0];\n const locationCount = selectedOption.getAttribute(\"data_location_count\");\n const textElement = document.getElementById('dynamic_text');\n\n if (locationCount) {\n textElement.innerHTML = `The Fuel Optimizer will leverage around ${locationCount} locations that updated their prices over the last 24 hours.`;\n }\n }\n}\n"],"names":["first_policy_controller","Controller","event","locationCount","textElement"],"mappings":"2CAEe,MAAKA,UAASC,CAAW,CACtC,SAAU,CACR,SAAS,gBAAgB,MAAM,gBAAkB,OAClD,CAED,YAAa,CACX,SAAS,gBAAgB,MAAM,gBAAkB,EAClD,CAED,WAAWC,EAAO,CAEhB,MAAMC,EADiBD,EAAM,OAAO,gBAAgB,CAAC,EAChB,aAAa,qBAAqB,EACjEE,EAAc,SAAS,eAAe,cAAc,EAEtDD,IACFC,EAAY,UAAY,2CAA2CD,CAAa,+DAEnF,CACH"}