silverstripe-webpack/app/client/dist/js/sample.js

1 line
71 KiB
JavaScript
Raw Normal View History

2021-08-19 00:10:45 +02:00
!function(){var e={779:function(e,t,n){var r={"./bg.png":154,"./logo.png":262,"./logo.svg":135,"./original.png":834,"./original2.png":347,"./photo1.png":329,"./photo2.jpg":566,"./photo3.svg":121,"app/client/src/img/bg.png":154,"app/client/src/img/logo.png":262,"app/client/src/img/logo.svg":135,"app/client/src/img/original.png":834,"app/client/src/img/original2.png":347,"app/client/src/img/photo1.png":329,"app/client/src/img/photo2.jpg":566,"app/client/src/img/photo3.svg":121,"bg.png":154,"img/bg.png":154,"img/logo.png":262,"img/logo.svg":135,"img/original.png":834,"img/original2.png":347,"img/photo1.png":329,"img/photo2.jpg":566,"img/photo3.svg":121,"logo.png":262,"logo.svg":135,"original.png":834,"original2.png":347,"photo1.png":329,"photo2.jpg":566,"photo3.svg":121};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=779},621: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",a=document,i=a.body,s=function SET_TOUCH_SCREEN(a,s){n||s===t||(a?(console.log("".concat(o,": Touch screen enabled")),i.classList.add("is-touch"),i.classList.remove("is-mouse"),e.dispatchEvent(new Event(r.TOUCHENABLE))):(console.log("".concat(o,": Touch screen disabled")),i.classList.add("is-mouse"),i.classList.remove("is-touch"),e.dispatchEvent(new Event(r.TOUCHDISABLED))),t=s,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};s("ontouchstart"in e||navigator.MaxTouchPoints>0||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.con