@alma/widgets 2.6.0 → 2.7.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.
@@ -369,6 +369,16 @@
369
369
  }
370
370
  }
371
371
 
372
+ ._1N3yO {
373
+ display: flex;
374
+ flex-direction: row;
375
+ width: 100%;
376
+ justify-content: center;
377
+ }
378
+ ._83cGn {
379
+ margin: 8px 10px 0 0;
380
+ }
381
+
372
382
  ._180ro {
373
383
  display: flex;
374
384
  flex-direction: column;
@@ -2197,6 +2197,7 @@ var STATIC_CUSTOMISATION_CLASSES = {
2197
2197
  scheduleDetails: prefix + '-schedule-details',
2198
2198
  scheduleTotal: prefix + '-schedule-total',
2199
2199
  scheduleCredit: prefix + '-schedule-credit',
2200
+ cardContainer: prefix + '-card-logos',
2200
2201
  summary: prefix + '-summary'
2201
2202
  };
2202
2203
 
@@ -2472,16 +2473,184 @@ var Schedule = function Schedule(_ref) {
2472
2473
  }))));
2473
2474
  };
2474
2475
 
2475
- var s$4 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
2476
+ var AmexCard = function AmexCard() {
2477
+ return /*#__PURE__*/React__default.createElement("svg", {
2478
+ xmlns: "http://www.w3.org/2000/svg",
2479
+ width: "24",
2480
+ height: "16",
2481
+ viewBox: "0 0 24 16"
2482
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
2483
+ id: "cardamex",
2484
+ x1: "10.914%",
2485
+ x2: "87.432%",
2486
+ y1: "86.279%",
2487
+ y2: "15.035%"
2488
+ }, /*#__PURE__*/React__default.createElement("stop", {
2489
+ offset: "0%",
2490
+ stopColor: "#3FA9F5"
2491
+ }), /*#__PURE__*/React__default.createElement("stop", {
2492
+ offset: "100%",
2493
+ stopColor: "#0071BC"
2494
+ }))), /*#__PURE__*/React__default.createElement("g", {
2495
+ fill: "none",
2496
+ fillRule: "evenodd"
2497
+ }, /*#__PURE__*/React__default.createElement("path", {
2498
+ fill: "url(#cardamex)",
2499
+ fillRule: "nonzero",
2500
+ d: "M22.559 16H1.379C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.441 1.338z"
2501
+ }), /*#__PURE__*/React__default.createElement("g", {
2502
+ fill: "#FFF"
2503
+ }, /*#__PURE__*/React__default.createElement("path", {
2504
+ d: "M10.115 8.711L8.889 6.044H7.295v3.852L5.517 6.044H4.17l-1.778 4.03h1.103l.368-.889h2.023l.368.89h2.084V7.11l1.349 2.963h.92l1.348-2.904v2.904h.98v-4.03H11.28l-1.165 2.667zm-5.272-.474H4.23l.613-1.422v.06l.613 1.362h-.613z"
2505
+ }), /*#__PURE__*/React__default.createElement("path", {
2506
+ fillRule: "nonzero",
2507
+ d: "M19.372 7.94l.735-.77 1.042-1.185h-1.287L18.697 7.23l-1.164-1.245h-3.985v3.97h3.923l1.226-1.303 1.165 1.304h1.287L20.107 8.71l-.735-.77zM16.92 9.186h-2.33v-.77h2.268v-.77H14.59v-.712h2.33L18.084 8 16.92 9.185z"
2508
+ }))));
2509
+ };
2510
+
2511
+ var VisaCard = function VisaCard() {
2512
+ return /*#__PURE__*/React__default.createElement("svg", {
2513
+ xmlns: "http://www.w3.org/2000/svg",
2514
+ width: "24",
2515
+ height: "16",
2516
+ viewBox: "0 0 24 16"
2517
+ }, /*#__PURE__*/React__default.createElement("g", {
2518
+ fill: "none",
2519
+ fillRule: "nonzero"
2520
+ }, /*#__PURE__*/React__default.createElement("path", {
2521
+ fill: "#FCFCFC",
2522
+ d: "M22.684 16H1.38C.627 16 0 15.39 0 14.656V1.344C0 .61.627 0 1.379 0H22.62C23.373 0 24 .61 24 1.344v13.374c0 .671-.564 1.282-1.316 1.282z"
2523
+ }), ' ', /*#__PURE__*/React__default.createElement("path", {
2524
+ fill: "#005098",
2525
+ d: "M8.889 10.726l.948-5.393h1.482l-.949 5.393zM15.704 5.452a3.658 3.658 0 0 0-1.304-.237c-1.481 0-2.489.71-2.489 1.778 0 .77.711 1.185 1.304 1.481.592.237.77.415.77.652 0 .355-.474.533-.889.533-.592 0-.889-.059-1.363-.296l-.177-.06-.178 1.186c.355.178 1.007.296 1.659.296 1.54 0 2.548-.71 2.548-1.837 0-.592-.415-1.067-1.244-1.481-.534-.237-.83-.415-.83-.652 0-.237.237-.474.83-.474.474 0 .83.118 1.126.178l.118.059.119-1.126M19.496 5.333H18.37c-.355 0-.592.119-.77.474l-2.193 4.919h1.541s.237-.652.296-.83h1.897c.059.178.178.83.178.83h1.362l-1.185-5.393zM17.66 8.77l.593-1.481s.118-.296.178-.533l.118.474s.296 1.303.356 1.54h-1.245zM7.644 5.333L6.222 9.007l-.178-.77C5.748 7.348 4.92 6.459 4.03 5.985l1.303 4.682h1.541l2.311-5.393h-1.54"
2526
+ }), /*#__PURE__*/React__default.createElement("path", {
2527
+ fill: "#F6A500",
2528
+ d: "M4.919 5.333h-2.37v.119c1.836.474 3.08 1.54 3.555 2.844L5.57 5.807c-.118-.414-.355-.474-.651-.474"
2529
+ }), /*#__PURE__*/React__default.createElement("path", {
2530
+ fill: "#0A5296",
2531
+ d: "M23.937 3.23H0V1.316C0 .598.627 0 1.379 0H22.62C23.373 0 24 .598 24 1.316V3.23h-.063z"
2532
+ }), /*#__PURE__*/React__default.createElement("path", {
2533
+ fill: "#F4A428",
2534
+ d: "M.063 13H24v1.8c0 .655-.625 1.2-1.375 1.2H1.375C.625 16 0 15.455 0 14.8V13h.063z"
2535
+ })));
2536
+ };
2537
+
2538
+ var MasterCard = function MasterCard() {
2539
+ return /*#__PURE__*/React__default.createElement("svg", {
2540
+ width: "24px",
2541
+ height: "16px",
2542
+ viewBox: "0 0 24 16",
2543
+ version: "1.1",
2544
+ xmlns: "http://www.w3.org/2000/svg"
2545
+ }, /*#__PURE__*/React__default.createElement("g", {
2546
+ id: "Parcours-1C-B",
2547
+ stroke: "none",
2548
+ strokeWidth: "1",
2549
+ fill: "none",
2550
+ fillRule: "evenodd"
2551
+ }, /*#__PURE__*/React__default.createElement("g", {
2552
+ id: "mobile-1C-Paiement-V1",
2553
+ transform: "translate(-269.000000, -313.000000)"
2554
+ }, /*#__PURE__*/React__default.createElement("g", {
2555
+ id: "mastercard",
2556
+ transform: "translate(269.000000, 313.000000)"
2557
+ }, /*#__PURE__*/React__default.createElement("rect", {
2558
+ id: "Rectangle",
2559
+ fill: "#FFFFFF",
2560
+ x: "0",
2561
+ y: "0",
2562
+ width: "24",
2563
+ height: "16",
2564
+ rx: "1"
2565
+ }), /*#__PURE__*/React__default.createElement("g", {
2566
+ id: "Group-6",
2567
+ transform: "translate(4.000000, 3.000000)"
2568
+ }, /*#__PURE__*/React__default.createElement("circle", {
2569
+ id: "Oval-4-Copy",
2570
+ fill: "#EA001B",
2571
+ cx: "5.05263158",
2572
+ cy: "5.05263158",
2573
+ r: "5.05263158"
2574
+ }), /*#__PURE__*/React__default.createElement("circle", {
2575
+ id: "Oval-4",
2576
+ fillOpacity: "0.25",
2577
+ fill: "#F79F1A",
2578
+ cx: "10.9473684",
2579
+ cy: "5.05263158",
2580
+ r: "5.05263158"
2581
+ }), /*#__PURE__*/React__default.createElement("circle", {
2582
+ id: "Oval-4-Copy-2",
2583
+ fillOpacity: "0.9",
2584
+ fill: "#F79F1A",
2585
+ cx: "10.9473684",
2586
+ cy: "5.05263158",
2587
+ r: "5.05263158"
2588
+ }), /*#__PURE__*/React__default.createElement("circle", {
2589
+ id: "Oval-4-Copy-3",
2590
+ fillOpacity: "0.3",
2591
+ fill: "#EA001B",
2592
+ cx: "5.05263158",
2593
+ cy: "5.05263158",
2594
+ r: "5.05263158"
2595
+ }))))));
2596
+ };
2597
+
2598
+ var CbCard = function CbCard() {
2599
+ return /*#__PURE__*/React__default.createElement("svg", {
2600
+ xmlns: "http://www.w3.org/2000/svg",
2601
+ width: "24",
2602
+ height: "16",
2603
+ viewBox: "0 0 24 16"
2604
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
2605
+ id: "cardcb",
2606
+ x1: "5.842%",
2607
+ x2: "95.393%",
2608
+ y1: "81.753%",
2609
+ y2: "17.344%"
2610
+ }, /*#__PURE__*/React__default.createElement("stop", {
2611
+ offset: "0%",
2612
+ stopColor: "#39B54A"
2613
+ }), ' ', /*#__PURE__*/React__default.createElement("stop", {
2614
+ offset: "100%",
2615
+ stopColor: "#0A5296"
2616
+ }))), /*#__PURE__*/React__default.createElement("g", {
2617
+ fill: "none",
2618
+ fillRule: "nonzero"
2619
+ }, /*#__PURE__*/React__default.createElement("path", {
2620
+ fill: "url(#cardcb)",
2621
+ d: "M22.621 16H1.38C.627 16 0 15.392 0 14.662V1.338C0 .608.627 0 1.379 0H22.62C23.373 0 24 .608 24 1.338v13.324c-.063.73-.627 1.338-1.379 1.338z"
2622
+ }), /*#__PURE__*/React__default.createElement("g", {
2623
+ fill: "#FFF"
2624
+ }, /*#__PURE__*/React__default.createElement("path", {
2625
+ d: "M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z"
2626
+ }))));
2627
+ };
2628
+
2629
+ var s$4 = {"cardContainer":"_1N3yO","card":"_83cGn"};
2630
+
2631
+ var Cards = function Cards(_ref) {
2632
+ var cards = _ref.cards;
2633
+ return /*#__PURE__*/React__default.createElement("div", {
2634
+ className: cx(s$4.cardContainer, STATIC_CUSTOMISATION_CLASSES.cardContainer)
2635
+ }, cards.map(function (card) {
2636
+ return /*#__PURE__*/React__default.createElement("div", {
2637
+ key: card,
2638
+ className: s$4.card,
2639
+ "data-testid": "card-logo-" + card
2640
+ }, card === 'cb' && /*#__PURE__*/React__default.createElement(CbCard, null), card === 'amex' && /*#__PURE__*/React__default.createElement(AmexCard, null), card === 'mastercard' && /*#__PURE__*/React__default.createElement(MasterCard, null), card === 'visa' && /*#__PURE__*/React__default.createElement(VisaCard, null));
2641
+ }));
2642
+ };
2643
+
2644
+ var s$5 = {"list":"_180ro","listItem":"_1HqCO","bullet":"_3B8wx"};
2476
2645
 
2477
2646
  var Info = function Info() {
2478
2647
  return /*#__PURE__*/React__default.createElement("div", {
2479
- className: cx(s$4.list, STATIC_CUSTOMISATION_CLASSES.info),
2648
+ className: cx(s$5.list, STATIC_CUSTOMISATION_CLASSES.info),
2480
2649
  "data-testid": "modal-info-element"
2481
2650
  }, /*#__PURE__*/React__default.createElement("div", {
2482
- className: s$4.listItem
2651
+ className: s$5.listItem
2483
2652
  }, /*#__PURE__*/React__default.createElement("div", {
2484
- className: s$4.bullet
2653
+ className: s$5.bullet
2485
2654
  }, "1"), /*#__PURE__*/React__default.createElement("div", {
2486
2655
  className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2487
2656
  }, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
@@ -2493,9 +2662,9 @@ var Info = function Info() {
2493
2662
  }
2494
2663
  }
2495
2664
  }))), /*#__PURE__*/React__default.createElement("div", {
2496
- className: s$4.listItem
2665
+ className: s$5.listItem
2497
2666
  }, /*#__PURE__*/React__default.createElement("div", {
2498
- className: s$4.bullet
2667
+ className: s$5.bullet
2499
2668
  }, "2"), /*#__PURE__*/React__default.createElement("div", {
2500
2669
  className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2501
2670
  }, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
@@ -2507,9 +2676,9 @@ var Info = function Info() {
2507
2676
  }
2508
2677
  }
2509
2678
  }))), /*#__PURE__*/React__default.createElement("div", {
2510
- className: s$4.listItem
2679
+ className: s$5.listItem
2511
2680
  }, /*#__PURE__*/React__default.createElement("div", {
2512
- className: s$4.bullet
2681
+ className: s$5.bullet
2513
2682
  }, "3"), /*#__PURE__*/React__default.createElement("div", {
2514
2683
  className: STATIC_CUSTOMISATION_CLASSES.infoMessage
2515
2684
  }, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
@@ -2556,22 +2725,22 @@ function LogoIcon(_ref) {
2556
2725
  }));
2557
2726
  }
2558
2727
 
2559
- var s$5 = {"logo":"_3Oyv_"};
2728
+ var s$6 = {"logo":"_3Oyv_"};
2560
2729
 
2561
2730
  var Logo = function Logo() {
2562
2731
  return /*#__PURE__*/React__default.createElement("div", {
2563
- className: s$5.logo
2732
+ className: s$6.logo
2564
2733
  }, /*#__PURE__*/React__default.createElement(LogoIcon, {
2565
2734
  underlineColor: "#FF414D"
2566
2735
  }));
2567
2736
  };
2568
2737
 
2569
- var s$6 = {"title":"_3ERx-"};
2738
+ var s$7 = {"title":"_3ERx-"};
2570
2739
 
2571
2740
  var Title = function Title(_ref) {
2572
2741
  var isSomePlanDeferred = _ref.isSomePlanDeferred;
2573
2742
  return /*#__PURE__*/React__default.createElement("div", {
2574
- className: cx(s$6.title, STATIC_CUSTOMISATION_CLASSES.title),
2743
+ className: cx(s$7.title, STATIC_CUSTOMISATION_CLASSES.title),
2575
2744
  "data-testid": "modal-title-element"
2576
2745
  }, isSomePlanDeferred ? /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
2577
2746
  id: 'eligibility-modal.title-deferred',
@@ -2592,43 +2761,50 @@ var Title = function Title(_ref) {
2592
2761
  }));
2593
2762
  };
2594
2763
 
2595
- var s$7 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC"};
2764
+ var s$8 = {"container":"_21g6u","block":"_3zaP5","left":"_2SBRC"};
2596
2765
 
2597
2766
  var DesktopModal = function DesktopModal(_ref) {
2598
2767
  var children = _ref.children,
2599
- isSomePlanDeferred = _ref.isSomePlanDeferred;
2768
+ isSomePlanDeferred = _ref.isSomePlanDeferred,
2769
+ cards = _ref.cards;
2600
2770
  return /*#__PURE__*/React__default.createElement("div", {
2601
- className: s$7.container,
2771
+ className: s$8.container,
2602
2772
  "data-testid": "modal-container"
2603
2773
  }, /*#__PURE__*/React__default.createElement("div", {
2604
- className: cx([s$7.block, s$7.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
2774
+ className: cx([s$8.block, s$8.left, STATIC_CUSTOMISATION_CLASSES.leftSide])
2605
2775
  }, /*#__PURE__*/React__default.createElement(Title, {
2606
2776
  isSomePlanDeferred: isSomePlanDeferred
2607
- }), /*#__PURE__*/React__default.createElement(Info, null), /*#__PURE__*/React__default.createElement(Logo, null)), /*#__PURE__*/React__default.createElement("div", {
2608
- className: cx(s$7.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
2777
+ }), /*#__PURE__*/React__default.createElement(Info, null), cards && /*#__PURE__*/React__default.createElement(Cards, {
2778
+ cards: cards
2779
+ }), /*#__PURE__*/React__default.createElement(Logo, null)), /*#__PURE__*/React__default.createElement("div", {
2780
+ className: cx(s$8.block, STATIC_CUSTOMISATION_CLASSES.rightSide)
2609
2781
  }, children));
2610
2782
  };
2611
2783
 
2612
- var s$8 = {"noEligibility":"_17qNJ","loader":"_2oTJq"};
2784
+ var s$9 = {"noEligibility":"_17qNJ","loader":"_2oTJq"};
2613
2785
 
2614
- var s$9 = {"container":"_2G7Ch"};
2786
+ var s$a = {"container":"_2G7Ch"};
2615
2787
 
2616
2788
  var MobileModal = function MobileModal(_ref) {
2617
2789
  var children = _ref.children,
2618
- isSomePlanDeferred = _ref.isSomePlanDeferred;
2790
+ isSomePlanDeferred = _ref.isSomePlanDeferred,
2791
+ cards = _ref.cards;
2619
2792
  return /*#__PURE__*/React__default.createElement("div", {
2620
- className: s$9.container,
2793
+ className: s$a.container,
2621
2794
  "data-testid": "modal-container"
2622
2795
  }, /*#__PURE__*/React__default.createElement(Title, {
2623
2796
  isSomePlanDeferred: isSomePlanDeferred
2624
- }), children, /*#__PURE__*/React__default.createElement(Info, null), /*#__PURE__*/React__default.createElement(Logo, null));
2797
+ }), children, /*#__PURE__*/React__default.createElement(Info, null), cards && /*#__PURE__*/React__default.createElement(Cards, {
2798
+ cards: cards
2799
+ }), /*#__PURE__*/React__default.createElement(Logo, null));
2625
2800
  };
2626
2801
 
2627
2802
  var EligibilityModal = function EligibilityModal(_ref) {
2628
2803
  var initialPlanIndex = _ref.initialPlanIndex,
2629
2804
  onClose = _ref.onClose,
2630
2805
  eligibilityPlans = _ref.eligibilityPlans,
2631
- status = _ref.status;
2806
+ status = _ref.status,
2807
+ cards = _ref.cards;
2632
2808
 
2633
2809
  var _useState = React.useState(initialPlanIndex || 0),
2634
2810
  currentPlanIndex = _useState[0],
@@ -2651,11 +2827,12 @@ var EligibilityModal = function EligibilityModal(_ref) {
2651
2827
  scrollable: true,
2652
2828
  isOpen: true
2653
2829
  }, /*#__PURE__*/React__default.createElement(ModalComponent, {
2654
- isSomePlanDeferred: isSomePlanDeferred
2830
+ isSomePlanDeferred: isSomePlanDeferred,
2831
+ cards: cards
2655
2832
  }, status === apiStatus.PENDING && /*#__PURE__*/React__default.createElement("div", {
2656
- className: s$8.loader
2833
+ className: s$9.loader
2657
2834
  }, /*#__PURE__*/React__default.createElement(LoadingIndicator, null)), status === apiStatus.SUCCESS && eligiblePlans.length === 0 && /*#__PURE__*/React__default.createElement("div", {
2658
- className: s$8.noEligibility
2835
+ className: s$9.noEligibility
2659
2836
  }, /*#__PURE__*/React__default.createElement(reactIntl.FormattedMessage, {
2660
2837
  id: "eligibility-modal.no-eligibility",
2661
2838
  defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionn\xE9."
@@ -2676,7 +2853,8 @@ var ModalContainer = function ModalContainer(_ref) {
2676
2853
  var purchaseAmount = _ref.purchaseAmount,
2677
2854
  apiData = _ref.apiData,
2678
2855
  configPlans = _ref.configPlans,
2679
- onClose = _ref.onClose;
2856
+ onClose = _ref.onClose,
2857
+ cards = _ref.cards;
2680
2858
 
2681
2859
  var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
2682
2860
  eligibilityPlans = _useFetchEligibility[0],
@@ -2686,21 +2864,22 @@ var ModalContainer = function ModalContainer(_ref) {
2686
2864
  initialPlanIndex: 0,
2687
2865
  onClose: onClose,
2688
2866
  eligibilityPlans: eligibilityPlans,
2689
- status: status
2867
+ status: status,
2868
+ cards: cards
2690
2869
  });
2691
2870
  };
2692
2871
 
2693
- var s$a = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
2872
+ var s$b = {"loadingIndicator":"_2SwwZ","line1":"_2qODo","line2":"_2YO01"};
2694
2873
 
2695
2874
  var Loader = function Loader(_ref) {
2696
2875
  var className = _ref.className;
2697
2876
  return /*#__PURE__*/React__default.createElement("div", {
2698
- className: cx(s$a.loadingIndicator, className),
2877
+ className: cx(s$b.loadingIndicator, className),
2699
2878
  "data-testid": "loader"
2700
2879
  }, /*#__PURE__*/React__default.createElement("div", {
2701
- className: s$a.line1
2880
+ className: s$b.line1
2702
2881
  }), /*#__PURE__*/React__default.createElement("div", {
2703
- className: s$a.line2
2882
+ className: s$b.line2
2704
2883
  }));
2705
2884
  };
2706
2885
 
@@ -2793,7 +2972,7 @@ var STATIC_CUSTOMISATION_CLASSES$1 = {
2793
2972
  activeOption: prefix$1 + '-active-option'
2794
2973
  };
2795
2974
 
2796
- var s$b = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","notEligible":"_3O1bg","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
2975
+ var s$c = {"widgetButton":"_TSkFv","logo":"_LJ4nZ","primaryContainer":"_bMClc","paymentPlans":"_17c_S","plan":"_2Kqjn","active":"_3dG_J","notEligible":"_3O1bg","info":"_25GrF","loader":"_30j1O","error":"_R0YlN","errorText":"_2kGhu","errorButton":"_73d_Y","pending":"_1ZDMS","clickable":"_UksZa","unClickable":"_1lr-q"};
2797
2976
 
2798
2977
  var VERY_LONG_TIME_IN_MS = 1000 * 3600 * 24 * 365;
2799
2978
  var DEFAULT_TRANSITION_TIME = 5500;
@@ -2806,7 +2985,8 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
2806
2985
  configPlans = _ref.configPlans,
2807
2986
  transitionDelay = _ref.transitionDelay,
2808
2987
  hideIfNotEligible = _ref.hideIfNotEligible,
2809
- suggestedPaymentPlan = _ref.suggestedPaymentPlan;
2988
+ suggestedPaymentPlan = _ref.suggestedPaymentPlan,
2989
+ cards = _ref.cards;
2810
2990
 
2811
2991
  var _useFetchEligibility = useFetchEligibility(purchaseAmount, apiData, configPlans),
2812
2992
  eligibilityPlans = _useFetchEligibility[0],
@@ -2886,7 +3066,7 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
2886
3066
 
2887
3067
  if (status === apiStatus.PENDING) {
2888
3068
  return /*#__PURE__*/React__default.createElement("div", {
2889
- className: cx(s$b.widgetButton, s$b.pending)
3069
+ className: cx(s$c.widgetButton, s$c.pending)
2890
3070
  }, /*#__PURE__*/React__default.createElement(Loader, null));
2891
3071
  }
2892
3072
 
@@ -2904,14 +3084,14 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
2904
3084
 
2905
3085
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2906
3086
  onClick: handleOpenModal,
2907
- className: cx(s$b.widgetButton, (_cx = {}, _cx[s$b.clickable] = eligiblePlans.length > 0, _cx[s$b.unClickable] = eligiblePlans.length === 0, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
3087
+ className: cx(s$c.widgetButton, (_cx = {}, _cx[s$c.clickable] = eligiblePlans.length > 0, _cx[s$c.unClickable] = eligiblePlans.length === 0, _cx), STATIC_CUSTOMISATION_CLASSES$1.container),
2908
3088
  "data-testid": "widget-button"
2909
3089
  }, /*#__PURE__*/React__default.createElement("div", {
2910
- className: cx(s$b.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
3090
+ className: cx(s$c.primaryContainer, STATIC_CUSTOMISATION_CLASSES$1.eligibilityLine)
2911
3091
  }, /*#__PURE__*/React__default.createElement(LogoIcon, {
2912
- className: s$b.logo
3092
+ className: s$c.logo
2913
3093
  }), /*#__PURE__*/React__default.createElement("div", {
2914
- className: cx(s$b.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
3094
+ className: cx(s$c.paymentPlans, STATIC_CUSTOMISATION_CLASSES$1.eligibilityOptions)
2915
3095
  }, eligibilityPlans.map(function (eligibilityPlan, key) {
2916
3096
  var _cx2;
2917
3097
 
@@ -2921,15 +3101,16 @@ var PaymentPlanWidget = function PaymentPlanWidget(_ref) {
2921
3101
  return onHover(key);
2922
3102
  },
2923
3103
  onMouseOut: onLeave,
2924
- className: cx(s$b.plan, (_cx2 = {}, _cx2[cx(s$b.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = current === key, _cx2[cx(s$b.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
3104
+ className: cx(s$c.plan, (_cx2 = {}, _cx2[cx(s$c.active, STATIC_CUSTOMISATION_CLASSES$1.activeOption)] = current === key, _cx2[cx(s$c.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = !eligibilityPlan.eligible, _cx2))
2925
3105
  }, paymentPlanShorthandName(eligibilityPlan));
2926
3106
  }))), /*#__PURE__*/React__default.createElement("div", {
2927
- className: cx(s$b.info, (_cx3 = {}, _cx3[cx(s$b.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = eligibilityPlans[current] && !eligibilityPlans[current].eligible, _cx3), STATIC_CUSTOMISATION_CLASSES$1.paymentInfo)
3107
+ className: cx(s$c.info, (_cx3 = {}, _cx3[cx(s$c.notEligible, STATIC_CUSTOMISATION_CLASSES$1.notEligibleOption)] = eligibilityPlans[current] && !eligibilityPlans[current].eligible, _cx3), STATIC_CUSTOMISATION_CLASSES$1.paymentInfo)
2928
3108
  }, eligibilityPlans.length !== 0 && paymentPlanInfoText(eligibilityPlans[current]))), isOpen && /*#__PURE__*/React__default.createElement(EligibilityModal, {
2929
3109
  initialPlanIndex: getIndexWithinEligiblePlans(current),
2930
3110
  onClose: closeModal,
2931
3111
  eligibilityPlans: eligiblePlans,
2932
- status: status
3112
+ status: status,
3113
+ cards: cards
2933
3114
  }));
2934
3115
  };
2935
3116
 
@@ -2957,7 +3138,8 @@ var WidgetsController = /*#__PURE__*/function () {
2957
3138
  hideIfNotEligible = options.hideIfNotEligible,
2958
3139
  suggestedPaymentPlan = options.suggestedPaymentPlan,
2959
3140
  _options$locale = options.locale,
2960
- locale = _options$locale === void 0 ? Locale.en : _options$locale;
3141
+ locale = _options$locale === void 0 ? Locale.en : _options$locale,
3142
+ cards = options.cards;
2961
3143
 
2962
3144
  if (containerDiv) {
2963
3145
  reactDom.render( /*#__PURE__*/React__default.createElement(Provider, {
@@ -2968,7 +3150,8 @@ var WidgetsController = /*#__PURE__*/function () {
2968
3150
  configPlans: plans,
2969
3151
  transitionDelay: transitionDelay,
2970
3152
  hideIfNotEligible: hideIfNotEligible,
2971
- suggestedPaymentPlan: suggestedPaymentPlan
3153
+ suggestedPaymentPlan: suggestedPaymentPlan,
3154
+ cards: cards
2972
3155
  })), document.querySelector(container));
2973
3156
  }
2974
3157
  }
@@ -2979,7 +3162,8 @@ var WidgetsController = /*#__PURE__*/function () {
2979
3162
  _purchaseAmount = options.purchaseAmount,
2980
3163
  _plans = options.plans,
2981
3164
  _options$locale2 = options.locale,
2982
- _locale = _options$locale2 === void 0 ? Locale.en : _options$locale2;
3165
+ _locale = _options$locale2 === void 0 ? Locale.en : _options$locale2,
3166
+ _cards = options.cards;
2983
3167
 
2984
3168
  var close = function close() {
2985
3169
  return containerDiv && reactDom.unmountComponentAtNode(containerDiv);
@@ -2992,7 +3176,8 @@ var WidgetsController = /*#__PURE__*/function () {
2992
3176
  purchaseAmount: _purchaseAmount,
2993
3177
  apiData: _this.apiData,
2994
3178
  configPlans: _plans,
2995
- onClose: close
3179
+ onClose: close,
3180
+ cards: _cards
2996
3181
  })), document.querySelector(_container));
2997
3182
  }; // if clickableSelector is provided, add an onClick event handler to open the Modal.
2998
3183