!function(){"use strict";angular.module("myProximus.glp.orderHistory",[]).constant("OrderHistoryConstants",{FILES:[]})}();
!function(){"use strict";function e(e,r,t,n,o){return{execute:function(){var i=e.defer(),d={customerId:r.customerId};return t.getEntity(o.orderHistory_v1,d).subscribe(function(e){_.isUndefined(e.value)||_.isUndefined(e.value._embedded)||n.setOrderHistory(e.value._embedded["ol:orders"])},function(e){i.reject(e)},function(){i.resolve(n.data.orderHistory)}),i.promise}}}commangular.create("GetOrderHistoryCommand",e,{resultKey:"orderHistory"}),e.$inject=["$q","customerAccount","$entityManager","OrderHistoryService","GlpEntityConfig"]}();
!function(){"use strict";function e(e,r,t){return{execute:function(){var i=e.defer(),n=t.getOrderById(r);return _.isEmpty(n)?i.reject(!1):i.resolve(n),i.promise}}}commangular.create("GetOrderHistoryDetailCommand",e,{resultKey:"order"}),e.$inject=["$q","groupOrderId","OrderHistoryService"]}();
!function(){"use strict";function r(){var r={restrict:"A",controller:t,templateUrl:"/orderHistoryTemplate"};return r}function t(r,t,o,e,a,i){o.mpOrderHistoryData={hasNoOrders:!1,orders:[]},e.dispatch(i.GET_ORDER_HISTORY.EVENT)["catch"](function(){o.mpOrderHistoryData.componentError=t.error}),o.$watch(function(){return a.data.orderHistory},function(){_.isUndefined(a.data.orderHistory)||(o.mpOrderHistoryData.orders=a.data.orderHistory,o.mpOrderHistoryData.hasNoOrders=_.isEmpty(a.data.orderHistory),r.$broadcast("reLazyLoad"))})}angular.module("myProximus.glp.orderHistory").directive("mpOrderHistory",r),r.$inject=[],t.$inject=["$rootScope","$attrs","$scope","$commangular","OrderHistoryService","OrderHistoryCommandConfig"]}();
!function(){"use strict";function r(){var r={restrict:"A",controller:e,templateUrl:"/orderHistoryAwardTemplate",scope:{order:"=order"}};return r}function e(r,e,a){function s(){var e=r.mpOrderHistoryAwardData.awardType;return!_.isUndefined(e)&&e.hasMobileNumber&&r.order.serviceNumber}function o(r){var e="",t=r.personDetails;return _.isUndefined(t)||(e=d(e,"",t.firstName," "),e=d(e,"",t.lastName,"
"),e=d(e,"",t.street,""),e=d(e,", ",t.houseNumber,""),e=d(e,"
",t.postcode," "),e=d(e,"",t.city,"")),e}function d(r,e,t,a){return r+e+t+a}function i(r){if(!_.isUndefined(r.calculatedType))return t[r.calculatedType.toUpperCase()]}function n(e){var t=_.flatten(_.toArray(e)),a=_.indexOf(t,r.mpOrderHistoryAwardData.order.statusCode);r.mpOrderHistoryAwardData.order.isClosed=a>=0}function u(r){var t="myAdvantages.orderHistory.award.status."+r.statusCode,a="myProximus.myAdvantages.orderHistory.award.status",s=e.getTranslation(a,t);return s}function p(r){var e="";return _.each(r,function(r){e=e+r+"
"}),e}r.mpOrderHistoryAwardData={hasNoOrders:!0,order:r.order,awardType:i(r.order),getDeliveryAddress:o,awardStatuses:{},status:void 0,statusText:u(r.order),onePerLine:p,showMobileNumber:s,setClosedStatus:n,formattedMobileNumber:void 0},r.getAwardType=i,s()&&(r.mpOrderHistoryAwardData.formattedMobileNumber=a.format(r.order.serviceNumber))}var t={BELGACOM_MOBILE_FREE_MINUTES:{hasQuantity:!0,hasMobileNumber:!0,hasOrderDate:!0,hasStatus:!0,progressBarType:"twoSteps"},BELGACOM_FIXED_FREE_MINUTES:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,progressBarType:"twoSteps"},PS_PREPAID:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,hasDeliveryAddress:!0,progressBarType:"threeSteps"},EVOUCHER:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,hasEmailAddress:!0,hasCode:!0,hasSerialNumber:!0,hasPassword:!0,hasInfoLinks:!0,progressBarType:"threeSteps"},DELIVERY:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,hasDeliveryAddress:!0,progressBarType:"fourSteps"},BELGACOM_DIGITAL_TV:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,hasTelevisionLine:!0,progressBarType:"twoSteps"},PARTNER_AWARDS:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,progressBarType:"twoSteps"},MILES_AND_MORE:{hasQuantity:!0,hasOrderDate:!0,hasStatus:!0,hasMilesAndMoreId:!0,progressBarType:"twoSteps"}};t.PS_POSTPAID=t.BELGACOM_MOBILE_FREE_MINUTES,t.TICKET_VOUCHERS=t.PS_PREPAID,t.PARTNER=t.PARTNER_AWARDS,angular.module("myProximus.glp.orderHistory").directive("mpOrderHistoryAward",r),r.$inject=[],e.$inject=["$scope","TranslationService","MsisdnFormatter"]}();
!function(){angular.module("myProximus.glp.orderhistory.templates",[]).run(["$templateCache",function(r){r.put("/orderHistoryTemplate",'
Mijn laatste bestellingen
\r\n\r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n
Er waren de afgelopen 3 maanden geen bestellingen
\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n
\r\n\r\n\r\n\r'),r.put("/orderHistoryAwardTemplate",'\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Aantal:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Gsm-nummer:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n TV-abonnement:\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n Miles & More ID:\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n Leveringsadres:\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n Dhr.\r\n \r\n \r\n Mevr/Juf\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Code:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Serienummer:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Webcode:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n E-mail:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Besteldatum\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Vervaldatum:\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n Status:\r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n Leveringsinfo:\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
RHE391
\r\n
RHE391,NGR102,BSG101,SAP104
\r\n
SAP104,SAP105,BSG101
\r\n
\r\n
\r\n\r\n'),r.put("/orderHistoryDetailTemplate",'\r\n \r\n\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {{mpOrderHistoryDetailData.title}}\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n
Code {{$index+1}}
\r\n
\r\n
\r\n
\r\n Code: {{eCode}}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n Vervaldatum:\r\n {{mpOrderHistoryDetailData.expiryDate | date:\'dd/MM/yyyy\'}}\r\n
\r\n
\r\n Webcode: {{mpOrderHistoryDetailData.serialNumber[$index]}}\r\n
\r\n
\r\n Webcode: {{mpOrderHistoryDetailData.passCode[$index]}}\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
Hoe kunt u genieten van uw cadeau?
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n © Proximus. Alle rechten voorbehouden.\r\n
\r\n
\r\n
\r\n
\r\n\r\n'),r.put("/orderHistoryItemProgressTemplate",'\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n\r\n{{data}}\r\n\r\n \r\n
RHE001,RHE180,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE230,RHE231,RHE232,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,RHE331,RHE332,RHE340,RHE341,RHE342,RHE350,RHE351,RHE352,RHE360,RHE361,RHE362,RHE370,RHE371,RHE372,RHE380,RHE391
\r\n
\r\n
\r\n
RHE391
\r\n
RHE001,RHE180,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE230,RHE231,RHE232,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,RHE331,RHE332,RHE340,RHE341,RHE342,RHE350,RHE351,RHE352,RHE360,RHE361,RHE362,RHE370,RHE371,RHE372,RHE380
\r\n
\r\n
\r\n\r\n \r\n
SAP133,OCT101,SAP102,NGR101,RHE391,NGR102,BSG101,SAP104
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP101
\r\n
\r\n
RHE391,NGR102,BSG101,SAP104
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP101,SAP133,OCT101,NGR101
\r\n
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP101,SAP133,OCT101,SAP102,NGR101,RHE391,NGR102,BSG101,SAP104
\r\n
\r\n
\r\n
\r\n\r\n \r\n
SAP102,SAP103,SAP106,SAP107,SAP108,SAP109,SAP110,SAP111,SAP112,SAP113,SAP114,SAP115,SAP116,SAP117,SAP118,SAP119,SAP120,SAP121,SAP122,SAP123,SAP124,SAP125,SAP126,SAP127,SAP128,SAP104,SAP105,BSG101
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP133,SAP101
\r\n
\r\n
SAP104,SAP105,BSG101
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP133,SAP101,SAP102,SAP103,SAP106,SAP107,SAP108,SAP109,SAP110,SAP111,SAP112,SAP113,SAP114,SAP115,SAP116,SAP117,SAP118,SAP119,SAP120,SAP121,SAP122,SAP123,SAP124,SAP125,SAP126,SAP127,SAP128
\r\n
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390,SAP133,SAP101,SAP102,SAP103,SAP106,SAP107,SAP108,SAP109,SAP110,SAP111,SAP112,SAP113,SAP114,SAP115,SAP116,SAP117,SAP118,SAP119,SAP120,SAP121,SAP122,SAP123,SAP124,SAP125,SAP126,SAP127,SAP128,SAP104,SAP105,BSG101
\r\n
\r\n
\r\n
SAP133,SAP101,SAP102,SAP103,SAP106,SAP107,SAP108,SAP109,SAP110,SAP111,SAP112,SAP113,SAP114,SAP115,SAP116,SAP117,SAP118,SAP119,SAP120,SAP121,SAP122,SAP123,SAP124,SAP125,SAP126,SAP127,SAP128,SAP104,SAP105,BSG101
\r\n
RHE001,RHE190,RHE201,RHE210,RHE211,RHE212,RHE220,RHE221,RHE222,RHE240,RHE241,RHE242,RHE280,RHE290,RHE301,RHE310,RHE311,RHE312,RHE320,RHE321,RHE322,RHE330,R,E331,RHE332,RHE340,RHE341,RHE342,RHE360,RHE361,RHE362,RHE380,RHE390
\r\n
\r\n
\r\n\r\n'),r.put("/orderHistoryItemProgressStepTemplate",'\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n \r\n \r\n\r\n
\r\n
\r\n Bestelling wordt verwerkt\r\n
\r\n
\r\n Bestelling wordt verwerkt\r\n
\r\n
\r\n Bestelling wordt verwerkt\r\n
\r\n
\r\n\r\n
\r\n
\r\n Bestelling is klaar voor verzending \r\n
\r\n
\r\n Bestelling is klaar voor verzending\r\n
\r\n
\r\n Bestelling is klaar voor verzending \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n Levering is bezig\r\n
\r\n
\r\n Livraison en cours\r\n
\r\n
\r\n Levering is bezig\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n Uitgevoerd\r\n
\r\n
\r\n Uitgevoerd\r\n
\r\n
\r\n Uitgevoerd\r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n
http://track.bpost.be/etr/light/performSearch.do?searchByItemCode=true&itemCodes=3232999525{sapDeliveryId}1040&oss_language=NL
\r\n
\r\n\r\n');
}])}();
!function(){"use strict";function r(){var r={restrict:"A",controller:e,templateUrl:"/orderHistoryDetailTemplate"};return r}function e(r,e,t,i,o,a,n){function d(){return o.isMyProximusMobileAppV1()||o.isMyProximusMobileAppV2()}r.mpOrderHistoryDetailData={isMobileView:d()},i.dispatch(a.GET_ORDER_HISTORY_DETAIL.EVENT,{groupOrderId:t.groupOrderId}).then(function(e){r.mpOrderHistoryDetailData=e.order,n.setBreadcrumbDynamicObject({title:e.order.title,stateDetail:{groupOrderId:e.order.groupOrderId}},"orderHistoryDetail")},function(){r.mpOrderHistoryDetailData.componentError=e.error})}angular.module("myProximus.glp.orderHistory").directive("mpOrderHistoryDetail",r),r.$inject=[],e.$inject=["$scope","$attrs","$stateParams","$commangular","$environment","OrderHistoryCommandConfig","BreadcrumbService"]}();
!function(){"use strict";function e(){var e={restrict:"A",scope:{order:"=",awardType:"="},controller:r,templateUrl:"/orderHistoryItemProgressTemplate"};return e}function r(e){function r(r){e.mpOrderHistoryItemProgressData.awardStatuses.twoSteps=r}function t(r){e.mpOrderHistoryItemProgressData.awardStatuses.threeSteps=r}function s(r){e.mpOrderHistoryItemProgressData.awardStatuses.fourSteps=r}function o(e,r){var t=!1;return _.each(e,function(e){_.includes(e,r)&&(t=!0)}),t}e.mpOrderHistoryItemProgressData={order:e.order,awardType:e.awardType,awardStatuses:{twoSteps:void 0,threeSteps:void 0,fourSteps:void 0},setAwardStatusesTwoSteps:r,setAwardStatusesThreeSteps:t,setAwardStatusesFourSteps:s,isStatusDefined:o}}angular.module("myProximus.glp.orderHistory").directive("mpOrderHistoryItemProgress",e),e.$inject=[],r.$inject=["$scope"]}();
!function(){"use strict";function e(){var e={restrict:"A",scope:{order:"=",stepType:"=",doneStatuses:"=",ongoingStatuses:"=",waitingStatuses:"="},controller:r,templateUrl:"/orderHistoryItemProgressStepTemplate"};return e}function r(e){function r(){return _.includes(e.doneStatuses,e.order.statusCode)?"done":_.includes(e.ongoingStatuses,e.order.statusCode)?"ongoing":"waiting"}function o(){var r;return _.each(t,function(t,s){_.includes(t,e.order.logisticsPartner)&&(r=s)}),r}function i(r){e.mpOrderHistoryItemProgressStepData.deliveryPartnerURLs=r}function n(){return!_.isUndefined(o())&&!_.isUndefined(e.order.sapDeliveryId)&&_.includes(s,e.order.statusCode)}e.mpOrderHistoryItemProgressStepData={stepType:e.stepType,order:e.order,stepStatus:r(),deliveredBy:o(),hasLinkToDeliverer:n(),deliveryPartnerURLs:void 0,setDeliveryPartnerURLs:i}}var t={Taxipost:["Courcelles logistics sh.point"]},s=["SAP102","SAP103","SAP104","SAP105","SAP106","SAP107","SAP108","SAP109","SAP110","SAP111","SAP112","SAP113","SAP114","SAP115","SAP116","SAP117","SAP118","SAP119","SAP120","SAP121","SAP122","SAP123","SAP124","SAP125","SAP126","SAP127","SAP128"];angular.module("myProximus.glp.orderHistory").directive("mpOrderHistoryItemProgressStep",e),e.$inject=[],r.$inject=["$scope"]}();
!function(){"use strict";function r(){function r(r){o.data.orderHistory=r}function t(r){var t=_.find(o.data.orderHistory,{groupOrderId:r});return t}var o={setOrderHistory:r,getOrderById:t,data:{orderHistory:void 0}};return o}angular.module("myProximus.glp.orderHistory").factory("OrderHistoryService",r),r.$inject=[]}();
!function(){"use strict";function E(E,O,T){E.mapTo(T.GET_ORDER_HISTORY.EVENT).asSequence().add(O.GET_CUSTOMER_ACCOUNT.COMMAND).add(T.GET_ORDER_HISTORY.COMMAND),E.mapTo(T.GET_ORDER_HISTORY_DETAIL.EVENT).asSequence().add(O.GET_CUSTOMER_ACCOUNT.COMMAND).add(T.GET_ORDER_HISTORY.COMMAND).add(T.GET_ORDER_HISTORY_DETAIL.COMMAND)}var O={GET_ORDER_HISTORY:{EVENT:"GetOrderHistoryEvent",COMMAND:"GetOrderHistoryCommand"},GET_ORDER_HISTORY_DETAIL:{EVENT:"GetOrderHistoryDetailEvent",COMMAND:"GetOrderHistoryDetailCommand"}};angular.module("myProximus.glp.orderHistory").config(E).constant("OrderHistoryCommandConfig",O),E.$inject=["$commangularProvider","CommonCommandConfig","OrderHistoryCommandConfig"]}();
//# sourceMappingURL=orderhistory.myProximus.process.js.map