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

2 lines
332 KiB
JavaScript
Raw Normal View History

/*! For license information please see app.js.LICENSE */
2019-11-25 09:50:50 +01:00
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="app/client/dist",i(i.s="./app/client/src/js/app.js")}({"./app/client/src/img sync \\.(png|jpe?g|svg)$":function(e,t,i){var n={"./bg.png":"./app/client/src/img/bg.png","./photo1.png":"./app/client/src/img/photo1.png","./photo2.jpg":"./app/client/src/img/photo2.jpg","./photo3.svg":"./app/client/src/img/photo3.svg"};function o(e){var t=r(e);return i(t)}function r(e){if(!i.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=r,e.exports=o,o.id="./app/client/src/img sync \\.(png|jpe?g|svg)$"},"./app/client/src/img/bg.png":function(e,t){e.exports="../img/bg.png"},"./app/client/src/img/photo1.png":function(e,t){e.exports="../img/photo1.png"},"./app/client/src/img/photo2.jpg":function(e,t){e.exports="../img/photo2.jpg"},"./app/client/src/img/photo3.svg":function(e,t){e.exports="../fonts/photo3.svg"},"./app/client/src/js/app.js":function(e,t,i){"use strict";i.r(t);i("./app/client/src/scss/app.scss"),i("./node_modules/bootstrap/js/dist/util.js"),i("./node_modules/bootstrap/js/dist/alert.js"),i("./node_modules/bootstrap/js/dist/button.js"),i("./node_modules/bootstrap/js/dist/carousel.js"),i("./node_modules/bootstrap/js/dist/collapse.js"),i("./node_modules/hammerjs/hammer.js"),i("./node_modules/jquery-hammerjs/jquery.hammer.js");var n=i("jquery"),o=i.n(n),r=i("./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_events.js"),s=i.n(r);i("./node_modules/jquery-hoverintent/jquery.hoverIntent.js");(e=>{const t=window,i=(document,e("html"),e("body"),"jsHoverUI"),n=i;class o{constructor(n){const o=this,r=e(n);o.$el=r;let s=r.parents(".nav-item, .dropdown");s=s&&s.length?s.first():null,o.$parent=s;let a=r.data("target");if(!(a=(a=a&&a.length?a:null)||(s?s.find(".dropdown-menu"):null))||!a.length)return console.warn(`${i}: Missing target for:`),void console.warn(r);o.$target=a;const l=s||r;o.$triger=l,e('[data-toggle="dropdown"]').on("click touch",e=>{o.hide()}),t.isTouch||l.hoverIntent({sensitivity:10,interval:50,over:()=>{o.show()},out:()=>{o.hide()}}),r.on("click touch",e=>{r.data("allow-click")||(console.log("aaaa"),e.preventDefault()),o.isShown()?o.hide():o.show()}),l.addClass(`${i}-active`)}isShown(){return this.$target.hasClass("show")}show(){this.$el.parents(".dropdown").not(".active").each((t,i)=>{const n=e(i);n.find(".dropdown").removeClass("show"),n.addClass("show")}),this.$target.addClass("show")}hide(){const e=this.$target;e.removeClass("show"),e.find(".dropdown-menu").removeClass("show"),e.parent(".dropdown").removeClass("show")}dispose(){const t=this,o=t.$el;t.$triger.removeClass(`${i}-active`),e.removeData(o,n),t.$el=null,t.$parent=null,t.$target=null,t.$triger=null}static _jQueryInterface(){return this.each((function(){const t=e(this);let i=t.data(n);i||(i=new o(this),t.data(n,i))}))}}e.fn[i]=o._jQueryInterface,e.fn[i].Constructor=o,e.fn[i].noConflict=function(){return e.fn[i]=JQUERY_NO_CONFLICT,o._jQueryInterface},e('[data-toggle="hover"]').ready(()=>{e('[data-toggle="hover"]').jsHoverUI()}),e('[data-toggle="dropdown"]').on("click touch",t=>{t.preventDefault();const i=e(t.currentTarget).parent(".dropdown");i.hasClass("show")?(i.remov