!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue"),require("../../../../common/v1/src")):"function"==typeof def&&def.amd?def("pcs-category-overview-v1",["vue","../../../../common/v1/src"],t):((e=e||self).phw=e.phw||{},e.phw.PcsCategoryOverviewV1=t(e.Vue,e.PcsCommon))}(this,function(p,a){"use strict";p=p&&p.hasOwnProperty("default")?p.default:p,a=a&&a.hasOwnProperty("default")?a.default:a;var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};var g="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function y(o,i,r){(r?Reflect.getOwnMetadataKeys(i,r):Reflect.getOwnMetadataKeys(i)).forEach(function(e){var t=r?Reflect.getOwnMetadata(e,i,r):Reflect.getOwnMetadata(e,i);r?Reflect.defineMetadata(e,t,o,r):Reflect.defineMetadata(e,t,o)})}var u={__proto__:[]}instanceof Array;function f(e){"undefined"!=typeof console&&console.warn("[vue-class-component] "+e)}var v=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function i(e,i){void 0===i&&(i={}),i.name=i.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach(function(t){if("constructor"!==t)if(-1e&&this.setShowMoreInitialStates(this.bindModel.modeOptions&&this.bindModel.modeOptions.viewMoreMode)},O.prototype._updateModeOptions=function(){for(var e in this._defaultModeOptions)this._defaultModeOptions.hasOwnProperty(e)&&!this.bindModel.modeOptions.hasOwnProperty(e)&&(this.bindModel.modeOptions[e]=this._defaultModeOptions[e])},O.prototype.setShowMoreInitialStates=function(e){var t=this.setCategoryCount();this.categoryViewModel=this.categories.slice(0,t),"all"==e?this.hideViewAll=!1:"evenMore"==e?(this.hideViewEvenMore=!1,this.viewEvenMoreCount=!0):"viewNext"==e&&(this.hideViewNext=!1)},O.prototype.setCategoryCount=function(){return this.bindModel.cardsPerRow*this.bindModel.rowCount},O.prototype.viewLess=function(){var t=this;setTimeout(function(){t.setShowMoreInitialStates(t.bindModel.modeOptions.viewMoreMode),t.hideLess=!0,t.isKeyPress=!1,t.$nextTick(function(){var e=t.element&&t.element.querySelector('[data-access="showMore"]');e&&t.focusElement(e,0),e&&e.scrollIntoView()})},150)},O.prototype.viewAll=function(){var t=this,o=this.categoryViewModel.length;this.categoryViewModel=this.categories,this.$nextTick(function(){var e=t.element&&t.element.querySelector('[data-access-list-item="'+o+'"]');e&&t.focusElement(e,0)}),this.hideViewAll=!0,this.hideLess=!1},O.prototype.viewEvenMoreOnKeyup=function(e){return 13===e.keyCode&&(this.isKeyPress=!0,this.isKeyPressEnabled=!0),!0},O.prototype.viewNextOnKeyup=function(e){return 13===e.keyCode&&(this.isKeyPress=!0,this.isKeyPressEnabled=!0),!0},O.prototype.viewLessOnKeyup=function(e){return 13===e.keyCode&&(this.isKeyPress=!0,this.isKeyPressEnabled=!0),!0},O.prototype.viewEvenMore=function(){var o=this;setTimeout(function(){if(o.viewEvenMoreCount)o.viewNext();else if(o.isKeyPress||!o.isKeyPressEnabled){o.isKeyPress=!1;var t=o.categories.length-(o.categories.length-o.categoryViewModel.length);o.$nextTick(function(){var e=o.element&&o.element.querySelector('[data-access-list-item="'+t+'"]');e&&o.focusElement(e,0)}),o.categoryViewModel=o.categories,o.hideViewEvenMore=!0,o.hideLess=!1}},150)},O.prototype.viewNext=function(){var i=this;setTimeout(function(){var e=i.setCategoryCount(),t=i.categoryViewModel.length;i.isKeyPress=!1,setTimeout(function(){var e=i.element&&i.element.querySelector('[data-access-list-item="'+t+'"]');e&&i.focusElement(e,100)},200);var o=i.categories.length-i.categoryViewModel.length;0