nestiq-component-library 1.1.46 → 1.1.47
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/components/MessagePopup/MessagePopUp.d.ts +2 -2
- package/dist/components/NewPropertyCard/NewPropertyCard.d.ts +5 -0
- package/dist/index.es.js +66 -65
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +66 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/MessagePopup/MessagePopUp.tsx +8 -8
- package/src/components/NewPropertyCard/NewPropertyCard.tsx +16 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./MessagePopUp.css";
|
|
3
3
|
interface PopupProps {
|
|
4
|
-
|
|
5
|
-
userdata: {
|
|
4
|
+
userData: {
|
|
6
5
|
firstname: any;
|
|
7
6
|
lastname: String;
|
|
8
7
|
};
|
|
9
8
|
handleSendMessage: any;
|
|
9
|
+
onClick: any;
|
|
10
10
|
}
|
|
11
11
|
export default function MessagePopUp(props: PopupProps): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -27,6 +27,11 @@ interface PopupProps {
|
|
|
27
27
|
onClick: any;
|
|
28
28
|
baseUrl: string;
|
|
29
29
|
title: string;
|
|
30
|
+
userData: {
|
|
31
|
+
firstname: string;
|
|
32
|
+
lastname: string;
|
|
33
|
+
};
|
|
34
|
+
handleSendMessage: any;
|
|
30
35
|
}
|
|
31
36
|
export default function PropertyCard(props: PopupProps): React.JSX.Element;
|
|
32
37
|
export {};
|
package/dist/index.es.js
CHANGED
|
@@ -451,6 +451,70 @@ var arrowRight = "/static/media/card-arrow-right.c60af4cbbd49f3aa.svg";
|
|
|
451
451
|
|
|
452
452
|
var iconLayers = "/static/media/layer_icon.9b56c187199c44b5.svg";
|
|
453
453
|
|
|
454
|
+
var x = "/static/media/icon_close_2.e41bb9a4db48e048.png";
|
|
455
|
+
|
|
456
|
+
var mail_icon = "/static/media/mail-icon.176f921aa16b9a3d.png";
|
|
457
|
+
|
|
458
|
+
var css_248z = ".popup-overlay {\r\n position: fixed; /* Fixed position to cover the whole screen */\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\r\n display: flex; /* Flexbox to center the popup */\r\n justify-content: center; /* Center horizontally */\r\n align-items: center; /* Center vertically */\r\n z-index: 9998; /* Ensure it's above other content */\r\n}\r\n\r\n.MessageShareSections {\r\n height: 550px;\r\n padding: 10px 14px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #d7d9e3;\r\n background-color: #fff;\r\n}\r\n.popUpHeader {\r\n height: 48px;\r\n font-size: 32px;\r\n font-weight: 600;\r\n color: #1b1b1b;\r\n}\r\n\r\n.closeIcon {\r\n width: 16px;\r\n height: 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.socialMediaIconsSection {\r\n gap: 60px !important;\r\n}\r\n\r\n.socialMediaIcons {\r\n width: 28px !important;\r\n height: 28px !important;\r\n cursor: pointer;\r\n}\r\n\r\n.socialMediaIconText {\r\n height: 36px;\r\n font-size: 13px;\r\n font-weight: 500;\r\n line-height: 3;\r\n color: #344041;\r\n cursor: pointer;\r\n}\r\n\r\n.popup_search-input {\r\n height: 60px;\r\n padding-inline-end: 190px;\r\n font-size: 20px;\r\n box-shadow: inset 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n background-color: rgba(0, 0, 0, 0.05);\r\n}\r\n\r\n.popup_search-input::placeholder {\r\n font-size: 20px;\r\n color: rgba(140, 140, 140, 0.5);\r\n}\r\n\r\n.popup_search-input:focus {\r\n outline: none;\r\n}\r\n\r\n.popupcustom-button {\r\n height: 35px;\r\n color: #000;\r\n cursor: pointer;\r\n border-color: var(--main-yellow);\r\n right: 0;\r\n z-index: 1;\r\n background-color: var(--main-yellow);\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n}\r\n.popup-tags {\r\n font-size: large;\r\n font-weight: bold;\r\n}\r\n.button_icon-left {\r\n width: 184px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n}\r\n.button-text {\r\n width: 85px;\r\n height: 19px;\r\n flex-grow: 0;\r\n font-family: Inter;\r\n font-size: 16px;\r\n font-weight: 500;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center;\r\n}\r\n.button_icon-right {\r\n width: 184px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n border-color: #000;\r\n background-color: transparent;\r\n}\r\n.circle {\r\n height: 55px;\r\n width: 55px;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-style: solid;\r\n border-color: #000;\r\n border-width: 2px;\r\n align-content: center;\r\n justify-content: center;\r\n justify-items: center;\r\n justify-self: center;\r\n}\r\n@media (min-width: 375px) and (max-width: 667px) {\r\n .popup-overlay {\r\n /* Fixed position to cover the whole screen */\r\n\r\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\r\n display: flex; /* Flexbox to center the popup */\r\n\r\n z-index: 9998; /* Ensure it's above other content */\r\n }\r\n\r\n .MessageShareSections {\r\n height: 650px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #d7d9e3;\r\n background-color: #fff;\r\n }\r\n .button_icon-left {\r\n width: 90px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n }\r\n .button-text {\r\n width: 85px;\r\n height: 19px;\r\n flex-grow: 0;\r\n font-family: Inter;\r\n font-size: 16px;\r\n font-weight: 500;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center;\r\n }\r\n .button_icon-right {\r\n width: 184px;\r\n }\r\n .circle {\r\n height: 55px;\r\n width: 55px;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-style: solid;\r\n border-color: #000;\r\n border-width: 2px;\r\n }\r\n .button_icon-left {\r\n width: 184px;\r\n }\r\n}\r\n";
|
|
459
|
+
styleInject(css_248z);
|
|
460
|
+
|
|
461
|
+
function MessagePopUp(props) {
|
|
462
|
+
var _a, _b;
|
|
463
|
+
var _c = useState(), showMessagePopUp = _c[0]; _c[1];
|
|
464
|
+
var _d = useState(false); _d[0]; _d[1];
|
|
465
|
+
var _e = useState(false); _e[0]; _e[1];
|
|
466
|
+
var _f = useState(""), themeId = _f[0], setThemeId = _f[1];
|
|
467
|
+
var _g = useState(""), subject = _g[0], setSubject = _g[1];
|
|
468
|
+
var _h = useState(""), messageText = _h[0], setMessageText = _h[1];
|
|
469
|
+
var _j = useState(""); _j[0]; var setFirstName = _j[1];
|
|
470
|
+
var _k = useState(""), lastName = _k[0], setLastName = _k[1];
|
|
471
|
+
var _l = useState([]), themesList = _l[0]; _l[1];
|
|
472
|
+
var handleClose = props.onClick;
|
|
473
|
+
return (React.createElement("div", null, showMessagePopUp && (React.createElement("div", { className: "popup-overlay" },
|
|
474
|
+
React.createElement("div", { className: "MessageShareSections d-flex flex-column col-10 col-lg-7" },
|
|
475
|
+
React.createElement("img", { src: x, alt: "close", className: "closeIcon d-flex flex-column align-self-end", onClick: handleClose }),
|
|
476
|
+
React.createElement("div", { className: "" },
|
|
477
|
+
React.createElement("div", { className: "d-flex ms-md-5 mb-4" },
|
|
478
|
+
React.createElement("div", { className: "circle align-self-center ms-md-2 me-4" },
|
|
479
|
+
React.createElement("img", { src: mail_icon, alt: "email", className: "align-self-center", style: {
|
|
480
|
+
alignSelf: "center",
|
|
481
|
+
justifyContent: "center",
|
|
482
|
+
margin: "14px",
|
|
483
|
+
width: "25px",
|
|
484
|
+
height: "20px",
|
|
485
|
+
} })),
|
|
486
|
+
React.createElement("div", { className: "popUpHeader d-flex flex-column text-wrap mb-md-1 " },
|
|
487
|
+
"Nachricht senden ", (_a = props.userData) === null || _a === void 0 ? void 0 :
|
|
488
|
+
_a.firstname,
|
|
489
|
+
" ", (_b = props.userData) === null || _b === void 0 ? void 0 :
|
|
490
|
+
_b.lastname)),
|
|
491
|
+
React.createElement("div", { className: "d-flex flex-md-row flex-column ms-md-5 mt-md-0 " },
|
|
492
|
+
React.createElement("div", { className: "d-flex flex-column mt-md-0 mt-4 col me-4 w-100 align-self-start justify-content-start" },
|
|
493
|
+
React.createElement("span", { className: "popup-tags mb-2" }, "Betreff:*"),
|
|
494
|
+
React.createElement("div", null,
|
|
495
|
+
React.createElement("select", { name: "theme", id: "theme", className: "mb-md-4 col-md-11 col-12", style: { height: "42px" }, value: themeId, onChange: function (e) { return setThemeId(e.target.value); } },
|
|
496
|
+
React.createElement("option", { value: "" }, "Select a theme"),
|
|
497
|
+
themesList.map(function (theme) { return (React.createElement("option", { key: theme.id, value: theme.id }, theme.name)); })))),
|
|
498
|
+
React.createElement("div", { className: "d-flex flex-column mt-md-4 col me-4 w-100" },
|
|
499
|
+
React.createElement("div", null),
|
|
500
|
+
React.createElement("textarea", { className: "popup_textarea col-12 col-md-10 mb-md-0 mt-2 ", placeholder: "Betreff deiner Nachricht", style: { height: "42px" }, value: subject, onChange: function (e) { return setSubject(e.target.value); } }))),
|
|
501
|
+
React.createElement("div", { className: "d-flex flex-column col ms-md-5 me-md-4" },
|
|
502
|
+
React.createElement("span", { className: "popup-tags mb-2 " }, "Deine Nachricht:*"),
|
|
503
|
+
React.createElement("textarea", { className: "popup_textarea mb-md-4 col-md-11 col-12 ", placeholder: "Deine Nachricht hier...", value: messageText, onChange: function (e) { return setMessageText(e.target.value); } })),
|
|
504
|
+
React.createElement("div", { className: "d-flex flex-md-row flex-column ms-md-5 " },
|
|
505
|
+
React.createElement("div", { className: "d-flex flex-column col me-4 w-100" },
|
|
506
|
+
React.createElement("span", { className: "popup-tags mb-2" }, "Vorname:"),
|
|
507
|
+
React.createElement("input", { className: "popup_textarea mb-md-4 col-12 col-md-11", placeholder: "Dein Vorname", type: "text", value: props === null || props === void 0 ? void 0 : props.userData.firstname, onChange: function (e) { return setFirstName(e.target.value); }, style: { height: "42px" } })),
|
|
508
|
+
React.createElement("div", { className: "d-flex flex-column me-4 w-100 col " },
|
|
509
|
+
React.createElement("span", { className: "popup-tags mb-2" }, "Nachname:"),
|
|
510
|
+
React.createElement("input", { className: "popup_textarea col-12 mb-4 col-md-10", placeholder: "Dein Nachname", type: "text", value: lastName, onChange: function (e) { return setLastName(e.target.value); }, style: { height: "42px" } }))),
|
|
511
|
+
React.createElement("div", { className: "d-flex gap-md-3 gap-3 flex-md-row flex-column align-self-center justify-content-center mb-4 mt-md-2" },
|
|
512
|
+
React.createElement("button", { className: "main_button border-0 rounded-4 align-self-center ", type: "button", id: "button", onClick: props.handleSendMessage },
|
|
513
|
+
React.createElement("strong", null, "Nachricht senden")),
|
|
514
|
+
React.createElement("button", { className: "button_icon-right border-1 col-sm-3 align-self-center" },
|
|
515
|
+
React.createElement("strong", null, "Abbrechen")))))))));
|
|
516
|
+
}
|
|
517
|
+
|
|
454
518
|
function PropertyCard(props) {
|
|
455
519
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
456
520
|
var _h = useState(false); _h[0]; _h[1];
|
|
@@ -458,7 +522,7 @@ function PropertyCard(props) {
|
|
|
458
522
|
var _k = useState(0), currentImageIndex = _k[0], setCurrentImageIndex = _k[1];
|
|
459
523
|
var imageListRef = useRef(null);
|
|
460
524
|
var _l = useState(false), floorPlan = _l[0], setFloorPlan = _l[1];
|
|
461
|
-
var _m = useState(false)
|
|
525
|
+
var _m = useState(false), messagePopUp = _m[0], setMessagPopUp = _m[1];
|
|
462
526
|
var _o = useState(false), sharePopUp = _o[0], setSharePopUp = _o[1];
|
|
463
527
|
var pictureUrls = ((_b = (_a = props.property) === null || _a === void 0 ? void 0 : _a.pictures) === null || _b === void 0 ? void 0 : _b.length) > 0
|
|
464
528
|
? props.property.pictures.map(function (picture) { return "".concat(props.baseUrl).concat(picture.contentUrl); })
|
|
@@ -576,73 +640,10 @@ function PropertyCard(props) {
|
|
|
576
640
|
React.createElement("button", { className: "kontactbutton text-light ", onClick: handleMessagPopUp, role: "button" },
|
|
577
641
|
React.createElement("span", { className: "kontact-button-text" }, "Kontakt aufnehmen "))))),
|
|
578
642
|
floorPlan && (React.createElement(FloorPlanPopup, { contentUrl: ((_g = props.property.pictures[0]) === null || _g === void 0 ? void 0 : _g.contentUrl) || noImageIcon, onCloseClick: function () { return setFloorPlan(false); } })),
|
|
643
|
+
messagePopUp && (React.createElement(MessagePopUp, { onClick: function () { return setMessagPopUp(false); }, userData: props.userData, handleSendMessage: props.handleSendMessage })),
|
|
579
644
|
sharePopUp && React.createElement(SharePopup, { onClick: function () { return setSharePopUp(false); } })));
|
|
580
645
|
}
|
|
581
646
|
|
|
582
|
-
var x = "/static/media/icon_close_2.e41bb9a4db48e048.png";
|
|
583
|
-
|
|
584
|
-
var mail_icon = "/static/media/mail-icon.176f921aa16b9a3d.png";
|
|
585
|
-
|
|
586
|
-
var css_248z = ".popup-overlay {\r\n position: fixed; /* Fixed position to cover the whole screen */\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\r\n display: flex; /* Flexbox to center the popup */\r\n justify-content: center; /* Center horizontally */\r\n align-items: center; /* Center vertically */\r\n z-index: 9998; /* Ensure it's above other content */\r\n}\r\n\r\n.MessageShareSections {\r\n height: 550px;\r\n padding: 10px 14px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #d7d9e3;\r\n background-color: #fff;\r\n}\r\n.popUpHeader {\r\n height: 48px;\r\n font-size: 32px;\r\n font-weight: 600;\r\n color: #1b1b1b;\r\n}\r\n\r\n.closeIcon {\r\n width: 16px;\r\n height: 16px;\r\n cursor: pointer;\r\n}\r\n\r\n.socialMediaIconsSection {\r\n gap: 60px !important;\r\n}\r\n\r\n.socialMediaIcons {\r\n width: 28px !important;\r\n height: 28px !important;\r\n cursor: pointer;\r\n}\r\n\r\n.socialMediaIconText {\r\n height: 36px;\r\n font-size: 13px;\r\n font-weight: 500;\r\n line-height: 3;\r\n color: #344041;\r\n cursor: pointer;\r\n}\r\n\r\n.popup_search-input {\r\n height: 60px;\r\n padding-inline-end: 190px;\r\n font-size: 20px;\r\n box-shadow: inset 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n background-color: rgba(0, 0, 0, 0.05);\r\n}\r\n\r\n.popup_search-input::placeholder {\r\n font-size: 20px;\r\n color: rgba(140, 140, 140, 0.5);\r\n}\r\n\r\n.popup_search-input:focus {\r\n outline: none;\r\n}\r\n\r\n.popupcustom-button {\r\n height: 35px;\r\n color: #000;\r\n cursor: pointer;\r\n border-color: var(--main-yellow);\r\n right: 0;\r\n z-index: 1;\r\n background-color: var(--main-yellow);\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n}\r\n.popup-tags {\r\n font-size: large;\r\n font-weight: bold;\r\n}\r\n.button_icon-left {\r\n width: 184px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n}\r\n.button-text {\r\n width: 85px;\r\n height: 19px;\r\n flex-grow: 0;\r\n font-family: Inter;\r\n font-size: 16px;\r\n font-weight: 500;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center;\r\n}\r\n.button_icon-right {\r\n width: 184px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n border-color: #000;\r\n background-color: transparent;\r\n}\r\n.circle {\r\n height: 55px;\r\n width: 55px;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-style: solid;\r\n border-color: #000;\r\n border-width: 2px;\r\n align-content: center;\r\n justify-content: center;\r\n justify-items: center;\r\n justify-self: center;\r\n}\r\n@media (min-width: 375px) and (max-width: 667px) {\r\n .popup-overlay {\r\n /* Fixed position to cover the whole screen */\r\n\r\n background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */\r\n display: flex; /* Flexbox to center the popup */\r\n\r\n z-index: 9998; /* Ensure it's above other content */\r\n }\r\n\r\n .MessageShareSections {\r\n height: 650px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n border: solid 1px #d7d9e3;\r\n background-color: #fff;\r\n }\r\n .button_icon-left {\r\n width: 90px;\r\n height: 43px;\r\n flex-grow: 0;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n align-items: center;\r\n gap: 8px;\r\n padding: 12px 24px;\r\n border-radius: 16px;\r\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\r\n }\r\n .button-text {\r\n width: 85px;\r\n height: 19px;\r\n flex-grow: 0;\r\n font-family: Inter;\r\n font-size: 16px;\r\n font-weight: 500;\r\n font-stretch: normal;\r\n font-style: normal;\r\n line-height: normal;\r\n letter-spacing: normal;\r\n text-align: center;\r\n }\r\n .button_icon-right {\r\n width: 184px;\r\n }\r\n .circle {\r\n height: 55px;\r\n width: 55px;\r\n background-color: transparent;\r\n border-radius: 50%;\r\n border-style: solid;\r\n border-color: #000;\r\n border-width: 2px;\r\n }\r\n .button_icon-left {\r\n width: 184px;\r\n }\r\n}\r\n";
|
|
587
|
-
styleInject(css_248z);
|
|
588
|
-
|
|
589
|
-
function MessagePopUp(props) {
|
|
590
|
-
var _a, _b;
|
|
591
|
-
var _c = useState(), showMessagePopUp = _c[0]; _c[1];
|
|
592
|
-
var _d = useState(false); _d[0]; _d[1];
|
|
593
|
-
var _e = useState(false); _e[0]; _e[1];
|
|
594
|
-
var _f = useState(""), themeId = _f[0], setThemeId = _f[1];
|
|
595
|
-
var _g = useState(""), subject = _g[0], setSubject = _g[1];
|
|
596
|
-
var _h = useState(""), messageText = _h[0], setMessageText = _h[1];
|
|
597
|
-
var _j = useState(""); _j[0]; var setFirstName = _j[1];
|
|
598
|
-
var _k = useState(""), lastName = _k[0], setLastName = _k[1];
|
|
599
|
-
var _l = useState([]), themesList = _l[0]; _l[1];
|
|
600
|
-
var handleClose = props.onclose;
|
|
601
|
-
return (React.createElement("div", null, showMessagePopUp && (React.createElement("div", { className: "popup-overlay" },
|
|
602
|
-
React.createElement("div", { className: "MessageShareSections d-flex flex-column col-10 col-lg-7" },
|
|
603
|
-
React.createElement("img", { src: x, alt: "close", className: "closeIcon d-flex flex-column align-self-end", onClick: handleClose }),
|
|
604
|
-
React.createElement("div", { className: "" },
|
|
605
|
-
React.createElement("div", { className: "d-flex ms-md-5 mb-4" },
|
|
606
|
-
React.createElement("div", { className: "circle align-self-center ms-md-2 me-4" },
|
|
607
|
-
React.createElement("img", { src: mail_icon, alt: "email", className: "align-self-center", style: {
|
|
608
|
-
alignSelf: "center",
|
|
609
|
-
justifyContent: "center",
|
|
610
|
-
margin: "14px",
|
|
611
|
-
width: "25px",
|
|
612
|
-
height: "20px",
|
|
613
|
-
} })),
|
|
614
|
-
React.createElement("div", { className: "popUpHeader d-flex flex-column text-wrap mb-md-1 " },
|
|
615
|
-
"Nachricht senden ", (_a = props.userdata) === null || _a === void 0 ? void 0 :
|
|
616
|
-
_a.firstname,
|
|
617
|
-
" ", (_b = props.userdata) === null || _b === void 0 ? void 0 :
|
|
618
|
-
_b.lastname)),
|
|
619
|
-
React.createElement("div", { className: "d-flex flex-md-row flex-column ms-md-5 mt-md-0 " },
|
|
620
|
-
React.createElement("div", { className: "d-flex flex-column mt-md-0 mt-4 col me-4 w-100 align-self-start justify-content-start" },
|
|
621
|
-
React.createElement("span", { className: "popup-tags mb-2" }, "Betreff:*"),
|
|
622
|
-
React.createElement("div", null,
|
|
623
|
-
React.createElement("select", { name: "theme", id: "theme", className: "mb-md-4 col-md-11 col-12", style: { height: "42px" }, value: themeId, onChange: function (e) { return setThemeId(e.target.value); } },
|
|
624
|
-
React.createElement("option", { value: "" }, "Select a theme"),
|
|
625
|
-
themesList.map(function (theme) { return (React.createElement("option", { key: theme.id, value: theme.id }, theme.name)); })))),
|
|
626
|
-
React.createElement("div", { className: "d-flex flex-column mt-md-4 col me-4 w-100" },
|
|
627
|
-
React.createElement("div", null),
|
|
628
|
-
React.createElement("textarea", { className: "popup_textarea col-12 col-md-10 mb-md-0 mt-2 ", placeholder: "Betreff deiner Nachricht", style: { height: "42px" }, value: subject, onChange: function (e) { return setSubject(e.target.value); } }))),
|
|
629
|
-
React.createElement("div", { className: "d-flex flex-column col ms-md-5 me-md-4" },
|
|
630
|
-
React.createElement("span", { className: "popup-tags mb-2 " }, "Deine Nachricht:*"),
|
|
631
|
-
React.createElement("textarea", { className: "popup_textarea mb-md-4 col-md-11 col-12 ", placeholder: "Deine Nachricht hier...", value: messageText, onChange: function (e) { return setMessageText(e.target.value); } })),
|
|
632
|
-
React.createElement("div", { className: "d-flex flex-md-row flex-column ms-md-5 " },
|
|
633
|
-
React.createElement("div", { className: "d-flex flex-column col me-4 w-100" },
|
|
634
|
-
React.createElement("span", { className: "popup-tags mb-2" }, "Vorname:"),
|
|
635
|
-
React.createElement("input", { className: "popup_textarea mb-md-4 col-12 col-md-11", placeholder: "Dein Vorname", type: "text", value: props === null || props === void 0 ? void 0 : props.userdata.firstname, onChange: function (e) { return setFirstName(e.target.value); }, style: { height: "42px" } })),
|
|
636
|
-
React.createElement("div", { className: "d-flex flex-column me-4 w-100 col " },
|
|
637
|
-
React.createElement("span", { className: "popup-tags mb-2" }, "Nachname:"),
|
|
638
|
-
React.createElement("input", { className: "popup_textarea col-12 mb-4 col-md-10", placeholder: "Dein Nachname", type: "text", value: lastName, onChange: function (e) { return setLastName(e.target.value); }, style: { height: "42px" } }))),
|
|
639
|
-
React.createElement("div", { className: "d-flex gap-md-3 gap-3 flex-md-row flex-column align-self-center justify-content-center mb-4 mt-md-2" },
|
|
640
|
-
React.createElement("button", { className: "main_button border-0 rounded-4 align-self-center ", type: "button", id: "button", onClick: props.handleSendMessage },
|
|
641
|
-
React.createElement("strong", null, "Nachricht senden")),
|
|
642
|
-
React.createElement("button", { className: "button_icon-right border-1 col-sm-3 align-self-center" },
|
|
643
|
-
React.createElement("strong", null, "Abbrechen")))))))));
|
|
644
|
-
}
|
|
645
|
-
|
|
646
647
|
// Utility function to show a toast
|
|
647
648
|
var showToast = function (message, type) {
|
|
648
649
|
if (type === void 0) { type = "info"; }
|