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

2 lines
278 KiB
JavaScript
Raw Normal View History

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