{"version":3,"file":"request_controller-CfuQqB0v.js","sources":["../../../app/javascript/controllers/step/request_controller.js"],"sourcesContent":["import MessageController from \"./message_controller\"\n\nexport default class extends MessageController {\n static targets = [\"trigger\", \"method\", \"url\", \"initialContent\"]\n\n initialize() {\n super.initialize()\n this.kind = \"request\"\n }\n\n sync({ detail }) {\n if(detail.stepId !== this.element.id) return\n if(!detail.commit) return\n\n this.triggerTarget.classList.remove(\"halo--active\")\n this.containerTarget.innerText = detail.method + \" \" + detail.url\n\n if(!this.persistedValue) {\n this.dispatch(\"saved\", {\n target: document.documentElement\n })\n }\n\n this.persistedValue = true\n this.stepNameTarget.innerHTML = detail.name || t.journeys.new.request\n }\n}\n"],"names":["request_controller","MessageController","detail","__publicField"],"mappings":"yNAEe,MAAKA,UAASC,CAAkB,CAG7C,YAAa,CACX,MAAM,WAAU,EAChB,KAAK,KAAO,SAChB,CAEE,KAAK,CAAE,OAAAC,GAAU,CACZA,EAAO,SAAW,KAAK,QAAQ,IAC9BA,EAAO,SAEX,KAAK,cAAc,UAAU,OAAO,cAAc,EAClD,KAAK,gBAAgB,UAAYA,EAAO,OAAS,IAAMA,EAAO,IAE1D,KAAK,gBACP,KAAK,SAAS,QAAS,CACrB,OAAQ,SAAS,eAClB,CAAA,EAGH,KAAK,eAAiB,GACtB,KAAK,eAAe,UAAYA,EAAO,MAAQ,EAAE,SAAS,IAAI,QAClE,CACA,CAvBEC,EADkBH,EACX,UAAU,CAAC,UAAW,SAAU,MAAO,gBAAgB"}