{"version":3,"file":"payment_form_controller-CMOUkLvi.js","sources":["../../app/assets/javascript/controllers/servicing/payment_form_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = ['input', 'customPreset', 'custom', 'timezone'];\n\n connect() {\n this.timezoneTarget.value = Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n setPreset(event) {\n this.customTarget.blur();\n this.customTarget.value = \"\";\n this.inputTarget.value = event.target.dataset.value;\n }\n\n setCustomPreset() {\n this.customTarget.focus();\n this.inputTarget.value = this.customTarget.value;\n }\n\n changeCustom() {\n this.customPresetTarget.checked = true;\n this.inputTarget.value = this.customTarget.value;\n }\n}\n"],"names":["payment_form_controller","Controller","event","__publicField"],"mappings":"kSAEe,MAAKA,UAASC,CAAW,CAGtC,SAAU,CACR,KAAK,eAAe,MAAQ,KAAK,eAAgB,EAAC,gBAAe,EAAG,QACxE,CAEE,UAAUC,EAAO,CACf,KAAK,aAAa,KAAM,EACxB,KAAK,aAAa,MAAQ,GAC1B,KAAK,YAAY,MAAQA,EAAM,OAAO,QAAQ,KAClD,CAEE,iBAAkB,CAChB,KAAK,aAAa,MAAO,EACzB,KAAK,YAAY,MAAQ,KAAK,aAAa,KAC/C,CAEE,cAAe,CACb,KAAK,mBAAmB,QAAU,GAClC,KAAK,YAAY,MAAQ,KAAK,aAAa,KAC/C,CACA,CArBEC,EADkBH,EACX,UAAU,CAAC,QAAS,eAAgB,SAAU,UAAU"}