!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-px-container-v1",["vue","../../../../common/v1/src"],t):((e=e||self).phw=e.phw||{},e.phw.PcsPxContainerV1=t(e.Vue,e.PcsCommon))}(this,function(h,l){"use strict";h=h&&h.hasOwnProperty("default")?h.default:h,l=l&&l.hasOwnProperty("default")?l.default:l;var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)};var r=function(){return(r=Object.assign||function(e){for(var t,i=1,o=arguments.length;is?(i.isSlider=!0,i.sliderOptions.slidesToShow=s,i.sliderOptions.slidesToScroll=s,a.alterSettingsObj(i.sliderOptions,s)):(i.isSlider=!1,i.maxDisplayCount=s)}var n=l.PhenomAppManager.getPageName();"stranger"!==a.pageState&&"job"===n&&(a.sliderOptions.slidesToShow=1,a.sliderOptions.responsive.forEach(function(e){e.settings.slidesToShow=1})),i.isCategoryImageEnabled=o.isCategoryImageEnabled,d++,a.widgetActiveTabList.push(i)}if(a.isUserOptedForRecommendations||!a.isApwTeaserEnabled)a.wdgtResponses.push(i),a.showContainer();else{a.tempWdgtResps.push(i);var r={wdtReqFields:a.wdtReqFields,content:a.block1,pageState:a.pageState,ignoreSlider:a.ignoreSlider,wdgtResponses:a.tempWdgtResps,widgetSettings:a.widgetSettings,type:a.widgetConfigMode};a.isLoggedIn&&(r.isLoggedIn=a.isLoggedIn),a.publishEvent("ph:apwTeaserData",r),a.hideContainer()}}),this.ignoreSlider&&this.widgetActiveTabList[0]&&this.widgetActiveTabList[0].type&&this.activateWidgetTab(this.widgetActiveTabList[0].type),this.$forceUpdate(),this.ignoreSlider&&1this.jobTilesHeight[t+1]?this.jobTilesHeight[t+1]=this.jobTilesHeight[t]:this.jobTilesHeight[t]=this.jobTilesHeight[t+1];this.publishEvent("ph:jobWidgetTileHeightList",this.jobTilesHeight)}},Ie.prototype.handleTrackEvent=function(){var i=this,o=0,s=[];if(Object.keys(this.wdgtCtx).forEach(function(e){var t=i.wdgtCtx[e];t&&t.widgetResponse&&(s.push(e),o++)}),o){var e={widgetsLoaded:s};this.trackWidgetClick(_e,e)}},Ie.prototype.sortWidgets=function(e,t){},Ie.prototype.handleJobWidgetTrackEvent=function(e,t,i,o){var s=[];e.forEach(function(e){s.push(e.jobSeqNo)});var n={jobSeqNos:s,widgetId:i,widgetName:o,eid:t};this.trackWidgetClick("px_aud_widget_loaded",n)},Ie.prototype.handleSecondaryBrandColor=function(){var e=getComputedStyle(document.documentElement);if(e){var t=e.getPropertyValue("--brand-color-secondary");-1!==["#FFFFFF","#FFF","#ffffff","#fff"].indexOf(t)&&(this.isSecondaryColorWhite=!0)}},e([s()],Ie.prototype,"widgetConfigMode",void 0),e([s()],Ie.prototype,"ignoreWidgetTitle",void 0),e([s()],Ie.prototype,"ignoreSlider",void 0),e([s()],Ie.prototype,"singleColumnEnabled",void 0),e([s()],Ie.prototype,"isApwTeaserEnabled",void 0),Ie=e([t({name:qe})],Ie))}}); //# sourceMappingURL=pcs-px-container-v1.js.map