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