{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./js/helpers/isAdmin.js","webpack:///./node_modules/bootstrap.native/dist/polyfill.js","webpack:///./node_modules/bootstrap.native/dist/components/collapse-native.js","webpack:///./js/template-parts/blocks/accordion/accordion.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","isAdmin","window","wp","acf","document","querySelector","classList","contains","toStr","isCallable","maxSafeInteger","toLength","Array","from","toString","fn","Math","pow","len","number","Number","isNaN","isFinite","floor","abs","toInteger","min","max","arrayLike","C","this","items","TypeError","T","mapFn","arguments","length","kValue","A","k","Element","matches","webkitMatchesSelector","oMatchesSelector","msMatchesSelector","mozMatchesSelector","closest","selector","node","SVGElement","parentNode","parentElement","Event","Window","Document","type","eventInitDict","Error","event","bubbles","undefined","cancelable","createEvent","initEvent","createEventObject","CustomEvent","detail","Node","el","transitionEndEvent","head","style","supportTransition","transitionDuration","transitionProperty","emulateTransitionEnd","element","handler","called","computedStyle","getComputedStyle","duration","parseFloat","getElementTransitionDuration","setTimeout","addEventListener","transitionEndWrapper","e","removeEventListener","queryElement","parent","lookUp","bootstrapCustomEvent","eventName","componentName","eventProperties","OriginalCustomEvent","keys","forEach","dispatchCustomEvent","customEvent","dispatchEvent","options","activeCollapse","activeElement","showCustomEvent","shownCustomEvent","hideCustomEvent","hiddenCustomEvent","self","accordion","collapse","closeAction","collapseElement","toggle","defaultPrevented","isAnimating","height","remove","add","offsetWidth","setAttribute","target","tagName","preventDefault","hide","show","getElementsByClassName","dispose","Collapse","accordionData","getAttribute","factory","require","$","initializeBlock","$block","find","each","_index","myAccordion","_idnx","collapseTrigger","attr","ready","addAction","jQuery"],"mappings":";aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAU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wI,EACEC,KAAM,cACNC,KAAM,CAAEC,EAAQC,KAChBN,EAAGM,GACDH,KAAM,4BACNC,KACA,CAAEG,EAAOC,IACR,IAAIb,IAAUa,EAAiB,CAC9BpD,OAAS,IAAI4C,EAAGM,GAAcG,KAC7B,WAOD/I,KACNwI,EAAOC,KAAM,4BAA6BC,KACzC,CAAEG,EAAOC,IACR,IAAIb,IAAUa,EAAiB,CAC9BpD,OAAS,IAAI8C,EAAOO,KAAM,UAO/BT,EAAGlI,UAAW4I,MAAO,KACpBV,EAAG,cAAeI,KAAM,CAAEC,EAAQ/D,KACjC2D,EAAiBD,EAAG1D,QAKjB3E,OAAOE,KACXF,OAAOE,IAAI8I,UACV,sCACAV,IAxCH,CA2CKW,S","file":"/template-parts/blocks/accordion/accordion.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 7);\n","const isAdmin = !! ( ( window.wp && window.wp.acf ) || document.querySelector( 'body' ).classList.contains( 'wp-admin' ) );\n\nexport default isAdmin;\n","/*!\n * Native JavaScript for Bootstrap Polyfill v3.0.10 (https://thednp.github.io/bootstrap.native/)\n * Copyright 2015-2020 © dnp_theme\n * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)\n */\n \"use strict\";\nif (!Array.from) {\n Array.from = (function () {\n var toStr = Object.prototype.toString;\n var isCallable = function (fn) {\n return typeof fn === 'function' || toStr.call(fn) === '[object Function]';\n };\n var toInteger = function (value) {\n var number = Number(value);\n if (isNaN(number)) { return 0; }\n if (number === 0 || !isFinite(number)) { return number; }\n return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));\n };\n var maxSafeInteger = Math.pow(2, 53) - 1;\n var toLength = function (value) {\n var len = toInteger(value);\n return Math.min(Math.max(len, 0), maxSafeInteger);\n };\n return function from(arrayLike) {\n var C = this, items = Object(arrayLike);\n if (arrayLike == null) {\n throw new TypeError('Array.from requires an array-like object - not null or undefined');\n }\n var mapFn = arguments.length > 1 ? arguments[1] : void undefined, T;\n if (typeof mapFn !== 'undefined') {\n if (!isCallable(mapFn)) {\n throw new TypeError('Array.from: when provided, the second argument must be a function');\n }\n if (arguments.length > 2) {\n T = arguments[2];\n }\n }\n var len = toLength(items.length);\n var A = isCallable(C) ? Object(new C(len)) : new Array(len);\n var k = 0;\n var kValue;\n while (k < len) {\n kValue = items[k];\n if (mapFn) {\n A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);\n } else {\n A[k] = kValue;\n }\n k += 1;\n }\n A.length = len;\n return A;\n }\n }());\n}\n\nif (!Element.prototype.matches) {\n Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector;\n}\n\nif (!Element.prototype.closest) {\n Element.prototype.closest = function closest(selector) {\n var node = this;\n while (node) {\n if (node.matches(selector)) { return node; }\n else { node = 'SVGElement' in window && node instanceof SVGElement ? node.parentNode : node.parentElement; }\n }\n return null;\n };\n}\n\nif (!window.Event || !Window.prototype.Event) {\n window.Event = Window.prototype.Event = Document.prototype.Event = Element.prototype.Event = function Event(type, eventInitDict) {\n if (!type) { throw new Error('Not enough arguments'); }\n var event,\n bubbles = eventInitDict && eventInitDict.bubbles !== undefined ? eventInitDict.bubbles : false,\n cancelable = eventInitDict && eventInitDict.cancelable !== undefined ? eventInitDict.cancelable : false;\n if ( 'createEvent' in document ) {\n event = document.createEvent('Event');\n event.initEvent(type, bubbles, cancelable);\n } else {\n event = document.createEventObject();\n event.type = type;\n event.bubbles = bubbles;\n event.cancelable = cancelable;\n }\n return event;\n };\n}\n\nif ( !window.CustomEvent || !Window.prototype.CustomEvent) {\n window.CustomEvent = Window.prototype.CustomEvent = Document.prototype.CustomEvent = Element.prototype.CustomEvent = function CustomEvent(type, eventInitDict) {\n if (!type) {\n throw Error('TypeError: Failed to construct \"CustomEvent\": An event name must be provided.');\n }\n var event = new Event(type, eventInitDict);\n event.detail = eventInitDict && eventInitDict.detail || null;\n return event;\n };\n}\n\nif (!Node.prototype.contains) {\n Node.prototype.contains = function (el) {\n while (el = el.parentNode) {\n if (el === this) { return true; }\n }\n return false;\n };\n}\n","/*!\n * Native JavaScript for Bootstrap Collapse v3.0.14 (https://thednp.github.io/bootstrap.native/)\n * Copyright 2015-2020 © dnp_theme\n * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.Collapse = factory());\n}(this, (function () { 'use strict';\n\n var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'transitionend';\n\n var supportTransition = 'webkitTransition' in document.head.style || 'transition' in document.head.style;\n\n var transitionDuration = 'webkitTransition' in document.head.style ? 'webkitTransitionDuration' : 'transitionDuration';\n\n var transitionProperty = 'webkitTransition' in document.head.style ? 'webkitTransitionProperty' : 'transitionProperty';\n\n function getElementTransitionDuration(element) {\n var computedStyle = getComputedStyle(element),\n property = computedStyle[transitionProperty],\n duration = supportTransition && property && property !== 'none'\n ? parseFloat(computedStyle[transitionDuration]) : 0;\n return !isNaN(duration) ? duration * 1000 : 0;\n }\n\n function emulateTransitionEnd(element,handler){\n var called = 0, duration = getElementTransitionDuration(element);\n duration ? element.addEventListener( transitionEndEvent, function transitionEndWrapper(e){\n !called && handler(e), called = 1;\n element.removeEventListener( transitionEndEvent, transitionEndWrapper);\n })\n : setTimeout(function() { !called && handler(), called = 1; }, 17);\n }\n\n function queryElement(selector, parent) {\n var lookUp = parent && parent instanceof Element ? parent : document;\n return selector instanceof Element ? selector : lookUp.querySelector(selector);\n }\n\n function bootstrapCustomEvent(eventName, componentName, eventProperties) {\n var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName, {cancelable: true});\n if (typeof eventProperties !== 'undefined') {\n Object.keys(eventProperties).forEach(function (key) {\n Object.defineProperty(OriginalCustomEvent, key, {\n value: eventProperties[key]\n });\n });\n }\n return OriginalCustomEvent;\n }\n\n function dispatchCustomEvent(customEvent){\n this && this.dispatchEvent(customEvent);\n }\n\n function Collapse(element,options) {\n options = options || {};\n var self = this;\n var accordion = null,\n collapse = null,\n activeCollapse,\n activeElement,\n showCustomEvent,\n shownCustomEvent,\n hideCustomEvent,\n hiddenCustomEvent;\n function openAction(collapseElement, toggle) {\n dispatchCustomEvent.call(collapseElement, showCustomEvent);\n if ( showCustomEvent.defaultPrevented ) { return; }\n collapseElement.isAnimating = true;\n collapseElement.classList.add('collapsing');\n collapseElement.classList.remove('collapse');\n collapseElement.style.height = (collapseElement.scrollHeight) + \"px\";\n emulateTransitionEnd(collapseElement, function () {\n collapseElement.isAnimating = false;\n collapseElement.setAttribute('aria-expanded','true');\n toggle.setAttribute('aria-expanded','true');\n collapseElement.classList.remove('collapsing');\n collapseElement.classList.add('collapse');\n collapseElement.classList.add('show');\n collapseElement.style.height = '';\n dispatchCustomEvent.call(collapseElement, shownCustomEvent);\n });\n }\n function closeAction(collapseElement, toggle) {\n dispatchCustomEvent.call(collapseElement, hideCustomEvent);\n if ( hideCustomEvent.defaultPrevented ) { return; }\n collapseElement.isAnimating = true;\n collapseElement.style.height = (collapseElement.scrollHeight) + \"px\";\n collapseElement.classList.remove('collapse');\n collapseElement.classList.remove('show');\n collapseElement.classList.add('collapsing');\n collapseElement.offsetWidth;\n collapseElement.style.height = '0px';\n emulateTransitionEnd(collapseElement, function () {\n collapseElement.isAnimating = false;\n collapseElement.setAttribute('aria-expanded','false');\n toggle.setAttribute('aria-expanded','false');\n collapseElement.classList.remove('collapsing');\n collapseElement.classList.add('collapse');\n collapseElement.style.height = '';\n dispatchCustomEvent.call(collapseElement, hiddenCustomEvent);\n });\n }\n self.toggle = function (e) {\n if (e && e.target.tagName === 'A' || element.tagName === 'A') {e.preventDefault();}\n if (element.contains(e.target) || e.target === element) {\n if (!collapse.classList.contains('show')) { self.show(); }\n else { self.hide(); }\n }\n };\n self.hide = function () {\n if ( collapse.isAnimating ) { return; }\n closeAction(collapse,element);\n element.classList.add('collapsed');\n };\n self.show = function () {\n if ( accordion ) {\n activeCollapse = accordion.getElementsByClassName(\"collapse show\")[0];\n activeElement = activeCollapse && (queryElement((\"[data-target=\\\"#\" + (activeCollapse.id) + \"\\\"]\"),accordion)\n || queryElement((\"[href=\\\"#\" + (activeCollapse.id) + \"\\\"]\"),accordion) );\n }\n if ( !collapse.isAnimating ) {\n if ( activeElement && activeCollapse !== collapse ) {\n closeAction(activeCollapse,activeElement);\n activeElement.classList.add('collapsed');\n }\n openAction(collapse,element);\n element.classList.remove('collapsed');\n }\n };\n self.dispose = function () {\n element.removeEventListener('click',self.toggle,false);\n delete element.Collapse;\n };\n element = queryElement(element);\n element.Collapse && element.Collapse.dispose();\n var accordionData = element.getAttribute('data-parent');\n showCustomEvent = bootstrapCustomEvent('show', 'collapse');\n shownCustomEvent = bootstrapCustomEvent('shown', 'collapse');\n hideCustomEvent = bootstrapCustomEvent('hide', 'collapse');\n hiddenCustomEvent = bootstrapCustomEvent('hidden', 'collapse');\n collapse = queryElement(options.target || element.getAttribute('data-target') || element.getAttribute('href'));\n collapse.isAnimating = false;\n accordion = element.closest(options.parent || accordionData);\n if ( !element.Collapse ) {\n element.addEventListener('click',self.toggle,false);\n }\n element.Collapse = self;\n }\n\n return Collapse;\n\n})));\n","/* global jQuery, require */\nrequire( 'bootstrap.native/dist/polyfill' );\n\nimport Collapse from 'bootstrap.native/dist/components/collapse-native';\nimport isAdmin from '../../../helpers/isAdmin';\n\n( ( $ ) => {\n\tconst initializeBlock = ( $block ) => {\n\t\tif ( isAdmin ) {\n\t\t\t$block\n\t\t\t\t.find( '.accordion' )\n\t\t\t\t.each( ( _index, myAccordion ) => {\n\t\t\t\t\t$( myAccordion )\n\t\t\t\t\t\t.find( '[data-toggle=\"collapse\"]' )\n\t\t\t\t\t\t.each(\n\t\t\t\t\t\t\t( _idnx, collapseTrigger ) =>\n\t\t\t\t\t\t\t\tnew Collapse( collapseTrigger, {\n\t\t\t\t\t\t\t\t\tparent: `#${ $( myAccordion ).attr(\n\t\t\t\t\t\t\t\t\t\t'id'\n\t\t\t\t\t\t\t\t\t) }`,\n\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t);\n\t\t\t\t} );\n\t\t}\n\n\t\tif ( ! isAdmin ) {\n\t\t\t$block.find( '[data-toggle=\"collapse\"]' ).each(\n\t\t\t\t( _idnx, collapseTrigger ) =>\n\t\t\t\t\tnew Collapse( collapseTrigger, {\n\t\t\t\t\t\tparent: `#${ $block.attr( 'id' ) }`,\n\t\t\t\t\t} )\n\t\t\t);\n\t\t}\n\t};\n\n\t// Initialize each block on page load (front end).\n\t$( document ).ready( () => {\n\t\t$( '.accordion' ).each( ( _index, element ) => {\n\t\t\tinitializeBlock( $( element ) );\n\t\t} );\n\t} );\n\n\t// Initialize dynamic block preview (editor).\n\tif ( window.acf ) {\n\t\twindow.acf.addAction(\n\t\t\t'render_block_preview/type=accordion',\n\t\t\tinitializeBlock\n\t\t);\n\t}\n} )( jQuery );\n"],"sourceRoot":""}