rbro-tat-uds 2.2.21 → 2.2.23

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.
@@ -61195,7 +61195,7 @@ const ConfigurationSaveInfo = ({
61195
61195
  ),
61196
61196
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
61197
61197
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
61198
- isSimulator ? "Simluare" : "Configuratie",
61198
+ isSimulator ? "Simulare" : "Configuratie",
61199
61199
  " din data"
61200
61200
  ] }),
61201
61201
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: date.length ? date : "N/A" })
@@ -62216,7 +62216,7 @@ const Modal = ({
62216
62216
  let _footerSlot = null;
62217
62217
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
62218
62218
  const element = child;
62219
- if (element.type === ContentSlot$8) {
62219
+ if (element.type === ContentSlot$9) {
62220
62220
  _contentSlot = child;
62221
62221
  }
62222
62222
  if (element.type === FooterSlot) {
@@ -62255,9 +62255,9 @@ const Modal = ({
62255
62255
  }
62256
62256
  );
62257
62257
  };
62258
- const ContentSlot$8 = ({ children }) => children;
62258
+ const ContentSlot$9 = ({ children }) => children;
62259
62259
  const FooterSlot = ({ children }) => children;
62260
- Modal.ContentSlot = ContentSlot$8;
62260
+ Modal.ContentSlot = ContentSlot$9;
62261
62261
  Modal.FooterSlot = FooterSlot;
62262
62262
 
62263
62263
  const DashboardCategoryStyled$1 = styled__default.default.div`
@@ -76433,7 +76433,7 @@ const ProductTeaser = ({
76433
76433
  if (element.type === StepsSlot) {
76434
76434
  _stepsSlot = child;
76435
76435
  }
76436
- if (element.type === ContentSlot$7) {
76436
+ if (element.type === ContentSlot$8) {
76437
76437
  _contentSlot = child;
76438
76438
  }
76439
76439
  });
@@ -76457,9 +76457,9 @@ const ProductTeaser = ({
76457
76457
  ] });
76458
76458
  };
76459
76459
  const StepsSlot = ({ children }) => children;
76460
- const ContentSlot$7 = ({ children }) => children;
76460
+ const ContentSlot$8 = ({ children }) => children;
76461
76461
  ProductTeaser.StepsSlot = StepsSlot;
76462
- ProductTeaser.ContentSlot = ContentSlot$7;
76462
+ ProductTeaser.ContentSlot = ContentSlot$8;
76463
76463
 
76464
76464
  const ProductTeaserParametersStyled = styled__default.default.div`
76465
76465
  display: flex;
@@ -76943,7 +76943,7 @@ const ProposalPensii = ({
76943
76943
  let _contentSlot = null;
76944
76944
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
76945
76945
  const element = child;
76946
- if (element.type === ContentSlot$6) {
76946
+ if (element.type === ContentSlot$7) {
76947
76947
  _contentSlot = child;
76948
76948
  }
76949
76949
  });
@@ -77045,8 +77045,8 @@ const ProposalPensii = ({
77045
77045
  }
77046
77046
  );
77047
77047
  };
77048
- const ContentSlot$6 = ({ children }) => children;
77049
- ProposalPensii.ContentSlot = ContentSlot$6;
77048
+ const ContentSlot$7 = ({ children }) => children;
77049
+ ProposalPensii.ContentSlot = ContentSlot$7;
77050
77050
 
77051
77051
  const ProposalUnitlinkedStyled = styled__default.default.div`
77052
77052
  border-radius: 8px;
@@ -77238,7 +77238,7 @@ const ProposalUnitlinked = ({
77238
77238
  let _contentSlot = null;
77239
77239
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
77240
77240
  const element = child;
77241
- if (element.type === ContentSlot$5) {
77241
+ if (element.type === ContentSlot$6) {
77242
77242
  _contentSlot = child;
77243
77243
  }
77244
77244
  });
@@ -77338,8 +77338,8 @@ const ProposalUnitlinked = ({
77338
77338
  }
77339
77339
  );
77340
77340
  };
77341
- const ContentSlot$5 = ({ children }) => children;
77342
- ProposalUnitlinked.ContentSlot = ContentSlot$5;
77341
+ const ContentSlot$6 = ({ children }) => children;
77342
+ ProposalUnitlinked.ContentSlot = ContentSlot$6;
77343
77343
 
77344
77344
  const PropunereAsigurariCalatorieStyled = styled__default.default.div`
77345
77345
  border-radius: 8px;
@@ -77533,7 +77533,7 @@ const PropunereAsigurariCalatorie = ({
77533
77533
  let _contentSlot = null;
77534
77534
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
77535
77535
  const element = child;
77536
- if (element.type === ContentSlot$4) {
77536
+ if (element.type === ContentSlot$5) {
77537
77537
  _contentSlot = child;
77538
77538
  }
77539
77539
  });
@@ -77635,8 +77635,8 @@ const PropunereAsigurariCalatorie = ({
77635
77635
  }
77636
77636
  );
77637
77637
  };
77638
- const ContentSlot$4 = ({ children }) => children;
77639
- PropunereAsigurariCalatorie.ContentSlot = ContentSlot$4;
77638
+ const ContentSlot$5 = ({ children }) => children;
77639
+ PropunereAsigurariCalatorie.ContentSlot = ContentSlot$5;
77640
77640
 
77641
77641
  const PropunereFlexicreditStyled = styled__default.default.div`
77642
77642
  border-radius: 8px;
@@ -77874,7 +77874,7 @@ const PropunereFlexicredit = ({
77874
77874
  let _contentSlot = null;
77875
77875
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
77876
77876
  const element = child;
77877
- if (element.type === ContentSlot$3) {
77877
+ if (element.type === ContentSlot$4) {
77878
77878
  _contentSlot = child;
77879
77879
  }
77880
77880
  });
@@ -77990,8 +77990,8 @@ const PropunereFlexicredit = ({
77990
77990
  }
77991
77991
  );
77992
77992
  };
77993
- const ContentSlot$3 = ({ children }) => children;
77994
- PropunereFlexicredit.ContentSlot = ContentSlot$3;
77993
+ const ContentSlot$4 = ({ children }) => children;
77994
+ PropunereFlexicredit.ContentSlot = ContentSlot$4;
77995
77995
 
77996
77996
  const PropunereFondInvestitiiStyled = styled__default.default.div`
77997
77997
  border-radius: 8px;
@@ -78196,7 +78196,7 @@ const PropunereFondInvestitii = ({
78196
78196
  let _contentSlot = null;
78197
78197
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
78198
78198
  const element = child;
78199
- if (element.type === ContentSlot$2) {
78199
+ if (element.type === ContentSlot$3) {
78200
78200
  _contentSlot = child;
78201
78201
  }
78202
78202
  });
@@ -78272,8 +78272,8 @@ const PropunereFondInvestitii = ({
78272
78272
  }
78273
78273
  );
78274
78274
  };
78275
- const ContentSlot$2 = ({ children }) => children;
78276
- PropunereFondInvestitii.ContentSlot = ContentSlot$2;
78275
+ const ContentSlot$3 = ({ children }) => children;
78276
+ PropunereFondInvestitii.ContentSlot = ContentSlot$3;
78277
78277
 
78278
78278
  const PropunuerePlanInvestitiiStyled = styled__default.default.div`
78279
78279
  border-radius: 8px;
@@ -78478,7 +78478,7 @@ const PropunuerePlanInvestitii = ({
78478
78478
  let _contentSlot = null;
78479
78479
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
78480
78480
  const element = child;
78481
- if (element.type === ContentSlot$1) {
78481
+ if (element.type === ContentSlot$2) {
78482
78482
  _contentSlot = child;
78483
78483
  }
78484
78484
  });
@@ -78554,8 +78554,8 @@ const PropunuerePlanInvestitii = ({
78554
78554
  }
78555
78555
  );
78556
78556
  };
78557
- const ContentSlot$1 = ({ children }) => children;
78558
- PropunuerePlanInvestitii.ContentSlot = ContentSlot$1;
78557
+ const ContentSlot$2 = ({ children }) => children;
78558
+ PropunuerePlanInvestitii.ContentSlot = ContentSlot$2;
78559
78559
 
78560
78560
  const styledSizesWrapper = {
78561
78561
  small: styled.css`
@@ -80803,7 +80803,6 @@ const UnitLinkGraphStyled = styled__default.default.svg`
80803
80803
  .text-contribution {
80804
80804
  font-size: 12px;
80805
80805
  font-weight: 500;
80806
- fill: ${utils.colors.blue_600};
80807
80806
  }
80808
80807
  .text-action {
80809
80808
  font-size: 12px;
@@ -80832,6 +80831,7 @@ const UnitLinkGraph = ({
80832
80831
  header: "Placeholder",
80833
80832
  color_primary: utils.colors.purple_600,
80834
80833
  color_secondary: utils.colors.purple_50,
80834
+ outline_color: utils.colors.white,
80835
80835
  percentage: 50,
80836
80836
  place_at_ani: 7,
80837
80837
  actions: [
@@ -80854,6 +80854,11 @@ const UnitLinkGraph = ({
80854
80854
  timeline_texts = {
80855
80855
  left: "Placeholder"
80856
80856
  },
80857
+ timeline_text_color = {
80858
+ left: utils.colors.blue_600,
80859
+ right: utils.colors.blue_600
80860
+ },
80861
+ lineGraphAreaColor,
80857
80862
  ...rest
80858
80863
  }) => {
80859
80864
  const sliderActive = React.useMemo(() => {
@@ -80989,7 +80994,9 @@ const UnitLinkGraph = ({
80989
80994
  wrappedLabel,
80990
80995
  sublabel: item.sublabel,
80991
80996
  sublabel_x,
80992
- sublabel_y
80997
+ sublabel_y,
80998
+ bgColor: item.bgColor || void 0,
80999
+ textColor: item.textColor || void 0
80993
81000
  };
80994
81001
  }
80995
81002
  return {
@@ -81021,7 +81028,8 @@ const UnitLinkGraph = ({
81021
81028
  const dynamic_pos_secondary_x = get_position_at_indicator - APPROXIMATE_BAR_STROKE_WIDTH - configurations.bars.width - configurations.area.indicators.margin;
81022
81029
  const dynamic_pos_main_x = get_position_at_indicator + APPROXIMATE_BAR_STROKE_WIDTH + configurations.area.indicators.strokeWidth + configurations.area.indicators.margin;
81023
81030
  const h = mainHeightGraph - configurations.bars.actionsGap - START_Y;
81024
- const calculate_filled_bar = floorToHalf(config.percentage / 100 * h);
81031
+ const mainPercentage = (config?.secondary_percentage || 0) > 0 ? config.percentage - (config?.secondary_percentage || 0) : config.percentage;
81032
+ const calculate_filled_bar = floorToHalf(mainPercentage / 100 * h);
81025
81033
  const x = floorToHalf(main ? dynamic_pos_main_x : dynamic_pos_secondary_x);
81026
81034
  const w = floorToHalf(configurations.bars.width);
81027
81035
  const outlined_y = START_Y + APPROXIMATE_BAR_STROKE_WIDTH + configurations.bars.actionsGap;
@@ -81046,7 +81054,9 @@ const UnitLinkGraph = ({
81046
81054
  filled_h: Math.max(filled_h, 0),
81047
81055
  colorPrimary: config.color_primary,
81048
81056
  colorSecondary: config.color_secondary,
81057
+ outlineColor: config.outline_color || utils.colors.white,
81049
81058
  strokeWidth: configurations.bars.strokeWidth,
81059
+ percentage: config.percentage,
81050
81060
  barActions: {
81051
81061
  header: {
81052
81062
  title: config.header,
@@ -81077,7 +81087,7 @@ const UnitLinkGraph = ({
81077
81087
  x1: floorToHalf(mainStart + configurations.area.outersPartsWidth),
81078
81088
  x2: floorToHalf(barMain.x - configurations.area.outersPartsWidth),
81079
81089
  y1: mainHeightGraph - configurations.area.strokeWidth,
81080
- y2: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
81090
+ y2: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
81081
81091
  strokeWidth: barMainConfiguration.percentage === 0 ? 0 : configurations.area.graphLineStrokeWidth
81082
81092
  };
81083
81093
  const part_3 = {
@@ -81085,8 +81095,8 @@ const UnitLinkGraph = ({
81085
81095
  barMain.x - configurations.area.outersPartsWidth - configurations.area.additionalSpaceVisualize
81086
81096
  ),
81087
81097
  x2: floorToHalf(barMain.x),
81088
- y1: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
81089
- y2: barMain.filled_y + 1 - configurations.area.additionalSpaceVisualize,
81098
+ y1: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
81099
+ y2: (barMain.percentage === 100 ? barMain.outlined_y : barMain.filled_y) + 1 - configurations.area.additionalSpaceVisualize,
81090
81100
  strokeWidth: barMainConfiguration.percentage === 0 ? 0 : configurations.area.graphLineStrokeWidth
81091
81101
  };
81092
81102
  return {
@@ -81292,7 +81302,7 @@ const UnitLinkGraph = ({
81292
81302
  y1: graph.main.area.part_1.y1,
81293
81303
  y2: graph.main.area.part_1.y2,
81294
81304
  strokeWidth: graph.main.area.part_1.strokeWidth,
81295
- stroke: graph.main.bars.main.colorPrimary
81305
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
81296
81306
  }
81297
81307
  ),
81298
81308
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -81303,7 +81313,7 @@ const UnitLinkGraph = ({
81303
81313
  y1: graph.main.area.part_2.y1,
81304
81314
  y2: graph.main.area.part_2.y2,
81305
81315
  strokeWidth: graph.main.area.part_2.strokeWidth,
81306
- stroke: graph.main.bars.main.colorPrimary
81316
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
81307
81317
  }
81308
81318
  ),
81309
81319
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -81314,15 +81324,15 @@ const UnitLinkGraph = ({
81314
81324
  y1: graph.main.area.part_3.y1,
81315
81325
  y2: graph.main.area.part_3.y2,
81316
81326
  strokeWidth: graph.main.area.part_3.strokeWidth,
81317
- stroke: graph.main.bars.main.colorPrimary
81327
+ stroke: lineGraphAreaColor || graph.main.bars.main.colorPrimary
81318
81328
  }
81319
81329
  ),
81320
81330
  /* @__PURE__ */ jsxRuntime.jsx(
81321
81331
  "polygon",
81322
81332
  {
81323
81333
  points: `
81324
- ${graph.main.area.part_2.x2},${graph.main.bars.main.filled_y + 1.5}
81325
- ${graph.main.area.part_3.x2},${graph.main.bars.main.filled_y + 1.5}
81334
+ ${graph.main.area.part_2.x2},${(graph.main.bars.main.percentage === 100 ? graph.main.bars.main.outlined_y : graph.main.bars.main.filled_y) + 1.5}
81335
+ ${graph.main.area.part_3.x2},${(graph.main.bars.main.percentage === 100 ? graph.main.bars.main.outlined_y : graph.main.bars.main.filled_y) + 1.5}
81326
81336
  ${graph.main.area.part_3.x2},${graph.mainHeightGraph}
81327
81337
  ${graph.main.area.part_2.x1},${graph.mainHeightGraph}`,
81328
81338
  fill: graph.main.bars.main.colorSecondary
@@ -81382,6 +81392,7 @@ const UnitLinkGraph = ({
81382
81392
  className: "text-contribution",
81383
81393
  y: graph.timeline.text.left.y,
81384
81394
  x: graph.timeline.text.left.x,
81395
+ fill: timeline_text_color.left,
81385
81396
  textAnchor: "end",
81386
81397
  children: timeline_texts.left
81387
81398
  }
@@ -81392,6 +81403,7 @@ const UnitLinkGraph = ({
81392
81403
  className: "text-contribution",
81393
81404
  y: graph.timeline.text.right.y,
81394
81405
  x: graph.timeline.text.right.x,
81406
+ fill: timeline_text_color.right,
81395
81407
  textAnchor: "start",
81396
81408
  children: timeline_texts.right
81397
81409
  }
@@ -81476,7 +81488,7 @@ const RenderBar = ({
81476
81488
  y: bar.outlined_y,
81477
81489
  width: bar.w,
81478
81490
  height: bar.outlined_h,
81479
- fill: utils.colors.white,
81491
+ fill: bar.outlineColor,
81480
81492
  stroke: bar.colorPrimary,
81481
81493
  strokeWidth: bar.strokeWidth
81482
81494
  }
@@ -81504,6 +81516,8 @@ const RenderBar = ({
81504
81516
  ),
81505
81517
  bar.barActions.actions.map((action, index) => {
81506
81518
  const isActive = activeAction === index;
81519
+ const rectColor = isActive ? bar.colorPrimary : action.bgColor ? action.bgColor : bar.colorSecondary;
81520
+ const textColor = isActive ? utils.colors.white : action.textColor ? action.textColor : bar.colorPrimary;
81507
81521
  return /* @__PURE__ */ jsxRuntime.jsxs(
81508
81522
  "g",
81509
81523
  {
@@ -81513,7 +81527,7 @@ const RenderBar = ({
81513
81527
  /* @__PURE__ */ jsxRuntime.jsx(
81514
81528
  "rect",
81515
81529
  {
81516
- fill: isActive ? bar.colorPrimary : bar.colorSecondary,
81530
+ fill: rectColor,
81517
81531
  rx: 4,
81518
81532
  ry: 4,
81519
81533
  height: action.actions_h,
@@ -81528,7 +81542,7 @@ const RenderBar = ({
81528
81542
  className: "text-bar-actions-label",
81529
81543
  x: action.label_x,
81530
81544
  y: action.label_y,
81531
- fill: isActive ? utils.colors.white : bar.colorPrimary,
81545
+ fill: textColor,
81532
81546
  children: action.wrappedLabel?.map((line, lineIndex) => /* @__PURE__ */ jsxRuntime.jsx(
81533
81547
  "tspan",
81534
81548
  {
@@ -81543,7 +81557,7 @@ const RenderBar = ({
81543
81557
  action.sublabel && /* @__PURE__ */ jsxRuntime.jsx(
81544
81558
  "text",
81545
81559
  {
81546
- fill: isActive ? utils.colors.white : bar.colorPrimary,
81560
+ fill: textColor,
81547
81561
  className: "text-bar-actions-sublabel",
81548
81562
  x: action.sublabel_x,
81549
81563
  y: action.sublabel_y,
@@ -82230,7 +82244,7 @@ const PropunereAsigurareLocuinta = ({
82230
82244
  let _contentSlot = null;
82231
82245
  React.Children.toArray(children).filter(Boolean).forEach((child) => {
82232
82246
  const element = child;
82233
- if (element.type === ContentSlot) {
82247
+ if (element.type === ContentSlot$1) {
82234
82248
  _contentSlot = child;
82235
82249
  }
82236
82250
  });
@@ -82371,8 +82385,8 @@ const PropunereAsigurareLocuinta = ({
82371
82385
  }
82372
82386
  );
82373
82387
  };
82374
- const ContentSlot = ({ children }) => children;
82375
- PropunereAsigurareLocuinta.ContentSlot = ContentSlot;
82388
+ const ContentSlot$1 = ({ children }) => children;
82389
+ PropunereAsigurareLocuinta.ContentSlot = ContentSlot$1;
82376
82390
 
82377
82391
  const TextareaStyled = styled__default.default.textarea`
82378
82392
  box-sizing: border-box;
@@ -82546,6 +82560,380 @@ const ConfigurationStickyBar = ({
82546
82560
  return /* @__PURE__ */ jsxRuntime.jsx(ConfigurationStickyBarStyled, { $visible: isVisible, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("div", { children }) }) });
82547
82561
  };
82548
82562
 
82563
+ const PropunereUniqaProtectStyled = styled__default.default.div`
82564
+ border-radius: 8px;
82565
+ border: 1px solid
82566
+ ${({ $featured, $selected }) => $selected ? utils.colors.purple_500 : $featured ? utils.colors.accent_600 : utils.colors.gray_200};
82567
+ overflow: hidden;
82568
+ min-height: ${({ $hideButton }) => $hideButton ? "294px" : "334px"};
82569
+ box-sizing: border-box;
82570
+ height: 100%;
82571
+ width: 100%;
82572
+
82573
+ ${(props) => !props.$empty ? styled.css`
82574
+ outline: ${props.$featured ? `3px solid ${utils.colors.accent_300}` : "none"};
82575
+
82576
+ & > div:first-of-type {
82577
+ & > div:first-child {
82578
+ padding: 6px 6px 0px 16px;
82579
+ display: flex;
82580
+ align-items: center;
82581
+ justify-content: space-between;
82582
+ gap: 8px;
82583
+ background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
82584
+
82585
+ & > span {
82586
+ font-size: 18px;
82587
+ font-weight: 700;
82588
+ line-height: 120%;
82589
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.purple_600};
82590
+ }
82591
+ }
82592
+
82593
+ & > div:nth-child(2) {
82594
+ box-sizing: border-box;
82595
+ display: flex;
82596
+ align-items: stretch;
82597
+ height: 80px;
82598
+
82599
+ & > div:first-of-type {
82600
+ padding: 8px 4px 12px 16px;
82601
+ flex: 1;
82602
+ box-sizing: border-box;
82603
+ display: flex;
82604
+ flex-direction: column;
82605
+ gap: 2px;
82606
+ background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
82607
+
82608
+ & > div {
82609
+ display: flex;
82610
+ align-items: flex-start;
82611
+ gap: 8px;
82612
+
82613
+ & > svg {
82614
+ cursor: pointer;
82615
+ }
82616
+
82617
+ & > span:first-of-type {
82618
+ flex: 1;
82619
+ font-size: 14px;
82620
+ font-weight: ${({ $includePad }) => $includePad ? 700 : 400};
82621
+ color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
82622
+ }
82623
+ }
82624
+
82625
+ & > span {
82626
+ font-size: 20px;
82627
+ font-weight: 700;
82628
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
82629
+ }
82630
+ }
82631
+
82632
+ & > div:nth-of-type(2) {
82633
+ padding: 8px 16px 12px 4px;
82634
+ flex: 1;
82635
+ box-sizing: border-box;
82636
+ display: flex;
82637
+ flex-direction: column;
82638
+ gap: 2px;
82639
+ background-color: ${props.$refused ? utils.colors.gray_30 : props.$selected ? utils.colors.purple_50 : props.$featured ? utils.colors.accent_100 : "transparent"};
82640
+
82641
+ & > span:first-of-type {
82642
+ font-size: 14px;
82643
+ font-weight: ${({ $includePad }) => $includePad ? 700 : 400};
82644
+ color: ${({ $refused }) => $refused ? utils.colors.gray_200 : utils.colors.gray_700};
82645
+ }
82646
+
82647
+ & > span:nth-of-type(2) {
82648
+ font-size: 20px;
82649
+ font-weight: 500;
82650
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
82651
+ }
82652
+ }
82653
+ }
82654
+
82655
+ & > div:last-child {
82656
+ display: flex;
82657
+ border-top: 1px solid ${utils.colors.gray_200};
82658
+ border-bottom: 1px solid ${utils.colors.gray_200};
82659
+ display: flex;
82660
+ align-items: stretch;
82661
+ box-sizing: border-box;
82662
+
82663
+ & > div:first-of-type {
82664
+ box-sizing: border-box;
82665
+ flex: 1;
82666
+ height: 58px;
82667
+ display: flex;
82668
+ align-items: flex-start;
82669
+ padding: 12px 16px;
82670
+ gap: 8px;
82671
+ border-right: 0.5px solid ${utils.colors.gray_200};
82672
+ background-color: ${props.$refused ? utils.colors.gray_60 : props.$featured ? utils.colors.white : utils.colors.gray_30};
82673
+
82674
+ & > div {
82675
+ display: flex;
82676
+ flex-direction: column;
82677
+ gap: 2px;
82678
+
82679
+ & > div:first-of-type {
82680
+ display: flex;
82681
+ align-items: center;
82682
+ gap: 4px;
82683
+
82684
+ & > span:first-of-type {
82685
+ font-size: 12px;
82686
+ font-weight: 400;
82687
+ line-height: 120%;
82688
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
82689
+ }
82690
+ }
82691
+
82692
+ & > span {
82693
+ font-size: 14px;
82694
+ font-weight: 500;
82695
+ line-height: 120%;
82696
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
82697
+ }
82698
+ }
82699
+ }
82700
+
82701
+ & > div:last-of-type {
82702
+ box-sizing: border-box;
82703
+ flex: 1;
82704
+ height: 58px;
82705
+ display: flex;
82706
+ align-items: flex-start;
82707
+ padding: 12px 16px;
82708
+ gap: 8px;
82709
+ border-left: 0.5px solid ${utils.colors.gray_200};
82710
+ background-color: ${(props2) => props2.$refused ? utils.colors.gray_60 : utils.colors.gray_30};
82711
+
82712
+ & > div {
82713
+ display: flex;
82714
+ flex-direction: column;
82715
+ gap: 2px;
82716
+
82717
+ & > span:first-of-type {
82718
+ font-size: 12px;
82719
+ font-weight: 400;
82720
+ line-height: 120%;
82721
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_700};
82722
+ }
82723
+
82724
+ & > span:nth-of-type(2) {
82725
+ font-size: 14px;
82726
+ font-weight: 500;
82727
+ line-height: 120%;
82728
+ color: ${({ $refused }) => $refused ? utils.colors.gray_300 : utils.colors.gray_950};
82729
+ }
82730
+ }
82731
+ }
82732
+ }
82733
+ }
82734
+
82735
+ & > div:last-of-type {
82736
+ height: 106px;
82737
+ box-sizing: border-box;
82738
+ }
82739
+
82740
+ & > button {
82741
+ appearance: none;
82742
+ border: none;
82743
+ outline: none;
82744
+ background-color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_100 : utils.colors.purple_600 : "transparent"};
82745
+ padding: 0px;
82746
+ width: 100%;
82747
+ height: 40px;
82748
+ display: flex;
82749
+ align-items: center;
82750
+ justify-content: center;
82751
+ gap: 8px;
82752
+ border-top: 1px solid ${utils.colors.gray_200};
82753
+ cursor: pointer;
82754
+
82755
+ & > span {
82756
+ font-size: 14px;
82757
+ font-weight: 500;
82758
+ line-height: 120%;
82759
+ color: ${({ $selected, $disabled }) => $selected ? $disabled ? utils.colors.gray_600 : utils.colors.white : $disabled ? utils.colors.gray_300 : utils.colors.purple_600};
82760
+ }
82761
+ }
82762
+ ` : styled.css`
82763
+ background-color: ${utils.colors.gray_30};
82764
+ display: flex;
82765
+ justify-content: center;
82766
+ align-items: center;
82767
+ padding: 16px;
82768
+
82769
+ & > div {
82770
+ display: flex;
82771
+ flex-direction: column;
82772
+ gap: 16px;
82773
+ justify-content: center;
82774
+ align-items: center;
82775
+
82776
+ & > span {
82777
+ font-size: 14px;
82778
+ font-weight: 400;
82779
+ line-height: 120%;
82780
+ color: ${utils.colors.gray_500};
82781
+ text-align: center;
82782
+ }
82783
+ }
82784
+ `}
82785
+ `;
82786
+ const PropunereUniqaProtect = ({
82787
+ title = "Fix ce ai cerut!",
82788
+ contributiaLunara = "",
82789
+ durata = "",
82790
+ taxaDePolita = "",
82791
+ numarPolite = "",
82792
+ featured = false,
82793
+ selected = false,
82794
+ disabled = false,
82795
+ refused = false,
82796
+ hideButton = false,
82797
+ empty = false,
82798
+ emptyText = "Indisponibil",
82799
+ iconButtonOnClick,
82800
+ buttonOnClick,
82801
+ contributiaLunaraHintOnClick,
82802
+ taxaDePolitaHintOnClick,
82803
+ children,
82804
+ ...rest
82805
+ }) => {
82806
+ let _contentSlot = null;
82807
+ React.Children.toArray(children).filter(Boolean).forEach((child) => {
82808
+ const element = child;
82809
+ if (element.type === ContentSlot) {
82810
+ _contentSlot = child;
82811
+ }
82812
+ });
82813
+ return /* @__PURE__ */ jsxRuntime.jsx(
82814
+ PropunereUniqaProtectStyled,
82815
+ {
82816
+ $empty: empty,
82817
+ $featured: featured,
82818
+ $selected: selected,
82819
+ $disabled: disabled,
82820
+ $refused: refused,
82821
+ $hideButton: hideButton,
82822
+ ...rest,
82823
+ children: !empty ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
82824
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82825
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82826
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: title }),
82827
+ /* @__PURE__ */ jsxRuntime.jsx(
82828
+ IconButton,
82829
+ {
82830
+ onClick: iconButtonOnClick,
82831
+ icon: "new_tab",
82832
+ intent: "accent",
82833
+ variant: "tertiary",
82834
+ shape: "rounded",
82835
+ color: utils.colors.info_800,
82836
+ size: "medium"
82837
+ }
82838
+ )
82839
+ ] }),
82840
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82841
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82842
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82843
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Contributia lunara" }),
82844
+ /* @__PURE__ */ jsxRuntime.jsx(
82845
+ Icon$1,
82846
+ {
82847
+ onClick: contributiaLunaraHintOnClick,
82848
+ icon: "hint_filled",
82849
+ size: 16,
82850
+ color: refused ? utils.colors.gray_200 : utils.colors.info_700
82851
+ }
82852
+ )
82853
+ ] }),
82854
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: contributiaLunara || "-" })
82855
+ ] }),
82856
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82857
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Durata" }),
82858
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: durata || "-" })
82859
+ ] })
82860
+ ] }),
82861
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82862
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82863
+ /* @__PURE__ */ jsxRuntime.jsx(
82864
+ Icon$1,
82865
+ {
82866
+ icon: "invoice_seal",
82867
+ size: 16,
82868
+ color: refused ? utils.colors.gray_200 : utils.colors.gray_500
82869
+ }
82870
+ ),
82871
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82872
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82873
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Taxa de polita" }),
82874
+ /* @__PURE__ */ jsxRuntime.jsx(
82875
+ Icon$1,
82876
+ {
82877
+ onClick: taxaDePolitaHintOnClick,
82878
+ icon: "hint_filled",
82879
+ size: 16,
82880
+ color: refused ? utils.colors.gray_200 : utils.colors.info_700
82881
+ }
82882
+ )
82883
+ ] }),
82884
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: taxaDePolita || "-" })
82885
+ ] })
82886
+ ] }),
82887
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82888
+ /* @__PURE__ */ jsxRuntime.jsx(
82889
+ Icon$1,
82890
+ {
82891
+ icon: "docs",
82892
+ size: 16,
82893
+ color: refused ? utils.colors.gray_200 : utils.colors.gray_500
82894
+ }
82895
+ ),
82896
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82897
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Numar polite" }),
82898
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: numarPolite || "-" })
82899
+ ] })
82900
+ ] })
82901
+ ] })
82902
+ ] }),
82903
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: _contentSlot }),
82904
+ !hideButton && /* @__PURE__ */ jsxRuntime.jsxs(
82905
+ "button",
82906
+ {
82907
+ disabled,
82908
+ type: "button",
82909
+ onClick: !disabled ? buttonOnClick : () => {
82910
+ },
82911
+ children: [
82912
+ /* @__PURE__ */ jsxRuntime.jsx(
82913
+ Icon$1,
82914
+ {
82915
+ icon: selected ? "checkmark_filled" : "checkmark-part",
82916
+ size: 16,
82917
+ color: selected ? disabled ? utils.colors.gray_600 : utils.colors.white : utils.colors.purple_600,
82918
+ style: {
82919
+ opacity: disabled && !selected ? "0.25" : "1"
82920
+ }
82921
+ }
82922
+ ),
82923
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: selected ? "Varianta selectata" : "Vreau aceasta varianta!" })
82924
+ ]
82925
+ }
82926
+ )
82927
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
82928
+ /* @__PURE__ */ jsxRuntime.jsx(Icon$1, { size: 20, icon: "rejected", color: utils.colors.gray_500 }),
82929
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: emptyText })
82930
+ ] })
82931
+ }
82932
+ );
82933
+ };
82934
+ const ContentSlot = ({ children }) => children;
82935
+ PropunereUniqaProtect.ContentSlot = ContentSlot;
82936
+
82549
82937
  exports.Accordion = Accordion;
82550
82938
  exports.Alert = Alert;
82551
82939
  exports.AppBranding = AppBranding;
@@ -82615,6 +83003,7 @@ exports.PropunereAsigurariCalatorie = PropunereAsigurariCalatorie;
82615
83003
  exports.PropunereFlexicredit = PropunereFlexicredit;
82616
83004
  exports.PropunereFondInvestitii = PropunereFondInvestitii;
82617
83005
  exports.PropunerePlanInvestitii = PropunuerePlanInvestitii;
83006
+ exports.PropunereUniqaProtect = PropunereUniqaProtect;
82618
83007
  exports.Radio = Radio;
82619
83008
  exports.RatesCalculator = RatesCalculator;
82620
83009
  exports.Section = Section;