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EAEA;EACA3C,wFAAsB,CAClB,yBAAyB,EACzB,aAAa,EACb,KACJ,CAAC;;EAED;EACAA,wFAAsB,CAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAM,CAAC;;EAErE;EACAA,wFAAsB,CAAE,uBAAuB,EAAE,iBAAiB,EAAE,KAAK,EAAE,IAAK,CAAC;;EAEjF;EACA;;EAEA;EACAX,8EAAmB,CAAE,+BAAgC,CAAC;AAC1D,CAAE,CAAC,C","sources":["webpack://dr-michelle-franklin/./src/js/custom/contact-form-7.js","webpack://dr-michelle-franklin/./src/js/custom/intersection-observer.js","webpack://dr-michelle-franklin/./src/js/custom/mobile-menu.js","webpack://dr-michelle-franklin/webpack/bootstrap","webpack://dr-michelle-franklin/webpack/runtime/define property getters","webpack://dr-michelle-franklin/webpack/runtime/hasOwnProperty shorthand","webpack://dr-michelle-franklin/webpack/runtime/make namespace object","webpack://dr-michelle-franklin/./src/index.js"],"sourcesContent":["/**\n * Contact Form 7\n */\n\nexport function axCf7CheckboxChange(selector) {\n const checkboxes = document.querySelectorAll(selector);\n\n if (checkboxes.length === 0) {\n return; // Exit if no elements match the selector.\n }\n\n checkboxes.forEach((checkbox) => {\n checkbox.addEventListener('change', function (e) {\n // e.preventDefault(); // doesn't help!\n e.stopPropagation(); // helps!\n });\n });\n}","/* Intersection Observer (Web API) */\n\n// Add CSS Class when element is in View Port\nexport function axIntersectionObserver(\n\telement,\n\tcssClassDynamic,\n\ttoggleClass = false,\n\tsession = false\n) {\n\tconst ax_elements = document.querySelectorAll(element);\n\n\tconst observer = new IntersectionObserver((entries) => {\n\t\tentries.forEach((entry) => {\n\t\t\tif (entry.intersectionRatio > 0) {\n\t\t\t\tconst elementId = entry.target.getAttribute('id') || entry.target.className;\n\t\t\t\tconst cookieName = `animation-one-${elementId}`;\n\n\t\t\t\tif (session) {\n\t\t\t\t\t// Check if session cookie exists\n\t\t\t\t\tif (!getCookie(cookieName)) {\n\t\t\t\t\t\t// First-time animation: Add dynamic class and one-time animation class\n\t\t\t\t\t\tentry.target.classList.add(cssClassDynamic);\n\t\t\t\t\t\tsetCookie(cookieName, 'true'); // Set session cookie\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Add only the one-time animation class for elements with a session cookie\n\t\t\t\t\t\tentry.target.classList.add('ax--one-time-animation');\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Always add dynamic class if session tracking is off\n\t\t\t\t\tentry.target.classList.add(cssClassDynamic);\n\t\t\t\t}\n\t\t\t} else if (toggleClass) {\n\t\t\t\t// Remove dynamic class if toggleClass is true and element is out of view\n\t\t\t\tentry.target.classList.remove(cssClassDynamic);\n\t\t\t}\n\t\t});\n\t});\n\n\tax_elements.forEach((item) => {\n\t\tobserver.observe(item);\n\t});\n}\n\n// Helper to set a session cookie\nfunction setCookie(name, value) {\n\tdocument.cookie = `${name}=${value}; path=/`;\n}\n\n// Helper to get a session cookie\nfunction getCookie(name) {\n\tconst cookies = document.cookie.split(';');\n\tfor (let i = 0; i < cookies.length; i++) {\n\t\tconst cookie = cookies[i].trim();\n\t\tif (cookie.startsWith(`${name}=`)) {\n\t\t\treturn cookie.substring(name.length + 1);\n\t\t}\n\t}\n\treturn null;\n}","/**\n * Mobile Navigation \n */\n\nexport function axMobileMenu() {\n\t// console.log( 'Mobile Menu invoked...' );\n\tconst jQuery = window.jQuery;\n\n\tif ( jQuery( 'body' ).width() < 1201 ) {\n\t\t// click event - menu trigger element\n\t\tjQuery( '.js-mobile-menu-trigger' ).click( function ( event ) {\n\t\t\tevent.preventDefault();\n\t\t\tjQuery( '.js-mobile-menu-content' ).toggleClass( 'is-open' );\n\t\t\tjQuery( 'body' ).toggleClass( 'ax--hide-scroll' );\n\t\t} );\n\n\t\t// UI interaction for sub menu\n\t\tjQuery( '#site-navigation-mobile .menu-item-has-children' ).append( `\n ` );\n\n\t\t// click event on append HTML element\n\t\tjQuery( '#site-navigation-mobile .js-mobile-submenu-trigger' ).on(\n\t\t\t'click',\n\t\t\tfunction ( event ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tjQuery( this ).toggleClass( 'is-open' );\n\t\t\t\tjQuery( this ).siblings( '.sub-menu' ).toggle( 'slow' );\n\t\t\t}\n\t\t);\n\t}\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { axMobileMenu as mobileMenu } from './js/custom/mobile-menu';\r\n// import { axSlickSlider as slider } from './js/custom/sliders';\r\n\r\n// import {\r\n// \taxTippyHtmlContent as tooltipHtmlContent,\r\n// \taxTippyBasic as tooltipBasic,\r\n// } from './js/custom/tippy';\r\n\r\nimport { axIntersectionObserver } from './js/custom/intersection-observer';\r\n\r\n// import {\r\n// \taxAccordionToggle,\r\n// } from './js/custom/accordion';\r\n\r\n// import {\r\n// \taxCheckSticky\r\n// } from './js/custom/utility';\r\n\r\nimport { axCf7CheckboxChange } from './js/custom/contact-form-7';\r\n\r\n\r\n// Document Ready\r\ndocument.addEventListener( 'DOMContentLoaded', function () {\r\n // console.log( 'invoke' );\r\n\r\n // Mobile Menu\r\n mobileMenu();\r\n\r\n // Slick Slider\r\n // slider(\r\n // '.js-carousel-testimoinals',\r\n // );\r\n\r\n // Modaal Inline\r\n // modalBasic( '[data-modal=\"inline\"]' );\r\n\r\n // Modaal Ajax\r\n // modalAjax( '.js-modal-ajax' );\r\n\r\n // Modal Video\r\n // modalVideo( '.ax-modal-video a' );\r\n\r\n // Modal Inline\r\n // modalInline( '.js-modal-inline' );\r\n // modalInline( '.js-modal-inline-gtb-button a' );\r\n\r\n // Tippy Dropdown\r\n // dropdownMenu( '.ax-context-menu-trigger' );\r\n\r\n // // Tippy Basic\r\n // tooltipBasic( '[data-tippy-content]' );\r\n\r\n // // Tippy HTML Content\r\n // tooltipHtmlContent( '[data-template]' );\r\n\r\n // Check Sticky\r\n // axCheckSticky( '.site-header', 'header-is-sticky' );\r\n\r\n // Observer\r\n axIntersectionObserver(\r\n '.ax--animation-viewport',\r\n 'ax--animate',\r\n false\r\n );\r\n\r\n // Animated SVG\r\n axIntersectionObserver( '.ax-svg-animate', 'start-animation', false );\r\n\r\n // Animated Logo\r\n axIntersectionObserver( '.site-logo--animation', 'start-animation', false, true );\r\n\r\n // Accordion\r\n // axAccordionToggle( '.ax-accordion-toggle' );\r\n\r\n // Contact Form\r\n axCf7CheckboxChange( '.wpcf7 input[type=\"checkbox\"]' );\r\n} );\r\n"],"names":["axCf7CheckboxChange","selector","checkboxes","document","querySelectorAll","length","forEach","checkbox","addEventListener","e","stopPropagation","axIntersectionObserver","element","cssClassDynamic","toggleClass","session","ax_elements","observer","IntersectionObserver","entries","entry","intersectionRatio","elementId","target","getAttribute","className","cookieName","getCookie","classList","add","setCookie","remove","item","observe","name","value","cookie","cookies","split","i","trim","startsWith","substring","axMobileMenu","jQuery","window","width","click","event","preventDefault","append","on","siblings","toggle","mobileMenu"],"sourceRoot":""}