@eid-easy/eideasy-widget 2.4.0 → 2.5.0

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.
@@ -36313,12 +36313,12 @@ if (typeof window !== 'undefined') {
36313
36313
  // EXTERNAL MODULE: ./node_modules/vue/dist/vue.runtime.esm.js
36314
36314
  var vue_runtime_esm = __webpack_require__("2b0e");
36315
36315
 
36316
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=20d318ae&
36316
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=da8aa500&
36317
36317
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.app},[_c('AppLayout')],1)}
36318
36318
  var staticRenderFns = []
36319
36319
 
36320
36320
 
36321
- // CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=20d318ae&
36321
+ // CONCATENATED MODULE: ./src/App.vue?vue&type=template&id=da8aa500&
36322
36322
 
36323
36323
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.for-each.js
36324
36324
  var es_array_for_each = __webpack_require__("4160");
@@ -37372,14 +37372,14 @@ var HeaderContentSubView_component = normalizeComponent(
37372
37372
  )
37373
37373
 
37374
37374
  /* harmony default export */ var HeaderContentSubView = (HeaderContentSubView_component.exports);
37375
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/MethodSelection.vue?vue&type=template&id=7c7ae73c&
37376
- var MethodSelectionvue_type_template_id_7c7ae73c_render = function () {
37375
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/MethodSelection.vue?vue&type=template&id=510fefee&
37376
+ var MethodSelectionvue_type_template_id_510fefee_render = function () {
37377
37377
  var _obj;
37378
37378
  var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[_vm.$style.methodSelection, ( _obj = {}, _obj[_vm.$style.methodSelectionThin] = _vm.isThinLayout, _obj )]},[_c('div',{class:_vm.$style.row},_vm._l((_vm.identificationMethodsInCurrentCountry),function(method){return _c('div',{key:method.actionType,class:_vm.$style.unit},[_c('MethodButton',{attrs:{"button-name":method.buttonName,"disabled":_vm.isLoading,"on-click":function () { return _vm.selectMethod(method.actionType); },"aria-label":_vm.$t('login-method') + ' ' + _vm.$t(method.translationKeys.title)}})],1)}),0),_c('div',{class:_vm.$style.row},_vm._l((_vm.signingMethodsInCurrentCountry),function(method){return _c('div',{key:method.actionType,class:_vm.$style.unit},[_c('MethodButton',{attrs:{"button-name":method.buttonName,"disabled":_vm.isLoading,"on-click":function () { return _vm.selectMethod(method.actionType); },"aria-label":_vm.$t('signature-method') + ' ' + _vm.$t(method.translationKeys.title)}})],1)}),0),_c('div',{ref:"iframeHolder"})])}
37379
- var MethodSelectionvue_type_template_id_7c7ae73c_staticRenderFns = []
37379
+ var MethodSelectionvue_type_template_id_510fefee_staticRenderFns = []
37380
37380
 
37381
37381
 
37382
- // CONCATENATED MODULE: ./src/views/MethodSelection.vue?vue&type=template&id=7c7ae73c&
37382
+ // CONCATENATED MODULE: ./src/views/MethodSelection.vue?vue&type=template&id=510fefee&
37383
37383
 
37384
37384
  // EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
37385
37385
  var runtime = __webpack_require__("96cf");
@@ -37426,108 +37426,85 @@ function _asyncToGenerator(fn) {
37426
37426
  });
37427
37427
  };
37428
37428
  }
37429
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
37430
- var es_array_concat = __webpack_require__("99af");
37429
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButton.vue?vue&type=template&id=7ae5ce06&
37430
+ var MethodButtonvue_type_template_id_7ae5ce06_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{class:_vm.$style.methodButton,attrs:{"href":"#","role":"button","disabled":_vm.disabled},on:{"click":function($event){$event.preventDefault();return _vm.handleClick($event)}}},[_c(_vm.buttonName,{tag:"Component"})],1)}
37431
+ var MethodButtonvue_type_template_id_7ae5ce06_staticRenderFns = []
37431
37432
 
37432
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
37433
- var es_array_find = __webpack_require__("7db0");
37434
37433
 
37435
- // CONCATENATED MODULE: ./src/featureFlags.js
37434
+ // CONCATENATED MODULE: ./src/components/methodButtons/MethodButton.vue?vue&type=template&id=7ae5ce06&
37436
37435
 
37436
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButton.vue?vue&type=template&id=e4be1d66&
37437
+ var IdCardButtonvue_type_template_id_e4be1d66_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconIdCard',{class:_vm.$style.icon})]},proxy:true},{key:"slot2",fn:function(){return [_vm._v(" "+_vm._s(_vm.$t('id-card'))+" ")]},proxy:true}])})}
37438
+ var IdCardButtonvue_type_template_id_e4be1d66_staticRenderFns = []
37437
37439
 
37438
- var flags = {// example
37439
37440
 
37440
- /*
37441
- FF_FREJA_EID_LOGIN: {
37442
- created: '2021-08-02',
37443
- enabledInEnvs: ['development'],
37444
- },
37445
- */
37446
- };
37441
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=template&id=e4be1d66&
37447
37442
 
37448
- var createFeatureFlags = function createFeatureFlags(_ref) {
37449
- var env = _ref.env;
37443
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButtonBase.vue?vue&type=template&id=1891359c&
37444
+ var MethodButtonBasevue_type_template_id_1891359c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.row},[_c('div',{class:_vm.$style.unit},[_vm._t("slot1")],2),_c('div',{class:_vm.$style.unit},[_vm._t("slot2")],2)])}
37445
+ var MethodButtonBasevue_type_template_id_1891359c_staticRenderFns = []
37450
37446
 
37451
- var enabled = function enabled(flag) {
37452
- var isEnabled = false;
37453
37447
 
37454
- if (flags[flag] && flags[flag].enabledInEnvs.includes(env)) {
37455
- isEnabled = true;
37456
- }
37448
+ // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=template&id=1891359c&
37457
37449
 
37458
- return isEnabled;
37459
- };
37450
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButtonBase.vue?vue&type=script&lang=js&
37451
+ /* harmony default export */ var MethodButtonBasevue_type_script_lang_js_ = ({
37452
+ name: 'MethodButtonBase'
37453
+ });
37454
+ // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=script&lang=js&
37455
+ /* harmony default export */ var methodButtons_MethodButtonBasevue_type_script_lang_js_ = (MethodButtonBasevue_type_script_lang_js_);
37456
+ // EXTERNAL MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=style&index=0&lang=scss&module=true&
37457
+ var MethodButtonBasevue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("0f53");
37460
37458
 
37461
- return {
37462
- enabled: enabled
37463
- };
37464
- };
37459
+ // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue
37465
37460
 
37466
- var featureFlags = createFeatureFlags({
37467
- env: "production" || false
37468
- });
37469
- /* harmony default export */ var src_featureFlags = (featureFlags);
37470
- // CONCATENATED MODULE: ./src/components/methodButtons/methodButtonNames.js
37471
- var methodButtonNames = {
37472
- IdCardButton: 'IdCardButton',
37473
- IdCardButtonEE: 'IdCardButtonEE',
37474
- IdCardButtonFi: 'IdCardButtonFi',
37475
- IdCardButtonBe: 'IdCardButtonBe',
37476
- SmartIdButton: 'SmartIdButton',
37477
- MobileIdButton: 'MobileIdButton',
37478
- MobileIdButtonEE: 'MobileIdButtonEE',
37479
- EparakstsMobileButton: 'EparakstsMobileButton',
37480
- FrejaEidButton: 'FrejaEidButton',
37481
- ZealIdButton: 'ZealIdButton',
37482
- MojeIdButton: 'MojeIdButton',
37483
- FinnishTrustNetworkButton: 'FinnishTrustNetworkButton',
37484
- AtHandyButton: 'AtHandyButton',
37485
- IdCardButtonLv: 'IdCardButtonLv',
37486
- IdCardButtonPt: 'IdCardButtonPt',
37487
- OtpButton: 'OtpButton'
37488
- };
37489
- /* harmony default export */ var methodButtons_methodButtonNames = (methodButtonNames);
37490
- // EXTERNAL MODULE: ./node_modules/@eid-easy/eideasy-browser-client/dist/eideasy-browser-client.js
37491
- var eideasy_browser_client = __webpack_require__("0ea0");
37492
- var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_browser_client);
37493
37461
 
37494
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/SignatureFtn.vue?vue&type=template&id=e497ed0c&
37495
- var SignatureFtnvue_type_template_id_e497ed0c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:_vm.$style.note},[_vm._v(" "+_vm._s(_vm.$t('pre-sign-confirmation', {method: _vm.$t('finnish-online-bank')}))+" ")]),_c('div',{class:_vm.$style.formContainer},[_c('AppButton',{attrs:{"on-click":_vm.sign}},[_vm._v(" "+_vm._s(_vm.$t('Sign'))+" ")])],1)])}
37496
- var SignatureFtnvue_type_template_id_e497ed0c_staticRenderFns = []
37497
37462
 
37498
37463
 
37499
- // CONCATENATED MODULE: ./src/views/SignatureFtn.vue?vue&type=template&id=e497ed0c&
37500
37464
 
37501
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/AppButton.vue?vue&type=template&id=7bb31c31&
37502
- var AppButtonvue_type_template_id_7bb31c31_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{class:[_vm.$style.button, _vm.schemeClassName],attrs:{"type":_vm.type},on:{"click":_vm.handleClick}},[_vm._t("default")],2)}
37503
- var AppButtonvue_type_template_id_7bb31c31_staticRenderFns = []
37504
37465
 
37505
37466
 
37506
- // CONCATENATED MODULE: ./src/components/AppButton.vue?vue&type=template&id=7bb31c31&
37507
37467
 
