{"version":3,"sources":["webpack:///./app/javascript/packs/toggle_private_tour.js"],"names":["$","document","on","FREE_TOUR_PRIVATE_TOUR_SWITCH","SHARED_TOUR_PRIVATE_TOUR_SWITCH","FREE_TOUR_FORM","SHARED_TOUR_FORM","PRIVATE_TOUR_FORM","change","this","is","console","log","addClass","removeClass"],"mappings":"+EAAA,YACAA,EAAEC,UAAUC,GAAG,mBAAmB,WAC9B,IAAMC,EAAgCH,EAAE,8BAClCI,EAAkCJ,EAAE,gCACpCK,EAAiBL,EAAE,iBACnBM,EAAmBN,EAAE,mBACrBO,EAAoBP,EAAE,oBAG5BG,EAA8BK,QAAO,WAC7BR,EAAES,MAAMC,GAAG,aACXC,QAAQC,IAAI,WACZP,EAAeQ,SAAS,gBACxBN,EAAkBO,YAAY,kBAE9BH,QAAQC,IAAI,aACZP,EAAeS,YAAY,gBAC3BP,EAAkBM,SAAS,gBAEnC,IAGAT,EAAgCI,QAAO,WAC/BR,EAAES,MAAMC,GAAG,aACXC,QAAQC,IAAI,WACZN,EAAiBO,SAAS,gBAC1BN,EAAkBO,YAAY,kBAE9BH,QAAQC,IAAI,aACZN,EAAiBQ,YAAY,gBAC7BP,EAAkBM,SAAS,gBAEnC,GAGJ,G","file":"js/16-cafdceb2e6084f1a2ba3.chunk.js","sourcesContent":["// Show/Hide Private Form from Free & Shared Tours Form\n$(document).on('turbolinks:load', function() {\n const FREE_TOUR_PRIVATE_TOUR_SWITCH = $(\"#freeTourPrivateTourSwitch\")\n const SHARED_TOUR_PRIVATE_TOUR_SWITCH = $(\"#sharedTourPrivateTourSwitch\")\n const FREE_TOUR_FORM = $(\"#freeTourForm\")\n const SHARED_TOUR_FORM = $(\"#sharedTourForm\")\n const PRIVATE_TOUR_FORM = $(\"#privateTourForm\")\n\n // Switch toggle for Free Tours\n FREE_TOUR_PRIVATE_TOUR_SWITCH.change(function() {\n if ($(this).is(':checked')) {\n console.log('Checked')\n FREE_TOUR_FORM.addClass('display-none')\n PRIVATE_TOUR_FORM.removeClass('display-none')\n } else {\n console.log('Unchecked')\n FREE_TOUR_FORM.removeClass('display-none')\n PRIVATE_TOUR_FORM.addClass('display-none')\n }\n })\n\n // Switch toggle for Shared Tours\n SHARED_TOUR_PRIVATE_TOUR_SWITCH.change(function() {\n if ($(this).is(':checked')) {\n console.log('Checked')\n SHARED_TOUR_FORM.addClass('display-none')\n PRIVATE_TOUR_FORM.removeClass('display-none')\n } else {\n console.log('Unchecked')\n SHARED_TOUR_FORM.removeClass('display-none')\n PRIVATE_TOUR_FORM.addClass('display-none')\n }\n })\n\n\n})"],"sourceRoot":""}