{"version":3,"sources":["contact-form-labels.js","menu.js"],"names":["$","active","element","classList","contains","remove","add","jQuery","document","on","formContainer","querySelector","Array","from","querySelectorAll","forEach","wrapper","closest","addEventListener","event","target","value","length","openButton","closeButton","primaryNav","preventDefault","this"],"mappings":"AAIA,cAEA,SAAAA,GAoBA,SAAAC,EAAAC,EAAAD,GAEAC,EAAAC,UAAAC,SAAA,gBAAAH,EACAC,EAAAC,UAAAE,OAAA,UACAH,EAAAC,UAAAC,SAAA,gBAAAH,GACAC,EAAAC,UAAAG,IAAA,SAEA,CAEAC,OA3BAC,UAAAC,GAAA,0BAEA,MAAAC,EAAAF,SAAAG,cAAA,gBACAC,MAAAC,KAAAH,EAAAI,iBAAA,4CAEAC,SAAAb,IACA,MAAAc,EAAAd,EAAAe,QAAA,eAEAf,EAAAgB,iBAAA,kBAAAC,GACA,EAAAA,EAAAC,OAAAC,MAAAC,OACArB,EAAAe,GAAA,GAEAf,EAAAe,GAAA,EAEA,MAEA,GAWA,CA7BA,GCAA,WAEA,MAAAO,EAAAf,SAAAG,cAAA,wCACAa,EAAAhB,SAAAG,cAAA,yCACAc,EAAAjB,SAAAG,cAAA,oCAEA,OAAAc,IAEAF,EAAAL,iBAAA,kBAAAC,GACAA,EAAAO,iBACAD,EAAAtB,UAAAG,IAAA,OACA,IAEAkB,EAAAN,iBAAA,kBAAAC,GACAA,EAAAO,iBACAD,EAAAtB,UAAAG,IAAA,QACA,IAEAmB,EAAAP,iBAAA,4BAEAS,KAAAxB,UAAAC,SAAA,UACAuB,KAAAxB,UAAAE,OAAA,eAEA,IAEA,CAzBA","file":"valuesintoaction.min.js","sourcesContent":["/**\n * Contact form labels.\n */\n\n'use strict';\n\n;( function( $ ) {\n\n\t$( document ).on( 'nfFormReady', function() {\n\n\t\tconst formContainer = document.querySelector( '.via-contact' );\n\t\tconst formElements = Array.from( formContainer.querySelectorAll( 'input[type=\"email\"], input[type=\"text\"]' ) );\n\n\t\tformElements.forEach( ( element ) => {\n\t\t\tconst wrapper = element.closest( '.field-wrap' );\n\n\t\t\telement.addEventListener( 'input', function( event ) {\n\t\t\t\tif ( 0 < event.target.value.length ) {\n\t\t\t\t\tactive( wrapper, true );\n\t\t\t\t} else {\n\t\t\t\t\tactive( wrapper, false );\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t});\n\n\tfunction active( element, active ) {\n\n\t\tif ( ( element.classList.contains( 'active' ) ) && ( false === active ) ) {\n\t\t\telement.classList.remove( 'active' );\n\t\t} else if ( ( ! element.classList.contains( 'active' ) ) && ( true === active ) ) {\n\t\t\telement.classList.add( 'active' );\n\t\t}\n\t}\n\n})( jQuery );\n","/**\n * Navigation menu controls.\n */\n\n'use strict';\n\n;( function() {\n\n\tconst openButton = document.querySelector( 'button[data-primary-navigation-open]' );\n\tconst closeButton = document.querySelector( 'button[data-primary-navigation-close]' );\n\tconst primaryNav = document.querySelector( 'div[data-primary-menu-container]' );\n\n\tif ( null === primaryNav ) return;\n\n\topenButton.addEventListener( 'click', function( event ) {\n\t\tevent.preventDefault();\n\t\tprimaryNav.classList.add( 'open' );\n\t});\n\n\tcloseButton.addEventListener( 'click', function( event ) {\n\t\tevent.preventDefault();\n\t\tprimaryNav.classList.add( 'close' );\n\t});\n\n\tprimaryNav.addEventListener( 'transitionend', function() {\n\n\t\tif ( this.classList.contains( 'close' ) ) {\n\t\t\tthis.classList.remove( 'open', 'close' );\n\t\t}\n\t});\n\n})();\n"]}