37508
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/AppButton.vue?vue&type=script&lang=js&
37468
+ function MethodButtonBase_injectStyles (context) {
37469
+
37470
+ this["$style"] = (MethodButtonBasevue_type_style_index_0_lang_scss_module_true_["default"].locals || MethodButtonBasevue_type_style_index_0_lang_scss_module_true_["default"])
37509
37471
 
37510
- /* harmony default export */ var AppButtonvue_type_script_lang_js_ = ({
37511
- name: 'AppButton',
37512
- mixins: [src_schemeMixin(['primary', 'secondary'])],
37513
- props: {
37514
- type: String,
37515
- onClick: Function
37516
- },
37517
- methods: {
37518
- handleClick: function handleClick(e) {
37519
- if (!this.disabled && this.onClick) {
37520
- this.onClick(e);
37521
- }
37522
- }
37472
+ }
37473
+
37474
+ /* normalize component */
37475
+
37476
+ var MethodButtonBase_component = normalizeComponent(
37477
+ methodButtons_MethodButtonBasevue_type_script_lang_js_,
37478
+ MethodButtonBasevue_type_template_id_1891359c_render,
37479
+ MethodButtonBasevue_type_template_id_1891359c_staticRenderFns,
37480
+ false,
37481
+ MethodButtonBase_injectStyles,
37482
+ null,
37483
+ null
37484
+
37485
+ )
37486
+
37487
+ /* harmony default export */ var MethodButtonBase = (MethodButtonBase_component.exports);
37488
+ // EXTERNAL MODULE: ./src/assets/svg/id-card.svg
37489
+ var id_card = __webpack_require__("ed45");
37490
+ var id_card_default = /*#__PURE__*/__webpack_require__.n(id_card);
37491
+
37492
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButton.vue?vue&type=script&lang=js&
37493
+
37494
+
37495
+ /* harmony default export */ var IdCardButtonvue_type_script_lang_js_ = ({
37496
+ name: 'MobileIdButton',
37497
+ components: {
37498
+ MethodButtonBase: MethodButtonBase,
37499
+ IconIdCard: id_card_default.a
37523
37500
  }
37524
37501
  });
37525
- // CONCATENATED MODULE: ./src/components/AppButton.vue?vue&type=script&lang=js&
37526
- /* harmony default export */ var components_AppButtonvue_type_script_lang_js_ = (AppButtonvue_type_script_lang_js_);
37527
- // EXTERNAL MODULE: ./src/components/AppButton.vue?vue&type=style&index=0&lang=scss&module=true&
37528
- var AppButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("e513");
37502
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=script&lang=js&
37503
+ /* harmony default export */ var methodButtons_IdCardButtonvue_type_script_lang_js_ = (IdCardButtonvue_type_script_lang_js_);
37504
+ // EXTERNAL MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=style&index=0&lang=scss&module=true&
37505
+ var IdCardButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("bd3c");
37529
37506
 
37530
- // CONCATENATED MODULE: ./src/components/AppButton.vue
37507
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue
37531
37508
 
37532
37509
 
37533
37510
 
@@ -37536,88 +37513,53 @@ var AppButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__
37536
37513
 
37537
37514
 
37538
37515
 
37539
- function AppButton_injectStyles (context) {
37516
+ function IdCardButton_injectStyles (context) {
37540
37517
 
37541
- this["$style"] = (AppButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || AppButtonvue_type_style_index_0_lang_scss_module_true_["default"])
37518
+ this["$style"] = (IdCardButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || IdCardButtonvue_type_style_index_0_lang_scss_module_true_["default"])
37542
37519
 
37543
37520
  }
37544
37521
 
37545
37522
  /* normalize component */
37546
37523
 
37547
- var AppButton_component = normalizeComponent(
37548
- components_AppButtonvue_type_script_lang_js_,
37549
- AppButtonvue_type_template_id_7bb31c31_render,
37550
- AppButtonvue_type_template_id_7bb31c31_staticRenderFns,
37524
+ var IdCardButton_component = normalizeComponent(
37525
+ methodButtons_IdCardButtonvue_type_script_lang_js_,
37526
+ IdCardButtonvue_type_template_id_e4be1d66_render,
37527
+ IdCardButtonvue_type_template_id_e4be1d66_staticRenderFns,
37551
37528
  false,
37552
- AppButton_injectStyles,
37529
+ IdCardButton_injectStyles,
37553
37530
  null,
37554
37531
  null
37555
37532
 
37556
37533
  )
37557
37534
 
37558
- /* harmony default export */ var AppButton = (AppButton_component.exports);
37559
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/SignatureFtn.vue?vue&type=script&lang=js&
37535
+ /* harmony default export */ var IdCardButton = (IdCardButton_component.exports);
37536
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButtonEE.vue?vue&type=template&id=02178dd2&
37537
+ var IdCardButtonEEvue_type_template_id_02178dd2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconIdCardEE',{class:_vm.$style.icon})]},proxy:true}])})}
37538
+ var IdCardButtonEEvue_type_template_id_02178dd2_staticRenderFns = []
37560
37539
 
37561
37540
 
37541
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=template&id=02178dd2&
37562
37542
 
37563
- /* harmony default export */ var SignatureFtnvue_type_script_lang_js_ = ({
37564
- name: 'SignatureFtn',
37565
- components: {
37566
- AppButton: AppButton
37567
- },
37568
- data: function data() {
37569
- return {
37570
- signingProcess: {}
37571
- };
37572
- },
37573
- computed: {
37574
- additionalMethodConfig: function additionalMethodConfig() {
37575
- return this.$root.$options.storeGetters.additionalMethodConfig();
37576
- }
37577
- },
37578
- methods: {
37579
- loadingStart: function loadingStart() {
37580
- this.$root.$options.storeActions.loadingStart();
37581
- },
37582
- loadingEnd: function loadingEnd() {
37583
- this.$root.$options.storeActions.loadingEnd();
37584
- },
37585
- addFlashMessage: function addFlashMessage(message) {
37586
- this.$root.$options.storeActions.addFlashMessage(message);
37587
- },
37588
- clearFlashMessages: function clearFlashMessages() {
37589
- this.$root.$options.storeActions.clearFlashMessages();
37590
- },
37591
- sign: function sign() {
37592
- var _this = this;
37543
+ // EXTERNAL MODULE: ./src/assets/svg/id-kaart.svg
37544
+ var id_kaart = __webpack_require__("732d");
37545
+ var id_kaart_default = /*#__PURE__*/__webpack_require__.n(id_kaart);
37593
37546
 
37594
- this.loadingStart();
37595
- this.clearFlashMessages();
37596
- var additionalMethodConfig = this.additionalMethodConfig || {};
37597
- this.signingProcess = this.$root.$options.eidEasyClient.signature.ftnSignature.start(_objectSpread2({
37598
- fail: function fail(error) {
37599
- if (!error.isCancel) {
37600
- _this.addFlashMessage(error);
37601
- }
37547
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButtonEE.vue?vue&type=script&lang=js&
37602
37548
 
37603
- _this.$root.$options.eidEasyOnFail(error);
37604
- },
37605
- success: function success(result) {
37606
- _this.$root.$options.eidEasyOnSuccess(result);
37607
- },
37608
- finished: function finished() {
37609
- _this.loadingEnd();
37610
- }
37611
- }, additionalMethodConfig));
37612
- }
37549
+
37550
+ /* harmony default export */ var IdCardButtonEEvue_type_script_lang_js_ = ({
37551
+ name: 'IdCardButtonEE',
37552
+ components: {
37553
+ MethodButtonBase: MethodButtonBase,
37554
+ IconIdCardEE: id_kaart_default.a
37613
37555
  }
37614
37556
  });
37615
- // CONCATENATED MODULE: ./src/views/SignatureFtn.vue?vue&type=script&lang=js&
37616
- /* harmony default export */ var views_SignatureFtnvue_type_script_lang_js_ = (SignatureFtnvue_type_script_lang_js_);
37617
- // EXTERNAL MODULE: ./src/views/SignatureFtn.vue?vue&type=style&index=0&lang=scss&module=true&
37618
- var SignatureFtnvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("268a");
37557
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=script&lang=js&
37558
+ /* harmony default export */ var methodButtons_IdCardButtonEEvue_type_script_lang_js_ = (IdCardButtonEEvue_type_script_lang_js_);
37559
+ // EXTERNAL MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=style&index=0&lang=scss&module=true&
37560
+ var IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("52ab");
37619
37561
 
37620
- // CONCATENATED MODULE: ./src/views/SignatureFtn.vue
37562
+ // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue
37621
37563
 
37622
37564
 
37623
37565
 
@@ -37626,501 +37568,93 @@ var SignatureFtnvue_type_style_index_0_lang_scss_module_true_ = __webpack_requir
37626
37568
 
37627
37569
 
37628
37570
 
37629
- function SignatureFtn_injectStyles (context) {
37571
+ function IdCardButtonEE_injectStyles (context) {
37630
37572
 
37631
- this["$style"] = (SignatureFtnvue_type_style_index_0_lang_scss_module_true_["default"].locals || SignatureFtnvue_type_style_index_0_lang_scss_module_true_["default"])
37573
+ this["$style"] = (IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_["default"].locals || IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_["default"])
37632
37574
 
37633
37575
  }
37634
37576
 
37635
37577
  /* normalize component */
37636
37578
 
37637
- var SignatureFtn_component = normalizeComponent(
37638
- views_SignatureFtnvue_type_script_lang_js_,
37639
- SignatureFtnvue_type_template_id_e497ed0c_render,
37640
- SignatureFtnvue_type_template_id_e497ed0c_staticRenderFns,
37579
+ var IdCardButtonEE_component = normalizeComponent(
37580
+ methodButtons_IdCardButtonEEvue_type_script_lang_js_,
37581
+ IdCardButtonEEvue_type_template_id_02178dd2_render,
37582
+ IdCardButtonEEvue_type_template_id_02178dd2_staticRenderFns,
37641
37583
  false,
37642
- SignatureFtn_injectStyles,
37584
+ IdCardButtonEE_injectStyles,
37643
37585
  null,
37644
37586
  null
37645
37587
 
37646
37588
  )
37647
37589
 
37648
- /* harmony default export */ var SignatureFtn = (SignatureFtn_component.exports);
37649
- // CONCATENATED MODULE: ./src/config.js
37590
+ /* harmony default export */ var IdCardButtonEE = (IdCardButtonEE_component.exports);
37591
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/SmartIdButton.vue?vue&type=template&id=3c6e7a06&
37592
+ var SmartIdButtonvue_type_template_id_3c6e7a06_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconSmartId',{class:_vm.$style.icon})]},proxy:true}])})}
37593
+ var SmartIdButtonvue_type_template_id_3c6e7a06_staticRenderFns = []
37650
37594
 
37651
37595
 
37596
+ // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=template&id=3c6e7a06&
37652
37597
 
37598
+ // EXTERNAL MODULE: ./src/assets/svg/smart-id.svg
37599
+ var smart_id = __webpack_require__("ed8e");
37600
+ var smart_id_default = /*#__PURE__*/__webpack_require__.n(smart_id);
37653
37601
 
37602
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/SmartIdButton.vue?vue&type=script&lang=js&
37654
37603
 
37655
37604
 
37605
+ /* harmony default export */ var SmartIdButtonvue_type_script_lang_js_ = ({
37606
+ name: 'SmartIdButton',
37607
+ components: {
37608
+ MethodButtonBase: MethodButtonBase,
37609
+ IconSmartId: smart_id_default.a
37610
+ }
37611
+ });
37612
+ // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=script&lang=js&
37613
+ /* harmony default export */ var methodButtons_SmartIdButtonvue_type_script_lang_js_ = (SmartIdButtonvue_type_script_lang_js_);
37614
+ // EXTERNAL MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=style&index=0&lang=scss&module=true&
37615
+ var SmartIdButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("5951");
37656
37616
 
37657
-
37658
-
37659
-
37660
- var _Object$freeze, _availableMethods;
37661
-
37617
+ // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue
37662
37618
 
37663
37619
 
37664
37620
 
37665
37621
 
37666
37622
 
37667
- var allWidgetMethods = Object.freeze((_Object$freeze = {}, _defineProperty(_Object$freeze, eideasy_browser_client["methodTypes"].IDENTIFICATION, [{
37668
- actionType: eideasy_browser_client["methodActionTypes"].BE_ID_LOGIN,
37669
- buttonName: methodButtons_methodButtonNames.IdCardButtonBe,
37670
- translationKeys: {
37671
- title: 'id-card'
37672
- }
37673
- }, {
37674
- actionType: eideasy_browser_client["methodActionTypes"].EE_ID_LOGIN,
37675
- buttonName: methodButtons_methodButtonNames.IdCardButtonEE,
37676
- translationKeys: {
37677
- title: 'id-card'
37678
- }
37679
- }, {
37680
- actionType: eideasy_browser_client["methodActionTypes"].FI_ID_LOGIN,
37681
- buttonName: methodButtons_methodButtonNames.IdCardButtonFi,
37682
- translationKeys: {
37683
- title: 'id-card'
37684
- }
37685
- }, {
37686
- actionType: eideasy_browser_client["methodActionTypes"].LV_ID_LOGIN,
37687
- buttonName: methodButtons_methodButtonNames.IdCardButtonLv,
37688
- translationKeys: {
37689
- title: 'id-card'
37690
- }
37691
- }, {
37692
- actionType: eideasy_browser_client["methodActionTypes"].LT_ID_LOGIN,
37693
- buttonName: methodButtons_methodButtonNames.IdCardButton,
37694
- translationKeys: {
37695
- title: 'id-card'
37696
- }
37697
- }, {
37698
- actionType: eideasy_browser_client["methodActionTypes"].PT_ID_LOGIN,
37699
- buttonName: methodButtons_methodButtonNames.IdCardButtonPt,
37700
- translationKeys: {
37701
- title: 'id-card'
37702
- }
37703
- }, {
37704
- actionType: eideasy_browser_client["methodActionTypes"].RS_ID_LOGIN,
37705
- buttonName: methodButtons_methodButtonNames.IdCardButton,
37706
- translationKeys: {
37707
- title: 'id-card'
37708
- }
37709
- }, {
37710
- actionType: eideasy_browser_client["methodActionTypes"].EE_MOBILE_ID,
37711
- buttonName: methodButtons_methodButtonNames.MobileIdButtonEE,
37712
- viewName: views_viewNames.MobileIdAuth,
37713
- translationKeys: {
37714
- title: 'mobile-id'
37715
- }
37716
- }, {
37717
- actionType: eideasy_browser_client["methodActionTypes"].LV_EPARAKSTS_MOBILE_LOGIN,
37718
- buttonName: methodButtons_methodButtonNames.EparakstsMobileButton,
37719
- translationKeys: {
37720
- title: 'eparaksts-mobile'
37721
- }
37722
- }, {
37723
- actionType: eideasy_browser_client["methodActionTypes"].LT_MOBILE_ID,
37724
- buttonName: methodButtons_methodButtonNames.MobileIdButton,
37725
- viewName: views_viewNames.MobileIdAuth,
37726
- translationKeys: {
37727
- title: 'mobile-id'
37728
- }
37729
- }, {
37730
- actionType: eideasy_browser_client["methodActionTypes"].SMART_ID,
37731
- buttonName: methodButtons_methodButtonNames.SmartIdButton,
37732
- viewName: views_viewNames.SmartIdAuth,
37733
- translationKeys: {
37734
- title: 'smart-id'
37735
- }
37736
- }, {
37737
- actionType: eideasy_browser_client["methodActionTypes"].FREJA_EID_LOGIN,
37738
- buttonName: methodButtons_methodButtonNames.FrejaEidButton,
37739
- viewName: views_viewNames.IdentificationFrejaId,
37740
- translationKeys: {
37741
- title: 'freja-eid'
37742
- }
37743
- }, {
37744
- actionType: eideasy_browser_client["methodActionTypes"].ZEALID_LOGIN,
37745
- buttonName: methodButtons_methodButtonNames.ZealIdButton,
37746
- viewName: views_viewNames.IdentificationZealId,
37747
- translationKeys: {
37748
- title: 'zeal-id'
37749
- }
37750
- }, {
37751
- actionType: eideasy_browser_client["methodActionTypes"].CZ_MOJEID,
37752
- buttonName: methodButtons_methodButtonNames.MojeIdButton,
37753
- translationKeys: {
37754
- title: 'moje-id'
37755
- }
37756
- }, {
37757
- actionType: eideasy_browser_client["methodActionTypes"].FI_FTN_LOGIN,
37758
- buttonName: methodButtons_methodButtonNames.FinnishTrustNetworkButton,
37759
- translationKeys: {
37760
- title: 'finnish-online-bank'
37761
- }
37762
- }, {
37763
- actionType: eideasy_browser_client["methodActionTypes"].AT_HANDY_SIGNATUR_LOGIN,
37764
- buttonName: methodButtons_methodButtonNames.AtHandyButton,
37765
- translationKeys: {
37766
- title: 'austrian-handy-signatur'
37767
- }
37768
- }]), _defineProperty(_Object$freeze, eideasy_browser_client["methodTypes"].SIGNATURE, [{
37769
- actionType: eideasy_browser_client["methodActionTypes"].BE_IDCARD_SIGNATURE,
37770
- buttonName: methodButtons_methodButtonNames.IdCardButtonBe,
37771
- translationKeys: {
37772
- title: 'id-card'
37773
- }
37774
- }, {
37775
- actionType: eideasy_browser_client["methodActionTypes"].EE_IDCARD_SIGNATURE,
37776
- buttonName: methodButtons_methodButtonNames.IdCardButtonEE,
37777
- translationKeys: {
37778
- title: 'id-card'
37779
- }
37780
- }, {
37781
- actionType: eideasy_browser_client["methodActionTypes"].FI_IDCARD_SIGNATURE,
37782
- buttonName: methodButtons_methodButtonNames.IdCardButtonFi,
37783
- translationKeys: {
37784
- title: 'id-card'
37785
- }
37786
- }, {
37787
- actionType: eideasy_browser_client["methodActionTypes"].LV_IDCARD_SIGNATURE,
37788
- buttonName: methodButtons_methodButtonNames.IdCardButtonLv,
37789
- translationKeys: {
37790
- title: 'id-card'
37791
- }
37792
- }, {
37793
- actionType: eideasy_browser_client["methodActionTypes"].LT_IDCARD_SIGNATURE,
37794
- buttonName: methodButtons_methodButtonNames.IdCardButton,
37795
- translationKeys: {
37796
- title: 'id-card'
37797
- }
37798
- }, {
37799
- actionType: eideasy_browser_client["methodActionTypes"].PT_IDCARD_SIGNATURE,
37800
- buttonName: methodButtons_methodButtonNames.IdCardButtonPt,
37801
- translationKeys: {
37802
- title: 'id-card'
37803
- }
37804
- }, {
37805
- actionType: eideasy_browser_client["methodActionTypes"].SMARTID_SIGNATURE,
37806
- buttonName: methodButtons_methodButtonNames.SmartIdButton,
37807
- viewName: views_viewNames.SignatureSmartId,
37808
- translationKeys: {
37809
- title: 'smart-id'
37810
- }
37811
- }, {
37812
- actionType: eideasy_browser_client["methodActionTypes"].EE_MOBILEID_SIGNATURE,
37813
- buttonName: methodButtons_methodButtonNames.MobileIdButtonEE,
37814
- viewName: views_viewNames.SignatureMobileId,
37815
- translationKeys: {
37816
- title: 'mobile-id'
37817
- }
37818
- }, {
37819
- actionType: eideasy_browser_client["methodActionTypes"].LT_MOBILEID_SIGNATURE,
37820
- buttonName: methodButtons_methodButtonNames.MobileIdButton,
37821
- viewName: views_viewNames.SignatureMobileId,
37822
- translationKeys: {
37823
- title: 'mobile-id'
37824
- }
37825
- }, {
37826
- actionType: eideasy_browser_client["methodActionTypes"].LV_EPARAKSTS_MOBILE_SIGNATURE,
37827
- buttonName: methodButtons_methodButtonNames.EparakstsMobileButton,
37828
- translationKeys: {
37829
- title: 'eparaksts-mobile'
37830
- }
37831
- }, {
37832
- actionType: eideasy_browser_client["methodActionTypes"].FI_FTN_ADVANCED_SIGNATURE,
37833
- buttonName: methodButtons_methodButtonNames.FinnishTrustNetworkButton,
37834
- viewName: views_viewNames.SignatureFtn,
37835
- translationKeys: {
37836
- title: 'finnish-online-bank'
37837
- }
37838
- }, {
37839
- actionType: eideasy_browser_client["methodActionTypes"].OTP_EMAIL,
37840
- buttonName: methodButtons_methodButtonNames.OtpButton,
37841
- viewName: views_viewNames.SignatureOtp,
37842
- translationKeys: {
37843
- title: 'email-sms'
37844
- }
37845
- }, {
37846
- actionType: eideasy_browser_client["methodActionTypes"].AT_HANDY_SIGNATUR_SIGNATURE,
37847
- buttonName: methodButtons_methodButtonNames.AtHandyButton,
37848
- translationKeys: {
37849
- title: 'austrian-handy-signatur'
37850
- }
37851
- }, {
37852
- actionType: eideasy_browser_client["methodActionTypes"].ZEAL_ID_SIGNATURE,
37853
- buttonName: methodButtons_methodButtonNames.ZealIdButton,
37854
- translationKeys: {
37855
- title: 'zeal-id'
37856
- }
37857
- }]), _Object$freeze));
37858
37623
 
37859
- var config_getAvailableMethods = function getAvailableMethods(clientMethods, widgetMethods) {
37860
- var methods = [];
37861
- widgetMethods.forEach(function (widgetMethod) {
37862
- var clientMethod = clientMethods.find(function (clientMethod) {
37863
- return clientMethod.actionType === widgetMethod.actionType;
37864
- });
37865
37624
 
37866
- if (clientMethod) {
37867
- methods.push(_objectSpread2(_objectSpread2({}, clientMethod), widgetMethod));
37868
- }
37869
- });
37870
- return methods;
37871
- }; // intersection of all the methods provided by the eideasy-browser-client and all the methods in this widget
37872
37625
 
37626
+ function SmartIdButton_injectStyles (context) {
37627
+
37628
+ this["$style"] = (SmartIdButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || SmartIdButtonvue_type_style_index_0_lang_scss_module_true_["default"])
37873
37629
 
37874
- var availableMethods = (_availableMethods = {}, _defineProperty(_availableMethods, eideasy_browser_client["methodTypes"].IDENTIFICATION, config_getAvailableMethods(eideasy_browser_client["allMethods"][eideasy_browser_client["methodTypes"].IDENTIFICATION], allWidgetMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION])), _defineProperty(_availableMethods, eideasy_browser_client["methodTypes"].SIGNATURE, config_getAvailableMethods(eideasy_browser_client["allMethods"][eideasy_browser_client["methodTypes"].SIGNATURE], allWidgetMethods[eideasy_browser_client["methodTypes"].SIGNATURE])), _availableMethods);
37630
+ }
37875
37631
 
37876
- var config_createGetMethodsByActionType = function createGetMethodsByActionType(methods) {
37877
- var identificationMethods = methods[eideasy_browser_client["methodTypes"].IDENTIFICATION].map(function (method) {
37878
- method.methodType = eideasy_browser_client["methodTypes"].IDENTIFICATION;
37879
- return method;
37880
- });
37881
- var signatureMethods = methods[eideasy_browser_client["methodTypes"].SIGNATURE].map(function (method) {
37882
- method.methodType = eideasy_browser_client["methodTypes"].SIGNATURE;
37883
- return method;
37884
- });
37885
- var allMethods = [].concat(_toConsumableArray(identificationMethods), _toConsumableArray(signatureMethods));
37886
- var methodsByActionType = {};
37887
- allMethods.forEach(function (method) {
37888
- return methodsByActionType[method.actionType] = method;
37889
- });
37890
- return methodsByActionType;
37891
- };
37632
+ /* normalize component */
37892
37633
 
37893
- var config_methodsByActionType = config_createGetMethodsByActionType(availableMethods);
37634
+ var SmartIdButton_component = normalizeComponent(
37635
+ methodButtons_SmartIdButtonvue_type_script_lang_js_,
37636
+ SmartIdButtonvue_type_template_id_3c6e7a06_render,
37637
+ SmartIdButtonvue_type_template_id_3c6e7a06_staticRenderFns,
37638
+ false,
37639
+ SmartIdButton_injectStyles,
37640
+ null,
37641
+ null
37642
+
37643
+ )
37894
37644
 
37895
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButton.vue?vue&type=template&id=7ae5ce06&
37896
- var MethodButtonvue_type_template_id_7ae5ce06_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',{class:_vm.$style.methodButton,attrs:{"href":"#","role":"button","disabled":_vm.disabled},on:{"click":function($event){$event.preventDefault();return _vm.handleClick($event)}}},[_c(_vm.buttonName,{tag:"Component"})],1)}
37897
- var MethodButtonvue_type_template_id_7ae5ce06_staticRenderFns = []
37645
+ /* harmony default export */ var SmartIdButton = (SmartIdButton_component.exports);
37646
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MobileIdButton.vue?vue&type=template&id=ba752324&
37647
+ var MobileIdButtonvue_type_template_id_ba752324_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconMobileId',{class:_vm.$style.icon})]},proxy:true},{key:"slot2",fn:function(){return [_vm._v(" "+_vm._s(_vm.$t('mobile-id'))+" ")]},proxy:true}])})}
37648
+ var MobileIdButtonvue_type_template_id_ba752324_staticRenderFns = []
37898
37649
 
37899
37650
 
37900
- // CONCATENATED MODULE: ./src/components/methodButtons/MethodButton.vue?vue&type=template&id=7ae5ce06&
37651
+ // CONCATENATED MODULE: ./src/components/methodButtons/MobileIdButton.vue?vue&type=template&id=ba752324&
37901
37652
 
37902
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButton.vue?vue&type=template&id=e4be1d66&
37903
- var IdCardButtonvue_type_template_id_e4be1d66_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconIdCard',{class:_vm.$style.icon})]},proxy:true},{key:"slot2",fn:function(){return [_vm._v(" "+_vm._s(_vm.$t('id-card'))+" ")]},proxy:true}])})}
37904
- var IdCardButtonvue_type_template_id_e4be1d66_staticRenderFns = []
37653
+ // EXTERNAL MODULE: ./src/assets/svg/mobile-id.svg
37654
+ var mobile_id = __webpack_require__("23e5");
37655
+ var mobile_id_default = /*#__PURE__*/__webpack_require__.n(mobile_id);
37905
37656
 
37906
-
37907
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=template&id=e4be1d66&
37908
-
37909
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButtonBase.vue?vue&type=template&id=1891359c&
37910
- var MethodButtonBasevue_type_template_id_1891359c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.row},[_c('div',{class:_vm.$style.unit},[_vm._t("slot1")],2),_c('div',{class:_vm.$style.unit},[_vm._t("slot2")],2)])}
37911
- var MethodButtonBasevue_type_template_id_1891359c_staticRenderFns = []
37912
-
37913
-
37914
- // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=template&id=1891359c&
37915
-
37916
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MethodButtonBase.vue?vue&type=script&lang=js&
37917
- /* harmony default export */ var MethodButtonBasevue_type_script_lang_js_ = ({
37918
- name: 'MethodButtonBase'
37919
- });
37920
- // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=script&lang=js&
37921
- /* harmony default export */ var methodButtons_MethodButtonBasevue_type_script_lang_js_ = (MethodButtonBasevue_type_script_lang_js_);
37922
- // EXTERNAL MODULE: ./src/components/methodButtons/MethodButtonBase.vue?vue&type=style&index=0&lang=scss&module=true&
37923
- var MethodButtonBasevue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("0f53");
37924
-
37925
- // CONCATENATED MODULE: ./src/components/methodButtons/MethodButtonBase.vue
37926
-
37927
-
37928
-
37929
-
37930
-
37931
-
37932
-
37933
-
37934
- function MethodButtonBase_injectStyles (context) {
37935
-
37936
- this["$style"] = (MethodButtonBasevue_type_style_index_0_lang_scss_module_true_["default"].locals || MethodButtonBasevue_type_style_index_0_lang_scss_module_true_["default"])
37937
-
37938
- }
37939
-
37940
- /* normalize component */
37941
-
37942
- var MethodButtonBase_component = normalizeComponent(
37943
- methodButtons_MethodButtonBasevue_type_script_lang_js_,
37944
- MethodButtonBasevue_type_template_id_1891359c_render,
37945
- MethodButtonBasevue_type_template_id_1891359c_staticRenderFns,
37946
- false,
37947
- MethodButtonBase_injectStyles,
37948
- null,
37949
- null
37950
-
37951
- )
37952
-
37953
- /* harmony default export */ var MethodButtonBase = (MethodButtonBase_component.exports);
37954
- // EXTERNAL MODULE: ./src/assets/svg/id-card.svg
37955
- var id_card = __webpack_require__("ed45");
37956
- var id_card_default = /*#__PURE__*/__webpack_require__.n(id_card);
37957
-
37958
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButton.vue?vue&type=script&lang=js&
37959
-
37960
-
37961
- /* harmony default export */ var IdCardButtonvue_type_script_lang_js_ = ({
37962
- name: 'MobileIdButton',
37963
- components: {
37964
- MethodButtonBase: MethodButtonBase,
37965
- IconIdCard: id_card_default.a
37966
- }
37967
- });
37968
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=script&lang=js&
37969
- /* harmony default export */ var methodButtons_IdCardButtonvue_type_script_lang_js_ = (IdCardButtonvue_type_script_lang_js_);
37970
- // EXTERNAL MODULE: ./src/components/methodButtons/IdCardButton.vue?vue&type=style&index=0&lang=scss&module=true&
37971
- var IdCardButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("bd3c");
37972
-
37973
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButton.vue
37974
-
37975
-
37976
-
37977
-
37978
-
37979
-
37980
-
37981
-
37982
- function IdCardButton_injectStyles (context) {
37983
-
37984
- this["$style"] = (IdCardButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || IdCardButtonvue_type_style_index_0_lang_scss_module_true_["default"])
37985
-
37986
- }
37987
-
37988
- /* normalize component */
37989
-
37990
- var IdCardButton_component = normalizeComponent(
37991
- methodButtons_IdCardButtonvue_type_script_lang_js_,
37992
- IdCardButtonvue_type_template_id_e4be1d66_render,
37993
- IdCardButtonvue_type_template_id_e4be1d66_staticRenderFns,
37994
- false,
37995
- IdCardButton_injectStyles,
37996
- null,
37997
- null
37998
-
37999
- )
38000
-
38001
- /* harmony default export */ var IdCardButton = (IdCardButton_component.exports);
38002
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButtonEE.vue?vue&type=template&id=02178dd2&
38003
- var IdCardButtonEEvue_type_template_id_02178dd2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconIdCardEE',{class:_vm.$style.icon})]},proxy:true}])})}
38004
- var IdCardButtonEEvue_type_template_id_02178dd2_staticRenderFns = []
38005
-
38006
-
38007
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=template&id=02178dd2&
38008
-
38009
- // EXTERNAL MODULE: ./src/assets/svg/id-kaart.svg
38010
- var id_kaart = __webpack_require__("732d");
38011
- var id_kaart_default = /*#__PURE__*/__webpack_require__.n(id_kaart);
38012
-
38013
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/IdCardButtonEE.vue?vue&type=script&lang=js&
38014
-
38015
-
38016
- /* harmony default export */ var IdCardButtonEEvue_type_script_lang_js_ = ({
38017
- name: 'IdCardButtonEE',
38018
- components: {
38019
- MethodButtonBase: MethodButtonBase,
38020
- IconIdCardEE: id_kaart_default.a
38021
- }
38022
- });
38023
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=script&lang=js&
38024
- /* harmony default export */ var methodButtons_IdCardButtonEEvue_type_script_lang_js_ = (IdCardButtonEEvue_type_script_lang_js_);
38025
- // EXTERNAL MODULE: ./src/components/methodButtons/IdCardButtonEE.vue?vue&type=style&index=0&lang=scss&module=true&
38026
- var IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("52ab");
38027
-
38028
- // CONCATENATED MODULE: ./src/components/methodButtons/IdCardButtonEE.vue
38029
-
38030
-
38031
-
38032
-
38033
-
38034
-
38035
-
38036
-
38037
- function IdCardButtonEE_injectStyles (context) {
38038
-
38039
- this["$style"] = (IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_["default"].locals || IdCardButtonEEvue_type_style_index_0_lang_scss_module_true_["default"])
38040
-
38041
- }
38042
-
38043
- /* normalize component */
38044
-
38045
- var IdCardButtonEE_component = normalizeComponent(
38046
- methodButtons_IdCardButtonEEvue_type_script_lang_js_,
38047
- IdCardButtonEEvue_type_template_id_02178dd2_render,
38048
- IdCardButtonEEvue_type_template_id_02178dd2_staticRenderFns,
38049
- false,
38050
- IdCardButtonEE_injectStyles,
38051
- null,
38052
- null
38053
-
38054
- )
38055
-
38056
- /* harmony default export */ var IdCardButtonEE = (IdCardButtonEE_component.exports);
38057
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/SmartIdButton.vue?vue&type=template&id=3c6e7a06&
38058
- var SmartIdButtonvue_type_template_id_3c6e7a06_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconSmartId',{class:_vm.$style.icon})]},proxy:true}])})}
38059
- var SmartIdButtonvue_type_template_id_3c6e7a06_staticRenderFns = []
38060
-
38061
-
38062
- // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=template&id=3c6e7a06&
38063
-
38064
- // EXTERNAL MODULE: ./src/assets/svg/smart-id.svg
38065
- var smart_id = __webpack_require__("ed8e");
38066
- var smart_id_default = /*#__PURE__*/__webpack_require__.n(smart_id);
38067
-
38068
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/SmartIdButton.vue?vue&type=script&lang=js&
38069
-
38070
-
38071
- /* harmony default export */ var SmartIdButtonvue_type_script_lang_js_ = ({
38072
- name: 'SmartIdButton',
38073
- components: {
38074
- MethodButtonBase: MethodButtonBase,
38075
- IconSmartId: smart_id_default.a
38076
- }
38077
- });
38078
- // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=script&lang=js&
38079
- /* harmony default export */ var methodButtons_SmartIdButtonvue_type_script_lang_js_ = (SmartIdButtonvue_type_script_lang_js_);
38080
- // EXTERNAL MODULE: ./src/components/methodButtons/SmartIdButton.vue?vue&type=style&index=0&lang=scss&module=true&
38081
- var SmartIdButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("5951");
38082
-
38083
- // CONCATENATED MODULE: ./src/components/methodButtons/SmartIdButton.vue
38084
-
38085
-
38086
-
38087
-
38088
-
38089
-
38090
-
38091
-
38092
- function SmartIdButton_injectStyles (context) {
38093
-
38094
- this["$style"] = (SmartIdButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || SmartIdButtonvue_type_style_index_0_lang_scss_module_true_["default"])
38095
-
38096
- }
38097
-
38098
- /* normalize component */
38099
-
38100
- var SmartIdButton_component = normalizeComponent(
38101
- methodButtons_SmartIdButtonvue_type_script_lang_js_,
38102
- SmartIdButtonvue_type_template_id_3c6e7a06_render,
38103
- SmartIdButtonvue_type_template_id_3c6e7a06_staticRenderFns,
38104
- false,
38105
- SmartIdButton_injectStyles,
38106
- null,
38107
- null
38108
-
38109
- )
38110
-
38111
- /* harmony default export */ var SmartIdButton = (SmartIdButton_component.exports);
38112
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MobileIdButton.vue?vue&type=template&id=ba752324&
38113
- var MobileIdButtonvue_type_template_id_ba752324_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('MethodButtonBase',{scopedSlots:_vm._u([{key:"slot1",fn:function(){return [_c('IconMobileId',{class:_vm.$style.icon})]},proxy:true},{key:"slot2",fn:function(){return [_vm._v(" "+_vm._s(_vm.$t('mobile-id'))+" ")]},proxy:true}])})}
38114
- var MobileIdButtonvue_type_template_id_ba752324_staticRenderFns = []
38115
-
38116
-
38117
- // CONCATENATED MODULE: ./src/components/methodButtons/MobileIdButton.vue?vue&type=template&id=ba752324&
38118
-
38119
- // EXTERNAL MODULE: ./src/assets/svg/mobile-id.svg
38120
- var mobile_id = __webpack_require__("23e5");
38121
- var mobile_id_default = /*#__PURE__*/__webpack_require__.n(mobile_id);
38122
-
38123
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MobileIdButton.vue?vue&type=script&lang=js&
37657
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/methodButtons/MobileIdButton.vue?vue&type=script&lang=js&
38124
37658
 
38125
37659
 
38126
37660
  /* harmony default export */ var MobileIdButtonvue_type_script_lang_js_ = ({
@@ -38883,7 +38417,6 @@ var MethodButton_component = normalizeComponent(
38883
38417
 
38884
38418
 
38885
38419
 
38886
-
38887
38420
  /* harmony default export */ var MethodSelectionvue_type_script_lang_js_ = ({
38888
38421
  name: 'MethodSelection',
38889
38422
  components: {
@@ -38907,6 +38440,9 @@ var MethodButton_component = normalizeComponent(
38907
38440
  },
38908
38441
  isThinLayout: function isThinLayout() {
38909
38442
  return this.identificationMethodsInCurrentCountry.length % 2 !== 0 || this.signingMethodsInCurrentCountry.length % 2 !== 0;
38443
+ },
38444
+ methodsByActionType: function methodsByActionType() {
38445
+ return this.$root.$options.eidEasyMethodsConfig.methodsByActionType;
38910
38446
  }
38911
38447
  },
38912
38448
  watch: {
@@ -38916,7 +38452,7 @@ var MethodButton_component = normalizeComponent(
38916
38452
  return;
38917
38453
  }
38918
38454
 
38919
- var method = config_methodsByActionType[newMethod.actionType]; // if a method doesn't have a viewname then it means that this method
38455
+ var method = this.methodsByActionType[newMethod.actionType]; // if a method doesn't have a viewname then it means that this method
38920
38456
  // has no sub views and doesn't need any additional user input and can therefore be started immediately
38921
38457
 
38922
38458
  if (!method.viewName) {
@@ -39033,8 +38569,8 @@ function MethodSelection_injectStyles (context) {
39033
38569
 
39034
38570
  var MethodSelection_component = normalizeComponent(
39035
38571
  views_MethodSelectionvue_type_script_lang_js_,
39036
- MethodSelectionvue_type_template_id_7c7ae73c_render,
39037
- MethodSelectionvue_type_template_id_7c7ae73c_staticRenderFns,
38572
+ MethodSelectionvue_type_template_id_510fefee_render,
38573
+ MethodSelectionvue_type_template_id_510fefee_staticRenderFns,
39038
38574
  false,
39039
38575
  MethodSelection_injectStyles,
39040
38576
  null,
@@ -39061,6 +38597,9 @@ var AppFormvue_type_template_id_f7509fbc_staticRenderFns = []
39061
38597
 
39062
38598
  // CONCATENATED MODULE: ./src/components/AppForm.vue?vue&type=template&id=f7509fbc&
39063
38599
 
38600
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
38601
+ var es_array_concat = __webpack_require__("99af");
38602
+
39064
38603
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
39065
38604
  var es_array_reduce = __webpack_require__("13d5");
39066
38605
 
@@ -39071,21 +38610,79 @@ var FormButtonvue_type_template_id_6eab7190_staticRenderFns = []
39071
38610
 
39072
38611
  // CONCATENATED MODULE: ./src/components/FormButton.vue?vue&type=template&id=6eab7190&
39073
38612
 
39074
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/FormButton.vue?vue&type=script&lang=js&
38613
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/AppButton.vue?vue&type=template&id=7bb31c31&
38614
+ var AppButtonvue_type_template_id_7bb31c31_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{class:[_vm.$style.button, _vm.schemeClassName],attrs:{"type":_vm.type},on:{"click":_vm.handleClick}},[_vm._t("default")],2)}
38615
+ var AppButtonvue_type_template_id_7bb31c31_staticRenderFns = []
39075
38616
 
39076
- /* harmony default export */ var FormButtonvue_type_script_lang_js_ = ({
39077
- name: 'FormButton',
39078
- components: {
39079
- AppButton: AppButton
39080
- },
38617
+
38618
+ // CONCATENATED MODULE: ./src/components/AppButton.vue?vue&type=template&id=7bb31c31&
38619
+
38620
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/AppButton.vue?vue&type=script&lang=js&
38621
+
38622
+ /* harmony default export */ var AppButtonvue_type_script_lang_js_ = ({
38623
+ name: 'AppButton',
38624
+ mixins: [src_schemeMixin(['primary', 'secondary'])],
39081
38625
  props: {
39082
- label: String,
39083
- type: String
38626
+ type: String,
38627
+ onClick: Function
38628
+ },
38629
+ methods: {
38630
+ handleClick: function handleClick(e) {
38631
+ if (!this.disabled && this.onClick) {
38632
+ this.onClick(e);
38633
+ }
38634
+ }
39084
38635
  }
39085
38636
  });
39086
- // CONCATENATED MODULE: ./src/components/FormButton.vue?vue&type=script&lang=js&
39087
- /* harmony default export */ var components_FormButtonvue_type_script_lang_js_ = (FormButtonvue_type_script_lang_js_);
39088
- // CONCATENATED MODULE: ./src/components/FormButton.vue
38637
+ // CONCATENATED MODULE: ./src/components/AppButton.vue?vue&type=script&lang=js&
38638
+ /* harmony default export */ var components_AppButtonvue_type_script_lang_js_ = (AppButtonvue_type_script_lang_js_);
38639
+ // EXTERNAL MODULE: ./src/components/AppButton.vue?vue&type=style&index=0&lang=scss&module=true&
38640
+ var AppButtonvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("e513");
38641
+
38642
+ // CONCATENATED MODULE: ./src/components/AppButton.vue
38643
+
38644
+
38645
+
38646
+
38647
+
38648
+
38649
+
38650
+
38651
+ function AppButton_injectStyles (context) {
38652
+
38653
+ this["$style"] = (AppButtonvue_type_style_index_0_lang_scss_module_true_["default"].locals || AppButtonvue_type_style_index_0_lang_scss_module_true_["default"])
38654
+
38655
+ }
38656
+
38657
+ /* normalize component */
38658
+
38659
+ var AppButton_component = normalizeComponent(
38660
+ components_AppButtonvue_type_script_lang_js_,
38661
+ AppButtonvue_type_template_id_7bb31c31_render,
38662
+ AppButtonvue_type_template_id_7bb31c31_staticRenderFns,
38663
+ false,
38664
+ AppButton_injectStyles,
38665
+ null,
38666
+ null
38667
+
38668
+ )
38669
+
38670
+ /* harmony default export */ var AppButton = (AppButton_component.exports);
38671
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/FormButton.vue?vue&type=script&lang=js&
38672
+
38673
+ /* harmony default export */ var FormButtonvue_type_script_lang_js_ = ({
38674
+ name: 'FormButton',
38675
+ components: {
38676
+ AppButton: AppButton
38677
+ },
38678
+ props: {
38679
+ label: String,
38680
+ type: String
38681
+ }
38682
+ });
38683
+ // CONCATENATED MODULE: ./src/components/FormButton.vue?vue&type=script&lang=js&
38684
+ /* harmony default export */ var components_FormButtonvue_type_script_lang_js_ = (FormButtonvue_type_script_lang_js_);
38685
+ // CONCATENATED MODULE: ./src/components/FormButton.vue
39089
38686
 
39090
38687
 
39091
38688
 
@@ -40433,6 +40030,102 @@ var SignatureMobileId_component = normalizeComponent(
40433
40030
  )
40434
40031
 
40435
40032
  /* harmony default export */ var SignatureMobileId = (SignatureMobileId_component.exports);
40033
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/SignatureFtn.vue?vue&type=template&id=89f3ab84&
40034
+ var SignatureFtnvue_type_template_id_89f3ab84_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{class:_vm.$style.note},[_vm._v(" "+_vm._s(_vm.$t('pre-sign-confirmation', {method: _vm.$t('finnish-online-bank')}))+" ")]),_c('div',{class:_vm.$style.formContainer},[_c('AppButton',{attrs:{"on-click":_vm.sign}},[_vm._v(" "+_vm._s(_vm.$t('Sign'))+" ")])],1)])}
40035
+ var SignatureFtnvue_type_template_id_89f3ab84_staticRenderFns = []
40036
+
40037
+
40038
+ // CONCATENATED MODULE: ./src/views/SignatureFtn.vue?vue&type=template&id=89f3ab84&
40039
+
40040
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/SignatureFtn.vue?vue&type=script&lang=js&
40041
+
40042
+
40043
+ /* harmony default export */ var SignatureFtnvue_type_script_lang_js_ = ({
40044
+ name: 'SignatureFtn',
40045
+ components: {
40046
+ AppButton: AppButton
40047
+ },
40048
+ data: function data() {
40049
+ return {
40050
+ signingProcess: {}
40051
+ };
40052
+ },
40053
+ computed: {
40054
+ additionalMethodConfig: function additionalMethodConfig() {
40055
+ return this.$root.$options.storeGetters.additionalMethodConfig();
40056
+ }
40057
+ },
40058
+ methods: {
40059
+ loadingStart: function loadingStart() {
40060
+ this.$root.$options.storeActions.loadingStart();
40061
+ },
40062
+ loadingEnd: function loadingEnd() {
40063
+ this.$root.$options.storeActions.loadingEnd();
40064
+ },
40065
+ addFlashMessage: function addFlashMessage(message) {
40066
+ this.$root.$options.storeActions.addFlashMessage(message);
40067
+ },
40068
+ clearFlashMessages: function clearFlashMessages() {
40069
+ this.$root.$options.storeActions.clearFlashMessages();
40070
+ },
40071
+ sign: function sign() {
40072
+ var _this = this;
40073
+
40074
+ this.loadingStart();
40075
+ this.clearFlashMessages();
40076
+ var additionalMethodConfig = this.additionalMethodConfig || {};
40077
+ this.signingProcess = this.$root.$options.eidEasyClient.signature.ftnSignature.start(_objectSpread2({
40078
+ fail: function fail(error) {
40079
+ if (!error.isCancel) {
40080
+ _this.addFlashMessage(error);
40081
+ }
40082
+
40083
+ _this.$root.$options.eidEasyOnFail(error);
40084
+ },
40085
+ success: function success(result) {
40086
+ _this.$root.$options.eidEasyOnSuccess(result);
40087
+ },
40088
+ finished: function finished() {
40089
+ _this.loadingEnd();
40090
+ }
40091
+ }, additionalMethodConfig));
40092
+ }
40093
+ }
40094
+ });
40095
+ // CONCATENATED MODULE: ./src/views/SignatureFtn.vue?vue&type=script&lang=js&
40096
+ /* harmony default export */ var views_SignatureFtnvue_type_script_lang_js_ = (SignatureFtnvue_type_script_lang_js_);
40097
+ // EXTERNAL MODULE: ./src/views/SignatureFtn.vue?vue&type=style&index=0&lang=scss&module=true&
40098
+ var SignatureFtnvue_type_style_index_0_lang_scss_module_true_ = __webpack_require__("268a");
40099
+
40100
+ // CONCATENATED MODULE: ./src/views/SignatureFtn.vue
40101
+
40102
+
40103
+
40104
+
40105
+
40106
+
40107
+
40108
+
40109
+ function SignatureFtn_injectStyles (context) {
40110
+
40111
+ this["$style"] = (SignatureFtnvue_type_style_index_0_lang_scss_module_true_["default"].locals || SignatureFtnvue_type_style_index_0_lang_scss_module_true_["default"])
40112
+
40113
+ }
40114
+
40115
+ /* normalize component */
40116
+
40117
+ var SignatureFtn_component = normalizeComponent(
40118
+ views_SignatureFtnvue_type_script_lang_js_,
40119
+ SignatureFtnvue_type_template_id_89f3ab84_render,
40120
+ SignatureFtnvue_type_template_id_89f3ab84_staticRenderFns,
40121
+ false,
40122
+ SignatureFtn_injectStyles,
40123
+ null,
40124
+ null
40125
+
40126
+ )
40127
+
40128
+ /* harmony default export */ var SignatureFtn = (SignatureFtn_component.exports);
40436
40129
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2df7fcf6-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/views/SignatureOtp.vue?vue&type=template&id=59f05d72&
40437
40130
  var SignatureOtpvue_type_template_id_59f05d72_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.$style.formContainer},[(_vm.showConfirm)?_c('div',[_c('div',{class:_vm.$style.mb4},[_vm._v(" "+_vm._s(_vm.$t('confirm-doc-check-and-sign'))+" ")]),_c('AppButton',{class:_vm.$style.mb4,attrs:{"on-click":_vm.approveConfirm}},[_vm._v(" "+_vm._s(_vm.$t('yes'))+" ")]),_c('AppButton',{class:_vm.$style.mb4,attrs:{"scheme":"secondary","on-click":_vm.rejectConfirm}},[_vm._v(" "+_vm._s(_vm.$t('no'))+" ")])],1):_c('div',[(_vm.emailToken)?_c('div',[(_vm.otpPhone)?_c('div',{class:_vm.$style.mb4},[_vm._v(" Phone: "+_vm._s(_vm.otpPhone)+" ")]):_vm._e(),(_vm.otpEmail)?_c('div',{class:_vm.$style.mb4},[_vm._v(" Email: "),_c('b',[_vm._v(_vm._s(_vm.otpEmail))])]):_vm._e()]):_vm._e(),(_vm.schema.length)?_c('div',[_c('AppForm',{attrs:{"id":"otpSignatureForm","schema":_vm.schema,"on-submit":_vm.startConfirm,"errors":_vm.fieldErrors},model:{value:(_vm.formValue),callback:function ($$v) {_vm.formValue=$$v},expression:"formValue"}})],1):_c('div',[_c('AppAlert',{attrs:{"scheme":"danger"}},[_vm._v(" Missing otpEmail or otpPhone ")])],1)])])}
40438
40131
  var SignatureOtpvue_type_template_id_59f05d72_staticRenderFns = []
@@ -40718,6 +40411,49 @@ var AppLayout_component = normalizeComponent(
40718
40411
  )
40719
40412
 
40720
40413
  /* harmony default export */ var AppLayout = (AppLayout_component.exports);
40414
+ // CONCATENATED MODULE: ./src/featureFlags.js
40415
+
40416
+
40417
+ var flags = {// example
40418
+
40419
+ /*
40420
+ FF_FREJA_EID_LOGIN: {
40421
+ created: '2021-08-02',
40422
+ enabledInEnvs: ['development'],
40423
+ },
40424
+ */
40425
+ };
40426
+
40427
+ var createFeatureFlags = function createFeatureFlags(_ref) {
40428
+ var env = _ref.env;
40429
+
40430
+ var enabled = function enabled(flag) {
40431
+ var isEnabled = false;
40432
+
40433
+ if (flags[flag] && flags[flag].enabledInEnvs.includes(env)) {
40434
+ isEnabled = true;
40435
+ }
40436
+
40437
+ return isEnabled;
40438
+ };
40439
+
40440
+ return {
40441
+ enabled: enabled
40442
+ };
40443
+ };
40444
+
40445
+ var featureFlags = createFeatureFlags({
40446
+ env: "production" || false
40447
+ });
40448
+ /* harmony default export */ var src_featureFlags = (featureFlags);
40449
+ // EXTERNAL MODULE: ./node_modules/@eid-easy/eideasy-browser-client/dist/eideasy-browser-client.js
40450
+ var eideasy_browser_client = __webpack_require__("0ea0");
40451
+ var eideasy_browser_client_default = /*#__PURE__*/__webpack_require__.n(eideasy_browser_client);
40452
+
40453
+ // CONCATENATED MODULE: ./src/config.js
40454
+
40455
+
40456
+
40721
40457
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&
40722
40458
 
40723
40459
 
@@ -40814,6 +40550,9 @@ var AppLayout_component = normalizeComponent(
40814
40550
  debug: {
40815
40551
  type: Boolean,
40816
40552
  default: false
40553
+ },
40554
+ methodsConfigFilter: {
40555
+ type: Function
40817
40556
  }
40818
40557
  },
40819
40558
  computed: {
@@ -40906,7 +40645,7 @@ var AppLayout_component = normalizeComponent(
40906
40645
  // in this case the widget would make a request to the default ee. endpoint - that we do not want
40907
40646
  // so, we'll take the first country from the countries whitelist instead
40908
40647
 
40909
- var supportedCountries = config_methodsByActionType[selectedMethod].supportedCountries;
40648
+ var supportedCountries = this.$root.$options.eidEasyMethodsConfig.methodsByActionType[selectedMethod].supportedCountries;
40910
40649
 
40911
40650
  if (Array.isArray(supportedCountries) && !supportedCountries.includes(countryToSelect)) {
40912
40651
  countryToSelect = supportedCountries[0].toUpperCase();
@@ -43710,6 +43449,9 @@ function loadLocaleMessages() {
43710
43449
  var vue_select = __webpack_require__("4a7a");
43711
43450
  var vue_select_default = /*#__PURE__*/__webpack_require__.n(vue_select);
43712
43451
 
43452
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
43453
+ var es_array_find = __webpack_require__("7db0");
43454
+
43713
43455
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.flat.js
43714
43456
  var es_array_flat = __webpack_require__("0481");
43715
43457
 
@@ -43743,7 +43485,10 @@ var es_set = __webpack_require__("6062");
43743
43485
 
43744
43486
 
43745
43487
 
43746
- var createStore_createStore = function createStore() {
43488
+ var createStore_createStore = function createStore(_ref) {
43489
+ var methodsConfig = _ref.methodsConfig;
43490
+ var availableMethods = methodsConfig.availableMethods,
43491
+ methodsByActionType = methodsConfig.methodsByActionType;
43747
43492
  var store = vue_runtime_esm["a" /* default */].observable({
43748
43493
  countryCode: 'EE',
43749
43494
  currentView: views_viewNames.MethodSelection,
@@ -43786,7 +43531,7 @@ var createStore_createStore = function createStore() {
43786
43531
  },
43787
43532
  currentViewTitleKey: function currentViewTitleKey() {
43788
43533
  var currentMethod = store.currentMethod && store.currentMethod.actionType;
43789
- return config_methodsByActionType[currentMethod].translationKeys && config_methodsByActionType[currentMethod].translationKeys.title;
43534
+ return methodsByActionType[currentMethod].translationKeys && methodsByActionType[currentMethod].translationKeys.title;
43790
43535
  },
43791
43536
  isLoading: function isLoading() {
43792
43537
  return store.isLoading;
@@ -43823,207 +43568,489 @@ var createStore_createStore = function createStore() {
43823
43568
  } // we use Set to remove duplicates
43824
43569
 
43825
43570
 
43826
- return _toConsumableArray(new Set(resultingCountries)).map(function (countryCode) {
43827
- return countryCode.toUpperCase();
43828
- });
43829
- },
43830
- callingCode: function callingCode() {
43831
- return src_callingCodes[store.countryCode];
43832
- },
43833
- inputValues: function inputValues() {
43834
- return store.inputValues;
43835
- },
43836
- otpEmail: function otpEmail() {
43837
- return store.otpEmail;
43838
- },
43839
- otpPhone: function otpPhone() {
43840
- return store.otpPhone;
43841
- },
43842
- emailToken: function emailToken() {
43843
- return store.emailToken;
43844
- },
43845
- additionalMethodConfig: function additionalMethodConfig() {
43846
- return store.additionalMethodConfig;
43847
- },
43848
- userActionsEnabled: function userActionsEnabled() {
43849
- return !store.signatureIsProcessing && !store.isLoading;
43850
- }
43851
- };
43852
- var mutations = {
43853
- setCountryCode: function setCountryCode(countryCode) {
43854
- store.countryCode = countryCode;
43855
- },
43856
- setCurrentView: function setCurrentView(template) {
43857
- store.currentView = template;
43858
- },
43859
- setCurrentMethod: function setCurrentMethod(methodObj) {
43860
- store.currentMethod = methodObj;
43861
- },
43862
- setIsLoading: function setIsLoading(value) {
43863
- store.isLoading = value;
43864
- },
43865
- addFlashMessage: function addFlashMessage(message) {
43866
- store.flashMessages.push(message);
43867
- },
43868
- clearFlashMessages: function clearFlashMessages() {
43869
- store.flashMessages = [];
43870
- },
43871
- setIdentificationMethods: function setIdentificationMethods(methods) {
43872
- store.identificationMethods = methods;
43873
- },
43874
- setSigningMethods: function setSigningMethods(methods) {
43875
- store.signingMethods = methods;
43876
- },
43877
- setEnabledCountries: function setEnabledCountries(countries) {
43878
- store.enabledCountries = countries;
43879
- },
43880
- setInputValues: function setInputValues(values) {
43881
- store.inputValues = values;
43882
- },
43883
- setOtpEmail: function setOtpEmail(value) {
43884
- store.otpEmail = value;
43885
- },
43886
- setOtpPhone: function setOtpPhone(value) {
43887
- store.otpPhone = value;
43888
- },
43889
- setEmailToken: function setEmailToken(value) {
43890
- store.emailToken = value;
43891
- },
43892
- setAdditionalMethodConfig: function setAdditionalMethodConfig(value) {
43893
- store.additionalMethodConfig = value;
43894
- },
43895
- setSignatureIsProcessing: function setSignatureIsProcessing(value) {
43896
- store.signatureIsProcessing = value;
43571
+ return _toConsumableArray(new Set(resultingCountries)).map(function (countryCode) {
43572
+ return countryCode.toUpperCase();
43573
+ });
43574
+ },
43575
+ callingCode: function callingCode() {
43576
+ return src_callingCodes[store.countryCode];
43577
+ },
43578
+ inputValues: function inputValues() {
43579
+ return store.inputValues;
43580
+ },
43581
+ otpEmail: function otpEmail() {
43582
+ return store.otpEmail;
43583
+ },
43584
+ otpPhone: function otpPhone() {
43585
+ return store.otpPhone;
43586
+ },
43587
+ emailToken: function emailToken() {
43588
+ return store.emailToken;
43589
+ },
43590
+ additionalMethodConfig: function additionalMethodConfig() {
43591
+ return store.additionalMethodConfig;
43592
+ },
43593
+ userActionsEnabled: function userActionsEnabled() {
43594
+ return !store.signatureIsProcessing && !store.isLoading;
43595
+ }
43596
+ };
43597
+ var mutations = {
43598
+ setCountryCode: function setCountryCode(countryCode) {
43599
+ store.countryCode = countryCode;
43600
+ },
43601
+ setCurrentView: function setCurrentView(template) {
43602
+ store.currentView = template;
43603
+ },
43604
+ setCurrentMethod: function setCurrentMethod(methodObj) {
43605
+ store.currentMethod = methodObj;
43606
+ },
43607
+ setIsLoading: function setIsLoading(value) {
43608
+ store.isLoading = value;
43609
+ },
43610
+ addFlashMessage: function addFlashMessage(message) {
43611
+ store.flashMessages.push(message);
43612
+ },
43613
+ clearFlashMessages: function clearFlashMessages() {
43614
+ store.flashMessages = [];
43615
+ },
43616
+ setIdentificationMethods: function setIdentificationMethods(methods) {
43617
+ store.identificationMethods = methods;
43618
+ },
43619
+ setSigningMethods: function setSigningMethods(methods) {
43620
+ store.signingMethods = methods;
43621
+ },
43622
+ setEnabledCountries: function setEnabledCountries(countries) {
43623
+ store.enabledCountries = countries;
43624
+ },
43625
+ setInputValues: function setInputValues(values) {
43626
+ store.inputValues = values;
43627
+ },
43628
+ setOtpEmail: function setOtpEmail(value) {
43629
+ store.otpEmail = value;
43630
+ },
43631
+ setOtpPhone: function setOtpPhone(value) {
43632
+ store.otpPhone = value;
43633
+ },
43634
+ setEmailToken: function setEmailToken(value) {
43635
+ store.emailToken = value;
43636
+ },
43637
+ setAdditionalMethodConfig: function setAdditionalMethodConfig(value) {
43638
+ store.additionalMethodConfig = value;
43639
+ },
43640
+ setSignatureIsProcessing: function setSignatureIsProcessing(value) {
43641
+ store.signatureIsProcessing = value;
43642
+ }
43643
+ };
43644
+ var actions = {
43645
+ loadingStart: function loadingStart() {
43646
+ mutations.setIsLoading(true);
43647
+ },
43648
+ loadingEnd: function loadingEnd() {
43649
+ mutations.setIsLoading(false);
43650
+ },
43651
+ changeCountry: function changeCountry(newCountryCode) {
43652
+ var countryCode = newCountryCode.toUpperCase();
43653
+ var availableCountries = getters.availableCountries();
43654
+
43655
+ if (availableCountries.indexOf(countryCode) !== -1) {
43656
+ mutations.setCountryCode(countryCode);
43657
+ } else {
43658
+ mutations.setCountryCode(availableCountries[0]);
43659
+ }
43660
+ },
43661
+ selectMethod: function selectMethod(actionType) {
43662
+ var timestamp = Date.now();
43663
+ var viewName = methodsByActionType[actionType].viewName;
43664
+ mutations.clearFlashMessages();
43665
+ mutations.setCurrentMethod({
43666
+ actionType: actionType,
43667
+ timestamp: timestamp
43668
+ });
43669
+
43670
+ if (viewName) {
43671
+ actions.changeView(viewName);
43672
+ }
43673
+ },
43674
+ changeView: function changeView(viewName) {
43675
+ mutations.clearFlashMessages();
43676
+ mutations.setCurrentView(viewName);
43677
+ },
43678
+ addFlashMessage: function addFlashMessage(data) {
43679
+ var message = {
43680
+ text: '',
43681
+ scheme: 'info'
43682
+ };
43683
+
43684
+ if (data.userMessage && data instanceof Error) {
43685
+ message.scheme = 'danger';
43686
+ message.text = data.userMessage;
43687
+ } else {
43688
+ message.scheme = 'danger';
43689
+ message.translationKey = 'no-response-error';
43690
+ }
43691
+
43692
+ if (data.response) {
43693
+ message.response = data.response;
43694
+ }
43695
+
43696
+ mutations.addFlashMessage(message);
43697
+ },
43698
+ clearFlashMessages: function clearFlashMessages() {
43699
+ mutations.clearFlashMessages();
43700
+ },
43701
+ updateEnabledCountries: function updateEnabledCountries(countries) {
43702
+ mutations.setEnabledCountries(countries);
43703
+ },
43704
+ changeMethods: function changeMethods(enabledMethods) {
43705
+ var calculateEnabledMethods = function calculateEnabledMethods(availableMethods, enabledMethods) {
43706
+ var result = [];
43707
+
43708
+ if (!enabledMethods) {
43709
+ return result;
43710
+ }
43711
+
43712
+ if (enabledMethods === 'all' || enabledMethods === true) {
43713
+ result = availableMethods;
43714
+ } else if (Array.isArray(enabledMethods)) {
43715
+ enabledMethods.forEach(function (enabledActionType) {
43716
+ var method = availableMethods.find(function (method) {
43717
+ return method.actionType === enabledActionType;
43718
+ });
43719
+
43720
+ if (method) {
43721
+ result.push(method);
43722
+ mutations.setIdentificationMethods(identificationMethods);
43723
+ }
43724
+ });
43725
+ }
43726
+
43727
+ return result;
43728
+ };
43729
+
43730
+ var identificationMethods = calculateEnabledMethods(availableMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION], enabledMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION]);
43731
+ var signingMethods = calculateEnabledMethods(availableMethods[eideasy_browser_client["methodTypes"].SIGNATURE], enabledMethods[eideasy_browser_client["methodTypes"].SIGNATURE]);
43732
+
43733
+ if (identificationMethods) {
43734
+ mutations.setIdentificationMethods(identificationMethods);
43735
+ }
43736
+
43737
+ if (signingMethods) {
43738
+ mutations.setSigningMethods(signingMethods);
43739
+ }
43740
+ },
43741
+ updateInputValues: function updateInputValues(newValues) {
43742
+ var oldValues = getters.inputValues();
43743
+ mutations.setInputValues(_objectSpread2(_objectSpread2({}, oldValues), newValues));
43744
+ },
43745
+ updateOtpEmail: function updateOtpEmail(newValue) {
43746
+ mutations.setOtpEmail(newValue);
43747
+ },
43748
+ updateOtpPhone: function updateOtpPhone(newValue) {
43749
+ mutations.setOtpPhone(newValue);
43750
+ },
43751
+ updateEmailToken: function updateEmailToken(newValue) {
43752
+ mutations.setEmailToken(newValue);
43753
+ },
43754
+ changeAdditionalMethodConfig: function changeAdditionalMethodConfig(newValue) {
43755
+ mutations.setAdditionalMethodConfig(newValue);
43756
+ },
43757
+ startSignatureProcessing: function startSignatureProcessing() {
43758
+ mutations.setSignatureIsProcessing(true);
43759
+ },
43760
+ endSignatureProcessing: function endSignatureProcessing() {
43761
+ mutations.setSignatureIsProcessing(false);
43762
+ }
43763
+ };
43764
+ return {
43765
+ store: store,
43766
+ actions: actions,
43767
+ getters: getters
43768
+ };
43769
+ };
43770
+
43771
+ /* harmony default export */ var src_createStore = (createStore_createStore);
43772
+ // CONCATENATED MODULE: ./src/components/methodButtons/methodButtonNames.js
43773
+ var methodButtonNames = {
43774
+ IdCardButton: 'IdCardButton',
43775
+ IdCardButtonEE: 'IdCardButtonEE',
43776
+ IdCardButtonFi: 'IdCardButtonFi',
43777
+ IdCardButtonBe: 'IdCardButtonBe',
43778
+ SmartIdButton: 'SmartIdButton',
43779
+ MobileIdButton: 'MobileIdButton',
43780
+ MobileIdButtonEE: 'MobileIdButtonEE',
43781
+ EparakstsMobileButton: 'EparakstsMobileButton',
43782
+ FrejaEidButton: 'FrejaEidButton',
43783
+ ZealIdButton: 'ZealIdButton',
43784
+ MojeIdButton: 'MojeIdButton',
43785
+ FinnishTrustNetworkButton: 'FinnishTrustNetworkButton',
43786
+ AtHandyButton: 'AtHandyButton',
43787
+ IdCardButtonLv: 'IdCardButtonLv',
43788
+ IdCardButtonPt: 'IdCardButtonPt',
43789
+ OtpButton: 'OtpButton'
43790
+ };
43791
+ /* harmony default export */ var methodButtons_methodButtonNames = (methodButtonNames);
43792
+ // CONCATENATED MODULE: ./src/createMethodsConfig.js
43793
+
43794
+
43795
+
43796
+
43797
+
43798
+
43799
+
43800
+
43801
+
43802
+
43803
+ var _Object$freeze, _availableMethods;
43804
+
43805
+
43806
+
43807
+
43808
+ var allWidgetMethods = Object.freeze((_Object$freeze = {}, _defineProperty(_Object$freeze, eideasy_browser_client["methodTypes"].IDENTIFICATION, [{
43809
+ actionType: eideasy_browser_client["methodActionTypes"].BE_ID_LOGIN,
43810
+ buttonName: methodButtons_methodButtonNames.IdCardButtonBe,
43811
+ translationKeys: {
43812
+ title: 'id-card'
43813
+ }
43814
+ }, {
43815
+ actionType: eideasy_browser_client["methodActionTypes"].EE_ID_LOGIN,
43816
+ buttonName: methodButtons_methodButtonNames.IdCardButtonEE,
43817
+ translationKeys: {
43818
+ title: 'id-card'
43819
+ }
43820
+ }, {
43821
+ actionType: eideasy_browser_client["methodActionTypes"].FI_ID_LOGIN,
43822
+ buttonName: methodButtons_methodButtonNames.IdCardButtonFi,
43823
+ translationKeys: {
43824
+ title: 'id-card'
43825
+ }
43826
+ }, {
43827
+ actionType: eideasy_browser_client["methodActionTypes"].LV_ID_LOGIN,
43828
+ buttonName: methodButtons_methodButtonNames.IdCardButtonLv,
43829
+ translationKeys: {
43830
+ title: 'id-card'
43831
+ }
43832
+ }, {
43833
+ actionType: eideasy_browser_client["methodActionTypes"].LT_ID_LOGIN,
43834
+ buttonName: methodButtons_methodButtonNames.IdCardButton,
43835
+ translationKeys: {
43836
+ title: 'id-card'
43837
+ }
43838
+ }, {
43839
+ actionType: eideasy_browser_client["methodActionTypes"].PT_ID_LOGIN,
43840
+ buttonName: methodButtons_methodButtonNames.IdCardButtonPt,
43841
+ translationKeys: {
43842
+ title: 'id-card'
43843
+ }
43844
+ }, {
43845
+ actionType: eideasy_browser_client["methodActionTypes"].RS_ID_LOGIN,
43846
+ buttonName: methodButtons_methodButtonNames.IdCardButton,
43847
+ translationKeys: {
43848
+ title: 'id-card'
43849
+ }
43850
+ }, {
43851
+ actionType: eideasy_browser_client["methodActionTypes"].EE_MOBILE_ID,
43852
+ buttonName: methodButtons_methodButtonNames.MobileIdButtonEE,
43853
+ viewName: views_viewNames.MobileIdAuth,
43854
+ translationKeys: {
43855
+ title: 'mobile-id'
43856
+ }
43857
+ }, {
43858
+ actionType: eideasy_browser_client["methodActionTypes"].LV_EPARAKSTS_MOBILE_LOGIN,
43859
+ buttonName: methodButtons_methodButtonNames.EparakstsMobileButton,
43860
+ translationKeys: {
43861
+ title: 'eparaksts-mobile'
43862
+ }
43863
+ }, {
43864
+ actionType: eideasy_browser_client["methodActionTypes"].LT_MOBILE_ID,
43865
+ buttonName: methodButtons_methodButtonNames.MobileIdButton,
43866
+ viewName: views_viewNames.MobileIdAuth,
43867
+ translationKeys: {
43868
+ title: 'mobile-id'
43869
+ }
43870
+ }, {
43871
+ actionType: eideasy_browser_client["methodActionTypes"].SMART_ID,
43872
+ buttonName: methodButtons_methodButtonNames.SmartIdButton,
43873
+ viewName: views_viewNames.SmartIdAuth,
43874
+ translationKeys: {
43875
+ title: 'smart-id'
43876
+ }
43877
+ }, {
43878
+ actionType: eideasy_browser_client["methodActionTypes"].FREJA_EID_LOGIN,
43879
+ buttonName: methodButtons_methodButtonNames.FrejaEidButton,
43880
+ viewName: views_viewNames.IdentificationFrejaId,
43881
+ translationKeys: {
43882
+ title: 'freja-eid'
43883
+ }
43884
+ }, {
43885
+ actionType: eideasy_browser_client["methodActionTypes"].ZEALID_LOGIN,
43886
+ buttonName: methodButtons_methodButtonNames.ZealIdButton,
43887
+ viewName: views_viewNames.IdentificationZealId,
43888
+ translationKeys: {
43889
+ title: 'zeal-id'
43890
+ }
43891
+ }, {
43892
+ actionType: eideasy_browser_client["methodActionTypes"].CZ_MOJEID,
43893
+ buttonName: methodButtons_methodButtonNames.MojeIdButton,
43894
+ translationKeys: {
43895
+ title: 'moje-id'
43896
+ }
43897
+ }, {
43898
+ actionType: eideasy_browser_client["methodActionTypes"].FI_FTN_LOGIN,
43899
+ buttonName: methodButtons_methodButtonNames.FinnishTrustNetworkButton,
43900
+ translationKeys: {
43901
+ title: 'finnish-online-bank'
43902
+ }
43903
+ }, {
43904
+ actionType: eideasy_browser_client["methodActionTypes"].AT_HANDY_SIGNATUR_LOGIN,
43905
+ buttonName: methodButtons_methodButtonNames.AtHandyButton,
43906
+ translationKeys: {
43907
+ title: 'austrian-handy-signatur'
43908
+ }
43909
+ }]), _defineProperty(_Object$freeze, eideasy_browser_client["methodTypes"].SIGNATURE, [{
43910
+ actionType: eideasy_browser_client["methodActionTypes"].BE_IDCARD_SIGNATURE,
43911
+ buttonName: methodButtons_methodButtonNames.IdCardButtonBe,
43912
+ translationKeys: {
43913
+ title: 'id-card'
43914
+ }
43915
+ }, {
43916
+ actionType: eideasy_browser_client["methodActionTypes"].EE_IDCARD_SIGNATURE,
43917
+ buttonName: methodButtons_methodButtonNames.IdCardButtonEE,
43918
+ translationKeys: {
43919
+ title: 'id-card'
43920
+ }
43921
+ }, {
43922
+ actionType: eideasy_browser_client["methodActionTypes"].FI_IDCARD_SIGNATURE,
43923
+ buttonName: methodButtons_methodButtonNames.IdCardButtonFi,
43924
+ translationKeys: {
43925
+ title: 'id-card'
43926
+ }
43927
+ }, {
43928
+ actionType: eideasy_browser_client["methodActionTypes"].LV_IDCARD_SIGNATURE,
43929
+ buttonName: methodButtons_methodButtonNames.IdCardButtonLv,
43930
+ translationKeys: {
43931
+ title: 'id-card'
43932
+ }
43933
+ }, {
43934
+ actionType: eideasy_browser_client["methodActionTypes"].LT_IDCARD_SIGNATURE,
43935
+ buttonName: methodButtons_methodButtonNames.IdCardButton,
43936
+ translationKeys: {
43937
+ title: 'id-card'
43938
+ }
43939
+ }, {
43940
+ actionType: eideasy_browser_client["methodActionTypes"].PT_IDCARD_SIGNATURE,
43941
+ buttonName: methodButtons_methodButtonNames.IdCardButtonPt,
43942
+ translationKeys: {
43943
+ title: 'id-card'
43944
+ }
43945
+ }, {
43946
+ actionType: eideasy_browser_client["methodActionTypes"].SMARTID_SIGNATURE,
43947
+ buttonName: methodButtons_methodButtonNames.SmartIdButton,
43948
+ viewName: views_viewNames.SignatureSmartId,
43949
+ translationKeys: {
43950
+ title: 'smart-id'
43951
+ }
43952
+ }, {
43953
+ actionType: eideasy_browser_client["methodActionTypes"].EE_MOBILEID_SIGNATURE,
43954
+ buttonName: methodButtons_methodButtonNames.MobileIdButtonEE,
43955
+ viewName: views_viewNames.SignatureMobileId,
43956
+ translationKeys: {
43957
+ title: 'mobile-id'
43958
+ }
43959
+ }, {
43960
+ actionType: eideasy_browser_client["methodActionTypes"].LT_MOBILEID_SIGNATURE,
43961
+ buttonName: methodButtons_methodButtonNames.MobileIdButton,
43962
+ viewName: views_viewNames.SignatureMobileId,
43963
+ translationKeys: {
43964
+ title: 'mobile-id'
43965
+ }
43966
+ }, {
43967
+ actionType: eideasy_browser_client["methodActionTypes"].LV_EPARAKSTS_MOBILE_SIGNATURE,
43968
+ buttonName: methodButtons_methodButtonNames.EparakstsMobileButton,
43969
+ translationKeys: {
43970
+ title: 'eparaksts-mobile'
43971
+ }
43972
+ }, {
43973
+ actionType: eideasy_browser_client["methodActionTypes"].FI_FTN_ADVANCED_SIGNATURE,
43974
+ buttonName: methodButtons_methodButtonNames.FinnishTrustNetworkButton,
43975
+ viewName: views_viewNames.SignatureFtn,
43976
+ translationKeys: {
43977
+ title: 'finnish-online-bank'
43978
+ }
43979
+ }, {
43980
+ actionType: eideasy_browser_client["methodActionTypes"].OTP_EMAIL,
43981
+ buttonName: methodButtons_methodButtonNames.OtpButton,
43982
+ viewName: views_viewNames.SignatureOtp,
43983
+ translationKeys: {
43984
+ title: 'email-sms'
43985
+ }
43986
+ }, {
43987
+ actionType: eideasy_browser_client["methodActionTypes"].AT_HANDY_SIGNATUR_SIGNATURE,
43988
+ buttonName: methodButtons_methodButtonNames.AtHandyButton,
43989
+ translationKeys: {
43990
+ title: 'austrian-handy-signatur'
43991
+ }
43992
+ }, {
43993
+ actionType: eideasy_browser_client["methodActionTypes"].ZEAL_ID_SIGNATURE,
43994
+ buttonName: methodButtons_methodButtonNames.ZealIdButton,
43995
+ translationKeys: {
43996
+ title: 'zeal-id'
43997
+ }
43998
+ }]), _Object$freeze));
43999
+
44000
+ var createMethodsConfig_getAvailableMethods = function getAvailableMethods(clientMethods, widgetMethods) {
44001
+ var methods = [];
44002
+ widgetMethods.forEach(function (widgetMethod) {
44003
+ var clientMethod = clientMethods.find(function (clientMethod) {
44004
+ return clientMethod.actionType === widgetMethod.actionType;
44005
+ });
44006
+
44007
+ if (clientMethod) {
44008
+ methods.push(_objectSpread2(_objectSpread2({}, clientMethod), widgetMethod));
43897
44009
  }
43898
- };
43899
- var actions = {
43900
- loadingStart: function loadingStart() {
43901
- mutations.setIsLoading(true);
43902
- },
43903
- loadingEnd: function loadingEnd() {
43904
- mutations.setIsLoading(false);
43905
- },
43906
- changeCountry: function changeCountry(newCountryCode) {
43907
- var countryCode = newCountryCode.toUpperCase();
43908
- var availableCountries = getters.availableCountries();
43909
-
43910
- if (availableCountries.indexOf(countryCode) !== -1) {
43911
- mutations.setCountryCode(countryCode);
43912
- } else {
43913
- mutations.setCountryCode(availableCountries[0]);
43914
- }
43915
- },
43916
- selectMethod: function selectMethod(actionType) {
43917
- var timestamp = Date.now();
43918
- var viewName = config_methodsByActionType[actionType].viewName;
43919
- mutations.clearFlashMessages();
43920
- mutations.setCurrentMethod({
43921
- actionType: actionType,
43922
- timestamp: timestamp
43923
- });
43924
-
43925
- if (viewName) {
43926
- actions.changeView(viewName);
43927
- }
43928
- },
43929
- changeView: function changeView(viewName) {
43930
- mutations.clearFlashMessages();
43931
- mutations.setCurrentView(viewName);
43932
- },
43933
- addFlashMessage: function addFlashMessage(data) {
43934
- var message = {
43935
- text: '',
43936
- scheme: 'info'
43937
- };
43938
-
43939
- if (data.userMessage && data instanceof Error) {
43940
- message.scheme = 'danger';
43941
- message.text = data.userMessage;
43942
- } else {
43943
- message.scheme = 'danger';
43944
- message.translationKey = 'no-response-error';
43945
- }
43946
-
43947
- if (data.response) {
43948
- message.response = data.response;
43949
- }
43950
-
43951
- mutations.addFlashMessage(message);
43952
- },
43953
- clearFlashMessages: function clearFlashMessages() {
43954
- mutations.clearFlashMessages();
43955
- },
43956
- updateEnabledCountries: function updateEnabledCountries(countries) {
43957
- mutations.setEnabledCountries(countries);
43958
- },
43959
- changeMethods: function changeMethods(enabledMethods) {
43960
- var calculateEnabledMethods = function calculateEnabledMethods(availableMethods, enabledMethods) {
43961
- var result = [];
43962
-
43963
- if (!enabledMethods) {
43964
- return result;
43965
- }
44010
+ });
44011
+ return methods;
44012
+ };
43966
44013
 
43967
- if (enabledMethods === 'all' || enabledMethods === true) {
43968
- result = availableMethods;
43969
- } else if (Array.isArray(enabledMethods)) {
43970
- enabledMethods.forEach(function (enabledActionType) {
43971
- var method = availableMethods.find(function (method) {
43972
- return method.actionType === enabledActionType;
43973
- });
44014
+ var createMethodsConfig_createGetMethodsByActionType = function createGetMethodsByActionType(methods) {
44015
+ var identificationMethods = methods[eideasy_browser_client["methodTypes"].IDENTIFICATION].map(function (method) {
44016
+ method.methodType = eideasy_browser_client["methodTypes"].IDENTIFICATION;
44017
+ return method;
44018
+ });
44019
+ var signatureMethods = methods[eideasy_browser_client["methodTypes"].SIGNATURE].map(function (method) {
44020
+ method.methodType = eideasy_browser_client["methodTypes"].SIGNATURE;
44021
+ return method;
44022
+ });
44023
+ var allMethods = [].concat(_toConsumableArray(identificationMethods), _toConsumableArray(signatureMethods));
44024
+ var methodsByActionType = {};
44025
+ allMethods.forEach(function (method) {
44026
+ return methodsByActionType[method.actionType] = method;
44027
+ });
44028
+ return methodsByActionType;
44029
+ }; // intersection of all the methods provided by the eideasy-browser-client and all the methods in this widget
43974
44030
 
43975
- if (method) {
43976
- result.push(method);
43977
- mutations.setIdentificationMethods(identificationMethods);
43978
- }
43979
- });
43980
- }
43981
44031
 
43982
- return result;
43983
- };
44032
+ var createMethodsConfig_availableMethods = (_availableMethods = {}, _defineProperty(_availableMethods, eideasy_browser_client["methodTypes"].IDENTIFICATION, createMethodsConfig_getAvailableMethods(eideasy_browser_client["allMethods"][eideasy_browser_client["methodTypes"].IDENTIFICATION], allWidgetMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION])), _defineProperty(_availableMethods, eideasy_browser_client["methodTypes"].SIGNATURE, createMethodsConfig_getAvailableMethods(eideasy_browser_client["allMethods"][eideasy_browser_client["methodTypes"].SIGNATURE], allWidgetMethods[eideasy_browser_client["methodTypes"].SIGNATURE])), _availableMethods);
43984
44033
 
43985
- var identificationMethods = calculateEnabledMethods(availableMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION], enabledMethods[eideasy_browser_client["methodTypes"].IDENTIFICATION]);
43986
- var signingMethods = calculateEnabledMethods(availableMethods[eideasy_browser_client["methodTypes"].SIGNATURE], enabledMethods[eideasy_browser_client["methodTypes"].SIGNATURE]);
44034
+ var createMethodsConfig_createMethodsConfig = function createMethodsConfig(_ref) {
44035
+ var _ref$methodsConfigFil = _ref.methodsConfigFilter,
44036
+ methodsConfigFilter = _ref$methodsConfigFil === void 0 ? null : _ref$methodsConfigFil;
44037
+ var methods = createMethodsConfig_availableMethods;
43987
44038
 
43988
- if (identificationMethods) {
43989
- mutations.setIdentificationMethods(identificationMethods);
43990
- }
44039
+ if (methodsConfigFilter && typeof methodsConfigFilter === 'function') {
44040
+ methods = methodsConfigFilter(createMethodsConfig_availableMethods);
44041
+ }
43991
44042
 
43992
- if (signingMethods) {
43993
- mutations.setSigningMethods(signingMethods);
43994
- }
43995
- },
43996
- updateInputValues: function updateInputValues(newValues) {
43997
- var oldValues = getters.inputValues();
43998
- mutations.setInputValues(_objectSpread2(_objectSpread2({}, oldValues), newValues));
43999
- },
44000
- updateOtpEmail: function updateOtpEmail(newValue) {
44001
- mutations.setOtpEmail(newValue);
44002
- },
44003
- updateOtpPhone: function updateOtpPhone(newValue) {
44004
- mutations.setOtpPhone(newValue);
44005
- },
44006
- updateEmailToken: function updateEmailToken(newValue) {
44007
- mutations.setEmailToken(newValue);
44008
- },
44009
- changeAdditionalMethodConfig: function changeAdditionalMethodConfig(newValue) {
44010
- mutations.setAdditionalMethodConfig(newValue);
44011
- },
44012
- startSignatureProcessing: function startSignatureProcessing() {
44013
- mutations.setSignatureIsProcessing(true);
44014
- },
44015
- endSignatureProcessing: function endSignatureProcessing() {
44016
- mutations.setSignatureIsProcessing(false);
44017
- }
44018
- };
44019
- return {
44020
- store: store,
44021
- actions: actions,
44022
- getters: getters
44023
- };
44043
+ var methodsByActionType = createMethodsConfig_createGetMethodsByActionType(methods);
44044
+ return Object.freeze({
44045
+ availableMethods: methods,
44046
+ methodsByActionType: methodsByActionType,
44047
+ methodActionTypes: eideasy_browser_client["methodActionTypes"],
44048
+ methodTypes: eideasy_browser_client["methodTypes"],
44049
+ moduleNames: eideasy_browser_client["moduleNames"]
44050
+ });
44024
44051
  };
44025
44052
 
44026
- /* harmony default export */ var src_createStore = (createStore_createStore);
44053
+ /* harmony default export */ var src_createMethodsConfig = (createMethodsConfig_createMethodsConfig);
44027
44054
  // CONCATENATED MODULE: ./src/main.js
44028
44055
 
44029
44056
 
@@ -44032,6 +44059,7 @@ var createStore_createStore = function createStore() {
44032
44059
 
44033
44060
 
44034
44061
 
44062
+
44035
44063
  vue_runtime_esm["a" /* default */].use(vue_custom_element_esm);
44036
44064
  vue_runtime_esm["a" /* default */].config.productionTip = false;
44037
44065
  vue_runtime_esm["a" /* default */].customElement('eideasy-widget', App, {
@@ -44039,8 +44067,13 @@ vue_runtime_esm["a" /* default */].customElement('eideasy-widget', App, {
44039
44067
  var propsData = RootComponentDefinition.propsData;
44040
44068
  vue_runtime_esm["a" /* default */].component('v-select', vue_select_default.a);
44041
44069
  RootComponentDefinition.i18n = i18n;
44070
+ var eidEasyMethodsConfig = src_createMethodsConfig({
44071
+ methodsConfigFilter: propsData.methodsConfigFilter
44072
+ });
44042
44073
 
44043
- var _createStore = src_createStore(),
44074
+ var _createStore = src_createStore({
44075
+ methodsConfig: eidEasyMethodsConfig
44076
+ }),
44044
44077
  store = _createStore.store,
44045
44078
  actions = _createStore.actions,
44046
44079
  getters = _createStore.getters;
@@ -44081,6 +44114,7 @@ vue_runtime_esm["a" /* default */].customElement('eideasy-widget', App, {
44081
44114
  RootComponentDefinition.eidEasyOnFail = eidEasyOnFail;
44082
44115
  RootComponentDefinition.eidEasyBeforeMethodSelection = eidEasyBeforeMethodSelection;
44083
44116
  RootComponentDefinition.eidEasyFormatFlashMessage = eidEasyFormatFlashMessage;
44117
+ RootComponentDefinition.eidEasyMethodsConfig = eidEasyMethodsConfig;
44084
44118
  return RootComponentDefinition;
44085
44119
  },
44086
44120
  attributeChangedCallback: function attributeChangedCallback(name, oldValue, value) {