{"version":3,"file":"js/mice_form-mice_form-js-f79bfa304e41b1551888.chunk.js","mappings":"mIAEAA,EAAEC,UAAUC,GAAG,SAAU,cAAc,WACrC,MACMC,EAAqC,QADrBH,EAAEI,MAAMC,KAAK,mBACFC,MAC3BC,EAAgBP,EAAE,iBAEpBG,EACFI,EAAcC,KAAK,wBAAyB,QAAQC,SAASJ,KAAK,SAASK,SAAS,0BAEpFH,EAAcC,KAAK,wBAAyB,SAASC,SAASJ,KAAK,SAASM,YAAY,yBAE5F,IAEAX,GAAE,WAGA,MAAMY,EAAaZ,EAAE,cAEKY,EAAWP,KAAK,qBAE1CO,EAAWP,KAAK,kBAAkBQ,QACpC,G","sources":["webpack://cms-web/./app/frontend/src/blocks/mice_form/mice_form.js"],"sourcesContent":["import '../../vendors/intlTelInput/intlTelInput'\n\n$(document).on('change', '#applicant', function () {\n const $opt_selected = $(this).find('option:selected')\n const is_company = $opt_selected.val() !== 'par'\n const company_field = $('#company_name')\n\n if (is_company) {\n company_field.attr('data-parsley-required', 'true').parent().find('label').addClass('required required-mark')\n } else {\n company_field.attr('data-parsley-required', 'false').parent().find('label').removeClass('required required-mark')\n }\n})\n\n$(function () {\n 'use strict'\n\n const $mice_form = $('.mice-form')\n\n const $service_selector = $mice_form.find('.service-selector')\n\n $mice_form.find('.chosen-select').chosen()\n})\n"],"names":["$","document","on","is_company","this","find","val","company_field","attr","parent","addClass","removeClass","$mice_form","chosen"],"sourceRoot":""}