nestiq-component-library 1.1.145 → 1.1.150

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -235,17 +235,17 @@ function ImageListPopup(props) {
235
235
  React.createElement("div", { role: "button", className: "rounded-circle border onImageArrow d-flex justify-content-center", onClick: function () { return handleArrowClickInMainImage("right"); } },
236
236
  React.createElement("img", { src: blcIconArrowRight, className: "blackArrow align-self-center", alt: "Right Arrow" })))),
237
237
  React.createElement("div", { className: "d-flex flex-row" }),
238
- React.createElement("div", { className: "d-flex flex-row gap-4 w-100 secondList mt-4 " },
238
+ React.createElement("div", { className: "d-flex flex-row gap-4 w-100 secondList " },
239
239
  React.createElement("div", { className: "col-lg-12 d-flex flex-row p-1 align-self-center mt-5" },
240
240
  React.createElement("div", { className: "col-12 position-relative d-flex justify-content-center" },
241
- React.createElement("div", { className: "col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto ", ref: imageListRef }, props.pictureUrls.length > 0 && (React.createElement("div", { className: "col-lg-5 h-75 w-25 d-flex gap-4 flex-row rounded-3" }, props.pictureUrls.map(function (picture, index) { return (React.createElement("div", { key: index, className: "col-lg-12 h-100 d-flex", onClick: function () {
241
+ React.createElement("div", { className: "col-lg-10 rounded-3 h-100 w-100 d-flex flex-row gap-2 overflow-auto ", ref: imageListRef }, props.pictureUrls.length > 0 && (React.createElement("div", { className: "col-lg-5 h-100 w-25 d-flex gap-4 flex-row rounded-3" }, props.pictureUrls.map(function (picture, index) { return (React.createElement("div", { key: index, className: "col-lg-12 h-100 d-flex", onClick: function () {
242
242
  setCurrentImageIndex(index);
243
243
  imageListRef.current.scrollTo({
244
244
  left: index * 150,
245
245
  behavior: "smooth",
246
246
  });
247
247
  }, role: "button" },
248
- React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-75 rounded-3 object-fit-cover" }))); }))))))))))));
248
+ React.createElement("img", { src: picture.url, alt: "Image ".concat(index + 1), className: "col-12 h-100 rounded-3 object-fit-cover" }))); }))))))))))));
249
249
  }
250
250
 
251
251
  var FloorPlanPopup = function (_a) {
@@ -468,16 +468,14 @@ function PropertyCard(props) {
468
468
  var _j = React.useState(null), mainImage = _j[0], setMainImage = _j[1];
469
469
  var _k = React.useState(0), currentImageIndex = _k[0], setCurrentImageIndex = _k[1];
470
470
  var imageListRef = React.useRef(null);
471
- var _l = React.useState(false), floorPlan = _l[0], setFloorPlan = _l[1];
471
+ var _l = React.useState(false); _l[0]; _l[1];
472
472
  var _m = React.useState(false); _m[0]; _m[1];
473
473
  var _o = React.useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
474
474
  var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
475
475
  ? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
476
476
  : [noImageIcon];
477
477
  var floorPlanOnClick = function () {
478
- if (props.floorPlanUrl) {
479
- setFloorPlan(true);
480
- }
478
+ props.onFloorPlanClick();
481
479
  };
482
480
  var handleMessagPopUp = function () {
483
481
  // setMessagPopUp(true);
@@ -593,11 +591,7 @@ function PropertyCard(props) {
593
591
  React.createElement("img", { src: immooly, alt: "Logo", className: "immooly" })),
594
592
  React.createElement("div", { className: "ms-2 d-flex flex-column col-8 justify-content-center align-self-center text-center" },
595
593
  React.createElement("span", { className: "fw-bold" }, "Herr Florian Gauss"),
596
- React.createElement("span", null, "Immogart UGh"),
597
- React.createElement("button", { className: "kontactbutton text-light align-self-center", onClick: handleMessagPopUp, role: "button" },
598
- React.createElement("span", { className: "kontact-button-text" },
599
- "Kontakt aufnehmen",
600
- " ")))))),
594
+ React.createElement("span", null, "Immogart UGh"))))),
601
595
  !props.Impliment && (React.createElement("div", { className: "", style: {
602
596
  paddingLeft: "32px",
603
597
  paddingRight: "32px",
@@ -613,7 +607,6 @@ function PropertyCard(props) {
613
607
  React.createElement("span", { className: "kontact-button-text" },
614
608
  "Kontakt aufnehmen",
615
609
  " "))))))),
616
- floorPlan && (React.createElement(FloorPlanPopup, { contentUrl: props.floorPlanUrl, onCloseClick: function () { return setFloorPlan(false); } })),
617
610
  sharePopUp && React.createElement(SharePopup, { onClick: function () { return setSharePopUp(false); } })));
618
611
  }
619
612