From 035e5ec434c0d77ff3d3068796d0c3b120e9e444 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Wed, 4 Aug 2021 01:19:49 +0200 Subject: [PATCH] FIX: dependencies --- app/client/dist/js/app.js | 2 +- app/client/dist/js/sample.js | 2 +- app/client/dist/records.json | 76 ++++++++++++++++++++++++++++++++---- app/client/dist/report.html | 4 +- app/client/src/js/app.js | 25 ++++++------ app/client/src/scss/app.scss | 2 +- package.json | 10 ++--- webpack.config.js | 2 +- webpack.config.serve.js | 2 +- 9 files changed, 94 insertions(+), 31 deletions(-) diff --git a/app/client/dist/js/app.js b/app/client/dist/js/app.js index 50e2a2a..c3fff04 100644 --- a/app/client/dist/js/app.js +++ b/app/client/dist/js/app.js @@ -1 +1 @@ -!function(){var e={999:function(e,t,n){var r={"./bg.png":139,"./logo.png":502,"./logo.svg":287,"./original.png":621,"./original2.png":747,"./photo1.png":659,"./photo2.jpg":137,"./photo3.svg":617,"app/client/src/img/bg.png":139,"app/client/src/img/logo.png":502,"app/client/src/img/logo.svg":287,"app/client/src/img/original.png":621,"app/client/src/img/original2.png":747,"app/client/src/img/photo1.png":659,"app/client/src/img/photo2.jpg":137,"app/client/src/img/photo3.svg":617,"bg.png":139,"img/bg.png":139,"img/logo.png":502,"img/logo.svg":287,"img/original.png":621,"img/original2.png":747,"img/photo1.png":659,"img/photo2.jpg":137,"img/photo3.svg":617,"logo.png":502,"logo.svg":287,"original.png":621,"original2.png":747,"photo1.png":659,"photo2.jpg":137,"photo3.svg":617};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=999},139:function(e){e.exports="../img/bg.png"},502:function(e){e.exports="../img/logo.png"},287:function(e){e.exports="../img/logo.svg"},621:function(e){e.exports="../img/original.png"},747:function(e){e.exports="../img/original2.png"},659:function(e){e.exports="../img/photo1.png"},137:function(e){e.exports="../img/photo2.jpg"},617:function(e){e.exports="../img/photo3.svg"},429:function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=function(){return[]},webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id=429,e.exports=webpackEmptyContext}},t={};function __webpack_require__(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},t={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(t){var n="_main.visibility",r=document,o=r.body;r.addEventListener("visibilitychange",(function(){"hidden"===r.visibilityState?(console.log("".concat(n,": Tab: hidden")),o.classList.add("is-hidden"),o.classList.remove("is-focused"),t.dispatchEvent(new Event(e.TABHIDDEN))):(console.log("".concat(n,": Tab: focused")),o.classList.add("is-focused"),o.classList.remove("is-hidden"),t.dispatchEvent(new Event(e.TABFOCUSED)))}))})(window),function(t){var n,r,o="_main.touch",i=document,a=i.body,c=function SET_TOUCH_SCREEN(i,c){r||c===n||(i?(console.log("".concat(o,": Touch screen enabled")),a.classList.add("is-touch"),a.classList.remove("is-mouse"),t.dispatchEvent(new Event(e.TOUCHENABLE))):(console.log("".concat(o,": Touch screen disabled")),a.classList.add("is-mouse"),a.classList.remove("is-touch"),t.dispatchEvent(new Event(e.TOUCHDISABLED))),n=c,r||(r=setTimeout((function(){clearTimeout(r),r=null}),500)))};c("ontouchstart"in t||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||t.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.innerHeight?(o.classList.add("landscape"),o.classList.remove("portrait")):(u=!1,o.classList.add("portrait"),o.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(c," | landscape ").concat(u)),o.removeChild(i),c};n.addEventListener("".concat(e.LOADED),i),n.addEventListener("".concat(e.RESIZE),i)}(window);function _defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(e).forEach((function(t){console.info("".concat(t,": ").concat(e[t]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(t).forEach((function(e){console.info("".concat(e,": ").concat(t[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var a=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){n.history.replaceState({landing:n.location.href},r.title,n.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();n.addEventListener("".concat(e.LOADED),(function(){a.init(),o.classList.add("loaded"),i.hide(),console.groupEnd("init"),console.timeEnd("init"),n.dispatchEvent(new Event(e.LODEDANDREADY))})),n.addEventListener("".concat(e.AJAX),(function(){a.loaded()})),n.MainUI=a}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selector_engine_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var c="transitionend",s=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},l=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),i=Number.parseFloat(r);return o||i?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},u=function triggerTransitionEnd(e){e.dispatchEvent(new Event(c))},f=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},d=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},p=[],v=function isRTL(){return"rtl"===document.documentElement.dir},m=function execute(e){"function"===typeof e&&e()},g=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=l(t)+r,i=!1,a=function handler(n){n.target===t&&(i=!0,t.removeEventListener(c,handler),m(e))};t.addEventListener(c,a),setTimeout((function(){i||u(t)}),o)}else m(e)};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){c=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,i=r.length;o0?a.findOne(e):null}(e))&&(this._element=e,I(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(e,t,n){return t&&base_component_defineProperties(e.prototype,t),n&&base_component_defineProperties(e,n),e}(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;D(this._element,this.constructor.DATA_KEY),T.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function _queueCallback(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return C(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}();function carousel_typeof(e){return(carousel_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(U)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!f(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(B)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),a.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(u(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=a.findOne(ie,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)T.one(this._element,X,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?U:B;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},M),k.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=t[r],a=i&&f(i)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(i);if(!new RegExp(o).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(o,'".'))}))}(j,e,H),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?z:F)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&T.on(this._element,W,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(T.on(this._element,Y,(function(t){return e.pause(t)})),T.on(this._element,V,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ae?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ae||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};a.find(".carousel-item img",this._element).forEach((function(e){T.on(e,te,(function(e){return e.preventDefault()}))})),this._pointerEvent?(T.on(this._element,Z,(function(e){return t(e)})),T.on(this._element,ee,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(T.on(this._element,Q,(function(e){return t(e)})),T.on(this._element,G,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),T.on(this._element,J,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=q[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?a.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===U;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var i=e.length;return o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(a.findOne(ie,this._element));return T.trigger(this._element,K,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=a.findOne(".active",this._indicatorsElement);t.classList.remove(oe),t.removeAttribute("aria-current");for(var n=a.find("[data-bs-target]",this._indicatorsElement),r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){i.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){i.headers[e]=r.merge(a)})),e.exports=i},988:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},475:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},79:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(988),o=Object.prototype.toString;function isArray(e){return"[object Array]"===o.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===o.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n0||navigator.msMaxTouchPoints>0||t.matchMedia("(hover: none)").matches,"init"),a.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")})),a.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.innerHeight?(o.classList.add("landscape"),o.classList.remove("portrait")):(u=!1,o.classList.add("portrait"),o.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(s," | landscape ").concat(u)),o.removeChild(a),s};n.addEventListener("".concat(e.LOADED),a),n.addEventListener("".concat(e.RESIZE),a)}(window);function _defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(e).forEach((function(t){console.info("".concat(t,": ").concat(e[t]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(t).forEach((function(e){console.info("".concat(e,": ").concat(t[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var i=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){n.history.replaceState({landing:n.location.href},r.title,n.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();n.addEventListener("".concat(e.LOADED),(function(){i.init(),o.classList.add("loaded"),a.hide(),console.groupEnd("init"),console.timeEnd("init"),n.dispatchEvent(new Event(e.LODEDANDREADY))})),n.addEventListener("".concat(e.AJAX),(function(){i.loaded()})),n.MainUI=i}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selector_engine_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s="transitionend",c=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},l=function getSelectorFromElement(e){var t=c(e);return t&&document.querySelector(t)?t:null},u=function getElementFromSelector(e){var t=c(e);return t?document.querySelector(t):null},f=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),a=Number.parseFloat(r);return o||a?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},d=function triggerTransitionEnd(e){e.dispatchEvent(new Event(s))},p=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},h=function getElement(e){return p(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?i.findOne(e):null},m=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],a=t[r],i=a&&p(a)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(a);if(!new RegExp(o).test(i))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(i,'" but expected type "').concat(o,'".'))}))},g=function reflow(e){return e.offsetHeight},y=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},v=[],_=function isRTL(){return"rtl"===document.documentElement.dir},b=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(v.length||document.addEventListener("DOMContentLoaded",(function(){v.forEach((function(e){return e()}))})),v.push(e)):e()}((function(){var $=y();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},E=function execute(e){"function"===typeof e&&e()},w=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=f(t)+r,a=!1,i=function handler(n){n.target===t&&(a=!0,t.removeEventListener(s,handler),E(e))};t.addEventListener(s,i),setTimeout((function(){a||d(t)}),o)}else E(e)},A=new Map,C=function set(e,t,n){A.has(e)||A.set(e,new Map);var r=A.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},S=function get(e,t){return A.has(e)&&A.get(e).get(t)||null},x=function remove(e,t){if(A.has(e)){var n=A.get(e);n.delete(t),0===n.size&&A.delete(e)}};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){s=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,a=r.length;o2&&void 0!==arguments[2])||arguments[2];w(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return S(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}();function collapse_typeof(e){return(collapse_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0)for(var r=0;r0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(le)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!p(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(ue)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),i.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(d(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=i.findOne(Le,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)N.one(this._element,me,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?le:ue;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread(carousel_objectSpread({},se),M.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),m(oe,e,ce),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?de:fe)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&N.on(this._element,ge,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(N.on(this._element,ye,(function(t){return e.pause(t)})),N.on(this._element,ve,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ke?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==ke||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};i.find(".carousel-item img",this._element).forEach((function(e){N.on(e,Ce,(function(e){return e.preventDefault()}))})),this._pointerEvent?(N.on(this._element,we,(function(e){return t(e)})),N.on(this._element,Ae,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(N.on(this._element,_e,(function(e){return t(e)})),N.on(this._element,be,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),N.on(this._element,Ee,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=pe[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?i.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===le;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var a=e.length;return o+=n?1:-1,r&&(o=(o+a)%a),e[Math.max(0,Math.min(o,a-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(i.findOne(Le,this._element));return N.trigger(this._element,he,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=i.findOne(".active",this._indicatorsElement);t.classList.remove(Oe),t.removeAttribute("aria-current");for(var n=i.find("[data-bs-target]",this._indicatorsElement),r=0;r0?r--:r=e.state.collections[n].length-1,e.state.collections[n][r].click(),console.log("".concat(e.name,": prev")),De.dispatchEvent(new Event("{ui.name}.prev"))})),_window_defineProperty(this,"reset",(function(){t.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_window_defineProperty(this,"load",(function(e){var n=t,r=n.axios;n.reset(),n.setState({loading:!0}),n.show(),r.get(e,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),"text html pajax");break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}De.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),De.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_window_defineProperty(this,"_currIndex",(function(){var e=t,n=e.state.current,r=n.getAttribute("data-gallery");return e.state.collections[r].indexOf(n)})),_window_defineProperty(this,"embed",(function(e){var n=t;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:e,loading:!1,type:["embed","video"]}),n.show()})),_window_defineProperty(this,"setCaption",(function(e){var n=t;console.log("".concat(n.name,": setCaption")),n.state.caption=e})),_window_defineProperty(this,"getCaption",(function(){return t.state.caption})),_window_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_window_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_window_defineProperty(this,"setContent",(function(e,n){var r=t;console.log("".concat(r.name,": setContent"));var o=n||["html","text"];Array.isArray(o)||(o=n.split(" ")),r.setState({content:e,type:o})})),_window_defineProperty(this,"getHtml",(function(){return t.state.content}));var n=this;n.name=n.constructor.name,console.log("".concat(n.name,": init")),n.axios=Re,De.dispatchEvent(new Event("{ui.name}.init"))}return function _window_createClass(e,t,n){return t&&_window_defineProperties(e.prototype,t),n&&_window_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(e){var t=this;console.log("MetaWindow: [links] init"),t.state.target=e,t.state.collections={},document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(e){var n=e.getAttribute("data-gallery");n&&(t.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(e){t.state.collections[n].push(e)}))),e.addEventListener("click",(function(e){e.preventDefault(),console.log("MetaWindow: [link] click");var n=e.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),o=n.getAttribute("data-embed");t.state.current=n,o?t.embed(r):t.load(r);var a=n.getAttribute("data-title");a&&t.setCaption(a)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e=this,t=e.name,n=e.state.current;e.state.target.innerHTML="";var r=document.createElement("div");r.classList.add("meta-".concat(t),"meta-".concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__")))),e.state.target.append(r);var o=document.createElement("div");o.classList.add("meta-".concat(t,"-overlay")),e.state.shown&&o.classList.add("meta-".concat(t,"-overlay__open")),e.state.loading&&o.classList.add("meta-".concat(t,"-overlay__loading")),e.state.error&&o.classList.add("meta-".concat(t,"-overlay__error")),r.append(o);var a=document.createElement("div");a.classList.add("meta-content"),o.append(a);var i=document.createElement("button");if(i.classList.add("meta-nav","meta-close","a"),i.innerHTML=' Close',i.addEventListener("click",(function(t){t.preventDefault(),e.hide()})),a.append(i),n){var s=n.getAttribute("data-gallery");if(s&&e.state.collections[s].length>1){var c=document.createElement("nav");c.classList.add("meta-navs");var l=document.createElement("button");l.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),l.innerHTML=' Previous',l.addEventListener("click",(function(t){t.preventDefault(),e.prev()})),c.append(l);var u=document.createElement("button");u.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),u.innerHTML=' Next',u.addEventListener("click",(function(t){t.preventDefault(),e.next()})),c.append(u),a.append(c)}}if(e.state.embed)'
... Loading ...
';else{var f=document.createElement("section");f.classList.add("meta-wrap","typography"),f.innerHTML=e.getHtml(),a.append(f)}if(e.state.error){var d=document.createElement("div");d.classList.add("meta-error"),d.innerHTML=e.state.error,a.append(d)}else if(e.state.caption){var p=document.createElement("div");p.classList.add("meta-caption"),p.innerHTML=e.getCaption(),a.append(p)}return e}}]),MetaWindow}()),Me=document.getElementById("MetaLightboxApp");Me||console.log("MetaWindow: missing container");var Ue=function init(){Ne.init(Me)};window.addEventListener("".concat(Ie),Ue),window.addEventListener("".concat(je),Ue),window.addEventListener("MetaWindow.initLinks",Ue);(function importAll(e){return e.keys().map(e)})(__webpack_require__(455)),function(t){var n="_layout",r=document;r.body;t.addEventListener("".concat(e.LOADED),(function(){!function init_fonts(){console.log("".concat(n,": init_fonts"));var e=r.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",r.getElementsByTagName("head")[0].appendChild(e)}()}))}(window);function app_importAll(e){return e.keys().map(e)}app_importAll(__webpack_require__(999)),app_importAll(__webpack_require__(429));if("serviceWorker"in navigator){var Be=(document.getElementsByTagName("base")[0]||{}).href,qe=(document.querySelector('meta[name="swversion"]')||{}).content;Be&&navigator.serviceWorker.register("".concat(Be,"sw.js?v=").concat(qe)).then((function(){console.log("Service Worker Registered")}))}}()}(); \ No newline at end of file diff --git a/app/client/dist/js/sample.js b/app/client/dist/js/sample.js index 2dcee7d..91bdcc9 100644 --- a/app/client/dist/js/sample.js +++ b/app/client/dist/js/sample.js @@ -1 +1 @@ -!function(){var e={999:function(e,t,n){var r={"./bg.png":139,"./logo.png":502,"./logo.svg":287,"./original.png":621,"./original2.png":747,"./photo1.png":659,"./photo2.jpg":137,"./photo3.svg":617,"app/client/src/img/bg.png":139,"app/client/src/img/logo.png":502,"app/client/src/img/logo.svg":287,"app/client/src/img/original.png":621,"app/client/src/img/original2.png":747,"app/client/src/img/photo1.png":659,"app/client/src/img/photo2.jpg":137,"app/client/src/img/photo3.svg":617,"bg.png":139,"img/bg.png":139,"img/logo.png":502,"img/logo.svg":287,"img/original.png":621,"img/original2.png":747,"img/photo1.png":659,"img/photo2.jpg":137,"img/photo3.svg":617,"logo.png":502,"logo.svg":287,"original.png":621,"original2.png":747,"photo1.png":659,"photo2.jpg":137,"photo3.svg":617};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=999},757:function(e,t,n){"use strict";var r={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"},o={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]};(function(e){var t="_main.visibility",n=document,o=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),o.classList.add("is-hidden"),o.classList.remove("is-focused"),e.dispatchEvent(new Event(r.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),o.classList.add("is-focused"),o.classList.remove("is-hidden"),e.dispatchEvent(new Event(r.TABFOCUSED)))}))})(window),function(e){var t,n,o="_main.touch",i=document,a=i.body,c=function SET_TOUCH_SCREEN(i,c){n||c===t||(i?(console.log("".concat(o,": Touch screen enabled")),a.classList.add("is-touch"),a.classList.remove("is-mouse"),e.dispatchEvent(new Event(r.TOUCHENABLE))):(console.log("".concat(o,": Touch screen disabled")),a.classList.add("is-mouse"),a.classList.remove("is-touch"),e.dispatchEvent(new Event(r.TOUCHDISABLED))),t=c,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};c("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),c(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(u=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(c," | landscape ").concat(u)),n.removeChild(i),c};e.addEventListener("".concat(r.LOADED),i),e.addEventListener("".concat(r.RESIZE),i)}(window);function _defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(r).forEach((function(e){console.info("".concat(e,": ").concat(r[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(o).forEach((function(e){console.info("".concat(e,": ").concat(o[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var i=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(r.LOADED),(function(){i.init(),n.classList.add("loaded"),s.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(r.LODEDANDREADY))})),e.addEventListener("".concat(r.AJAX),(function(){i.loaded()})),e.MainUI=i}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selector_engine_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u="transitionend",f=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},d=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),i=Number.parseFloat(r);return o||i?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},p=function triggerTransitionEnd(e){e.dispatchEvent(new Event(u))},v=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},m=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},g=[],h=function isRTL(){return"rtl"===document.documentElement.dir},y=function execute(e){"function"===typeof e&&e()},_=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=d(t)+r,i=!1,a=function handler(n){n.target===t&&(i=!0,t.removeEventListener(u,handler),y(e))};t.addEventListener(u,a),setTimeout((function(){i||p(t)}),o)}else y(e)};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(s){c=!0,o=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,i=r.length;o0?l.findOne(e):null}(e))&&(this._element=e,x(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(e,t,n){return t&&base_component_defineProperties(e.prototype,t),n&&base_component_defineProperties(e,n),e}(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;j(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function _queueCallback(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];_(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return P(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}();function carousel_typeof(e){return(carousel_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(z)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!v(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(q)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),l.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(p(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=l.findOne(se,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)I.one(this._element,V,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?z:q;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},B),C.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=t[r],a=i&&v(i)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(i);if(!new RegExp(o).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(o,'".'))}))}(M,e,F),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?X:K)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&I.on(this._element,Q,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(I.on(this._element,G,(function(t){return e.pause(t)})),I.on(this._element,J,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==le?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==le||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};l.find(".carousel-item img",this._element).forEach((function(e){I.on(e,oe,(function(e){return e.preventDefault()}))})),this._pointerEvent?(I.on(this._element,ne,(function(e){return t(e)})),I.on(this._element,re,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(I.on(this._element,Z,(function(e){return t(e)})),I.on(this._element,ee,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),I.on(this._element,te,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=W[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?l.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===z;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var i=e.length;return o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(l.findOne(se,this._element));return I.trigger(this._element,Y,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=l.findOne(".active",this._indicatorsElement);t.classList.remove(ce),t.removeAttribute("aria-current");for(var n=l.find("[data-bs-target]",this._indicatorsElement),r=0;r0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),a.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")})),a.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")}))}(window);function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(u=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(s," | landscape ").concat(u)),n.removeChild(a),s};e.addEventListener("".concat(r.LOADED),a),e.addEventListener("".concat(r.RESIZE),a)}(window);function _defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(r).forEach((function(e){console.info("".concat(e,": ").concat(r[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(o).forEach((function(e){console.info("".concat(e,": ").concat(o[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var a=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(r.LOADED),(function(){a.init(),n.classList.add("loaded"),c.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(r.LODEDANDREADY))})),e.addEventListener("".concat(r.AJAX),(function(){a.loaded()})),e.MainUI=a}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function selector_engine_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u="transitionend",f=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},d=function getSelectorFromElement(e){var t=f(e);return t&&document.querySelector(t)?t:null},p=function getElementFromSelector(e){var t=f(e);return t?document.querySelector(t):null},h=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),a=Number.parseFloat(r);return o||a?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},m=function triggerTransitionEnd(e){e.dispatchEvent(new Event(u))},g=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},y=function getElement(e){return g(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?l.findOne(e):null},v=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],a=t[r],i=a&&g(a)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(a);if(!new RegExp(o).test(i))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(i,'" but expected type "').concat(o,'".'))}))},_=function reflow(e){return e.offsetHeight},b=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},E=[],w=function isRTL(){return"rtl"===document.documentElement.dir},A=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(E.length||document.addEventListener("DOMContentLoaded",(function(){E.forEach((function(e){return e()}))})),E.push(e)):e()}((function(){var $=b();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},C=function execute(e){"function"===typeof e&&e()},S=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=h(t)+r,a=!1,i=function handler(n){n.target===t&&(a=!0,t.removeEventListener(u,handler),C(e))};t.addEventListener(u,i),setTimeout((function(){a||m(t)}),o)}else C(e)},x=new Map,O=function set(e,t,n){x.has(e)||x.set(e,new Map);var r=x.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},L=function get(e,t){return x.has(e)&&x.get(e).get(t)||null},k=function remove(e,t){if(x.has(e)){var n=x.get(e);n.delete(t),0===n.size&&x.delete(e)}};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){s=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,a=r.length;o2&&void 0!==arguments[2])||arguments[2];S(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return L(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}();function collapse_typeof(e){return(collapse_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0)for(var r=0;r0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(de)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!g(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(pe)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),l.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(m(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=l.findOne(Pe,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)B.one(this._element,ve,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?de:pe;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread(carousel_objectSpread({},ue),H.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),v(se,e,fe),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?me:he)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&B.on(this._element,_e,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(B.on(this._element,be,(function(t){return e.pause(t)})),B.on(this._element,Ee,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==je?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==je||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};l.find(".carousel-item img",this._element).forEach((function(e){B.on(e,Oe,(function(e){return e.preventDefault()}))})),this._pointerEvent?(B.on(this._element,Se,(function(e){return t(e)})),B.on(this._element,xe,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(B.on(this._element,we,(function(e){return t(e)})),B.on(this._element,Ae,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),B.on(this._element,Ce,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=ge[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?l.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===de;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var a=e.length;return o+=n?1:-1,r&&(o=(o+a)%a),e[Math.max(0,Math.min(o,a-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(l.findOne(Pe,this._element));return B.trigger(this._element,ye,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=l.findOne(".active",this._indicatorsElement);t.classList.remove(Te),t.removeAttribute("aria-current");for(var n=l.find("[data-bs-target]",this._indicatorsElement),r=0;r0?r--:r=e.state.collections[n].length-1,e.state.collections[n][r].click(),console.log("".concat(e.name,": prev")),Me.dispatchEvent(new Event("{ui.name}.prev"))})),_window_defineProperty(this,"reset",(function(){t.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_window_defineProperty(this,"load",(function(e){var n=t,r=n.axios;n.reset(),n.setState({loading:!0}),n.show(),r.get(e,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),"text html pajax");break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}Me.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),Me.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_window_defineProperty(this,"_currIndex",(function(){var e=t,n=e.state.current,r=n.getAttribute("data-gallery");return e.state.collections[r].indexOf(n)})),_window_defineProperty(this,"embed",(function(e){var n=t;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:e,loading:!1,type:["embed","video"]}),n.show()})),_window_defineProperty(this,"setCaption",(function(e){var n=t;console.log("".concat(n.name,": setCaption")),n.state.caption=e})),_window_defineProperty(this,"getCaption",(function(){return t.state.caption})),_window_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_window_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_window_defineProperty(this,"setContent",(function(e,n){var r=t;console.log("".concat(r.name,": setContent"));var o=n||["html","text"];Array.isArray(o)||(o=n.split(" ")),r.setState({content:e,type:o})})),_window_defineProperty(this,"getHtml",(function(){return t.state.content}));var n=this;n.name=n.constructor.name,console.log("".concat(n.name,": init")),n.axios=Ue,Me.dispatchEvent(new Event("{ui.name}.init"))}return function _window_createClass(e,t,n){return t&&_window_defineProperties(e.prototype,t),n&&_window_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(e){var t=this;console.log("MetaWindow: [links] init"),t.state.target=e,t.state.collections={},document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(e){var n=e.getAttribute("data-gallery");n&&(t.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(e){t.state.collections[n].push(e)}))),e.addEventListener("click",(function(e){e.preventDefault(),console.log("MetaWindow: [link] click");var n=e.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),o=n.getAttribute("data-embed");t.state.current=n,o?t.embed(r):t.load(r);var a=n.getAttribute("data-title");a&&t.setCaption(a)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e=this,t=e.name,n=e.state.current;e.state.target.innerHTML="";var r=document.createElement("div");r.classList.add("meta-".concat(t),"meta-".concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__")))),e.state.target.append(r);var o=document.createElement("div");o.classList.add("meta-".concat(t,"-overlay")),e.state.shown&&o.classList.add("meta-".concat(t,"-overlay__open")),e.state.loading&&o.classList.add("meta-".concat(t,"-overlay__loading")),e.state.error&&o.classList.add("meta-".concat(t,"-overlay__error")),r.append(o);var a=document.createElement("div");a.classList.add("meta-content"),o.append(a);var i=document.createElement("button");if(i.classList.add("meta-nav","meta-close","a"),i.innerHTML=' Close',i.addEventListener("click",(function(t){t.preventDefault(),e.hide()})),a.append(i),n){var s=n.getAttribute("data-gallery");if(s&&e.state.collections[s].length>1){var c=document.createElement("nav");c.classList.add("meta-navs");var l=document.createElement("button");l.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),l.innerHTML=' Previous',l.addEventListener("click",(function(t){t.preventDefault(),e.prev()})),c.append(l);var u=document.createElement("button");u.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),u.innerHTML=' Next',u.addEventListener("click",(function(t){t.preventDefault(),e.next()})),c.append(u),a.append(c)}}if(e.state.embed)'
... Loading ...
';else{var f=document.createElement("section");f.classList.add("meta-wrap","typography"),f.innerHTML=e.getHtml(),a.append(f)}if(e.state.error){var d=document.createElement("div");d.classList.add("meta-error"),d.innerHTML=e.state.error,a.append(d)}else if(e.state.caption){var p=document.createElement("div");p.classList.add("meta-caption"),p.innerHTML=e.getCaption(),a.append(p)}return e}}]),MetaWindow}()),He=document.getElementById("MetaLightboxApp");He||console.log("MetaWindow: missing container");var qe=function init(){Be.init(He)};window.addEventListener("".concat(Ne),qe),window.addEventListener("".concat(Re),qe),window.addEventListener("MetaWindow.initLinks",qe);(function importAll(e){return e.keys().map(e)})(n(455)),function(e){var t="_layout",n=document;n.body;e.addEventListener("".concat(r.LOADED),(function(){!function init_fonts(){console.log("".concat(t,": init_fonts"));var e=n.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",n.getElementsByTagName("head")[0].appendChild(e)}()}))}(window);function app_importAll(e){return e.keys().map(e)}app_importAll(n(999)),app_importAll(n(429));if("serviceWorker"in navigator){var Fe=(document.getElementsByTagName("base")[0]||{}).href,ze=(document.querySelector('meta[name="swversion"]')||{}).content;Fe&&navigator.serviceWorker.register("".concat(Fe,"sw.js?v=").concat(ze)).then((function(){console.log("Service Worker Registered")}))}},680:function(e,t,n){e.exports=n(612)},765:function(e,t,n){"use strict";var r=n(79),o=n(291),a=n(288),i=n(430),s=n(828),c=n(400),l=n(482),u=n(81);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var g=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function handleLoad(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,a={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,a),p=null}},p.onabort=function handleAbort(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function handleError(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(d,(function setRequestHeader(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(v){if("json"!==e.responseType)throw v}"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},612:function(e,t,n){"use strict";var r=n(79),o=n(988),a=n(703),i=n(235);function createInstance(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var s=createInstance(n(402));s.Axios=a,s.create=function create(e){return createInstance(i(s.defaults,e))},s.Cancel=n(629),s.CancelToken=n(6),s.isCancel=n(198),s.all=function all(e){return Promise.all(e)},s.spread=n(475),s.isAxiosError=n(463),e.exports=s,e.exports.default=s},629:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},6:function(e,t,n){"use strict";var r=n(629);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},198:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},703:function(e,t,n){"use strict";var r=n(79),o=n(430),a=n(946),i=n(891),s=n(235);function Axios(e){this.defaults=e,this.interceptors={request:new a,response:new a}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},946:function(e,t,n){"use strict";var r=n(79);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},828:function(e,t,n){"use strict";var r=n(758),o=n(200);e.exports=function buildFullPath(e,t){return e&&!r(t)?o(e,t):t}},81:function(e,t,n){"use strict";var r=n(459);e.exports=function createError(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},891:function(e,t,n){"use strict";var r=n(79),o=n(930),a=n(198),i=n(402);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return a(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},459:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},235:function(e,t,n){"use strict";var r=n(79);e.exports=function mergeConfig(e,t){t=t||{};var n={},o=["url","method","data"],a=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(e[o],t[o])}r.forEach(o,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(a,mergeDeepProperties),r.forEach(i,(function defaultToConfig2(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=getMergedValue(void 0,e[o])):n[o]=getMergedValue(void 0,t[o])})),r.forEach(s,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var c=o.concat(a).concat(i).concat(s),l=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===c.indexOf(e)}));return r.forEach(l,mergeDeepProperties),n}},291:function(e,t,n){"use strict";var r=n(81);e.exports=function settle(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},930:function(e,t,n){"use strict";var r=n(79);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},402:function(e,t,n){"use strict";var r=n(79),o=n(979),a={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(765)),e}(),transformRequest:[function transformRequest(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){i.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){i.headers[e]=r.merge(a)})),e.exports=i},988:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},475:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},79:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(988),o=Object.prototype.toString;function isArray(e){return"[object Array]"===o.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===o.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n - ss-webpack-boilerplate [3 Aug 2021 at 03:21] + ss-webpack-boilerplate [4 Aug 2021 at 01:17] diff --git a/app/client/src/js/app.js b/app/client/src/js/app.js index 1fd7cf8..5a063c5 100644 --- a/app/client/src/js/app.js +++ b/app/client/src/js/app.js @@ -1,5 +1,16 @@ 'use strict'; +function importAll(r) { + return r.keys().map(r); +} + +const images = importAll( + require.context('../img/', false, /\.(png|jpe?g|svg)$/), +); +const fontAwesome = importAll( + require.context('font-awesome', false, /\.(otf|eot|ttf|woff|woff2)$/), +); + /* * UI Basics */ @@ -10,8 +21,9 @@ import MainUI from '@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_comp /* * Extra functionality */ +import Collapse from 'bootstrap/js/src/collapse'; import '@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_ui/_ui.carousel'; -//import '@a2nt/meta-lightbox-react/src/js/app'; +import '@a2nt/meta-lightbox-js/src/js/app'; //import '@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_ui/_ui.instagram.feed'; // site specific modules @@ -33,14 +45,3 @@ if ('serviceWorker' in navigator) { }); } } - -function importAll(r) { - return r.keys().map(r); -} - -const images = importAll( - require.context('../img/', false, /\.(png|jpe?g|svg)$/), -); -const fontAwesome = importAll( - require.context('font-awesome', false, /\.(otf|eot|ttf|woff|woff2)$/), -); diff --git a/app/client/src/scss/app.scss b/app/client/src/scss/app.scss index 6dc08b7..c15eba6 100644 --- a/app/client/src/scss/app.scss +++ b/app/client/src/scss/app.scss @@ -1,7 +1,7 @@ // Your custom variables @import '_variables'; -@import '~@a2nt/meta-lightbox-react/src/scss/app'; +@import '~@a2nt/meta-lightbox-js/src/scss/app'; @import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.bootstrap'; @import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.main'; @import '~@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/scss/_components/_ui.main.ss'; diff --git a/package.json b/package.json index c3f3b38..1ec7936 100755 --- a/package.json +++ b/package.json @@ -31,13 +31,13 @@ "ie>=11" ], "dependencies": { - "@a2nt/meta-lightbox-react": "^3.1.4", - "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react": "^4.0.8", + "@a2nt/meta-lightbox-js": "^4.0.0", + "@a2nt/ss-bootstrap-ui-webpack-boilerplate-react": "^4.0.9", "@angular/common": "^12.1.4", "@angular/core": "^12.1.4", - "@apollo/client": "^3.4.3", + "@apollo/client": "^3.4.4", "@jsanahuja/instagramfeed": "github:jsanahuja/instagramfeed", - "@popperjs/core": "^2.9.2", + "@popperjs/core": "^2.9.3", "aos": "^2.3.4", "apollo3-cache-persist": "^0.11.0", "axios": "^0.21.1", @@ -148,7 +148,7 @@ "svg-url-loader": "^7.1.1", "symbol-observable": "^4.0.0", "terser-webpack-plugin": "^5.1.4", - "ts-invariant": "^0.9.0", + "ts-invariant": "^0.9.1", "tslib": "^2.3.0", "url": "^0.11.0", "url-loader": "^4.1.1", diff --git a/webpack.config.js b/webpack.config.js index 678a52e..32a7c24 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -24,7 +24,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin'); const UIInfo = require('./package.json'); const UIVERSION = JSON.stringify(UIInfo.version); -const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox-react/package.json'); +const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox-js/package.json'); const NODE_ENV = conf.NODE_ENV || process.env.NODE_ENV; const COMPRESS = NODE_ENV === 'production' ? true : false; diff --git a/webpack.config.serve.js b/webpack.config.serve.js index 5818b28..c882d45 100644 --- a/webpack.config.serve.js +++ b/webpack.config.serve.js @@ -21,7 +21,7 @@ const PORT = process.env.PORT || conf.PORT; const UIInfo = require('./package.json'); const UIVERSION = JSON.stringify(UIInfo.version); -const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox-react/package.json'); +const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox-js/package.json'); const NODE_ENV = 'development'; //conf.NODE_ENV || process.env.NODE_ENV; const COMPRESS = NODE_ENV === 'production' ? true : false;