mozrest-sdk-react-dev 0.1.42 → 0.1.43
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/mozrest-sdk.es.js +67 -73
- package/package.json +1 -1
- package/style.css +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import React__default, { createContext, useContext, useRef, useCallback, useDebugValue, useEffect, useLayoutEffect as useLayoutEffect$1, useState, useMemo as useMemo$1, createElement as createElement$1, Children, isValidElement as isValidElement$1, Fragment, Component, forwardRef, useImperativeHandle, useReducer, PureComponent, cloneElement as cloneElement$1 } from "react";
|
|
3
3
|
import * as ReactDOM from "react-dom";
|
|
4
4
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
5
|
-
var index$3 = /* @__PURE__ */ (() => '@import"https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans:wght@600&display=swap";.moz *,.moz :before,.moz :after{box-sizing:border-box}.moz html{-moz-tab-size:4;tab-size:4}.moz html{line-height:1.15;-webkit-text-size-adjust:100%}.moz body{margin:0}.moz body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.moz hr{height:0;color:inherit}.moz abbr[title]{text-decoration:underline dotted}.moz b,.moz strong{font-weight:bolder}.moz code,.moz kbd,.moz samp,.moz pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.moz small{font-size:80%}.moz sub,.moz sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.moz sub{bottom:-.25em}.moz sup{top:-.5em}.moz table{text-indent:0;border-color:inherit}.moz button,.moz input,.moz optgroup,.moz select,.moz textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.moz button,.moz select{text-transform:none}.moz button,.moz [type=button],.moz [type=reset],.moz [type=submit]{-webkit-appearance:button}.moz ::-moz-focus-inner{border-style:none;padding:0}.moz :-moz-focusring{outline:1px dotted ButtonText}.moz :-moz-ui-invalid{box-shadow:none}.moz legend{padding:0}.moz progress{vertical-align:baseline}.moz ::-webkit-inner-spin-button,.moz ::-webkit-outer-spin-button{height:auto}.moz [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.moz ::-webkit-search-decoration{-webkit-appearance:none}.moz ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.moz summary{display:list-item}.moz p,.moz h1,.moz h2,.moz h3,.moz h4,.moz h5,.moz h6{overflow-wrap:break-word;margin:0}:root{--moz-container-width: 100%;--moz-container-padding: 1.25rem;--moz-scrollbar-color: colors.$bg-gray-light;--moz-scrollbar-bg: transparent;--moz-scrollbar-border: colors.$white;--moz-font-family: "Lato", sans-serif;--moz-font-family-title: "Noto Sans", sans-serif;--moz-font-size-label: .857rem;--moz-font-weight-label: 300;--moz-line-height-label: 1.5715;--moz-font-family-label: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--moz-font-size-input: .9rem;--moz-font-weight-input: 400;--moz-line-height-input: 1.45;--moz-font-family-input: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--moz-cta-primary: #ff9b00;--moz-cta-primary-text: white;--moz-cta-primary-hover: rgb(255 155 0/ 70%);--moz-cta-primary-text-hover: #1e155a;--moz-cta-secondary: #1e155a;--moz-cta-secondary-hover: rgb(30 21 90 / 75%);--moz-cta-secondary-text: #fff;--moz-cta-secondary-text-hover: #fff;--moz-bg-gray: #787676;--moz-bg-gray-light: #e5e7eb;--moz-bg-gray-lighter: #f9f9f9;--moz-bg-primary: #017f74;--moz-bg-active: rgb(1 126 116 / 15%);--moz-text-input: #333;--moz-text-label: #5e5873;--moz-text-title: #1e2048;--moz-text-primary: #545454;--moz-text-secondary: #787676;--moz-text-success: #84cc16;--moz-input-active: #ff9b00;--moz-input-default: #787676;--moz-input-border: #cccccc;--moz-state-active: #1e155a;--moz-state-error: #f83d32;--moz-state-disabled: gray;--moz-state-disabled-bg: #f9f9f9;--moz-checbox-active: #1e155a;--checkbox-disabled: #e5e7eb;--checkbox-disabled-bg: #f9f9f9;--moz-border: #e5e7eb;--moz-border-hover: #b1b1b1}@media (min-width: 768px){:root{--moz-container-width: 100%;--moz-container-padding: 1.5rem}}@media (min-width: 1024px){:root{--moz-container-width: 100%;--moz-container-padding: 2rem}}@media (min-width: 1600px){:root{--moz-container-width: 1600px;--moz-container-padding: 4rem}}.moz
|
|
5
|
+
var index$3 = /* @__PURE__ */ (() => '@import"https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans:wght@600&display=swap";.moz *,.moz :before,.moz :after{box-sizing:border-box}.moz html{-moz-tab-size:4;tab-size:4}.moz html{line-height:1.15;-webkit-text-size-adjust:100%}.moz body{margin:0}.moz body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.moz hr{height:0;color:inherit}.moz abbr[title]{text-decoration:underline dotted}.moz b,.moz strong{font-weight:bolder}.moz code,.moz kbd,.moz samp,.moz pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}.moz small{font-size:80%}.moz sub,.moz sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.moz sub{bottom:-.25em}.moz sup{top:-.5em}.moz table{text-indent:0;border-color:inherit}.moz button,.moz input,.moz optgroup,.moz select,.moz textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}.moz button,.moz select{text-transform:none}.moz button,.moz [type=button],.moz [type=reset],.moz [type=submit]{-webkit-appearance:button}.moz ::-moz-focus-inner{border-style:none;padding:0}.moz :-moz-focusring{outline:1px dotted ButtonText}.moz :-moz-ui-invalid{box-shadow:none}.moz legend{padding:0}.moz progress{vertical-align:baseline}.moz ::-webkit-inner-spin-button,.moz ::-webkit-outer-spin-button{height:auto}.moz [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.moz ::-webkit-search-decoration{-webkit-appearance:none}.moz ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.moz summary{display:list-item}.moz p,.moz h1,.moz h2,.moz h3,.moz h4,.moz h5,.moz h6{overflow-wrap:break-word;margin:0}:root{--moz-container-width: 100%;--moz-container-padding: 1.25rem;--moz-scrollbar-color: colors.$bg-gray-light;--moz-scrollbar-bg: transparent;--moz-scrollbar-border: colors.$white;--moz-font-family: "Lato", sans-serif;--moz-font-family-title: "Noto Sans", sans-serif;--moz-font-size-label: .857rem;--moz-font-weight-label: 300;--moz-line-height-label: 1.5715;--moz-font-family-label: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--moz-font-size-input: .9rem;--moz-font-weight-input: 400;--moz-line-height-input: 1.45;--moz-font-family-input: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--moz-cta-primary: #ff9b00;--moz-cta-primary-text: white;--moz-cta-primary-hover: rgb(255 155 0/ 70%);--moz-cta-primary-text-hover: #1e155a;--moz-cta-secondary: #1e155a;--moz-cta-secondary-hover: rgb(30 21 90 / 75%);--moz-cta-secondary-text: #fff;--moz-cta-secondary-text-hover: #fff;--moz-bg-gray: #787676;--moz-bg-gray-light: #e5e7eb;--moz-bg-gray-lighter: #f9f9f9;--moz-bg-primary: #017f74;--moz-bg-active: rgb(1 126 116 / 15%);--moz-text-input: #333;--moz-text-label: #5e5873;--moz-text-title: #1e2048;--moz-text-primary: #545454;--moz-text-secondary: #787676;--moz-text-success: #84cc16;--moz-input-active: #ff9b00;--moz-input-default: #787676;--moz-input-border: #cccccc;--moz-state-active: #1e155a;--moz-state-error: #f83d32;--moz-state-disabled: gray;--moz-state-disabled-bg: #f9f9f9;--moz-checbox-active: #1e155a;--checkbox-disabled: #e5e7eb;--checkbox-disabled-bg: #f9f9f9;--moz-border: #e5e7eb;--moz-border-hover: #b1b1b1}@media (min-width: 768px){:root{--moz-container-width: 100%;--moz-container-padding: 1.5rem}}@media (min-width: 1024px){:root{--moz-container-width: 100%;--moz-container-padding: 2rem}}@media (min-width: 1600px){:root{--moz-container-width: 1600px;--moz-container-padding: 4rem}}.moz html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden}.moz body{color:var(--moz-text-primary);font:1rem/1.5 var(--moz-font-family);font-family:var(--moz-font-family)}.moz a{color:var(--moz-text-primary)}.moz :focus-visible{outline:1px solid var(--moz-cta-primary);border-color:transparent}\n')();
|
|
6
6
|
const pulse$2 = "_pulse_1xz3t_1";
|
|
7
7
|
const container$I = "_container_1xz3t_13";
|
|
8
8
|
const item$8 = "_item_1xz3t_20";
|
|
@@ -40402,13 +40402,11 @@ const TextAreaFieldWithRule = ({ disabled: disabled2, ...props }) => {
|
|
|
40402
40402
|
disabledTooltip: getTooltipSourceName(rule)
|
|
40403
40403
|
});
|
|
40404
40404
|
};
|
|
40405
|
-
const input$1 = "
|
|
40405
|
+
const input$1 = "_input_1xto5_1";
|
|
40406
40406
|
var styles$1z = {
|
|
40407
40407
|
input: input$1,
|
|
40408
|
-
"input--r-md": "_input--r-
|
|
40409
|
-
"input--r-sm": "_input--r-
|
|
40410
|
-
"input--h-md": "_input--h-md_dd220_29",
|
|
40411
|
-
"input--h-sm": "_input--h-sm_dd220_32"
|
|
40408
|
+
"input--r-md": "_input--r-md_1xto5_23",
|
|
40409
|
+
"input--r-sm": "_input--r-sm_1xto5_26"
|
|
40412
40410
|
};
|
|
40413
40411
|
const Input$1 = ({
|
|
40414
40412
|
id: id2,
|
|
@@ -96979,7 +96977,6 @@ const FormFields = ({ onFilter: onFilter2, partyOptions, hoursOptions, currentDa
|
|
|
96979
96977
|
value: values.criteria,
|
|
96980
96978
|
radius: "md",
|
|
96981
96979
|
label: t2("TYPETOSEARCH"),
|
|
96982
|
-
heigth: "sm",
|
|
96983
96980
|
placeholder: t2("TYPETOSEARCH"),
|
|
96984
96981
|
onChange: handleChange("criteria")
|
|
96985
96982
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -97172,20 +97169,20 @@ const ReservationComp = ({
|
|
|
97172
97169
|
style: { display: "flex", textAlign: "left", alignItems: "center", whiteSpace: "nowrap", paddingTop: 12, paddingBottom: 12 }
|
|
97173
97170
|
}, /* @__PURE__ */ React__default.createElement("img", {
|
|
97174
97171
|
src: logo2,
|
|
97175
|
-
|
|
97172
|
+
style: { width: 25, height: 25, display: "inline-block", marginRight: 8, marginLeft: 16 }
|
|
97176
97173
|
}), /* @__PURE__ */ React__default.createElement("p", null, name)), /* @__PURE__ */ React__default.createElement("td", {
|
|
97177
|
-
|
|
97174
|
+
style: { textAlign: "center" }
|
|
97178
97175
|
}, partySize), /* @__PURE__ */ React__default.createElement("td", {
|
|
97179
|
-
|
|
97176
|
+
style: { textAlign: "center" }
|
|
97180
97177
|
}, /* @__PURE__ */ React__default.createElement(TimeFormat, {
|
|
97181
97178
|
currentTimeZone,
|
|
97182
97179
|
dateTime: date4
|
|
97183
97180
|
})), /* @__PURE__ */ React__default.createElement("td", {
|
|
97184
|
-
|
|
97181
|
+
style: { textAlign: "center" }
|
|
97185
97182
|
}, tableName), /* @__PURE__ */ React__default.createElement("td", {
|
|
97186
|
-
|
|
97183
|
+
style: { textAlign: "center" }
|
|
97187
97184
|
}, status), /* @__PURE__ */ React__default.createElement("td", {
|
|
97188
|
-
|
|
97185
|
+
style: { textAlign: "center" }
|
|
97189
97186
|
}, status === "arrived" ? /* @__PURE__ */ React__default.createElement(Button, {
|
|
97190
97187
|
size: "mini",
|
|
97191
97188
|
className: styles$7.btnWarning
|
|
@@ -97196,21 +97193,21 @@ const ReservationComp = ({
|
|
|
97196
97193
|
};
|
|
97197
97194
|
const Table$1 = ({ data: data2, setSelectedRow, currentTimeZone }) => {
|
|
97198
97195
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
97199
|
-
|
|
97196
|
+
style: { width: "100%" }
|
|
97200
97197
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
97201
|
-
|
|
97198
|
+
style: { overflowX: "auto" }
|
|
97202
97199
|
}, /* @__PURE__ */ React__default.createElement("table", {
|
|
97203
|
-
|
|
97200
|
+
style: { width: "100%", backgroundColor: "white", borderRadius: 4 }
|
|
97204
97201
|
}, /* @__PURE__ */ React__default.createElement("thead", null, /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("th", {
|
|
97205
|
-
|
|
97202
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "left" }
|
|
97206
97203
|
}, "Customer"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97207
|
-
|
|
97204
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97208
97205
|
}, "Party Size"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97209
|
-
|
|
97206
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97210
97207
|
}, "Time"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97211
|
-
|
|
97208
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97212
97209
|
}, "Allocated Table"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97213
|
-
|
|
97210
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97214
97211
|
}, "Status"))), /* @__PURE__ */ React__default.createElement("tbody", {
|
|
97215
97212
|
className: styles$7.skeleton,
|
|
97216
97213
|
style: { backgroundColor: "white" }
|
|
@@ -97269,12 +97266,10 @@ const FilterForm = ({ partyOptions, areasOptions, hoursOptions, setBookingValues
|
|
|
97269
97266
|
label: t2("PARTYSIZE"),
|
|
97270
97267
|
options: partyOptions
|
|
97271
97268
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
|
97272
|
-
style: { minWidth: 100 }
|
|
97269
|
+
style: { minWidth: 100, marginRight: 30 }
|
|
97273
97270
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
97274
|
-
size: 40,
|
|
97275
97271
|
id: "date",
|
|
97276
97272
|
radius: "md",
|
|
97277
|
-
heigth: "sm",
|
|
97278
97273
|
type: "date",
|
|
97279
97274
|
label: t2("DATE"),
|
|
97280
97275
|
value: values.date,
|
|
@@ -97366,11 +97361,11 @@ const TableRow = ({ row: row2, setSelectedTable }) => {
|
|
|
97366
97361
|
className: styles$6.item,
|
|
97367
97362
|
onClick: () => setSelectedTable(row2)
|
|
97368
97363
|
}, /* @__PURE__ */ React__default.createElement("td", {
|
|
97369
|
-
|
|
97364
|
+
style: { textAlign: "left" }
|
|
97370
97365
|
}, /* @__PURE__ */ React__default.createElement("p", null, `${row2.name} (${(_a2 = row2.area) != null ? _a2 : "No area"})`)), /* @__PURE__ */ React__default.createElement("td", {
|
|
97371
|
-
|
|
97366
|
+
style: { textAlign: "center" }
|
|
97372
97367
|
}, `${(_b = row2.minCapacity) != null ? _b : "?"} - ${(_c = row2.maxCapacity) != null ? _c : "?"}`), /* @__PURE__ */ React__default.createElement("td", {
|
|
97373
|
-
|
|
97368
|
+
style: { textAlign: "center" }
|
|
97374
97369
|
}, " ", row2.nextBookingIn ? /* @__PURE__ */ React__default.createElement(TimeFormatter, {
|
|
97375
97370
|
seconds: row2.nextBookingIn,
|
|
97376
97371
|
type: "minutes"
|
|
@@ -97379,17 +97374,17 @@ const TableRow = ({ row: row2, setSelectedTable }) => {
|
|
|
97379
97374
|
const Table = ({ data: data2, setSelectedTable }) => {
|
|
97380
97375
|
const { t: t2 } = useTranslation();
|
|
97381
97376
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
97382
|
-
|
|
97377
|
+
style: { width: "100%", margin: "auto" }
|
|
97383
97378
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
97384
|
-
|
|
97379
|
+
style: { overflowX: "auto" }
|
|
97385
97380
|
}, /* @__PURE__ */ React__default.createElement("table", {
|
|
97386
97381
|
className: styles$6.tableName
|
|
97387
97382
|
}, /* @__PURE__ */ React__default.createElement("thead", null, /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("th", {
|
|
97388
|
-
|
|
97383
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "left" }
|
|
97389
97384
|
}, "Table"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97390
|
-
|
|
97385
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97391
97386
|
}, "Capacity"), /* @__PURE__ */ React__default.createElement("th", {
|
|
97392
|
-
|
|
97387
|
+
style: { paddingLeft: 24, paddingRight: 24, textAlign: "center" }
|
|
97393
97388
|
}, "Next booking"))), /* @__PURE__ */ React__default.createElement("tbody", {
|
|
97394
97389
|
className: styles$6.skeleton,
|
|
97395
97390
|
style: { backgroundColor: "white" }
|
|
@@ -97398,7 +97393,7 @@ const Table = ({ data: data2, setSelectedTable }) => {
|
|
|
97398
97393
|
key: index2,
|
|
97399
97394
|
setSelectedTable
|
|
97400
97395
|
})) : /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("td", {
|
|
97401
|
-
|
|
97396
|
+
style: { textAlign: "center" },
|
|
97402
97397
|
colSpan: 10
|
|
97403
97398
|
}, /* @__PURE__ */ React__default.createElement("p", null, t2("NOTABLESAVAILABLE"))))))));
|
|
97404
97399
|
};
|
|
@@ -98843,41 +98838,48 @@ const ContactDetailsFormFields = (props) => {
|
|
|
98843
98838
|
isSubmitting,
|
|
98844
98839
|
isValid: isValid2
|
|
98845
98840
|
} = useFormikContext();
|
|
98846
|
-
return /* @__PURE__ */ React__default.createElement(Form$c, null, /* @__PURE__ */ React__default.createElement("div",
|
|
98841
|
+
return /* @__PURE__ */ React__default.createElement(Form$c, null, /* @__PURE__ */ React__default.createElement("div", {
|
|
98842
|
+
style: { display: "flex", flexDirection: "row", flexWrap: "wrap" }
|
|
98843
|
+
}, /* @__PURE__ */ React__default.createElement(Row$1, {
|
|
98847
98844
|
gutter: [16, 16]
|
|
98848
98845
|
}, /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
98849
98846
|
xs: 24,
|
|
98850
|
-
lg:
|
|
98847
|
+
lg: 10
|
|
98851
98848
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
98849
|
+
style: { width: "90%" },
|
|
98852
98850
|
id: "firstname",
|
|
98853
98851
|
label: t2("FIRSTNAME")
|
|
98854
98852
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
98855
|
-
xs:
|
|
98856
|
-
lg:
|
|
98853
|
+
xs: 20,
|
|
98854
|
+
lg: 10
|
|
98857
98855
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
98856
|
+
style: { width: "90%" },
|
|
98858
98857
|
id: "lastname",
|
|
98859
98858
|
label: t2("LASTNAME")
|
|
98860
98859
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
98861
|
-
xs:
|
|
98862
|
-
lg:
|
|
98860
|
+
xs: 20,
|
|
98861
|
+
lg: 10
|
|
98863
98862
|
}, /* @__PURE__ */ React__default.createElement(PhoneInputField, {
|
|
98864
98863
|
id: "telephone",
|
|
98865
98864
|
label: t2("PHONENUMBER")
|
|
98866
98865
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
98867
98866
|
xs: 24,
|
|
98868
|
-
lg:
|
|
98867
|
+
lg: 10
|
|
98869
98868
|
}, /* @__PURE__ */ React__default.createElement(TextInputField, {
|
|
98869
|
+
style: { width: "90%" },
|
|
98870
98870
|
id: "email",
|
|
98871
98871
|
label: t2("EMAIL")
|
|
98872
98872
|
})), /* @__PURE__ */ React__default.createElement(Col$1, {
|
|
98873
98873
|
xs: 24,
|
|
98874
|
-
lg:
|
|
98874
|
+
lg: 28
|
|
98875
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
98876
|
+
style: { width: "80%" }
|
|
98875
98877
|
}, /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
|
98876
98878
|
id: "notes",
|
|
98877
98879
|
label: t2("SPECIALREQUESTS"),
|
|
98878
98880
|
maxLength: 100
|
|
98879
|
-
})))), /* @__PURE__ */ React__default.createElement("div", {
|
|
98880
|
-
|
|
98881
|
+
}))))), /* @__PURE__ */ React__default.createElement("div", {
|
|
98882
|
+
style: { display: "flex", marginTop: 12, width: "100%" }
|
|
98881
98883
|
}, /* @__PURE__ */ React__default.createElement(Button, {
|
|
98882
98884
|
size: "small",
|
|
98883
98885
|
mode: "primary",
|
|
@@ -98930,9 +98932,7 @@ const ContactDetailsForm = ({ venueId, selectedTable, setSelectedTable, setCreat
|
|
|
98930
98932
|
setCreated({ ...toSend, time: bookingValues.time.id, area: (_a2 = bookingValues.area.id) != null ? _a2 : null, dateString: (_b = new Date(`${bookingValues.date} ${bookingValues.time.id}`).toDateString()) != null ? _b : "?" });
|
|
98931
98933
|
reloadMainTable();
|
|
98932
98934
|
};
|
|
98933
|
-
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("h4", {
|
|
98934
|
-
className: "text-lg"
|
|
98935
|
-
}, t2("CONTACTDETAILS")), /* @__PURE__ */ React__default.createElement(Formik, {
|
|
98935
|
+
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("h4", null, t2("CONTACTDETAILS")), /* @__PURE__ */ React__default.createElement(Formik, {
|
|
98936
98936
|
initialValues,
|
|
98937
98937
|
onSubmit: handleOnSubmit,
|
|
98938
98938
|
validationSchema: bookingSchema
|
|
@@ -98949,22 +98949,22 @@ const ContactDetails = ({ setSelectedTable, selectedTable, venueId, setCreated,
|
|
|
98949
98949
|
onClick: () => setSelectedTable(null),
|
|
98950
98950
|
className: "cursor-pointer"
|
|
98951
98951
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
98952
|
-
|
|
98952
|
+
style: { display: "flex" }
|
|
98953
98953
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98954
98954
|
icon: "calendar",
|
|
98955
98955
|
className: "mr-2"
|
|
98956
98956
|
}), (bookingValues == null ? void 0 : bookingValues.date) ? new Date(bookingValues.date).toDateString() : "---"), /* @__PURE__ */ React__default.createElement("div", {
|
|
98957
|
-
|
|
98957
|
+
style: { display: "flex" }
|
|
98958
98958
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98959
98959
|
icon: "clock",
|
|
98960
98960
|
className: "mr-2"
|
|
98961
98961
|
}), (_a2 = bookingValues == null ? void 0 : bookingValues.time.id) != null ? _a2 : "---"), /* @__PURE__ */ React__default.createElement("div", {
|
|
98962
|
-
|
|
98962
|
+
style: { display: "flex" }
|
|
98963
98963
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98964
98964
|
icon: "people",
|
|
98965
98965
|
className: "mr-2"
|
|
98966
98966
|
}), (bookingValues == null ? void 0 : bookingValues.partySize.id) ? bookingValues.partySize.id : `${(_b = selectedTable.minCapacity) != null ? _b : "?"}-${(_c = selectedTable.maxCapacity) != null ? _c : "?"}`), /* @__PURE__ */ React__default.createElement("div", {
|
|
98967
|
-
|
|
98967
|
+
style: { display: "flex" }
|
|
98968
98968
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98969
98969
|
icon: "business",
|
|
98970
98970
|
className: "mr-2"
|
|
@@ -98980,44 +98980,38 @@ const ContactDetails = ({ setSelectedTable, selectedTable, venueId, setCreated,
|
|
|
98980
98980
|
const BookingConfirmation = ({ bookingDetails }) => {
|
|
98981
98981
|
var _a2, _b, _c, _d, _e2, _f, _g;
|
|
98982
98982
|
const { t: t2 } = useTranslation();
|
|
98983
|
-
return /* @__PURE__ */ React__default.createElement("div", {
|
|
98984
|
-
|
|
98985
|
-
}, /* @__PURE__ */ React__default.createElement("h1", {
|
|
98986
|
-
className: "text-center"
|
|
98983
|
+
return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement("h1", {
|
|
98984
|
+
style: { textAlign: "center" }
|
|
98987
98985
|
}, t2("BOOKINGCONFIRMED")), /* @__PURE__ */ React__default.createElement("div", {
|
|
98988
98986
|
style: { display: "flex", justifyContent: "start", gap: 20 }
|
|
98989
98987
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
98990
|
-
|
|
98988
|
+
style: { display: "flex" }
|
|
98991
98989
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98992
98990
|
icon: "calendar",
|
|
98993
98991
|
className: "mr-2"
|
|
98994
98992
|
}), (_a2 = bookingDetails == null ? void 0 : bookingDetails.dateString) != null ? _a2 : "?"), /* @__PURE__ */ React__default.createElement("div", {
|
|
98995
|
-
|
|
98993
|
+
style: { display: "flex" }
|
|
98996
98994
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
98997
98995
|
icon: "clock",
|
|
98998
98996
|
className: "mr-2"
|
|
98999
98997
|
}), (_b = bookingDetails == null ? void 0 : bookingDetails.time) != null ? _b : "?"), /* @__PURE__ */ React__default.createElement("div", {
|
|
99000
|
-
|
|
98998
|
+
style: { display: "flex" }
|
|
99001
98999
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
99002
99000
|
icon: "people",
|
|
99003
99001
|
className: "mr-2"
|
|
99004
99002
|
}), (_c = bookingDetails == null ? void 0 : bookingDetails.partySize) != null ? _c : "?"), /* @__PURE__ */ React__default.createElement("div", {
|
|
99005
|
-
|
|
99003
|
+
style: { display: "flex" }
|
|
99006
99004
|
}, /* @__PURE__ */ React__default.createElement(Icon$1, {
|
|
99007
99005
|
icon: "business",
|
|
99008
99006
|
className: "mr-2"
|
|
99009
|
-
}), (_d = bookingDetails == null ? void 0 : bookingDetails.area) != null ? _d : "?")), /* @__PURE__ */ React__default.createElement("h4", {
|
|
99010
|
-
|
|
99011
|
-
}, t2("CONTACTDETAILS"), ":"), /* @__PURE__ */ React__default.createElement("p", {
|
|
99012
|
-
className: "text-lg mb-0"
|
|
99007
|
+
}), (_d = bookingDetails == null ? void 0 : bookingDetails.area) != null ? _d : "?")), /* @__PURE__ */ React__default.createElement("h4", null, t2("CONTACTDETAILS"), ":"), /* @__PURE__ */ React__default.createElement("p", {
|
|
99008
|
+
style: { marginBottom: 0 }
|
|
99013
99009
|
}, (_e2 = bookingDetails == null ? void 0 : bookingDetails.contact.firstname) != null ? _e2 : "?"), /* @__PURE__ */ React__default.createElement("p", {
|
|
99014
|
-
|
|
99015
|
-
style: { color: "GrayText" }
|
|
99010
|
+
style: { color: "GrayText", marginTop: 0 }
|
|
99016
99011
|
}, `${(_f = bookingDetails == null ? void 0 : bookingDetails.contact.telephone) != null ? _f : "?"} - ${(_g = bookingDetails == null ? void 0 : bookingDetails.contact.email) != null ? _g : "?"}`), /* @__PURE__ */ React__default.createElement("p", {
|
|
99017
|
-
|
|
99012
|
+
style: { marginBottom: 0 }
|
|
99018
99013
|
}, t2("SPECIALREQUESTS"), ":"), /* @__PURE__ */ React__default.createElement("p", {
|
|
99019
|
-
|
|
99020
|
-
style: { color: "GrayText" }
|
|
99014
|
+
style: { color: "GrayText", marginTop: 0 }
|
|
99021
99015
|
}, bookingDetails.notes && bookingDetails.notes.length > 0 ? bookingDetails.notes : "---"));
|
|
99022
99016
|
};
|
|
99023
99017
|
const CreateReservation = ({ open, onClose: onClose2, venueId, reloadMainTable }) => {
|
|
@@ -99279,18 +99273,18 @@ const ReservationDashboard = ({
|
|
|
99279
99273
|
return /* @__PURE__ */ React__default.createElement(LayoutPage$1, {
|
|
99280
99274
|
containerClassName: styles$7.mainConatiner
|
|
99281
99275
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
99282
|
-
|
|
99276
|
+
style: { display: "flex", justifyContent: "space-between", paddingTop: 20 }
|
|
99283
99277
|
}, /* @__PURE__ */ React__default.createElement("h1", {
|
|
99284
|
-
|
|
99278
|
+
style: { fontWeight: "bold" }
|
|
99285
99279
|
}, "RESERVATION DASHBOARD"), /* @__PURE__ */ React__default.createElement("h1", {
|
|
99286
|
-
|
|
99280
|
+
style: { fontWeight: 800 }
|
|
99287
99281
|
}, /* @__PURE__ */ React__default.createElement(CurrentTime, null))), /* @__PURE__ */ React__default.createElement("div", {
|
|
99288
|
-
|
|
99282
|
+
style: { display: "flex", justifyContent: "space-between", marginTop: 20 }
|
|
99289
99283
|
}, /* @__PURE__ */ React__default.createElement(CustomDatePicker, {
|
|
99290
99284
|
onSelectDate: (d2) => handleOnSelectDate(d2),
|
|
99291
99285
|
venueId
|
|
99292
99286
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
99293
|
-
|
|
99287
|
+
style: { display: "flex", flexDirection: "column", justifyContent: "center", gap: 16 }
|
|
99294
99288
|
}, /* @__PURE__ */ React__default.createElement(Button, {
|
|
99295
99289
|
size: "small",
|
|
99296
99290
|
className: styles$7.btnDanger,
|
|
@@ -99302,7 +99296,7 @@ const ReservationDashboard = ({
|
|
|
99302
99296
|
className: classNameConatiner,
|
|
99303
99297
|
header: Header2
|
|
99304
99298
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
|
99305
|
-
|
|
99299
|
+
style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 40 }
|
|
99306
99300
|
}, /* @__PURE__ */ React__default.createElement(TableFilters$1, {
|
|
99307
99301
|
handleSearch: onFilter2,
|
|
99308
99302
|
venueId,
|