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

2 lines
284 KiB
JavaScript
Raw Normal View History

/*! For license information please see app.js.LICENSE */
2019-12-17 21:45:42 +01:00
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));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 o(e){var t=r(e);return n(t)}function r(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}o.keys=function(){return Object.keys(i)},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,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"),o=n.n(i),r=n("./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_events.js"),a=n.n(r);n("./node_modules/jquery-hoverintent/jquery.hoverIntent.js");(e=>{const t=window,n=(document,e("html"),e("body"),"jsHoverUI"),i=n;class o{constructor(i){const o=this,r=e(i);o.$el=r;let a=r.parents(".nav-item, .dropdown");a=a&&a.length?a.first():null,o.$parent=a;let s=r.data("target");if(s=s&&s.length?s:null,s=s||(a?a.find(".dropdown-menu"):null),!s||!s.length)return console.warn(`${n}: Missing target for:`),void console.warn(r);o.$target=s;const l=a||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(`${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,o=t.$el;t.$triger.removeClass(`${n}-active`),e.removeData(o,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 o(this),t.data(i,n))}))}}e.fn[n]=o._jQueryInterface,e.fn[n].Constructor=o,e.fn[n].noConflict=function(){return e.fn[n]=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 n=e(t.currentTarget).parent(".dropdown");n.hasClass("show")?(n.remov