@iris.interactive/handcook 2.9.31 → 2.9.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,2095 @@
1
- (()=>{"use strict";var e={812:(e,t,n)=>{function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};r(o,"tooltip","[data-hc-tooltip], [data-hc-popover]"),r(o,"popover","[data-hc-popover]"),r(o,"scrollSmooth","[data-hc-smooth-scroll]"),r(o,"modal","[data-hc-modal]"),r(o,"modalClose","[data-hc-modal-close]"),r(o,"lightboxAttr","data-hc-lightbox"),r(o,"lightbox","[".concat(o.lightboxAttr,"]")),r(o,"dropdown","[data-hc-dropdown]"),r(o,"collapse","[data-hc-collapse]"),r(o,"collapseItem","[data-hc-collapse-item]"),r(o,"popin","[data-hc-popin]"),r(o,"tab","[data-hc-tab]"),r(o,"toggle","[data-hc-toggle]"),r(o,"slider","[data-hc-slider]"),r(o,"scrollspy","[data-hc-scrollspy]"),r(o,"scrollspyNav","[data-hc-scrollspy-nav]"),r(o,"scrollspyNavItem","[data-hc-scrollspy-nav-item]"),r(o,"scrollReveal","[data-hc-scroll-reveal-parent]")},49:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(385),o=n(147),i=n(930);const s=class{constructor(e){(e=(0,o.sb)(e))&&(this._element=e,r.Z.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.Z.remove(this._element,this.constructor.DATA_KEY),i.Z.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,n=!0){(0,o.e0)(e,t,n)}static getInstance(e){return r.Z.get((0,o.sb)(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}},385:(e,t,n)=>{n.d(t,{Z:()=>o});const r=new Map,o={set(e,t,n){r.has(e)||r.set(e,new Map);const o=r.get(e);o.has(t)||0===o.size?o.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,t)=>r.has(e)&&r.get(e).get(t)||null,remove(e,t){if(!r.has(e))return;const n=r.get(e);n.delete(t),0===n.size&&r.delete(e)}}},930:(e,t,n)=>{n.d(t,{Z:()=>_});var r=n(147);const o=/[^.]*(?=\..*)\.|.*/,i=/\..*/,s=/::\d+$/,a={};let l=1;const c={mouseenter:"mouseover",mouseleave:"mouseout"},u=/^(mouseenter|mouseleave)/i,d=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function h(e,t){return t&&`${t}::${l++}`||e.uidEvent||l++}function f(e){const t=h(e);return e.uidEvent=t,a[t]=a[t]||{},a[t]}function p(e,t,n=null){const r=Object.keys(e);for(let o=0,i=r.length;o<i;o++){const i=e[r[o]];if(i.originalHandler===t&&i.delegationSelector===n)return i}return null}function g(e,t,n){const r="string"==typeof t,o=r?n:t;let i=b(e);return d.has(i)||(i=e),[r,o,i]}function m(e,t,n,r,i){if("string"!=typeof t||!e)return;if(n||(n=r,r=null),u.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r?r=e(r):n=e(n)}const[s,a,l]=g(t,n,r),c=f(e),d=c[l]||(c[l]={}),m=p(d,a,s?n:null);if(m)return void(m.oneOff=m.oneOff&&i);const v=h(a,t.replace(o,"")),b=s?function(e,t,n){return function r(o){const i=e.querySelectorAll(t);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(let a=i.length;a--;)if(i[a]===s)return o.delegateTarget=s,r.oneOff&&y.off(e,o.type,t,n),n.apply(s,[o]);return null}}(e,n,r):function(e,t){return function n(r){return r.delegateTarget=e,n.oneOff&&y.off(e,r.type,t),t.apply(e,[r])}}(e,n);b.delegationSelector=s?n:null,b.originalHandler=a,b.oneOff=i,b.uidEvent=v,d[v]=b,e.addEventListener(l,b,s)}function v(e,t,n,r,o){const i=p(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function b(e){return e=e.replace(i,""),c[e]||e}const y={on(e,t,n,r){m(e,t,n,r,!1)},one(e,t,n,r){m(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,i,a]=g(t,n,r),l=a!==t,c=f(e),u=t.startsWith(".");if(void 0!==i){if(!c||!c[a])return;return void v(e,c,a,i,o?n:null)}u&&Object.keys(c).forEach((n=>{!function(e,t,n,r){const o=t[n]||{};Object.keys(o).forEach((i=>{if(i.includes(r)){const r=o[i];v(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,c,n,t.slice(1))}));const d=c[a]||{};Object.keys(d).forEach((n=>{const r=n.replace(s,"");if(!l||t.includes(r)){const t=d[n];v(e,c,a,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!=typeof t||!e)return null;const o=(0,r.KF)(),i=b(t),s=t!==i,a=d.has(i);let l,c=!0,u=!0,h=!1,f=null;return s&&o&&(l=o.Event(t,n),o(e).trigger(l),c=!l.isPropagationStopped(),u=!l.isImmediatePropagationStopped(),h=l.isDefaultPrevented()),a?(f=document.createEvent("HTMLEvents"),f.initEvent(i,c,!0)):f=new CustomEvent(t,{bubbles:c,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(f,e,{get:()=>n[e]})})),h&&f.preventDefault(),u&&e.dispatchEvent(f),f.defaultPrevented&&void 0!==l&&l.preventDefault(),f}},_=y},357:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(147);const o={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!(0,r.pK)(e)&&(0,r.pn)(e)))}}},147:(e,t,n)=>{n.d(t,{sb:()=>l,K:()=>i,dG:()=>s,zE:()=>c,pn:()=>u,pK:()=>d,nq:()=>h,KF:()=>f,pF:()=>g,e0:()=>v});const r="transitionend",o=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t},i=e=>{const t=o(e);return t&&document.querySelector(t)?t:null},s=e=>{const t=o(e);return t?document.querySelector(t):null},a=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),l=e=>a(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,c=(e,t,n)=>{Object.keys(n).forEach((r=>{const o=n[r],i=t[r],s=i&&a(i)?"element":null==(l=i)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(o).test(s))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}))},u=e=>!(!a(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),d=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),h=e=>{e.offsetHeight},f=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},p=[],g=e=>{var t;t=()=>{const t=f();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{p.forEach((e=>e()))})),p.push(t)):t()},m=e=>{"function"==typeof e&&e()},v=(e,t,n=!0)=>{if(!n)return void m(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let i=!1;const s=({target:n})=>{n===t&&(i=!0,t.removeEventListener(r,s),m(e))};t.addEventListener(r,s),setTimeout((()=>{i||t.dispatchEvent(new Event(r))}),o)}},973:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(645),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,"/*!\n * IRIS Interactive\n *\n * NOTICE OF LICENSE\n *\n * This source file is no subject to a specific license\n * but it belongs to the company IRIS Interactive.\n * You can contact IRIS Interactive at the following\n * address: contact@iris-interactive.fr\n *\n * @author Lucas ROCHE\n * @date 22/02/2022 08:25\n * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)\n */.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{height:auto;transition:width .35s ease;width:0}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}",""]);const i=o},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},379:(e,t,n)=>{var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=a(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:u,updater:m(h,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function h(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function f(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,o;if(t.singleton){var i=g++;n=p||(p=c(t)),r=h.bind(null,n,i,!1),o=h.bind(null,n,i,!0)}else n=c(t),r=f.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=a(n[r]);s[o].references--}for(var i=l(e,t),c=0;c<n.length;c++){var u=a(n[c]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=i}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{n(812);var e=n(379),t=n.n(e),r=n(973),o={insert:"head",singleton:!1};t()(r.Z,o);r.Z.locals;var i=n(147),s=n(385),a=n(930);function l(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function c(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const u={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${c(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${c(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=l(e.dataset[n])})),t},getDataAttribute:(e,t)=>l(e.getAttribute(`data-bs-${c(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})};var d=n(357),h=n(49);const f="collapse",p="bs.collapse",g={toggle:!0,parent:null},m={toggle:"boolean",parent:"(null|element)"},v="show",b="collapse",y="collapsing",_="collapsed",E=":scope .collapse .collapse",w='[data-bs-toggle="collapse"]';class A extends h.Z{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const n=d.Z.find(w);for(let e=0,t=n.length;e<t;e++){const t=n[e],r=(0,i.K)(t),o=d.Z.find(r).filter((e=>e===this._element));null!==r&&o.length&&(this._selector=r,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return g}static get NAME(){return f}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=d.Z.find(E,this._config.parent);t=d.Z.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const n=d.Z.findOne(this._selector);if(t.length){const r=t.find((e=>n!==e));if(e=r?A.getInstance(r):null,e&&e._isTransitioning)return}if(a.Z.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{n!==t&&A.getOrCreateInstance(t,{toggle:!1}).hide(),e||s.Z.set(t,p,null)}));const r=this._getDimension();this._element.classList.remove(b),this._element.classList.add(y),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(y),this._element.classList.add(b,v),this._element.style[r]="",a.Z.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[r]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(a.Z.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,(0,i.nq)(this._element),this._element.classList.add(y),this._element.classList.remove(b,v);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],n=(0,i.dG)(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(y),this._element.classList.add(b),a.Z.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(v)}_getConfig(e){return(e={...g,...u.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=(0,i.sb)(e.parent),(0,i.zE)(f,e,m),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=d.Z.find(E,this._config.parent);d.Z.find(w,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=(0,i.dG)(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(_):e.classList.add(_),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const n=A.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}a.Z.on(document,"click.bs.collapse.data-api",w,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=(0,i.K)(this);d.Z.find(t).forEach((e=>{A.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),(0,i.pF)(A)})()})();
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ "./resources/assets/scripts/enumerators/element.enum.js":
6
+ /*!**************************************************************!*\
7
+ !*** ./resources/assets/scripts/enumerators/element.enum.js ***!
8
+ \**************************************************************/
9
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
+
11
+ __webpack_require__.r(__webpack_exports__);
12
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13
+ /* harmony export */ "default": () => (/* binding */ ElementEnum)
14
+ /* harmony export */ });
15
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
+
17
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
+
19
+ /*
20
+ * IRIS Interactive
21
+ *
22
+ * NOTICE OF LICENSE
23
+ *
24
+ * This source file is no subject to a specific license
25
+ * but it belongs to the company IRIS Interactive.
26
+ * You can contact IRIS Interactive at the following
27
+ * address: contact@iris-interactive.fr
28
+ *
29
+ * @author Lucas ROCHE
30
+ * @date 01/02/2022 10:36
31
+ * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
32
+ */
33
+ var ElementEnum = function ElementEnum() {
34
+ _classCallCheck(this, ElementEnum);
35
+ };
36
+
37
+ _defineProperty(ElementEnum, "tooltip", '[data-hc-tooltip], [data-hc-popover]');
38
+
39
+ _defineProperty(ElementEnum, "popover", '[data-hc-popover]');
40
+
41
+ _defineProperty(ElementEnum, "scrollSmooth", '[data-hc-smooth-scroll]');
42
+
43
+ _defineProperty(ElementEnum, "modal", '[data-hc-modal]');
44
+
45
+ _defineProperty(ElementEnum, "modalClose", '[data-hc-modal-close]');
46
+
47
+ _defineProperty(ElementEnum, "lightboxAttr", 'data-hc-lightbox');
48
+
49
+ _defineProperty(ElementEnum, "lightbox", "[".concat(ElementEnum.lightboxAttr, "]"));
50
+
51
+ _defineProperty(ElementEnum, "dropdown", '[data-hc-dropdown]');
52
+
53
+ _defineProperty(ElementEnum, "collapse", '[data-hc-collapse]');
54
+
55
+ _defineProperty(ElementEnum, "collapseItem", '[data-hc-collapse-item]');
56
+
57
+ _defineProperty(ElementEnum, "popin", '[data-hc-popin]');
58
+
59
+ _defineProperty(ElementEnum, "tab", '[data-hc-tab]');
60
+
61
+ _defineProperty(ElementEnum, "toggle", '[data-hc-toggle]');
62
+
63
+ _defineProperty(ElementEnum, "slider", '[data-hc-slider]');
64
+
65
+ _defineProperty(ElementEnum, "scrollspy", '[data-hc-scrollspy]');
66
+
67
+ _defineProperty(ElementEnum, "scrollspyNav", '[data-hc-scrollspy-nav]');
68
+
69
+ _defineProperty(ElementEnum, "scrollspyNavItem", '[data-hc-scrollspy-nav-item]');
70
+
71
+ _defineProperty(ElementEnum, "scrollRevealParent", '[data-hc-scroll-reveal-parent]');
72
+
73
+ _defineProperty(ElementEnum, "scrollReveal", '[data-hc-scroll-reveal]');
74
+
75
+
76
+
77
+ /***/ }),
78
+
79
+ /***/ "./node_modules/bootstrap/js/src/base-component.js":
80
+ /*!*********************************************************!*\
81
+ !*** ./node_modules/bootstrap/js/src/base-component.js ***!
82
+ \*********************************************************/
83
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
84
+
85
+ __webpack_require__.r(__webpack_exports__);
86
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
87
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
88
+ /* harmony export */ });
89
+ /* harmony import */ var _dom_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom/data */ "./node_modules/bootstrap/js/src/dom/data.js");
90
+ /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/index */ "./node_modules/bootstrap/js/src/util/index.js");
91
+ /* harmony import */ var _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom/event-handler */ "./node_modules/bootstrap/js/src/dom/event-handler.js");
92
+ /**
93
+ * --------------------------------------------------------------------------
94
+ * Bootstrap (v5.1.3): base-component.js
95
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
96
+ * --------------------------------------------------------------------------
97
+ */
98
+
99
+
100
+
101
+
102
+
103
+ /**
104
+ * ------------------------------------------------------------------------
105
+ * Constants
106
+ * ------------------------------------------------------------------------
107
+ */
108
+
109
+ const VERSION = '5.1.3'
110
+
111
+ class BaseComponent {
112
+ constructor(element) {
113
+ element = (0,_util_index__WEBPACK_IMPORTED_MODULE_1__.getElement)(element)
114
+
115
+ if (!element) {
116
+ return
117
+ }
118
+
119
+ this._element = element
120
+ _dom_data__WEBPACK_IMPORTED_MODULE_0__["default"].set(this._element, this.constructor.DATA_KEY, this)
121
+ }
122
+
123
+ dispose() {
124
+ _dom_data__WEBPACK_IMPORTED_MODULE_0__["default"].remove(this._element, this.constructor.DATA_KEY)
125
+ _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].off(this._element, this.constructor.EVENT_KEY)
126
+
127
+ Object.getOwnPropertyNames(this).forEach(propertyName => {
128
+ this[propertyName] = null
129
+ })
130
+ }
131
+
132
+ _queueCallback(callback, element, isAnimated = true) {
133
+ (0,_util_index__WEBPACK_IMPORTED_MODULE_1__.executeAfterTransition)(callback, element, isAnimated)
134
+ }
135
+
136
+ /** Static */
137
+
138
+ static getInstance(element) {
139
+ return _dom_data__WEBPACK_IMPORTED_MODULE_0__["default"].get((0,_util_index__WEBPACK_IMPORTED_MODULE_1__.getElement)(element), this.DATA_KEY)
140
+ }
141
+
142
+ static getOrCreateInstance(element, config = {}) {
143
+ return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)
144
+ }
145
+
146
+ static get VERSION() {
147
+ return VERSION
148
+ }
149
+
150
+ static get NAME() {
151
+ throw new Error('You have to implement the static method "NAME", for each component!')
152
+ }
153
+
154
+ static get DATA_KEY() {
155
+ return `bs.${this.NAME}`
156
+ }
157
+
158
+ static get EVENT_KEY() {
159
+ return `.${this.DATA_KEY}`
160
+ }
161
+ }
162
+
163
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BaseComponent);
164
+
165
+
166
+ /***/ }),
167
+
168
+ /***/ "./node_modules/bootstrap/js/src/collapse.js":
169
+ /*!***************************************************!*\
170
+ !*** ./node_modules/bootstrap/js/src/collapse.js ***!
171
+ \***************************************************/
172
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
173
+
174
+ __webpack_require__.r(__webpack_exports__);
175
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
176
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
177
+ /* harmony export */ });
178
+ /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/index */ "./node_modules/bootstrap/js/src/util/index.js");
179
+ /* harmony import */ var _dom_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom/data */ "./node_modules/bootstrap/js/src/dom/data.js");
180
+ /* harmony import */ var _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom/event-handler */ "./node_modules/bootstrap/js/src/dom/event-handler.js");
181
+ /* harmony import */ var _dom_manipulator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dom/manipulator */ "./node_modules/bootstrap/js/src/dom/manipulator.js");
182
+ /* harmony import */ var _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dom/selector-engine */ "./node_modules/bootstrap/js/src/dom/selector-engine.js");
183
+ /* harmony import */ var _base_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./base-component */ "./node_modules/bootstrap/js/src/base-component.js");
184
+ /**
185
+ * --------------------------------------------------------------------------
186
+ * Bootstrap (v5.1.3): collapse.js
187
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
188
+ * --------------------------------------------------------------------------
189
+ */
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+ /**
199
+ * ------------------------------------------------------------------------
200
+ * Constants
201
+ * ------------------------------------------------------------------------
202
+ */
203
+
204
+ const NAME = 'collapse'
205
+ const DATA_KEY = 'bs.collapse'
206
+ const EVENT_KEY = `.${DATA_KEY}`
207
+ const DATA_API_KEY = '.data-api'
208
+
209
+ const Default = {
210
+ toggle: true,
211
+ parent: null
212
+ }
213
+
214
+ const DefaultType = {
215
+ toggle: 'boolean',
216
+ parent: '(null|element)'
217
+ }
218
+
219
+ const EVENT_SHOW = `show${EVENT_KEY}`
220
+ const EVENT_SHOWN = `shown${EVENT_KEY}`
221
+ const EVENT_HIDE = `hide${EVENT_KEY}`
222
+ const EVENT_HIDDEN = `hidden${EVENT_KEY}`
223
+ const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
224
+
225
+ const CLASS_NAME_SHOW = 'show'
226
+ const CLASS_NAME_COLLAPSE = 'collapse'
227
+ const CLASS_NAME_COLLAPSING = 'collapsing'
228
+ const CLASS_NAME_COLLAPSED = 'collapsed'
229
+ const CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`
230
+ const CLASS_NAME_HORIZONTAL = 'collapse-horizontal'
231
+
232
+ const WIDTH = 'width'
233
+ const HEIGHT = 'height'
234
+
235
+ const SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing'
236
+ const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="collapse"]'
237
+
238
+ /**
239
+ * ------------------------------------------------------------------------
240
+ * Class Definition
241
+ * ------------------------------------------------------------------------
242
+ */
243
+
244
+ class Collapse extends _base_component__WEBPACK_IMPORTED_MODULE_5__["default"] {
245
+ constructor(element, config) {
246
+ super(element)
247
+
248
+ this._isTransitioning = false
249
+ this._config = this._getConfig(config)
250
+ this._triggerArray = []
251
+
252
+ const toggleList = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(SELECTOR_DATA_TOGGLE)
253
+
254
+ for (let i = 0, len = toggleList.length; i < len; i++) {
255
+ const elem = toggleList[i]
256
+ const selector = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getSelectorFromElement)(elem)
257
+ const filterElement = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(selector)
258
+ .filter(foundElem => foundElem === this._element)
259
+
260
+ if (selector !== null && filterElement.length) {
261
+ this._selector = selector
262
+ this._triggerArray.push(elem)
263
+ }
264
+ }
265
+
266
+ this._initializeChildren()
267
+
268
+ if (!this._config.parent) {
269
+ this._addAriaAndCollapsedClass(this._triggerArray, this._isShown())
270
+ }
271
+
272
+ if (this._config.toggle) {
273
+ this.toggle()
274
+ }
275
+ }
276
+
277
+ // Getters
278
+
279
+ static get Default() {
280
+ return Default
281
+ }
282
+
283
+ static get NAME() {
284
+ return NAME
285
+ }
286
+
287
+ // Public
288
+
289
+ toggle() {
290
+ if (this._isShown()) {
291
+ this.hide()
292
+ } else {
293
+ this.show()
294
+ }
295
+ }
296
+
297
+ show() {
298
+ if (this._isTransitioning || this._isShown()) {
299
+ return
300
+ }
301
+
302
+ let actives = []
303
+ let activesData
304
+
305
+ if (this._config.parent) {
306
+ const children = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent)
307
+ actives = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(SELECTOR_ACTIVES, this._config.parent).filter(elem => !children.includes(elem)) // remove children if greater depth
308
+ }
309
+
310
+ const container = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].findOne(this._selector)
311
+ if (actives.length) {
312
+ const tempActiveData = actives.find(elem => container !== elem)
313
+ activesData = tempActiveData ? Collapse.getInstance(tempActiveData) : null
314
+
315
+ if (activesData && activesData._isTransitioning) {
316
+ return
317
+ }
318
+ }
319
+
320
+ const startEvent = _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].trigger(this._element, EVENT_SHOW)
321
+ if (startEvent.defaultPrevented) {
322
+ return
323
+ }
324
+
325
+ actives.forEach(elemActive => {
326
+ if (container !== elemActive) {
327
+ Collapse.getOrCreateInstance(elemActive, { toggle: false }).hide()
328
+ }
329
+
330
+ if (!activesData) {
331
+ _dom_data__WEBPACK_IMPORTED_MODULE_1__["default"].set(elemActive, DATA_KEY, null)
332
+ }
333
+ })
334
+
335
+ const dimension = this._getDimension()
336
+
337
+ this._element.classList.remove(CLASS_NAME_COLLAPSE)
338
+ this._element.classList.add(CLASS_NAME_COLLAPSING)
339
+
340
+ this._element.style[dimension] = 0
341
+
342
+ this._addAriaAndCollapsedClass(this._triggerArray, true)
343
+ this._isTransitioning = true
344
+
345
+ const complete = () => {
346
+ this._isTransitioning = false
347
+
348
+ this._element.classList.remove(CLASS_NAME_COLLAPSING)
349
+ this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW)
350
+
351
+ this._element.style[dimension] = ''
352
+
353
+ _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].trigger(this._element, EVENT_SHOWN)
354
+ }
355
+
356
+ const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1)
357
+ const scrollSize = `scroll${capitalizedDimension}`
358
+
359
+ this._queueCallback(complete, this._element, true)
360
+ this._element.style[dimension] = `${this._element[scrollSize]}px`
361
+ }
362
+
363
+ hide() {
364
+ if (this._isTransitioning || !this._isShown()) {
365
+ return
366
+ }
367
+
368
+ const startEvent = _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].trigger(this._element, EVENT_HIDE)
369
+ if (startEvent.defaultPrevented) {
370
+ return
371
+ }
372
+
373
+ const dimension = this._getDimension()
374
+
375
+ this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`
376
+
377
+ ;(0,_util_index__WEBPACK_IMPORTED_MODULE_0__.reflow)(this._element)
378
+
379
+ this._element.classList.add(CLASS_NAME_COLLAPSING)
380
+ this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW)
381
+
382
+ const triggerArrayLength = this._triggerArray.length
383
+ for (let i = 0; i < triggerArrayLength; i++) {
384
+ const trigger = this._triggerArray[i]
385
+ const elem = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getElementFromSelector)(trigger)
386
+
387
+ if (elem && !this._isShown(elem)) {
388
+ this._addAriaAndCollapsedClass([trigger], false)
389
+ }
390
+ }
391
+
392
+ this._isTransitioning = true
393
+
394
+ const complete = () => {
395
+ this._isTransitioning = false
396
+ this._element.classList.remove(CLASS_NAME_COLLAPSING)
397
+ this._element.classList.add(CLASS_NAME_COLLAPSE)
398
+ _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].trigger(this._element, EVENT_HIDDEN)
399
+ }
400
+
401
+ this._element.style[dimension] = ''
402
+
403
+ this._queueCallback(complete, this._element, true)
404
+ }
405
+
406
+ _isShown(element = this._element) {
407
+ return element.classList.contains(CLASS_NAME_SHOW)
408
+ }
409
+
410
+ // Private
411
+
412
+ _getConfig(config) {
413
+ config = {
414
+ ...Default,
415
+ ..._dom_manipulator__WEBPACK_IMPORTED_MODULE_3__["default"].getDataAttributes(this._element),
416
+ ...config
417
+ }
418
+ config.toggle = Boolean(config.toggle) // Coerce string values
419
+ config.parent = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getElement)(config.parent)
420
+ ;(0,_util_index__WEBPACK_IMPORTED_MODULE_0__.typeCheckConfig)(NAME, config, DefaultType)
421
+ return config
422
+ }
423
+
424
+ _getDimension() {
425
+ return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT
426
+ }
427
+
428
+ _initializeChildren() {
429
+ if (!this._config.parent) {
430
+ return
431
+ }
432
+
433
+ const children = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent)
434
+ _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(SELECTOR_DATA_TOGGLE, this._config.parent).filter(elem => !children.includes(elem))
435
+ .forEach(element => {
436
+ const selected = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getElementFromSelector)(element)
437
+
438
+ if (selected) {
439
+ this._addAriaAndCollapsedClass([element], this._isShown(selected))
440
+ }
441
+ })
442
+ }
443
+
444
+ _addAriaAndCollapsedClass(triggerArray, isOpen) {
445
+ if (!triggerArray.length) {
446
+ return
447
+ }
448
+
449
+ triggerArray.forEach(elem => {
450
+ if (isOpen) {
451
+ elem.classList.remove(CLASS_NAME_COLLAPSED)
452
+ } else {
453
+ elem.classList.add(CLASS_NAME_COLLAPSED)
454
+ }
455
+
456
+ elem.setAttribute('aria-expanded', isOpen)
457
+ })
458
+ }
459
+
460
+ // Static
461
+
462
+ static jQueryInterface(config) {
463
+ return this.each(function () {
464
+ const _config = {}
465
+ if (typeof config === 'string' && /show|hide/.test(config)) {
466
+ _config.toggle = false
467
+ }
468
+
469
+ const data = Collapse.getOrCreateInstance(this, _config)
470
+
471
+ if (typeof config === 'string') {
472
+ if (typeof data[config] === 'undefined') {
473
+ throw new TypeError(`No method named "${config}"`)
474
+ }
475
+
476
+ data[config]()
477
+ }
478
+ })
479
+ }
480
+ }
481
+
482
+ /**
483
+ * ------------------------------------------------------------------------
484
+ * Data Api implementation
485
+ * ------------------------------------------------------------------------
486
+ */
487
+
488
+ _dom_event_handler__WEBPACK_IMPORTED_MODULE_2__["default"].on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
489
+ // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
490
+ if (event.target.tagName === 'A' || (event.delegateTarget && event.delegateTarget.tagName === 'A')) {
491
+ event.preventDefault()
492
+ }
493
+
494
+ const selector = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getSelectorFromElement)(this)
495
+ const selectorElements = _dom_selector_engine__WEBPACK_IMPORTED_MODULE_4__["default"].find(selector)
496
+
497
+ selectorElements.forEach(element => {
498
+ Collapse.getOrCreateInstance(element, { toggle: false }).toggle()
499
+ })
500
+ })
501
+
502
+ /**
503
+ * ------------------------------------------------------------------------
504
+ * jQuery
505
+ * ------------------------------------------------------------------------
506
+ * add .Collapse to jQuery only if jQuery is present
507
+ */
508
+
509
+ ;(0,_util_index__WEBPACK_IMPORTED_MODULE_0__.defineJQueryPlugin)(Collapse)
510
+
511
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Collapse);
512
+
513
+
514
+ /***/ }),
515
+
516
+ /***/ "./node_modules/bootstrap/js/src/dom/data.js":
517
+ /*!***************************************************!*\
518
+ !*** ./node_modules/bootstrap/js/src/dom/data.js ***!
519
+ \***************************************************/
520
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
521
+
522
+ __webpack_require__.r(__webpack_exports__);
523
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
524
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
525
+ /* harmony export */ });
526
+ /**
527
+ * --------------------------------------------------------------------------
528
+ * Bootstrap (v5.1.3): dom/data.js
529
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
530
+ * --------------------------------------------------------------------------
531
+ */
532
+
533
+ /**
534
+ * ------------------------------------------------------------------------
535
+ * Constants
536
+ * ------------------------------------------------------------------------
537
+ */
538
+
539
+ const elementMap = new Map()
540
+
541
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
542
+ set(element, key, instance) {
543
+ if (!elementMap.has(element)) {
544
+ elementMap.set(element, new Map())
545
+ }
546
+
547
+ const instanceMap = elementMap.get(element)
548
+
549
+ // make it clear we only want one instance per element
550
+ // can be removed later when multiple key/instances are fine to be used
551
+ if (!instanceMap.has(key) && instanceMap.size !== 0) {
552
+ // eslint-disable-next-line no-console
553
+ console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`)
554
+ return
555
+ }
556
+
557
+ instanceMap.set(key, instance)
558
+ },
559
+
560
+ get(element, key) {
561
+ if (elementMap.has(element)) {
562
+ return elementMap.get(element).get(key) || null
563
+ }
564
+
565
+ return null
566
+ },
567
+
568
+ remove(element, key) {
569
+ if (!elementMap.has(element)) {
570
+ return
571
+ }
572
+
573
+ const instanceMap = elementMap.get(element)
574
+
575
+ instanceMap.delete(key)
576
+
577
+ // free up element references if there are no instances left for an element
578
+ if (instanceMap.size === 0) {
579
+ elementMap.delete(element)
580
+ }
581
+ }
582
+ });
583
+
584
+
585
+ /***/ }),
586
+
587
+ /***/ "./node_modules/bootstrap/js/src/dom/event-handler.js":
588
+ /*!************************************************************!*\
589
+ !*** ./node_modules/bootstrap/js/src/dom/event-handler.js ***!
590
+ \************************************************************/
591
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
592
+
593
+ __webpack_require__.r(__webpack_exports__);
594
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
595
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
596
+ /* harmony export */ });
597
+ /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/index */ "./node_modules/bootstrap/js/src/util/index.js");
598
+ /**
599
+ * --------------------------------------------------------------------------
600
+ * Bootstrap (v5.1.3): dom/event-handler.js
601
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
602
+ * --------------------------------------------------------------------------
603
+ */
604
+
605
+
606
+
607
+ /**
608
+ * ------------------------------------------------------------------------
609
+ * Constants
610
+ * ------------------------------------------------------------------------
611
+ */
612
+
613
+ const namespaceRegex = /[^.]*(?=\..*)\.|.*/
614
+ const stripNameRegex = /\..*/
615
+ const stripUidRegex = /::\d+$/
616
+ const eventRegistry = {} // Events storage
617
+ let uidEvent = 1
618
+ const customEvents = {
619
+ mouseenter: 'mouseover',
620
+ mouseleave: 'mouseout'
621
+ }
622
+ const customEventsRegex = /^(mouseenter|mouseleave)/i
623
+ const nativeEvents = new Set([
624
+ 'click',
625
+ 'dblclick',
626
+ 'mouseup',
627
+ 'mousedown',
628
+ 'contextmenu',
629
+ 'mousewheel',
630
+ 'DOMMouseScroll',
631
+ 'mouseover',
632
+ 'mouseout',
633
+ 'mousemove',
634
+ 'selectstart',
635
+ 'selectend',
636
+ 'keydown',
637
+ 'keypress',
638
+ 'keyup',
639
+ 'orientationchange',
640
+ 'touchstart',
641
+ 'touchmove',
642
+ 'touchend',
643
+ 'touchcancel',
644
+ 'pointerdown',
645
+ 'pointermove',
646
+ 'pointerup',
647
+ 'pointerleave',
648
+ 'pointercancel',
649
+ 'gesturestart',
650
+ 'gesturechange',
651
+ 'gestureend',
652
+ 'focus',
653
+ 'blur',
654
+ 'change',
655
+ 'reset',
656
+ 'select',
657
+ 'submit',
658
+ 'focusin',
659
+ 'focusout',
660
+ 'load',
661
+ 'unload',
662
+ 'beforeunload',
663
+ 'resize',
664
+ 'move',
665
+ 'DOMContentLoaded',
666
+ 'readystatechange',
667
+ 'error',
668
+ 'abort',
669
+ 'scroll'
670
+ ])
671
+
672
+ /**
673
+ * ------------------------------------------------------------------------
674
+ * Private methods
675
+ * ------------------------------------------------------------------------
676
+ */
677
+
678
+ function getUidEvent(element, uid) {
679
+ return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++
680
+ }
681
+
682
+ function getEvent(element) {
683
+ const uid = getUidEvent(element)
684
+
685
+ element.uidEvent = uid
686
+ eventRegistry[uid] = eventRegistry[uid] || {}
687
+
688
+ return eventRegistry[uid]
689
+ }
690
+
691
+ function bootstrapHandler(element, fn) {
692
+ return function handler(event) {
693
+ event.delegateTarget = element
694
+
695
+ if (handler.oneOff) {
696
+ EventHandler.off(element, event.type, fn)
697
+ }
698
+
699
+ return fn.apply(element, [event])
700
+ }
701
+ }
702
+
703
+ function bootstrapDelegationHandler(element, selector, fn) {
704
+ return function handler(event) {
705
+ const domElements = element.querySelectorAll(selector)
706
+
707
+ for (let { target } = event; target && target !== this; target = target.parentNode) {
708
+ for (let i = domElements.length; i--;) {
709
+ if (domElements[i] === target) {
710
+ event.delegateTarget = target
711
+
712
+ if (handler.oneOff) {
713
+ EventHandler.off(element, event.type, selector, fn)
714
+ }
715
+
716
+ return fn.apply(target, [event])
717
+ }
718
+ }
719
+ }
720
+
721
+ // To please ESLint
722
+ return null
723
+ }
724
+ }
725
+
726
+ function findHandler(events, handler, delegationSelector = null) {
727
+ const uidEventList = Object.keys(events)
728
+
729
+ for (let i = 0, len = uidEventList.length; i < len; i++) {
730
+ const event = events[uidEventList[i]]
731
+
732
+ if (event.originalHandler === handler && event.delegationSelector === delegationSelector) {
733
+ return event
734
+ }
735
+ }
736
+
737
+ return null
738
+ }
739
+
740
+ function normalizeParams(originalTypeEvent, handler, delegationFn) {
741
+ const delegation = typeof handler === 'string'
742
+ const originalHandler = delegation ? delegationFn : handler
743
+
744
+ let typeEvent = getTypeEvent(originalTypeEvent)
745
+ const isNative = nativeEvents.has(typeEvent)
746
+
747
+ if (!isNative) {
748
+ typeEvent = originalTypeEvent
749
+ }
750
+
751
+ return [delegation, originalHandler, typeEvent]
752
+ }
753
+
754
+ function addHandler(element, originalTypeEvent, handler, delegationFn, oneOff) {
755
+ if (typeof originalTypeEvent !== 'string' || !element) {
756
+ return
757
+ }
758
+
759
+ if (!handler) {
760
+ handler = delegationFn
761
+ delegationFn = null
762
+ }
763
+
764
+ // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position
765
+ // this prevents the handler from being dispatched the same way as mouseover or mouseout does
766
+ if (customEventsRegex.test(originalTypeEvent)) {
767
+ const wrapFn = fn => {
768
+ return function (event) {
769
+ if (!event.relatedTarget || (event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget))) {
770
+ return fn.call(this, event)
771
+ }
772
+ }
773
+ }
774
+
775
+ if (delegationFn) {
776
+ delegationFn = wrapFn(delegationFn)
777
+ } else {
778
+ handler = wrapFn(handler)
779
+ }
780
+ }
781
+
782
+ const [delegation, originalHandler, typeEvent] = normalizeParams(originalTypeEvent, handler, delegationFn)
783
+ const events = getEvent(element)
784
+ const handlers = events[typeEvent] || (events[typeEvent] = {})
785
+ const previousFn = findHandler(handlers, originalHandler, delegation ? handler : null)
786
+
787
+ if (previousFn) {
788
+ previousFn.oneOff = previousFn.oneOff && oneOff
789
+
790
+ return
791
+ }
792
+
793
+ const uid = getUidEvent(originalHandler, originalTypeEvent.replace(namespaceRegex, ''))
794
+ const fn = delegation ?
795
+ bootstrapDelegationHandler(element, handler, delegationFn) :
796
+ bootstrapHandler(element, handler)
797
+
798
+ fn.delegationSelector = delegation ? handler : null
799
+ fn.originalHandler = originalHandler
800
+ fn.oneOff = oneOff
801
+ fn.uidEvent = uid
802
+ handlers[uid] = fn
803
+
804
+ element.addEventListener(typeEvent, fn, delegation)
805
+ }
806
+
807
+ function removeHandler(element, events, typeEvent, handler, delegationSelector) {
808
+ const fn = findHandler(events[typeEvent], handler, delegationSelector)
809
+
810
+ if (!fn) {
811
+ return
812
+ }
813
+
814
+ element.removeEventListener(typeEvent, fn, Boolean(delegationSelector))
815
+ delete events[typeEvent][fn.uidEvent]
816
+ }
817
+
818
+ function removeNamespacedHandlers(element, events, typeEvent, namespace) {
819
+ const storeElementEvent = events[typeEvent] || {}
820
+
821
+ Object.keys(storeElementEvent).forEach(handlerKey => {
822
+ if (handlerKey.includes(namespace)) {
823
+ const event = storeElementEvent[handlerKey]
824
+
825
+ removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector)
826
+ }
827
+ })
828
+ }
829
+
830
+ function getTypeEvent(event) {
831
+ // allow to get the native events from namespaced events ('click.bs.button' --> 'click')
832
+ event = event.replace(stripNameRegex, '')
833
+ return customEvents[event] || event
834
+ }
835
+
836
+ const EventHandler = {
837
+ on(element, event, handler, delegationFn) {
838
+ addHandler(element, event, handler, delegationFn, false)
839
+ },
840
+
841
+ one(element, event, handler, delegationFn) {
842
+ addHandler(element, event, handler, delegationFn, true)
843
+ },
844
+
845
+ off(element, originalTypeEvent, handler, delegationFn) {
846
+ if (typeof originalTypeEvent !== 'string' || !element) {
847
+ return
848
+ }
849
+
850
+ const [delegation, originalHandler, typeEvent] = normalizeParams(originalTypeEvent, handler, delegationFn)
851
+ const inNamespace = typeEvent !== originalTypeEvent
852
+ const events = getEvent(element)
853
+ const isNamespace = originalTypeEvent.startsWith('.')
854
+
855
+ if (typeof originalHandler !== 'undefined') {
856
+ // Simplest case: handler is passed, remove that listener ONLY.
857
+ if (!events || !events[typeEvent]) {
858
+ return
859
+ }
860
+
861
+ removeHandler(element, events, typeEvent, originalHandler, delegation ? handler : null)
862
+ return
863
+ }
864
+
865
+ if (isNamespace) {
866
+ Object.keys(events).forEach(elementEvent => {
867
+ removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1))
868
+ })
869
+ }
870
+
871
+ const storeElementEvent = events[typeEvent] || {}
872
+ Object.keys(storeElementEvent).forEach(keyHandlers => {
873
+ const handlerKey = keyHandlers.replace(stripUidRegex, '')
874
+
875
+ if (!inNamespace || originalTypeEvent.includes(handlerKey)) {
876
+ const event = storeElementEvent[keyHandlers]
877
+
878
+ removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector)
879
+ }
880
+ })
881
+ },
882
+
883
+ trigger(element, event, args) {
884
+ if (typeof event !== 'string' || !element) {
885
+ return null
886
+ }
887
+
888
+ const $ = (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.getjQuery)()
889
+ const typeEvent = getTypeEvent(event)
890
+ const inNamespace = event !== typeEvent
891
+ const isNative = nativeEvents.has(typeEvent)
892
+
893
+ let jQueryEvent
894
+ let bubbles = true
895
+ let nativeDispatch = true
896
+ let defaultPrevented = false
897
+ let evt = null
898
+
899
+ if (inNamespace && $) {
900
+ jQueryEvent = $.Event(event, args)
901
+
902
+ $(element).trigger(jQueryEvent)
903
+ bubbles = !jQueryEvent.isPropagationStopped()
904
+ nativeDispatch = !jQueryEvent.isImmediatePropagationStopped()
905
+ defaultPrevented = jQueryEvent.isDefaultPrevented()
906
+ }
907
+
908
+ if (isNative) {
909
+ evt = document.createEvent('HTMLEvents')
910
+ evt.initEvent(typeEvent, bubbles, true)
911
+ } else {
912
+ evt = new CustomEvent(event, {
913
+ bubbles,
914
+ cancelable: true
915
+ })
916
+ }
917
+
918
+ // merge custom information in our event
919
+ if (typeof args !== 'undefined') {
920
+ Object.keys(args).forEach(key => {
921
+ Object.defineProperty(evt, key, {
922
+ get() {
923
+ return args[key]
924
+ }
925
+ })
926
+ })
927
+ }
928
+
929
+ if (defaultPrevented) {
930
+ evt.preventDefault()
931
+ }
932
+
933
+ if (nativeDispatch) {
934
+ element.dispatchEvent(evt)
935
+ }
936
+
937
+ if (evt.defaultPrevented && typeof jQueryEvent !== 'undefined') {
938
+ jQueryEvent.preventDefault()
939
+ }
940
+
941
+ return evt
942
+ }
943
+ }
944
+
945
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (EventHandler);
946
+
947
+
948
+ /***/ }),
949
+
950
+ /***/ "./node_modules/bootstrap/js/src/dom/manipulator.js":
951
+ /*!**********************************************************!*\
952
+ !*** ./node_modules/bootstrap/js/src/dom/manipulator.js ***!
953
+ \**********************************************************/
954
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
955
+
956
+ __webpack_require__.r(__webpack_exports__);
957
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
958
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
959
+ /* harmony export */ });
960
+ /**
961
+ * --------------------------------------------------------------------------
962
+ * Bootstrap (v5.1.3): dom/manipulator.js
963
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
964
+ * --------------------------------------------------------------------------
965
+ */
966
+
967
+ function normalizeData(val) {
968
+ if (val === 'true') {
969
+ return true
970
+ }
971
+
972
+ if (val === 'false') {
973
+ return false
974
+ }
975
+
976
+ if (val === Number(val).toString()) {
977
+ return Number(val)
978
+ }
979
+
980
+ if (val === '' || val === 'null') {
981
+ return null
982
+ }
983
+
984
+ return val
985
+ }
986
+
987
+ function normalizeDataKey(key) {
988
+ return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)
989
+ }
990
+
991
+ const Manipulator = {
992
+ setDataAttribute(element, key, value) {
993
+ element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)
994
+ },
995
+
996
+ removeDataAttribute(element, key) {
997
+ element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)
998
+ },
999
+
1000
+ getDataAttributes(element) {
1001
+ if (!element) {
1002
+ return {}
1003
+ }
1004
+
1005
+ const attributes = {}
1006
+
1007
+ Object.keys(element.dataset)
1008
+ .filter(key => key.startsWith('bs'))
1009
+ .forEach(key => {
1010
+ let pureKey = key.replace(/^bs/, '')
1011
+ pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)
1012
+ attributes[pureKey] = normalizeData(element.dataset[key])
1013
+ })
1014
+
1015
+ return attributes
1016
+ },
1017
+
1018
+ getDataAttribute(element, key) {
1019
+ return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))
1020
+ },
1021
+
1022
+ offset(element) {
1023
+ const rect = element.getBoundingClientRect()
1024
+
1025
+ return {
1026
+ top: rect.top + window.pageYOffset,
1027
+ left: rect.left + window.pageXOffset
1028
+ }
1029
+ },
1030
+
1031
+ position(element) {
1032
+ return {
1033
+ top: element.offsetTop,
1034
+ left: element.offsetLeft
1035
+ }
1036
+ }
1037
+ }
1038
+
1039
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Manipulator);
1040
+
1041
+
1042
+ /***/ }),
1043
+
1044
+ /***/ "./node_modules/bootstrap/js/src/dom/selector-engine.js":
1045
+ /*!**************************************************************!*\
1046
+ !*** ./node_modules/bootstrap/js/src/dom/selector-engine.js ***!
1047
+ \**************************************************************/
1048
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1049
+
1050
+ __webpack_require__.r(__webpack_exports__);
1051
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1052
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1053
+ /* harmony export */ });
1054
+ /* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/index */ "./node_modules/bootstrap/js/src/util/index.js");
1055
+ /**
1056
+ * --------------------------------------------------------------------------
1057
+ * Bootstrap (v5.1.3): dom/selector-engine.js
1058
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1059
+ * --------------------------------------------------------------------------
1060
+ */
1061
+
1062
+ /**
1063
+ * ------------------------------------------------------------------------
1064
+ * Constants
1065
+ * ------------------------------------------------------------------------
1066
+ */
1067
+
1068
+
1069
+
1070
+ const NODE_TEXT = 3
1071
+
1072
+ const SelectorEngine = {
1073
+ find(selector, element = document.documentElement) {
1074
+ return [].concat(...Element.prototype.querySelectorAll.call(element, selector))
1075
+ },
1076
+
1077
+ findOne(selector, element = document.documentElement) {
1078
+ return Element.prototype.querySelector.call(element, selector)
1079
+ },
1080
+
1081
+ children(element, selector) {
1082
+ return [].concat(...element.children)
1083
+ .filter(child => child.matches(selector))
1084
+ },
1085
+
1086
+ parents(element, selector) {
1087
+ const parents = []
1088
+
1089
+ let ancestor = element.parentNode
1090
+
1091
+ while (ancestor && ancestor.nodeType === Node.ELEMENT_NODE && ancestor.nodeType !== NODE_TEXT) {
1092
+ if (ancestor.matches(selector)) {
1093
+ parents.push(ancestor)
1094
+ }
1095
+
1096
+ ancestor = ancestor.parentNode
1097
+ }
1098
+
1099
+ return parents
1100
+ },
1101
+
1102
+ prev(element, selector) {
1103
+ let previous = element.previousElementSibling
1104
+
1105
+ while (previous) {
1106
+ if (previous.matches(selector)) {
1107
+ return [previous]
1108
+ }
1109
+
1110
+ previous = previous.previousElementSibling
1111
+ }
1112
+
1113
+ return []
1114
+ },
1115
+
1116
+ next(element, selector) {
1117
+ let next = element.nextElementSibling
1118
+
1119
+ while (next) {
1120
+ if (next.matches(selector)) {
1121
+ return [next]
1122
+ }
1123
+
1124
+ next = next.nextElementSibling
1125
+ }
1126
+
1127
+ return []
1128
+ },
1129
+
1130
+ focusableChildren(element) {
1131
+ const focusables = [
1132
+ 'a',
1133
+ 'button',
1134
+ 'input',
1135
+ 'textarea',
1136
+ 'select',
1137
+ 'details',
1138
+ '[tabindex]',
1139
+ '[contenteditable="true"]'
1140
+ ].map(selector => `${selector}:not([tabindex^="-"])`).join(', ')
1141
+
1142
+ return this.find(focusables, element).filter(el => !(0,_util_index__WEBPACK_IMPORTED_MODULE_0__.isDisabled)(el) && (0,_util_index__WEBPACK_IMPORTED_MODULE_0__.isVisible)(el))
1143
+ }
1144
+ }
1145
+
1146
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SelectorEngine);
1147
+
1148
+
1149
+ /***/ }),
1150
+
1151
+ /***/ "./node_modules/bootstrap/js/src/util/index.js":
1152
+ /*!*****************************************************!*\
1153
+ !*** ./node_modules/bootstrap/js/src/util/index.js ***!
1154
+ \*****************************************************/
1155
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1156
+
1157
+ __webpack_require__.r(__webpack_exports__);
1158
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1159
+ /* harmony export */ "getElement": () => (/* binding */ getElement),
1160
+ /* harmony export */ "getUID": () => (/* binding */ getUID),
1161
+ /* harmony export */ "getSelectorFromElement": () => (/* binding */ getSelectorFromElement),
1162
+ /* harmony export */ "getElementFromSelector": () => (/* binding */ getElementFromSelector),
1163
+ /* harmony export */ "getTransitionDurationFromElement": () => (/* binding */ getTransitionDurationFromElement),
1164
+ /* harmony export */ "triggerTransitionEnd": () => (/* binding */ triggerTransitionEnd),
1165
+ /* harmony export */ "isElement": () => (/* binding */ isElement),
1166
+ /* harmony export */ "typeCheckConfig": () => (/* binding */ typeCheckConfig),
1167
+ /* harmony export */ "isVisible": () => (/* binding */ isVisible),
1168
+ /* harmony export */ "isDisabled": () => (/* binding */ isDisabled),
1169
+ /* harmony export */ "findShadowRoot": () => (/* binding */ findShadowRoot),
1170
+ /* harmony export */ "noop": () => (/* binding */ noop),
1171
+ /* harmony export */ "getNextActiveElement": () => (/* binding */ getNextActiveElement),
1172
+ /* harmony export */ "reflow": () => (/* binding */ reflow),
1173
+ /* harmony export */ "getjQuery": () => (/* binding */ getjQuery),
1174
+ /* harmony export */ "onDOMContentLoaded": () => (/* binding */ onDOMContentLoaded),
1175
+ /* harmony export */ "isRTL": () => (/* binding */ isRTL),
1176
+ /* harmony export */ "defineJQueryPlugin": () => (/* binding */ defineJQueryPlugin),
1177
+ /* harmony export */ "execute": () => (/* binding */ execute),
1178
+ /* harmony export */ "executeAfterTransition": () => (/* binding */ executeAfterTransition)
1179
+ /* harmony export */ });
1180
+ /**
1181
+ * --------------------------------------------------------------------------
1182
+ * Bootstrap (v5.1.3): util/index.js
1183
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1184
+ * --------------------------------------------------------------------------
1185
+ */
1186
+
1187
+ const MAX_UID = 1000000
1188
+ const MILLISECONDS_MULTIPLIER = 1000
1189
+ const TRANSITION_END = 'transitionend'
1190
+
1191
+ // Shoutout AngusCroll (https://goo.gl/pxwQGp)
1192
+ const toType = obj => {
1193
+ if (obj === null || obj === undefined) {
1194
+ return `${obj}`
1195
+ }
1196
+
1197
+ return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()
1198
+ }
1199
+
1200
+ /**
1201
+ * --------------------------------------------------------------------------
1202
+ * Public Util Api
1203
+ * --------------------------------------------------------------------------
1204
+ */
1205
+
1206
+ const getUID = prefix => {
1207
+ do {
1208
+ prefix += Math.floor(Math.random() * MAX_UID)
1209
+ } while (document.getElementById(prefix))
1210
+
1211
+ return prefix
1212
+ }
1213
+
1214
+ const getSelector = element => {
1215
+ let selector = element.getAttribute('data-bs-target')
1216
+
1217
+ if (!selector || selector === '#') {
1218
+ let hrefAttr = element.getAttribute('href')
1219
+
1220
+ // The only valid content that could double as a selector are IDs or classes,
1221
+ // so everything starting with `#` or `.`. If a "real" URL is used as the selector,
1222
+ // `document.querySelector` will rightfully complain it is invalid.
1223
+ // See https://github.com/twbs/bootstrap/issues/32273
1224
+ if (!hrefAttr || (!hrefAttr.includes('#') && !hrefAttr.startsWith('.'))) {
1225
+ return null
1226
+ }
1227
+
1228
+ // Just in case some CMS puts out a full URL with the anchor appended
1229
+ if (hrefAttr.includes('#') && !hrefAttr.startsWith('#')) {
1230
+ hrefAttr = `#${hrefAttr.split('#')[1]}`
1231
+ }
1232
+
1233
+ selector = hrefAttr && hrefAttr !== '#' ? hrefAttr.trim() : null
1234
+ }
1235
+
1236
+ return selector
1237
+ }
1238
+
1239
+ const getSelectorFromElement = element => {
1240
+ const selector = getSelector(element)
1241
+
1242
+ if (selector) {
1243
+ return document.querySelector(selector) ? selector : null
1244
+ }
1245
+
1246
+ return null
1247
+ }
1248
+
1249
+ const getElementFromSelector = element => {
1250
+ const selector = getSelector(element)
1251
+
1252
+ return selector ? document.querySelector(selector) : null
1253
+ }
1254
+
1255
+ const getTransitionDurationFromElement = element => {
1256
+ if (!element) {
1257
+ return 0
1258
+ }
1259
+
1260
+ // Get transition-duration of the element
1261
+ let { transitionDuration, transitionDelay } = window.getComputedStyle(element)
1262
+
1263
+ const floatTransitionDuration = Number.parseFloat(transitionDuration)
1264
+ const floatTransitionDelay = Number.parseFloat(transitionDelay)
1265
+
1266
+ // Return 0 if element or transition duration is not found
1267
+ if (!floatTransitionDuration && !floatTransitionDelay) {
1268
+ return 0
1269
+ }
1270
+
1271
+ // If multiple durations are defined, take the first
1272
+ transitionDuration = transitionDuration.split(',')[0]
1273
+ transitionDelay = transitionDelay.split(',')[0]
1274
+
1275
+ return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER
1276
+ }
1277
+
1278
+ const triggerTransitionEnd = element => {
1279
+ element.dispatchEvent(new Event(TRANSITION_END))
1280
+ }
1281
+
1282
+ const isElement = obj => {
1283
+ if (!obj || typeof obj !== 'object') {
1284
+ return false
1285
+ }
1286
+
1287
+ if (typeof obj.jquery !== 'undefined') {
1288
+ obj = obj[0]
1289
+ }
1290
+
1291
+ return typeof obj.nodeType !== 'undefined'
1292
+ }
1293
+
1294
+ const getElement = obj => {
1295
+ if (isElement(obj)) { // it's a jQuery object or a node element
1296
+ return obj.jquery ? obj[0] : obj
1297
+ }
1298
+
1299
+ if (typeof obj === 'string' && obj.length > 0) {
1300
+ return document.querySelector(obj)
1301
+ }
1302
+
1303
+ return null
1304
+ }
1305
+
1306
+ const typeCheckConfig = (componentName, config, configTypes) => {
1307
+ Object.keys(configTypes).forEach(property => {
1308
+ const expectedTypes = configTypes[property]
1309
+ const value = config[property]
1310
+ const valueType = value && isElement(value) ? 'element' : toType(value)
1311
+
1312
+ if (!new RegExp(expectedTypes).test(valueType)) {
1313
+ throw new TypeError(
1314
+ `${componentName.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`
1315
+ )
1316
+ }
1317
+ })
1318
+ }
1319
+
1320
+ const isVisible = element => {
1321
+ if (!isElement(element) || element.getClientRects().length === 0) {
1322
+ return false
1323
+ }
1324
+
1325
+ return getComputedStyle(element).getPropertyValue('visibility') === 'visible'
1326
+ }
1327
+
1328
+ const isDisabled = element => {
1329
+ if (!element || element.nodeType !== Node.ELEMENT_NODE) {
1330
+ return true
1331
+ }
1332
+
1333
+ if (element.classList.contains('disabled')) {
1334
+ return true
1335
+ }
1336
+
1337
+ if (typeof element.disabled !== 'undefined') {
1338
+ return element.disabled
1339
+ }
1340
+
1341
+ return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false'
1342
+ }
1343
+
1344
+ const findShadowRoot = element => {
1345
+ if (!document.documentElement.attachShadow) {
1346
+ return null
1347
+ }
1348
+
1349
+ // Can find the shadow root otherwise it'll return the document
1350
+ if (typeof element.getRootNode === 'function') {
1351
+ const root = element.getRootNode()
1352
+ return root instanceof ShadowRoot ? root : null
1353
+ }
1354
+
1355
+ if (element instanceof ShadowRoot) {
1356
+ return element
1357
+ }
1358
+
1359
+ // when we don't find a shadow root
1360
+ if (!element.parentNode) {
1361
+ return null
1362
+ }
1363
+
1364
+ return findShadowRoot(element.parentNode)
1365
+ }
1366
+
1367
+ const noop = () => {}
1368
+
1369
+ /**
1370
+ * Trick to restart an element's animation
1371
+ *
1372
+ * @param {HTMLElement} element
1373
+ * @return void
1374
+ *
1375
+ * @see https://www.charistheo.io/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
1376
+ */
1377
+ const reflow = element => {
1378
+ // eslint-disable-next-line no-unused-expressions
1379
+ element.offsetHeight
1380
+ }
1381
+
1382
+ const getjQuery = () => {
1383
+ const { jQuery } = window
1384
+
1385
+ if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
1386
+ return jQuery
1387
+ }
1388
+
1389
+ return null
1390
+ }
1391
+
1392
+ const DOMContentLoadedCallbacks = []
1393
+
1394
+ const onDOMContentLoaded = callback => {
1395
+ if (document.readyState === 'loading') {
1396
+ // add listener on the first call when the document is in loading state
1397
+ if (!DOMContentLoadedCallbacks.length) {
1398
+ document.addEventListener('DOMContentLoaded', () => {
1399
+ DOMContentLoadedCallbacks.forEach(callback => callback())
1400
+ })
1401
+ }
1402
+
1403
+ DOMContentLoadedCallbacks.push(callback)
1404
+ } else {
1405
+ callback()
1406
+ }
1407
+ }
1408
+
1409
+ const isRTL = () => document.documentElement.dir === 'rtl'
1410
+
1411
+ const defineJQueryPlugin = plugin => {
1412
+ onDOMContentLoaded(() => {
1413
+ const $ = getjQuery()
1414
+ /* istanbul ignore if */
1415
+ if ($) {
1416
+ const name = plugin.NAME
1417
+ const JQUERY_NO_CONFLICT = $.fn[name]
1418
+ $.fn[name] = plugin.jQueryInterface
1419
+ $.fn[name].Constructor = plugin
1420
+ $.fn[name].noConflict = () => {
1421
+ $.fn[name] = JQUERY_NO_CONFLICT
1422
+ return plugin.jQueryInterface
1423
+ }
1424
+ }
1425
+ })
1426
+ }
1427
+
1428
+ const execute = callback => {
1429
+ if (typeof callback === 'function') {
1430
+ callback()
1431
+ }
1432
+ }
1433
+
1434
+ const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
1435
+ if (!waitForTransition) {
1436
+ execute(callback)
1437
+ return
1438
+ }
1439
+
1440
+ const durationPadding = 5
1441
+ const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding
1442
+
1443
+ let called = false
1444
+
1445
+ const handler = ({ target }) => {
1446
+ if (target !== transitionElement) {
1447
+ return
1448
+ }
1449
+
1450
+ called = true
1451
+ transitionElement.removeEventListener(TRANSITION_END, handler)
1452
+ execute(callback)
1453
+ }
1454
+
1455
+ transitionElement.addEventListener(TRANSITION_END, handler)
1456
+ setTimeout(() => {
1457
+ if (!called) {
1458
+ triggerTransitionEnd(transitionElement)
1459
+ }
1460
+ }, emulatedDuration)
1461
+ }
1462
+
1463
+ /**
1464
+ * Return the previous/next element of a list.
1465
+ *
1466
+ * @param {array} list The list of elements
1467
+ * @param activeElement The active element
1468
+ * @param shouldGetNext Choose to get next or previous element
1469
+ * @param isCycleAllowed
1470
+ * @return {Element|elem} The proper element
1471
+ */
1472
+ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {
1473
+ let index = list.indexOf(activeElement)
1474
+
1475
+ // if the element does not exist in the list return an element depending on the direction and if cycle is allowed
1476
+ if (index === -1) {
1477
+ return list[!shouldGetNext && isCycleAllowed ? list.length - 1 : 0]
1478
+ }
1479
+
1480
+ const listLength = list.length
1481
+
1482
+ index += shouldGetNext ? 1 : -1
1483
+
1484
+ if (isCycleAllowed) {
1485
+ index = (index + listLength) % listLength
1486
+ }
1487
+
1488
+ return list[Math.max(0, Math.min(index, listLength - 1))]
1489
+ }
1490
+
1491
+
1492
+
1493
+
1494
+ /***/ }),
1495
+
1496
+ /***/ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[3]!./resources/assets/scripts/components/collapse/collapse.component.scss":
1497
+ /*!********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
1498
+ !*** ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[3]!./resources/assets/scripts/components/collapse/collapse.component.scss ***!
1499
+ \********************************************************************************************************************************************************************************************************************************************************************************************************************/
1500
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
1501
+
1502
+ __webpack_require__.r(__webpack_exports__);
1503
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1504
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1505
+ /* harmony export */ });
1506
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
1507
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
1508
+ // Imports
1509
+
1510
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
1511
+ // Module
1512
+ ___CSS_LOADER_EXPORT___.push([module.id, "/*!\n * IRIS Interactive\n *\n * NOTICE OF LICENSE\n *\n * This source file is no subject to a specific license\n * but it belongs to the company IRIS Interactive.\n * You can contact IRIS Interactive at the following\n * address: contact@iris-interactive.fr\n *\n * @author Lucas ROCHE\n * @date 22/02/2022 08:25\n * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)\n */\n.fade {\n transition: opacity 0.15s linear;\n}\n@media (prefers-reduced-motion: reduce) {\n .fade {\n transition: none;\n }\n}\n.fade:not(.show) {\n opacity: 0;\n}\n\n.collapse:not(.show) {\n display: none;\n}\n\n.collapsing {\n height: 0;\n overflow: hidden;\n transition: height 0.35s ease;\n}\n@media (prefers-reduced-motion: reduce) {\n .collapsing {\n transition: none;\n }\n}\n.collapsing.collapse-horizontal {\n width: 0;\n height: auto;\n transition: width 0.35s ease;\n}\n@media (prefers-reduced-motion: reduce) {\n .collapsing.collapse-horizontal {\n transition: none;\n }\n}", ""]);
1513
+ // Exports
1514
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
1515
+
1516
+
1517
+ /***/ }),
1518
+
1519
+ /***/ "./node_modules/css-loader/dist/runtime/api.js":
1520
+ /*!*****************************************************!*\
1521
+ !*** ./node_modules/css-loader/dist/runtime/api.js ***!
1522
+ \*****************************************************/
1523
+ /***/ ((module) => {
1524
+
1525
+
1526
+
1527
+ /*
1528
+ MIT License http://www.opensource.org/licenses/mit-license.php
1529
+ Author Tobias Koppers @sokra
1530
+ */
1531
+ // css base code, injected by the css-loader
1532
+ // eslint-disable-next-line func-names
1533
+ module.exports = function (cssWithMappingToString) {
1534
+ var list = []; // return the list of modules as css string
1535
+
1536
+ list.toString = function toString() {
1537
+ return this.map(function (item) {
1538
+ var content = cssWithMappingToString(item);
1539
+
1540
+ if (item[2]) {
1541
+ return "@media ".concat(item[2], " {").concat(content, "}");
1542
+ }
1543
+
1544
+ return content;
1545
+ }).join("");
1546
+ }; // import a list of modules into the list
1547
+ // eslint-disable-next-line func-names
1548
+
1549
+
1550
+ list.i = function (modules, mediaQuery, dedupe) {
1551
+ if (typeof modules === "string") {
1552
+ // eslint-disable-next-line no-param-reassign
1553
+ modules = [[null, modules, ""]];
1554
+ }
1555
+
1556
+ var alreadyImportedModules = {};
1557
+
1558
+ if (dedupe) {
1559
+ for (var i = 0; i < this.length; i++) {
1560
+ // eslint-disable-next-line prefer-destructuring
1561
+ var id = this[i][0];
1562
+
1563
+ if (id != null) {
1564
+ alreadyImportedModules[id] = true;
1565
+ }
1566
+ }
1567
+ }
1568
+
1569
+ for (var _i = 0; _i < modules.length; _i++) {
1570
+ var item = [].concat(modules[_i]);
1571
+
1572
+ if (dedupe && alreadyImportedModules[item[0]]) {
1573
+ // eslint-disable-next-line no-continue
1574
+ continue;
1575
+ }
1576
+
1577
+ if (mediaQuery) {
1578
+ if (!item[2]) {
1579
+ item[2] = mediaQuery;
1580
+ } else {
1581
+ item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
1582
+ }
1583
+ }
1584
+
1585
+ list.push(item);
1586
+ }
1587
+ };
1588
+
1589
+ return list;
1590
+ };
1591
+
1592
+ /***/ }),
1593
+
1594
+ /***/ "./resources/assets/scripts/components/collapse/collapse.component.scss":
1595
+ /*!******************************************************************************!*\
1596
+ !*** ./resources/assets/scripts/components/collapse/collapse.component.scss ***!
1597
+ \******************************************************************************/
1598
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1599
+
1600
+ __webpack_require__.r(__webpack_exports__);
1601
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1602
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1603
+ /* harmony export */ });
1604
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
1605
+ /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
1606
+ /* harmony import */ var _node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_1_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_2_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_3_collapse_component_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[1]!../../../../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[2]!../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[3]!./collapse.component.scss */ "./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[3]!./resources/assets/scripts/components/collapse/collapse.component.scss");
1607
+
1608
+
1609
+
1610
+ var options = {};
1611
+
1612
+ options.insert = "head";
1613
+ options.singleton = false;
1614
+
1615
+ var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_1_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_2_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_3_collapse_component_scss__WEBPACK_IMPORTED_MODULE_1__["default"], options);
1616
+
1617
+
1618
+
1619
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_1_node_modules_postcss_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_2_node_modules_sass_loader_dist_cjs_js_ruleSet_1_rules_7_oneOf_1_use_3_collapse_component_scss__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
1620
+
1621
+ /***/ }),
1622
+
1623
+ /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
1624
+ /*!****************************************************************************!*\
1625
+ !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
1626
+ \****************************************************************************/
1627
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1628
+
1629
+
1630
+
1631
+ var isOldIE = function isOldIE() {
1632
+ var memo;
1633
+ return function memorize() {
1634
+ if (typeof memo === 'undefined') {
1635
+ // Test for IE <= 9 as proposed by Browserhacks
1636
+ // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
1637
+ // Tests for existence of standard globals is to allow style-loader
1638
+ // to operate correctly into non-standard environments
1639
+ // @see https://github.com/webpack-contrib/style-loader/issues/177
1640
+ memo = Boolean(window && document && document.all && !window.atob);
1641
+ }
1642
+
1643
+ return memo;
1644
+ };
1645
+ }();
1646
+
1647
+ var getTarget = function getTarget() {
1648
+ var memo = {};
1649
+ return function memorize(target) {
1650
+ if (typeof memo[target] === 'undefined') {
1651
+ var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
1652
+
1653
+ if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
1654
+ try {
1655
+ // This will throw an exception if access to iframe is blocked
1656
+ // due to cross-origin restrictions
1657
+ styleTarget = styleTarget.contentDocument.head;
1658
+ } catch (e) {
1659
+ // istanbul ignore next
1660
+ styleTarget = null;
1661
+ }
1662
+ }
1663
+
1664
+ memo[target] = styleTarget;
1665
+ }
1666
+
1667
+ return memo[target];
1668
+ };
1669
+ }();
1670
+
1671
+ var stylesInDom = [];
1672
+
1673
+ function getIndexByIdentifier(identifier) {
1674
+ var result = -1;
1675
+
1676
+ for (var i = 0; i < stylesInDom.length; i++) {
1677
+ if (stylesInDom[i].identifier === identifier) {
1678
+ result = i;
1679
+ break;
1680
+ }
1681
+ }
1682
+
1683
+ return result;
1684
+ }
1685
+
1686
+ function modulesToDom(list, options) {
1687
+ var idCountMap = {};
1688
+ var identifiers = [];
1689
+
1690
+ for (var i = 0; i < list.length; i++) {
1691
+ var item = list[i];
1692
+ var id = options.base ? item[0] + options.base : item[0];
1693
+ var count = idCountMap[id] || 0;
1694
+ var identifier = "".concat(id, " ").concat(count);
1695
+ idCountMap[id] = count + 1;
1696
+ var index = getIndexByIdentifier(identifier);
1697
+ var obj = {
1698
+ css: item[1],
1699
+ media: item[2],
1700
+ sourceMap: item[3]
1701
+ };
1702
+
1703
+ if (index !== -1) {
1704
+ stylesInDom[index].references++;
1705
+ stylesInDom[index].updater(obj);
1706
+ } else {
1707
+ stylesInDom.push({
1708
+ identifier: identifier,
1709
+ updater: addStyle(obj, options),
1710
+ references: 1
1711
+ });
1712
+ }
1713
+
1714
+ identifiers.push(identifier);
1715
+ }
1716
+
1717
+ return identifiers;
1718
+ }
1719
+
1720
+ function insertStyleElement(options) {
1721
+ var style = document.createElement('style');
1722
+ var attributes = options.attributes || {};
1723
+
1724
+ if (typeof attributes.nonce === 'undefined') {
1725
+ var nonce = true ? __webpack_require__.nc : 0;
1726
+
1727
+ if (nonce) {
1728
+ attributes.nonce = nonce;
1729
+ }
1730
+ }
1731
+
1732
+ Object.keys(attributes).forEach(function (key) {
1733
+ style.setAttribute(key, attributes[key]);
1734
+ });
1735
+
1736
+ if (typeof options.insert === 'function') {
1737
+ options.insert(style);
1738
+ } else {
1739
+ var target = getTarget(options.insert || 'head');
1740
+
1741
+ if (!target) {
1742
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
1743
+ }
1744
+
1745
+ target.appendChild(style);
1746
+ }
1747
+
1748
+ return style;
1749
+ }
1750
+
1751
+ function removeStyleElement(style) {
1752
+ // istanbul ignore if
1753
+ if (style.parentNode === null) {
1754
+ return false;
1755
+ }
1756
+
1757
+ style.parentNode.removeChild(style);
1758
+ }
1759
+ /* istanbul ignore next */
1760
+
1761
+
1762
+ var replaceText = function replaceText() {
1763
+ var textStore = [];
1764
+ return function replace(index, replacement) {
1765
+ textStore[index] = replacement;
1766
+ return textStore.filter(Boolean).join('\n');
1767
+ };
1768
+ }();
1769
+
1770
+ function applyToSingletonTag(style, index, remove, obj) {
1771
+ var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
1772
+
1773
+ /* istanbul ignore if */
1774
+
1775
+ if (style.styleSheet) {
1776
+ style.styleSheet.cssText = replaceText(index, css);
1777
+ } else {
1778
+ var cssNode = document.createTextNode(css);
1779
+ var childNodes = style.childNodes;
1780
+
1781
+ if (childNodes[index]) {
1782
+ style.removeChild(childNodes[index]);
1783
+ }
1784
+
1785
+ if (childNodes.length) {
1786
+ style.insertBefore(cssNode, childNodes[index]);
1787
+ } else {
1788
+ style.appendChild(cssNode);
1789
+ }
1790
+ }
1791
+ }
1792
+
1793
+ function applyToTag(style, options, obj) {
1794
+ var css = obj.css;
1795
+ var media = obj.media;
1796
+ var sourceMap = obj.sourceMap;
1797
+
1798
+ if (media) {
1799
+ style.setAttribute('media', media);
1800
+ } else {
1801
+ style.removeAttribute('media');
1802
+ }
1803
+
1804
+ if (sourceMap && typeof btoa !== 'undefined') {
1805
+ css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
1806
+ } // For old IE
1807
+
1808
+ /* istanbul ignore if */
1809
+
1810
+
1811
+ if (style.styleSheet) {
1812
+ style.styleSheet.cssText = css;
1813
+ } else {
1814
+ while (style.firstChild) {
1815
+ style.removeChild(style.firstChild);
1816
+ }
1817
+
1818
+ style.appendChild(document.createTextNode(css));
1819
+ }
1820
+ }
1821
+
1822
+ var singleton = null;
1823
+ var singletonCounter = 0;
1824
+
1825
+ function addStyle(obj, options) {
1826
+ var style;
1827
+ var update;
1828
+ var remove;
1829
+
1830
+ if (options.singleton) {
1831
+ var styleIndex = singletonCounter++;
1832
+ style = singleton || (singleton = insertStyleElement(options));
1833
+ update = applyToSingletonTag.bind(null, style, styleIndex, false);
1834
+ remove = applyToSingletonTag.bind(null, style, styleIndex, true);
1835
+ } else {
1836
+ style = insertStyleElement(options);
1837
+ update = applyToTag.bind(null, style, options);
1838
+
1839
+ remove = function remove() {
1840
+ removeStyleElement(style);
1841
+ };
1842
+ }
1843
+
1844
+ update(obj);
1845
+ return function updateStyle(newObj) {
1846
+ if (newObj) {
1847
+ if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
1848
+ return;
1849
+ }
1850
+
1851
+ update(obj = newObj);
1852
+ } else {
1853
+ remove();
1854
+ }
1855
+ };
1856
+ }
1857
+
1858
+ module.exports = function (list, options) {
1859
+ options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
1860
+ // tags it will allow on a page
1861
+
1862
+ if (!options.singleton && typeof options.singleton !== 'boolean') {
1863
+ options.singleton = isOldIE();
1864
+ }
1865
+
1866
+ list = list || [];
1867
+ var lastIdentifiers = modulesToDom(list, options);
1868
+ return function update(newList) {
1869
+ newList = newList || [];
1870
+
1871
+ if (Object.prototype.toString.call(newList) !== '[object Array]') {
1872
+ return;
1873
+ }
1874
+
1875
+ for (var i = 0; i < lastIdentifiers.length; i++) {
1876
+ var identifier = lastIdentifiers[i];
1877
+ var index = getIndexByIdentifier(identifier);
1878
+ stylesInDom[index].references--;
1879
+ }
1880
+
1881
+ var newLastIdentifiers = modulesToDom(newList, options);
1882
+
1883
+ for (var _i = 0; _i < lastIdentifiers.length; _i++) {
1884
+ var _identifier = lastIdentifiers[_i];
1885
+
1886
+ var _index = getIndexByIdentifier(_identifier);
1887
+
1888
+ if (stylesInDom[_index].references === 0) {
1889
+ stylesInDom[_index].updater();
1890
+
1891
+ stylesInDom.splice(_index, 1);
1892
+ }
1893
+ }
1894
+
1895
+ lastIdentifiers = newLastIdentifiers;
1896
+ };
1897
+ };
1898
+
1899
+ /***/ })
1900
+
1901
+ /******/ });
1902
+ /************************************************************************/
1903
+ /******/ // The module cache
1904
+ /******/ var __webpack_module_cache__ = {};
1905
+ /******/
1906
+ /******/ // The require function
1907
+ /******/ function __webpack_require__(moduleId) {
1908
+ /******/ // Check if module is in cache
1909
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1910
+ /******/ if (cachedModule !== undefined) {
1911
+ /******/ return cachedModule.exports;
1912
+ /******/ }
1913
+ /******/ // Create a new module (and put it into the cache)
1914
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1915
+ /******/ id: moduleId,
1916
+ /******/ // no module.loaded needed
1917
+ /******/ exports: {}
1918
+ /******/ };
1919
+ /******/
1920
+ /******/ // Execute the module function
1921
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1922
+ /******/
1923
+ /******/ // Return the exports of the module
1924
+ /******/ return module.exports;
1925
+ /******/ }
1926
+ /******/
1927
+ /************************************************************************/
1928
+ /******/ /* webpack/runtime/compat get default export */
1929
+ /******/ (() => {
1930
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
1931
+ /******/ __webpack_require__.n = (module) => {
1932
+ /******/ var getter = module && module.__esModule ?
1933
+ /******/ () => (module['default']) :
1934
+ /******/ () => (module);
1935
+ /******/ __webpack_require__.d(getter, { a: getter });
1936
+ /******/ return getter;
1937
+ /******/ };
1938
+ /******/ })();
1939
+ /******/
1940
+ /******/ /* webpack/runtime/define property getters */
1941
+ /******/ (() => {
1942
+ /******/ // define getter functions for harmony exports
1943
+ /******/ __webpack_require__.d = (exports, definition) => {
1944
+ /******/ for(var key in definition) {
1945
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
1946
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1947
+ /******/ }
1948
+ /******/ }
1949
+ /******/ };
1950
+ /******/ })();
1951
+ /******/
1952
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
1953
+ /******/ (() => {
1954
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1955
+ /******/ })();
1956
+ /******/
1957
+ /******/ /* webpack/runtime/make namespace object */
1958
+ /******/ (() => {
1959
+ /******/ // define __esModule on exports
1960
+ /******/ __webpack_require__.r = (exports) => {
1961
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1962
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1963
+ /******/ }
1964
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
1965
+ /******/ };
1966
+ /******/ })();
1967
+ /******/
1968
+ /************************************************************************/
1969
+ var __webpack_exports__ = {};
1970
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1971
+ (() => {
1972
+ /*!****************************************************************************!*\
1973
+ !*** ./resources/assets/scripts/components/collapse/collapse.component.js ***!
1974
+ \****************************************************************************/
1975
+ __webpack_require__.r(__webpack_exports__);
1976
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1977
+ /* harmony export */ "HcCollapse": () => (/* binding */ HcCollapse),
1978
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1979
+ /* harmony export */ });
1980
+ /* harmony import */ var _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../enumerators/element.enum */ "./resources/assets/scripts/enumerators/element.enum.js");
1981
+ /* harmony import */ var _collapse_component_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./collapse.component.scss */ "./resources/assets/scripts/components/collapse/collapse.component.scss");
1982
+ /* harmony import */ var bootstrap_js_src_collapse__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! bootstrap/js/src/collapse */ "./node_modules/bootstrap/js/src/collapse.js");
1983
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1984
+
1985
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1986
+
1987
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
1988
+
1989
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1990
+
1991
+ /*
1992
+ * IRIS Interactive
1993
+ *
1994
+ * NOTICE OF LICENSE
1995
+ *
1996
+ * This source file is no subject to a specific license
1997
+ * but it belongs to the company IRIS Interactive.
1998
+ * You can contact IRIS Interactive at the following
1999
+ * address: contact@iris-interactive.fr
2000
+ *
2001
+ * @author Lucas ROCHE
2002
+ * @date 21/02/2022 17:30
2003
+ * @copyright Copyright (c) 2002-2022 IRIS Interactive, Inc. (http://www.iris-interactive.fr)
2004
+ */
2005
+
2006
+
2007
+
2008
+ var HcCollapse = /*#__PURE__*/function () {
2009
+ function HcCollapse() {
2010
+ var _this = this;
2011
+
2012
+ var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _enumerators_element_enum__WEBPACK_IMPORTED_MODULE_0__["default"].collapse;
2013
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "collapse";
2014
+
2015
+ _classCallCheck(this, HcCollapse);
2016
+
2017
+ _defineProperty(this, "showEvent", void 0);
2018
+
2019
+ _defineProperty(this, "shownEvent", void 0);
2020
+
2021
+ _defineProperty(this, "hideEvent", void 0);
2022
+
2023
+ _defineProperty(this, "hiddenEvent", void 0);
2024
+
2025
+ this.createEvent();
2026
+ var collapseElementList = [].slice.call(document.querySelectorAll(elements));
2027
+ var collapseList = collapseElementList.map(function (collapseElement) {
2028
+ var parent = collapseElement.getAttribute('data-hc-collapse-parent');
2029
+ var option = {
2030
+ toggle: false
2031
+ };
2032
+
2033
+ if (parent !== null) {
2034
+ option.parent = parent;
2035
+ }
2036
+
2037
+ return new bootstrap_js_src_collapse__WEBPACK_IMPORTED_MODULE_2__["default"](collapseElement, option);
2038
+ });
2039
+ collapseList.map(function (collapse) {
2040
+ document.querySelectorAll("[data-hc-collapse-trigger=\"".concat(collapse._element.getAttribute("data-hc-collapse"), "\"]")).forEach(function (trigger) {
2041
+ trigger.addEventListener('click', function (e) {
2042
+ e.preventDefault();
2043
+ collapse.toggle();
2044
+ });
2045
+ });
2046
+ });
2047
+ document.querySelectorAll('[data-hc-collapse]').forEach(function (trigger) {
2048
+ var triggerEls = document.querySelectorAll("[data-hc-collapse-trigger=\"".concat(trigger.getAttribute('id'), "\"]"));
2049
+ trigger.addEventListener('hide.bs.collapse', function (e) {
2050
+ triggerEls.forEach(function (triggerEl) {
2051
+ if (triggerEl.classList.contains('active')) {
2052
+ triggerEl.classList.remove('active');
2053
+ }
2054
+ });
2055
+ trigger.dispatchEvent(_this.hideEvent);
2056
+ });
2057
+ trigger.addEventListener('hidden.bs.collapse', function (e) {
2058
+ trigger.dispatchEvent(_this.hiddenEvent);
2059
+ });
2060
+ trigger.addEventListener('show.bs.collapse', function (e) {
2061
+ triggerEls.forEach(function (triggerEl) {
2062
+ if (!triggerEl.classList.contains('active')) {
2063
+ triggerEl.classList.add('active');
2064
+ }
2065
+ });
2066
+ trigger.dispatchEvent(_this.showEvent);
2067
+ });
2068
+ trigger.addEventListener('shown.bs.collapse', function (e) {
2069
+ trigger.dispatchEvent(_this.shownEvent);
2070
+ });
2071
+ });
2072
+ }
2073
+
2074
+ _createClass(HcCollapse, [{
2075
+ key: "createEvent",
2076
+ value: function createEvent() {
2077
+ this.showEvent = new Event("show.hc.collapse");
2078
+ this.shownEvent = new Event("shown.hc.collapse");
2079
+ this.hideEvent = new Event("hide.hc.collapse");
2080
+ this.hiddenEvent = new Event("hidden.hc.collapse");
2081
+ }
2082
+ }]);
2083
+
2084
+ return HcCollapse;
2085
+ }();
2086
+
2087
+ var hc_collapse = function hc_collapse(trigger) {
2088
+ return new HcCollapse(trigger);
2089
+ };
2090
+
2091
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hc_collapse);
2092
+ })();
2093
+
2094
+ /******/ })()
2095
+ ;