@colijnit/transaction 1.9.29 → 12.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/component/checkout/checkout/checkout.component.d.ts +1 -1
- package/app/component/checkout/checkout-login/checkout-login.component.d.ts +1 -1
- package/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.d.ts +1 -1
- package/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.d.ts +2 -2
- package/app/component/checkout/ione-checkout.component.d.ts +1 -1
- package/app/component/common/icon/icon.component.d.ts +1 -2
- package/app/component/common/no-image-display/no-image-display.component.d.ts +1 -1
- package/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.d.ts +1 -1
- package/app/component/shopping-cart/ione-shopping-cart.component.d.ts +1 -1
- package/app/component/shopping-cart/shopping-cart/shopping-cart.component.d.ts +2 -2
- package/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.d.ts +1 -1
- package/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.d.ts +1 -1
- package/bundles/colijnit-transaction.umd.js +747 -807
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +14 -14
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout/checkout.component.js +24 -26
- package/esm2015/app/component/checkout/checkout-login/checkout-login.component.js +18 -27
- package/esm2015/app/component/checkout/checkout-overview/checkout-overview.component.js +26 -49
- package/esm2015/app/component/checkout/checkout-overview-block/checkout-overview-block.component.js +17 -24
- package/esm2015/app/component/checkout/checkout-overview-delivery-address/checkout-overview-delivery-address.component.js +19 -23
- package/esm2015/app/component/checkout/checkout-overview-delivery-edit/checkout-overview-delivery-edit.component.js +28 -41
- package/esm2015/app/component/checkout/checkout-overview-relation-address/checkout-overview-relation-address.component.js +20 -21
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +27 -36
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list/checkout-relation-suggestions-list.component.js +18 -24
- package/esm2015/app/component/checkout/checkout-relation-suggestions-list-item/checkout-relation-suggestions-list-item.component.js +16 -21
- package/esm2015/app/component/checkout/ione-checkout.component.js +28 -33
- package/esm2015/app/component/checkout/ione-checkout.module.js +55 -58
- package/esm2015/app/component/checkout/retail-transaction-checkout/retail-transaction-checkout.component.js +17 -17
- package/esm2015/app/component/common/icon/icon.component.js +18 -20
- package/esm2015/app/component/common/image-display/image-display.component.js +19 -36
- package/esm2015/app/component/common/no-image-display/no-image-display.component.js +15 -21
- package/esm2015/app/component/core/core.module.js +32 -34
- package/esm2015/app/component/shopping-cart/characteristic-answer/characteristic-answer.component.js +21 -26
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.component.js +32 -47
- package/esm2015/app/component/shopping-cart/ione-shopping-cart.module.js +51 -52
- package/esm2015/app/component/shopping-cart/shopping-cart/shopping-cart.component.js +31 -49
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +27 -38
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +28 -37
- package/esm2015/app/component/shopping-cart/stock-status-indicator/stock-status-indicator.component.js +13 -17
- package/esm2015/app/model/business-object.js +6 -6
- package/esm2015/app/pipe/append.pipe.js +6 -8
- package/esm2015/app/pipe/co-currency.pipe.js +8 -11
- package/esm2015/app/pipe/date-duration.pipe.js +10 -10
- package/esm2015/app/pipe/delivery-time.pipe.js +10 -10
- package/esm2015/app/pipe/localize.pipe.js +13 -16
- package/esm2015/app/pipe/safe-style-pipe.js +12 -12
- package/esm2015/app/service/dictionary.service.js +10 -10
- package/esm2015/app/service/ione-connector-adapter.service.js +8 -8
- package/esm2015/app/service/options.service.js +8 -8
- package/esm2015/app/service/transaction-event.service.js +6 -8
- package/esm2015/app/service/transaction.service.js +15 -14
- package/esm2015/colijnit-transaction.js +15 -15
- package/esm2015/factory/decorators/complex-field.decorator.js +2 -2
- package/fesm2015/colijnit-transaction.js +638 -763
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +31 -19
- package/bundles/colijnit-transaction.umd.min.js +0 -16
- package/bundles/colijnit-transaction.umd.min.js.map +0 -1
- package/enum/icon.enum.d.ts +0 -281
- package/esm2015/enum/icon.enum.js +0 -283
package/package.json
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@angular/animations": "^
|
|
7
|
-
"@angular/cdk": "^
|
|
8
|
-
"@angular/common": "^
|
|
9
|
-
"@angular/compiler": "^
|
|
10
|
-
"@angular/core": "^
|
|
11
|
-
"@angular/flex-layout": "^
|
|
12
|
-
"@angular/forms": "^
|
|
13
|
-
"@angular/material": "^
|
|
14
|
-
"@angular/platform-browser": "^
|
|
15
|
-
"@angular/platform-browser-dynamic": "^
|
|
16
|
-
"@angular/router": "^
|
|
17
|
-
"@colijnit/
|
|
6
|
+
"@angular/animations": "^12.2.7",
|
|
7
|
+
"@angular/cdk": "^12.2.7",
|
|
8
|
+
"@angular/common": "^12.2.7",
|
|
9
|
+
"@angular/compiler": "^12.2.7",
|
|
10
|
+
"@angular/core": "^12.2.7",
|
|
11
|
+
"@angular/flex-layout": "^12.0.0-beta.35",
|
|
12
|
+
"@angular/forms": "^12.2.7",
|
|
13
|
+
"@angular/material": "^12.2.7",
|
|
14
|
+
"@angular/platform-browser": "^12.2.7",
|
|
15
|
+
"@angular/platform-browser-dynamic": "^12.2.7",
|
|
16
|
+
"@angular/router": "^12.2.7",
|
|
17
|
+
"@colijnit/corecomponents_v12": "12.0.1",
|
|
18
18
|
"@colijnit/transactionapi": "1.1.4",
|
|
19
|
-
"
|
|
19
|
+
"@syncfusion/ej2-angular-buttons": "^18.4.46",
|
|
20
|
+
"@syncfusion/ej2-angular-calendars": "^18.3.48",
|
|
21
|
+
"@syncfusion/ej2-angular-dropdowns": "^18.3.53",
|
|
22
|
+
"@syncfusion/ej2-angular-grids": "^18.4.39",
|
|
23
|
+
"@syncfusion/ej2-angular-inputs": "^18.4.47",
|
|
24
|
+
"@syncfusion/ej2-angular-kanban": "^19.2.56",
|
|
25
|
+
"@syncfusion/ej2-angular-lists": "^18.3.47",
|
|
26
|
+
"@syncfusion/ej2-angular-navigations": "^18.4.35",
|
|
27
|
+
"@syncfusion/ej2-angular-pivotview": "^19.1.65",
|
|
28
|
+
"@syncfusion/ej2-angular-popups": "^19.2.59",
|
|
29
|
+
"@syncfusion/ej2-angular-schedule": "^19.2.47",
|
|
30
|
+
"@syncfusion/ej2-angular-splitbuttons": "^18.4.41",
|
|
31
|
+
"@syncfusion/ej2-base": "^18.4.44",
|
|
32
|
+
"@syncfusion/ej2-popups": "^19.2.59",
|
|
20
33
|
"node-sass": "^4.14.1",
|
|
21
|
-
"
|
|
22
|
-
"rxjs
|
|
23
|
-
"tslib": "^
|
|
24
|
-
"zone.js": "~0.
|
|
25
|
-
"reflect-metadata": "^0.1.12"
|
|
34
|
+
"reflect-metadata": "^0.1.12",
|
|
35
|
+
"rxjs": "~6.6.7",
|
|
36
|
+
"tslib": "^2.3.1",
|
|
37
|
+
"zone.js": "~0.11.4"
|
|
26
38
|
},
|
|
27
39
|
"main": "bundles/colijnit-transaction.umd.js",
|
|
28
40
|
"module": "fesm2015/colijnit-transaction.js",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@colijnit/ioneconnector/build/model/options"),require("@colijnit/transactionapi/build/model/customer-full-object.bo"),require("@colijnit/transactionapi/build/model/transaction-info-response.bo"),require("@colijnit/transactionapi/build/model/relation-privacy-setting.bo"),require("@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params"),require("@colijnit/transactionapi/build/model/article-full-object"),require("@colijnit/transactionapi/build/model/line-operation-response.bo"),require("@colijnit/transactionapi/build/transaction"),require("@colijnit/transactionapi/build/utils/function/not-nill.function"),require("@colijnit/transactionapi/build/utils/object-utils"),require("@colijnit/transactionapi/build/enum/yes-no-db-type.enum"),require("@colijnit/transactionapi/build/enum/true-false-db-type.enum"),require("@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum"),require("@colijnit/transactionapi/build/enum/db-boolean-value-type.enum"),require("@colijnit/transactionapi/build/utils/date-utils"),require("@colijnit/transactionapi/build/utils/number-utils"),require("@colijnit/transactionapi/build/utils/function/is-nill.function"),require("@colijnit/transactionapi/build/factory/decorators/map-property.decorator"),require("@colijnit/transactionapi/build/factory/decorators/boolean.decorator"),require("@colijnit/transactionapi/build/factory/decorators/json.decorator"),require("@colijnit/transactionapi/build/factory/decorators/complex-array.decorator"),require("@colijnit/transactionapi/build/utils/image-utils"),require("@colijnit/transactionapi/build/model/nul-relation-object"),require("@colijnit/transactionapi/build/enum/transaction-kind.enum"),require("@colijnit/transactionapi/build/enum/sequence-name.enum"),require("@colijnit/transactionapi/build/utils/array-utils"),require("@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo"),require("@colijnit/transactionapi/build/model/transaction-total.bo"),require("@colijnit/transactionapi/build/enum/transaction-line-type.enum"),require("@colijnit/transactionapi/build/model/line-operation-status.bo"),require("@colijnit/transactionapi/build/model/transaction-info.bo"),require("@colijnit/transactionapi/build/enum/pending-reason-type.enum"),require("@colijnit/transactionapi/build/enum/communication-type.enum"),require("@colijnit/transactionapi/build/model/contact-option.bo"),require("@colijnit/transactionapi/build/enum/relation-name-kind.enum"),require("@colijnit/transactionapi/build/enum/address-type.enum"),require("@colijnit/transactionapi/build/enum/gender-type.enum"),require("@colijnit/transactionapi/build/utils/business-object-utils"),require("@colijnit/corecomponents_v9"),require("@colijnit/transactionapi/build/utils/function-utils"),require("@colijnit/transactionapi/build/model/address.bo"),require("@angular/platform-browser/animations"),require("@angular/flex-layout"),require("@angular/material/stepper"),require("@angular/common"),require("@angular/platform-browser"),require("@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo"),require("@colijnit/transactionapi/build/enum/sort-direction"),require("@colijnit/transactionapi/build/enum/sort-type.enum"),require("@colijnit/transactionapi/build/utils/sort-utils"),require("@colijnit/transactionapi/build/enum/refcode/stock-status.enum")):"function"==typeof define&&define.amd?define("@colijnit/transaction",["exports","@angular/core","rxjs","@colijnit/ioneconnector/build/model/options","@colijnit/transactionapi/build/model/customer-full-object.bo","@colijnit/transactionapi/build/model/transaction-info-response.bo","@colijnit/transactionapi/build/model/relation-privacy-setting.bo","@colijnit/transactionapi/build/model/get-postal-code-retrieval-output-params","@colijnit/transactionapi/build/model/article-full-object","@colijnit/transactionapi/build/model/line-operation-response.bo","@colijnit/transactionapi/build/transaction","@colijnit/transactionapi/build/utils/function/not-nill.function","@colijnit/transactionapi/build/utils/object-utils","@colijnit/transactionapi/build/enum/yes-no-db-type.enum","@colijnit/transactionapi/build/enum/true-false-db-type.enum","@colijnit/transactionapi/build/enum/one-zero-bool-db-type.enum","@colijnit/transactionapi/build/enum/db-boolean-value-type.enum","@colijnit/transactionapi/build/utils/date-utils","@colijnit/transactionapi/build/utils/number-utils","@colijnit/transactionapi/build/utils/function/is-nill.function","@colijnit/transactionapi/build/factory/decorators/map-property.decorator","@colijnit/transactionapi/build/factory/decorators/boolean.decorator","@colijnit/transactionapi/build/factory/decorators/json.decorator","@colijnit/transactionapi/build/factory/decorators/complex-array.decorator","@colijnit/transactionapi/build/utils/image-utils","@colijnit/transactionapi/build/model/nul-relation-object","@colijnit/transactionapi/build/enum/transaction-kind.enum","@colijnit/transactionapi/build/enum/sequence-name.enum","@colijnit/transactionapi/build/utils/array-utils","@colijnit/transactionapi/build/model/set-transaction-delivery-options-request.bo","@colijnit/transactionapi/build/model/transaction-total.bo","@colijnit/transactionapi/build/enum/transaction-line-type.enum","@colijnit/transactionapi/build/model/line-operation-status.bo","@colijnit/transactionapi/build/model/transaction-info.bo","@colijnit/transactionapi/build/enum/pending-reason-type.enum","@colijnit/transactionapi/build/enum/communication-type.enum","@colijnit/transactionapi/build/model/contact-option.bo","@colijnit/transactionapi/build/enum/relation-name-kind.enum","@colijnit/transactionapi/build/enum/address-type.enum","@colijnit/transactionapi/build/enum/gender-type.enum","@colijnit/transactionapi/build/utils/business-object-utils","@colijnit/corecomponents_v9","@colijnit/transactionapi/build/utils/function-utils","@colijnit/transactionapi/build/model/address.bo","@angular/platform-browser/animations","@angular/flex-layout","@angular/material/stepper","@angular/common","@angular/platform-browser","@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo","@colijnit/transactionapi/build/enum/sort-direction","@colijnit/transactionapi/build/enum/sort-type.enum","@colijnit/transactionapi/build/utils/sort-utils","@colijnit/transactionapi/build/enum/refcode/stock-status.enum"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).colijnit=e.colijnit||{},e.colijnit.transaction={}),e.ng.core,e.rxjs,e.options,e.customerFullObject_bo,e.transactionInfoResponse_bo,e.relationPrivacySetting_bo,e.getPostalCodeRetrievalOutputParams,e.articleFullObject,e.lineOperationResponse_bo,e.transaction,e.notNill_function,e.objectUtils,e.yesNoDbType_enum,e.trueFalseDbType_enum,e.oneZeroBoolDbType_enum,e.dbBooleanValueType_enum,e.dateUtils,e.numberUtils,e.isNill_function,e.mapProperty_decorator,e.boolean_decorator,e.json_decorator,e.complexArray_decorator,e.imageUtils,e.nulRelationObject,e.transactionKind_enum,e.sequenceName_enum,e.arrayUtils,e.setTransactionDeliveryOptionsRequest_bo,e.transactionTotal_bo,e.transactionLineType_enum,e.lineOperationStatus_bo,e.transactionInfo_bo,e.pendingReasonType_enum,e.communicationType_enum,e.contactOption_bo,e.relationNameKind_enum,e.addressType_enum,e.genderType_enum,e.businessObjectUtils,e.corecomponents_v9,e.functionUtils,e.address_bo,e.ng.platformBrowser.animations,e.ng.flexLayout,e.ng.material.stepper,e.ng.common,e.ng.platformBrowser,e.resolvePendingReasonRequest_bo,e.sortDirection,e.sortType_enum,e.sortUtils,e.stockStatus_enum)}(this,(function(e,t,n,i,o,r,a,s,c,l,u,d,p,h,f,v,g,m,b,y,x,w,C,_,T,A,O,E,S,I,R,N,D,k,L,P,j,M,z,U,B,F,V,H,q,G,W,Y,K,Q,J,$,X,Z){"use strict";function ee(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var te=ee(t),ne=function(e,t){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function ie(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function oe(e,t){return function(n,i){t(n,i,e)}}function re(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}function ae(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function se(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function le(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ce(arguments[t]));return e}e.ɵk=function(){function e(){this.optionsLoaded=new n.BehaviorSubject(!1)}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!0,configurable:!0}),e.prototype.createSettingsFromObject=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){return this.options=new i.Options,e.hasOwnProperty("url")&&(this.options.url=e.url),e.hasOwnProperty("schema")&&(this.options.schema=e.schema),e.hasOwnProperty("version")&&(this.options.version=e.version),e.hasOwnProperty("languageCode")?this.options.languageCode=e.languageCode:this.options.languageCode="NL",e.hasOwnProperty("username")&&(this.options.username=e.username),e.hasOwnProperty("password")&&(this.options.password=e.password),e.hasOwnProperty("session")&&(this.options.session=e.session),e.hasOwnProperty("useLoginEncryption")&&(this.options.useLoginEncryption=e.useLoginEncryption),this.optionsLoaded.next(!0),[2]}))}))},e.prototype.initialize=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return e?[4,this.createSettingsFromObject(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.initializeDevelopmentOptions=function(e){e?this._initializeDevelopmentRemoteOptions():this._initializeDevelopmentLocalOptions()},e.prototype._initializeDevelopmentRemoteOptions=function(){this.initialize({url:"http://130.62.7.180:8082/ione",ajaxUrl:"http://130.62.7.180:8082/ione",schema:"815",version:"251",useLoginEncryption:!0,username:"sjaak",password:"sjaak1",languageCode:"NL"}).then()},e.prototype._initializeDevelopmentLocalOptions=function(){this.initialize({url:"http://127.0.0.1:8080/ione",ajaxUrl:"http://127.0.0.1:8080/ione",schema:"815",version:"251",useLoginEncryption:!0,username:"sjaak",password:"sjaak1",languageCode:"NL"}).then()},e}(),e.ɵk=ie([t.Injectable()],e.ɵk);var ue="complexField";var de=function(){function e(){}return e.IsComplexField=function(e,t){return!(!e||!t||"object"!=typeof e)&&d.notNill(Reflect.getMetadata(ue,e,t))},e.GetComplexFieldType=function(e,t){if(e&&t&&"object"==typeof e)return Reflect.getMetadata(ue,e,t)},e}(),pe="complexArray";var he=function(){function e(){}return e.IsComplexArray=function(e,t){return!(!e||!t||"object"!=typeof e)&&d.notNill(Reflect.getMetadata(pe,e,t))},e.GetComplexArrayType=function(e,t){if(e&&t&&"object"==typeof e)return Reflect.getMetadata(pe,e,t)},e}(),fe="booleanTextJN",ve="booleanTextTF",ge="booleanText10";var me=function(){function e(){}return e.IsBooleanTextField=function(e,t){return!(!e||!t||"object"!=typeof e)&&(!0===Reflect.getMetadata(fe,e,t)||!0===Reflect.getMetadata(ve,e,t)||!0===Reflect.getMetadata(ge,e,t))},e.GetLogicalBooleanValue=function(e){return g.GetLogicalBooleanValue(e)},e.GetDbBooleanValue=function(t,n){if(t&&n&&"object"==typeof t){var i=void 0,o=t[n];return e._IsJaNeeProp(t,n)?i=h.GetYesNoDbBooleanValue(o):e._IsTrueFalseProp(t,n)?i=f.GetTrueFalseDbBooleanValue(o):e._IsZeroOneProp(t,n)&&(i=v.GetOneZeroDbBooleanValue(o)),i}},e._IsJaNeeProp=function(t,n){return e._IsProp(fe,t,n)},e._IsTrueFalseProp=function(t,n){return e._IsProp(ve,t,n)},e._IsZeroOneProp=function(t,n){return e._IsProp(ge,t,n)},e._IsProp=function(e,t,n){return!!t&&!!n&&"object"==typeof t&&Reflect.hasMetadata(e,t,n)},e}(),be="dateField";var ye=function(){function e(){}return e.IsDateField=function(e,t){return!(!e||!t||"object"!=typeof e)&&Reflect.hasMetadata(be,e,t)},e.StringAsDate=function(e){return m.DateUtils.StringAsDate(e)},e}(),xe="stringNumber";var we=function(){function e(){}return e.IsStringNumber=function(e,t){return!(!e||!t||"object"!=typeof e)&&Reflect.hasMetadata(xe,e,t)},e.StringAsNumber=function(e){return b.NumberUtils.ParseFloatKeepPrecision(e)},e.NumberAsString=function(e){return""+e},e}();var Ce,_e=function(){function e(){}return e.ContainsAnElementFoundBy=function(e,t){return!(!e||!t)&&d.notNill(this.Find(e,t))},e.Find=function(e,t){if(e&&t)for(var n=0,i=e.length;n<i;n++){var o=e[n];if(t(o))return o}},e.FindAll=function(e,t){var n=[];if(!e||!t)return n;for(var i=0,o=e.length;i<o;i++){var r=e[i];t(r)&&n.push(r)}return n},e.CloneArray=function(e){var t=[];return e&&(t=e.slice(0)),t},e.CloneArrayAndItsItems=function(e,t,n){void 0===n&&(n=!1);var i=[];if(!e)return[];for(var o=0,r=e.length;o<r;o++)n?i.push(p.ObjectUtils.GetDeepClone(e[o])):i.push(p.ObjectUtils.GetShallowClone(e[o],t));return i},e.RemoveElementAtIndex=function(e,t){return!(b.NumberUtils.IsNaN(e)||e<0||!Array.isArray(t)||0===t.length)&&(e in t&&(t.splice(e,1),!0))},e.RemoveElement=function(t,n){if(!Array.isArray(n))return!1;var i=n.indexOf(t);return e.RemoveElementAtIndex(i,n)},e.IsArrayWithElements=function(e,t){return!y.isNill(e)&&(!!(Array.isArray(e)&&e.length>0)&&(!t||e[0]instanceof t))},e.RemoveElementsByFilter=function(t,n){if(!e.IsArrayWithElements(t)||!n)return!1;for(var i=!1,o=t.length-1;o>=0;o--){var r=t[o];!0===n.call(this,r)&&(t.splice(o,1),i=!0)}return i},e.MoveElement=function(e,t,n){if(!Array.isArray(n)||y.isNill(t))return!1;var i=n.indexOf(e),o=b.NumberUtils.GetNearestNumberWithinBounds(t,0,n.length-1);return-1!==i&&n[o]!==e&&(n.splice(o,0,n.splice(i,1)[0]),!0)},e.PlaceElementAfterOther=function(t,n,i){if(t){var o=t.indexOf(i);o>=t.indexOf(n)&&e.MoveElement(n,o+1,t)}},e}(),Te=function(){function e(){}return e.prototype.getId=function(){return this.id},e.prototype.setOwnMappedPropsFromRawData=function(e){var t=this;void 0===e&&(e={}),e&&Object.keys(this).forEach((function(n){if(x.MapPropertyDecorator.IsMapProperty(t,n))for(var i=x.MapPropertyDecorator.GetMapProperty(t,n).split(","),o=i.length,r=0;r<o;r++){var a=i[r].trim(),s=e[a],c=!1;if(e.hasOwnProperty(a)){if(w.BooleanTextDecorator.IsBooleanTextField(t,n)&&(t[n]=w.BooleanTextDecorator.GetLogicalBooleanValue(s),c=!0),C.JsonFieldFieldDecorator.IsJsonField(t,n)&&(t[n]=C.JsonFieldFieldDecorator.StringAsJson(s),c=!0),_.ComplexArrayDecorator.IsComplexArray(t,n)){for(var l=_.ComplexArrayDecorator.GetComplexArrayType(t,n),u=t[n],d=[],p=0;p<u.length;p++){var h=new l(u[p]);d.push(h)}t[n]=d}else c||(t[n]=s);break}}else if(e.hasOwnProperty(n)){s=e[n];w.BooleanTextDecorator.IsBooleanTextField(t,n)?t[n]=w.BooleanTextDecorator.GetLogicalBooleanValue(s):C.JsonFieldFieldDecorator.IsJsonField(t,n)?t[n]=C.JsonFieldFieldDecorator.StringAsJson(s):t[n]=s}}))},e}(),Ae=function(){function e(){}return e.prototype.makeWithRawBackendData=function(e,t){if(e&&typeof e==typeof Te){var n=new e;return this._copyAllPropertiesDecoratorProcessedFrom(t,n),n}},e.prototype.makeBOArrayFromRawBackendDataArray=function(e,t){if(e){var n=[];if(t)for(var i=0,o=t.length;i<o;i++)n.push(this.makeWithRawBackendData(e,t[i]));return n}},e.prototype.instantiateNewBo=function(e){return this.makeWithRawBackendData(e,{})},e.prototype._copyAllPropertiesDecoratorProcessedFrom=function(e,t){if(e&&t)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(de.IsComplexField(t,n)){var o=de.GetComplexFieldType(t,n);t[n]=this.makeWithRawBackendData(o,i)}else if(he.IsComplexArray(t,n)){var r=i;if(!r)continue;for(var a=he.GetComplexArrayType(t,n),s=[],c=0,l=r.length;c<l;c++)s.push(this.makeWithRawBackendData(a,r[c]));t[n]=s}else me.IsBooleanTextField(t,n)?t[n]="boolean"==typeof i?i:me.GetLogicalBooleanValue(i):ye.IsDateField(t,n)?t[n]=ye.StringAsDate(i):we.IsStringNumber(t,n)?t[n]=we.StringAsNumber(i):null==i?t[n]=void 0:Array.isArray(i)?t[n]=_e.CloneArray(i):"object"==typeof i?i instanceof Map?t[n]=i:t[n]=Object.assign({},i):t[n]=i}},e}();e.ɵg=function(){function e(){this._boFactory=new Ae,this._countryList=[]}return e.prototype.connect=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){return this.options=e,this.connector=new u.Transaction(e),this.options.session=this.connector.session,[2]}))}))},e.prototype.getArticleFullObject=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getArticleFullObject(e).then((function(e){e.validationResult&&e.validationResult.success?e.resultObject&&n(t._boFactory.makeWithRawBackendData(c.ArticleFullObject,e.resultObject)):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getGoodIdFromArticleNr=function(e){var t=this;return new Promise((function(n,i){return t.connector.getGoodIdFromArticleNr(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObject):i(e.validationMessagesAsString)}))}))},e.prototype.getSingleImage=function(e,t,n,i){var o=this;return new Promise((function(r,a){return o.connector.getSingleImage(e,t,n,i).then((function(e){if(e.validationResult&&e.validationResult.success)return null!==e.resultObject.filePath&&""!==e.resultObject.filePath?r(T.ImageUtils.getFixedImageFilepathUrl(e.resultObject.filePath)):r(n?T.ImageUtils.getDocBodyWithMimeTypeDefinition(e.resultObject.fileName,i?e.resultObject.thumbnailBody:e.resultObject.documentBody):i?e.resultObject.thumbnailBody:e.resultObject.documentBody);a(e.validationMessagesAsString)}))}))},e.prototype.getDocumentContent=function(e,t){var n=this;return new Promise((function(i,o){return n.connector.getDocumentContent(e,t).then((function(e){e.validationResult&&e.validationResult.success?i(e.resultObject.documentContent):o(e.validationMessagesAsString)}))}))},e.prototype.getCountries=function(){var e=this;return this._countryList.length>0?new Promise((function(t){t(e._countryList)})):new Promise((function(t,n){return e.connector.getCountries().then((function(i){i.validationResult&&i.validationResult.success?(e._countryList=i.resultObjects,t(i.resultObjects)):n(i.validationMessagesAsString)}))}))},e.prototype.getCountry=function(e){return this.getCountries(),this._countryList.find((function(t){return t.code===e}))},e.prototype.getPrivacySettings=function(){var e=this;return new Promise((function(t,n){return e.connector.getPrivacySettings().then((function(e){e.validationResult&&e.validationResult.success?t(e.resultObjects):n(e.validationMessagesAsString)}))}))},e.prototype.getRelationPrivacySettings=function(){return re(this,void 0,void 0,(function(){var e,t,n,i,o,r;return ae(this,(function(s){switch(s.label){case 0:return e=[],[4,this.getPrivacySettings()];case 1:for(t=s.sent(),n=0,i=t.length;n<i;n++)o=t[n],(r=this._boFactory.instantiateNewBo(a.RelationPrivacySetting)).applyBasePrivacySettingValues(o),e.push(r);return[2,e]}}))}))},e.prototype.getMarketingCodes=function(){var e=this;return new Promise((function(t,n){return e.connector.getMarketingCodes().then((function(e){e.validationResult&&e.validationResult.success?t(e.resultObjects):n(e.validationMessagesAsString)}))}))},e.prototype.createTransaction=function(e,t){var n=this;return new Promise((function(i,o){return n.connector.createTransaction(e,t).then((function(e){e.validationResult&&e.validationResult.success?i(n._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):o(e.validationMessagesAsString)}))}))},e.prototype.getTransactionByNrAndKind=function(e,t){var n=this;return new Promise((function(i,o){return n.connector.getTransactionByNrAndKind(e,t).then((function(e){e.validationResult&&e.validationResult.success?i(n._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):o(e.validationMessagesAsString)}))}))},e.prototype.saveTransaction=function(e){var t=this;return new Promise((function(n,i){return t.connector.saveTransaction(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):i(e.validationMessagesAsString)}))}))},e.prototype.getCustomerFullObject=function(e){var t=this;return new Promise((function(n,i){return t.connector.getCustomerFullObject(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(o.CustomerFullObject,e.resultObject)):i(e.validationMessagesAsString)}))}))},e.prototype.getRelationNumber=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getRelationNumber(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObject):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getSequenceValue=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getSequenceValue(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObject):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.insertCustomer=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.insertCustomer(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(o.CustomerFullObject,e.resultObject)):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.updateCustomer=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.updateCustomer(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(o.CustomerFullObject,e.resultObject)):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getDeliveryMethods=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){return[2,new Promise((function(t,n){return e.connector.getDeliveryMethods().then((function(e){e.validationResult&&e.validationResult.success?t(e.resultObjects):n(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getDeliveryOptions=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){return[2,new Promise((function(t,n){return e.connector.getDeliveryOptions().then((function(e){e.validationResult&&e.validationResult.success?t(e.resultObjects):n(e.validationMessagesAsString)}))}))]}))}))},e.prototype.addRelationToTransaction=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i,o){return n.connector.addRelationToTransaction(e,t).then((function(e){e.validationResult&&e.validationResult.success?i(e.validationResult.success):o(e.validationMessagesAsString)}))}))]}))}))},e.prototype.setTransactionDeliveryOptions=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.setTransactionDeliveryOptions(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObjects):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getPostalCodeRetrieval=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i,o){return n.connector.getPostalCodeRetrieval(e,t).then((function(e){if(e.validationResult&&e.validationResult.success){var t=new s.GetPostalCodeRetrievalOutputParams;t.city=e.resultObject.city,t.street=e.resultObject.street,t.status=e.resultObject.status,t.netNumber=e.resultObject.netNumber,i(t)}else o(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getRelationListObjects=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getRelationListObjects(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObjects):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.addTransactionLine=function(e,t,n,i,o,r,a){return re(this,void 0,void 0,(function(){var s=this;return ae(this,(function(c){return[2,new Promise((function(c,u){return s.connector.addTransactionLine(e,t,n,i,o,r,a).then((function(e){e.validationResult&&e.validationResult.success?c(s._boFactory.makeWithRawBackendData(l.LineOperationResponse,e.resultObject)):u(e.validationMessagesAsString)}))}))]}))}))},e.prototype.cancelAddTransactionLine=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.cancelAddTransactionLine(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.deleteTransactionLine=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i,o){return n.connector.deleteTransactionLine(e,t).then((function(e){e.validationResult&&e.validationResult.success?i(n._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):o(e.validationMessagesAsString)}))}))]}))}))},e.prototype.changeTransactionLineQuantity=function(e,t,n){return re(this,void 0,void 0,(function(){var i=this;return ae(this,(function(o){return[2,new Promise((function(o,a){return i.connector.changeTransactionLineQuantity(e,t,n).then((function(e){e.validationResult&&e.validationResult.success?o(i._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):a(e.validationMessagesAsString)}))}))]}))}))},e.prototype.resolvePendingLineReason=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.resolvePendingLineReason(e).then((function(e){e.validationResult&&e.validationResult.success?n(t._boFactory.makeWithRawBackendData(r.TransactionInfoResponse,e.resultObject)):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getCommissionCodes=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getCommissionCodes(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObjects):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getInOutCollection=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getInOutCollection(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObjects):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.getTransactionArticleWarehouses=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){return t.connector.getTransactionArticleWarehouses(e).then((function(e){e.validationResult&&e.validationResult.success?n(e.resultObjects):i(e.validationMessagesAsString)}))}))]}))}))},e.prototype.setRelationByUser=function(e,t,n){return re(this,void 0,void 0,(function(){var i=this;return ae(this,(function(o){return[2,new Promise((function(o,r){return i.connector.setRelationByUser(e,t,n).then((function(e){e.validationResult&&e.validationResult.success?o(e.validationResult.success):r(e.validationMessagesAsString)}))}))]}))}))},e}(),e.ɵg=ie([t.Injectable()],e.ɵg),e.ɵf=function(){function e(e){this._connector=e,this.transactionUpdated=new t.EventEmitter,this.applicationUser=!1,this.articleAmount=0,this._currentLines=[],this._currentTotals=new R.TransactionTotal,this._currentRelation=A.NULL_RELATION_OBJECT,this._currentTransaction=new k.TransactionInfo,this._currentLineOperationStatus=new D.LineOperationStatus,this._currentLineOperationStatuses=[],this._initializeTransaction()}return Object.defineProperty(e.prototype,"currentLines",{get:function(){return this._currentLines},set:function(e){this._currentLines=e,this.articleAmount=S.ArrayUtils.FindAll(this._currentLines,(function(e){return e.isArticle})).length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTotals",{get:function(){return this._currentTotals},set:function(e){this._currentTotals=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentRelation",{get:function(){return this._currentRelation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTransaction",{get:function(){return this._currentTransaction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLineOperationStatuses",{get:function(){return this._currentLineOperationStatuses},set:function(e){this._currentLineOperationStatuses=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLineOperationStatus",{get:function(){return this.currentLineOperationStatuses.find((function(e){return e.pendingReasonType!==L.PendingReasonType.NONE&&e.pendingReasonType!==L.PendingReasonType.NON_CRITICAL_DISCONTINUATION}))},set:function(e){this._currentLineOperationStatus=e},enumerable:!0,configurable:!0}),e.prototype.getArticleFullObject=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getArticleFullObject(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getGoodIdFromArticleNr=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getGoodIdFromArticleNr(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getRelation=function(){return re(this,void 0,void 0,(function(){var e,t;return ae(this,(function(n){switch(n.label){case 0:return[4,this._connector.getRelationNumber(this._currentTransaction.relation.relationId)];case 1:return(e=n.sent())?(t=this,[4,this._connector.getCustomerFullObject(Number(e))]):[3,4];case 2:return t._currentRelation=n.sent(),[4,this.loadCountriesOfRelationAddresses()];case 3:n.sent(),n.label=4;case 4:return[2,this._currentRelation]}}))}))},e.prototype.loadCountriesOfRelationAddresses=function(){return re(this,void 0,void 0,(function(){var e,t,n,i,o,r,a;return ae(this,(function(s){switch(s.label){case 0:s.trys.push([0,5,6,7]),e=se(this.currentRelation.addresses),t=e.next(),s.label=1;case 1:return t.done?[3,4]:(n=t.value,[4,this.getCountry(n.countryId)]);case 2:i=s.sent(),n.countryName=i.description,s.label=3;case 3:return t=e.next(),[3,1];case 4:return[3,7];case 5:return o=s.sent(),r={error:o},[3,7];case 6:try{t&&!t.done&&(a=e.return)&&a.call(e)}finally{if(r)throw r.error}return[7];case 7:return[2]}}))}))},e.prototype.getCountry=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getCountry(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getRelationNumber=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){return[2,this._connector.getRelationNumber(e)]}))}))},e.prototype.saveNewRelation=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return this.cleanRelationBeforeSave(),e=this,[4,this._connector.insertCustomer(this._currentRelation)];case 1:return e._currentRelation=t.sent(),[4,this.addRelationToTransaction(this._currentRelation.relationId)];case 2:return t.sent(),[2]}}))}))},e.prototype.saveRelation=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return this.cleanRelationBeforeSave(),e=this,[4,this._connector.updateCustomer(this._currentRelation)];case 1:return e._currentRelation=t.sent(),[2]}}))}))},e.prototype.cleanRelationBeforeSave=function(){S.ArrayUtils.RemoveElementsByFilter(this._currentRelation.contactOptions,(function(e){return y.isNill(e.value)}))},e.prototype.getSequenceValue=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._connector.getSequenceValue(E.SequenceName.RelationId)];case 1:return[2,e.sent()]}}))}))},e.prototype.getRelationPrivacySettings=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._connector.getRelationPrivacySettings()];case 1:return[2,e.sent()]}}))}))},e.prototype.createTransaction=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){return[2,new Promise((function(t,n){e._connector.createTransaction(O.TransactionKind.SalesOrder,"1").then((function(n){e._rememberCurrentTransaction(n),t(!0)}),(function(e){n(e)})).catch((function(e){n(!1)}))}))]}))}))},e.prototype.resolvePendingLineReason=function(e){var t=this;return new Promise((function(n){t._connector.resolvePendingLineReason(e).then((function(e){return re(t,void 0,void 0,(function(){return ae(this,(function(t){return this._rememberCurrentTransaction(e),this._rememberCurrentTransactionLineStatus(e),n(e),[2]}))}))})).catch((function(e){n()}))}))},e.prototype.getTransaction=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this.openExistingTransaction(O.TransactionKind.SalesOrder,e)];case 1:return[2,t.sent()]}}))}))},e.prototype.openExistingTransaction=function(e,t){var n=this;return new Promise((function(i,o){n._connector.getTransactionByNrAndKind(e,t).then((function(e){return re(n,void 0,void 0,(function(){return ae(this,(function(t){return this._rememberCurrentTransaction(e),e.isSuccess?i(!0):o(!1),[2]}))}))})).catch((function(e){o(!1)}))}))},e.prototype.saveTransaction=function(e){return void 0===e&&(e=!1),re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.saveTransaction(this.currentTransaction.uuid)];case 1:return(e=t.sent()).isSuccess&&this._rememberCurrentTransaction(e),[2]}}))}))},e.prototype.addRelationToTransaction=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.addRelationToTransaction(this._currentTransaction.uuid,e)];case 1:return t.sent()?[4,this.saveTransaction()]:[3,4];case 2:return t.sent(),[4,this.getTransaction(this._currentTransaction.transactionNr)];case 3:t.sent(),t.label=4;case 4:return[2]}}))}))},e.prototype.getCommissionCodes=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getCommissionCodes(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getInOutCollection=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getInOutCollection(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getTransactionArticleWarehouses=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){return[2,this._connector.getTransactionArticleWarehouses(e)]}))}))},e.prototype.getMarketingCodes=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._connector.getMarketingCodes()];case 1:return[2,e.sent()]}}))}))},e.prototype.insertCustomer=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.insertCustomer(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.updateCustomer=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){t._connector.updateCustomer(e).then((function(i){return re(t,void 0,void 0,(function(){return ae(this,(function(t){return this._currentRelation=e,n(i),[2]}))}))})).catch((function(e){n(e)}))}))]}))}))},e.prototype.getDeliveryMethods=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._connector.getDeliveryMethods()];case 1:return[2,e.sent()]}}))}))},e.prototype.getDeliveryOptions=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._connector.getDeliveryOptions()];case 1:return[2,e.sent()]}}))}))},e.prototype.setTransactionDeliveryOptions=function(){return re(this,void 0,void 0,(function(){var e,t=this;return ae(this,(function(n){return e=this._getTransactionDeliveryOptions(),[2,new Promise((function(n,i){t._connector.setTransactionDeliveryOptions(e).then((function(e){return re(t,void 0,void 0,(function(){return ae(this,(function(t){return n(e.isSuccess),[2]}))}))}),(function(e){i(e)})).catch((function(e){n(!1)}))}))]}))}))},e.prototype.getRelationListObjects=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.getRelationListObjects(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.retrieveLineImage=function(e){return re(this,void 0,void 0,(function(){var t;return ae(this,(function(n){switch(n.label){case 0:return[4,this._connector.getGoodIdFromArticleNr(e.articleNumber)];case 1:return t=n.sent(),isNaN(t)?[2,""]:[2,this._connector.getSingleImage(t,1,!0,!0)]}}))}))},e.prototype.addArticle=function(e,t,n,i,o){return void 0===t&&(t=1),void 0===n&&(n=1),void 0===i&&(i="2"),void 0===o&&(o=!1),re(this,void 0,void 0,(function(){var r=this;return ae(this,(function(a){return[2,new Promise((function(a,s){r._connector.addTransactionLine(r._currentTransaction.uuid,N.TransactionLineType.ArticleLine,e,t,n,i,o).then((function(e){return re(r,void 0,void 0,(function(){return ae(this,(function(e){return a(!0),[2]}))}))}),(function(e){s(e)})).catch((function(e){a(!1)}))}))]}))}))},e.prototype.addTransactionLine=function(e,t,n,i,o,r){return re(this,void 0,void 0,(function(){var a=this;return ae(this,(function(s){return[2,new Promise((function(s,c){a._connector.addTransactionLine(a.currentTransaction.uuid,e,t,n,i,o,r).then((function(e){return re(a,void 0,void 0,(function(){return ae(this,(function(t){return this._rememberCurrentTransaction(e),this._rememberCurrentTransactionLineStatus(e),s(e),[2]}))}))}),(function(e){c(e)})).catch((function(e){s()}))}))]}))}))},e.prototype.cancelAddTransactionLine=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){return[2,new Promise((function(n,i){t._connector.cancelAddTransactionLine(e).then((function(e){return re(t,void 0,void 0,(function(){return ae(this,(function(t){return this._rememberCurrentTransaction(e),e.isSuccess?n(e):i(e),[2]}))}))})).catch((function(e){n()}))}))]}))}))},e.prototype.deleteTransactionLine=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i,o){n._connector.deleteTransactionLine(e,t).then((function(e){return re(n,void 0,void 0,(function(){return ae(this,(function(t){return this._rememberCurrentTransaction(e),this._rememberCurrentTransactionLineStatus(e),e.isSuccess?i(e):o(e),[2]}))}))})).catch((function(e){i()}))}))]}))}))},e.prototype.changeTransactionLineQuantity=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i){n._connector.changeTransactionLineQuantity(n.currentTransaction.uuid,e,t).then((function(e){return re(n,void 0,void 0,(function(){return ae(this,(function(t){return e.isSuccess&&(this._rememberCurrentTransaction(e),this._rememberCurrentTransactionLineStatus(e)),i(e),[2]}))}))})).catch((function(e){i()}))}))]}))}))},e.prototype.setRelationByUser=function(e,t){return re(this,void 0,void 0,(function(){var n=this;return ae(this,(function(i){return[2,new Promise((function(i){n._connector.setRelationByUser(n.currentTransaction.uuid,e,t).then((function(e){return re(n,void 0,void 0,(function(){return ae(this,(function(t){return i(e),[2]}))}))})).catch((function(e){i(!1)}))}))]}))}))},e.prototype._initializeTransaction=function(){void 0===this._currentTransaction.preferredDeliveryDate2&&(this._currentTransaction.preferredDeliveryDate2="=")},e.prototype._rememberCurrentTransaction=function(e){this._currentTransaction=e.transactionInfo,this._initializeTransaction(),this.currentLines=e.transactionLines,this.currentTotals=e.transactionTotal,this.currentLineOperationStatuses=e.lineOperationStatuses,this._updateRelation(),this.transactionUpdated.emit()},e.prototype._rememberCurrentTransactionLineStatus=function(e){},e.prototype._updateRelation=function(){return re(this,void 0,void 0,(function(){var e,t;return ae(this,(function(n){switch(n.label){case 0:return this.currentTransaction&&this.currentTransaction.relation&&this.currentTransaction.relation.relationId?this._currentRelation&&this._currentRelation.relationId===this.currentTransaction.relation.relationId?[3,3]:[4,this._connector.getRelationNumber(this.currentTransaction.relation.relationId)]:[3,3];case 1:return(e=n.sent())?(t=this,[4,this._connector.getCustomerFullObject(Number(e))]):[3,3];case 2:t._currentRelation=n.sent(),n.label=3;case 3:return[2]}}))}))},e.prototype._getTransactionDeliveryOptions=function(){var e=new I.SetTransactionDeliveryOptionsRequest;return e.allowPartialDelivery=this._currentTransaction.allowPartialDelivery,e.deliveryDate=this._currentTransaction.deliveryDate,e.deliveryMethod=this._currentTransaction.deliveryMethod,e.deliveryOptions=this._currentTransaction.deliveryOptions,e.marketingCode=this._currentTransaction.marketingCode,e.ownReference=this._currentTransaction.ownReference,e.preferredDeliveryDate=this._currentTransaction.preferredDeliveryDate,e.preferredDeliveryDate2=this._currentTransaction.preferredDeliveryDate2,e.relationReference=this._currentTransaction.relationReference,e.remark=this._currentTransaction.remark,e.transactionUuid=this._currentTransaction.uuid,e.transactionAddress=this._currentTransaction.transactionAddress.nawNr,e.invoiceAddress=this._currentTransaction.invoiceAddress.nawNr,e},e}(),e.ɵf=ie([t.Injectable(),oe(0,t.Inject(e.ɵg))],e.ɵf),function(e){e.Dutch="nl-NL",e.English="en-GB",e.German="de-DE",e.French="fr-FR"}(Ce||(Ce={}));var Oe,Ee,Se,Ie,Re,Ne,De,ke=function(){function e(){}return e.ReplaceOccurrencesIn=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(e){if(!t||0===n.length)return e;var o=e;if(1===n.length)o=o.replace(new RegExp(this._escapeRegExp(t),"g"),n[0]);else for(var r=0,a=n.length;r<a;r++)o=o.replace(t,n[r]);return o}},e.ParseString=function(t,n){return void 0===n&&(n=""),e.IsString(t)||(t=t&&"function"==typeof t.toString?t.toString():n),t},e.IsString=function(e){return"string"==typeof e},e.IsStringWithLength=function(t){return t&&e.IsString(t)&&t.length>0},e._escapeRegExp=function(e){return e},e}(),Le=function(){this.strings={nl:{ACCOUNT_DETAILS:"Accountgegevens",ACCOUNT_EXPLANATION:"Het e-mailadres en wachtwoord zijn nodig om toegang te krijgen tot de gegevens. Ook zullen we je via dit e-mailadres op de hoogte houden van de status van bestellingen.",ADDRESS:"Adres",ADDRESSES:"Adressen",ADDRESS_ADD:"Adres toevoegen",ADDRESS_CHANGE:"Adres wijzigen",ADD_DISCOUNTS:"Korting toevoegen",ALWAYS_SHOW_LOGISTICS_POPUP:"Controleer magazijn en commissiecode",ARTICLE:"Artikel",ARTICLE_IN_OUT_COLLECTION:"Status van artikel is '|~'. Weet u zeker dat u door wilt gaan?",ARTICLE_NR:"Artikelnummer",ASSEMBLY_COSTS:"Montagekosten",ASSEMBLY_DATE:"Montagedatum",AMOUNT:"Aantal",BACK:"Terug",CANCEL:"Annuleren",CANNOT_CHANGE_NEGATIVE_QUANTITY:"Een negatieve voorraad kan niet gewijzigd worden.",CHARACTERISTIC_QUESTION:"Kenmerkvraag",CHECK_WAREHOUSE_AND_COMMISSIONCODE:"Controleer magazijn en commissiecode.",CITY:"Stad",COMPANY:"Bedrijf",COMPANY_NAME:"Bedrijfsnaam",COMMISSION_CODE:"Commisiecode",CONTINUE:"Volgende",CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM:"U heeft gekozen voor het bestellen van artikelen terwijl er nog voorraad aanwezig is. Wilt u verdergaan?",CONTINUE_WITHOUT_ACCOUNT:"Ga door zonder account",COSTS:"Kosten",COUNTRY:"Land",CREATE_ACCOUNT:"Maak een account aan",CREATE_ACCOUNT_IN_2_MIN:"Maak binnen 2 minuten een account aan.",DATE_OF_BIRTH:"Geboortedatum",DELETE_TRANSACTION_LINE:"Transactieregel verwijderen?",DELETE_TRANSACTION_LINE_HINT:"Verwijder transactieregel",DELETE_TRANSACTION_LINE_FAILED:"Het verwijderen van de transactieregel is mislukt",DELIVERY:"Bezorging",DELIVERY_ADDRESS:"Afleveradres",DELIVERY_ADDRESS_ADD:"Bezorgadres toevoegen",DELIVERY_ADDRESS_CHANGE:"Bezorgadres wijzigen",DELIVERY_COSTS:"Bezorgkosten",DELIVERY_DATE:"Leverdatum",DELIVERY_DATE_FINAL:"Definitieve leverdatum",DELIVERY_DIRECT:"Direct leverbaar",DELIVERY_LOCATION:"Bezorgingslocatie",DELIVERY_OPTIONS:"Leveropties",DELIVERY_METHOD2:"Levermethode",DELIVERY_MOMENT:"Levermoment",DELIVERY_OPTARTICLE_NRIONS:"Bezorgopties",DELIVERY_TIME_PERIOD:"Levertijd",DESCRIPTION:"Omschrijving",DISCOUNT:"Korting",DISCOUNT_AMOUNT:"Kortingsbedrag",DISCOUNT_PERCENTAGE:"Kortings %",DROPSHIPMENT:"Dropshipment",EMAIL_ADDRESS:"E-mailadres",EXISTING_CUSTOMERS:"Bestaande klanten",FEMALE:"Vrouw",FIRST_NAME:"Voornaam",GOOD_DESCRIPTION:"Artikelomschrijving",HOUSE_NO:"Huisnummer",HOUSE_NO_ADDITION:"Huisnummer toevoeging",INVITE_TO_ACCOUNT:"Uitnodigen voor account",INVOICE_ADDRESS:"Factuuradres",INVOICE_ADDRESS_ADD:"Factuuradres toevoegen",INVOICE_ADDRESS_CHANGE:"Factuuradres wijzigen",LAST_NAME:"Achternaam",LINE_NEEDS_COMMISSION_CODE:"De commisiecode ontbreekt. Vul de commissiecode in.",LOGIN:"Inloggen",LOGIN_DETAILS:"Inloggegevens",MALE:"Man",MARKETING:"Marketing",NAME:"Naam",NETT:"Netto",NEW_AT:"Nieuw bij ",NEW_LOCATION:"Nieuwe locatie",NO_IMAGE:"Afbeelding niet beschikbaar",NOT_AFTER:"Niet later dan",NOT_BEFORE:"Niet eerder dan",NR:"Nummer",NUMBER:"Aantal",ON_DATE:"Op datum",OPEN_SHOPPING_CART:"Open winkelwagen",ORDER_GROSS:"Ordertotaal bruto",ORDER_NET:"Ordertotaal netto",ORDER_TYPE:"Type bestelling",OVERVIEW:"Overzicht",OWN_REFERENCE:"Eigen referentie",PART_DELIVERIES:"Deelleveringen",PASSWORD:"Wachtwoord",PAYMENT:"Betaling",PERSONAL_DATA:"Persoonlijke gegevens",PHONE_NO:"Telefoonnummer",POSTAL_CODE:"Postcode",PREFERRED_DATE:"Voorkeursdatum",PREFIX:"Tussenvoegsel",PRICE:"Prijs",PRICE_LIST:"Prijslijst",PRIVACY_PREFERENCES:"Privacyvoorkeuren",PRIVATE_PERSON:"Particulier",QUANTITY_CANNOT_BE_ZERO_OR_EMPTY:"Het aantal mag geen 0 zijn.",QUANTITY_CANNOT_BE_LESS_THAN_DELIVERED:"Het aantal moet gelijk zijn aan het geleverde aantal",QUANTITY_CANNOT_BE_MORE_THAN_DELIVERED:"Het aantal moet gelijk zijn aan het geleverde aantal",QUANTITY_CANNOT_BE_LESS_THAN_INVOICED:"Het aantal moet gelijk zijn aan de bestelde voorraad",QUANTITY_CANNOT_BE_MORE_THAN_INVOICED:"Het aantal moet gelijk zijn aan de bestelde voorraad",QUANTITY_CANNOT_BE_LESS_THAN_ALLOCATED:"Het aantal moet gelijk zijn aan dde toegewezen voorraad",QUANTITY_CANNOT_BE_MORE_THAN_ALLOCATED:"Het aantal moet gelijk zijn aan dde toegewezen voorraad",QUANTITY_CANNOT_BE_LESS_THAN_RECEIVED:"Het aantal moet gelijk zijn aan het aantal ontvangen.",QUANTITY_CANNOT_BE_MORE_THAN_RECEIVED:"Het aantal moet gelijk zijn aan het aantal ontvangen",QUANTUM_DISCOUNT:"Kwantumkorting",REFERENCE_RELATION:"Ref. relatie",REMARKS:"Opmerkingen",SALUTATION:"Aanhef",SAVE:"Opslaan",SELECT:"Selecteren",SHOPPING_CART:"Winkelwagen",SHOPPING_CART_CHECKOUT:"Bestellen",SHOPPING_CART_OVERVIEW:"Overzicht van uw bestelling",SHOPPING_CART_RESUME:"Verder winkelen",SPECIAL_DISCOUNT:"Speciale korting",STOCK:"Voorraad",STOCK_NOTIFICATION:"Voorraadmelding",STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE:"Er is voldoende voorraad. Verander magazijn en/of commissiecode",SUBTOTAL:"Subtotaal",SUGGESTIONS:"Suggesties",SURCHARGE_AMOUNT:"Toeslag",STREET:"Straatnaam",TOTAL_GROSS:"Totaal bruto",TOTAL_ASSEMBLY_TIME:"Totale montagetijd",TRANSACTION_DISCOUNT:"Totale transactie korting",TRANSACTION_DISCOUNT_PERC:"% Trans. korting",TRANSACTION_PRICE_DECLARATION:"Order prijsverklaring",TRANSACTION_TOTAL:"Transactie totaal",UNKNOWN:"Onbekend",UNKNOWN_ADDRESS_CHECK_IT:"Onbekend adres",VAT:"Btw",VALUE:"Waarde",WAREHOUSE:"Magazijn",YOUR_DATA:"Uw gegevens"},de:{},fr:{},en:{ACCOUNT_DETAILS:"Account details",ACCOUNT_EXPLANATION:"E-mailaddress and password are needed to gain access to the data. We also notify you on this e-mailaddress about the order status",ADDRESS:"Address",ADDRESSES:"Addresses",ADDRESS_ADD:"Add address",ADDRESS_CHANGE:"Change address",ADD_DISCOUNTS:"Add discount",ALWAYS_SHOW_LOGISTICS_POPUP:"Check warehouse and commissioncode",ARTICLE:"Article",ARTICLE_IN_OUT_COLLECTION:"Status of article is '|~'. Are you sure to proceed?",ARTICLE_NR:"Article number",ASSEMBLY_COSTS:"Assembly costs",ASSEMBLY_DATE:"Assembly date",AMOUNT:"Amount",BACK:"Back",CANCEL:"Cancel",CANNOT_CHANGE_NEGATIVE_QUANTITY:"A negative supply cannot be changed.",CHARACTERISTIC_QUESTION:"Characteristic question",CHECK_WAREHOUSE_AND_COMMISSIONCODE:"Check warehouse and commissioncode",CITY:"City",COMPANY:"Company",COMPANY_NAME:"Company name",COMMISSION_CODE:"Commission code",CONTINUE:"Next",CONTINUE_ORDER_WHILE_STOCK_AVAILABLE_PLEASE_CONFIRM:"You have chosen to order articles while stock is still available. Do you wish to proceed?",CONTINUE_WITHOUT_ACCOUNT:"Continue without an account",COSTS:"Costs",COUNTRY:"Country",CREATE_ACCOUNT:"Create an account",CREATE_ACCOUNT_IN_2_MIN:"Create an account in 2 minutes.",DATE_OF_BIRTH:"Date of birth",DELETE_TRANSACTION_LINE:"Delete transaction line verwijderen?",DELETE_TRANSACTION_LINE_HINT:"Delete transaction line",DELETE_TRANSACTION_LINE_FAILED:"Deletion of transaction line has failed",DELIVERY:"Delivery",DELIVERY_ADDRESS:"Delivery address",DELIVERY_ADDRESS_ADD:"Add delivery address",DELIVERY_ADDRESS_CHANGE:"Change delivery address",DELIVERY_COSTS:"Delivery costs",DELIVERY_DATE:"Delivery date",DELIVERY_DATE_FINAL:"Final delivery date",DELIVERY_DIRECT:"Direct delivery",DELIVERY_LOCATION:"Delivery location",DELIVERY_OPTIONS:"Delivery options",DELIVERY_METHOD2:"Delivery method",DELIVERY_MOMENT:"Delivery moment",DELIVERY_OPTARTICLE_NRIONS:"Delivery options",DELIVERY_TIME_PERIOD:"Delivery time period",DESCRIPTION:"Description",DISCOUNT:"Discount",DISCOUNT_AMOUNT:"Discount amount",DISCOUNT_PERCENTAGE:"Discount %",DROPSHIPMENT:"Dropshipment",EMAIL_ADDRESS:"E-mailadres",EXISTING_CUSTOMERS:"Existing customers",FEMALE:"Female",FIRST_NAME:"First name",GOOD_DESCRIPTION:"Article description",HOUSE_NO:"Housenumber",HOUSE_NO_ADDITION:"Housenumber addition",INVITE_TO_ACCOUNT:"Invite account",INVOICE_ADDRESS:"Invoice address",INVOICE_ADDRESS_ADD:"Add invoice address",INVOICE_ADDRESS_CHANGE:"Change invoice address",LAST_NAME:"Last name",LINE_NEEDS_COMMISSION_CODE:"Line needs a commission code",LOGIN:"Login",LOGIN_DETAILS:"Login details",MALE:"Male",MARKETING:"Marketing",NAME:"Name",NETT:"Net",NEW_AT:"New at ",NEW_LOCATION:"New location",NO_IMAGE:"No image available",NOT_AFTER:"Not after",NOT_BEFORE:"Not before",NR:"Number",NUMBER:"Amount",ON_DATE:"On date",OPEN_SHOPPING_CART:"Open shopping cart",ORDER_GROSS:"Total gross amount",ORDER_NET:"Total net amount",ORDER_TYPE:"Order type",OVERVIEW:"Overview",OWN_REFERENCE:"Own reference",PART_DELIVERIES:"Partial deliveries",PASSWORD:"Password",PAYMENT:"Payment",PERSONAL_DATA:"Personal data",PHONE_NO:"Telephone number",POSTAL_CODE:"postal code",PREFERRED_DATE:"Preferred date",PREFIX:"Prefix",PRICE:"Price",PRICE_LIST:"Pricelist",PRIVACY_PREFERENCES:"Privacy preferences",PRIVATE_PERSON:"Private",QUANTITY_CANNOT_BE_ZERO_OR_EMPTY:"Quantity cannot be zero or empty",QUANTUM_DISCOUNT:"Quantum discount",REFERENCE_RELATION:"Ref. relation",REMARKS:"Remarks",SALUTATION:"Salutation",SAVE:"Save",SELECT:"Select",SHOPPING_CART:"Shopping cart",SHOPPING_CART_CHECKOUT:"Checkout",SHOPPING_CART_OVERVIEW:"Order overview",SHOPPING_CART_RESUME:"Resume shopping",SPECIAL_DISCOUNT:"Special discount",STOCK:"Stock",STOCK_NOTIFICATION:"Stock notification",STOCK_AVAILABLE_CHANGE_WAREHOUSE_OR_COMMISSIONCODE:"Not enough supply. Change warehouse and/or commissioncode",SUBTOTAL:"Subtotal",SUGGESTIONS:"Suggestions",SURCHARGE_AMOUNT:"Surcharge",STREET:"Streetname",TOTAL_GROSS:"Gross total",TOTAL_ASSEMBLY_TIME:"Total assembly time",TRANSACTION_DISCOUNT:"Total transaction discount",TRANSACTION_DISCOUNT_PERC:"% Trans. discount",TRANSACTION_PRICE_DECLARATION:"Transaction price declaration",TRANSACTION_TOTAL:"Transaction total",UNKNOWN:"unknown",UNKNOWN_ADDRESS_CHECK_IT:"Unknown address",VALUE:"Value",VAT:"VAT",WAREHOUSE:"Warehouse",YOUR_DATA:"Your data"}}};e.ɵi=function(){function e(){this.dictionaryUrl="js/browser/res/dictionary/",this._dictionaries=new Map,this._placeholder="|~"}return Object.defineProperty(e.prototype,"language",{get:function(){return this._language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootUrl",{set:function(e){this._rootUrl=e,this._dictBasePath=this._rootUrl+"/"+this.dictionaryUrl},enumerable:!0,configurable:!0}),e.prototype.setDictionary=function(e){return re(this,void 0,void 0,(function(){var t;return ae(this,(function(n){return this._language=e||Ce.Dutch,this._dictionaries.has(this._language)||void 0!==(t=new Le).strings[this._language.substr(0,2).toLowerCase()]&&this._dictionaries.set(this._language,t.strings[this._language.substr(0,2).toLowerCase()]),[2]}))}))},e.prototype.get=function(e,t){void 0===t&&(t=!0);for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!ke.IsStringWithLength(e))return e||"";var o=this._dictionaries.get(this.language)[e];return o=ke.IsStringWithLength(o)?o:e,o=t?o.charAt(0).toUpperCase()+o.slice(1):o.charAt(0).toLowerCase()+o.slice(1),n.length>0&&(o=ke.ReplaceOccurrencesIn.apply(ke,le([o,this._placeholder],n))),o},e}(),e.ɵi=ie([t.Injectable()],e.ɵi),e.ɵl=function(){this.addToCartBySku=new n.Subject,this.addToCartBySelectorResult=new n.Subject,this.openShoppingCartModule=new n.Subject,this.loggedIn=new n.Subject,this.addNewUserToShoppingCartModule=new n.Subject,this.addUserRelationShoppingCartModule=new n.Subject},e.ɵl.ɵprov=te.ɵɵdefineInjectable({factory:function(){return new e.ɵl},token:e.ɵl,providedIn:"root"}),e.ɵl=ie([t.Injectable({providedIn:"root"})],e.ɵl),function(e){e[e.Overview=0]="Overview",e[e.Relation=1]="Relation",e[e.Delivery=2]="Delivery",e[e.Payment=3]="Payment",e[e.Printing=4]="Printing"}(Oe||(Oe={})),e.ɵd=function(){function e(){this.sequenceNr=1,this.startInEdit=!1,this.editMode=!1,this.editModeChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){this.startInEdit&&(this.editMode=!0)},e.prototype.startEdit=function(){this.editMode=!0,this.editModeChange.emit(this.editMode)},e.prototype.stopEdit=function(e){void 0===e&&(e=!0),this.editMode=!1,e&&this.editModeChange.emit(this.editMode)},e}(),ie([t.Input()],e.ɵd.prototype,"sequenceNr",void 0),ie([t.Input()],e.ɵd.prototype,"label",void 0),ie([t.Input()],e.ɵd.prototype,"startInEdit",void 0),ie([t.Output()],e.ɵd.prototype,"editModeChange",void 0),e.ɵd=ie([t.Component({selector:"checkout-overview-block",template:'\n <div class="overview-wrapper" fxLayout="column" fxLayoutGap="0px">\n <div class="overview-header" fxLayout="row">\n </div>\n <div class="overview-body" fxLayout="row" fxLayoutGap="20px">\n <ng-content select="[edit-mode-content]"></ng-content>\n </div>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]})],e.ɵd),e.ɵe=function(){function e(e,n){var i=this;this._changeDetector=e,this._transactionService=n,this.validSubmit=new t.EventEmitter,this.invalidSubmit=new t.EventEmitter,this.testje=!1,this.dateOfBirth=new Date,this.accountPassword="",this.hide=!0,this.gender=U.GenderType.Unspecified,this.emailAddress=new j.ContactOption,this.phoneNumber=new j.ContactOption,this.relationSuggestions=[],this.showRelationSidebar=!1,this.inviteToAccount=!1,this.relType=M.RelationNameKind,this.genderType=U.GenderType,this._relation=A.NULL_RELATION_OBJECT,this._relationNameChangeHandler=V.FunctionUtils.Throttle((function(){return i._relationNameChangedHandlerFn()}),600)}return Object.defineProperty(e.prototype,"relation",{get:function(){return this._relation},set:function(e){this._relation=e,this.preparePrimaryEmail(),this.preparePrimaryPhone()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"relationAsCustomer",{get:function(){return this._relation&&this._relation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editFirstAddress",{get:function(){if(this.firstAddress)return this.firstAddress;if(this._relation){var e=new H.Address;return e.addressType=z.AddressType.DeliveryAddress,e.startDate=new Date,e.sequence=this._relation.getNextAddressSequence(),this._relation.addresses.push(e),e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstAddress",{get:function(){if(this.relation&&this._relation.addresses.length)return this._relation.getFirstAvailableAddress([z.AddressType.DeliveryAddress,z.AddressType.BillingAddress,z.AddressType.VisitingAddress,z.AddressType.MailingAddress,z.AddressType.NursingAddress])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applicationUser",{get:function(){return this._transactionService.applicationUser},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this._relation.type=this.relType.Private,this._relation.gender=this.gender,[4,this.loadPrivacySettings()];case 1:return e.sent(),this._changeDetector.detectChanges(),[2]}}))}))},e.prototype.ngAfterViewInit=function(){this._changeDetector.detectChanges()},e.prototype.submit=function(){return this.relationForm.submit()},e.prototype.preparePrimaryEmail=function(){this._relation&&(this.emailAddress=this._relation.getLowestSequenceOfContactOptionsWithType(P.CommunicationType.Email),y.isNill(this.emailAddress)&&(this.emailAddress=new j.ContactOption,this.emailAddress.type=P.CommunicationType.Email,this.emailAddress.sequence=0,this._relation.addContactOption(this.emailAddress)),this._transactionService.emailAddress&&(this.emailAddress.value=this._transactionService.emailAddress))},e.prototype.preparePrimaryPhone=function(){this._relation&&(this.phoneNumber=this._relation.getLowestSequenceOfContactOptionsWithType(P.CommunicationType.Telephone),y.isNill(this.phoneNumber)&&(this.phoneNumber=new j.ContactOption,this.phoneNumber.type=P.CommunicationType.Telephone,this.phoneNumber.sequence=0,this._relation.addContactOption(this.phoneNumber)))},e.prototype.loadPrivacySettings=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=this,[4,this._transactionService.getRelationPrivacySettings()];case 1:return e.privacySettings=t.sent(),[2]}}))}))},e.prototype.loadMarketing=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this._transactionService.getMarketingCodes()];case 1:return e.sent(),[2]}}))}))},e.prototype.isShared=function(e){var t=B.BusinessObjectUtils.FindItemById(this.relationAsCustomer.relationPrivacySettings,e.getId());return!!t&&t.allowToShare},e.prototype.changeRelationType=function(e){this.relation.type=e},e.prototype.changeGenderType=function(e){this.relation.gender=e},e.prototype.firstNameChange=function(e){this._relation&&(this._relation.firstName=e),this._relationNameChangeHandler.call(this)},e.prototype.familyNameChange=function(e){this._relation&&(this._relation.familyName=e),this._relationNameChangeHandler.call(this)},e.prototype.onRelationSuggestionClick=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return e?(this.hideSidebar(),[4,this._transactionService.addRelationToTransaction(e.relationId)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.changePrivacySetting=function(e,t){var n=B.BusinessObjectUtils.FindItemById(this.relationAsCustomer.relationPrivacySettings,e.getId());n?n.allowToShare=t:this.relationAsCustomer.relationPrivacySettings.push(e)},e.prototype.showSidebar=function(){this.showRelationSidebar=!0,this._changeDetector.detectChanges(),this.relationSidebar&&this.relationSidebar.show()},e.prototype.hideSidebar=function(){this.showRelationSidebar=!1,this._changeDetector.detectChanges(),this.relationSidebar&&this.relationSidebar.hide()},e.prototype._relationNameChangedHandlerFn=function(){return re(this,void 0,void 0,(function(){var e,t,n,i;return ae(this,(function(o){switch(o.label){case 0:return e=p.ObjectUtils.ValueOrDefault(this._relation.firstName),t=p.ObjectUtils.ValueOrDefault(this._relation.familyName),e||t?((n={}).relationType=this._relation.relationType,e&&(n.firstName=e),t&&(n.familyName=t),this.showSidebar(),i=this,[4,this._transactionService.getRelationListObjects(n)]):(this.relationSuggestions=[],[2]);case 1:return i.relationSuggestions=o.sent(),[2]}}))}))},e}(),ie([t.ViewChild(F.FormComponent,{static:!0})],e.ɵe.prototype,"relationForm",void 0),ie([t.ViewChild(F.CoSidebarComponent,{static:!1})],e.ɵe.prototype,"relationSidebar",void 0),ie([t.Input()],e.ɵe.prototype,"relation",null),ie([t.Input()],e.ɵe.prototype,"transaction",void 0),ie([t.Output()],e.ɵe.prototype,"validSubmit",void 0),ie([t.Output()],e.ɵe.prototype,"invalidSubmit",void 0),e.ɵe=ie([t.Component({selector:"checkout-overview-relation-edit",template:'\n <co-form (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">\n <div>\n <label [textContent]="\'ACCOUNT_DETAILS\' | localize"\n class="checkout-label-h2"\n ></label>\n </div>\n <div>\n <label [textContent]="\'PERSONAL_DATA\' | localize"\n class="checkout-label-h3"\n ></label>7\n </div>\n <div>\n <div>\n <label [textContent]="\'ORDER_TYPE\' | localize "\n class="checkout-label-h3"\n ></label>\n </div>\n <div>\n <co-input-radio-button [name]="\'type\'"\n [label]="\'PRIVATE_PERSON\' | localize"\n [value]="relType.Private"\n [checked]="relation.type === relType.Private"\n (modelChange)="changeRelationType(relType.Private)"\n ></co-input-radio-button>\n <co-input-radio-button [name]="\'type\'"\n [label]="\'COMPANY\' | localize"\n [value]="relType.Company"\n [(model)]="relation.type"\n [checked]="relation.type === relType.Company"\n (modelChange)="changeRelationType(relType.Company)"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf="relation.type === relType.Private">\n <label [textContent]="\'SALUTATION\' | localize"\n class="checkout-label-h3"\n ></label>\n <div>\n <co-input-radio-button [name]="\'gender\'"\n [label]="\'MALE\' | localize"\n [value]="genderType.Male"\n [checked]="relation.gender === genderType.Male"\n (modelChange)="changeGenderType(genderType.Male)"\n ></co-input-radio-button>\n <co-input-radio-button [name]="\'gender\'"\n [label]="\'FEMALE\' | localize "\n [value]="genderType.Female"\n [checked]="relation.gender === genderType.Female"\n (modelChange)="changeGenderType(genderType.Female)"\n ></co-input-radio-button>\n <co-input-radio-button [name]="\'gender\'"\n [label]="\'UNKNOWN\' | localize"\n [value]="genderType.Unspecified"\n [checked]="relation.gender === genderType.Unspecified"\n (modelChange)="changeGenderType(genderType.Unspecified)"\n ></co-input-radio-button>\n </div>\n </div>\n <div *ngIf="relation.type === relType.Private">\n <div>\n <label [textContent]="\'NAME\' | localize "\n class="checkout-label-h3"\n ></label>\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text\n [(model)]="relation.firstName"\n [placeholder]="\'FIRST_NAME\' | localize "\n (modelChange)="firstNameChange($event)"\n required\n ></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text\n [(model)]="relation.prefix"\n [placeholder]="\'PREFIX\' | localize "\n ></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text\n [(model)]="relation.familyName"\n [placeholder]="\'LAST_NAME\' | localize"\n (modelChange)="familyNameChange($event)"\n required></co-input-text>\n </div>\n </div>\n </div>\n </div>\n <div >\n <div *ngIf="relation?.type === relType.Company" class="default-flex-column">\n <label [textContent]="\'COMPANY_NAME\' | localize "\n class="checkout-label-h3"\n ></label>\n <co-input-text [(model)]="relation.familyName" [label]="\'COMPANY_NAME\'" required></co-input-text>\n </div>\n </div>\n\n <div>\n <checkout-overview-relation-address\n label="DELIVERY_ADDRESS" [address]="editFirstAddress"\n ></checkout-overview-relation-address>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-date [placeholder]="\'DATE_OF_BIRTH\' | localize " [(model)]="dateOfBirth" required></co-input-date>\n </div>\n <div class="default-flex-column">\n <co-input-text [(model)]="phoneNumber.value" [placeholder]="\'PHONE_NO\' | localize " required></co-input-text>\n </div>\n </div>\n\n <div>\n <label [textContent]="\'LOGIN_DETAILS\' | localize "\n class="checkout-label-h3"\n ></label>\n </div>\n <div>\n <p>{{ \'ACCOUNT_EXPLANATION\' | localize }}</p>\n </div>\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text [(model)]="emailAddress.value" [placeholder]="\'EMAIL_ADDRESS\' | localize " [type]="\'email\'" required></co-input-text>\n </div>\n </div>\n\n <div class="default-flex-row">\n <div *ngIf="!applicationUser" class="default-flex-column">\n <co-input-text [(model)]="accountPassword" [placeholder]="\'PASSWORD\' | localize " [type]="\'password\'" required></co-input-text>\n </div>\n <div *ngIf="applicationUser" class="default-flex-column">\n <co-input-checkbox [label]="\'INVITE_TO_ACCOUNT\' | localize" [(model)]="inviteToAccount"></co-input-checkbox>\n </div>\n </div>\n\n <div>\n <label [textContent]="\'PRIVACY_PREFERENCES\' | localize "\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div *ngFor="let privacySetting of privacySettings">\n <div class="privacy-row">\n <div class="privacy-column-left">\n <co-input-checkbox [label]="privacySetting.description"\n [model]="isShared(privacySetting)"\n (modelChange)="changePrivacySetting(privacySetting, $event)"\n ></co-input-checkbox>\n </div>\n <div class="privacy-column-right">\n {{ privacySetting.explanation }}\n </div>\n </div>\n </div>\n </co-form>\n\n <co-sidebar #relationSidebar isOpen="false" *ngIf="showRelationSidebar">\n <div class="relation-sidebar-header">\n <label [textContent]="\'SUGGESTIONS\' | localize "\n class="checkout-label-h3"\n ></label>\n </div>\n <checkout-relation-suggestions-list\n [suggestions]="relationSuggestions"\n (suggestionButtonClick)="onRelationSuggestionClick($event)"\n ></checkout-relation-suggestions-list>\n </co-sidebar>\n\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}",".relation-sidebar-header{margin-left:5px}"]}),oe(0,t.Inject(t.ChangeDetectorRef)),oe(1,t.Inject(e.ɵf))],e.ɵe),e.ɵh=function(){function e(e,n,i){this.cdr=e,this._dictionaryService=n,this.service=i,this.deliveryAddressType=z.AddressType.DeliveryAddress,this.billingAddressType=z.AddressType.BillingAddress,this.validSubmit=new t.EventEmitter,this.invalidSubmit=new t.EventEmitter,this.deliveryOptionList=[],this.deliveryOptions=[],this.deliveryOptionFields={text:"description",value:"code"},this.deliveryMethods=[],this.deliveryMethodFields={text:"description",value:"code"},this.addLocationPopup=!1,this.changeLocationPopup=!1,this.preferredDateOptions=[{text:"NOT_AFTER",value:">"},{text:"NOT_BEFORE",value:"<"},{text:"ON_DATE",value:"="}],this.preferredDate=new Date,this.marketing=[],this.marketingFields={text:"description",value:"code"},this.addresses=[],this.columns=[],this.deliveryDateFinal=!1,this.assemblyDate=new Date,this.totalAssemblyTime="",this.dropshipment=!1,this.columns.push({field:"streetName",headerText:this._dictionaryService.get("STREET")},{field:"houseNo",headerText:this._dictionaryService.get("HOUSE_NO")},{field:"houseNoAddition",headerText:this._dictionaryService.get("HOUSE_NO_ADDITION")},{field:"postalCode",headerText:this._dictionaryService.get("POSTAL_CODE"),allowFiltering:!1},{field:"city",headerText:this._dictionaryService.get("CITY")})}return Object.defineProperty(e.prototype,"billingAddress",{get:function(){return void 0===this.transaction.invoiceAddress&&this.relation&&this.relation.firstBillingAddress&&this.relation.firstBillingAddress.isNotEmptyAddress()&&(this.transaction.invoiceAddress=this.relation.firstBillingAddress,this._setCountryNameToAddress(this.transaction.invoiceAddress).then()),this.transaction.invoiceAddress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deliveryAddress",{get:function(){return void 0===this.transaction.transactionAddress&&this.relation&&this.relation.firstDeliveryAddress&&this.relation.firstDeliveryAddress.isNotEmptyAddress()&&(this.transaction.transactionAddress=this.relation.firstDeliveryAddress,this._setCountryNameToAddress(this.transaction.transactionAddress).then()),this.transaction.transactionAddress},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deliveryDate",{get:function(){return void 0===this.transaction.deliveryDate&&(this.transaction.deliveryDate=new Date),this.transaction.deliveryDate},set:function(e){this.transaction.deliveryDate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preferredDeliveryDate",{get:function(){return void 0===this.transaction.preferredDeliveryDate&&(this.transaction.preferredDeliveryDate=new Date),this.transaction.preferredDeliveryDate},set:function(e){this.transaction.preferredDeliveryDate=e},enumerable:!0,configurable:!0}),e.prototype.newRelationAddress=function(){if(this.relation){var e=new H.Address;return e.addressType=z.AddressType.DeliveryAddress,e.startDate=new Date,e.sequence=this.relation.getNextAddressSequence(),this.relation.addresses.push(e),e}},e.prototype.ngOnInit=function(){return re(this,void 0,void 0,(function(){var e,t,n;return ae(this,(function(i){switch(i.label){case 0:return this.transaction&&(void 0!==this.transaction.transactionAddress||this.deliveryAddress||(this.transaction.transactionAddress=this.deliveryAddress),void 0!==this.transaction.invoiceAddress||this.billingAddress||(this.transaction.invoiceAddress=this.billingAddress)),this.deliveryCosts=this.calculateDeliveryCosts(),this.assemblyCosts=this.calculateAssemblyCosts(),e=this,[4,this.service.getDeliveryMethods()];case 1:return e.deliveryMethods=i.sent(),t=this,[4,this.service.getDeliveryOptions()];case 2:return t.deliveryOptionList=i.sent(),n=this,[4,this.service.getMarketingCodes()];case 3:return n.marketing=i.sent(),[4,this.onDeliveryMethodChange(this.transaction.deliveryMethod)];case 4:return i.sent(),[2]}}))}))},e.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},e.prototype.submit=function(){return this.deliveryForm.submit()},e.prototype.onDeliveryMethodChange=function(e){return re(this,void 0,void 0,(function(){var t;return ae(this,(function(n){return t=this.selectDeliveryMethodById(e),this.transaction.deliveryMethod=e,t.length&&(this.deliveryOptions=this.selectDeliveryOptionsByDeliveryMethod(t[0]),this.transaction.deliveryOptions=[],this.deliveryOptions.length&&this.transaction.deliveryOptions.push(this.deliveryOptions[0].code)),[2]}))}))},e.prototype.selectDeliveryOptionsByDeliveryMethod=function(e){return this.deliveryOptionList.filter((function(t){return-1!==e.deliveryOptions.indexOf(t.code)}))},e.prototype.selectDeliveryMethodById=function(e){return this.deliveryMethods.filter((function(t){return t.code===e}))},e.prototype.changeAddress=function(e){this._addressType=e,this.addresses=this.relation.addresses,this.changeLocationPopup=!0},e.prototype.saveNewLocation=function(){this.locationForm.submit()},e.prototype.saveLocation=function(){this.addLocation(),this.changeLocationPopup=!1},e.prototype.addLocation=function(){this.updateAddress(this.newAddress).then(),this.relation.addresses.push(this.newAddress),this.service.saveRelation().then(),this.addLocationPopup=!1},e.prototype.updateAddress=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return this._addressType===z.AddressType.DeliveryAddress?this.transaction.transactionAddress=e:this.transaction.invoiceAddress=e,[4,this._setCountryNameToAddress(e)];case 1:return t.sent(),[2]}}))}))},e.prototype.isDeliveryOptionChecked=function(e){return 0===this.transaction.deliveryOptions.indexOf(e.code,0)},e.prototype.changePreferredDeliveryDate2=function(e){this.transaction.preferredDeliveryDate2=e},e.prototype.onMarketingCodeChange=function(e){this.transaction.marketingCode=e},e.prototype.onChangeLocationCancelClick=function(){this.changeLocationPopup=!1},e.prototype.onAddLocationOkClick=function(){this._addAddress(this._addressType),this.addLocationPopup=!0},e.prototype.handleAddressSelected=function(e){this.selectedAddress=e.find((function(e){return void 0!==e})),this.updateAddress(this.selectedAddress),this.changeLocationPopup=!1},e.prototype.calculateDeliveryCosts=function(){return 0},e.prototype.calculateAssemblyCosts=function(){return 0},e.prototype._addAddress=function(e){this.newAddress=new H.Address,this.newAddress.addressType=e,this.newAddress.startDate=new Date,this.newAddress.sequence=this.relation.getNextAddressSequence()},e.prototype._setCountryNameToAddress=function(e){return re(this,void 0,void 0,(function(){var t;return ae(this,(function(n){switch(n.label){case 0:return!e.countryId||e.countryName?[3,2]:[4,this.service.getCountry(e.countryId)];case 1:t=n.sent(),e.countryName=t.description,n.label=2;case 2:return[2]}}))}))},e}(),ie([t.ViewChild("deliveryForm",{read:F.FormComponent})],e.ɵh.prototype,"deliveryForm",void 0),ie([t.ViewChild("locationForm",{read:F.FormComponent})],e.ɵh.prototype,"locationForm",void 0),ie([t.ViewChild("changeLocationDialog")],e.ɵh.prototype,"changeLocationDialog",void 0),ie([t.ViewChild("addressGrid")],e.ɵh.prototype,"addressGrid",void 0),ie([t.Input()],e.ɵh.prototype,"relation",void 0),ie([t.Input()],e.ɵh.prototype,"transaction",void 0),ie([t.Output()],e.ɵh.prototype,"validSubmit",void 0),ie([t.Output()],e.ɵh.prototype,"invalidSubmit",void 0),e.ɵh=ie([t.Component({selector:"checkout-overview-delivery-edit",template:'\n <co-form #deliveryForm (validSubmit)="validSubmit.emit()" (invalidSubmit)="invalidSubmit.emit()">\n <div>\n <div>\n <label [textContent]="\'DELIVERY\' | localize"\n class="checkout-label-h2"\n ></label>\n </div>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <label [textContent]="\'DELIVERY_ADDRESS\' | localize"\n class="checkout-label-h3"\n ></label>\n <checkout-overview-delivery-address [address]="deliveryAddress"></checkout-overview-delivery-address>\n <div class="container-button-change-address">\n <co-button [label]="\'DELIVERY_ADDRESS_CHANGE\' | localize" (click)="changeAddress(deliveryAddressType)"></co-button>\n </div>\n </div>\n\n <div class="default-flex-column">\n <label [textContent]="\'INVOICE_ADDRESS\' | localize"\n class="checkout-label-h3"\n ></label>\n <checkout-overview-delivery-address [address]="billingAddress"></checkout-overview-delivery-address>\n <div class="container-button-change-address">\n <co-button [label]="\'INVOICE_ADDRESS_CHANGE\' | localize" (click)="changeAddress(billingAddressType)"></co-button>\n </div>\n </div>\n </div>\n\n <div>\n <label [textContent]="\'DELIVERY_MOMENT\' | localize"\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-date [placeholder]="\'DELIVERY_DATE\' | localize " [(model)]="deliveryDate"></co-input-date>\n <co-input-checkbox [label]="\'PART_DELIVERIES\' | localize" [(model)]="transaction.allowPartialDelivery"></co-input-checkbox>\n </div>\n <div class="default-flex-column">\n <co-input-date [placeholder]="\'PREFERRED_DATE\' | localize " [(model)]="preferredDate"></co-input-date>\n <ng-container *ngFor="let preferredDateOption of preferredDateOptions">\n <co-input-radio-button [name]="\'preferedDeliveryDate2\'"\n [label]="preferredDateOption.text | localize"\n [value]="preferredDateOption.value"\n [checked]="transaction.preferredDeliveryDate2 === preferredDateOption.value"\n (modelChange)="changePreferredDeliveryDate2(preferredDateOption.value)"\n ></co-input-radio-button>\n </ng-container>\n </div>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-combo-box [(model)]="transaction.deliveryMethod"\n [source]="deliveryMethods"\n [fields]="deliveryMethodFields"\n [placeholder]="\'DELIVERY_METHOD2\' | localize"\n [required]="true"\n (modelChange)="onDeliveryMethodChange($event)"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div>\n <label [textContent]="\'DELIVERY_OPTIONS\' | localize"\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-multi-select-list\n [placeHolder]="\'DELIVERY_OPTIONS\' | localize"\n [collection]="deliveryOptions"\n [fields]="deliveryOptionFields"\n [(model)]="transaction.deliveryOptions"\n [showCheckbox]="true"\n [required]="true"\n ></co-multi-select-list>\n </div>\n </div>\n\n <div class="">\n <label [textContent]="\'REMARKS\' | localize"\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text [(model)]="transaction.remark" [placeholder]="\'REMARKS\' | localize"></co-input-text>\n </div>\n </div>\n\n <div class="default-flex-column">\n <co-input-checkbox [label]="\'DELIVERY_DATE_FINAL\' | localize" [(model)]="deliveryDateFinal"></co-input-checkbox>\n </div>\n <div class="default-flex-column">\n <co-input-date [placeholder]="\'ASSEMBLY_DATE\' | localize " [(model)]="assemblyDate"></co-input-date>\n </div>\n <div class="default-flex-column">\n <co-input-text [placeholder]="\'TOTAL_ASSEMBLY_TIME\' | localize " [(model)]="totalAssemblyTime"></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-checkbox [label]="\'DROPSHIPMENT\' | localize" [(model)]="dropshipment"></co-input-checkbox>\n </div>\n\n <div class="default-flex-row">\n <div>\n <label [textContent]="\'DELIVERY_COSTS\' | localize"\n class="checkout-label-h3"\n ></label>\n <div>{{ deliveryCosts }}</div>\n </div>\n <div>\n <label [textContent]="\'ASSEMBLY_COSTS\' | localize"\n class="checkout-label-h3"\n ></label>\n <div>{{ assemblyCosts }}</div>\n </div>\n </div>\n\n <div>\n <label [textContent]="\'MARKETING\' | localize"\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-combo-box [(model)]="transaction.marketingCode"\n [source]="marketing"\n [fields]="marketingFields"\n [placeholder]="\'MARKETING\' | localize"\n [required]="true"\n (modelChange)="onMarketingCodeChange($event)"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text [(model)]="transaction.relationReference" [placeholder]="\'REFERENCE_RELATION\' | localize"></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text [(model)]="transaction.ownReference" [placeholder]="\'OWN_REFERENCE\' | localize"></co-input-text>\n </div>\n </div>\n\n </co-form>\n\n <co-dialog [visible]="addLocationPopup">\n <ng-container header>{{ \'NEW_LOCATION\' | localize }}</ng-container>\n <co-form #locationForm (validSubmit)="saveLocation()">\n <checkout-overview-relation-address\n label="ADDRESS" [address]="newAddress"\n ></checkout-overview-relation-address>\n <div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="end">\n <co-button [label]="\'CANCEL\' | localize" (click)="addLocationPopup = false;"></co-button>\n <co-button [label]="\'SAVE\' | localize" (click)="saveNewLocation()"></co-button>\n </div>\n </co-form>\n </co-dialog>\n\n <co-dialog #changeLocationDialog\n [visible]="changeLocationPopup"\n (closeClick)="onChangeLocationCancelClick()"\n (overlayClick)="onChangeLocationCancelClick()"\n >\n <ng-container header>{{ \'ADDRESS\' | localize }}</ng-container>\n <co-form>\n <div class="form-content">\n <div>\n <co-grid #addressGrid\n [data]="addresses"\n [columns]="columns"\n [pagingEnabled]="\'true\'"\n [maxNumberOfRows]="\'20\'"\n (rowsSelected)="handleAddressSelected($event)"\n ></co-grid>\n </div>\n </div>\n <div class="flex-center" fxLayoutGap="10px">\n <co-button [label]="\'ADDRESS_ADD\' | localize" (click)="onAddLocationOkClick()"></co-button>\n <co-button [label]="\'CANCEL\' | localize" (click)="onChangeLocationCancelClick()"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}",".container-button-change-address{margin-top:5px}"]}),oe(0,t.Inject(t.ChangeDetectorRef)),oe(1,t.Inject(e.ɵi)),oe(2,t.Inject(e.ɵf))],e.ɵh),e.ɵc=function(){function e(){this.steps=Oe,this.relation=A.NULL_RELATION_OBJECT,this.userIsApplicationUser=!1,this.saveRelation=new t.EventEmitter,this.saveDelivery=new t.EventEmitter,this.savePayment=new t.EventEmitter,this.stepFinished=new t.EventEmitter,this.loginRequested=!1,this.currentStep=Oe.Relation,this.editMode=!0,this._subscriptions=[]}return e.prototype.ngOnInit=function(){this.transaction&&this.transaction.relation&&this.moveToStep(Oe.Relation)},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.handleEditChangeRelation=function(e){this.editMode=e,e||this.currentStep!==Oe.Relation&&this.saveRelation.emit()},e.prototype.onRelationValid=function(){this.saveRelation.emit()},e.prototype.onRelationInvalid=function(){this.editMode=!0,this.relationBlock.startEdit()},e.prototype.onDeliveryValid=function(){this.saveDelivery.emit()},e.prototype.handleEditChangeDelivery=function(e){this.editMode=e,e||this.currentStep!==Oe.Delivery||this.saveDelivery.emit()},e.prototype.handleEditChangePayment=function(e){this.savePayment.emit()},e.prototype.moveToStep=function(e,t){if(void 0===t&&(t=!1),this.currentStep=e,t&&this.isRelation())switch(e){case Oe.Relation:return this.startEditRelationBlock(),this.stopEditDeliveryBlock(),void this.stopEditPaymentBlock();case Oe.Delivery:return this.stopEditRelationBlock(),this.startEditDeliveryBlock(),void this.stopEditPaymentBlock();case Oe.Payment:return this.stopEditRelationBlock(),this.stopEditDeliveryBlock(),void this.startEditPaymentBlock()}},e.prototype.startEditRelationBlock=function(){void 0!==this.relationBlock&&this.relationBlock.startEdit()},e.prototype.startEditDeliveryBlock=function(){},e.prototype.startEditPaymentBlock=function(){},e.prototype.stopEditRelationBlock=function(){void 0!==this.relationBlock&&this.relationBlock.stopEdit(!1)},e.prototype.stopEditDeliveryBlock=function(){},e.prototype.stopEditPaymentBlock=function(){},e.prototype.isRelation=function(){return this.relation!==A.NULL_RELATION_OBJECT},e}(),ie([t.ViewChild("relationBlock",{read:e.ɵd})],e.ɵc.prototype,"relationBlock",void 0),ie([t.ViewChild("relationForm",{read:e.ɵe})],e.ɵc.prototype,"relationForm",void 0),ie([t.ViewChild("deliveryBlock",{read:e.ɵd})],e.ɵc.prototype,"deliveryBlock",void 0),ie([t.ViewChild("deliveryForm",{read:e.ɵh})],e.ɵc.prototype,"deliveryForm",void 0),ie([t.Input()],e.ɵc.prototype,"relation",void 0),ie([t.Input()],e.ɵc.prototype,"transaction",void 0),ie([t.Input()],e.ɵc.prototype,"userIsApplicationUser",void 0),ie([t.Output()],e.ɵc.prototype,"saveRelation",void 0),ie([t.Output()],e.ɵc.prototype,"saveDelivery",void 0),ie([t.Output()],e.ɵc.prototype,"savePayment",void 0),ie([t.Output()],e.ɵc.prototype,"stepFinished",void 0),e.ɵc=ie([t.Component({selector:"checkout-overview",template:'\n <checkout-overview-block #relationBlock sequenceNr="2" label="YOUR_DATA"\n *ngIf="currentStep === steps.Relation"\n (editModeChange)="handleEditChangeRelation($event)">\n <ng-container edit-mode-content>\n <checkout-overview-relation-edit #relationForm\n *ngIf="currentStep == steps.Relation && editMode"\n [relation]="relation"\n [transaction]="transaction"\n (validSubmit)="onRelationValid()"\n (invalidSubmit)="onRelationInvalid()"\n ></checkout-overview-relation-edit>\n </ng-container>\n </checkout-overview-block>\n\n <checkout-overview-block #deliveryBlock sequenceNr="3" label="DELIVERY"\n [hidden]="currentStep !== steps.Delivery"\n (editModeChange)="handleEditChangeDelivery($event)">\n <ng-container edit-mode-content>\n <checkout-overview-delivery-edit #deliveryForm\n [hidden]="currentStep !== steps.Delivery"\n [relation]="relation"\n [transaction]="transaction"\n (validSubmit)="onDeliveryValid()"\n ></checkout-overview-delivery-edit>\n </ng-container>\n </checkout-overview-block>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]})],e.ɵc),e.ɵb=Ee=function(){function e(e,t){this.service=e,this.promptService=t,this.completedRelation=!1,this.completedDelivery=!1,this._relation=A.NULL_RELATION_OBJECT}return Object.defineProperty(e.prototype,"relation",{get:function(){return this.service.currentRelation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transaction",{get:function(){return this.service.currentTransaction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canContinue",{get:function(){return this.stepper&&(0!==this.stepper.selectedIndex||!y.isNill(this.relation))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finished",{get:function(){return this.stepper&&this.stepper.steps&&this.stepper.selectedIndex===this.stepper.steps.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userIsApplicationUser",{get:function(){return!0},enumerable:!0,configurable:!0}),e._currentStepByIndex=function(e){switch(e){case 0:return Oe.Relation;case 1:return Oe.Delivery;case 2:return Oe.Payment;default:return Oe.Overview}},e.prototype.continue=function(){var e=!1;Ee._currentStepByIndex(this.stepper.selectedIndex)===Oe.Relation&&(e=this.overview.relationForm.submit(),this.completedRelation=e,this.completedDelivery=!1),Ee._currentStepByIndex(this.stepper.selectedIndex)===Oe.Delivery&&(e=this.overview.deliveryForm.submit(),this.completedDelivery=e),this.stepper&&e&&(this.stepper.selected.completed=!0,this.stepper.next())},e.prototype.previous=function(){this.stepper&&this.stepper.previous()},e.prototype.stepFinished=function(){this.continue()},e.prototype.handleSaveRelation=function(){var e=this;this.saveNewRelation().then((function(){e.service.saveTransaction()}))},e.prototype.handleSaveDelivery=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){return[2,new Promise((function(t,n){e.service.setTransactionDeliveryOptions().then((function(n){return re(e,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return n?[4,this.service.saveTransaction().then()]:[3,2];case 1:return e.sent(),[3,4];case 2:return[4,this.promptService.showError("Opslag bezorging mislukt"," ")];case 3:e.sent(),e.label=4;case 4:return t(!0),[2]}}))}))})).catch((function(t){e.promptService.showError("Opslag transactie mislukt"," ")}))}))]}))}))},e.prototype.saveNewRelation=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return y.isNill(this.service.currentRelation.relationId)?[4,this.service.saveNewRelation()]:[3,2];case 1:return e.sent(),[3,4];case 2:return[4,this.service.saveRelation()];case 3:e.sent(),e.label=4;case 4:return[2]}}))}))},e.prototype.stepChanged=function(e){this.overview.moveToStep(Ee._currentStepByIndex(e.selectedIndex),!0)},e.prototype.insertData=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return[4,this.service.insertCustomer(this.relation)];case 1:return e.sent(),[2]}}))}))},e.prototype.updateData=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=this.relation,[4,this.service.updateCustomer(e)];case 1:return t.sent(),[2]}}))}))},e}(),ie([t.ViewChild(e.ɵc)],e.ɵb.prototype,"overview",void 0),ie([t.ViewChild("stepper")],e.ɵb.prototype,"stepper",void 0),e.ɵb=Ee=ie([t.Component({selector:"app-checkout",template:'\n <div class="checkout-viewport">\n <mat-horizontal-stepper #stepper\n [linear]="true" labelPosition="bottom"\n (selectionChange)="stepChanged($event)">\n <mat-step [label]="\'YOUR_DATA\' | localize" [completed]="completedRelation"></mat-step>\n <mat-step [label]="\'DELIVERY\' | localize" [completed]="completedDelivery"></mat-step>\n <mat-step [label]="\'PAYMENT\' | localize"></mat-step>\n <mat-step [label]="\'OVERVIEW\' | localize"></mat-step>\n </mat-horizontal-stepper>\n <checkout-overview [relation]="relation"\n [transaction]="transaction"\n [userIsApplicationUser]="userIsApplicationUser"\n (saveRelation)="handleSaveRelation()"\n (saveDelivery)="handleSaveDelivery()"\n (stepFinished)="stepFinished()"></checkout-overview>\n <div class="step-content-customer"></div>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]}),oe(0,t.Inject(e.ɵf)),oe(1,t.Inject(F.PromptService))],e.ɵb),e.ɵa=function(){function e(e){this.service=e}return Object.defineProperty(e.prototype,"canPrevious",{get:function(){var e;return this.checkout&&0!==(null===(e=this.checkout.stepper)||void 0===e?void 0:e.selectedIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canContinue",{get:function(){var e;return this.checkout&&3!==(null===(e=this.checkout.stepper)||void 0===e?void 0:e.selectedIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"started",{get:function(){var e;return this.checkout&&0===(null===(e=this.checkout.stepper)||void 0===e?void 0:e.selectedIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finished",{get:function(){return this.checkout&&this.checkout.finished},enumerable:!0,configurable:!0}),e.prototype.continueCheckout=function(){this.checkout.continue()},e.prototype.previousCheckout=function(){this.checkout.previous()},e}(),ie([t.ViewChild(e.ɵb,{static:!0})],e.ɵa.prototype,"checkout",void 0),e.ɵa=ie([t.Component({selector:"app-retail-transaction-checkout",template:'\n <ng-container [ngTemplateOutlet]="content"></ng-container>\n <app-checkout class="checkout"></app-checkout>\n <ng-container [ngTemplateOutlet]="content"></ng-container>\n <ng-template #content>\n <div class="checkout-retail-viewport checkout-row-end">\n <co-button [label]="\'BACK\'| localize" [disabled]="!canPrevious" (click)="previousCheckout()"></co-button>\n <co-button [label]="\'CONTINUE\'| localize" [disabled]="!canContinue" (click)="continueCheckout()"></co-button>\n </div>\n </ng-template>\n ',styles:[".checkout-retail-viewport{max-width:60%;margin-left:20%}.checkout-row-end{display:flex;flex-direction:row;-moz-column-gap:10px;column-gap:10px;justify-content:flex-end}"]}),oe(0,t.Inject(e.ɵf))],e.ɵa),e.ɵj=function(){function e(){this.createNewAccountSubmit=new t.EventEmitter,this.continueWithoutSubmit=new t.EventEmitter,this.loginSubmit=new t.EventEmitter,this.userEmailAddress="",this.userNewEmailAddress="",this.userPassword="",this.continueWithoutAccount=!1,this.company="<bedrijf>"}return e.prototype.ngOnInit=function(){},e.prototype.login=function(){this.loginSubmit.emit()},e.prototype.submit=function(){this.loginForm.submit()},e.prototype.createAccountSubmit=function(){this.accountForm.submit()},e.prototype.continueSubmit=function(){this.continueWithoutAccount=!0,this.accountForm.submit()},e.prototype.accountLogin=function(){this.continueWithoutAccount?this.continueWithoutSubmit.emit():this.createNewAccountSubmit.emit()},e}(),ie([t.ViewChild("loginForm")],e.ɵj.prototype,"loginForm",void 0),ie([t.ViewChild("accountForm")],e.ɵj.prototype,"accountForm",void 0),ie([t.Output()],e.ɵj.prototype,"createNewAccountSubmit",void 0),ie([t.Output()],e.ɵj.prototype,"continueWithoutSubmit",void 0),ie([t.Output()],e.ɵj.prototype,"loginSubmit",void 0),e.ɵj=ie([t.Component({selector:"checkout-login",template:'\n <h1>{{ "LOGIN" | localize}}</h1>\n <div class="users">\n <co-form #loginForm (validSubmit)="login()">\n <div class="existing-user">\n <p><strong>{{ "EXISTING_CUSTOMERS" | localize }}</strong></p>\n <co-input-text\n [(model)]="userEmailAddress"\n [placeholder]="\'EMAIL_ADDRESS\' | localize "\n [type]="\'email\'"\n required\n ></co-input-text>\n\n <co-input-text\n [(model)]="userPassword"\n [placeholder]="\'PASSWORD\' | localize "\n [type]="\'password\'"\n required\n ></co-input-text>\n <div class="login-button">\n <co-button\n [label]="\'LOGIN\' | localize" (click)="submit()"\n ></co-button>\n </div>\n </div>\n </co-form>\n\n <co-form #accountForm (validSubmit)="accountLogin()">\n <div class="new-user">\n <p class="boxedbottom">\n <strong>{{ "NEW_AT" | localize}}{{company}}</strong>\n <br/>{{ "CREATE_ACCOUNT_IN_2_MIN" | localize }}\n </p>\n <div class="new-user-e-mail">\n <co-input-text\n [(model)]="userNewEmailAddress"\n [placeholder]="\'EMAIL_ADDRESS\' | localize "\n [type]="\'email\'"\n required\n ></co-input-text>\n </div>\n <div class="login-button">\n <co-button\n [label]="\'CREATE_ACCOUNT\' | localize"\n (click)="createAccountSubmit()"\n ></co-button>\n <co-button\n [label]="\'CONTINUE_WITHOUT_ACCOUNT\' | localize"\n (click)="continueSubmit()"\n ></co-button>\n </div>\n </div>\n </co-form>\n </div>\n ',styles:[".users{display:flex;flex-direction:row}.users co-form{width:50%}.existing-user{padding-right:2rem;margin-bottom:0;border-right:1px solid #aaa}.new-user{padding-left:2rem}.new-user-e-mail{padding-top:2.6rem}.boxedbottom{margin-bottom:.5rem}.login-button{display:flex;margin-top:10px}.login-button co-button{margin-right:10px}"]})],e.ɵj),e.IoneCheckoutComponent=function(){function e(e,t,n,i,o,r,a,s){var c=this;this._changeDetector=e,this._optionsService=t,this._connector=n,this._dictionary=i,this._service=o,this.transactionEvents=r,this._promptService=a,this.globalEvents=s,this.upAndLoaded=!1,this.show=!1,this.loggedIn=!1,this._subscriptions=[],this._remoteOptions=!0,this._publicOptions=!0,this._applicationUser=!1,this._subscriptions.push(this._optionsService.optionsLoaded.subscribe((function(e){return c._handleSettingsLoaded(e)}))),this._subscriptions.push(this.transactionEvents.loggedIn.subscribe((function(){c.loggedIn=!0})))}return Object.defineProperty(e.prototype,"options",{set:function(e){if(e){var t=void 0;t="string"==typeof e?JSON.parse(e):e,this._publicOptions=!0,this._optionsService.initialize(t).then()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applicationUser",{get:function(){return this._applicationUser},set:function(e){this._applicationUser=e,this._service.applicationUser=this.applicationUser},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transactionNr",{get:function(){return this._service.currentTransaction.transactionNr},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._publicOptions||this._optionsService.initializeDevelopmentOptions(this._remoteOptions)},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype._handleSettingsLoaded=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return e?[4,this._initConnection().then()]:[3,2];case 1:t.sent(),this.upAndLoaded=!0,t.label=2;case 2:return[2]}}))}))},e.prototype._initConnection=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.connect(this._optionsService.options)];case 1:return t.sent(),this._optionsService.options.url&&(this._dictionary.rootUrl=this._optionsService.options.url.replace("/ajaxservice","")),[4,this._dictionary.setDictionary(this._optionsService.options.languageCode)];case 2:return t.sent(),setTimeout((function(){e._changeDetector.detectChanges()})),[2]}}))}))},e.prototype.loginSubmit=function(){this.globalEvents.addUserRelationShoppingCartModule.next({user:this.checkoutLogin.userEmailAddress,pw:this.checkoutLogin.userPassword}),this.loggedIn=!0},e.prototype.continueWithoutAccount=function(){this.closeLogin(),this.loggedIn=!0,this.transactionEvents.addNewUserToShoppingCartModule.next(this.checkoutLogin.userNewEmailAddress)},e.prototype.createNewAccount=function(){this.closeLogin(),this.transactionEvents.addNewUserToShoppingCartModule.next(this.checkoutLogin.userNewEmailAddress)},e.prototype.closeLogin=function(){this.loggedIn=!0,this.show=!0},e}(),ie([t.ViewChild(e.ɵa)],e.IoneCheckoutComponent.prototype,"retailCheckout",void 0),ie([t.ViewChild(e.ɵj)],e.IoneCheckoutComponent.prototype,"checkoutLogin",void 0),ie([t.Input()],e.IoneCheckoutComponent.prototype,"options",null),ie([t.Input()],e.IoneCheckoutComponent.prototype,"applicationUser",null),e.IoneCheckoutComponent=ie([t.Component({selector:"ione-checkout",template:'\n <ng-container *ngIf="show && (applicationUser || loggedIn)">\n <app-retail-transaction-checkout></app-retail-transaction-checkout>\n </ng-container>\n\n\n <div *ngIf="show && !applicationUser && !loggedIn">\n <checkout-login\n #checkoutLogin\n (continueWithoutSubmit)="continueWithoutAccount()"\n (createNewAccountSubmit)="createNewAccount()"\n ></checkout-login>\n </div>\n '}),oe(0,t.Inject(t.ChangeDetectorRef)),oe(1,t.Inject(e.ɵk)),oe(2,t.Inject(e.ɵg)),oe(3,t.Inject(e.ɵi)),oe(4,t.Inject(e.ɵf)),oe(5,t.Inject(e.ɵl)),oe(6,t.Inject(F.PromptService)),oe(7,t.Inject(e.ɵl))],e.IoneCheckoutComponent),e.ɵm=function(){function e(e,t){this._dictionary=e,this._connector=t,this.countries=[],this.fields={text:"description",value:"code"},this.postalCodeCheckErrorMessage="",this._prevPostalCodeForCheck=""}return Object.defineProperty(e.prototype,"address",{get:function(){return void 0===this._address&&(this._address=new H.Address),this._address},set:function(e){this._address=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=this,[4,this._connector.getCountries()];case 1:return e.countries=t.sent(),[2]}}))}))},e.prototype.checkForPostalCodeCheckError=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return!this.address.postalCode||y.isNill(this.address.houseNo)?(this.postalCodeCheckErrorMessage="",[2]):this._prevPostalCodeForCheck===this.address.postalCode&&this._prevHouseNoForCheck===this.address.houseNo?[3,2]:(this._prevPostalCodeForCheck=this.address.postalCode,this._prevHouseNoForCheck=this.address.houseNo,[4,this._connector.getPostalCodeRetrieval(this.address.postalCode?this.address.postalCode:"",ke.ParseString(this.address.houseNo))]);case 1:(e=t.sent())&&e.isBadAddress?this.postalCodeCheckErrorMessage=this._dictionary.get("UNKNOWN_ADDRESS_CHECK_IT"):(this.postalCodeCheckErrorMessage="",this.address.streetName=e.street,this.address.city=e.city),t.label=2;case 2:return[2]}}))}))},e.prototype.changeHouseNo=function(){this.address.houseNo=Number(this.address.houseNo)},e}(),ie([t.Input()],e.ɵm.prototype,"label",void 0),ie([t.Input()],e.ɵm.prototype,"address",null),e.ɵm=ie([t.Component({selector:"checkout-overview-relation-address",template:'\n <label [textContent]="label | localize"\n class="checkout-label-h3"\n ></label>\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text [(model)]="address.postalCode"\n [placeholder]="\'POSTAL_CODE\' | localize"\n (blur)="checkForPostalCodeCheckError()"\n required\n ></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text [(model)]="address.houseNo"\n [placeholder]="\'HOUSE_NO\' | localize"\n (blur)="checkForPostalCodeCheckError()"\n (modelChange) = "changeHouseNo()"\n required\n ></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text [(model)]="address.houseNoAddition"\n [placeholder]="\'HOUSE_NO_ADDITION\' | localize"\n ></co-input-text>\n </div>\n </div>\n <div>\n <div class="default-flex-row">\n <div class="default-flex-column">\n <co-input-text [(model)]="address.streetName" [placeholder]="\'STREET\' | localize" required></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-text [(model)]="address.city" [placeholder]="\'CITY\' | localize" required></co-input-text>\n </div>\n <div class="default-flex-column">\n <co-input-combo-box [(model)]="address.countryId"\n [source]="countries"\n [fields]="fields"\n [placeholder]="\'COUNTRY\'| localize"\n [required]="true"\n ></co-input-combo-box>\n </div>\n </div>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}"]}),oe(0,t.Inject(e.ɵi)),oe(1,t.Inject(e.ɵg))],e.ɵm),e.ɵn=function(){function e(e){this.service=e,this.editRequest=new t.EventEmitter}return e.prototype.onClick=function(){this.editRequest.emit()},e}(),ie([t.Input()],e.ɵn.prototype,"label",void 0),ie([t.Input()],e.ɵn.prototype,"address",void 0),ie([t.Output()],e.ɵn.prototype,"editRequest",void 0),e.ɵn=ie([t.Component({selector:"checkout-overview-delivery-address",template:'\n <div>\n <div>\n <label [textContent]="label | localize"\n class="checkout-label-h3"\n ></label>\n </div>\n\n <div (click)="onClick()">\n <div>\n {{ address?.streetName }} {{ address?.houseNo}} {{ address?.houseNoAddition}}\n </div>\n <div>\n {{ address?.postalCode }} {{ address?.city}}\n </div>\n <div>\n {{ address?.countryName }}\n </div>\n </div>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.overview-header .overview-step-nr{border-radius:50%}.flex-center,.step-content-customer,.step-content-delivery{display:flex}.flex-center,.step-content-delivery{flex-direction:row}.step-content-customer{flex-direction:column}.flex-center{align-items:center!important;justify-content:center!important}.step-content-customer,.step-content-delivery{padding-bottom:20px;padding-top:20px;padding-left:20px;padding-right:20px}.overview-body{padding-left:30px;padding-right:30px;padding-top:30px;padding-bottom:30px}ul.cart-buttons>li{padding-left:11px;padding-right:11px}ul.cart-buttons{margin-top:20px;margin-bottom:20px}.overview-header .overview-step-nr{color:#f7fafa;background-color:#2b60a7}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.checkout-viewport{max-width:60%;margin-left:20%}.mat-label{font-family:Montserrat,Arial,Helvetica,sans-serif}.default-flex-row{flex-direction:row;box-sizing:border-box;-moz-column-gap:20px;column-gap:20px;display:flex}.default-flex-column{display:flex;flex-direction:column;width:200px}.privacy-row{display:flex;flex-direction:row;margin-bottom:20px}.privacy-column-left{display:flex;flex-direction:column;min-width:150px;max-width:150px;overflow-wrap:break-word}.privacy-column-right{display:flex;flex-direction:row;margin-left:50px}.checkout-label-h2{font-size:18px}.checkout-label-h2,.checkout-label-h3{display:block;margin-top:1em;margin-bottom:1em;font-weight:700}.checkout-label-h3{font-size:14px}co-input-radio-button{margin-left:16px}.checkout-overview h2{font-size:18px;font-weight:700}.checkout-overview h3{font-size:15px}mat-horizontal-stepper{position:sticky;top:0;z-index:30}::ng-deep .mat-horizontal-content-container{display:none}.step-content-customer,.step-content-delivery{background-color:#fff}::ng-deep .step-wrapper{width:auto;background:hsla(0,0%,100%,.25)}::ng-deep .step-wrapper button-colijn{margin-top:20px}::ng-deep .step-wrapper.payment{align-items:center!important;justify-content:left!important}.overview-header{background:hsla(0,0%,100%,.25);border-top-left-radius:5px;border-top-right-radius:5px}.overview-header .overview-step-nr{width:20px;height:20px;text-align:center;font-weight:700}.overview-body{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.overview-body .contact-option-value{align-self:center}.overview-header-label,.overview-label{font-weight:700}ul.cart-buttons{display:flex;justify-content:space-between;flex-wrap:nowrap;list-style-type:none}ul.cart-buttons>li{display:flex;align-items:center;justify-content:center;flex-grow:0;flex-shrink:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:40px;background-color:#f7fafa;cursor:pointer;font-size:15px;color:#2b60a7;border:1px solid #dce4ea;border-radius:5px;opacity:1}ul.cart-buttons>li a{white-space:nowrap}",""]}),oe(0,t.Inject(e.ɵf))],e.ɵn),function(e){e.Right="right",e.Left="left",e.Up="top",e.Down="bottom"}(Se||(Se={})),e.ɵo=function(){this.suggestions=[],this.arrowDirection=Se.Left,this.suggestionButtonClick=new t.EventEmitter},ie([t.Input()],e.ɵo.prototype,"suggestions",void 0),ie([t.Input()],e.ɵo.prototype,"arrowDirection",void 0),ie([t.Output()],e.ɵo.prototype,"suggestionButtonClick",void 0),e.ɵo=ie([t.Component({selector:"checkout-relation-suggestions-list",template:'\n <div class="flex-column items-wrapper">\n <checkout-relation-suggestions-list-item *ngFor="let suggestion of suggestions" [suggestion]="suggestion"\n [arrowDirection]="arrowDirection"\n (buttonClick)="suggestionButtonClick.emit(suggestion)"></checkout-relation-suggestions-list-item>\n <span *ngIf="suggestions?.length === 0" class="no-results" localize="NO_RESULTS_FOUND"></span>\n </div>\n ',host:{class:"narrow-scrollbar"},styles:[""]})],e.ɵo),e.ɵp=function(){function e(){this.buttonClick=new t.EventEmitter,this._arrowDirection=Se.Left}return Object.defineProperty(e.prototype,"arrowDirection",{set:function(e){this._arrowDirection=e,this._updateIcon()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._updateIcon()},e.prototype._updateIcon=function(){},e}(),ie([t.Input()],e.ɵp.prototype,"suggestion",void 0),ie([t.Input()],e.ɵp.prototype,"arrowDirection",null),ie([t.Output()],e.ɵp.prototype,"buttonClick",void 0),e.ɵp=ie([t.Component({selector:"checkout-relation-suggestions-list-item",template:'\n\x3c!-- <div class="left" fxLayout fxLayoutAlign="start center">--\x3e\n\x3c!-- <avatar [relation]="suggestion" class="smaller"></avatar>--\x3e\n\x3c!-- </div>--\x3e\n <div class="right">\n <div class="name medium-big-font" *ngIf="suggestion.displayName as displayName" [textContent]="displayName"></div>\n <div class="email" *ngIf="suggestion.email">\n {{ suggestion.email }}\n </div>\n <div class="address" *ngIf="suggestion.displayAddress as address" [textContent]="address"></div>\n <div class="phone" *ngIf="suggestion.tel1">\n {{ suggestion?.tel1 }}\n </div>\n </div>\n <co-button [label]="\'SELECT\' | localize" class="popup rounded" (click)="buttonClick.emit($event)"></co-button>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,:host{display:flex}.flex-center{flex-direction:row;align-items:center!important;justify-content:center!important}:host{flex-shrink:0;padding-top:11px;padding-bottom:11px}div.address,div.email,div.phone{padding-bottom:5px}:host{padding-top:20px}:host,div.right{padding-left:11px}:host{padding-right:11px;position:relative}:host:hover co-button.popup{visibility:visible}co-button.popup{position:absolute!important;transform:translate(-50%,-50%);top:50%;left:50%;margin-right:-50%;visibility:hidden}div.name{font-weight:700}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;border:1px solid #dce4ea;border-radius:5px;margin:5px;max-width:250px}:host:hover{background-color:#e8eceb}div.name{font-size:15px}div.address,div.email,div.phone{color:#747b87;font-size:13px}div.right{display:flex;flex-direction:column;justify-content:center}"]})],e.ɵp),e.ɵr=function(){function e(){}return e.prototype.transform=function(e,t){return e?t?e+t:e:""},e}(),e.ɵr=ie([t.Pipe({name:"append"})],e.ɵr),function(e){e.Hours="hours",e.Days="days",e.Weeks="weeks",e.Months="months",e.Years="years"}(Ie||(Ie={})),e.ɵt=function(){function e(e){this._dictionary=e}return e.prototype.transform=function(e,t){if(void 0===t&&(t=Ie.Days),!e)return"";var n=Math.round(m.DateUtils.GetDaysFromNow(e));return 0===n?this._dictionary.get("NOW"):t===Ie.Days?this.transformByDeltaDays(n):t===Ie.Weeks?this.transformByDeltaWeeks(n):this.transformByDeltaDays(n)},e.prototype.transformByDeltaDays=function(e){return e+" "+(1===e?this._dictionary.get("DAY",!1):this._dictionary.get("DAYS",!1))},e.prototype.transformByDeltaWeeks=function(e){return e+" "+(1===e?this._dictionary.get("WEEK",!1):this._dictionary.get("WEEKS",!1))},e}(),e.ɵt=ie([t.Pipe({name:"dateDuration",pure:!1}),oe(0,t.Inject(e.ɵi))],e.ɵt),e.ɵs=function(e){function t(t){return e.call(this,t)||this}return function(e,t){function n(){this.constructor=e}ne(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.transform=function(t,n){return void 0===n&&(n=Ie.Days),t?Math.round(m.DateUtils.GetDaysFromNow(t))<=0?this._dictionary.get("DELIVERY_DIRECT"):e.prototype.transform.call(this,t,n):""},t}(e.ɵt),e.ɵs=ie([t.Pipe({name:"deliveryTime",pure:!1}),oe(0,t.Inject(e.ɵi))],e.ɵs),e.ɵu=function(){function e(e){this._dictionaryService=e}return e.prototype.transform=function(e,t,n){var i;return void 0===t&&(t=!0),void 0===n&&(n=[]),e?(n=n||[],Array.isArray(n)||(n=[n]),(i=this._dictionaryService).get.apply(i,le([e,t],n))):""},e}(),e.ɵu=ie([t.Pipe({name:"localize"}),oe(0,t.Inject(e.ɵi))],e.ɵu),e.ɵv=Re=function(){function e(){}return e.prototype.transform=function(e,t){if(void 0===t&&(t=!1),null==e){if(!t)return"";e=0}if(0===e&&!t)return"";var n="",i=b.NumberUtils.ParseFloat(e,2);if(b.NumberUtils.IsNaN(i))return"";b.NumberUtils.IsInteger(i)&&(n=Re._WholeNumberedPriceSuffix);var o=i.toString();return o.indexOf(".")>-1&&1===o.split(".")[1].length&&(o+="0"),o=(o=(o=(o=b.NumberUtils.AddThousandsCommasTo(o)).replace(",","#")).replace(".",",")).replace("#","."),Re._CurrencySymbol+" "+o+n},e}(),e.ɵv._CurrencySymbol="€",e.ɵv._WholeNumberedPriceSuffix=",-",e.ɵv=Re=ie([t.Pipe({name:"coCurrency"})],e.ɵv),e.ɵw=function(){function e(e){this._sanitizer=e}return e.prototype.transform=function(e){return this._sanitizer.bypassSecurityTrustStyle(e)},e}(),e.ɵw=ie([t.Pipe({name:"safeStyle"}),oe(0,t.Inject(K.DomSanitizer))],e.ɵw),e.ɵx=function(){function e(){this.label="NO_IMAGE",this.hideOnEmptyModel=!1,this.circle=!1,this.cover=!1}return Object.defineProperty(e.prototype,"shouldBeHidden",{get:function(){return this.hideOnEmptyModel&&!this.model},enumerable:!0,configurable:!0}),e}(),ie([t.Input()],e.ɵx.prototype,"model",void 0),ie([t.Input()],e.ɵx.prototype,"label",void 0),ie([t.Input()],e.ɵx.prototype,"hideOnEmptyModel",void 0),ie([t.Input(),t.HostBinding("class.circle")],e.ɵx.prototype,"circle",void 0),ie([t.Input(),t.HostBinding("class.cover-image")],e.ɵx.prototype,"cover",void 0),ie([t.Input(),t.HostBinding("class.pointer-hover")],e.ɵx.prototype,"pointerOnHover",void 0),ie([t.HostBinding("class.hidden")],e.ɵx.prototype,"shouldBeHidden",null),e.ɵx=ie([t.Component({selector:"image-display",template:'\n <div class="img-wrapper">\n <div *ngIf="!!model" class="image" [style.background-image]="\'url(\' + model + \')\' | safeStyle"></div>\n <no-image-display *ngIf="!model" [label]="label"></no-image-display>\n <ng-content></ng-content>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,:host,div.img-wrapper{display:flex}.flex-center{flex-direction:row}.flex-center,:host,div.img-wrapper{align-items:center!important;justify-content:center!important}:host,div.image,div.img-wrapper{width:100%;height:100%}div.img-wrapper{position:relative}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.cover-image div.image{background-size:cover}:host.circle .image,:host.circle .img-wrapper{border-radius:50%}div.image{background-repeat:no-repeat;background-size:contain;background-position:50%}"]})],e.ɵx),e.ɵy=function(){this.icon=F.CoreComponentsIcon.Camera,this.label="NO_IMAGE"},ie([t.Input()],e.ɵy.prototype,"icon",void 0),ie([t.Input()],e.ɵy.prototype,"label",void 0),e.ɵy=ie([t.Component({selector:"no-image-display",template:'\n <icon [icon]="icon"></icon>\n <span [textContent]="label | localize" class="no-image-label"></span>\n ',styles:[""]})],e.ɵy),e.ɵz=function(){function e(e){this._iconCacheService=e}return Object.defineProperty(e.prototype,"icon",{set:function(e){this._setSvg(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.svg=void 0},e.prototype._setSvg=function(e){this.svg=this._iconCacheService.getIcon(e)},e}(),ie([t.Input()],e.ɵz.prototype,"icon",null),ie([t.HostBinding("innerHtml")],e.ɵz.prototype,"svg",void 0),e.ɵz=ie([t.Component({selector:"icon",template:"",styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.circle:host{border-radius:50%}.flex-center{display:flex}:host{display:inline-flex}.flex-center{flex-direction:row;align-items:center!important;justify-content:center!important}.no-shrink:host{flex-shrink:0}:host.action ::ng-deep{cursor:pointer}:host ::ng-deep svg{width:100%;height:100%}.massive:host{width:100px;height:100px}.humongous:host{width:70px;height:70px}.very-big:host{width:45px;height:45px}.big:host{width:40px;height:40px}:host{width:30px;height:30px}.small:host{width:25px;height:25px}.nano:host{width:18px;height:18px}.pico:host{width:14px;height:14px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host.dark ::ng-deep [fill]{fill:#22313c}:host.light ::ng-deep [fill]{fill:#fff}:host.red ::ng-deep [fill]{fill:#c1002a}:host.grey ::ng-deep [fill]{fill:#dad9d9}:host.action-color ::ng-deep [fill]{fill:#2b60a7}:host.inactive{opacity:.25}:host.disabled{opacity:.25!important}:host:hover.action ::ng-deep [fill]{fill:#2b60a7}"]}),oe(0,t.Inject(F.IconCacheService))],e.ɵz),e.ɵq=function(){},e.ɵq=ie([t.NgModule({declarations:[e.ɵr,e.ɵs,e.ɵt,e.ɵu,e.ɵv,e.ɵw,e.ɵx,e.ɵy,e.ɵz],exports:[e.ɵu,e.ɵv,e.ɵr,e.ɵs,e.ɵw,e.ɵv,e.ɵx,e.ɵy,e.ɵz],imports:[Y.CommonModule]})],e.ɵq),e.IoneCheckoutModule=function(){},e.IoneCheckoutModule=ie([t.NgModule({declarations:[e.ɵb,e.ɵc,e.ɵd,e.ɵe,e.ɵm,e.ɵh,e.ɵa,e.ɵn,e.ɵo,e.ɵp,e.ɵj,e.IoneCheckoutComponent],imports:[q.BrowserAnimationsModule,F.IconModule,F.InputTextModule,F.InputCheckboxModule,F.InputRadioButtonModule,F.FormModule,F.InputComboBoxModule,F.InputDatePickerModule,F.InputNumberPickerModule,F.CoDialogModule,F.CoDialogPromptModule,F.ButtonModule,G.FlexModule,F.MultiSelectListModule,W.MatStepperModule,F.DropDownModule,F.PopupModule,F.CoSidebarModule,F.CoGridModule,e.ɵq],providers:[e.ɵg,e.ɵi,e.ɵf,e.ɵk,F.PromptService],entryComponents:[e.IoneCheckoutComponent],exports:[e.IoneCheckoutComponent],bootstrap:[e.IoneCheckoutComponent]})],e.IoneCheckoutModule),e.ɵba=function(){function e(e,n,i,o){var r=this;this.service=e,this.transactionEvents=n,this.promptService=i,this._dictionaryService=o,this.linesChanged=new t.EventEmitter,this.openCart=new t.EventEmitter,this.articleAdded=new t.EventEmitter,this.isReturn=!1,this.waitForLinesChangedToOpenCart=!1,this.message="CHECK_WAREHOUSE_AND_COMMISSIONCODE",this.commissionCodes=[],this.commissionFields={text:"description",value:"code"},this.transactionArticleWarehouses=[],this.transactionArticleWarehouseFields={text:"warehouseDesc",value:"warehouseNr"},this.columns=[],this.dialogPromptHeader="",this.rootElement=null,this._subscriptions=[],this._inOutCollection=[],this._okOrCancelClick=!1,this._showCharacteristic=!1,this._subscriptions.push(this.service.transactionUpdated.subscribe((function(){r.linesChanged.emit(r.waitForLinesChangedToOpenCart),r.waitForLinesChangedToOpenCart=!1})),this.transactionEvents.addToCartBySku.subscribe((function(e){r.waitForLinesChangedToOpenCart=e.popCart,r.addToCart(e.sku,e.amount).then()})),this.transactionEvents.addToCartBySelectorResult.subscribe((function(e){r.waitForLinesChangedToOpenCart=e.popCart,r.addToCartBySelectorResult(e.selectorResult).then()})),this.transactionEvents.openShoppingCartModule.subscribe((function(){r.openCart.emit(!1)})),this.transactionEvents.addUserRelationShoppingCartModule.subscribe((function(e){r.addUserRelationToTransactionAndLogin(e.user,e.pw)})),this.transactionEvents.addNewUserToShoppingCartModule.subscribe((function(e){r.addEmailAddressToTransaction(e)}))),this.columns.push({field:"warehouseNr",headerText:this._dictionaryService.get("WAREHOUSE"),allowFiltering:!1},{field:"warehouseDesc",headerText:this._dictionaryService.get("DESCRIPTION")},{field:"stockAmount",headerText:this._dictionaryService.get("STOCK")})}return Object.defineProperty(e.prototype,"amountOfLines",{get:function(){return b.NumberUtils.NrOrDefault(this.service.articleAmount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showCharacteristicDialog",{get:function(){return this._showCharacteristic},set:function(e){this._showCharacteristic=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){return re(this,void 0,void 0,(function(){var e;return ae(this,(function(t){switch(t.label){case 0:return e=this,[4,this.service.getCommissionCodes("NL")];case 1:return e.commissionCodes=t.sent(),this.linesChanged.emit(this.waitForLinesChangedToOpenCart),this.waitForLinesChangedToOpenCart=!1,[2]}}))}))},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()})),this.warehouseDialog.close()},e.prototype.addToCart=function(e,t){return re(this,void 0,void 0,(function(){var n;return ae(this,(function(i){switch(i.label){case 0:return[4,this.service.getGoodIdFromArticleNr(e)];case 1:return n=i.sent(),[4,this._loadArticle(n)];case 2:return i.sent(),[4,this._createTransaction()];case 3:return i.sent(),[4,this._handleAddArticle(t)];case 4:return i.sent(),this.articleAdded.emit(),[2]}}))}))},e.prototype.addToCartBySelectorResult=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return[4,this._loadArticle(e.goodId)];case 1:return t.sent(),[4,this._createTransaction()];case 2:return t.sent(),[4,this._handleAddArticle(e.quantity)];case 3:return t.sent(),this.articleAdded.emit(),[2]}}))}))},e.prototype.addUserRelationToTransactionAndLogin=function(e,t){return re(this,void 0,void 0,(function(){return ae(this,(function(n){switch(n.label){case 0:return[4,this.service.setRelationByUser(e,t)];case 1:return n.sent()&&this.transactionEvents.loggedIn.next(),[2]}}))}))},e.prototype.showStockManager=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){return this.selectedWarehouseNr=e.warehouseNumber,this.amount=e.amount,this.commissionCode=e.commissionCode,this.show(e.articleNumber),[2]}))}))},e.prototype.hide=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this._okOrCancelClick?(this._okOrCancelClick=!1,[2]):[4,this.onStockManagerCancelClick()];case 1:return e.sent(),[2]}}))}))},e.prototype.show=function(e){this._reloadDataCollections(e).then(),this.message=this.currentOperationStatus.pendingReason,this.warehouseGrid.selectRow(this.selectedWarehouseNr),this.warehouseDialog.targetElement=null,this.warehouseDialog.open()},e.prototype.onStockManagerCancelClick=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this._okOrCancelClick=!0,this.warehouseDialog.close(),this.currentReason?[4,this.service.cancelAddTransactionLine(this.currentReason.lineUuid)]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.editingLine=void 0,[2]}}))}))},e.prototype.onStockManagerOkClick=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){switch(t.label){case 0:return this._okOrCancelClick=!0,this.warehouseDialog.close(),void 0!==this.commissionCode&&(this.currentReason.commissionCode=this.commissionCode.valueOf()),void 0!==this.amount&&(this.currentReason.quantity=this.amount.valueOf()),void 0!==this.selectedWarehouseNr&&(this.currentReason.warehouseNr=this.selectedWarehouseNr),this.currentReason?[4,this.service.resolvePendingLineReason(this.currentReason).then((function(t){e._handleLineOperationStatus()}))]:[3,2];case 1:return t.sent(),[3,6];case 2:return void 0!==this.editingLine?[3,4]:[4,this.service.addTransactionLine(N.TransactionLineType.ArticleLine,this.newArticleNr,this.amount,this.selectedWarehouseNr,this.commissionCode,this.isReturn).then((function(t){e._handleLineOperationStatus()}))];case 3:return t.sent(),[3,6];case 4:return[4,this.service.changeTransactionLineQuantity(this.editingLine.uuid,this.amount).then((function(t){e._handleLineOperationStatus()}))];case 5:t.sent(),t.label=6;case 6:return this.editingLine=void 0,[2]}}))}))},e.prototype.handleRowsSelected=function(e){this.selectedWarehouseNr=e.find((function(e){return void 0!==e})).warehouseNr},e.prototype.handleCharacteristicAnswerOkClick=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){switch(n.label){case 0:return this.currentReason=new Q.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid,this.currentOperationStatus.pendingReason,this.currentOperationStatus.pendingReasonType),this.currentReason.textualUserInput=e,[4,this.service.resolvePendingLineReason(this.currentReason).then((function(e){t._handleLineOperationStatus()}))];case 1:return n.sent(),[2]}}))}))},e.prototype._reloadDataCollections=function(e){return re(this,void 0,void 0,(function(){var t,n;return ae(this,(function(i){switch(i.label){case 0:return[4,this.service.getGoodIdFromArticleNr(e)];case 1:return t=i.sent(),n=this,[4,this.service.getTransactionArticleWarehouses(t)];case 2:return n.transactionArticleWarehouses=i.sent(),[2]}}))}))},e.prototype._handleAddArticle=function(e){return void 0===e&&(e=1),re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){switch(n.label){case 0:return[4,this.service.addTransactionLine(N.TransactionLineType.ArticleLine,this.newArticleNr,e,this.newArticle.standardWareHouse,this.newArticle.commissionCode).then((function(e){t._handleLineOperationStatus()}),(function(e){return t.promptService.showError(e)}))];case 1:return n.sent(),[2]}}))}))},e.prototype._getWareHouseNoFromArticle=function(){return void 0!==this.newArticle&&void 0!==this.newArticle.stockLocations&&this.newArticle.stockLocations.length?this.newArticle.stockLocations[0].warehouseNr:0},e.prototype._isLineOperationStatus=function(){return this.currentOperationStatus=this.service.currentLineOperationStatus,void 0!==this.currentOperationStatus},e.prototype._checkIfShoppingCartNeedsToDisplay=function(){this.service.currentTransaction&&this.service.currentTransaction.transactionNr&&(this.linesChanged.emit(this.waitForLinesChangedToOpenCart),this.waitForLinesChangedToOpenCart=!1)},e.prototype._confirmAction=function(){return re(this,void 0,void 0,(function(){var e,t,n=this;return ae(this,(function(i){switch(i.label){case 0:return this.currentReason=new Q.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid,this.currentOperationStatus.pendingReason,this.currentOperationStatus.pendingReasonType),[4,this._getPendingReasonText(this.currentOperationStatus.pendingReason)];case 1:return e=i.sent(),t=this.currentReason,[4,this.promptService.showYesNo(e," ")];case 2:return t.confirmation=i.sent(),[4,this.service.resolvePendingLineReason(this.currentReason).then((function(e){n._handleLineOperationStatus()}))];case 3:return i.sent(),[2]}}))}))},e.prototype._showInformation=function(){return re(this,void 0,void 0,(function(){var e,t=this;return ae(this,(function(n){switch(n.label){case 0:return this.currentReason=new Q.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid,this.currentOperationStatus.pendingReason,this.currentOperationStatus.pendingReasonType),[4,this._getPendingReasonText(this.currentOperationStatus.pendingReason)];case 1:return e=n.sent(),[4,this.promptService.showOkModal(e," ")];case 2:return n.sent(),[4,this.service.resolvePendingLineReason(this.currentReason).then((function(e){t._handleLineOperationStatus()}))];case 3:return n.sent(),[2]}}))}))},e.prototype._getPendingReasonText=function(e){return re(this,void 0,void 0,(function(){var t,n,i;return ae(this,(function(o){switch(o.label){case 0:return"ARTICLE_IS_DISCONTINUED_DO_YOU_WANT_TO_CONTINUE_PLEASE_CONFIRM"!==e?[3,2]:(n=(t=this._dictionaryService.get("ARTICLE_IN_OUT_COLLECTION")).replace,i=["|~"],[4,this.getInOutCollectionOfArticle()]);case 1:return[2,n.apply(t,i.concat([o.sent()]))];case 2:return[2,this._dictionaryService.get(e)]}}))}))},e.prototype.getInOutCollectionOfArticle=function(){return re(this,void 0,void 0,(function(){var e,t,n=this;return ae(this,(function(i){switch(i.label){case 0:return this._inOutCollection.length?[3,2]:(e=this,[4,this.service.getInOutCollection("NL")]);case 1:e._inOutCollection=i.sent(),i.label=2;case 2:return(t=this._inOutCollection.find((function(e){return e.code===n.newArticle.inOutCollection})))?[2,t.description]:[2,""]}}))}))},e.prototype._handleLineOperationStatus=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this._isLineOperationStatus()?[4,this._handlePendingLine(this.currentOperationStatus.uuid).then()]:[3,2];case 1:return e.sent(),[3,3];case 2:this._checkIfShoppingCartNeedsToDisplay(),e.label=3;case 3:return[2]}}))}))},e.prototype._handlePendingLine=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:switch(this.currentReason=new Q.ResolvePendingLineReasonRequest(this.currentOperationStatus.uuid,this.currentOperationStatus.pendingReason,this.currentOperationStatus.pendingReasonType),this.currentPendingLine=this.service.currentLines.find((function(t){return t.uuid===e})),this.currentOperationStatus.pendingReasonType){case L.PendingReasonType.ABORTED:case L.PendingReasonType.CANCELLED:return[3,1];case L.PendingReasonType.CONFIRMATION_NEEDED:return[3,2];case L.PendingReasonType.INVALID_LOGISTICS:return[3,4];case L.PendingReasonType.NON_CRITICAL_DISCONTINUATION:return[3,6];case L.PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED:return[3,8];case L.PendingReasonType.NONE:return[3,9]}return[3,9];case 1:return this.service.cancelAddTransactionLine(this.currentPendingLine.uuid).then(),[3,10];case 2:return[4,this._confirmAction()];case 3:return t.sent(),[3,10];case 4:return[4,this.showStockManager(this.currentPendingLine)];case 5:return t.sent(),[3,10];case 6:return[4,this._showInformation()];case 7:return t.sent(),[3,10];case 8:return this.CharacteristicsAnswerNeeded(),[3,10];case 9:return this.currentReason=void 0,this.currentPendingLine=void 0,[3,10];case 10:return[2]}}))}))},e.prototype._createTransaction=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){switch(e.label){case 0:return this.service.currentTransaction.transactionNr?[3,2]:[4,this.service.createTransaction()];case 1:e.sent()||n.throwError("Failed to create transaction"),e.label=2;case 2:return[2]}}))}))},e.prototype._loadArticle=function(e){return re(this,void 0,void 0,(function(){var t;return ae(this,(function(n){switch(n.label){case 0:return t=this,[4,this.service.getArticleFullObject(e)];case 1:return t.newArticle=n.sent(),this.newArticleNr=this.newArticle.articleNr,[2]}}))}))},e.prototype.addEmailAddressToTransaction=function(e){this.service.emailAddress=e},e.prototype.CharacteristicsAnswerNeeded=function(){var e=this;this.characteristicAnswer.question=this.currentOperationStatus.characteristic.question,this.characteristicAnswer.title=this.newArticle.description,this.characteristicAnswer.value=this.currentOperationStatus.characteristic.value,this.characteristicAnswer.characteristics=this.currentOperationStatus.characteristic.transactionLineCharacteristicChoices,setTimeout((function(){e.characteristicAnswer.open()}),1e3)},e}(),ie([t.ViewChild("warehouseDialog")],e.ɵba.prototype,"warehouseDialog",void 0),ie([t.ViewChild("warehouseGrid")],e.ɵba.prototype,"warehouseGrid",void 0),ie([t.ViewChild("characteristicAnswer")],e.ɵba.prototype,"characteristicAnswer",void 0),ie([t.Output()],e.ɵba.prototype,"linesChanged",void 0),ie([t.Output()],e.ɵba.prototype,"openCart",void 0),ie([t.Output()],e.ɵba.prototype,"articleAdded",void 0),e.ɵba=ie([t.Component({selector:"shopping-cart-manager",template:'\n <co-dialog #warehouseDialog\n (closeClick)="hide()"\n (overlayClick)="onStockManagerCancelClick()"\n >\n <ng-container header>{{ \'STOCK_NOTIFICATION\' | localize }}</ng-container>\n\n <ng-container content>\n <co-form>\n <div class="form-content">\n <span *ngIf="message" class="message-field" [textContent]="message | localize"></span>\n <div class="commission-fields" fxLayout="row">\n <co-input-number-picker class="horizontal" [(model)]="amount" [min]="0" decimals="3"></co-input-number-picker>\n <co-input-combo-box [(model)]="commissionCode"\n [source]="commissionCodes"\n [fields]="commissionFields"\n [placeholder]="\'COMMISSION_CODE\' | localize"\n [required]="true"\n ></co-input-combo-box>\n </div>\n <div>\n <co-grid #warehouseGrid\n [data]="transactionArticleWarehouses"\n [columns]="columns"\n [pagingEnabled]="\'true\'"\n [maxNumberOfRows]="\'20\'"\n (rowsSelected)="handleRowsSelected($event)"\n ></co-grid>\n </div>\n </div>\n </co-form>\n </ng-container>\n\n <ng-container footer>\n <div class="flex-center">\n <co-button [label]="\'OK\' | localize" (click)="onStockManagerOkClick()"></co-button>\n <co-button [label]="\'CANCEL\' | localize" (click)="onStockManagerCancelClick()"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n\n <characteristic-answer\n #characteristicAnswer\n (okClick)="handleCharacteristicAnswerOkClick($event)"\n ></characteristic-answer>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center,.warehouse-line-container{display:flex;flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}.commission-fields,::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{margin-left:11px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}"]}),oe(0,t.Inject(e.ɵf)),oe(1,t.Inject(e.ɵl)),oe(2,t.Inject(F.PromptService)),oe(3,t.Inject(e.ɵi))],e.ɵba),function(e){e.DiscountAmount="DISCOUNT_AMOUNT",e.DiscountPercentage="DISCOUNT_PERCENTAGE",e.OrderTotal="ORDER_TOTAL"}(Ne||(Ne={})),function(e){e[e.List=0]="List",e[e.Grid=1]="Grid",e[e.GridExpanded=2]="GridExpanded",e[e.MasterDetail=3]="MasterDetail",e[e.Timeline=4]="Timeline"}(De||(De={})),e.ɵbb=function(){function e(e,n,i,o,r){var a=this;this.iconCacheService=e,this._dictionary=n,this.service=i,this._transactionEvents=o,this._changeDetector=r,this.orderDiscountType=Ne,this.iconThickLines=F.CoreComponentsIcon.ThickLines,this.iconThinLines=F.CoreComponentsIcon.ThinLines,this.viewModes=De,this.hideOverviewButton=!1,this.hideCheckoutButton=!1,this.hideCloseCartButton=!1,this.closeCart=new t.EventEmitter,this.checkout=new t.EventEmitter,this.overview=new t.EventEmitter,this.activeViewMode=De.List,this.columns=[],this.showDiscountsSidebar=!1,this._transactionUpdated=this.service.transactionUpdated.subscribe((function(){a.setFilteredCollection(a.service.currentLines)})),this.setFilteredCollection(this.service.currentLines);var s="(min-width: 500px)";this.columns.push({field:"lineNr",headerText:this._dictionary.get("NR"),allowFiltering:!1},{field:"articleNumber",headerText:this._dictionary.get("ARTICLE_NR")},{field:"goodDescription",headerText:this._dictionary.get("GOOD_DESCRIPTION"),hideAtMedia:s},{field:"amount",headerText:this._dictionary.get("NUMBER"),textAlign:"Right"},{field:"price",headerText:this._dictionary.get("PRICE"),format:"C2",textAlign:"Right"},{field:"priceListCode",headerText:this._dictionary.get("PRICE_LIST"),hideAtMedia:s},{field:"lineDiscount",headerText:this._dictionary.get("DISCOUNT_PERCENTAGE"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"specialDiscount",headerText:this._dictionary.get("SPECIAL_DISCOUNT"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"discountAmount",headerText:this._dictionary.get("DISCOUNT_AMOUNT"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"surchargeAmount",headerText:this._dictionary.get("SURCHARGE_AMOUNT"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"assemblyCost",headerText:this._dictionary.get("ASSEMBLY_COSTS"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"grossLineTotal",headerText:this._dictionary.get("TOTAL_GROSS"),format:"C2",visible:!0,hideAtMedia:s,textAlign:"Right"},{field:"lineTotalDiscountAmount",headerText:this._dictionary.get("DISCOUNT"),format:"C2",visible:!1,hideAtMedia:s,textAlign:"Right"},{field:"netLineTotal",headerText:this._dictionary.get("SUBTOTAL"),format:"C2",visible:!1,textAlign:"Right"},{field:"vatId",headerText:this._dictionary.get("VAT"),hideAtMedia:s,visible:!1,textAlign:"Right"},{field:"priceDeclaration",headerText:this._dictionary.get("TRANSACTION_PRICE_DECLARATION"),visible:!1,hideAtMedia:s},{field:"netto",headerText:this._dictionary.get("NETT"),format:"C2",hideAtMedia:s,textAlign:"Right"},{field:"warehouseNumber",headerText:this._dictionary.get("WAREHOUSE"),hideAtMedia:s,textAlign:"Right"})}return Object.defineProperty(e.prototype,"filteredCollection",{get:function(){return this._filteredCollection},enumerable:!0,configurable:!0}),e.prototype.setFilteredCollection=function(e){this._filteredCollection=e;var t={active:!0,direction:J.SortDirection.Ascending,property:"lineNr",type:$.SortType.Number};X.SortUtils.SortObjectArray(this._filteredCollection,[t])},e.prototype.ngAfterViewInit=function(){this.hideSidebar()},e.prototype.ngOnDestroy=function(){this._transactionUpdated.unsubscribe()},e.prototype.getCartLabel=function(){return this._dictionary.get("SHOPPING_CART_OVERVIEW",!0)+"("+this.service.articleAmount.toString()+")"},e.prototype.addDiscount=function(){this.showSidebar()},e.prototype.onStartDiscountInput=function(e,t){this.hideSidebar(),this.discountType=e,this.discountHeader=t,this.inputDiscounts=!0},e.prototype.openShoppingCartModule=function(){this._transactionEvents.openShoppingCartModule.next(),this.closeCart.emit()},e.prototype.setDiscountHeader=function(e){switch(this.discountType){case Ne.DiscountPercentage:this.discountHeader=this._dictionary.get("DISCOUNT_PERCENTAGE",!0);break;case Ne.DiscountAmount:this.discountHeader=this._dictionary.get("DISCOUNT_AMOUNT",!0);break;case Ne.OrderTotal:this.discountHeader=this._dictionary.get("ORDER_TOTAL",!0)}},e.prototype.onInputDiscountsOkClick=function(){switch(this.discountType){case Ne.DiscountPercentage:this.transactionDiscountPercentage;break;case Ne.DiscountAmount:this.transactionDiscountAmount;break;case Ne.OrderTotal:this.transactionTotal}this.inputDiscounts=!1},e.prototype.trackByFn=function(e,t){return t.lineNr},e.prototype.handleRowsSelected=function(e){e.find((function(e){return void 0!==e}))},e.prototype.showSidebar=function(){this.showDiscountsSidebar=!0,this._changeDetector.detectChanges(),this.discountsSidebar&&this.discountsSidebar.show()},e.prototype.hideSidebar=function(){this.showDiscountsSidebar=!1,this._changeDetector.detectChanges(),this.discountsSidebar&&this.discountsSidebar.hide()},e}(),ie([t.ViewChild(F.CoSidebarComponent,{static:!1})],e.ɵbb.prototype,"discountsSidebar",void 0),ie([t.Input(),t.HostBinding("class.overlayed")],e.ɵbb.prototype,"overlayMode",void 0),ie([t.Input(),t.HostBinding("class.overview")],e.ɵbb.prototype,"overviewMode",void 0),ie([t.Input()],e.ɵbb.prototype,"hideOverviewButton",void 0),ie([t.Input()],e.ɵbb.prototype,"hideCheckoutButton",void 0),ie([t.Input()],e.ɵbb.prototype,"hideCloseCartButton",void 0),ie([t.Output()],e.ɵbb.prototype,"closeCart",void 0),ie([t.Output()],e.ɵbb.prototype,"checkout",void 0),ie([t.Output()],e.ɵbb.prototype,"overview",void 0),e.ɵbb=ie([t.Component({selector:"shopping-cart",template:'\n <div class="cart-header">\n <span class="cart-header-label" [textContent]="getCartLabel()"></span>\n <div class="view-mode-buttons">\n <co-button [iconData]="iconCacheService.getIcon(iconThickLines)"\n [title]="\'LIST_VIEW\' | localize"\n (click)="this.activeViewMode = viewModes.List"\n class="triangle white"\n iconClass="medium light"></co-button>\n <co-button [iconData]="iconCacheService.getIcon(iconThinLines)"\n [title]="\'GRID_VIEW\' | localize"\n (click)="this.activeViewMode = viewModes.Grid"\n class="triangle white"\n iconClass="medium light"></co-button>\n </div>\n </div>\n <div class="cart-lines">\n <div class="cart-list-wrapper" *ngIf="this.activeViewMode == viewModes.List" fxFlex="column">\n <shopping-cart-line [overlayMode]="overlayMode" [overviewMode]="overviewMode"\n *ngFor="let line of filteredCollection; trackBy:trackByFn;"\n [line]="line"\n ></shopping-cart-line>\n </div>\n <div class="cart-list-wrapper" *ngIf="this.activeViewMode == viewModes.Grid" fxFlex="column">\n <co-grid\n [data]="filteredCollection"\n [columns]="columns"\n [pagingEnabled]="\'true\'"\n [maxNumberOfRows]="\'20\'"\n (rowsSelected)="handleRowsSelected($event)"\n ></co-grid>\n </div>\n </div>\n <div class="shopping-cart-totals" fxLayout="column" fxLayoutGap="10px">\n <div fxLayout="row">\n <span [textContent]="\'ORDER_GROSS\' | localize"></span>\n <span [textContent]="service.currentTotals?.grossAmount | coCurrency: true"></span>\n </div>\n <div fxLayout="row" *ngIf="service.currentTotals?.discountAmount">\n <span [textContent]="\'DISCOUNT_AMOUNT\' | localize"></span>\n <span [textContent]="service.currentTotals?.discountAmount | coCurrency: true"></span>\n </div>\n <div fxLayout="row" *ngIf="service.currentTotals?.transactionDiscountAmount">\n <span [textContent]="\'TRANSACTION_DISCOUNT\' | localize"></span>\n <span [textContent]="service.currentTotals?.transactionDiscountAmount | coCurrency: true"></span>\n </div>\n <div fxLayout="row" *ngIf="service.currentTotals?.transactionDiscountPercentage">\n <span [textContent]="\'TRANSACTION_DISCOUNT_PERC\' | localize"></span>\n <span [textContent]="service.currentTotals?.transactionDiscountPercentage.toString() | append:\' %\'"></span>\n </div>\n <div fxLayout="row">\n <span [textContent]="\'ORDER_NET\'| localize"></span>\n <span [textContent]="service.currentTotals?.netAmount | coCurrency: true"></span>\n </div>\n <a (click)="addDiscount()" [textContent]="\'ADD_DISCOUNTS\' | localize"></a>\n </div>\n <div class="shopping-cart-row-end">\n <co-button *ngIf="!hideOverviewButton" [label]="\'OVERVIEW\' | localize"\n (click)="overview.emit()"\n ></co-button>\n <co-button *ngIf="!hideCloseCartButton"[label]="\'SHOPPING_CART_RESUME\' | localize"\n (click)="closeCart.emit()"\n ></co-button>\n <co-button *ngIf="!hideCheckoutButton" [label]="\'SHOPPING_CART_CHECKOUT\' | localize"\n [disabled]="!service.articleAmount"\n (click)="checkout.emit()"></co-button>\n </div>\n\n <co-sidebar #discountsSidebar isOpen="false" *ngIf="showDiscountsSidebar">\n <div fxLayout="column" fxLayoutGap="10px">\n <co-button class="rectangular" [label]="\'TRANSACTION_DISCOUNT_PERC\' | localize"\n (click)="onStartDiscountInput(orderDiscountType.DiscountPercentage, \'TRANSACTION_DISCOUNT_PERC\')"></co-button>\n <co-button class="rectangular" [label]="\'TRANSACTION_DISCOUNT\'| localize"\n (click)="onStartDiscountInput(orderDiscountType.DiscountAmount, \'TRANSACTION_DISCOUNT\')"></co-button>\n <co-button class="rectangular" [label]="\'TRANSACTION_TOTAL\'| localize"\n (click)="onStartDiscountInput(orderDiscountType.OrderTotal, \'TRANSACTION_TOTAL\')"></co-button>\n\n </div>\n </co-sidebar>\n\n <co-dialog [visible]="inputDiscounts">\n <ng-container header>{{ discountHeader | localize }}</ng-container>\n <co-form>\n <co-input-text\n *ngIf="discountType === orderDiscountType.DiscountPercentage"\n [type]="\'number\'"\n [(model)]="transactionDiscountPercentage"\n [placeholder]="\'TRANSACTION_DISCOUNT_PERC\' | localize"\n ></co-input-text>\n <co-input-text\n *ngIf="discountType === orderDiscountType.DiscountAmount"\n [type]="\'number\'"\n [(model)]="transactionDiscountAmount"\n [placeholder]="\'TRANSACTION_DISCOUNT\' | localize"\n ></co-input-text>\n <co-input-text\n *ngIf="discountType === orderDiscountType.OrderTotal"\n [type]="\'number\'"\n [(model)]="transactionTotal"\n [placeholder]="\'TRANSACTION_TOTAL\' | localize"\n ></co-input-text>\n\n <div fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="end">\n <co-button [label]="\'CANCEL\' | localize" (click)="inputDiscounts = false"></co-button>\n <co-button [label]="\'OK\' | localize" (click)="onInputDiscountsOkClick()"></co-button>\n </div>\n </co-form>\n </co-dialog>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}.shopping-cart-totals{padding-bottom:20px;padding-top:20px}.cart-header{margin-top:20px;margin-bottom:20px}.cart-header .view-mode-buttons{margin-left:11px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:#fff;opacity:1;display:flex;flex-direction:column;height:100%;color:#22313c}.cart-header{display:flex;justify-content:space-between}.cart-header .cart-header-label{font-weight:700}.cart-header .view-mode-buttons{display:flex;flex-direction:row}.cart-header .view-mode-buttons co-button{padding:0}.cart-header .view-mode-buttons co-button ::ng-deep co-button{border-radius:0}.cart-header .view-mode-buttons co-button:first-child ::ng-deep co-button{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.cart-header .view-mode-buttons co-button:nth-child(2) ::ng-deep co-button{border-top-left-radius:3px;border-bottom-left-radius:3px}.cart-header .view-mode-buttons co-button:last-child ::ng-deep co-button{border-top-right-radius:3px;border-bottom-right-radius:3px}.cart-lines{display:flex;height:100%;overflow:auto}.shopping-cart-totals{align-items:flex-end}.shopping-cart-totals>div{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.shopping-cart-totals>div span:last-of-type{min-width:6em;text-align:right}.shopping-cart-totals div:last-of-type{font-weight:700}",":host .shopping-cart-viewport{max-width:60%;margin-left:20%}:host .shopping-cart-row-end{display:flex;flex-direction:row;-moz-column-gap:10px;column-gap:10px;justify-content:flex-end}"]}),oe(0,t.Inject(F.IconCacheService)),oe(1,t.Inject(e.ɵi)),oe(2,t.Inject(e.ɵf)),oe(3,t.Inject(e.ɵl)),oe(4,t.Inject(t.ChangeDetectorRef))],e.ɵbb),e.IoneShoppingCartComponent=function(){function e(e,n,i,o,r,a,s){var c=this;this._changeDetector=e,this._optionsService=n,this._connector=i,this._dictionary=o,this._service=r,this.transactionEvents=a,this._promptService=s,this.hideOverviewButton=!1,this.hideCheckoutButton=!1,this.hideCloseCartButton=!1,this.closeCart=new t.EventEmitter,this.checkout=new t.EventEmitter,this.overview=new t.EventEmitter,this.show=!1,this.amountOfLines=0,this.upAndLoaded=!1,this.overviewMode=!0,this._subscriptions=[],this._remoteOptions=!0,this._publicOptions=!0,this._subscriptions.push(this._optionsService.optionsLoaded.subscribe((function(e){return c._handleSettingsLoaded(e)})))}return Object.defineProperty(e.prototype,"options",{set:function(e){if(e){var t=void 0;t="string"==typeof e?JSON.parse(e):e,this._publicOptions=!0,this._optionsService.initialize(t).then()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transactionNr",{get:function(){return this._service.currentTransaction.transactionNr},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._publicOptions||this._optionsService.initializeDevelopmentOptions(this._remoteOptions)},e.prototype.ngOnDestroy=function(){this._subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.onCloseCartButtonClicked=function(){this.closeCart.emit()},e.prototype.onCheckoutButtonClicked=function(){this.checkout.emit()},e.prototype.onOverviewButtonClicked=function(){this.overview.emit()},e.prototype.linesChanged=function(e){this.amountOfLines=this.manager?this.manager.amountOfLines:0},e.prototype.addArticle=function(e,t){this.transactionEvents.addToCartBySku.next({sku:e,amount:t,popCart:!0})},e.prototype.addArticleByBySelectorResult=function(e,t){this.transactionEvents.addToCartBySelectorResult.next({selectorResult:e,popCart:t})},e.prototype._handleSettingsLoaded=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:return e?[4,this._initConnection().then()]:[3,2];case 1:t.sent(),this.upAndLoaded=!0,t.label=2;case 2:return[2]}}))}))},e.prototype._initConnection=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){switch(t.label){case 0:return[4,this._connector.connect(this._optionsService.options)];case 1:return t.sent(),this._optionsService.options.url&&(this._dictionary.rootUrl=this._optionsService.options.url.replace("/ajaxservice","")),[4,this._dictionary.setDictionary(this._optionsService.options.languageCode)];case 2:return t.sent(),setTimeout((function(){e._changeDetector.detectChanges()})),[2]}}))}))},e}(),ie([t.ViewChild(e.ɵba)],e.IoneShoppingCartComponent.prototype,"manager",void 0),ie([t.ViewChild(e.ɵbb)],e.IoneShoppingCartComponent.prototype,"shoppingCart",void 0),ie([t.Input()],e.IoneShoppingCartComponent.prototype,"options",null),ie([t.Input()],e.IoneShoppingCartComponent.prototype,"hideOverviewButton",void 0),ie([t.Input()],e.IoneShoppingCartComponent.prototype,"hideCheckoutButton",void 0),ie([t.Input()],e.IoneShoppingCartComponent.prototype,"hideCloseCartButton",void 0),ie([t.Output()],e.IoneShoppingCartComponent.prototype,"closeCart",void 0),ie([t.Output()],e.IoneShoppingCartComponent.prototype,"checkout",void 0),ie([t.Output()],e.IoneShoppingCartComponent.prototype,"overview",void 0),e.IoneShoppingCartComponent=ie([t.Component({selector:"ione-shopping-cart",template:'\n <ng-container *ngIf="upAndLoaded">\n <shopping-cart-manager\n (linesChanged)="linesChanged($event)"\n ></shopping-cart-manager>\n </ng-container>\n <ng-container *ngIf="show">\n <shopping-cart\n [hideOverviewButton]="hideOverviewButton"\n [hideCloseCartButton]="hideCloseCartButton"\n [hideCheckoutButton]="hideCheckoutButton"\n (overview)="onOverviewButtonClicked()"\n (closeCart)="onCloseCartButtonClicked()"\n (checkout)="onCheckoutButtonClicked()"\n ></shopping-cart>\n </ng-container>\n '}),oe(0,t.Inject(t.ChangeDetectorRef)),oe(1,t.Inject(e.ɵk)),oe(2,t.Inject(e.ɵg)),oe(3,t.Inject(e.ɵi)),oe(4,t.Inject(e.ɵf)),oe(5,t.Inject(e.ɵl)),oe(6,t.Inject(F.PromptService))],e.IoneShoppingCartComponent),e.ɵbc=function(){function e(e,t,n,i){this.iconCacheService=e,this.service=t,this._promptService=n,this._dictionaryService=i,this.iconTrashBin=F.CoreComponentsIcon.TrashBin,this.stock=Z.StockStatus.Low}return Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(e){this._line=e,this.localAmount=this._line.amount,this.isText=this._line.isText,this.isArticle=this._line.isArticle,this.isSelected=this._line.isSelected,this._loadLineImage()},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this._loadLineImage()},e.prototype.changeLineAmount=function(e){var t=this;this.service.changeTransactionLineQuantity(this.line.uuid,e).then((function(e){e&&e.isSuccess?t._handleLine(e).then():t.localAmount=t._line.amount}))},e.prototype.deleteTransactionLineClick=function(){return re(this,void 0,void 0,(function(){var e=this;return ae(this,(function(t){switch(t.label){case 0:return[4,this._promptService.showYesNo(this._dictionaryService.get("DELETE_TRANSACTION_LINE")," ")];case 1:return t.sent()&&this.service.deleteTransactionLine(this.service.currentTransaction.uuid,this.line.uuid).then((function(t){e._handleLine(t)})),[2]}}))}))},e.prototype._loadLineImage=function(){return re(this,void 0,void 0,(function(){var e,t;return ae(this,(function(n){switch(n.label){case 0:return e=this,this.line?[4,this.service.retrieveLineImage(this.line)]:[3,2];case 1:return t=n.sent(),[3,3];case 2:t=void 0,n.label=3;case 3:return e.image=t,[2]}}))}))},e.prototype._confirmAction=function(e){return re(this,void 0,void 0,(function(){var t,n=this;return ae(this,(function(i){switch(i.label){case 0:return t=this.currentReason,[4,this._promptService.showYesNo(e.pendingReason," ")];case 1:return t.confirmation=i.sent(),this.service.resolvePendingLineReason(this.currentReason).then((function(e){n._handleLine(e)})),[2]}}))}))},e.prototype._showInformation=function(e){return re(this,void 0,void 0,(function(){var t=this;return ae(this,(function(n){switch(n.label){case 0:return[4,this._promptService.showOkModal(e.pendingReason," ")];case 1:return n.sent(),this.service.resolvePendingLineReason(this.currentReason).then((function(e){t._handleLine(e)})),[2]}}))}))},e.prototype._handleLine=function(e){return re(this,void 0,void 0,(function(){return ae(this,(function(t){switch(t.label){case 0:if(void 0===e)return[2];switch(this.currentReason=new Q.ResolvePendingLineReasonRequest(e.lineUuid,e.pendingReason,e.pendingReasonType),e.pendingReasonType){case L.PendingReasonType.ABORTED:case L.PendingReasonType.CANCELLED:return[3,1];case L.PendingReasonType.CONFIRMATION_NEEDED:return[3,4];case L.PendingReasonType.NON_CRITICAL_DISCONTINUATION:return[3,6];case L.PendingReasonType.INVALID_LOGISTICS:return[3,8];case L.PendingReasonType.NONE:return[3,10]}return[3,10];case 1:return this.localAmount=this._line.amount,"USER_DECISION"===e.pendingReason?[3,3]:[4,this._promptService.showNotification(this._dictionaryService.get(e.pendingReason)," ")];case 2:t.sent(),t.label=3;case 3:return[3,11];case 4:return[4,this._confirmAction(e)];case 5:return t.sent(),[3,11];case 6:return[4,this._showInformation(e)];case 7:return t.sent(),[3,11];case 8:return this.localAmount=this._line.amount,[4,this._promptService.showError(this._dictionaryService.get(e.pendingReason)," ")];case 9:return t.sent(),[3,11];case 10:return[3,11];case 11:return[2]}}))}))},e}(),ie([t.Input(),t.HostBinding("class.overlayed")],e.ɵbc.prototype,"overlayMode",void 0),ie([t.Input(),t.HostBinding("class.overview")],e.ɵbc.prototype,"overviewMode",void 0),ie([t.HostBinding("class.is-text")],e.ɵbc.prototype,"isText",void 0),ie([t.HostBinding("class.is-article")],e.ɵbc.prototype,"isArticle",void 0),ie([t.HostBinding("class.is-selected")],e.ɵbc.prototype,"isSelected",void 0),ie([t.Input()],e.ɵbc.prototype,"line",null),e.ɵbc=ie([t.Component({selector:"shopping-cart-line",template:'\n <div *ngIf="line.isArticle" class="cart-line-r" fxFlex>\n <div fxLayout="row" class="full-width">\n <div fxLayout="column" class="cart-line-image" *ngIf="!overviewMode">\n <co-button [iconData]="iconCacheService.getIcon(iconTrashBin)"\n [title]="\'DELETE_TRANSACTION_LINE_HINT\' | localize"\n (click)="deleteTransactionLineClick()"\n class="triangle white"\n iconClass="medium light"></co-button>\n </div>\n <div fxLayout="column" class="cart-line-image" *ngIf="!overviewMode">\n <image-display [model]="image" hideOnEmptyModel></image-display>\n </div>\n <div fxLayout="column" class="cart-line-description" fxLayoutGap="20px">\n <div fxLayout="row" fxLayoutGap="10px">\n <span [textContent]="line.goodDescription" class="cart-line-description-main"></span>\n <span *ngIf="line.goodDescription && line.articleNumber">|</span>\n <span [textContent]="line.articleNumber" class="cart-line-description-artnr"></span>\n </div>\n <span [innerHTML]="line.configurationReadable"></span>\n </div>\n </div>\n <div fxLayout="row" class="cart-line-right">\n <div fxLayout="column" class="cart-line-stock" *ngIf="!overlayMode && !overviewMode">\n <span [textContent]="\'STOCK\' | localize" class="small-font"></span>\n <stock-status-indicator [model]="stock"></stock-status-indicator>\n <span [textContent]="\'DELIVERY_TIME_PERIOD\' | localize" class="small-font"></span>\n <span [textContent]="line.deliveryDate | deliveryTime"></span>\n </div>\n <div class="cart-line-amount">\n <co-input-number-picker\n class="horizontal"\n [(model)]="localAmount" [min]="0" [buttonShowMode]="\'always\'"\n [readonly]="true"\n (modelChange)="changeLineAmount($event)"></co-input-number-picker>\n </div>\n\n <div class="cart-line-totals">\n <span [textContent]="line.displayNetLineTotal | coCurrency: true"></span>\n </div>\n </div>\n </div>\n <div *ngIf="line.isText" class="cart-line-t" fxFlex\n [class.article-text]="line.articleBound"\n [textContent]="line.text">\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}:host{padding-bottom:20px;padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px;margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-totals,.cart-line-t{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #dbe3e8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width:800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:700}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:700}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}"]}),oe(0,t.Inject(F.IconCacheService)),oe(1,t.Inject(e.ɵf)),oe(2,t.Inject(F.PromptService)),oe(3,t.Inject(e.ɵi))],e.ɵbc),e.ɵbd=function(){function e(){}return Object.defineProperty(e.prototype,"stockClass",{get:function(){return this.model},enumerable:!0,configurable:!0}),e}(),ie([t.Input()],e.ɵbd.prototype,"model",void 0),e.ɵbd=ie([t.Component({selector:"stock-status-indicator",template:'\n <div [class]="stockClass">\n <div class="square-1"></div>\n <div class="square-2"></div>\n <div class="square-3"></div>\n </div>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}:host{display:inline-block}.flex-center,:host>div{display:flex}.flex-center{flex-direction:row}.flex-center,:host>div{align-items:center!important;justify-content:center!important}:host>div{width:100%;height:100%}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{background-color:hsla(0,0%,100%,.25);width:30px;height:20px}:host>div>div{width:5px;height:5px;flex-shrink:0;flex-grow:0;margin-right:2px}:host>div.empty>div.square-1,:host>div.low>div.square-1,:host>div.none>div.square-1{background-color:#c1002a}:host>div.empty>div.square-2,:host>div.empty div.square-3,:host>div.low>div.square-2,:host>div.low div.square-3,:host>div.none>div.square-2,:host>div.none div.square-3{background-color:#dad9d9}:host>div.medium>div.square-1,:host>div.medium div.square-2{background-color:#df7c2a}:host>div.medium>div.square-3{background-color:#dad9d9}:host>div.high>div.square-1,:host>div.high div.square-2,:host>div.high div.square-3{background-color:#429777}"]})],e.ɵbd),e.ɵbe=function(){function e(e){this._dictionaryService=e,this.title="",this.question="",this.okClick=new t.EventEmitter,this.characteristics=[],this.characteristicsCodes=[],this.characteristicsFields={text:"value",value:"value"}}return Object.defineProperty(e.prototype,"characteristicOptions",{get:function(){return this.characteristics.length>0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.getTranslationWithColon=function(e){return this._dictionaryService.get(e)+":"},e.prototype.open=function(){this.characteristicDialog.open()},e.prototype.close=function(){this.characteristicDialog.close()},e.prototype.onCharacteristicOkClick=function(){return re(this,void 0,void 0,(function(){return ae(this,(function(e){return this.close(),this.okClick.emit(this.value),[2]}))}))},e}(),ie([t.ViewChild("characteristic")],e.ɵbe.prototype,"characteristicDialog",void 0),ie([t.Input()],e.ɵbe.prototype,"title",void 0),ie([t.Input()],e.ɵbe.prototype,"question",void 0),ie([t.Output()],e.ɵbe.prototype,"okClick",void 0),e.ɵbe=ie([t.Component({selector:"characteristic-answer",template:'\n <co-dialog\n #characteristic\n [showCloseIcon]="false"\n >\n <ng-container header>\n <div>\n <span class="characteristic-title"\n [textContent]="getTranslationWithColon(\'ARTICLE\')"\n ></span>\n <span [textContent]="title"></span>\n </div>\n </ng-container>\n\n <ng-container>\n <div>\n <div class="characteristic-header">\n <span class="characteristic-title"\n [textContent]="getTranslationWithColon(\'CHARACTERISTIC_QUESTION\')"\n ></span>\n </div>\n <div class="characteristic-header">\n <span [textContent]="question | localize"></span>\n </div>\n <div *ngIf="characteristicOptions" class="npm characteristic-options">\n <co-input-combo-box [(model)]="value"\n [source]="characteristics"\n [fields]="characteristicsFields"\n [placeholder]="\'VALUE\' | localize"\n [required]="true"\n ></co-input-combo-box>\n </div>\n <div *ngIf="!characteristicOptions" class="characteristic-value">\n <co-input-text\n [(model)]="value"\n [placeholder]="\'VALUE\' | localize "\n required\n ></co-input-text>\n </div>\n </div>\n </ng-container>\n\n <ng-container footer>\n <div class="flex-center">\n <co-button [label]="\'OK\' | localize" (click)="onCharacteristicOkClick()"></co-button>\n </div>\n </ng-container>\n </co-dialog>\n ',styles:["body,html{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}.flex-center{display:flex;flex-direction:row;align-items:center!important;justify-content:center!important}.triangle{border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}.characteristic-title{margin-right:10px}.characteristic-title,.characteristic-value{font-weight:700;font-size:20px}.characteristic-header{display:flex;justify-content:center}"]}),oe(0,t.Inject(e.ɵi))],e.ɵbe),e.IoneShoppingCartModule=function(){},e.IoneShoppingCartModule=ie([t.NgModule({declarations:[e.ɵba,e.ɵbb,e.ɵbc,e.ɵbd,e.IoneShoppingCartComponent,e.ɵbe],imports:[q.BrowserAnimationsModule,F.IconModule,F.InputTextModule,F.InputCheckboxModule,F.InputRadioButtonModule,F.FormModule,F.InputComboBoxModule,F.InputDatePickerModule,F.InputNumberPickerModule,F.CoDialogModule,F.CoDialogPromptModule,F.ButtonModule,G.FlexModule,F.MultiSelectListModule,W.MatStepperModule,F.DropDownModule,F.PopupModule,F.CoSidebarModule,F.CoGridModule,e.ɵq],providers:[e.ɵg,e.ɵi,e.ɵf,e.ɵk,F.PromptService],entryComponents:[e.IoneShoppingCartComponent],exports:[e.IoneShoppingCartComponent],bootstrap:[e.IoneShoppingCartComponent]})],e.IoneShoppingCartModule),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
|
-
//# sourceMappingURL=colijnit-transaction.umd.min.js.map
|