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

1 line
62 KiB
JavaScript
Raw Normal View History

2022-06-27 17:03:29 +02:00
!function(){var t={103:function(t,o,a){var i={"./bg.png":721,"./logo.png":462,"./logo.svg":658,"./original.png":26,"./original2.png":694,"./photo1.png":372,"./photo2.jpg":773,"./photo3.svg":668,"app/client/src/img/bg.png":721,"app/client/src/img/logo.png":462,"app/client/src/img/logo.svg":658,"app/client/src/img/original.png":26,"app/client/src/img/original2.png":694,"app/client/src/img/photo1.png":372,"app/client/src/img/photo2.jpg":773,"app/client/src/img/photo3.svg":668,"bg.png":721,"img/bg.png":721,"img/logo.png":462,"img/logo.svg":658,"img/original.png":26,"img/original2.png":694,"img/photo1.png":372,"img/photo2.jpg":773,"img/photo3.svg":668,"logo.png":462,"logo.svg":658,"original.png":26,"original2.png":694,"photo1.png":372,"photo2.jpg":773,"photo3.svg":668};function webpackContext(t){var o=webpackContextResolve(t);return a(o)}function webpackContextResolve(t){if(!a.o(i,t)){var o=new Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}return i[t]}webpackContext.keys=function webpackContextKeys(){return Object.keys(i)},webpackContext.resolve=webpackContextResolve,t.exports=webpackContext,webpackContext.id=103},212:function(t,o,a){"use strict";var i={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",DOMLOADED:"DOMContentLoaded",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"},c=(function(t){var o="_main.visibility",a=document,c=a.body;a.addEventListener("visibilitychange",(function(){"hidden"===a.visibilityState?(console.log("".concat(o,": Tab: hidden")),c.classList.add("is-hidden"),c.classList.remove("is-focused"),t.dispatchEvent(new Event(i.TABHIDDEN))):(console.log("".concat(o,": Tab: focused")),c.classList.add("is-focused"),c.classList.remove("is-hidden"),t.dispatchEvent(new Event(i.TABFOCUSED)))}))}(window),function(t){var o,a,c="_main.touch",s=document,l=s.body,u=function SET_TOUCH_SCREEN(s,u){a||u===o||(s?(console.log("".concat(c,": Touch screen enabled")),l.classList.add("is-touch"),l.classList.remove("is-mouse"),t.dispatchEvent(new Event(i.TOUCHENABLE))):(console.log("".concat(c,": Touch screen disabled")),l.classList.add("is-mouse"),l.classList.remove("is-touch"),t.dispatchEvent(new Event(i.TOUCHDISABLED))),o=u,a||(a=setTimeout((function(){clearTimeout(a),a=null}),500)))};u("ontouchstart"in t||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||t.matchMedia("(hover: none)").matches,"init"),s.addEventListener("touchend",(function(t){var o=!1;"click"!==t.type&&(o=!0),u(o,"click-touchend")})),s.addEventListener("click",(function(t){var o=!1;"click"!==t.type&&(o=!0),u(o,"click-touchend")}))}(window),{ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]});function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function _unsupportedIterableToArray(t,o){if(!t)return;if("string"===typeof t)return _arrayLikeToArray(t,o);var a=Object.prototype.toString.call(t).slice(