nestiq-component-library 1.1.167 → 1.1.168

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.
@@ -29,6 +29,11 @@ interface PopupProps {
29
29
  };
30
30
  }[];
31
31
  };
32
+ userData?: {
33
+ firstname: string;
34
+ lastname: string;
35
+ company: string;
36
+ };
32
37
  Impliment: any;
33
38
  baseUrl: string;
34
39
  themesList: any;
package/dist/index.es.js CHANGED
@@ -477,15 +477,15 @@ var iconLayers = "/static/media/layer_icon.9b56c187199c44b5.svg";
477
477
  var immooly = "/static/media/imooly.b46514ac970e6052.svg";
478
478
 
479
479
  function PropertyCard(props) {
480
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
481
- var _o = useState(false); _o[0]; _o[1];
482
- var _p = useState(null), mainImage = _p[0], setMainImage = _p[1];
483
- var _q = useState(0), currentImageIndex = _q[0], setCurrentImageIndex = _q[1];
480
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
481
+ var _p = useState(false); _p[0]; _p[1];
482
+ var _q = useState(null), mainImage = _q[0], setMainImage = _q[1];
483
+ var _r = useState(0), currentImageIndex = _r[0], setCurrentImageIndex = _r[1];
484
484
  var imageListRef = useRef(null);
485
- var _r = useState(false); _r[0]; _r[1];
486
485
  var _s = useState(false); _s[0]; _s[1];
487
- var _t = useState(false), sharePopUp = _t[0], setSharePopUp = _t[1];
488
- var _u = useState(false), isImagePopupOpen = _u[0], setIsImagePopupOpen = _u[1];
486
+ var _t = useState(false); _t[0]; _t[1];
487
+ var _u = useState(false), sharePopUp = _u[0], setSharePopUp = _u[1];
488
+ var _v = useState(false), isImagePopupOpen = _v[0], setIsImagePopupOpen = _v[1];
489
489
  var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
490
490
  ? props.property.pictures
491
491
  .filter(function (picture) { return picture.pictureType.id === 2; })
@@ -507,10 +507,6 @@ function PropertyCard(props) {
507
507
  props.onFloorPlanClick(floorPlanImages);
508
508
  }
509
509
  };
510
- var handleMessagPopUp = function () {
511
- // setMessagPopUp(true);
512
- props.messageOnClick();
513
- };
514
510
  var handleSharePopUp = function () {
515
511
  setSharePopUp(true);
516
512
  };
@@ -587,29 +583,18 @@ function PropertyCard(props) {
587
583
  React.createElement("span", { className: "text-dark value d-flex justify-content-center align-items-center" },
588
584
  +((_m = props.property) === null || _m === void 0 ? void 0 : _m.rooms),
589
585
  React.createElement("div", { className: "details text-center", style: { whiteSpace: "nowrap" } }, t.zimmer))),
590
- props.Impliment && (React.createElement("div", { className: "d-lex flex-column " },
586
+ React.createElement("div", { className: "d-lex flex-column " },
591
587
  React.createElement("div", { className: "wrapperCompanySec d-flex justify-content-around flex-row" },
592
588
  React.createElement("div", { className: "d-flex flex-column col-4 justify-content-between " },
593
589
  React.createElement("img", { src: immooly, alt: "Logo", className: "immooly" })),
594
590
  React.createElement("div", { className: "d-flex flex-column align-items-center justify-content-center" },
595
591
  React.createElement("div", { className: "d-flex flex-column text-center" },
596
- React.createElement("span", { className: "" }, "Firstname Firstname"),
597
- React.createElement("span", null, "Your company")))))),
598
- !props.Impliment && (React.createElement("div", { className: "d-lex flex-column ", style: {
599
- paddingLeft: "32px",
600
- paddingRight: "32px",
601
- } },
602
- React.createElement("div", { className: "Frame-136 d-flex flex-row" },
603
- React.createElement("div", { className: "d-flex flex-column flex-lg-row col-4 justify-content-between " },
604
- React.createElement("img", { src: immooly, alt: "Logo", className: "immooly" })),
605
- React.createElement("div", { className: "d-flex flex-column flex-lg-row justify-content-between" },
606
- React.createElement("div", { className: "d-flex flex-column col-6" },
607
- React.createElement("span", { className: "" }, "Herr Florian Gauss"),
608
- React.createElement("span", null, "Immogart UGh")),
609
- React.createElement("button", { className: "kontactbutton text-light ", onClick: handleMessagPopUp, role: "button" },
610
- React.createElement("span", { className: "kontact-button-text" },
611
- "Kontakt aufnehmen",
612
- " "))))))),
592
+ React.createElement("span", { className: "fw-bold" }, props.userData
593
+ ? "".concat(props.userData.firstname, " ").concat(props.userData.lastname)
594
+ : "Firstname Lastname"),
595
+ React.createElement("span", { className: "fst-italic fw-normal" }, ((_o = props.userData) === null || _o === void 0 ? void 0 : _o.company)
596
+ ? props.userData.company
597
+ : "Your Company")))))),
613
598
  sharePopUp && React.createElement(SharePopup, { onClick: function () { return setSharePopUp(false); } }),
614
599
  isImagePopupOpen && (React.createElement(ImageListPopup, { pictureUrls: floorPlanImages, onClose: function () { return setIsImagePopupOpen(false); } }))));
615
600
  }