diff --git a/asset/js/vue-strap.min.js b/asset/js/vue-strap.min.js index e88b51f15a..4d9a62902e 100644 --- a/asset/js/vue-strap.min.js +++ b/asset/js/vue-strap.min.js @@ -1,6 +1,6 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueStrap=t():e.VueStrap=t()}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=k(n(1)),o=k(n(37)),i=k(n(71)),s=k(n(74)),a=k(n(81)),u=k(n(203)),l=k(n(208)),c=k(n(226)),f=k(n(231)),p=k(n(251)),d=k(n(217)),h=k(n(256)),g=k(n(281)),m=k(n(286)),v=k(n(291)),y=k(n(296)),_=k(n(301)),b=k(n(306)),w=k(n(311)),x=k(n(276));function k(e){return e&&e.__esModule?e:{default:e}}var C={affix:o.default,box:_.default,dropdown:s.default,modal:a.default,navbar:u.default,panel:l.default,pic:c.default,popover:f.default,question:p.default,retriever:d.default,searchbar:h.default,tab:g.default,tabGroup:m.default,tabs:v.default,thumbnail:y.default,tipBox:_.default,tooltip:b.default,trigger:w.default,typeahead:x.default},A={closeable:i.default};var S={install:function e(t){e.installed||(e.installed=!0,(0,r.default)(A).forEach(function(e){t.directive(e,A[e])}),(0,r.default)(C).forEach(function(e){t.component(e,C[e])}))},components:{}};(0,r.default)(C).forEach(function(e){S.components[e]=C[e]}),e.exports=S},function(e,t,n){e.exports={default:n(2),__esModule:!0}},function(e,t,n){n(3),e.exports=n(18).Object.keys},function(e,t,n){var r=n(4),o=n(6);n(23)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(5);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(7),o=n(22);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(8),o=n(9),i=n(12)(!1),s=n(16)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>u;)r(a,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(10),o=n(5);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(9),o=n(13),i=n(15);e.exports=function(e){return function(t,n,s){var a,u=r(t),l=o(u.length),c=i(s,l);if(e&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(14),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(14),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(17)("keys"),o=n(21);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(18),o=n(19),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(20)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(24),o=n(18),i=n(33);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",s)}},function(e,t,n){var r=n(19),o=n(18),i=n(25),s=n(27),a=n(8),u=function(e,t,n){var l,c,f,p=e&u.F,d=e&u.G,h=e&u.S,g=e&u.P,m=e&u.B,v=e&u.W,y=d?o:o[t]||(o[t]={}),_=y.prototype,b=d?r:h?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(c=!p&&b&&void 0!==b[l])&&a(y,l)||(f=c?b[l]:n[l],y[l]=d&&"function"!=typeof b[l]?n[l]:m&&c?i(f,r):v&&b[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((y.virtual||(y.virtual={}))[l]=f,e&u.R&&_&&!_[l]&&s(_,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(26);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(28),o=n(36);e.exports=n(32)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29),o=n(31),i=n(35),s=Object.defineProperty;t.f=n(32)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(30);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(32)&&!n(33)(function(){return 7!=Object.defineProperty(n(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(33)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(30),o=n(19).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(30);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r,o;r=n(38);var i=n(70);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="C:\\Users\\ALYIP\\Desktop\\Keep\\NUS\\NUS-OSS\\markbind\\vue-strap\\src\\Affix.vue",o.render=i.render,o.staticRenderFns=i.staticRenderFns,o.functional&&console.error("[vue-loader] Affix.vue: functional components are not supported and should be defined in plain js files using render functions."),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39),o=function(e){return e&&e.__esModule?e:{default:e}}(n(40));t.default={props:{offset:{type:Number,default:0}},data:function(){return{affixed:!1}},computed:{offsetNumber:function(){return(0,r.toNumber)(this.offset)},top:function(){return this.offsetNumber>0?this.offsetNumber+"px":null}},methods:{checkScroll:function(){var e=this;if(this.$el.offsetWidth||this.$el.offsetHeight||this.$el.getClientRects().length){var t={},n={},r=this.$el.getBoundingClientRect(),o=document.body;["Top","Left"].forEach(function(i){var s=i.toLowerCase(),a=window["page"+("Top"===i?"Y":"X")+"Offset"],u="scroll"+i;"number"!=typeof a&&"number"!=typeof(a=document.documentElement[u])&&(a=document.body[u]),t[s]=a,n[s]=t[s]+r[s]-(e.$el["client"+i]||o["client"+i]||0)});var i=t.top>n.top-this.offsetNumber;this.affixed!==i&&(this.affixed=i)}}},mounted:function(){var e=this;(0,o.default)(window).on("scroll resize",function(){return e.checkScroll()}),setTimeout(function(){return e.checkScroll()},0)},beforeDestroy:function(){var e=this;(0,o.default)(window).off("scroll resize",function(){return e.checkScroll()})}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toBoolean=function(e){return"string"==typeof e?""===e||"true"===e||"false"!==e&&"null"!==e&&"undefined"!==e&&e:e},t.toNumber=function(e){return"number"==typeof e?e:void 0===e||null===e||isNaN(Number(e))?null:Number(e)},t.getJSON=function(e){var t=new window.XMLHttpRequest,n={},r={then:function(e,t){return r.done(e).fail(t)},catch:function(e){return r.fail(e)},always:function(e){return r.done(e).fail(e)}};return["done","fail"].forEach(function(e){n[e]=[],r[e]=function(t){return t instanceof Function&&n[e].push(t),r}}),r.done(JSON.parse),t.onreadystatechange=function(){if(4===t.readyState){var e={status:t.status};if(200===t.status)try{var r=t.responseText;for(var o in n.done){var i=n.done[o](r);void 0!==i&&(r=i)}}catch(e){n.fail.forEach(function(t){return t(e)})}else n.fail.forEach(function(t){return t(e)})}},t.open("GET",e),t.setRequestHeader("Accept","application/json"),t.send(),r},t.getScrollBarWidth=function(){if(document.documentElement.scrollHeight<=document.documentElement.clientHeight)return 0;var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth);return document.body.removeChild(t),n-r},t.translations=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";return window.VueStrapLang?window.VueStrapLang(e):{daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],limit:"Limit reached ({{limit}} items max).",loading:"Loading...",minLength:"Min. Length",months:["January","February","March","April","May","June","July","August","September","October","November","December"],notSelected:"Nothing Selected",required:"Required",search:"Search"}},t.delayer=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;function o(e){return/^[0-9]+$/.test(e)?Number(e)||1:null}return function(){for(var i=this,s=arguments.length,a=Array(s),u=0;u1&&(n=t[1]);return n},t.VueFixer=function(e){var t={computed:{vue2:function(){return!this.$dispatch}}};window.Vue&&window.Vue.partial?(e.beforeCreate&&(t.create=e.beforeCreate,delete e.beforeCreate),e.beforeMount&&(e.beforeCompile=e.beforeMount,delete e.beforeMount),e.mounted&&(e.ready=e.mounted,delete e.mounted)):(e.beforeCompile&&(e.beforeMount=e.beforeCompile,delete e.beforeCompile),e.compiled&&(t.compiled=e.compiled,delete e.compiled),e.ready&&(e.mounted=e.ready,delete e.ready));e.mixins||(e.mixins=[]);return e.mixins.unshift(t),e};t.coerce={boolean:function(e){return"string"==typeof e?""===e||"true"===e||"false"!==e&&"null"!==e&&"undefined"!==e&&e:e},number:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"number"==typeof e?e:void 0===e||null===e||isNaN(Number(e))?t:Number(e)},string:function(e){return void 0===e||null===e?"":e+""},pattern:function(e){return e instanceof Function||e instanceof RegExp?e:"string"==typeof e?new RegExp(e):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(41)),o=u(n(44)),i=u(n(63)),s=u(n(68)),a=u(n(69));function u(e){return e&&e.__esModule?e:{default:e}}var l=Array.prototype,c=new Error("Passed arguments must be of Node"),f=void 0,p=[],d=[];function h(e){return e instanceof window.Node}function g(e){return e instanceof window.NodeList||e instanceof v||e instanceof window.HTMLCollection||e instanceof Array}function m(e){return(e=e.trim()).length?e.replace(/\s+/," ").split(" "):[]}var v=function(){function e(t){(0,s.default)(this,e);var n=t;if(t[0]===window?n=[window]:"string"==typeof t[0]?(n=(t[1]||document).querySelectorAll(t[0]),t[1]&&(this.owner=t[1])):0 in t&&!h(t[0])&&t[0]&&"length"in t[0]&&(n=t[0],t[1]&&(this.owner=t[1])),n){for(var r in n)this[r]=n[r];this.length=n.length}else this.length=0}return(0,a.default)(e,[{key:"concat",value:function(){var e=l.slice.call(this);for(var t=arguments.length,n=Array(t),r=0;r1&&void 0!==arguments[1])||arguments[1];return this&&this.length&&e?(this.each(function(t){p.push({el:t,callback:e})}),f||(f=function(e){p.forEach(function(t){t.el.contains(e.target)||t.el===e.target||t.callback.call(t.el,e,t.el)})},document.addEventListener("click",f,!1),t&&document.addEventListener("touchstart",f,!1)),this):this}},{key:"offBlur",value:function(e){return this.each(function(t){p=p.filter(function(n){return!(n&&n.el===t&&(!e||n.callback===e))&&t})}),this}},{key:"asArray",get:function(){return l.slice.call(this)}}]),e}(),y=v.prototype;function _(e,t){var n=[];return l.forEach.call(e,function(r){if(h(r))~n.indexOf(r)||n.push(r);else if(g(r))for(var o in r)n.push(r[o]);else if(null!==r)return e.get=y.get,e.set=y.set,e.call=y.call,e.owner=t,e}),k(n,t)}(0,i.default)(l).forEach(function(e){"join"!==e&&"copyWithin"!==e&&"fill"!==e&&void 0===y[e]&&(y[e]=l[e])}),window.Symbol&&o.default&&(y[o.default]=y.values=l[o.default]);var b=document.createElement("div");function w(e){var t=this;y[e]||(b[e]instanceof Function?y[e]=function(){for(var n=arguments.length,r=Array(n),o=0;o=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(14),o=n(5);e.exports=function(e){return function(t,n){var i,s,a=String(o(t)),u=r(n),l=a.length;return u<0||u>=l?e?"":void 0:(i=a.charCodeAt(u))<55296||i>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):i:e?a.slice(u,u+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(20),o=n(24),i=n(49),s=n(27),a=n(50),u=n(51),l=n(55),c=n(57),f=n(56)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,g,m,v){u(n,t,h);var y,_,b,w=function(e){if(!p&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k="values"==g,C=!1,A=e.prototype,S=A[f]||A["@@iterator"]||g&&A[g],E=S||w(g),T=g?k?w("entries"):E:void 0,D="Array"==t&&A.entries||S;if(D&&(b=c(D.call(new e)))!==Object.prototype&&b.next&&(l(b,x,!0),r||"function"==typeof b[f]||s(b,f,d)),k&&S&&"values"!==S.name&&(C=!0,E=function(){return S.call(this)}),r&&!v||!p&&!C&&A[f]||s(A,f,E),a[t]=E,a[x]=d,g)if(y={values:k?E:w("values"),keys:m?E:w("keys"),entries:T},v)for(_ in y)_ in A||i(A,_,y[_]);else o(o.P+o.F*(p||C),t,y);return y}},function(e,t,n){e.exports=n(27)},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(52),o=n(36),i=n(55),s={};n(27)(s,n(56)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(29),o=n(53),i=n(22),s=n(16)("IE_PROTO"),a=function(){},u=function(){var e,t=n(34)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("