{"version":3,"file":"js/new-organization-form-7aa6054c44c405b8086f.js","mappings":"2EAAAA,SAASC,iBAAiB,mBAAmB,KACzBD,SAASE,eAAe,2BAExCC,oBAAoBC,4BACpBD,oBAAoBE,0BACtB,IAGFF,oBAAsB,CACpBE,wBAAyB,WACvBC,EAAE,iBAAiBC,GAAG,UAAWC,IAC/BC,KAAKL,2BAA2B,GAEpC,EACAA,0BAA2B,WACzB,IAAIM,EAAWJ,EAAE,iBAAiBK,MACnB,SAAZD,GACDJ,EAAE,oBAAoBM,OACtBN,EAAE,qBAAqBK,IAAID,IAE3BJ,EAAE,oBAAoBO,MAE1B,E","sources":["webpack://app/./app/javascript/packs/new-organization-form.js"],"sourcesContent":["document.addEventListener('turbolinks:load', () => {\n let formDefined = document.getElementById(\"new_organization_form\");\n if(formDefined){\n NewOrganizationForm.showOrHideFieldOtherTitle();\n NewOrganizationForm.addEventToPositionField();\n }\n})\n\nNewOrganizationForm = {\n addEventToPositionField: function(){\n $(\"#select_title\").on(\"change\", (event) => {\n this.showOrHideFieldOtherTitle();\n });\n },\n showOrHideFieldOtherTitle: function(){\n let selected = $(\"#select_title\").val();\n if(selected != 'Other'){\n $(\"#div_other_title\").hide();\n $(\"#other_title_text\").val(selected);\n }else{\n $(\"#div_other_title\").show();\n }\n }\n}\n"],"names":["document","addEventListener","getElementById","NewOrganizationForm","showOrHideFieldOtherTitle","addEventToPositionField","$","on","event","this","selected","val","hide","show"],"sourceRoot":""}