!function(){"use strict";angular.module("myProximus.glp.pointsHistory",[]).constant("PointsHistoryConstants",{FILES:[]})}(); !function(){angular.module("myProximus.glp.pointshistory.templates",[]).run(["$templateCache",function(n){n.put("/pointsHistoryTemplate",'\n
\n \n
\n\n
\n\n \n\n \n\n
\n\n
\n
\n
\n
\n

\n Er zijn momenteel geen details beschikbaar voor de ingegeven periode. Recente transacties zullen binnen de 48 uur ter beschikking komen. Gelieve een andere periode in te geven.\n

\n
\n
\n\n
\n\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n\n
\n
\n
\n \"\"\n
\n\n
\n
\n +{{\'{0} punten\'\n | replacePlaceholders : [historyItem.points] }}\n
\n\n

\n
\n
\n
\n
\n
\n\n
\n\n \n\n \n\n
\n\n \n\n
\n\n \n\n \n\n \n \n \n {{pointsHistory.year}}\n \n\n
\n
\n
\n
\n
\n
\n

\n Er zijn momenteel geen details beschikbaar voor de ingegeven periode. Recente transacties zullen binnen de 48 uur ter beschikking komen. Gelieve een andere periode in te geven.\n

\n
\n
\n
\n\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n\n
\n
\n
\n \"\"\n
\n\n
\n
\n +{{\'{0} punten\'\n | replacePlaceholders : [historyItem.points] }}\n
\n\n

\n
\n
\n
\n\n
\n
\n
\n \n\n \n\n
\n \n\n')}])}(); !function(){"use strict";function t(t,n,e,i,o){return{execute:function(){var r=t.defer(),s={customerId:n.customerId};return e.getEntity(o.pointsHistory_v1,s).subscribe(function(t){i.setPointsHistory(t.value.transactions)},function(){r.reject(!1)},function(){r.resolve(i.data.pointsHistory)}),r.promise}}}commangular.create("GetPointsHistoryCommand",t,{resultKey:"pointsHistory"}),t.$inject=["$q","customerAccount","$entityManager","PointsHistoryService","GlpEntityConfig"]}(); !function(){"use strict";function t(t,n){return{execute:function(){var o=t.defer();return n.getTranslations("myProximus.myAdvantages.pointsHistory.transaction").then(function(t){o.resolve(t)},function(){o.resolve("Failed to load pointsHistory translations")}),o.promise}}}commangular.create("GetPointsHistoryTranslationsCommand",t,{resultKey:"pointsHistoryTranslations"}),t.$inject=["$q","TranslationService"]}(); !function(){"use strict";function t(){var t={restrict:"A",templateUrl:"/pointsHistoryTemplate",controller:i};return t}function i(t,i,o,n,s,a,r){function c(t){function i(t){o.dispatch(a.GET_AWARD_IMAGE.EVENT,{awardId:t.code}).then(function(i){t.imageUrl=i.awardImage.image.sourceLocation})}_.forEach(t,function(t){_.forEach(t.history,function(t){if(!_.isUndefined(t.code)&&!_.isEmpty(t.code))if(t.points>0){var o="myProximus.myAdvantages.pointsHistory.transaction",n="myAdvantages.pointsHistory.transaction."+t.code+".imageUrl";t.imageUrl=r.getTranslation(o,n)}else i(t)})})}t.mpPointsHistoryData={},o.dispatch(s.GET_POINTS_HISTORY.EVENT)["catch"](function(){t.mpPointsHistoryData.componentError=i.error}),t.$watch(function(){return n.data.pointsHistory},function(i,o){!_.isArray(n.data.pointsHistory)&&_.isEqual(i,o)||(t.mpPointsHistoryData.pointsHistory=n.data.pointsHistory,t.mpPointsHistoryData.pointsHistory[0].active=!0,c(t.mpPointsHistoryData.pointsHistory))}),t.selectTab=function(i){var o=t.mpPointsHistoryData.pointsHistory;o=_.forEach(o,function(t,o){t.active=_.isEqual(o,i)}),t.mpPointsHistoryData.pointsHistory=o}}angular.module("myProximus.glp.pointsHistory").directive("mpPointsHistory",t),t.$inject=[],i.$inject=["$scope","$attrs","$commangular","PointsHistoryService","PointsHistoryCommandConfig","AwardCommandConfig","TranslationService"]}(); !function(){"use strict";function t(){function t(t){var n=r(t);i.data.pointsHistory=e(n)}function r(t){var r=["CONFIRMED","CANCELLED"];return _.filter(t,function(t){return _.includes(r,t.status)})}function e(t){var r={},e=new Date,i=e.getFullYear(),n=e.getFullYear();_.forEach(t,function(t){var e=new Date(t.effectiveDateTime),n=e.getFullYear();n