403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apache/htdocs/app/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/apache/htdocs/app/public/js/117.js
/*! For license information please see 117.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[117],{2450:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>n});var o=i(3645),r=i.n(o)()((function(t){return t[1]}));r.push([t.id,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}.ps{position:relative}",""]);const n=r},3117:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});const o={navbar_path:{admin:[{title:null,routes:[{icon:"mdi-home",title:"Home",module:"home",route:"/home",sub:null}]},{title:"System Entities",routes:[{icon:"mdi-account-group",title:"User",module:"user",route:"/user/list",sub:null},{icon:"mdi-locker-multiple",title:"Locker",module:"locker",route:"/locker/list",sub:null},{icon:"mdi-cart",title:"Booking History",module:"Booking",route:"/booking-history",sub:null},{icon:"mdi-star-box",title:"Promotion",module:"promotion",route:"/promotion/list",sub:null},{icon:"mdi-message-processing",title:"Boardcast Message",module:"notification",route:"/boardcast/list",sub:null}]},{title:"Settings and Utilities",routes:[{icon:"mdi-box-shadow",title:"Locker Box Type",module:"locker-box-type",route:"/locker-box-type/list",sub:null},{icon:"mdi-file-document-multiple",title:"Report (Coming Soon)",module:"report",sub:null},{icon:"mdi-store",title:"Store",module:"store",namespace:"/credit-item/*",sub:[{title:"Credit Item",route:"/credit-item/list"}]},{icon:"mdi-face-agent",title:"Support",module:"course",namespace:"/support/*",sub:[{title:"About Us",route:"/support/about-us"},{title:"Refund Policy",route:"/support/refund-policy"},{title:"TnC",route:"/support/tnc"},{title:"FAQ",route:"/support/faq"},{title:"Feedback",route:"/support/feedback"}]}]}],role_2:[{title:"General",routes:[{icon:"mdi-home",title:"Home",route:"/home/role_2",module:"home",sub:null}]}]}};var r=i(4943);i(3969);const n={components:{PerfectScrollbar:r.PerfectScrollbar},data:function(){return{title:"Zlock",navIndex:null,isOpen:!1,menu:!1,route_groups:[]}},created:function(){this.getNavRoute()},methods:{getNavRoute:function(){var t="admin";4==this.$auth.user().role_id&&(t="role_2"),this.route_groups=o.navbar_path[t]},toggleDarkMode:function(){this.$vuetify.theme.dark=!this.$vuetify.theme.dark,localStorage.setItem("dark-theme",this.$vuetify.theme.dark)},toUseProfile:function(){this.menu=!1,this.$router.push("/my/profile")},logout:function(){this.$auth.logout({makeRequest:!0,data:{},redirect:"/login"})}}};var l=i(1900);const s={components:{Navbar:(0,l.Z)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("v-app-bar",{staticClass:"elevation-1",attrs:{app:"",height:"60",flat:"",color:"secondary"}},[t.isOpen?t._e():[i("v-app-bar-nav-icon",{on:{click:function(e){t.isOpen=!t.isOpen}}}),t._v(" "),i("v-toolbar-title",[i("span",{staticClass:"font-weight-bold",staticStyle:{"letter-spacing":"2px","font-size":"large"}},[t._v(t._s(t.title))])])],t._v(" "),i("v-spacer"),t._v(" "),i("div",[i("v-menu",{attrs:{left:"",bottom:"","nudge-bottom":"25","max-width":"300px","min-width":"250px","close-on-content-click":!1},scopedSlots:t._u([{key:"activator",fn:function(e){var o=e.on,r=e.attrs;return[i("div",t._g(t._b({staticClass:"no-highlight"},"div",r,!1),o),[i("v-avatar",{staticClass:"text-capitalize accent-3 title white--text",attrs:{color:"info",size:"30"}},[t.$auth.user().full_name?i("span",{staticStyle:{"font-size":"15px"}},[t._v(t._s(t.$auth.user().full_name[0]))]):t._e()]),t._v(" "),i("v-icon",{attrs:{size:"20"}},[t._v("mdi-chevron-down")])],1)]}}]),model:{value:t.menu,callback:function(e){t.menu=e},expression:"menu"}},[t._v(" "),i("v-list",{staticClass:"pt-0",attrs:{dense:""}},[i("v-list-item",[i("v-row",{staticClass:"py-4",attrs:{dense:"",justify:"start",align:"center"}},[i("v-col",{attrs:{cols:"auto"}},[i("v-avatar",{staticClass:"text-capitalize accent-3 mx-1 title white--text",attrs:{color:"info",size:"45"}},[t.$auth.user().full_name?i("span",{staticStyle:{"font-size":"23px"}},[t._v(t._s(t.$auth.user().full_name[0]))]):t._e()])],1),t._v(" "),i("v-col",{staticClass:"text-left",attrs:{cols:"8"}},[i("div",{staticClass:"body-2 no-word-wrap"},[t._v(t._s(t.$auth.user().full_name))]),t._v(" "),i("div",[i("div",{staticClass:"grey--text caption"},[t._v(t._s(t.$auth.user().email||"N/A"))])])])],1)],1),t._v(" "),i("v-divider"),t._v(" "),i("v-subheader",[t._v("Options")]),t._v(" "),i("v-list-item",{on:{click:function(e){return t.toggleDarkMode()}}},[i("v-list-item-icon",{staticClass:"mr-2"},[i("v-icon",{attrs:{size:"16"}},[t._v(t._s(t.$vuetify.theme.dark?"mdi-moon-waxing-crescent":"mdi-white-balance-sunny"))])],1),t._v(" "),i("v-list-item-content",{staticClass:"body-2"},[t._v("\n\t\t\t\t\t\t\tAppearance: "+t._s(t.$vuetify.theme.dark?"Dark":"Light")+"\n\t\t\t\t\t\t")])],1),t._v(" "),i("v-list-item",{on:{click:function(e){return t.toUseProfile()}}},[i("v-list-item-icon",{staticClass:"mr-2"},[i("v-icon",{attrs:{size:"16"}},[t._v("mdi-card-account-details")])],1),t._v(" "),i("v-list-item-content",{staticClass:"body-2"},[t._v("Manage Your Account")])],1),t._v(" "),i("v-list-item",{on:{click:function(e){return t.logout()}}},[i("v-list-item-icon",{staticClass:"mr-2"},[i("v-icon",{staticClass:"error--text",attrs:{size:"16"}},[t._v("mdi-logout")])],1),t._v(" "),i("v-list-item-content",{staticClass:"error--text body-2"},[t._v("Log Out")])],1)],1)],1)],1)],2),t._v(" "),i("v-navigation-drawer",{staticClass:"elevation-1",attrs:{app:"",temporary:"",floating:"",color:"secondary"},scopedSlots:t._u([{key:"append",fn:function(){return[i("div",{staticClass:"pa-4 caption text-center",staticStyle:{width:"100%"}},[i("a",{staticClass:"text-decoration-none opposite--text",attrs:{href:"https://advisoryapps.com"}},[t._v("Powered by "),i("strong",[t._v("AdvisoryApps")])])])]},proxy:!0}]),model:{value:t.isOpen,callback:function(e){t.isOpen=e},expression:"isOpen"}},[i("perfect-scrollbar",{ref:"scroll",staticStyle:{height:"100%"}},[i("v-row",{staticClass:"ma-0",attrs:{align:"center"}},[i("v-col",{attrs:{cols:"auto"}},[i("v-app-bar-nav-icon",{on:{click:function(e){t.isOpen=!t.isOpen}}})],1),t._v(" "),i("v-col",{staticClass:"text-center"},[i("span",{staticClass:"font-weight-bold",staticStyle:{"letter-spacing":"2px","font-size":"large"}},[t._v(t._s(t.title))])]),t._v(" "),i("v-spacer")],1),t._v(" "),i("v-divider"),t._v(" "),t._l(t.route_groups,(function(e,o){return i("v-list",{key:o,staticClass:"py-0",attrs:{dense:"",flat:""}},[null!=e.title?i("v-subheader",[t._v("\n\t\t\t\t\t"+t._s(e.title)+"\n\t\t\t\t")]):t._e(),t._v(" "),t._l(e.routes,(function(e){return[e.sub?[i("v-list-group",{key:e.title,attrs:{group:e.namespace,"prepend-icon":e.icon,"append-icon":"mdi-menu-down",color:"primary","no-action":""},scopedSlots:t._u([{key:"activator",fn:function(){return[i("v-list-item-content",[i("v-list-item-title",[t._v(t._s(e.title))])],1)]},proxy:!0}],null,!0),model:{value:e.test,callback:function(i){t.$set(e,"test",i)},expression:"item.test"}},[t._v(" "),t._l(e.sub,(function(e){return i("v-list-item",{key:e.title,attrs:{to:e.route}},[i("v-list-item-title",[t._v(t._s(e.title))])],1)}))],2)]:i("v-list-item",{key:e.title,attrs:{to:e.route,color:"primary"}},[i("v-list-item-icon",[i("v-icon",[t._v(t._s(e.icon))])],1),t._v(" "),i("v-list-item-title",[t._v(t._s(e.title))])],1)]}))],2)}))],2)],1)],1)}),[],!1,null,null,null).exports},data:function(){return{}},created:function(){},methods:{}};const a=(0,l.Z)(s,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("Navbar"),t._v(" "),i("v-container",{attrs:{fluid:""}},[i("transition",{attrs:{name:"slide-fade"}},[i("keep-alive",[t.$route.meta.keepAlive?i("router-view"):t._e()],1)],1),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[t.$route.meta.keepAlive?t._e():i("router-view")],1)],1)],1)}),[],!1,null,null,null).exports},3969:(t,e,i)=>{var o=i(2450);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);(0,i(5346).Z)("0036eb64",o,!0,{})},4943:function(t,e){!function(t){"use strict";function e(t){return getComputedStyle(t)}function i(t,e){for(var i in e){var o=e[i];"number"==typeof o&&(o+="px"),t.style[i]=o}return t}function o(t){var e=document.createElement("div");return e.className=t,e}var r="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function n(t,e){if(!r)throw new Error("No element matching method supported");return r.call(t,e)}function l(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function s(t,e){return Array.prototype.filter.call(t.children,(function(t){return n(t,e)}))}var a={main:"ps",rtl:"ps__rtl",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},c={x:null,y:null};function u(t,e){var i=t.element.classList,o=a.state.scrolling(e);i.contains(o)?clearTimeout(c[e]):i.add(o)}function h(t,e){c[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(a.state.scrolling(e))}),t.settings.scrollingThreshold)}function p(t,e){u(t,e),h(t,e)}var d=function(t){this.element=t,this.handlers={}},f={isEmpty:{configurable:!0}};d.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},d.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter((function(o){return!(!e||o===e)||(i.element.removeEventListener(t,o,!1),!1)}))},d.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},f.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(d.prototype,f);var v=function(){this.eventElements=[]};function m(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function b(t,e,i,o,r){var n;if(void 0===o&&(o=!0),void 0===r&&(r=!1),"top"===e)n=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");n=["contentWidth","containerWidth","scrollLeft","x","left","right"]}g(t,i,n,o,r)}function g(t,e,i,o,r){var n=i[0],l=i[1],s=i[2],a=i[3],c=i[4],u=i[5];void 0===o&&(o=!0),void 0===r&&(r=!1);var h=t.element;t.reach[a]=null,h[s]<1&&(t.reach[a]="start"),h[s]>t[n]-t[l]-1&&(t.reach[a]="end"),e&&(h.dispatchEvent(m("ps-scroll-"+a)),e<0?h.dispatchEvent(m("ps-scroll-"+c)):e>0&&h.dispatchEvent(m("ps-scroll-"+u)),o&&p(t,a)),t.reach[a]&&(e||r)&&h.dispatchEvent(m("ps-"+a+"-reach-"+t.reach[a]))}function _(t){return parseInt(t,10)||0}function y(t){return n(t,"input,[contenteditable]")||n(t,"select,[contenteditable]")||n(t,"textarea,[contenteditable]")||n(t,"button,[contenteditable]")}function w(t){var i=e(t);return _(i.width)+_(i.paddingLeft)+_(i.paddingRight)+_(i.borderLeftWidth)+_(i.borderRightWidth)}v.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new d(t),this.eventElements.push(e)),e},v.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},v.prototype.unbind=function(t,e,i){var o=this.eventElement(t);o.unbind(e,i),o.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(o),1)},v.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},v.prototype.once=function(t,e,i){var o=this.eventElement(t),r=function(t){o.unbind(e,r),i(t)};o.bind(e,r)};var Y={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function X(t){var e=t.element,i=Math.floor(e.scrollTop),o=e.getBoundingClientRect();t.containerWidth=Math.ceil(o.width),t.containerHeight=Math.ceil(o.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(s(e,a.element.rail("x")).forEach((function(t){return l(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(s(e,a.element.rail("y")).forEach((function(t){return l(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=x(t,_(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=_((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=x(t,_(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=_(i*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),k(e,t),t.scrollbarXActive?e.classList.add(a.state.active("x")):(e.classList.remove(a.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(a.state.active("y")):(e.classList.remove(a.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function x(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function k(t,e){var o={width:e.railXWidth},r=Math.floor(t.scrollTop);e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:o.left=t.scrollLeft,e.isScrollbarXUsingBottom?o.bottom=e.scrollbarXBottom-r:o.top=e.scrollbarXTop+r,i(e.scrollbarXRail,o);var n={top:r,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?n.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:n.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?n.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:n.left=e.scrollbarYLeft+t.scrollLeft,i(e.scrollbarYRail,n),i(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),i(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function W(t){t.element,t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,X(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,X(t),e.stopPropagation()}))}function L(t){S(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),S(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function S(t,e){var i=e[0],o=e[1],r=e[2],n=e[3],l=e[4],s=e[5],c=e[6],p=e[7],d=e[8],f=t.element,v=null,m=null,b=null;function g(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),f[c]=v+b*(e[r]-m),u(t,p),X(t),e.stopPropagation(),e.preventDefault()}function _(){h(t,p),t[d].classList.remove(a.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",g)}function y(e,l){v=f[c],l&&e.touches&&(e[r]=e.touches[0].pageY),m=e[r],b=(t[o]-t[i])/(t[n]-t[s]),l?t.event.bind(t.ownerDocument,"touchmove",g):(t.event.bind(t.ownerDocument,"mousemove",g),t.event.once(t.ownerDocument,"mouseup",_),e.preventDefault()),t[d].classList.add(a.state.clicking),e.stopPropagation()}t.event.bind(t[l],"mousedown",(function(t){y(t)})),t.event.bind(t[l],"touchstart",(function(t){y(t,!0)}))}function R(t){var e=t.element,i=function(){return n(e,":hover")},o=function(){return n(t.scrollbarX,":focus")||n(t.scrollbarY,":focus")};function r(i,o){var r=Math.floor(e.scrollTop);if(0===i){if(!t.scrollbarYActive)return!1;if(0===r&&o>0||r>=t.contentHeight-t.containerHeight&&o<0)return!t.settings.wheelPropagation}var n=e.scrollLeft;if(0===o){if(!t.scrollbarXActive)return!1;if(0===n&&i<0||n>=t.contentWidth-t.containerWidth&&i>0)return!t.settings.wheelPropagation}return!0}t.event.bind(t.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(i()||o())){var l=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(l){if("IFRAME"===l.tagName)l=l.contentDocument.activeElement;else for(;l.shadowRoot;)l=l.shadowRoot.activeElement;if(y(l))return}var s=0,a=0;switch(n.which){case 37:s=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:a=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:s=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:a=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:a=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=s,X(t),r(s,a)&&n.preventDefault())}}))}function T(t){var i=t.element;function o(e,o){var r=Math.floor(i.scrollTop),n=0===i.scrollTop,l=r+i.offsetHeight===i.scrollHeight,s=0===i.scrollLeft,a=i.scrollLeft+i.offsetWidth===i.scrollWidth;return!(Math.abs(o)>Math.abs(e)?n||l:s||a)||!t.settings.wheelPropagation}function r(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!=e&&i!=i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}function n(t,o,r){if(!Y.isWebKit&&i.querySelector("select:focus"))return!0;if(!i.contains(t))return!1;for(var n=t;n&&n!==i;){if(n.classList.contains(a.element.consuming))return!0;var l=e(n);if(r&&l.overflowY.match(/(scroll|auto)/)){var s=n.scrollHeight-n.clientHeight;if(s>0&&(n.scrollTop>0&&r<0||n.scrollTop<s&&r>0))return!0}if(o&&l.overflowX.match(/(scroll|auto)/)){var c=n.scrollWidth-n.clientWidth;if(c>0&&(n.scrollLeft>0&&o<0||n.scrollLeft<c&&o>0))return!0}n=n.parentNode}return!1}function l(e){var l=r(e),s=l[0],a=l[1];if(!n(e.target,s,a)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(a?i.scrollTop-=a*t.settings.wheelSpeed:i.scrollTop+=s*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(s?i.scrollLeft+=s*t.settings.wheelSpeed:i.scrollLeft-=a*t.settings.wheelSpeed,c=!0):(i.scrollTop-=a*t.settings.wheelSpeed,i.scrollLeft+=s*t.settings.wheelSpeed),X(t),(c=c||o(s,a))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}void 0!==window.onwheel?t.event.bind(i,"wheel",l):void 0!==window.onmousewheel&&t.event.bind(i,"mousewheel",l)}function H(t){if(Y.supportsTouch||Y.supportsIePointer){var i=t.element,o={},r=0,n={},l=null;Y.supportsTouch?(t.event.bind(i,"touchstart",p),t.event.bind(i,"touchmove",f),t.event.bind(i,"touchend",v)):Y.supportsIePointer&&(window.PointerEvent?(t.event.bind(i,"pointerdown",p),t.event.bind(i,"pointermove",f),t.event.bind(i,"pointerup",v)):window.MSPointerEvent&&(t.event.bind(i,"MSPointerDown",p),t.event.bind(i,"MSPointerMove",f),t.event.bind(i,"MSPointerUp",v)))}function s(e,o){var r=Math.floor(i.scrollTop),n=i.scrollLeft,l=Math.abs(e),s=Math.abs(o);if(s>l){if(o<0&&r===t.contentHeight-t.containerHeight||o>0&&0===r)return 0===window.scrollY&&o>0&&Y.isChrome}else if(l>s&&(e<0&&n===t.contentWidth-t.containerWidth||e>0&&0===n))return!0;return!0}function c(e,o){i.scrollTop-=o,i.scrollLeft-=e,X(t)}function u(t){return t.targetTouches?t.targetTouches[0]:t}function h(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function p(t){if(h(t)){var e=u(t);o.pageX=e.pageX,o.pageY=e.pageY,r=(new Date).getTime(),null!==l&&clearInterval(l)}}function d(t,o,r){if(!i.contains(t))return!1;for(var n=t;n&&n!==i;){if(n.classList.contains(a.element.consuming))return!0;var l=e(n);if(r&&l.overflowY.match(/(scroll|auto)/)){var s=n.scrollHeight-n.clientHeight;if(s>0&&(n.scrollTop>0&&r<0||n.scrollTop<s&&r>0))return!0}if(o&&l.overflowX.match(/(scroll|auto)/)){var c=n.scrollWidth-n.clientWidth;if(c>0&&(n.scrollLeft>0&&o<0||n.scrollLeft<c&&o>0))return!0}n=n.parentNode}return!1}function f(t){if(h(t)){var e=u(t),i={pageX:e.pageX,pageY:e.pageY},l=i.pageX-o.pageX,a=i.pageY-o.pageY;if(d(t.target,l,a))return;c(l,a),o=i;var p=(new Date).getTime(),f=p-r;f>0&&(n.x=l/f,n.y=a/f,r=p),s(l,a)&&t.preventDefault()}}function v(){t.settings.swipeEasing&&(clearInterval(l),l=setInterval((function(){t.isInitialized?clearInterval(l):n.x||n.y?Math.abs(n.x)<.01&&Math.abs(n.y)<.01?clearInterval(l):(c(30*n.x,30*n.y),n.x*=.8,n.y*=.8):clearInterval(l)}),10))}}var E=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},C={"click-rail":W,"drag-thumb":L,keyboard:R,wheel:T,touch:H},A=function(t,r){var n=this,l=this;if(void 0===r&&(r={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=t,t.classList.add(a.main),this.settings=E(),r)n.settings[s]=r[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var c,u,h=function(){return t.classList.add(a.state.focus)},p=function(){return t.classList.remove(a.state.focus)};this.isRtl="rtl"===e(t).direction,!0===this.isRtl&&t.classList.add(a.rtl),this.isNegativeScroll=(c=t.scrollLeft,u=null,t.scrollLeft=-1,u=t.scrollLeft<0,t.scrollLeft=c,u),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new v,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=o(a.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=o(a.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",h),this.event.bind(this.scrollbarX,"blur",p),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var d=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(d.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=_(d.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=_(d.borderLeftWidth)+_(d.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=_(d.marginLeft)+_(d.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(a.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=o(a.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",h),this.event.bind(this.scrollbarY,"blur",p),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var f=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(f.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=_(f.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?w(this.scrollbarY):null,this.railBorderYWidth=_(f.borderTopWidth)+_(f.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=_(f.marginTop)+_(f.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return C[t](l)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return l.onScroll(t)})),X(this)};A.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=_(e(this.scrollbarXRail).marginLeft)+_(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=_(e(this.scrollbarYRail).marginTop)+_(e(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),X(this),b(this,"top",0,!1,!0),b(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},A.prototype.onScroll=function(t){this.isAlive&&(X(this),b(this,"top",this.element.scrollTop-this.lastScrollTop),b(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},A.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},A.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")};var M={name:"PerfectScrollbar",props:{options:{type:Object,required:!1,default:function(){}},tag:{type:String,required:!1,default:"div"},watchOptions:{type:Boolean,required:!1,default:!1}},data:function(){return{ps:null}},watch:{watchOptions:function(t){!t&&this.watcher?this.watcher():this.createWatcher()}},mounted:function(){this.create(),this.watchOptions&&this.createWatcher()},updated:function(){var t=this;this.$nextTick((function(){t.update()}))},beforeDestroy:function(){this.destroy()},methods:{create:function(){this.ps&&this.$isServer||(this.ps=new A(this.$refs.container,this.options))},createWatcher:function(){var t=this;this.watcher=this.$watch("options",(function(){t.destroy(),t.create()}),{deep:!0})},update:function(){this.ps&&this.ps.update()},destroy:function(){this.ps&&(this.ps.destroy(),this.ps=null)}},render:function(t){return t(this.tag,{ref:"container",class:"ps",on:this.$listeners},this.$slots.default)}};function P(t,e){e&&(e.name&&"string"==typeof e.name&&(M.name=e.name),e.options&&"object"==typeof e.options&&(M.props.options.default=function(){return e.options}),e.tag&&"string"==typeof e.tag&&(M.props.tag.default=e.tag),e.watchOptions&&"boolean"==typeof e.watchOptions&&(M.props.watchOptions=e.watchOptions)),t.component(M.name,M)}t.install=P,t.PerfectScrollbar=M,t.default=P,Object.defineProperty(t,"__esModule",{value:!0})}(e)}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit